]> www.ginac.de Git - cln.git/commitdiff
* m4/general.m4 (CL_CANONICAL_HOST_CPU): Force host_cpu=rs6000 for
authorRichard Kreckel <kreckel@ginac.de>
Tue, 18 Dec 2007 23:01:19 +0000 (23:01 +0000)
committerRichard Kreckel <kreckel@ginac.de>
Tue, 18 Dec 2007 23:01:19 +0000 (23:01 +0000)
         powerpc64 if userland is 32 bit.

ChangeLog
m4/general.m4

index ef0a858044092b08fbafe0c4106e59c64b862ebe..43e664c9d8b6942d0996883c8bef8c0ccd0aed6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-19  Richard B. Kreckel  <kreckel@ginac.de>
+
+       * m4/general.m4 (CL_CANONICAL_HOST_CPU): Force host_cpu=rs6000 for
+        powerpc64 if userland is 32 bit.
+
 2007-12-18  Richard B. Kreckel  <kreckel@ginac.de>
 
        * autoconf/ltmain.sh: Update to libtool-1.5.24.
index bb2f4366870d2741222ce8fa7f2270686ae1490d..d0ce2157f2ad0efc81c1343597b1a0d6d306c396 100644 (file)
@@ -201,6 +201,22 @@ else
   host_cpu=i386
 fi
   ;;
+dnl PowerPC64 is another case where 'uname -m' and userland may disagree.
+  powerpc64 )
+    AC_CACHE_CHECK([for 64-bit userland on PowerPC64], cl_cv_host_powerpc64, [
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+[[#if !defined __powerpc64__
+# error __powerpc64__ not defined
+#endif
+]])
+], [cl_cv_host_powerpc64=yes], [cl_cv_host_powerpc64=no])
+])
+if test $cl_cv_host_powerpc64 = yes; then
+  host_cpu=powerpc64
+else
+  host_cpu=rs6000
+fi
+  ;;
 esac
 dnl was AC_DEFINE_UNQUOTED(__${host_cpu}__) but KAI C++ 3.2d doesn't like this
 cat >> confdefs.h <<EOF