[x264-devel] commit: more diagnostics when configure finds an unsuitable assembler ( Loren Merritt )

git version control git at videolan.org
Sun Sep 28 07:46:46 CEST 2008


x264 | branch: master | Loren Merritt <pengvado at akuvian.org> | Mon Sep 15 05:00:26 2008 -0600| [48734012a4fa151aa26d9e1a5f67d35303a4b4f6] | committer: Loren Merritt 

more diagnostics when configure finds an unsuitable assembler

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=48734012a4fa151aa26d9e1a5f67d35303a4b4f6
---

 configure |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/configure b/configure
index 34b12b2..c8bbd51 100755
--- a/configure
+++ b/configure
@@ -243,7 +243,6 @@ esac
 case $host_cpu in
   i*86)
     ARCH="X86"
-    AS="yasm"
     ASFLAGS="-O2"
     if [ "$SYS" = MACOSX ]; then
       ASFLAGS="$ASFLAGS -f macho -DPREFIX"
@@ -256,7 +255,6 @@ case $host_cpu in
     ;;
   x86_64)
     ARCH="X86_64"
-    AS="yasm"
     if [ "$SYS" = MACOSX ];then
       ASFLAGS="-f macho64 -m amd64 -DPIC -DPREFIX"
       CFLAGS="$CFLAGS -arch x86_64"
@@ -309,15 +307,12 @@ if [ $shared = yes -a \( $ARCH = "X86_64" -o $ARCH = "PPC" -o $ARCH = "ALPHA" \)
 fi
 
 if [ $asm = yes -a \( $ARCH = X86 -o $ARCH = X86_64 \) ] ; then
-    if [ $ARCH = X86 -a $pic = yes -a x$AS = xyasm -a\
-         "`yasm --version 2>$DEVNULL | head -n 1`" "<" "yasm 0.6.2" ] ; then
-         echo "yasm prior to 0.6.2 miscompiles PIC. trying nasm instead..."
-         AS=nasm
-    fi
     if as_check "pabsw xmm0, xmm0" ; then
         CFLAGS="$CFLAGS -DHAVE_MMX"
     else
-        echo "No suitable assembler found.  Install 'yasm' to get MMX/SSE optimized code."
+        VER=`([ $AS == nasm ] && nasm -v || $AS --version || echo no assembler) 2>$DEVNULL | head -n 1`
+        echo "Found $VER"
+        echo "Minimum version is yasm-0.6.1 or nasm-2.0"
         echo "If you really want to compile without asm, configure with --disable-asm."
         exit 1
     fi



More information about the x264-devel mailing list