blob: 9afae520159424a26f4719908f63240728a6d07c [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
9AM_PROG_CC_C_O
Ed Warnickecb9cada2015-12-08 15:45:58 -070010AM_PROG_AS
11
12AC_ARG_WITH(dpdk,
13 AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]),
14 [with_dpdk=1],
15 [with_dpdk=0])
16
17AC_ARG_WITH(virl,
18 AC_HELP_STRING([--with-virl],[Compile for virl citizenship]),
19 [with_virl=1],
20 [with_virl=0])
21
Dave Barach61efa142016-01-22 08:23:09 -050022AC_ARG_WITH(ipsec,
23 AC_HELP_STRING([--without-ipsec],[Disable ipsec]),
24 [with_ipsec=0],
25 [with_ipsec=1])
26
Dave Barach61efa142016-01-22 08:23:09 -050027AC_ARG_WITH(ipv6sr,
28 AC_HELP_STRING([--without-ipv6sr],[Disable ipv6sr]),
29 [with_ipv6sr=0],
30 [with_ipv6sr=1])
31
Filip Tehlar254b0362016-04-07 10:04:34 +020032AC_ARG_ENABLE(tests,
33 AC_HELP_STRING([--enable-tests], [Build unit tests]),
34 [enable_tests=1],
35 [enable_tests=0])
36
Ed Warnickecb9cada2015-12-08 15:45:58 -070037AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1")
38AC_SUBST(DPDK,[-DDPDK=${with_dpdk}])
39
40AM_CONDITIONAL(WITH_VIRL, test "$with_virl" = "1")
41AC_SUBST(VIRL,[-DVIRL=${with_virl}])
42
Dave Barach61efa142016-01-22 08:23:09 -050043AM_CONDITIONAL(WITH_IPSEC, test "$with_ipsec" = "1")
44AC_SUBST(IPSEC,[-DIPSEC=${with_ipsec}])
45
Dave Barach61efa142016-01-22 08:23:09 -050046AM_CONDITIONAL(WITH_IPV6SR, test "$with_ipv6sr" = "1")
47AC_SUBST(IPV6SR,[-DIPV6SR=${with_ipv6sr}])
48
Filip Tehlar254b0362016-04-07 10:04:34 +020049AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "1")
50
Ed Warnickecb9cada2015-12-08 15:45:58 -070051AC_OUTPUT([Makefile])