This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: only error for missing gmp/mpfr if gcc directory exists

As noted by Paolo here:

we need to play nice with other projects that share the top level
configure.  This patch ensures we only error on missing gmp/mpfr if the
gcc directory exists.

Tested on sparc-sun-solaris2.10 by removing the gcc directory and
configuring with no gmp/mpfr, no error occurs in that case.  I also
verified that it still errors when the gcc dir is present and no gmp/mpfr
exists, as well as checking that it configures successfully when gcc
exists and the correct gmp/mpfr exists.

This should allow resumption of sync'ing the top level configure with
gdb/binutils.  Although I don't have access to those repos.

Okay for mainline?


2006-11-10  Kaveh R. Ghazi  <>

	* (have_gmp): Only error if the gcc directory exists.

	* configure: Regenerate.

diff -rup orig/egcc-SVN20061110/ egcc-SVN20061110/
--- orig/egcc-SVN20061110/	2006-11-07 20:01:50.000000000 -0500
+++ egcc-SVN20061110/	2006-11-10 13:28:18.911188462 -0500
@@ -1117,7 +1117,7 @@ if test x"$have_gmp" = xyes; then

-if test x$have_gmp != xyes; then
+if test -d ${srcdir}/gcc && test x$have_gmp != xyes; then
   AC_MSG_ERROR([Building GCC requires GMP 4.1+ and MPFR 2.2+.
 Try the --with-gmp and/or --with-mpfr options to specify their locations.
 Copies of these libraries' source code can be found at their respective

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]