blob: 6a5281b09866523bdcb081c9bbfb893cd33f9707 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001AC_INIT(vnet, 1.1)
Florin Corasa991e502016-04-13 00:47:14 +02002AC_CONFIG_AUX_DIR(config)
3AC_CONFIG_HEADERS(config/config.h)
Dave Barach2126b352016-02-10 08:42:59 -05004LT_INIT
Ed Warnickecb9cada2015-12-08 15:45:58 -07005AM_INIT_AUTOMAKE
Damjan Marion6b1d7c52016-04-26 18:19:47 +02006AM_SILENT_RULES([yes])
Ed Warnickecb9cada2015-12-08 15:45:58 -07007
8AC_PROG_CC
Ed Warnickecb9cada2015-12-08 15:45:58 -07009
10AC_ARG_WITH(dpdk,
Padraig Connolly999bbc42016-11-15 09:35:50 +000011 AC_HELP_STRING([--with-dpdk],[Use DPDK]),
Ed Warnickecb9cada2015-12-08 15:45:58 -070012 [with_dpdk=1],
13 [with_dpdk=0])
14
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +000015AC_ARG_WITH(dpdk_crypto,
16 AC_HELP_STRING([--with-dpdk-crypto],[Use DPDK cryptodev]),
17 [with_dpdk_crypto=1],
18 [with_dpdk_crypto=0])
19
Dave Barach61efa142016-01-22 08:23:09 -050020AC_ARG_WITH(ipsec,
21 AC_HELP_STRING([--without-ipsec],[Disable ipsec]),
22 [with_ipsec=0],
23 [with_ipsec=1])
24
Dave Barach61efa142016-01-22 08:23:09 -050025AC_ARG_WITH(ipv6sr,
26 AC_HELP_STRING([--without-ipv6sr],[Disable ipv6sr]),
27 [with_ipv6sr=0],
28 [with_ipv6sr=1])
29
Filip Tehlar254b0362016-04-07 10:04:34 +020030AC_ARG_ENABLE(tests,
31 AC_HELP_STRING([--enable-tests], [Build unit tests]),
32 [enable_tests=1],
33 [enable_tests=0])
34
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +000035AM_CONDITIONAL(WITH_DPDK_CRYPTO, test "$with_dpdk_crypto" = "1")
36AC_SUBST(DPDK_CRYPTO,[-DDPDK_CRYPTO=${with_dpdk_crypto}])
37
Ed Warnickecb9cada2015-12-08 15:45:58 -070038AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1")
39AC_SUBST(DPDK,[-DDPDK=${with_dpdk}])
40
Dave Barach61efa142016-01-22 08:23:09 -050041AM_CONDITIONAL(WITH_IPSEC, test "$with_ipsec" = "1")
42AC_SUBST(IPSEC,[-DIPSEC=${with_ipsec}])
43
Dave Barach61efa142016-01-22 08:23:09 -050044AM_CONDITIONAL(WITH_IPV6SR, test "$with_ipv6sr" = "1")
45AC_SUBST(IPV6SR,[-DIPV6SR=${with_ipv6sr}])
46
Filip Tehlar254b0362016-04-07 10:04:34 +020047AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "1")
48
Ed Warnickecb9cada2015-12-08 15:45:58 -070049AC_OUTPUT([Makefile])