blob: 6b38795aa5970487c953a562fc5c4c93551675ae [file] [log] [blame]
Matt Spinlerc1d65772018-03-27 10:15:32 -05001AC_PREREQ([2.69])
2AC_INIT([ibm-logging], [1.0], [https://github.com/openbmc/ibm-logging/issues])
3AC_LANG([C++])
4AC_CONFIG_HEADERS([config.h])
5AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
6AM_SILENT_RULES([yes])
7
8# Checks for programs.
9AC_PROG_CXX
10AC_PROG_INSTALL
11AC_PROG_MAKE_SET
12
Matt Spinlere0017eb2018-03-27 11:17:38 -050013PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],,\
14 AC_MSG_ERROR(["Requires openbmc/phosphor-dbus-interfaces package."]))
15PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,
16 AC_MSG_ERROR(["Requires openbmc/sdbusplus package."]))
17PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],,\
18 AC_MSG_ERROR(["Requires openbmc/phosphor-logging package."]))
19
Matt Spinlerc1d65772018-03-27 10:15:32 -050020# Checks for typedefs, structures, and compiler characteristics.
21AX_CXX_COMPILE_STDCXX_14([noext])
22AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
23
24LT_INIT
25
Matt Spinlere0017eb2018-03-27 11:17:38 -050026AC_DEFINE(LOGGING_PATH, "/xyz/openbmc_project/logging",
27 [The xyz log manager DBus object path])
28AC_DEFINE(LOGGING_IFACE, "xyz.openbmc_project.Logging.Entry",
29 [The xyz log entry interface])
Matt Spinler54bfa7e2018-03-27 11:28:59 -050030AC_DEFINE(LOGGING_BUSNAME, "xyz.openbmc_project.Logging",
31 [The xyz logging busname])
Matt Spinler57724a92018-03-27 11:31:59 -050032AC_DEFINE(IBM_LOGGING_BUSNAME, "com.ibm.Logging",
33 [The IBM log manager DBus busname to own])
Matt Spinlere0017eb2018-03-27 11:17:38 -050034
Matt Spinlerc1d65772018-03-27 10:15:32 -050035AC_CONFIG_FILES([Makefile])
36AC_OUTPUT