summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoreyck <eyck@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-17 09:36:36 +0000
committereyck <eyck@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-17 09:36:36 +0000
commita571e24bbf9cace174b179eaff1f548a753b6ca2 (patch)
treef474fd1c897763b4929f53faa7b56a6aeeb64316 /configure
parent9e372bc823c8987189f46911a9584d71b4ef2609 (diff)
downloadmpv-a571e24bbf9cace174b179eaff1f548a753b6ca2.tar.bz2
mpv-a571e24bbf9cace174b179eaff1f548a753b6ca2.tar.xz
Fixed cpu model detection with non-bash bourne shell
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@820 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index ddb12f3729..e7bdfbd5c2 100755
--- a/configure
+++ b/configure
@@ -183,7 +183,6 @@ done
# ---
-TAB=`echo -n -e "\t"`
pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2`
pparam=`cat /proc/cpuinfo | grep 'features' | cut -d ':' -f 2`
if [ -z "$pparam" ]; then
@@ -191,7 +190,7 @@ if [ -z "$pparam" ]; then
fi
pvendor=`cat /proc/cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2`
pfamily=`cat /proc/cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2`
-pmodel=`cat /proc/cpuinfo | grep "model$TAB" | cut -d ':' -f 2 | cut -d ' ' -f 2`
+pmodel=`cat /proc/cpuinfo |grep -v 'model name'| grep "model" | cut -d ':' -f 2 | cut -d ' ' -f 2`
pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2`
_mmx=no