]> git.sesse.net Git - mlt/commitdiff
Automatic disabling off mmx on a OS/X; mmx detection on Linux; other platforms probab...
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 13 Apr 2005 13:14:33 +0000 (13:14 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 13 Apr 2005 13:14:33 +0000 (13:14 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@699 d19143bc-622f-0410-bfdd-b5b2a6649095

configure

index 59508f7d1704130d4d739eb27a8f85f53af1fc42..bdb91dd470089499aff04f24a5ab9b93655c30e0 100755 (executable)
--- a/configure
+++ b/configure
@@ -117,6 +117,7 @@ targetos=$(uname -s)
 case $targetos in
        Darwin)
        LIBSUF=".dylib"
+       mmx=false
        ;;
        Linux)
        LIBSUF=".so"
@@ -140,6 +141,12 @@ do
        esac
 done
 
+# Double check mmx (may end up disabling mmx on non-linux platforms incorrectly)
+if [ "$mmx" == "true" ]
+then
+       grep mmx /proc/cpuinfo > /dev/null 2>&1 || mmx=false
+fi
+
 # Show help if requested
 [ $help = 1 ] && show_help || build_config