From: Francis Dupont Date: Mon, 3 Apr 2017 21:15:35 +0000 (+0200) Subject: [5196] Fixed the python detection (hack the list vs call twice the macro) X-Git-Tag: Kea-1.2.0-beta~19^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3db2d05a3a24f1f9e57f359a01e4d9a14249d09;p=thirdparty%2Fkea.git [5196] Fixed the python detection (hack the list vs call twice the macro) --- diff --git a/configure.ac b/configure.ac index 9498b04516..19ee2e9349 100644 --- a/configure.ac +++ b/configure.ac @@ -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=