blob: 878b30dc2e58c700558f7e621f69da69ed6eb498 [file] [log] [blame]
Vishwanatha Subbanna15b1dc12017-05-23 15:16:13 +05301# Initialization
2AC_PREREQ([2.69])
3AC_INIT([phosphor-watchdog], [1.0],
4 [https://github.com/openbmc/phosphor-watchdog/issues])
5AC_LANG([C++])
6AC_CONFIG_HEADERS([config.h])
7AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
8AM_SILENT_RULES([yes])
9
10# Checks for programs.
11AC_PROG_CXX
12AC_PROG_INSTALL
13
14# Checks for typedefs, structures, and compiler characteristics.
15AX_CXX_COMPILE_STDCXX_14([noext])
16AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
17
18# For linking
19LT_INIT
20
Vishwanatha Subbannad7a3f132017-05-29 19:39:08 +053021# Check for needed modules
Vishwanatha Subbanna7e146552017-05-29 17:03:33 +053022PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221], [], [AC_MSG_ERROR(["systemd required and not found"])])
23PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],, [AC_MSG_ERROR([Could not find phosphor-logging...openbmc/phosphor-logging package required])])
Vishwanatha Subbannad7a3f132017-05-29 19:39:08 +053024PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],, [AC_MSG_ERROR([Could not find sdbusplus...openbmc/sdbusplus package required])])
25PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],, [AC_MSG_ERROR([Could not find phosphor-dbus-interfaces...openbmc/phosphor-dbus-interfaces package required])])
Vishwanatha Subbanna7e146552017-05-29 17:03:33 +053026
Vishwanatha Subbanna15b1dc12017-05-23 15:16:13 +053027# Create configured output
28AC_CONFIG_FILES([Makefile])
29AC_OUTPUT