2016-06-26 10:42:08 -04:00
|
|
|
AC_INIT(snat_plugin, 1.0)
|
|
|
|
AM_INIT_AUTOMAKE
|
2016-07-02 10:34:55 -04:00
|
|
|
AM_SILENT_RULES([yes])
|
2016-06-26 10:42:08 -04:00
|
|
|
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AM_PROG_AS
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
|
|
|
|
AC_ARG_WITH(dpdk,
|
|
|
|
AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]),
|
|
|
|
[with_dpdk=1],
|
|
|
|
[with_dpdk=0])
|
|
|
|
|
|
|
|
AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1")
|
|
|
|
AC_SUBST(DPDK,["-DDPDK=${with_dpdk}"])
|
|
|
|
|
|
|
|
AC_ARG_WITH(plugin-toolkit,
|
|
|
|
AC_HELP_STRING([--with-plugin-toolkit],
|
|
|
|
[build using the vpp toolkit]),
|
|
|
|
[with_plugin_toolkit=${prefix}/include],
|
|
|
|
[with_plugin_toolkit=.])
|
|
|
|
|
|
|
|
AC_SUBST(TOOLKIT_INCLUDE,[${with_plugin_toolkit}])
|
|
|
|
AM_CONDITIONAL(WITH_PLUGIN_TOOLKIT, test "$with_plugin_toolkit" != ".")
|
|
|
|
|
|
|
|
AC_OUTPUT([Makefile])
|