From 71049434ae5869141f9424b9c761f85fe313c8bf Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Mon, 19 Sep 2005 18:16:31 +0000 Subject: [PATCH] r3483: Add an option to disable configure checks for ib libraries. This makes it possible to first configure all libraries, then make them all. Signed-off-by: Michael S. Tsirkin Signed-off-by: Sean Hefty --- configure.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure.in b/configure.in index e4d56aa..aa1ac58 100644 --- a/configure.in +++ b/configure.in @@ -9,6 +9,12 @@ AM_INIT_AUTOMAKE(libibcm, 0.9.0) AC_DISABLE_STATIC AM_PROG_LIBTOOL +AC_ARG_ENABLE(libcheck, [ --disable-libcheck do not test for presence of ib libraries], +[ if test x$enableval = xno ; then + disable_libcheck=yes + fi +]) + dnl Checks for programs AC_PROG_CC @@ -17,16 +23,22 @@ AC_C_CONST AC_CHECK_SIZEOF(long) dnl Checks for libraries +if test "$disable_libcheck" != "yes" +then 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.])) +fi dnl Checks for header files. +if test "$disable_libcheck" != "yes" +then AC_CHECK_HEADER(infiniband/verbs.h, [], AC_MSG_ERROR([ not found. Is libibverbs installed?])) AC_CHECK_HEADER(infiniband/at.h, [], AC_MSG_ERROR([ not found. Is libibat installed?])) +fi AC_HEADER_STDC AC_CACHE_CHECK(whether ld accepts --version-script, ac_cv_version_script, -- 2.46.0