[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_FUNC_GETMNTENT look in libc before -lsun
From: |
Mark D. Baushke |
Subject: |
AC_FUNC_GETMNTENT look in libc before -lsun |
Date: |
Mon, 06 Dec 2004 10:16:51 -0800 |
Problem: UNICOS 9 does not have a -lsun library and puts getmntent into
the C library. AC_FUNC_GETMNTENT does not currently check to see if the
function is found before adding the possibly non-existent -lsun library
into LIBS.
Note: http://www.gnu.org/software/autoconf/ still specifies the :pserver:
method of checking out the latest autoconf sources. The page should be
updated to specify the CVS to use CVS_RSH=ssh with
:ext:address@hidden:/cvsroot/autoconf
ChangeLog entry:
2004-12-06 Mark D Baushke <address@hidden>
* functions.m4 (AC_FUNC_GETMNTENT): Check libc before looking
elsewhere for getmntent.
Index: functions.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/functions.m4,v
retrieving revision 1.85
diff -u -p -r1.85 functions.m4
--- functions.m4 2 Dec 2004 21:50:46 -0000 1.85
+++ functions.m4 6 Dec 2004 18:14:42 -0000
@@ -772,9 +772,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")])])
+# -lsun does NOT exist on UNICOS 9 where the C library has the function.
+AC_CHECK_FUNC(getmntent, [],
+ [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)
])
- AC_FUNC_GETMNTENT look in libc before -lsun,
Mark D. Baushke <=
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, Paul Eggert, 2004/12/06
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, Noah Misch, 2004/12/06
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, Stepan Kasal, 2004/12/06
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, Mark D. Baushke, 2004/12/06
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, Noah Misch, 2004/12/06
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, Mark D. Baushke, 2004/12/06
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, Stepan Kasal, 2004/12/06
- [PATCH] Document traps of AC_CHECK_LIB for standard functions, Noah Misch, 2004/12/06
- Re: [PATCH] Document traps of AC_CHECK_LIB for standard functions, Stepan Kasal, 2004/12/09
- Re: [PATCH] Document traps of AC_CHECK_LIB for standard functions, Paul Eggert, 2004/12/09