aboutsummaryrefslogtreecommitdiff
path: root/libjava/configure.ac
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2011-02-14 14:28:00 +0000
committerGary Benson <gary@gcc.gnu.org>2011-02-14 14:28:00 +0000
commitfa0a5acc1e99434a33cfb8079724cca35171232c (patch)
treee8f57e6cce4c347c389b4b279784f714f6edf8c3 /libjava/configure.ac
parent88d0743e1aafb0b370a4b0aefd19d09917b1e043 (diff)
downloadgcc-fa0a5acc1e99434a33cfb8079724cca35171232c.zip
gcc-fa0a5acc1e99434a33cfb8079724cca35171232c.tar.gz
gcc-fa0a5acc1e99434a33cfb8079724cca35171232c.tar.bz2
PR libjava/47484: Install Python modules into versioned directory
From-SVN: r170131
Diffstat (limited to 'libjava/configure.ac')
-rw-r--r--libjava/configure.ac19
1 files changed, 8 insertions, 11 deletions
diff --git a/libjava/configure.ac b/libjava/configure.ac
index a45cfc9..8187eec 100644
--- a/libjava/configure.ac
+++ b/libjava/configure.ac
@@ -1843,21 +1843,18 @@ AC_SUBST(here)
# We get this from the environment.
AC_SUBST(GCJFLAGS)
+default_python_dir="/share/gcc-`cat ${srcdir}/../gcc/BASE-VER`/python/libjava"
AC_ARG_WITH([python-dir],
AS_HELP_STRING([--with-python-dir],
[the location to install Python modules. This path should NOT include the prefix.]),
- [with_python_dir=$withval], [with_python_dir=""])
+ [with_python_dir=$withval], [with_python_dir="${default_python_dir}"])
+
+# Needed for installing Python modules during make install.
+python_mod_dir="\${prefix}${with_python_dir}"
+
+# Needed for substituting into aot-compile*
+python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
-if test "x${with_python_dir}" = "x"
-then
- # Needed for installing Python modules during make install.
- python_mod_dir="\${prefix}/share/python"
- # Needed for substituting into aot-compile*
- python_mod_dir_expanded="${expanded_prefix}/share/python"
-else
- python_mod_dir="\${prefix}${with_python_dir}"
- python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
-fi
AC_MSG_RESULT(Python modules dir: ${python_mod_dir_expanded});
AC_SUBST(python_mod_dir)
AC_SUBST(python_mod_dir_expanded)