path=`which python 2> /dev/null`
-if [ $? == 0 ]
+if [ $? = 0 ]
then
# Change this as needed
export PYTHON_INCLUDE=`python -c "import sys;print \"%s/include/python%d.%d\"%(sys.prefix,sys.version_info[0],sys.version_info[1])"`
g++ -fPIC -D_GNU_SOURCE -c -rdynamic -pthread `pkg-config mlt-framework --cflags` -I$PYTHON_INCLUDE mltpp_wrap.cxx || exit $?
# Create the module
- ld -shared mltpp_wrap.o -L../../src -lmlt++ -o _mltpp.so || exit $?
+ gcc -shared mltpp_wrap.o -L../../src -lmlt++ -o _mltpp.so || exit $?
else
echo Python not installed.
exit 1