diff options
author | Patrick Venture <venture@google.com> | 2019-02-13 15:12:10 -0800 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-02-13 15:12:10 -0800 |
commit | 3348e62e2af12fa6bd191292dff4a4195628579b (patch) | |
tree | 67524552a6ce62c19b9598d092be5ffda55f7f8e | |
parent | a27263d48e68712fbc97db0c785a13e2dad7b572 (diff) | |
download | openpower-proc-control-3348e62e2af12fa6bd191292dff4a4195628579b.tar.gz openpower-proc-control-3348e62e2af12fa6bd191292dff4a4195628579b.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: Ib3c000db8dc8c4f9efedb66464c86d8d8c25bacb
Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 7477a9d..0347604 100644 --- a/configure.ac +++ b/configure.ac @@ -45,10 +45,10 @@ AC_CONFIG_FILES([Makefile.generated], [${srcdir}/gen_makefile.sh ${srcdir} "$myChips" > Makefile.generated], [myChips="$CHIPS"]) -PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221], [], [AC_MSG_ERROR(["systemd required and not found"])]) -PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],, [AC_MSG_ERROR([Could not find phosphor-logging...openbmc/phosphor-logging package required])]) -PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces], [], [AC_MSG_ERROR(["phosphor-dbus-interfaces required and not found."])]) -PKG_CHECK_MODULES([OPENPOWER_DBUS_INTERFACES], [openpower-dbus-interfaces], [], [AC_MSG_ERROR(["openpower-dbus-interfaces required and not found."])]) +PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221]) +PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging]) +PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces]) +PKG_CHECK_MODULES([OPENPOWER_DBUS_INTERFACES], [openpower-dbus-interfaces]) PKG_PROG_PKG_CONFIG AC_ARG_WITH([systemdsystemunitdir], |