Merge ../mlt
[melted] / src / modules / resample / configure
index 649195e..954cb04 100755 (executable)
@@ -3,9 +3,14 @@
 if [ "$help" != "1" ]
 then
 
-cat << EOF >> ../filters.dat
-resample               libmltresample.so
-EOF
+       pkg-config samplerate 2> /dev/null
+       disable_samplerate=$?
 
+       if [ "$disable_samplerate" != "0" ]
+       then
+               echo "- libsamplerate not found: disabling"
+               touch ../disable-resample
+       fi
+       exit 0
 fi