summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-01-25 15:17:50 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-01-25 15:17:50 +0200
commitff2df2ac545bb36ca4c1d2f872236cdf0a7218ab (patch)
treedf3c0f31373ac65f38df0061fc8ec180abde1993 /configure
parent8dd016c538340e4a50628eedae0561d45c95ef6b (diff)
parent5f5462c0ec32348a0b370b1f9c11bd7d10b52de6 (diff)
downloadmpv-ff2df2ac545bb36ca4c1d2f872236cdf0a7218ab.tar.bz2
mpv-ff2df2ac545bb36ca4c1d2f872236cdf0a7218ab.tar.xz
Merge svn changes up to r30322
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 9 insertions, 3 deletions
diff --git a/configure b/configure
index 93bfd4d0d6..995dee56db 100755
--- a/configure
+++ b/configure
@@ -1385,6 +1385,7 @@ fi
if win32 ; then
_exesuf=".exe"
+ extra_cflags="$extra_cflags -fno-common"
# -lwinmm is always needed for osdep/timer-win2.c
extra_ldflags="$extra_ldflags -lwinmm"
_pe_executable=yes
@@ -1921,7 +1922,6 @@ EOF
else
cpuopt=-mcpu
fi
- test $_fast_cmov = "auto" && _fast_cmov=yes
if test "$_runtime_cpudetection" = no ; then
case "$pvendor" in
AuthenticAMD)
@@ -1933,6 +1933,7 @@ EOF
# 64-bit prescotts exist, but as far as GCC is concerned they
# have the same capabilities as a nocona.
proc=nocona
+ test $_fast_cmov = "auto" && _fast_cmov=no
;;
esac
;;
@@ -1960,6 +1961,9 @@ EOF
fi
# --- Intel processors ---
if test "$proc" = "core2"; then
+ cc_check -march=$proc $cpuopt=$proc || proc=x86-64
+ fi
+ if test "$proc" = "x86-64"; then
cc_check -march=$proc $cpuopt=$proc || proc=nocona
fi
if test "$proc" = "nocona"; then
@@ -1985,7 +1989,8 @@ EOF
cc_check $_march $_mcpu || _march=""
fi
- _optimizing=""
+ _optimizing="$proc"
+ test $_fast_cmov = "auto" && _fast_cmov=yes
echores "$proc"
;;
@@ -8466,8 +8471,9 @@ $def_yasm
#define CONFIG_SWSCALE_ALPHA 1
#define HAVE_ATTRIBUTE_PACKED 1
+#define HAVE_FAST_CLZ 0
#define HAVE_GETHRTIME 0
-#define HAVE_INLINE_ASM 0
+#define HAVE_INLINE_ASM 1
#define HAVE_LDBRX 0
#define HAVE_POLL_H 1
#define HAVE_PPC4XX 0