Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From 40971911d653bf53de295d7462c643e4073916b9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Joe MacDonald <joe@deserted.net> |
| 3 | Date: Fri, 1 Nov 2013 12:47:18 -0400 |
| 4 | Subject: [PATCH] systemd: allow --with-systemd to take a path arg |
| 5 | |
| 6 | If building for a cross-compile environment with systemd it is convenient |
| 7 | to be able to specify a systemd path for the target that may not be the |
| 8 | same as that on the host. |
| 9 | |
| 10 | Upstream-status: Submitted [http://www.spinics.net/lists/autofs/msg00740.html] |
| 11 | |
| 12 | Signed-off-by: Joe MacDonald <joe@deserted.net> |
| 13 | --- |
| 14 | aclocal.m4 | 10 ++++++++-- |
| 15 | 1 file changed, 8 insertions(+), 2 deletions(-) |
| 16 | |
| 17 | diff --git a/aclocal.m4 b/aclocal.m4 |
| 18 | index 3e6f223..105e3e9 100644 |
| 19 | --- a/aclocal.m4 |
| 20 | +++ b/aclocal.m4 |
| 21 | @@ -229,8 +229,10 @@ dnl Check the location of the systemd unit files directory |
| 22 | dnl -------------------------------------------------------------------------- |
| 23 | AC_DEFUN([AF_WITH_SYSTEMD], |
| 24 | [AC_ARG_WITH(systemd, |
| 25 | -[ --with-systemd install systemd unit file if systemd unit directory |
| 26 | - is found on system], |
| 27 | +[ --with-systemd@<:@=systemddir@:>@ install systemd unit file. If 'yes' |
| 28 | + probe the system for unit directory. |
| 29 | + If a path is specified, assume that |
| 30 | + is a valid install path.], |
| 31 | [if test "$withval" = yes; then |
| 32 | if test -z "$systemddir"; then |
| 33 | AC_MSG_CHECKING([location of the systemd unit files directory]) |
| 34 | @@ -247,6 +249,10 @@ AC_DEFUN([AF_WITH_SYSTEMD], |
| 35 | else |
| 36 | AC_MSG_RESULT(not found) |
| 37 | fi |
| 38 | +else |
| 39 | + if test "$withval" != no; then |
| 40 | + systemddir=$withval |
| 41 | + fi |
| 42 | fi]) |
| 43 | ]) |
| 44 | |
| 45 | -- |
| 46 | 1.7.10.4 |
| 47 | |