]> git.pld-linux.org Git - packages/SDL.git/blob - SDL-libdir.patch
1036018a15d0c6dcf9033092d749c5b5624b28c8
[packages/SDL.git] / SDL-libdir.patch
1 --- SDL-1.2.13/configure.in.orig        2008-02-04 21:20:52.978398000 +0100
2 +++ SDL-1.2.13/configure.in     2008-02-04 21:31:16.960293843 +0100
3 @@ -348,7 +348,9 @@
4  AC_HELP_STRING([--enable-alsa-shared], [dynamically load ALSA audio support [[default=yes]]]),
5                            , enable_alsa_shared=yes)
6              if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then
7 -                if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then
8 +                if test "x`ls $libdir/libasound.so.* 2> /dev/null`" != "x"; then
9 +                   ALSA_LIBS="-L$libdir $ALSA_LIBS"
10 +                elif test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then
11                      ALSA_LIBS="-L/lib $ALSA_LIBS"
12                  elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then
13                      ALSA_LIBS="-L/usr/lib $ALSA_LIBS"
14 @@ -501,7 +503,9 @@
15  AC_HELP_STRING([--enable-pulseaudio-shared], [dynamically load PulseAudio support [[default=yes]]]),
16                            , enable_pulse_shared=yes)
17              if test "x`echo $PULSE_LIBS | grep -- -L`" = "x"; then
18 -                if test "x`ls /lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
19 +                if test "x`ls $libdir/libpulse-simple.so.* 2> /dev/null`" != "x"; then
20 +                    PULSE_LIBS="-L$libdir $PULSE_LIBS"
21 +                elif test "x`ls /lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
22                      PULSE_LIBS="-L/lib $PULSE_LIBS"
23                  elif test "x`ls /usr/lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then
24                      PULSE_LIBS="-L/usr/lib $PULSE_LIBS"
25 @@ -561,7 +565,7 @@
26                  AC_ARG_ENABLE(arts-shared,
27  AC_HELP_STRING([--enable-arts-shared], [dynamically load aRts audio support [[default=yes]]]),
28                                , enable_arts_shared=yes)
29 -                arts_lib_spec="$ARTS_PREFIX/lib/libartsc.so.*"
30 +                arts_lib_spec="$libdir/libartsc.so.*"
31                  arts_lib=`ls -- $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
32                  echo "-- $arts_lib_spec -> $arts_lib"
33  
This page took 0.068219 seconds and 2 git commands to generate.