systemd: Check if ./configure detected a systemd system unit directory
authorMartin Willi <martin@revosec.ch>
Mon, 15 Sep 2014 13:38:06 +0000 (15:38 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 22 Sep 2014 12:19:38 +0000 (14:19 +0200)
configure.ac

index 9d9a993..43556c5 100644 (file)
@@ -870,6 +870,13 @@ if test x$xml = xtrue; then
 fi
 
 if test x$systemd = xtrue; then
+       AC_MSG_CHECKING([for systemd system unit directory])
+       if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then
+               AC_MSG_RESULT([$systemdsystemunitdir])
+       else
+               AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)])
+       fi
+
        PKG_CHECK_MODULES(systemd_daemon, [libsystemd-daemon])
        AC_SUBST(systemd_daemon_CFLAGS)
        AC_SUBST(systemd_daemon_LIBS)