1 --- SDL-1.2.11/configure.in.dynamic-esd 2007-03-19 17:44:47.000000000 +0100
2 +++ SDL-1.2.11/configure.in 2007-03-19 17:44:47.000000000 +0100
4 AC_ARG_ENABLE(esd-shared,
5 AC_HELP_STRING([--enable-esd-shared], [dynamically load ESD audio support [[default=yes]]]),
6 , enable_esd_shared=yes)
7 + if test "x`echo $ESD_LIBS | grep -- -L`" = "x"; then
9 + if test "x`ls /${pfx}/libesd.so.* 2> /dev/null`" != "x"; then
10 + ESD_LIBS="-L/${pfx} $ESD_LIBS"
11 + elif test "x`ls /usr/${pfx}/libesd.so.* 2> /dev/null`" != "x"; then
12 + ESD_LIBS="-L/usr/${pfx} $ESD_LIBS"
13 + elif test "x`ls /usr/local/${pfx}/libesd.so.* 2> /dev/null`" != "x"; then
14 + ESD_LIBS="-L/usr/local/${pfx} $ESD_LIBS"
17 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'`
18 esd_lib=`ls -- $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
19 echo "-- $esd_lib_spec -> $esd_lib"