configure.in
changeset 5003 3a95a2b93eb3
parent 4944 921637675f2c
child 5004 0c72ae7b7cb2
     1.1 --- a/configure.in	Sat Jan 15 12:34:43 2011 -0800
     1.2 +++ b/configure.in	Sat Jan 15 12:41:59 2011 -0800
     1.3 @@ -288,6 +288,7 @@
     1.4  # Standard C sources
     1.5  SOURCES="$SOURCES $srcdir/src/*.c"
     1.6  SOURCES="$SOURCES $srcdir/src/audio/*.c"
     1.7 +SOURCES="$SOURCES $srcdir/src/atomic/*.c"
     1.8  SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
     1.9  SOURCES="$SOURCES $srcdir/src/events/*.c"
    1.10  SOURCES="$SOURCES $srcdir/src/file/*.c"
    1.11 @@ -2303,16 +2304,6 @@
    1.12              ;;
    1.13            esac
    1.14          fi
    1.15 -        # Set up files for the atomic operations library
    1.16 -        if test x$enable_atomic = xyes; then
    1.17 -          case $ARCH in
    1.18 -            linux)
    1.19 -                AC_DEFINE(SDL_ATOMIC_LINUX)
    1.20 -                SOURCES="$SOURCES $srcdir/src/atomic/linux/*.c"
    1.21 -                have_atomic=yes
    1.22 -            ;;
    1.23 -          esac
    1.24 -        fi
    1.25          # Set up files for the joystick library
    1.26          if test x$enable_joystick = xyes; then
    1.27            case $ARCH in
    1.28 @@ -2395,12 +2386,6 @@
    1.29              SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
    1.30              have_timers=yes
    1.31          fi
    1.32 -        # Setup files for the atomic operations
    1.33 -        if test x$enable_atomic = xyes; then
    1.34 -                AC_DEFINE(SDL_ATOMIC_QNX)
    1.35 -                SOURCES="$SOURCES $srcdir/src/atomic/qnx/*.c"
    1.36 -                have_atomic=yes
    1.37 -        fi
    1.38          # Set up dummy files for the joystick for now
    1.39          if test x$enable_joystick = xyes; then
    1.40              AC_DEFINE(SDL_JOYSTICK_DUMMY)
    1.41 @@ -2460,12 +2445,6 @@
    1.42              fi
    1.43              have_audio=yes
    1.44          fi
    1.45 -        # Set up files for the atomic operations library
    1.46 -        if test x$enable_atomic = xyes; then
    1.47 -            AC_DEFINE(SDL_ATOMIC_WIN32)
    1.48 -            SOURCES="$SOURCES $srcdir/src/atomic/win32/*.c"
    1.49 -            have_atomic=yes
    1.50 -        fi
    1.51          # Set up dummy files for the joystick for now
    1.52          if test x$enable_joystick = xyes; then
    1.53              AC_DEFINE(SDL_JOYSTICK_DUMMY)
    1.54 @@ -2555,12 +2534,6 @@
    1.55              fi
    1.56              have_audio=yes
    1.57          fi
    1.58 -        # Set up files for the atomic operations library
    1.59 -        if test x$enable_atomic = xyes; then
    1.60 -            AC_DEFINE(SDL_ATOMIC_WIN32)
    1.61 -            SOURCES="$SOURCES $srcdir/src/atomic/win32/*.c"
    1.62 -            have_atomic=yes
    1.63 -        fi
    1.64          # Set up files for the joystick library
    1.65          if test x$enable_joystick = xyes; then
    1.66              if test x$have_dinput = xyes; then
    1.67 @@ -2715,12 +2688,6 @@
    1.68              SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c"
    1.69              have_audio=yes
    1.70          fi
    1.71 -        # Set up files for the atomic operations library
    1.72 -        if test x$enable_atomic = xyes; then
    1.73 -            AC_DEFINE(SDL_ATOMIC_MACOSX)
    1.74 -            SOURCES="$SOURCES $srcdir/src/atomic/macosx/*.c"
    1.75 -            have_atomic=yes
    1.76 -        fi
    1.77          # Set up files for the joystick library
    1.78          if test x$enable_joystick = xyes; then
    1.79              AC_DEFINE(SDL_JOYSTICK_IOKIT)
    1.80 @@ -2826,12 +2793,6 @@
    1.81      fi
    1.82      SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
    1.83  fi
    1.84 -if test x$have_atomic != xyes; then
    1.85 -    if test x$enable_atomic = xyes; then
    1.86 -        AC_DEFINE(SDL_ATOMIC_DISABLED)
    1.87 -    fi
    1.88 -    SOURCES="$SOURCES $srcdir/src/atomic/dummy/*.c"
    1.89 -fi
    1.90  if test x$SDLMAIN_SOURCES = x; then
    1.91      SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
    1.92  fi