summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-07 11:58:37 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-07 11:58:37 +0000
commit7377a6a60aad8e52fde392bbb42a41cf96937abe (patch)
treed20be9ca7cf53bf87e22823c4d319db8a6611b4b /configure
parente98e792843a2fc6f4cec00803a4efa7a71eab7b3 (diff)
downloadmpv-7377a6a60aad8e52fde392bbb42a41cf96937abe.tar.bz2
mpv-7377a6a60aad8e52fde392bbb42a41cf96937abe.tar.xz
generalized SH architecture support by Magnus Damm, magnus.damm gmail com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27428 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure25
1 files changed, 9 insertions, 16 deletions
diff --git a/configure b/configure
index cb46d30023..a2c53e32ff 100755
--- a/configure
+++ b/configure
@@ -159,13 +159,6 @@ arm() {
esac
}
-sh3() {
- case "$host_arch" in
- sh3) return 0;;
- *) return 1;;
- esac
-}
-
# Use this before starting a check
echocheck() {
echo "============ Checking for $@ ============" >> "$TMPLOG"
@@ -1283,7 +1276,7 @@ if test -z "$_target" ; then
# host's CPU/instruction set
host_arch=`uname -p 2>&1`
case "$host_arch" in
- i386|sparc|ppc|alpha|arm|sh3|mips|vax)
+ i386|sparc|ppc|alpha|arm|mips|vax)
;;
powerpc) # Darwin returns 'powerpc'
host_arch=ppc
@@ -1312,7 +1305,7 @@ if test -z "$_target" ; then
sparc64) host_arch=sparc64 ;;
parisc*|hppa*|9000*) host_arch=hppa ;;
arm*|zaurus|cats) host_arch=arm ;;
- sh3) host_arch=sh3 ;;
+ sh3|sh4|sh4a) host_arch=sh ;;
s390) host_arch=s390 ;;
s390x) host_arch=s390x ;;
mips*) host_arch=mips ;;
@@ -1639,7 +1632,7 @@ EOF
fi
-_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L SH3 POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX BFIN XTENSA GENERIC'
+_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L SH POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX BFIN XTENSA GENERIC'
case "$host_arch" in
i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
_arch='X86 X86_32'
@@ -2012,13 +2005,13 @@ EOF
_optimizing=''
;;
- sh3)
- _arch='SH3'
- _target_arch='ARCH_SH3 = yes'
- iproc='sh3'
+ sh)
+ _arch='SH'
+ _target_arch='ARCH_SH = yes'
+ iproc='sh'
proc=''
- _march='-m3'
- _mcpu='-ml'
+ _march=''
+ _mcpu=''
_optimizing=''
;;