]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_HEADER_DIRENT): Use AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Sep 2001 19:45:29 +0000 (19:45 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Sep 2001 19:45:29 +0000 (19:45 +0000)
don't use -ldir or -lx if we don't need it.

lib/autoconf/headers.m4

index a4a15fe4c5245c9e764c2e221375150be67a4b3f..2cd3d708df872ce79e5555d06ee7f6c836dfe235 100644 (file)
@@ -241,9 +241,9 @@ ac_header_dirent=$ac_hdr; break])
 done
 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 if test $ac_header_dirent = dirent.h; then
-  AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir")
+  AC_SEARCH_LIBS(opendir, dir)
 else
-  AC_CHECK_LIB(x, opendir, LIBS="$LIBS -lx")
+  AC_SEARCH_LIBS(opendir, x)
 fi
 ])# AC_HEADER_DIRENT