[Mplayer-cvslog] CVS: main configure,1.102,1.103
Jürgen Keil
jkeil at mplayer.dev.hu
Fri Jul 13 11:20:15 CEST 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv22809
Modified Files:
configure
Log Message:
Handle linux SMP machines (suggested by Martin Aumueller)
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -r1.102 -r1.103
--- configure 12 Jul 2001 16:11:55 -0000 1.102
+++ configure 13 Jul 2001 09:20:13 -0000 1.103
@@ -362,15 +362,15 @@
_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=
More information about the MPlayer-cvslog
mailing list