diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-11-04 21:55:10 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-11-04 21:55:10 +0100 |
commit | 3404290083372eea5286abbed514ba37b37a5e79 (patch) | |
tree | e292564573bd0d76bc61e54a566bb75179723891 /config.guess | |
parent | c5d82cf0a6a3754d0774c11a9e1666eb9d95355c (diff) | |
download | gmp-3404290083372eea5286abbed514ba37b37a5e79.tar.gz |
Bring across the aix 4 guessing from the old config.guess.
Diffstat (limited to 'config.guess')
-rwxr-xr-x | config.guess | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config.guess b/config.guess index 2e036332f..0c452124c 100755 --- a/config.guess +++ b/config.guess @@ -98,6 +98,30 @@ fi case "$guess_full" in +rs6000-*-aix4* | powerpc-*-aix4*) + cat >$dummy.c <<EOF +#include <stdio.h> +#include <sys/systemcfg.h> +main () +{ + if (_system_configuration.architecture == POWER_RS + || _system_configuration.implementation == POWER_601) + puts ("power"); + else + { + if (_system_configuration.width == 64) + puts ("powerpc64"); + else + puts ("powerpc"); + } + exit (0); +} +EOF + $CC_FOR_BUILD $dummy.c -o $dummy + exact_cpu=`./$dummy` + rm -f $dummy.c $dummy + ;; + sparc-*-*) case "`uname -m`" in sun4[md]) exact_cpu=sparcv8 ;; |