1 AC_ARG_ENABLE(--enable-infiniband,
2 [ --enable-infiniband Turn on infiniband support (default=no)])
6 if eval "test x$enable_infiniband = xyes"; then
7 AC_DEFINE(USE_INFINIBAND,1,[Use infiniband])
10 INFINIBAND_WRAPPER_OBJ="ib/ibwrapper.o ib/ibw_ctdb.o ib/ibw_ctdb_init.o"
11 INFINIBAND_LIBS="-lrdmacm -libverbs"
12 INFINIBAND_BINS="tests/bin/ibwrapper_test"
14 AC_CHECK_HEADERS(infiniband/verbs.h, [], [
15 echo "ERROR: you need infiniband/verbs.h when ib enabled!"
17 AC_CHECK_HEADERS(rdma/rdma_cma.h, [], [
18 echo "ERROR: you need rdma/rdma_cma.h when ib enabled!"
20 AC_CHECK_LIB(ibverbs, ibv_create_qp, [], [
21 echo "ERROR: you need libibverbs when ib enabled!"
23 AC_CHECK_LIB(rdmacm, rdma_connect, [], [
24 echo "ERROR: you need librdmacm when ib enabled!"
28 AC_SUBST(HAVE_INFINIBAND)
29 AC_SUBST(INFINIBAND_WRAPPER_OBJ)
30 AC_SUBST(INFINIBAND_LIBS)
31 AC_SUBST(INFINIBAND_BINS)