--- a/utils/Makefile.am
+++ b/utils/Makefile.am
@@ -3,8 +3,11 @@
 
 LIBS=@POPT_LIBS@ @LIBERTY_LIBS@
 
-bin_PROGRAMS = ophelp
+bin_PROGRAMS = ophelp op-check-perfevents
 dist_bin_SCRIPTS = opcontrol
+
+op_check_perfevents_SOURCES = op_perf_events_checker.c
+op_check_perfevents_CPPFLAGS = ${AM_CFLAGS} @PERF_EVENT_FLAGS@
 
 ophelp_SOURCES = ophelp.c
 ophelp_LDADD = ../libop/libop.a ../libutil/libutil.a