From 9f4766e16646f383229c76e2a04b81c0b924ef54 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 3 Mar 2004 06:56:04 +0000 Subject: [PATCH] sed, it's two, two commands in one! --- configure.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 6d315e6fd..257ca0c83 100644 --- a/configure.in +++ b/configure.in @@ -298,7 +298,7 @@ CheckALSA() AC_ARG_ENABLE(alsa-shared, [ --enable-alsa-shared dynamically load ALSA audio support [default=yes]], , enable_alsa_shared=yes) - alsa_lib=`ls /usr/lib/libasound.so.* | head -1 | sed 's/.*\/\(.*\)/\1/'` + alsa_lib=`ls /usr/lib/libasound.so.* | sed 's/.*\/\(.*\)/\1/; q'` if test x$use_dlopen != xyes && \ test x$enable_alsa_shared = xyes; then AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option]) @@ -356,7 +356,7 @@ CheckESD() [ --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.*/'` - esd_lib=`ls $esd_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'` + esd_lib=`ls $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` echo "-- $esd_lib_spec -> $esd_lib" if test x$use_dlopen != xyes && \ test x$enable_esd_shared = xyes; then @@ -407,7 +407,7 @@ CheckARTSC() [ --enable-arts-shared dynamically load aRts audio support [default=yes]], , enable_arts_shared=yes) arts_lib_spec="$ARTSC_PREFIX/lib/libartsc.so.*" - arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'` + arts_lib=`ls $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` echo "-- $arts_lib_spec -> $arts_lib" if test x$use_dlopen != xyes && \ test x$enable_arts_shared = xyes; then