+# Check for libbabeltrace
+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.])]
+ )
+