summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-08 16:11:58 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-08 16:11:58 +0000
commit86f66849c1ef05527a88268e4f520c8d1383a959 (patch)
tree4696f098fd163a9c9d0750de878fcb765f46cef0 /configure
parent3e1c882458f75e963965a6a34c6702ac88d533d3 (diff)
downloadmpv-86f66849c1ef05527a88268e4f520c8d1383a959.tar.bz2
mpv-86f66849c1ef05527a88268e4f520c8d1383a959.tar.xz
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27240 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index b365310d70..f3954135c4 100755
--- a/configure
+++ b/configure
@@ -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"