commit a19e5ed160cc2092e8a50833194231bf854880ae
Author: François Trahay <francois.trahay@telecom-sudparis.eu>
Date:   Wed May 13 09:40:56 2015 +0200

    fix the --enable_pptrace option

diff --git a/configure.ac b/configure.ac
index 7a24f4f..650980c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -244,6 +244,8 @@ AC_CHECK_LIB([opcodes], disassembler,
 LIBS="/usr/lib/libopcodes.a $LIBS"
 
 AM_CONDITIONAL([HAVE_LIBOPCODE], [test "$libopcode_found" = yes])
+
+AM_CONDITIONAL([USE_PPTRACE], [test "$use_pptrace" = yes])
 AC_SUBST(PPTRACE_BINARY_TYPE, 1)
 
 AC_CHECK_HEADER([sys/prctl.h],
diff --git a/src/core/Makefile.am b/src/core/Makefile.am
index be045e3..976ea3f 100644
--- a/src/core/Makefile.am
+++ b/src/core/Makefile.am
@@ -12,12 +12,8 @@ GTGLIBADD=$(GTG_LIB)
 
 bin_PROGRAMS = eztrace_convert eztrace_avail eztrace_loaded eztrace_stats
 
-bin_PROGRAMS += eztrace
-
 generated_scripts = eztrace_create_plugin eztrace_plugin_generator eztrace.preload
 bin_SCRIPTS = $(generated_scripts) function.pm input/Makefile.template eztrace_indent_fortran
-check_PROGRAMS = eztrace
-
 
 lib_LTLIBRARIES = libeztrace.la \
 		  libeztrace-autostart.la \
@@ -29,8 +25,14 @@ eztrace_LDFLAGS = -g -O0 $(TLLDFLAGS)
 #TODO: lbfd is not needed when litl is selected
 eztrace_LDADD = -L${prefix}/lib -ldl $(TLLIBADD)
 
-eztrace_SOURCES = eztrace.c \
-		  ezt_demangle.c \
+eztrace_SOURCES = ezt_demangle.c
+
+if USE_PPTRACE
+
+bin_PROGRAMS += eztrace
+check_PROGRAMS = eztrace
+
+eztrace_SOURCES +=eztrace.c \
 		  ../pptrace/pptrace.c \
 		  ../pptrace/binary.c \
 		  ../pptrace/errors.c \
@@ -40,6 +42,9 @@ eztrace_SOURCES = eztrace.c \
 		  ../pptrace/opcodes.c \
 		  ../pptrace/tracing.c
 
+eztrace_CPPFLAGS += -DUSE_PPTRACE=1
+endif
+
 if HAVE_DEMANGLE
 eztrace_CPPFLAGS += -DHAVE_DEMANGLE
 eztrace_LDADD += -liberty
