summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorgpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-28 15:25:10 +0000
committergpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-28 15:25:10 +0000
commit38668f16029a32369a6bf77dc81934c247e8b5f3 (patch)
tree8a9e4dfe2c4321d0a007bc964f1a38c06f154f65 /configure
parent1b82c658bf75d88d4d3a61ed13b1ad507d822fbc (diff)
downloadmpv-38668f16029a32369a6bf77dc81934c247e8b5f3.tar.bz2
mpv-38668f16029a32369a6bf77dc81934c247e8b5f3.tar.xz
support for AMD64 compiler optimizations flags in 32-bit mode. Patch by Corey Hickey
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15579 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure b/configure
index 492650d760..26e4c5e852 100755
--- a/configure
+++ b/configure
@@ -801,7 +801,12 @@ case "$host_arch" in
proc=athlon # TODO: should the Duron Spitfire be considered a Thunderbird instead?
fi
;;
-
+ 15) iproc=686
+ # athlon64 cpu-type only supported in gcc >= 3.4.0, but that will be
+ # caught and remedied in the optimation tests below.
+ proc=athlon64
+ ;;
+
*) proc=athlon-xp iproc=686 ;;
esac
;;
@@ -857,6 +862,9 @@ cat > $TMPC << EOF
int main(void) { return 0; }
EOF
if test "$_runtime_cpudetection" = no ; then
+ if test "$proc" = "k8" -o "$proc" = "opteron" -o "$proc" = "athlon64" -o "$proc" = "athlon-fx" ; then
+ cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp
+ fi
if test "$proc" = "athlon-xp" || test "$proc" = "athlon-4" || test "$proc" = "athlon-tbird"; then
cc_check -march=$proc $cpuopt=$proc || proc=athlon
fi