]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
configure.ac: add check for systemd library and header files
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 31 Jul 2023 10:27:37 +0000 (15:57 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 4 Aug 2023 17:41:27 +0000 (11:41 -0600)
commit81081a9ed552fd99699fbee3c35a078f50b5af40
treeb91d4b86c0a3ecb690d45f1f07f9d204deaa745a
parent16a657c60f9459dda9af1a6f186a8394fe6d785e
configure.ac: add check for systemd library and header files

systemd support is now enabled by default, unless explicitly disabled
during the ./configure by passing --enable-systemd=no. The make may
fail with:
systemd.c:9:10: fatal error: systemd/sd-bus.h: No such file or directory
    9 | #include <systemd/sd-bus.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.

if the host system is missing the systemd library and development files,
due to missing checks for their existence in ./configure.ac. This patch
add them.

Fixes: https://github.com/libcgroup/libcgroup/issues/387
Reported-by: Tomasz Kłoczko <kloczek@github.com>
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit 36d1d2226f3f3a089334c7a62a6e5890ae9d52be)
configure.ac