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