[MPlayer-cvslog] r27240 - trunk/configure

diego subversion at mplayerhq.hu
Tue Jul 8 18:11:58 CEST 2008


Author: diego
Date: Tue Jul  8 18:11:58 2008
New Revision: 27240

Log:
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.


Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Tue Jul  8 18:11:58 2008
@@ -7542,6 +7542,7 @@ cat > $TMPC << EOF
 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"



More information about the MPlayer-cvslog mailing list