summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-02-13 15:09:17 -0800
committerPatrick Venture <venture@google.com>2019-02-13 15:09:17 -0800
commit1bdf22f802c7e58423a0d4f8fa49e009e57d44d1 (patch)
treec50009e32b3a7c83117c3bf03030f02740d77d49
parentc83c4dc327447a6aee8ddebcd98963ac411169fb (diff)
downloadopenpower-vpd-parser-1bdf22f802c7e58423a0d4f8fa49e009e57d44d1.tar.gz
openpower-vpd-parser-1bdf22f802c7e58423a0d4f8fa49e009e57d44d1.zip
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: Id77ae17d8977c5aaa01b33325c57a73391f980c2 Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--configure.ac6
1 files changed, 2 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 66ee856..5895956 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,10 +14,8 @@ AM_PATH_PYTHON([2.7],
[AC_SUBST([PYTHON], [echo "$PYTHON"])],
[AC_MSG_ERROR([Could not find python-2.7 installed...python-2.7 is required])])
-PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,\
- AC_MSG_ERROR(["Requires sdbusplus package."]))
-PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],,\
- AC_MSG_ERROR(["Requires phosphor-logging package."]))
+PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
+PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
# Suppress the --with-libtool-sysroot error
LT_INIT
OpenPOWER on IntegriCloud