]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(AC_FUNC_GETMNTENT): Invoke AC_CHECK_FUNCS(getmntent)
authorJim Meyering <jim@meyering.net>
Fri, 13 Jan 2006 13:35:26 +0000 (13:35 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 13 Jan 2006 13:35:26 +0000 (13:35 +0000)
unconditionally so that tests of $ac_cv_func_getmntent (e.g., in
gl_LIST_MOUNTED_FILE_SYSTEMS) need not double-quote uses 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.

m4/ls-mntd-fs.m4

index ed243861caa295112e17e59e3cd59834ec141826..af3eaa8c2f0d610163a7b69400f235fd4b4abac5 100644 (file)
@@ -1,7 +1,7 @@
 #serial 20
 # How to list mounted file systems.
 
-# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software
+# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006 Free Software
 # Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
@@ -20,7 +20,8 @@ dnl
 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)
 ])
 
 # gl_LIST_MOUNTED_FILE_SYSTEMS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])