Commit 7c651180 authored by Jan Chren's avatar Jan Chren

autotools: systemdsystemunitdir

parent b9a86a34
Pipeline #24863533 passed with stages
in 3 minutes and 54 seconds
......@@ -194,6 +194,16 @@ AS_IF([test "x${LIBJUDY}" = "x"], [
])
AC_SUBST(LIBJUDY)
# systemd
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$with_systemdsystemunitdir" != "xno"; then
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
fi
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$systemdsystemunitdir"])
# Test coverage build
AC_MSG_CHECKING([whether to build for test coverage])
......
......@@ -17,8 +17,6 @@
# * http://www.gnu.org/copyleft/gpl.html *
# ***********************************************************************
systemddir = $(libdir)/systemd/system
MOSTLYCLEANFILES += $(examples_DATA) $(conf_SCRIPTS) $(systemd_DATA)
cat_verbose = $(cat_verbose_$(V))
......@@ -44,7 +42,10 @@ client-hook: misc/client-hook.$(hook_suffix)
# systemd service
dist_noinst_DATA += misc/miredo.service-in misc/miredo-server.service-in
systemd_DATA = misc/miredo.service misc/miredo-server.service
if HAVE_SYSTEMD
systemdservicedir = $(systemdsystemunitdir)
systemdservice_DATA = misc/miredo.service misc/miredo-server.service
endif
.service-in.service:
$(AM_V_at)$(mkdir_p) misc
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment