configure
changeset 8910 c23ffe72934c
parent 8893 37a88e757435
child 8922 dfb6f8611ebe
     1.1 --- a/configure	Sun Jun 22 10:05:59 2014 -0700
     1.2 +++ b/configure	Sun Jun 22 11:02:56 2014 -0700
     1.3 @@ -18684,6 +18684,43 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +CheckWarnShadow()
     1.8 +{
     1.9 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wshadow option" >&5
    1.10 +$as_echo_n "checking for GCC -Wshadow option... " >&6; }
    1.11 +    have_gcc_Wshadow=no
    1.12 +
    1.13 +    save_CFLAGS="$CFLAGS"
    1.14 +    CFLAGS="$save_CFLAGS -Wshadow"
    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_Wshadow=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_Wshadow" >&5
    1.36 +$as_echo "$have_gcc_Wshadow" >&6; }
    1.37 +    CFLAGS="$save_CFLAGS"
    1.38 +
    1.39 +    if test x$have_gcc_Wshadow = xyes; then
    1.40 +        EXTRA_CFLAGS="$EXTRA_CFLAGS -Wshadow"
    1.41 +    fi
    1.42 +}
    1.43 +
    1.44  CheckWayland()
    1.45  {
    1.46      # Check whether --enable-video-wayland was given.
    1.47 @@ -23337,6 +23374,7 @@
    1.48  esac
    1.49  
    1.50  CheckWarnAll
    1.51 +#CheckWarnShadow
    1.52  
    1.53  # Verify that we have all the platform specific files we need
    1.54