configure.ac: Add check for systemd-escape
Subsystems (2)
PATCH 1/1 configure.ac: Add check for systemd-escape
364b7fef added dependency on systemd-escape. Although it's mostly installed on development machines, there are systems without it.
Warn properly when it is missing, because warning like this can be easily overlooked:
./configure: line 26206: systemd-escape: command not found
Reported-by Anssi Hannula <[email protected]>
Signed-off-by Petr Vorel <[email protected]>
--- configure.ac | 2 ++ 1 file changed, 2 insertions(+)
configure.ac +2 -0
@@ -705,6 +705,8 @@ AC_CONFIG_COMMANDS_PRE([eval eval _statedir=$statedir]) if test "$statedir" = "/var/lib/nfs"; then rpc_pipefsmount="var-lib-nfs-rpc_pipefs.mount" else + AC_CHECK_PROG(SYSTEMD_ESCAPE, systemd-escape, true) + test -z "$SYSTEMD_ESCAPE" && AC_MSG_ERROR([systemd-escape required]) rpc_pipefsmount="$(systemd-escape -p "$statedir/rpc_pipefs").mount" fi AC_SUBST(rpc_pipefsmount)
Signature · 1 line
2.45.2