diff options
| author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-02-10 11:52:48 -0500 |
|---|---|---|
| committer | Patrick Williams <patrick@stwcx.xyz> | 2017-02-11 04:03:41 +0000 |
| commit | 5e70389908b4326135bbfc7b75fcb3a563798382 (patch) | |
| tree | 3fc66a0c8903af083e169ee8984b22a6e2752e94 | |
| parent | 9a0baf5096d81a17b6c73cc14f77f2ef23658dab (diff) | |
| download | sdbusplus-5e70389908b4326135bbfc7b75fcb3a563798382.tar.gz sdbusplus-5e70389908b4326135bbfc7b75fcb3a563798382.zip | |
build: Use AX for pkg config
Use an autoconf archive macro for pkg config so autoconf can fill
out Requires.private in sdbusplus.pc.in.
Change-Id: I62fd658b813ecde437756aefcee91ba42a3a94b2
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
| -rw-r--r-- | configure.ac | 7 | ||||
| -rw-r--r-- | sdbusplus.pc.in | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0a06ff0..f278240 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,12 @@ AS_IF([test "x$enable_sdbuspp" != "xno"], AM_CONDITIONAL([WANT_SDBUSPP], [test "x$enable_sdbuspp" != "xno"]) # setup libsdbusplus -PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221], [have_systemd=yes], [have_systemd=no]) +AX_PKG_CHECK_MODULES( + [SYSTEMD], + [libsystemd >= 221], + [], + [have_systemd=yes], + [have_systemd=no]) AC_ARG_ENABLE([libsdbusplus], AS_HELP_STRING([--disable-libsdbusplus], [Disable libsdbusplus])) diff --git a/sdbusplus.pc.in b/sdbusplus.pc.in index 6074514..2f7b4e2 100644 --- a/sdbusplus.pc.in +++ b/sdbusplus.pc.in @@ -7,6 +7,8 @@ Name: sdbusplus Description: C++ bindings for systemd dbus APIs URL: https://github.com/openbmc/sdbusplus Version: @VERSION@ +Requires: @AX_PACKAGE_REQUIRES@ +Requires.private: @AX_PACKAGE_REQUIRES_PRIVATE@ Libs: -L@libdir@ -lsdbusplus Cflags: -I@includedir@ |

