[dovecot-cvs] dovecot configure.in,1.195,1.196
cras at dovecot.org
cras at dovecot.org
Sat Jan 15 15:43:46 EET 2005
Update of /var/lib/cvs/dovecot
In directory talvi:/tmp/cvs-serv23635
Modified Files:
configure.in
Log Message:
Don't use -std=gnu99 if gcc doesn't support it.
Index: configure.in
===================================================================
RCS file: /var/lib/cvs/dovecot/configure.in,v
retrieving revision 1.195
retrieving revision 1.196
diff -u -d -r1.195 -r1.196
--- configure.in 13 Jan 2005 13:37:09 -0000 1.195
+++ configure.in 15 Jan 2005 13:43:44 -0000 1.196
@@ -234,6 +234,16 @@
# -Wmissing-format-attribute -Wmissing-noreturn -Wwrite-strings # a couple of warnings
CFLAGS="$CFLAGS -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast"
+ # Use std=gnu99 if we have new enough gcc
+ old_cflags=$CFLAGS
+ CFLAGS="-std=gnu99"
+ AC_TRY_COMPILE([
+ ],, [
+ CFLAGS="$CFLAGS $old_cflags"
+ ], [
+ CFLAGS="$old_cflags"
+ ])
+
# say specifically that we want C99 features.
# we can make use of GNU features as well, so don't use -std=c99.
CFLAGS="$CFLAGS -std=gnu99"
More information about the dovecot-cvs
mailing list