Rename --enable-fatal-warnings back to --enable-strict
This commit is contained in:
parent
ea0a4fbcaa
commit
0d0d1016f7
@ -11,8 +11,8 @@ DISTCHECK_CONFIGURE_FLAGS =
|
||||
if MOO_DEV_MODE
|
||||
DISTCHECK_CONFIGURE_FLAGS += MAKEFLAGS=-j3
|
||||
endif
|
||||
if MOO_ENABLE_FATAL_WARNINGS
|
||||
DISTCHECK_CONFIGURE_FLAGS += --enable-fatal-warnings
|
||||
if MOO_STRICT_MODE
|
||||
DISTCHECK_CONFIGURE_FLAGS += --enable-strict
|
||||
endif
|
||||
|
||||
CLEANFILES =
|
||||
|
@ -3,7 +3,7 @@ AC_DEFUN([_MOO_AC_CHECK_C_COMPILER_OPTIONS],[
|
||||
for opt in $1; do
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $opt"
|
||||
if test "x$MOO_ENABLE_FATAL_WARNINGS" = "xyes"; then
|
||||
if test "x$MOO_STRICT_MODE" = "xyes"; then
|
||||
CFLAGS="-Werror $CFLAGS"
|
||||
fi
|
||||
AC_TRY_COMPILE([],[],[MOO_CFLAGS="$MOO_CFLAGS $opt"],[:])
|
||||
@ -17,7 +17,7 @@ AC_DEFUN([_MOO_AC_CHECK_CXX_COMPILER_OPTIONS],[
|
||||
for opt in $1; do
|
||||
save_CXXFLAGS="$CXXFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $opt"
|
||||
if test "x$MOO_ENABLE_FATAL_WARNINGS" = "xyes"; then
|
||||
if test "x$MOO_STRICT_MODE" = "xyes"; then
|
||||
CXXFLAGS="-Werror $CXXFLAGS"
|
||||
fi
|
||||
AC_TRY_COMPILE([],[],[MOO_CXXFLAGS="$MOO_CXXFLAGS $opt"],[:])
|
||||
@ -75,17 +75,17 @@ AC_ARG_ENABLE(dev-mode,
|
||||
])
|
||||
AM_CONDITIONAL(MOO_DEV_MODE, test x$MOO_DEV_MODE = "xyes")
|
||||
|
||||
AC_ARG_ENABLE(fatal-warnings,
|
||||
AC_HELP_STRING([--enable-fatal-warnings],[enable -Werror (default = NO, unless --enable-debug is used)]),[
|
||||
AC_ARG_ENABLE(strict,
|
||||
AC_HELP_STRING([--enable-strict],[enable all warnings and -Werror (default = NO)]),[
|
||||
if test "$enableval" = "xno"; then
|
||||
MOO_ENABLE_FATAL_WARNINGS="no"
|
||||
MOO_STRICT_MODE="no"
|
||||
else
|
||||
MOO_ENABLE_FATAL_WARNINGS="yes"
|
||||
MOO_STRICT_MODE="yes"
|
||||
fi
|
||||
],[
|
||||
MOO_ENABLE_FATAL_WARNINGS="no"
|
||||
MOO_STRICT_MODE="no"
|
||||
])
|
||||
AM_CONDITIONAL(MOO_ENABLE_FATAL_WARNINGS, test x$MOO_ENABLE_FATAL_WARNINGS = "xyes")
|
||||
AM_CONDITIONAL(MOO_STRICT_MODE, test x$MOO_STRICT_MODE = "xyes")
|
||||
|
||||
MOO_COMPILER
|
||||
|
||||
@ -107,7 +107,7 @@ else
|
||||
_MOO_AC_CHECK_CXX_COMPILER_OPTIONS([-fno-enforce-eh-specs])
|
||||
fi
|
||||
|
||||
if test "x$MOO_ENABLE_FATAL_WARNINGS" = "xyes"; then
|
||||
if test "x$MOO_STRICT_MODE" = "xyes"; then
|
||||
if $MOO_GCC; then
|
||||
MOO_CFLAGS="$MOO_CFLAGS -Werror"
|
||||
MOO_CXXFLAGS="$MOO_CXXFLAGS -Werror"
|
||||
|
@ -112,7 +112,7 @@ fi
|
||||
|
||||
if [ "$1" = "--python" ]; then
|
||||
shift
|
||||
moo_configure_args="$moo_configure_args --enable-moo-module --enable-shared --disable-static"
|
||||
moo_configure_args="$moo_configure_args --enable-strict --enable-moo-module --enable-shared --disable-static"
|
||||
fi
|
||||
|
||||
echo $srcdir/configure $configure_args $moo_configure_args $moo_nls_flags "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user