-AC_CHECK_DECL([cds_list_add], [],
- [AC_MSG_ERROR([liburcu 0.5.4 or newer is needed])], [[#include <urcu/list.h>]]
+AC_CHECK_DECL([futex_async], [],
+ [AC_MSG_ERROR([liburcu $liburcu_version or newer is needed])], [[#include <urcu/futex.h>]]
+)
+AC_CHECK_DECL([rcu_thread_offline], [],
+ [AC_MSG_ERROR([liburcu $liburcu_version or newer is needed])], [[#include <urcu.h>]]
+)
+AC_CHECK_DECL([rcu_thread_online], [],
+ [AC_MSG_ERROR([liburcu $liburcu_version or newer is needed])], [[#include <urcu.h>]]
+)
+AC_CHECK_DECL([ustctl_create_session],
+ [
+ AC_DEFINE([CONFIG_LTTNG_TOOLS_HAVE_UST], 1)
+ have_ust_test=1
+ ],
+ [
+ AC_MSG_WARN([UST header not found. Building without UST support.])
+ have_ust_test=0
+ ],
+ [[#include <ust/lttng-ust-ctl.h>]]