Hello,

On Sun, Oct 08, 2006 at 02:16:00PM +0200, Thomas Schwinge wrote:
> $ grep FOO config.h
> /* FOO 1 */
> #define FOO 0
...
> The _first_ definition (i.e. `FOO=0') will be used.

this bug was fixed in the latest release.  With ./configure generated
by Autoconf 2.60, you get:

/* FOO 1 */
#define FOO 1

So the last value set by AC_DEFINE is used.

But even though the fix was intentional, this behaviour is still
undocumented, so the more important part of the answer is what Paul
said: do not do that.

In detail:
1) The third parameter, the description, is read by autoheader, when
it is creating config.h.in, and it should be the same for all calls.
2) During the execution of ./configure, only one instance of
AC_DEFINE should be reached.

Have a nice day,
        Stepan Kasal


_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to