]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5196] Fixed the python detection (hack the list vs call twice the macro)
authorFrancis Dupont <fdupont@isc.org>
Mon, 3 Apr 2017 21:15:35 +0000 (23:15 +0200)
committerFrancis Dupont <fdupont@isc.org>
Mon, 3 Apr 2017 21:15:35 +0000 (23:15 +0200)
configure.ac

index 9498b045163061b23be76016ae43a33285e7998e..19ee2e9349d984ee28c4d989021547b3e2caee60 100644 (file)
@@ -520,13 +520,13 @@ AC_ARG_ENABLE(shell, [AC_HELP_STRING([--enable-shell],
   enable_shell=$enableval, enable_shell=no)
 
 PKGPYTHONDIR=
+m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
+ [python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 dnl
+  python3.3 python3.2 python3.1 python3.0 python python2 python2.7])
 if test "x$enable_shell" != xno ; then
 # If kea-shell is enabled, we really need python. 2.7 or anything newer will do.
 # We try to find 3.x first. If not found, we can do with 2.7.
-  AM_PATH_PYTHON([3], [found="yes"], [found="no"])
-  if test "x$found" = xno ; then
-    AM_PATH_PYTHON([2.7])
-  fi
+  AM_PATH_PYTHON([2.7])
   # pkgpythondir needs to be expanded
   PKGPYTHONDIR="$pkgpythondir"
   OLD=