Fix libsystemd detection
Merged despite bogus signoff in the commits being merged, since the changes are trivial.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
build_and_test:
runs-on: ubuntu-latest
env:
- configure_flags: --enable-ipxcp --enable-multilink
+ configure_flags: --enable-ipxcp --enable-multilink --enable-systemd
steps:
- uses: actions/checkout@v2
- name: install required packages
- run: sudo DEBIAN_FRONTEND=noninteractive apt-get -y -qq install build-essential autoconf automake pkg-config libtool m4 autoconf-archive libssl-dev libatm1-dev libpcap-dev
+ run: |
+ sudo DEBIAN_FRONTEND=noninteractive apt-get -y -qq update
+ sudo DEBIAN_FRONTEND=noninteractive apt-get -y -qq install \
+ build-essential autoconf automake pkg-config libtool m4 autoconf-archive \
+ libssl-dev libatm1-dev libpcap-dev libsystemd-dev
- name: configure
run: ./autogen.sh ${{ env.configure_flags }}
AM_COND_IF([WITH_SYSTEMD],
AC_DEFINE([SYSTEMD], 1, [Enable support for systemd notifications]))
AS_IF([test "x${enable_systemd}" = "xyes"], [
- PKG_CHECK_MODULES([systemd], [systemd])])
+ PKG_CHECK_MODULES([SYSTEMD], [libsystemd])])
#
# Enable Callback Protocol Support, disabled by default