autoconf-patches
[Top][All Lists]
Advanced

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

Re: [PATCH v2 1/3] autoconf: prefer an unrolled loop for trivial AC_CHEC


From: Eric Blake
Subject: Re: [PATCH v2 1/3] autoconf: prefer an unrolled loop for trivial AC_CHECK_FUNCS
Date: Thu, 3 Nov 2016 08:32:22 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

On 11/02/2016 08:28 PM, Eric Blake wrote:

>> How would you do that?  You would have to expand before the first
>> AC_CHECK_FUNC_ONCE, but you do not have a diversion there (you might
>> need one per language, in fact).
> 

>   Oh, and you're right that N would have to be a
> per-language offset.

Hmm. As it is, we have a bug if you attempt to use AC_CHECK_FUNCS_ONCE
across multiple languages.  Only the first language actually checks,
because we define only a single one-shot _AC_FUNCS_EXPANSION rather than
one per language.  I'll fix that first, but I guess the fact that no one
has reported it means few people use the macro for anything other than
C, rather than for mixed-language projects.

-- 
Eric Blake   eblake redhat com    +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]