sysincludedir = /usr/include
endif
+# Directory to install systemd service files
+inst_systemdsystemunitdir = $(install_root)$(systemd-system-unit-dir)
# Commands to install files.
ifndef INSTALL_DATA
build-hardcoded-path-in-tests= @hardcoded_path_in_tests@
build-pt-chown = @build_pt_chown@
enable-lock-elision = @enable_lock_elision@
+systemd-system-unit-dir = @systemdsystemunitdir@
# Build tools.
CC = @CC@
enable_lock_elision
hardcoded_path_in_tests
use_default_link
+systemdsystemunitdir
sysheaders
with_fp
READELF
with_binutils
with_selinux
with_headers
+with_systemdsystemunitdir
with_default_link
enable_sanity_checks
enable_shared
--with-selinux if building with SELinux support
--with-headers=PATH location of system headers to use (for example
/usr/src/linux/include) [default=compiler default]
+ --with-systemdsystemunitdir=DIR
+ directory for systemd service files
--with-default-link do not use explicit linker scripts
--with-cpu=CPU select code for CPU variant
+# Check whether --with-systemdsystemunitdir was given.
+if test "${with_systemdsystemunitdir+set}" = set; then :
+ withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval
+else
+ systemdsystemunitdir=''
+fi
+
+
+
+
# Check whether --with-default-link was given.
if test "${with_default_link+set}" = set; then :
[sysheaders=''])
AC_SUBST(sysheaders)
+AC_ARG_WITH([systemdsystemunitdir],
+ AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
+ [directory for systemd service files]),
+ [systemdsystemunitdir=$withval],
+ [systemdsystemunitdir=''])
+AC_SUBST(systemdsystemunitdir)
+
AC_SUBST(use_default_link)
AC_ARG_WITH([default-link],
AC_HELP_STRING([--with-default-link],
nscd_initgroups nscd_getserv_r nscd_netgroup
aux := nscd_helper
install-others = $(inst_sysconfdir)/nscd.conf
+ifneq ($(systemd-system-unit-dir),)
+install-others += $(inst_systemdsystemunitdir)/nscd.service
+install-others += $(inst_libdir)/tmpfiles.d/nscd.conf
+endif
endif
# To find xmalloc.c
$(inst_sysconfdir)/nscd.conf: nscd.conf $(+force)
$(do-install)
+
+ifneq ($(systemd-system-unit-dir),)
+$(inst_systemdsystemunitdir)/nscd.service: nscd.service $(+force)
+ $(do-install)
+
+$(inst_libdir)/tmpfiles.d/nscd.conf: nscd.tmpfiles $(+force)
+ $(do-install)
+endif