Browse Source

[5214] prefix can be still set to NONE

Francis Dupont 8 years ago
parent
commit
445ffa7ad0
1 changed files with 5 additions and 0 deletions
  1. 5 0
      configure.ac

+ 5 - 0
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.
 # 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