blob: ed31491f98c6fd18b407deadc80d2354ddcf8d43 [file] [log] [blame]
Matt Spinlerd82a5f42017-07-24 13:40:37 -05001# Initialization
2AC_PREREQ([2.69])
3AC_INIT([witherspoon-pfault-analysis], [1.0],
4[https://github.com/openbmc/witherspoon-pfault-analysis/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
12AM_PROG_AR
13AC_PROG_INSTALL
14AC_PROG_MAKE_SET
15
16# Checks for typedefs, structures, and compiler characteristics.
17AX_CXX_COMPILE_STDCXX_14([noext])
18AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
19
20PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,
21 AC_MSG_ERROR(["Requires sdbusplus package."]))
22PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],,\
23 AC_MSG_ERROR(["Requires phosphor-logging package."]))
24PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],,\
25 AC_MSG_ERROR(["Requires phosphor-dbus-interfaces package."]))
Matt Spinler84cd0a52017-08-04 08:53:30 -050026# Check for sdbus++
27AC_PATH_PROG([SDBUSPLUSPLUS], [sdbus++])
28AS_IF([test "x$SDBUSPLUSPLUS" == "x"],
29 AC_MSG_ERROR(["Requires sdbus++"]))
Matt Spinlerd82a5f42017-07-24 13:40:37 -050030
31# Checks for library functions.
32LT_INIT # Required for systemd linking
33
34# Create configured output
Matt Spinlerafb39132017-08-14 13:53:07 -050035AC_CONFIG_FILES([Makefile power-sequencer/Makefile])
Matt Spinlerd82a5f42017-07-24 13:40:37 -050036AC_OUTPUT