[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fix for detecting fortran libraries on Darwin
From: |
Andreas Waechter |
Subject: |
fix for detecting fortran libraries on Darwin |
Date: |
Thu, 5 Feb 2004 14:57:38 -0500 (EST) |
Hi,
Autoconf 2.59 doesn't seem to handle the detection of fortran libraries
correctly on newer Darwin (MacOS) systems. Typical error message is
checking for Fortran libraries of f77... -lcrt2.o
-L/finkinstalled/lib/gcc/powerpc-apple-darwin7.0.0/3.4
-L/finkinstalled/lib/gcc/powerpc-apple-darwin7.0.0/3.4/../../..
-lfrtbegin -lg2c -lSystem
checking for dummy main to link with Fortran libraries... unknown
configure: error: linking to Fortran libraries from C fails
Problem is that '-lcrt2.o' is thought to be part of the fortran libraries.
I seem to have fixed it by changing line 650 in lib/autoconf/fortran.m4
from
< -lang* | -lcrt[[01]].o | -lcrtbegin.o | -lc | -lgcc | -libmil |
-LANG:=*)
to
> -lang* | -lcrt[[012]].o | -lcrtbegin.o | -lc | -lgcc | -libmil |
> -LANG:=*)
This seems also to be the cause for the failure reported in
http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
Hope this helps.
Andreas
- fix for detecting fortran libraries on Darwin,
Andreas Waechter <=