path: root/
diff options
authorPatrick Williams <>2017-06-01 15:39:40 -0500
committerPatrick Williams <>2017-06-05 21:38:09 +0000
commit9149a772dec2b86607d31d3e411f4cc2fe8a7094 (patch)
treed032a3981db4889ce577915902e2852240bf88f6 /
parenta71d0f15a3e2584a4f83f7cc6d9c9bbec99ea4f7 (diff)
build: stop on error in check for mapper
The configure check for the mapper repository did not have an error condition in it. Therefore, the configure run passed and then the failure surfaced as a missing header file on compile. Add an explicit error condition to the AC_CHECK_LIB call. Change-Id: Ie7d2941963977ba157d65970db21044e7eec9b6f Signed-off-by: Patrick Williams <>
Diffstat (limited to '')
1 files changed, 3 insertions, 2 deletions
diff --git a/ b/
index c1ef974..7a74c01 100644
--- a/
+++ b/
@@ -17,10 +17,11 @@ AM_PATH_PYTHON([2.7],
[AC_MSG_ERROR([Could not find python-2.7 installed...python-2.7 is required])])
# Checks for libraries.
-AC_CHECK_LIB([mapper], [mapper_get_service])
+AC_CHECK_LIB([mapper], [mapper_get_service],,\
+ [AC_MSG_ERROR([Could not find libmapper: phosphor-objmgr package required])])
PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
- AC_MSG_ERROR(["Requires sdbusplus package."]))
+ [AC_MSG_ERROR([Requires sdbusplus package.])])
# Checks for header files.
AC_CHECK_HEADER(systemd/sd-bus.h, ,[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd development package required])])
OpenPOWER on IntegriCloud