From 3cace61d9e04b234ef34873f4937b88ef61c4d4a Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 17 Jan 2017 18:53:27 -0800 Subject: [PATCH] Only check for systemd on Linux, no need to warn users of other OSes --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d99e7b2c..ac07b532 100644 --- a/configure.ac +++ b/configure.ac @@ -46,7 +46,12 @@ AM_CONDITIONAL(NETBSD, [test "x$netbsd" = xyes]) AC_ARG_WITH([systemdsystemunitdir], AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), - [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) + [], [ +if test "x$linux" = xyes; then + with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) +fi +]) + if test "x$with_systemdsystemunitdir" != xno; then AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) fi