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 | |
Ratan Gupta | aab308d | 2017-02-11 07:50:35 +0530 | [diff] [blame] | 13 | LT_INIT |
| 14 | |
Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 15 | # Checks for libraries. |
| 16 | PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221]) |
| 17 | |
| 18 | # Checks for header files. |
| 19 | AC_CHECK_HEADER(systemd/sd-bus.h, ,[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd developement package required])]) |
| 20 | # Checks for typedefs, structures, and compiler characteristics. |
| 21 | |
Ratan Gupta | ead7a3c | 2017-01-05 15:45:09 +0530 | [diff] [blame] | 22 | AC_ARG_VAR(SERVICE_DIR, [Location of service files.]) |
| 23 | AS_IF([test "x$SERVICE_DIR" == "x"], [SERVICE_DIR="/etc/slp/services/"]) |
| 24 | AC_DEFINE_UNQUOTED([SERVICE_DIR], ["$SERVICE_DIR"], [Location of service files.]) |
Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 25 | AC_CONFIG_FILES([Makefile]) |
| 26 | AC_OUTPUT |