build-sys: Add support for newer systemd without compatibility libs
authorColin Guthrie <colin@mageia.org>
Fri, 17 Oct 2014 11:51:25 +0000 (13:51 +0200)
committerColin Guthrie <colin@mageia.org>
Mon, 3 Nov 2014 12:32:23 +0000 (12:32 +0000)
commitfb1ca6f0c1799259bad85bee8d984d62871584b9
tree0e7bb64b198a54f2c26e494f53186013cc59aa5a
parentf7da58b73fd9f324d5a96746a2cdfc05eb37047a
build-sys: Add support for newer systemd without compatibility libs

In newer versions of systemd some libraries were combined for the sake of
general simplicity.

This change checks against the newer name first and avoids separate pkgconfig
checks if it's found. We probably want to keep support for the older library
names for some time. systemd does allow for the shipping of compatibility
pkgconfig files to not break downstream code like ourselves which is why this
likely hasn't been "fixed" until now.

With this change we no longer rely on systemd having been built with those
compatibility pkgconfig files.
configure.ac
src/Makefile.am