Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | AC_INIT(vnet, 1.1) |
Florin Coras | a991e50 | 2016-04-13 00:47:14 +0200 | [diff] [blame] | 2 | AC_CONFIG_AUX_DIR(config) |
| 3 | AC_CONFIG_HEADERS(config/config.h) |
Dave Barach | 2126b35 | 2016-02-10 08:42:59 -0500 | [diff] [blame] | 4 | LT_INIT |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 5 | AM_INIT_AUTOMAKE |
Damjan Marion | 6b1d7c5 | 2016-04-26 18:19:47 +0200 | [diff] [blame] | 6 | AM_SILENT_RULES([yes]) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 7 | |
| 8 | AC_PROG_CC |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 9 | |
| 10 | AC_ARG_WITH(dpdk, |
| 11 | AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]), |
| 12 | [with_dpdk=1], |
| 13 | [with_dpdk=0]) |
| 14 | |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 15 | AC_ARG_WITH(ipsec, |
| 16 | AC_HELP_STRING([--without-ipsec],[Disable ipsec]), |
| 17 | [with_ipsec=0], |
| 18 | [with_ipsec=1]) |
| 19 | |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 20 | AC_ARG_WITH(ipv6sr, |
| 21 | AC_HELP_STRING([--without-ipv6sr],[Disable ipv6sr]), |
| 22 | [with_ipv6sr=0], |
| 23 | [with_ipv6sr=1]) |
| 24 | |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 25 | AC_ARG_ENABLE(tests, |
| 26 | AC_HELP_STRING([--enable-tests], [Build unit tests]), |
| 27 | [enable_tests=1], |
| 28 | [enable_tests=0]) |
| 29 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 30 | AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1") |
| 31 | AC_SUBST(DPDK,[-DDPDK=${with_dpdk}]) |
| 32 | |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 33 | AM_CONDITIONAL(WITH_IPSEC, test "$with_ipsec" = "1") |
| 34 | AC_SUBST(IPSEC,[-DIPSEC=${with_ipsec}]) |
| 35 | |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 36 | AM_CONDITIONAL(WITH_IPV6SR, test "$with_ipv6sr" = "1") |
| 37 | AC_SUBST(IPV6SR,[-DIPV6SR=${with_ipv6sr}]) |
| 38 | |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 39 | AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "1") |
| 40 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 41 | AC_OUTPUT([Makefile]) |