summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-02-13 15:49:27 -0800
committerAndrew Geissler <geissonator@yahoo.com>2019-02-19 15:09:44 +0000
commit64d60978c586435e76211faa4e435368a9f84757 (patch)
tree5bc9ff34abd9b4518186ef8a5c307560b658c79c
parent189cf2486e4f5273ec26d37d83302d4be9fd7539 (diff)
downloadphosphor-state-manager-64d60978c586435e76211faa4e435368a9f84757.tar.gz
phosphor-state-manager-64d60978c586435e76211faa4e435368a9f84757.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: I21df28b0ad0a337e3af746b7cfb06ae9cc8f6087 Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--configure.ac12
1 files changed, 4 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index e985a95..7919ec5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,14 +12,10 @@ AC_PROG_MAKE_SET
# Check for libraries
PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
-PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],,\
- AC_MSG_ERROR(["Requires phosphor-dbus-interfaces package."]))
-PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,
- AC_MSG_ERROR(["Requires sdbusplus package."]))
-PKG_CHECK_MODULES([SDEVENTPLUS], [sdeventplus],,
- AC_MSG_ERROR(["Requires sdeventplus package."]))
-PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],,\
- AC_MSG_ERROR(["Requires phosphor-logging package."]))
+PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces])
+PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
+PKG_CHECK_MODULES([SDEVENTPLUS], [sdeventplus])
+PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
# Checks for typedefs, structures, and compiler characteristics.
AX_CXX_COMPILE_STDCXX_17([noext])
OpenPOWER on IntegriCloud