sed, it's two, two commands in one!
authorSam Lantinga <slouken@libsdl.org>
Wed, 03 Mar 2004 06:56:04 +0000
changeset 868e805075f6d94
parent 867 5c7859610bc4
child 869 ae4ab3ac89a9
sed, it's two, two commands in one!
configure.in
     1.1 --- a/configure.in	Tue Mar 02 19:38:55 2004 +0000
     1.2 +++ b/configure.in	Wed Mar 03 06:56:04 2004 +0000
     1.3 @@ -298,7 +298,7 @@
     1.4              AC_ARG_ENABLE(alsa-shared,
     1.5  [  --enable-alsa-shared     dynamically load ALSA audio support [default=yes]],
     1.6                            , enable_alsa_shared=yes)
     1.7 -            alsa_lib=`ls /usr/lib/libasound.so.* | head -1 | sed 's/.*\/\(.*\)/\1/'`
     1.8 +            alsa_lib=`ls /usr/lib/libasound.so.* | sed 's/.*\/\(.*\)/\1/; q'`
     1.9              if test x$use_dlopen != xyes && \
    1.10                 test x$enable_alsa_shared = xyes; then
    1.11                  AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])
    1.12 @@ -356,7 +356,7 @@
    1.13  [  --enable-esd-shared     dynamically load ESD audio support [default=yes]],
    1.14                            , enable_esd_shared=yes)
    1.15              esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'`
    1.16 -            esd_lib=`ls $esd_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
    1.17 +            esd_lib=`ls $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
    1.18              echo "-- $esd_lib_spec -> $esd_lib"
    1.19              if test x$use_dlopen != xyes && \
    1.20                 test x$enable_esd_shared = xyes; then
    1.21 @@ -407,7 +407,7 @@
    1.22  [  --enable-arts-shared    dynamically load aRts audio support [default=yes]],
    1.23                                , enable_arts_shared=yes)
    1.24                  arts_lib_spec="$ARTSC_PREFIX/lib/libartsc.so.*"
    1.25 -                arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
    1.26 +                arts_lib=`ls $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
    1.27                  echo "-- $arts_lib_spec -> $arts_lib"
    1.28                  if test x$use_dlopen != xyes && \
    1.29                     test x$enable_arts_shared = xyes; then