On 12/19/07, Martin Krischik <krischik@xxxxxxxxxxxxxxxxxxxxx> wrote: > Am Samstag 08 Dezember 2007 schrieb NightStrike: > > > If you put the gmp and mpfr source in subdirectories of the gcc tree, > > gcc will build them automatically for you and you don't have to worry > > about anything. I do this on 5 different build platforms, and it > > works superbly. > > > > You can put this in a script: > > > > cd gcc > > > > wget -qO- ftp://ftp.gnu.org/gnu/gmp/gmp-4.2.2.tar.bz2 | tar xjf - && > > mv gmp-4.2.2 gmp > > > > wget -qO- http://www.mpfr.org/mpfr-current/mpfr-2.3.0.tar.bz2 | tar > > xjf - && mv mpfr-2.3.0 mpfr > > > > > > The rest is seemless. You don't even need to use the --with-gmp and > > --with-mpfr options. It's wonderful. > > I finally found some to time to try it. Only - ./configure still tested the > pre installed version of gmp and failed. Since I am not root I can't remove > the pre installed version. So another dead end in the battle with gmp / mpfr. > > It think that when GCC 4.3.0 goes live this group will be swamped with gmp / > mpfr related posts. Mark my word. This is the part in configure.ac that you are trying to trigger: if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs" gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" # Do not test the mpfr version. Assume that it is sufficient, since # it is in the source tree, and the library has not been built yet # but it would be included on the link line in the version check below # hence making the test fail. have_gmp=yes fi And similarly with gmp. Are you sure that you put the gmp and mpfr directories in the right place? ie, $(srcdir)/gmp?