Fix: Wrong configure check for UST perf event counters context support
authorChristian Babeux <christian.babeux@efficios.com>
Thu, 26 Jun 2014 15:42:28 +0000 (11:42 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 26 Jun 2014 15:52:12 +0000 (11:52 -0400)
commit1113f8424f8e73271b0a44299a980d14e149a229
tree87b1a316957dc9beeed03e37b8dd390d7819f53a
parenta57713b01d6da30f52bfd564b279e7b3901ecdc9
Fix: Wrong configure check for UST perf event counters context support

When building on non-x86 platforms, the build errors out with the following:

  CC       lttng-context-perf-counters.lo
lttng-context-perf-counters.c:95:2: error: #error "Perf event counters are only supported on x86 so far."
lttng-context-perf-counters.c: In function 'read_perf_counter':
lttng-context-perf-counters.c:114:4: warning: implicit declaration of function 'rdpmc' [-Wimplicit-function-declaration]
make[2]: *** [lttng-context-perf-counters.lo] Error 1

The configure script checks for the presence of the "perf_event.h" header to enable support for
perf events counters. However, the current implementation is only available on x86,
hence the build fails on platform where the perf header is available.

Fix this issue by detecting the architecture we are currently building and wether
to enable or not the support for perf event counters context.

Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac
This page took 0.024475 seconds and 4 git commands to generate.