Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3097:3ba362513202 HEAD
Don't use -std=gnu99 if gcc doesn't support it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 15 Jan 2005 15:43:44 +0200 |
parents | 65b2d1ec3596 |
children | 80f7ea6aa94c |
files | configure.in |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in Sat Jan 15 15:09:27 2005 +0200 +++ b/configure.in Sat Jan 15 15:43:44 2005 +0200 @@ -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"