build-sys: Add support for newer systemd without compatibility libs 08/29908/1
authorColin Guthrie <colin@mageia.org>
Fri, 17 Oct 2014 11:51:25 +0000 (13:51 +0200)
committerJaska Uimonen <jaska.uimonen@intel.com>
Wed, 5 Nov 2014 13:39:45 +0000 (15:39 +0200)
commit5c2fe36254454fcb3748107849e32ed18a316785
treea7af4e029edf4bc97572dadbe9d9fc33dae3b42d
parent1ac726d5c0c281ca05fb3ddadf044ca8f821a141
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.

Change-Id: Ibdbd0b01968b74237a4e2110759000f9eb705122
configure.ac
src/Makefile.am