configure
changeset 10348 58e8745fb4e1
parent 10347 221061d874e9
child 10349 4b978b7998aa
equal deleted inserted replaced
10347:221061d874e9 10348:58e8745fb4e1
 23527         if test x$enable_audio = xyes; then
 23527         if test x$enable_audio = xyes; then
 23528 
 23528 
 23529 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
 23529 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
 23530 
 23530 
 23531             SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
 23531             SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
       
 23532             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
 23532             SUMMARY_audio="${SUMMARY_audio} coreaudio"
 23533             SUMMARY_audio="${SUMMARY_audio} coreaudio"
 23533             have_audio=yes
 23534             have_audio=yes
 23534             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
       
 23535         fi
 23535         fi
 23536         # Set up files for the joystick library
 23536         # Set up files for the joystick library
 23537         if test x$enable_joystick = xyes; then
 23537         if test x$enable_joystick = xyes; then
 23538 
 23538 
 23539 $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
 23539 $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
 23545         if test x$enable_haptic = xyes; then
 23545         if test x$enable_haptic = xyes; then
 23546 
 23546 
 23547 $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
 23547 $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
 23548 
 23548 
 23549             SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
 23549             SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
       
 23550             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
 23550             have_haptic=yes
 23551             have_haptic=yes
 23551             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
       
 23552         fi
 23552         fi
 23553         # Set up files for the power library
 23553         # Set up files for the power library
 23554         if test x$enable_power = xyes; then
 23554         if test x$enable_power = xyes; then
 23555 
 23555 
 23556 $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
 23556 $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
 23583         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
 23583         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
 23584         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
 23584         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
 23585         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
 23585         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
 23586         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
 23586         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
 23587         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
 23587         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
 23588         # If audio is used, add the AudioUnit framework
       
 23589         if test x$enable_audio = xyes; then
       
 23590             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
       
 23591         fi
       
 23592         ;;
 23588         ;;
 23593     *-nacl|*-pnacl)
 23589     *-nacl|*-pnacl)
 23594         ARCH=nacl
 23590         ARCH=nacl
 23595         CheckNativeClient
 23591         CheckNativeClient
 23596         CheckDummyAudio
 23592         CheckDummyAudio