diff options
-rw-r--r-- | configure.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 807b872..015de22 100644 --- a/configure.in +++ b/configure.in @@ -21,6 +21,18 @@ AC_CHECK_HEADERS([openssl/rsa.h], , CFLAGS="$CFLAGS -g -O0 -Wall" +AC_ARG_ENABLE(strict, + AC_HELP_STRING([--disable-strict], + [Don't use -Werror while building])) + +AC_MSG_CHECKING([Use -Werror]) +if test "$enable_strict" != "no"; then + AC_MSG_RESULT(yes) + CFLAGS="$CFLAGS -Werror" +else + AC_MSG_RESULT(no) +fi + AC_CONFIG_FILES([ Makefile doc/Makefile |