]> granicus.if.org Git - libx264/commitdiff
check for broken versions of yasm
authorLoren Merritt <pengvado@akuvian.org>
Mon, 3 Mar 2008 00:53:01 +0000 (17:53 -0700)
committerLoren Merritt <pengvado@akuvian.org>
Mon, 3 Mar 2008 00:59:23 +0000 (17:59 -0700)
configure

index 6f82da2f4229dfc7be4d7f160b82dd65220ca311..f54fdda230db9f20e7e01a2937359ed547324b95 100755 (executable)
--- a/configure
+++ b/configure
@@ -316,6 +316,11 @@ then
 fi
 
 if [ $ARCH = X86 -o $ARCH = X86_64 ] ; then
+    if [ $ARCH = X86 -a $pic = yes -a x$AS = xyasm -a\
+         "`yasm --version | 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 ; then
         CFLAGS="$CFLAGS -DHAVE_MMX"
         if as_check "pabsw xmm0, xmm0" ; then