autoconf
[Top][All Lists]
Advanced

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

Re: Question about AC_TRY_LINK_FUNC


From: Eric Blake
Subject: Re: Question about AC_TRY_LINK_FUNC
Date: Tue, 21 Dec 2010 08:20:02 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7

On 12/21/2010 08:02 AM, Sergio Belkin wrote:
> Hi,
> 
> The question is simple, altough the answer it's no so, what does
> AC_TRY_LINK_FUNC macro do?

It's a deprecated wrapper around the modern AC_LINK_IFELSE macro.  It
basically tests whether a symbol (global variable or function) exists in
the set of libraries passed in $LIBS, even if that symbol is not
declared in any system header files.  Based on the compiler results, it
then runs shell code snippets that you can use to affect subsequent
AC_SUBST or AC_DEFINE patterns to propagate that information on to the
rest of your package.  Did you have any more specific details about what
you were trying to figure out about the macro?

-- 
Eric Blake   address@hidden    +1-801-349-2682
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]