[Top][All Lists]

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

Re: AC_GNU_SOURCE is nearly unusable

From: Paul Eggert
Subject: Re: AC_GNU_SOURCE is nearly unusable
Date: 08 Nov 2003 08:12:52 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

The typical workaround for this problem is for configure.ac to invoke
AC_GNU_SOURCE explicitly, before any occurrence of any macro that
might call AC_CHECK_HEADERS etc.  This is a bit annoying, but it works
adequately in practice and I wouldn't call it "nearly unusable".

Bruno Haible <address@hidden> writes:

> I suggest that AC_GNU_SOURCE itself puts its expansion
> into the INIT_PREPARE diversion (or shortly afterwards, but before
> the BODY diversion), where it will take effect early enough.

This sounds reasonable, but it should be generalized a bit; there are
other macros like AC_GNU_SOURCE, and perhaps there are other ways to
use this idea.  (I'll defer the rest of the thinking about this to the
real autoconf experts.  :-)

reply via email to

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