summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in32
1 files changed, 16 insertions, 16 deletions
diff --git a/configure.in b/configure.in
index 6635208..8b0f7df 100644
--- a/configure.in
+++ b/configure.in
@@ -2556,8 +2556,7 @@ AC_CHECK_LIB(c, inet_aton, [$ac_cv_prog_TRUE],
# On Tru64, chflags seems to be present, but calling it will
# exit Python
-AC_MSG_CHECKING(for chflags)
-AC_CACHE_VAL(ac_cv_have_chflags,
+AC_CACHE_CHECK([for chflags], [ac_cv_have_chflags], [dnl
AC_TRY_RUN([[
#include <sys/stat.h>
#include <unistd.h>
@@ -2568,17 +2567,17 @@ int main(int argc, char*argv[])
return 0;
}
]], ac_cv_have_chflags=yes,
- ac_cv_have_chflags=no,
- ac_cv_have_chflags=no)
-)
-AC_MSG_RESULT($ac_cv_have_chflags)
-if test $ac_cv_have_chflags = yes
-then
+ ac_cv_have_chflags=no,
+ ac_cv_have_chflags=cross)
+])
+if test "$ac_cv_have_chflags" = cross ; then
+ AC_CHECK_FUNC([chflags], [ac_cv_have_chflags="yes"], [ac_cv_have_chflags="no"])
+fi
+if test "$ac_cv_have_chflags" = yes ; then
AC_DEFINE(HAVE_CHFLAGS, 1, Define to 1 if you have the `chflags' function.)
fi
-AC_MSG_CHECKING(for lchflags)
-AC_CACHE_VAL(ac_cv_have_lchflags,
+AC_CACHE_CHECK([for lchflags], [ac_cv_have_lchflags], [dnl
AC_TRY_RUN([[
#include <sys/stat.h>
#include <unistd.h>
@@ -2589,12 +2588,13 @@ int main(int argc, char*argv[])
return 0;
}
]], ac_cv_have_lchflags=yes,
- ac_cv_have_lchflags=no,
- ac_cv_have_lchflags=no)
-)
-AC_MSG_RESULT($ac_cv_have_lchflags)
-if test $ac_cv_have_lchflags = yes
-then
+ ac_cv_have_lchflags=no,
+ ac_cv_have_lchflags=cross)
+])
+if test "$ac_cv_have_lchflags" = cross ; then
+ AC_CHECK_FUNC([lchflags], [ac_cv_have_lchflags="yes"], [ac_cv_have_lchflags="no"])
+fi
+if test "$ac_cv_have_lchflags" = yes ; then
AC_DEFINE(HAVE_LCHFLAGS, 1, Define to 1 if you have the `lchflags' function.)
fi