[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: |
Stepan Kasal |
Subject: |
Re: AC_FUNC_GETMNTENT look in libc before -lsun |
Date: |
Tue, 7 Dec 2004 01:59:32 +0100 |
User-agent: |
Mutt/1.4.1i |
Hello,
On Mon, Dec 06, 2004 at 04:31:24PM -0800, Mark D. Baushke wrote:
> > +AC_SEARCH_LIBS(getpwnam, sun)])
...
> Given everything else I have seen, I would have expected a need for this
> kind of a line:
>
> AC_SEARCH_LIBS(getpwnam, -lsun, [AC_CHECK_FUNCS(getpwnam)])
no, it's not necessary.
The code ``AC_CHECK_FUNCS(getmntent)'' was there only to set the shell
variable ac_cv_func_getmntent which may some configure.ac's make use of.
No such backward compatibility requirement is here for getpwnam.
We don't even have to define HAVE_GETPWNAM. The only requirement is
to put -lsun to the LIBS if necessary.
> I suspect there may need to be a separate test to see if the entry
> points are in the default libraries before looking to add new libraries
> to the LIBS list. That would seem to be the general fix for supporting a
> system such as UNICOS that does not seem to do what you want it to do.
> However, it is not clear to me as to what changes are needed in autoconf
> to deal with this situation in a complete manner.
You are right that the autoconf programmers probably haven't thought much
about the situation.
Perhaps the right solution would be to grep for the message in the
compilers output and taking it as a failure if the message is found.
Regards,
Stepan Kasal
- 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, 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 <=
- [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