autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_FUNC_GETMNTENT look in libc before -lsun


From: Paul Eggert
Subject: Re: AC_FUNC_GETMNTENT look in libc before -lsun
Date: Mon, 06 Dec 2004 13:26:36 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Thanks.  I installed this slightly-different patch for the UNICOS problem.
Bob Proulx has graciously volunteered to look into fixing the web pages.

2004-12-06  Paul Eggert  <address@hidden>

        * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
        looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
        * doc/autoconf.texi (Particular Functions): Mention new behavior.

Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.846
diff -p -u -r1.846 autoconf.texi
--- doc/autoconf.texi   29 Nov 2004 21:43:11 -0000      1.846
+++ doc/autoconf.texi   6 Dec 2004 21:23:11 -0000
@@ -4127,8 +4127,9 @@ program.
 @cvindex HAVE_GETMNTENT
 @c @fuindex getmntent
 @prindex @code{getmntent}
-Check for @code{getmntent} in the @file{sun}, @file{seq}, and @file{gen}
-libraries, for @sc{irix} 4, PTX, and UnixWare, respectively.  Then, if
+Check for @code{getmntent} in the standard C library, and then in the
address@hidden, @file{seq}, and @file{gen} libraries, for @sc{unicos},
address@hidden 4, @sc{ptx}, and UnixWare, respectively.  Then, if
 @code{getmntent} is available, define @code{HAVE_GETMNTENT}.
 @end defmac
 
Index: lib/autoconf/functions.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/functions.m4,v
retrieving revision 1.85
diff -p -u -r1.85 functions.m4
--- lib/autoconf/functions.m4   2 Dec 2004 21:50:46 -0000       1.85
+++ lib/autoconf/functions.m4   6 Dec 2004 21:23:11 -0000
@@ -771,11 +771,11 @@ AU_ALIAS([AC_GETLOADAVG], [AC_FUNC_GETLO
 # -----------------
 AN_FUNCTION([getmntent], [AC_FUNC_GETMNTENT])
 AC_DEFUN([AC_FUNC_GETMNTENT],
-[# getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
-AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS",
-  [AC_CHECK_LIB(seq, getmntent, LIBS="-lseq $LIBS",
-    [AC_CHECK_LIB(gen, getmntent, LIBS="-lgen $LIBS")])])
-AC_CHECK_FUNCS(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_DEFINE([HAVE_GETMNTENT], 1,
+     [Define to 1 if you have the `getmntent' function.])])
 ])
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]