Re: autotools, preprocessors, and fortran 90

Ralf Wildenhues <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization Department of Numerical Simulation, University of Bonn
Message-ID <[email protected]>
* John wrote on Tue, Dec 12, 2006 at 01:02:32PM CET:
> 
> Is there some way to avoid having to use the capital F's?

Not easily, without changes to Automake.

> Ralf Wildenhues wrote:
> > With respect to portability among compilers, this example is lacking the
> > flag for source file extensions, AC_FC_SRCEXT([F95]).  I omitted it
> > because Automake does not automatically add support for it yet
> > (for .f90 and .f95, that has been added in Automake 1.10).  If you need
> > this, write me, and I'll post an updated example.
> 
> I use the f90 extension regardless of whether the file is f90 or f95, so
> I don't think I need to add this support.

The issue is a bit different.  If you intend your project to be portable
to non-GNU compilers, then you may need this.  For example for some AIX 
compiler drivers (e.g., xlf95 for compiling a file named *.F90), and I
think maybe for Intel ifort as well.

Automake-1.10 support in those cases is incomplete: you will have to
override the inference rules in that case.  I intend to fix this soon.

Cheers,
Ralf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.