Detect toolchain based on gcc -dumpmachine
authorPhilip Jägenstedt <philipj@opera.com>
Mon, 7 Jun 2010 04:12:14 +0000 (06:12 +0200)
committerJohn Koleszar <jkoleszar@google.com>
Thu, 10 Jun 2010 14:20:12 +0000 (10:20 -0400)
commitffd5b58f9144c40dbfd1cf9ea99d089a3f4e4f42
tree76e8598da792dc3b815bcdd0f76a00d73c89edca
parent4bb895e85401d81d7dd2615380309812edfefc5e
Detect toolchain based on gcc -dumpmachine

Using uname fails e.g. on a 64-bit machine with a 32-bit toolchain.
The following gcc -dumpmachine strings have been verified:
 * 32-bit Linux gives i486-linux-gnu
 * 64-bit Linux gives x86_64-linux-gnu
 * Mac OS X 10.5 gives i686-apple-darwin9
 * MinGW gives mingw32

*darwin8* and *bsd* can safely be assumed to be correct, but *cygwin*
is a guess.

Change-Id: I6bef2ab5e97cbd3410aa66b0c4f84d2231884b05
build/make/configure.sh