configure: Adjust AVX assembler check.
authorDiego Biurrun <diego@biurrun.de>
Mon, 16 May 2011 12:23:59 +0000 (14:23 +0200)
committerDiego Biurrun <diego@biurrun.de>
Thu, 19 May 2011 14:27:40 +0000 (16:27 +0200)
Older nasm versions have trouble assembling certain AVX instructions, but the
current AVX check did not detect this. Update the check to use an instruction
that triggers the nasm problem.

configure

index 6becb09..96867a5 100755 (executable)
--- a/configure
+++ b/configure
@@ -2729,7 +2729,7 @@ EOF
 
         check_yasm "pextrd [eax], xmm0, 1" && enable yasm ||
             die "yasm not found, use --disable-yasm for a crippled build"
-        check_yasm "vpaddw xmm0, xmm0, xmm0" || disable avx
+        check_yasm "vextractf128 xmm0, ymm0, 0" || disable avx
     fi
 
     case "$cpu" in