1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
6 #This file is part of GNU CC.
8 #GNU CC is free software; you can redistribute it and/or modify
9 #it under the terms of the GNU General Public License as published by
10 #the Free Software Foundation; either version 2, or (at your option)
13 #GNU CC is distributed in the hope that it will be useful,
14 #but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 #GNU General Public License for more details.
18 #You should have received a copy of the GNU General Public License
19 #along with GNU CC; see the file COPYING. If not, write to
20 #the Free Software Foundation, 59 Temple Place - Suite 330,
21 #Boston, MA 02111-1307, USA.
23 # Initialization and defaults
26 AC_CONFIG_HEADER(auto-host.h:config.in)
33 # Check for bogus environment variables.
34 # Test if LIBRARY_PATH contains the notation for the current directory
35 # since this would lead to problems installing/building glibc.
36 # LIBRARY_PATH contains the current directory if one of the following
38 # - one of the terminals (":" and ";") is the first or last sign
39 # - two terminals occur directly after each other
40 # - the path contains an element with a dot in it
41 AC_MSG_CHECKING(LIBRARY_PATH variable)
43 case ${LIBRARY_PATH} in
44 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
45 library_path_setting="contains current directory"
48 library_path_setting="ok"
52 AC_MSG_RESULT($library_path_setting)
53 if test "$library_path_setting" != "ok"; then
55 *** LIBRARY_PATH shouldn't contain the current directory when
56 *** building gcc. Please change the environment variable
57 *** and run configure again.])
60 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
61 # since this would lead to problems installing/building glibc.
62 # GCC_EXEC_PREFIX contains the current directory if one of the following
64 # - one of the terminals (":" and ";") is the first or last sign
65 # - two terminals occur directly after each other
66 # - the path contains an element with a dot in it
67 AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
69 case ${GCC_EXEC_PREFIX} in
70 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
71 gcc_exec_prefix_setting="contains current directory"
74 gcc_exec_prefix_setting="ok"
78 AC_MSG_RESULT($gcc_exec_prefix_setting)
79 if test "$gcc_exec_prefix_setting" != "ok"; then
81 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
82 *** building gcc. Please change the environment variable
83 *** and run configure again.])
86 # Check for additional parameters
90 [ --with-gnu-ld arrange to work with GNU ld.],
91 gnu_ld_flag="$with_gnu_ld",
96 [ --with-ld arrange to use the specified ld (full pathname).],
97 DEFAULT_LINKER="$with_ld")
98 if test x"${DEFAULT_LINKER+set}" = x"set"; then
99 if test ! -x "$DEFAULT_LINKER"; then
100 AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
101 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
104 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER",
105 [Define to enable the use of a default linker.])
110 [ --with-gnu-as arrange to work with GNU as.],
111 gas_flag="$with_gnu_as",
115 [ --with-as arrange to use the specified as (full pathname).],
116 DEFAULT_ASSEMBLER="$with_as")
117 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
118 if test ! -x "$DEFAULT_ASSEMBLER"; then
119 AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
120 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
123 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER",
124 [Define to enable the use of a default assembler.])
129 [ --with-stabs arrange to use stabs instead of host debug format.],
135 [ --with-elf arrange to use ELF instead of host debug format.],
139 # Specify the local prefix
141 AC_ARG_WITH(local-prefix,
142 [ --with-local-prefix=DIR specifies directory to put local include.],
143 [case "${withval}" in
144 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
146 *) local_prefix=$with_local_prefix ;;
149 # Default local prefix if it is empty
150 if test x$local_prefix = x; then
151 local_prefix=/usr/local
154 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
155 # passed in by the toplevel make and thus we'd get different behavior
156 # depending on where we built the sources.
158 # Specify the g++ header file directory
159 AC_ARG_WITH(gxx-include-dir,
160 [ --with-gxx-include-dir=DIR
161 specifies directory to put g++ header files.],
162 [case "${withval}" in
163 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
165 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
168 if test x${gcc_gxx_include_dir} = x; then
169 if test x${enable_version_specific_runtime_libs} = xyes; then
170 gcc_gxx_include_dir='${libsubdir}/include/g++'
172 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
173 changequote(<<, >>)dnl
174 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
179 # Enable expensive internal checks
180 AC_ARG_ENABLE(checking,
181 [ --enable-checking[=LIST]
182 enable expensive run-time checks. With LIST,
183 enable only specific categories of checks.
184 Categories are: misc,tree,rtl,gc,gcac; default
190 ac_gc_always_collect=
191 case "${enableval}" in
192 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
194 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
195 set fnord $enableval; shift
200 misc) ac_checking=1 ;;
201 tree) ac_tree_checking=1 ;;
202 rtl) ac_rtl_checking=1 ;;
203 gc) ac_gc_checking=1 ;;
204 gcac) ac_gc_always_collect=1 ;;
205 *) AC_MSG_ERROR(unknown check category $check) ;;
211 # Enable some checks by default for development versions of GCC
212 [ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;])
213 if test x$ac_checking != x ; then
214 AC_DEFINE(ENABLE_CHECKING, 1,
215 [Define if you want more run-time sanity checks. This one gets a grab
216 bag of miscellaneous but relatively cheap checks.])
218 if test x$ac_tree_checking != x ; then
219 AC_DEFINE(ENABLE_TREE_CHECKING, 1,
220 [Define if you want all operations on trees (the basic data
221 structure of the front ends) to be checked for dynamic type safety
222 at runtime. This is moderately expensive.])
224 if test x$ac_rtl_checking != x ; then
225 AC_DEFINE(ENABLE_RTL_CHECKING, 1,
226 [Define if you want all operations on RTL (the basic data structure
227 of the optimizer and back end) to be checked for dynamic type safety
228 at runtime. This is quite expensive.])
230 if test x$ac_gc_checking != x ; then
231 AC_DEFINE(ENABLE_GC_CHECKING, 1,
232 [Define if you want the garbage collector to do object poisoning and
233 other memory allocation checks. This is quite expensive.])
235 if test x$ac_gc_always_collect != x ; then
236 AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT, 1,
237 [Define if you want the garbage collector to operate in maximally
238 paranoid mode, validating the entire heap and collecting garbage at
239 every opportunity. This is extremely expensive.])
244 [ --disable-cpp don't provide a user-visible C preprocessor.],
245 [], [enable_cpp=yes])
247 AC_ARG_WITH(cpp_install_dir,
248 [ --with-cpp-install-dir=DIR
249 install the user visible C preprocessor in DIR
250 (relative to PREFIX) as well as PREFIX/bin.],
251 [if test x$withval = xyes; then
252 AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
253 elif test x$withval != xno; then
254 cpp_install_dir=$withval
257 # Link cpplib into the compiler proper, for C/C++/ObjC.
258 AC_ARG_ENABLE(c-cpplib,
259 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
260 (HIGHLY EXPERIMENTAL).],
261 if test x$enable_c_cpplib != xno; then
262 extra_c_objs="${extra_c_objs} libcpp.a"
263 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
264 AC_DEFINE(USE_CPPLIB, 1,
265 [Define if you want the preprocessor merged into the C and C++ compilers.
266 This mode is not ready for production use.])
269 # Enable Multibyte Characters for C/C++
270 AC_ARG_ENABLE(c-mbchar,
271 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
272 if test x$enable_c_mbchar != xno; then
273 AC_DEFINE(MULTIBYTE_CHARS, 1,
274 [Define if you want the C and C++ compilers to support multibyte
275 character sets for source code.])
279 # Pass with no value to take the default
280 # Pass with a value to specify a thread package
281 AC_ARG_ENABLE(threads,
282 [ --enable-threads enable thread usage for target GCC.
283 --enable-threads=LIB use LIB thread package for target GCC.],
284 if test x$enable_threads = xno; then
289 enable_threads_flag=$enable_threads
290 # Check if a valid thread package
291 case x${enable_threads_flag} in
294 target_thread_file='single'
298 target_thread_file=''
300 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
301 xsolaris | xwin32 | xdce | xvxworks | xaix)
302 target_thread_file=$enable_threads_flag
305 echo "$enable_threads is an unknown thread package" 1>&2
310 AC_ARG_ENABLE(objc-gc,
311 [ --enable-objc-gc enable the use of Boehm's garbage collector with
312 the GNU Objective-C runtime.],
313 if test x$enable_objc_gc = xno; then
321 [ --with-dwarf2 force the default debug format to be DWARF2.],
322 dwarf2="$with_dwarf2",
325 # Determine the host, build, and target systems
328 # Find the native compiler
331 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
332 NO_MINUS_C_MINUS_O=yes
334 AC_SUBST(NO_MINUS_C_MINUS_O)
338 AC_CACHE_CHECK(whether ${CC-cc} accepts -Wno-long-long,
339 ac_cv_prog_cc_no_long_long,
340 [save_CFLAGS="$CFLAGS"
341 CFLAGS="-Wno-long-long"
342 AC_TRY_COMPILE(,,ac_cv_prog_cc_no_long_long=yes,
343 ac_cv_prog_cc_no_long_long=no)
344 CFLAGS="$save_CFLAGS"])
346 # If the native compiler is GCC, we can enable warnings even in stage1.
347 # That's useful for people building cross-compilers, or just running a
349 stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
350 stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
351 if test "x$GCC" = "xyes"; then
352 if test $ac_cv_prog_cc_no_long_long = yes; then
353 stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
356 stage1_warn_cflags=""
359 # Stage specific cflags for build.
364 stage1_warn_cflags="$stage1_warn_cflags -Wa,-J"
366 stage1_warn_cflags="$stage1_warn_cflags -J"
371 AC_SUBST(stage1_warn_cflags)
372 AC_SUBST(stage2_warn_cflags)
376 AC_MSG_CHECKING([whether a default assembler was specified])
377 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
378 if test x"$gas_flag" = x"no"; then
379 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
381 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
387 AC_MSG_CHECKING([whether a default linker was specified])
388 if test x"${DEFAULT_LINKER+set}" = x"set"; then
389 if test x"$gnu_ld_flag" = x"no"; then
390 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
392 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
398 AC_MSG_CHECKING(for GNU C library)
399 AC_CACHE_VAL(gcc_cv_glibc,
401 [#include <features.h>],[
402 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
403 #error Not a GNU C library system
407 AC_MSG_RESULT($gcc_cv_glibc)
408 if test "gcc_cv_glibc" = "yes"; then
409 AC_DEFINE(_GNU_SOURCE, 1, [Always define this when using the GNU C Library])
414 # Find some useful tools
428 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
429 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
430 sys/resource.h sys/param.h sys/times.h sys/stat.h \
431 direct.h malloc.h langinfo.h iconv.h)
433 # Check for thread headers.
434 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
435 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
437 # See if GNAT has been installed
438 AC_CHECK_PROG(gnat, gnatbind, yes, no)
440 # Do we have a single-tree copy of texinfo?
441 if test -f $srcdir/../texinfo/Makefile.in; then
442 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
443 gcc_cv_prog_makeinfo_modern=yes
444 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
446 # See if makeinfo has been installed and is modern enough
447 # that we can use it.
448 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
449 [GNU texinfo.* \([0-9][0-9.]*\)],
450 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
453 if test $gcc_cv_prog_makeinfo_modern = no; then
455 *** Makeinfo is missing or too old.
456 *** Info documentation will not be built or installed.])
460 BUILD_INFO=info AC_SUBST(BUILD_INFO)
461 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
464 # See if the stage1 system preprocessor understands the ANSI C
465 # preprocessor stringification operator.
468 # Use <inttypes.h> only if it exists,
469 # doesn't clash with <sys/types.h>, and declares intmax_t.
470 AC_MSG_CHECKING(for inttypes.h)
471 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
473 [#include <sys/types.h>
474 #include <inttypes.h>],
476 [gcc_cv_header_inttypes_h=yes],
477 gcc_cv_header_inttypes_h=no)])
478 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
479 if test $gcc_cv_header_inttypes_h = yes; then
480 AC_DEFINE(HAVE_INTTYPES_H, 1,
481 [Define if you have a working <inttypes.h> header file.])
485 # Determine if enumerated bitfields are unsigned. ISO C says they can
486 # be either signed or unsigned.
488 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
489 [AC_TRY_RUN(#include <stdlib.h>
490 enum t { BLAH = 128 } ;
491 struct s_t { enum t member : 8; } s ;
495 if (s.member < 0) exit(1);
498 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
499 if test $gcc_cv_enum_bf_unsigned = yes; then
500 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
501 [Define if enumerated bitfields are treated as unsigned values.])
504 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
505 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
506 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
507 fputs_unlocked getrusage valloc iconv nl_langinfo)
509 AC_CHECK_TYPE(ssize_t, int)
511 # Try to determine the array type of the second argument of getgroups
512 # for the target system (int or gid_t).
514 if test "${target}" = "${build}"; then
515 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
518 # This condition may need some tweaking. It should include all
519 # targets where the array type of the second argument of getgroups
520 # is int and the type of gid_t is not equivalent to int.
521 *-*-sunos* | *-*-ultrix*)
522 TARGET_GETGROUPS_T=int
525 TARGET_GETGROUPS_T=gid_t
529 AC_SUBST(TARGET_GETGROUPS_T)
531 gcc_AC_FUNC_VFPRINTF_DOPRNT
532 gcc_AC_FUNC_PRINTF_PTR
536 # Under some versions of uwin, vfork is notoriously buggy and the test
537 # can hang configure; on other versions, vfork exists just as a stub.
538 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
539 ac_cv_func_vfork_works=no
543 AC_FUNC_MMAP_ANYWHERE
546 # We will need to find libiberty.h and ansidecl.h
547 saved_CFLAGS="$CFLAGS"
548 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
549 gcc_AC_CHECK_DECLS(bcopy bzero bcmp \
550 index rindex getenv atol sbrk abort atof getcwd getwd \
551 strsignal putc_unlocked fputs_unlocked strstr environ \
552 malloc realloc calloc free basename getopt, , ,[
553 #include "gansidecl.h"
554 #include "system.h"])
556 gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
557 #include "gansidecl.h"
559 #ifdef HAVE_SYS_RESOURCE_H
560 #include <sys/resource.h>
564 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
565 CFLAGS="$saved_CFLAGS"
567 # mkdir takes a single argument on some systems.
568 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
578 build_install_headers_dir=install-headers-tar
583 host_truncate_target=
586 # Decode the host machine, then the target machine.
587 # For the host machine, we save the xm_file variable as host_xm_file;
588 # then we decode the target machine and forget everything else
589 # that came from the host machine.
590 for machine in $build $host $target; do
604 # Set this to force installation and use of collect2.
606 # Set this to override the default target model.
608 # Set this to control how the header file directory is installed.
609 install_headers_dir=install-headers-tar
610 # Set this to a non-empty list of args to pass to cpp if the target
611 # wants its .md file passed through cpp.
613 # Set this if directory names should be truncated to 14 characters.
615 # Set this if gdb needs a dir command with `dirname $out_file`
616 gdb_needs_out_file_path=
617 # Set this if the build machine requires executables to have a
620 # Set this to control which thread package will be used.
622 # Reinitialize these from the flag values every loop pass, since some
623 # configure entries modify them.
625 gnu_ld="$gnu_ld_flag"
626 enable_threads=$enable_threads_flag
628 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
629 # updated in each machine entry.
631 cpu_type=`echo $machine | sed 's/-.*$//'`
673 tm_file=${cpu_type}/${cpu_type}.h
674 xm_file=${cpu_type}/xm-${cpu_type}.h
675 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
677 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
679 # On a.out targets, we need to use collect2.
686 # Common parts for linux and openbsd systems
689 xm_defines="HAVE_ATEXIT POSIX BSTRING"
692 tm_file=${cpu_type}/openbsd.h
693 tmake_file="t-libc-ok t-openbsd"
694 # avoid surprises, always provide an xm-openbsd file
695 xm_file=${cpu_type}/xm-openbsd.h
696 # don't depend on processor x-fragments as well
698 if test x$enable_threads = xyes; then
700 tmake_file="${tmake_file} t-openbsd-thread"
706 # Support site-specific machine types.
708 cpu_type=`echo $machine | sed -e 's/-.*//'`
709 rest=`echo $machine | sed -e "s/$cpu_type-//"`
710 xm_file=${cpu_type}/xm-$rest.h
711 tm_file=${cpu_type}/$rest.h
712 if test -f $srcdir/config/${cpu_type}/x-$rest; \
713 then xmake_file=${cpu_type}/x-$rest; \
716 if test -f $srcdir/config/${cpu_type}/t-$rest; \
717 then tmake_file=${cpu_type}/t-$rest; \
723 a29k-*-bsd* | a29k-*-sym1*)
724 tm_file="${tm_file} a29k/unix.h"
726 xmake_file=a29k/x-unix
729 a29k-*-udi | a29k-*-coff)
730 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
731 tmake_file=a29k/t-a29kbare
734 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
735 tmake_file=a29k/t-vx29k
736 extra_parts="crtbegin.o crtend.o"
737 thread_file='vxworks'
739 a29k-*-*) # Default a29k environment.
743 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
745 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
746 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
748 # GAS + IEEE_CONFORMANT
749 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
751 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
752 xmake_file="x-interix alpha/t-pe"
753 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
754 if test x$enable_threads = xyes ; then
757 if test x$stabs = xyes ; then
758 tm_file="${tm_file} dbxcoff.h"
760 #prefix='$$INTERIX_ROOT'/usr/contrib
761 #local_prefix='$$INTERIX_ROOT'/usr/contrib
763 alpha*-*-linux*ecoff*)
764 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
765 target_cpu_default="MASK_GAS"
766 tmake_file="alpha/t-alpha alpha/t-ieee"
771 alpha*-*-linux*libc1*)
772 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
773 target_cpu_default="MASK_GAS"
774 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
775 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
778 if test x$enable_threads = xyes; then
783 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
784 target_cpu_default="MASK_GAS"
785 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
786 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
789 if test x$enable_threads = xyes; then
794 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
795 target_cpu_default="MASK_GAS"
796 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
797 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
803 # default x-alpha is only appropriate for dec-osf.
804 target_cpu_default="MASK_GAS"
805 tmake_file="alpha/t-alpha alpha/t-ieee"
809 if test x$stabs = xyes
811 tm_file="${tm_file} dbx.h"
813 if test x$gas != xyes
815 extra_passes="mips-tfile mips-tdump"
818 tmake_file="alpha/t-alpha alpha/t-ieee"
821 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
826 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
829 tm_file="${tm_file} alpha/osf.h"
830 # Some versions of OSF4 (specifically X4.0-9 296.7) have
831 # a broken tar, so we use cpio instead.
832 install_headers_dir=install-headers-cpio
835 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
840 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
842 target_cpu_default=MASK_SUPPORT_ARCH
847 tm_file="${tm_file} dbx.h alpha/vxworks.h"
848 tmake_file="alpha/t-alpha alpha/t-ieee"
851 extra_passes="mips-tfile mips-tdump"
854 thread_file='vxworks'
857 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
858 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
859 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
860 xmake_file=winnt/x-winnt
861 extra_host_objs=oldnames.o
862 extra_gcc_objs="spawnv.o oldnames.o"
863 if test x$gnu_ld != xyes
865 extra_programs=ld.exe
867 if test x$enable_threads = xyes; then
873 xm_file="${xm_file} alpha/xm-vms.h"
874 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
877 extra_parts="crtinit.o crtfini.o"
879 arm-*-coff* | armel-*-coff*)
881 tmake_file=arm/t-arm-coff
885 tmake_file=arm/t-arm-coff
886 thread_file='vxworks'
889 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
891 tm_file=arm/riscix1-1.h
894 arm-*-riscix*) # Acorn RISC machine
897 tm_file=arm/rix-gas.h
901 xmake_file=arm/x-riscix
902 tmake_file=arm/t-riscix
905 arm-semi-aout | armel-semi-aout)
907 tmake_file=arm/t-semi
909 arm-semi-aof | armel-semi-aof)
910 tm_file=arm/semiaof.h
911 tmake_file=arm/t-semiaof
915 tmake_file="t-netbsd arm/t-netbsd"
918 arm*-*-linux*aout*) # ARM GNU/Linux with a.out
921 tm_file=arm/linux-aout.h
922 tmake_file=arm/t-linux
925 arm*-*-linux*oldld*) # ARM GNU/Linux with old ELF linker
926 xm_file=arm/xm-linux.h
928 tm_file="arm/linux-oldld.h arm/linux-elf.h"
931 tm_file="arm/linux-elf26.h $tm_file"
934 tmake_file="t-linux arm/t-linux"
935 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
937 case x${enable_threads} in
938 x | xyes | xpthreads | xposix)
943 arm*-*-linux*) # ARM GNU/Linux with ELF
944 xm_file=arm/xm-linux.h
946 tm_file="arm/linux-elf.h"
949 tm_file="arm/linux-elf26.h $tm_file"
952 tmake_file="t-linux arm/t-linux"
953 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
955 case x${enable_threads} in
956 x | xyes | xpthreads | xposix)
961 arm*-*-uclinux*) # ARM ucLinux
962 tm_file=arm/uclinux-elf.h
963 tmake_file=arm/t-arm-elf
967 tmake_file=arm/t-arm-aout
970 tm_file=arm/ecos-elf.h
971 tmake_file=arm/t-arm-elf
974 tm_file=arm/unknown-elf.h
975 tmake_file=arm/t-arm-elf
978 tm_file=arm/conix-elf.h
979 tmake_file=arm/t-arm-elf
982 tm_file=arm/unknown-elf-oabi.h
983 tmake_file=arm/t-arm-elf
992 c1-convex-*) # Convex C1
996 c2-convex-*) # Convex C2
1001 target_cpu_default=4
1005 target_cpu_default=8
1009 target_cpu_default=16
1014 tmake_file=c4x/t-c4x
1016 clipper-intergraph-clix*)
1017 tm_file="${tm_file} svr3.h clipper/clix.h"
1018 xm_file=clipper/xm-clix.h
1019 xmake_file=clipper/x-clix
1020 extra_headers=va-clipper.h
1021 extra_parts="crtbegin.o crtend.o"
1022 install_headers_dir=install-headers-cpio
1033 tm_file="fr30/fr30.h"
1034 tmake_file=fr30/t-fr30
1035 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1037 # This hasn't been upgraded to GCC 2.
1038 # fx80-alliant-*) # Alliant FX/80
1044 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
1045 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
1046 tmake_file="t-linux pa/t-linux"
1047 extra_parts="crtbegin.o crtend.o"
1050 if test x$enable_threads = xyes; then
1055 target_cpu_default="MASK_PA_11"
1056 tmake_file=pa/t-openbsd
1059 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1060 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
1061 xm_file=pa/xm-papro.h
1065 target_cpu_default="MASK_PA_11"
1066 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1070 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1071 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
1072 xm_file=pa/xm-papro.h
1076 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1080 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1081 target_cpu_default="MASK_PA_11"
1085 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1089 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
1090 xm_file=pa/xm-pahpux.h
1091 xmake_file=pa/x-pa-hpux
1092 if test x$gas = xyes
1094 tm_file="${tm_file} pa/gas.h"
1096 install_headers_dir=install-headers-cpio
1100 hppa1.0-*-hpux8.0[0-2]*)
1102 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1103 xm_file=pa/xm-pahpux.h
1104 xmake_file=pa/x-pa-hpux
1105 if test x$gas = xyes
1107 tm_file="${tm_file} pa/pa-gas.h"
1109 tm_file="pa/pa-oldas.h ${tm_file}"
1111 install_headers_dir=install-headers-cpio
1115 hppa1.1-*-hpux8.0[0-2]*)
1117 target_cpu_default="MASK_PA_11"
1118 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1119 xm_file=pa/xm-pahpux.h
1120 xmake_file=pa/x-pa-hpux
1121 if test x$gas = xyes
1123 tm_file="${tm_file} pa/pa-gas.h"
1125 tm_file="pa/pa-oldas.h ${tm_file}"
1127 install_headers_dir=install-headers-cpio
1131 target_cpu_default="MASK_PA_11"
1132 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1133 xm_file=pa/xm-pahpux.h
1134 xmake_file=pa/x-pa-hpux
1135 if test x$gas = xyes
1137 tm_file="${tm_file} pa/pa-gas.h"
1139 install_headers_dir=install-headers-cpio
1143 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1144 xm_file=pa/xm-pahpux.h
1145 xmake_file=pa/x-pa-hpux
1146 if test x$gas = xyes
1148 tm_file="${tm_file} pa/pa-gas.h"
1150 install_headers_dir=install-headers-cpio
1153 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1154 target_cpu_default="MASK_PA_11"
1155 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1157 xm_file=pa/xm-pahpux.h
1158 xmake_file=pa/x-pa-hpux
1160 if test x$gas = xyes
1162 tm_file="${tm_file} pa/pa-gas.h"
1164 if test x$enable_threads = x; then
1165 enable_threads=$have_pthread_h
1167 case x${enable_threads} in
1169 tmake_file="${tmake_file} pa/t-dce-thr"
1172 install_headers_dir=install-headers-cpio
1176 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1178 xm_file=pa/xm-pahpux.h
1179 xmake_file=pa/x-pa-hpux
1181 if test x$gas = xyes
1183 tm_file="${tm_file} pa/pa-gas.h"
1185 if test x$enable_threads = x; then
1186 enable_threads=$have_pthread_h
1188 case x${enable_threads} in
1190 tmake_file="${tmake_file} pa/t-dce-thr"
1193 install_headers_dir=install-headers-cpio
1197 target_cpu_default="MASK_PA_11"
1198 xm_file=pa/xm-pa64hpux.h
1199 xmake_file=pa/x-pa-hpux
1201 tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
1203 tmake_file=pa/t-pa64
1204 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1206 if [[ x$gas = xyes ]]
1208 tm_file="${tm_file} pa/pa-gas.h"
1210 # if [[ x$enable_threads = x ]]; then
1211 # enable_threads=$have_pthread_h
1213 # if [[ x$enable_threads = xyes ]]; then
1215 # tmake_file="${tmake_file} pa/t-dce-thr"
1217 install_headers_dir=install-headers-cpio
1220 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1221 target_cpu_default="MASK_PA_11"
1222 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1224 xm_file=pa/xm-pahpux.h
1225 xmake_file=pa/x-pa-hpux
1227 if test x$gas = xyes
1229 tm_file="${tm_file} pa/pa-gas.h"
1231 # if test x$enable_threads = x; then
1232 # enable_threads=$have_pthread_h
1234 # if test x$enable_threads = xyes; then
1236 # tmake_file="${tmake_file} pa/t-dce-thr"
1238 install_headers_dir=install-headers-cpio
1242 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1244 xm_file=pa/xm-pahpux.h
1245 xmake_file=pa/x-pa-hpux
1246 if test x$gas = xyes
1248 tm_file="${tm_file} pa/pa-gas.h"
1250 # if test x$enable_threads = x; then
1251 # enable_threads=$have_pthread_h
1253 # if test x$enable_threads = xyes; then
1255 # tmake_file="${tmake_file} pa/t-dce-thr"
1257 install_headers_dir=install-headers-cpio
1260 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1261 target_cpu_default="MASK_PA_11"
1262 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1263 xm_file=pa/xm-pahpux.h
1264 xmake_file=pa/x-pa-hpux
1265 if test x$gas = xyes
1267 tm_file="${tm_file} pa/pa-gas.h"
1269 install_headers_dir=install-headers-cpio
1273 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1274 xm_file=pa/xm-pahpux.h
1275 xmake_file=pa/x-pa-hpux
1276 if test x$gas = xyes
1278 tm_file="${tm_file} pa/pa-gas.h"
1280 install_headers_dir=install-headers-cpio
1283 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1284 target_cpu_default="MASK_PA_11"
1285 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1286 xm_file=pa/xm-pahpux.h
1287 xmake_file=pa/x-pa-hpux
1288 if test x$gas = xyes
1290 tm_file="${tm_file} pa/pa-gas.h"
1292 install_headers_dir=install-headers-cpio
1296 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1297 xm_file=pa/xm-pahpux.h
1298 xmake_file=pa/x-pa-hpux
1299 if test x$gas = xyes
1301 tm_file="${tm_file} pa/pa-gas.h"
1303 install_headers_dir=install-headers-cpio
1307 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1308 target_cpu_default="MASK_PA_11"
1312 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1313 xm_file=pa/xm-pampeix.h
1314 xmake_file=pa/x-pa-mpeix
1315 echo "You must use gas. Assuming it is already installed."
1316 install_headers_dir=install-headers-tar
1319 i370-*-opened*) # IBM 360/370/390 Architecture
1320 xm_file=i370/xm-oe.h
1322 xmake_file=i370/x-oe
1323 tmake_file=i370/t-oe
1326 xm_file=i370/xm-mvs.h
1328 tmake_file=i370/t-mvs
1331 xm_file="xm-linux.h i370/xm-linux.h"
1333 tm_file="i370/linux.h ${tm_file}"
1334 tmake_file="t-linux i370/t-linux"
1335 # broken_install=yes
1336 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1337 # extra_parts="crtbegin.o crtend.o"
1341 if test x$enable_threads = xyes; then
1348 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1349 tm_file=i386/i386elf.h
1350 tmake_file=i386/t-i386elf
1354 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1356 if test x$gas = xyes
1358 tm_file=i386/aix386.h
1359 extra_parts="crtbegin.o crtend.o"
1360 tmake_file=i386/t-crtstuff
1362 tm_file=i386/aix386ng.h
1365 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1367 xmake_file=i386/x-aix
1370 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1372 xm_file="xm-alloca.h ${xm_file}"
1373 xm_defines="USG POSIX SMALL_ARG_MAX"
1374 xmake_file=i386/x-ncr3000
1375 if test x$stabs = xyes -a x$gas = xyes
1377 tm_file=i386/sysv4gdb.h
1379 tm_file=i386/sysv4.h
1381 extra_parts="crtbegin.o crtend.o"
1382 tmake_file=i386/t-crtpic
1388 xm_file=i386/xm-next.h
1389 tmake_file=i386/t-next
1390 xmake_file=i386/x-next
1391 extra_objs=nextstep.o
1392 extra_parts="crtbegin.o crtend.o"
1393 if test x$enable_threads = xyes; then
1398 i[34567]86-sequent-bsd*) # 80386 from Sequent
1401 if test x$gas = xyes
1403 tm_file=i386/seq-gas.h
1405 tm_file=i386/sequent.h
1409 i[34567]86-sequent-ptx1*)
1411 xm_defines="USG SVR3"
1412 xmake_file=i386/x-sysv3
1413 tm_file=i386/seq-sysv3.h
1414 tmake_file=i386/t-crtstuff
1415 extra_parts="crtbegin.o crtend.o"
1416 install_headers_dir=install-headers-cpio
1419 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1421 xm_defines="USG SVR3"
1422 xmake_file=i386/x-sysv3
1423 tm_file=i386/seq2-sysv3.h
1424 tmake_file=i386/t-crtstuff
1425 extra_parts="crtbegin.o crtend.o"
1426 install_headers_dir=install-headers-cpio
1429 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1431 xm_file="xm-alloca.h ${xm_file}"
1432 xm_defines="USG POSIX SMALL_ARG_MAX"
1434 tm_file=i386/ptx4-i.h
1436 extra_parts="crtbegin.o crtend.o"
1437 install_headers_dir=install-headers-cpio
1439 i386-sun-sunos*) # Sun i386 roadrunner
1445 i[34567]86-wrs-vxworks*)
1447 tm_file=i386/vxi386.h
1448 tmake_file=i386/t-i386bare
1449 thread_file='vxworks'
1454 tm_file=i386/i386-aout.h
1455 tmake_file=i386/t-i386bare
1458 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1460 xm_file=i386/xm-beos.h
1461 tmake_file='i386/t-beos i386/t-crtpic'
1462 tm_file=i386/beos-elf.h
1463 xmake_file=i386/x-beos
1464 extra_parts='crtbegin.o crtend.o'
1467 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1469 tm_file=i386/bsd386.h
1470 # tmake_file=t-libc-ok
1475 tm_file=i386/386bsd.h
1476 # tmake_file=t-libc-ok
1477 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1481 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1483 tm_file="i386/freebsd.h i386/perform.h"
1484 tmake_file=t-freebsd
1487 i[34567]86-*-freebsd*)
1489 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1490 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1491 tmake_file=t-freebsd
1495 case x${enable_threads} in
1496 xyes | xpthreads | xposix)
1498 tmake_file="${tmake_file} t-freebsd-thread"
1503 i[34567]86-*-netbsd*)
1505 tm_file=i386/netbsd.h
1510 i[34567]86-*-openbsd*)
1512 # we need collect2 until our bug is fixed...
1518 tm_file=i386/i386-coff.h
1519 tmake_file=i386/t-i386bare
1522 i[34567]86-*-isc*) # 80386 running ISC system
1524 xm_file="${xm_file} i386/xm-isc.h"
1525 xm_defines="USG SVR3"
1528 i[34567]86-*-isc[34]*)
1530 xmake_file=i386/x-isc3
1533 xmake_file=i386/x-isc
1536 if test x$gas = xyes -a x$stabs = xyes
1538 tm_file=i386/iscdbx.h
1539 tmake_file=i386/t-svr3dbx
1540 extra_parts="svr3.ifile svr3z.ifile"
1542 tm_file=i386/isccoff.h
1543 tmake_file=i386/t-crtstuff
1544 extra_parts="crtbegin.o crtend.o"
1546 tmake_file="$tmake_file i386/t-i386bare"
1547 install_headers_dir=install-headers-cpio
1550 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1551 changequote([,])dnl # with a.out format using
1553 xmake_file=x-linux-aout
1554 tmake_file="t-linux-aout i386/t-crtstuff"
1555 tm_file=i386/linux-oldld.h
1560 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1561 changequote([,])dnl # with a.out format
1562 xmake_file=x-linux-aout
1563 tmake_file="t-linux-aout i386/t-crtstuff"
1564 tm_file=i386/linux-aout.h
1569 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1570 changequote([,])dnl # with ELF format using the
1571 # GNU/Linux C library 5
1573 tm_file=i386/linux.h
1574 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1575 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1578 if test x$enable_threads = xyes; then
1579 thread_file='single'
1583 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1584 changequote([,])dnl # with ELF format using glibc 2
1585 # aka GNU/Linux C library 6
1587 tm_file=i386/linux.h
1588 tmake_file="t-linux i386/t-crtstuff"
1589 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1592 if test x$enable_threads = xyes; then
1602 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1604 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1608 i[34567]86-pc-msdosdjgpp*)
1610 xm_file=i386/xm-djgpp.h
1611 tm_file=i386/djgpp.h
1612 tmake_file=i386/t-djgpp
1613 xmake_file=i386/x-djgpp
1618 case $host in *pc-msdosdjgpp*)
1624 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1627 tmake_file=t-libc-ok
1632 i[34567]86-*-lynxos*)
1634 if test x$gas = xyes
1638 tm_file=i386/lynx-ng.h
1640 xm_file=i386/xm-lynx.h
1641 tmake_file=i386/t-i386bare
1648 # tmake_file=t-libc-ok
1652 i[34567]86-*-osfrose*) # 386 using OSF/rose
1654 if test x$elf = xyes
1656 tm_file=i386/osfelf.h
1659 tm_file=i386/osfrose.h
1662 xm_file="i386/xm-osf.h ${xm_file}"
1663 xmake_file=i386/x-osfrose
1664 tmake_file=i386/t-osf
1665 extra_objs=halfpic.o
1668 i[34567]86-go32-rtems*)
1671 xm_file=i386/xm-go32.h
1672 tm_file=i386/go32-rtems.h
1673 tmake_file="i386/t-go32 t-rtems"
1676 i[34567]86-*-rtemscoff*)
1679 tm_file=i386/rtems.h
1680 tmake_file="i386/t-i386bare t-rtems"
1683 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1686 tm_file=i386/rtemself.h
1687 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1688 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1691 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1693 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1694 xm_defines="USG SVR3"
1695 xmake_file=i386/x-sco5
1696 install_headers_dir=install-headers-cpio
1698 if test x$gas = xyes
1700 tm_file="i386/sco5gas.h ${tm_file}"
1701 tmake_file=i386/t-sco5gas
1703 tmake_file=i386/t-sco5
1705 tmake_file="$tmake_file i386/t-i386bare"
1706 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1709 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1711 xm_file="${xm_file} i386/xm-sco.h"
1712 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1713 xmake_file=i386/x-sco4
1714 install_headers_dir=install-headers-cpio
1715 if test x$stabs = xyes
1717 tm_file=i386/sco4dbx.h
1718 tmake_file=i386/t-svr3dbx
1719 extra_parts="svr3.ifile svr3z.rfile"
1722 tmake_file=i386/t-crtstuff
1723 extra_parts="crtbegin.o crtend.o"
1725 tmake_file="$tmake_file i386/t-i386bare"
1726 # The default EAFS filesystem supports long file names.
1727 # Truncating the target makes $host != $target which
1728 # makes gcc think it is doing a cross-compile.
1729 # truncate_target=yes
1732 i[34567]86-*-sco*) # 80386 running SCO system
1734 xm_file=i386/xm-sco.h
1735 xmake_file=i386/x-sco
1736 install_headers_dir=install-headers-cpio
1737 if test x$stabs = xyes
1739 tm_file=i386/scodbx.h
1740 tmake_file=i386/t-svr3dbx
1741 extra_parts="svr3.ifile svr3z.rfile"
1744 extra_parts="crtbegin.o crtend.o"
1745 tmake_file=i386/t-crtstuff
1747 tmake_file="$tmake_file i386/t-i386bare"
1751 i[34567]86-*-solaris2*)
1753 xm_file="xm-alloca.h ${xm_file}"
1754 xm_defines="USG POSIX SMALL_ARG_MAX"
1756 if test x$gas = xyes; then
1757 # Only needed if gas does not support -s
1758 tm_file="i386/sol2gas.h ${tm_file}"
1760 tmake_file="i386/t-i386bare i386/t-sol2"
1761 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1763 if test x${enable_threads} = x; then
1764 enable_threads=$have_pthread_h
1765 if test x${enable_threads} = x; then
1766 enable_threads=$have_thread_h
1769 if test x${enable_threads} = xyes; then
1770 if test x${have_pthread_h} = xyes; then
1773 thread_file='solaris'
1778 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1780 xm_file="xm-alloca.h ${xm_file}"
1781 xm_defines="USG POSIX"
1782 tm_file=i386/sysv5.h
1783 if test x$stabs = xyes
1785 tm_file="${tm_file} dbx.h"
1787 tmake_file="i386/t-i386bare i386/t-crtpic"
1789 extra_parts="crtbegin.o crtend.o"
1790 if test x$enable_threads = xyes; then
1795 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1797 xm_file="xm-alloca.h ${xm_file}"
1798 xm_defines="USG POSIX SMALL_ARG_MAX"
1799 tm_file=i386/sysv4.h
1800 if test x$stabs = xyes
1802 tm_file="${tm_file} dbx.h"
1804 tmake_file="i386/t-i386bare i386/t-crtpic"
1806 extra_parts="crtbegin.o crtend.o"
1809 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1811 xm_file="xm-alloca.h ${xm_file}"
1812 xm_defines="USG POSIX"
1814 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1816 extra_parts="crtbegin.o crtend.o"
1817 install_headers_dir=install-headers-cpio
1820 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1823 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1824 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1825 if test x$stabs = xyes
1827 tm_file=i386/osf1elfgdb.h
1829 tm_file=i386/osf1elf.h
1831 tmake_file=i386/t-osf1elf
1832 xmake_file=i386/x-osf1elf
1833 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1836 i[34567]86-*-sysv*) # Intel 80386's running system V
1838 xm_defines="USG SVR3"
1839 xmake_file=i386/x-sysv3
1840 if test x$gas = xyes
1842 if test x$stabs = xyes
1844 tm_file=i386/svr3dbx.h
1845 tmake_file=i386/t-svr3dbx
1846 extra_parts="svr3.ifile svr3z.rfile"
1848 tm_file=i386/svr3gas.h
1849 extra_parts="crtbegin.o crtend.o"
1850 tmake_file=i386/t-crtstuff
1853 tm_file=i386/sysv3.h
1854 extra_parts="crtbegin.o crtend.o"
1855 tmake_file=i386/t-crtstuff
1857 tmake_file="$tmake_file i386/t-crtpic"
1859 i386-*-vsta) # Intel 80386's running VSTa kernel
1860 xm_file="${xm_file} i386/xm-vsta.h"
1862 tmake_file=i386/t-vsta
1863 xmake_file=i386/x-vsta
1868 xm_file="${xm_file} i386/xm-cygwin.h"
1869 tmake_file=i386/t-cygwin
1870 tm_file=i386/win32.h
1871 xmake_file=i386/x-cygwin
1873 if test x$enable_threads = xyes; then
1879 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1881 xm_file="${xm_file} i386/xm-cygwin.h"
1882 tmake_file=i386/t-cygwin
1883 tm_file=i386/cygwin.h
1884 xmake_file=i386/x-cygwin
1886 if test x$enable_threads = xyes; then
1892 i[34567]86-*-mingw32*)
1894 tm_file=i386/mingw32.h
1895 xm_file="${xm_file} i386/xm-mingw32.h"
1896 tmake_file="i386/t-cygwin i386/t-mingw32"
1898 xmake_file=i386/x-cygwin
1899 if test x$enable_threads = xyes; then
1906 *minwg32crt* | *mingw32*)
1907 tm_file="${tm_file} i386/crtdll.h"
1915 xm_file="${xm_file} i386/xm-uwin.h"
1916 xm_defines="USG NO_STAB_H"
1917 tmake_file="i386/t-cygwin i386/t-uwin"
1919 xmake_file=i386/x-cygwin
1920 if test x$enable_threads = xyes; then
1926 i[34567]86-*-interix*)
1928 tm_file="i386/i386-interix.h interix.h"
1929 xm_file="i386/xm-i386-interix.h xm-interix.h"
1931 tmake_file="i386/t-interix"
1932 extra_objs=interix.o
1933 xmake_file=x-interix
1934 if test x$enable_threads = xyes ; then
1937 if test x$stabs = xyes ; then
1938 tm_file="${tm_file} dbxcoff.h"
1942 i[34567]86-*-winnt3*)
1944 tm_file=i386/win-nt.h
1945 out_file=i386/i386.c
1946 xm_file="xm-winnt.h ${xm_file}"
1947 xmake_file=winnt/x-winnt
1948 tmake_file=i386/t-winnt
1949 extra_host_objs="winnt.o oldnames.o"
1950 extra_gcc_objs="spawnv.o oldnames.o"
1951 if test x$gnu_ld != xyes
1953 extra_programs=ld.exe
1955 if test x$enable_threads = xyes; then
1960 i[34567]86-dg-dgux*)
1962 xm_file="xm-alloca.h ${xm_file}"
1963 xm_defines="USG POSIX"
1964 out_file=i386/dgux.c
1966 tmake_file=i386/t-dgux
1967 xmake_file=i386/x-dgux
1968 install_headers_dir=install-headers-cpio
1970 i860-alliant-*) # Alliant FX/2800
1971 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1972 xm_file="${xm_file}"
1973 xmake_file=i860/x-fx2800
1974 tmake_file=i860/t-fx2800
1975 extra_parts="crtbegin.o crtend.o"
1978 tm_file="${tm_file} i860/bsd.h"
1979 if test x$gas = xyes
1981 tm_file="${tm_file} i860/bsd-gas.h"
1986 tm_file="${tm_file} i860/mach.h"
1987 tmake_file=t-libc-ok
1989 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1990 tm_file="${tm_file} svr3.h i860/paragon.h"
1991 xm_defines="USG SVR3"
1995 tm_file="${tm_file} svr3.h i860/sysv3.h"
1996 xm_defines="USG SVR3"
1997 xmake_file=i860/x-sysv3
1998 extra_parts="crtbegin.o crtend.o"
2001 tm_file="${tm_file} svr4.h i860/sysv4.h"
2002 xm_defines="USG SVR3"
2003 xmake_file=i860/x-sysv4
2005 extra_parts="crtbegin.o crtend.o"
2007 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
2008 tm_file="${tm_file} i960/vx960.h"
2009 tmake_file=i960/t-vxworks960
2011 thread_file='vxworks'
2013 i960-wrs-vxworks5* | i960-wrs-vxworks)
2014 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2015 tmake_file=i960/t-vxworks960
2017 thread_file='vxworks'
2020 tm_file="${tm_file} i960/vx960.h"
2021 tmake_file=i960/t-vxworks960
2023 thread_file='vxworks'
2026 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2027 tmake_file=i960/t-960bare
2031 tmake_file="i960/t-960bare t-rtems"
2032 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2035 i960-*-*) # Default i960 environment.
2040 tmake_file="ia64/t-ia64"
2041 target_cpu_default="0"
2042 if test x$gas = xyes
2044 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
2046 if test x$gnu_ld = xyes
2048 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
2053 tm_file=ia64/linux.h
2054 tmake_file="t-linux ia64/t-ia64"
2055 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
2056 if test x$enable_threads = xyes; then
2062 extra_parts="crtinit.o crtfini.o"
2064 # m68hc11 and m68hc12 share the same machine description.
2065 m68hc11-*-*|m6811-*-*)
2066 tm_file="m68hc11/m68hc11.h"
2067 xm_file="m68hc11/xm-m68hc11.h"
2068 tm_p_file="m68hc11/m68hc11-protos.h"
2069 md_file="m68hc11/m68hc11.md"
2070 out_file="m68hc11/m68hc11.c"
2071 tmake_file="m68hc11/t-m68hc11-gas"
2073 m68hc12-*-*|m6812-*-*)
2074 tm_file="m68hc11/m68hc12.h"
2075 tm_p_file="m68hc11/m68hc11-protos.h"
2076 xm_file="m68hc11/xm-m68hc11.h"
2077 md_file="m68hc11/m68hc11.md"
2078 out_file="m68hc11/m68hc11.c"
2079 tmake_file="m68hc11/t-m68hc11-gas"
2081 m68000-convergent-sysv*)
2083 xm_file="m68k/xm-3b1.h ${xm_file}"
2086 extra_headers=math-68881.h
2088 m68000-hp-bsd*) # HP 9000/200 running BSD
2089 tm_file=m68k/hp2bsd.h
2090 xmake_file=m68k/x-hp2bsd
2092 extra_headers=math-68881.h
2094 m68000-hp-hpux*) # HP 9000 series 300
2095 xm_file="xm-alloca.h ${xm_file}"
2097 if test x$gas = xyes
2099 xmake_file=m68k/x-hp320g
2100 tm_file=m68k/hp310g.h
2102 xmake_file=m68k/x-hp320
2103 tm_file=m68k/hp310.h
2105 install_headers_dir=install-headers-cpio
2107 extra_headers=math-68881.h
2112 extra_headers=math-68881.h
2115 tm_file=m68k/sun2o4.h
2117 extra_headers=math-68881.h
2120 xm_file="m68k/xm-3b1.h ${xm_file}"
2122 if test x$gas = xyes
2129 extra_headers=math-68881.h
2131 m68k-apple-aux*) # Apple Macintosh running A/UX
2132 xm_defines="USG AUX"
2133 tmake_file=m68k/t-aux
2134 install_headers_dir=install-headers-cpio
2135 extra_headers=math-68881.h
2136 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2138 if test "$gnu_ld" = yes
2140 tm_file="${tm_file} m68k/auxgld.h"
2142 tm_file="${tm_file} m68k/auxld.h"
2144 if test "$gas" = yes
2146 tm_file="${tm_file} m68k/auxgas.h"
2148 tm_file="${tm_file} m68k/auxas.h"
2150 tm_file="${tm_file} m68k/a-ux.h"
2154 tm_file=m68k/apollo68.h
2155 xmake_file=m68k/x-apollo68
2157 extra_headers=math-68881.h
2160 m68k-altos-sysv*) # Altos 3068
2161 if test x$gas = xyes
2163 tm_file=m68k/altos3068.h
2166 echo "The Altos is supported only with the GNU assembler" 1>&2
2169 extra_headers=math-68881.h
2171 m68k-bull-sysv*) # Bull DPX/2
2172 if test x$gas = xyes
2174 if test x$stabs = xyes
2176 tm_file=m68k/dpx2cdbx.h
2178 tm_file=m68k/dpx2g.h
2183 xm_file="xm-alloca.h ${xm_file}"
2185 xmake_file=m68k/x-dpx2
2187 extra_headers=math-68881.h
2189 m68k-atari-sysv4*) # Atari variant of V.4.
2190 tm_file=m68k/atari.h
2191 xm_file="xm-alloca.h ${xm_file}"
2192 xm_defines="USG FULL_PROTOTYPES"
2194 extra_parts="crtbegin.o crtend.o"
2195 extra_headers=math-68881.h
2198 m68k-motorola-sysv*)
2199 tm_file=m68k/mot3300.h
2200 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2201 if test x$gas = xyes
2203 xmake_file=m68k/x-mot3300-gas
2204 if test x$gnu_ld = xyes
2206 tmake_file=m68k/t-mot3300-gald
2208 tmake_file=m68k/t-mot3300-gas
2212 xmake_file=m68k/x-mot3300
2213 if test x$gnu_ld = xyes
2215 tmake_file=m68k/t-mot3300-gld
2217 tmake_file=m68k/t-mot3300
2221 gdb_needs_out_file_path=yes
2222 extra_parts="crt0.o mcrt0.o"
2223 extra_headers=math-68881.h
2226 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2227 tm_file=m68k/tower-as.h
2228 xm_defines="USG SVR3"
2229 xmake_file=m68k/x-tower
2230 extra_parts="crtbegin.o crtend.o"
2231 extra_headers=math-68881.h
2234 tm_file=m68k/plexus.h
2235 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2238 extra_headers=math-68881.h
2242 xm_file="xm-alloca.h ${xm_file}"
2244 extra_headers=math-68881.h
2247 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2248 xm_defines="USG unos"
2249 xmake_file=m68k/x-crds
2252 extra_headers=math-68881.h
2254 m68k-cbm-sysv4*) # Commodore variant of V.4.
2256 xm_file="xm-alloca.h ${xm_file}"
2257 xm_defines="USG FULL_PROTOTYPES"
2258 xmake_file=m68k/x-amix
2260 extra_parts="crtbegin.o crtend.o"
2261 extra_headers=math-68881.h
2265 tm_file=m68k/ccur-GAS.h
2266 xmake_file=m68k/x-ccur
2267 extra_headers=math-68881.h
2271 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2272 tm_file=m68k/hp3bsd44.h
2273 xmake_file=m68k/x-hp3bsd44
2275 extra_headers=math-68881.h
2278 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2279 tm_file=m68k/hp3bsd.h
2281 extra_headers=math-68881.h
2285 if test x$with_fp = xno
2287 tm_file=m68k/isi-nfp.h
2293 extra_headers=math-68881.h
2295 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2296 xm_file="xm-alloca.h ${xm_file}"
2298 if test x$gas = xyes
2300 xmake_file=m68k/x-hp320g
2301 tm_file=m68k/hp320g.h
2303 xmake_file=m68k/x-hp320
2304 tm_file=m68k/hpux7.h
2306 install_headers_dir=install-headers-cpio
2308 extra_headers=math-68881.h
2311 m68k-hp-hpux*) # HP 9000 series 300
2312 xm_file="xm-alloca.h ${xm_file}"
2314 if test x$gas = xyes
2316 xmake_file=m68k/x-hp320g
2317 tm_file=m68k/hp320g.h
2319 xmake_file=m68k/x-hp320
2320 tm_file=m68k/hp320.h
2322 install_headers_dir=install-headers-cpio
2324 extra_headers=math-68881.h
2328 tm_file=m68k/sun3mach.h
2330 extra_headers=math-68881.h
2334 if test x$gas = xyes
2336 tm_file=m68k/news3gas.h
2338 tm_file=m68k/news3.h
2341 extra_headers=math-68881.h
2344 m68k-sony-bsd* | m68k-sony-newsos*)
2345 if test x$gas = xyes
2347 tm_file=m68k/newsgas.h
2352 extra_headers=math-68881.h
2355 m68k-next-nextstep2*)
2356 tm_file=m68k/next21.h
2357 xm_file="m68k/xm-next.h ${xm_file}"
2358 tmake_file=m68k/t-next
2359 xmake_file=m68k/x-next
2360 extra_objs=nextstep.o
2361 extra_headers=math-68881.h
2366 m68k-next-nextstep[34]*)
2369 xm_file="m68k/xm-next.h ${xm_file}"
2370 tmake_file=m68k/t-next
2371 xmake_file=m68k/x-next
2372 extra_objs=nextstep.o
2373 extra_parts="crtbegin.o crtend.o"
2374 extra_headers=math-68881.h
2376 if test x$enable_threads = xyes; then
2381 if test x$with_fp = xno
2383 tm_file=m68k/sun3n3.h
2385 tm_file=m68k/sun3o3.h
2389 extra_headers=math-68881.h
2391 m68k-sun-sunos*) # For SunOS 4 (the default).
2392 if test x$with_fp = xno
2394 tm_file=m68k/sun3n.h
2400 extra_headers=math-68881.h
2403 tm_file=m68k/vxm68k.h
2404 tmake_file=m68k/t-vxworks68
2405 extra_headers=math-68881.h
2406 thread_file='vxworks'
2410 tmake_file=m68k/t-m68kbare
2411 tm_file="m68k/m68k-aout.h libgloss.h"
2412 extra_headers=math-68881.h
2416 tmake_file=m68k/t-m68kbare
2417 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2418 extra_headers=math-68881.h
2421 m68020-*-elf* | m68k-*-elf*)
2422 tm_file="m68k/m68020-elf.h"
2423 xm_file=m68k/xm-m68kv.h
2424 tmake_file=m68k/t-m68kelf
2425 header_files=math-68881.h
2428 if test x$gas = xyes
2432 tm_file=m68k/lynx-ng.h
2434 xm_file=m68k/xm-lynx.h
2436 tmake_file=m68k/t-lynx
2437 extra_headers=math-68881.h
2441 tm_file=m68k/netbsd.h
2448 # we need collect2 until our bug is fixed...
2451 m68k-*-sysv3*) # Motorola m68k's running system V.3
2452 xm_file="xm-alloca.h ${xm_file}"
2454 xmake_file=m68k/x-m68kv
2455 extra_parts="crtbegin.o crtend.o"
2456 extra_headers=math-68881.h
2459 m68k-*-sysv4*) # Motorola m68k's running system V.4
2460 tm_file=m68k/m68kv4.h
2461 xm_file="xm-alloca.h ${xm_file}"
2464 extra_parts="crtbegin.o crtend.o"
2465 extra_headers=math-68881.h
2468 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2471 tm_file=m68k/linux-aout.h
2472 tmake_file="t-linux-aout m68k/t-linux-aout"
2473 extra_headers=math-68881.h
2477 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2478 # with ELF format using the
2479 # GNU/Linux C library 5
2481 tm_file=m68k/linux.h
2482 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2483 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2484 extra_headers=math-68881.h
2488 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2489 # with ELF format using glibc 2
2490 # aka the GNU/Linux C library 6.
2492 tm_file=m68k/linux.h
2493 tmake_file="t-linux m68k/t-linux"
2494 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2495 extra_headers=math-68881.h
2498 if test x$enable_threads = xyes; then
2503 tmake_file=m68k/t-m68kbare
2504 tm_file=m68k/m68k-psos.h
2505 extra_headers=math-68881.h
2509 tmake_file="m68k/t-m68kbare t-rtems"
2510 tm_file=m68k/rtems.h
2511 extra_headers=math-68881.h
2514 m68k-*-rtemself*|m68k-*-rtems*)
2515 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2516 tm_file=m68k/rtemself.h
2517 extra_headers=math-68881.h
2523 tm_file=m88k/dguxbcs.h
2524 tmake_file=m88k/t-dguxbcs
2528 tmake_file=m88k/t-dgux
2531 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2532 xmake_file=m88k/x-dgux
2533 if test x$gas = xyes
2535 tmake_file=m88k/t-dgux-gas
2538 m88k-dolphin-sysv3*)
2539 tm_file=m88k/dolph.h
2540 extra_parts="crtbegin.o crtend.o"
2541 xm_file="m88k/xm-sysv3.h ${xm_file}"
2542 xmake_file=m88k/x-dolph
2543 if test x$gas = xyes
2545 tmake_file=m88k/t-m88k-gas
2548 m88k-tektronix-sysv3)
2549 tm_file=m88k/tekXD88.h
2550 extra_parts="crtbegin.o crtend.o"
2551 xm_file="m88k/xm-sysv3.h ${xm_file}"
2552 xmake_file=m88k/x-tekXD88
2553 if test x$gas = xyes
2555 tmake_file=m88k/t-m88k-gas
2559 tm_file=m88k/m88k-aout.h
2562 tm_file=m88k/m88k-coff.h
2563 tmake_file=m88k/t-bug
2567 extra_parts="crtbegin.o crtend.o"
2568 if test x$gas = xyes
2570 tmake_file=m88k/t-luna-gas
2572 tmake_file=m88k/t-luna
2576 tmake_file="${tmake_file} m88k/t-luna-gas"
2577 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2578 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2581 tm_file=m88k/sysv3.h
2582 extra_parts="crtbegin.o crtend.o"
2583 xm_file="m88k/xm-sysv3.h ${xm_file}"
2584 xmake_file=m88k/x-sysv3
2585 if test x$gas = xyes
2587 tmake_file=m88k/t-m88k-gas
2591 tm_file=m88k/sysv4.h
2592 extra_parts="crtbegin.o crtend.o"
2593 xmake_file=m88k/x-sysv4
2594 tmake_file=m88k/t-sysv4
2597 tm_file=mcore/mcore-elf.h
2598 tmake_file=mcore/t-mcore
2601 tm_file=mcore/mcore-pe.h
2602 tmake_file=mcore/t-mcore-pe
2604 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2605 if test "x$gnu_ld" = xyes
2607 tm_file="mips/iris6.h mips/iris6gld.h"
2609 tm_file=mips/iris6.h
2611 tmake_file=mips/t-iris6
2612 xm_file=mips/xm-iris6.h
2613 xmake_file=mips/x-iris6
2614 # if test x$enable_threads = xyes; then
2615 # thread_file='irix'
2619 tm_file="mips/elf.h mips/vxworks.h"
2620 tmake_file=mips/t-ecoff
2623 extra_parts="crtbegin.o crtend.o"
2624 thread_file='vxworks'
2626 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2627 tm_file="mips/iris6.h mips/cross64.h"
2629 xm_file="mips/xm-iris5.h"
2630 xmake_file=mips/x-iris
2631 tmake_file=mips/t-cross64
2632 # See comment in mips/iris[56].h files.
2634 # if test x$enable_threads = xyes; then
2635 # thread_file='irix'
2639 if test x$gas = xyes
2641 if test x$stabs = xyes
2643 tm_file=mips/iris5gdb.h
2645 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2648 tm_file=mips/sni-svr4.h
2651 xmake_file=mips/x-sni-svr4
2652 tmake_file=mips/t-mips-gas
2653 if test x$gnu_ld != xyes
2658 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2659 if test x$gas = xyes
2661 tm_file="mips/iris5.h mips/iris5gas.h"
2662 if test x$stabs = xyes
2664 tm_file="${tm_file} dbx.h"
2667 tm_file=mips/iris5.h
2670 xm_file="mips/xm-iris5.h"
2671 xmake_file=mips/x-iris
2672 # mips-tfile doesn't work yet
2673 tmake_file=mips/t-mips-gas
2674 # See comment in mips/iris5.h file.
2676 # if test x$enable_threads = xyes; then
2677 # thread_file='irix'
2680 mips-sgi-irix4loser*) # Mostly like a MIPS.
2681 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2682 if test x$stabs = xyes; then
2683 tm_file="${tm_file} dbx.h"
2686 xmake_file=mips/x-iris
2687 if test x$gas = xyes
2689 tmake_file=mips/t-mips-gas
2691 extra_passes="mips-tfile mips-tdump"
2693 if test x$gnu_ld != xyes
2697 # if test x$enable_threads = xyes; then
2698 # thread_file='irix'
2701 mips-sgi-irix4*) # Mostly like a MIPS.
2702 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2703 if test x$stabs = xyes; then
2704 tm_file="${tm_file} dbx.h"
2707 xmake_file=mips/x-iris
2708 if test x$gas = xyes
2710 tmake_file=mips/t-mips-gas
2712 extra_passes="mips-tfile mips-tdump"
2714 if test x$gnu_ld != xyes
2718 # if test x$enable_threads = xyes; then
2719 # thread_file='irix'
2722 mips-sgi-*) # Mostly like a MIPS.
2723 tm_file="mips/iris3.h ${tm_file}"
2724 if test x$stabs = xyes; then
2725 tm_file="${tm_file} dbx.h"
2728 xmake_file=mips/x-iris3
2729 if test x$gas = xyes
2731 tmake_file=mips/t-mips-gas
2733 extra_passes="mips-tfile mips-tdump"
2735 if test x$gnu_ld != xyes
2740 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2741 tm_file="mips/osfrose.h ${tm_file}"
2742 xmake_file=mips/x-osfrose
2743 tmake_file=mips/t-osfrose
2744 extra_objs=halfpic.o
2747 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2748 tm_file=mips/dec-osf1.h
2749 if test x$stabs = xyes; then
2750 tm_file="${tm_file} dbx.h"
2752 xmake_file=mips/x-dec-osf1
2753 if test x$gas = xyes
2755 tmake_file=mips/t-mips-gas
2757 tmake_file=mips/t-ultrix
2758 extra_passes="mips-tfile mips-tdump"
2760 if test x$gnu_ld != xyes
2765 mips-dec-bsd*) # Decstation running 4.4 BSD
2766 tm_file=mips/dec-bsd.h
2767 if test x$gas = xyes
2769 tmake_file=mips/t-mips-gas
2771 tmake_file=mips/t-ultrix
2772 extra_passes="mips-tfile mips-tdump"
2774 if test x$gnu_ld != xyes
2779 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2780 tm_file=mips/netbsd.h
2781 # On NetBSD, the headers are already okay, except for math.h.
2784 mips*-*-linux*) # Linux MIPS, either endian.
2787 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2788 *) tm_file="mips/elf.h mips/linux.h" ;;
2791 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2794 if test x$enable_threads = xyes; then
2798 mips*el-*-openbsd*) # mips little endian
2799 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2801 mips*-*-openbsd*) # mips big endian
2802 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2803 tm_file="mips/openbsd-be.h ${tm_file}"
2805 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2806 tm_file="mips/news4.h ${tm_file}"
2807 if test x$stabs = xyes; then
2808 tm_file="${tm_file} dbx.h"
2810 if test x$gas = xyes
2812 tmake_file=mips/t-mips-gas
2814 extra_passes="mips-tfile mips-tdump"
2816 if test x$gnu_ld != xyes
2820 xmake_file=mips/x-sony
2822 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2823 # That is based on svr4.
2824 # t-svr4 is not right because this system doesn't use ELF.
2825 tm_file="mips/news5.h ${tm_file}"
2826 if test x$stabs = xyes; then
2827 tm_file="${tm_file} dbx.h"
2830 if test x$gas = xyes
2832 tmake_file=mips/t-mips-gas
2834 extra_passes="mips-tfile mips-tdump"
2836 if test x$gnu_ld != xyes
2841 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2842 tm_file="mips/svr4-5.h mips/svr4-t.h"
2843 if test x$stabs = xyes; then
2844 tm_file="${tm_file} dbx.h"
2847 xmake_file=mips/x-sysv
2848 if test x$gas = xyes
2850 tmake_file=mips/t-mips-gas
2851 extra_parts="crtbegin.o crtend.o"
2853 tmake_file=mips/t-mips
2854 extra_passes="mips-tfile mips-tdump"
2856 if test x$gnu_ld != xyes
2861 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2862 tm_file="mips/ultrix.h ${tm_file}"
2863 if test x$stabs = xyes; then
2864 tm_file="${tm_file} dbx.h"
2866 xmake_file=mips/x-ultrix
2867 if test x$gas = xyes
2869 tmake_file=mips/t-mips-gas
2871 tmake_file=mips/t-ultrix
2872 extra_passes="mips-tfile mips-tdump"
2874 if test x$gnu_ld != xyes
2880 mips-*-riscos[56789]bsd*)
2882 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2883 if test x$stabs = xyes; then
2884 tm_file="${tm_file} dbx.h"
2886 if test x$gas = xyes
2888 tmake_file=mips/t-bsd-gas
2890 tmake_file=mips/t-bsd
2891 extra_passes="mips-tfile mips-tdump"
2893 if test x$gnu_ld != xyes
2899 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2901 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2902 if test x$stabs = xyes; then
2903 tm_file="${tm_file} dbx.h"
2905 if test x$gas = xyes
2907 tmake_file=mips/t-bsd-gas
2909 tmake_file=mips/t-bsd
2910 extra_passes="mips-tfile mips-tdump"
2912 if test x$gnu_ld != xyes
2918 mips-*-riscos[56789]sysv4*)
2920 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2921 if test x$stabs = xyes; then
2922 tm_file="${tm_file} dbx.h"
2924 xmake_file=mips/x-sysv
2925 if test x$gas = xyes
2927 tmake_file=mips/t-svr4-gas
2929 tmake_file=mips/t-svr4
2930 extra_passes="mips-tfile mips-tdump"
2932 if test x$gnu_ld != xyes
2938 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2940 tm_file="mips/svr4-4.h ${tm_file}"
2941 if test x$stabs = xyes; then
2942 tm_file="${tm_file} dbx.h"
2945 xmake_file=mips/x-sysv
2946 if test x$gas = xyes
2948 tmake_file=mips/t-svr4-gas
2950 tmake_file=mips/t-svr4
2951 extra_passes="mips-tfile mips-tdump"
2953 if test x$gnu_ld != xyes
2959 mips-*-riscos[56789]sysv*)
2961 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2962 if test x$stabs = xyes; then
2963 tm_file="${tm_file} dbx.h"
2966 xmake_file=mips/x-sysv
2967 if test x$gas = xyes
2969 tmake_file=mips/t-svr3-gas
2971 tmake_file=mips/t-svr3
2972 extra_passes="mips-tfile mips-tdump"
2974 if test x$gnu_ld != xyes
2979 mips-*-sysv* | mips-*-riscos*sysv*)
2980 tm_file="mips/svr3-4.h ${tm_file}"
2981 if test x$stabs = xyes; then
2982 tm_file="${tm_file} dbx.h"
2985 xmake_file=mips/x-sysv
2986 if test x$gas = xyes
2988 tmake_file=mips/t-svr3-gas
2990 tmake_file=mips/t-svr3
2991 extra_passes="mips-tfile mips-tdump"
2993 if test x$gnu_ld != xyes
2999 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3001 tm_file=mips/mips-5.h
3002 if test x$stabs = xyes; then
3003 tm_file="${tm_file} dbx.h"
3005 if test x$gas = xyes
3007 tmake_file=mips/t-mips-gas
3009 extra_passes="mips-tfile mips-tdump"
3011 if test x$gnu_ld != xyes
3019 tm_file=mips/ecoffl.h
3020 if test x$stabs = xyes; then
3021 tm_file="${tm_file} dbx.h"
3023 tmake_file=mips/t-ecoff
3026 tm_file="gofast.h mips/ecoff.h"
3027 if test x$stabs = xyes; then
3028 tm_file="${tm_file} dbx.h"
3030 tmake_file=mips/t-ecoff
3033 tm_file="mips/elfl.h"
3034 tmake_file=mips/t-elf
3037 tm_file="mips/elf.h"
3038 tmake_file=mips/t-elf
3041 tm_file="mips/elfl64.h"
3042 tmake_file=mips/t-elf
3044 mips64orionel-*-elf*)
3045 tm_file="mips/elforion.h mips/elfl64.h"
3046 tmake_file=mips/t-elf
3049 tm_file="mips/elf64.h"
3050 tmake_file=mips/t-elf
3053 tm_file="mips/elforion.h mips/elf64.h"
3054 tmake_file=mips/t-elf
3056 mips64orion-*-rtems*)
3057 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
3058 tmake_file="mips/t-elf t-rtems"
3061 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
3062 tmake_file=mips/t-r3900
3065 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
3066 tmake_file=mips/t-r3900
3068 mips-*-*) # Default MIPS RISC-OS 4.0.
3069 if test x$stabs = xyes; then
3070 tm_file="${tm_file} dbx.h"
3072 if test x$gas = xyes
3074 tmake_file=mips/t-mips-gas
3076 extra_passes="mips-tfile mips-tdump"
3078 if test x$gnu_ld != xyes
3086 tm_file="mn10200/mn10200.h"
3087 if test x$stabs = xyes
3089 tm_file="${tm_file} dbx.h"
3095 tm_file="mn10300/mn10300.h"
3096 if test x$stabs = xyes
3098 tm_file="${tm_file} dbx.h"
3103 tm_file=ns32k/encore.h
3107 tm_file=ns32k/sequent.h
3111 tm_file=ns32k/tek6100.h
3115 tm_file=ns32k/tek6200.h
3118 # This has not been updated to GCC 2.
3121 # xmake_file=ns32k/x-genix
3122 # tm_file=ns32k/genix.h
3126 tm_file=ns32k/merlin.h
3130 tm_file=ns32k/pc532-mach.h
3134 tm_file=ns32k/pc532-min.h
3135 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3140 tm_file=ns32k/netbsd.h
3141 xm_file="ns32k/xm-netbsd.h ${xm_file}"
3142 # On NetBSD, the headers are already okay, except for math.h.
3147 tm_file="${tm_file} pdp11/2bsd.h"
3156 # This has not been updated to GCC 2.
3159 # xmake_file=pyr/x-pyr
3164 tm_file="svr4.h pj/linux.h ${tm_file}"
3169 tm_file="svr4.h pj/pjl.h ${tm_file}"
3176 xmake_file=romp/x-mach
3183 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3187 tm_file=rs6000/beos.h
3188 xm_file=rs6000/xm-beos.h
3189 tmake_file=rs6000/t-beos
3190 xmake_file=rs6000/x-beos
3193 tm_file=rs6000/sysv4.h
3194 xm_file="rs6000/xm-sysv4.h"
3195 xm_defines="USG POSIX"
3196 extra_headers=ppc-asm.h
3197 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3198 xmake_file=rs6000/x-sysv4
3201 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3202 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3203 extra_headers=ppc-asm.h
3206 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3207 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3208 extra_headers=ppc-asm.h
3211 tm_file="rs6000/sysv4.h"
3212 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3213 extra_headers=ppc-asm.h
3216 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3217 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3218 extra_headers=ppc-asm.h
3221 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3222 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3223 extra_headers=ppc-asm.h
3225 powerpc-*-linux*libc1)
3226 tm_file="rs6000/sysv4.h rs6000/linux.h"
3227 xm_file=rs6000/xm-sysv4.h
3228 out_file=rs6000/rs6000.c
3229 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3231 extra_headers=ppc-asm.h
3232 if test x$enable_threads = xyes; then
3237 tm_file="rs6000/sysv4.h rs6000/linux.h"
3238 xm_file="rs6000/xm-sysv4.h"
3239 xm_defines="USG ${xm_defines}"
3240 out_file=rs6000/rs6000.c
3241 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3243 extra_headers=ppc-asm.h
3244 if test x$enable_threads = xyes; then
3248 powerpc-wrs-vxworks*)
3250 xm_file="rs6000/xm-sysv4.h"
3251 xm_defines="USG POSIX"
3252 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3253 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3254 extra_headers=ppc-asm.h
3255 thread_file='vxworks'
3257 powerpcle-wrs-vxworks*)
3259 xm_file="rs6000/xm-sysv4.h"
3260 xm_defines="USG POSIX"
3261 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3262 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3263 extra_headers=ppc-asm.h
3264 thread_file='vxworks'
3267 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3268 xm_file="rs6000/xm-sysv4.h"
3269 xm_defines="USG POSIX"
3270 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3271 xmake_file=rs6000/x-sysv4
3272 extra_headers=ppc-asm.h
3275 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3276 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3277 extra_headers=ppc-asm.h
3279 powerpcle-*-eabisim*)
3280 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3281 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3282 extra_headers=ppc-asm.h
3285 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3286 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3287 extra_headers=ppc-asm.h
3289 powerpcle-*-solaris2*)
3290 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3291 xm_file="rs6000/xm-sysv4.h"
3292 xm_defines="USG POSIX"
3293 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3294 xmake_file=rs6000/x-sysv4
3295 extra_headers=ppc-asm.h
3298 rs6000-ibm-aix3.[01]*)
3300 tm_file=rs6000/aix31.h
3301 xmake_file=rs6000/x-aix31
3306 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3308 tm_file=rs6000/aix3newas.h
3309 if test x$host != x$target
3311 tmake_file=rs6000/t-xnewas
3313 tmake_file=rs6000/t-newas
3319 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3321 tm_file=rs6000/aix41.h
3322 if test x$host != x$target
3324 tmake_file=rs6000/t-xnewas
3326 tmake_file=rs6000/t-newas
3328 if test "$gnu_ld" = yes
3330 xmake_file=rs6000/x-aix41-gld
3332 tmake_file='rs6000/t-newas rs6000/t-aix41'
3334 xmake_file=rs6000/x-aix41
3339 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3341 tm_file=rs6000/aix43.h
3342 tmake_file=rs6000/t-aix43
3343 xmake_file=rs6000/x-aix41
3349 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3351 tm_file=rs6000/aix43.h
3352 tmake_file=rs6000/t-aix43
3353 xmake_file=rs6000/x-aix41
3367 tm_file=rs6000/mach.h
3368 xm_file="${xm_file} rs6000/xm-mach.h"
3369 xmake_file=rs6000/x-mach
3373 tm_file=rs6000/lynx.h
3374 xm_file=rs6000/xm-lynx.h
3375 tmake_file=rs6000/t-rs6000
3376 xmake_file=rs6000/x-lynx
3380 tmake_file="sh/t-sh sh/t-elf"
3381 tm_file="sh/sh.h sh/elf.h"
3385 tmake_file="sh/t-sh sh/t-elf t-rtems"
3386 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
3390 tmake_file="sh/t-sh t-rtems"
3391 tm_file="sh/sh.h sh/rtems.h"
3395 tm_file="sh/sh.h sh/elf.h sh/linux.h"
3396 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
3399 if test x$enable_threads = xyes; then
3409 xm_file="xm-alloca.h ${xm_file}"
3412 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3413 tm_file=sparc/vxsparc.h
3414 tmake_file=sparc/t-vxsparc
3416 thread_file='vxworks'
3419 tmake_file=sparc/t-sparcbare
3420 tm_file="sparc/aout.h libgloss.h"
3423 tm_file=sparc/netbsd.h
3428 # we need collect2 until our bug is fixed...
3436 tmake_file=sparc/t-elf
3437 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3441 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
3442 xm_file="${xm_file} sparc/xm-linux.h"
3443 tm_file=sparc/linux-aout.h
3447 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
3448 xm_file="${xm_file} sparc/xm-linux.h"
3450 tm_file=sparc/linux.h
3451 tmake_file="t-linux t-linux-gnulibc1"
3452 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3456 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
3457 xm_file="${xm_file} sparc/xm-linux.h"
3459 tm_file=sparc/linux.h
3460 tmake_file="t-linux"
3461 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3463 if test x$enable_threads = xyes; then
3469 if test x$gas = xyes
3471 tm_file=sparc/lynx.h
3473 tm_file=sparc/lynx-ng.h
3475 xm_file=sparc/xm-lynx.h
3476 tmake_file=sparc/t-sunos41
3480 tmake_file="sparc/t-sparcbare t-rtems"
3481 tm_file=sparc/rtems.h
3483 sparc-*-rtems*|sparc-*-rtemself*)
3484 tm_file="sparc/rtemself.h"
3485 tmake_file="sparc/t-elf t-rtems"
3486 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3490 sparcv9-*-solaris2*)
3491 if test x$gnu_ld = xyes
3493 tm_file=sparc/sol2-64.h
3495 tm_file=sparc/sol2-sld-64.h
3497 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3498 xm_defines="USG POSIX"
3499 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3500 xmake_file=sparc/x-sysv4
3501 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3503 if test x${enable_threads} = x ; then
3504 enable_threads=$have_pthread_h
3505 if test x${enable_threads} = x ; then
3506 enable_threads=$have_thread_h
3509 if test x${enable_threads} = xyes ; then
3510 if test x${have_pthread_h} = xyes ; then
3513 thread_file='solaris'
3517 sparc-hal-solaris2*)
3518 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3519 xm_defines="USG POSIX"
3520 tm_file="sparc/sol2.h sparc/hal.h"
3521 tmake_file="sparc/t-halos sparc/t-sol2"
3522 xmake_file=sparc/x-sysv4
3523 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3534 thread_file='solaris'
3537 if test x$gnu_ld = xyes
3539 tm_file=sparc/sol2.h
3541 tm_file=sparc/sol2-sld.h
3543 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3544 xm_defines="USG POSIX"
3545 tmake_file=sparc/t-sol2
3546 xmake_file=sparc/x-sysv4
3547 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3550 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3553 if test x$gnu_ld = xyes
3555 tm_file=sparc/sol2-64.h
3557 tm_file=sparc/sol2-sld-64.h
3559 tmake_file="$tmake_file sparc/t-sol2-64"
3572 if test x${enable_threads} = x; then
3573 enable_threads=$have_pthread_h
3574 if test x${enable_threads} = x; then
3575 enable_threads=$have_thread_h
3578 if test x${enable_threads} = xyes; then
3579 if test x${have_pthread_h} = xyes; then
3582 thread_file='solaris'
3587 tm_file=sparc/sunos4.h
3588 tmake_file=sparc/t-sunos40
3592 tm_file=sparc/sunos4.h
3593 tmake_file=sparc/t-sunos41
3595 if test x$gas = xyes; then
3596 tm_file="${tm_file} sparc/sun4gas.h"
3600 tm_file=sparc/sun4o3.h
3604 tm_file=sparc/sysv4.h
3605 xm_file="sparc/xm-sysv4.h"
3606 xm_defines="USG POSIX"
3608 xmake_file=sparc/x-sysv4
3609 extra_parts="crtbegin.o crtend.o"
3612 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3613 xm_defines="USG POSIX"
3614 tm_file=sparc/vxsim.h
3615 tmake_file=sparc/t-vxsparc
3616 xmake_file=sparc/x-sysv4
3619 tm_file="sparc/splet.h libgloss.h"
3620 tmake_file=sparc/t-splet
3623 tm_file="sparc/litecoff.h libgloss.h"
3624 tmake_file=sparc/t-sparclite
3627 tm_file="sparc/lite.h aoutos.h libgloss.h"
3628 tmake_file=sparc/t-sparclite
3631 tm_file="sparc/liteelf.h"
3632 tmake_file=sparc/t-sparclite
3633 extra_parts="crtbegin.o crtend.o"
3636 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3637 tmake_file=sparc/t-sp86x
3640 tm_file="sparc/sp86x-elf.h"
3641 tmake_file=sparc/t-sp86x
3642 extra_parts="crtbegin.o crtend.o"
3645 tmake_file=sparc/t-sp64
3646 tm_file=sparc/sp64-aout.h
3649 tmake_file=sparc/t-sp64
3650 tm_file=sparc/sp64-elf.h
3651 extra_parts="crtbegin.o crtend.o"
3653 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3654 tmake_file="t-linux sparc/t-linux64"
3655 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3656 tm_file=sparc/linux64.h
3658 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3660 if test x$enable_threads = xyes; then
3665 # This hasn't been upgraded to GCC 2.
3666 # tahoe-harris-*) # Harris tahoe, using COFF.
3667 # tm_file=tahoe/harris.h
3669 # tahoe-*-bsd*) # tahoe running BSD
3674 *** The Thumb targets have been depreciated. The equivalent
3675 *** ARM based toolchain can now generated Thumb instructions
3676 *** when the -mthumb switch is given to the compiler.])
3678 # This hasn't been upgraded to GCC 2.
3685 tm_file="v850/rtems.h"
3686 xm_file="v850/xm-v850.h"
3687 tmake_file="v850/t-v850 t-rtems"
3688 if test x$stabs = xyes
3690 tm_file="${tm_file} dbx.h"
3695 target_cpu_default="TARGET_CPU_generic"
3697 tm_file="v850/v850.h"
3698 xm_file="v850/xm-v850.h"
3699 tmake_file=v850/t-v850
3700 if test x$stabs = xyes
3702 tm_file="${tm_file} dbx.h"
3706 vax-*-bsd*) # vaxen running BSD
3710 vax-*-sysv*) # vaxen running system V
3711 tm_file="${tm_file} vax/vaxv.h"
3716 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3722 tmake_file="${tmake_file} vax/t-openbsd"
3723 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3724 xm_file="xm-openbsd.h vax/xm-vax.h"
3728 vax-*-ultrix*) # vaxen running ultrix
3729 tm_file="${tm_file} vax/ultrix.h"
3732 vax-*-vms*) # vaxen running VMS
3733 xm_file=vax/xm-vms.h
3737 vax-*-*) # vax default entry
3741 xm_file="${xm_file} xm-svr3"
3745 echo "Configuration $machine not supported" 1>&2
3752 ;; # Existing GNU/Linux systems do not use the GNU setup.
3754 # On the GNU system, the setup is just about the same on
3755 # each different CPU. The specific machines that GNU
3756 # supports are matched above and just set $cpu_type.
3757 xm_file="xm-gnu.h ${xm_file}"
3758 tm_file=${cpu_type}/gnu.h
3759 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3760 # GNU always uses ELF.
3762 # GNU tools are the only tools.
3765 xmake_file=x-linux # These details are the same as Linux.
3766 tmake_file=t-gnu # These are not.
3769 xmake_try_sysv=x-sysv
3770 install_headers_dir=install-headers-cpio
3773 install_headers_dir=install-headers-cpio
3777 # Distinguish i[34567]86
3778 # Also, do not run mips-tfile on MIPS if using gas.
3779 # Process --with-cpu= for PowerPC/rs6000
3780 target_cpu_default2=
3783 target_cpu_default2=1
3786 case $target_alias in
3788 target_cpu_default2=4
3791 target_cpu_default2=2
3795 i686-*-* | i786-*-*)
3796 target_cpu_default2=3
3803 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3806 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3809 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3812 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3815 target_cpu_default2="MASK_CPU_EV5"
3819 if test x$gas = xyes
3821 if test "$target_cpu_default2" = ""
3823 target_cpu_default2="MASK_GAS"
3825 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3830 case "x$with_cpu" in
3833 target_cpu_default2="TARGET_CPU_generic"
3836 # Distinguish cores, and major variants
3837 # arm7m doesn't exist, but D & I don't affect code
3839 xarm[23678] | xarm250 | xarm[67][01]0 \
3840 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3841 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3842 | xstrongarm | xstrongarm110 | xstrongarm1100)
3844 target_cpu_default2="TARGET_CPU_$with_cpu"
3848 echo "--with-cpu must be passed a value" 1>&2
3853 if test x$pass2done = xyes
3855 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3862 mips*-*-ecoff* | mips*-*-elf*)
3863 if test x$gas = xyes
3865 if test x$gnu_ld = xyes
3867 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3869 target_cpu_default2="MASK_GAS"
3874 if test x$gas = xyes
3876 target_cpu_default2="MASK_GAS"
3879 powerpc*-*-* | rs6000-*-*)
3880 case "x$with_cpu" in
3884 xcommon | xpower | xpower2 | xpowerpc | xrios \
3885 | xrios1 | xrios2 | xrsc | xrsc1 \
3886 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3887 | xec603e | x740 | x750 | x401 \
3888 | x403 | x505 | x801 | x821 | x823 | x860)
3889 target_cpu_default2="\"$with_cpu\""
3893 echo "--with-cpu must be passed a value" 1>&2
3898 if test x$pass2done = xyes
3900 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3907 case ".$with_cpu" in
3909 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3911 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3912 target_cpu_default2="TARGET_CPU_$with_cpu"
3915 if test x$pass2done = xyes
3917 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3925 if test "$target_cpu_default2" != ""
3927 if test "$target_cpu_default" != ""
3929 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3931 target_cpu_default=$target_cpu_default2
3935 # No need for collect2 if we have the GNU linker.
3936 # Actually, there is now; GNU ld doesn't handle the EH info or
3937 # collecting for shared libraries.
3944 # Save data on machine being used to compile GCC in build_xm_file.
3945 # Save data on host machine in vars host_xm_file and host_xmake_file.
3946 if test x$pass1done = x
3948 if test x"$xm_file" = x
3949 then build_xm_file=$cpu_type/xm-$cpu_type.h
3950 else build_xm_file=$xm_file
3952 build_xm_defines=$xm_defines
3953 build_install_headers_dir=$install_headers_dir
3954 build_exeext=$exeext
3957 if test x$pass2done = x
3959 if test x"$xm_file" = x
3960 then host_xm_file=$cpu_type/xm-$cpu_type.h
3961 else host_xm_file=$xm_file
3963 host_xm_defines=$xm_defines
3964 if test x"$xmake_file" = x
3965 then xmake_file=$cpu_type/x-$cpu_type
3967 host_xmake_file="$xmake_file"
3968 host_truncate_target=$truncate_target
3969 host_extra_gcc_objs=$extra_gcc_objs
3970 host_extra_objs=$extra_host_objs
3977 extra_objs="${host_extra_objs} ${extra_objs}"
3979 # Default the target-machine variables that were not explicitly set.
3980 if test x"$tm_file" = x
3981 then tm_file=$cpu_type/$cpu_type.h; fi
3983 if test x$extra_headers = x
3984 then extra_headers=; fi
3986 if test x"$xm_file" = x
3987 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3989 if test x$md_file = x
3990 then md_file=$cpu_type/$cpu_type.md; fi
3992 if test x$out_file = x
3993 then out_file=$cpu_type/$cpu_type.c; fi
3995 if test x"$tmake_file" = x
3996 then tmake_file=$cpu_type/t-$cpu_type
3999 if test x"$dwarf2" = xyes
4000 then tm_file="$tm_file tm-dwarf2.h"
4003 if test x$float_format = x
4004 then float_format=i64
4007 if test $float_format = none
4008 then float_h_file=Makefile.in
4009 else float_h_file=float-$float_format.h
4012 # Handle cpp installation.
4013 if test x$enable_cpp != xno
4015 tmake_file="$tmake_file t-install-cpp"
4018 # Say what files are being used for the output code and MD file.
4019 echo "Using \`$srcdir/config/$out_file' to output insns."
4020 echo "Using \`$srcdir/config/$md_file' as machine description file."
4023 for f in $tm_file; do
4026 if test $count = ax; then
4027 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4029 echo "Using the following target machine macro files:"
4030 for f in $tm_file; do
4031 echo " $srcdir/config/$f"
4036 for f in $host_xm_file; do
4039 if test $count = ax; then
4040 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4042 echo "Using the following host machine macro files:"
4043 for f in $host_xm_file; do
4044 echo " $srcdir/config/$f"
4048 if test "$host_xm_file" != "$build_xm_file"; then
4050 for f in $build_xm_file; do
4053 if test $count = ax; then
4054 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4056 echo "Using the following build machine macro files:"
4057 for f in $build_xm_file; do
4058 echo " $srcdir/config/$f"
4063 if test x$thread_file = x; then
4064 if test x$target_thread_file != x; then
4065 thread_file=$target_thread_file
4067 thread_file='single'
4071 # Set up the header files.
4072 # $links is the list of header files to create.
4073 # $vars is the list of shell variables with file names to include.
4074 # auto-host.h is the file containing items generated by autoconf and is
4075 # the first file included by config.h.
4077 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
4079 # If host=build, it is correct to have hconfig include auto-host.h
4080 # as well. If host!=build, we are in error and need to do more
4081 # work to find out the build config parameters.
4082 if test x$host = x$build
4084 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
4086 # We create a subdir, then run autoconf in the subdir.
4087 # To prevent recursion we set host and build for the new
4088 # invocation of configure to the build for this invocation
4095 /*) realsrcdir=${srcdir};;
4096 *) realsrcdir=../${srcdir};;
4098 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4099 --target=$target --host=$build --build=$build
4101 # We just finished tests for the build machine, so rename
4102 # the file auto-build.h in the gcc directory.
4103 mv auto-host.h ../auto-build.h
4106 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4109 xm_file="gansidecl.h ${xm_file}"
4110 tm_file="gansidecl.h ${tm_file}"
4112 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4113 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4114 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4117 if test -f config.status; then mv -f config.status config.bak; fi
4120 while test -n "$vars"
4122 set $vars; var=$1; shift; vars=$*
4123 set $links; link=$1; shift; links=$*
4124 set $defines; define=$1; shift; defines=$*
4127 # Make sure the file is created, even if it is empty.
4130 # Define TARGET_CPU_DEFAULT if the system wants one.
4131 # This substitutes for lots of *.h files.
4132 if test "$target_cpu_default" != "" -a $link = tm.h
4134 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4137 for file in `eval echo '$'$var`; do
4139 auto-host.h | auto-build.h )
4142 echo '#ifdef IN_GCC' >>$link
4145 echo "#include \"$file\"" >>$link
4147 auto-host.h | auto-build.h )
4150 echo '#endif' >>$link
4155 for def in `eval echo '$'$define`; do
4156 echo "#ifndef $def" >>$link
4157 echo "#define $def" >>$link
4158 echo "#endif" >>$link
4162 # Truncate the target if necessary
4163 if test x$host_truncate_target != x; then
4164 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4167 # Get the version trigger filename from the toplevel
4168 if test "${with_gcc_version_trigger+set}" = set; then
4169 gcc_version_trigger=$with_gcc_version_trigger
4171 gcc_version_trigger=${srcdir}/version.c
4174 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
4177 # Internationalization
4179 VERSION="$gcc_version"
4180 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4181 [Define to the name of the distribution.])
4182 AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4183 [Define to the version of the distribution.])
4189 # Enable NLS support by default
4191 [ --enable-nls use Native Language Support (default)],
4194 # if cross compiling, disable NLS support.
4195 # It's not worth the trouble, at least for now.
4197 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4198 AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
4203 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4205 # Windows32 Registry support for specifying GCC installation paths.
4206 AC_ARG_ENABLE(win32-registry,
4207 [ --disable-win32-registry
4208 Disable lookup of installation paths in the
4209 Registry on Windows hosts.
4210 --enable-win32-registry Enable registry lookup (default).
4211 --enable-win32-registry=KEY
4212 Use KEY instead of GCC version as the last portion
4213 of the registry key.],,)
4215 AC_MSG_CHECKING(whether windows registry support is requested)
4216 if test x$enable_win32_registry != xno; then
4217 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4218 [Define to 1 if installation paths should be looked up in Windows32
4219 Registry. Ignored on non windows32 hosts.])
4225 # Check if user specified a different registry key.
4226 case x${enable_win32_registry} in
4229 gcc_cv_win32_registry_key="$VERSION"
4232 # no registry lookup.
4233 gcc_cv_win32_registry_key=''
4236 # user-specified key.
4237 gcc_cv_win32_registry_key="$enable_win32_registry"
4241 if test x$enable_win32_registry != xno; then
4242 AC_MSG_CHECKING(registry key on windows hosts)
4243 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4244 [Define to be the last portion of registry key on windows hosts.])
4245 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4248 # Get an absolute path to the GCC top-level source directory
4254 # Conditionalize the makefile for this host machine.
4255 # Make-host contains the concatenation of all host makefile fragments
4256 # [there can be more than one]. This file is built by configure.frag.
4257 host_overrides=Make-host
4258 dep_host_xmake_file=
4259 for f in .. ${host_xmake_file}
4261 if test -f ${srcdir}/config/$f
4263 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4267 # Conditionalize the makefile for this target machine.
4268 # Make-target contains the concatenation of all host makefile fragments
4269 # [there can be more than one]. This file is built by configure.frag.
4270 target_overrides=Make-target
4272 for f in .. ${tmake_file}
4274 if test -f ${srcdir}/config/$f
4276 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4280 # If the host doesn't support symlinks, modify CC in
4281 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4282 # Otherwise, we can use "CC=$(CC)".
4284 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4286 cc_set_by_configure="\$(CC)"
4287 quoted_cc_set_by_configure="\$(CC)"
4288 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4291 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4293 symbolic_link="cp -p"
4297 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4298 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4299 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4303 out_object_file=`basename $out_file .c`.o
4306 for f in $tm_file; do
4309 tm_file_list="${tm_file_list} $f" ;;
4310 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4315 for f in $host_xm_file; do
4317 auto-host.h | gansidecl.h | hwint.h )
4318 host_xm_file_list="${host_xm_file_list} $f" ;;
4319 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4324 for f in $build_xm_file; do
4326 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4327 build_xm_file_list="${build_xm_file_list} $f" ;;
4328 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4332 # Define macro CROSS_COMPILE in compilation
4333 # if this is a cross-compiler.
4334 # Also use all.cross instead of all.internal
4335 # and add cross-make to Makefile.
4336 cross_overrides="/dev/null"
4337 if test x$host != x$target
4339 cross_defines="CROSS=-DCROSS_COMPILE"
4340 cross_overrides="${topdir}/cross-make"
4343 # If this is a cross-compiler that does not
4344 # have its own set of headers then define
4347 # If this is using newlib, then define inhibit_libc in
4348 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4349 # libgcc.a, but that's OK because newlib should have its own version of
4352 if [test x$host != x$target] && [test x$with_headers = x]; then
4353 inhibit_libc=-Dinhibit_libc
4355 if [test x$with_newlib = xyes]; then
4356 inhibit_libc=-Dinhibit_libc
4359 AC_SUBST(inhibit_libc)
4361 # When building gcc with a cross-compiler, we need to fix a few things.
4362 # This must come after cross-make as we want all.build to override
4364 build_overrides="/dev/null"
4365 if test x$build != x$host
4367 build_overrides="${topdir}/build-make"
4370 # Expand extra_headers to include complete path.
4371 # This substitutes for lots of t-* files.
4373 if test "x$extra_headers" = x
4376 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4377 for file in $extra_headers;
4379 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4383 if test x$use_collect2 = xno; then
4387 # Add a definition of USE_COLLECT2 if system wants one.
4388 # Also tell toplev.c what to do.
4389 # This substitutes for lots of t-* files.
4390 if test x$use_collect2 = x
4395 will_use_collect2="collect2"
4396 maybe_use_collect2="-DUSE_COLLECT2"
4400 # Set MD_DEPS if the real md file is in md.pre-cpp.
4401 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4402 # for line oriented comments, so we must always use a GNU cpp. If
4403 # building gcc with a cross compiler, use the cross compiler just
4404 # built. Otherwise, we can use the cpp just built.
4406 if test "x$md_cppflags" = x
4408 md_file_sub=$srcdir/config/$md_file
4413 # If we have gas in the build tree, make a link to it.
4414 if test -f ../gas/Makefile; then
4415 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4418 # If we have nm in the build tree, make a link to it.
4419 if test -f ../binutils/Makefile; then
4420 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4423 # If we have ld in the build tree, make a link to it.
4424 if test -f ../ld/Makefile; then
4425 # if test x$use_collect2 = x; then
4426 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4428 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4432 # Figure out what assembler alignment features are present.
4433 AC_MSG_CHECKING(assembler alignment features)
4435 gcc_cv_as_alignment_features=
4436 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4437 if test -x "$DEFAULT_ASSEMBLER"; then
4438 gcc_cv_as="$DEFAULT_ASSEMBLER"
4439 elif test -x "$AS"; then
4441 elif test -x as$host_exeext; then
4442 # Build using assembler in the current directory.
4443 gcc_cv_as=./as$host_exeext
4444 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4445 # Single tree build which includes gas.
4446 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4449 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4451 if test x$gcc_cv_gas_version != x; then
4456 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4457 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4459 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4460 # Gas version 2.6 and later support for .balign and .p2align.
4461 # bytes to skip when using .p2align.
4462 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
4463 gcc_cv_as_alignment_features=".balign and .p2align"
4464 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4466 # Gas version 2.8 and later support specifying the maximum
4467 # bytes to skip when using .p2align.
4468 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
4469 gcc_cv_as_alignment_features=".p2align including maximum skip"
4470 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4473 elif test x$host = x$target; then
4475 # Search the same directories that the installed compiler will
4476 # search. Else we may find the wrong assembler and lose. If we
4477 # do not find a suitable assembler binary, then try the user's
4480 # Also note we have to check MD_EXEC_PREFIX before checking the
4481 # user's path. Unfortunately, there is no good way to get at the
4482 # value of MD_EXEC_PREFIX here. So we do a brute force search
4483 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4484 # to be fixed as part of the make/configure rewrite too.
4486 if test "x$exec_prefix" = xNONE; then
4487 if test "x$prefix" = xNONE; then
4488 test_prefix=/usr/local
4493 test_prefix=$exec_prefix
4496 # If the loop below does not find an assembler, then use whatever
4497 # one we can find in the users's path.
4501 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4502 $test_prefix/lib/gcc-lib/$target \
4503 /usr/lib/gcc/$target/$gcc_version \
4504 /usr/lib/gcc/$target \
4505 $test_prefix/$target/bin/$target/$gcc_version \
4506 $test_prefix/$target/bin \
4511 /bsd43/usr/lib/cmplrs/cc \
4512 /usr/cross64/usr/bin \
4513 /usr/lib/cmplrs/cc \
4514 /sysv/usr/lib/cmplrs/cc \
4515 /svr4/usr/lib/cmplrs/cc \
4518 for dir in $test_dirs; do
4519 if test -f $dir/as$host_exeext; then
4520 gcc_cv_as=$dir/as$host_exeext
4525 if test x$gcc_cv_as != x; then
4526 # Check if we have .balign and .p2align
4527 echo ".balign 4" > conftest.s
4528 echo ".p2align 2" >> conftest.s
4529 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4530 gcc_cv_as_alignment_features=".balign and .p2align"
4531 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4533 rm -f conftest.s conftest.o
4534 # Check if specifying the maximum bytes to skip when
4535 # using .p2align is supported.
4536 echo ".p2align 4,,7" > conftest.s
4537 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4538 gcc_cv_as_alignment_features=".p2align including maximum skip"
4539 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4541 rm -f conftest.s conftest.o
4543 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4545 AC_MSG_CHECKING(assembler subsection support)
4546 gcc_cv_as_subsections=
4547 if test x$gcc_cv_as != x; then
4548 # Check if we have .subsection
4549 echo ".subsection 1" > conftest.s
4550 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4551 gcc_cv_as_subsections=".subsection"
4552 if test -x nm$host_exeext; then
4553 gcc_cv_nm=./nm$host_exeext
4554 elif test x$host = x$target; then
4556 gcc_cv_nm=nm$host_exeext
4558 if test x$gcc_cv_nm != x; then
4559 cat > conftest.s <<EOF
4560 conftest_label1: .word 0
4562 conftest_label2: .word 0
4565 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4566 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4567 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4568 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4571 gcc_cv_as_subsections="working .subsection -1"
4572 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4573 [Define if your assembler supports .subsection and .subsection -1 starts
4574 emitting at the beginning of your section.])
4579 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4581 AC_MSG_RESULT($gcc_cv_as_subsections)
4583 AC_MSG_CHECKING(assembler weak support)
4585 if test x$gcc_cv_as != x; then
4586 # Check if we have .weak
4587 echo " .weak foobar" > conftest.s
4588 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4589 AC_DEFINE(HAVE_GAS_WEAK, 1,
4590 [Define if your assembler supports .weak.])
4591 gcc_cv_as_weak="yes"
4593 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4595 AC_MSG_RESULT($gcc_cv_as_weak)
4597 AC_MSG_CHECKING(assembler hidden support)
4599 if test x$gcc_cv_as != x; then
4600 # Check if we have .hidden
4601 echo " .hidden foobar" > conftest.s
4602 echo "foobar:" >> conftest.s
4603 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4604 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4605 [Define if your assembler supports .hidden.])
4606 gcc_cv_as_hidden="yes"
4608 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4610 AC_MSG_RESULT($gcc_cv_as_hidden)
4614 AC_CACHE_CHECK([assembler .register pseudo-op support],
4615 gcc_cv_as_register_pseudo_op, [
4616 gcc_cv_as_register_pseudo_op=unknown
4617 if test x$gcc_cv_as != x; then
4618 # Check if we have .register
4619 echo ".register %g2, #scratch" > conftest.s
4620 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4621 gcc_cv_as_register_pseudo_op=yes
4623 gcc_cv_as_register_pseudo_op=no
4625 rm -f conftest.s conftest.o
4628 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4629 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4630 [Define if your assembler supports .register.])
4633 AC_CACHE_CHECK([assembler supports -relax],
4634 gcc_cv_as_relax_opt, [
4635 gcc_cv_as_relax_opt=unknown
4636 if test x$gcc_cv_as != x; then
4637 # Check if gas supports -relax
4638 echo ".text" > conftest.s
4639 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
4640 gcc_cv_as_relax_opt=yes
4642 gcc_cv_as_relax_opt=no
4644 rm -f conftest.s conftest.o
4647 if test "x$gcc_cv_as_relax_opt" = xyes; then
4648 AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
4649 [Define if your assembler supports -relax option.])
4654 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4655 gcc_cv_as_flags64, [
4656 if test -n "$gcc_cv_as"; then
4657 echo ".xword foo" > conftest.s
4658 gcc_cv_as_flags64=no
4659 for flag in "-xarch=v9" "-64 -Av9"; do
4660 if $gcc_cv_as $flag -o conftest.o conftest.s \
4661 > /dev/null 2>&1; then
4662 gcc_cv_as_flags64=$flag
4666 rm -f conftest.s conftest.o
4668 if test "$gas" = yes; then
4669 gcc_cv_as_flags64="-64 -Av9"
4671 gcc_cv_as_flags64="-xarch=v9"
4675 if test "x$gcc_cv_as_flags64" = xno; then
4677 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4678 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4681 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4682 [Define if the assembler supports 64bit sparc.])
4685 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4689 if test "x$gcc_cv_as_flags64" != xno; then
4690 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4691 gcc_cv_as_offsetable_lo10, [
4692 gcc_cv_as_offsetable_lo10=unknown
4693 if test "x$gcc_cv_as" != x; then
4694 # Check if assembler has offsetable %lo()
4695 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4696 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4697 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4699 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4700 > /dev/null 2>&1; then
4701 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4702 gcc_cv_as_offsetable_lo10=no
4704 gcc_cv_as_offsetable_lo10=yes
4707 gcc_cv_as_offsetable_lo10=no
4709 rm -f conftest.s conftest.o conftest1.s conftest1.o
4712 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4713 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4714 [Define if your assembler supports offsetable %lo().])
4722 AC_MSG_CHECKING(assembler instructions)
4723 gcc_cv_as_instructions=
4724 if test x$gcc_cv_as != x; then
4725 set "filds fists" "filds mem; fists mem"
4728 echo "$2" > conftest.s
4729 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4730 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4731 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
4735 rm -f conftest.s conftest.o
4737 AC_MSG_RESULT($gcc_cv_as_instructions)
4741 # Figure out what language subdirectories are present.
4742 # Look if the user specified --enable-languages="..."; if not, use
4743 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4745 if test x"${enable_languages+set}" != xset; then
4746 if test x"${LANGUAGES+set}" = xset; then
4747 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4749 enable_languages=all
4752 if test x"${enable_languages}" = x; then
4753 AC_MSG_ERROR([--enable-languages needs at least one argument])
4757 for lang in ${srcdir}/*/config-lang.in ..
4761 # The odd quoting in the next line works around
4762 # an apparent bug in bash 1.12 on linux.
4764 ${srcdir}/[*]/config-lang.in) ;;
4766 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4767 if test "x$lang_alias" = x
4769 echo "$lang doesn't set \$language." 1>&2
4772 if test x"${enable_languages}" = xall; then
4775 case "${enable_languages}" in
4776 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4784 if test x"${add_this_lang}" = xyes; then
4786 ${srcdir}/ada/config-lang.in)
4787 if test x$gnat = xyes ; then
4788 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4792 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4801 # Make gthr-default.h if we have a thread file.
4803 if test $thread_file != single; then
4804 rm -f gthr-default.h
4805 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4806 gthread_flags=-DHAVE_GTHR_DEFAULT
4808 AC_SUBST(gthread_flags)
4810 # Find out what GC implementation we want, or may, use.
4812 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4813 with the compiler.],
4819 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4822 [if test $ac_cv_func_mmap_anywhere = yes \
4823 || test $ac_cv_func_valloc = yes; then
4829 echo "Using $GGC for garbage collection."
4831 # Use the system's zlib library.
4832 zlibdir=-L../../zlib
4833 zlibinc="-I\$(srcdir)/../../zlib"
4834 AC_ARG_WITH(system-zlib,
4835 [ --with-system-zlib use installed libz],
4842 # Build a new-abi (c++) system
4843 AC_ARG_ENABLE(new-gxx-abi,
4844 [ --enable-new-gxx-abi
4845 select the new abi for g++. You must select an ABI
4846 at configuration time, so that the correct runtime
4847 support is built. You cannot mix ABIs.],
4848 [AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4849 [Define if you want to always select the new-abi for g++.])
4850 GXX_ABI_FLAG='-fnew-abi'
4851 echo "Building a new-abi g++ compiler."
4853 AC_SUBST(GXX_ABI_FLAG)
4855 # Build a new-libstdc++ system (ie libstdc++-v3)
4856 AC_MSG_CHECKING([for libstdc++ to install])
4857 AC_ARG_ENABLE(libstdcxx-v3,
4858 [ --enable-libstdcxx-v3
4859 enable libstdc++-v3 for building and installation],
4860 [enable_libstdcxx_v3="$enableval"], [enable_libstdcxx_v3=no])
4862 if test x$enable_libstdcxx_v3 = xyes; then
4869 AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4870 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
4872 dnl Very limited version of automake's enable-maintainer-mode
4874 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4875 dnl maintainer-mode is disabled by default
4876 AC_ARG_ENABLE(maintainer-mode,
4877 [ --enable-maintainer-mode enable make rules and dependencies not useful
4878 (and sometimes confusing) to the casual installer],
4879 maintainer_mode=$enableval,
4882 AC_MSG_RESULT($maintainer_mode)
4884 if test "$maintainer_mode" = "yes"; then
4891 # Make empty files to contain the specs and options for each language.
4892 # Then add #include lines to for a compiler that has specs and/or options.
4897 rm -f specs.h options.h gencheck.h
4898 touch specs.h options.h gencheck.h
4899 for subdir in . $subdirs
4901 if test -f $srcdir/$subdir/lang-specs.h; then
4902 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4903 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4905 if test -f $srcdir/$subdir/lang-options.h; then
4906 echo "#include \"$subdir/lang-options.h\"" >>options.h
4907 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4909 if test -f $srcdir/$subdir/$subdir-tree.def; then
4910 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4911 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4915 # These (without "all_") are set in each config-lang.in.
4916 # `language' must be a single word so is spelled singularly.
4922 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
4923 # List of language makefile fragments.
4928 # Add the language fragments.
4929 # Languages are added via two mechanisms. Some information must be
4930 # recorded in makefile variables, these are defined in config-lang.in.
4931 # We accumulate them and plug them into the main Makefile.
4932 # The other mechanism is a set of hooks for each of the main targets
4933 # like `clean', `install', etc.
4935 language_fragments="Make-lang"
4936 language_hooks="Make-hooks"
4939 for s in .. $subdirs
4951 . ${srcdir}/$s/config-lang.in
4952 if test "x$language" = x
4954 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4957 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4958 all_languages="$all_languages $language"
4959 if test "x$boot_language" = xyes
4961 all_boot_languages="$all_boot_languages $language"
4963 all_compilers="$all_compilers $compilers"
4964 all_stagestuff="$all_stagestuff $stagestuff"
4965 all_diff_excludes="$all_diff_excludes $diff_excludes"
4966 all_headers="$all_headers $headers"
4967 all_outputs="$all_outputs $outputs"
4968 if test x$outputs = x
4970 oldstyle_subdirs="$oldstyle_subdirs $s"
4972 all_lib2funcs="$all_lib2funcs $lib2funcs"
4976 # Since we can't use `::' targets, we link each language in
4977 # with a set of hooks, reached indirectly via lang.${target}.
4981 target_list="all.build all.cross start.encap rest.encap \
4983 install-normal install-common install-info install-man \
4985 mostlyclean clean distclean extraclean maintainer-clean \
4986 stage1 stage2 stage3 stage4"
4987 for t in $target_list
4990 for lang in .. $all_languages
4992 if test $lang != ".."; then
4996 echo "lang.$t: $x" >> Make-hooks
4999 # If we're not building in srcdir, create .gdbinit.
5001 if test ! -f Makefile.in; then
5002 echo "dir ." > .gdbinit
5003 echo "dir ${srcdir}" >> .gdbinit
5004 if test x$gdb_needs_out_file_path = xyes
5006 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5008 if test "x$subdirs" != x; then
5011 echo "dir ${srcdir}/$s" >> .gdbinit
5014 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5017 # Define variables host_canonical and build_canonical
5018 # because some Cygnus local changes in the Makefile depend on them.
5019 build_canonical=${build}
5020 host_canonical=${host}
5022 if test "${host}" != "${target}" ; then
5023 target_subdir=${target}/
5025 AC_SUBST(build_canonical)
5026 AC_SUBST(host_canonical)
5027 AC_SUBST(target_subdir)
5029 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
5030 # absolute path for gcc_tooldir based on inserting the number of up-directory
5031 # movements required to get from $(exec_prefix) to $(prefix) into the basic
5032 # $(libsubdir)/@(unlibsubdir) based path.
5033 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
5034 # make and thus we'd get different behavior depending on where we built the
5036 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
5037 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
5039 changequote(<<, >>)dnl
5040 # An explanation of the sed strings:
5041 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
5042 # -e 's|/$||' match a trailing forward slash and eliminates it
5043 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
5044 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
5046 # (*) Note this pattern overwrites the first character of the string
5047 # with a forward slash if one is not already present. This is not a
5048 # problem because the exact names of the sub-directories concerned is
5049 # unimportant, just the number of them matters.
5051 # The practical upshot of these patterns is like this:
5053 # prefix exec_prefix result
5054 # ------ ----------- ------
5056 # /foo/ /foo/bar ../
5057 # /foo /foo/bar/ ../
5058 # /foo/ /foo/bar/ ../
5059 # /foo /foo/bar/ugg ../../
5062 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
5063 changequote([, ])dnl
5065 AC_SUBST(gcc_tooldir)
5068 # Nothing to do for FLOAT_H, float_format already handled.
5072 # Process the language and host/target makefile fragments.
5073 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5075 # Substitute configuration variables
5077 AC_SUBST(all_boot_languages)
5078 AC_SUBST(all_compilers)
5079 AC_SUBST(all_diff_excludes)
5080 AC_SUBST(all_headers)
5081 AC_SUBST(all_lang_makefiles)
5082 AC_SUBST(all_languages)
5083 AC_SUBST(all_lib2funcs)
5084 AC_SUBST(all_stagestuff)
5085 AC_SUBST(build_exeext)
5086 AC_SUBST(build_install_headers_dir)
5087 AC_SUBST(build_xm_file_list)
5088 AC_SUBST(cc_set_by_configure)
5089 AC_SUBST(quoted_cc_set_by_configure)
5090 AC_SUBST(cpp_install_dir)
5091 AC_SUBST(dep_host_xmake_file)
5092 AC_SUBST(dep_tmake_file)
5093 AC_SUBST(extra_c_flags)
5094 AC_SUBST(extra_c_objs)
5095 AC_SUBST(extra_cpp_objs)
5096 AC_SUBST(extra_cxx_objs)
5097 AC_SUBST(extra_headers_list)
5098 AC_SUBST(extra_objs)
5099 AC_SUBST(extra_parts)
5100 AC_SUBST(extra_passes)
5101 AC_SUBST(extra_programs)
5102 AC_SUBST(float_h_file)
5103 AC_SUBST(gcc_gxx_include_dir)
5104 AC_SUBST(gcc_version)
5105 AC_SUBST(gcc_version_trigger)
5106 AC_SUBST(host_exeext)
5107 AC_SUBST(host_extra_gcc_objs)
5108 AC_SUBST(host_xm_file_list)
5110 AC_SUBST(lang_options_files)
5111 AC_SUBST(lang_specs_files)
5112 AC_SUBST(lang_tree_files)
5113 AC_SUBST(local_prefix)
5114 AC_SUBST(maybe_use_collect2)
5116 AC_SUBST(objc_boehm_gc)
5118 AC_SUBST(out_object_file)
5119 AC_SUBST(stage_prefix_set_by_configure)
5120 AC_SUBST(symbolic_link)
5121 AC_SUBST(thread_file)
5122 AC_SUBST(tm_file_list)
5123 AC_SUBST(will_use_collect2)
5126 AC_SUBST_FILE(target_overrides)
5127 AC_SUBST_FILE(host_overrides)
5128 AC_SUBST(cross_defines)
5129 AC_SUBST_FILE(cross_overrides)
5130 AC_SUBST_FILE(build_overrides)
5131 AC_SUBST_FILE(language_fragments)
5132 AC_SUBST_FILE(language_hooks)
5134 # Echo that links are built
5135 if test x$host = x$target
5143 if test x$host != x$build
5145 str3=" on a $build system"
5148 if test "x$str2" != x || test "x$str3" != x
5153 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5155 if test "x$str2" != x || test "x$str3" != x
5157 echo " ${str2}${str3}." 1>&2
5160 # Truncate the target if necessary
5161 if test x$host_truncate_target != x; then
5162 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5165 # Configure the subdirectories
5166 # AC_CONFIG_SUBDIRS($subdirs)
5168 # Create the Makefile
5169 # and configure language subdirectories
5170 AC_OUTPUT($all_outputs,
5172 . $srcdir/configure.lang
5173 case x$CONFIG_HEADERS in
5174 xauto-host.h:config.in)
5177 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5178 # bootstrapping and the installation procedure can still use
5179 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5180 # FLAGS_TO_PASS has been modified to solve the problem there.
5181 # This is virtually a duplicate of what happens in configure.lang; we do
5182 # an extra check to make sure this only happens if ln -s can be used.
5183 if test "$symbolic_link" = "ln -s"; then
5184 for d in .. ${subdirs} ; do
5185 if test $d != ..; then
5188 for t in stage1 stage2 stage3 stage4 include
5191 $symbolic_link ../$t $t 2>/dev/null
5197 # Avoid having to add intl to our include paths.
5198 if test -f intl/libintl.h; then
5199 echo creating libintl.h
5200 echo '#include "intl/libintl.h"' >libintl.h
5207 target_alias='${target_alias}'
5209 subdirs='${subdirs}'
5210 oldstyle_subdirs='${oldstyle_subdirs}'
5211 symbolic_link='${symbolic_link}'
5212 program_transform_set='${program_transform_set}'
5213 program_transform_name='${program_transform_name}'
5214 dep_host_xmake_file='${dep_host_xmake_file}'
5215 host_xmake_file='${host_xmake_file}'
5216 dep_tmake_file='${dep_tmake_file}'
5217 tmake_file='${tmake_file}'
5218 thread_file='${thread_file}'
5219 gcc_version='${gcc_version}'
5220 gcc_version_trigger='${gcc_version_trigger}'
5221 local_prefix='${local_prefix}'
5222 build_install_headers_dir='${build_install_headers_dir}'
5223 build_exeext='${build_exeext}'
5224 host_exeext='${host_exeext}'
5225 out_file='${out_file}'
5226 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5227 SET_MAKE='${SET_MAKE}'
5228 target_list='${target_list}'
5229 target_overrides='${target_overrides}'
5230 host_overrides='${host_overrides}'
5231 cross_defines='${cross_defines}'
5232 cross_overrides='${cross_overrides}'
5233 build_overrides='${build_overrides}'
5234 cpp_install_dir='${cpp_install_dir}'