1F77(3)                User Contributed Perl Documentation               F77(3)
2
3
4

NAME

6       ExtUtils::F77 - Simple interface to F77 libs
7

DESCRIPTION

9       This module tries to figure out how to link C programs with Fortran
10       subroutines on your system. Basically one must add a list of Fortran
11       runtime libraries. The problem is their location and name varies with
12       each OS/compiler combination!
13
14       This module tries to implement a simple 'rule-of-thumb' database for
15       various flavours of UNIX systems.  A simple self-documenting Perl
16       database of knowledge/code for figuring out how to link for various
17       combinations of OS and compiler is embedded in the modules Perl code.
18       Please help save the world by sending database entries for your system
19       to karl_pgplot@mac.com
20
21       The library list which the module returns can be explicitly overridden
22       by setting the environment variable F77LIBS, e.g.
23
24         % setenv F77LIBS "-lfoo -lbar"
25         % perl Makefile.PL
26         ...
27

SYNOPSIS

29         use ExtUtils::F77;               # Automatic guess
30         use ExtUtils::F77 qw(sunos);     # Specify system
31         use ExtUtils::F77 qw(linux g77); # Specify system and compiler
32         $fortranlibs = ExtUtils::F77->runtime;
33

METHODS

35       The following methods are provided:
36
37       ·   runtime
38
39           Returns a list of F77 runtime libraries.
40
41             $fortranlibs = ExtUtils::F77->runtime;
42
43       ·   runtimeok
44
45           Returns TRUE only if runtime libraries have been found
46           successfully.
47
48       ·   trail_
49
50           Returns true if F77 names have trailing underscores.
51
52       ·   compiler
53
54           Returns command to execute the compiler (e.g. 'f77').
55
56       ·   cflags
57
58           Returns compiler flags.
59
60       ·   testcompiler
61
62           Test to see if compiler actually works.
63
64       More methods  will probably be added in the future.
65

AUTHOR

67       Karl Glazebrook (kgb@aaoepp.aao.GOV.AU).
68
69
70
71perl v5.12.0                      2007-04-02                            F77(3)
Impressum