mirror of
https://github.com/znc/znc.git
synced 2026-08-03 23:43:42 +02:00
Fix installing without root when systemd exists.
Try to detect path to systemd units only when --with-systemdsystemunitdir is used without the path. If this option isn't specified at all, no need to install systemd file. Thanks to n0kS for reporting this.
This commit is contained in:
+5
-1
@@ -151,7 +151,11 @@ AC_ARG_ENABLE( [poll],
|
||||
|
||||
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" = xyes; then
|
||||
with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
|
||||
fi
|
||||
])
|
||||
if test "x$with_systemdsystemunitdir" != xno; then
|
||||
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user