blob: 9ae4681ba3af5d13a2b76def6c766010453b5a43 [file] [log] [blame]
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +08001# Initialization
2AC_PREREQ([2.69])
3AC_INIT([libmctp], 0.9, [https://github.com/openbmc/libmctp/issues])
4AC_CONFIG_HEADERS([config.h])
5AC_CONFIG_MACRO_DIRS([m4])
6AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
7AM_SILENT_RULES([yes])
8
9# Checks for programs.
10AC_PROG_CC
11AM_PROG_AR
12AC_PROG_INSTALL
13AC_PROG_MAKE_SET
14
15# libtool init
16LT_INIT
17
Jeremy Kerr80971f82019-08-29 09:57:58 +053018# pkg-config
19PKG_PROG_PKG_CONFIG
20PKG_INSTALLDIR
21
Jeremy Kerrc7e764a2019-05-28 16:49:03 +080022# Set defaults for standard library compiles. We may want to
23# AC_ARG_WITH these in the future.
24AC_DEFINE([MCTP_HAVE_SYSLOG], [1], [Define to enable syslog])
25AC_DEFINE([MCTP_HAVE_FILEIO], [1], [Define to enable filesystem functions])
Andrew Jeffery682232e2020-01-13 16:17:45 +103026AC_DEFINE([MCTP_HAVE_STDIO], [1], [Define to enable stdio functions])
Jeremy Kerrc7e764a2019-05-28 16:49:03 +080027AC_DEFINE([MCTP_DEFAULT_ALLOC], [1],
28 [Define to populate allocation functions to defaults (malloc/free)])
29
30# Enable all bindings. AC_ARG_ENABLE in future.
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080031AM_CONDITIONAL([LIBMCTP_BINDING_serial], [true])
32AM_CONDITIONAL([LIBMCTP_BINDING_astlpc], [true])
33
Jeremy Kerr80971f82019-08-29 09:57:58 +053034AC_CONFIG_FILES([Makefile libmctp.pc])
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080035AC_OUTPUT