--- a/configure Thu Jan 15 04:15:11 2009 +0000 +++ b/configure Thu Jan 22 00:50:09 2009 +0000 @@ -7126,7 +7126,9 @@ # Check whether --enable-strict-warn was given. if test "${enable_strict_warn+set}" = set; then - enableval=$enable_strict_warn; CFLAGS="$CFLAGS -Werror -Wall -Wno-unused" + enableval=$enable_strict_warn; if test "$enableval" == "yes"; then + enable_strictwarn=yes + fi fi # Check whether --enable-translator was given. @@ -7264,9 +7266,10 @@ if test "x$enable_optimized" = "xyes"; then CFLAGS="$CFLAGS $CCOPT" - OBJCFLAGS="$OBJCFLAGS $CCOPT" + OBJCFLAGS="$OBJCFLAGS $OBJCOPT" if test "x$enable_profiled" != "xyes"; then CFLAGS="$CFLAGS -fomit-frame-pointer" + OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer" fi else CFLAGS="$CFLAGS -g3" @@ -7279,6 +7282,11 @@ OBJCFLAGS="$OBJCFLAGS -pg"; fi +if test "x$enable_strictwarn" = "xyes"; then + CFLAGS="$CFLAGS -Wall -Werror -Wno-unused" + OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused" +fi + { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5 $as_echo_n "checking support for fastcall calling conventions... " >&6; };