Skip to contentSkip to conversation

configure.ac: Add check for systemd-escape

PATCH New Petr Vorel 1 participant 1 message Nov 14, 2024

Subsystems (2)
lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

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

---
 configure.ac | 2 ++
 1 file changed, 2 insertions(+)
configure.ac +2 -0
index 9a8e3ce1..b3eb35b1 100644
@@ -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