From: JengHyun Kang Date: Wed, 11 Oct 2017 07:32:33 +0000 (+0900) Subject: build a event debug tool if config option is enabled X-Git-Tag: submit/tizen/20171107.103302~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c35d001b666582d3d2536f7eeed25d5f06a01414;p=platform%2Fupstream%2Flibinput.git build a event debug tool if config option is enabled Change-Id: I384f8a6edffaffb89c15f42d6471e689402a840e --- diff --git a/configure.ac b/configure.ac index 3150a655..cd8010e4 100644 --- a/configure.ac +++ b/configure.ac @@ -163,7 +163,6 @@ if test "x$build_debug_gui" = "xyes"; then AC_DEFINE(BUILD_DEBUG_GUI, 1, [Build debug-gui support]) fi - ######################## # enable/disable tests # ######################## @@ -205,6 +204,15 @@ AC_ARG_ENABLE(test-run, AC_SUBST(UDEV_TEST_PATH, "") AC_PATH_PROG(SED, [sed]) +########################### +# enable/disable install tools # +########################### +AC_ARG_ENABLE(tools, + AS_HELP_STRING([--enable-tools], [Build the event debugger (default=no)]), + [build_eventdebug="$enableval"], + [build_eventdebug="no"]) +AM_CONDITIONAL(BUILD_EVENTDEBUG, [test "x$build_eventdebug" = "xyes"]) + ########################### # enable/disable libwacom # ########################### diff --git a/tools/Makefile.am b/tools/Makefile.am index 2c8660bf..07cd614a 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -1,4 +1,6 @@ +if BUILD_EVENTDEBUG noinst_PROGRAMS = ptraccel-debug +endif bin_PROGRAMS = libinput toolsdir = $(libexecdir)/libinput tools_PROGRAMS =