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 # Please DO NOT, UNDER ANY CIRCUMSTANCES enable or disable
35 # plugins by "clever" manipulation of the arguments to AC_ARG_ENABLE
37 # Instead, please configure the default set of plugins in
38 # .../build-data/platforms/<platform>.mk, by adding --enable-XXX-plugin
39 # stanzas to plugins_configure_args_<platform>
41 # The following per-plugin boilerplate is begging for an additional
42 # macro, but the first 10 tries at making one didn't work. Another day.
47 AC_ARG_ENABLE(sample_plugin,
48 AC_HELP_STRING([--enable-sample-plugin], [Build sample plugin]),
49 [enable_sample_plugin=1],
50 [enable_sample_plugin=0])
52 if test "x$enable_sample_plugin" = x1; then
53 AC_CONFIG_SUBDIRS([sample-plugin])
56 AM_CONDITIONAL(ENABLE_SAMPLE_PLUGIN, test "$enable_sample_plugin" = "1")
61 AC_ARG_ENABLE(sixrd_plugin,
62 AC_HELP_STRING([--enable-sixrd-plugin], [Build sixrd plugin]),
63 [enable_sixrd_plugin=1],
64 [enable_sixrd_plugin=0])
66 if test "x$enable_sixrd_plugin" = x1; then
67 AC_CONFIG_SUBDIRS([sixrd-plugin])
70 AM_CONDITIONAL(ENABLE_SIXRD_PLUGIN, test "$enable_sixrd_plugin" = "1")
75 AC_ARG_ENABLE(ioam_plugin,
76 AC_HELP_STRING([--enable-ioam-plugin], [Build ioam plugin]),
77 [enable_ioam_plugin=1],
78 [enable_ioam_plugin=0])
80 if test "x$enable_ioam_plugin" = x1; then
81 AC_CONFIG_SUBDIRS([ioam-plugin])
84 AM_CONDITIONAL(ENABLE_IOAM_PLUGIN, test "$enable_ioam_plugin" = "1")
89 AC_ARG_ENABLE(vcgn_plugin,
90 AC_HELP_STRING([--enable-vcgn-plugin], [Build vcgn plugin]),
91 [enable_vcgn_plugin=1],
92 [enable_vcgn_plugin=0])
94 if test "x$enable_vcgn_plugin" = x1; then
95 AC_CONFIG_SUBDIRS([vcgn-plugin])
98 AM_CONDITIONAL(ENABLE_VCGN_PLUGIN, test "$enable_vcgn_plugin" = "1")
103 AC_ARG_ENABLE(snat_plugin,
104 AC_HELP_STRING([--enable-snat-plugin], [Build snat plugin]),
105 [enable_snat_plugin=1],
106 [enable_snat_plugin=0])
108 if test "x$enable_snat_plugin" = x1; then
109 AC_CONFIG_SUBDIRS([snat-plugin])
112 AM_CONDITIONAL(ENABLE_SNAT_PLUGIN, test "$enable_snat_plugin" = "1")
115 AC_OUTPUT([Makefile])