X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=configure.ac;h=ea4a24653f8eb6717eae4448ef1c2f1bc7de7c13;hb=79f8dc6f50b20fb6b1d99f9bd97d70aa361bc6ad;hp=ba4c85559ad4037c0dd4d9da3c3ed361efcbddb5;hpb=464c475658ae29039b3b9e769b5b02195688a94a;p=lttng-ust.git diff --git a/configure.ac b/configure.ac index ba4c8555..ea4a2465 100644 --- a/configure.ac +++ b/configure.ac @@ -162,6 +162,7 @@ m4_define([WARN_FLAGS_LIST], [ dnl -Wno-sign-compare dnl -Wno-missing-field-initializers dnl -Wno-null-dereference dnl + -Wno-gnu dnl Disable warnings for GNU extensions on Clang ]) # Pass -Werror as an extra flag during the test: this is needed to make the @@ -399,6 +400,10 @@ AE_IF_FEATURE_DISABLED([shared], [ AC_MSG_ERROR(LTTng-UST requires shared libraries to be enabled) ]) +AE_IF_FEATURE_ENABLED([static], [ + AC_MSG_ERROR(Static linking LTTng-UST is currently unsupported) +]) + AE_IF_FEATURE_ENABLED([java-agent-all], [ AE_FEATURE_ENABLE([java-agent-jul]) AE_FEATURE_ENABLE([java-agent-log4j]) @@ -480,6 +485,17 @@ Cannot find a suitable python interpreter. You can override it with the PYTHON environment variable. ]) ]) + + AX_COMPARE_VERSION(["$PYTHON_VERSION"], [ge], ["3.12"], [ + have_python_312_or_greater=yes + AC_MSG_CHECKING([for python setuptools]) + AS_IF(["$PYTHON" -c "import setuptools" 2>/dev/null], [ + AC_MSG_RESULT([yes]) + ], [ + AC_MSG_RESULT([no]) + AC_MSG_ERROR([Python >= 3.12 removed 'distutils', the 'setuptools' module needs to be installed for the selected interpreter.]) + ]) + ]) ]) # Check for asciidoc and xmlto if we enabled building the man pages. @@ -565,6 +581,7 @@ AM_CONDITIONAL([HAVE_CMAKE], [test "x$CMAKE" != "x"]) AM_CONDITIONAL([HAVE_CXX], [test "$HAVE_CXX11" = "1"]) AM_CONDITIONAL([HAVE_JAVAH], [test "x$JAVAH" != "x"]) AM_CONDITIONAL([HAVE_PERF_EVENT], [test "x$ac_cv_header_linux_perf_event_h" = "xyes"]) +AM_CONDITIONAL([HAVE_PYTHON_312_OR_GREATER], [test "x$have_python_312_or_greater" = "xyes"]) ## ## @@ -655,6 +672,7 @@ AC_CONFIG_FILES([ tests/regression/abi0-conflict/Makefile tests/regression/Makefile tests/unit/gcc-weak-hidden/Makefile + tests/unit/libcommon/Makefile tests/unit/libmsgpack/Makefile tests/unit/libringbuffer/Makefile tests/unit/Makefile