Search
lxdream.org :: lxdream/configure.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure.in
changeset 989:7baf5ecd8e98
prev987:3bd03f1ce0a7
next1002:8ad76ddbdc58
author nkeynes
date Sat Feb 28 06:26:48 2009 +0000 (15 years ago)
permissions -rw-r--r--
last change Add SDL audio driver, thanks to Wahrhaft!
file annotate diff log raw
1.1 --- a/configure.in Wed Feb 25 08:50:22 2009 +0000
1.2 +++ b/configure.in Sat Feb 28 06:26:48 2009 +0000
1.3 @@ -63,6 +63,9 @@
1.4 AS_HELP_STRING( [--with-esd], [Build with support for the ESounD audio system]) )
1.5 AC_ARG_WITH( pulse,
1.6 AS_HELP_STRING( [--with-pulse], [Build with support for the PulseAudio audio system]) )
1.7 +AC_ARG_WITH( sdl,
1.8 + AS_HELP_STRING( [--with-sdl], [Build with support for SDL audio]) )
1.9 +
1.10
1.11 dnl ------------ Check if we're building on Darwin --------------
1.12
1.13 @@ -240,6 +243,20 @@
1.14 AC_DEFINE([HAVE_CORE_AUDIO], 1, [Have Apple CoreAudio support]) ],[true ])
1.15 AM_CONDITIONAL( AUDIO_OSX, [test "$HAVE_CORE_AUDIO" = 'yes'] )
1.16
1.17 +dnl Check for SDL (only used for audio at the moment)
1.18 +if test "x$with_sdl" != "xno"; then
1.19 + PKG_CHECK_MODULES(SDL, [sdl], [
1.20 + HAVE_SDL='yes'
1.21 + AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
1.22 + AC_DEFINE([HAVE_SDL],1,[Have SDL support])
1.23 + ], [
1.24 + if test "x$with_sdl" = "xyes"; then
1.25 + AC_MSG_FAILURE( ["SDL libraries could not be found (but were required)] )
1.26 + fi
1.27 + ])
1.28 +fi
1.29 +AM_CONDITIONAL( AUDIO_SDL, [test "$HAVE_SDL" = 'yes'] )
1.30 +
1.31 dnl Check for pulseaudio
1.32 if test "x$with_pulse" != "xno"; then
1.33 PKG_CHECK_MODULES(PULSE, [libpulse-simple], [
.