configure.ac: Emit ENABLE_TRACEPOINTS in config.h

Change-Id: I988bc6600228168d13cd9121bff739d4b0add1ec
This commit is contained in:
Olivier Dion
2022-05-20 15:31:12 -04:00
parent 22b7425ad0
commit b0cfb1e8dd

View File

@ -54,8 +54,10 @@ 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"])
AS_IF([test "x$enable_tracepoints" = "xyes"],
[AC_DEFINE(ENABLE_TRACEPOINTS, [], [Static tracepoints enabled])
AM_CONDITIONAL(ENABLE_TRACEPOINTS, true)],
[AM_CONDITIONAL(ENABLE_TRACEPOINTS, false)])
dnl Check for programs
AC_PROG_CC