]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 22 May 2006 04:45:03 +0000 (04:45 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 22 May 2006 04:45:03 +0000 (04:45 +0000)
Import the following fix from coreutils:

2006-01-13  Jim Meyering  <jim@meyering.net>

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.

ChangeLog
lib/autoconf/functions.m4

index 19f2702c067b706b87c489d1539d3a545913332f..2bfb5a2d0fb664fa9ca566199359be2d07c4cee6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
+       Import the following fix from coreutils:
+
+       2006-01-13  Jim Meyering  <jim@meyering.net>
+
+       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  <eggert@cs.ucla.edu>
 
        * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
index dd19eeb7bf1f252d436d65ef73d5a73f129f96d5..f050bfc4566e9ae33bcda0f5ce5d1ebc4c0940a4 100644 (file)
@@ -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)
 ])