diff options
author | gary <gary@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-14 14:28:00 +0000 |
---|---|---|
committer | gary <gary@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-14 14:28:00 +0000 |
commit | eff5f205c1f3ef1ac0652aba6bf16f196beecbc5 (patch) | |
tree | e8f57e6cce4c347c389b4b279784f714f6edf8c3 /libjava | |
parent | fc92d2d1270264b85f1dc803a1076c09ed14a8ec (diff) | |
download | gcc-eff5f205c1f3ef1ac0652aba6bf16f196beecbc5.tar.gz |
PR libjava/47484: Install Python modules into versioned directory
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170131 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 7 | ||||
-rwxr-xr-x | libjava/configure | 19 | ||||
-rw-r--r-- | libjava/configure.ac | 19 |
3 files changed, 23 insertions, 22 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 84ff74d886f..f74b61aba0b 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,10 @@ +2011-02-14 Gary Benson <gbenson@redhat.com> + + PR libjava/47484 + * configure.ac (python_mod_dir, python_mod_dir_expanded): + Install Python modules into versioned directory. + * configure: Regenerate. + 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * configure: Regenerate. diff --git a/libjava/configure b/libjava/configure index d4a97ba22ba..f79e53b1e8d 100755 --- a/libjava/configure +++ b/libjava/configure @@ -24631,25 +24631,22 @@ here=`${PWDCMD-pwd}` # We get this from the environment. +default_python_dir="/share/gcc-`cat ${srcdir}/../gcc/BASE-VER`/python/libjava" # Check whether --with-python-dir was given. if test "${with_python_dir+set}" = set; then : withval=$with_python_dir; with_python_dir=$withval else - with_python_dir="" + with_python_dir="${default_python_dir}" fi -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 +# 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}" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; }; diff --git a/libjava/configure.ac b/libjava/configure.ac index a45cfc967d4..8187eecbd40 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) |