configure.in
changeset 5548 8f0abb6ef37d
parent 5512 56ab281d7d3e
child 5557 c1ed57cbfd66
     1.1 --- a/configure.in	Fri Jun 03 16:03:10 2011 -0400
     1.2 +++ b/configure.in	Sat Jun 04 15:26:02 2011 -0400
     1.3 @@ -3,6 +3,7 @@
     1.4  AC_CONFIG_HEADER(include/SDL_config.h)
     1.5  AC_GNU_SOURCE
     1.6  AC_CONFIG_AUX_DIRS($srcdir/build-scripts)
     1.7 +AC_CONFIG_MACRO_DIR([acinclude])
     1.8  
     1.9  dnl Save the CFLAGS to see whether they were passed in or generated
    1.10  orig_CFLAGS="$CFLAGS"
    1.11 @@ -146,16 +147,16 @@
    1.12      auto) # Use optimization settings to determine assertion level
    1.13          ;;
    1.14      disabled)
    1.15 -        AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 0)
    1.16 +        AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 0, [ ])
    1.17          ;;
    1.18      release)
    1.19 -        AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 1)
    1.20 +        AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 1, [ ])
    1.21          ;;
    1.22      enabled)
    1.23 -        AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 2)
    1.24 +        AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 2, [ ])
    1.25          ;;
    1.26      paranoid)
    1.27 -        AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 3)
    1.28 +        AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 3, [ ])
    1.29          ;;
    1.30      *)
    1.31          AC_MSG_ERROR([*** unknown assertion level. stop.])
    1.32 @@ -190,7 +191,7 @@
    1.33  AC_HELP_STRING([--enable-libc], [Use the system C library [[default=yes]]]),
    1.34                , enable_libc=yes)
    1.35  if test x$enable_libc = xyes; then
    1.36 -    AC_DEFINE(HAVE_LIBC)
    1.37 +    AC_DEFINE(HAVE_LIBC, 1, [ ])
    1.38  
    1.39      dnl Check for C library headers
    1.40      AC_HEADER_STDC
    1.41 @@ -213,11 +214,11 @@
    1.42  
    1.43      AC_FUNC_MEMCMP
    1.44      if test x$ac_cv_func_memcmp_working = xyes; then
    1.45 -        AC_DEFINE(HAVE_MEMCMP)
    1.46 +        AC_DEFINE(HAVE_MEMCMP, 1, [ ])
    1.47      fi
    1.48      AC_FUNC_STRTOD
    1.49      if test x$ac_cv_func_strtod = xyes; then
    1.50 -        AC_DEFINE(HAVE_STRTOD)
    1.51 +        AC_DEFINE(HAVE_STRTOD, 1, [ ])
    1.52      fi
    1.53      AC_CHECK_FUNC(mprotect,
    1.54          AC_TRY_COMPILE([
    1.55 @@ -225,7 +226,7 @@
    1.56            #include <sys/mman.h>
    1.57          ],[
    1.58          ],[
    1.59 -        AC_DEFINE(HAVE_MPROTECT)
    1.60 +        AC_DEFINE(HAVE_MPROTECT, 1, [ ])
    1.61          ]),
    1.62      )
    1.63      AC_CHECK_FUNCS(malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf sigaction setjmp nanosleep sysconf sysctlbyname)
    1.64 @@ -262,7 +263,7 @@
    1.65      AC_MSG_RESULT($have_gcc_atomics)
    1.66  
    1.67      if test x$have_gcc_atomics = xyes; then
    1.68 -        AC_DEFINE(HAVE_GCC_ATOMICS)
    1.69 +        AC_DEFINE(HAVE_GCC_ATOMICS, 1, [ ])
    1.70      else
    1.71          # See if we have the minimum operation needed for GCC atomics
    1.72          AC_TRY_LINK([
    1.73 @@ -274,7 +275,7 @@
    1.74          have_gcc_sync_lock_test_and_set=yes
    1.75          ])
    1.76          if test x$have_gcc_sync_lock_test_and_set = xyes; then
    1.77 -            AC_DEFINE(HAVE_GCC_SYNC_LOCK_TEST_AND_SET)
    1.78 +            AC_DEFINE(HAVE_GCC_SYNC_LOCK_TEST_AND_SET, 1, [ ])
    1.79          fi
    1.80      fi
    1.81  fi
    1.82 @@ -299,37 +300,37 @@
    1.83  AC_HELP_STRING([--enable-atomic], [Enable the atomic operations subsystem [[default=yes]]]),
    1.84                , enable_atomic=yes)
    1.85  if test x$enable_atomic != xyes; then
    1.86 -    AC_DEFINE(SDL_ATOMIC_DISABLED)
    1.87 +    AC_DEFINE(SDL_ATOMIC_DISABLED, 1, [ ])
    1.88  fi
    1.89  AC_ARG_ENABLE(audio,
    1.90  AC_HELP_STRING([--enable-audio], [Enable the audio subsystem [[default=yes]]]),
    1.91                , enable_audio=yes)
    1.92  if test x$enable_audio != xyes; then
    1.93 -    AC_DEFINE(SDL_AUDIO_DISABLED)
    1.94 +    AC_DEFINE(SDL_AUDIO_DISABLED, 1, [ ])
    1.95  fi
    1.96  AC_ARG_ENABLE(video,
    1.97  AC_HELP_STRING([--enable-video], [Enable the video subsystem [[default=yes]]]),
    1.98                , enable_video=yes)
    1.99  if test x$enable_video != xyes; then
   1.100 -    AC_DEFINE(SDL_VIDEO_DISABLED)
   1.101 +    AC_DEFINE(SDL_VIDEO_DISABLED, 1, [ ])
   1.102  fi
   1.103  AC_ARG_ENABLE(render,
   1.104  AC_HELP_STRING([--enable-render], [Enable the render subsystem [[default=yes]]]),
   1.105                , enable_render=yes)
   1.106  if test x$enable_render != xyes; then
   1.107 -    AC_DEFINE(SDL_RENDER_DISABLED)
   1.108 +    AC_DEFINE(SDL_RENDER_DISABLED, 1, [ ])
   1.109  fi
   1.110  AC_ARG_ENABLE(events,
   1.111  AC_HELP_STRING([--enable-events], [Enable the events subsystem [[default=yes]]]),
   1.112                , enable_events=yes)
   1.113  if test x$enable_events != xyes; then
   1.114 -    AC_DEFINE(SDL_EVENTS_DISABLED)
   1.115 +    AC_DEFINE(SDL_EVENTS_DISABLED, 1, [ ])
   1.116  fi
   1.117  AC_ARG_ENABLE(joystick,
   1.118  AC_HELP_STRING([--enable-joystick], [Enable the joystick subsystem [[default=yes]]]),
   1.119                , enable_joystick=yes)
   1.120  if test x$enable_joystick != xyes; then
   1.121 -    AC_DEFINE(SDL_JOYSTICK_DISABLED)
   1.122 +    AC_DEFINE(SDL_JOYSTICK_DISABLED, 1, [ ])
   1.123  else
   1.124      SOURCES="$SOURCES $srcdir/src/joystick/*.c"
   1.125  fi
   1.126 @@ -337,7 +338,7 @@
   1.127  AC_HELP_STRING([--enable-haptic], [Enable the haptic (force feedback) subsystem [[default=yes]]]),
   1.128                , enable_haptic=yes)
   1.129  if test x$enable_haptic != xyes; then
   1.130 -    AC_DEFINE(SDL_HAPTIC_DISABLED)
   1.131 +    AC_DEFINE(SDL_HAPTIC_DISABLED, 1, [ ])
   1.132  else
   1.133      SOURCES="$SOURCES $srcdir/src/haptic/*.c"
   1.134  fi
   1.135 @@ -345,7 +346,7 @@
   1.136  AC_HELP_STRING([--enable-power], [Enable the power subsystem [[default=yes]]]),
   1.137                , enable_power=yes)
   1.138  if test x$enable_power != xyes; then
   1.139 -    AC_DEFINE(SDL_POWER_DISABLED)
   1.140 +    AC_DEFINE(SDL_POWER_DISABLED, 1, [ ])
   1.141  else
   1.142      SOURCES="$SOURCES $srcdir/src/power/*.c"
   1.143  fi
   1.144 @@ -353,43 +354,43 @@
   1.145  AC_HELP_STRING([--enable-threads], [Enable the threading subsystem [[default=yes]]]),
   1.146                , enable_threads=yes)
   1.147  if test x$enable_threads != xyes; then
   1.148 -    AC_DEFINE(SDL_THREADS_DISABLED)
   1.149 +    AC_DEFINE(SDL_THREADS_DISABLED, 1, [ ])
   1.150  fi
   1.151  AC_ARG_ENABLE(timers,
   1.152  AC_HELP_STRING([--enable-timers], [Enable the timer subsystem [[default=yes]]]),
   1.153                , enable_timers=yes)
   1.154  if test x$enable_timers != xyes; then
   1.155 -    AC_DEFINE(SDL_TIMERS_DISABLED)
   1.156 +    AC_DEFINE(SDL_TIMERS_DISABLED, 1, [ ])
   1.157  fi
   1.158  AC_ARG_ENABLE(file,
   1.159  AC_HELP_STRING([--enable-file], [Enable the file subsystem [[default=yes]]]),
   1.160                , enable_file=yes)
   1.161  if test x$enable_file != xyes; then
   1.162 -    AC_DEFINE(SDL_FILE_DISABLED)
   1.163 +    AC_DEFINE(SDL_FILE_DISABLED, 1, [ ])
   1.164  fi
   1.165  AC_ARG_ENABLE(loadso,
   1.166  AC_HELP_STRING([--enable-loadso], [Enable the shared object loading subsystem [[default=yes]]]),
   1.167                , enable_loadso=yes)
   1.168  if test x$enable_loadso != xyes; then
   1.169 -    AC_DEFINE(SDL_LOADSO_DISABLED)
   1.170 +    AC_DEFINE(SDL_LOADSO_DISABLED, 1, [ ])
   1.171  fi
   1.172  AC_ARG_ENABLE(cpuinfo,
   1.173  AC_HELP_STRING([--enable-cpuinfo], [Enable the cpuinfo subsystem [[default=yes]]]),
   1.174                , enable_cpuinfo=yes)
   1.175  if test x$enable_cpuinfo != xyes; then
   1.176 -    AC_DEFINE(SDL_CPUINFO_DISABLED)
   1.177 +    AC_DEFINE(SDL_CPUINFO_DISABLED, 1, [ ])
   1.178  fi
   1.179  AC_ARG_ENABLE(atomic,
   1.180  AC_HELP_STRING([--enable-atomic], [Enable the atomic operations [[default=yes]]]),
   1.181                , enable_atomic=yes)
   1.182  if test x$enable_atomic != xyes; then
   1.183 -    AC_DEFINE(SDL_ATOMIC_DISABLED)
   1.184 +    AC_DEFINE(SDL_ATOMIC_DISABLED, 1, [ ])
   1.185  fi
   1.186  AC_ARG_ENABLE(assembly,
   1.187  AC_HELP_STRING([--enable-assembly], [Enable assembly routines [[default=yes]]]),
   1.188                , enable_assembly=yes)
   1.189  if test x$enable_assembly = xyes; then
   1.190 -    AC_DEFINE(SDL_ASSEMBLY_ROUTINES)
   1.191 +    AC_DEFINE(SDL_ASSEMBLY_ROUTINES, 1, [ ])
   1.192  
   1.193      # Make sure that we don't generate floating point code that would
   1.194      # cause illegal instruction exceptions on older processors
   1.195 @@ -619,9 +620,9 @@
   1.196          CFLAGS="$save_CFLAGS"
   1.197  
   1.198          if test x$have_gcc_altivec = xyes; then
   1.199 -            AC_DEFINE(SDL_ALTIVEC_BLITTERS)
   1.200 +            AC_DEFINE(SDL_ALTIVEC_BLITTERS, 1, [ ])
   1.201              if test x$have_altivec_h_hdr = xyes; then
   1.202 -              AC_DEFINE(HAVE_ALTIVEC_H)
   1.203 +              AC_DEFINE(HAVE_ALTIVEC_H, 1, [ ])
   1.204              fi
   1.205              EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
   1.206          fi
   1.207 @@ -653,12 +654,12 @@
   1.208                int arg = SNDCTL_DSP_SETFRAGMENT;
   1.209              ],[
   1.210              have_oss=yes
   1.211 -            AC_DEFINE(SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H)
   1.212 +            AC_DEFINE(SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H, 1, [ ])
   1.213              ])
   1.214          fi
   1.215          AC_MSG_RESULT($have_oss)
   1.216          if test x$have_oss = xyes; then
   1.217 -            AC_DEFINE(SDL_AUDIO_DRIVER_OSS)
   1.218 +            AC_DEFINE(SDL_AUDIO_DRIVER_OSS, 1, [ ])
   1.219              SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
   1.220              SOURCES="$SOURCES $srcdir/src/audio/dma/*.c"
   1.221              have_audio=yes
   1.222 @@ -690,7 +691,7 @@
   1.223                            , enable_alsa_shared=yes)
   1.224              alsa_lib=[`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`]
   1.225  
   1.226 -            AC_DEFINE(SDL_AUDIO_DRIVER_ALSA)
   1.227 +            AC_DEFINE(SDL_AUDIO_DRIVER_ALSA, 1, [ ])
   1.228              SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
   1.229              EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
   1.230              if test x$have_loadso != xyes && \
   1.231 @@ -700,7 +701,7 @@
   1.232              if test x$have_loadso = xyes && \
   1.233                 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
   1.234                  echo "-- dynamic libasound -> $alsa_lib"
   1.235 -                AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ALSA_DYNAMIC, "$alsa_lib")
   1.236 +                AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ALSA_DYNAMIC, "$alsa_lib", [ ])
   1.237              else
   1.238                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
   1.239              fi
   1.240 @@ -723,7 +724,7 @@
   1.241                            , enable_esd_shared=yes)
   1.242              esd_lib=[`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`]
   1.243  
   1.244 -            AC_DEFINE(SDL_AUDIO_DRIVER_ESD)
   1.245 +            AC_DEFINE(SDL_AUDIO_DRIVER_ESD, 1, [ ])
   1.246              SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
   1.247              EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
   1.248              if test x$have_loadso != xyes && \
   1.249 @@ -733,7 +734,7 @@
   1.250              if test x$have_loadso = xyes && \
   1.251                 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
   1.252                  echo "-- dynamic libesd -> $esd_lib"
   1.253 -                AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ESD_DYNAMIC, "$esd_lib")
   1.254 +                AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ESD_DYNAMIC, "$esd_lib", [ ])
   1.255              else
   1.256                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
   1.257              fi
   1.258 @@ -770,7 +771,7 @@
   1.259                            , enable_pulseaudio_shared=yes)
   1.260              pulseaudio_lib=[`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`]
   1.261  
   1.262 -            AC_DEFINE(SDL_AUDIO_DRIVER_PULSEAUDIO)
   1.263 +            AC_DEFINE(SDL_AUDIO_DRIVER_PULSEAUDIO, 1, [ ])
   1.264              SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
   1.265              EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
   1.266              if test x$have_loadso != xyes && \
   1.267 @@ -780,7 +781,7 @@
   1.268              if test x$have_loadso = xyes && \
   1.269                 test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
   1.270                  echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
   1.271 -                AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC, "$pulseaudio_lib")
   1.272 +                AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC, "$pulseaudio_lib", [ ])
   1.273              else
   1.274                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
   1.275              fi
   1.276 @@ -820,7 +821,7 @@
   1.277                                , enable_arts_shared=yes)
   1.278                  arts_lib=[`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`]
   1.279  
   1.280 -                AC_DEFINE(SDL_AUDIO_DRIVER_ARTS)
   1.281 +                AC_DEFINE(SDL_AUDIO_DRIVER_ARTS, 1, [ ])
   1.282                  SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
   1.283                  EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
   1.284                  if test x$have_loadso != xyes && \
   1.285 @@ -830,7 +831,7 @@
   1.286                  if test x$have_loadso = xyes && \
   1.287                     test x$enable_arts_shared = xyes && test x$arts_lib != x; then
   1.288                      echo "-- dynamic libartsc -> $arts_lib"
   1.289 -                    AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ARTS_DYNAMIC, "$arts_lib")
   1.290 +                    AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ARTS_DYNAMIC, "$arts_lib", [ ])
   1.291                  else
   1.292                      EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
   1.293                  fi
   1.294 @@ -879,12 +880,12 @@
   1.295              if test x$have_loadso = xyes && \
   1.296                 test x$enable_nas_shared = xyes && test x$nas_lib != x; then
   1.297                  echo "-- dynamic libaudio -> $nas_lib"
   1.298 -                AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_NAS_DYNAMIC, "$nas_lib")
   1.299 +                AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_NAS_DYNAMIC, "$nas_lib", [ ])
   1.300              else
   1.301                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
   1.302              fi
   1.303  
   1.304 -            AC_DEFINE(SDL_AUDIO_DRIVER_NAS)
   1.305 +            AC_DEFINE(SDL_AUDIO_DRIVER_NAS, 1, [ ])
   1.306              SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
   1.307              EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
   1.308              have_audio=yes
   1.309 @@ -899,7 +900,7 @@
   1.310  AC_HELP_STRING([--enable-diskaudio], [support the disk writer audio driver [[default=yes]]]),
   1.311                    , enable_diskaudio=yes)
   1.312      if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
   1.313 -        AC_DEFINE(SDL_AUDIO_DRIVER_DISK)
   1.314 +        AC_DEFINE(SDL_AUDIO_DRIVER_DISK, 1, [ ])
   1.315          SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
   1.316      fi
   1.317  }
   1.318 @@ -911,7 +912,7 @@
   1.319  AC_HELP_STRING([--enable-dummyaudio], [support the dummy audio driver [[default=yes]]]),
   1.320                    , enable_dummyaudio=yes)
   1.321      if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
   1.322 -        AC_DEFINE(SDL_AUDIO_DRIVER_DUMMY)
   1.323 +        AC_DEFINE(SDL_AUDIO_DRIVER_DUMMY, 1, [ ])
   1.324          SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
   1.325      fi
   1.326  }
   1.327 @@ -1005,7 +1006,7 @@
   1.328              CFLAGS="$CFLAGS $X_CFLAGS"
   1.329              LDFLAGS="$LDFLAGS $X_LIBS"
   1.330  
   1.331 -            AC_DEFINE(SDL_VIDEO_DRIVER_X11)
   1.332 +            AC_DEFINE(SDL_VIDEO_DRIVER_X11, 1, [ ])
   1.333              SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
   1.334              EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
   1.335  
   1.336 @@ -1027,8 +1028,8 @@
   1.337                 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
   1.338                  echo "-- dynamic libX11 -> $x11_lib"
   1.339                  echo "-- dynamic libX11ext -> $x11ext_lib"
   1.340 -                AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib")
   1.341 -                AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT, "$x11ext_lib")
   1.342 +                AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib", [ ])
   1.343 +                AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT, "$x11ext_lib", [ ])
   1.344              else
   1.345                  enable_x11_shared=no
   1.346                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
   1.347 @@ -1048,7 +1049,7 @@
   1.348                  if test x$have_xcursor_h_hdr = xyes; then
   1.349                      if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
   1.350                          echo "-- dynamic libXcursor -> $xcursor_lib"
   1.351 -                        AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR, "$xcursor_lib")
   1.352 +                        AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR, "$xcursor_lib", [ ])
   1.353                          definitely_enable_video_x11_xcursor=yes
   1.354                      else
   1.355                          AC_CHECK_LIB(Xcursor, XcursorImageCreate, have_xcursor_lib=yes)
   1.356 @@ -1060,7 +1061,7 @@
   1.357                  fi
   1.358              fi
   1.359              if test x$definitely_enable_video_x11_xcursor = xyes; then
   1.360 -                AC_DEFINE(SDL_VIDEO_DRIVER_X11_XCURSOR)
   1.361 +                AC_DEFINE(SDL_VIDEO_DRIVER_X11_XCURSOR, 1, [ ])
   1.362              fi
   1.363              AC_ARG_ENABLE(video-x11-xinerama,
   1.364  AC_HELP_STRING([--enable-video-x11-xinerama], [enable X11 Xinerama support [[default=yes]]]),
   1.365 @@ -1075,7 +1076,7 @@
   1.366                  if test x$have_xinerama_h_hdr = xyes; then
   1.367                      if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
   1.368                          echo "-- dynamic libXinerama -> $xinerama_lib"
   1.369 -                        AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA, "$xinerama_lib")
   1.370 +                        AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA, "$xinerama_lib", [ ])
   1.371                          definitely_enable_video_x11_xinerama=yes
   1.372                      else
   1.373                          AC_CHECK_LIB(Xinerama, XineramaQueryExtension, have_xinerama_lib=yes)
   1.374 @@ -1087,7 +1088,7 @@
   1.375                  fi
   1.376              fi
   1.377              if test x$definitely_enable_video_x11_xinerama = xyes; then
   1.378 -                AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA)
   1.379 +                AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA, 1, [ ])
   1.380              fi
   1.381              AC_ARG_ENABLE(video-x11-xinput,
   1.382  AC_HELP_STRING([--enable-video-x11-xinput], [enable X11 XInput extension for manymouse, tablets, etc [[default=yes]]]),
   1.383 @@ -1102,7 +1103,7 @@
   1.384                  if test x$have_xinput_h_hdr = xyes; then
   1.385                      if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
   1.386                          echo "-- dynamic libXi -> $xinput_lib"
   1.387 -                        AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT, "$xinput_lib")
   1.388 +                        AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT, "$xinput_lib", [ ])
   1.389                          definitely_enable_video_x11_xinput=yes
   1.390                      else
   1.391                          AC_CHECK_LIB(Xi, XOpenDevice, have_xinput_lib=yes)
   1.392 @@ -1114,7 +1115,7 @@
   1.393                  fi
   1.394              fi
   1.395              if test x$definitely_enable_video_x11_xinput = xyes; then
   1.396 -                AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT)
   1.397 +                AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT, 1, [ ])
   1.398              fi
   1.399              AC_ARG_ENABLE(video-x11-xrandr,
   1.400  AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [[default=yes]]]),
   1.401 @@ -1129,7 +1130,7 @@
   1.402                  if test x$have_xrandr_h_hdr = xyes; then
   1.403                      if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
   1.404                          echo "-- dynamic libXrandr -> $xrandr_lib"
   1.405 -                        AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR, "$xrandr_lib")
   1.406 +                        AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR, "$xrandr_lib", [ ])
   1.407                          definitely_enable_video_x11_xrandr=yes
   1.408                      else
   1.409                          AC_CHECK_LIB(Xrandr, XRRQueryExtension, have_xrandr_lib=yes)
   1.410 @@ -1141,7 +1142,7 @@
   1.411                  fi
   1.412              fi
   1.413              if test x$definitely_enable_video_x11_xrandr = xyes; then
   1.414 -                AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR)
   1.415 +                AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR, 1, [ ])
   1.416              fi
   1.417              AC_ARG_ENABLE(video-x11-scrnsaver,
   1.418  AC_HELP_STRING([--enable-video-x11-scrnsaver], [enable X11 screensaver extension [[default=yes]]]),
   1.419 @@ -1155,7 +1156,7 @@
   1.420                  if test x$have_scrnsaver_h_hdr = xyes; then
   1.421                      if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
   1.422                          echo "-- dynamic libXss -> $xss_lib"
   1.423 -                        AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS, "$xss_lib")
   1.424 +                        AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS, "$xss_lib", [ ])
   1.425                          definitely_enable_video_x11_scrnsaver=yes
   1.426                      else
   1.427                          AC_CHECK_LIB(Xss, XScreenSaverSuspend, have_xss_lib=yes)
   1.428 @@ -1167,7 +1168,7 @@
   1.429                  fi
   1.430              fi
   1.431              if test x$definitely_enable_video_x11_scrnsaver = xyes; then
   1.432 -                AC_DEFINE(SDL_VIDEO_DRIVER_X11_XSCRNSAVER)
   1.433 +                AC_DEFINE(SDL_VIDEO_DRIVER_X11_XSCRNSAVER, 1, [ ])
   1.434              fi
   1.435              AC_ARG_ENABLE(video-x11-xshape,
   1.436  AC_HELP_STRING([--enable-video-x11-xshape], [enable X11 XShape support [[default=yes]]]),
   1.437 @@ -1179,7 +1180,7 @@
   1.438                                  [#include <X11/Xlib.h>
   1.439                                  ])
   1.440                  if test x$have_shape_h_hdr = xyes; then
   1.441 -                    AC_DEFINE(SDL_VIDEO_DRIVER_X11_XSHAPE)
   1.442 +                    AC_DEFINE(SDL_VIDEO_DRIVER_X11_XSHAPE, 1, [ ])
   1.443                  fi
   1.444              fi
   1.445              AC_ARG_ENABLE(video-x11-vm,
   1.446 @@ -1195,7 +1196,7 @@
   1.447                  if test x$have_vm_h_hdr = xyes; then
   1.448                      if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
   1.449                          echo "-- dynamic libXxf86vm -> $xvidmode_lib"
   1.450 -                        AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE, "$xvidmode_lib")
   1.451 +                        AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE, "$xvidmode_lib", [ ])
   1.452                          definitely_enable_video_x11_vm=yes
   1.453                      else
   1.454                          AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryVersion, have_vm_lib=yes)
   1.455 @@ -1207,7 +1208,7 @@
   1.456                  fi
   1.457              fi
   1.458              if test x$definitely_enable_video_x11_vm = xyes; then
   1.459 -                AC_DEFINE(SDL_VIDEO_DRIVER_X11_XVIDMODE)
   1.460 +                AC_DEFINE(SDL_VIDEO_DRIVER_X11_XVIDMODE, 1, [ ])
   1.461              fi
   1.462          fi
   1.463      fi
   1.464 @@ -1217,7 +1218,7 @@
   1.465  CheckBWINDOW()
   1.466  {
   1.467      if test x$enable_video = xyes; then
   1.468 -        AC_DEFINE(SDL_VIDEO_DRIVER_BWINDOW)
   1.469 +        AC_DEFINE(SDL_VIDEO_DRIVER_BWINDOW, 1, [ ])
   1.470          SOURCES="$SOURCES $srcdir/src/video/bwindow/*.cc"
   1.471          have_video=yes
   1.472      fi
   1.473 @@ -1244,7 +1245,7 @@
   1.474          AC_MSG_RESULT($have_cocoa)
   1.475          CFLAGS="$save_CFLAGS"
   1.476          if test x$have_cocoa = xyes; then
   1.477 -            AC_DEFINE(SDL_VIDEO_DRIVER_COCOA)
   1.478 +            AC_DEFINE(SDL_VIDEO_DRIVER_COCOA, 1, [ ])
   1.479              SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
   1.480              have_video=yes
   1.481          fi
   1.482 @@ -1300,8 +1301,8 @@
   1.483  AC_HELP_STRING([--enable-directfb-shared], [dynamically load directfb support [[default=yes]]]),
   1.484                                , enable_directfb_shared=yes)
   1.485  
   1.486 -            AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB)
   1.487 -            AC_DEFINE(SDL_VIDEO_RENDER_DIRECTFB)
   1.488 +            AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB, 1, [ ])
   1.489 +            AC_DEFINE(SDL_VIDEO_RENDER_DIRECTFB, 1, [ ])
   1.490              SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
   1.491              EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
   1.492  
   1.493 @@ -1318,7 +1319,7 @@
   1.494                 test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
   1.495                  directfb_shared=yes
   1.496                  echo "-- $directfb_lib_spec -> $directfb_lib"
   1.497 -                AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC, "$directfb_lib")
   1.498 +                AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC, "$directfb_lib", [ ])
   1.499              else
   1.500                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
   1.501              fi
   1.502 @@ -1351,7 +1352,7 @@
   1.503          AC_MSG_RESULT($fusionsound)
   1.504  
   1.505          if test x$fusionsound = xyes; then
   1.506 -            AC_DEFINE(SDL_AUDIO_DRIVER_FUSIONSOUND)
   1.507 +            AC_DEFINE(SDL_AUDIO_DRIVER_FUSIONSOUND, 1, [ ])
   1.508              SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
   1.509              EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
   1.510              
   1.511 @@ -1366,7 +1367,7 @@
   1.512              fi
   1.513              if test x$have_loadso = xyes && \
   1.514                 test x$enable_fusionsound_shared = xyes; then
   1.515 -                AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC, "libfusionsound.so")
   1.516 +                AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC, "libfusionsound.so", [ ])
   1.517                  fusionsound_shared=yes
   1.518              else
   1.519                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
   1.520 @@ -1385,7 +1386,7 @@
   1.521  AC_HELP_STRING([--enable-video-dummy], [use dummy video driver [[default=yes]]]),
   1.522                    , enable_video_dummy=yes)
   1.523      if test x$enable_video_dummy = xyes; then
   1.524 -        AC_DEFINE(SDL_VIDEO_DRIVER_DUMMY)
   1.525 +        AC_DEFINE(SDL_VIDEO_DRIVER_DUMMY, 1, [ ])
   1.526          SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
   1.527          have_video=yes
   1.528      fi
   1.529 @@ -1411,9 +1412,9 @@
   1.530          ])
   1.531          AC_MSG_RESULT($video_opengl)
   1.532          if test x$video_opengl = xyes; then
   1.533 -            AC_DEFINE(SDL_VIDEO_OPENGL)
   1.534 -            AC_DEFINE(SDL_VIDEO_OPENGL_GLX)
   1.535 -            AC_DEFINE(SDL_VIDEO_RENDER_OGL)
   1.536 +            AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
   1.537 +            AC_DEFINE(SDL_VIDEO_OPENGL_GLX, 1, [ ])
   1.538 +            AC_DEFINE(SDL_VIDEO_RENDER_OGL, 1, [ ])
   1.539          fi
   1.540      fi
   1.541  }
   1.542 @@ -1422,9 +1423,9 @@
   1.543  CheckWINDOWSGL()
   1.544  {
   1.545      if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
   1.546 -        AC_DEFINE(SDL_VIDEO_OPENGL)
   1.547 -        AC_DEFINE(SDL_VIDEO_OPENGL_WGL)
   1.548 -        AC_DEFINE(SDL_VIDEO_RENDER_OGL)
   1.549 +        AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
   1.550 +        AC_DEFINE(SDL_VIDEO_OPENGL_WGL, 1, [ ])
   1.551 +        AC_DEFINE(SDL_VIDEO_RENDER_OGL, 1, [ ])
   1.552      fi
   1.553  }
   1.554  
   1.555 @@ -1432,9 +1433,9 @@
   1.556  CheckBeGL()
   1.557  {
   1.558      if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
   1.559 -        AC_DEFINE(SDL_VIDEO_OPENGL)
   1.560 -        AC_DEFINE(SDL_VIDEO_OPENGL_BGL)
   1.561 -        AC_DEFINE(SDL_VIDEO_RENDER_OGL)
   1.562 +        AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
   1.563 +        AC_DEFINE(SDL_VIDEO_OPENGL_BGL, 1, [ ])
   1.564 +        AC_DEFINE(SDL_VIDEO_RENDER_OGL, 1, [ ])
   1.565          EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
   1.566      fi
   1.567  }
   1.568 @@ -1443,9 +1444,9 @@
   1.569  CheckMacGL()
   1.570  {
   1.571      if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
   1.572 -        AC_DEFINE(SDL_VIDEO_OPENGL)
   1.573 -        AC_DEFINE(SDL_VIDEO_OPENGL_CGL)
   1.574 -        AC_DEFINE(SDL_VIDEO_RENDER_OGL)
   1.575 +        AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
   1.576 +        AC_DEFINE(SDL_VIDEO_OPENGL_CGL, 1, [ ])
   1.577 +        AC_DEFINE(SDL_VIDEO_RENDER_OGL, 1, [ ])
   1.578          case "$host" in
   1.579              *-*-darwin*)
   1.580                  if test x$enable_video_cocoa = xyes; then
   1.581 @@ -1476,7 +1477,7 @@
   1.582          ])
   1.583          AC_MSG_RESULT($use_input_events)
   1.584          if test x$use_input_events = xyes; then
   1.585 -            AC_DEFINE(SDL_INPUT_LINUXEV)
   1.586 +            AC_DEFINE(SDL_INPUT_LINUXEV, 1, [ ])
   1.587          fi
   1.588      fi
   1.589  }
   1.590 @@ -1498,7 +1499,7 @@
   1.591          ])
   1.592          AC_MSG_RESULT($enable_input_tslib)
   1.593          if test x$enable_input_tslib = xyes; then
   1.594 -            AC_DEFINE(SDL_INPUT_TSLIB)
   1.595 +            AC_DEFINE(SDL_INPUT_TSLIB, 1, [ ])
   1.596              EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
   1.597          fi
   1.598      fi
   1.599 @@ -1584,7 +1585,7 @@
   1.600  
   1.601          # Do futher testing if we have pthread support...
   1.602          if test x$use_pthreads = xyes; then
   1.603 -            AC_DEFINE(SDL_THREAD_PTHREAD)
   1.604 +            AC_DEFINE(SDL_THREAD_PTHREAD, 1, [ ])
   1.605              EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
   1.606              EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
   1.607              SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
   1.608 @@ -1606,7 +1607,7 @@
   1.609                    pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
   1.610                  ],[
   1.611                  has_recursive_mutexes=yes
   1.612 -                AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX)
   1.613 +                AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX, 1, [ ])
   1.614                  ])
   1.615              fi
   1.616              if test x$has_recursive_mutexes = xno; then
   1.617 @@ -1617,7 +1618,7 @@
   1.618                    pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
   1.619                  ],[
   1.620                  has_recursive_mutexes=yes
   1.621 -                AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP)
   1.622 +                AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP, 1, [ ])
   1.623                  ])
   1.624              fi
   1.625              AC_MSG_RESULT($has_recursive_mutexes)
   1.626 @@ -1732,7 +1733,7 @@
   1.627              AC_CHECK_LIB(c, dlopen, EXTRA_LDFLAGS="$EXTRA_LDFLAGS",
   1.628                 AC_CHECK_LIB(dl, dlopen, EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl",
   1.629                    AC_CHECK_LIB(ltdl, dlopen, EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl")))
   1.630 -            AC_DEFINE(SDL_LOADSO_DLOPEN)
   1.631 +            AC_DEFINE(SDL_LOADSO_DLOPEN, 1, [ ])
   1.632              SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
   1.633              have_loadso=yes
   1.634          fi
   1.635 @@ -1862,11 +1863,11 @@
   1.636              have_machine_joystick=yes
   1.637              ])
   1.638              if test x$have_machine_joystick = xyes; then
   1.639 -                AC_DEFINE(SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H)
   1.640 +                AC_DEFINE(SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H, 1, [ ])
   1.641              fi
   1.642              AC_MSG_RESULT($have_machine_joystick)
   1.643  
   1.644 -            AC_DEFINE(SDL_JOYSTICK_USBHID)
   1.645 +            AC_DEFINE(SDL_JOYSTICK_USBHID, 1, [ ])
   1.646              SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
   1.647              EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
   1.648              EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
   1.649 @@ -1885,12 +1886,12 @@
   1.650      if test x$enable_clock_gettime = xyes; then
   1.651          AC_CHECK_LIB(rt, clock_gettime, have_clock_gettime=yes)
   1.652          if test x$have_clock_gettime = xyes; then
   1.653 -            AC_DEFINE(HAVE_CLOCK_GETTIME)
   1.654 +            AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [ ])
   1.655              EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
   1.656          else
   1.657              AC_CHECK_LIB(c, clock_gettime, have_clock_gettime=yes)
   1.658              if test x$have_clock_gettime = xyes; then
   1.659 -               AC_DEFINE(HAVE_CLOCK_GETTIME)
   1.660 +               AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [ ])
   1.661                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
   1.662              fi
   1.663          fi
   1.664 @@ -1961,17 +1962,17 @@
   1.665          if test x$enable_audio = xyes; then
   1.666            case $ARCH in
   1.667              sysv5|solaris|hpux)
   1.668 -                AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO)
   1.669 +                AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO, 1, [ ])
   1.670                  SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
   1.671                  have_audio=yes
   1.672              ;;
   1.673              netbsd|openbsd)
   1.674 -                AC_DEFINE(SDL_AUDIO_DRIVER_BSD)
   1.675 +                AC_DEFINE(SDL_AUDIO_DRIVER_BSD, 1, [ ])
   1.676                  SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
   1.677                  have_audio=yes
   1.678              ;;
   1.679              aix)
   1.680 -                AC_DEFINE(SDL_AUDIO_DRIVER_PAUDIO)
   1.681 +                AC_DEFINE(SDL_AUDIO_DRIVER_PAUDIO, 1, [ ])
   1.682                  SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
   1.683                  have_audio=yes
   1.684              ;;
   1.685 @@ -1981,7 +1982,7 @@
   1.686          if test x$enable_joystick = xyes; then
   1.687            case $ARCH in
   1.688              linux)
   1.689 -                AC_DEFINE(SDL_JOYSTICK_LINUX)
   1.690 +                AC_DEFINE(SDL_JOYSTICK_LINUX, 1, [ ])
   1.691                  SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
   1.692                  have_joystick=yes
   1.693              ;;
   1.694 @@ -1992,7 +1993,7 @@
   1.695             if test x$use_input_events = xyes; then
   1.696               case $ARCH in
   1.697                 linux)
   1.698 -                   AC_DEFINE(SDL_HAPTIC_LINUX)
   1.699 +                   AC_DEFINE(SDL_HAPTIC_LINUX, 1, [ ])
   1.700                     SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
   1.701                     have_haptic=yes
   1.702                 ;;
   1.703 @@ -2003,7 +2004,7 @@
   1.704          if test x$enable_power = xyes; then
   1.705               case $ARCH in
   1.706                 linux)
   1.707 -                   AC_DEFINE(SDL_POWER_LINUX)
   1.708 +                   AC_DEFINE(SDL_POWER_LINUX, 1, [ ])
   1.709                     SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
   1.710                     have_power=yes
   1.711                 ;;
   1.712 @@ -2011,7 +2012,7 @@
   1.713          fi
   1.714          # Set up files for the timer library
   1.715          if test x$enable_timers = xyes; then
   1.716 -            AC_DEFINE(SDL_TIMER_UNIX)
   1.717 +            AC_DEFINE(SDL_TIMER_UNIX, 1, [ ])
   1.718              SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
   1.719              have_timers=yes
   1.720          fi
   1.721 @@ -2023,7 +2024,7 @@
   1.722          CheckDummyAudio
   1.723          CheckWINDOWS
   1.724          if test x$enable_video = xyes; then
   1.725 -            AC_DEFINE(SDL_VIDEO_DRIVER_WINDOWS)
   1.726 +            AC_DEFINE(SDL_VIDEO_DRIVER_WINDOWS, 1, [ ])
   1.727              SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
   1.728              have_video=yes
   1.729              AC_ARG_ENABLE(render-d3d,
   1.730 @@ -2031,28 +2032,28 @@
   1.731                                  , enable_render_d3d=yes)
   1.732              enable_render_d3d=no
   1.733              if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
   1.734 -                AC_DEFINE(SDL_VIDEO_RENDER_D3D)
   1.735 +                AC_DEFINE(SDL_VIDEO_RENDER_D3D, 1, [ ])
   1.736              fi
   1.737          fi
   1.738          # Set up files for the audio library
   1.739          if test x$enable_audio = xyes; then
   1.740 -            AC_DEFINE(SDL_AUDIO_DRIVER_WINWAVEOUT)
   1.741 +            AC_DEFINE(SDL_AUDIO_DRIVER_WINWAVEOUT, 1, [ ])
   1.742              SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
   1.743              if test x$have_dsound = xyes; then
   1.744 -                AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND)
   1.745 +                AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND, 1, [ ])
   1.746                  SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
   1.747              fi
   1.748              have_audio=yes
   1.749          fi
   1.750          # Set up dummy files for the joystick for now
   1.751          if test x$enable_joystick = xyes; then
   1.752 -            AC_DEFINE(SDL_JOYSTICK_DUMMY)
   1.753 +            AC_DEFINE(SDL_JOYSTICK_DUMMY, 1, [ ])
   1.754              SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
   1.755              have_joystick=yes
   1.756          fi
   1.757          # Set up files for the thread library
   1.758          if test x$enable_threads = xyes; then
   1.759 -            AC_DEFINE(SDL_THREAD_WINDOWS)
   1.760 +            AC_DEFINE(SDL_THREAD_WINDOWS, 1, [ ])
   1.761              SOURCES="$SOURCES $srcdir/src/thread/windows/SDL_sysmutex.c"
   1.762              SOURCES="$SOURCES $srcdir/src/thread/windows/SDL_syssem.c"
   1.763              SOURCES="$SOURCES $srcdir/src/thread/windows/SDL_systhread.c"
   1.764 @@ -2061,13 +2062,13 @@
   1.765          fi
   1.766          # Set up files for the timer library
   1.767          if test x$enable_timers = xyes; then
   1.768 -            AC_DEFINE(SDL_TIMER_WINCE)
   1.769 +            AC_DEFINE(SDL_TIMER_WINCE, 1, [ ])
   1.770              SOURCES="$SOURCES $srcdir/src/timer/wince/*.c"
   1.771              have_timers=yes
   1.772          fi
   1.773          # Set up files for the shared object loading library
   1.774          if test x$enable_loadso = xyes; then
   1.775 -            AC_DEFINE(SDL_LOADSO_WINDOWS)
   1.776 +            AC_DEFINE(SDL_LOADSO_WINDOWS, 1, [ ])
   1.777              SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
   1.778              have_loadso=yes
   1.779          fi
   1.780 @@ -2111,22 +2112,22 @@
   1.781  
   1.782          # Set up files for the video library
   1.783          if test x$enable_video = xyes; then
   1.784 -            AC_DEFINE(SDL_VIDEO_DRIVER_WINDOWS)
   1.785 +            AC_DEFINE(SDL_VIDEO_DRIVER_WINDOWS, 1, [ ])
   1.786              SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
   1.787              have_video=yes
   1.788              AC_ARG_ENABLE(render-d3d,
   1.789  AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[default=yes]]]),
   1.790                                  , enable_render_d3d=yes)
   1.791              if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
   1.792 -                AC_DEFINE(SDL_VIDEO_RENDER_D3D)
   1.793 +                AC_DEFINE(SDL_VIDEO_RENDER_D3D, 1, [ ])
   1.794              fi
   1.795          fi
   1.796          # Set up files for the audio library
   1.797          if test x$enable_audio = xyes; then
   1.798 -            AC_DEFINE(SDL_AUDIO_DRIVER_WINWAVEOUT)
   1.799 +            AC_DEFINE(SDL_AUDIO_DRIVER_WINWAVEOUT, 1, [ ])
   1.800              SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
   1.801              if test x$have_dsound = xyes; then
   1.802 -                AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND)
   1.803 +                AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND, 1, [ ])
   1.804                  SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
   1.805              fi
   1.806              have_audio=yes
   1.807 @@ -2134,30 +2135,30 @@
   1.808          # Set up files for the joystick library
   1.809          if test x$enable_joystick = xyes; then
   1.810              if test x$have_dinput = xyes; then
   1.811 -                AC_DEFINE(SDL_JOYSTICK_DINPUT)
   1.812 +                AC_DEFINE(SDL_JOYSTICK_DINPUT, 1, [ ])
   1.813                  SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_dxjoystick.c"
   1.814                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
   1.815              else
   1.816 -                AC_DEFINE(SDL_JOYSTICK_WINMM)
   1.817 +                AC_DEFINE(SDL_JOYSTICK_WINMM, 1, [ ])
   1.818                  SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_mmjoystick.c"
   1.819              fi
   1.820              have_joystick=yes
   1.821          fi
   1.822          if test x$enable_haptic = xyes; then
   1.823              if test x$have_dinput = xyes; then
   1.824 -                AC_DEFINE(SDL_HAPTIC_DINPUT)
   1.825 +                AC_DEFINE(SDL_HAPTIC_DINPUT, 1, [ ])
   1.826                  SOURCES="$SOURCES $srcdir/src/haptic/windows/SDL_syshaptic.c"
   1.827                  have_haptic=yes
   1.828              fi
   1.829          fi
   1.830          if test x$enable_power = xyes; then
   1.831 -            AC_DEFINE(SDL_POWER_WINDOWS)
   1.832 +            AC_DEFINE(SDL_POWER_WINDOWS, 1, [ ])
   1.833              SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
   1.834              have_power=yes
   1.835          fi
   1.836          # Set up files for the thread library
   1.837          if test x$enable_threads = xyes; then
   1.838 -            AC_DEFINE(SDL_THREAD_WINDOWS)
   1.839 +            AC_DEFINE(SDL_THREAD_WINDOWS, 1, [ ])
   1.840              SOURCES="$SOURCES $srcdir/src/thread/windows/SDL_sysmutex.c"
   1.841              SOURCES="$SOURCES $srcdir/src/thread/windows/SDL_syssem.c"
   1.842              SOURCES="$SOURCES $srcdir/src/thread/windows/SDL_systhread.c"
   1.843 @@ -2166,13 +2167,13 @@
   1.844          fi
   1.845          # Set up files for the timer library
   1.846          if test x$enable_timers = xyes; then
   1.847 -            AC_DEFINE(SDL_TIMER_WINDOWS)
   1.848 +            AC_DEFINE(SDL_TIMER_WINDOWS, 1, [ ])
   1.849              SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
   1.850              have_timers=yes
   1.851          fi
   1.852          # Set up files for the shared object loading library
   1.853          if test x$enable_loadso = xyes; then
   1.854 -            AC_DEFINE(SDL_LOADSO_WINDOWS)
   1.855 +            AC_DEFINE(SDL_LOADSO_WINDOWS, 1, [ ])
   1.856              SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
   1.857              have_loadso=yes
   1.858          fi
   1.859 @@ -2197,19 +2198,19 @@
   1.860          CheckBeGL
   1.861          # Set up files for the audio library
   1.862          if test x$enable_audio = xyes; then
   1.863 -            AC_DEFINE(SDL_AUDIO_DRIVER_BEOSAUDIO)
   1.864 +            AC_DEFINE(SDL_AUDIO_DRIVER_BEOSAUDIO, 1, [ ])
   1.865              SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc"
   1.866              have_audio=yes
   1.867          fi
   1.868          # Set up files for the joystick library
   1.869          if test x$enable_joystick = xyes; then
   1.870 -            AC_DEFINE(SDL_JOYSTICK_BEOS)
   1.871 +            AC_DEFINE(SDL_JOYSTICK_BEOS, 1, [ ])
   1.872              SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc"
   1.873              have_joystick=yes
   1.874          fi
   1.875          # Set up files for the thread library
   1.876          if test x$enable_threads = xyes; then
   1.877 -            AC_DEFINE(SDL_THREAD_BEOS)
   1.878 +            AC_DEFINE(SDL_THREAD_BEOS, 1, [ ])
   1.879              SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
   1.880              SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
   1.881              SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
   1.882 @@ -2217,19 +2218,19 @@
   1.883          fi
   1.884          # Set up files for the timer library
   1.885          if test x$enable_timers = xyes; then
   1.886 -            AC_DEFINE(SDL_TIMER_BEOS)
   1.887 +            AC_DEFINE(SDL_TIMER_BEOS, 1, [ ])
   1.888              SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
   1.889              have_timers=yes
   1.890          fi
   1.891          # Set up files for the shared object loading library
   1.892          if test x$enable_loadso = xyes; then
   1.893 -            AC_DEFINE(SDL_LOADSO_BEOS)
   1.894 +            AC_DEFINE(SDL_LOADSO_BEOS, 1, [ ])
   1.895              SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c"
   1.896              have_loadso=yes
   1.897          fi
   1.898          # Set up files for the system power library
   1.899          if test x$enable_power = xyes; then
   1.900 -            AC_DEFINE(SDL_POWER_BEOS)
   1.901 +            AC_DEFINE(SDL_POWER_BEOS, 1, [ ])
   1.902              SOURCES="$SOURCES $srcdir/src/power/beos/*.c"
   1.903              have_power=yes
   1.904          fi
   1.905 @@ -2256,7 +2257,7 @@
   1.906          # Set up files for the shared object loading library
   1.907          # (this needs to be done before the dynamic X11 check)
   1.908          if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then
   1.909 -            AC_DEFINE(SDL_LOADSO_DLCOMPAT)
   1.910 +            AC_DEFINE(SDL_LOADSO_DLCOMPAT, 1, [ ])
   1.911              SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c"
   1.912              have_loadso=yes
   1.913          fi
   1.914 @@ -2275,32 +2276,32 @@
   1.915  
   1.916          # Set up files for the audio library
   1.917          if test x$enable_audio = xyes; then
   1.918 -            AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO)
   1.919 +            AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO, 1, [ ])
   1.920              SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c"
   1.921              have_audio=yes
   1.922          fi
   1.923          # Set up files for the joystick library
   1.924          if test x$enable_joystick = xyes; then
   1.925 -            AC_DEFINE(SDL_JOYSTICK_IOKIT)
   1.926 +            AC_DEFINE(SDL_JOYSTICK_IOKIT, 1, [ ])
   1.927              SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
   1.928              have_joystick=yes
   1.929          fi
   1.930          # Set up files for the haptic library
   1.931          if test x$enable_haptic = xyes; then
   1.932 -            AC_DEFINE(SDL_HAPTIC_IOKIT)
   1.933 +            AC_DEFINE(SDL_HAPTIC_IOKIT, 1, [ ])
   1.934              SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
   1.935              have_haptic=yes
   1.936              EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
   1.937          fi
   1.938          # Set up files for the power library
   1.939          if test x$enable_power = xyes; then
   1.940 -            AC_DEFINE(SDL_POWER_MACOSX)
   1.941 +            AC_DEFINE(SDL_POWER_MACOSX, 1, [ ])
   1.942              SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
   1.943              have_power=yes
   1.944          fi
   1.945          # Set up files for the timer library
   1.946          if test x$enable_timers = xyes; then
   1.947 -            AC_DEFINE(SDL_TIMER_UNIX)
   1.948 +            AC_DEFINE(SDL_TIMER_UNIX, 1, [ ])
   1.949              SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
   1.950              have_timers=yes
   1.951          fi
   1.952 @@ -2330,31 +2331,31 @@
   1.953  
   1.954  if test x$have_joystick != xyes; then
   1.955      if test x$enable_joystick = xyes; then
   1.956 -        AC_DEFINE(SDL_JOYSTICK_DISABLED)
   1.957 +        AC_DEFINE(SDL_JOYSTICK_DISABLED, 1, [ ])
   1.958      fi
   1.959      SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
   1.960  fi
   1.961  if test x$have_haptic != xyes; then
   1.962      if test x$enable_haptic = xyes; then
   1.963 -        AC_DEFINE(SDL_HAPTIC_DISABLED)
   1.964 +        AC_DEFINE(SDL_HAPTIC_DISABLED, 1, [ ])
   1.965      fi
   1.966      SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
   1.967  fi
   1.968  if test x$have_threads != xyes; then
   1.969      if test x$enable_threads = xyes; then
   1.970 -        AC_DEFINE(SDL_THREADS_DISABLED)
   1.971 +        AC_DEFINE(SDL_THREADS_DISABLED, 1, [ ])
   1.972      fi
   1.973      SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
   1.974  fi
   1.975  if test x$have_timers != xyes; then
   1.976      if test x$enable_timers = xyes; then
   1.977 -        AC_DEFINE(SDL_TIMERS_DISABLED)
   1.978 +        AC_DEFINE(SDL_TIMERS_DISABLED, 1, [ ])
   1.979      fi
   1.980      SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
   1.981  fi
   1.982  if test x$have_loadso != xyes; then
   1.983      if test x$enable_loadso = xyes; then
   1.984 -        AC_DEFINE(SDL_LOADSO_DISABLED)
   1.985 +        AC_DEFINE(SDL_LOADSO_DISABLED, 1, [ ])
   1.986      fi
   1.987      SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
   1.988  fi