Re: Detect Autoconf run in preprocessor?

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

 



On 07/15/2016 01:00 PM, Jeffrey Walton wrote:

>> 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.
> 
> Perfect, thanks.
> 
> Can the Autoconf folks recommend a name for the define? Maybe
> something like GNU_AUTOCONF or similar?

The point of autoconf is to probe what your system behaves like when
autoconf is not running.  If you are writing headers that specifically
behave differently during configure than they do in normal usage, that
goes contrary to the goal of autoconf.  I don't quite know what problem
you are up against, but the best autoconf tests are the ones written as
close to normal usage as possible, not ones that specifically try to
circumvent normality.


-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://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