comparison configure.in @ 1730:e70477157db9 SDL-1.3

Starting support for Direct3D render driver.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 08 Jul 2006 18:06:02 +0000
parents 6c63fc2bd986
children
comparison
equal deleted inserted replaced
1729:0ef52d56e8bb 1730:e70477157db9
1859 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]]]),
1860 , enable_stdio_redirect=yes) 1860 , enable_stdio_redirect=yes)
1861 if test x$enable_stdio_redirect != xyes; then 1861 if test x$enable_stdio_redirect != xyes; then
1862 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT" 1862 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT"
1863 fi 1863 fi
1864
1865 if test x$enable_video = xyes; then
1866 AC_DEFINE(SDL_VIDEO_DRIVER_WIN32)
1867 SOURCES="$SOURCES $srcdir/src/video/win32/*.c"
1868 have_video=yes
1869 fi
1870 } 1864 }
1871 1865
1872 dnl Find the DirectX includes and libraries 1866 dnl Find the DirectX includes and libraries
1873 CheckDIRECTX() 1867 CheckDIRECTX()
1874 { 1868 {
1875 AC_ARG_ENABLE(directx, 1869 AC_ARG_ENABLE(directx,
1876 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]]]),
1877 , enable_directx=yes) 1871 , enable_directx=yes)
1878 if test x$enable_directx = xyes; then 1872 if test x$enable_directx = xyes; then
1873 AC_CHECK_HEADER(d3d9.h, have_d3d=yes)
1879 AC_CHECK_HEADER(dsound.h, have_dsound=yes) 1874 AC_CHECK_HEADER(dsound.h, have_dsound=yes)
1880 AC_CHECK_HEADER(dinput.h, use_dinput=yes) 1875 AC_CHECK_HEADER(dinput.h, use_dinput=yes)
1881 fi 1876 fi
1882 } 1877 }
1883 1878
2296 CheckWIN32 2291 CheckWIN32
2297 CheckWIN32GL 2292 CheckWIN32GL
2298 CheckglSDL 2293 CheckglSDL
2299 CheckDIRECTX 2294 CheckDIRECTX
2300 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
2301 # Set up files for the audio library 2314 # Set up files for the audio library
2302 if test x$enable_audio = xyes; then 2315 if test x$enable_audio = xyes; then
2303 AC_DEFINE(SDL_AUDIO_DRIVER_WAVEOUT) 2316 AC_DEFINE(SDL_AUDIO_DRIVER_WAVEOUT)
2304 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c" 2317 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
2305 if test x$have_dsound = xyes; then 2318 if test x$have_dsound = xyes; then