[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_F77_WRAPPERS prob
From: |
Steven G. Johnson |
Subject: |
Re: AC_F77_WRAPPERS prob |
Date: |
Fri, 19 Jan 2001 23:37:13 -0500 (EST) |
Using the latest CVS sources (I just did cvs update), I can replicate the
problem of the configure giving:
checking for g77... g77
checking whether the Fortran 77 compiler works... no
configure: error: Fortran 77 compiler cannot create executables
for the configure.in file:
AC_INIT(configure.in)
AC_F77_FUNC(foobar)
I am using the latest stable Debian/PowerPC system, and I do have a
working g77 installed. In fact this is not the problem; the problem is
that it is not trying to compile the Fortran test program with the Fortran
compiler. As can be seen from config.log below, it is not using any
compiler at all (the compiler is "")!
If I add an explicit AC_PROG_CC before the AC_F77_FUNC (although this
should not be necessary...it is be AC_REQUIRE'd), then it tries compiling
the Fortran test program with gcc, and of course fails.
If I add an explicit AC_PROG_F77 before AC_F77_FUNC (again, this should
not be necessary), it works! Something is screwy with AC_REQUIRE?
Steven
config.log is:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure 2.49c, executed with
> ./configure
## ---------- ##
## Platform. ##
## ---------- ##
hostname = gil-galad
uname -m = ppc
uname -r = 2.2.17pre18
uname -s = Linux
uname -v = #1 Tue Aug 22 01:57:56 EDT 2000
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = ppc
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH = /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
## ------------ ##
## Core tests. ##
## ------------ ##
configure:891: checking for g77
configure:913: result: g77
configure:926: checking whether the Fortran 77 compiler works
configure:934: -o conftest conftest.c >&5
./configure: -o: command not found
configure:937: $? = 127
configure: failed program was:
program main
end
configure:970: result: no
configure:972: error: Fortran 77 compiler cannot create executables
configure: exit 77
- Re: AC_F77_WRAPPERS prob,
Steven G. Johnson <=