From 08e8205fb73ea3c1a6f2822dacaea8c98949b62c Mon Sep 17 00:00:00 2001 From: Nikola Dancejic Date: Tue, 13 Oct 2020 09:29:28 -0700 Subject: [PATCH] Adding ofi include to CPPFLAGS so that configure is able to check fabric.h configure was previously failing to check for the fi_info.nic struct because fabric.h relied on other header files in the ofi/include dir. This adds that include to CPPFLAGS before running that check so that configure can check for the struct. Signed-off-by: Nikola Dancejic --- config/opal_check_ofi.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/opal_check_ofi.m4 b/config/opal_check_ofi.m4 index ea0b9a9a337..480d1d5c7eb 100644 --- a/config/opal_check_ofi.m4 +++ b/config/opal_check_ofi.m4 @@ -121,11 +121,13 @@ AC_DEFUN([_OPAL_CHECK_OFI],[ [], [opal_ofi_happy=no])]) + CPPFLAGS="$CPPFLAGS $opal_ofi_CPPFLAGS" + AS_IF([test $opal_ofi_happy = yes], [AC_CHECK_MEMBER([struct fi_info.nic], [opal_check_fi_info_pci=1], [opal_check_fi_info_pci=0], - [[#include "$with_ofi/include/rdma/fabric.h"]])]) + [[#include ]])]) AC_DEFINE_UNQUOTED([OPAL_OFI_PCI_DATA_AVAILABLE], [$opal_check_fi_info_pci],