comparison configure.in @ 936:84f930aebaeb

CoreAudio driver works on Mac OSX 10.1
author Sam Lantinga <slouken@libsdl.org>
date Sat, 21 Aug 2004 03:21:44 +0000
parents f8d5ddc7aef1
children c7c04f811994
comparison
equal deleted inserted replaced
935:f8d5ddc7aef1 936:84f930aebaeb
484 if test x$have_mint_falcon_hdr = xyes; then 484 if test x$have_mint_falcon_hdr = xyes; then
485 mintaudio=yes 485 mintaudio=yes
486 CFLAGS="$CFLAGS -DMINTAUDIO_SUPPORT" 486 CFLAGS="$CFLAGS -DMINTAUDIO_SUPPORT"
487 AUDIO_SUBDIRS="$AUDIO_SUBDIRS mint" 487 AUDIO_SUBDIRS="$AUDIO_SUBDIRS mint"
488 AUDIO_DRIVERS="$AUDIO_DRIVERS mint/libaudio_mintaudio.la" 488 AUDIO_DRIVERS="$AUDIO_DRIVERS mint/libaudio_mintaudio.la"
489 fi
490 fi
491 }
492
493 dnl Check whether we want to use CoreAudio
494 CheckCoreAudio()
495 {
496 if test x$enable_audio = xyes; then
497 AC_MSG_CHECKING(for CoreAudio audio support)
498 have_coreaudio=no
499 AC_TRY_COMPILE([
500 #include <AudioUnit/AudioUnit.h>
501 ],[
502 AudioUnitInputCallback callback;
503 ],[
504 have_coreaudio=yes
505 ])
506 AC_MSG_RESULT($have_coreaudio)
507 # Set up files for the audio library
508 if test x$have_coreaudio = xyes; then
509 CFLAGS="$CFLAGS -DCOREAUDIO_SUPPORT"
510 AUDIO_SUBDIRS="$AUDIO_SUBDIRS macosx"
511 AUDIO_DRIVERS="$AUDIO_DRIVERS macosx/libaudio_macosx.la"
512 fi 489 fi
513 fi 490 fi
514 } 491 }
515 492
516 dnl See if we can use x86 assembly blitters 493 dnl See if we can use x86 assembly blitters
2529 # just the OS X kernel sans upper layers like Carbon and Cocoa. 2506 # just the OS X kernel sans upper layers like Carbon and Cocoa.
2530 # But config.guess comes back with "darwin", so go with the flow. 2507 # But config.guess comes back with "darwin", so go with the flow.
2531 ARCH=macosx 2508 ARCH=macosx
2532 CheckDummyVideo 2509 CheckDummyVideo
2533 CheckDiskAudio 2510 CheckDiskAudio
2534 CheckCoreAudio
2535 CheckQUARTZ 2511 CheckQUARTZ
2536 CheckMacGL 2512 CheckMacGL
2537 CheckPTHREAD 2513 CheckPTHREAD
2538 CheckSIGACTION 2514 CheckSIGACTION
2539 # If either the audio or CD driver is used, add the AudioUnit framework 2515 # If either the audio or CD driver is used, add the AudioUnit framework
2540 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then 2516 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then
2541 SYSTEM_LIBS="$SYSTEM_LIBS -framework AudioToolbox -framework AudioUnit" 2517 SYSTEM_LIBS="$SYSTEM_LIBS -framework AudioToolbox -framework AudioUnit"
2542 fi 2518 fi
2543 # Set up files for the audio library 2519 # Set up files for the audio library
2544 if test x$enable_audio = xyes; then 2520 if test x$enable_audio = xyes; then
2521 AUDIO_SUBDIRS="$AUDIO_SUBDIRS macosx"
2522 AUDIO_DRIVERS="$AUDIO_DRIVERS macosx/libaudio_macosx.la"
2545 AUDIO_SUBDIRS="$AUDIO_SUBDIRS macrom" 2523 AUDIO_SUBDIRS="$AUDIO_SUBDIRS macrom"
2546 AUDIO_DRIVERS="$AUDIO_DRIVERS macrom/libaudio_macrom.la" 2524 AUDIO_DRIVERS="$AUDIO_DRIVERS macrom/libaudio_macrom.la"
2547 fi 2525 fi
2548 # Set up files for the joystick library 2526 # Set up files for the joystick library
2549 if test x$enable_joystick = xyes; then 2527 if test x$enable_joystick = xyes; then