Skip to content

Commit 6ffd9ed

Browse files
fossddperexg
authored andcommitted
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: #309 Signed-off-by: Achill Gilgenast <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
1 parent 5910fb3 commit 6ffd9ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ AC_ARG_WITH([systemdsystemunitdir],
419419
if test "x$with_systemdsystemunitdir" != xno; then
420420
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
421421
fi
422-
AM_CONDITIONAL(HAVE_SYSTEMD, [test "$have_min_systemd" = "yes" \
423-
-a -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
422+
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" \
423+
-a "x$with_systemdsystemunitdir" != xno ])
424424

425425
AC_ARG_WITH([asound-state-dir],
426426
AS_HELP_STRING([--with-asound-state-dir=DIR], [Directory to place asound.state file in]),

0 commit comments

Comments
 (0)