X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=configure.ac;h=95483337b0b633a6bee32fd2b4ac2e0f5a0d060c;hb=cb50b38fd0c51b3b0c650b2437cbba572321d53a;hp=f81e73342dff671e8ea1f487939833e4a5006462;hpb=d617eb920ca0200db3fee1674c7002d5ace084ba;p=babeltrace.git diff --git a/configure.ac b/configure.ac index f81e7334..95483337 100644 --- a/configure.ac +++ b/configure.ac @@ -535,6 +535,14 @@ AS_IF([test -n "$PYTHON_CONFIG"], [have_python_dev=yes], [have_python_dev=no]) AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = xyes]) AM_CONDITIONAL([HAVE_PYTHON_DEV], [test "x$have_python_dev" = xyes]) +AS_IF([test "x$have_python" = xyes], [ + AX_COMPARE_VERSION(["$PYTHON_VERSION"], [ge], ["3.12"], [ + have_python_312_or_greater=yes + ]) +]) + +AM_CONDITIONAL([HAVE_PYTHON_312_OR_GREATER], [test "x$have_python_312_or_greater" = xyes]) + AS_IF([AE_IS_FEATURE_ENABLED([python-bindings]) || AE_IS_FEATURE_ENABLED([python-plugins])], [ AS_IF([test "x$have_python_dev" = xno], [ AC_MSG_ERROR([Cannot find a suitable python-config. You can override the python-config path with the PYTHON_CONFIG environment variable.])