summaryrefslogtreecommitdiff
path: root/mplayer-altivec.patch
blob: 4f82a0c670eef3c8ca9beddbe8a3276fc764d290 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- mplayer-r32669/configure.orig	2010-11-30 09:25:22.955081286 +0100
+++ mplayer-r32669/configure	2010-11-30 09:28:43.457857573 +0100
@@ -790,6 +790,7 @@
 _ass=auto
 ass_internal=auto
 _rpath=no
+_disable_altivec=no
 _asmalign_pot=auto
 _stream_cache=yes
 _priority=no
@@ -1356,7 +1357,7 @@
   --enable-fast-clz) _fast_clz=yes ;;
   --disable-fast-clz) _fast_clz=no ;;
   --enable-altivec) _altivec=yes ;;
-  --disable-altivec) _altivec=no ;;
+  --disable-altivec) _altivec=no; _disable_altivec=yes ;;
   --enable-armv5te) _armv5te=yes ;;
   --disable-armv5te) _armv5te=no ;;
   --enable-armv6) _armv6=yes ;;
@@ -2762,12 +2763,12 @@
 
 #FIXME: This should happen before the check for CFLAGS..
 def_altivec_h='#define HAVE_ALTIVEC_H 0'
-if ppc && ( test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ) ; then
+if ppc && ( test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ) && test "$_disable_altivec" != "yes"; then
 
     # check if AltiVec is supported by the compiler, and how to enable it
     echocheck "GCC AltiVec flags"
     if $(cflag_check -maltivec -mabi=altivec) ; then
-    _altivec_gcc_flags="-maltivec -mabi=altivec"
+    _altivec_gcc_flags="-maltivec"
     # check if <altivec.h> should be included
         if $(header_check altivec.h $_altivec_gcc_flags) ; then
             def_altivec_h='#define HAVE_ALTIVEC_H 1'