Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | AC_INIT(vnet, 1.1) |
Dave Barach | 2126b35 | 2016-02-10 08:42:59 -0500 | [diff] [blame] | 2 | LT_INIT |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 3 | AM_INIT_AUTOMAKE |
| 4 | AM_SILENT_RULES |
| 5 | |
| 6 | AC_PROG_CC |
| 7 | AM_PROG_CC_C_O |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 8 | AM_PROG_AS |
| 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 | |
| 15 | AC_ARG_WITH(virl, |
| 16 | AC_HELP_STRING([--with-virl],[Compile for virl citizenship]), |
| 17 | [with_virl=1], |
| 18 | [with_virl=0]) |
| 19 | |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 20 | AC_ARG_WITH(ipsec, |
| 21 | AC_HELP_STRING([--without-ipsec],[Disable ipsec]), |
| 22 | [with_ipsec=0], |
| 23 | [with_ipsec=1]) |
| 24 | |
| 25 | AC_ARG_WITH(vcgn, |
| 26 | AC_HELP_STRING([--without-vcgn],[Disable vcgn]), |
| 27 | [with_vcgn=0], |
| 28 | [with_vcgn=1]) |
| 29 | |
| 30 | AC_ARG_WITH(ipv6sr, |
| 31 | AC_HELP_STRING([--without-ipv6sr],[Disable ipv6sr]), |
| 32 | [with_ipv6sr=0], |
| 33 | [with_ipv6sr=1]) |
| 34 | |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame^] | 35 | AC_ARG_ENABLE(tests, |
| 36 | AC_HELP_STRING([--enable-tests], [Build unit tests]), |
| 37 | [enable_tests=1], |
| 38 | [enable_tests=0]) |
| 39 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 40 | AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1") |
| 41 | AC_SUBST(DPDK,[-DDPDK=${with_dpdk}]) |
| 42 | |
| 43 | AM_CONDITIONAL(WITH_VIRL, test "$with_virl" = "1") |
| 44 | AC_SUBST(VIRL,[-DVIRL=${with_virl}]) |
| 45 | |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 46 | AM_CONDITIONAL(WITH_IPSEC, test "$with_ipsec" = "1") |
| 47 | AC_SUBST(IPSEC,[-DIPSEC=${with_ipsec}]) |
| 48 | |
| 49 | AM_CONDITIONAL(WITH_VCGN, test "$with_vcgn" = "1") |
| 50 | AC_SUBST(VCGN,[-DVCGN=${with_vcgn}]) |
| 51 | |
| 52 | AM_CONDITIONAL(WITH_IPV6SR, test "$with_ipv6sr" = "1") |
| 53 | AC_SUBST(IPV6SR,[-DIPV6SR=${with_ipv6sr}]) |
| 54 | |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame^] | 55 | AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "1") |
| 56 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 57 | AC_OUTPUT([Makefile]) |