configure.in
changeset 5003 3a95a2b93eb3
parent 4944 921637675f2c
child 5004 0c72ae7b7cb2
--- a/configure.in	Sat Jan 15 12:34:43 2011 -0800
+++ b/configure.in	Sat Jan 15 12:41:59 2011 -0800
@@ -288,6 +288,7 @@
 # Standard C sources
 SOURCES="$SOURCES $srcdir/src/*.c"
 SOURCES="$SOURCES $srcdir/src/audio/*.c"
+SOURCES="$SOURCES $srcdir/src/atomic/*.c"
 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
 SOURCES="$SOURCES $srcdir/src/events/*.c"
 SOURCES="$SOURCES $srcdir/src/file/*.c"
@@ -2303,16 +2304,6 @@
             ;;
           esac
         fi
-        # Set up files for the atomic operations library
-        if test x$enable_atomic = xyes; then
-          case $ARCH in
-            linux)
-                AC_DEFINE(SDL_ATOMIC_LINUX)
-                SOURCES="$SOURCES $srcdir/src/atomic/linux/*.c"
-                have_atomic=yes
-            ;;
-          esac
-        fi
         # Set up files for the joystick library
         if test x$enable_joystick = xyes; then
           case $ARCH in
@@ -2395,12 +2386,6 @@
             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
             have_timers=yes
         fi
-        # Setup files for the atomic operations
-        if test x$enable_atomic = xyes; then
-                AC_DEFINE(SDL_ATOMIC_QNX)
-                SOURCES="$SOURCES $srcdir/src/atomic/qnx/*.c"
-                have_atomic=yes
-        fi
         # Set up dummy files for the joystick for now
         if test x$enable_joystick = xyes; then
             AC_DEFINE(SDL_JOYSTICK_DUMMY)
@@ -2460,12 +2445,6 @@
             fi
             have_audio=yes
         fi
-        # Set up files for the atomic operations library
-        if test x$enable_atomic = xyes; then
-            AC_DEFINE(SDL_ATOMIC_WIN32)
-            SOURCES="$SOURCES $srcdir/src/atomic/win32/*.c"
-            have_atomic=yes
-        fi
         # Set up dummy files for the joystick for now
         if test x$enable_joystick = xyes; then
             AC_DEFINE(SDL_JOYSTICK_DUMMY)
@@ -2555,12 +2534,6 @@
             fi
             have_audio=yes
         fi
-        # Set up files for the atomic operations library
-        if test x$enable_atomic = xyes; then
-            AC_DEFINE(SDL_ATOMIC_WIN32)
-            SOURCES="$SOURCES $srcdir/src/atomic/win32/*.c"
-            have_atomic=yes
-        fi
         # Set up files for the joystick library
         if test x$enable_joystick = xyes; then
             if test x$have_dinput = xyes; then
@@ -2715,12 +2688,6 @@
             SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c"
             have_audio=yes
         fi
-        # Set up files for the atomic operations library
-        if test x$enable_atomic = xyes; then
-            AC_DEFINE(SDL_ATOMIC_MACOSX)
-            SOURCES="$SOURCES $srcdir/src/atomic/macosx/*.c"
-            have_atomic=yes
-        fi
         # Set up files for the joystick library
         if test x$enable_joystick = xyes; then
             AC_DEFINE(SDL_JOYSTICK_IOKIT)
@@ -2826,12 +2793,6 @@
     fi
     SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
 fi
-if test x$have_atomic != xyes; then
-    if test x$enable_atomic = xyes; then
-        AC_DEFINE(SDL_ATOMIC_DISABLED)
-    fi
-    SOURCES="$SOURCES $srcdir/src/atomic/dummy/*.c"
-fi
 if test x$SDLMAIN_SOURCES = x; then
     SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
 fi