db-move: moved evolution from [testing] to [extra] (x86_64)
[arch-packages.git] / libmad / trunk / libmad-0.15.1b-gcc43.patch
blob4b8deb1e5ede83af82435d06d44d4b7e5ccdc1ae
1 Index: libmad-0.15.1b/configure.ac
2 ===================================================================
3 --- libmad-0.15.1b.orig/configure.ac
4 +++ libmad-0.15.1b/configure.ac
5 @@ -73,124 +73,6 @@ debug=""
6 optimize=""
7 profile=""
9 -set -- $CFLAGS
10 -CFLAGS=""
12 -if test "$GCC" = yes
13 -then
14 - CFLAGS="-Wall"
15 -fi
17 -while test $# -gt 0
18 -do
19 - case "$1" in
20 - -Wall)
21 - if test "$GCC" = yes
22 - then
23 - :
24 - else
25 - CFLAGS="$CFLAGS $1"
26 - fi
27 - shift
28 - ;;
29 - -g)
30 - debug="-g"
31 - shift
32 - ;;
33 - -mno-cygwin)
34 - shift
35 - ;;
36 - -m*)
37 - arch="$arch $1"
38 - shift
39 - ;;
40 - -O2)
41 - optimize="-O"
42 - shift
43 - ;;
44 - -fomit-frame-pointer)
45 - shift
46 - ;;
47 - -O*|-f*)
48 - optimize="$optimize $1"
49 - shift
50 - ;;
51 - *)
52 - CFLAGS="$CFLAGS $1"
53 - shift
54 - ;;
55 - esac
56 -done
58 -if test "$GCC" = yes
59 -then
60 - if test -z "$arch"
61 - then
62 - case "$host" in
63 - i386-*) ;;
64 - i?86-*) arch="-march=i486" ;;
65 - arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;;
66 - armv4*-*) arch="-march=armv4 -mtune=strongarm" ;;
67 - powerpc-*) ;;
68 - mips*-agenda-*) arch="-mcpu=vr4100" ;;
69 - mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
70 - esac
71 - fi
73 - case "$optimize" in
74 - -O|"-O "*)
75 - optimize="-O"
76 - optimize="$optimize -fforce-mem"
77 - optimize="$optimize -fforce-addr"
78 - : #x optimize="$optimize -finline-functions"
79 - : #- optimize="$optimize -fstrength-reduce"
80 - optimize="$optimize -fthread-jumps"
81 - optimize="$optimize -fcse-follow-jumps"
82 - optimize="$optimize -fcse-skip-blocks"
83 - : #x optimize="$optimize -frerun-cse-after-loop"
84 - : #x optimize="$optimize -frerun-loop-opt"
85 - : #x optimize="$optimize -fgcse"
86 - optimize="$optimize -fexpensive-optimizations"
87 - optimize="$optimize -fregmove"
88 - : #* optimize="$optimize -fdelayed-branch"
89 - : #x optimize="$optimize -fschedule-insns"
90 - optimize="$optimize -fschedule-insns2"
91 - : #? optimize="$optimize -ffunction-sections"
92 - : #? optimize="$optimize -fcaller-saves"
93 - : #> optimize="$optimize -funroll-loops"
94 - : #> optimize="$optimize -funroll-all-loops"
95 - : #x optimize="$optimize -fmove-all-movables"
96 - : #x optimize="$optimize -freduce-all-givs"
97 - : #? optimize="$optimize -fstrict-aliasing"
98 - : #* optimize="$optimize -fstructure-noalias"
100 - case "$host" in
101 - arm*-*)
102 - optimize="$optimize -fstrength-reduce"
103 - ;;
104 - mips*-*)
105 - optimize="$optimize -fstrength-reduce"
106 - optimize="$optimize -finline-functions"
107 - ;;
108 - i?86-*)
109 - optimize="$optimize -fstrength-reduce"
110 - ;;
111 - powerpc-apple-*)
112 - # this triggers an internal compiler error with gcc2
113 - : #optimize="$optimize -fstrength-reduce"
115 - # this is really only beneficial with gcc3
116 - : #optimize="$optimize -finline-functions"
117 - ;;
118 - *)
119 - # this sometimes provokes bugs in gcc 2.95.2
120 - : #optimize="$optimize -fstrength-reduce"
121 - ;;
122 - esac
123 - ;;
124 - esac
127 case "$host" in
128 mips*-agenda-*)
129 AC_DEFINE(HAVE_MADD16_ASM, 1,