Commit 5bab7c49 authored by Patrick Venture's avatar Patrick Venture

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: Ide33a6c676d6b4db07a10aeb35e5076f9b3aeb91
Signed-off-by: default avatarPatrick Venture <venture@google.com>
parent 9ed627ca
...@@ -51,14 +51,9 @@ AC_ARG_ENABLE([virtual-pnor], ...@@ -51,14 +51,9 @@ AC_ARG_ENABLE([virtual-pnor],
) )
AS_IF([test "x$enable_virtual_pnor" == "xyes"], AS_IF([test "x$enable_virtual_pnor" == "xyes"],
[ [
PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,\ PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
AC_MSG_ERROR(["Requires sdbusplus package."])) PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
AX_PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [],[phosphor-dbus-interfaces])
PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],,\
AC_MSG_ERROR(["Requires phosphor-logging package."]))
AX_PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [],[phosphor-dbus-interfaces],\
[], [AC_MSG_ERROR(["phosphor-dbus-interfaces required and not found."])])
AM_CONDITIONAL(VIRTUAL_PNOR_ENABLED, true) AM_CONDITIONAL(VIRTUAL_PNOR_ENABLED, true)
AX_APPEND_COMPILE_FLAGS([-DVIRTUAL_PNOR_ENABLED], [CXXFLAGS]) AX_APPEND_COMPILE_FLAGS([-DVIRTUAL_PNOR_ENABLED], [CXXFLAGS])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment