From: Peter Somogyi Date: Fri, 15 Dec 2006 15:58:49 +0000 (+0100) Subject: Added checks for ib libs and headers X-Git-Tag: tevent-0.9.20~348^2~3001^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e1b3f1f12169e462134c5e8608016bcc46d355b;p=thirdparty%2Fsamba.git Added checks for ib libs and headers (This used to be ctdb commit 0fecfdea111f2f5d25eadce04c5f35dffca29b26) --- diff --git a/ctdb/ib/config.m4 b/ctdb/ib/config.m4 index f023f76f564..e84b7448a76 100644 --- a/ctdb/ib/config.m4 +++ b/ctdb/ib/config.m4 @@ -10,6 +10,19 @@ if eval "test x$enable_infiniband = xyes"; then INFINIBAND_WRAPPER_OBJ="ib/ibwrapper.o" INFINIBAND_LIBS="-lrdmacm -libverbs" INFINIBAND_BINS="bin/ibwrapper_test" + + AC_CHECK_HEADERS(infiniband/verbs.h, [], [ + echo "ERROR: you need infiniband/verbs.h when ib enabled!" + exit -1]) + AC_CHECK_HEADERS(rdma/rdma_cma.h, [], [ + echo "ERROR: you need rdma/rdma_cma.h when ib enabled!" + exit -1]) + AC_CHECK_LIB(ibverbs, ibv_create_qp, [], [ + echo "ERROR: you need libibverbs when ib enabled!" + exit -1]) + AC_CHECK_LIB(rdmacm, rdma_connect, [], [ + echo "ERROR: you need librdmacm when ib enabled!" + exit -1]) fi AC_SUBST(HAVE_INFINIBAND)