autoconf
[Top][All Lists]
Advanced

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

Re: Detect Autoconf run in preprocessor?


From: Eric Blake
Subject: Re: Detect Autoconf run in preprocessor?
Date: Fri, 15 Jul 2016 12:56:19 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 07/15/2016 12:47 PM, Jeffrey Walton wrote:
> On Fri, Jul 15, 2016 at 2:35 PM, Bob Friesenhahn
> <address@hidden> wrote:
>> On Fri, 15 Jul 2016, Jeffrey Walton wrote:
>>>
>>>
>>> Is there a preprocessor macro defined by Autotools to detect when
>>> software is being configured by the tool? My apologies for asking; I
>>> cannot simply run `g++ -dM -E - </dev/null` because it will lack
>>> Autoconf specific defines.
>>
>>
>> Everything that Autoconf defines should be visible in the generated
>> config.log file.  The source for each test case is included.
> 
> Thanks. I'll have to ask the person for it.
> 
> But getting back to Autoconf defines, is there a preprocessor define
> that Autoconf uses to identify itself?

Autoconf does not define anything specific. You can write an early
AC_DEFINE in your configure.ac to trigger a specific witness used in all
subsequent probes, but that's a per-package solution.

-- 
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]