summaryrefslogtreecommitdiffstats
path: root/ctdb/ib
diff options
context:
space:
mode:
authorPeter Somogyi <psomogyi@gamax.hu>2006-12-15 16:02:45 +0100
committerPeter Somogyi <psomogyi@gamax.hu>2006-12-15 16:02:45 +0100
commitd323249d2cd620c9c30f341a152f3445d7d8920d (patch)
tree5e6abd33bf15ec87de54156ae454c4425c390ecb /ctdb/ib
parent4777809b6251e6a45142247ab637ca7b1b16174e (diff)
downloadsamba-d323249d2cd620c9c30f341a152f3445d7d8920d.tar.gz
samba-d323249d2cd620c9c30f341a152f3445d7d8920d.tar.xz
samba-d323249d2cd620c9c30f341a152f3445d7d8920d.zip
Made infiniband support configurable.
Adjusted "make distclean" NOT to remove the lib folder (again). Removed again config.h.in autogenerated file from bzr. (This used to be ctdb commit 3c264205157c8c2af03bca0051a1fe715c8470e5)
Diffstat (limited to 'ctdb/ib')
-rw-r--r--ctdb/ib/config.m418
1 files changed, 18 insertions, 0 deletions
diff --git a/ctdb/ib/config.m4 b/ctdb/ib/config.m4
new file mode 100644
index 0000000000..f023f76f56
--- /dev/null
+++ b/ctdb/ib/config.m4
@@ -0,0 +1,18 @@
+AC_ARG_ENABLE(--enable-infiniband,
+[ --enable-infiniband Turn on infiniband support (default=no)])
+
+HAVE_INFINIBAND=no
+
+if eval "test x$enable_infiniband = xyes"; then
+ AC_DEFINE(USE_INFINIBAND,1,[Use infiniband])
+ HAVE_INFINIBAND=yes
+
+ INFINIBAND_WRAPPER_OBJ="ib/ibwrapper.o"
+ INFINIBAND_LIBS="-lrdmacm -libverbs"
+ INFINIBAND_BINS="bin/ibwrapper_test"
+fi
+
+AC_SUBST(HAVE_INFINIBAND)
+AC_SUBST(INFINIBAND_WRAPPER_OBJ)
+AC_SUBST(INFINIBAND_LIBS)
+AC_SUBST(INFINIBAND_BINS)