common/autoconf/build-aux/config.guess

Print this page
rev 769 : 8024265: Enable new build on AIX

@@ -58,6 +58,15 @@
       OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
       ;;
   esac
 fi  
 
+# Test and fix AIX
+# On AIX 'config.guess' may return 'powerpc' as architecture but 'powerpc' is
+# implicitely handled as 32-bit architecture in 'platform.m4' so we always set
+# it to 'rs6000' which we then map to 'ppc64' in 'platform.m4'
+echo $OUT | grep powerpc-ibm-aix > /dev/null 2> /dev/null
+if test $? = 0; then
+  OUT=rs6000`echo $OUT | sed -e 's/[^-]*//'`
+fi
+
 echo $OUT