@@ -646,6 +646,7 @@ glibc_multilib_names
646646multilib_flags
647647extra_multilib_test
648648multilib_gen
649+ WITH_LANGUAGES
649650WITH_SIM
650651WITH_ISA_SPEC
651652WITH_TUNE
@@ -721,6 +722,7 @@ with_abi
721722with_tune
722723with_isa_spec
723724with_sim
725+ with_languages
724726enable_multilib
725727with_multilib_generator
726728with_extra_multilib_test
@@ -1403,6 +1405,10 @@ Optional Packages:
14031405 Set the default ISA spec version, default to
14041406 20191213, available options: 2.2, 20190608, 20191213
14051407 --with-sim=qemu Sets the base RISC-V Simulator, defaults to qemu
1408+ --with-languages= Sets the enabled languages for GNU toolchain,
1409+ defaults to c,c++,fortran for Linux/native and
1410+ Linux/glibc or c,c++ for Bare-metal, Linux/musl and
1411+ Linux/uClibc
14061412 --with-multilib-generator
14071413 Multi-libs configuration string, only supported for
14081414 bare-metal/elf toolchain, this option implied
@@ -1928,7 +1934,9 @@ struct stat;
19281934/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
19291935struct buf { int x; };
19301936struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1931- static char *e (char **p, int i)
1937+ static char *e (p, i)
1938+ char **p;
1939+ int i;
19321940{
19331941 return p[i];
19341942}
@@ -1979,7 +1987,6 @@ extern int puts (const char *);
19791987extern int printf (const char *, ...);
19801988extern int dprintf (int, const char *, ...);
19811989extern void *malloc (size_t);
1982- extern void free (void *);
19831990
19841991// Check varargs macros. These examples are taken from C99 6.10.3.5.
19851992// dprintf is used instead of fprintf to avoid needing to declare
@@ -3631,14 +3638,8 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36313638
36323639/* Override any GCC internal prototype to avoid an error.
36333640 Use char because int might match the return type of a GCC
3634- builtin and then its argument prototype would still apply.
3635- The 'extern "C"' is for builds by C++ compilers;
3636- although this is not generally supported in C code supporting it here
3637- has little cost and some practical benefit (sr 110532). */
3638- #ifdef __cplusplus
3639- extern "C"
3640- #endif
3641- char __gmpz_init (void);
3641+ builtin and then its argument prototype would still apply. */
3642+ char __gmpz_init ();
36423643int
36433644main (void)
36443645{
@@ -3682,14 +3683,8 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36823683
36833684/* Override any GCC internal prototype to avoid an error.
36843685 Use char because int might match the return type of a GCC
3685- builtin and then its argument prototype would still apply.
3686- The 'extern "C"' is for builds by C++ compilers;
3687- although this is not generally supported in C code supporting it here
3688- has little cost and some practical benefit (sr 110532). */
3689- #ifdef __cplusplus
3690- extern "C"
3691- #endif
3692- char mpfr_init (void);
3686+ builtin and then its argument prototype would still apply. */
3687+ char mpfr_init ();
36933688int
36943689main (void)
36953690{
@@ -3733,14 +3728,8 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37333728
37343729/* Override any GCC internal prototype to avoid an error.
37353730 Use char because int might match the return type of a GCC
3736- builtin and then its argument prototype would still apply.
3737- The 'extern "C"' is for builds by C++ compilers;
3738- although this is not generally supported in C code supporting it here
3739- has little cost and some practical benefit (sr 110532). */
3740- #ifdef __cplusplus
3741- extern "C"
3742- #endif
3743- char mpc_init2 (void);
3731+ builtin and then its argument prototype would still apply. */
3732+ char mpc_init2 ();
37443733int
37453734main (void)
37463735{
@@ -3979,18 +3968,20 @@ else $as_nop
39793968fi
39803969
39813970# Check whether --enable-default-pie was given.
3982- if test " ${enable_default_pie+set} " = set ; then :
3971+ if test ${enable_default_pie+y}
3972+ then :
39833973 enableval=$enable_default_pie ;
3984- else
3974+ else $as_nop
39853975 enable_default_pie=no
39863976
39873977fi
39883978
39893979
3990- if test " x$enable_default_pie " ! = xyes; then :
3980+ if test " x$enable_default_pie " ! = xyes
3981+ then :
39913982 enable_default_pie=" --disable-default-pie"
39923983
3993- else
3984+ else $as_nop
39943985 enable_default_pie=" --enable-default-pie"
39953986
39963987fi
@@ -4051,6 +4042,15 @@ else $as_nop
40514042fi
40524043
40534044
4045+
4046+ # Check whether --with-languages was given.
4047+ if test ${with_languages+y}
4048+ then :
4049+ withval=$with_languages ;
4050+
4051+ fi
4052+
4053+
40544054if test " x$with_abi " = xdefault
40554055then :
40564056 case $with_arch in # (
@@ -4084,6 +4084,8 @@ WITH_ISA_SPEC=--with-isa-spec=$with_isa_spec
40844084
40854085WITH_SIM=$with_sim
40864086
4087+ WITH_LANGUAGES=$with_languages
4088+
40874089
40884090# Check whether --enable-multilib was given.
40894091if test ${enable_multilib+y}
@@ -4323,7 +4325,7 @@ else $as_nop
43234325
43244326fi
43254327
4326- # Check whether --enable-host_gcc was given.
4328+ # Check whether --enable-host-gcc was given.
43274329if test ${enable_host_gcc+y}
43284330then :
43294331 enableval=$enable_host_gcc ; enable_host_gcc=yes
0 commit comments