From 67fa5a34374248e4d7ae9c4624c269fc581ddef2 Mon Sep 17 00:00:00 2001 From: Olivier Dion Date: Thu, 9 Dec 2021 21:44:37 -0500 Subject: [PATCH] configure.ac: Add LTTng tracepoints feature Change-Id: I192ff24448a6454c8d504febd7ab2df2ccf88272 --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index 66c571ca7..7775fff57 100644 --- a/configure.ac +++ b/configure.ac @@ -52,6 +52,11 @@ AC_ARG_ENABLE([agent], AM_CONDITIONAL([ENABLE_AGENT], [test "x$enable_agent" = "xyes"]) AM_COND_IF([ENABLE_AGENT], [AC_CONFIG_FILES([test/agent/Makefile])]) +AC_ARG_ENABLE([tracepoints], AS_HELP_STRING([--enable-tracepoints], [Enable tracepoints])) + +AM_CONDITIONAL([ENABLE_TRACEPOINTS], [test "x$enable_tracepoints" = "xyes"]) + + dnl Check for programs AC_PROG_CC AC_PROG_CXX @@ -613,6 +618,11 @@ AC_DEFINE_UNQUOTED([HAVE_SHM], `if test "x$with_dbus" == xyes; then echo 1; else echo 0; fi`, [Define if you have shared memory support]) +# LTTNG +AM_COND_IF([ENABLE_TRACEPOINTS], + [PKG_CHECK_MODULES(LTTNG, [lttng-ust >= 2.13],, AC_MSG_ERROR([Missing lttng-ust])) + PKG_CHECK_MODULES(LIBURCU, [liburcu >= 0.13.1],, AC_MSG_ERROR([Missng liburcu]))]) + # DOXYGEN # required dependency(ies): doxygen # check for doxygen, mostly stolen from http://log4cpp.sourceforge.net/