configure
changeset 10009 8c6b05b0a27e
parent 9989 b01c5397d489
child 10043 24e8d042e532
     1.1 --- a/configure	Mon Jan 04 22:00:04 2016 -0500
     1.2 +++ b/configure	Mon Jan 04 22:58:38 2016 -0500
     1.3 @@ -18650,6 +18650,43 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +CheckDeclarationAfterStatement()
     1.8 +{
     1.9 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
    1.10 +$as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
    1.11 +    have_gcc_declaration_after_statement=no
    1.12 +
    1.13 +    save_CFLAGS="$CFLAGS"
    1.14 +    CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
    1.15 +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.16 +/* end confdefs.h.  */
    1.17 +
    1.18 +    int x = 0;
    1.19 +
    1.20 +int
    1.21 +main ()
    1.22 +{
    1.23 +
    1.24 +
    1.25 +  ;
    1.26 +  return 0;
    1.27 +}
    1.28 +_ACEOF
    1.29 +if ac_fn_c_try_compile "$LINENO"; then :
    1.30 +
    1.31 +    have_gcc_declaration_after_statement=yes
    1.32 +
    1.33 +fi
    1.34 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.35 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
    1.36 +$as_echo "$have_gcc_declaration_after_statement" >&6; }
    1.37 +    CFLAGS="$save_CFLAGS"
    1.38 +
    1.39 +    if test x$have_gcc_declaration_after_statement = xyes; then
    1.40 +        EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
    1.41 +    fi
    1.42 +}
    1.43 +
    1.44  CheckWarnAll()
    1.45  {
    1.46      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
    1.47 @@ -22894,6 +22931,8 @@
    1.48  
    1.49  }
    1.50  
    1.51 +CheckWarnAll
    1.52 +
    1.53  case "$host" in
    1.54      *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
    1.55          case "$host" in
    1.56 @@ -22962,6 +23001,7 @@
    1.57              *-*-minix*)         ARCH=minix ;;
    1.58          esac
    1.59          CheckVisibilityHidden
    1.60 +        CheckDeclarationAfterStatement
    1.61          CheckDummyVideo
    1.62          CheckDiskAudio
    1.63          CheckDummyAudio
    1.64 @@ -23392,6 +23432,7 @@
    1.65          ARCH=ios
    1.66  
    1.67          CheckVisibilityHidden
    1.68 +        CheckDeclarationAfterStatement
    1.69          CheckDummyVideo
    1.70          CheckDiskAudio
    1.71          CheckDummyAudio
    1.72 @@ -23461,6 +23502,7 @@
    1.73          EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
    1.74  
    1.75          CheckVisibilityHidden
    1.76 +        CheckDeclarationAfterStatement
    1.77          CheckDummyVideo
    1.78          CheckDiskAudio
    1.79          CheckDummyAudio
    1.80 @@ -23581,6 +23623,7 @@
    1.81          fi
    1.82  
    1.83          CheckVisibilityHidden
    1.84 +        CheckDeclarationAfterStatement
    1.85          CheckDummyVideo
    1.86          CheckDiskAudio
    1.87          CheckDummyAudio
    1.88 @@ -23630,8 +23673,6 @@
    1.89          ;;
    1.90  esac
    1.91  
    1.92 -CheckWarnAll
    1.93 -
    1.94  # Verify that we have all the platform specific files we need
    1.95  
    1.96  if test x$have_joystick != xyes; then