X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vnet%2Fconfigure.ac;h=8f8b91f793c4c5a26e7469936ba94137ad8072c2;hb=bf741477013c9eb84c920a24bd850936a821d61b;hp=b46a67878366f99dc6f6138c721ad0cdcf363157;hpb=2126b35f5f1aef32415c82dffd5ec78571c2b968;p=vpp.git diff --git a/vnet/configure.ac b/vnet/configure.ac index b46a6787836..8f8b91f793c 100644 --- a/vnet/configure.ac +++ b/vnet/configure.ac @@ -1,7 +1,9 @@ AC_INIT(vnet, 1.1) +AC_CONFIG_AUX_DIR(config) +AC_CONFIG_HEADERS(config/config.h) LT_INIT AM_INIT_AUTOMAKE -AM_SILENT_RULES +AM_SILENT_RULES([yes]) AC_PROG_CC AM_PROG_CC_C_O @@ -32,6 +34,11 @@ AC_ARG_WITH(ipv6sr, [with_ipv6sr=0], [with_ipv6sr=1]) +AC_ARG_ENABLE(tests, + AC_HELP_STRING([--enable-tests], [Build unit tests]), + [enable_tests=1], + [enable_tests=0]) + AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1") AC_SUBST(DPDK,[-DDPDK=${with_dpdk}]) @@ -47,4 +54,6 @@ AC_SUBST(VCGN,[-DVCGN=${with_vcgn}]) AM_CONDITIONAL(WITH_IPV6SR, test "$with_ipv6sr" = "1") AC_SUBST(IPV6SR,[-DIPV6SR=${with_ipv6sr}]) +AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "1") + AC_OUTPUT([Makefile])