summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-10-05 19:52:13 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-10-05 19:52:13 +0000
commitd05960762c030ca867f5b324dde7a6239d090357 (patch)
treeafbd9198afab52f342434207213ccdf65fc088ed /configure
parent5b2ce5274fef8e22283d5a766a54e72d393a25b3 (diff)
downloadmpv-d05960762c030ca867f5b324dde7a6239d090357.tar.bz2
mpv-d05960762c030ca867f5b324dde7a6239d090357.tar.xz
detect Centaur CPUs (Winchip, VIA C3)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16682 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure30
1 files changed, 27 insertions, 3 deletions
diff --git a/configure b/configure
index 5ebf14d258..7d6c566f73 100755
--- a/configure
+++ b/configure
@@ -850,6 +850,30 @@ case "$host_arch" in
*) proc=pentium4 iproc=686 ;;
esac
;;
+ CentaurHauls)
+ case "$pfamily" in
+ 5) iproc=586
+ if test "$pmodel" -ge 8; then
+ proc=winchip2
+ elif test "$pmodel" -ge 4; then
+ proc=winchip-c6
+ else
+ proc=i586
+ fi
+ ;;
+ 6) iproc=686
+ # VIA C3 has SSE, but doesn't have MMX2
+ # workaround for SSE => MMX2 implication above
+ _mmx2=no
+ if test "$pmodel" -ge 9; then
+ proc=c3-2
+ else
+ proc=i686
+ fi
+ ;;
+ *) proc=i686 iproc=i686 ;;
+ esac
+ ;;
unknown)
case "$pfamily" in
3) proc=i386 iproc=386 ;;
@@ -896,13 +920,13 @@ EOF
fi
fi
fi
- if test "$proc" = "pentium4" || test "$proc" = "pentium3" || test "$proc" = "pentium2" || test "$proc" = "athlon"; then
+ if test "$proc" = "pentium4" || test "$proc" = "pentium3" || test "$proc" = "pentium2" || test "$proc" = "athlon" || test "$proc" = "c3-2"; then
cc_check -march=$proc $cpuopt=$proc || proc=i686
fi
- if test "$proc" = "i686" || test "$proc" = "pentium-mmx"; then
+ if test "$proc" = "i686" || test "$proc" = "pentium-mmx" || test "$proc" = "winchip-c6" || test "$proc" = "winchip2"; then
cc_check -march=$proc $cpuopt=$proc || proc=i586
fi
- if test "$proc" = "i586" ; then
+ if test "$proc" = "i586" || test "$proc" = "c3" ; then
cc_check -march=$proc $cpuopt=$proc || proc=i486
fi
if test "$proc" = "i486" ; then