systemd: fix detection of libsystemd
authorAlexander Bokovoy <ab@samba.org>
Wed, 28 Sep 2016 21:09:12 +0000 (00:09 +0300)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 2 May 2017 11:05:43 +0000 (13:05 +0200)
commit09bc5b5374227a555f580c3d7c1d82f15bb818bc
tree7bb5f4c10cb8a3e0e3030cd18bb65d921b41c95d
parent2951c592f72b3c2f3e9318730063771846d7aa82
systemd: fix detection of libsystemd

On Fedora 25 detection of libsystemd actually fails due to wrong
assumptions in the configure test. conf.CHECK_LIB returns a list
so 'not conf.CHECK_LIB(...)' is always False and we never get to check
libsystemd.

Instead, remember result of checking pkg-config for separate
libsystemd-daemon and libsystemd-journal libraries. If they miss,
attempt to use libsystemd library instead.

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue May  2 13:05:43 CEST 2017 on sn-devel-144
lib/util/wscript_configure