aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-04-08 18:46:26 +0000
committerIan Lance Taylor <ian@airs.com>1996-04-08 18:46:26 +0000
commitd4be776500f61761726982bf6610818b52389f3e (patch)
treed13749c6d378683ede8aafbe8809eca6d6a43d7d /configure.in
parentb4cb4ea2ac9ffb33a98fa497db2f39da4b76c3b8 (diff)
downloadgdb-d4be776500f61761726982bf6610818b52389f3e.zip
gdb-d4be776500f61761726982bf6610818b52389f3e.tar.gz
gdb-d4be776500f61761726982bf6610818b52389f3e.tar.bz2
* configure.in: Permit --enable-shared to specify a list of
directories.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 534999c..f4d3e8b 100644
--- a/configure.in
+++ b/configure.in
@@ -161,7 +161,13 @@ if false && [ "${host}" = "${target}" ] && [ x${enable_shared} = x ]; then
esac
fi
-if [ x${enable_shared} = xyes ]; then
+case "${enable_shared}" in
+ yes) shared=yes ;;
+ no) shared=no ;;
+ *) shared=yes ;;
+esac
+
+if [ x${shared} = xyes ]; then
waugh=
case "${host}" in
hppa*) waugh=config/mh-papic ;;
@@ -664,7 +670,7 @@ if [ x${use_gnu_ld} = x ] ; then
fi
fi
-if [ x${enable_shared} = xyes ]; then
+if [ x${shared} = xyes ]; then
case "${target}" in
hppa*) target_makefile_frag=config/mt-papic ;;
i[345]86-*) target_makefile_frag=config/mt-x86pic ;;
@@ -720,7 +726,7 @@ esac
# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
# binutils tools will find libbfd.so.
-if [ "${enable_shared}" = "yes" ]; then
+if [ "${shared}" = "yes" ]; then
sed -e 's/^SET_LIB_PATH[ ]*=.*$/SET_LIB_PATH = $(REALLY_SET_LIB_PATH)/' \
Makefile > Makefile.tem
rm -f Makefile