revision 966:0f0320cb3650
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 966:0f0320cb3650 |
parent | 965:fc39a6608851 |
child | 967:ef93b08e2166 |
author | nkeynes |
date | Thu Jan 15 11:16:48 2009 +0000 (15 years ago) |
Make --enable-strict-warn work again
1.1 --- a/configure Thu Jan 15 07:21:34 2009 +00001.2 +++ b/configure Thu Jan 15 11:16:48 2009 +00001.3 @@ -7126,7 +7126,9 @@1.5 # Check whether --enable-strict-warn was given.1.6 if test "${enable_strict_warn+set}" = set; then1.7 - enableval=$enable_strict_warn; CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"1.8 + enableval=$enable_strict_warn; if test "$enableval" == "yes"; then1.9 + enable_strictwarn=yes1.10 + fi1.11 fi1.13 # Check whether --enable-translator was given.1.14 @@ -7264,9 +7266,10 @@1.16 if test "x$enable_optimized" = "xyes"; then1.17 CFLAGS="$CFLAGS $CCOPT"1.18 - OBJCFLAGS="$OBJCFLAGS $CCOPT"1.19 + OBJCFLAGS="$OBJCFLAGS $OBJCOPT"1.20 if test "x$enable_profiled" != "xyes"; then1.21 CFLAGS="$CFLAGS -fomit-frame-pointer"1.22 + OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"1.23 fi1.24 else1.25 CFLAGS="$CFLAGS -g3"1.26 @@ -7279,6 +7282,11 @@1.27 OBJCFLAGS="$OBJCFLAGS -pg";1.28 fi1.30 +if test "x$enable_strictwarn" = "xyes"; then1.31 + CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"1.32 + OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"1.33 +fi1.34 +1.36 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&51.37 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
2.1 --- a/configure.in Thu Jan 15 07:21:34 2009 +00002.2 +++ b/configure.in Thu Jan 15 11:16:48 2009 +00002.3 @@ -25,7 +25,9 @@2.5 AC_ARG_ENABLE( strict-warn,2.6 AS_HELP_STRING( [--enable-strict-warn], [Enable strict compilation warnings]),2.7 - [CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"], [])2.8 + [if test "$enableval" == "yes"; then2.9 + enable_strictwarn=yes2.10 + fi] )2.11 AC_ARG_ENABLE( translator,2.12 AS_HELP_STRING( [--disable-translator], [Disable the SH4 translator (Enabled by default)]),2.13 [true], [enable_translator=yes] )2.14 @@ -77,10 +79,11 @@2.16 if test "x$enable_optimized" = "xyes"; then2.17 CFLAGS="$CFLAGS $CCOPT"2.18 - OBJCFLAGS="$OBJCFLAGS $CCOPT"2.19 + OBJCFLAGS="$OBJCFLAGS $OBJCOPT"2.20 if test "x$enable_profiled" != "xyes"; then2.21 dnl -fomit-frame-pointer can't be used with -pg2.22 CFLAGS="$CFLAGS -fomit-frame-pointer"2.23 + OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"2.24 fi2.25 else2.26 CFLAGS="$CFLAGS -g3"2.27 @@ -93,6 +96,11 @@2.28 OBJCFLAGS="$OBJCFLAGS -pg";2.29 fi2.31 +if test "x$enable_strictwarn" = "xyes"; then2.32 + CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"2.33 + OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"2.34 +fi2.35 +2.36 AC_CHECK_FASTCALL([2.37 AC_DEFINE(HAVE_FASTCALL, [1], [Use fast register-passing calling conventions])2.38 ])
.