]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_ISC_POSIX): Replace the old, crufty version with the version used
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Sep 2001 19:46:31 +0000 (19:46 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Sep 2001 19:46:31 +0000 (19:46 +0000)
by fileutils 4.1, except use AC_SEARCH_LIBS, not AC_CHECK_LIB, so that
we don't use -lcposix if we don't need it.

lib/autoconf/specific.m4

index e1e59770baa6fadc2d4b8bb4e6e9a801b3187214..14b2236ede125638343f5b0cf06ec1bc86488827 100644 (file)
@@ -439,29 +439,7 @@ fi
 
 # AC_ISC_POSIX
 # ------------
-AC_DEFUN([AC_ISC_POSIX],
-[AC_REQUIRE([AC_PROG_CC])dnl
-AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
-AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
-AC_MSG_CHECKING([for POSIXized ISC])
-if test -d /etc/conf/kconfig.d &&
-   grep _POSIX_VERSION [/usr/include/sys/unistd.h] >/dev/null 2>&1
-then
-  AC_MSG_RESULT([yes])
-  ISC=yes # If later tests want to check for ISC.
-  AC_DEFINE(_POSIX_SOURCE, 1,
-            [Define if you need to in order for stat and other things to
-             work.])
-  if test "$GCC" = yes; then
-    CC="$CC -posix"
-  else
-    CC="$CC -Xp"
-  fi
-else
-  AC_MSG_RESULT([no])
-  ISC=
-fi
-])# AC_ISC_POSIX
+AC_DEFUN([AC_ISC_POSIX], [AC_SEARCH_LIBS(strerror, cposix)])
 
 
 # AC_XENIX_DIR