1 diff -up SDL-1.2.13/configure.in.dynamic-pulse SDL-1.2.13/configure.in
2 --- SDL-1.2.13/configure.in.dynamic-pulse 2008-01-07 12:31:57.000000000 +0100
3 +++ SDL-1.2.13/configure.in 2008-01-07 12:32:02.000000000 +0100
4 @@ -500,14 +510,15 @@ AC_HELP_STRING([--enable-pulseaudio], [u
5 if test x$audio_pulse = xyes; then
6 AC_ARG_ENABLE(pulseaudio-shared,
7 AC_HELP_STRING([--enable-pulseaudio-shared], [dynamically load PulseAudio support [[default=yes]]]),
8 - , enable_pulse_shared=yes)
9 + , enable_pulseaudio_shared=yes)
10 if test "x`echo $PULSE_LIBS | grep -- -L`" = "x"; then
11 - if test "x`ls /lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
12 - PULSE_LIBS="-L/lib $PULSE_LIBS"
13 - elif test "x`ls /usr/lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
14 - PULSE_LIBS="-L/usr/lib $PULSE_LIBS"
15 - elif test "x`ls /usr/local/lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
16 - PULSE_LIBS="-L/usr/local/lib $PULSE_LIBS"
18 + if test "x`ls /${pfx}/libpulse-simple.so.* 2> /dev/null`" != "x"; then
19 + PULSE_LIBS="-L/${pfx} $PULSE_LIBS"
20 + elif test "x`ls /usr/${pfx}/libpulse-simple.so.* 2> /dev/null`" != "x"; then
21 + PULSE_LIBS="-L/usr/${pfx} $PULSE_LIBS"
22 + elif test "x`ls /usr/local/${pfx}/libpulse-simple.so.* 2> /dev/null`" != "x"; then
23 + PULSE_LIBS="-L/usr/local/${pfx} $PULSE_LIBS"
26 pulse_lib_spec=`echo $PULSE_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libpulse-simple.so.*/'`
27 @@ -518,11 +529,11 @@ AC_HELP_STRING([--enable-pulseaudio-shar
28 SOURCES="$SOURCES $srcdir/src/audio/pulse/*.c"
29 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSE_CFLAGS"
30 if test x$have_loadso != xyes && \
31 - test x$enable_pulse_shared = xyes; then
32 + test x$enable_pulseaudio_shared = xyes; then
33 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic PulseAudio loading])
35 if test x$have_loadso = xyes && \
36 - test x$enable_pulse_shared = xyes && test x$pulse_lib != x; then
37 + test x$enable_pulseaudio_shared = xyes && test x$pulse_lib != x; then
38 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSE_DYNAMIC, "$pulse_lib")
40 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS"