comparison configure.in @ 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 d74fbf56f2f6
children 3b1ba22f5a28
comparison
equal deleted inserted replaced
972:15a7d0c44e73 973:795ac5fbe260
286 if test x$have_alsa = xyes; then 286 if test x$have_alsa = xyes; then
287 AC_ARG_ENABLE(alsa-shared, 287 AC_ARG_ENABLE(alsa-shared,
288 [ --enable-alsa-shared dynamically load ALSA audio support [default=yes]], 288 [ --enable-alsa-shared dynamically load ALSA audio support [default=yes]],
289 , enable_alsa_shared=yes) 289 , enable_alsa_shared=yes)
290 if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then 290 if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then
291 if test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then 291 if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then
292 ALSA_LIBS="-L/lib $ALSA_LIBS"
293 elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then
292 ALSA_LIBS="-L/usr/lib $ALSA_LIBS" 294 ALSA_LIBS="-L/usr/lib $ALSA_LIBS"
293 else if test "x`ls /usr/local/lib/libasound.so.* 2> /dev/null`" != "x"; then 295 elif test "x`ls /usr/local/lib/libasound.so.* 2> /dev/null`" != "x"; then
294 ALSA_LIBS="-L/usr/local/lib $ALSA_LIBS" 296 ALSA_LIBS="-L/usr/local/lib $ALSA_LIBS"
295 fi; fi 297 fi
296 fi 298 fi
297 alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libasound.so.*/'` 299 alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libasound.so.*/'`
298 alsa_lib=`ls $alsa_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` 300 alsa_lib=`ls $alsa_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
299 echo "-- $alsa_lib_spec -> $alsa_lib" 301 echo "-- $alsa_lib_spec -> $alsa_lib"
300 302