Mercurial > sdl-ios-xcode
comparison configure.in @ 1402:d910939febfa
Use consistent identifiers for the various platforms we support.
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 21 Feb 2006 08:46:50 +0000 |
parents | c35c161a1100 |
children | 1f4f09641645 |
comparison
equal
deleted
inserted
replaced
1401:1819fd069e89 | 1402:d910939febfa |
---|---|
55 INCLUDE="-Iinclude $INCLUDE" | 55 INCLUDE="-Iinclude $INCLUDE" |
56 fi | 56 fi |
57 case "$target" in | 57 case "$target" in |
58 *-*-cygwin*) | 58 *-*-cygwin*) |
59 # We build SDL on cygwin without the UNIX emulation layer | 59 # We build SDL on cygwin without the UNIX emulation layer |
60 CFLAGS="$CFLAGS -I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin" | 60 CFLAGS="$CFLAGS -I/usr/include/mingw -mno-cygwin" |
61 BUILD_CFLAGS="$CFLAGS \$(INCLUDE)" | 61 BUILD_CFLAGS="$CFLAGS \$(INCLUDE)" |
62 BUILD_LDFLAGS="$LDFLAGS -mno-cygwin" | 62 BUILD_LDFLAGS="$LDFLAGS -mno-cygwin" |
63 SDL_CFLAGS="-I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin" | 63 SDL_CFLAGS="-I/usr/include/mingw -mno-cygwin" |
64 SDL_LIBS="-lSDL -mno-cygwin" | 64 SDL_LIBS="-lSDL -mno-cygwin" |
65 ;; | 65 ;; |
66 *) | 66 *) |
67 CFLAGS="$CFLAGS -D_GNU_SOURCE=1" | 67 CFLAGS="$CFLAGS -D_GNU_SOURCE=1" |
68 BUILD_CFLAGS="$CFLAGS \$(INCLUDE)" | 68 BUILD_CFLAGS="$CFLAGS \$(INCLUDE)" |
237 AC_HELP_STRING([--enable-cpuinfo], [Enable the cpuinfo subsystem [default=yes]]), | 237 AC_HELP_STRING([--enable-cpuinfo], [Enable the cpuinfo subsystem [default=yes]]), |
238 , enable_cpuinfo=yes) | 238 , enable_cpuinfo=yes) |
239 if test x$enable_cpuinfo != xyes; then | 239 if test x$enable_cpuinfo != xyes; then |
240 AC_DEFINE(SDL_CPUINFO_DISABLED) | 240 AC_DEFINE(SDL_CPUINFO_DISABLED) |
241 fi | 241 fi |
242 AC_ARG_ENABLE(assembly-blit, | 242 AC_ARG_ENABLE(assembly, |
243 AC_HELP_STRING([--enable-asm-blit], [Enable assembly blitters [default=yes]]), | 243 AC_HELP_STRING([--enable-assembly], [Enable assembly routines [default=yes]]), |
244 , enable_asm_blit=yes) | 244 , enable_assembly=yes) |
245 if test x$enable_asm_blit = xyes; then | 245 if test x$enable_assembly = xyes; then |
246 AC_DEFINE(SDL_ASSEMBLY_BLITTERS) | 246 AC_DEFINE(SDL_ASSEMBLY_ROUTINES) |
247 fi | 247 fi |
248 | 248 |
249 dnl See if the OSS audio interface is supported | 249 dnl See if the OSS audio interface is supported |
250 CheckOSS() | 250 CheckOSS() |
251 { | 251 { |
557 esac | 557 esac |
558 dnl Check for NASM (for assembly blit routines) | 558 dnl Check for NASM (for assembly blit routines) |
559 AC_ARG_ENABLE(nasm, | 559 AC_ARG_ENABLE(nasm, |
560 AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [default=yes]]), | 560 AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [default=yes]]), |
561 , enable_nasm=yes) | 561 , enable_nasm=yes) |
562 if test x$enable_video = xyes -a x$enable_asm_blit = xyes -a x$enable_nasm = xyes; then | 562 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_nasm = xyes; then |
563 AC_PATH_PROG(NASM, nasm) | 563 AC_PATH_PROG(NASM, nasm) |
564 if test x$NASM != x -a x$NASM != x'"$NASM"'; then | 564 if test x$NASM != x -a x$NASM != x'"$NASM"'; then |
565 AC_DEFINE(SDL_HERMES_BLITTERS) | 565 AC_DEFINE(SDL_HERMES_BLITTERS) |
566 SOURCES="$SOURCES $srcdir/src/hermes/*.asm" | 566 SOURCES="$SOURCES $srcdir/src/hermes/*.asm" |
567 case $ARCH in | 567 case $ARCH in |
593 CheckAltivec() | 593 CheckAltivec() |
594 { | 594 { |
595 AC_ARG_ENABLE(altivec, | 595 AC_ARG_ENABLE(altivec, |
596 AC_HELP_STRING([--enable-altivec], [use altivec assembly blitters on PPC [default=yes]]), | 596 AC_HELP_STRING([--enable-altivec], [use altivec assembly blitters on PPC [default=yes]]), |
597 , enable_altivec=yes) | 597 , enable_altivec=yes) |
598 if test x$enable_video = xyes -a x$enable_asm_blit = xyes -a x$enable_altivec = xyes; then | 598 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_altivec = xyes; then |
599 have_altivec_h_hdr=no | 599 have_altivec_h_hdr=no |
600 AC_CHECK_HEADER(altivec.h, have_altivec_h_hdr=yes) | 600 AC_CHECK_HEADER(altivec.h, have_altivec_h_hdr=yes) |
601 | 601 |
602 save_CFLAGS="$CFLAGS" | 602 save_CFLAGS="$CFLAGS" |
603 have_gcc_altivec=no | 603 have_gcc_altivec=no |
2010 if test x$enable_timers = xyes; then | 2010 if test x$enable_timers = xyes; then |
2011 AC_DEFINE(SDL_TIMER_UNIX) | 2011 AC_DEFINE(SDL_TIMER_UNIX) |
2012 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" | 2012 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" |
2013 have_timers=yes | 2013 have_timers=yes |
2014 fi | 2014 fi |
2015 # Do any final platform setup | |
2016 case $ARCH in | |
2017 openbsd|netbsd) | |
2018 # OpenBSD and NetBSD do not define "unix" | |
2019 BUILD_CFLAGS="$BUILD_CFLAGS -Dunix" | |
2020 ;; | |
2021 esac | |
2022 ;; | 2015 ;; |
2023 *-*-qnx*) | 2016 *-*-qnx*) |
2024 ARCH=qnx | 2017 ARCH=qnx |
2025 CheckDummyVideo | 2018 CheckDummyVideo |
2026 CheckDiskAudio | 2019 CheckDiskAudio |
2219 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c" | 2212 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c" |
2220 have_loadso=yes | 2213 have_loadso=yes |
2221 fi | 2214 fi |
2222 # The MacOS X platform requires special setup. | 2215 # The MacOS X platform requires special setup. |
2223 SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m" | 2216 SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m" |
2224 AC_DEFINE(TARGET_API_MAC_CARBON) | 2217 BUILD_CFLAGS="$BUILD_CFLAGS -fpascal-strings" |
2225 BUILD_CFLAGS="$BUILD_CFLAGS -fpascal-strings -DMACOSX" | |
2226 SDL_LIBS="-lSDLmain $SDL_LIBS" | 2218 SDL_LIBS="-lSDLmain $SDL_LIBS" |
2227 if test x$enable_video_cocoa = xyes; then | 2219 if test x$enable_video_cocoa = xyes; then |
2228 BUILD_LDFLAGS="$BUILD_LDFLAGS -framework Cocoa" | 2220 BUILD_LDFLAGS="$BUILD_LDFLAGS -framework Cocoa" |
2229 fi | 2221 fi |
2230 if test x$enable_video_carbon = xyes -o x$enable_video_cocoa = xyes; then | 2222 if test x$enable_video_carbon = xyes -o x$enable_video_cocoa = xyes; then |
2277 AC_DEFINE(SDL_TIMER_MINT) | 2269 AC_DEFINE(SDL_TIMER_MINT) |
2278 SOURCES="$SOURCES $srcdir/src/timer/mint/*.c" | 2270 SOURCES="$SOURCES $srcdir/src/timer/mint/*.c" |
2279 fi | 2271 fi |
2280 have_timers=yes | 2272 have_timers=yes |
2281 fi | 2273 fi |
2282 # MiNT does not define "unix" | |
2283 BUILD_CFLAGS="$BUILD_CFLAGS -Dunix" | |
2284 ;; | 2274 ;; |
2285 *-riscos) | 2275 *-riscos) |
2286 ARCH=riscos | 2276 ARCH=riscos |
2287 CheckOSS | 2277 CheckOSS |
2288 CheckPTHREAD | 2278 CheckPTHREAD |