autoconf
[Top][All Lists]
Advanced

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

Detect Autoconf run in preprocessor?


From: Jeffrey Walton
Subject: Detect Autoconf run in preprocessor?
Date: Fri, 15 Jul 2016 14:06:41 -0400

We are trying to find a solution for
http://lists.gnu.org/archive/html/autoconf/2016-07/msg00003.html.

We are contemplating detecting an Autoconf run in the preprocessor,
and then (if its Autoconf) disabling the test that triggers the
'#error`.

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.

Thanks in advance.



reply via email to

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