Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 1 | AC_PREREQ([2.69]) |
| 2 | AC_INIT([openpower-pnor-code-mgmt], [1.0], [https://github.com/openbmc/openpower-pnor-code-mgmt/issues]) |
| 3 | AC_LANG([C++]) |
| 4 | AC_CONFIG_HEADERS([config.h]) |
| 5 | AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) |
| 6 | AM_SILENT_RULES([yes]) |
| 7 | |
| 8 | # Checks for programs |
| 9 | AC_PROG_CXX |
| 10 | AC_PROG_INSTALL #Checks/sets the install variable to be used |
| 11 | AC_PROG_MAKE_SET |
| 12 | |
| 13 | # Check for libraries |
| 14 | PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],,\ |
| 15 | AC_MSG_ERROR(["Requires phosphor-dbus-interfaces package."])) |
| 16 | PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],, |
| 17 | AC_MSG_ERROR(["Requires sdbusplus package."])) |
| 18 | |
| 19 | # Checks for library functions |
| 20 | LT_INIT # Required for systemd linking |
| 21 | |
| 22 | # Checks for typedefs, structures, and compiler characteristics. |
| 23 | AX_CXX_COMPILE_STDCXX_14([noext]) |
| 24 | AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS]) |
| 25 | |
| 26 | AC_ARG_VAR(VERSION_BUSNAME, [The Dbus busname to own]) |
| 27 | AS_IF([test "x$VERSION_BUSNAME" == "x"], |
| 28 | [VERSION_BUSNAME="org.open_power.Software.Host.Version"]) |
| 29 | AC_DEFINE_UNQUOTED([VERSION_BUSNAME], ["$VERSION_BUSNAME"], [The DBus busname to own]) |
| 30 | |
| 31 | AC_ARG_VAR(SOFTWARE_OBJPATH, [The software manager Dbus root]) |
| 32 | AS_IF([test "x$SOFTWARE_OBJPATH" == "x"], [SOFTWARE_OBJPATH="/xyz/openbmc_project/software"]) |
| 33 | AC_DEFINE_UNQUOTED([SOFTWARE_OBJPATH], ["$SOFTWARE_OBJPATH"], [The software manager Dbus root]) |
| 34 | |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame^] | 35 | AC_DEFINE(BUSNAME_UPDATER, "org.open_power.Software.Host.Updater", |
| 36 | [The item updater DBus busname to own.]) |
| 37 | |
Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 38 | AC_CONFIG_FILES([Makefile]) |
| 39 | AC_OUTPUT |
| 40 | |