summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorKarel Zak2012-09-07 14:19:17 +0200
committerKarel Zak2012-09-07 14:19:17 +0200
commit7fcccbdfbe6898a3706a23ba63c8b4d81a1b0fa5 (patch)
tree719cbd6f72141721383a7fe42e1e9ccdc8d5f59f /configure.ac
parenteject: robust strings usage [coverity scan] (diff)
downloadkernel-qcow2-util-linux-7fcccbdfbe6898a3706a23ba63c8b4d81a1b0fa5.tar.gz
kernel-qcow2-util-linux-7fcccbdfbe6898a3706a23ba63c8b4d81a1b0fa5.tar.xz
kernel-qcow2-util-linux-7fcccbdfbe6898a3706a23ba63c8b4d81a1b0fa5.zip
build-sys: add --disable-wdctl
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ead559c30..5890b8526 100644
--- a/configure.ac
+++ b/configure.ac
@@ -955,7 +955,11 @@ UL_REQUIRES_HAVE([chcpu], [cpu_set_t], [cpu_set_t type])
AM_CONDITIONAL(BUILD_CHCPU, test "x$build_chcpu" = xyes)
-UL_BUILD_INIT([wdctl], [check])
+AC_ARG_ENABLE([wdctl],
+ AS_HELP_STRING([--disable-wdctl], [do not build wdctl]),
+ [], enable_wdctl=check
+)
+UL_BUILD_INIT([wdctl])
UL_REQUIRES_LINUX([wdctl])
UL_REQUIRES_HAVE([wdctl], [linux_watchdog_h], [linux/watchdog.h header file])
AM_CONDITIONAL(BUILD_WDCTL, test "x$build_wdctl" = xyes)