summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2019-02-14 13:22:56 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-02-14 13:23:38 -0500
commit2f7e6758be4bfb4c02027b82e21b50861ffd90af (patch)
tree6445b447416baa972b09d629ad6499fabad5b62e
parent998a82ec587be23bc5c2e59ba858fb099279c5f0 (diff)
downloadopenpower-dbus-interfaces-2f7e6758be4bfb4c02027b82e21b50861ffd90af.zip
openpower-dbus-interfaces-2f7e6758be4bfb4c02027b82e21b50861ffd90af.tar.gz
build: Set pkg-config RequiresHEADmaster
libopenpower-dbus-interfaces has a dependency on libsystemd. Change-Id: I8d50896087e873e374d80c1dc2c97fd8d6352f34 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r--configure.ac4
-rw-r--r--openpower-dbus-interfaces.pc.in1
2 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 09cfed9..96bb1dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,10 @@ AS_IF([test "x$enable_libopenpower_dbus" != "xno"], [
AS_IF([test "x$SDBUSPLUSPLUS" == "x"],
AC_MSG_ERROR([Cannot find sdbus++]))
+ # Checks for libraries.
+ AX_PKG_CHECK_MODULES([SYSTEMD], [], [libsystemd >= 221], [],)
+ AX_PKG_CHECK_MODULES([SDBUSPLUS], [], [sdbusplus], [],)
+
# Check for baseline language coverage in the compiler for the C++14 standard
AX_CXX_COMPILE_STDCXX_17([noext])
AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CFLAGS])
diff --git a/openpower-dbus-interfaces.pc.in b/openpower-dbus-interfaces.pc.in
index 7018987..5ec151e 100644
--- a/openpower-dbus-interfaces.pc.in
+++ b/openpower-dbus-interfaces.pc.in
@@ -7,5 +7,6 @@ Name: openpower-dbus-interfaces
Description: Generated sdbusplus bindings for openpower-dbus-interfaces.
URL: https://github.com/openbmc/openpower-dbus-interfaces
Version: @VERSION@
+Requires.private: @AX_PACKAGE_REQUIRES_PRIVATE@
Libs: -L@libdir@ -lopenpower_dbus
Cflags: -I@includedir@
OpenPOWER on IntegriCloud