Vishwanatha Subbanna | 8a89b53 | 2017-09-06 11:29:37 +0530 | [diff] [blame] | 1 | # Initialization |
| 2 | AC_PREREQ([2.69]) |
| 3 | AC_INIT([phosphor-user-manager], [1.0], [https://github.com/openbmc/phosphor-user-manager/issues]) |
| 4 | AC_LANG([C++]) |
| 5 | AC_CONFIG_HEADERS([config.h]) |
| 6 | AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) |
| 7 | AM_SILENT_RULES([yes]) |
| 8 | |
| 9 | # Checks for programs. |
| 10 | AC_PROG_CXX |
| 11 | AC_PROG_INSTALL |
| 12 | AC_PROG_MAKE_SET |
| 13 | |
Vishwanatha Subbanna | d20225f | 2017-09-06 11:36:04 +0530 | [diff] [blame] | 14 | # Checks for libraries. |
| 15 | PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],, [AC_MSG_ERROR([Could not find sdbusplus...openbmc/sdbusplus package required])]) |
| 16 | PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],, [AC_MSG_ERROR([Could not find phosphor-dbus-interfaces...openbmc/phosphor-dbus-interfaces package required])]) |
| 17 | |
| 18 | AC_ARG_VAR(USER_MANAGER_BUSNAME, [The Dbus busname to own]) |
| 19 | AS_IF([test "x$USER_MANAGER_BUSNAME" == "x"], [USER_MANAGER_BUSNAME="xyz.openbmc_project.User.Manager"]) |
| 20 | AC_DEFINE_UNQUOTED([USER_MANAGER_BUSNAME], ["$USER_MANAGER_BUSNAME"], [The DBus busname to own]) |
Vishwanatha Subbanna | 8a89b53 | 2017-09-06 11:29:37 +0530 | [diff] [blame] | 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 | # For libtools |
| 27 | LT_INIT |
| 28 | |
| 29 | # Create configured output |
| 30 | AC_CONFIG_FILES([Makefile]) |
| 31 | AC_OUTPUT |