On Mon, Dec 10, 2001 at 08:42:31PM +1100, Ben Elliston wrote: > Ben> cpu=`cpp << EOF | grep ^mips > > Of course, this needs some refinement. ;-) Perhaps we need to run > through $(CC_FOR_BUILD) -E or somesuch; cpp is no good, as it won't > know all of the magic '*MIPS*' #defines. Agreed but the basic idea is good. Also this solution is suitable for crosscompilation unlike the /proc/cpuinfo thing and doesn't rely on properly installed libraries and headers might possibly of interest for building standalone software. Ralf