Skip to content

Commit ae8d4a9

Browse files
committed
Improve systemd support
Later versions of Ubuntu (e.g. 24.10 and later) do not install the systemd-dev package by default. This breaks the systemd-detection mechanism. Add this package in for non-systemd-based Debian distributions. Also log what we are doing for systemd as part of the configure.
1 parent 6b5c635 commit ae8d4a9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

configure.ac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,13 @@ if test x$enable_utmp = xyes; then
726726
echo " utmpx.ut_host $ac_cv_utmpx_has_ut_host"
727727
echo " utmpx.ut_exit $ac_cv_utmpx_has_ut_exit"
728728
fi
729+
if test -n "$with_systemdsystemunitdir" \
730+
-a "x$with_systemdsystemunitdir" != xno; then
731+
echo " systemd support yes"
732+
echo " unit file directory $with_systemdsystemunitdir"
733+
else
734+
echo " systemd support no"
735+
fi
729736

730737
echo
731738
echo " with imlib2 $use_imlib2"

scripts/install_xrdp_build_dependencies_with_apt.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ case `lsb_release -si`/`lsb_release -sr` in
7070
*) LIBFREETYPE_DEV=libfreetype-dev
7171
esac
7272

73+
# We need systemd-dev for Debian-based systems using systemd
74+
if command -v systemctl >/dev/null; then
75+
PACKAGES="$PACKAGES systemd-dev"
76+
fi
77+
7378
case "$ARCH"
7479
in
7580
amd64)

0 commit comments

Comments
 (0)