systemd: fix detection of libsystemd
commit82317ada6e79af928d8e880f1f38498e3caae508
authorAlexander Bokovoy <ab@samba.org>
Wed, 28 Sep 2016 21:09:12 +0000 (29 00:09 +0300)
committerKarolin Seeger <kseeger@samba.org>
Wed, 3 May 2017 18:43:57 +0000 (3 20:43 +0200)
tree0a2111bccf46413cd71cc811cefdea6a352f1b0a
parent17d505226a2212f0a13b35ba411a8b7edd37296f
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

(cherry picked from commit 09bc5b5374227a555f580c3d7c1d82f15bb818bc)

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12764
systemd: fix detection of libsystemd

Autobuild-User(v4-6-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-6-test): Wed May  3 20:43:57 CEST 2017 on sn-devel-144
lib/util/wscript_configure