summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0908ef3..e11b9c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,6 +56,12 @@ if test "$GCC" = yes; then
AC_MSG_RESULT($ac_cv_cc_wextra)
AS_IF([test "$ac_cv_cc_wextra" = yes], [WEXTRA="-Wextra"], [WEXTRA="-W"])
CFLAGS="-Wall $WEXTRA $CFLAGS"
+
+ AC_ARG_ENABLE(werror, [AC_HELP_STRING([--enable-werror],
+ [Pass -Werror to the C compiler])])
+ if test "$enable_werror" = yes; then
+ CFLAGS="-Werror $CFLAGS"
+ fi
else
case "$host" in
*-*-hpux*)