From b88aba2e5d98699cd19b6634b1183a3d839ec2a5 Mon Sep 17 00:00:00 2001 From: "Mytnyk, VolodymyrX" Date: Wed, 30 Nov 2016 14:12:49 +0000 Subject: [PATCH] dpdkstats: fix detection of local libdpdk - Fix typo. Change-Id: I7cfb6dff4e1c2728650cd1d44aaaa36169880809 Signed-off-by: Mytnyk, VolodymyrX --- configure.ac | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 7f0dd5ca..993e319e 100644 --- a/configure.ac +++ b/configure.ac @@ -2606,8 +2606,6 @@ fi # }}} # --with-libdpdk {{{ -LIBDPDK_CPPFLAGS="-I/usr/include/dpdk" -LIBDPDK_LDFLAGS="" AC_ARG_VAR([LIBDPDK_CPPFLAGS], [Preprocessor flags for libdpdk]) AC_ARG_VAR([LIBDPDK_LDFLAGS], [Linker flags for libdpdk]) @@ -2615,6 +2613,10 @@ AC_ARG_WITH([libdpdk], [AS_HELP_STRING([--without-libdpdk], [Disable libdpdk.])] if test "x$with_libdpdk" != "xno" then + if test "x$LIBDPDK_CPPFLAGS" = "x" + then + LIBDPDK_CPPFLAGS="-I/usr/include/dpdk" + fi SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$LIBDPDK_CPPFLAGS $CPPFLAGS" AC_CHECK_HEADERS([rte_config.h], @@ -2629,7 +2631,7 @@ then SAVE_LDFLAGS="$LDFLAGS" LDFLAGS="$LIBDPDK_LDFLAGS $LDFLAGS" AC_CHECK_LIB([dpdk], [rte_eal_init], - [with_libdpkd="yes"], + [with_libdpdk="yes"], [with_libdpdk="no (symbol 'rte_eal_init' not found)"] ) LDFLAGS="$SAVE_LDFLAGS" @@ -6332,7 +6334,7 @@ then plugin_xencpu="yes" fi -if test "x$with_libdpkd" = "xyes" +if test "x$with_libdpdk" = "xyes" then plugin_dpdkstat="yes" fi -- 2.30.2