diff options
author | Werner Koch <wk@gnupg.org> | 2017-10-24 18:42:37 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-10-24 18:44:49 +0200 |
commit | 812fe29bff42cf7dbd07e0becc55b2ada340dd97 (patch) | |
tree | e67141097b4f89c01bc031598245b0952d903685 /configure.ac | |
parent | build: Do not mess with CFLAGS in configure. (diff) | |
download | gnupg2-812fe29bff42cf7dbd07e0becc55b2ada340dd97.tar.xz gnupg2-812fe29bff42cf7dbd07e0becc55b2ada340dd97.zip |
build: New configure option --enable-werror
* configure.ac: Implement that option.
--
This can be used as a workaround in case of bogus autoconf tests.
GnuPG-bug-id: 2423
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1f933a729..551c970b3 100644 --- a/configure.ac +++ b/configure.ac @@ -1666,6 +1666,17 @@ AC_ARG_ENABLE(optimization, fi]) # +# Add -Werror to CFLAGS. This hack can be used to avoid problems with +# misbehaving autoconf tests in case the user supplied -Werror. +# +AC_ARG_ENABLE(werror, + AC_HELP_STRING([--enable-werror], + [append -Werror to CFLAGS]), + [if test $enableval = yes ; then + CFLAGS="$CFLAGS -Werror" + fi]) + +# # Configure option --enable-all-tests # AC_MSG_CHECKING([whether "make check" shall run all tests]) |