Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 1 | # Initialization |
| 2 | AC_PREREQ([2.69]) |
| 3 | AC_INIT([slpd-lite], [1.0], [https://github.com/openbmc/slpd-lite/issues]) |
| 4 | AC_CONFIG_HEADERS([config.h]) |
| 5 | AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) |
Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 6 | # Checks for programs. |
| 7 | AC_PROG_CXX |
| 8 | AX_CXX_COMPILE_STDCXX_14([noext]) |
| 9 | AM_PROG_AR |
| 10 | AC_PROG_INSTALL |
| 11 | AC_PROG_MAKE_SET |
| 12 | |
| 13 | # Checks for libraries. |
| 14 | PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221]) |
| 15 | |
| 16 | # Checks for header files. |
| 17 | AC_CHECK_HEADER(systemd/sd-bus.h, ,[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd developement package required])]) |
| 18 | # Checks for typedefs, structures, and compiler characteristics. |
| 19 | |
Ratan Gupta | ead7a3c | 2017-01-05 15:45:09 +0530 | [diff] [blame] | 20 | AC_ARG_VAR(SERVICE_DIR, [Location of service files.]) |
| 21 | AS_IF([test "x$SERVICE_DIR" == "x"], [SERVICE_DIR="/etc/slp/services/"]) |
| 22 | AC_DEFINE_UNQUOTED([SERVICE_DIR], ["$SERVICE_DIR"], [Location of service files.]) |
Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 23 | AC_CONFIG_FILES([Makefile]) |
| 24 | AC_OUTPUT |