Install makefile for swig
[melted] / mlt++ / configure
index 8cda969..557b3da 100755 (executable)
@@ -4,8 +4,8 @@ path=`which mlt-config 2>/dev/null`
 [ $? != 0 ] && echo "MLT not installed - aborting" && exit 1 
 
 # Determine default prefix
-prefix=`dirname $path`
-prefix=`dirname $prefix`
+prefix=`mlt-config --prefix`
+[ "$prefix" = "" ] && echo "Can't locate MLT's prefix - please reconfigure MLT." && exit 1
 
 # Allow override from command line
 [ "$1" != "" ] && prefix="${1#--prefix=}"
@@ -14,5 +14,5 @@ prefix=`dirname $prefix`
 [ ! -d "$prefix" ] && echo "Invalid prefix $prefix - aborting" && exit 1
 
 echo "prefix=$prefix" > config.mak
-echo "MLT++ configured - installed in $prefix."
+echo "MLT++ configured - will be installed in $prefix."