scripts/crosstool-NG.sh.in: On MacOS/BSD use the output of CT_DoConfigGuess for CT_BUILD.
On 64bit MacOS `gcc -dumpmachine` gives i686 for the host machine.
This conflicts with the expectations of some following configure scripts
that a 64bit x86 is given as x86_64; i686 is understood as a 32 bit machine.
config.guess sets the host machine in CT_BUILD correctly.
yann.morin.1998@anciens.enib.fr:
As suggested by Khem RAJ on the ML, always use config.guess.
1 # Compute x86-specific values
3 # This one really needs a little love! :-(
5 CT_DoArchTupleValues() {
7 # Override the architecture part of the tuple:
8 if [ "${CT_ARCH_64}" = "y" ]; then
11 arch="${CT_ARCH_ARCH}"
12 [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}"
14 "") CT_TARGET_ARCH=i386;;
15 i386|i486|i586|i686) CT_TARGET_ARCH="${arch}";;
16 winchip*) CT_TARGET_ARCH=i486;;
17 pentium|pentium-mmx|c3*) CT_TARGET_ARCH=i586;;
18 pentiumpro|pentium*|athlon*) CT_TARGET_ARCH=i686;;
19 *) CT_TARGET_ARCH=i586;;