From 6ffd9ede1315ec1ee60409b0d43b139836064931 Mon Sep 17 00:00:00 2001 From: Achill Gilgenast Date: Mon, 24 Nov 2025 15:53:04 +0100 Subject: [PATCH] configure: Allow systemd service installation without systemd.pc If the systemdsystemunitdir got passed anyway as a variable, we don't need the systemd.pc dependency anymore and allow building without a systemd build-dependency. Relevant in Alpine Linux, where we allowed systemd services to be (sub-)packaged (e.g. for downstreams like postmarketOS), but don't have systemd pacakged in Alpine itself, yet. Closes: https://github.com/alsa-project/alsa-utils/pull/309 Signed-off-by: Achill Gilgenast Signed-off-by: Jaroslav Kysela --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 4532778..00a613c 100644 --- a/configure.ac +++ b/configure.ac @@ -419,8 +419,8 @@ AC_ARG_WITH([systemdsystemunitdir], if test "x$with_systemdsystemunitdir" != xno; then AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) fi -AM_CONDITIONAL(HAVE_SYSTEMD, [test "$have_min_systemd" = "yes" \ - -a -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ]) +AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" \ + -a "x$with_systemdsystemunitdir" != xno ]) AC_ARG_WITH([asound-state-dir], AS_HELP_STRING([--with-asound-state-dir=DIR], [Directory to place asound.state file in]), -- 2.47.3