Code

dpdkstats: fix detection of local libdpdk
authorMytnyk, VolodymyrX <volodymyrx.mytnyk@intel.com>
Wed, 30 Nov 2016 14:12:49 +0000 (14:12 +0000)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 5 Dec 2016 18:48:30 +0000 (19:48 +0100)
- Fix typo.

Change-Id: I7cfb6dff4e1c2728650cd1d44aaaa36169880809
Signed-off-by: Mytnyk, VolodymyrX <volodymyrx.mytnyk@intel.com>
configure.ac

index 7f0dd5ca2ad0507ceb2f4acbd83170b508b68908..993e319e7a7907241897b6a10e135646b3a684d0 100644 (file)
@@ -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