mirror of
https://github.com/mpv-player/mpv
synced 2025-03-10 08:13:03 +00:00
support Intel Core 2 and AMD Geode in the processor detection routines
patch from Zuxy Meng, zuxy.meng gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21355 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
513971a1b0
commit
8d2dfb5ebf
25
configure
vendored
25
configure
vendored
@ -877,6 +877,8 @@ case "$host_arch" in
|
||||
# K6 model 13 are the K6-2+ and K6-III+, only differing in cache size.
|
||||
if test "$pmodel" -eq 9 -o "$pmodel" -eq 13; then
|
||||
proc=k6-3
|
||||
elif test "$pmodel" -eq 5 -o "$pmodel" -eq 10; then
|
||||
proc=geode
|
||||
elif test "$pmodel" -ge 8; then
|
||||
proc=k6-2
|
||||
elif test "$pmodel" -ge 6; then
|
||||
@ -918,7 +920,9 @@ case "$host_arch" in
|
||||
fi
|
||||
;;
|
||||
6) iproc=686
|
||||
if test "$pmodel" -eq 9 -o "$pmodel" -ge 13; then
|
||||
if test "$pmodel" -eq 15; then
|
||||
proc=core2
|
||||
elif test "$pmodel" -eq 9 -o "$pmodel" -ge 13; then
|
||||
proc=pentium-m
|
||||
elif test "$pmodel" -ge 7; then
|
||||
proc=pentium3
|
||||
@ -1010,7 +1014,10 @@ EOF
|
||||
if test "$proc" = "prescott" ; then
|
||||
cc_check -march=$proc $cpuopt=$proc || proc=pentium4
|
||||
fi
|
||||
if test "$proc" = "pentium4" || test "$proc" = "pentium-m" || test "$proc" = "pentium3" || test "$proc" = "pentium2" || test "$proc" = "athlon" || test "$proc" = "c3-2"; then
|
||||
if test "$proc" = "core2" ; then
|
||||
cc_check -march=$proc $cpuopt=$proc || proc=pentium-m
|
||||
fi
|
||||
if test "$proc" = "pentium4" || test "$proc" = "pentium-m" || test "$proc" = "pentium3" || test "$proc" = "pentium2" || test "$proc" = "athlon" || test "$proc" = "c3-2" || test "$proc" = "geode"; then
|
||||
cc_check -march=$proc $cpuopt=$proc || proc=i686
|
||||
fi
|
||||
if test "$proc" = "i686" || test "$proc" = "pentium-mmx" || test "$proc" = "winchip-c6" || test "$proc" = "winchip2"; then
|
||||
@ -1101,9 +1108,14 @@ EOF
|
||||
AuthenticAMD)
|
||||
proc=k8;;
|
||||
GenuineIntel)
|
||||
# 64-bit prescotts exist, but as far as GCC is concerned they have the
|
||||
# same capabilities as a nocona.
|
||||
proc=nocona;;
|
||||
case "$pmodel" in
|
||||
6) proc=core2;;
|
||||
*)
|
||||
# 64-bit prescotts exist, but as far as GCC is concerned they have the
|
||||
# same capabilities as a nocona.
|
||||
proc=nocona;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
proc=error;;
|
||||
esac
|
||||
@ -1125,6 +1137,9 @@ EOF
|
||||
cc_check -march=$proc $cpuopt=$proc || proc=error
|
||||
fi
|
||||
# --- Intel processors ---
|
||||
if test "$proc" = "core2"; then
|
||||
cc_check -march=$proc $cpuopt=$proc || proc=nocona
|
||||
fi
|
||||
if test "$proc" = "nocona"; then
|
||||
cc_check -march=$proc $cpuopt=$proc || proc=pentium4
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user