Mercurial > sdl-ios-xcode
comparison configure.in @ 1895:c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 10 Jul 2006 21:04:37 +0000 |
parents | 40b43a80adb5 |
children | c26194009c9c |
comparison
equal
deleted
inserted
replaced
1894:c69cee13dd76 | 1895:c121d94672cb |
---|---|
13 # if any functions have been added, set SDL_INTERFACE_AGE to 0. | 13 # if any functions have been added, set SDL_INTERFACE_AGE to 0. |
14 # if backwards compatibility has been broken, | 14 # if backwards compatibility has been broken, |
15 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0. | 15 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0. |
16 # | 16 # |
17 SDL_MAJOR_VERSION=1 | 17 SDL_MAJOR_VERSION=1 |
18 SDL_MINOR_VERSION=2 | 18 SDL_MINOR_VERSION=3 |
19 SDL_MICRO_VERSION=11 | 19 SDL_MICRO_VERSION=0 |
20 SDL_INTERFACE_AGE=0 | 20 SDL_INTERFACE_AGE=0 |
21 SDL_BINARY_AGE=11 | 21 SDL_BINARY_AGE=0 |
22 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION | 22 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION |
23 | 23 |
24 AC_SUBST(SDL_MAJOR_VERSION) | 24 AC_SUBST(SDL_MAJOR_VERSION) |
25 AC_SUBST(SDL_MINOR_VERSION) | 25 AC_SUBST(SDL_MINOR_VERSION) |
26 AC_SUBST(SDL_MICRO_VERSION) | 26 AC_SUBST(SDL_MICRO_VERSION) |
1531 fi | 1531 fi |
1532 esac | 1532 esac |
1533 fi | 1533 fi |
1534 } | 1534 } |
1535 | 1535 |
1536 dnl Find glSDL | |
1537 CheckglSDL() | |
1538 { | |
1539 AC_ARG_ENABLE(video-glsdl, | |
1540 [ --enable-video-glsdl use glSDL video driver [default=yes]], | |
1541 , enable_video_glsdl=yes) | |
1542 AC_MSG_CHECKING(for glSDL support) | |
1543 AC_MSG_RESULT($video_opengl) | |
1544 if test x$video_opengl = xyes -a x$enable_video_glsdl = xyes; then | |
1545 AC_DEFINE(SDL_VIDEO_DRIVER_GLSDL) | |
1546 SOURCES="$SOURCES $srcdir/src/video/glsdl/*.c" | |
1547 fi | |
1548 } | |
1549 | |
1536 dnl Check for Mesa offscreen rendering | 1550 dnl Check for Mesa offscreen rendering |
1537 CheckAtariOSMesa() | 1551 CheckAtariOSMesa() |
1538 { | 1552 { |
1539 if test "x$enable_video" = "xyes" -a "x$enable_video_opengl" = "xyes"; then | 1553 if test "x$enable_video" = "xyes" -a "x$enable_video_opengl" = "xyes"; then |
1540 AC_CHECK_HEADER(GL/osmesa.h, have_osmesa_hdr=yes) | 1554 AC_CHECK_HEADER(GL/osmesa.h, have_osmesa_hdr=yes) |
1845 AC_HELP_STRING([--enable-stdio-redirect], [Redirect STDIO to files on Win32 [[default=yes]]]), | 1859 AC_HELP_STRING([--enable-stdio-redirect], [Redirect STDIO to files on Win32 [[default=yes]]]), |
1846 , enable_stdio_redirect=yes) | 1860 , enable_stdio_redirect=yes) |
1847 if test x$enable_stdio_redirect != xyes; then | 1861 if test x$enable_stdio_redirect != xyes; then |
1848 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT" | 1862 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT" |
1849 fi | 1863 fi |
1850 | |
1851 if test x$enable_video = xyes; then | |
1852 AC_DEFINE(SDL_VIDEO_DRIVER_WINDIB) | |
1853 SOURCES="$SOURCES $srcdir/src/video/wincommon/*.c" | |
1854 SOURCES="$SOURCES $srcdir/src/video/windib/*.c" | |
1855 have_video=yes | |
1856 fi | |
1857 } | 1864 } |
1858 | 1865 |
1859 dnl Find the DirectX includes and libraries | 1866 dnl Find the DirectX includes and libraries |
1860 CheckDIRECTX() | 1867 CheckDIRECTX() |
1861 { | 1868 { |
1862 AC_ARG_ENABLE(directx, | 1869 AC_ARG_ENABLE(directx, |
1863 AC_HELP_STRING([--enable-directx], [use DirectX for Win32 audio/video [[default=yes]]]), | 1870 AC_HELP_STRING([--enable-directx], [use DirectX for Win32 audio/video [[default=yes]]]), |
1864 , enable_directx=yes) | 1871 , enable_directx=yes) |
1865 if test x$enable_directx = xyes; then | 1872 if test x$enable_directx = xyes; then |
1866 have_directx=no | 1873 AC_CHECK_HEADER(d3d9.h, have_d3d=yes) |
1867 AC_CHECK_HEADER(ddraw.h, have_ddraw=yes) | |
1868 AC_CHECK_HEADER(dsound.h, have_dsound=yes) | 1874 AC_CHECK_HEADER(dsound.h, have_dsound=yes) |
1869 AC_CHECK_HEADER(dinput.h, use_dinput=yes) | 1875 AC_CHECK_HEADER(dinput.h, use_dinput=yes) |
1870 if test x$have_ddraw = xyes -a x$have_dsound = xyes -a x$use_dinput = xyes; then | |
1871 have_directx=yes | |
1872 fi | |
1873 if test x$enable_video = xyes -a x$have_directx = xyes; then | |
1874 AC_DEFINE(SDL_VIDEO_DRIVER_DDRAW) | |
1875 SOURCES="$SOURCES $srcdir/src/video/windx5/*.c" | |
1876 have_video=yes | |
1877 fi | |
1878 fi | 1876 fi |
1879 } | 1877 } |
1880 | 1878 |
1881 dnl Check for the dlfcn.h interface for dynamically loading objects | 1879 dnl Check for the dlfcn.h interface for dynamically loading objects |
1882 CheckDLOPEN() | 1880 CheckDLOPEN() |
2153 CheckWscons | 2151 CheckWscons |
2154 CheckAAlib | 2152 CheckAAlib |
2155 CheckQtopia | 2153 CheckQtopia |
2156 CheckPicoGUI | 2154 CheckPicoGUI |
2157 CheckOpenGLX11 | 2155 CheckOpenGLX11 |
2156 CheckglSDL | |
2158 CheckInputEvents | 2157 CheckInputEvents |
2159 CheckTslib | 2158 CheckTslib |
2160 CheckUSBHID | 2159 CheckUSBHID |
2161 CheckPTHREAD | 2160 CheckPTHREAD |
2162 CheckClockGettime | 2161 CheckClockGettime |
2251 CheckDLOPEN | 2250 CheckDLOPEN |
2252 CheckNAS | 2251 CheckNAS |
2253 CheckPHOTON | 2252 CheckPHOTON |
2254 CheckX11 | 2253 CheckX11 |
2255 CheckOpenGLX11 | 2254 CheckOpenGLX11 |
2255 CheckglSDL | |
2256 CheckPTHREAD | 2256 CheckPTHREAD |
2257 # Set up files for the audio library | 2257 # Set up files for the audio library |
2258 if test x$enable_audio = xyes; then | 2258 if test x$enable_audio = xyes; then |
2259 AC_DEFINE(SDL_AUDIO_DRIVER_QNXNTO) | 2259 AC_DEFINE(SDL_AUDIO_DRIVER_QNXNTO) |
2260 SOURCES="$SOURCES $srcdir/src/audio/nto/*.c" | 2260 SOURCES="$SOURCES $srcdir/src/audio/nto/*.c" |
2288 CheckDummyVideo | 2288 CheckDummyVideo |
2289 CheckDiskAudio | 2289 CheckDiskAudio |
2290 CheckDummyAudio | 2290 CheckDummyAudio |
2291 CheckWIN32 | 2291 CheckWIN32 |
2292 CheckWIN32GL | 2292 CheckWIN32GL |
2293 CheckglSDL | |
2293 CheckDIRECTX | 2294 CheckDIRECTX |
2294 CheckNASM | 2295 CheckNASM |
2296 # Set up files for the video library | |
2297 if test x$enable_video = xyes; then | |
2298 AC_DEFINE(SDL_VIDEO_DRIVER_WIN32) | |
2299 SOURCES="$SOURCES $srcdir/src/video/win32/*.c" | |
2300 have_video=yes | |
2301 AC_ARG_ENABLE(render-gdi, | |
2302 AC_HELP_STRING([--enable-render-gdi], [enable the GDI render driver [[default=yes]]]), | |
2303 , enable_render_gdi=yes) | |
2304 if test x$enable_render_gdi = xyes; then | |
2305 AC_DEFINE(SDL_VIDEO_RENDER_GDI) | |
2306 fi | |
2307 AC_ARG_ENABLE(render-d3d, | |
2308 AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[default=yes]]]), | |
2309 , enable_render_d3d=yes) | |
2310 if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then | |
2311 AC_DEFINE(SDL_VIDEO_RENDER_D3D) | |
2312 fi | |
2313 fi | |
2295 # Set up files for the audio library | 2314 # Set up files for the audio library |
2296 if test x$enable_audio = xyes; then | 2315 if test x$enable_audio = xyes; then |
2297 AC_DEFINE(SDL_AUDIO_DRIVER_WAVEOUT) | 2316 AC_DEFINE(SDL_AUDIO_DRIVER_WAVEOUT) |
2298 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c" | 2317 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c" |
2299 if test x$have_directx = xyes; then | 2318 if test x$have_dsound = xyes; then |
2300 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND) | 2319 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND) |
2301 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c" | 2320 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c" |
2302 fi | 2321 fi |
2303 have_audio=yes | 2322 have_audio=yes |
2304 fi | 2323 fi |
2305 # Set up files for the joystick library | 2324 # Set up files for the joystick library |
2306 if test x$enable_joystick = xyes; then | 2325 if test x$enable_joystick = xyes; then |
2307 AC_DEFINE(SDL_JOYSTICK_WINMM) | 2326 if test x$have_dinput = xyes; then |
2308 SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c" | 2327 AC_DEFINE(SDL_JOYSTICK_DINPUT) |
2328 SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_dxjoystick.c" | |
2329 else | |
2330 AC_DEFINE(SDL_JOYSTICK_WINMM) | |
2331 SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_mmjoystick.c" | |
2332 fi | |
2309 have_joystick=yes | 2333 have_joystick=yes |
2310 fi | 2334 fi |
2311 # Set up files for the cdrom library | 2335 # Set up files for the cdrom library |
2312 if test x$enable_cdrom = xyes; then | 2336 if test x$enable_cdrom = xyes; then |
2313 AC_DEFINE(SDL_CDROM_WIN32) | 2337 AC_DEFINE(SDL_CDROM_WIN32) |
2334 AC_DEFINE(SDL_LOADSO_WIN32) | 2358 AC_DEFINE(SDL_LOADSO_WIN32) |
2335 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c" | 2359 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c" |
2336 have_loadso=yes | 2360 have_loadso=yes |
2337 fi | 2361 fi |
2338 # Set up the system libraries we need | 2362 # Set up the system libraries we need |
2339 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm" | 2363 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lmsimg32 -lwinmm" |
2340 if test x$have_directx = xyes; then | |
2341 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid" | |
2342 fi | |
2343 # The Win32 platform requires special setup | 2364 # The Win32 platform requires special setup |
2344 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c" | 2365 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c" |
2345 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" | 2366 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" |
2346 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows" | 2367 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows" |
2347 ;; | 2368 ;; |
2352 CheckDiskAudio | 2373 CheckDiskAudio |
2353 CheckDummyAudio | 2374 CheckDummyAudio |
2354 CheckNASM | 2375 CheckNASM |
2355 CheckBWINDOW | 2376 CheckBWINDOW |
2356 CheckBeGL | 2377 CheckBeGL |
2378 CheckglSDL | |
2357 # Set up files for the audio library | 2379 # Set up files for the audio library |
2358 if test x$enable_audio = xyes; then | 2380 if test x$enable_audio = xyes; then |
2359 AC_DEFINE(SDL_AUDIO_DRIVER_BAUDIO) | 2381 AC_DEFINE(SDL_AUDIO_DRIVER_BAUDIO) |
2360 SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc" | 2382 SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc" |
2361 have_audio=yes | 2383 have_audio=yes |
2433 CheckCOCOA | 2455 CheckCOCOA |
2434 CheckCARBON | 2456 CheckCARBON |
2435 CheckX11 | 2457 CheckX11 |
2436 CheckMacGL | 2458 CheckMacGL |
2437 CheckOpenGLX11 | 2459 CheckOpenGLX11 |
2460 CheckglSDL | |
2438 CheckPTHREAD | 2461 CheckPTHREAD |
2439 CheckAltivec | 2462 CheckAltivec |
2440 | 2463 |
2441 # Need this or things might misbuild on a G3. | 2464 # Need this or things might misbuild on a G3. |
2442 EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL" | 2465 EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL" |
2494 CheckAtariXbiosVideo | 2517 CheckAtariXbiosVideo |
2495 CheckAtariGemVideo | 2518 CheckAtariGemVideo |
2496 CheckAtariAudio | 2519 CheckAtariAudio |
2497 CheckAtariLdg | 2520 CheckAtariLdg |
2498 CheckAtariOSMesa | 2521 CheckAtariOSMesa |
2522 CheckglSDL | |
2499 CheckPTH | 2523 CheckPTH |
2500 # Set up files for the audio library | 2524 # Set up files for the audio library |
2501 if test x$enable_threads = xyes -a x$enable_pth = xyes; then | 2525 if test x$enable_threads = xyes -a x$enable_pth = xyes; then |
2502 if test x$enable_audio = xyes; then | 2526 if test x$enable_audio = xyes; then |
2503 AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO) | 2527 AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO) |