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.

40 lines
1.8KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_f90_header.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_F90_HEADER(HEADER, HEADER-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 header. HEADER is
  12. # the name of the header. HEADER-REGEXP is a regular expression (used by
  13. # find) matched by the filename of the header. FUNCTION-BODY is the body
  14. # of a 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 header 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 headers are often put in a directory like
  21. # /some/path/include). An output variable named F90_HEADER_xxx will be set
  22. # up with the proper flag for substitution in Makefiles (xxx is built from
  23. # the first argument, with autoconf traditional escapes).
  24. #
  25. # LICENSE
  26. #
  27. # Copyright (c) 2008 Luc Maisonobe <luc@spaceroots.org>
  28. #
  29. # Copying and distribution of this file, with or without modification, are
  30. # permitted in any medium without royalty provided the copyright notice
  31. # and this notice are preserved. This file is offered as-is, without any
  32. # warranty.
  33. #serial 8
  34. AC_DEFUN([AX_F90_HEADER],[
  35. AX_F90_INTERNAL_HEADMOD([$1 fortran 90 header],[$2],-I,
  36. [$3],AS_TR_SH(F90_HEADER_$1),[$4],[$5],[$6])
  37. ])