if [ "$help" != "1" ]
then
-cat << EOF >> ../producers.dat
-libdv libmltdv.so
-EOF
+ pkg-config libdv 2> /dev/null
+ disable_libdv=$?
-cat << EOF >> ../consumers.dat
-libdv libmltdv.so
-EOF
+ if [ "$disable_libdv" != "0" ]
+ then
+ echo "- libdv not found: disabling"
+ touch ../disable-dv
+ exit 0
+ fi
fi