summaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gnu.org>1994-10-18 23:26:27 +0000
committerRichard Kenner <kenner@gnu.org>1994-10-18 23:26:27 +0000
commit2a57eba8a690d2232070385e842d0e95829cad39 (patch)
treecb2ac85a2ab28cf5f45dbc98479bad749ab9fe28 /config.guess
parent346cfbbf109554f942a92ae296b85e1881ba1e57 (diff)
downloademacs-2a57eba8a690d2232070385e842d0e95829cad39.tar.gz
Revise support for AIX 4.1 on POWER and PowerPC.
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess14
1 files changed, 11 insertions, 3 deletions
diff --git a/config.guess b/config.guess
index daae8ac0008..d3fb06986a5 100755
--- a/config.guess
+++ b/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