From b3db7f062cd974adcc54eefee833e7a152c740bf Mon Sep 17 00:00:00 2001 From: Yannick Brosseau Date: Thu, 30 May 2013 14:40:49 -0400 Subject: [PATCH] Don't solely rely on babeltrace pkg-config for detection The babeltrace.pc file is not yet reliably available on all distribution Signed-off-by: Yannick Brosseau --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 59338a27..817a46d9 100644 --- a/configure.ac +++ b/configure.ac @@ -109,7 +109,16 @@ PKG_CHECK_MODULES(GMODULE, [$pkg_modules]) pkg_modules="gobject-2.0 >= 2.0.0" PKG_CHECK_MODULES(GOBJECT, [$pkg_modules]) -PKG_CHECK_MODULES(BABELTRACE, [babeltrace >= 1.1.0]) +PKG_CHECK_MODULES(BABELTRACE, [babeltrace >= 1.1.0], [], + [AC_CHECK_LIB([babeltrace], [bt_context_create], [], + [AC_MSG_ERROR([Cannot find the babeltrace library.])] + ) + +# Check for libbabeltrace-ctf +AC_CHECK_LIB([babeltrace-ctf], [bt_ctf_iter_create], [], + [AC_MSG_ERROR([Cannot find the babeltrace-ctf library.])] + ) +]) AC_CHECK_LIB([babeltrace], [bt_iter_equals_pos], [AC_DEFINE([HAVE_BT_ITER_EQUALS_POS],[],[Have equal function])], []) -- 2.34.1