aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2015-09-11 13:16:35 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2015-09-11 13:16:35 +0100
commitef35c9f7659205659d6863058b9a7262b21440a5 (patch)
tree470ff53127869280ac6a6327a7cd4f814ed0b2f2 /configure.ac
parent66c4ed98d62010421a47bcdb7a4a22a7cbcffff9 (diff)
downloadrtmux-ef35c9f7659205659d6863058b9a7262b21440a5.tar.gz
rtmux-ef35c9f7659205659d6863058b9a7262b21440a5.tar.bz2
rtmux-ef35c9f7659205659d6863058b9a7262b21440a5.zip
Add --enable-coverage for gcov.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 9d64a964..f3fabd94 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,15 +23,23 @@ AC_PROG_INSTALL
# Default tmux.conf goes in /etc not ${prefix}/etc.
test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
-# Is this a debug build?
+# Is this --enable-debug?
found_debug=yes
AC_ARG_ENABLE(
debug,
- AC_HELP_STRING(--enable-debug, create a debug build),
+ AC_HELP_STRING(--enable-debug, enable debug build flags),
found_debug=$enable_debug
)
AM_CONDITIONAL(IS_DEBUG, test "x$found_debug" = xyes)
+# Is this --enable-coverage?
+AC_ARG_ENABLE(
+ coverage,
+ AC_HELP_STRING(--enable-coverage, enable coverage build flags),
+ found_coverage=$enable_coverage
+)
+AM_CONDITIONAL(IS_COVERAGE, test "x$found_coverage" = xyes)
+
# Is this a static build?
AC_ARG_ENABLE(
static,