summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-07-05 20:06:35 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-07-05 20:06:35 (GMT)
commit3019e7a31cd02eee24e0b57067dfae7a93cb32ff (patch)
tree23a3c65d09a649cf6507440e14d95f44d1ffec38 /configure
parentd47f56d23462b978f0cef42957e7b4ef0c698d96 (diff)
downloadhdf5-3019e7a31cd02eee24e0b57067dfae7a93cb32ff.zip
hdf5-3019e7a31cd02eee24e0b57067dfae7a93cb32ff.tar.gz
hdf5-3019e7a31cd02eee24e0b57067dfae7a93cb32ff.tar.bz2
[svn-r11021] Purpose: Add detection.
Description: pgcc version 6.0x have optimization (-O, -O2, or -O3) problem. It caused multi driver test to fail. The problem happened in a macro definition. Solution: Detect these versions and add option "-Mx,28,0x8" to the compiler to avoid the problem if optimization is enable. Platforms tested: mir -simple change.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index 1fe503d..e44ecc1 100755
--- a/configure
+++ b/configure
@@ -7881,6 +7881,7 @@ EOF
;;
esac
+
case "$INSTALL" in
*install-sh*)
INSTALL='\${top_srcdir}/bin/install-sh -c'
@@ -36566,6 +36567,10 @@ if test -n "$cc_vendor" && test -n "$cc_version"; then
CC_VERSION="$CC_VERSION ($cc_vendor-$cc_version)"
fi
+if (${CC-cc} -V 2>&1 | grep '^pgcc 6.0') > /dev/null && test "X$enable_production" = "Xyes"; then
+ CC="${CC-cc} -Mx,28,0x8"
+fi
+
if test -x /bin/pwd; then
pwd=/bin/pwd
else