summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2005-03-02 01:01:45 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2005-03-02 01:01:45 (GMT)
commit921d331fc8bd9cb5f5d855be8cd44cba4af0307a (patch)
tree2043f14ee45fa133f197c0f82d3cced7131f869e /configure
parent7baf33d19bcb13d1ed37f1216203da6f6b1a6750 (diff)
downloadhdf5-921d331fc8bd9cb5f5d855be8cd44cba4af0307a.zip
hdf5-921d331fc8bd9cb5f5d855be8cd44cba4af0307a.tar.gz
hdf5-921d331fc8bd9cb5f5d855be8cd44cba4af0307a.tar.bz2
[svn-r10114] Purpose:
Bug fix Description: Libtool simply doesn't seem to support shared libraries for pgcc, but tries to build them anyway. Solution: Edited configure to disable shared libraries in libtool script when pgcc is being used. This is a more drastic fix than the problem requires, but it is difficult to detect when this problem will occur. There is discussion online about shared libraries with pgcc, so hopefully libtool will support pgcc and this fix will become unneccesary. Platforms tested: sol, copper, mir, sleipnir Misc. update:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index ff08fb8..ead4af0 100755
--- a/configure
+++ b/configure
@@ -20499,6 +20499,15 @@ EOF
;;
esac
+if (${CC-cc} -V 2>&1 | grep '^pgcc') > /dev/null; then
+ echo 'disabling shared libraries for pgcc'
+ed - $ofile <<EOF 2> /dev/null
+/^build_libtool_libs=yes/s//build_libtool_libs=no/
+w
+q
+EOF
+fi
+
case "$INSTALL" in
*install-sh*)
INSTALL='\${top_srcdir}/bin/install-sh -c'