@@ -49,10 +49,19 @@ AC_ARG_ENABLE([verbs_exp],
4949[ Disable Verbs Experimental] ) ] ,
5050[ ] , [ enable_verbs_exp=yes] )
5151
52+ AC_ARG_ENABLE ( [ ibv_wr_api] ,
53+ [ AS_HELP_STRING ( [ --enable-ibv_wr_api] ,
54+ [ Enable new post send API] ) ] ,
55+ [ enable_ibv_wr_api=yes] , [ enable_ibv_wr_api=no] )
56+
5257AS_IF ( [ test "x$enable_verbs_exp" = "xyes"] ,
5358 [ USE_VERBS_EXP=yes] ,
5459 [ USE_VERBS_EXP=no] )
5560
61+ AS_IF ( [ test "x$enable_ibv_wr_api" = "xyes"] ,
62+ [ USE_IBV_WR_API=yes] ,
63+ [ USE_IBV_WR_API=no] )
64+
5665AC_PREFIX_DEFAULT ( "/usr" )
5766
5867AC_PROG_CC
@@ -140,6 +149,16 @@ else
140149 HAVE_VERBS_EXP=no
141150fi
142151
152+ AC_TRY_LINK ( [
153+ #include <infiniband/verbs.h>] ,
154+ [ int x = IBV_QP_INIT_ATTR_SEND_OPS_FLAGS;] ,[ HAVE_IBV_WR_API=yes] ,[ HAVE_IBV_WR_API=no] )
155+ AM_CONDITIONAL([ HAVE_IBV_WR_API] ,[ test "x$HAVE_IBV_WR_API" = "xyes"] )
156+ if [ test $HAVE_IBV_WR_API = yes] && [ test $USE_IBV_WR_API = yes] ; then
157+ AC_DEFINE ( [ HAVE_IBV_WR_API] , [ 1] , [ Have new post send API support] )
158+ else
159+ HAVE_IBV_WR_API=no
160+ fi
161+
143162AC_TRY_LINK ( [
144163#include <infiniband/verbs.h>
145164#include <infiniband/verbs_exp.h>] ,
0 commit comments