mirror of
https://github.com/mpv-player/mpv
synced 2024-10-22 08:51:57 +02:00
configure: fix mmxext detection with --disable-sse
Fix "sse in cpuinfo implies mmxext" hack to still work when --disable-sse is used. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33714 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8efc898f78
commit
bd4f430d62
5
configure
vendored
5
configure
vendored
@ -1538,14 +1538,13 @@ if x86 ; then
|
||||
|
||||
pparam=$(echo $exts | sed -e s/k6_mtrr/mtrr/ -e s/cyrix_arr/mtrr/ -e s/centaur_mcr/mtrr/ \
|
||||
-e s/xmm/sse/ -e s/kni/sse/)
|
||||
# SSE implies MMX2, but not all SSE processors report the mmxext CPU flag.
|
||||
pparam=$(echo $pparam | sed -e 's/sse/sse mmxext/')
|
||||
|
||||
for ext in $pparam ; do
|
||||
eval test \"\$_$ext\" = auto 2>/dev/null && eval _$ext=kernel_check
|
||||
done
|
||||
|
||||
# SSE implies MMX2, but not all SSE processors report the mmxext CPU flag.
|
||||
test $_sse = kernel_check && _mmxext=kernel_check
|
||||
|
||||
echocheck "CPU vendor"
|
||||
echores "$pvendor ($pfamily:$pmodel:$pstepping)"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user