# HG changeset patch # User diego # Date 1215533518 0 # Node ID 1a054f6972187ae1d7285edc7b9259fec0e747ab # Parent e1c5299a411495251c8e58b547e1690133538bf9 Add -std=gnu99 to gcc CFLAGS if supported. This sets appropriate #defines to avoid a bunch of implicit declaration warnings in (g)libc headers that define certain functions conditional to those #defines. diff -r e1c5299a4114 -r 1a054f697218 configure --- a/configure Tue Jul 08 15:55:32 2008 +0000 +++ b/configure Tue Jul 08 16:11:58 2008 +0000 @@ -7542,6 +7542,7 @@ int main(void) { return 0; } EOF if test "$cc_vendor" = "gnu" ; then + cc_check -std=gnu99 && CFLAGS="-std=gnu99 $CFLAGS" cc_check -Wdeclaration-after-statement && CFLAGS="-Wdeclaration-after-statement $CFLAGS" cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS" cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS"