configure.in
changeset 5975 516c5c4e7bea
parent 5969 3a041d215edc
child 5989 cd688ba5b7d4
equal deleted inserted replaced
5974:13e67468b846 5975:516c5c4e7bea
   934     AC_MSG_RESULT($have_gcc_fvisibility)
   934     AC_MSG_RESULT($have_gcc_fvisibility)
   935     CFLAGS="$save_CFLAGS"
   935     CFLAGS="$save_CFLAGS"
   936 
   936 
   937     if test x$have_gcc_fvisibility = xyes; then
   937     if test x$have_gcc_fvisibility = xyes; then
   938         EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
   938         EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
       
   939     fi
       
   940 }
       
   941 
       
   942 dnl See if GCC's -Wall is supported.
       
   943 CheckWarnAll()
       
   944 {
       
   945     AC_MSG_CHECKING(for GCC -Wall option)
       
   946     have_gcc_Wall=no
       
   947 
       
   948     save_CFLAGS="$CFLAGS"
       
   949     CFLAGS="$save_CFLAGS -Wall"
       
   950     AC_TRY_COMPILE([
       
   951     int x = 0;
       
   952     ],[
       
   953     ],[
       
   954     have_gcc_Wall=yes
       
   955     ])
       
   956     AC_MSG_RESULT($have_gcc_Wall)
       
   957     CFLAGS="$save_CFLAGS"
       
   958 
       
   959     if test x$have_gcc_Wall = xyes; then
       
   960         EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
   939     fi
   961     fi
   940 }
   962 }
   941 
   963 
   942 
   964 
   943 dnl Find the X11 include and library directories
   965 dnl Find the X11 include and library directories
  2354 *** Unsupported host:  Please add to configure.in
  2376 *** Unsupported host:  Please add to configure.in
  2355         ])
  2377         ])
  2356         ;;
  2378         ;;
  2357 esac
  2379 esac
  2358 
  2380 
       
  2381 dnl Do this on all platforms, after everything else.
       
  2382 CheckWarnAll
       
  2383 
  2359 # Verify that we have all the platform specific files we need
  2384 # Verify that we have all the platform specific files we need
  2360 
  2385 
  2361 if test x$have_joystick != xyes; then
  2386 if test x$have_joystick != xyes; then
  2362     if test x$enable_joystick = xyes; then
  2387     if test x$enable_joystick = xyes; then
  2363         AC_DEFINE(SDL_JOYSTICK_DISABLED, 1, [ ])
  2388         AC_DEFINE(SDL_JOYSTICK_DISABLED, 1, [ ])