configure.in
changeset 9768 fd870d4520be
parent 9718 d5955671f259
child 9785 6e87ae760e6d
equal deleted inserted replaced
9767:3622b6b734ac 9768:fd870d4520be
  1157             EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  1157             EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  1158         fi
  1158         fi
  1159     fi
  1159     fi
  1160 }
  1160 }
  1161 
  1161 
  1162 dnl See if GCC's -Wshadow is supported.
       
  1163 CheckWarnShadow()
       
  1164 {
       
  1165     AC_MSG_CHECKING(for GCC -Wshadow option)
       
  1166     have_gcc_Wshadow=no
       
  1167 
       
  1168     save_CFLAGS="$CFLAGS"
       
  1169     CFLAGS="$save_CFLAGS -Wshadow"
       
  1170     AC_TRY_COMPILE([
       
  1171     int x = 0;
       
  1172     ],[
       
  1173     ],[
       
  1174     have_gcc_Wshadow=yes
       
  1175     ])
       
  1176     AC_MSG_RESULT($have_gcc_Wshadow)
       
  1177     CFLAGS="$save_CFLAGS"
       
  1178 
       
  1179     if test x$have_gcc_Wshadow = xyes; then
       
  1180         EXTRA_CFLAGS="$EXTRA_CFLAGS -Wshadow"
       
  1181     fi
       
  1182 }
       
  1183 
       
  1184 dnl Check for Wayland
  1162 dnl Check for Wayland
  1185 CheckWayland()
  1163 CheckWayland()
  1186 {
  1164 {
  1187     AC_ARG_ENABLE(video-wayland,
  1165     AC_ARG_ENABLE(video-wayland,
  1188 AC_HELP_STRING([--enable-video-wayland], [use Wayland video driver [[default=yes]]]),
  1166 AC_HELP_STRING([--enable-video-wayland], [use Wayland video driver [[default=yes]]]),
  3413         ;;
  3391         ;;
  3414 esac
  3392 esac
  3415 
  3393 
  3416 dnl Do this on all platforms, after everything else.
  3394 dnl Do this on all platforms, after everything else.
  3417 CheckWarnAll
  3395 CheckWarnAll
  3418 CheckWarnShadow
       
  3419 
  3396 
  3420 # Verify that we have all the platform specific files we need
  3397 # Verify that we have all the platform specific files we need
  3421 
  3398 
  3422 if test x$have_joystick != xyes; then
  3399 if test x$have_joystick != xyes; then
  3423     if test x$enable_joystick = xyes; then
  3400     if test x$enable_joystick = xyes; then