blob: 476dc72d0c0c74f982b1c58fe4e89f1355cae184 [file] [log] [blame]
Marri Devender Rao82056ee2017-04-27 00:54:50 -05001# Initialization
2AC_PREREQ([2.69])
3AC_INIT([openpower-debug-collector], [1.0],[https://github.com/openbmc/openpower-debug-collector/issues])
4AC_LANG([C++])
5AC_CONFIG_HEADERS([config.h])
6AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
7AM_SILENT_RULES([yes])
8
9# Checks for programs.
10AC_PROG_CXX
11AC_PROG_INSTALL
12AC_PROG_MAKE_SET
13
14# Checks for typedefs, structures, and compiler characteristics.
15AX_CXX_COMPILE_STDCXX_14([noext])
16AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
17
18LT_INIT
19
Marri Devender Raof973c3d2017-04-27 01:08:34 -050020# Checks for libraries.
21AX_PKG_CHECK_MODULES([SYSTEMD], [], [libsystemd >= 221], [],
22[AC_MSG_ERROR(["systemd required and not found."])])
23
24# Checks for modules
25PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],,
26 [AC_MSG_ERROR([Could not find phosphor-logging...openbmc/phosphor-logging package required])])
27
Marri Devender Rao82056ee2017-04-27 00:54:50 -050028# Create configured output
29AC_CONFIG_FILES([Makefile ])
30AC_OUTPUT