-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Chris Pickett on 1/6/2009 12:24 AM:
> I looked at lib/autoconf/specific.m4 and read the manual on Autoheader
> macros, and it seems like this isn't easy.  We want:
> 
> #ifdef __STRICT_ANSI__
> # undef __STRICT_ANSI__
> #endif
> 
> to be generated in config.h (or rather, I claim that we want that), but
> any #undef in config.h gets either turned into a #define or commented out!

You need a use of AH_VERBATIM, then.

> 
>    `Currently, _all_ remaining `#undef' lines in the header template are
> commented out, whether or not there was a corresponding `AC_DEFINE' for
> the macro name; but this behavior is not guaranteed for future releases
> of Autoconf.'

This paragraph needs to be cleaned up a bit, to make it clear that text
supplied by AH_VERBATIM falls under different rules than text supplied by
the config.h.in template file.

> 
> Can it be done safely with a call to AH_BOTTOM inside
> AC_USE_SYSTEM_EXTENSIONS?

AH_BOTTOM is not quite right.  But it seems like the existing AH_VERBATIM
already in AC_USE_SYSTEM_EXTENSIONS would be the right place to experiment
with this.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkljVkMACgkQ84KuGfSFAYDRxgCePZ3HZmjPfY0jYt/a0w3jrb1Z
YDsAoIgwGSNQCIvrPS5a7iZYiSM1OVE+
=7p+l
-----END PGP SIGNATURE-----


Reply via email to