--- configure.orig	2007-07-08 04:28:53.000000000 -0500
+++ configure	2012-03-14 20:16:20.000000000 -0500
@@ -2855,14 +2855,13 @@
 # Check whether --enable-debug was given.
 if test "${enable_debug+set}" = set; then
   enableval=$enable_debug; x="enabled"
-CFLAGS="-Wall -g"
-LDFLAGS="-g"
+CFLAGS="$CFLAGS -Wall -g"
+LDFLAGS="$LDFLAGS -g"
 debug=on
 
 else
   x=disabled
-CFLAGS="-O2"
-LDFLAGS=""
+CFLAGS="$CFLAGS -O2"
 debug=off
 
 fi
