changeset 33974:beffeadc678e

Simplify checking for ppc or ppc64 using wildcards.
author reimar
date Mon, 05 Sep 2011 21:55:40 +0000
parents 082ab13a41ab
children bca5fbd1d73c
files configure
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Sep 05 18:43:01 2011 +0000
+++ b/configure	Mon Sep 05 21:55:40 2011 +0000
@@ -248,7 +248,7 @@
 
 ppc() {
   case "$host_arch" in
-    ppc|ppc64|powerpc|powerpc64) return 0;;
+    ppc*|powerpc*) return 0;;
     *) return 1;;
   esac
 }
@@ -1465,7 +1465,7 @@
   case "$(uname -m 2>&1)" in
       x86_64|amd64|i[3-9]86*|x86|x86pc|k5|k6|k6_2|k6_3|k6-2|k6-3|pentium*|athlon*|i586_i686|i586-i686) host_arch=i386 ;;
       ia64) host_arch=ia64 ;;
-      macppc|ppc|ppc64|Power*) host_arch=ppc ;;
+      macppc|ppc*|Power*) host_arch=ppc ;;
       alpha) host_arch=alpha ;;
       sparc) host_arch=sparc ;;
       sparc64) host_arch=sparc64 ;;
@@ -2229,7 +2229,7 @@
     iproc='sh4'
     ;;
 
-  ppc|ppc64|powerpc|powerpc64)
+  ppc*|powerpc*)
     arch='ppc'
     def_dcbzl='#define HAVE_DCBZL 0'
     def_fast_unaligned='#define HAVE_FAST_UNALIGNED 1'