configure: detect ppc64 automatically
authorMans Rullgard <mans@mansr.com>
Tue, 23 Oct 2012 22:39:40 +0000 (23:39 +0100)
committerMans Rullgard <mans@mansr.com>
Wed, 24 Oct 2012 15:26:51 +0000 (16:26 +0100)
Signed-off-by: Mans Rullgard <mans@mansr.com>
configure

index 9f6eda5..1f48fbe 100755 (executable)
--- a/configure
+++ b/configure
@@ -2463,13 +2463,9 @@ case "$arch" in
         arch="parisc"
         subarch="parisc64"
     ;;
-    "Power Macintosh"|ppc|powerpc)
+    "Power Macintosh"|ppc*|powerpc*)
         arch="ppc"
     ;;
-    ppc64|powerpc64)
-        arch="ppc"
-        subarch="ppc64"
-    ;;
     s390|s390x)
         arch="s390"
     ;;
@@ -2680,6 +2676,9 @@ case "$arch" in
         check_64bit mips mips64 '_MIPS_SIM > 1'
         spic=$shared
     ;;
+    ppc)
+        check_64bit ppc ppc64 'sizeof(void *) > 4'
+    ;;
     x86)
         check_64bit x86_32 x86_64 'sizeof(void *) > 4'
         if test "$subarch" = "x86_64"; then