[configury patch] don't add 'mpfr' to --with-mpfr-dir
Rainer Orth
ro@TechFak.Uni-Bielefeld.DE
Mon Jun 6 14:35:00 GMT 2005
Paul Brook <paul@codesourcery.com> writes:
> > 2005-06-04 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
> >
> > * configure.in: Don't add another '/mpfr' to the directory given
> > in --with-mpfr-dir.
> > * configure: Regenerate.
>
> Ok.
>
> This looks like is a copy/paste error from when we assumed a combined gmp+mpfr
> build.
one could argue the other way round: the /mpfr infix is missing from
gmplibs here. According to the installation docs
--with-gmp=pathname
--with-mpfr=pathname
--with-gmp-dir=pathname
--with-mpfr-dir=pathname
If you don't have GMP (the GNU Multiple Precision library) and the MPFR
Libraries installed in a standard location and you want to build the
Fortran front-end, you can explicitly specify the directory where they
are installed (`--with-gmp=gmpinstalldir',
`--with-mpfr=mpfrinstalldir') or where you built them without
installing (`--with-gmp-dir=gmpbuilddir',
`--with-mpfr-dir=gmpbuilddir').
i.e. the arg to --with-mpfr-dir is supposed to be gmpbuilddir. With this
patch and gmp build with --enable-mpfr, you need to know that mpfr is built
inside an mpfr subdir. On the other hand, omitting mpfr is correct if you
have a separate build of e.g. mpfr 2.1.1.
However this is resolved, there are more problems in this area: for a VPATH
build of gmp with --enable-mpfr, mpfr.h isn't found because (unlike
libmpfr.a) it lives in the gmp $srcdir, not the build dir. One can work
around this by adding a symlink in the build dir, but this is all terribly
ugly. It's probably high time for including a copy of gmp and mpfr in GCC
CVS.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
More information about the Fortran
mailing list