X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=86ef7c9cd82c64053867e60674f22c6585099aab;hb=9bc9229a85264edbc77888f1474a8f054c9ce79c;hp=437d71961871ec30fe9405b05fe933817aced698;hpb=fe9615ba34edf2deb2b7f7dea935806a94627e9f;p=lttng-ust.git diff --git a/configure.ac b/configure.ac index 437d7196..86ef7c9c 100644 --- a/configure.ac +++ b/configure.ac @@ -481,6 +481,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. @@ -566,6 +577,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"]) ## ##