configure.in
changeset 10904 4dbd025c4eb9
parent 10850 c9dc0068b0e7
child 10916 bade97ed25ac
equal deleted inserted replaced
10903:875e0bb9646c 10904:4dbd025c4eb9
  3344         fi
  3344         fi
  3345         # The Haiku platform requires special setup.
  3345         # The Haiku platform requires special setup.
  3346         SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  3346         SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  3347         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  3347         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  3348         ;;
  3348         ;;
  3349     arm*-apple-darwin*)
  3349     arm*-apple-darwin*|*-ios-*)
  3350         # iOS - We are not writing anything to confdefs.h because you have to replace
       
  3351         # SDL_config.h for SDL_config_iphoneos.h anyway
       
  3352         ARCH=ios
  3350         ARCH=ios
  3353 
  3351 
  3354         CheckVisibilityHidden
  3352         CheckVisibilityHidden
  3355         CheckDeclarationAfterStatement
  3353         CheckDeclarationAfterStatement
  3356         CheckDummyVideo
  3354         CheckDummyVideo
  3357         CheckDiskAudio
  3355         CheckDiskAudio
  3358         CheckDummyAudio
  3356         CheckDummyAudio
  3359         CheckDLOPEN
  3357         CheckDLOPEN
  3360         CheckCOCOA
       
  3361         CheckPTHREAD
  3358         CheckPTHREAD
  3362 
       
  3363 
  3359 
  3364         # Set up files for the audio library
  3360         # Set up files for the audio library
  3365         if test x$enable_audio = xyes; then
  3361         if test x$enable_audio = xyes; then
       
  3362             AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO, 1, [ ])
  3366             SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  3363             SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  3367             SUMMARY_audio="${SUMMARY_audio} coreaudio"
  3364             SUMMARY_audio="${SUMMARY_audio} coreaudio"
  3368             have_audio=yes
  3365             have_audio=yes
  3369         fi
  3366         fi
  3370         # Set up files for the joystick library
  3367         # Set up files for the joystick library
  3371         if test x$enable_joystick = xyes; then
  3368         if test x$enable_joystick = xyes; then
       
  3369             AC_DEFINE(SDL_JOYSTICK_MFI, 1, [ ])
  3372             SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  3370             SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  3373             have_joystick=yes
  3371             have_joystick=yes
  3374         fi
  3372         fi
  3375         # Set up files for the haptic library
  3373         # Set up files for the haptic library
  3376         #if test x$enable_haptic = xyes; then
  3374         #if test x$enable_haptic = xyes; then
  3378         #    have_haptic=yes
  3376         #    have_haptic=yes
  3379         #    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  3377         #    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  3380         #fi
  3378         #fi
  3381         # Set up files for the power library
  3379         # Set up files for the power library
  3382         if test x$enable_power = xyes; then
  3380         if test x$enable_power = xyes; then
       
  3381             AC_DEFINE(SDL_POWER_UIKIT, 1, [ ])
  3383             SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  3382             SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  3384             have_power=yes
  3383             have_power=yes
  3385         fi
  3384         fi
  3386         # Set up files for the filesystem library
  3385         # Set up files for the filesystem library
  3387         if test x$enable_filesystem = xyes; then
  3386         if test x$enable_filesystem = xyes; then
  3388             SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  3387             SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  3389             have_filesystem=yes
  3388             have_filesystem=yes
  3390         fi
  3389         fi
       
  3390         # Set up additional files for the file library
       
  3391         if test x$enable_file = xyes; then
       
  3392             AC_DEFINE(SDL_FILESYSTEM_COCOA, 1, [ ])
       
  3393             SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
       
  3394         fi
  3391         # Set up files for the timer library
  3395         # Set up files for the timer library
  3392         if test x$enable_timers = xyes; then
  3396         if test x$enable_timers = xyes; then
       
  3397             AC_DEFINE(SDL_TIMER_UNIX, 1, [ ])
  3393             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  3398             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  3394             have_timers=yes
  3399             have_timers=yes
  3395         fi
  3400         fi
  3396         # Set up additional files for the file library
       
  3397         if test x$enable_file = xyes; then
       
  3398             SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
       
  3399         fi
       
  3400         # The iOS platform requires special setup.
  3401         # The iOS platform requires special setup.
       
  3402         AC_DEFINE(SDL_VIDEO_DRIVER_UIKIT, 1, [ ])
       
  3403         AC_DEFINE(SDL_VIDEO_OPENGL_ES2, 1, [ ])
       
  3404         AC_DEFINE(SDL_VIDEO_OPENGL_ES, 1, [ ])
       
  3405         AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES, 1, [ ])
       
  3406         AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES2, 1, [ ])
  3401         SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  3407         SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  3402         EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  3408         EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  3403         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  3409         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
       
  3410         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
       
  3411         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
       
  3412         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
       
  3413         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
       
  3414         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  3404         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  3415         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  3405         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  3416         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  3406         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  3417         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  3407         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  3418         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  3408         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  3419         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  3409         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
       
  3410         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
       
  3411         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
       
  3412         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
       
  3413         ;;
  3420         ;;
  3414     *-*-darwin* )
  3421     *-*-darwin* )
  3415         # This could be either full "Mac OS X", or plain "Darwin" which is
  3422         # This could be either full "Mac OS X", or plain "Darwin" which is
  3416         # just the OS X kernel sans upper layers like Carbon and Cocoa.
  3423         # just the OS X kernel sans upper layers like Carbon and Cocoa.
  3417         # Next line is broken, and a few files below require Mac OS X (full)
  3424         # Next line is broken, and a few files below require Mac OS X (full)