summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-02-13 15:18:40 -0800
committerPatrick Venture <venture@google.com>2019-02-13 15:18:40 -0800
commit6aca02e07aeb607f7f44a3381216e57c059d6900 (patch)
treecb1048c4f0087c806018ad51d8e4773c32674838
parenta8741b56ecb9e5538b574554898679618570da63 (diff)
downloadphosphor-time-manager-6aca02e07aeb607f7f44a3381216e57c059d6900.tar.gz
phosphor-time-manager-6aca02e07aeb607f7f44a3381216e57c059d6900.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: I91e5407066976b4d03e8a6b8d105e9bb8aecf5f7 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 7e7d28c..4e6eb92 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,14 +18,10 @@ AM_PROG_AR
LT_INIT
# Check for libraries
-PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221],,\
- AC_MSG_ERROR(["Systemd required and not found"]))
-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([PHOSPHOR_LOGGING], [phosphor-logging],,\
- AC_MSG_ERROR(["Requires phosphor-logging package."]))
+PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
+PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces])
+PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
+PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
AX_PTHREAD([], [AC_MSG_ERROR(["pthread required and not found"])])
# Check/set gtest specific functions.
OpenPOWER on IntegriCloud