diff options
author | James Laird <jlaird@hdfgroup.org> | 2005-04-04 21:17:51 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2005-04-04 21:17:51 (GMT) |
commit | b296a419c4ed2cc43cab53b78a40cbf1346f2362 (patch) | |
tree | 7a652352898be1a2e963c9e700228c00a878657d /src | |
parent | 7f5e1dfe31696bddb3967865af52801a2b38bb7e (diff) | |
download | hdf5-b296a419c4ed2cc43cab53b78a40cbf1346f2362.zip hdf5-b296a419c4ed2cc43cab53b78a40cbf1346f2362.tar.gz hdf5-b296a419c4ed2cc43cab53b78a40cbf1346f2362.tar.bz2 |
[svn-r10534] Purpose:
Configuration feature
Description:
Different Fortran compilers mangle function names in different ways
(upper case, lower case, adding underscores). To link between
Fortran and C functions, we need to know what a given function's
name is under a given compiler.
Solution:
Use autoconf's FC_WRAPPERS check to determine the Fortran
naming scheme and define the FC_FUNC_ macro to name our
functions (in H5f90proto.h). Removed references to
our old FNAME macro, as well as flags that indicated whether
function names were upper or lower case.
Platforms tested:
mir, pommier, modi4, copper, more
Diffstat (limited to 'src')
-rw-r--r-- | src/H5config.h.in | 14 | ||||
-rw-r--r-- | src/Makefile.in | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/H5config.h.in b/src/H5config.h.in index 51b6b58..5cfb439 100644 --- a/src/H5config.h.in +++ b/src/H5config.h.in @@ -11,6 +11,20 @@ /* Define if `dev_t' is a scalar */ #undef DEV_T_IS_SCALAR +/* Define to dummy `main' function (if any) required to link to the Fortran + libraries. */ +#undef FC_DUMMY_MAIN + +/* Define if F77 and FC dummy `main' functions are identical. */ +#undef FC_DUMMY_MAIN_EQ_F77 + +/* Define to a macro mangling the given C identifier (in lower and upper + case), which must not contain underscores, for linking with Fortran. */ +#undef FC_FUNC + +/* As FC_FUNC, but for C identifiers containing underscores. */ +#undef FC_FUNC_ + /* Define if your system roundup accurately convert floating-point to unsigned long long values. */ #undef FP_TO_ULLONG_BOTTOM_BIT_WORKS diff --git a/src/Makefile.in b/src/Makefile.in index 9fc9c31..80687f6 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -224,6 +224,7 @@ F9XMODFLAG = @F9XMODFLAG@ F9XSUFFIXFLAG = @F9XSUFFIXFLAG@ FC = @FC@ FCFLAGS = @FCFLAGS@ +FCLIBS = @FCLIBS@ FFLAGS = @FFLAGS@ FILTERS = @FILTERS@ FSEARCH_DIRS = @FSEARCH_DIRS@ |