[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] AC_FUNC_GETMNTENT problem on UNICOS
From: |
Paul Eggert |
Subject: |
Re: [bug-gnulib] AC_FUNC_GETMNTENT problem on UNICOS |
Date: |
Mon, 06 Dec 2004 13:56:18 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
"Mark D. Baushke" <address@hidden> writes:
> You are correct. Here is an updated patch (also available from
> https://savannah.gnu.org/support/index.php?func=detailitem&item_id=103650)
I'd rather fix it by using the new Autoconf macro (better to test the
new macro0, so I installed this instead (on both gnulib and coreutils):
2004-12-06 Paul Eggert <address@hidden>
* ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
in Autoconf 2.59. Problem reported by Mark D. Baushke.
Index: ls-mntd-fs.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/ls-mntd-fs.m4,v
retrieving revision 1.28
retrieving revision 1.29
diff -p -u -r1.28 -r1.29
--- ls-mntd-fs.m4 7 Aug 2004 00:09:39 -0000 1.28
+++ ls-mntd-fs.m4 6 Dec 2004 21:51:24 -0000 1.29
@@ -1,4 +1,4 @@
-#serial 17
+#serial 18
# How to list mounted file systems.
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software
@@ -24,6 +24,15 @@ dnl This is not pretty. I've just taken
dnl it in an AC_DEFUN and made some other fixes.
dnl
+# Replace Autoconf's AC_FUNC_GETMNTENT to work around a bug in Autoconf
+# through Autoconf 2.59. We can remove this once we assume Autoconf 2.60
+# or later.
+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, -lsun -lseq -lgen, [AC_CHECK_FUNCS(getmntent)])
+])
+
# gl_LIST_MOUNTED_FILE_SYSTEMS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
AC_DEFUN([gl_LIST_MOUNTED_FILE_SYSTEMS],
[
@@ -63,7 +72,7 @@ AC_CHECK_MEMBERS([struct fsstat.f_fstype
ac_list_mounted_fs=
# If the getmntent function is available but not in the standard library,
-# make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
+# make sure LIBS contains the appropriate -l option.
AC_FUNC_GETMNTENT
# This test must precede the ones for getmntent because Unicos-9 is