Disable vorbis when unavailable
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 13 Apr 2005 13:23:25 +0000 (13:23 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 13 Apr 2005 13:23:25 +0000 (13:23 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@700 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/vorbis/configure

index 1b2accb..a7a4eb5 100755 (executable)
@@ -3,9 +3,16 @@
 if [ "$help" != "1" ]
 then
 
-cat << EOF >> ../producers.dat
-vorbis         libmltvorbis$LIBSUF
-EOF
+       pkg-config vorbisfile 2> /dev/null
+       disable_vorbis=$?
+
+       if [ "$disable_vorbis" == "0" ]
+       then
+               echo "vorbis            libmltvorbis$LIBSUF" >> ../producers.dat
+       else
+               echo "- ogg vorbis not found - disabling"
+               touch ../disable-vorbis
+       fi
 
 fi