diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-29 12:08:56 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-02-26 20:13:09 -0300 |
commit | 61e94c1b5b32a8c4c6db1c8037412ac1ac727833 (patch) | |
tree | 923bd1978240dcb4971c543d1996b2647b2167f2 /configure.ac | |
parent | b9f58925930bd095894224c1a3968ef450d6ddcf (diff) |
Add IPC performance counter for Linux
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 5c333d59..32559745 100644 --- a/configure.ac +++ b/configure.ac @@ -273,8 +273,10 @@ then fi AC_ARG_ENABLE(perfcounters, [AS_HELP_STRING([--enable-perfcounters], [enable hardware performance counters])],, enable_perfcounters="yes") -if test "x$enable_perfcounters_$my_htop_platform" = xyes_linux +if test "x$enable_perfcounters" = "xyes" -a "$my_htop_platform" = "linux" then + AC_DEFINE(HAVE_PERFCOUNTERS, 1, [Define if hardware performance counter support should be enabled.]) + AC_CHECK_HEADERS([linux/perf_counter.h], [have_perf_counter=yes], [have_perf_counter=no]) |