r289: Add experimental support for the SDP protocol
[nbd.git] / configure.ac
index e02421c..3ebb983 100644 (file)
@@ -59,6 +59,7 @@ AC_ARG_ENABLE(
   ],
   [DODBG=0]
 )
+
 AC_MSG_CHECKING([whether a debugging version is requested])
 if test $DODBG -eq 1; then
   AC_MSG_RESULT([yes])
@@ -71,6 +72,16 @@ else
   AC_MSG_RESULT([no])
 fi
 
+AC_ARG_ENABLE(
+  sdp,
+  AC_HELP_STRING(--enable-sdp,Build a version of nbd-server with support for the Socket Direct Protocol (SDP). Requires you to build and install a kernel with the InfiniBand patches (default disabled)),
+  [
+    if test "x$enableval" = "xyes"; then
+      AC_DEFINE(WITH_SDP, 1, [Define to 1 if you have and want support for the Socket Direct Protocol])
+    fi
+  ]
+)
+
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL