changeset 973:795ac5fbe260

Fedora Core 3 has libasound.so in /lib
author Sam Lantinga <slouken@libsdl.org>
date Mon, 15 Nov 2004 01:47:53 +0000
parents 15a7d0c44e73
children b8427b5151ed
files configure.in
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Sat Nov 13 09:57:20 2004 +0000
+++ b/configure.in	Mon Nov 15 01:47:53 2004 +0000
@@ -288,11 +288,13 @@
 [  --enable-alsa-shared     dynamically load ALSA audio support [default=yes]],
                           , enable_alsa_shared=yes)
             if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then
-                if test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then
+                if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then
+                    ALSA_LIBS="-L/lib $ALSA_LIBS"
+                elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then
                     ALSA_LIBS="-L/usr/lib $ALSA_LIBS"
-                else if test "x`ls /usr/local/lib/libasound.so.* 2> /dev/null`" != "x"; then
+                elif test "x`ls /usr/local/lib/libasound.so.* 2> /dev/null`" != "x"; then
                     ALSA_LIBS="-L/usr/local/lib $ALSA_LIBS"
-                fi; fi
+                fi
             fi
             alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libasound.so.*/'`
             alsa_lib=`ls $alsa_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`