From: Paul Eggert Date: Mon, 17 Sep 2001 19:42:12 +0000 (+0000) Subject: Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4 X-Git-Tag: AUTOCONF-2.52f~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8638d098f31fc0f4502b48e452a4b97dc38d8539;p=thirdparty%2Fautoconf.git Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4 or CFLAGS=-O5. In that case, the linker has a relaxed view of fatal errors, and AC_CHECK_LIB causes it to include libraries even when they don't exist. * lib/autoconf/headers.m4 (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. * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty version with the version used 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. * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior. --- diff --git a/ChangeLog b/ChangeLog index af861c880..529105a4e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,21 @@ +2001-09-17 Paul Eggert + + Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4 + or CFLAGS=-O5. In that case, the linker has a relaxed view of + fatal errors, and AC_CHECK_LIB causes it to include libraries even + when they don't exist. + + * lib/autoconf/headers.m4 (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. + + * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty + version with the version used 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. + + * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior. + 2001-09-13 Akim Demaille * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line