build: use PKG_CHECK_MODULES for phosphor-dbus-interfaces
For the phosphor-dbus-interfaces check, use PKG_CHECK_MODULES.
The CI wasn't checking for this macro to know to pull phosphor-dbus-interfaces
Also, for consistency. There is not an advantage to using this instead of the
regular package script.
Change-Id: I3c7f2dc4830d461078a1fd35b7ecd72c7260b3b2
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/configure.ac b/configure.ac
index b7bfd18..1bc24c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,13 +42,13 @@
PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],,\
AC_MSG_ERROR(["Requires phosphor-logging package."]))
+PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],\
+[], [AC_MSG_ERROR(["phosphor-dbus-interfaces required and not found."])])
+
# Checks for header files.
AC_CHECK_HEADER(systemd/sd-bus.h, ,\
[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd development package required])])
-AX_PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [], [phosphor-dbus-interfaces],\
-[], [AC_MSG_ERROR(["phosphor-dbus-interfaces required and not found."])])
-
# Checks for typedefs, structures, and compiler characteristics.
AX_APPEND_COMPILE_FLAGS([-Wall -Werror -Wno-unused-result], [CFLAGS])