From af188c0c663d174b86ada31a6920ee2b09711607 Mon Sep 17 00:00:00 2001 From: "bryner%netscape.com" Date: Sat, 28 Sep 2002 10:20:32 +0000 Subject: [PATCH] Fixing a problem with my checkin for bug 165602 - don't mix the test for empty MACOS_DEPLOYMENT_TARGET and 10.2-or-greater, some versions of 'test' don't like this. --- configure.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 72af3dabb5f8..133f08ded45c 100644 --- a/configure.in +++ b/configure.in @@ -1998,7 +1998,16 @@ AC_CHECK_FUNCS(random strerror lchown fchmod snprintf statvfs memmove rint) AC_CHECK_FUNCS(nl_langinfo flockfile) dnl localtime_r and strtok_r are only present on MacOS version 10.2 and higher -if test -z "$MACOS_DEPLOYMENT_TARGET" -o "$MACOS_DEPLOYMENT_TARGET" -ge "100200"; then +CHECK_MACOS_10_2_FUNCS= +if test -z "$MACOS_DEPLOYMENT_TARGET"; then +CHECK_MACOS_10_2_FUNCS=1 +else +if test "$MACOS_DEPLOYMENT_TARGET" -ge "100200"; then +CHECK_MACOS_10_2_FUNCS=1 +fi +fi + +if test "$CHECK_MACOS_10_2_FUNCS"; then AC_CHECK_FUNCS(localtime_r strtok_r) fi