[RFC] Move --enable-languages logic to the toplevel

Laurent GUERBY laurent@guerby.net
Thu Feb 12 20:37:00 GMT 2004


Your patch works for me with an Ada compiler installed and
--enable-languages=c,ada on x86-linux.

Also, I run the Ada testsuite at -O3 and two test
that failed are now fixed (c41103b and cc51d02),
down to 18 failures, that's probably due to other patches
checked in the last two days.

FWIW, removing the build of Ada when not explicitely enabled is fine
with me.

Laurent

On Thu, 2004-02-12 at 16:30, Paolo Bonzini wrote:
> This started out as a way to move the GNAT check to the toplevel.  It turns
> out that more than that is necessary in order to test $CC's capabilities in
> the toplevel configure script.  This tentative patch moves the logic to
> detect missing languages to the toplevel, and makes the gcc directory expect
> just --enable-languages=lang1,lang2 with all the prerequisites in place.
> 
> I did not do much testing, only
> 
> ./configure --enable-languages=c,c++,ada
> ./configure --enable-languages=c,c++,frobme
> [now these give an error in the toplevel]
> 
> ./configure --enable-languages=all
> ./configure --enable-languages=c
> ./configure --enable-languages=c++
> ./configure --enable-languages=java
> ./configure --enable-languages=java,objc
> [these work as before; the last two enable c++ as well]
> 
> That's because I don't have an Ada compiler available, so help would be
> appreciated especially from the Ada folks (CCing Arnaud and Laurent).
> 
> Paolo
> 
> 2004-02-12  Paolo Bonzini  <bonzini@gnu.org>
> 
>         Move language detection to the toplevel.
>         * configure.in: Find default values for the tools as
>         soon as possible.  Disable ada if GNAT is not found.
>         Emit error message about missing languages.  Expand
>         --enable-languages=all for the gcc subdirectory.
>         * gcc/configure.ac: Remove code to detect languages,
>         it now lives exclusively in the toplevel.
>         * gcc/aclocal.m4 (gcc_AC_PROG_GNAT): Move...
>         * config/acx.m4 (ACX_PROG_GNAT): ... here.
> 



More information about the Gcc mailing list