Matthew Barth | ae0e96c | 2017-01-20 13:54:59 -0600 | [diff] [blame] | 1 | # Initialization |
| 2 | AC_PREREQ([2.69]) |
| 3 | AC_INIT([phosphor-fan-presence], [1.0], |
| 4 | [https://github.com/openbmc/phosphor-fan-presence/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 | # Checks for libraries. |
Matthew Barth | 293477d | 2017-02-17 15:39:36 -0600 | [diff] [blame] | 21 | PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus], , |
| 22 | [AC_MSG_ERROR([The openbmc/sdbusplus package is required])]) |
| 23 | |
| 24 | # Checks for header files. |
Matthew Barth | ae0e96c | 2017-01-20 13:54:59 -0600 | [diff] [blame] | 25 | |
| 26 | # Checks for library functions. |
| 27 | LT_INIT # Required for systemd linking |
| 28 | |
| 29 | # Create configured output |
| 30 | AC_CONFIG_FILES([Makefile]) |
| 31 | AC_OUTPUT |