Please check the GNU Autoconf Macro Archive for Updates
AC-Archive
Autoconf Macro Archive

ac-archive.sf.net: - Project CVS - Download
Macro Index
- AM Support
- C++ Support
- C Support
- Fortran Support
- Java Support
- Cross Compilation
- Installed Packages
- Miscellaneous
- LaTeX Support
- Uncategorized
- archive macros
- adl's macros
- bkorb's macros
- guidod's macros
- latex's macros
- other's macros
- rleigh's macros
- obsoleted macros
- released macros
- search index

Documentation
- Contribute!
- History
- acincludedir m4
- acinclude (tool)
- macro howto
- ax tricks
- maintainers
- License
- Topics

generated...
2007-08-05

(C) 2007 guidod
Download the M4 Source.

ax_f90_module

Back to the Main Page.

Synopsis
AX_F90_MODULE(MODULE, MODULE-REGEXP, FUNCTION-BODY [, SEARCH-PATH [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
, 
Version

2005-01-14

Author

Luc Maisonobe <luc@spaceroots.org>

License

AllPermissive
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. Users of this software should generally follow the principles of the MIT License includings its disclaimer.

Category

cryp.to ac-archive's Fortran Support (released)

Documentation

Set up the compiler flags to use a given fortran 90 module MODULE is the name of the module. MODULE-REGEXP is a regular expression (used by find) matched by the filename of the module. FUNCTION-BODY is the body of a function (including the 'use' statement and the call to a function defined by the module) SEARCH-PATH is a colon-separated list of directories that will be recursively searched for modules files. If empty, the search path will be composed of $prefix, $ac_default_prefix, and all directories exactly one level *above* the directories in $LD_LIBRARY_PATH (the rationale is that when libraries are put in /some/path/lib, the modules are often put in a directory like /some/path/include or /some/path/mod or something similar). An output variable named F90_MODULE_xxx will be set up with the proper flag for substitution in Makefiles (xxx is built from the first argument, with autoconf traditional escapes).

M4 Source Code
AC_DEFUN([AX_F90_MODULE],[
 AC_REQUIRE([AX_F90_MODULE_FLAG])
 AX_F90_INTERNAL_HEADMOD([$1 fortran 90 module],[$2],"$ax_f90_modflag",
                         [$3],AS_TR_SH(F90_MODULE_$1),[$4],[$5],[$6])
])