diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-10-18 19:26:27 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-10-18 19:26:27 -0400 |
commit | 0105761aea801f6da3a5858161b262d1a73b17c1 (patch) | |
tree | 1958abd52fd4e9124b29fc799ed86cd005e48753 | |
parent | 4dca5ec5b8066d1ba161e3c5c93d6ff383bcf567 (diff) | |
download | gcc-0105761aea801f6da3a5858161b262d1a73b17c1.zip gcc-0105761aea801f6da3a5858161b262d1a73b17c1.tar.gz gcc-0105761aea801f6da3a5858161b262d1a73b17c1.tar.bz2 |
Revise support for AIX 4.1 on POWER and PowerPC.
From-SVN: r8306
-rwxr-xr-x | gcc/config.guess | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gcc/config.guess b/gcc/config.guess index daae8ac..d3fb069 100755 --- a/gcc/config.guess +++ b/gcc/config.guess @@ -147,12 +147,20 @@ EOF echo rs6000-ibm-aix3.2 fi exit 0 ;; - *:AIX:1:4) + *:AIX:*:4) if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then - echo rs6000-ibm-aix4.1 + IBM_ARCH=rs6000 else - echo powerpc-ibm-aix4.1 + IBM_ARCH=powerpc fi + if grep bos410 /usr/include/stdio.h >/dev/null 2>&1; then + IBM_REV=4.1 + elif grep bos411 /usr/include/stdio.h >/dev/null 2>&1; then + IBM_REV=4.1.1 + else + IBM_REV=4 + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit 0 ;; *:AIX:*:*) echo rs6000-ibm-aix |