blob: 9ebc80d2f188f2765700b6937bcb249143b164db [file] [log] [blame]
Patrick Venture38e8c6e2018-10-24 09:23:35 -07001# Initialization
2AC_PREREQ([2.69])
3AC_INIT([i2c-ipmi], [1.0], [https://www.github.com/google-ipmi-i2c/issues])
4AC_LANG([C++])
5AC_CONFIG_HEADERS([config.h])
Patrick Venture05111a82018-11-25 10:55:52 -08006AC_CONFIG_MACRO_DIRS([m4])
7AC_CONFIG_AUX_DIR([build-aux])
Patrick Venture38e8c6e2018-10-24 09:23:35 -07008AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
9AM_SILENT_RULES([yes])
10
11# Checks for programs.
12AC_PROG_CXX
13AM_PROG_AR
14AC_PROG_INSTALL
15AC_PROG_MAKE_SET
16
17# Checks for typedefs, structures, and compiler characteristics.
18AX_CXX_COMPILE_STDCXX_17([noext])
19AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
20
21# Checks for libraries.
22AC_CHECK_HEADER([host-ipmid], [AC_MSG_ERROR(["phosphor-host-ipmid required and not found."])])
23
24# Checks for library functions.
25LT_INIT # Required for systemd linking
26
27# Create configured output
28AC_CONFIG_FILES([Makefile])
29AC_OUTPUT