Re: Detect Autoconf run in preprocessor?

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

 



On Fri, Jul 15, 2016 at 3:15 PM, Eric Blake <eblake@xxxxxxxxxx> wrote:
> 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.

OK, thanks.

I fear my Autotools ignorance is hindering efforts to get this fixed.
I'm going to ask Pablo to work with you guys on a solution.

Jeff

_______________________________________________
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