[Mplayer-cvslog] CVS: main configure,1.108,1.109

Jürgen Keil jkeil at mplayer.dev.hu
Mon Jul 16 20:40:58 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv20377

Modified Files:
	configure 
Log Message:
Detect cpu architecture for a few more linux variants (linux/sparc, linux/ppc,
linux/alpha)

Try to find out cpu architecture for OpenBSD/x86 (of cause someone still needs
to port the code to openbsd...)


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -r1.108 -r1.109
--- configure	16 Jul 2001 13:34:42 -0000	1.108
+++ configure	16 Jul 2001 18:40:51 -0000	1.109
@@ -189,12 +189,26 @@
 system_name=`uname -s 2>&1` # name of operating system: Linux, FreeBSD, NetBSD, SunOS
 host_arch=`uname -p 2>&1`   # host's instruction set or processor type
 case "$host_arch" in
-unknown)		    # Linux returns "unknown" for the processor type
+i386|sparc|ppc|alpha)
+    # fine, uname -p output looks good, it has returned
+    # something this configure script recognizes
+    ;;
+
+*)  # uname -p on Linux returns 'unknown' for the processor type,
+    # OpenBSD returns 'Intel Pentium/MMX ("Genuine Intel" 586-class)'
+
+    # Maybe uname -m (machine hardware name) returns something we
+    # recognize.
+
     case "`uname -m 2>&1`" in
     i[3-9]86)
 	host_arch=i386;;
     ppc)
 	host_arch=ppc;;
+    alpha)
+	host_arch=alpha;;
+    sparc64)
+	host_arch=sparc;;
     esac
     ;;
 esac
@@ -651,6 +665,7 @@
 
 *)
     echo "The architecture of your CPU ($host_arch) is not supported by this configure script"
+    echo "It seems, as if noone has ported MPlayer to your OS or CPU type yet."
     exit 1
     ;;
 esac




More information about the MPlayer-cvslog mailing list