build: cleanup configure script PKG_CHECK_MODULES
Cleanup the configure script package include lines. There isn't a set
style for this yet, but this is an attempt to improve readability
whereas it's often one long line per library. The CI will fail if there
aren't backslashes on lines for the AC_CHECK_HEADER.
Change-Id: I6933ae13699f749a57825eb2f011e80625c5a15c
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/configure.ac b/configure.ac
index f1439e6..7369b45 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,10 +17,27 @@
AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
# Checks for libraries.
-PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus], ,[AC_MSG_ERROR([The openbmc/sdbusplus package is required])])
-PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging], ,[AC_MSG_ERROR([The openbmc/phosphor-logging package is required])])
-AC_CHECK_HEADER(experimental/filesystem, ,[AC_MSG_ERROR([Could not find experimental/filesystem...libstdc++fs developement package required])])
-AC_CHECK_HEADER([host-ipmid], [AC_MSG_ERROR(["phosphor-host-ipmid required and not found."])])
+PKG_CHECK_MODULES(
+ [SDBUSPLUS],
+ [sdbusplus],
+ [],
+ [AC_MSG_ERROR([The openbmc/sdbusplus package is required])]
+)
+PKG_CHECK_MODULES(
+ [PHOSPHOR_LOGGING],
+ [phosphor-logging],
+ [],
+ [AC_MSG_ERROR([The openbmc/phosphor-logging package is required])]
+)
+AC_CHECK_HEADER(
+ experimental/filesystem,
+ [],
+ [AC_MSG_ERROR([Could not find experimental/filesystem...libstdc++fs developement package required])]
+)
+AC_CHECK_HEADER(
+ [host-ipmid],
+ [AC_MSG_ERROR(["phosphor-host-ipmid required and not found."])]
+)
# Checks for library functions.
LT_INIT # Required for systemd linking