diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 0215db3..d93b6da 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,6 +2,8 @@ sbin_PROGRAMS = phosphor-hwmon-readd phosphor_hwmon_readd_SOURCES = readd.cpp phosphor_hwmon_readd_LDADD = libhwmon.la +phosphor_hwmon_readd_LDFLAGS = $(SYSTEMD_LIBS) +phosphor_hwmon_readd_CFLAGS = $(SYSTEMD_CFLAGS) noinst_LTLIBRARIES = libhwmon.la libhwmon_la_SOURCES = \ diff --git a/configure.ac b/configure.ac index 952fcda..aee00f0 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,7 @@ # Initialization AC_PREREQ([2.69]) AC_INIT([phosphor-hwmon], [1.0], [https://github.com/openbmc/phosphor-hwmon/issues]) +AC_LANG([C++]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) AM_SILENT_RULES([yes]) @@ -12,13 +13,15 @@ AC_PROG_INSTALL AC_PROG_MAKE_SET # Checks for libraries. - -# Checks for header files. +PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221]) # Checks for typedefs, structures, and compiler characteristics. AX_CXX_COMPILE_STDCXX_14([noext]) AX_APPEND_COMPILE_FLAGS([-fpic -Wall -Werror], [CXXFLAGS]) +# Checks for header files. +AC_CHECK_HEADER(sdbusplus/server.hpp, ,[AC_MSG_ERROR([Could not find sdbusplus/server.hpp...sdbusplus developement package required])]) + # Checks for library functions. LT_INIT([shared]) |