From: Francis Dupont Date: Thu, 11 May 2017 23:06:28 +0000 (+0200) Subject: [5214] prefix can be still set to NONE X-Git-Tag: trac5243_base~15^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=445ffa7ad07e48f12342557df0f79e0aa86ccff3;p=thirdparty%2Fkea.git [5214] prefix can be still set to NONE --- diff --git a/configure.ac b/configure.ac index e25dfd8e28..b5018be8ce 100644 --- a/configure.ac +++ b/configure.ac @@ -416,12 +416,17 @@ if test "x$enable_shell" != xno ; then # We try to find 3.x first. If not found, we can do with 2.7. AM_PATH_PYTHON([2.7]) # pkgpythondir needs to be expanded + saved_prefix="$prefix" + if test "$prefix" = "NONE"; then + prefix=$ac_default_prefix + fi PKGPYTHONDIR="$pkgpythondir" OLD= while test "x$OLD" != "x$PKGPYTHONDIR"; do OLD="$PKGPYTHONDIR" eval PKGPYTHONDIR="\"$OLD\"" done + prefix="$saved_prefix" else PYTHON=no fi