configure: Use pkg-config for CPPFLAGS

If you build phosphor-dbus-interfaces against an sdbusplus that resides
in a non-standard include location the configure system should still be able
to locate the headers based on the pkg-config information. Since
AC_CHECK_HEADERS uses the CPPFLAGS variable when calling `cpp` to check for
headers, we need to temporarily add the CFLAGS provide by the sdbusplus module.
This populates CPPFLAGS with the include prefixes necessary to find the
headers for sdpbusplus.

Change-Id: I1e3fc50daf5aa5e3025441d469db20fcc0f7f0b4
Signed-off-by: William A. Kennington III <wak@google.com>
1 file changed
tree: c15c9f76a9aab54d8069c49fae5edf617375895c
  1. xyz/
  2. .gitignore
  3. bootstrap.sh
  4. configure.ac
  5. generate_makefile.sh
  6. generate_yaml_makefile.sh
  7. LICENSE
  8. Makefile.am
  9. Makefile.interfaces.in
  10. Makefile.yaml.in
  11. phosphor-dbus-interfaces.pc.in
  12. README.md
README.md

phosphor-dbus-interfaces

YAML descriptors of standard dbus interfaces