summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2008-11-02 11:19:43 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2008-11-02 11:19:43 +0200
commite51225dc3135e69d3f0fe6a5502c0c0e77952056 (patch)
tree4613483bac4110ab3b3b15c427316133784fbad8
parent2ad77c5b00ce5d03c5db7633ef12dbe71a297e05 (diff)
downloadmpv-e51225dc3135e69d3f0fe6a5502c0c0e77952056.tar.bz2
mpv-e51225dc3135e69d3f0fe6a5502c0c0e77952056.tar.xz
configure: Fix FAST_CMOV detection on AMD64
The code that enabled FAST_CMOV by default was only executed in the 32-bit case. As a result FAST_CMOV was never automatically enabled on AMD64. Fix this by moving the code out of the arch-specific section so it's executed on both x86 and AMD64; it's harmless on architectures that do not support CMOV.
-rwxr-xr-xconfigure12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure b/configure
index 29e79470d8..43a125bf6b 100755
--- a/configure
+++ b/configure
@@ -1870,12 +1870,6 @@ EOF
esac
fi
- if test $_cmov = "yes" && test $_fast_cmov = "auto" ; then
- _fast_cmov="yes"
- else
- _fast_cmov="no"
- fi
-
echores "$proc"
;;
@@ -2223,6 +2217,12 @@ EOF
;;
esac # case "$host_arch" in
+if test $_cmov = "yes" && test $_fast_cmov = "auto" ; then
+ _fast_cmov="yes"
+else
+ _fast_cmov="no"
+fi
+
if test "$_runtime_cpudetection" = yes ; then
if x86 ; then
test "$_cmov" != no && _cmov=yes