Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame^] | 1 | AC_PREREQ([2.69]) |
| 2 | AC_INIT([phosphor-logging], [1.0], [https://github.com/openbmc/phosphor-logging/issues]) |
| 3 | |
| 4 | AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) |
| 5 | AM_PROG_AR() |
| 6 | AM_SILENT_RULES([yes]) |
| 7 | |
| 8 | # Checks for programs |
| 9 | AC_PROG_CXX |
| 10 | AX_CXX_COMPILE_STDCXX_14([noext]) |
| 11 | AX_APPEND_COMPILE_FLAGS([-fpic -Wall -Werror], [CXXFLAGS]) |
| 12 | AC_PROG_INSTALL #Checks/sets the install variable to be used |
| 13 | AC_PROG_MAKE_SET |
| 14 | |
| 15 | # Surpress the --with-libtool-sysroot error |
| 16 | LT_INIT |
| 17 | |
| 18 | PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221]) |
| 19 | |
| 20 | AC_CHECK_HEADER(systemd/sd-journal.h, ,[AC_MSG_ERROR([Could not find \ |
| 21 | systemd/sd-journal.h...systemd developement package required])]) |
| 22 | |
| 23 | AC_CONFIG_HEADERS([config.h]) |
| 24 | AC_CONFIG_FILES([Makefile]) |
| 25 | AC_OUTPUT |