changeset 4239:3d467ee2af5e SDL-1.2

Fixed bug #732 If no -L is present in the library spec, try /usr/lib
author Sam Lantinga <slouken@libsdl.org>
date Wed, 23 Sep 2009 07:07:44 +0000
parents cbe5222d051a
children cb44bf8f8a0f
files configure.in
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Wed Sep 23 07:01:50 2009 +0000
+++ b/configure.in	Wed Sep 23 07:07:44 2009 +0000
@@ -360,6 +360,9 @@
                 fi
             fi
             alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libasound.so.*/'`
+            if [ x$alsa_lib_spec = x ]; then
+                alsa_lib_spec="/usr/$base_libdir/libasound.so.*"
+            fi
             alsa_lib=`ls -- $alsa_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
             echo "-- $alsa_lib_spec -> $alsa_lib"
 
@@ -456,6 +459,9 @@
 AC_HELP_STRING([--enable-esd-shared], [dynamically load ESD audio support [[default=yes]]]),
                           , enable_esd_shared=yes)
             esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'`
+            if [ x$esd_lib_spec = x ]; then
+                esd_lib_spec="/usr/$base_libdir/libesd.so.*"
+            fi
             esd_lib=`ls -- $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
             echo "-- $esd_lib_spec -> $esd_lib"
 
@@ -513,6 +519,9 @@
                 fi
             fi
             pulse_lib_spec=`echo $PULSE_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libpulse-simple.so.*/'`
+            if [ x$pulse_lib_spec = x ]; then
+                pulse_lib_spec="/usr/$base_libdir/libpulse-simple.so.*"
+            fi
             pulse_lib=`ls -- $pulse_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
             echo "-- $pulse_lib_spec -> $pulse_lib"
 
@@ -633,6 +642,9 @@
                 fi
             fi
             nas_lib_spec=`echo $NAS_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libaudio.so.*/'`
+            if [ x$nas_lib_spec = x ]; then
+                nas_lib_spec="/usr/$base_libdir/libaudio.so.*"
+            fi
             nas_lib=`ls -- $nas_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
             echo "-- $nas_lib_spec -> $nas_lib"