From 4dd4b984b46aaf9c1190aa3a4de27817e3e09290 Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Wed, 13 Apr 2005 14:41:53 +0000 Subject: [PATCH] Disable libdv when unavailable git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@703 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/dv/configure | 16 ++++++++++------ src/modules/vorbis/configure | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/modules/dv/configure b/src/modules/dv/configure index fa2b86e..432f64e 100755 --- a/src/modules/dv/configure +++ b/src/modules/dv/configure @@ -3,13 +3,17 @@ if [ "$help" != "1" ] then -cat << EOF >> ../producers.dat -libdv libmltdv$LIBSUF -EOF + pkg-config libdv 2> /dev/null + disable_libdv=$? -cat << EOF >> ../consumers.dat -libdv libmltdv$LIBSUF -EOF + if [ "$disable_libdv" == "0" ] + then + echo "libdv libmltdv$LIBSUF" >> ../producers.dat + echo "libdv libmltdv$LIBSUF" >> ../consumers.dat + else + echo "- libdv not found: disabling" + touch ../disable-dv + fi fi diff --git a/src/modules/vorbis/configure b/src/modules/vorbis/configure index a7a4eb5..eb20744 100755 --- a/src/modules/vorbis/configure +++ b/src/modules/vorbis/configure @@ -10,7 +10,7 @@ then then echo "vorbis libmltvorbis$LIBSUF" >> ../producers.dat else - echo "- ogg vorbis not found - disabling" + echo "- ogg vorbis not found: disabling" touch ../disable-vorbis fi -- 1.7.4.4