From: Paul Eggert Date: Mon, 17 Sep 2001 19:45:29 +0000 (+0000) Subject: (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we X-Git-Tag: AUTOCONF-2.52f~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2cddb10fbfbd6c8a29d194affd745e4cc515cd0;p=thirdparty%2Fautoconf.git (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't need it. --- diff --git a/lib/autoconf/headers.m4 b/lib/autoconf/headers.m4 index a4a15fe4c..2cd3d708d 100644 --- a/lib/autoconf/headers.m4 +++ b/lib/autoconf/headers.m4 @@ -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