Add libsdbusplus dependency

Change-Id: Ia31eda92f54c9d19858fb4fb7a3b87cf20f796be
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/Makefile.am b/Makefile.am
index 16d35b9..fb4ecb2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,7 +16,7 @@
 	generated.cpp \
 	events.cpp \
 	manager.cpp
-libmanager_la_LIBADD = libextra.la
+libmanager_la_LIBADD = libextra.la $(SDBUSPLUS_LIBS)
 
 # Automake does not allow autoconf substituted variables
 # in _SOURCES variables.  Work around this by providing
diff --git a/configure.ac b/configure.ac
index 2076777..8101911 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,8 @@
 
 # Checks for libraries.
 PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
+PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,
+    AC_MSG_ERROR(["Requires sdbusplus package."]))
 
 # Checks for typedefs, structures, and compiler characteristics.
 AX_CXX_COMPILE_STDCXX_14([noext])