Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.8KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_f90_module.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_F90_MODULE(MODULE, MODULE-REGEXP, FUNCTION-BODY [, SEARCH-PATH [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
  8. #
  9. # DESCRIPTION
  10. #
  11. # Set up the compiler flags to use a given fortran 90 module MODULE is the
  12. # name of the module. MODULE-REGEXP is a regular expression (used by find)
  13. # matched by the filename of the module. FUNCTION-BODY is the body of a
  14. # function (including the 'use' statement and the call to a function
  15. # defined by the module) SEARCH-PATH is a colon-separated list of
  16. # directories that will be recursively searched for modules files. If
  17. # empty, the search path will be composed of $prefix, $ac_default_prefix,
  18. # and all directories exactly one level *above* the directories in
  19. # $LD_LIBRARY_PATH (the rationale is that when libraries are put in
  20. # /some/path/lib, the modules are often put in a directory like
  21. # /some/path/include or /some/path/mod or something similar). An output
  22. # variable named F90_MODULE_xxx will be set up with the proper flag for
  23. # substitution in Makefiles (xxx is built from the first argument, with
  24. # autoconf traditional escapes).
  25. #
  26. # LICENSE
  27. #
  28. # Copyright (c) 2009 Luc Maisonobe <luc@spaceroots.org>
  29. #
  30. # Copying and distribution of this file, with or without modification, are
  31. # permitted in any medium without royalty provided the copyright notice
  32. # and this notice are preserved. This file is offered as-is, without any
  33. # warranty.
  34. #serial 10
  35. AC_DEFUN([AX_F90_MODULE],[
  36. AC_REQUIRE([AX_F90_MODULE_FLAG])
  37. AX_F90_INTERNAL_HEADMOD([$1 fortran 90 module],[$2],"$ax_cv_f90_modflag",
  38. [$3],AS_TR_SH(F90_MODULE_$1),[$4],[$5],[$6])
  39. ])