From: Ruediger Meier Date: Wed, 6 Apr 2016 10:51:07 +0000 (+0200) Subject: build-sys: add --disable-logger and --disable-lslogins X-Git-Tag: v2.28~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=50e6f15bb3e81561465d06053b0d9fb9742291b2;p=thirdparty%2Futil-linux.git 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 --- diff --git a/configure.ac b/configure.ac index 8a4a9311fa..e42a2c4fd9 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])