From: Daniele Di Proietto Date: Thu, 25 Jun 2015 14:46:55 +0000 (-0700) Subject: acinclude: Require libfuse only for DPDK with vhost-cuse. X-Git-Tag: v2.5.0~917 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=10d01ad2150d3ccde548fdd5bf6b5a3551cdee6c;hp=0fc1f5c04c8c1a9ac461da8c6ab88dee680a5ab3;p=cascardo%2Fovs.git acinclude: Require libfuse only for DPDK with vhost-cuse. DPDK with vhost-user doesn't require libfuse, so we shouldn't link OVS with libfuse unless DPDK is built with vhost-cuse support. CC: Rapelly, Varun Signed-off-by: Daniele Di Proietto Acked-by: Pravin B Shelar --- diff --git a/acinclude.m4 b/acinclude.m4 index 20391eca6..14907abf0 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -173,7 +173,11 @@ AC_DEFUN([OVS_CHECK_DPDK], [ DPDK_INCLUDE=$RTE_SDK/include DPDK_LIB_DIR=$RTE_SDK/lib DPDK_LIB="-lintel_dpdk" - DPDK_EXTRA_LIB="-lfuse" + DPDK_EXTRA_LIB="" + + OVS_GREP_IFELSE([$RTE_SDK/include/rte_config.h], [define RTE_LIBRTE_VHOST_USER 1], + [], [AC_DEFINE([VHOST_CUSE], [1], [DPDK vhost-cuse support enabled, vhost-user disabled.]) + DPDK_EXTRA_LIB="-lfuse"]) ovs_save_CFLAGS="$CFLAGS" ovs_save_LDFLAGS="$LDFLAGS" @@ -221,8 +225,6 @@ AC_DEFUN([OVS_CHECK_DPDK], [ AC_SUBST([DPDK_vswitchd_LDFLAGS]) AC_DEFINE([DPDK_NETDEV], [1], [System uses the DPDK module.]) - OVS_GREP_IFELSE([$RTE_SDK/include/rte_config.h], [define RTE_LIBRTE_VHOST_USER 1], - [], [AC_DEFINE([VHOST_CUSE], [1], [DPDK vhost-cuse support enabled, vhost-user disabled.])]) else RTE_SDK= fi