comparison configure.in @ 37:3ad7157c6cfa

Added native OpenBSD audio driver (thanks vedge!)
author Sam Lantinga <slouken@lokigames.com>
date Sat, 26 May 2001 16:58:37 +0000
parents d3bc792e136d
children a6a2fbe66fd1
comparison
equal deleted inserted replaced
36:13ee9f4834ea 37:3ad7157c6cfa
273 CFLAGS="$CFLAGS -DALSA_SUPPORT" 273 CFLAGS="$CFLAGS -DALSA_SUPPORT"
274 SYSTEM_LIBS="$SYSTEM_LIBS -lasound" 274 SYSTEM_LIBS="$SYSTEM_LIBS -lasound"
275 AUDIO_SUBDIRS="$AUDIO_SUBDIRS alsa" 275 AUDIO_SUBDIRS="$AUDIO_SUBDIRS alsa"
276 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa/libaudio_alsa.la" 276 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa/libaudio_alsa.la"
277 fi 277 fi
278 fi
279 }
280
281 dnl Check whether we want to use OpenBSD native audio or not
282 CheckOPENBSDAUDIO()
283 {
284 AC_ARG_ENABLE(openbsdaudio,
285 [ --enable-openbsdaudio OpenBSD native audio support [default=no]],
286 , enable_openbsdaudio=no)
287 if test x$enable_audio = xyes -a x$enable_openbsdaudio = xyes; then
288 SYSTEM_LIBS="$SYSTEM_LIBS $ESD_LIBS"
289 AUDIO_SUBDIRS="$AUDIO_SUBDIRS openbsd"
290 AUDIO_DRIVERS="$AUDIO_DRIVERS openbsd/libaudio_openbsd.la"
278 fi 291 fi
279 } 292 }
280 293
281 dnl Find the ESD includes and libraries 294 dnl Find the ESD includes and libraries
282 CheckESD() 295 CheckESD()
1273 # NetBSD does not define "unix" 1286 # NetBSD does not define "unix"
1274 CFLAGS="$CFLAGS -Dunix" 1287 CFLAGS="$CFLAGS -Dunix"
1275 ;; 1288 ;;
1276 *-*-openbsd*) 1289 *-*-openbsd*)
1277 ARCH=openbsd 1290 ARCH=openbsd
1278 CFLAGS="$CFLAGS -Dunix"
1279 CheckDummyVideo 1291 CheckDummyVideo
1280 CheckNASM 1292 CheckNASM
1281 CheckOSS 1293 CheckOSS
1282 CheckARTSC 1294 CheckARTSC
1283 CheckESD 1295 CheckESD
1287 CheckOpenGL 1299 CheckOpenGL
1288 CheckPTHREAD 1300 CheckPTHREAD
1289 # Set up files for the main() stub 1301 # Set up files for the main() stub
1290 COPY_ARCH_SRC(src/main, linux, SDL_main.c) 1302 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1291 # Set up files for the audio library 1303 # Set up files for the audio library
1292 if test x$enable_audio = xyes; then 1304 CheckOPENBSDAUDIO
1293 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
1294 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
1295 fi
1296 # Set up files for the joystick library 1305 # Set up files for the joystick library
1297 # (No joystick support yet) 1306 # (No joystick support yet)
1298 if test x$enable_joystick = xyes; then 1307 if test x$enable_joystick = xyes; then
1299 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy" 1308 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
1300 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la" 1309 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
1320 fi 1329 fi
1321 # Set up files for the timer library 1330 # Set up files for the timer library
1322 if test x$enable_timers = xyes; then 1331 if test x$enable_timers = xyes; then
1323 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) 1332 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1324 fi 1333 fi
1334 # OpenBSD does not define "unix"
1335 CFLAGS="$CFLAGS -Dunix"
1325 ;; 1336 ;;
1326 *-*-sysv5*) 1337 *-*-sysv5*)
1327 ARCH=sysv5 1338 ARCH=sysv5
1328 CheckDummyVideo 1339 CheckDummyVideo
1329 CheckNASM 1340 CheckNASM
1880 if test $ARCH = solaris; then 1891 if test $ARCH = solaris; then
1881 SDL_RLD_FLAGS="-R\${exec_prefix}/lib" 1892 SDL_RLD_FLAGS="-R\${exec_prefix}/lib"
1882 fi 1893 fi
1883 1894
1884 if test $ARCH = openbsd; then 1895 if test $ARCH = openbsd; then
1885 SDL_RLD_FLAGS="-Wl,-R\${exec_prefix}/lib -Wl,-R\${X11BASE}/lib" 1896 SDL_RLD_FLAGS="-L${X11BASE}/lib -Wl,-rpath,\${exec_prefix}/lib -Wl,-rpath,${X11BASE}/lib"
1886 fi 1897 fi
1887 1898
1888 dnl Output the video drivers we use 1899 dnl Output the video drivers we use
1889 if test x$enable_video = xtrue; then 1900 if test x$enable_video = xtrue; then
1890 if test "$VIDEO_SUBDIRS" = ""; then 1901 if test "$VIDEO_SUBDIRS" = ""; then
1945 src/audio/dsp/Makefile 1956 src/audio/dsp/Makefile
1946 src/audio/esd/Makefile 1957 src/audio/esd/Makefile
1947 src/audio/macrom/Makefile 1958 src/audio/macrom/Makefile
1948 src/audio/nas/Makefile 1959 src/audio/nas/Makefile
1949 src/audio/nto/Makefile 1960 src/audio/nto/Makefile
1961 src/audio/openbsd/Makefile
1950 src/audio/paudio/Makefile 1962 src/audio/paudio/Makefile
1951 src/audio/sun/Makefile 1963 src/audio/sun/Makefile
1952 src/audio/ums/Makefile 1964 src/audio/ums/Makefile
1953 src/audio/windib/Makefile 1965 src/audio/windib/Makefile
1954 src/audio/windx5/Makefile 1966 src/audio/windx5/Makefile