Blame SOURCES/libmad-0.15.1b-cflags.patch

45c0e5
diff -Naur libmad-0.15.1b-orig/configure.ac libmad-0.15.1b/configure.ac
45c0e5
--- libmad-0.15.1b-orig/configure.ac	2007-06-30 20:22:31.000000000 -0600
45c0e5
+++ libmad-0.15.1b/configure.ac	2007-06-30 20:25:31.000000000 -0600
45c0e5
@@ -122,74 +122,74 @@
45c0e5
     esac
45c0e5
 done
45c0e5
 
45c0e5
-if test "$GCC" = yes
45c0e5
-then
45c0e5
-    if test -z "$arch"
45c0e5
-    then
45c0e5
-	case "$host" in
45c0e5
-	    i386-*)           ;;
45c0e5
-	    i?86-*)           arch="-march=i486" ;;
45c0e5
-	    arm*-empeg-*)     arch="-march=armv4 -mtune=strongarm1100" ;;
45c0e5
-	    armv4*-*)         arch="-march=armv4 -mtune=strongarm" ;;
45c0e5
-	    powerpc-*)        ;;
45c0e5
-	    mips*-agenda-*)   arch="-mcpu=vr4100" ;;
45c0e5
-	    mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
45c0e5
-	esac
45c0e5
-    fi
45c0e5
-
45c0e5
-    case "$optimize" in
45c0e5
-	-O|"-O "*)
45c0e5
-	    optimize="-O"
45c0e5
-	    optimize="$optimize -fforce-mem"
45c0e5
-	    optimize="$optimize -fforce-addr"
45c0e5
-	    : #x optimize="$optimize -finline-functions"
45c0e5
-	    : #- optimize="$optimize -fstrength-reduce"
45c0e5
-	    optimize="$optimize -fthread-jumps"
45c0e5
-	    optimize="$optimize -fcse-follow-jumps"
45c0e5
-	    optimize="$optimize -fcse-skip-blocks"
45c0e5
-	    : #x optimize="$optimize -frerun-cse-after-loop"
45c0e5
-	    : #x optimize="$optimize -frerun-loop-opt"
45c0e5
-	    : #x optimize="$optimize -fgcse"
45c0e5
-	    optimize="$optimize -fexpensive-optimizations"
45c0e5
-	    optimize="$optimize -fregmove"
45c0e5
-	    : #* optimize="$optimize -fdelayed-branch"
45c0e5
-	    : #x optimize="$optimize -fschedule-insns"
45c0e5
-	    optimize="$optimize -fschedule-insns2"
45c0e5
-	    : #? optimize="$optimize -ffunction-sections"
45c0e5
-	    : #? optimize="$optimize -fcaller-saves"
45c0e5
-	    : #> optimize="$optimize -funroll-loops"
45c0e5
-	    : #> optimize="$optimize -funroll-all-loops"
45c0e5
-	    : #x optimize="$optimize -fmove-all-movables"
45c0e5
-	    : #x optimize="$optimize -freduce-all-givs"
45c0e5
-	    : #? optimize="$optimize -fstrict-aliasing"
45c0e5
-	    : #* optimize="$optimize -fstructure-noalias"
45c0e5
-
45c0e5
-	    case "$host" in
45c0e5
-		arm*-*)
45c0e5
-		    optimize="$optimize -fstrength-reduce"
45c0e5
-		    ;;
45c0e5
-		mips*-*)
45c0e5
-		    optimize="$optimize -fstrength-reduce"
45c0e5
-		    optimize="$optimize -finline-functions"
45c0e5
-		    ;;
45c0e5
-		i?86-*)
45c0e5
-		    optimize="$optimize -fstrength-reduce"
45c0e5
-		    ;;
45c0e5
-		powerpc-apple-*)
45c0e5
-		    # this triggers an internal compiler error with gcc2
45c0e5
-		    : #optimize="$optimize -fstrength-reduce"
45c0e5
-
45c0e5
-		    # this is really only beneficial with gcc3
45c0e5
-		    : #optimize="$optimize -finline-functions"
45c0e5
-		    ;;
45c0e5
-		*)
45c0e5
-		    # this sometimes provokes bugs in gcc 2.95.2
45c0e5
-		    : #optimize="$optimize -fstrength-reduce"
45c0e5
-		    ;;
45c0e5
-	    esac
45c0e5
-	    ;;
45c0e5
-    esac
45c0e5
-fi
45c0e5
+#if test "$GCC" = yes
45c0e5
+#then
45c0e5
+#    if test -z "$arch"
45c0e5
+#    then
45c0e5
+#	case "$host" in
45c0e5
+#	    i386-*)           ;;
45c0e5
+#	    i?86-*)           arch="-march=i486" ;;
45c0e5
+#	    arm*-empeg-*)     arch="-march=armv4 -mtune=strongarm1100" ;;
45c0e5
+#	    armv4*-*)         arch="-march=armv4 -mtune=strongarm" ;;
45c0e5
+#	    powerpc-*)        ;;
45c0e5
+#	    mips*-agenda-*)   arch="-mcpu=vr4100" ;;
45c0e5
+#	    mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
45c0e5
+#	esac
45c0e5
+#    fi
45c0e5
+#
45c0e5
+#    case "$optimize" in
45c0e5
+#	-O|"-O "*)
45c0e5
+#	    optimize="-O"
45c0e5
+#	    optimize="$optimize -fforce-mem"
45c0e5
+#	    optimize="$optimize -fforce-addr"
45c0e5
+#	    : #x optimize="$optimize -finline-functions"
45c0e5
+#	    : #- optimize="$optimize -fstrength-reduce"
45c0e5
+#	    optimize="$optimize -fthread-jumps"
45c0e5
+#	    optimize="$optimize -fcse-follow-jumps"
45c0e5
+#	    optimize="$optimize -fcse-skip-blocks"
45c0e5
+#	    : #x optimize="$optimize -frerun-cse-after-loop"
45c0e5
+#	    : #x optimize="$optimize -frerun-loop-opt"
45c0e5
+#	    : #x optimize="$optimize -fgcse"
45c0e5
+#	    optimize="$optimize -fexpensive-optimizations"
45c0e5
+#	    optimize="$optimize -fregmove"
45c0e5
+#	    : #* optimize="$optimize -fdelayed-branch"
45c0e5
+#	    : #x optimize="$optimize -fschedule-insns"
45c0e5
+#	    optimize="$optimize -fschedule-insns2"
45c0e5
+#	    : #? optimize="$optimize -ffunction-sections"
45c0e5
+#	    : #? optimize="$optimize -fcaller-saves"
45c0e5
+#	    : #> optimize="$optimize -funroll-loops"
45c0e5
+#	    : #> optimize="$optimize -funroll-all-loops"
45c0e5
+#	    : #x optimize="$optimize -fmove-all-movables"
45c0e5
+#	    : #x optimize="$optimize -freduce-all-givs"
45c0e5
+#	    : #? optimize="$optimize -fstrict-aliasing"
45c0e5
+#	    : #* optimize="$optimize -fstructure-noalias"
45c0e5
+#
45c0e5
+#	    case "$host" in
45c0e5
+#		arm*-*)
45c0e5
+#		    optimize="$optimize -fstrength-reduce"
45c0e5
+#		    ;;
45c0e5
+#		mips*-*)
45c0e5
+#		    optimize="$optimize -fstrength-reduce"
45c0e5
+#		    optimize="$optimize -finline-functions"
45c0e5
+#		    ;;
45c0e5
+#		i?86-*)
45c0e5
+#		    optimize="$optimize -fstrength-reduce"
45c0e5
+#		    ;;
45c0e5
+#		powerpc-apple-*)
45c0e5
+#		    # this triggers an internal compiler error with gcc2
45c0e5
+#		    : #optimize="$optimize -fstrength-reduce"
45c0e5
+#
45c0e5
+#		    # this is really only beneficial with gcc3
45c0e5
+#		    : #optimize="$optimize -finline-functions"
45c0e5
+#		    ;;
45c0e5
+#		*)
45c0e5
+#		    # this sometimes provokes bugs in gcc 2.95.2
45c0e5
+#		    : #optimize="$optimize -fstrength-reduce"
45c0e5
+#		    ;;
45c0e5
+#	    esac
45c0e5
+#	    ;;
45c0e5
+#    esac
45c0e5
+#fi
45c0e5
 
45c0e5
 case "$host" in
45c0e5
     mips*-agenda-*)