1.1 --- a/configure.in Thu Jan 15 04:15:11 2009 +0000
1.2 +++ b/configure.in Mon Jan 26 12:32:23 2009 +0000
1.5 AC_ARG_ENABLE( strict-warn,
1.6 AS_HELP_STRING( [--enable-strict-warn], [Enable strict compilation warnings]),
1.7 - [CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"], [])
1.8 + [if test "$enableval" == "yes"; then
1.9 + enable_strictwarn=yes
1.11 AC_ARG_ENABLE( translator,
1.12 AS_HELP_STRING( [--disable-translator], [Disable the SH4 translator (Enabled by default)]),
1.13 [true], [enable_translator=yes] )
1.16 if test "x$enable_optimized" = "xyes"; then
1.17 CFLAGS="$CFLAGS $CCOPT"
1.18 - OBJCFLAGS="$OBJCFLAGS $CCOPT"
1.19 + OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
1.20 if test "x$enable_profiled" != "xyes"; then
1.21 dnl -fomit-frame-pointer can't be used with -pg
1.22 CFLAGS="$CFLAGS -fomit-frame-pointer"
1.23 + OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
1.26 CFLAGS="$CFLAGS -g3"
1.28 OBJCFLAGS="$OBJCFLAGS -pg";
1.31 +if test "x$enable_strictwarn" = "xyes"; then
1.32 + CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
1.33 + OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
1.37 AC_DEFINE(HAVE_FASTCALL, [1], [Use fast register-passing calling conventions])