summaryrefslogtreecommitdiffstats
path: root/config/apple
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2010-05-17 22:23:23 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2010-05-17 22:23:23 (GMT)
commita41fb65b7ca24b5a2a6d4a73af135caac39bb7ea (patch)
treefa4a0d4f5cad3429794ef2c73fe355467eb89092 /config/apple
parentb85900177f4b1dc58a6a295e58047b1e51b02e89 (diff)
downloadhdf5-a41fb65b7ca24b5a2a6d4a73af135caac39bb7ea.zip
hdf5-a41fb65b7ca24b5a2a6d4a73af135caac39bb7ea.tar.gz
hdf5-a41fb65b7ca24b5a2a6d4a73af135caac39bb7ea.tar.bz2
[svn-r18836] Added code to config files, libhdf5.settings.in and configure.in to add compiler version information for fortran and C++ in the settings file and the configure output for our common compilers on linux, solaris, and mac(gnu only).
Tested: amani, jam, linew (h5committest) and with configure on these machines and tejeda.
Diffstat (limited to 'config/apple')
-rw-r--r--config/apple30
1 files changed, 30 insertions, 0 deletions
diff --git a/config/apple b/config/apple
index 8c4cc8e..10674fb 100644
--- a/config/apple
+++ b/config/apple
@@ -55,3 +55,33 @@ if test "X-" != "X-$enable_fortran"; then
enable_shared="no"
fi
+# compiler version strings
+case $CC in
+ *gcc*)
+ cc_version_info=`$CC $CFLAGS $H5_CFLAGS --version 2>&1 | grep -v 'PathScale' |\
+ grep 'GCC' | sed 's/.*\((GCC) [-a-z0-9\. ]*.*\)/\1/'`
+ ;;
+
+ *)
+ echo "No match to get cc_version_info for $CC"
+ ;;
+esac
+
+case $FC in
+ *gfortran*)
+ fc_version_info=`$FC $FCFLAGS $H5_FCFLAGS --version 2>&1 |\
+ grep 'GCC' | sed 's/\(.*(GCC) [-a-z0-9\. ]*\).*/\1/'`
+ ;;
+esac
+
+# get c++ version info
+case $CXX in
+ *g++*)
+ cxx_version_info=`$CXX $CXXFLAGS $H5_CXXFLAGS --version 2>&1 |\
+ grep 'GCC' | sed 's/.*\((GCC) [-a-z0-9\. ]*.*\)/\1/'`
+ ;;
+ *)
+ echo "No match to get cxx_version_info for $CXX"
+ ;;
+esac
+