build: pkg anti-pattern: use defaults
Use the defaults in the pkg check where the default error message is
sufficient to identify which package is missing.
Change-Id: I6795cd2310142904ed6a1e35dcedd7c3308e316f
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/configure.ac b/configure.ac
index 78c9887..7392902 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,12 +27,7 @@
[AC_DEFINE(HAVE_SDBUSPLUS, [1], [Found openbmc/sdbusplus package])],
[AC_MSG_ERROR([The openbmc/sdbusplus package is required])]
)
-PKG_CHECK_MODULES(
- [PHOSPHOR_LOGGING],
- [phosphor-logging],
- [],
- [AC_MSG_ERROR([The openbmc/phosphor-logging package is required])]
-)
+PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
AC_CHECK_HEADER(
[blobs-ipmid],
[AC_MSG_ERROR(["phosphor-ipmi-blobs required and not found."])]