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 dnl Disable this for the moment; the library interface is changing.
258 dnl # Link cpplib into the compiler proper, for C/C++/ObjC.
259 dnl AC_ARG_ENABLE(c-cpplib,
260 dnl [ --enable-c-cpplib link cpplib directly into C and C++ compilers
261 dnl (EXPERIMENTAL) (implies --enable-cpplib).],
262 dnl if test x$enable_c_cpplib != xno; then
263 dnl extra_c_objs="${extra_c_objs} libcpp.a"
264 dnl extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
265 dnl extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
268 # Enable Multibyte Characters for C/C++
269 AC_ARG_ENABLE(c-mbchar,
270 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
271 if test x$enable_c_mbchar != xno; then
272 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
276 # Pass with no value to take the default
277 # Pass with a value to specify a thread package
278 AC_ARG_ENABLE(threads,
279 [ --enable-threads enable thread usage for target GCC.
280 --enable-threads=LIB use LIB thread package for target GCC.],
281 if test x$enable_threads = xno; then
286 enable_threads_flag=$enable_threads
287 # Check if a valid thread package
288 case x${enable_threads_flag} in
291 target_thread_file='single'
295 target_thread_file=''
297 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
298 xsolaris | xwin32 | xdce | xvxworks)
299 target_thread_file=$enable_threads_flag
302 echo "$enable_threads is an unknown thread package" 1>&2
307 AC_ARG_ENABLE(objc-gc,
308 [ --enable-objc-gc enable the use of Boehm's garbage collector with
309 the GNU Objective-C runtime.],
310 if test x$enable_objc_gc = xno; then
318 [ --with-dwarf2 force the default debug format to be DWARF2.],
319 dwarf2="$with_dwarf2",
322 # Determine the host, build, and target systems
325 # Find the native compiler
328 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
329 NO_MINUS_C_MINUS_O=yes
331 AC_SUBST(NO_MINUS_C_MINUS_O)
335 AC_MSG_CHECKING(whether ${CC-cc} accepts -Wno-long-long)
336 echo 'void f(){}' > conftest.c
337 if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
338 ac_cv_prog_cc_no_long_long=yes
340 ac_cv_prog_cc_no_long_long=no
343 echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
345 # If the native compiler is GCC, we can enable warnings even in stage1.
346 # That's useful for people building cross-compilers, or just running a
348 stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
349 stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
350 if test "x$GCC" = "xyes"; then
351 if test $ac_cv_prog_cc_no_long_long = yes; then
352 stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
355 stage1_warn_cflags=""
357 AC_SUBST(stage1_warn_cflags)
358 AC_SUBST(stage2_warn_cflags)
362 AC_MSG_CHECKING([whether a default assembler was specified])
363 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
364 if test x"$gas_flag" = x"no"; then
365 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
367 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
373 AC_MSG_CHECKING([whether a default linker was specified])
374 if test x"${DEFAULT_LINKER+set}" = x"set"; then
375 if test x"$gnu_ld_flag" = x"no"; then
376 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
378 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
386 # Find some useful tools
400 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
401 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
402 sys/resource.h sys/param.h sys/times.h sys/stat.h \
405 # Check for thread headers.
406 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
407 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
409 # See if GNAT has been installed
410 AC_CHECK_PROG(gnat, gnatbind, yes, no)
412 # Do we have a single-tree copy of texinfo?
413 if test -f $srcdir/../texinfo/Makefile.in; then
414 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
415 gcc_cv_prog_makeinfo_modern=yes
416 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
418 # See if makeinfo has been installed and is modern enough
419 # that we can use it.
420 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
421 [GNU texinfo.* \([0-9][0-9.]*\)],
422 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
425 if test $gcc_cv_prog_makeinfo_modern = no; then
427 *** Makeinfo is missing or too old.
428 *** Info documentation will not be built or installed.])
432 BUILD_INFO=info AC_SUBST(BUILD_INFO)
433 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
436 # See if the stage1 system preprocessor understands the ANSI C
437 # preprocessor stringification operator.
440 # Use <inttypes.h> only if it exists,
441 # doesn't clash with <sys/types.h>, and declares intmax_t.
442 AC_MSG_CHECKING(for inttypes.h)
443 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
445 [#include <sys/types.h>
446 #include <inttypes.h>],
448 [gcc_cv_header_inttypes_h=yes],
449 gcc_cv_header_inttypes_h=no)])
450 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
451 if test $gcc_cv_header_inttypes_h = yes; then
452 AC_DEFINE(HAVE_INTTYPES_H, 1,
453 [Define if you have a working <inttypes.h> header file.])
457 # Determine if enumerated bitfields are unsigned. ISO C says they can
458 # be either signed or unsigned.
460 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
461 [AC_TRY_RUN(#include <stdlib.h>
462 enum t { BLAH = 128 } ;
463 struct s_t { enum t member : 8; } s ;
467 if (s.member < 0) exit(1);
470 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
471 if test $gcc_cv_enum_bf_unsigned = yes; then
472 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
473 [Define if enumerated bitfields are treated as unsigned values.])
476 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
477 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
478 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
479 fputs_unlocked getrusage valloc)
481 AC_CHECK_TYPE(ssize_t, int)
483 gcc_AC_FUNC_VFPRINTF_DOPRNT
484 gcc_AC_FUNC_PRINTF_PTR
488 # Under some versions of uwin, vfork is notoriously buggy and the test
489 # can hang configure; on other versions, vfork exists just as a stub.
490 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
491 ac_cv_func_vfork_works=no
495 AC_FUNC_MMAP_ANYWHERE
498 # We will need to find libiberty.h and ansidecl.h
499 saved_CFLAGS="$CFLAGS"
500 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
501 gcc_AC_CHECK_DECLS(bcopy bzero bcmp \
502 index rindex getenv atol sbrk abort atof getcwd getwd \
503 strsignal putc_unlocked fputs_unlocked strstr environ \
504 malloc realloc calloc free basename getopt, , ,[
505 #include "gansidecl.h"
506 #include "system.h"])
508 gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
509 #include "gansidecl.h"
511 #ifdef HAVE_SYS_RESOURCE_H
512 #include <sys/resource.h>
516 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
517 CFLAGS="$saved_CFLAGS"
519 # mkdir takes a single argument on some systems.
520 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
530 build_install_headers_dir=install-headers-tar
535 host_truncate_target=
538 # Decode the host machine, then the target machine.
539 # For the host machine, we save the xm_file variable as host_xm_file;
540 # then we decode the target machine and forget everything else
541 # that came from the host machine.
542 for machine in $build $host $target; do
556 # Set this to force installation and use of collect2.
558 # Set this to override the default target model.
560 # Set this to control how the header file directory is installed.
561 install_headers_dir=install-headers-tar
562 # Set this to a non-empty list of args to pass to cpp if the target
563 # wants its .md file passed through cpp.
565 # Set this if directory names should be truncated to 14 characters.
567 # Set this if gdb needs a dir command with `dirname $out_file`
568 gdb_needs_out_file_path=
569 # Set this if the build machine requires executables to have a
572 # Set this to control which thread package will be used.
574 # Reinitialize these from the flag values every loop pass, since some
575 # configure entries modify them.
577 gnu_ld="$gnu_ld_flag"
578 enable_threads=$enable_threads_flag
580 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
581 # updated in each machine entry.
583 cpu_type=`echo $machine | sed 's/-.*$//'`
625 tm_file=${cpu_type}/${cpu_type}.h
626 xm_file=${cpu_type}/xm-${cpu_type}.h
627 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
629 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
631 # On a.out targets, we need to use collect2.
638 # Common parts for linux-gnu and openbsd systems
641 xm_defines="HAVE_ATEXIT POSIX BSTRING"
644 tm_file=${cpu_type}/openbsd.h
645 tmake_file="t-libc-ok t-openbsd"
646 # avoid surprises, always provide an xm-openbsd file
647 xm_file=${cpu_type}/xm-openbsd.h
648 # don't depend on processor x-fragments as well
650 if test x$enable_threads = xyes; then
652 tmake_file="${tmake_file} t-openbsd-thread"
658 # Support site-specific machine types.
660 cpu_type=`echo $machine | sed -e 's/-.*//'`
661 rest=`echo $machine | sed -e "s/$cpu_type-//"`
662 xm_file=${cpu_type}/xm-$rest.h
663 tm_file=${cpu_type}/$rest.h
664 if test -f $srcdir/config/${cpu_type}/x-$rest; \
665 then xmake_file=${cpu_type}/x-$rest; \
668 if test -f $srcdir/config/${cpu_type}/t-$rest; \
669 then tmake_file=${cpu_type}/t-$rest; \
675 a29k-*-bsd* | a29k-*-sym1*)
676 tm_file="${tm_file} a29k/unix.h"
678 xmake_file=a29k/x-unix
681 a29k-*-udi | a29k-*-coff)
682 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
683 tmake_file=a29k/t-a29kbare
686 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
687 tmake_file=a29k/t-vx29k
688 extra_parts="crtbegin.o crtend.o"
689 thread_file='vxworks'
691 a29k-*-*) # Default a29k environment.
695 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
697 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
698 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
700 # GAS + IEEE_CONFORMANT
701 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
703 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
704 xmake_file="x-interix alpha/t-pe"
705 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
706 if test x$enable_threads = xyes ; then
709 if test x$stabs = xyes ; then
710 tm_file="${tm_file} dbxcoff.h"
712 #prefix='$$INTERIX_ROOT'/usr/contrib
713 #local_prefix='$$INTERIX_ROOT'/usr/contrib
715 alpha*-*-linux-gnuecoff*)
716 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
717 target_cpu_default="MASK_GAS"
718 tmake_file="alpha/t-alpha alpha/t-ieee"
723 alpha*-*-linux-gnulibc1*)
724 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
725 target_cpu_default="MASK_GAS"
726 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
727 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
730 if test x$enable_threads = xyes; then
735 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
736 target_cpu_default="MASK_GAS"
737 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
738 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
741 if test x$enable_threads = xyes; then
746 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
747 target_cpu_default="MASK_GAS"
748 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
749 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
755 # default x-alpha is only appropriate for dec-osf.
756 target_cpu_default="MASK_GAS"
757 tmake_file="alpha/t-alpha alpha/t-ieee"
761 if test x$stabs = xyes
763 tm_file="${tm_file} dbx.h"
765 if test x$gas != xyes
767 extra_passes="mips-tfile mips-tdump"
770 tmake_file="alpha/t-alpha alpha/t-ieee"
773 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
778 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
781 tm_file="${tm_file} alpha/osf.h"
782 # Some versions of OSF4 (specifically X4.0-9 296.7) have
783 # a broken tar, so we use cpio instead.
784 install_headers_dir=install-headers-cpio
787 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
792 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
794 target_cpu_default=MASK_SUPPORT_ARCH
799 tm_file="${tm_file} dbx.h alpha/vxworks.h"
800 tmake_file="alpha/t-alpha alpha/t-ieee"
803 extra_passes="mips-tfile mips-tdump"
806 thread_file='vxworks'
809 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
810 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
811 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
812 xmake_file=winnt/x-winnt
813 extra_host_objs=oldnames.o
814 extra_gcc_objs="spawnv.o oldnames.o"
815 if test x$gnu_ld != xyes
817 extra_programs=ld.exe
819 if test x$enable_threads = xyes; then
825 xm_file="${xm_file} alpha/xm-vms.h"
826 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
829 extra_parts="crtinit.o crtfini.o"
831 arm-*-coff* | armel-*-coff*)
833 tmake_file=arm/t-arm-coff
837 tmake_file=arm/t-arm-coff
838 thread_file='vxworks'
841 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
843 tm_file=arm/riscix1-1.h
846 arm-*-riscix*) # Acorn RISC machine
849 tm_file=arm/rix-gas.h
853 xmake_file=arm/x-riscix
854 tmake_file=arm/t-riscix
857 arm-semi-aout | armel-semi-aout)
859 tmake_file=arm/t-semi
861 arm-semi-aof | armel-semi-aof)
862 tm_file=arm/semiaof.h
863 tmake_file=arm/t-semiaof
867 tmake_file="t-netbsd arm/t-netbsd"
870 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
873 tm_file=arm/linux-aout.h
874 tmake_file=arm/t-linux
877 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
878 xm_file=arm/xm-linux.h
880 tm_file="arm/linux-oldld.h arm/linux-elf.h"
883 tm_file="arm/linux-elf26.h $tm_file"
886 tmake_file="t-linux arm/t-linux"
887 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
889 case x${enable_threads} in
890 x | xyes | xpthreads | xposix)
895 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
896 xm_file=arm/xm-linux.h
898 tm_file="arm/linux-elf.h"
901 tm_file="arm/linux-elf26.h $tm_file"
904 tmake_file="t-linux arm/t-linux"
905 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
907 case x${enable_threads} in
908 x | xyes | xpthreads | xposix)
913 arm*-*-uclinux*) # ARM ucLinux
914 tm_file=arm/uclinux-elf.h
915 tmake_file=arm/t-arm-elf
919 tmake_file=arm/t-arm-aout
922 tm_file=arm/ecos-elf.h
923 tmake_file=arm/t-arm-elf
926 tm_file=arm/unknown-elf.h
927 tmake_file=arm/t-arm-elf
930 tm_file=arm/conix-elf.h
931 tmake_file=arm/t-arm-elf
934 tm_file=arm/unknown-elf-oabi.h
935 tmake_file=arm/t-arm-elf
944 c1-convex-*) # Convex C1
948 c2-convex-*) # Convex C2
961 target_cpu_default=16
968 clipper-intergraph-clix*)
969 tm_file="${tm_file} svr3.h clipper/clix.h"
970 xm_file=clipper/xm-clix.h
971 xmake_file=clipper/x-clix
972 extra_headers=va-clipper.h
973 extra_parts="crtbegin.o crtend.o"
974 install_headers_dir=install-headers-cpio
985 tm_file="fr30/fr30.h"
986 tmake_file=fr30/t-fr30
987 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
989 # This hasn't been upgraded to GCC 2.
990 # fx80-alliant-*) # Alliant FX/80
996 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
997 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
998 tmake_file="t-linux pa/t-linux"
999 extra_parts="crtbegin.o crtend.o"
1002 if test x$enable_threads = xyes; then
1007 target_cpu_default="MASK_PA_11"
1008 tmake_file=pa/t-openbsd
1011 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1012 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
1013 xm_file=pa/xm-papro.h
1017 target_cpu_default="MASK_PA_11"
1018 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1022 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1023 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
1024 xm_file=pa/xm-papro.h
1028 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1032 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1033 target_cpu_default="MASK_PA_11"
1037 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1041 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
1042 xm_file=pa/xm-pahpux.h
1043 xmake_file=pa/x-pa-hpux
1044 if test x$gas = xyes
1046 tm_file="${tm_file} pa/gas.h"
1048 install_headers_dir=install-headers-cpio
1052 hppa1.0-*-hpux8.0[0-2]*)
1054 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1055 xm_file=pa/xm-pahpux.h
1056 xmake_file=pa/x-pa-hpux
1057 if test x$gas = xyes
1059 tm_file="${tm_file} pa/pa-gas.h"
1061 tm_file="pa/pa-oldas.h ${tm_file}"
1063 install_headers_dir=install-headers-cpio
1067 hppa1.1-*-hpux8.0[0-2]*)
1069 target_cpu_default="MASK_PA_11"
1070 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1071 xm_file=pa/xm-pahpux.h
1072 xmake_file=pa/x-pa-hpux
1073 if test x$gas = xyes
1075 tm_file="${tm_file} pa/pa-gas.h"
1077 tm_file="pa/pa-oldas.h ${tm_file}"
1079 install_headers_dir=install-headers-cpio
1083 target_cpu_default="MASK_PA_11"
1084 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1085 xm_file=pa/xm-pahpux.h
1086 xmake_file=pa/x-pa-hpux
1087 if test x$gas = xyes
1089 tm_file="${tm_file} pa/pa-gas.h"
1091 install_headers_dir=install-headers-cpio
1095 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1096 xm_file=pa/xm-pahpux.h
1097 xmake_file=pa/x-pa-hpux
1098 if test x$gas = xyes
1100 tm_file="${tm_file} pa/pa-gas.h"
1102 install_headers_dir=install-headers-cpio
1105 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1106 target_cpu_default="MASK_PA_11"
1107 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1109 xm_file=pa/xm-pahpux.h
1110 xmake_file=pa/x-pa-hpux
1112 if test x$gas = xyes
1114 tm_file="${tm_file} pa/pa-gas.h"
1116 if test x$enable_threads = x; then
1117 enable_threads=$have_pthread_h
1119 if test x$enable_threads = xyes; then
1121 tmake_file="${tmake_file} pa/t-dce-thr"
1123 install_headers_dir=install-headers-cpio
1127 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1129 xm_file=pa/xm-pahpux.h
1130 xmake_file=pa/x-pa-hpux
1132 if test x$gas = xyes
1134 tm_file="${tm_file} pa/pa-gas.h"
1136 if test x$enable_threads = x; then
1137 enable_threads=$have_pthread_h
1139 if test x$enable_threads = xyes; then
1141 tmake_file="${tmake_file} pa/t-dce-thr"
1143 install_headers_dir=install-headers-cpio
1147 target_cpu_default="MASK_PA_11"
1148 xm_file=pa/xm-pa64hpux.h
1149 xmake_file=pa/x-pa-hpux
1151 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"
1153 tmake_file=pa/t-pa64
1154 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1156 if [[ x$gas = xyes ]]
1158 tm_file="${tm_file} pa/pa-gas.h"
1160 # if [[ x$enable_threads = x ]]; then
1161 # enable_threads=$have_pthread_h
1163 # if [[ x$enable_threads = xyes ]]; then
1165 # tmake_file="${tmake_file} pa/t-dce-thr"
1167 install_headers_dir=install-headers-cpio
1170 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1171 target_cpu_default="MASK_PA_11"
1172 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1174 xm_file=pa/xm-pahpux.h
1175 xmake_file=pa/x-pa-hpux
1177 if test x$gas = xyes
1179 tm_file="${tm_file} pa/pa-gas.h"
1181 # if test x$enable_threads = x; then
1182 # enable_threads=$have_pthread_h
1184 # if test x$enable_threads = xyes; then
1186 # tmake_file="${tmake_file} pa/t-dce-thr"
1188 install_headers_dir=install-headers-cpio
1192 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1194 xm_file=pa/xm-pahpux.h
1195 xmake_file=pa/x-pa-hpux
1196 if test x$gas = xyes
1198 tm_file="${tm_file} pa/pa-gas.h"
1200 # if test x$enable_threads = x; then
1201 # enable_threads=$have_pthread_h
1203 # if test x$enable_threads = xyes; then
1205 # tmake_file="${tmake_file} pa/t-dce-thr"
1207 install_headers_dir=install-headers-cpio
1210 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1211 target_cpu_default="MASK_PA_11"
1212 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1213 xm_file=pa/xm-pahpux.h
1214 xmake_file=pa/x-pa-hpux
1215 if test x$gas = xyes
1217 tm_file="${tm_file} pa/pa-gas.h"
1219 install_headers_dir=install-headers-cpio
1223 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1224 xm_file=pa/xm-pahpux.h
1225 xmake_file=pa/x-pa-hpux
1226 if test x$gas = xyes
1228 tm_file="${tm_file} pa/pa-gas.h"
1230 install_headers_dir=install-headers-cpio
1233 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1234 target_cpu_default="MASK_PA_11"
1235 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1236 xm_file=pa/xm-pahpux.h
1237 xmake_file=pa/x-pa-hpux
1238 if test x$gas = xyes
1240 tm_file="${tm_file} pa/pa-gas.h"
1242 install_headers_dir=install-headers-cpio
1246 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1247 xm_file=pa/xm-pahpux.h
1248 xmake_file=pa/x-pa-hpux
1249 if test x$gas = xyes
1251 tm_file="${tm_file} pa/pa-gas.h"
1253 install_headers_dir=install-headers-cpio
1257 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1258 target_cpu_default="MASK_PA_11"
1262 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1263 xm_file=pa/xm-pampeix.h
1264 xmake_file=pa/x-pa-mpeix
1265 echo "You must use gas. Assuming it is already installed."
1266 install_headers_dir=install-headers-tar
1269 i370-*-opened*) # IBM 360/370/390 Architecture
1270 xm_file=i370/xm-oe.h
1272 xmake_file=i370/x-oe
1273 tmake_file=i370/t-oe
1276 xm_file=i370/xm-mvs.h
1278 tmake_file=i370/t-mvs
1281 xm_file="xm-linux.h i370/xm-linux.h"
1283 tm_file="i370/linux.h ${tm_file}"
1284 tmake_file="t-linux i370/t-linux"
1285 # broken_install=yes
1286 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1287 # extra_parts="crtbegin.o crtend.o"
1291 if test x$enable_threads = xyes; then
1298 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1299 tm_file=i386/i386elf.h
1300 tmake_file=i386/t-i386elf
1304 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1306 if test x$gas = xyes
1308 tm_file=i386/aix386.h
1309 extra_parts="crtbegin.o crtend.o"
1310 tmake_file=i386/t-crtstuff
1312 tm_file=i386/aix386ng.h
1315 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1317 xmake_file=i386/x-aix
1320 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1322 xm_file="xm-alloca.h ${xm_file}"
1323 xm_defines="USG POSIX SMALL_ARG_MAX"
1324 xmake_file=i386/x-ncr3000
1325 if test x$stabs = xyes -a x$gas = xyes
1327 tm_file=i386/sysv4gdb.h
1329 tm_file=i386/sysv4.h
1331 extra_parts="crtbegin.o crtend.o"
1332 tmake_file=i386/t-crtpic
1338 xm_file=i386/xm-next.h
1339 tmake_file=i386/t-next
1340 xmake_file=i386/x-next
1341 extra_objs=nextstep.o
1342 extra_parts="crtbegin.o crtend.o"
1343 if test x$enable_threads = xyes; then
1348 i[34567]86-sequent-bsd*) # 80386 from Sequent
1351 if test x$gas = xyes
1353 tm_file=i386/seq-gas.h
1355 tm_file=i386/sequent.h
1359 i[34567]86-sequent-ptx1*)
1361 xm_defines="USG SVR3"
1362 xmake_file=i386/x-sysv3
1363 tm_file=i386/seq-sysv3.h
1364 tmake_file=i386/t-crtstuff
1365 extra_parts="crtbegin.o crtend.o"
1366 install_headers_dir=install-headers-cpio
1369 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1371 xm_defines="USG SVR3"
1372 xmake_file=i386/x-sysv3
1373 tm_file=i386/seq2-sysv3.h
1374 tmake_file=i386/t-crtstuff
1375 extra_parts="crtbegin.o crtend.o"
1376 install_headers_dir=install-headers-cpio
1379 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1381 xm_file="xm-alloca.h ${xm_file}"
1382 xm_defines="USG POSIX SMALL_ARG_MAX"
1384 tm_file=i386/ptx4-i.h
1386 extra_parts="crtbegin.o crtend.o"
1387 install_headers_dir=install-headers-cpio
1389 i386-sun-sunos*) # Sun i386 roadrunner
1395 i[34567]86-wrs-vxworks*)
1397 tm_file=i386/vxi386.h
1398 tmake_file=i386/t-i386bare
1399 thread_file='vxworks'
1404 tm_file=i386/i386-aout.h
1405 tmake_file=i386/t-i386bare
1408 i[34567]86-*-beospe*)
1410 xm_file=i386/xm-beos.h
1411 xm_defines="USE_C_ALLOCA"
1412 tmake_file=i386/t-beos
1413 tm_file=i386/beos-pe.h
1414 xmake_file=i386/x-beos
1418 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1420 xm_file=i386/xm-beos.h
1421 tmake_file='i386/t-beos i386/t-crtpic'
1422 tm_file=i386/beos-elf.h
1423 xmake_file=i386/x-beos
1425 extra_parts='crtbegin.o crtend.o'
1428 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1430 tm_file=i386/bsd386.h
1431 # tmake_file=t-libc-ok
1436 tm_file=i386/386bsd.h
1437 # tmake_file=t-libc-ok
1438 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1442 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1444 tm_file="i386/freebsd.h i386/perform.h"
1445 tmake_file=t-freebsd
1448 i[34567]86-*-freebsd*)
1450 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1451 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1452 tmake_file=t-freebsd
1456 case x${enable_threads} in
1457 xyes | xpthreads | xposix)
1459 tmake_file="${tmake_file} t-freebsd-thread"
1464 i[34567]86-*-netbsd*)
1466 tm_file=i386/netbsd.h
1471 i[34567]86-*-openbsd*)
1473 # we need collect2 until our bug is fixed...
1479 tm_file=i386/i386-coff.h
1480 tmake_file=i386/t-i386bare
1483 i[34567]86-*-isc*) # 80386 running ISC system
1485 xm_file="${xm_file} i386/xm-isc.h"
1486 xm_defines="USG SVR3"
1489 i[34567]86-*-isc[34]*)
1491 xmake_file=i386/x-isc3
1494 xmake_file=i386/x-isc
1497 if test x$gas = xyes -a x$stabs = xyes
1499 tm_file=i386/iscdbx.h
1500 tmake_file=i386/t-svr3dbx
1501 extra_parts="svr3.ifile svr3z.ifile"
1503 tm_file=i386/isccoff.h
1504 tmake_file=i386/t-crtstuff
1505 extra_parts="crtbegin.o crtend.o"
1507 tmake_file="$tmake_file i386/t-i386bare"
1508 install_headers_dir=install-headers-cpio
1511 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1512 changequote([,])dnl # with a.out format using
1514 xmake_file=x-linux-aout
1515 tmake_file="t-linux-aout i386/t-crtstuff"
1516 tm_file=i386/linux-oldld.h
1521 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1522 changequote([,])dnl # with a.out format
1523 xmake_file=x-linux-aout
1524 tmake_file="t-linux-aout i386/t-crtstuff"
1525 tm_file=i386/linux-aout.h
1530 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1531 changequote([,])dnl # with ELF format using the
1532 # GNU/Linux C library 5
1534 tm_file=i386/linux.h
1535 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1536 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1539 if test x$enable_threads = xyes; then
1540 thread_file='single'
1544 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1545 changequote([,])dnl # with ELF format using glibc 2
1546 # aka GNU/Linux C library 6
1548 tm_file=i386/linux.h
1549 tmake_file="t-linux i386/t-crtstuff"
1550 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1553 if test x$enable_threads = xyes; then
1563 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1565 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1569 i[34567]86-pc-msdosdjgpp*)
1571 xm_file=i386/xm-djgpp.h
1572 tm_file=i386/djgpp.h
1573 tmake_file=i386/t-djgpp
1574 xmake_file=i386/x-djgpp
1579 case $host in *pc-msdosdjgpp*)
1585 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1588 tmake_file=t-libc-ok
1593 i[34567]86-*-lynxos*)
1595 if test x$gas = xyes
1599 tm_file=i386/lynx-ng.h
1601 xm_file=i386/xm-lynx.h
1602 tmake_file=i386/t-i386bare
1609 # tmake_file=t-libc-ok
1613 i[34567]86-*-osfrose*) # 386 using OSF/rose
1615 if test x$elf = xyes
1617 tm_file=i386/osfelf.h
1620 tm_file=i386/osfrose.h
1623 xm_file="i386/xm-osf.h ${xm_file}"
1624 xmake_file=i386/x-osfrose
1625 tmake_file=i386/t-osf
1626 extra_objs=halfpic.o
1629 i[34567]86-go32-rtems*)
1632 xm_file=i386/xm-go32.h
1633 tm_file=i386/go32-rtems.h
1634 tmake_file="i386/t-go32 t-rtems"
1637 i[34567]86-*-rtemscoff*)
1640 tm_file=i386/rtems.h
1641 tmake_file="i386/t-i386bare t-rtems"
1644 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1647 tm_file=i386/rtemself.h
1648 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1649 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1652 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1654 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1655 xm_defines="USG SVR3"
1656 xmake_file=i386/x-sco5
1657 install_headers_dir=install-headers-cpio
1659 if test x$gas = xyes
1661 tm_file="i386/sco5gas.h ${tm_file}"
1662 tmake_file=i386/t-sco5gas
1664 tmake_file=i386/t-sco5
1666 tmake_file="$tmake_file i386/t-i386bare"
1667 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1670 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1672 xm_file="${xm_file} i386/xm-sco.h"
1673 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1674 xmake_file=i386/x-sco4
1675 install_headers_dir=install-headers-cpio
1676 if test x$stabs = xyes
1678 tm_file=i386/sco4dbx.h
1679 tmake_file=i386/t-svr3dbx
1680 extra_parts="svr3.ifile svr3z.rfile"
1683 tmake_file=i386/t-crtstuff
1684 extra_parts="crtbegin.o crtend.o"
1686 tmake_file="$tmake_file i386/t-i386bare"
1687 # The default EAFS filesystem supports long file names.
1688 # Truncating the target makes $host != $target which
1689 # makes gcc think it is doing a cross-compile.
1690 # truncate_target=yes
1693 i[34567]86-*-sco*) # 80386 running SCO system
1695 xm_file=i386/xm-sco.h
1696 xmake_file=i386/x-sco
1697 install_headers_dir=install-headers-cpio
1698 if test x$stabs = xyes
1700 tm_file=i386/scodbx.h
1701 tmake_file=i386/t-svr3dbx
1702 extra_parts="svr3.ifile svr3z.rfile"
1705 extra_parts="crtbegin.o crtend.o"
1706 tmake_file=i386/t-crtstuff
1708 tmake_file="$tmake_file i386/t-i386bare"
1712 i[34567]86-*-solaris2*)
1714 xm_file="xm-alloca.h ${xm_file}"
1715 xm_defines="USG POSIX SMALL_ARG_MAX"
1717 if test x$gas = xyes; then
1718 # Only needed if gas does not support -s
1719 tm_file="i386/sol2gas.h ${tm_file}"
1721 tmake_file="i386/t-i386bare i386/t-sol2"
1722 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1724 if test x${enable_threads} = x; then
1725 enable_threads=$have_pthread_h
1726 if test x${enable_threads} = x; then
1727 enable_threads=$have_thread_h
1730 if test x${enable_threads} = xyes; then
1731 if test x${have_pthread_h} = xyes; then
1734 thread_file='solaris'
1739 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1741 xm_file="xm-alloca.h ${xm_file}"
1742 xm_defines="USG POSIX"
1743 tm_file=i386/sysv5.h
1744 if test x$stabs = xyes
1746 tm_file="${tm_file} dbx.h"
1748 tmake_file="i386/t-i386bare i386/t-crtpic"
1750 extra_parts="crtbegin.o crtend.o"
1751 if test x$enable_threads = xyes; then
1756 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1758 xm_file="xm-alloca.h ${xm_file}"
1759 xm_defines="USG POSIX SMALL_ARG_MAX"
1760 tm_file=i386/sysv4.h
1761 if test x$stabs = xyes
1763 tm_file="${tm_file} dbx.h"
1765 tmake_file="i386/t-i386bare i386/t-crtpic"
1767 extra_parts="crtbegin.o crtend.o"
1770 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1772 xm_file="xm-alloca.h ${xm_file}"
1773 xm_defines="USG POSIX"
1775 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1777 extra_parts="crtbegin.o crtend.o"
1778 install_headers_dir=install-headers-cpio
1781 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1784 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1785 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1786 if test x$stabs = xyes
1788 tm_file=i386/osf1elfgdb.h
1790 tm_file=i386/osf1elf.h
1792 tmake_file=i386/t-osf1elf
1793 xmake_file=i386/x-osf1elf
1794 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1797 i[34567]86-*-sysv*) # Intel 80386's running system V
1799 xm_defines="USG SVR3"
1800 xmake_file=i386/x-sysv3
1801 if test x$gas = xyes
1803 if test x$stabs = xyes
1805 tm_file=i386/svr3dbx.h
1806 tmake_file=i386/t-svr3dbx
1807 extra_parts="svr3.ifile svr3z.rfile"
1809 tm_file=i386/svr3gas.h
1810 extra_parts="crtbegin.o crtend.o"
1811 tmake_file=i386/t-crtstuff
1814 tm_file=i386/sysv3.h
1815 extra_parts="crtbegin.o crtend.o"
1816 tmake_file=i386/t-crtstuff
1818 tmake_file="$tmake_file i386/t-crtpic"
1820 i386-*-vsta) # Intel 80386's running VSTa kernel
1821 xm_file="${xm_file} i386/xm-vsta.h"
1823 tmake_file=i386/t-vsta
1824 xmake_file=i386/x-vsta
1829 xm_file="${xm_file} i386/xm-cygwin.h"
1830 tmake_file=i386/t-cygwin
1831 tm_file=i386/win32.h
1832 xmake_file=i386/x-cygwin
1834 if test x$enable_threads = xyes; then
1840 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1842 xm_file="${xm_file} i386/xm-cygwin.h"
1843 tmake_file=i386/t-cygwin
1844 tm_file=i386/cygwin.h
1845 xmake_file=i386/x-cygwin
1847 if test x$enable_threads = xyes; then
1853 i[34567]86-*-mingw32*)
1855 tm_file=i386/mingw32.h
1856 xm_file="${xm_file} i386/xm-mingw32.h"
1857 tmake_file="i386/t-cygwin i386/t-mingw32"
1859 xmake_file=i386/x-cygwin
1860 if test x$enable_threads = xyes; then
1867 *minwg32crt* | *mingw32*)
1868 tm_file="${tm_file} i386/crtdll.h"
1876 xm_file="${xm_file} i386/xm-uwin.h"
1877 xm_defines="USG NO_STAB_H"
1878 tmake_file="i386/t-cygwin i386/t-uwin"
1880 xmake_file=i386/x-cygwin
1881 if test x$enable_threads = xyes; then
1887 i[34567]86-*-interix*)
1889 tm_file="i386/i386-interix.h interix.h"
1890 xm_file="i386/xm-i386-interix.h xm-interix.h"
1892 tmake_file="i386/t-interix"
1893 extra_objs=interix.o
1894 xmake_file=x-interix
1895 if test x$enable_threads = xyes ; then
1898 if test x$stabs = xyes ; then
1899 tm_file="${tm_file} dbxcoff.h"
1903 i[34567]86-*-winnt3*)
1905 tm_file=i386/win-nt.h
1906 out_file=i386/i386.c
1907 xm_file="xm-winnt.h ${xm_file}"
1908 xmake_file=winnt/x-winnt
1909 tmake_file=i386/t-winnt
1910 extra_host_objs="winnt.o oldnames.o"
1911 extra_gcc_objs="spawnv.o oldnames.o"
1912 if test x$gnu_ld != xyes
1914 extra_programs=ld.exe
1916 if test x$enable_threads = xyes; then
1921 i[34567]86-dg-dgux*)
1923 xm_file="xm-alloca.h ${xm_file}"
1924 xm_defines="USG POSIX"
1925 out_file=i386/dgux.c
1927 tmake_file=i386/t-dgux
1928 xmake_file=i386/x-dgux
1929 install_headers_dir=install-headers-cpio
1931 i860-alliant-*) # Alliant FX/2800
1932 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1933 xm_file="${xm_file}"
1934 xmake_file=i860/x-fx2800
1935 tmake_file=i860/t-fx2800
1936 extra_parts="crtbegin.o crtend.o"
1939 tm_file="${tm_file} i860/bsd.h"
1940 if test x$gas = xyes
1942 tm_file="${tm_file} i860/bsd-gas.h"
1947 tm_file="${tm_file} i860/mach.h"
1948 tmake_file=t-libc-ok
1950 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1951 tm_file="${tm_file} svr3.h i860/paragon.h"
1952 xm_defines="USG SVR3"
1956 tm_file="${tm_file} svr3.h i860/sysv3.h"
1957 xm_defines="USG SVR3"
1958 xmake_file=i860/x-sysv3
1959 extra_parts="crtbegin.o crtend.o"
1962 tm_file="${tm_file} svr4.h i860/sysv4.h"
1963 xm_defines="USG SVR3"
1964 xmake_file=i860/x-sysv4
1966 extra_parts="crtbegin.o crtend.o"
1968 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1969 tm_file="${tm_file} i960/vx960.h"
1970 tmake_file=i960/t-vxworks960
1972 thread_file='vxworks'
1974 i960-wrs-vxworks5* | i960-wrs-vxworks)
1975 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1976 tmake_file=i960/t-vxworks960
1978 thread_file='vxworks'
1981 tm_file="${tm_file} i960/vx960.h"
1982 tmake_file=i960/t-vxworks960
1984 thread_file='vxworks'
1987 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1988 tmake_file=i960/t-960bare
1992 tmake_file="i960/t-960bare t-rtems"
1993 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1996 i960-*-*) # Default i960 environment.
2001 tmake_file="ia64/t-ia64"
2002 target_cpu_default="0"
2003 if test x$gas = xyes
2005 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
2007 if test x$gnu_ld = xyes
2009 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
2013 tm_file=ia64/linux.h
2014 tmake_file="t-linux ia64/t-ia64"
2015 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
2016 if test x$enable_threads = xyes; then
2021 extra_parts="crtinit.o crtfini.o"
2023 m68000-convergent-sysv*)
2025 xm_file="m68k/xm-3b1.h ${xm_file}"
2028 extra_headers=math-68881.h
2030 m68000-hp-bsd*) # HP 9000/200 running BSD
2031 tm_file=m68k/hp2bsd.h
2032 xmake_file=m68k/x-hp2bsd
2034 extra_headers=math-68881.h
2036 m68000-hp-hpux*) # HP 9000 series 300
2037 xm_file="xm-alloca.h ${xm_file}"
2039 if test x$gas = xyes
2041 xmake_file=m68k/x-hp320g
2042 tm_file=m68k/hp310g.h
2044 xmake_file=m68k/x-hp320
2045 tm_file=m68k/hp310.h
2047 install_headers_dir=install-headers-cpio
2049 extra_headers=math-68881.h
2054 extra_headers=math-68881.h
2057 tm_file=m68k/sun2o4.h
2059 extra_headers=math-68881.h
2062 xm_file="m68k/xm-3b1.h ${xm_file}"
2064 if test x$gas = xyes
2071 extra_headers=math-68881.h
2073 m68k-apple-aux*) # Apple Macintosh running A/UX
2074 xm_defines="USG AUX"
2075 tmake_file=m68k/t-aux
2076 install_headers_dir=install-headers-cpio
2077 extra_headers=math-68881.h
2078 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2080 if test "$gnu_ld" = yes
2082 tm_file="${tm_file} m68k/auxgld.h"
2084 tm_file="${tm_file} m68k/auxld.h"
2086 if test "$gas" = yes
2088 tm_file="${tm_file} m68k/auxgas.h"
2090 tm_file="${tm_file} m68k/auxas.h"
2092 tm_file="${tm_file} m68k/a-ux.h"
2096 tm_file=m68k/apollo68.h
2097 xmake_file=m68k/x-apollo68
2099 extra_headers=math-68881.h
2102 m68k-altos-sysv*) # Altos 3068
2103 if test x$gas = xyes
2105 tm_file=m68k/altos3068.h
2108 echo "The Altos is supported only with the GNU assembler" 1>&2
2111 extra_headers=math-68881.h
2113 m68k-bull-sysv*) # Bull DPX/2
2114 if test x$gas = xyes
2116 if test x$stabs = xyes
2118 tm_file=m68k/dpx2cdbx.h
2120 tm_file=m68k/dpx2g.h
2125 xm_file="xm-alloca.h ${xm_file}"
2127 xmake_file=m68k/x-dpx2
2129 extra_headers=math-68881.h
2131 m68k-atari-sysv4*) # Atari variant of V.4.
2132 tm_file=m68k/atari.h
2133 xm_file="xm-alloca.h ${xm_file}"
2134 xm_defines="USG FULL_PROTOTYPES"
2136 extra_parts="crtbegin.o crtend.o"
2137 extra_headers=math-68881.h
2140 m68k-motorola-sysv*)
2141 tm_file=m68k/mot3300.h
2142 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2143 if test x$gas = xyes
2145 xmake_file=m68k/x-mot3300-gas
2146 if test x$gnu_ld = xyes
2148 tmake_file=m68k/t-mot3300-gald
2150 tmake_file=m68k/t-mot3300-gas
2154 xmake_file=m68k/x-mot3300
2155 if test x$gnu_ld = xyes
2157 tmake_file=m68k/t-mot3300-gld
2159 tmake_file=m68k/t-mot3300
2163 gdb_needs_out_file_path=yes
2164 extra_parts="crt0.o mcrt0.o"
2165 extra_headers=math-68881.h
2168 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2169 tm_file=m68k/tower-as.h
2170 xm_defines="USG SVR3"
2171 xmake_file=m68k/x-tower
2172 extra_parts="crtbegin.o crtend.o"
2173 extra_headers=math-68881.h
2176 tm_file=m68k/plexus.h
2177 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2180 extra_headers=math-68881.h
2184 xm_file="xm-alloca.h ${xm_file}"
2186 extra_headers=math-68881.h
2189 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2190 xm_defines="USG unos"
2191 xmake_file=m68k/x-crds
2194 extra_headers=math-68881.h
2196 m68k-cbm-sysv4*) # Commodore variant of V.4.
2198 xm_file="xm-alloca.h ${xm_file}"
2199 xm_defines="USG FULL_PROTOTYPES"
2200 xmake_file=m68k/x-amix
2202 extra_parts="crtbegin.o crtend.o"
2203 extra_headers=math-68881.h
2207 tm_file=m68k/ccur-GAS.h
2208 xmake_file=m68k/x-ccur
2209 extra_headers=math-68881.h
2213 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2214 tm_file=m68k/hp3bsd44.h
2215 xmake_file=m68k/x-hp3bsd44
2217 extra_headers=math-68881.h
2220 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2221 tm_file=m68k/hp3bsd.h
2223 extra_headers=math-68881.h
2227 if test x$with_fp = xno
2229 tm_file=m68k/isi-nfp.h
2235 extra_headers=math-68881.h
2237 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2238 xm_file="xm-alloca.h ${xm_file}"
2240 if test x$gas = xyes
2242 xmake_file=m68k/x-hp320g
2243 tm_file=m68k/hp320g.h
2245 xmake_file=m68k/x-hp320
2246 tm_file=m68k/hpux7.h
2248 install_headers_dir=install-headers-cpio
2250 extra_headers=math-68881.h
2253 m68k-hp-hpux*) # HP 9000 series 300
2254 xm_file="xm-alloca.h ${xm_file}"
2256 if test x$gas = xyes
2258 xmake_file=m68k/x-hp320g
2259 tm_file=m68k/hp320g.h
2261 xmake_file=m68k/x-hp320
2262 tm_file=m68k/hp320.h
2264 install_headers_dir=install-headers-cpio
2266 extra_headers=math-68881.h
2270 tm_file=m68k/sun3mach.h
2272 extra_headers=math-68881.h
2276 if test x$gas = xyes
2278 tm_file=m68k/news3gas.h
2280 tm_file=m68k/news3.h
2283 extra_headers=math-68881.h
2286 m68k-sony-bsd* | m68k-sony-newsos*)
2287 if test x$gas = xyes
2289 tm_file=m68k/newsgas.h
2294 extra_headers=math-68881.h
2297 m68k-next-nextstep2*)
2298 tm_file=m68k/next21.h
2299 xm_file="m68k/xm-next.h ${xm_file}"
2300 tmake_file=m68k/t-next
2301 xmake_file=m68k/x-next
2302 extra_objs=nextstep.o
2303 extra_headers=math-68881.h
2308 m68k-next-nextstep[34]*)
2311 xm_file="m68k/xm-next.h ${xm_file}"
2312 tmake_file=m68k/t-next
2313 xmake_file=m68k/x-next
2314 extra_objs=nextstep.o
2315 extra_parts="crtbegin.o crtend.o"
2316 extra_headers=math-68881.h
2318 if test x$enable_threads = xyes; then
2323 if test x$with_fp = xno
2325 tm_file=m68k/sun3n3.h
2327 tm_file=m68k/sun3o3.h
2331 extra_headers=math-68881.h
2333 m68k-sun-sunos*) # For SunOS 4 (the default).
2334 if test x$with_fp = xno
2336 tm_file=m68k/sun3n.h
2342 extra_headers=math-68881.h
2345 tm_file=m68k/vxm68k.h
2346 tmake_file=m68k/t-vxworks68
2347 extra_headers=math-68881.h
2348 thread_file='vxworks'
2352 tmake_file=m68k/t-m68kbare
2353 tm_file="m68k/m68k-aout.h libgloss.h"
2354 extra_headers=math-68881.h
2358 tmake_file=m68k/t-m68kbare
2359 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2360 extra_headers=math-68881.h
2363 m68020-*-elf* | m68k-*-elf*)
2364 tm_file="m68k/m68020-elf.h"
2365 xm_file=m68k/xm-m68kv.h
2366 tmake_file=m68k/t-m68kelf
2367 header_files=math-68881.h
2370 if test x$gas = xyes
2374 tm_file=m68k/lynx-ng.h
2376 xm_file=m68k/xm-lynx.h
2378 tmake_file=m68k/t-lynx
2379 extra_headers=math-68881.h
2383 tm_file=m68k/netbsd.h
2390 # we need collect2 until our bug is fixed...
2393 m68k-*-sysv3*) # Motorola m68k's running system V.3
2394 xm_file="xm-alloca.h ${xm_file}"
2396 xmake_file=m68k/x-m68kv
2397 extra_parts="crtbegin.o crtend.o"
2398 extra_headers=math-68881.h
2401 m68k-*-sysv4*) # Motorola m68k's running system V.4
2402 tm_file=m68k/m68kv4.h
2403 xm_file="xm-alloca.h ${xm_file}"
2406 extra_parts="crtbegin.o crtend.o"
2407 extra_headers=math-68881.h
2410 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
2413 tm_file=m68k/linux-aout.h
2414 tmake_file="t-linux-aout m68k/t-linux-aout"
2415 extra_headers=math-68881.h
2419 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2420 # with ELF format using the
2421 # GNU/Linux C library 5
2423 tm_file=m68k/linux.h
2424 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2425 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2426 extra_headers=math-68881.h
2430 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2431 # with ELF format using glibc 2
2432 # aka the GNU/Linux C library 6.
2434 tm_file=m68k/linux.h
2435 tmake_file="t-linux m68k/t-linux"
2436 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2437 extra_headers=math-68881.h
2440 if test x$enable_threads = xyes; then
2445 tmake_file=m68k/t-m68kbare
2446 tm_file=m68k/m68k-psos.h
2447 extra_headers=math-68881.h
2451 tmake_file="m68k/t-m68kbare t-rtems"
2452 tm_file=m68k/rtems.h
2453 extra_headers=math-68881.h
2456 m68k-*-rtemself*|m68k-*-rtems*)
2457 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2458 tm_file=m68k/rtemself.h
2459 extra_headers=math-68881.h
2465 tm_file=m88k/dguxbcs.h
2466 tmake_file=m88k/t-dguxbcs
2470 tmake_file=m88k/t-dgux
2473 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2474 xmake_file=m88k/x-dgux
2475 if test x$gas = xyes
2477 tmake_file=m88k/t-dgux-gas
2480 m88k-dolphin-sysv3*)
2481 tm_file=m88k/dolph.h
2482 extra_parts="crtbegin.o crtend.o"
2483 xm_file="m88k/xm-sysv3.h ${xm_file}"
2484 xmake_file=m88k/x-dolph
2485 if test x$gas = xyes
2487 tmake_file=m88k/t-m88k-gas
2490 m88k-tektronix-sysv3)
2491 tm_file=m88k/tekXD88.h
2492 extra_parts="crtbegin.o crtend.o"
2493 xm_file="m88k/xm-sysv3.h ${xm_file}"
2494 xmake_file=m88k/x-tekXD88
2495 if test x$gas = xyes
2497 tmake_file=m88k/t-m88k-gas
2501 tm_file=m88k/m88k-aout.h
2504 tm_file=m88k/m88k-coff.h
2505 tmake_file=m88k/t-bug
2509 extra_parts="crtbegin.o crtend.o"
2510 if test x$gas = xyes
2512 tmake_file=m88k/t-luna-gas
2514 tmake_file=m88k/t-luna
2518 tmake_file="${tmake_file} m88k/t-luna-gas"
2521 tm_file=m88k/sysv3.h
2522 extra_parts="crtbegin.o crtend.o"
2523 xm_file="m88k/xm-sysv3.h ${xm_file}"
2524 xmake_file=m88k/x-sysv3
2525 if test x$gas = xyes
2527 tmake_file=m88k/t-m88k-gas
2531 tm_file=m88k/sysv4.h
2532 extra_parts="crtbegin.o crtend.o"
2533 xmake_file=m88k/x-sysv4
2534 tmake_file=m88k/t-sysv4
2537 tm_file=mcore/mcore-elf.h
2538 tmake_file=mcore/t-mcore
2541 tm_file=mcore/mcore-pe.h
2542 tmake_file=mcore/t-mcore-pe
2544 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2545 if test "x$gnu_ld" = xyes
2547 tm_file="mips/iris6.h mips/iris6gld.h"
2549 tm_file=mips/iris6.h
2551 tmake_file=mips/t-iris6
2552 xm_file=mips/xm-iris6.h
2553 xmake_file=mips/x-iris6
2554 # if test x$enable_threads = xyes; then
2555 # thread_file='irix'
2559 tm_file="mips/elf.h mips/vxworks.h"
2560 tmake_file=mips/t-ecoff
2563 extra_parts="crtbegin.o crtend.o"
2564 thread_file='vxworks'
2566 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2567 tm_file="mips/iris6.h mips/cross64.h"
2569 xm_file="mips/xm-iris5.h"
2570 xmake_file=mips/x-iris
2571 tmake_file=mips/t-cross64
2572 # See comment in mips/iris[56].h files.
2574 # if test x$enable_threads = xyes; then
2575 # thread_file='irix'
2579 if test x$gas = xyes
2581 if test x$stabs = xyes
2583 tm_file=mips/iris5gdb.h
2585 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2588 tm_file=mips/sni-svr4.h
2591 xmake_file=mips/x-sni-svr4
2592 tmake_file=mips/t-mips-gas
2593 if test x$gnu_ld != xyes
2598 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2599 if test x$gas = xyes
2601 tm_file="mips/iris5.h mips/iris5gas.h"
2602 if test x$stabs = xyes
2604 tm_file="${tm_file} dbx.h"
2607 tm_file=mips/iris5.h
2610 xm_file="mips/xm-iris5.h"
2611 xmake_file=mips/x-iris
2612 # mips-tfile doesn't work yet
2613 tmake_file=mips/t-mips-gas
2614 # See comment in mips/iris5.h file.
2616 # if test x$enable_threads = xyes; then
2617 # thread_file='irix'
2620 mips-sgi-irix4loser*) # Mostly like a MIPS.
2621 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2622 if test x$stabs = xyes; then
2623 tm_file="${tm_file} dbx.h"
2626 xmake_file=mips/x-iris
2627 if test x$gas = xyes
2629 tmake_file=mips/t-mips-gas
2631 extra_passes="mips-tfile mips-tdump"
2633 if test x$gnu_ld != xyes
2637 # if test x$enable_threads = xyes; then
2638 # thread_file='irix'
2641 mips-sgi-irix4*) # Mostly like a MIPS.
2642 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2643 if test x$stabs = xyes; then
2644 tm_file="${tm_file} dbx.h"
2647 xmake_file=mips/x-iris
2648 if test x$gas = xyes
2650 tmake_file=mips/t-mips-gas
2652 extra_passes="mips-tfile mips-tdump"
2654 if test x$gnu_ld != xyes
2658 # if test x$enable_threads = xyes; then
2659 # thread_file='irix'
2662 mips-sgi-*) # Mostly like a MIPS.
2663 tm_file="mips/iris3.h ${tm_file}"
2664 if test x$stabs = xyes; then
2665 tm_file="${tm_file} dbx.h"
2668 xmake_file=mips/x-iris3
2669 if test x$gas = xyes
2671 tmake_file=mips/t-mips-gas
2673 extra_passes="mips-tfile mips-tdump"
2675 if test x$gnu_ld != xyes
2680 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2681 tm_file="mips/osfrose.h ${tm_file}"
2682 xmake_file=mips/x-osfrose
2683 tmake_file=mips/t-osfrose
2684 extra_objs=halfpic.o
2687 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2688 tm_file=mips/dec-osf1.h
2689 if test x$stabs = xyes; then
2690 tm_file="${tm_file} dbx.h"
2692 xmake_file=mips/x-dec-osf1
2693 if test x$gas = xyes
2695 tmake_file=mips/t-mips-gas
2697 tmake_file=mips/t-ultrix
2698 extra_passes="mips-tfile mips-tdump"
2700 if test x$gnu_ld != xyes
2705 mips-dec-bsd*) # Decstation running 4.4 BSD
2706 tm_file=mips/dec-bsd.h
2707 if test x$gas = xyes
2709 tmake_file=mips/t-mips-gas
2711 tmake_file=mips/t-ultrix
2712 extra_passes="mips-tfile mips-tdump"
2714 if test x$gnu_ld != xyes
2719 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2720 tm_file=mips/netbsd.h
2721 # On NetBSD, the headers are already okay, except for math.h.
2724 mips*-*-linux*) # Linux MIPS, either endian.
2727 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2728 *) tm_file="mips/elf.h mips/linux.h" ;;
2730 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2733 if test x$enable_threads = xyes; then
2737 mips*el-*-openbsd*) # mips little endian
2738 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2740 mips*-*-openbsd*) # mips big endian
2741 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2742 tm_file="mips/openbsd-be.h ${tm_file}"
2744 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2745 tm_file="mips/news4.h ${tm_file}"
2746 if test x$stabs = xyes; then
2747 tm_file="${tm_file} dbx.h"
2749 if test x$gas = xyes
2751 tmake_file=mips/t-mips-gas
2753 extra_passes="mips-tfile mips-tdump"
2755 if test x$gnu_ld != xyes
2759 xmake_file=mips/x-sony
2761 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2762 # That is based on svr4.
2763 # t-svr4 is not right because this system doesn't use ELF.
2764 tm_file="mips/news5.h ${tm_file}"
2765 if test x$stabs = xyes; then
2766 tm_file="${tm_file} dbx.h"
2769 if test x$gas = xyes
2771 tmake_file=mips/t-mips-gas
2773 extra_passes="mips-tfile mips-tdump"
2775 if test x$gnu_ld != xyes
2780 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2781 tm_file="mips/svr4-5.h mips/svr4-t.h"
2782 if test x$stabs = xyes; then
2783 tm_file="${tm_file} dbx.h"
2786 xmake_file=mips/x-sysv
2787 if test x$gas = xyes
2789 tmake_file=mips/t-mips-gas
2790 extra_parts="crtbegin.o crtend.o"
2792 tmake_file=mips/t-mips
2793 extra_passes="mips-tfile mips-tdump"
2795 if test x$gnu_ld != xyes
2800 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2801 tm_file="mips/ultrix.h ${tm_file}"
2802 if test x$stabs = xyes; then
2803 tm_file="${tm_file} dbx.h"
2805 xmake_file=mips/x-ultrix
2806 if test x$gas = xyes
2808 tmake_file=mips/t-mips-gas
2810 tmake_file=mips/t-ultrix
2811 extra_passes="mips-tfile mips-tdump"
2813 if test x$gnu_ld != xyes
2819 mips-*-riscos[56789]bsd*)
2821 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2822 if test x$stabs = xyes; then
2823 tm_file="${tm_file} dbx.h"
2825 if test x$gas = xyes
2827 tmake_file=mips/t-bsd-gas
2829 tmake_file=mips/t-bsd
2830 extra_passes="mips-tfile mips-tdump"
2832 if test x$gnu_ld != xyes
2838 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2840 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2841 if test x$stabs = xyes; then
2842 tm_file="${tm_file} dbx.h"
2844 if test x$gas = xyes
2846 tmake_file=mips/t-bsd-gas
2848 tmake_file=mips/t-bsd
2849 extra_passes="mips-tfile mips-tdump"
2851 if test x$gnu_ld != xyes
2857 mips-*-riscos[56789]sysv4*)
2859 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2860 if test x$stabs = xyes; then
2861 tm_file="${tm_file} dbx.h"
2863 xmake_file=mips/x-sysv
2864 if test x$gas = xyes
2866 tmake_file=mips/t-svr4-gas
2868 tmake_file=mips/t-svr4
2869 extra_passes="mips-tfile mips-tdump"
2871 if test x$gnu_ld != xyes
2877 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2879 tm_file="mips/svr4-4.h ${tm_file}"
2880 if test x$stabs = xyes; then
2881 tm_file="${tm_file} dbx.h"
2884 xmake_file=mips/x-sysv
2885 if test x$gas = xyes
2887 tmake_file=mips/t-svr4-gas
2889 tmake_file=mips/t-svr4
2890 extra_passes="mips-tfile mips-tdump"
2892 if test x$gnu_ld != xyes
2898 mips-*-riscos[56789]sysv*)
2900 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2901 if test x$stabs = xyes; then
2902 tm_file="${tm_file} dbx.h"
2905 xmake_file=mips/x-sysv
2906 if test x$gas = xyes
2908 tmake_file=mips/t-svr3-gas
2910 tmake_file=mips/t-svr3
2911 extra_passes="mips-tfile mips-tdump"
2913 if test x$gnu_ld != xyes
2918 mips-*-sysv* | mips-*-riscos*sysv*)
2919 tm_file="mips/svr3-4.h ${tm_file}"
2920 if test x$stabs = xyes; then
2921 tm_file="${tm_file} dbx.h"
2924 xmake_file=mips/x-sysv
2925 if test x$gas = xyes
2927 tmake_file=mips/t-svr3-gas
2929 tmake_file=mips/t-svr3
2930 extra_passes="mips-tfile mips-tdump"
2932 if test x$gnu_ld != xyes
2938 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2940 tm_file=mips/mips-5.h
2941 if test x$stabs = xyes; then
2942 tm_file="${tm_file} dbx.h"
2944 if test x$gas = xyes
2946 tmake_file=mips/t-mips-gas
2948 extra_passes="mips-tfile mips-tdump"
2950 if test x$gnu_ld != xyes
2958 tm_file=mips/ecoffl.h
2959 if test x$stabs = xyes; then
2960 tm_file="${tm_file} dbx.h"
2962 tmake_file=mips/t-ecoff
2965 tm_file="gofast.h mips/ecoff.h"
2966 if test x$stabs = xyes; then
2967 tm_file="${tm_file} dbx.h"
2969 tmake_file=mips/t-ecoff
2972 tm_file="mips/elfl.h"
2973 tmake_file=mips/t-elf
2976 tm_file="mips/elf.h"
2977 tmake_file=mips/t-elf
2980 tm_file="mips/elfl64.h"
2981 tmake_file=mips/t-elf
2983 mips64orionel-*-elf*)
2984 tm_file="mips/elforion.h mips/elfl64.h"
2985 tmake_file=mips/t-elf
2988 tm_file="mips/elf64.h"
2989 tmake_file=mips/t-elf
2992 tm_file="mips/elforion.h mips/elf64.h"
2993 tmake_file=mips/t-elf
2995 mips64orion-*-rtems*)
2996 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2997 tmake_file="mips/t-elf t-rtems"
3000 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
3001 tmake_file=mips/t-r3900
3004 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
3005 tmake_file=mips/t-r3900
3007 mips-*-*) # Default MIPS RISC-OS 4.0.
3008 if test x$stabs = xyes; then
3009 tm_file="${tm_file} dbx.h"
3011 if test x$gas = xyes
3013 tmake_file=mips/t-mips-gas
3015 extra_passes="mips-tfile mips-tdump"
3017 if test x$gnu_ld != xyes
3025 tm_file="mn10200/mn10200.h"
3026 if test x$stabs = xyes
3028 tm_file="${tm_file} dbx.h"
3034 tm_file="mn10300/mn10300.h"
3035 if test x$stabs = xyes
3037 tm_file="${tm_file} dbx.h"
3042 tm_file=ns32k/encore.h
3046 tm_file=ns32k/sequent.h
3050 tm_file=ns32k/tek6100.h
3054 tm_file=ns32k/tek6200.h
3057 # This has not been updated to GCC 2.
3060 # xmake_file=ns32k/x-genix
3061 # tm_file=ns32k/genix.h
3065 tm_file=ns32k/merlin.h
3069 tm_file=ns32k/pc532-mach.h
3073 tm_file=ns32k/pc532-min.h
3074 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3079 tm_file=ns32k/netbsd.h
3080 xm_file="ns32k/xm-netbsd.h ${xm_file}"
3081 # On NetBSD, the headers are already okay, except for math.h.
3086 tm_file="${tm_file} pdp11/2bsd.h"
3095 # This has not been updated to GCC 2.
3098 # xmake_file=pyr/x-pyr
3103 tm_file="svr4.h pj/linux.h ${tm_file}"
3108 tm_file="svr4.h pj/pjl.h ${tm_file}"
3115 xmake_file=romp/x-mach
3122 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3126 tm_file=rs6000/beos.h
3127 xm_file=rs6000/xm-beos.h
3128 tmake_file=rs6000/t-beos
3129 xmake_file=rs6000/x-beos
3132 tm_file=rs6000/sysv4.h
3133 xm_file="rs6000/xm-sysv4.h"
3134 xm_defines="USG POSIX"
3135 extra_headers=ppc-asm.h
3136 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3137 xmake_file=rs6000/x-sysv4
3140 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3141 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3142 extra_headers=ppc-asm.h
3145 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3146 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3147 extra_headers=ppc-asm.h
3150 tm_file="rs6000/sysv4.h"
3151 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3152 extra_headers=ppc-asm.h
3155 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3156 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3157 extra_headers=ppc-asm.h
3160 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3161 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3162 extra_headers=ppc-asm.h
3164 powerpc-*-linux-gnulibc1)
3165 tm_file="rs6000/sysv4.h rs6000/linux.h"
3166 xm_file=rs6000/xm-sysv4.h
3167 out_file=rs6000/rs6000.c
3168 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3170 extra_headers=ppc-asm.h
3171 if test x$enable_threads = xyes; then
3175 powerpc-*-linux-gnu*)
3176 tm_file="rs6000/sysv4.h rs6000/linux.h"
3177 xm_file="rs6000/xm-sysv4.h"
3178 xm_defines="USG ${xm_defines}"
3179 out_file=rs6000/rs6000.c
3180 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3182 extra_headers=ppc-asm.h
3183 if test x$enable_threads = xyes; then
3187 powerpc-wrs-vxworks*)
3189 xm_file="rs6000/xm-sysv4.h"
3190 xm_defines="USG POSIX"
3191 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3192 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3193 extra_headers=ppc-asm.h
3194 thread_file='vxworks'
3196 powerpcle-wrs-vxworks*)
3198 xm_file="rs6000/xm-sysv4.h"
3199 xm_defines="USG POSIX"
3200 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3201 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3202 extra_headers=ppc-asm.h
3203 thread_file='vxworks'
3206 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3207 xm_file="rs6000/xm-sysv4.h"
3208 xm_defines="USG POSIX"
3209 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3210 xmake_file=rs6000/x-sysv4
3211 extra_headers=ppc-asm.h
3214 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3215 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3216 extra_headers=ppc-asm.h
3218 powerpcle-*-eabisim*)
3219 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3220 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3221 extra_headers=ppc-asm.h
3224 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3225 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3226 extra_headers=ppc-asm.h
3228 powerpcle-*-solaris2*)
3229 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3230 xm_file="rs6000/xm-sysv4.h"
3231 xm_defines="USG POSIX"
3232 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3233 xmake_file=rs6000/x-sysv4
3234 extra_headers=ppc-asm.h
3237 rs6000-ibm-aix3.[01]*)
3239 tm_file=rs6000/aix31.h
3240 xmake_file=rs6000/x-aix31
3245 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3247 tm_file=rs6000/aix3newas.h
3248 if test x$host != x$target
3250 tmake_file=rs6000/t-xnewas
3252 tmake_file=rs6000/t-newas
3258 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3260 tm_file=rs6000/aix41.h
3261 if test x$host != x$target
3263 tmake_file=rs6000/t-xnewas
3265 tmake_file=rs6000/t-newas
3267 if test "$gnu_ld" = yes
3269 xmake_file=rs6000/x-aix41-gld
3271 tmake_file="rs6000/t-newas rs6000/t-aix41"
3273 xmake_file=rs6000/x-aix41
3278 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3280 tm_file=rs6000/aix43.h
3281 tmake_file=rs6000/t-aix43
3282 xmake_file=rs6000/x-aix41
3287 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3289 tm_file=rs6000/aix43.h
3290 tmake_file=rs6000/t-aix43
3291 xmake_file=rs6000/x-aix41
3304 tm_file=rs6000/mach.h
3305 xm_file="${xm_file} rs6000/xm-mach.h"
3306 xmake_file=rs6000/x-mach
3310 tm_file=rs6000/lynx.h
3311 xm_file=rs6000/xm-lynx.h
3312 tmake_file=rs6000/t-rs6000
3313 xmake_file=rs6000/x-lynx
3321 tmake_file="sh/t-sh t-rtems"
3322 tm_file=sh/rtemself.h
3326 tmake_file="sh/t-sh t-rtems"
3335 xm_file="xm-alloca.h ${xm_file}"
3338 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3339 tm_file=sparc/vxsparc.h
3340 tmake_file=sparc/t-vxsparc
3342 thread_file='vxworks'
3345 tmake_file=sparc/t-sparcbare
3346 tm_file="sparc/aout.h libgloss.h"
3349 tm_file=sparc/netbsd.h
3354 # we need collect2 until our bug is fixed...
3362 tmake_file=sparc/t-elf
3363 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3367 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
3368 xm_file="${xm_file} sparc/xm-linux.h"
3369 tm_file=sparc/linux-aout.h
3373 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
3374 xm_file="${xm_file} sparc/xm-linux.h"
3376 tm_file=sparc/linux.h
3377 tmake_file="t-linux t-linux-gnulibc1"
3378 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3382 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
3383 xm_file="${xm_file} sparc/xm-linux.h"
3385 tm_file=sparc/linux.h
3386 tmake_file="t-linux"
3387 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3389 if test x$enable_threads = xyes; then
3395 if test x$gas = xyes
3397 tm_file=sparc/lynx.h
3399 tm_file=sparc/lynx-ng.h
3401 xm_file=sparc/xm-lynx.h
3402 tmake_file=sparc/t-sunos41
3406 tmake_file="sparc/t-sparcbare t-rtems"
3407 tm_file=sparc/rtems.h
3409 sparc-*-rtems*|sparc-*-rtemself*)
3410 tm_file="sparc/rtemself.h"
3411 tmake_file="sparc/t-elf t-rtems"
3412 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3416 sparcv9-*-solaris2*)
3417 if test x$gnu_ld = xyes
3419 tm_file=sparc/sol2-64.h
3421 tm_file=sparc/sol2-sld-64.h
3423 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3424 xm_defines="USG POSIX"
3425 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3426 xmake_file=sparc/x-sysv4
3427 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3429 if test x${enable_threads} = x ; then
3430 enable_threads=$have_pthread_h
3431 if test x${enable_threads} = x ; then
3432 enable_threads=$have_thread_h
3435 if test x${enable_threads} = xyes ; then
3436 if test x${have_pthread_h} = xyes ; then
3439 thread_file='solaris'
3443 sparc-hal-solaris2*)
3444 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3445 xm_defines="USG POSIX"
3446 tm_file="sparc/sol2.h sparc/hal.h"
3447 tmake_file="sparc/t-halos sparc/t-sol2"
3448 xmake_file=sparc/x-sysv4
3449 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3460 thread_file='solaris'
3463 if test x$gnu_ld = xyes
3465 tm_file=sparc/sol2.h
3467 tm_file=sparc/sol2-sld.h
3469 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3470 xm_defines="USG POSIX"
3471 tmake_file=sparc/t-sol2
3472 xmake_file=sparc/x-sysv4
3473 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3476 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3479 if test x$gnu_ld = xyes
3481 tm_file=sparc/sol2-64.h
3483 tm_file=sparc/sol2-sld-64.h
3485 tmake_file="$tmake_file sparc/t-sol2-64"
3498 if test x${enable_threads} = x; then
3499 enable_threads=$have_pthread_h
3500 if test x${enable_threads} = x; then
3501 enable_threads=$have_thread_h
3504 if test x${enable_threads} = xyes; then
3505 if test x${have_pthread_h} = xyes; then
3508 thread_file='solaris'
3513 tm_file=sparc/sunos4.h
3514 tmake_file=sparc/t-sunos40
3518 tm_file=sparc/sunos4.h
3519 tmake_file=sparc/t-sunos41
3521 if test x$gas = xyes; then
3522 tm_file="${tm_file} sparc/sun4gas.h"
3526 tm_file=sparc/sun4o3.h
3530 tm_file=sparc/sysv4.h
3531 xm_file="sparc/xm-sysv4.h"
3532 xm_defines="USG POSIX"
3534 xmake_file=sparc/x-sysv4
3535 extra_parts="crtbegin.o crtend.o"
3538 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3539 xm_defines="USG POSIX"
3540 tm_file=sparc/vxsim.h
3541 tmake_file=sparc/t-vxsparc
3542 xmake_file=sparc/x-sysv4
3545 tm_file="sparc/splet.h libgloss.h"
3546 tmake_file=sparc/t-splet
3549 tm_file="sparc/litecoff.h libgloss.h"
3550 tmake_file=sparc/t-sparclite
3553 tm_file="sparc/lite.h aoutos.h libgloss.h"
3554 tmake_file=sparc/t-sparclite
3557 tm_file="sparc/liteelf.h"
3558 tmake_file=sparc/t-sparclite
3559 extra_parts="crtbegin.o crtend.o"
3562 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3563 tmake_file=sparc/t-sp86x
3566 tm_file="sparc/sp86x-elf.h"
3567 tmake_file=sparc/t-sp86x
3568 extra_parts="crtbegin.o crtend.o"
3571 tmake_file=sparc/t-sp64
3572 tm_file=sparc/sp64-aout.h
3575 tmake_file=sparc/t-sp64
3576 tm_file=sparc/sp64-elf.h
3577 extra_parts="crtbegin.o crtend.o"
3579 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3580 tmake_file="t-linux sparc/t-linux64"
3581 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3582 tm_file=sparc/linux64.h
3584 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3586 if test x$enable_threads = xyes; then
3591 # This hasn't been upgraded to GCC 2.
3592 # tahoe-harris-*) # Harris tahoe, using COFF.
3593 # tm_file=tahoe/harris.h
3595 # tahoe-*-bsd*) # tahoe running BSD
3600 *** The Thumb targets have been depreciated. The equivalent
3601 *** ARM based toolchain can now generated Thumb instructions
3602 *** when the -mthumb switch is given to the compiler.])
3604 # This hasn't been upgraded to GCC 2.
3611 tm_file="v850/rtems.h"
3612 xm_file="v850/xm-v850.h"
3613 tmake_file="v850/t-v850 t-rtems"
3614 if test x$stabs = xyes
3616 tm_file="${tm_file} dbx.h"
3621 target_cpu_default="TARGET_CPU_generic"
3623 tm_file="v850/v850.h"
3624 xm_file="v850/xm-v850.h"
3625 tmake_file=v850/t-v850
3626 if test x$stabs = xyes
3628 tm_file="${tm_file} dbx.h"
3632 vax-*-bsd*) # vaxen running BSD
3636 vax-*-sysv*) # vaxen running system V
3637 tm_file="${tm_file} vax/vaxv.h"
3642 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3648 tmake_file="${tmake_file} vax/t-openbsd"
3650 vax-*-ultrix*) # vaxen running ultrix
3651 tm_file="${tm_file} vax/ultrix.h"
3655 vax-*-vms*) # vaxen running VMS
3656 xm_file=vax/xm-vms.h
3660 vax-*-*) # vax default entry
3664 xm_file="${xm_file} xm-svr3"
3668 echo "Configuration $machine not supported" 1>&2
3675 ;; # Existing GNU/Linux systems do not use the GNU setup.
3677 # On the GNU system, the setup is just about the same on
3678 # each different CPU. The specific machines that GNU
3679 # supports are matched above and just set $cpu_type.
3680 xm_file="xm-gnu.h ${xm_file}"
3681 tm_file=${cpu_type}/gnu.h
3682 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3683 # GNU always uses ELF.
3685 # GNU tools are the only tools.
3688 xmake_file=x-linux # These details are the same as Linux.
3689 tmake_file=t-gnu # These are not.
3692 xmake_try_sysv=x-sysv
3693 install_headers_dir=install-headers-cpio
3696 install_headers_dir=install-headers-cpio
3700 # Distinguish i[34567]86
3701 # Also, do not run mips-tfile on MIPS if using gas.
3702 # Process --with-cpu= for PowerPC/rs6000
3703 target_cpu_default2=
3706 target_cpu_default2=1
3709 case $target_alias in
3711 target_cpu_default2=4
3714 target_cpu_default2=2
3718 i686-*-* | i786-*-*)
3719 target_cpu_default2=3
3726 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3729 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3732 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3735 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3738 target_cpu_default2="MASK_CPU_EV5"
3742 if test x$gas = xyes
3744 if test "$target_cpu_default2" = ""
3746 target_cpu_default2="MASK_GAS"
3748 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3753 case "x$with_cpu" in
3756 target_cpu_default2="TARGET_CPU_generic"
3759 # Distinguish cores, and major variants
3760 # arm7m doesn't exist, but D & I don't affect code
3762 xarm[23678] | xarm250 | xarm[67][01]0 \
3763 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3764 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3765 | xstrongarm | xstrongarm110 | xstrongarm1100)
3767 target_cpu_default2="TARGET_CPU_$with_cpu"
3771 echo "--with-cpu must be passed a value" 1>&2
3776 if test x$pass2done = xyes
3778 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3785 mips*-*-ecoff* | mips*-*-elf*)
3786 if test x$gas = xyes
3788 if test x$gnu_ld = xyes
3790 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3792 target_cpu_default2="MASK_GAS"
3797 if test x$gas = xyes
3799 target_cpu_default2="MASK_GAS"
3802 powerpc*-*-* | rs6000-*-*)
3803 case "x$with_cpu" in
3807 xcommon | xpower | xpower2 | xpowerpc | xrios \
3808 | xrios1 | xrios2 | xrsc | xrsc1 \
3809 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3810 | xec603e | x740 | x750 | x401 \
3811 | x403 | x505 | x801 | x821 | x823 | x860)
3812 target_cpu_default2="\"$with_cpu\""
3816 echo "--with-cpu must be passed a value" 1>&2
3821 if test x$pass2done = xyes
3823 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3830 case ".$with_cpu" in
3832 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3834 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3835 target_cpu_default2="TARGET_CPU_$with_cpu"
3838 if test x$pass2done = xyes
3840 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3848 if test "$target_cpu_default2" != ""
3850 if test "$target_cpu_default" != ""
3852 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3854 target_cpu_default=$target_cpu_default2
3858 # No need for collect2 if we have the GNU linker.
3859 # Actually, there is now; GNU ld doesn't handle the EH info or
3860 # collecting for shared libraries.
3867 # Save data on machine being used to compile GCC in build_xm_file.
3868 # Save data on host machine in vars host_xm_file and host_xmake_file.
3869 if test x$pass1done = x
3871 if test x"$xm_file" = x
3872 then build_xm_file=$cpu_type/xm-$cpu_type.h
3873 else build_xm_file=$xm_file
3875 build_xm_defines=$xm_defines
3876 build_install_headers_dir=$install_headers_dir
3877 build_exeext=$exeext
3880 if test x$pass2done = x
3882 if test x"$xm_file" = x
3883 then host_xm_file=$cpu_type/xm-$cpu_type.h
3884 else host_xm_file=$xm_file
3886 host_xm_defines=$xm_defines
3887 if test x"$xmake_file" = x
3888 then xmake_file=$cpu_type/x-$cpu_type
3890 host_xmake_file="$xmake_file"
3891 host_truncate_target=$truncate_target
3892 host_extra_gcc_objs=$extra_gcc_objs
3893 host_extra_objs=$extra_host_objs
3900 extra_objs="${host_extra_objs} ${extra_objs}"
3902 # Default the target-machine variables that were not explicitly set.
3903 if test x"$tm_file" = x
3904 then tm_file=$cpu_type/$cpu_type.h; fi
3906 if test x$extra_headers = x
3907 then extra_headers=; fi
3909 if test x"$xm_file" = x
3910 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3912 if test x$md_file = x
3913 then md_file=$cpu_type/$cpu_type.md; fi
3915 if test x$out_file = x
3916 then out_file=$cpu_type/$cpu_type.c; fi
3918 if test x"$tmake_file" = x
3919 then tmake_file=$cpu_type/t-$cpu_type
3922 if test x"$dwarf2" = xyes
3923 then tm_file="$tm_file tm-dwarf2.h"
3926 if test x$float_format = x
3927 then float_format=i64
3930 if test $float_format = none
3931 then float_h_file=Makefile.in
3932 else float_h_file=float-$float_format.h
3935 # Handle cpp installation.
3936 if test x$enable_cpp != xno
3938 tmake_file="$tmake_file t-install-cpp"
3941 # Say what files are being used for the output code and MD file.
3942 echo "Using \`$srcdir/config/$out_file' to output insns."
3943 echo "Using \`$srcdir/config/$md_file' as machine description file."
3946 for f in $tm_file; do
3949 if test $count = ax; then
3950 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3952 echo "Using the following target machine macro files:"
3953 for f in $tm_file; do
3954 echo " $srcdir/config/$f"
3959 for f in $host_xm_file; do
3962 if test $count = ax; then
3963 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3965 echo "Using the following host machine macro files:"
3966 for f in $host_xm_file; do
3967 echo " $srcdir/config/$f"
3971 if test "$host_xm_file" != "$build_xm_file"; then
3973 for f in $build_xm_file; do
3976 if test $count = ax; then
3977 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3979 echo "Using the following build machine macro files:"
3980 for f in $build_xm_file; do
3981 echo " $srcdir/config/$f"
3986 if test x$thread_file = x; then
3987 if test x$target_thread_file != x; then
3988 thread_file=$target_thread_file
3990 thread_file='single'
3994 # Set up the header files.
3995 # $links is the list of header files to create.
3996 # $vars is the list of shell variables with file names to include.
3997 # auto-host.h is the file containing items generated by autoconf and is
3998 # the first file included by config.h.
4000 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
4002 # If host=build, it is correct to have hconfig include auto-host.h
4003 # as well. If host!=build, we are in error and need to do more
4004 # work to find out the build config parameters.
4005 if test x$host = x$build
4007 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
4009 # We create a subdir, then run autoconf in the subdir.
4010 # To prevent recursion we set host and build for the new
4011 # invocation of configure to the build for this invocation
4018 /*) realsrcdir=${srcdir};;
4019 *) realsrcdir=../${srcdir};;
4021 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4022 --target=$target --host=$build --build=$build
4024 # We just finished tests for the build machine, so rename
4025 # the file auto-build.h in the gcc directory.
4026 mv auto-host.h ../auto-build.h
4029 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4032 xm_file="gansidecl.h ${xm_file}"
4033 tm_file="gansidecl.h ${tm_file}"
4035 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4036 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4037 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4040 if test -f config.status; then mv -f config.status config.bak; fi
4043 while test -n "$vars"
4045 set $vars; var=$1; shift; vars=$*
4046 set $links; link=$1; shift; links=$*
4047 set $defines; define=$1; shift; defines=$*
4050 # Make sure the file is created, even if it is empty.
4053 # Define TARGET_CPU_DEFAULT if the system wants one.
4054 # This substitutes for lots of *.h files.
4055 if test "$target_cpu_default" != "" -a $link = tm.h
4057 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4060 for file in `eval echo '$'$var`; do
4062 auto-host.h | auto-build.h )
4065 echo '#ifdef IN_GCC' >>$link
4068 echo "#include \"$file\"" >>$link
4070 auto-host.h | auto-build.h )
4073 echo '#endif' >>$link
4078 for def in `eval echo '$'$define`; do
4079 echo "#ifndef $def" >>$link
4080 echo "#define $def" >>$link
4081 echo "#endif" >>$link
4085 # Truncate the target if necessary
4086 if test x$host_truncate_target != x; then
4087 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4090 # Get the version trigger filename from the toplevel
4091 if test "${with_gcc_version_trigger+set}" = set; then
4092 gcc_version_trigger=$with_gcc_version_trigger
4094 gcc_version_trigger=${srcdir}/version.c
4097 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
4100 # Internationalization
4102 VERSION="$gcc_version"
4103 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4104 [Define to the name of the distribution.])
4105 AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4106 [Define to the version of the distribution.])
4112 # Enable NLS support by default
4114 [ --enable-nls use Native Language Support (default)],
4117 # if cross compiling, disable NLS support.
4118 # It's not worth the trouble, at least for now.
4120 if test "${build}" != "${host}" && test "x$enable_nls" == "xyes"; then
4121 AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
4126 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4128 # Windows32 Registry support for specifying GCC installation paths.
4129 AC_ARG_ENABLE(win32-registry,
4130 [ --disable-win32-registry
4131 Disable lookup of installation paths in the
4132 Registry on Windows hosts.
4133 --enable-win32-registry Enable registry lookup (default).
4134 --enable-win32-registry=KEY
4135 Use KEY instead of GCC version as the last portion
4136 of the registry key.],,)
4138 AC_MSG_CHECKING(whether windows registry support is requested)
4139 if test x$enable_win32_registry != xno; then
4140 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4141 [Define to 1 if installation paths should be looked up in Windows32
4142 Registry. Ignored on non windows32 hosts.])
4148 # Check if user specified a different registry key.
4149 case x${enable_win32_registry} in
4152 gcc_cv_win32_registry_key="$VERSION"
4155 # no registry lookup.
4156 gcc_cv_win32_registry_key=''
4159 # user-specified key.
4160 gcc_cv_win32_registry_key="$enable_win32_registry"
4164 if test x$enable_win32_registry != xno; then
4165 AC_MSG_CHECKING(registry key on windows hosts)
4166 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4167 [Define to be the last portion of registry key on windows hosts.])
4168 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4171 # Get an absolute path to the GCC top-level source directory
4177 # Conditionalize the makefile for this host machine.
4178 # Make-host contains the concatenation of all host makefile fragments
4179 # [there can be more than one]. This file is built by configure.frag.
4180 host_overrides=Make-host
4181 dep_host_xmake_file=
4182 for f in .. ${host_xmake_file}
4184 if test -f ${srcdir}/config/$f
4186 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4190 # Conditionalize the makefile for this target machine.
4191 # Make-target contains the concatenation of all host makefile fragments
4192 # [there can be more than one]. This file is built by configure.frag.
4193 target_overrides=Make-target
4195 for f in .. ${tmake_file}
4197 if test -f ${srcdir}/config/$f
4199 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4203 # If the host doesn't support symlinks, modify CC in
4204 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4205 # Otherwise, we can use "CC=$(CC)".
4207 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4209 cc_set_by_configure="\$(CC)"
4210 quoted_cc_set_by_configure="\$(CC)"
4211 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4214 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4216 symbolic_link="cp -p"
4220 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4221 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4222 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4226 out_object_file=`basename $out_file .c`.o
4229 for f in $tm_file; do
4232 tm_file_list="${tm_file_list} $f" ;;
4233 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4238 for f in $host_xm_file; do
4240 auto-host.h | gansidecl.h | hwint.h )
4241 host_xm_file_list="${host_xm_file_list} $f" ;;
4242 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4247 for f in $build_xm_file; do
4249 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4250 build_xm_file_list="${build_xm_file_list} $f" ;;
4251 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4255 # Define macro CROSS_COMPILE in compilation
4256 # if this is a cross-compiler.
4257 # Also use all.cross instead of all.internal
4258 # and add cross-make to Makefile.
4259 cross_overrides="/dev/null"
4260 if test x$host != x$target
4262 cross_defines="CROSS=-DCROSS_COMPILE"
4263 cross_overrides="${topdir}/cross-make"
4266 # If this is a cross-compiler that does not
4267 # have its own set of headers then define
4270 # If this is using newlib, then define inhibit_libc in
4271 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4272 # libgcc.a, but that's OK because newlib should have its own version of
4275 if [test x$host != x$target] && [test x$with_headers = x]; then
4276 inhibit_libc=-Dinhibit_libc
4278 if [test x$with_newlib = xyes]; then
4279 inhibit_libc=-Dinhibit_libc
4282 AC_SUBST(inhibit_libc)
4284 # When building gcc with a cross-compiler, we need to fix a few things.
4285 # This must come after cross-make as we want all.build to override
4287 build_overrides="/dev/null"
4288 if test x$build != x$host
4290 build_overrides="${topdir}/build-make"
4293 # Expand extra_headers to include complete path.
4294 # This substitutes for lots of t-* files.
4296 if test "x$extra_headers" = x
4299 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4300 for file in $extra_headers;
4302 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4306 if test x$use_collect2 = xno; then
4310 # Add a definition of USE_COLLECT2 if system wants one.
4311 # Also tell toplev.c what to do.
4312 # This substitutes for lots of t-* files.
4313 if test x$use_collect2 = x
4318 will_use_collect2="collect2"
4319 maybe_use_collect2="-DUSE_COLLECT2"
4323 # Set MD_DEPS if the real md file is in md.pre-cpp.
4324 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4325 # for line oriented comments, so we must always use a GNU cpp. If
4326 # building gcc with a cross compiler, use the cross compiler just
4327 # built. Otherwise, we can use the cpp just built.
4329 if test "x$md_cppflags" = x
4331 md_file_sub=$srcdir/config/$md_file
4336 # If we have gas in the build tree, make a link to it.
4337 if test -f ../gas/Makefile; then
4338 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4341 # If we have nm in the build tree, make a link to it.
4342 if test -f ../binutils/Makefile; then
4343 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4346 # If we have ld in the build tree, make a link to it.
4347 if test -f ../ld/Makefile; then
4348 # if test x$use_collect2 = x; then
4349 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4351 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4355 # Figure out what assembler alignment features are present.
4356 AC_MSG_CHECKING(assembler alignment features)
4358 gcc_cv_as_alignment_features=
4359 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4360 if test -x "$DEFAULT_ASSEMBLER"; then
4361 gcc_cv_as="$DEFAULT_ASSEMBLER"
4362 elif test -x "$AS"; then
4364 elif test -x as$host_exeext; then
4365 # Build using assembler in the current directory.
4366 gcc_cv_as=./as$host_exeext
4367 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4368 # Single tree build which includes gas.
4369 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4372 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4374 if test x$gcc_cv_gas_version != x; then
4379 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4380 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4382 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4383 # Gas version 2.6 and later support for .balign and .p2align.
4384 # bytes to skip when using .p2align.
4385 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
4386 gcc_cv_as_alignment_features=".balign and .p2align"
4387 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4389 # Gas version 2.8 and later support specifying the maximum
4390 # bytes to skip when using .p2align.
4391 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
4392 gcc_cv_as_alignment_features=".p2align including maximum skip"
4393 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4396 elif test x$host = x$target; then
4398 # Search the same directories that the installed compiler will
4399 # search. Else we may find the wrong assembler and lose. If we
4400 # do not find a suitable assembler binary, then try the user's
4403 # Also note we have to check MD_EXEC_PREFIX before checking the
4404 # user's path. Unfortunately, there is no good way to get at the
4405 # value of MD_EXEC_PREFIX here. So we do a brute force search
4406 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4407 # to be fixed as part of the make/configure rewrite too.
4409 if test "x$exec_prefix" = xNONE; then
4410 if test "x$prefix" = xNONE; then
4411 test_prefix=/usr/local
4416 test_prefix=$exec_prefix
4419 # If the loop below does not find an assembler, then use whatever
4420 # one we can find in the users's path.
4424 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4425 $test_prefix/lib/gcc-lib/$target \
4426 /usr/lib/gcc/$target/$gcc_version \
4427 /usr/lib/gcc/$target \
4428 $test_prefix/$target/bin/$target/$gcc_version \
4429 $test_prefix/$target/bin \
4434 /bsd43/usr/lib/cmplrs/cc \
4435 /usr/cross64/usr/bin \
4436 /usr/lib/cmplrs/cc \
4437 /sysv/usr/lib/cmplrs/cc \
4438 /svr4/usr/lib/cmplrs/cc \
4441 for dir in $test_dirs; do
4442 if test -f $dir/as$host_exeext; then
4443 gcc_cv_as=$dir/as$host_exeext
4448 if test x$gcc_cv_as != x; then
4449 # Check if we have .balign and .p2align
4450 echo ".balign 4" > conftest.s
4451 echo ".p2align 2" >> conftest.s
4452 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4453 gcc_cv_as_alignment_features=".balign and .p2align"
4454 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4456 rm -f conftest.s conftest.o
4457 # Check if specifying the maximum bytes to skip when
4458 # using .p2align is supported.
4459 echo ".p2align 4,,7" > conftest.s
4460 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4461 gcc_cv_as_alignment_features=".p2align including maximum skip"
4462 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4464 rm -f conftest.s conftest.o
4466 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4468 AC_MSG_CHECKING(assembler subsection support)
4469 gcc_cv_as_subsections=
4470 if test x$gcc_cv_as != x; then
4471 # Check if we have .subsection
4472 echo ".subsection 1" > conftest.s
4473 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4474 gcc_cv_as_subsections=".subsection"
4475 if test -x nm$host_exeext; then
4476 gcc_cv_nm=./nm$host_exeext
4477 elif test x$host = x$target; then
4479 gcc_cv_nm=nm$host_exeext
4481 if test x$gcc_cv_nm != x; then
4482 cat > conftest.s <<EOF
4483 conftest_label1: .word 0
4485 conftest_label2: .word 0
4488 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4489 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4490 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4491 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4494 gcc_cv_as_subsections="working .subsection -1"
4495 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4496 [Define if your assembler supports .subsection and .subsection -1 starts
4497 emitting at the beginning of your section.])
4502 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4504 AC_MSG_RESULT($gcc_cv_as_subsections)
4506 AC_MSG_CHECKING(assembler weak support)
4508 if test x$gcc_cv_as != x; then
4509 # Check if we have .weak
4510 echo " .weak foobar" > conftest.s
4511 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4512 AC_DEFINE(HAVE_GAS_WEAK, 1,
4513 [Define if your assembler supports .weak.])
4514 gcc_cv_as_weak="yes"
4516 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4518 AC_MSG_RESULT($gcc_cv_as_weak)
4520 AC_MSG_CHECKING(assembler hidden support)
4522 if test x$gcc_cv_as != x; then
4523 # Check if we have .hidden
4524 echo " .hidden foobar" > conftest.s
4525 echo "foobar:" >> conftest.s
4526 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4527 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4528 [Define if your assembler supports .hidden.])
4529 gcc_cv_as_hidden="yes"
4531 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4533 AC_MSG_RESULT($gcc_cv_as_hidden)
4537 AC_CACHE_CHECK([assembler .register pseudo-op support],
4538 gcc_cv_as_register_pseudo_op, [
4539 gcc_cv_as_register_pseudo_op=unknown
4540 if test x$gcc_cv_as != x; then
4541 # Check if we have .register
4542 echo ".register %g2, #scratch" > conftest.s
4543 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4544 gcc_cv_as_register_pseudo_op=yes
4546 gcc_cv_as_register_pseudo_op=no
4548 rm -f conftest.s conftest.o
4551 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4552 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4553 [Define if your assembler supports .register.])
4556 AC_CACHE_CHECK([assembler supports -relax],
4557 gcc_cv_as_relax_opt, [
4558 gcc_cv_as_relax_opt=unknown
4559 if test x$gcc_cv_as != x; then
4560 # Check if gas supports -relax
4561 echo ".text" > conftest.s
4562 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
4563 gcc_cv_as_relax_opt=yes
4565 gcc_cv_as_relax_opt=no
4567 rm -f conftest.s conftest.o
4570 if test "x$gcc_cv_as_relax_opt" = xyes; then
4571 AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
4572 [Define if your assembler supports -relax option.])
4577 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4578 gcc_cv_as_flags64, [
4579 if test -n "$gcc_cv_as"; then
4580 echo ".xword foo" > conftest.s
4581 gcc_cv_as_flags64=no
4582 for flag in "-xarch=v9" "-64 -Av9"; do
4583 if $gcc_cv_as $flag -o conftest.o conftest.s \
4584 > /dev/null 2>&1; then
4585 gcc_cv_as_flags64=$flag
4589 rm -f conftest.s conftest.o
4591 if test "$gas" = yes; then
4592 gcc_cv_as_flags64="-64 -Av9"
4594 gcc_cv_as_flags64="-xarch=v9"
4598 if test "x$gcc_cv_as_flags64" = xno; then
4600 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4601 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4604 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4605 [Define if the assembler supports 64bit sparc.])
4608 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4612 if test "x$gcc_cv_as_flags64" != xno; then
4613 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4614 gcc_cv_as_offsetable_lo10, [
4615 gcc_cv_as_offsetable_lo10=unknown
4616 if test "x$gcc_cv_as" != x; then
4617 # Check if assembler has offsetable %lo()
4618 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4619 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4620 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4622 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4623 > /dev/null 2>&1; then
4624 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4625 gcc_cv_as_offsetable_lo10=no
4627 gcc_cv_as_offsetable_lo10=yes
4630 gcc_cv_as_offsetable_lo10=no
4632 rm -f conftest.s conftest.o conftest1.s conftest1.o
4635 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4636 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4637 [Define if your assembler supports offsetable %lo().])
4645 AC_MSG_CHECKING(assembler instructions)
4646 gcc_cv_as_instructions=
4647 if test x$gcc_cv_as != x; then
4648 set "filds fists" "filds mem; fists mem"
4651 echo "$2" > conftest.s
4652 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4653 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4654 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
4658 rm -f conftest.s conftest.o
4660 AC_MSG_RESULT($gcc_cv_as_instructions)
4664 # Figure out what language subdirectories are present.
4665 # Look if the user specified --enable-languages="..."; if not, use
4666 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4668 if test x"${enable_languages+set}" != xset; then
4669 if test x"${LANGUAGES+set}" = xset; then
4670 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4672 enable_languages=all
4675 if test x"${enable_languages}" = x; then
4676 AC_MSG_ERROR([--enable-languages needs at least one argument])
4680 for lang in ${srcdir}/*/config-lang.in ..
4684 # The odd quoting in the next line works around
4685 # an apparent bug in bash 1.12 on linux.
4687 ${srcdir}/[*]/config-lang.in) ;;
4689 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4690 if test "x$lang_alias" = x
4692 echo "$lang doesn't set \$language." 1>&2
4695 if test x"${enable_languages}" = xall; then
4698 case "${enable_languages}" in
4699 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4707 if test x"${add_this_lang}" = xyes; then
4709 ${srcdir}/ada/config-lang.in)
4710 if test x$gnat = xyes ; then
4711 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4715 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4724 # Make gthr-default.h if we have a thread file.
4726 if test $thread_file != single; then
4727 rm -f gthr-default.h
4728 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4729 gthread_flags=-DHAVE_GTHR_DEFAULT
4731 AC_SUBST(gthread_flags)
4733 # Find out what GC implementation we want, or may, use.
4735 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4736 with the compiler.],
4742 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4745 [if test $ac_cv_func_mmap_anywhere = yes \
4746 || test $ac_cv_func_valloc = yes; then
4752 echo "Using $GGC for garbage collection."
4754 # Build a new-abi (c++) system
4755 AC_ARG_ENABLE(new-gxx-abi,
4756 [ --enable-new-gxx-abi
4757 select the new abi for g++. You must select an ABI
4758 at configuration time, so that the correct runtime
4759 support is built. You cannot mix ABIs.],
4760 [AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4761 [Define if you want to always select the new-abi for g++.])
4762 GXX_ABI_FLAG='-fnew-abi'
4763 echo "Building a new-abi g++ compiler."
4765 AC_SUBST(GXX_ABI_FLAG)
4767 # Build a new-libstdc++ system (ie libstdc++-v3)
4768 AC_MSG_CHECKING([for libstdc++ to install])
4769 AC_ARG_ENABLE(libstdcxx-v3,
4770 [ --enable-libstdcxx-v3
4771 enable libstdc++-v3 for building and installation],
4772 [enable_libstdcxx_v3=yes], [enable_libstdcxx_v3=no])
4774 if test x$enable_libstdcxx_v3 = xyes; then
4781 AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4782 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
4784 dnl Very limited version of automake's enable-maintainer-mode
4786 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4787 dnl maintainer-mode is disabled by default
4788 AC_ARG_ENABLE(maintainer-mode,
4789 [ --enable-maintainer-mode enable make rules and dependencies not useful
4790 (and sometimes confusing) to the casual installer],
4791 maintainer_mode=$enableval,
4794 AC_MSG_RESULT($maintainer_mode)
4796 if test "$maintainer_mode" = "yes"; then
4803 # Make empty files to contain the specs and options for each language.
4804 # Then add #include lines to for a compiler that has specs and/or options.
4809 rm -f specs.h options.h gencheck.h
4810 touch specs.h options.h gencheck.h
4811 for subdir in . $subdirs
4813 if test -f $srcdir/$subdir/lang-specs.h; then
4814 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4815 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4817 if test -f $srcdir/$subdir/lang-options.h; then
4818 echo "#include \"$subdir/lang-options.h\"" >>options.h
4819 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4821 if test -f $srcdir/$subdir/$subdir-tree.def; then
4822 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4823 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4827 # These (without "all_") are set in each config-lang.in.
4828 # `language' must be a single word so is spelled singularly.
4834 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
4835 # List of language makefile fragments.
4840 # Add the language fragments.
4841 # Languages are added via two mechanisms. Some information must be
4842 # recorded in makefile variables, these are defined in config-lang.in.
4843 # We accumulate them and plug them into the main Makefile.
4844 # The other mechanism is a set of hooks for each of the main targets
4845 # like `clean', `install', etc.
4847 language_fragments="Make-lang"
4848 language_hooks="Make-hooks"
4851 for s in .. $subdirs
4863 . ${srcdir}/$s/config-lang.in
4864 if test "x$language" = x
4866 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4869 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4870 all_languages="$all_languages $language"
4871 if test "x$boot_language" = xyes
4873 all_boot_languages="$all_boot_languages $language"
4875 all_compilers="$all_compilers $compilers"
4876 all_stagestuff="$all_stagestuff $stagestuff"
4877 all_diff_excludes="$all_diff_excludes $diff_excludes"
4878 all_headers="$all_headers $headers"
4879 all_outputs="$all_outputs $outputs"
4880 if test x$outputs = x
4882 oldstyle_subdirs="$oldstyle_subdirs $s"
4884 all_lib2funcs="$all_lib2funcs $lib2funcs"
4888 # Since we can't use `::' targets, we link each language in
4889 # with a set of hooks, reached indirectly via lang.${target}.
4893 target_list="all.build all.cross start.encap rest.encap \
4895 install-normal install-common install-info install-man \
4897 mostlyclean clean distclean extraclean maintainer-clean \
4898 stage1 stage2 stage3 stage4"
4899 for t in $target_list
4902 for lang in .. $all_languages
4904 if test $lang != ".."; then
4908 echo "lang.$t: $x" >> Make-hooks
4911 # If we're not building in srcdir, create .gdbinit.
4913 if test ! -f Makefile.in; then
4914 echo "dir ." > .gdbinit
4915 echo "dir ${srcdir}" >> .gdbinit
4916 if test x$gdb_needs_out_file_path = xyes
4918 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4920 if test "x$subdirs" != x; then
4923 echo "dir ${srcdir}/$s" >> .gdbinit
4926 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4929 # Define variables host_canonical and build_canonical
4930 # because some Cygnus local changes in the Makefile depend on them.
4931 build_canonical=${build}
4932 host_canonical=${host}
4934 if test "${host}" != "${target}" ; then
4935 target_subdir=${target}/
4937 AC_SUBST(build_canonical)
4938 AC_SUBST(host_canonical)
4939 AC_SUBST(target_subdir)
4941 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4942 # absolute path for gcc_tooldir based on inserting the number of up-directory
4943 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4944 # $(libsubdir)/@(unlibsubdir) based path.
4945 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4946 # make and thus we'd get different behavior depending on where we built the
4948 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4949 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4951 changequote(<<, >>)dnl
4952 # An explanation of the sed strings:
4953 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4954 # -e 's|/$||' match a trailing forward slash and eliminates it
4955 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4956 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4958 # (*) Note this pattern overwrites the first character of the string
4959 # with a forward slash if one is not already present. This is not a
4960 # problem because the exact names of the sub-directories concerned is
4961 # unimportant, just the number of them matters.
4963 # The practical upshot of these patterns is like this:
4965 # prefix exec_prefix result
4966 # ------ ----------- ------
4968 # /foo/ /foo/bar ../
4969 # /foo /foo/bar/ ../
4970 # /foo/ /foo/bar/ ../
4971 # /foo /foo/bar/ugg ../../
4974 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
4975 changequote([, ])dnl
4977 AC_SUBST(gcc_tooldir)
4980 # Nothing to do for FLOAT_H, float_format already handled.
4984 # Process the language and host/target makefile fragments.
4985 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4987 # Substitute configuration variables
4989 AC_SUBST(all_boot_languages)
4990 AC_SUBST(all_compilers)
4991 AC_SUBST(all_diff_excludes)
4992 AC_SUBST(all_headers)
4993 AC_SUBST(all_lang_makefiles)
4994 AC_SUBST(all_languages)
4995 AC_SUBST(all_lib2funcs)
4996 AC_SUBST(all_stagestuff)
4997 AC_SUBST(build_exeext)
4998 AC_SUBST(build_install_headers_dir)
4999 AC_SUBST(build_xm_file_list)
5000 AC_SUBST(cc_set_by_configure)
5001 AC_SUBST(quoted_cc_set_by_configure)
5002 AC_SUBST(cpp_install_dir)
5003 AC_SUBST(dep_host_xmake_file)
5004 AC_SUBST(dep_tmake_file)
5005 AC_SUBST(extra_c_flags)
5006 AC_SUBST(extra_c_objs)
5007 AC_SUBST(extra_cpp_objs)
5008 AC_SUBST(extra_cxx_objs)
5009 AC_SUBST(extra_headers_list)
5010 AC_SUBST(extra_objs)
5011 AC_SUBST(extra_parts)
5012 AC_SUBST(extra_passes)
5013 AC_SUBST(extra_programs)
5014 AC_SUBST(float_h_file)
5015 AC_SUBST(gcc_gxx_include_dir)
5016 AC_SUBST(gcc_version)
5017 AC_SUBST(gcc_version_trigger)
5018 AC_SUBST(host_exeext)
5019 AC_SUBST(host_extra_gcc_objs)
5020 AC_SUBST(host_xm_file_list)
5022 AC_SUBST(lang_options_files)
5023 AC_SUBST(lang_specs_files)
5024 AC_SUBST(lang_tree_files)
5025 AC_SUBST(local_prefix)
5026 AC_SUBST(maybe_use_collect2)
5028 AC_SUBST(objc_boehm_gc)
5030 AC_SUBST(out_object_file)
5031 AC_SUBST(stage_prefix_set_by_configure)
5032 AC_SUBST(symbolic_link)
5033 AC_SUBST(thread_file)
5034 AC_SUBST(tm_file_list)
5035 AC_SUBST(will_use_collect2)
5038 AC_SUBST_FILE(target_overrides)
5039 AC_SUBST_FILE(host_overrides)
5040 AC_SUBST(cross_defines)
5041 AC_SUBST_FILE(cross_overrides)
5042 AC_SUBST_FILE(build_overrides)
5043 AC_SUBST_FILE(language_fragments)
5044 AC_SUBST_FILE(language_hooks)
5046 # Echo that links are built
5047 if test x$host = x$target
5055 if test x$host != x$build
5057 str3=" on a $build system"
5060 if test "x$str2" != x || test "x$str3" != x
5065 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5067 if test "x$str2" != x || test "x$str3" != x
5069 echo " ${str2}${str3}." 1>&2
5072 # Truncate the target if necessary
5073 if test x$host_truncate_target != x; then
5074 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5077 # Configure the subdirectories
5078 # AC_CONFIG_SUBDIRS($subdirs)
5080 # Create the Makefile
5081 # and configure language subdirectories
5082 AC_OUTPUT($all_outputs,
5084 . $srcdir/configure.lang
5085 case x$CONFIG_HEADERS in
5086 xauto-host.h:config.in)
5089 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5090 # bootstrapping and the installation procedure can still use
5091 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5092 # FLAGS_TO_PASS has been modified to solve the problem there.
5093 # This is virtually a duplicate of what happens in configure.lang; we do
5094 # an extra check to make sure this only happens if ln -s can be used.
5095 if test "$symbolic_link" = "ln -s"; then
5096 for d in .. ${subdirs} ; do
5097 if test $d != ..; then
5100 for t in stage1 stage2 stage3 stage4 include
5103 $symbolic_link ../$t $t 2>/dev/null
5109 # Avoid having to add intl to our include paths.
5110 if test -f intl/libintl.h; then
5111 echo creating libintl.h
5112 echo '#include "intl/libintl.h"' >libintl.h
5119 target_alias='${target_alias}'
5121 subdirs='${subdirs}'
5122 oldstyle_subdirs='${oldstyle_subdirs}'
5123 symbolic_link='${symbolic_link}'
5124 program_transform_set='${program_transform_set}'
5125 program_transform_name='${program_transform_name}'
5126 dep_host_xmake_file='${dep_host_xmake_file}'
5127 host_xmake_file='${host_xmake_file}'
5128 dep_tmake_file='${dep_tmake_file}'
5129 tmake_file='${tmake_file}'
5130 thread_file='${thread_file}'
5131 gcc_version='${gcc_version}'
5132 gcc_version_trigger='${gcc_version_trigger}'
5133 local_prefix='${local_prefix}'
5134 build_install_headers_dir='${build_install_headers_dir}'
5135 build_exeext='${build_exeext}'
5136 host_exeext='${host_exeext}'
5137 out_file='${out_file}'
5138 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5139 SET_MAKE='${SET_MAKE}'
5140 target_list='${target_list}'
5141 target_overrides='${target_overrides}'
5142 host_overrides='${host_overrides}'
5143 cross_defines='${cross_defines}'
5144 cross_overrides='${cross_overrides}'
5145 build_overrides='${build_overrides}'
5146 cpp_install_dir='${cpp_install_dir}'