autoconf: check for linux/perf_event.h
authorAndy Zhou <azhou@nicira.com>
Thu, 16 Apr 2015 19:52:09 +0000 (12:52 -0700)
committerAndy Zhou <azhou@nicira.com>
Thu, 16 Apr 2015 21:21:05 +0000 (14:21 -0700)
commit9a6156bb8e8e4ae61d7a167f3a2337270e68f119
tree72f79b1c8d4f494794d8a4458146c8dae535ca05
parent212c4d5a0c6967581346076961ef9f25881b336d
autoconf: check for linux/perf_event.h

Older Linux prior to version 2.6.32 do not support user mode
performance events, They also don't have 'linux/perf_event.h' header
file. Add check for those older Linux to conditionally compile
perf-counter.c

Reported-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
configure.ac
lib/perf-counter.c
lib/perf-counter.h
m4/openvswitch.m4