Matt Spinler | d82a5f4 | 2017-07-24 13:40:37 -0500 | [diff] [blame] | 1 | # Initialization |
| 2 | AC_PREREQ([2.69]) |
| 3 | AC_INIT([witherspoon-pfault-analysis], [1.0], |
| 4 | [https://github.com/openbmc/witherspoon-pfault-analysis/issues]) |
| 5 | AC_LANG([C++]) |
| 6 | AC_CONFIG_HEADERS([config.h]) |
| 7 | AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) |
| 8 | AM_SILENT_RULES([yes]) |
| 9 | |
| 10 | # Checks for programs. |
| 11 | AC_PROG_CXX |
| 12 | AM_PROG_AR |
| 13 | AC_PROG_INSTALL |
| 14 | AC_PROG_MAKE_SET |
| 15 | |
| 16 | # Checks for typedefs, structures, and compiler characteristics. |
| 17 | AX_CXX_COMPILE_STDCXX_14([noext]) |
| 18 | AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS]) |
| 19 | |
| 20 | PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],, |
| 21 | AC_MSG_ERROR(["Requires sdbusplus package."])) |
| 22 | PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],,\ |
| 23 | AC_MSG_ERROR(["Requires phosphor-logging package."])) |
| 24 | PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],,\ |
| 25 | AC_MSG_ERROR(["Requires phosphor-dbus-interfaces package."])) |
| 26 | |
| 27 | # Checks for library functions. |
| 28 | LT_INIT # Required for systemd linking |
| 29 | |
| 30 | # Create configured output |
| 31 | AC_CONFIG_FILES([Makefile]) |
| 32 | AC_OUTPUT |