>> Which seems to work fine for x86 based machines, but doesn't work for >> ppc, uname -m returns "ppc" and -mcpu wont take ppc as an argument. >> >> Does anyone know how to do this right? The -mcpu argument is important >> for PII's etc. it wins quite a lot of efficiency. > >hmmm, >go via "cat /proc/cpuinfo |head -1 |cut -f 2 -d :", but on ppc only G3
there is no cross-processor standard format for /proc/cpuinfo, so you would first have to have a rough idea of what to expect. the above command on my system would generate "0" :)
