Commit 445ffa7a authored by Francis Dupont's avatar Francis Dupont
Browse files

[5214] prefix can be still set to NONE

parent 6fb22c27
...@@ -416,12 +416,17 @@ if test "x$enable_shell" != xno ; then ...@@ -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. # We try to find 3.x first. If not found, we can do with 2.7.
AM_PATH_PYTHON([2.7]) AM_PATH_PYTHON([2.7])
# pkgpythondir needs to be expanded # pkgpythondir needs to be expanded
saved_prefix="$prefix"
if test "$prefix" = "NONE"; then
prefix=$ac_default_prefix
fi
PKGPYTHONDIR="$pkgpythondir" PKGPYTHONDIR="$pkgpythondir"
OLD= OLD=
while test "x$OLD" != "x$PKGPYTHONDIR"; do while test "x$OLD" != "x$PKGPYTHONDIR"; do
OLD="$PKGPYTHONDIR" OLD="$PKGPYTHONDIR"
eval PKGPYTHONDIR="\"$OLD\"" eval PKGPYTHONDIR="\"$OLD\""
done done
prefix="$saved_prefix"
else else
PYTHON=no PYTHON=no
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment