Disable xine when mmx not available
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 13 Apr 2005 13:11:15 +0000 (13:11 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 13 Apr 2005 13:11:15 +0000 (13:11 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@698 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/xine/configure

index 66934db..8d94ac9 100755 (executable)
@@ -3,9 +3,16 @@
 if [ "$help" != "1" ]
 then
 
-cat << EOF >> ../filters.dat
-deinterlace            libmltxine$LIBSUF
-EOF
+       # Horrible hack
+       grep mmx /proc/cpuinfo > /dev/null 2>&1
+       disable_xine=$?
 
+       if [ "$disable_xine" == "0" ]
+       then
+               echo "deinterlace               libmltxine$LIBSUF" >> ../filters.dat
+       else
+               echo "- MMX Capabalities not found: disabling xine deinterlacing module"
+               touch ../disable-xine
+       fi
 fi