- CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -g $CFLAGS"
- CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -g $CXXFLAGS"
+ CFLAGS="$WARNINGS -g $CFLAGS"
+ CXXFLAGS="$WARNINGS -g $CXXFLAGS"
+ STRIP="@echo debug enabled, not stripping "
+ export STRIP
+ AC_SUBST(STRIP)
+else if test "x$OPTIMIZE" '!=' "x"; then
+ CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
+ CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"