configure.in
changeset 856 d3165b90ee42
parent 846 96ba4eab74fb
child 865 92615154bb68
--- a/configure.in	Tue Feb 24 18:58:40 2004 +0000
+++ b/configure.in	Tue Feb 24 19:22:22 2004 +0000
@@ -374,6 +374,7 @@
         else
             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
             ARTSC_LIBS=`$ARTSCCONFIG --libs`
+            ARTSC_PREFIX=`$ARTSCCONFIG --arts-prefix`
             AC_MSG_CHECKING(for aRts development environment)
             audio_arts=no
             save_CFLAGS="$CFLAGS"
@@ -391,7 +392,7 @@
                 AC_ARG_ENABLE(arts-shared,
 [  --enable-arts-shared    dynamically load aRts audio support [default=yes]],
                               , enable_arts_shared=yes)
-                arts_lib_spec=`echo $ARTSC_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libartsc.so.*/'`
+                arts_lib_spec="$ARTSC_PREFIX/lib/libartsc.so.*"
                 arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
                 echo "-- $arts_lib_spec -> $arts_lib"
                 if test x$use_dlopen != xyes && \