@@ -245,6 +245,16 @@ AC_ARG_ENABLE([debug-print],
fi])
ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG_PRINT=$ODP_DEBUG_PRINT"
+ODPH_DEBUG_PRINT=0
+AC_ARG_ENABLE([helper-debug-print],
+ [ --enable-helper-debug-print display helper debugging information],
+ [if test "x$enableval" = "xyes"; then
+ ODPH_DEBUG_PRINT=1
+ else
+ ODPH_DEBUG_PRINT=0
+ fi])
+ODP_CFLAGS="$ODP_CFLAGS -DODPH_DEBUG_PRINT=$ODPH_DEBUG_PRINT"
+
##########################################################################
# Enable/disable ODP_DEBUG
##########################################################################
@@ -4,7 +4,7 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(top_builddir)/pkgconfig/libodphelper-linux-generic.pc
LIB = $(top_builddir)/lib
-AM_CFLAGS = -I$(srcdir)/include
+AM_CFLAGS += -I$(srcdir)/include
AM_CFLAGS += -I$(top_srcdir)/platform/@with_platform@/include
AM_CFLAGS += -I$(top_srcdir)/include
AM_CFLAGS += -I$(top_builddir)/platform/@with_platform@/include
@@ -19,10 +19,6 @@
extern "C" {
#endif
-#ifndef ODPH_DEBUG_PRINT
-#define ODPH_DEBUG_PRINT 1
-#endif
-
/**
* log level.
*/
Add debug pritn config option for helper and do not drop configure options for building helper. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- configure.ac | 10 ++++++++++ helper/Makefile.am | 2 +- helper/odph_debug.h | 4 ---- 3 files changed, 11 insertions(+), 5 deletions(-) -- 2.11.0.295.gd7dffce