summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuediger Meier <ruediger.meier@ga-group.nl>2016-04-06 12:51:07 +0200
committerKarel Zak <kzak@redhat.com>2016-04-06 13:46:34 +0200
commit50e6f15bb3e81561465d06053b0d9fb9742291b2 (patch)
tree0f75882c98ce23ae567e77921bf84644b00cabbf
parentbedd7311636f1ee1cb22c1ac8415d5bb675ec1d1 (diff)
downloadutil-linux-50e6f15bb3e81561465d06053b0d9fb9742291b2.tar.gz
build-sys: add --disable-logger and --disable-lslogins
Now we are able to disable all programs which have systemd/journald support. This feature is needed by openSUSE packagers who are building util-linux in 2 stages to avoid build cycles. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
-rw-r--r--configure.ac13
1 files changed, 10 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 8a4a9311f..e42a2c4fd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1319,7 +1319,11 @@ UL_REQUIRES_HAVE([lscpu], [cpu_set_t], [cpu_set_t type])
AM_CONDITIONAL([BUILD_LSCPU], [test "x$build_lscpu" = xyes])
-UL_BUILD_INIT([lslogins], [check])
+AC_ARG_ENABLE([lslogins],
+ AS_HELP_STRING([--disable-lslogins], [do not build lslogins]),
+ [], [UL_DEFAULT_ENABLE([lslogins], [check])]
+)
+UL_BUILD_INIT([lslogins])
UL_REQUIRES_BUILD([lslogins], [libsmartcols])
UL_REQUIRES_HAVE([lslogins], [shadow_h], [shadow.h header])
UL_REQUIRES_HAVE([lslogins], [utmp_h], [utmp.h header])
@@ -1362,8 +1366,11 @@ AC_ARG_ENABLE([cal],
UL_BUILD_INIT([cal])
AM_CONDITIONAL([BUILD_CAL], [test "x$build_cal" = xyes])
-
-UL_BUILD_INIT([logger], [yes])
+AC_ARG_ENABLE([logger],
+ AS_HELP_STRING([--disable-logger], [do not build logger]),
+ [], [UL_DEFAULT_ENABLE([logger], [check])]
+)
+UL_BUILD_INIT([logger])
AM_CONDITIONAL([BUILD_LOGGER], [test "x$build_logger" = xyes])
UL_BUILD_INIT([look], [yes])