From cd5d2fc036003eb0c1a7f91755d3f5aa327067b4 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Tue, 31 Aug 2010 03:20:29 +0000 Subject: rpc-transport/rdma: By default, enable building of rdma only if libibverbs is installed. Signed-off-by: Raghavendra G Signed-off-by: Vijay Bellur BUG: 513 (Introduce 0 copy rdma) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=513 --- configure.ac | 5 ++++- rpc/rpc-transport/Makefile.am | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index d274fe6bc5c..b2cad35de74 100644 --- a/configure.ac +++ b/configure.ac @@ -275,14 +275,17 @@ if test "x$enable_ibverbs" = "xyes" -a "x$HAVE_LIBIBVERBS" = "xno"; then exit 1 fi - +BUILD_RDMA=no BUILD_IBVERBS=no if test "x$enable_ibverbs" != "xno" -a "x$HAVE_LIBIBVERBS" = "xyes"; then IBVERBS_SUBDIR=ib-verbs BUILD_IBVERBS=yes + RDMA_SUBDIR=rdma + BUILD_RDMA=yes fi AC_SUBST(IBVERBS_SUBDIR) +AC_SUBST(RDMA_SUBDIR) # end IBVERBS section diff --git a/rpc/rpc-transport/Makefile.am b/rpc/rpc-transport/Makefile.am index 61bd0a36abd..221fd640514 100644 --- a/rpc/rpc-transport/Makefile.am +++ b/rpc/rpc-transport/Makefile.am @@ -1 +1 @@ -SUBDIRS = socket rdma +SUBDIRS = socket $(RDMA_SUBDIR) -- cgit