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: Chris Pickett
Subject: Re: strdup falsely detected when CFLAGS contains -ansi on MSYS/MinGW (gcc)
Date: Tue, 06 Jan 2009 14:43:16 -0500
User-agent: Thunderbird 1.5.0.14 (Macintosh/20071210)

Eric Blake wrote:
-----BEGIN PGP SIGNED MESSAGE-----
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.

I tried the following:

--- a/lib/autoconf/specific.m4
+++ b/lib/autoconf/specific.m4
@@ -410,6 +410,10 @@ dnl configure.ac when using autoheader 2.62.
 #ifndef _GNU_SOURCE
 # undef _GNU_SOURCE
 #endif
+/* Disable strict ansi compliance */
+#ifdef __STRICT_ANSI__
+# undef __STRICT_ANSI__
+#endif
 /* Enable threading extensions on Solaris.  */
 #ifndef _POSIX_PTHREAD_SEMANTICS
 # undef _POSIX_PTHREAD_SEMANTICS

and in config.h.in it gives:

/* Disable strict ansi compliance */


#ifdef __STRICT_ANSI__


# undef __STRICT_ANSI__


#endif



but in config.h I get:

/* Disable strict ansi compliance */
#ifdef __STRICT_ANSI__
/* # undef __STRICT_ANSI__ */
#endif

Cheers,
Chris




reply via email to

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