summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-02-02 23:00:45 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-07-10 16:00:54 +0400
commit28b9262f088fdb1703a0152c14c5cb02723214bc (patch)
tree38f8e1d81b5f01c0b71edce82facc42d9d0d1d45
parentd500a1d9ca3c10451225f520416f3832849e3bd1 (diff)
downloaddctrl-tools-28b9262f088fdb1703a0152c14c5cb02723214bc.tar.gz
Add support for silent rules; disable -Werror by default
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 99d30b9..38ef67c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,6 +3,7 @@ AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign subdir-objects dist-bzip2])
+m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES])
AC_PROG_CC_C99
AC_USE_SYSTEM_EXTENSIONS
@@ -15,7 +16,9 @@ AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.18.1])
AC_ARG_ENABLE([werror],
- AS_HELP_STRING([--enable-werror], [treat warnings as errors]))
+ AS_HELP_STRING([--enable-werror], [treat warnings as errors]),
+ [],
+ [enable_werror=no])
AS_IF([test "x$enable_werror" != "xno"], [
AC_SUBST([WERROR], [-Werror])