blob: d51ad37a73e568ac15ae5dd1fa23428ac3061f8e [file] [log] [blame]
Gunnar Mills9df13162017-03-08 15:00:08 -06001AC_PREREQ([2.69])
2AC_INIT([openpower-pnor-code-mgmt], [1.0], [https://github.com/openbmc/openpower-pnor-code-mgmt/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 #Checks/sets the install variable to be used
11AC_PROG_MAKE_SET
12
13# Check for libraries
14PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],,\
15 AC_MSG_ERROR(["Requires phosphor-dbus-interfaces package."]))
16PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,
17 AC_MSG_ERROR(["Requires sdbusplus package."]))
18
19# Checks for library functions
20LT_INIT # Required for systemd linking
21
22# Checks for typedefs, structures, and compiler characteristics.
23AX_CXX_COMPILE_STDCXX_14([noext])
24AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
25
26AC_ARG_VAR(VERSION_BUSNAME, [The Dbus busname to own])
27AS_IF([test "x$VERSION_BUSNAME" == "x"],
28 [VERSION_BUSNAME="org.open_power.Software.Host.Version"])
29AC_DEFINE_UNQUOTED([VERSION_BUSNAME], ["$VERSION_BUSNAME"], [The DBus busname to own])
30
31AC_ARG_VAR(SOFTWARE_OBJPATH, [The software manager Dbus root])
32AS_IF([test "x$SOFTWARE_OBJPATH" == "x"], [SOFTWARE_OBJPATH="/xyz/openbmc_project/software"])
33AC_DEFINE_UNQUOTED([SOFTWARE_OBJPATH], ["$SOFTWARE_OBJPATH"], [The software manager Dbus root])
34
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050035AC_DEFINE(BUSNAME_UPDATER, "org.open_power.Software.Host.Updater",
36 [The item updater DBus busname to own.])
37
Gunnar Mills9df13162017-03-08 15:00:08 -060038AC_CONFIG_FILES([Makefile])
39AC_OUTPUT
40