--- libtheora/configure.ac	2007-09-18 08:47:09.000000000 +0200
+++ libtheora.new/configure.ac	2007-09-23 14:44:48.000000000 +0200
@@ -93,7 +93,7 @@
         case $host in 
         *)
                 DEBUG="-g -DDEBUG"
-                CFLAGS="-O"
+                EXTRA_CFLAGS="-O"
                 PROFILE="-g -p -DDEBUG" ;;
         esac
 else
@@ -101,11 +101,11 @@
         case $host in 
         *)
                 DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES"
-                CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
+                EXTRAS_CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
                 PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";;
         esac
 fi
-CFLAGS="$CFLAGS $cflags_save"
+CFLAGS="$EXTRAS_CFLAGS $cflags_save"
 
 cpu_x86_64=no
 cpu_x86_32=no
