📄 readme.fortran_m4
字号:
The GNU autotools list f77 and f90 as supported languages. However, thesupport for them is weak, due largely to a lack of developers who havefamiliarity with fortran and the wide array of compilers available. Specifically, one must use automake 1.9.0 or greater to have the FCvariable work at all -- older versions always used F77COMPILE in thetarget rules. Libtool doesn't have a good way of specifying which PIC flag totest things with automatically. As a result, any fortran compiler thatdoes not use "-fpic" can't generate PIC which is the first step ingenerating a shared library. This is an autoconf/libtool interactionissue, with the onus on libtool to either have the correct libtool.m4 file which has the PIC flags hardcodes (as has recently been done forthe PG compilers), or to tell the autoconf guys how to get the users tospecify the PIC flag.In general, we need to do things the autotools way. This means that f90and f77 are separate languages -- I configure them in completelyseparate files. In addition to being consistent with autoconf, this has the advantage of allowing users to use only one compiler (pure f90say) and fix things relative to the other compiler. In the case ofautomake, one can configure the f90 compiler and then set F77=$FC inconfigure.in.In the documentation and such, I use FC and F90 interchangeably. FC isthe autotools awful variable name for any fortran version beyond F77.It has nothing to do with f2c. If you want to use an F90 variable inmakefiles, then set it manually in configure.in (F90=FC). All of thevariables are FC to be autoconf consistent.File layout and comments: f77.m4 and fc.m4 Replaces AC_PROG_FC and AC_PROG_F77 f77flags.m4 and fcflags.m4 Depends on compiler definitions as well as host. Keep separate from the compiler def to allow user friendliness: -if you change the compiler, it changes the default flags -specify flags (or flag type such as optimization or debug) independently of compiler f77interop.m4 and fcinterop.m4 Things required for interoperability. If you want to use this, it is HIGHLY recommended that you read the autoconf info file. They have lots of detailed information on interoperability issues. mpif77.m4 and mpif90.m4 This can be tricky because we want the mpi wrappers to be consistent with the chosen compiler/flags.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -