1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-13 19:03:52 +02:00
openwrt-packages/libs/lttng-ust/patches/002-examples.patch
Nicolas Thill 0bb5f29415 lttng-ust: import from old packages feed
- update to latest version (v2.6.0)
 - add license info
 - add myself as maintainer

Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-02-08 20:55:48 +01:00

19 lines
643 B
Diff

--- a/configure.ac
+++ b/configure.ac
@@ -350,7 +350,14 @@ AC_ARG_WITH([lttng-system-rundir],
AC_DEFINE_UNQUOTED([LTTNG_SYSTEM_RUNDIR], ["$lttng_system_rundir"],
[LTTng system runtime directory])
-AM_PATH_PYTHON([2.7],BUILD_GEN_TP_EXAMPLES=1,[:])
+AC_ARG_ENABLE([examples],
+ [AS_HELP_STRING([--enable-examples],[build examples [default=no]])],
+ [enable_examples=$enableval],
+ [enable_examples=no]
+)
+if test "x$enable_examples" = "xyes"; then
+ AM_PATH_PYTHON([2.7],BUILD_GEN_TP_EXAMPLES=1,[:])
+fi
AM_CONDITIONAL([BUILD_GEN_TP_EXAMPLES], [test $BUILD_GEN_TP_EXAMPLES], [Build examples requiring lttng-gen-tp])
AC_CONFIG_FILES([