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."])) |
Matt Spinler | 84cd0a5 | 2017-08-04 08:53:30 -0500 | [diff] [blame] | 26 | # Check for sdbus++ |
| 27 | AC_PATH_PROG([SDBUSPLUSPLUS], [sdbus++]) |
| 28 | AS_IF([test "x$SDBUSPLUSPLUS" == "x"], |
| 29 | AC_MSG_ERROR(["Requires sdbus++"])) |
Matt Spinler | d82a5f4 | 2017-07-24 13:40:37 -0500 | [diff] [blame] | 30 | |
| 31 | # Checks for library functions. |
| 32 | LT_INIT # Required for systemd linking |
| 33 | |
| 34 | # Create configured output |
Matt Spinler | afb3913 | 2017-08-14 13:53:07 -0500 | [diff] [blame] | 35 | AC_CONFIG_FILES([Makefile power-sequencer/Makefile]) |
Matt Spinler | d82a5f4 | 2017-07-24 13:40:37 -0500 | [diff] [blame] | 36 | AC_OUTPUT |