comparison configure.in @ 5003:3a95a2b93eb3

Updated the atomic API for better use cases
author Sam Lantinga <slouken@libsdl.org>
date Sat, 15 Jan 2011 12:41:59 -0800
parents 921637675f2c
children 0c72ae7b7cb2
comparison
equal deleted inserted replaced
5002:c5b9486688ce 5003:3a95a2b93eb3
286 fi 286 fi
287 287
288 # Standard C sources 288 # Standard C sources
289 SOURCES="$SOURCES $srcdir/src/*.c" 289 SOURCES="$SOURCES $srcdir/src/*.c"
290 SOURCES="$SOURCES $srcdir/src/audio/*.c" 290 SOURCES="$SOURCES $srcdir/src/audio/*.c"
291 SOURCES="$SOURCES $srcdir/src/atomic/*.c"
291 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c" 292 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
292 SOURCES="$SOURCES $srcdir/src/events/*.c" 293 SOURCES="$SOURCES $srcdir/src/events/*.c"
293 SOURCES="$SOURCES $srcdir/src/file/*.c" 294 SOURCES="$SOURCES $srcdir/src/file/*.c"
294 SOURCES="$SOURCES $srcdir/src/stdlib/*.c" 295 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
295 SOURCES="$SOURCES $srcdir/src/thread/*.c" 296 SOURCES="$SOURCES $srcdir/src/thread/*.c"
2301 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c" 2302 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
2302 have_audio=yes 2303 have_audio=yes
2303 ;; 2304 ;;
2304 esac 2305 esac
2305 fi 2306 fi
2306 # Set up files for the atomic operations library
2307 if test x$enable_atomic = xyes; then
2308 case $ARCH in
2309 linux)
2310 AC_DEFINE(SDL_ATOMIC_LINUX)
2311 SOURCES="$SOURCES $srcdir/src/atomic/linux/*.c"
2312 have_atomic=yes
2313 ;;
2314 esac
2315 fi
2316 # Set up files for the joystick library 2307 # Set up files for the joystick library
2317 if test x$enable_joystick = xyes; then 2308 if test x$enable_joystick = xyes; then
2318 case $ARCH in 2309 case $ARCH in
2319 linux) 2310 linux)
2320 AC_DEFINE(SDL_JOYSTICK_LINUX) 2311 AC_DEFINE(SDL_JOYSTICK_LINUX)
2392 # Set up files for the timer library 2383 # Set up files for the timer library
2393 if test x$enable_timers = xyes; then 2384 if test x$enable_timers = xyes; then
2394 AC_DEFINE(SDL_TIMER_UNIX) 2385 AC_DEFINE(SDL_TIMER_UNIX)
2395 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 2386 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
2396 have_timers=yes 2387 have_timers=yes
2397 fi
2398 # Setup files for the atomic operations
2399 if test x$enable_atomic = xyes; then
2400 AC_DEFINE(SDL_ATOMIC_QNX)
2401 SOURCES="$SOURCES $srcdir/src/atomic/qnx/*.c"
2402 have_atomic=yes
2403 fi 2388 fi
2404 # Set up dummy files for the joystick for now 2389 # Set up dummy files for the joystick for now
2405 if test x$enable_joystick = xyes; then 2390 if test x$enable_joystick = xyes; then
2406 AC_DEFINE(SDL_JOYSTICK_DUMMY) 2391 AC_DEFINE(SDL_JOYSTICK_DUMMY)
2407 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" 2392 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
2458 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND) 2443 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND)
2459 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c" 2444 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
2460 fi 2445 fi
2461 have_audio=yes 2446 have_audio=yes
2462 fi 2447 fi
2463 # Set up files for the atomic operations library
2464 if test x$enable_atomic = xyes; then
2465 AC_DEFINE(SDL_ATOMIC_WIN32)
2466 SOURCES="$SOURCES $srcdir/src/atomic/win32/*.c"
2467 have_atomic=yes
2468 fi
2469 # Set up dummy files for the joystick for now 2448 # Set up dummy files for the joystick for now
2470 if test x$enable_joystick = xyes; then 2449 if test x$enable_joystick = xyes; then
2471 AC_DEFINE(SDL_JOYSTICK_DUMMY) 2450 AC_DEFINE(SDL_JOYSTICK_DUMMY)
2472 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" 2451 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
2473 have_joystick=yes 2452 have_joystick=yes
2552 if test x$have_dsound = xyes; then 2531 if test x$have_dsound = xyes; then
2553 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND) 2532 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND)
2554 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c" 2533 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
2555 fi 2534 fi
2556 have_audio=yes 2535 have_audio=yes
2557 fi
2558 # Set up files for the atomic operations library
2559 if test x$enable_atomic = xyes; then
2560 AC_DEFINE(SDL_ATOMIC_WIN32)
2561 SOURCES="$SOURCES $srcdir/src/atomic/win32/*.c"
2562 have_atomic=yes
2563 fi 2536 fi
2564 # Set up files for the joystick library 2537 # Set up files for the joystick library
2565 if test x$enable_joystick = xyes; then 2538 if test x$enable_joystick = xyes; then
2566 if test x$have_dinput = xyes; then 2539 if test x$have_dinput = xyes; then
2567 AC_DEFINE(SDL_JOYSTICK_DINPUT) 2540 AC_DEFINE(SDL_JOYSTICK_DINPUT)
2713 if test x$enable_audio = xyes; then 2686 if test x$enable_audio = xyes; then
2714 AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO) 2687 AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO)
2715 SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c" 2688 SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c"
2716 have_audio=yes 2689 have_audio=yes
2717 fi 2690 fi
2718 # Set up files for the atomic operations library
2719 if test x$enable_atomic = xyes; then
2720 AC_DEFINE(SDL_ATOMIC_MACOSX)
2721 SOURCES="$SOURCES $srcdir/src/atomic/macosx/*.c"
2722 have_atomic=yes
2723 fi
2724 # Set up files for the joystick library 2691 # Set up files for the joystick library
2725 if test x$enable_joystick = xyes; then 2692 if test x$enable_joystick = xyes; then
2726 AC_DEFINE(SDL_JOYSTICK_IOKIT) 2693 AC_DEFINE(SDL_JOYSTICK_IOKIT)
2727 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c" 2694 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
2728 have_joystick=yes 2695 have_joystick=yes
2823 if test x$have_loadso != xyes; then 2790 if test x$have_loadso != xyes; then
2824 if test x$enable_loadso = xyes; then 2791 if test x$enable_loadso = xyes; then
2825 AC_DEFINE(SDL_LOADSO_DISABLED) 2792 AC_DEFINE(SDL_LOADSO_DISABLED)
2826 fi 2793 fi
2827 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c" 2794 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
2828 fi
2829 if test x$have_atomic != xyes; then
2830 if test x$enable_atomic = xyes; then
2831 AC_DEFINE(SDL_ATOMIC_DISABLED)
2832 fi
2833 SOURCES="$SOURCES $srcdir/src/atomic/dummy/*.c"
2834 fi 2795 fi
2835 if test x$SDLMAIN_SOURCES = x; then 2796 if test x$SDLMAIN_SOURCES = x; then
2836 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c" 2797 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
2837 fi 2798 fi
2838 2799