changeset 9598:fa57d5ed7df8

Revise support for AIX 4.1 on POWER and PowerPC.
author Richard Kenner <kenner@gnu.org>
date Tue, 18 Oct 1994 23:26:27 +0000
parents d352bebc9103
children 3fdda4389923
files config.guess
diffstat 1 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/config.guess	Tue Oct 18 22:34:04 1994 +0000
+++ b/config.guess	Tue Oct 18 23:26:27 1994 +0000
@@ -147,12 +147,20 @@
 		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