bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't use Fortran 90/95 compiler for F77


From: Ralf Wildenhues
Subject: Re: Can't use Fortran 90/95 compiler for F77
Date: Thu, 5 Nov 2009 07:00:50 +0100
User-agent: Mutt/1.5.20 (2009-08-09)

* Daily, Jeff A wrote on Thu, Nov 05, 2009 at 12:20:28AM CET:
> It looks like this is an issue of saving the users from themselves.
> Using the Fortran 77 alias on this BGP system sets "-qfixed" as the
> default for xlf.  Using any later Fortran compiler assumes free form
> source regardless of the file's extension.

That matches my recollections on this compiler, thanks.

> The problems don't end
> there, however, since anything but the Fortran 77 compiler barfs on the
> "c" comment indicator in our Fortran 77 source files.

No idea about that.

> And worse yet, for the xlf compilers you must use -WF,-D
> instead of simply -D for the customary -DHAVE_CONFIG_H.

Yeah, I know.  We should fix Automake/Autoconf to cope better with this.
For the moment, if you don't compile any C, C++, or similar sources in
the directory where you compile the Fortran code, you should be able to
put something like this workaround in Makefile.am:
  DEFS = -WF,-DHAVE_CONFIG_H

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]