Config changes
[melted] / mlt++ / configure
1 #!/bin/sh
2
3 path=`which mlt-config 2>/dev/null`
4 [ $? != 0 ] && echo "MLT not installed - aborting" && exit 1 
5
6 # Determine default prefix
7 prefix=`mlt-config --prefix`
8 [ "$prefix" = "" ] && echo "Can't locate MLT's prefix - please reconfigure MLT." && exit 1
9
10 # Allow override from command line
11 [ "$1" != "" ] && prefix="${1#--prefix=}"
12
13 # Sanity check
14 [ ! -d "$prefix" ] && echo "Invalid prefix $prefix - aborting" && exit 1
15
16 echo "prefix=$prefix" > config.mak
17 echo "MLT++ configured - will be installed in $prefix."
18