Mercurial > mplayer.hg
comparison configure @ 819:291de1f95724
Fixed cpu model detection with non-bash bourne shell
author | eyck |
---|---|
date | Thu, 17 May 2001 09:36:36 +0000 |
parents | 9bc104531aec |
children | 67fe2eebe542 |
comparison
equal
deleted
inserted
replaced
818:16ba80b47ec4 | 819:291de1f95724 |
---|---|
181 esac | 181 esac |
182 done | 182 done |
183 | 183 |
184 # --- | 184 # --- |
185 | 185 |
186 TAB=`echo -n -e "\t"` | |
187 pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2` | 186 pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2` |
188 pparam=`cat /proc/cpuinfo | grep 'features' | cut -d ':' -f 2` | 187 pparam=`cat /proc/cpuinfo | grep 'features' | cut -d ':' -f 2` |
189 if [ -z "$pparam" ]; then | 188 if [ -z "$pparam" ]; then |
190 pparam=`cat /proc/cpuinfo | grep 'flags' | cut -d ':' -f 2` | 189 pparam=`cat /proc/cpuinfo | grep 'flags' | cut -d ':' -f 2` |
191 fi | 190 fi |
192 pvendor=`cat /proc/cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2` | 191 pvendor=`cat /proc/cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2` |
193 pfamily=`cat /proc/cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2` | 192 pfamily=`cat /proc/cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2` |
194 pmodel=`cat /proc/cpuinfo | grep "model$TAB" | cut -d ':' -f 2 | cut -d ' ' -f 2` | 193 pmodel=`cat /proc/cpuinfo |grep -v 'model name'| grep "model" | cut -d ':' -f 2 | cut -d ' ' -f 2` |
195 pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2` | 194 pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2` |
196 | 195 |
197 _mmx=no | 196 _mmx=no |
198 _mmx2=no | 197 _mmx2=no |
199 _3dnow=no | 198 _3dnow=no |