[openib-general] libibat/libibcm build mess

Roland Dreier rolandd at cisco.com
Fri Sep 9 16:57:27 PDT 2005


We probably want a patch like the below for libibcm.  I don't like it,
because it makes libibcm officially depend on libibat, but on the
other hand it's just making the current situation explicit.

Only this doesn't actually work: if we build libibcm after installing
libibat, the check for <infiniband/at.h> fails because at.h includes
sa.h, and libibat doesn't install sa.h.

 - R.

--- libibcm/configure.in	(revision 3345)
+++ libibcm/configure.in	(working copy)
@@ -13,10 +13,16 @@ dnl Checks for programs
 AC_PROG_CC
 
 dnl Checks for libraries
+AC_CHECK_LIB(ibverbs, ibv_get_devices, [],
+    AC_MSG_ERROR([ibv_get_devices() not found.  libibcm requires libibcm.]))
+AC_CHECK_LIB(ibat, ib_at_route_by_ip, [],
+    AC_MSG_ERROR([ib_at_route_by_ip() not found.  libibcm requires libat.]))
 
 dnl Checks for header files.
 AC_CHECK_HEADER(infiniband/verbs.h, [],
     AC_MSG_ERROR([<infiniband/verbs.h> not found.  Is libibverbs installed?]))
+AC_CHECK_HEADER(infiniband/at.h, [],
+    AC_MSG_ERROR([<infiniband/at.h> not found.  Is libibat installed?]))
 AC_HEADER_STDC
 
 dnl Checks for typedefs, structures, and compiler characteristics.
--- libibcm/Makefile.am	(revision 3355)
+++ libibcm/Makefile.am	(working copy)
@@ -20,9 +20,7 @@ src_libibcm_la_LDFLAGS = -avoid-version 
 
 bin_PROGRAMS = examples/ucmpost
 examples_ucmpost_SOURCES = examples/cmpost.c
-examples_ucmpost_LDADD = $(top_builddir)/src/libibcm.la \
-			 $(libdir)/libibverbs.la \
-			 $(libdir)/libibat.la
+examples_ucmpost_LDADD = $(top_builddir)/src/libibcm.la
 
 libibcmincludedir = $(includedir)/infiniband
 



More information about the general mailing list