diff options
author | Patrick Venture <venture@google.com> | 2019-02-13 15:52:27 -0800 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-02-14 07:02:23 -0800 |
commit | a0b543d81e2f96862fdf2e689cf17808741d20c8 (patch) | |
tree | 289d940250184c09f66fa2989f50d7c6f5108a83 | |
parent | f6a0e40679f06e3de64bd04872e526ed67c39a03 (diff) | |
download | phosphor-dbus-interfaces-a0b543d81e2f96862fdf2e689cf17808741d20c8.tar.gz phosphor-dbus-interfaces-a0b543d81e2f96862fdf2e689cf17808741d20c8.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: I833dbe87b8ac85c6ab295ba1148184544eca0999
Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index cbdc1f9..9d57adc 100644 --- a/configure.ac +++ b/configure.ac @@ -28,8 +28,8 @@ AS_IF([test "x$enable_libphosphor_dbus" != "xno"], [ AC_MSG_ERROR([Cannot find sdbus++])) # Checks for libraries. - AX_PKG_CHECK_MODULES([SYSTEMD], [], [libsystemd >= 221], [], [AC_MSG_ERROR(["systemd required and not found."])]) - AX_PKG_CHECK_MODULES([SDBUSPLUS], [], [sdbusplus], [], [AC_MSG_ERROR(["sdbusplus required and not found."])]) + AX_PKG_CHECK_MODULES([SYSTEMD], [], [libsystemd >= 221]) + AX_PKG_CHECK_MODULES([SDBUSPLUS], [], [sdbusplus]) # Checks for typedefs, structures, and compiler characteristics. AX_CXX_COMPILE_STDCXX_17([noext]) |