changeset 27665:b00d2e388fe0

Merge SPARC and SPARC64 sections in the CPU detection code.
author diego
date Sat, 04 Oct 2008 09:38:10 +0000
parents 22f1732c7d58
children 9936b7fa9e63
files configure
diffstat 1 files changed, 5 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Oct 04 09:27:46 2008 +0000
+++ b/configure	Sat Oct 04 09:38:10 2008 +0000
@@ -1972,11 +1972,14 @@
     echores "$proc"
     ;;
 
-  sparc)
+  sparc|sparc64)
     _arch='SPARC'
     _target_arch='ARCH_SPARC = yes'
     iproc='sparc'
-    if sunos ; then
+    if test "$host_arch" = "sparc64" ; then
+      _vis='yes'
+      proc='ultrasparc'
+    elif sunos ; then
 	echocheck "CPU type"
 	karch=`uname -m`
 	case "`echo $karch`" in
@@ -1996,16 +1999,6 @@
     _optimizing="$proc"
     ;;
 
-  sparc64)
-    _arch='SPARC'
-    _target_arch='ARCH_SPARC = yes'
-    _vis='yes'
-    iproc='sparc'
-    proc='ultrasparc'
-    _mcpu="-mcpu=$proc"
-    _optimizing="$proc"
-    ;;
-
   arm|armv4l|armv5tel)
     _arch='ARM ARMV4L'
     _target_arch='ARCH_ARMV4L = yes'