Mercurial > sdl-ios-xcode
comparison configure.in @ 2049:5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 17 Oct 2006 09:15:21 +0000 |
parents | be848c07f0b9 |
children | 8f8066b84b3e |
comparison
equal
deleted
inserted
replaced
2048:6067c7f9a672 | 2049:5f6550e5184f |
---|---|
509 { | 509 { |
510 AC_ARG_ENABLE(nas, | 510 AC_ARG_ENABLE(nas, |
511 AC_HELP_STRING([--enable-nas], [support the NAS audio API [[default=yes]]]), | 511 AC_HELP_STRING([--enable-nas], [support the NAS audio API [[default=yes]]]), |
512 , enable_nas=yes) | 512 , enable_nas=yes) |
513 if test x$enable_audio = xyes -a x$enable_nas = xyes; then | 513 if test x$enable_audio = xyes -a x$enable_nas = xyes; then |
514 AC_CHECK_HEADER(audio/audiolib.h, have_nas_hdr=yes) | |
515 AC_CHECK_LIB(audio, AuOpenServer, have_nas_lib=yes) | |
516 | |
514 AC_MSG_CHECKING(for NAS audio support) | 517 AC_MSG_CHECKING(for NAS audio support) |
515 have_nas=no | 518 have_nas=no |
516 if test -r /usr/X11R6/include/audio/audiolib.h; then | 519 |
520 if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then | |
521 have_nas=yes | |
522 NAS_LIBS="-laudio" | |
523 | |
524 elif test -r /usr/X11R6/include/audio/audiolib.h; then | |
517 have_nas=yes | 525 have_nas=yes |
518 NAS_CFLAGS="-I/usr/X11R6/include/" | 526 NAS_CFLAGS="-I/usr/X11R6/include/" |
519 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt" | 527 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt" |
520 | 528 |
521 dnl On IRIX, the NAS includes are in a different directory, | 529 dnl On IRIX, the NAS includes are in a different directory, |
523 | 531 |
524 elif test -r /usr/freeware/include/nas/audiolib.h; then | 532 elif test -r /usr/freeware/include/nas/audiolib.h; then |
525 have_nas=yes | 533 have_nas=yes |
526 NAS_LIBS="-lnas -lXt" | 534 NAS_LIBS="-lnas -lXt" |
527 fi | 535 fi |
536 | |
528 AC_MSG_RESULT($have_nas) | 537 AC_MSG_RESULT($have_nas) |
538 | |
529 if test x$have_nas = xyes; then | 539 if test x$have_nas = xyes; then |
540 AC_ARG_ENABLE(nas-shared, | |
541 AC_HELP_STRING([--enable-nas-shared], [dynamically load NAS audio support [[default=yes]]]), | |
542 , enable_nas_shared=yes) | |
543 if test "x`echo $NAS_LIBS | grep -- -L`" = "x"; then | |
544 if test "x`ls /lib/libaudio.so.* 2> /dev/null`" != "x"; then | |
545 NAS_LIBS="-L/lib $NAS_LIBS" | |
546 elif test "x`ls /usr/lib/libaudio.so.* 2> /dev/null`" != "x"; then | |
547 NAS_LIBS="-L/usr/lib $NAS_LIBS" | |
548 elif test "x`ls /usr/local/lib/libaudio.so.* 2> /dev/null`" != "x"; then | |
549 NAS_LIBS="-L/usr/local/lib $NAS_LIBS" | |
550 fi | |
551 fi | |
552 nas_lib_spec=`echo $NAS_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libaudio.so.*/'` | |
553 nas_lib=`ls -- $nas_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` | |
554 echo "-- $nas_lib_spec -> $nas_lib" | |
555 | |
556 if test x$have_loadso != xyes && \ | |
557 test x$enable_nas_shared = xyes; then | |
558 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic NAS loading]) | |
559 fi | |
560 if test x$have_loadso = xyes && \ | |
561 test x$enable_nas_shared = xyes && test x$alsa_lib != x; then | |
562 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_NAS_DYNAMIC, "$nas_lib") | |
563 else | |
564 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS" | |
565 fi | |
566 | |
530 AC_DEFINE(SDL_AUDIO_DRIVER_NAS) | 567 AC_DEFINE(SDL_AUDIO_DRIVER_NAS) |
531 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c" | 568 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c" |
532 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS" | 569 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS" |
533 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS" | |
534 have_audio=yes | 570 have_audio=yes |
535 fi | 571 fi |
536 fi | 572 fi |
537 } | 573 } |
538 | 574 |
2004 AC_DEFINE(SDL_AUDIO_DRIVER_BSD) | 2040 AC_DEFINE(SDL_AUDIO_DRIVER_BSD) |
2005 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c" | 2041 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c" |
2006 have_audio=yes | 2042 have_audio=yes |
2007 ;; | 2043 ;; |
2008 aix) | 2044 aix) |
2009 AC_DEFINE(SDL_AUDIO_DRIVER_PAUD) | 2045 AC_DEFINE(SDL_AUDIO_DRIVER_PAUDIO) |
2010 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c" | 2046 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c" |
2011 have_audio=yes | 2047 have_audio=yes |
2012 ;; | 2048 ;; |
2013 esac | 2049 esac |
2014 fi | 2050 fi |
2204 CheckNASM | 2240 CheckNASM |
2205 CheckBWINDOW | 2241 CheckBWINDOW |
2206 CheckBeGL | 2242 CheckBeGL |
2207 # Set up files for the audio library | 2243 # Set up files for the audio library |
2208 if test x$enable_audio = xyes; then | 2244 if test x$enable_audio = xyes; then |
2209 AC_DEFINE(SDL_AUDIO_DRIVER_BAUDIO) | 2245 AC_DEFINE(SDL_AUDIO_DRIVER_BEOSAUDIO) |
2210 SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc" | 2246 SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc" |
2211 have_audio=yes | 2247 have_audio=yes |
2212 fi | 2248 fi |
2213 # Set up files for the joystick library | 2249 # Set up files for the joystick library |
2214 if test x$enable_joystick = xyes; then | 2250 if test x$enable_joystick = xyes; then |
2321 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings" | 2357 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings" |
2322 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa" | 2358 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa" |
2323 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon" | 2359 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon" |
2324 # If either the audio or CD driver is used, add the AudioUnit framework | 2360 # If either the audio or CD driver is used, add the AudioUnit framework |
2325 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then | 2361 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then |
2326 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit" | 2362 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -framework,AudioToolbox -Wl,-framework,AudioUnit" |
2327 fi | 2363 fi |
2328 ;; | 2364 ;; |
2329 *-*-mint*) | 2365 *-*-mint*) |
2330 ARCH=mint | 2366 ARCH=mint |
2331 CheckDummyVideo | 2367 CheckDummyVideo |