blob: 2f06b7b00b3f805627fe221dd0d72617c33629dc [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 Subbanna7e146552017-05-29 17:03:33 +053021PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221], [], [AC_MSG_ERROR(["systemd required and not found"])])
22PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],, [AC_MSG_ERROR([Could not find phosphor-logging...openbmc/phosphor-logging package required])])
23
Vishwanatha Subbanna15b1dc12017-05-23 15:16:13 +053024# Create configured output
25AC_CONFIG_FILES([Makefile])
26AC_OUTPUT