configure: add command flag to disable yasm use
authorMåns Rullgård <mans@mansr.com>
Thu, 5 Feb 2009 02:47:26 +0000 (02:47 +0000)
committerMåns Rullgård <mans@mansr.com>
Thu, 5 Feb 2009 02:47:26 +0000 (02:47 +0000)
Originally committed as revision 16998 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 1c225a0..35a4d77 100755 (executable)
--- a/configure
+++ b/configure
@@ -207,6 +207,7 @@ show_help(){
   echo "  --disable-mmi            disable MMI optimizations"
   echo "  --disable-neon           disable neon optimizations"
   echo "  --disable-vis            disable VIS optimizations"
+  echo "  --disable-yasm           disable use of yasm assembler"
   echo
   echo "Developer options (useful when working on FFmpeg itself):"
   echo "  --disable-debug          disable debugging symbols"
@@ -918,6 +919,7 @@ CMDLINE_SELECT="
     logging
     optimizations
     stripping
+    yasm
 "
 
 PATHS_LIST='
@@ -1787,7 +1789,7 @@ EOF
         macho64)              append YASMFLAGS "-DPIC -DPREFIX" ;;
         *)                    append YASMFLAGS "-DPREFIX"  ;;
     esac
-    check_yasm "pabsw xmm0, xmm0" && enable yasm
+    disabled yasm || { check_yasm "pabsw xmm0, xmm0" && enable yasm; }
 fi
 
 # check for assembler specific support