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 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 35 | AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1") |
| 36 | AC_SUBST(DPDK,[-DDPDK=${with_dpdk}]) |
| 37 | |
| 38 | AM_CONDITIONAL(WITH_VIRL, test "$with_virl" = "1") |
| 39 | AC_SUBST(VIRL,[-DVIRL=${with_virl}]) |
| 40 | |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 41 | AM_CONDITIONAL(WITH_IPSEC, test "$with_ipsec" = "1") |
| 42 | AC_SUBST(IPSEC,[-DIPSEC=${with_ipsec}]) |
| 43 | |
| 44 | AM_CONDITIONAL(WITH_VCGN, test "$with_vcgn" = "1") |
| 45 | AC_SUBST(VCGN,[-DVCGN=${with_vcgn}]) |
| 46 | |
| 47 | AM_CONDITIONAL(WITH_IPV6SR, test "$with_ipv6sr" = "1") |
| 48 | AC_SUBST(IPV6SR,[-DIPV6SR=${with_ipv6sr}]) |
| 49 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 50 | AC_OUTPUT([Makefile]) |