configure.ac (e750cbce8c3f31c4510ecffe9c5789b128bf6022) configure.ac (400766f94322a00981b012e714734cab0ed52e68)
1# Initialization
2AC_PREREQ([2.69])
3AC_INIT([libmctp], 0.11, [https://github.com/openbmc/libmctp/issues])
4AC_CONFIG_HEADERS([config.h])
5AC_CONFIG_MACRO_DIRS([m4])
6AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror -Wno-portability foreign dist-xz])
7AM_SILENT_RULES([yes])
8

--- 7 unchanged lines hidden (view full) ---

16LT_INIT
17
18AC_CHECK_HEADERS_ONCE([endian.h])
19AC_CHECK_HEADERS_ONCE([unistd.h fcntl.h])
20
21# pkg-config
22PKG_PROG_PKG_CONFIG
23PKG_INSTALLDIR
1# Initialization
2AC_PREREQ([2.69])
3AC_INIT([libmctp], 0.11, [https://github.com/openbmc/libmctp/issues])
4AC_CONFIG_HEADERS([config.h])
5AC_CONFIG_MACRO_DIRS([m4])
6AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror -Wno-portability foreign dist-xz])
7AM_SILENT_RULES([yes])
8

--- 7 unchanged lines hidden (view full) ---

16LT_INIT
17
18AC_CHECK_HEADERS_ONCE([endian.h])
19AC_CHECK_HEADERS_ONCE([unistd.h fcntl.h])
20
21# pkg-config
22PKG_PROG_PKG_CONFIG
23PKG_INSTALLDIR
24PKG_CHECK_MODULES(udev,
25 udev,
26 [PKG_CHECK_VAR(udevdir, udev, udevdir)],
27 [])
28
24
29AC_SUBST([udevrulesdir], [$udevdir/rules.d])
30
31AC_ARG_ENABLE([capture],
32 [AC_HELP_STRING([--enable-capture],
33 [Use libpcap to capture messages and packets])])
34AS_IF([test "x$enable_capture" = "xyes"],
35 [PKG_CHECK_MODULES(pcap, libpcap,
36 [AC_DEFINE([HAVE_PCAP], [1],
37 [Define to 1 if you have libpcap])],
38 [])],
39 [])
40AC_SUBST([pcap_CFLAGS])
41AC_SUBST([pcap_LIBS])
42AM_CONDITIONAL([HAVE_PCAP], [test "x$enable_capture" = "xyes"])
43
25AC_ARG_ENABLE([capture],
26 [AC_HELP_STRING([--enable-capture],
27 [Use libpcap to capture messages and packets])])
28AS_IF([test "x$enable_capture" = "xyes"],
29 [PKG_CHECK_MODULES(pcap, libpcap,
30 [AC_DEFINE([HAVE_PCAP], [1],
31 [Define to 1 if you have libpcap])],
32 [])],
33 [])
34AC_SUBST([pcap_CFLAGS])
35AC_SUBST([pcap_LIBS])
36AM_CONDITIONAL([HAVE_PCAP], [test "x$enable_capture" = "xyes"])
37
44AC_ARG_ENABLE([astlpc-raw-kcs],
45 [AS_HELP_STRING([--enable-astlpc-raw-kcs],
46 [Use udev rules to symlink raw-kcs device nodes for the astlpc binding])])
47AM_CONDITIONAL([LIBMCTP_UDEV_RAW_KCS], [test -n "$udevdir" -a "x$enable_astlpc_raw_kcs" = "xyes"])
48
49AC_ARG_WITH([systemdsystemunitdir],
50 [AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files])],
51 [],
52 [with_systemdsystemunitdir=auto]
53)
54AS_IF([test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"],
55 [def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
56 AS_IF([test "x$def_systemdsystemunitdir" = "x"],

--- 112 unchanged lines hidden (view full) ---

169 [AM_EXTRA_RECURSIVE_TARGETS([check-valgrind-]vgtool)])
170
171AX_CODE_COVERAGE
172m4_ifdef([_AX_CODE_COVERAGE_RULES],
173 [AM_CONDITIONAL(AUTOCONF_CODE_COVERAGE_2019_01_06, [true])],
174 [AM_CONDITIONAL(AUTOCONF_CODE_COVERAGE_2019_01_06, [false])])
175AX_ADD_AM_MACRO_STATIC([])
176
38AC_ARG_WITH([systemdsystemunitdir],
39 [AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files])],
40 [],
41 [with_systemdsystemunitdir=auto]
42)
43AS_IF([test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"],
44 [def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
45 AS_IF([test "x$def_systemdsystemunitdir" = "x"],

--- 112 unchanged lines hidden (view full) ---

158 [AM_EXTRA_RECURSIVE_TARGETS([check-valgrind-]vgtool)])
159
160AX_CODE_COVERAGE
161m4_ifdef([_AX_CODE_COVERAGE_RULES],
162 [AM_CONDITIONAL(AUTOCONF_CODE_COVERAGE_2019_01_06, [true])],
163 [AM_CONDITIONAL(AUTOCONF_CODE_COVERAGE_2019_01_06, [false])])
164AX_ADD_AM_MACRO_STATIC([])
165
177AC_CONFIG_FILES([Makefile libmctp.pc udev/rules.d/mctp0-raw-kcs3.rules
178 udev/rules.d/mctp0-raw-kcs4.rules])
166AC_CONFIG_FILES([Makefile libmctp.pc])
179AC_OUTPUT
167AC_OUTPUT