diff options
author | H. Peter Anvin <hpa@zytor.com> | 2016-03-03 12:39:02 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2016-03-03 12:39:02 -0800 |
commit | fdf0d073104454fcb57617c339205730a47a60c9 (patch) | |
tree | 4e3acd924eee8aacf32f10d8b8d0f3ff13baa6f5 | |
parent | 54469e27d0565ceab1cce273cd120c4d4055a509 (diff) | |
download | nasm-fdf0d073104454fcb57617c339205730a47a60c9.tar.gz |
Make --disable-werror work
autoconf's handling of --without and --disable are a bit
counterintuitive: instead of calling the "not given" branch of the
conditional, they instead call the "given" part of the conditional
with an argument of "no". Make --disable-werror work as expected.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | configure.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 01c0f07e..86d2af92 100644 --- a/configure.in +++ b/configure.in @@ -186,6 +186,8 @@ PA_ADD_CFLAGS([-pedantic]) AC_ARG_ENABLE([werror], [AC_HELP_STRING([--enable-werror], [compile with -Werror to error out on any warning])], +[], [enable_werror=no]) +AS_IF([test x"$enable_werror" != xno], [PA_ADD_CFLAGS([-Werror])], [PA_ADD_CFLAGS([-Werror=implicit]) PA_ADD_CFLAGS([-Werror=missing-braces]) |