[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_FUNC_GETMNTENT look in libc before -lsun
From: |
Mark D. Baushke |
Subject: |
Re: AC_FUNC_GETMNTENT look in libc before -lsun |
Date: |
Mon, 06 Dec 2004 14:14:25 -0800 |
Noah Misch <address@hidden> wrote:
> Mr. Baushke,
>
> On Mon, Dec 06, 2004 at 10:16:51AM -0800, Mark D. Baushke wrote:
> > 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.
>
> The macro normally does find getmntent in the C library; indeed, the GNU C
> Library is constructed that way, and the macro handles it correctly:
>
> checking for getmntent in -lsun... no
> checking for getmntent in -lseq... no
> checking for getmntent in -lgen... no
> checking for getmntent... yes
>
> It looks like the problem is somewhere else, perhaps a false positive from
> AC_CHECK_LIB(sun). Could you post config.log?
I could be mistaken, but I believe the old code used
AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS")
which did not allow for checking to see if the library really existed or
was even needed.
config.log files were attached for both of these savannah bug reports:
https://savannah.gnu.org/bugs/?func=detailitem&item_id=11008
https://savannah.gnu.org/bugs/?func=detailitem&item_id=11220
I belive that Paul Eggert's latest patch should do the trick, but I
don't think I will have access to the UNICOS machine again until this
weekend...
-- Mark
- AC_FUNC_GETMNTENT look in libc before -lsun, Mark D. Baushke, 2004/12/06
- 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 <=
- 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
- traps of AC_CHECK_LIB for standard functions, Stepan Kasal, 2004/12/09