aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-04-18 21:35:49 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-04-18 21:35:49 +0000
commit0c7c67f076002dedbf8efd533e03e46c28c60ad4 (patch)
treef476d9fbee74bb483b0d157d6728f3228cb08353 /configure.in
parent51dcde6f95c8a107e0fb143210122eb49ee3c421 (diff)
downloadgcc-0c7c67f076002dedbf8efd533e03e46c28c60ad4.zip
gcc-0c7c67f076002dedbf8efd533e03e46c28c60ad4.tar.gz
gcc-0c7c67f076002dedbf8efd533e03e46c28c60ad4.tar.bz2
re PR libgcj/6158 (libgcj won't bootstrap on sparc-sun-solaris2.8 if already installed)
* configure.in: Disallow configuring libgcj when it is already installed and we're using Solaris 2.8 linker. Do enable libgcj on Solaris 2.8 by default. For PR libgcj/6158. From-SVN: r52497
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in36
1 files changed, 27 insertions, 9 deletions
diff --git a/configure.in b/configure.in
index e93e9c1..f0e05c9 100644
--- a/configure.in
+++ b/configure.in
@@ -1046,15 +1046,6 @@ case "${target}" in
fi
;;
sparc-*-solaris*)
- case "${host}" in
- sparc-*-solaris2.8)
- # According to Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>, libjava
- # won't build correctly on Solaris 8 if there's a
- # previously-installed version of GCC in the configured prefix.
- # This problem does not show up on earlier versions of Solaris.
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- esac
;;
v810-*-*)
noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld ${libstdcxx_version} opcodes target-libgloss ${libgcj}"
@@ -1428,6 +1419,33 @@ case "${host}" in
;;
esac
+# If we're building libgcj and we're using the Solaris 2.8 linker,
+# then we check for a known problem.
+if test "x${libgcj}" = x && test "${with_gnu_ld}" != yes \
+ && test "${is_cross_compiler}" = no; then
+
+ case "${host}" in
+ sparc-*-solaris2.8)
+ if test "$libdir" = '${exec_prefix}/lib';then
+ if test "$exec_prefix" = '$(prefix)'; then
+ tlibdir="$prefix/lib"
+ else
+ tlibdir="$exec_prefix/lib"
+ fi
+ else
+ tlibdir="$libdir"
+ fi
+ if test -f $tlibdir/libgcj.la; then
+ echo "*** You've already installed libgcj in $tlibdir." 1>&2
+ echo " This causes problems when rebuilding libgcj with the Solaris 2.8 linker." 1>&2
+ echo " Either disable the libgcj build, or remove the" 1>&2
+ echo " already-installed libgcj files." 1>&2
+ exit 1
+ fi
+ ;;
+ esac
+fi
+
# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
# binutils tools will find libbfd.so.
if [ "${shared}" = "yes" ]; then