comparison configure.in @ 2104:a76e8b9f3d2e

Mac OS X port always links with IOKit framework in SDL 1.3.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 04 Apr 2007 10:41:00 +0000
parents 4a010418f3b9
children 024af473e643
comparison
equal deleted inserted replaced
2103:4a010418f3b9 2104:a76e8b9f3d2e
2345 fi 2345 fi
2346 # Set up files for the joystick library 2346 # Set up files for the joystick library
2347 if test x$enable_joystick = xyes; then 2347 if test x$enable_joystick = xyes; then
2348 AC_DEFINE(SDL_JOYSTICK_IOKIT) 2348 AC_DEFINE(SDL_JOYSTICK_IOKIT)
2349 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c" 2349 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
2350 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
2351 have_joystick=yes 2350 have_joystick=yes
2352 fi 2351 fi
2353 # Set up files for the cdrom library 2352 # Set up files for the cdrom library
2354 if test x$enable_cdrom = xyes; then 2353 if test x$enable_cdrom = xyes; then
2355 AC_DEFINE(SDL_CDROM_MACOSX) 2354 AC_DEFINE(SDL_CDROM_MACOSX)
2364 fi 2363 fi
2365 # The Mac OS X platform requires special setup. 2364 # The Mac OS X platform requires special setup.
2366 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings" 2365 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
2367 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa" 2366 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
2368 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon" 2367 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
2368 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
2369 # If either the audio or CD driver is used, add the AudioUnit framework 2369 # If either the audio or CD driver is used, add the AudioUnit framework
2370 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then 2370 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then
2371 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -framework,AudioToolbox -Wl,-framework,AudioUnit" 2371 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -framework,AudioToolbox -Wl,-framework,AudioUnit"
2372 fi 2372 fi
2373 ;; 2373 ;;