From: Paul Eggert Date: Mon, 22 May 2006 04:45:03 +0000 (+0000) Subject: * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): X-Git-Tag: AUTOCONF-2.59d~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb1c7aeacd3dc3aafee1a66992ccb1565d36dbc4;p=thirdparty%2Fautoconf.git * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Import the following fix from coreutils: 2006-01-13 Jim Meyering Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not double-quote uses of that variable, to accommodate the rare case in which getmntent is available in none of the libraries checked. This happens at least on FreeBSD 5.0. --- diff --git a/ChangeLog b/ChangeLog index 19f2702c0..2bfb5a2d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2006-05-21 Paul Eggert + + * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): + Import the following fix from coreutils: + + 2006-01-13 Jim Meyering + + Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of + $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need + not double-quote uses of that variable, to accommodate the rare + case in which getmntent is available in none of the libraries + checked. This happens at least on FreeBSD 5.0. + 2006-05-20 Paul Eggert * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4 index dd19eeb7b..f050bfc45 100644 --- a/lib/autoconf/functions.m4 +++ b/lib/autoconf/functions.m4 @@ -799,7 +799,8 @@ AN_FUNCTION([getmntent], [AC_FUNC_GETMNTENT]) AC_DEFUN([AC_FUNC_GETMNTENT], [# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, # -lseq on Dynix/PTX, -lgen on Unixware. -AC_SEARCH_LIBS(getmntent, [sun seq gen], [AC_CHECK_FUNCS(getmntent)]) +AC_SEARCH_LIBS(getmntent, [sun seq gen]) +AC_CHECK_FUNCS(getmntent) ])