about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2012-09-24 17:43:02 +0200
committerAlexander Barton <alex@barton.de>2012-09-24 17:43:02 +0200
commiteed8a4ee6e2ba814d2cc6041eb9ac8df10d01e9e (patch)
treeb4228ff724aa8f3e0dc101f1a6f0793e7076f693
parentb1b83831d199cc893606e924255a8747c97cd572 (diff)
downloadngircd-eed8a4ee6e2ba814d2cc6041eb9ac8df10d01e9e.tar.gz
ngircd-eed8a4ee6e2ba814d2cc6041eb9ac8df10d01e9e.zip
automake: enable colored test output, if available
The "color-tests" option can't be checked for, but is available starting
with automake 1.11 which introduced AM_SILENT_RULES -- so we check this ...
-rw-r--r--configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 34c76e16..ac7c0cbd 100644
--- a/configure.in
+++ b/configure.in
@@ -11,6 +11,10 @@
 
 define(VERSION_ID,esyscmd(git describe|sed -e 's/rel-//g'|sed -e 's/-/~/'|tr -d \\n))
 
+m4_ifdef([AM_SILENT_RULES],
+	[m4_define([ng_color_tests], [color-tests])],
+	[m4_define([ng_color_tests], [])])
+
 # -- Initialisation --
 
 AC_PREREQ([2.61])
@@ -21,7 +25,7 @@ AC_CONFIG_SRCDIR([src/ngircd/ngircd.c])
 AC_CONFIG_HEADER([src/config.h])
 AC_CANONICAL_HOST
 
-AM_INIT_AUTOMAKE([1.10])
+AM_INIT_AUTOMAKE([-Wall 1.10 ]ng_color_tests)
 
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])