/[autoconf]/autoconf/doc/autoconf.texi
ViewVC logotype

Diff of /autoconf/doc/autoconf.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.771 by akim, Thu Oct 23 07:49:16 2003 UTC revision 1.772 by akim, Fri Oct 31 08:44:46 2003 UTC
# Line 5624  are for newer programs that can (or must Line 5624  are for newer programs that can (or must
5624  Fortran standards, and have output variables like @code{FC},  Fortran standards, and have output variables like @code{FC},
5625  @code{FCFLAGS}, and @code{FCLIBS}.  @code{FCFLAGS}, and @code{FCLIBS}.
5626    
5627  Except for two new macros @code{AC_FC_SRCEXT} and @code{AC_FC_FREEFORM}  Except for two new macros @code{AC_FC_SRCEXT} and
5628  (see below), the @code{FC} and @code{F77} macros behave almost identically, and so  @code{AC_FC_FREEFORM} (see below), the @code{FC} and @code{F77} macros
5629  they are documented together in this section.  behave almost identically, and so they are documented together in this
5630    section.
5631    
5632    
5633  @defmac AC_PROG_F77 (@ovar{compiler-search-list})  @defmac AC_PROG_F77 (@ovar{compiler-search-list})
# Line 5957  If @code{AC_FC_FREEFORM} succeeds in com Line 5958  If @code{AC_FC_FREEFORM} succeeds in com
5958  calls @ovar{action-if-success} (defaults to nothing). If it fails, it  calls @ovar{action-if-success} (defaults to nothing). If it fails, it
5959  calls @ovar{action-if-failure} (defaults to exiting with an error  calls @ovar{action-if-failure} (defaults to exiting with an error
5960  message).  message).
   
5961  @end defmac  @end defmac
5962    
5963  @node System Services  @node System Services
# Line 6186  test programs.  Use compilation flags: @ Line 6186  test programs.  Use compilation flags: @
6186  Do compilation tests using @code{FC} and use extension @file{.f} (or  Do compilation tests using @code{FC} and use extension @file{.f} (or
6187  whatever has been set by @code{AC_FC_SRCEXT}) for test programs.  Use  whatever has been set by @code{AC_FC_SRCEXT}) for test programs.  Use
6188  compilation flags: @code{FCFLAGS}.  compilation flags: @code{FCFLAGS}.
   
   
6189  @end table  @end table
6190  @end defmac  @end defmac
6191    
# Line 6215  AC_LANG_POP(Fortran 77) Line 6213  AC_LANG_POP(Fortran 77)
6213  @end example  @end example
6214  @end defmac  @end defmac
6215    
6216    @defmac AC_LANG_ASSERT (@var{language})
6217    @acindex{LANG_ASSERT} Check statically that the current language is
6218    @var{language}.  You should use this in your language specific macros
6219    to avoid that they be called with an inappropriate language.
6220    
6221    This macro runs only at @command{autoconf} time, and incurs no cost at
6222    @command{configure} time.  Sadly enough and because Autoconf is a two
6223    layer language @footnote{Because M4 is not aware of Sh code,
6224    especially conditionals, some optimizations that look nice statically
6225    may produce incorrect results at runtime.}, the macros
6226    @code{AC_LANG_PUSH}/@code{AC_LANG_POP} cannot be ``optimizing'',
6227    therefore as much as possible you ought to avoid using them to wrap
6228    your code, rather, require from the user to run the macro with a
6229    correct current language, and check it with @code{AC_LANG_ASSERT}.
6230    And anyway, that may help the user understand she is running a Fortran
6231    macro while expecting a result about her Fortran 77 compiler...
6232    @end defmac
6233    
6234    
6235  @defmac AC_REQUIRE_CPP  @defmac AC_REQUIRE_CPP
6236  @acindex{REQUIRE_CPP}  @acindex{REQUIRE_CPP}
6237  Ensure that whichever preprocessor would currently be used for tests has  Ensure that whichever preprocessor would currently be used for tests has
# Line 15707  introduced in this document. Line 15724  introduced in this document.
15724  @bye  @bye
15725    
15726  @c Local Variables:  @c Local Variables:
15727    @c fill-column: 72
15728  @c ispell-local-dictionary: "american"  @c ispell-local-dictionary: "american"
15729  @c End:  @c End:

Legend:
Removed from v.1.771  
changed lines
  Added in v.1.772

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26