summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-16 18:40:51 +0000
committerjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-16 18:40:51 +0000
commitbbb6c9916d1ef546c591f1206d24e782677960a9 (patch)
treea977b66fed6735908718cb9f53b073b2b99cb7a7
parent09fe43603a13ee402b8cabeaec8413ff35058c9b (diff)
downloadmpv-bbb6c9916d1ef546c591f1206d24e782677960a9.tar.bz2
mpv-bbb6c9916d1ef546c591f1206d24e782677960a9.tar.xz
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...) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1336 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xconfigure17
1 files changed, 16 insertions, 1 deletions
diff --git a/configure b/configure
index a59a868304..0f62c70344 100755
--- a/configure
+++ b/configure
@@ -189,12 +189,26 @@ echo "Please wait while ./configure discovers your software and hardware environ
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 @@ sparc)
*)
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