Use compiler-agnostic defines to silence warning
[lttng-tools.git] / configure.ac
index b479c7350eafaaeb1d189ab80aaa64613eea0999..d8980edcd82162c474d3a4daaa91d96752c4936b 100644 (file)
@@ -9,7 +9,7 @@ AC_CONFIG_MACRO_DIR([m4])
 AC_CANONICAL_TARGET
 AC_CANONICAL_HOST
 
-AM_INIT_AUTOMAKE([1.12 foreign dist-bzip2 no-dist-gzip tar-pax nostdinc])
+AM_INIT_AUTOMAKE([1.12 foreign dist-bzip2 no-dist-gzip tar-pax nostdinc subdir-objects])
 AM_MAINTAINER_MODE([enable])
 
 # Enable silent rules if available (Introduced in AM 1.11)
@@ -157,6 +157,7 @@ AS_IF([test "x$enable_Werror" = "xyes"], [
 AC_PROG_GREP
 AC_PROG_MAKE_SET
 AC_PROG_SED
+AC_PROG_MKDIR_P
 AC_PATH_PROG([report_fold], [fold])
 LT_INIT
 
@@ -755,6 +756,31 @@ if test "x$test_java_agent_jul" = "xyes" || test "x$test_java_agent_log4j" = "xy
        fi
 fi
 
+# API documentation using Doxygen
+AC_ARG_ENABLE([api-doc], [
+       AS_HELP_STRING([--enable-api-doc], [build HTML API documentation])
+], [api_doc=$enableval], [api_doc=no])
+
+AS_IF([test "x$api_doc" = xyes], [
+       DX_DOXYGEN_FEATURE(ON)
+       DX_DOT_FEATURE(OFF)
+       DX_HTML_FEATURE(ON)
+       DX_CHM_FEATURE(OFF)
+       DX_CHI_FEATURE(OFF)
+       DX_MAN_FEATURE(OFF)
+       DX_RTF_FEATURE(OFF)
+       DX_XML_FEATURE(OFF)
+       DX_PDF_FEATURE(OFF)
+       DX_PS_FEATURE(OFF)
+       DX_INIT_DOXYGEN(["LTTng control library"], [$(builddir)/Doxyfile], [output])
+
+       AS_IF([test -z "$DX_DOXYGEN"], [
+               AC_MSG_ERROR([You need Doxygen to build the liblttng-ctl API documentation])
+       ])
+])
+
+AM_CONDITIONAL([API_DOC], [test "x$api_doc" = xyes])
+
 # enable building man pages (user's intention)
 AC_ARG_ENABLE(
        man-pages,
@@ -953,6 +979,18 @@ AS_IF([test "$test_sdt_uprobe" = "autodetect"], [
 
 AM_CONDITIONAL([TEST_SDT_UPROBE], [test "$test_sdt_uprobe" = "yes"])
 
+AC_ARG_ENABLE(
+       [precious-tests],
+       AS_HELP_STRING(
+               [--disable-precious-tests],
+               [Delete log files for interrupted tests]
+       ),
+       [precious_tests=$enableval],
+       [precious_tests=yes]
+)
+
+AM_CONDITIONAL([PRECIOUS_TESTS], [test x$precious_tests = xyes])
+
 AC_ARG_ENABLE([lib-lttng-ctl], AS_HELP_STRING([--disable-lib-lttng-ctl],
        [Disable the build of liblttng-ctl (only possible if no binaries that depend on it are built)]))
 
@@ -1203,6 +1241,9 @@ AC_SUBST(lttnglibexecdir)
 AC_CONFIG_FILES([
        Makefile
        doc/Makefile
+       doc/api/Makefile
+       doc/api/liblttng-ctl/Doxyfile
+       doc/api/liblttng-ctl/Makefile
        doc/examples/Makefile
        doc/examples/rotation/Makefile
        doc/examples/trigger-condition-event-matches/Makefile
@@ -1227,6 +1268,7 @@ AC_CONFIG_FILES([
        src/bin/lttng-crash/Makefile
        src/vendor/Makefile
        src/vendor/msgpack/Makefile
+       src/vendor/fmt/Makefile
        tests/Makefile
        tests/destructive/Makefile
        tests/meta/Makefile
@@ -1465,6 +1507,9 @@ m4_popdef([build_man_pages_msg])
 test "x$embedded_help" = xyes && value=1 || value=0
 PPRINT_PROP_BOOL([Embed --help messages], $value, $PPRINT_COLOR_SUBTITLE)
 
+test "x$api_doc" = xyes && value=1 || value=0
+PPRINT_PROP_BOOL([liblttng-ctl HTML API documentation], $value, $PPRINT_COLOR_SUBTITLE)
+
 PPRINT_SET_INDENT(1)
 
 report_bindir="`eval eval echo $bindir`"
This page took 0.024133 seconds and 4 git commands to generate.