@@ -218,6 +218,35 @@ AC_DEFUN([OVS_CHECK_DPDK], [
AM_CONDITIONAL([DPDK_NETDEV], test -n "$RTE_SDK")
])
+dnl OVS_CHECK_ODP_DEBUG
+dnl
+dnl Configure ODP debug flag
+AC_DEFUN([OVS_CHECK_ODP_DEBUG], [
+ AC_MSG_CHECKING([for ODP Debug])
+
+ ODP_DEBUG=0
+
+ AC_ARG_WITH([odp-debug],
+ [AC_HELP_STRING([--with-odp-debug=[@<:@yes | no@:>@]],
+ [ODP debug flag; default is false])],
+ [
+ case "$withval" in
+ "" | n | no)
+ ODP_DEBUG=0
+ AC_MSG_RESULT([no])
+ ;;
+ y | ye | yes)
+ ODP_DEBUG=1
+ AC_MSG_RESULT([yes])
+ ;;
+ *)
+ AC_MSG_ERROR([invalid config option])
+ ;;
+ esac
+ ]
+ )
+])
+
dnl OVS_CHECK_ODP_PLATFORM
dnl
dnl Configure ODP platform
@@ -278,7 +307,7 @@ AC_DEFUN([OVS_CHECK_ODP], [
AC_SUBST([ODP_PLATFORM_INCLUDE])
AC_SUBST([ODP_PLATFORM_INCLUDE_API])
AC_SUBST([ODP_LIB_DIR])
- CFLAGS="$CFLAGS -I$ODP_PLATFORM_INCLUDE -I$ODP_LINUX_GENERIC_INCLUDE -I$ODP_INCLUDE"
+ CFLAGS="$CFLAGS -I$ODP_PLATFORM_INCLUDE -I$ODP_LINUX_GENERIC_INCLUDE -I$ODP_INCLUDE -DODP_DEBUG_PRINT=$ODP_DEBUG"
LDFLAGS="$LDFLAGS $SSL_LDFLAGS -L$ODP_LIB_DIR"
;;
esac
@@ -120,6 +120,7 @@ AC_ARG_VAR(KARCH, [Kernel Architecture String])
AC_SUBST(KARCH)
OVS_CHECK_LINUX
OVS_CHECK_DPDK
+OVS_CHECK_ODP_DEBUG
OVS_CHECK_ODP_PLATFORM
OVS_CHECK_ODP
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org> --- acinclude.m4 | 31 ++++++++++++++++++++++++++++++- configure.ac | 1 + 2 files changed, 31 insertions(+), 1 deletion(-)