summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-06 16:46:05 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-06 16:46:05 +0000
commit82c29876599a8db1772bf9a612e7dbada6c71ed4 (patch)
treebd9ec82e99f08d2f5bec587af97f8409617a6b56 /configure
parentead24872f19379427d07f3d21ab5aa7f736573e8 (diff)
downloadmpv-82c29876599a8db1772bf9a612e7dbada6c71ed4.tar.bz2
mpv-82c29876599a8db1772bf9a612e7dbada6c71ed4.tar.xz
Setup better cflags for PPC G3 patch by Colin Leroy <colin@colino.net>. IMHO needs improvements for other ppc cpus, too.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6314 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure b/configure
index ab4e44ae59..caf30f7ec7 100755
--- a/configure
+++ b/configure
@@ -76,6 +76,13 @@ x86() {
esac
}
+ppc() {
+ case "$host_arch" in
+ ppc) return 0;;
+ *) return 1;;
+ esac
+}
+
# Use this before starting a check
echocheck() {
echo "============ Checking for $@ ============" >> "$TMPLOG"
@@ -455,7 +462,7 @@ if test "$_as" = auto ; then
fi
# Try to find the available options for the current CPU
-if x86 ; then
+if x86 || ppc; then
if test -r /proc/cpuinfo ; then
# linux with /proc mounted, extract cpu information from it
_cpuinfo="cat /proc/cpuinfo"
@@ -707,6 +714,11 @@ EOF
proc=''
_march=''
_mcpu=''
+ cpu750=`$_cpuinfo | grep "cpu.*750"`
+ if test -n "$cpu750"; then
+ _march=''
+ _mcpu='-mcpu=750'
+ fi
;;
alpha)