X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=16dee8b368e5b60e5dd395fac86913ea1b581d49;hb=cb80e2fb106d56b4a0ae9c0480a368572f4d0d35;hp=cca827a77cd50e6a627b38cd03d249e6fc7d6b1c;hpb=fa184a4dbf3ee0ac1cc1001566031abbc7866f87;p=lttng-ust.git diff --git a/configure.ac b/configure.ac index cca827a7..16dee8b3 100644 --- a/configure.ac +++ b/configure.ac @@ -481,6 +481,16 @@ Cannot find a suitable python interpreter. You can override it with the PYTHON environment variable. ]) ]) + + AX_COMPARE_VERSION(["$PYTHON_VERSION"], [ge], ["3.12"], [ + 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. @@ -656,6 +666,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