1 AC_INIT(core_plugins, 1.0)
10 AC_HELP_STRING([--enable-tests], [Build unit tests]),
14 AC_ARG_WITH(plugin-toolkit,
15 AC_HELP_STRING([--with-plugin-toolkit],
16 [build using the vpp toolkit]),
17 [with_plugin_toolkit=${prefix}/include],
18 [with_plugin_toolkit=.])
21 AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]),
25 AC_SUBST(TOOLKIT_INCLUDE,[${with_plugin_toolkit}])
26 AM_CONDITIONAL(WITH_PLUGIN_TOOLKIT, test "$with_plugin_toolkit" != ".")
27 AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "1")
29 AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1")
30 AC_SUBST(DPDK,["-DDPDK=${with_dpdk}"])
34 AC_ARG_ENABLE($1_plugin,
35 AC_HELP_STRING([--enable-$1-plugin], [Build $1 plugin]),
36 [enable_the_plugin=1],
37 [enable_the_plugin=0])
38 if test "x$enable_the_plugin" = x1; then
39 AC_CONFIG_SUBDIRS($1-plugin)
41 AM_CONDITIONAL(ENABLE_$1_PLUGIN, test "$enable_the_plugin" = "1")
44 # To add a new plugin subdirectory:
46 # add PLUGIN(new) below, and
47 # add the following to Makefile.am:
49 # if ENABLE_new_PLUGIN
50 # SUBDIRS += new-plugin