diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-04-16 18:36:34 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-04-16 18:36:34 (GMT) |
commit | 0cc9b0c79f9cc2df7d6101896effc53ca70c637a (patch) | |
tree | d09f664a9f155663b8c964ab2a5d5995bca32234 /configure.ac | |
parent | 7984de553e8ad2bbafa0840b207e762e2ed68f58 (diff) | |
download | hdf5-0cc9b0c79f9cc2df7d6101896effc53ca70c637a.zip hdf5-0cc9b0c79f9cc2df7d6101896effc53ca70c637a.tar.gz hdf5-0cc9b0c79f9cc2df7d6101896effc53ca70c637a.tar.bz2 |
[svn-r26825] Added include for preprocessing fortran files with configure definitions
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 9fd3817..9555d37 100644 --- a/configure.ac +++ b/configure.ac @@ -389,6 +389,13 @@ fi if test "X$HDF_FORTRAN" = "Xyes"; then +## We will output an include file for Fortran, H5config_f.inc which +## contains various configure definitions used by the Fortran Library. +## Prepend H5_ to all macro names. This avoids name conflict between HDF5 macro +## names and those generated by another software package that uses the HDF5 library. + AC_CONFIG_HEADERS([fortran/src/H5config_f.inc], + [sed -i '1d;s%^/\* \(.*\) \*/%\1%;s/#define /#define H5_/;s/#undef /#undef H5_/' fortran/src/H5config_f.inc]) + AC_SUBST([FC]) HDF_FORTRAN=yes AC_SUBST([HAVE_FORTRAN_2003]) |