From e3fcdc051ffbaa5993ccc2c615c02cc5fb001c12 Mon Sep 17 00:00:00 2001 From: Sergey Kosukhin <sergey.kosukhin@mpimet.mpg.de> Date: Fri, 27 Sep 2024 15:03:07 +0200 Subject: [PATCH] Simplify configure-time checks for Python --- configure.ac | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/configure.ac b/configure.ac index 2bf08610..91d482af 100644 --- a/configure.ac +++ b/configure.ac @@ -119,18 +119,7 @@ AS_VAR_IF([enable_check], [yes], [CHECK_CLIBS=;CHECK_CFLAGS=]) AM_CONDITIONAL([ENABLE_CHECK], [test x"$enable_check" = xyes]) -AS_VAR_IF([enable_python], [yes], - [dnl -dnl AM_PATH_PYTHON does not run ACTION-IF-NOT-FOUND when the PYTHON provided by the user -dnl is too old: - m4_define([mtime_python_min_version], [2.7])dnl - mtime_python_found=no - AS_IF([test -n "$PYTHON"], - [AM_PYTHON_CHECK_VERSION([$PYTHON], [mtime_python_min_version], - [mtime_python_found=yes])], - [AM_PATH_PYTHON([mtime_python_min_version], [mtime_python_found=yes], [:])]) - AS_VAR_IF([mtime_python_found], [no], - [AC_MSG_FAILURE([cannot find suitable Python interpreter])])]) +AS_VAR_IF([enable_python], [yes], [AM_PATH_PYTHON([2.7])]) AM_CONDITIONAL([ENABLE_PYTHON], [test x"$enable_python" = xyes]) AM_MISSING_PROG([RAGEL], [ragel]) -- GitLab