AC_DEFUN([ACX_STRICT],[ | |
AC_ARG_ENABLE( | |
[strict], | |
[AS_HELP_STRING([--enable-strict],[enable strict compile mode @<:@enabled@:>@])], | |
, | |
[enable_strict="yes"] | |
) | |
if test "${enable_strict}" = "yes"; then | |
CFLAGS="${CFLAGS} -Wall -Wextra" | |
CXXFLAGS="${CXXFLAGS} -Wall -Wextra" | |
fi | |
]) |