bug-autoconf
[Top][All Lists]
Advanced

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

Re: BUG: autoconf 2.59 problem in macro AC_SEARCH_LIBS in libs.m4


From: Thomas Steudten
Subject: Re: BUG: autoconf 2.59 problem in macro AC_SEARCH_LIBS in libs.m4
Date: Mon, 21 Jun 2004 10:45:07 +0200

Maybe. However if someone uses AC_SEARCH_LIBS to find a library
he expects the value $ac_cv_search_XX to contains -lLIB, LIB the
library to link with (eg rt for coreutils). If no library
is required, you don't need to link with one and
$ac_cv_search_XX should be empty.
The string "none required" is only nice for output from
configure, but not helpful to link with ;-)

The "problem" is the same for other libs, like crypt. With
this, there's is a library required, so the string "none
required" isn't set.
I think it's easier to fix autoconf, instead of rewriting
a lot of source code.
My patch gives the "status" output "none required", and
the $ac_ value is empty as expected.

Paul Eggert wrote:

I think this is considered to be a bug in older versions of coreutils,
not in Autoconf.  Recent coreutils do this:

 AC_SEARCH_LIBS([nanosleep], [rt posix4],
                [test "$ac_cv_search_nanosleep" = "none required" ||
                 LIB_NANOSLEEP=$ac_cv_search_nanosleep])

--
Tom

LINUX user since kernel 0.99.x 1994.
RPM Alpha packages at http://alpha.steudten.com/packages
Want to know what S.u.S.E 1995 cdrom-set contains?






reply via email to

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