From: Karel Zak Date: Thu, 3 May 2018 07:56:35 +0000 (+0200) Subject: build-sys: --without-systemd disables --with-systemdsystemunitdir X-Git-Tag: v2.33-rc1~287 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a95313c31dcf95002dfb1d6e4fd8ed77c2adaf1;p=thirdparty%2Futil-linux.git build-sys: --without-systemd disables --with-systemdsystemunitdir Make sure --without-systemd disables also --with-systemdsystemunitdir. Reported-by: L A Walsh Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index 8c108c8dc1..2441a08f65 100644 --- a/configure.ac +++ b/configure.ac @@ -2143,9 +2143,16 @@ AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$have_systemd" = xyes]) AC_ARG_WITH([systemdsystemunitdir], - AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [directory for systemd service files]), - [], [with_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`]) - + AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [directory for systemd service files (requires enabled systemd support)]), + [], [with_systemdsystemunitdir=check] +) +AS_IF([test "x$with_systemdsystemunitdir" = xcheck], [ + AS_IF([test "x$have_systemd" = xyes], [ + with_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd` + ],[ + with_systemdsystemunitdir=no + ]) +]) AS_IF([test "x$with_systemdsystemunitdir" != "xno"], [ AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) ]) @@ -2401,6 +2408,7 @@ AC_MSG_RESULT([ Bash completions: ${with_bashcompletiondir} Systemd support: ${have_systemd} + Systemd unitdir: ${with_systemdsystemunitdir} Btrfs support: ${have_btrfs} Wide-char support: ${build_widechar}