Conditional compilation of westley/libxml2 components
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 13 Apr 2005 12:58:18 +0000 (12:58 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 13 Apr 2005 12:58:18 +0000 (12:58 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@697 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/westley/configure

index c76eda0..c8bb348 100755 (executable)
@@ -3,14 +3,17 @@
 if [ "$help" != "1" ]
 then
 
-cat << EOF >> ../producers.dat
-westley                        libmltwestley$LIBSUF
-westley-xml            libmltwestley$LIBSUF
-EOF
-
-cat << EOF >> ../consumers.dat
-westley                        libmltwestley$LIBSUF
-EOF
+       which xml2-config > /dev/null 2>&1
+       disable_xml2=$?
 
+       if [ "$disable_xml2" == "0" ]
+       then
+               echo "westley                   libmltwestley$LIBSUF" >> ../producers.dat
+               echo "westley-xml               libmltwestley$LIBSUF" >> ../producers.dat
+               echo "westley                   libmltwestley$LIBSUF" >> ../consumers.dat
+       else
+               echo "- xml2 not found: disabling westley modules"
+               touch ../disable-westley
+       fi
 fi