You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
643 B

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