summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-12-27 19:27:59 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-12-27 19:27:59 +0000
commit81024b89f62904bb052b08b18decd59d95e09076 (patch)
treec6b6719c1b25f90243e6feeee64c2ef0ca3fad5a /configure
parent6b92265b77f87f2261c8f8bdec434696d3699ade (diff)
downloadmpv-81024b89f62904bb052b08b18decd59d95e09076.tar.bz2
mpv-81024b89f62904bb052b08b18decd59d95e09076.tar.xz
optimizing for cpus on irix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11690 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure b/configure
index b9f30b6d6a..3077f26767 100755
--- a/configure
+++ b/configure
@@ -971,6 +971,21 @@ EOF
_march=''
_mcpu=''
_optimizing=''
+
+ if irix ; then
+ echocheck "CPU type"
+ proc=`hinv -c processor | grep CPU | cut -d " " -f3`
+ case "`echo $proc`" in
+ R3000) _march='-mips1' _mcpu='-mtune=r2000' ;;
+ R4000) _march='-mips3' _mcpu='-mtune=r4000' ;;
+ R4400) _march='-mips3' _mcpu='-mtune=r4400' ;;
+ R4600) _march='-mips3' _mcpu='-mtune=r4600' ;;
+ R5000) _march='-mips4' _mcpu='-mtune=r5000' ;;
+ R8000|R10000|R12000|R14000|R16000) _march='-mips4' _mcpu='-mtune=r8000' ;;
+ esac
+ echores "$proc"
+ fi
+
;;
hppa)