[FFmpeg-cvslog] configure: Adjust the xgetbv instrinsic check
Martin Storsjö
git at videolan.org
Tue Sep 11 15:34:43 CEST 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Sep 10 17:35:39 2012 +0300| [5fa22ae34684b800b133a89dffca18b5d3334381] | committer: Martin Storsjö
configure: Adjust the xgetbv instrinsic check
The 64 bit cl.exe version 16.00.30319.01 crashes with an internal
compiler error on the current check (and thus deduces it isn't
supported, even if the actual usage in libavuil/x86/cpu.c works
fine), but by assigning the value from the intrinsic to a variable,
or returning it, it works fine.
This error is fixed in cl.exe version 16.00.40219.01.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5fa22ae34684b800b133a89dffca18b5d3334381
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 29c4317..fec7b25 100755
--- a/configure
+++ b/configure
@@ -3029,7 +3029,7 @@ elif enabled sparc; then
elif enabled x86; then
- check_code ld immintrin.h "__xgetbv(0)" && enable xgetbv
+ check_code ld immintrin.h "return __xgetbv(0)" && enable xgetbv
check_code ld intrin.h "int info[4]; __cpuid(info, 0)" && enable cpuid
check_code ld intrin.h "__rdtsc()" && enable rdtsc
check_code ld intrin.h "unsigned int x = __readeflags()" && enable rweflags
More information about the ffmpeg-cvslog
mailing list