aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/configure.in
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-09-14 00:04:09 +0000
committerFred Fish <fnf@specifix.com>1996-09-14 00:04:09 +0000
commit20ece5977c43da03f0ae99bab2847f4c8d474fbf (patch)
treef043a5a21f52ae907da23caee5e180b5b622bdcb /gdb/testsuite/configure.in
parentf8b82e49d23b3152120632bd697af35149061c48 (diff)
downloadgdb-20ece5977c43da03f0ae99bab2847f4c8d474fbf.zip
gdb-20ece5977c43da03f0ae99bab2847f4c8d474fbf.tar.gz
gdb-20ece5977c43da03f0ae99bab2847f4c8d474fbf.tar.bz2
* Makefile.in (RPATH_ENVVAR): New var, set to @RPATH_ENVVAR@.
(just-check): Add shared library paths for libstdc++, tk, tcl, bfd, and opcodes to the environment variable specified in RPATH_ENVVAR. * configure.in: Add support to recognize --enable-shared flag and generate correct value for RPATH_ENVVAR. * configure: Regenerated with autoconf.
Diffstat (limited to 'gdb/testsuite/configure.in')
-rw-r--r--gdb/testsuite/configure.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/gdb/testsuite/configure.in b/gdb/testsuite/configure.in
index 6cbf599..9026b71 100644
--- a/gdb/testsuite/configure.in
+++ b/gdb/testsuite/configure.in
@@ -34,6 +34,26 @@ case "${target}" in
fi ;;
esac
+# Begin stuff to support --enable-shared
+AC_ARG_ENABLE(shared,
+[ --enable-shared use shared libraries],
+[case "${enableval}" in
+ yes) shared=true ;;
+ no) shared=false ;;
+ *) shared=true ;;
+esac])dnl
+RPATH_ENVVAR=LD_LIBRARY_PATH
+# If we have shared libraries, try to set RPATH_ENVVAR reasonably.
+if test "${shared}" = "true"; then
+ case "${host}" in
+ *-*-hpux*)
+ RPATH_ENVVAR=SHLIB_PATH
+ ;;
+ esac
+fi
+AC_SUBST(RPATH_ENVVAR)
+# End stuff to support --enable-shared
+
# configure the subdirectories too
AC_CONFIG_SUBDIRS($configdirs)