This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [toplevel] GCC_NO_EXECUTABLES
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: fortran at gcc dot gnu dot org
- Date: Fri, 26 Nov 2004 16:34:02 +0100
- Subject: Re: [toplevel] GCC_NO_EXECUTABLES
- References: <20030827171507.GA14215@nevyn.them.org>
Daniel Jacobowitz <drow@mvista.com> writes:
> dnl This is a shame. We have to provide a default for some link tests,
> dnl similar to the default for run tests.
> m4_define([AC_FUNC_MMAP],
> if test x$gcc_no_link = xyes; then
> if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
> ac_cv_func_mmap_fixed_mapped=no
> fi
> fi
> if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
> m4_defn([AC_FUNC_MMAP])
> fi)
For what is this needed? It breaks configure in libgfortran. In general
it is a bad idea to put such a macro in a shell conditional because it
breaks AC_REQUIRE. In the case of libgfortran this is the first macro
that triggers inclusion of the general C language setup (things like
AC_PROC_CPP, etc), which will not be executed at all when
ac_cv_func_mmap_fixed_mapped is set. It also excludes a few test for
headers that libgfortran is depending upon, although the latter is
arguably a bug in the libgfortran configure script in that it should
explicitly test for them.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."