[MPlayer-cvslog] r36495 - trunk/configure

reimar subversion at mplayerhq.hu
Sat Oct 26 23:39:20 CEST 2013


Author: reimar
Date: Sat Oct 26 23:39:20 2013
New Revision: 36495

Log:
Fall back to uname -p if uname -m does not give anything useful.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Sat Oct 26 23:30:17 2013	(r36494)
+++ trunk/configure	Sat Oct 26 23:39:20 2013	(r36495)
@@ -1685,7 +1685,8 @@ if test -z "$_target" ; then
 
 
   # host's CPU/instruction set
-  case "$(uname -m 2>&1)" in
+  set_host_arch() {
+  case "$1" in
       x86_64|amd64|i[3-9]86*|i86pc|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*|Power*) host_arch=ppc ;;
@@ -1701,6 +1702,11 @@ if test -z "$_target" ; then
       xtensa*) host_arch=xtensa ;;
       *) host_arch=UNKNOWN ;;
   esac
+  }
+  set_host_arch "$(uname -m 2>&1)"
+  if test "$host_arch" = UNKNOWN ; then
+    set_host_arch "$(uname -p 2>&1)"
+  fi
 else # if test -z "$_target"
   for component in 3 2; do
     system_name=$(echo $_target | cut -d '-' -f $component)


More information about the MPlayer-cvslog mailing list