diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-07-28 00:24:17 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-07-28 00:24:17 (GMT) |
commit | ca7c9dfeda319c8472a6beae93600964e5c87a52 (patch) | |
tree | b57f4e73e24d5b46cf27c9e350e709202086c94b | |
parent | bcd9a15196647bba307f233b2e45e855d93e82e9 (diff) | |
download | hdf5-ca7c9dfeda319c8472a6beae93600964e5c87a52.zip hdf5-ca7c9dfeda319c8472a6beae93600964e5c87a52.tar.gz hdf5-ca7c9dfeda319c8472a6beae93600964e5c87a52.tar.bz2 |
[svn-r17247] Bug fix (1301 and 1468)
PathScale was mistaken as the Gcc compiler. No error for this version
but went ahead to fix it.
Solution:
Added a pre-condition to detect pathScale compiler before Gcc is
accepted.
Tested:
Sandia Glory where PathScale compiler is available.
-rw-r--r-- | config/gnu-flags | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/gnu-flags b/config/gnu-flags index d225e3c..cfd63ce 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -26,8 +26,10 @@ # cc_version: Version number: 2.91.60, 2.7.2.1 # if test X = "X$cc_flags_set"; then - cc_version="`$CC $CFLAGS -v 2>&1 |grep 'gcc version' |\ - sed 's/.*gcc version \([-a-z0-9\.]*\).*/\1/'`" + # PathScale compiler spits out gcc version string too. Need to + # filter it out. + cc_version="`$CC $CFLAGS $H5_CFLAGS -v 2>&1 | grep -v 'PathScale' |\ + grep 'gcc version' | sed 's/.*gcc version \([-a-z0-9\.]*\).*/\1/'`" cc_vendor=`echo $cc_version |sed 's/\([a-z]*\).*/\1/'` cc_version=`echo $cc_version |sed 's/[-a-z]//g'` if test X = "X$cc_vendor" -a X != "X$cc_version"; then |