diff mbox

[3/5] dapl-2.0 - configure: need a false conditional for verbs attr.link_layer member check

Message ID E3280858FA94444CA49D2BA02341C9830103BF2434@orsmsx506.amr.corp.intel.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Arlin Davis June 16, 2010, 5:21 p.m. UTC
None
diff mbox

Patch

diff --git a/configure.in b/configure.in
index c36304d..4110024 100644
--- a/configure.in
+++ b/configure.in
@@ -23,20 +23,16 @@  if test "$disable_libcheck" != "yes"
 then
 AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
     AC_MSG_ERROR([ibv_get_device_list() not found.  libdapl requires libibverbs.]))
-fi
 
-dnl Checks for header files.
-if test "$disable_libcheck" != "yes"
-then
 AC_CHECK_HEADER(infiniband/verbs.h, [],
     AC_MSG_ERROR([<infiniband/verbs.h> not found.  Is libibverbs installed?]))
-fi
 
-if test "$disable_libcheck" != "yes"
-then
 AC_CHECK_MEMBER(struct ibv_port_attr.link_layer, 
-    AM_CONDITIONAL(DEFINE_ATTR_LINK_LAYER, test "yes" = "yes"),
-    [], [#include <infiniband/verbs.h>])
+    AM_CONDITIONAL(DEFINE_ATTR_LINK_LAYER, test "yes" = "yes"), 
+    AM_CONDITIONAL(DEFINE_ATTR_LINK_LAYER, test "yes" = "no"), 
+    [#include <infiniband/verbs.h>])
+else
+    AM_CONDITIONAL(DEFINE_ATTR_LINK_LAYER, test "yes" = "no")
 fi
 
 AC_CACHE_CHECK(whether ld accepts --version-script, ac_cv_version_script,