autoconf
[Top][All Lists]
Advanced

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

Re: Question about ac_lib and ac_res


From: Eric Blake
Subject: Re: Question about ac_lib and ac_res
Date: Thu, 18 Oct 2012 10:23:01 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121009 Thunderbird/16.0

On 10/18/2012 10:11 AM, Sergio Belkin wrote:
> 
> Thanks for you explanation, I didn''t understand well what does "none
> required".
> 
> I've found "The result of this test is cached in the
> ac_cv_search_function variable as ‘none required’ if function is
> already available" at
> http://www.manpagez.com/info/autoconf/autoconf-2.69/autoconf_46.php
> 
> So I understand that function was found in the library searched on in
> another in the system, wasn't it?

For an example, on cygwin, sin() is in libc, but on other platforms, you
have to use libm to get sin().  So:

AC_SEARCH_LIBS([sin], [m])

will set ac_cv_search_sin to 'none required' on cygwin, and '-lm' on
other platforms.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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