From aa048ea6ff2db746828a7cea3a3a1962a5b4f23d Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 1 Jun 2005 18:20:22 -0500 Subject: [svn-r10839] Purpose: improvement. Description: hdf5_mpi_complex_derived_datatype_works is hardset to no but newer IRIX64 systems have it working. Changed the code to detect the compiler version and set hdf5_mpi_complex_derived_datatype_works to no for older compilers only. Platforms tested: modi4 for the no effect. Misc. update: --- config/irix6.x | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/config/irix6.x b/config/irix6.x index 8696021..2bc87c0 100644 --- a/config/irix6.x +++ b/config/irix6.x @@ -172,7 +172,19 @@ hdf5_cv_sw_ulong_to_fp_bottom_bit_works=${hdf5_cv_sw_ulong_to_fp_bottom_bit_work # (1/5/05 - SLU) hdf5_cv_sw_ldouble_to_integer_works=${hdf5_cv_sw_ldouble_to_integer_works='no'} hdf5_cv_sw_integer_to_ldouble_works=${hdf5_cv_sw_integer_to_ldouble_works='no'} -# For IRIX 6.5, any version that is older than MIPSpro 7.3.1.3m, -#the MPI derived datatype is not working. -hdf5_mpi_complex_derived_datatype_works=${hdf5_mpi_complex_derived_datatype_works='no'} +# For IRIX 6.5, any version that is older than MIPSpro 7.3.1.3m, +# the MPI derived datatype is not working. +# Versions 7.4.2m or newer work. +# Fix $hdf5_mpi_complex_derived_datatype_works if it is not set and is using cc. +if [ -z "$hdf5_mpi_complex_derived_datatype_works" -a $CC_BASENAME = cc ]; then + ccversion=`$CC -version 2>&1 | sed -e 's/.*Version //p'` + ccversion1=`echo $ccversion | cut -f1 -d.` + ccversion2=`echo $ccversion | cut -f2 -d.` + # Assume all versions 7.4.* or newer are okay + # and assume ccversion2 is never larger than 99. + ccversionval=`expr $ccversion1 \* 100 + $ccversion2` + if [ $ccversionval -lt 704 ]; then + hdf5_mpi_complex_derived_datatype_works='no' + fi +fi -- cgit v0.12