comparison configure.in @ 3243:5db962a9a991

CD-ROM support is so passé :)
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Sep 2009 09:11:03 +0000
parents af4a5af3cd2b
children 94fb40a4a9a7
comparison
equal deleted inserted replaced
3242:af4a5af3cd2b 3243:5db962a9a991
204 fi 204 fi
205 205
206 # Standard C sources 206 # Standard C sources
207 SOURCES="$SOURCES $srcdir/src/*.c" 207 SOURCES="$SOURCES $srcdir/src/*.c"
208 SOURCES="$SOURCES $srcdir/src/audio/*.c" 208 SOURCES="$SOURCES $srcdir/src/audio/*.c"
209 SOURCES="$SOURCES $srcdir/src/cdrom/*.c"
210 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c" 209 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
211 SOURCES="$SOURCES $srcdir/src/events/*.c" 210 SOURCES="$SOURCES $srcdir/src/events/*.c"
212 SOURCES="$SOURCES $srcdir/src/file/*.c" 211 SOURCES="$SOURCES $srcdir/src/file/*.c"
213 SOURCES="$SOURCES $srcdir/src/stdlib/*.c" 212 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
214 SOURCES="$SOURCES $srcdir/src/thread/*.c" 213 SOURCES="$SOURCES $srcdir/src/thread/*.c"
262 , enable_power=yes) 261 , enable_power=yes)
263 if test x$enable_power != xyes; then 262 if test x$enable_power != xyes; then
264 AC_DEFINE(SDL_POWER_DISABLED) 263 AC_DEFINE(SDL_POWER_DISABLED)
265 else 264 else
266 SOURCES="$SOURCES $srcdir/src/power/*.c" 265 SOURCES="$SOURCES $srcdir/src/power/*.c"
267 fi
268 AC_ARG_ENABLE(cdrom,
269 AC_HELP_STRING([--enable-cdrom], [Enable the cdrom subsystem [[default=yes]]]),
270 , enable_cdrom=yes)
271 if test x$enable_cdrom != xyes; then
272 AC_DEFINE(SDL_CDROM_DISABLED)
273 fi 266 fi
274 AC_ARG_ENABLE(threads, 267 AC_ARG_ENABLE(threads,
275 AC_HELP_STRING([--enable-threads], [Enable the threading subsystem [[default=yes]]]), 268 AC_HELP_STRING([--enable-threads], [Enable the threading subsystem [[default=yes]]]),
276 , enable_threads=yes) 269 , enable_threads=yes)
277 if test x$enable_threads != xyes; then 270 if test x$enable_threads != xyes; then
2479 SOURCES="$SOURCES $srcdir/src/power/linux/*.c" 2472 SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
2480 have_power=yes 2473 have_power=yes
2481 ;; 2474 ;;
2482 esac 2475 esac
2483 fi 2476 fi
2484 # Set up files for the cdrom library
2485 if test x$enable_cdrom = xyes; then
2486 case $ARCH in
2487 linux|solaris)
2488 AC_DEFINE(SDL_CDROM_LINUX)
2489 SOURCES="$SOURCES $srcdir/src/cdrom/linux/*.c"
2490 have_cdrom=yes
2491 ;;
2492 *freebsd*)
2493 AC_DEFINE(SDL_CDROM_FREEBSD)
2494 SOURCES="$SOURCES $srcdir/src/cdrom/freebsd/*.c"
2495 have_cdrom=yes
2496 ;;
2497 *openbsd*|*netbsd*)
2498 AC_DEFINE(SDL_CDROM_OPENBSD)
2499 SOURCES="$SOURCES $srcdir/src/cdrom/openbsd/*.c"
2500 have_cdrom=yes
2501 ;;
2502 bsdi)
2503 AC_DEFINE(SDL_CDROM_BSDI)
2504 SOURCES="$SOURCES $srcdir/src/cdrom/bsdi/*.c"
2505 have_cdrom=yes
2506 ;;
2507 aix)
2508 AC_DEFINE(SDL_CDROM_AIX)
2509 SOURCES="$SOURCES $srcdir/src/cdrom/aix/*.c"
2510 have_cdrom=yes
2511 ;;
2512 osf)
2513 AC_DEFINE(SDL_CDROM_OSF)
2514 SOURCES="$SOURCES $srcdir/src/cdrom/osf/*.c"
2515 have_cdrom=yes
2516 ;;
2517 esac
2518 fi
2519 # Set up files for the thread library 2477 # Set up files for the thread library
2520 if test x$enable_threads = xyes -a x$use_pthreads != xyes -a x$use_pth != xyes -a x$ARCH = xirix; then 2478 if test x$enable_threads = xyes -a x$use_pthreads != xyes -a x$use_pth != xyes -a x$ARCH = xirix; then
2521 AC_DEFINE(SDL_THREAD_SPROC) 2479 AC_DEFINE(SDL_THREAD_SPROC)
2522 SOURCES="$SOURCES $srcdir/src/thread/irix/*.c" 2480 SOURCES="$SOURCES $srcdir/src/thread/irix/*.c"
2523 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c" 2481 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
2557 if test x$enable_audio = xyes; then 2515 if test x$enable_audio = xyes; then
2558 AC_DEFINE(SDL_AUDIO_DRIVER_QSA) 2516 AC_DEFINE(SDL_AUDIO_DRIVER_QSA)
2559 SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c" 2517 SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
2560 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound" 2518 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
2561 have_audio=yes 2519 have_audio=yes
2562 fi
2563 # Set up files for the cdrom library
2564 if test x$enable_cdrom = xyes; then
2565 AC_DEFINE(SDL_CDROM_QNX)
2566 SOURCES="$SOURCES $srcdir/src/cdrom/qnx/*.c"
2567 have_cdrom=yes
2568 fi 2520 fi
2569 # Set up files for the timer library 2521 # Set up files for the timer library
2570 if test x$enable_timers = xyes; then 2522 if test x$enable_timers = xyes; then
2571 AC_DEFINE(SDL_TIMER_UNIX) 2523 AC_DEFINE(SDL_TIMER_UNIX)
2572 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 2524 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
2740 fi 2692 fi
2741 if test x$enable_power = xyes; then 2693 if test x$enable_power = xyes; then
2742 AC_DEFINE(SDL_POWER_WINDOWS) 2694 AC_DEFINE(SDL_POWER_WINDOWS)
2743 SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c" 2695 SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
2744 have_power=yes 2696 have_power=yes
2745 fi
2746 # Set up files for the cdrom library
2747 if test x$enable_cdrom = xyes; then
2748 AC_DEFINE(SDL_CDROM_WIN32)
2749 SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
2750 have_cdrom=yes
2751 fi 2697 fi
2752 # Set up files for the thread library 2698 # Set up files for the thread library
2753 if test x$enable_threads = xyes; then 2699 if test x$enable_threads = xyes; then
2754 AC_DEFINE(SDL_THREAD_WIN32) 2700 AC_DEFINE(SDL_THREAD_WIN32)
2755 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c" 2701 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
2799 if test x$enable_joystick = xyes; then 2745 if test x$enable_joystick = xyes; then
2800 AC_DEFINE(SDL_JOYSTICK_BEOS) 2746 AC_DEFINE(SDL_JOYSTICK_BEOS)
2801 SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc" 2747 SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc"
2802 have_joystick=yes 2748 have_joystick=yes
2803 fi 2749 fi
2804 # Set up files for the cdrom library
2805 if test x$enable_cdrom = xyes; then
2806 AC_DEFINE(SDL_CDROM_BEOS)
2807 SOURCES="$SOURCES $srcdir/src/cdrom/beos/*.cc"
2808 have_cdrom=yes
2809 fi
2810 # Set up files for the thread library 2750 # Set up files for the thread library
2811 if test x$enable_threads = xyes; then 2751 if test x$enable_threads = xyes; then
2812 AC_DEFINE(SDL_THREAD_BEOS) 2752 AC_DEFINE(SDL_THREAD_BEOS)
2813 SOURCES="$SOURCES $srcdir/src/thread/beos/*.c" 2753 SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
2814 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c" 2754 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
2908 if test x$enable_power = xyes; then 2848 if test x$enable_power = xyes; then
2909 AC_DEFINE(SDL_POWER_MACOSX) 2849 AC_DEFINE(SDL_POWER_MACOSX)
2910 SOURCES="$SOURCES $srcdir/src/power/macosx/*.c" 2850 SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
2911 have_power=yes 2851 have_power=yes
2912 fi 2852 fi
2913 # Set up files for the cdrom library
2914 if test x$enable_cdrom = xyes; then
2915 AC_DEFINE(SDL_CDROM_MACOSX)
2916 SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
2917 have_cdrom=yes
2918 fi
2919 # Set up files for the timer library 2853 # Set up files for the timer library
2920 if test x$enable_timers = xyes; then 2854 if test x$enable_timers = xyes; then
2921 AC_DEFINE(SDL_TIMER_UNIX) 2855 AC_DEFINE(SDL_TIMER_UNIX)
2922 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 2856 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
2923 have_timers=yes 2857 have_timers=yes
2927 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc" 2861 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
2928 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa" 2862 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
2929 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon" 2863 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
2930 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit" 2864 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
2931 # If either the audio or CD driver is used, add the AudioUnit framework 2865 # If either the audio or CD driver is used, add the AudioUnit framework
2932 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then 2866 if test x$enable_audio = xyes; then
2933 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit" 2867 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
2934 fi 2868 fi
2935 ;; 2869 ;;
2936 *-*-mint*) 2870 *-*-mint*)
2937 ARCH=mint 2871 ARCH=mint
2957 if test x$enable_joystick = xyes; then 2891 if test x$enable_joystick = xyes; then
2958 AC_DEFINE(SDL_JOYSTICK_MINT) 2892 AC_DEFINE(SDL_JOYSTICK_MINT)
2959 SOURCES="$SOURCES $srcdir/src/joystick/mint/*.c" 2893 SOURCES="$SOURCES $srcdir/src/joystick/mint/*.c"
2960 have_joystick=yes 2894 have_joystick=yes
2961 fi 2895 fi
2962 # Set up files for the cdrom library
2963 if test x$enable_cdrom = xyes; then
2964 AC_DEFINE(SDL_CDROM_MINT)
2965 SOURCES="$SOURCES $srcdir/src/cdrom/mint/*.c"
2966 have_cdrom=yes
2967 fi
2968 # Set up files for the timer library 2896 # Set up files for the timer library
2969 if test x$enable_timers = xyes; then 2897 if test x$enable_timers = xyes; then
2970 if test x$enable_threads = xyes -a x$enable_pth = xyes; then 2898 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
2971 AC_DEFINE(SDL_TIMER_UNIX) 2899 AC_DEFINE(SDL_TIMER_UNIX)
2972 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 2900 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
3022 if test x$have_haptic != xyes; then 2950 if test x$have_haptic != xyes; then
3023 if test x$enable_haptic = xyes; then 2951 if test x$enable_haptic = xyes; then
3024 AC_DEFINE(SDL_HAPTIC_DISABLED) 2952 AC_DEFINE(SDL_HAPTIC_DISABLED)
3025 fi 2953 fi
3026 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c" 2954 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
3027 fi
3028 if test x$have_cdrom != xyes; then
3029 if test x$enable_cdrom = xyes; then
3030 AC_DEFINE(SDL_CDROM_DISABLED)
3031 fi
3032 SOURCES="$SOURCES $srcdir/src/cdrom/dummy/*.c"
3033 fi 2955 fi
3034 if test x$have_threads != xyes; then 2956 if test x$have_threads != xyes; then
3035 if test x$enable_threads = xyes; then 2957 if test x$enable_threads = xyes; then
3036 AC_DEFINE(SDL_THREADS_DISABLED) 2958 AC_DEFINE(SDL_THREADS_DISABLED)
3037 fi 2959 fi