From e287201c77dc7a7a9759d56d8f48ae719b7e69a9 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 11 Nov 2012 22:41:46 +0100 Subject: [PATCH] x86: Require an assembler able to cope with AVX instructions All modern assemblers have this capability. Older NASM versions that lack the capability produce code that crashes at runtime, so it's better to error out during the build process instead. CC: libav-stable@libav.org (cherry picked from commit b8e8a07c6c4df93de92480f5c3a14296a6a2a690) Conflicts: configure --- configure | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure b/configure index 93b98a96dd..51e20cb54e 100755 --- a/configure +++ b/configure @@ -2785,9 +2785,8 @@ EOF elf*) enabled debug && append YASMFLAGS $yasm_debug ;; esac - check_yasm "pextrd [eax], xmm0, 1" && enable yasm || + check_yasm "vextractf128 xmm0, ymm0, 0" && enable yasm || die "yasm not found, use --disable-yasm for a crippled build" - check_yasm "vextractf128 xmm0, ymm0, 0" || disable avx fi case "$cpu" in