summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-13 09:20:13 +0000
committerjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-13 09:20:13 +0000
commit8138cfbf1819b2270ebfaa13ac3be82227807a36 (patch)
tree4068eaeccce9e62ff7b54ba2bcb6abff4a26c171 /configure
parentefd8217acac8dea96340b32beb10bf84a2b74131 (diff)
downloadmpv-8138cfbf1819b2270ebfaa13ac3be82227807a36.tar.bz2
mpv-8138cfbf1819b2270ebfaa13ac3be82227807a36.tar.xz
Handle linux SMP machines (suggested by Martin Aumueller)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1315 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure
index 0fbe0447ed..8da953a919 100755
--- a/configure
+++ b/configure
@@ -362,15 +362,15 @@ if [ "$host_arch" = i386 ]; then
_cpuinfo="TOOLS/cpuinfo"
fi
- pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2`
- pparam=`$_cpuinfo | grep 'features' | cut -d ':' -f 2`
+ pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | head -1`
+ pparam=`$_cpuinfo | grep 'features' | cut -d ':' -f 2 | head -1`
if [ -z "$pparam" ]; then
- pparam=`$_cpuinfo | grep 'flags' | cut -d ':' -f 2`
+ pparam=`$_cpuinfo | grep 'flags' | cut -d ':' -f 2 | head -1`
fi
- pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2`
- pfamily=`$_cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2`
- pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2`
- pstepping=`$_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2`
+ pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
+ pfamily=`$_cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
+ pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
+ pstepping=`$_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
else
# not an x86 host, cpuinfo stuff is not relevant
pname= pparam= pvendor= pfamily= pmodel= pstepping=