X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=836ff15b8e562bd2cb2738e43e6ce8fc84c6d386;hb=76bcac588cf4812f6a429ff81734910a0fcb4f64;hp=7257cdeffeee83d722206679a05848924fd4843e;hpb=e8955cc64f0f5da0e90ab62fa3dd277a19fe3abf;p=lttng-tools.git diff --git a/configure.ac b/configure.ac index 7257cdeff..836ff15b8 100644 --- a/configure.ac +++ b/configure.ac @@ -315,7 +315,8 @@ AC_CHECK_FUNCS([ \ mkdir munmap putenv realpath rmdir socket strchr strcspn strdup \ strncasecmp strndup strnlen strpbrk strrchr strstr strtol strtoul \ strtoull dirfd gethostbyname2 getipnodebyname epoll_create1 \ - sched_getcpu sysconf sync_file_range getrandom posix_fadvise + sched_getcpu sysconf sync_file_range getrandom posix_fadvise \ + arc4random flock ]) # Check for pthread_setname_np and pthread_getname_np @@ -952,6 +953,9 @@ AS_IF([test "$test_sdt_uprobe" = "autodetect"], [ AM_CONDITIONAL([TEST_SDT_UPROBE], [test "$test_sdt_uprobe" = "yes"]) +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)])) + # Arguments for binaries build exclusion AC_ARG_ENABLE([bin-lttng], AS_HELP_STRING([--disable-bin-lttng],[Disable the build of lttng binaries])) AC_ARG_ENABLE([bin-lttng-consumerd], AS_HELP_STRING([--disable-bin-lttng-consumerd], @@ -1022,11 +1026,23 @@ AS_IF([test x$enable_bin_lttng_sessiond != xno], ) # Libraries dependencies enabling +# If we want to build liblttng-ctl +AS_IF([test x$enable_lib_lttng_ctl != xno], + [ + build_lib_lttng_ctl=yes + ] +) +# If we need to build liblttng-ctl because a binary depends on it AS_IF([test x$build_lib_lttng_ctl = xyes], [ build_lib_sessiond_comm=yes ] ) +# Fail if we didn't want to build liblttng-ctl but need to build it anyway +AS_IF([test "x$build_lib_lttng_ctl" = "xyes" -a "x$enable_lib_lttng_ctl" = "xno"],[ + AC_MSG_FAILURE( + [liblttng-ctl must be built, because at least one binary that depends on it is enabled]) +]) AS_IF([test x$build_lib_consumer = xyes], [ @@ -1240,6 +1256,7 @@ AC_CONFIG_FILES([ tests/regression/tools/trigger/name/Makefile tests/regression/tools/trigger/hidden/Makefile tests/regression/tools/context/Makefile + tests/regression/tools/client/Makefile tests/regression/ust/Makefile tests/regression/ust/nprocesses/Makefile tests/regression/ust/high-throughput/Makefile @@ -1267,6 +1284,7 @@ AC_CONFIG_FILES([ tests/regression/ust/rotation-destroy-flush/Makefile tests/regression/ust/blocking/Makefile tests/regression/ust/namespaces/Makefile + tests/regression/ust/ust-constructor/Makefile tests/stress/Makefile tests/unit/Makefile tests/unit/ini_config/Makefile @@ -1275,10 +1293,12 @@ AC_CONFIG_FILES([ tests/utils/lttngtest/Makefile tests/utils/tap/Makefile tests/utils/testapp/Makefile + tests/utils/testapp/gen-data-pending/Makefile tests/utils/testapp/gen-ns-events/Makefile tests/utils/testapp/gen-kernel-test-events/Makefile tests/utils/testapp/gen-py-events/Makefile tests/utils/testapp/gen-ust-events/Makefile + tests/utils/testapp/gen-ust-events-constructor/Makefile tests/utils/testapp/gen-ust-events-ns/Makefile tests/utils/testapp/gen-syscall-events-callstack/Makefile tests/utils/testapp/gen-ust-nevents/Makefile @@ -1342,6 +1362,13 @@ PPRINT_PROP_BOOL([libkmod support], $value) test "x$with_lttng_ust" = "xyes" && value=1 || value=0 PPRINT_PROP_BOOL([LTTng-UST support], $value) +AS_ECHO +PPRINT_SUBTITLE([Libraries]) + +# liblttng-ctl enabled/disabled +test x$build_lib_lttng_ctl != xno && value=1 || value=0 +PPRINT_PROP_BOOL([liblttng-ctl], $value) + AS_ECHO PPRINT_SUBTITLE([Binaries])