diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2016-08-09 13:23:08 +0200 |
---|---|---|
committer | Maros Marsalek <mmarsale@cisco.com> | 2016-10-10 09:56:56 +0200 |
commit | 4c42e913c4f9723d27f6501f6e1b6a13b9c2f9f8 (patch) | |
tree | da1bcfcab7b07b7b723af6e16820736d9934cdfb /plugins/snat-plugin/configure.ac | |
parent | cd8e318a7656c84ab1ff02090bf1616ca7513fdc (diff) |
HONEYCOMB-228 Snat plugin jvpp support
Change-Id: I5510a0ae3ecfeb5bd41c3a73e6e05465ebd96165
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'plugins/snat-plugin/configure.ac')
-rw-r--r-- | plugins/snat-plugin/configure.ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/snat-plugin/configure.ac b/plugins/snat-plugin/configure.ac index 9af139e4073..e7408b93850 100644 --- a/plugins/snat-plugin/configure.ac +++ b/plugins/snat-plugin/configure.ac @@ -1,4 +1,5 @@ AC_INIT(snat_plugin, 1.0) +AC_CONFIG_MACRO_DIR([../../vpp-api/java/m4]) AM_INIT_AUTOMAKE AM_SILENT_RULES([yes]) AC_PREFIX_DEFAULT([/usr]) @@ -6,6 +7,20 @@ AC_PREFIX_DEFAULT([/usr]) AC_PROG_LIBTOOL AC_PROG_CC +if test -f /usr/bin/lsb_release && test `lsb_release -si` == "Ubuntu" && test `lsb_release -sr` == "14.04" && test -d /usr/lib/jvm/java-8-openjdk-amd64/ ; then + JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ + JAVAC=${JAVA_HOME}/bin/javac + PATH=${JAVA_HOME}/bin/:${PATH} + break +fi + +AX_CHECK_JAVA_HOME +AX_PROG_JAVAC +AX_PROG_JAVAH +AX_PROG_JAR +AX_PROG_JAVADOC +AX_PROG_JAVA + AC_ARG_WITH(dpdk, AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]), [with_dpdk=1], |