Re: Question about AC_SEARCH_LIBS ([other-libraries] argument)

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

 



Hello Daniel

* Daniel Leidert wrote on Tue, Oct 23, 2007 at 06:28:16AM CEST:
> 
> The AC_SEARCH_LIBS accepts an argument to link with additional libraries
> given in that argument. Reading the code in autoconf/libs.m4 makes me
> think, that only the library, that contains the function I'm looking
> for, is added to LIBS if the test succeeeds. But even if
> [other-libraries] are given and necessary, they are not added. So I have
> to manually add them to LIBS in [action-if-found]. Is that right?

Yes, that is right.  If those additional libraries also need individual
tests done for them, then do them beforehand, and add them to LIBS after
their tests.  IOW: in that case you would only need the OTHER-LIBRARIES
argument to satisfy some link ordering constraint if at all.

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux