]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5214] prefix can be still set to NONE
authorFrancis Dupont <fdupont@isc.org>
Thu, 11 May 2017 23:06:28 +0000 (01:06 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 11 May 2017 23:06:28 +0000 (01:06 +0200)
configure.ac

index e25dfd8e28ceac171129d0b4e44b31caacd77e06..b5018be8cecd1072ae023617f6b0cc57c39007d0 100644 (file)
@@ -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