diff options
author | Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com> | 2016-06-18 23:13:44 +0100 |
---|---|---|
committer | Daniele Di Proietto <diproiettod@vmware.com> | 2016-06-24 13:58:19 -0700 |
commit | 16dfb8fa791bde9ffc4b5763d7b3d689e60d8119 (patch) | |
tree | b162040a20bc2fedc230c8a71cda91b35d2115b4 /acinclude.m4 | |
parent | 3c76c72dd73e0aded1703b9671664f97c6676cf2 (diff) | |
download | openvswitch-16dfb8fa791bde9ffc4b5763d7b3d689e60d8119.tar.gz |
acinclude: check for numa library
Numa library is needed for NUMA aware vHost User functionality.
Incase of missing numa package, the OVS DPDK configuration fails with
"error: Could not find DPDK libraries in <DPDK_LOC>/TARGET/lib" though
the DPDK library is installed.
This patch fixes this inappropriate error by checking for presence of
numa library and output an appropriate error message "error: unable to
find libnuma, install the dependency package" in case of missing package.
Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Acked-by: Ciara Loftus <ciara.loftus@intel.com>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 52d0209ab..8012fcf73 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -209,6 +209,8 @@ AC_DEFUN([OVS_CHECK_DPDK], [ [AC_DEFINE([VHOST_CUSE], [1], [DPDK vhost-cuse support enabled, vhost-user disabled.]) DPDK_EXTRA_LIB="-lfuse"]) + AC_SEARCH_LIBS([get_mempolicy],[numa],[],[AC_MSG_ERROR([unable to find libnuma, install the dependency package])]) + # On some systems we have to add -ldl to link with dpdk # # This code, at first, tries to link without -ldl (""), |