OSDN Git Service

configure: detect mips64 automatically
authorMans Rullgard <mans@mansr.com>
Tue, 23 Oct 2012 22:34:35 +0000 (23:34 +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 b1c6d45..9f6eda5 100755 (executable)
--- a/configure
+++ b/configure
@@ -2453,13 +2453,9 @@ case "$arch" in
     arm*)
         arch="arm"
     ;;
-    mips|mipsel|IP*)
+    mips*|IP*)
         arch="mips"
     ;;
-    mips64*)
-        arch="mips"
-        subarch="mips64"
-    ;;
     parisc|hppa)
         arch="parisc"
     ;;
@@ -2677,7 +2673,11 @@ check_64bit(){
 }
 
 case "$arch" in
-    alpha|ia64|mips|parisc|sparc)
+    alpha|ia64|parisc|sparc)
+        spic=$shared
+    ;;
+    mips)
+        check_64bit mips mips64 '_MIPS_SIM > 1'
         spic=$shared
     ;;
     x86)