bug-autoconf
[Top][All Lists]
Advanced

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

Re: strdup falsely detected when CFLAGS contains -ansi on MSYS/MinGW (gc


From: Eric Blake
Subject: Re: strdup falsely detected when CFLAGS contains -ansi on MSYS/MinGW (gcc)
Date: Tue, 06 Jan 2009 06:01:55 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.5.666

-----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             address@hidden
-----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

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