blob: c6bb3fe12e28bd7e28ee1f4a3656f5a4f07e7b5c [file] [log] [blame]
Vishwanatha Subbanna8a89b532017-09-06 11:29:37 +05301# Initialization
2AC_PREREQ([2.69])
3AC_INIT([phosphor-user-manager], [1.0], [https://github.com/openbmc/phosphor-user-manager/issues])
4AC_LANG([C++])
5AC_CONFIG_HEADERS([config.h])
6AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
7AM_SILENT_RULES([yes])
8
9# Checks for programs.
10AC_PROG_CXX
11AC_PROG_INSTALL
12AC_PROG_MAKE_SET
13
Vishwanatha Subbannad20225f2017-09-06 11:36:04 +053014# Checks for libraries.
15PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],, [AC_MSG_ERROR([Could not find sdbusplus...openbmc/sdbusplus package required])])
16PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],, [AC_MSG_ERROR([Could not find phosphor-dbus-interfaces...openbmc/phosphor-dbus-interfaces package required])])
Vishwanatha Subbanna070a3e42017-09-06 11:40:45 +053017PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],, [AC_MSG_ERROR([Could not find phosphor-logging...openbmc/phosphor-logging package required])])
Vishwanatha Subbannad20225f2017-09-06 11:36:04 +053018
19AC_ARG_VAR(USER_MANAGER_BUSNAME, [The Dbus busname to own])
20AS_IF([test "x$USER_MANAGER_BUSNAME" == "x"], [USER_MANAGER_BUSNAME="xyz.openbmc_project.User.Manager"])
21AC_DEFINE_UNQUOTED([USER_MANAGER_BUSNAME], ["$USER_MANAGER_BUSNAME"], [The DBus busname to own])
Vishwanatha Subbanna8a89b532017-09-06 11:29:37 +053022
Vishwanatha Subbanna070a3e42017-09-06 11:40:45 +053023# Default crypt algorithm to choose if one not found in shadow file
24# Per crypt(3), 1 is for MD5
25AC_ARG_VAR(DEFAULT_CRYPT_ALGO, [The default crypt algorithm if one not found in shadow])
26AS_IF([test "x$DEFAULT_CRYPT_ALGO" == "x"], [DEFAULT_CRYPT_ALGO="1"])
27AC_DEFINE_UNQUOTED([DEFAULT_CRYPT_ALGO], ["$DEFAULT_CRYPT_ALGO"], [The default crypt algorithm if one not found in shadow])
28
Vishwanatha Subbanna8a89b532017-09-06 11:29:37 +053029# Checks for typedefs, structures, and compiler characteristics.
30AX_CXX_COMPILE_STDCXX_14([noext])
31AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
32
33# For libtools
34LT_INIT
35
36# Create configured output
37AC_CONFIG_FILES([Makefile])
38AC_OUTPUT