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_rtl_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) ;;
210 if test x$ac_checking != x ; then
211 AC_DEFINE(ENABLE_CHECKING, 1,
212 [Define if you want more run-time sanity checks. This one gets a grab
213 bag of miscellaneous but relatively cheap checks.])
215 if test x$ac_tree_checking != x ; then
216 AC_DEFINE(ENABLE_TREE_CHECKING, 1,
217 [Define if you want all operations on trees (the basic data
218 structure of the front ends) to be checked for dynamic type safety
219 at runtime. This is moderately expensive.])
221 if test x$ac_rtl_checking != x ; then
222 AC_DEFINE(ENABLE_RTL_CHECKING, 1,
223 [Define if you want all operations on RTL (the basic data structure
224 of the optimizer and back end) to be checked for dynamic type safety
225 at runtime. This is quite expensive.])
227 if test x$ac_gc_checking != x ; then
228 AC_DEFINE(ENABLE_GC_CHECKING, 1,
229 [Define if you want the garbage collector to do object poisoning and
230 other memory allocation checks. This is quite expensive.])
232 if test x$ac_gc_always_collect != x ; then
233 AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT, 1,
234 [Define if you want the garbage collector to operate in maximally
235 paranoid mode, validating the entire heap and collecting garbage at
236 every opportunity. This is extremely expensive.])
241 [ --disable-cpp don't provide a user-visible C preprocessor.],
242 [], [enable_cpp=yes])
244 AC_ARG_WITH(cpp_install_dir,
245 [ --with-cpp-install-dir=DIR
246 install the user visible C preprocessor in DIR
247 (relative to PREFIX) as well as PREFIX/bin.],
248 [if test x$withval = xyes; then
249 AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
250 elif test x$withval != xno; then
251 cpp_install_dir=$withval
254 dnl Disable this for the moment; the library interface is changing.
255 dnl # Link cpplib into the compiler proper, for C/C++/ObjC.
256 dnl AC_ARG_ENABLE(c-cpplib,
257 dnl [ --enable-c-cpplib link cpplib directly into C and C++ compilers
258 dnl (EXPERIMENTAL) (implies --enable-cpplib).],
259 dnl if test x$enable_c_cpplib != xno; then
260 dnl extra_c_objs="${extra_c_objs} libcpp.a"
261 dnl extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
262 dnl extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
265 # Enable Multibyte Characters for C/C++
266 AC_ARG_ENABLE(c-mbchar,
267 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
268 if test x$enable_c_mbchar != xno; then
269 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
273 # Pass with no value to take the default
274 # Pass with a value to specify a thread package
275 AC_ARG_ENABLE(threads,
276 [ --enable-threads enable thread usage for target GCC.
277 --enable-threads=LIB use LIB thread package for target GCC.],
278 if test x$enable_threads = xno; then
283 enable_threads_flag=$enable_threads
284 # Check if a valid thread package
285 case x${enable_threads_flag} in
288 target_thread_file='single'
292 target_thread_file=''
294 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
295 xsolaris | xwin32 | xdce | xvxworks)
296 target_thread_file=$enable_threads_flag
299 echo "$enable_threads is an unknown thread package" 1>&2
304 AC_ARG_ENABLE(objc-gc,
305 [ --enable-objc-gc enable the use of Boehm's garbage collector with
306 the GNU Objective-C runtime.],
307 if test x$enable_objc_gc = xno; then
315 [ --with-dwarf2 force the default debug format to be DWARF2.],
316 dwarf2="$with_dwarf2",
319 # Determine the host, build, and target systems
322 # Find the native compiler
325 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
326 NO_MINUS_C_MINUS_O=yes
328 AC_SUBST(NO_MINUS_C_MINUS_O)
332 AC_MSG_CHECKING(whether ${CC-cc} accepts -Wno-long-long)
333 echo 'void f(){}' > conftest.c
334 if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
335 ac_cv_prog_cc_no_long_long=yes
337 ac_cv_prog_cc_no_long_long=no
340 echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
342 # If the native compiler is GCC, we can enable warnings even in stage1.
343 # That's useful for people building cross-compilers, or just running a
345 stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
346 stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
347 if test "x$GCC" = "xyes"; then
348 if test $ac_cv_prog_cc_no_long_long = yes; then
349 stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
352 stage1_warn_cflags=""
354 AC_SUBST(stage1_warn_cflags)
355 AC_SUBST(stage2_warn_cflags)
359 AC_MSG_CHECKING([whether a default assembler was specified])
360 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
361 if test x"$gas_flag" = x"no"; then
362 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
364 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
370 AC_MSG_CHECKING([whether a default linker was specified])
371 if test x"${DEFAULT_LINKER+set}" = x"set"; then
372 if test x"$gnu_ld_flag" = x"no"; then
373 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
375 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
383 # Find some useful tools
397 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
398 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
399 sys/resource.h sys/param.h sys/times.h sys/stat.h \
402 # Check for thread headers.
403 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
404 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
406 # See if GNAT has been installed
407 AC_CHECK_PROG(gnat, gnatbind, yes, no)
409 # Do we have a single-tree copy of texinfo?
410 if test -f $srcdir/../texinfo/Makefile.in; then
411 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
412 gcc_cv_prog_makeinfo_modern=yes
413 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
415 # See if makeinfo has been installed and is modern enough
416 # that we can use it.
417 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
418 [GNU texinfo.* \([0-9][0-9.]*\)],
419 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
422 if test $gcc_cv_prog_makeinfo_modern = no; then
424 *** Makeinfo is missing or too old.
425 *** Info documentation will not be built or installed.])
429 BUILD_INFO=info AC_SUBST(BUILD_INFO)
430 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
433 # See if the stage1 system preprocessor understands the ANSI C
434 # preprocessor stringification operator.
437 # Use <inttypes.h> only if it exists,
438 # doesn't clash with <sys/types.h>, and declares intmax_t.
439 AC_MSG_CHECKING(for inttypes.h)
440 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
442 [#include <sys/types.h>
443 #include <inttypes.h>],
445 [gcc_cv_header_inttypes_h=yes],
446 gcc_cv_header_inttypes_h=no)])
447 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
448 if test $gcc_cv_header_inttypes_h = yes; then
449 AC_DEFINE(HAVE_INTTYPES_H, 1,
450 [Define if you have a working <inttypes.h> header file.])
454 # Determine if enumerated bitfields are unsigned. ISO C says they can
455 # be either signed or unsigned.
457 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
458 [AC_TRY_RUN(#include <stdlib.h>
459 enum t { BLAH = 128 } ;
460 struct s_t { enum t member : 8; } s ;
464 if (s.member < 0) exit(1);
467 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
468 if test $gcc_cv_enum_bf_unsigned = yes; then
469 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
470 [Define if enumerated bitfields are treated as unsigned values.])
473 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
474 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
475 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
476 fputs_unlocked getrusage valloc)
478 AC_CHECK_TYPE(ssize_t, int)
480 gcc_AC_FUNC_VFPRINTF_DOPRNT
481 gcc_AC_FUNC_PRINTF_PTR
485 # Under some versions of uwin, vfork is notoriously buggy and the test
486 # can hang configure; on other versions, vfork exists just as a stub.
487 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
488 ac_cv_func_vfork_works=no
492 AC_FUNC_MMAP_ANYWHERE
495 # We will need to find libiberty.h and ansidecl.h
496 saved_CFLAGS="$CFLAGS"
497 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
498 gcc_AC_CHECK_DECLS(bcopy bzero bcmp \
499 index rindex getenv atol sbrk abort atof getcwd getwd \
500 strsignal putc_unlocked fputs_unlocked strstr environ \
501 malloc realloc calloc free basename getopt, , ,[
502 #include "gansidecl.h"
503 #include "system.h"])
505 gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
506 #include "gansidecl.h"
508 #ifdef HAVE_SYS_RESOURCE_H
509 #include <sys/resource.h>
513 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
514 CFLAGS="$saved_CFLAGS"
516 # mkdir takes a single argument on some systems.
517 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
527 build_install_headers_dir=install-headers-tar
532 host_truncate_target=
535 # Decode the host machine, then the target machine.
536 # For the host machine, we save the xm_file variable as host_xm_file;
537 # then we decode the target machine and forget everything else
538 # that came from the host machine.
539 for machine in $build $host $target; do
553 # Set this to force installation and use of collect2.
555 # Set this to override the default target model.
557 # Set this to control how the header file directory is installed.
558 install_headers_dir=install-headers-tar
559 # Set this to a non-empty list of args to pass to cpp if the target
560 # wants its .md file passed through cpp.
562 # Set this if directory names should be truncated to 14 characters.
564 # Set this if gdb needs a dir command with `dirname $out_file`
565 gdb_needs_out_file_path=
566 # Set this if the build machine requires executables to have a
569 # Set this to control which thread package will be used.
571 # Reinitialize these from the flag values every loop pass, since some
572 # configure entries modify them.
574 gnu_ld="$gnu_ld_flag"
575 enable_threads=$enable_threads_flag
577 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
578 # updated in each machine entry.
580 cpu_type=`echo $machine | sed 's/-.*$//'`
622 tm_file=${cpu_type}/${cpu_type}.h
623 xm_file=${cpu_type}/xm-${cpu_type}.h
624 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
626 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
628 # On a.out targets, we need to use collect2.
635 # Common parts for linux-gnu and openbsd systems
638 xm_defines="HAVE_ATEXIT POSIX BSTRING"
641 tm_file=${cpu_type}/openbsd.h
642 tmake_file="t-libc-ok t-openbsd"
643 # avoid surprises, always provide an xm-openbsd file
644 xm_file=${cpu_type}/xm-openbsd.h
645 # don't depend on processor x-fragments as well
647 if test x$enable_threads = xyes; then
649 tmake_file="${tmake_file} t-openbsd-thread"
655 # Support site-specific machine types.
657 cpu_type=`echo $machine | sed -e 's/-.*//'`
658 rest=`echo $machine | sed -e "s/$cpu_type-//"`
659 xm_file=${cpu_type}/xm-$rest.h
660 tm_file=${cpu_type}/$rest.h
661 if test -f $srcdir/config/${cpu_type}/x-$rest; \
662 then xmake_file=${cpu_type}/x-$rest; \
665 if test -f $srcdir/config/${cpu_type}/t-$rest; \
666 then tmake_file=${cpu_type}/t-$rest; \
672 a29k-*-bsd* | a29k-*-sym1*)
673 tm_file="${tm_file} a29k/unix.h"
675 xmake_file=a29k/x-unix
678 a29k-*-udi | a29k-*-coff)
679 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
680 tmake_file=a29k/t-a29kbare
683 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
684 tmake_file=a29k/t-vx29k
685 extra_parts="crtbegin.o crtend.o"
686 thread_file='vxworks'
688 a29k-*-*) # Default a29k environment.
692 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
694 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
695 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
697 # GAS + IEEE_CONFORMANT
698 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
700 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
701 xmake_file="x-interix alpha/t-pe"
702 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
703 if test x$enable_threads = xyes ; then
706 if test x$stabs = xyes ; then
707 tm_file="${tm_file} dbxcoff.h"
709 #prefix='$$INTERIX_ROOT'/usr/contrib
710 #local_prefix='$$INTERIX_ROOT'/usr/contrib
712 alpha*-*-linux-gnuecoff*)
713 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
714 target_cpu_default="MASK_GAS"
715 tmake_file="alpha/t-alpha alpha/t-ieee"
720 alpha*-*-linux-gnulibc1*)
721 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
722 target_cpu_default="MASK_GAS"
723 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
724 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
727 if test x$enable_threads = xyes; then
732 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
733 target_cpu_default="MASK_GAS"
734 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
735 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
738 if test x$enable_threads = xyes; then
743 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
744 target_cpu_default="MASK_GAS"
745 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
746 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
752 # default x-alpha is only appropriate for dec-osf.
753 target_cpu_default="MASK_GAS"
754 tmake_file="alpha/t-alpha alpha/t-ieee"
758 if test x$stabs = xyes
760 tm_file="${tm_file} dbx.h"
762 if test x$gas != xyes
764 extra_passes="mips-tfile mips-tdump"
767 tmake_file="alpha/t-alpha alpha/t-ieee"
770 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
775 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
778 tm_file="${tm_file} alpha/osf.h"
779 # Some versions of OSF4 (specifically X4.0-9 296.7) have
780 # a broken tar, so we use cpio instead.
781 install_headers_dir=install-headers-cpio
784 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
789 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
791 target_cpu_default=MASK_SUPPORT_ARCH
796 tm_file="${tm_file} dbx.h alpha/vxworks.h"
797 tmake_file="alpha/t-alpha alpha/t-ieee"
800 extra_passes="mips-tfile mips-tdump"
803 thread_file='vxworks'
806 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
807 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
808 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
809 xmake_file=winnt/x-winnt
810 extra_host_objs=oldnames.o
811 extra_gcc_objs="spawnv.o oldnames.o"
812 if test x$gnu_ld != xyes
814 extra_programs=ld.exe
816 if test x$enable_threads = xyes; then
822 xm_file="${xm_file} alpha/xm-vms.h"
823 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
826 extra_parts="crtinit.o crtfini.o"
828 arm-*-coff* | armel-*-coff*)
830 tmake_file=arm/t-arm-coff
834 tmake_file=arm/t-arm-coff
835 thread_file='vxworks'
838 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
840 tm_file=arm/riscix1-1.h
843 arm-*-riscix*) # Acorn RISC machine
846 tm_file=arm/rix-gas.h
850 xmake_file=arm/x-riscix
851 tmake_file=arm/t-riscix
854 arm-semi-aout | armel-semi-aout)
856 tmake_file=arm/t-semi
858 arm-semi-aof | armel-semi-aof)
859 tm_file=arm/semiaof.h
860 tmake_file=arm/t-semiaof
864 tmake_file="t-netbsd arm/t-netbsd"
867 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
870 tm_file=arm/linux-aout.h
871 tmake_file=arm/t-linux
874 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
875 xm_file=arm/xm-linux.h
877 tm_file="arm/linux-oldld.h arm/linux-elf.h"
880 tm_file="arm/linux-elf26.h $tm_file"
883 tmake_file="t-linux arm/t-linux"
884 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
886 case x${enable_threads} in
887 x | xyes | xpthreads | xposix)
892 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
893 xm_file=arm/xm-linux.h
895 tm_file="arm/linux-elf.h"
898 tm_file="arm/linux-elf26.h $tm_file"
901 tmake_file="t-linux arm/t-linux"
902 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
904 case x${enable_threads} in
905 x | xyes | xpthreads | xposix)
910 arm*-*-uclinux*) # ARM ucLinux
911 tm_file=arm/uclinux-elf.h
912 tmake_file=arm/t-arm-elf
916 tmake_file=arm/t-arm-aout
919 tm_file=arm/ecos-elf.h
920 tmake_file=arm/t-arm-elf
923 tm_file=arm/unknown-elf.h
924 tmake_file=arm/t-arm-elf
927 tm_file=arm/conix-elf.h
928 tmake_file=arm/t-arm-elf
931 tm_file=arm/unknown-elf-oabi.h
932 tmake_file=arm/t-arm-elf
941 c1-convex-*) # Convex C1
945 c2-convex-*) # Convex C2
958 target_cpu_default=16
965 clipper-intergraph-clix*)
966 tm_file="${tm_file} svr3.h clipper/clix.h"
967 xm_file=clipper/xm-clix.h
968 xmake_file=clipper/x-clix
969 extra_headers=va-clipper.h
970 extra_parts="crtbegin.o crtend.o"
971 install_headers_dir=install-headers-cpio
982 tm_file="fr30/fr30.h"
983 tmake_file=fr30/t-fr30
984 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
986 # This hasn't been upgraded to GCC 2.
987 # fx80-alliant-*) # Alliant FX/80
993 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
994 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
995 tmake_file="t-linux pa/t-linux"
996 extra_parts="crtbegin.o crtend.o"
999 if test x$enable_threads = xyes; then
1004 target_cpu_default="MASK_PA_11"
1005 tmake_file=pa/t-openbsd
1008 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1009 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
1010 xm_file=pa/xm-papro.h
1014 target_cpu_default="MASK_PA_11"
1015 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1019 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1020 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
1021 xm_file=pa/xm-papro.h
1025 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1029 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1030 target_cpu_default="MASK_PA_11"
1034 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1038 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
1039 xm_file=pa/xm-pahpux.h
1040 xmake_file=pa/x-pa-hpux
1041 if test x$gas = xyes
1043 tm_file="${tm_file} pa/gas.h"
1045 install_headers_dir=install-headers-cpio
1049 hppa1.0-*-hpux8.0[0-2]*)
1051 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1052 xm_file=pa/xm-pahpux.h
1053 xmake_file=pa/x-pa-hpux
1054 if test x$gas = xyes
1056 tm_file="${tm_file} pa/pa-gas.h"
1058 tm_file="pa/pa-oldas.h ${tm_file}"
1060 install_headers_dir=install-headers-cpio
1064 hppa1.1-*-hpux8.0[0-2]*)
1066 target_cpu_default="MASK_PA_11"
1067 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1068 xm_file=pa/xm-pahpux.h
1069 xmake_file=pa/x-pa-hpux
1070 if test x$gas = xyes
1072 tm_file="${tm_file} pa/pa-gas.h"
1074 tm_file="pa/pa-oldas.h ${tm_file}"
1076 install_headers_dir=install-headers-cpio
1080 target_cpu_default="MASK_PA_11"
1081 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1082 xm_file=pa/xm-pahpux.h
1083 xmake_file=pa/x-pa-hpux
1084 if test x$gas = xyes
1086 tm_file="${tm_file} pa/pa-gas.h"
1088 install_headers_dir=install-headers-cpio
1092 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1093 xm_file=pa/xm-pahpux.h
1094 xmake_file=pa/x-pa-hpux
1095 if test x$gas = xyes
1097 tm_file="${tm_file} pa/pa-gas.h"
1099 install_headers_dir=install-headers-cpio
1102 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1103 target_cpu_default="MASK_PA_11"
1104 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1106 xm_file=pa/xm-pahpux.h
1107 xmake_file=pa/x-pa-hpux
1109 if test x$gas = xyes
1111 tm_file="${tm_file} pa/pa-gas.h"
1113 if test x$enable_threads = x; then
1114 enable_threads=$have_pthread_h
1116 if test x$enable_threads = xyes; then
1118 tmake_file="${tmake_file} pa/t-dce-thr"
1120 install_headers_dir=install-headers-cpio
1124 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1126 xm_file=pa/xm-pahpux.h
1127 xmake_file=pa/x-pa-hpux
1129 if test x$gas = xyes
1131 tm_file="${tm_file} pa/pa-gas.h"
1133 if test x$enable_threads = x; then
1134 enable_threads=$have_pthread_h
1136 if test x$enable_threads = xyes; then
1138 tmake_file="${tmake_file} pa/t-dce-thr"
1140 install_headers_dir=install-headers-cpio
1144 target_cpu_default="MASK_PA_11"
1145 xm_file=pa/xm-pa64hpux.h
1146 xmake_file=pa/x-pa-hpux
1148 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"
1150 tmake_file=pa/t-pa64
1151 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1153 if [[ x$gas = xyes ]]
1155 tm_file="${tm_file} pa/pa-gas.h"
1157 # if [[ x$enable_threads = x ]]; then
1158 # enable_threads=$have_pthread_h
1160 # if [[ x$enable_threads = xyes ]]; then
1162 # tmake_file="${tmake_file} pa/t-dce-thr"
1164 install_headers_dir=install-headers-cpio
1167 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1168 target_cpu_default="MASK_PA_11"
1169 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1171 xm_file=pa/xm-pahpux.h
1172 xmake_file=pa/x-pa-hpux
1174 if test x$gas = xyes
1176 tm_file="${tm_file} pa/pa-gas.h"
1178 # if test x$enable_threads = x; then
1179 # enable_threads=$have_pthread_h
1181 # if test x$enable_threads = xyes; then
1183 # tmake_file="${tmake_file} pa/t-dce-thr"
1185 install_headers_dir=install-headers-cpio
1189 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1191 xm_file=pa/xm-pahpux.h
1192 xmake_file=pa/x-pa-hpux
1193 if test x$gas = xyes
1195 tm_file="${tm_file} pa/pa-gas.h"
1197 # if test x$enable_threads = x; then
1198 # enable_threads=$have_pthread_h
1200 # if test x$enable_threads = xyes; then
1202 # tmake_file="${tmake_file} pa/t-dce-thr"
1204 install_headers_dir=install-headers-cpio
1207 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1208 target_cpu_default="MASK_PA_11"
1209 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1210 xm_file=pa/xm-pahpux.h
1211 xmake_file=pa/x-pa-hpux
1212 if test x$gas = xyes
1214 tm_file="${tm_file} pa/pa-gas.h"
1216 install_headers_dir=install-headers-cpio
1220 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1221 xm_file=pa/xm-pahpux.h
1222 xmake_file=pa/x-pa-hpux
1223 if test x$gas = xyes
1225 tm_file="${tm_file} pa/pa-gas.h"
1227 install_headers_dir=install-headers-cpio
1230 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1231 target_cpu_default="MASK_PA_11"
1232 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1233 xm_file=pa/xm-pahpux.h
1234 xmake_file=pa/x-pa-hpux
1235 if test x$gas = xyes
1237 tm_file="${tm_file} pa/pa-gas.h"
1239 install_headers_dir=install-headers-cpio
1243 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1244 xm_file=pa/xm-pahpux.h
1245 xmake_file=pa/x-pa-hpux
1246 if test x$gas = xyes
1248 tm_file="${tm_file} pa/pa-gas.h"
1250 install_headers_dir=install-headers-cpio
1254 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1255 target_cpu_default="MASK_PA_11"
1259 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1260 xm_file=pa/xm-pampeix.h
1261 xmake_file=pa/x-pa-mpeix
1262 echo "You must use gas. Assuming it is already installed."
1263 install_headers_dir=install-headers-tar
1266 i370-*-opened*) # IBM 360/370/390 Architecture
1267 xm_file=i370/xm-oe.h
1269 xmake_file=i370/x-oe
1270 tmake_file=i370/t-oe
1273 xm_file=i370/xm-mvs.h
1275 tmake_file=i370/t-mvs
1278 xm_file="xm-linux.h i370/xm-linux.h"
1280 tm_file="i370/linux.h ${tm_file}"
1281 tmake_file="t-linux i370/t-linux"
1282 # broken_install=yes
1283 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1284 # extra_parts="crtbegin.o crtend.o"
1288 if test x$enable_threads = xyes; then
1295 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1296 tm_file=i386/i386elf.h
1297 tmake_file=i386/t-i386elf
1301 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1303 if test x$gas = xyes
1305 tm_file=i386/aix386.h
1306 extra_parts="crtbegin.o crtend.o"
1307 tmake_file=i386/t-crtstuff
1309 tm_file=i386/aix386ng.h
1312 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1314 xmake_file=i386/x-aix
1317 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1319 xm_file="xm-alloca.h ${xm_file}"
1320 xm_defines="USG POSIX SMALL_ARG_MAX"
1321 xmake_file=i386/x-ncr3000
1322 if test x$stabs = xyes -a x$gas = xyes
1324 tm_file=i386/sysv4gdb.h
1326 tm_file=i386/sysv4.h
1328 extra_parts="crtbegin.o crtend.o"
1329 tmake_file=i386/t-crtpic
1335 xm_file=i386/xm-next.h
1336 tmake_file=i386/t-next
1337 xmake_file=i386/x-next
1338 extra_objs=nextstep.o
1339 extra_parts="crtbegin.o crtend.o"
1340 if test x$enable_threads = xyes; then
1345 i[34567]86-sequent-bsd*) # 80386 from Sequent
1348 if test x$gas = xyes
1350 tm_file=i386/seq-gas.h
1352 tm_file=i386/sequent.h
1356 i[34567]86-sequent-ptx1*)
1358 xm_defines="USG SVR3"
1359 xmake_file=i386/x-sysv3
1360 tm_file=i386/seq-sysv3.h
1361 tmake_file=i386/t-crtstuff
1362 extra_parts="crtbegin.o crtend.o"
1363 install_headers_dir=install-headers-cpio
1366 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1368 xm_defines="USG SVR3"
1369 xmake_file=i386/x-sysv3
1370 tm_file=i386/seq2-sysv3.h
1371 tmake_file=i386/t-crtstuff
1372 extra_parts="crtbegin.o crtend.o"
1373 install_headers_dir=install-headers-cpio
1376 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1378 xm_file="xm-alloca.h ${xm_file}"
1379 xm_defines="USG POSIX SMALL_ARG_MAX"
1381 tm_file=i386/ptx4-i.h
1383 extra_parts="crtbegin.o crtend.o"
1384 install_headers_dir=install-headers-cpio
1386 i386-sun-sunos*) # Sun i386 roadrunner
1392 i[34567]86-wrs-vxworks*)
1394 tm_file=i386/vxi386.h
1395 tmake_file=i386/t-i386bare
1396 thread_file='vxworks'
1401 tm_file=i386/i386-aout.h
1402 tmake_file=i386/t-i386bare
1405 i[34567]86-*-beospe*)
1407 xm_file=i386/xm-beos.h
1408 xm_defines="USE_C_ALLOCA"
1409 tmake_file=i386/t-beos
1410 tm_file=i386/beos-pe.h
1411 xmake_file=i386/x-beos
1415 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1417 xm_file=i386/xm-beos.h
1418 tmake_file='i386/t-beos i386/t-crtpic'
1419 tm_file=i386/beos-elf.h
1420 xmake_file=i386/x-beos
1422 extra_parts='crtbegin.o crtend.o'
1425 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1427 tm_file=i386/bsd386.h
1428 # tmake_file=t-libc-ok
1433 tm_file=i386/386bsd.h
1434 # tmake_file=t-libc-ok
1435 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1439 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1441 tm_file="i386/freebsd.h i386/perform.h"
1442 tmake_file=t-freebsd
1445 i[34567]86-*-freebsd*)
1447 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1448 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1449 tmake_file=t-freebsd
1453 case x${enable_threads} in
1454 xyes | xpthreads | xposix)
1456 tmake_file="${tmake_file} t-freebsd-thread"
1461 i[34567]86-*-netbsd*)
1463 tm_file=i386/netbsd.h
1468 i[34567]86-*-openbsd*)
1470 # we need collect2 until our bug is fixed...
1476 tm_file=i386/i386-coff.h
1477 tmake_file=i386/t-i386bare
1480 i[34567]86-*-isc*) # 80386 running ISC system
1482 xm_file="${xm_file} i386/xm-isc.h"
1483 xm_defines="USG SVR3"
1486 i[34567]86-*-isc[34]*)
1488 xmake_file=i386/x-isc3
1491 xmake_file=i386/x-isc
1494 if test x$gas = xyes -a x$stabs = xyes
1496 tm_file=i386/iscdbx.h
1497 tmake_file=i386/t-svr3dbx
1498 extra_parts="svr3.ifile svr3z.ifile"
1500 tm_file=i386/isccoff.h
1501 tmake_file=i386/t-crtstuff
1502 extra_parts="crtbegin.o crtend.o"
1504 tmake_file="$tmake_file i386/t-i386bare"
1505 install_headers_dir=install-headers-cpio
1508 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1509 changequote([,])dnl # with a.out format using
1511 xmake_file=x-linux-aout
1512 tmake_file="t-linux-aout i386/t-crtstuff"
1513 tm_file=i386/linux-oldld.h
1518 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1519 changequote([,])dnl # with a.out format
1520 xmake_file=x-linux-aout
1521 tmake_file="t-linux-aout i386/t-crtstuff"
1522 tm_file=i386/linux-aout.h
1527 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1528 changequote([,])dnl # with ELF format using the
1529 # GNU/Linux C library 5
1531 tm_file=i386/linux.h
1532 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1533 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1536 if test x$enable_threads = xyes; then
1537 thread_file='single'
1541 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1542 changequote([,])dnl # with ELF format using glibc 2
1543 # aka GNU/Linux C library 6
1545 tm_file=i386/linux.h
1546 tmake_file="t-linux i386/t-crtstuff"
1547 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1550 if test x$enable_threads = xyes; then
1560 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1562 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1566 i[34567]86-pc-msdosdjgpp*)
1568 xm_file=i386/xm-djgpp.h
1569 tm_file=i386/djgpp.h
1570 tmake_file=i386/t-djgpp
1571 xmake_file=i386/x-djgpp
1576 case $host in *pc-msdosdjgpp*)
1582 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1585 tmake_file=t-libc-ok
1590 i[34567]86-*-lynxos*)
1592 if test x$gas = xyes
1596 tm_file=i386/lynx-ng.h
1598 xm_file=i386/xm-lynx.h
1599 tmake_file=i386/t-i386bare
1606 # tmake_file=t-libc-ok
1610 i[34567]86-*-osfrose*) # 386 using OSF/rose
1612 if test x$elf = xyes
1614 tm_file=i386/osfelf.h
1617 tm_file=i386/osfrose.h
1620 xm_file="i386/xm-osf.h ${xm_file}"
1621 xmake_file=i386/x-osfrose
1622 tmake_file=i386/t-osf
1623 extra_objs=halfpic.o
1626 i[34567]86-go32-rtems*)
1629 xm_file=i386/xm-go32.h
1630 tm_file=i386/go32-rtems.h
1631 tmake_file="i386/t-go32 t-rtems"
1634 i[34567]86-*-rtemscoff*)
1637 tm_file=i386/rtems.h
1638 tmake_file="i386/t-i386bare t-rtems"
1641 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1644 tm_file=i386/rtemself.h
1645 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1646 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1649 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1651 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1652 xm_defines="USG SVR3"
1653 xmake_file=i386/x-sco5
1654 install_headers_dir=install-headers-cpio
1656 if test x$gas = xyes
1658 tm_file="i386/sco5gas.h ${tm_file}"
1659 tmake_file=i386/t-sco5gas
1661 tmake_file=i386/t-sco5
1663 tmake_file="$tmake_file i386/t-i386bare"
1664 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1667 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1669 xm_file="${xm_file} i386/xm-sco.h"
1670 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1671 xmake_file=i386/x-sco4
1672 install_headers_dir=install-headers-cpio
1673 if test x$stabs = xyes
1675 tm_file=i386/sco4dbx.h
1676 tmake_file=i386/t-svr3dbx
1677 extra_parts="svr3.ifile svr3z.rfile"
1680 tmake_file=i386/t-crtstuff
1681 extra_parts="crtbegin.o crtend.o"
1683 tmake_file="$tmake_file i386/t-i386bare"
1684 # The default EAFS filesystem supports long file names.
1685 # Truncating the target makes $host != $target which
1686 # makes gcc think it is doing a cross-compile.
1687 # truncate_target=yes
1690 i[34567]86-*-sco*) # 80386 running SCO system
1692 xm_file=i386/xm-sco.h
1693 xmake_file=i386/x-sco
1694 install_headers_dir=install-headers-cpio
1695 if test x$stabs = xyes
1697 tm_file=i386/scodbx.h
1698 tmake_file=i386/t-svr3dbx
1699 extra_parts="svr3.ifile svr3z.rfile"
1702 extra_parts="crtbegin.o crtend.o"
1703 tmake_file=i386/t-crtstuff
1705 tmake_file="$tmake_file i386/t-i386bare"
1709 i[34567]86-*-solaris2*)
1711 xm_file="xm-alloca.h ${xm_file}"
1712 xm_defines="USG POSIX SMALL_ARG_MAX"
1714 if test x$gas = xyes; then
1715 # Only needed if gas does not support -s
1716 tm_file="i386/sol2gas.h ${tm_file}"
1718 tmake_file="i386/t-i386bare i386/t-sol2"
1719 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1721 if test x${enable_threads} = x; then
1722 enable_threads=$have_pthread_h
1723 if test x${enable_threads} = x; then
1724 enable_threads=$have_thread_h
1727 if test x${enable_threads} = xyes; then
1728 if test x${have_pthread_h} = xyes; then
1731 thread_file='solaris'
1736 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1738 xm_file="xm-alloca.h ${xm_file}"
1739 xm_defines="USG POSIX"
1740 tm_file=i386/sysv5.h
1741 if test x$stabs = xyes
1743 tm_file="${tm_file} dbx.h"
1745 tmake_file="i386/t-i386bare i386/t-crtpic"
1747 extra_parts="crtbegin.o crtend.o"
1748 if test x$enable_threads = xyes; then
1753 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1755 xm_file="xm-alloca.h ${xm_file}"
1756 xm_defines="USG POSIX SMALL_ARG_MAX"
1757 tm_file=i386/sysv4.h
1758 if test x$stabs = xyes
1760 tm_file="${tm_file} dbx.h"
1762 tmake_file="i386/t-i386bare i386/t-crtpic"
1764 extra_parts="crtbegin.o crtend.o"
1767 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1769 xm_file="xm-alloca.h ${xm_file}"
1770 xm_defines="USG POSIX"
1772 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1774 extra_parts="crtbegin.o crtend.o"
1775 install_headers_dir=install-headers-cpio
1778 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1781 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1782 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1783 if test x$stabs = xyes
1785 tm_file=i386/osf1elfgdb.h
1787 tm_file=i386/osf1elf.h
1789 tmake_file=i386/t-osf1elf
1790 xmake_file=i386/x-osf1elf
1791 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1794 i[34567]86-*-sysv*) # Intel 80386's running system V
1796 xm_defines="USG SVR3"
1797 xmake_file=i386/x-sysv3
1798 if test x$gas = xyes
1800 if test x$stabs = xyes
1802 tm_file=i386/svr3dbx.h
1803 tmake_file=i386/t-svr3dbx
1804 extra_parts="svr3.ifile svr3z.rfile"
1806 tm_file=i386/svr3gas.h
1807 extra_parts="crtbegin.o crtend.o"
1808 tmake_file=i386/t-crtstuff
1811 tm_file=i386/sysv3.h
1812 extra_parts="crtbegin.o crtend.o"
1813 tmake_file=i386/t-crtstuff
1815 tmake_file="$tmake_file i386/t-crtpic"
1817 i386-*-vsta) # Intel 80386's running VSTa kernel
1818 xm_file="${xm_file} i386/xm-vsta.h"
1820 tmake_file=i386/t-vsta
1821 xmake_file=i386/x-vsta
1826 xm_file="${xm_file} i386/xm-cygwin.h"
1827 tmake_file=i386/t-cygwin
1828 tm_file=i386/win32.h
1829 xmake_file=i386/x-cygwin
1831 if test x$enable_threads = xyes; then
1837 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1839 xm_file="${xm_file} i386/xm-cygwin.h"
1840 tmake_file=i386/t-cygwin
1841 tm_file=i386/cygwin.h
1842 xmake_file=i386/x-cygwin
1844 if test x$enable_threads = xyes; then
1850 i[34567]86-*-mingw32*)
1852 tm_file=i386/mingw32.h
1853 xm_file="${xm_file} i386/xm-mingw32.h"
1854 tmake_file="i386/t-cygwin i386/t-mingw32"
1856 xmake_file=i386/x-cygwin
1857 if test x$enable_threads = xyes; then
1864 *minwg32crt* | *mingw32*)
1865 tm_file="${tm_file} i386/crtdll.h"
1873 xm_file="${xm_file} i386/xm-uwin.h"
1874 xm_defines="USG NO_STAB_H"
1875 tmake_file="i386/t-cygwin i386/t-uwin"
1877 xmake_file=i386/x-cygwin
1878 if test x$enable_threads = xyes; then
1884 i[34567]86-*-interix*)
1886 tm_file="i386/i386-interix.h interix.h"
1887 xm_file="i386/xm-i386-interix.h xm-interix.h"
1889 tmake_file="i386/t-interix"
1890 extra_objs=interix.o
1891 xmake_file=x-interix
1892 if test x$enable_threads = xyes ; then
1895 if test x$stabs = xyes ; then
1896 tm_file="${tm_file} dbxcoff.h"
1900 i[34567]86-*-winnt3*)
1902 tm_file=i386/win-nt.h
1903 out_file=i386/i386.c
1904 xm_file="xm-winnt.h ${xm_file}"
1905 xmake_file=winnt/x-winnt
1906 tmake_file=i386/t-winnt
1907 extra_host_objs="winnt.o oldnames.o"
1908 extra_gcc_objs="spawnv.o oldnames.o"
1909 if test x$gnu_ld != xyes
1911 extra_programs=ld.exe
1913 if test x$enable_threads = xyes; then
1918 i[34567]86-dg-dgux*)
1920 xm_file="xm-alloca.h ${xm_file}"
1921 xm_defines="USG POSIX"
1922 out_file=i386/dgux.c
1924 tmake_file=i386/t-dgux
1925 xmake_file=i386/x-dgux
1926 install_headers_dir=install-headers-cpio
1928 i860-alliant-*) # Alliant FX/2800
1929 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1930 xm_file="${xm_file}"
1931 xmake_file=i860/x-fx2800
1932 tmake_file=i860/t-fx2800
1933 extra_parts="crtbegin.o crtend.o"
1936 tm_file="${tm_file} i860/bsd.h"
1937 if test x$gas = xyes
1939 tm_file="${tm_file} i860/bsd-gas.h"
1944 tm_file="${tm_file} i860/mach.h"
1945 tmake_file=t-libc-ok
1947 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1948 tm_file="${tm_file} svr3.h i860/paragon.h"
1949 xm_defines="USG SVR3"
1953 tm_file="${tm_file} svr3.h i860/sysv3.h"
1954 xm_defines="USG SVR3"
1955 xmake_file=i860/x-sysv3
1956 extra_parts="crtbegin.o crtend.o"
1959 tm_file="${tm_file} svr4.h i860/sysv4.h"
1960 xm_defines="USG SVR3"
1961 xmake_file=i860/x-sysv4
1963 extra_parts="crtbegin.o crtend.o"
1965 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1966 tm_file="${tm_file} i960/vx960.h"
1967 tmake_file=i960/t-vxworks960
1969 thread_file='vxworks'
1971 i960-wrs-vxworks5* | i960-wrs-vxworks)
1972 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1973 tmake_file=i960/t-vxworks960
1975 thread_file='vxworks'
1978 tm_file="${tm_file} i960/vx960.h"
1979 tmake_file=i960/t-vxworks960
1981 thread_file='vxworks'
1984 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1985 tmake_file=i960/t-960bare
1989 tmake_file="i960/t-960bare t-rtems"
1990 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1993 i960-*-*) # Default i960 environment.
1998 tmake_file="ia64/t-ia64"
1999 target_cpu_default="0"
2000 if test x$gas = xyes
2002 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
2004 if test x$gnu_ld = xyes
2006 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
2010 tm_file=ia64/linux.h
2011 tmake_file="t-linux ia64/t-ia64"
2012 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
2013 if test x$enable_threads = xyes; then
2018 extra_parts="crtinit.o crtfini.o"
2020 m68000-convergent-sysv*)
2022 xm_file="m68k/xm-3b1.h ${xm_file}"
2025 extra_headers=math-68881.h
2027 m68000-hp-bsd*) # HP 9000/200 running BSD
2028 tm_file=m68k/hp2bsd.h
2029 xmake_file=m68k/x-hp2bsd
2031 extra_headers=math-68881.h
2033 m68000-hp-hpux*) # HP 9000 series 300
2034 xm_file="xm-alloca.h ${xm_file}"
2036 if test x$gas = xyes
2038 xmake_file=m68k/x-hp320g
2039 tm_file=m68k/hp310g.h
2041 xmake_file=m68k/x-hp320
2042 tm_file=m68k/hp310.h
2044 install_headers_dir=install-headers-cpio
2046 extra_headers=math-68881.h
2051 extra_headers=math-68881.h
2054 tm_file=m68k/sun2o4.h
2056 extra_headers=math-68881.h
2059 xm_file="m68k/xm-3b1.h ${xm_file}"
2061 if test x$gas = xyes
2068 extra_headers=math-68881.h
2070 m68k-apple-aux*) # Apple Macintosh running A/UX
2071 xm_defines="USG AUX"
2072 tmake_file=m68k/t-aux
2073 install_headers_dir=install-headers-cpio
2074 extra_headers=math-68881.h
2075 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2077 if test "$gnu_ld" = yes
2079 tm_file="${tm_file} m68k/auxgld.h"
2081 tm_file="${tm_file} m68k/auxld.h"
2083 if test "$gas" = yes
2085 tm_file="${tm_file} m68k/auxgas.h"
2087 tm_file="${tm_file} m68k/auxas.h"
2089 tm_file="${tm_file} m68k/a-ux.h"
2093 tm_file=m68k/apollo68.h
2094 xmake_file=m68k/x-apollo68
2096 extra_headers=math-68881.h
2099 m68k-altos-sysv*) # Altos 3068
2100 if test x$gas = xyes
2102 tm_file=m68k/altos3068.h
2105 echo "The Altos is supported only with the GNU assembler" 1>&2
2108 extra_headers=math-68881.h
2110 m68k-bull-sysv*) # Bull DPX/2
2111 if test x$gas = xyes
2113 if test x$stabs = xyes
2115 tm_file=m68k/dpx2cdbx.h
2117 tm_file=m68k/dpx2g.h
2122 xm_file="xm-alloca.h ${xm_file}"
2124 xmake_file=m68k/x-dpx2
2126 extra_headers=math-68881.h
2128 m68k-atari-sysv4*) # Atari variant of V.4.
2129 tm_file=m68k/atari.h
2130 xm_file="xm-alloca.h ${xm_file}"
2131 xm_defines="USG FULL_PROTOTYPES"
2133 extra_parts="crtbegin.o crtend.o"
2134 extra_headers=math-68881.h
2137 m68k-motorola-sysv*)
2138 tm_file=m68k/mot3300.h
2139 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2140 if test x$gas = xyes
2142 xmake_file=m68k/x-mot3300-gas
2143 if test x$gnu_ld = xyes
2145 tmake_file=m68k/t-mot3300-gald
2147 tmake_file=m68k/t-mot3300-gas
2151 xmake_file=m68k/x-mot3300
2152 if test x$gnu_ld = xyes
2154 tmake_file=m68k/t-mot3300-gld
2156 tmake_file=m68k/t-mot3300
2160 gdb_needs_out_file_path=yes
2161 extra_parts="crt0.o mcrt0.o"
2162 extra_headers=math-68881.h
2165 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2166 tm_file=m68k/tower-as.h
2167 xm_defines="USG SVR3"
2168 xmake_file=m68k/x-tower
2169 extra_parts="crtbegin.o crtend.o"
2170 extra_headers=math-68881.h
2173 tm_file=m68k/plexus.h
2174 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2177 extra_headers=math-68881.h
2181 xm_file="xm-alloca.h ${xm_file}"
2183 extra_headers=math-68881.h
2186 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2187 xm_defines="USG unos"
2188 xmake_file=m68k/x-crds
2191 extra_headers=math-68881.h
2193 m68k-cbm-sysv4*) # Commodore variant of V.4.
2195 xm_file="xm-alloca.h ${xm_file}"
2196 xm_defines="USG FULL_PROTOTYPES"
2197 xmake_file=m68k/x-amix
2199 extra_parts="crtbegin.o crtend.o"
2200 extra_headers=math-68881.h
2204 tm_file=m68k/ccur-GAS.h
2205 xmake_file=m68k/x-ccur
2206 extra_headers=math-68881.h
2210 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2211 tm_file=m68k/hp3bsd44.h
2212 xmake_file=m68k/x-hp3bsd44
2214 extra_headers=math-68881.h
2217 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2218 tm_file=m68k/hp3bsd.h
2220 extra_headers=math-68881.h
2224 if test x$with_fp = xno
2226 tm_file=m68k/isi-nfp.h
2232 extra_headers=math-68881.h
2234 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2235 xm_file="xm-alloca.h ${xm_file}"
2237 if test x$gas = xyes
2239 xmake_file=m68k/x-hp320g
2240 tm_file=m68k/hp320g.h
2242 xmake_file=m68k/x-hp320
2243 tm_file=m68k/hpux7.h
2245 install_headers_dir=install-headers-cpio
2247 extra_headers=math-68881.h
2250 m68k-hp-hpux*) # HP 9000 series 300
2251 xm_file="xm-alloca.h ${xm_file}"
2253 if test x$gas = xyes
2255 xmake_file=m68k/x-hp320g
2256 tm_file=m68k/hp320g.h
2258 xmake_file=m68k/x-hp320
2259 tm_file=m68k/hp320.h
2261 install_headers_dir=install-headers-cpio
2263 extra_headers=math-68881.h
2267 tm_file=m68k/sun3mach.h
2269 extra_headers=math-68881.h
2273 if test x$gas = xyes
2275 tm_file=m68k/news3gas.h
2277 tm_file=m68k/news3.h
2280 extra_headers=math-68881.h
2283 m68k-sony-bsd* | m68k-sony-newsos*)
2284 if test x$gas = xyes
2286 tm_file=m68k/newsgas.h
2291 extra_headers=math-68881.h
2294 m68k-next-nextstep2*)
2295 tm_file=m68k/next21.h
2296 xm_file="m68k/xm-next.h ${xm_file}"
2297 tmake_file=m68k/t-next
2298 xmake_file=m68k/x-next
2299 extra_objs=nextstep.o
2300 extra_headers=math-68881.h
2305 m68k-next-nextstep[34]*)
2308 xm_file="m68k/xm-next.h ${xm_file}"
2309 tmake_file=m68k/t-next
2310 xmake_file=m68k/x-next
2311 extra_objs=nextstep.o
2312 extra_parts="crtbegin.o crtend.o"
2313 extra_headers=math-68881.h
2315 if test x$enable_threads = xyes; then
2320 if test x$with_fp = xno
2322 tm_file=m68k/sun3n3.h
2324 tm_file=m68k/sun3o3.h
2328 extra_headers=math-68881.h
2330 m68k-sun-sunos*) # For SunOS 4 (the default).
2331 if test x$with_fp = xno
2333 tm_file=m68k/sun3n.h
2339 extra_headers=math-68881.h
2342 tm_file=m68k/vxm68k.h
2343 tmake_file=m68k/t-vxworks68
2344 extra_headers=math-68881.h
2345 thread_file='vxworks'
2349 tmake_file=m68k/t-m68kbare
2350 tm_file="m68k/m68k-aout.h libgloss.h"
2351 extra_headers=math-68881.h
2355 tmake_file=m68k/t-m68kbare
2356 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2357 extra_headers=math-68881.h
2360 m68020-*-elf* | m68k-*-elf*)
2361 tm_file="m68k/m68020-elf.h"
2362 xm_file=m68k/xm-m68kv.h
2363 tmake_file=m68k/t-m68kelf
2364 header_files=math-68881.h
2367 if test x$gas = xyes
2371 tm_file=m68k/lynx-ng.h
2373 xm_file=m68k/xm-lynx.h
2375 tmake_file=m68k/t-lynx
2376 extra_headers=math-68881.h
2380 tm_file=m68k/netbsd.h
2387 # we need collect2 until our bug is fixed...
2390 m68k-*-sysv3*) # Motorola m68k's running system V.3
2391 xm_file="xm-alloca.h ${xm_file}"
2393 xmake_file=m68k/x-m68kv
2394 extra_parts="crtbegin.o crtend.o"
2395 extra_headers=math-68881.h
2398 m68k-*-sysv4*) # Motorola m68k's running system V.4
2399 tm_file=m68k/m68kv4.h
2400 xm_file="xm-alloca.h ${xm_file}"
2403 extra_parts="crtbegin.o crtend.o"
2404 extra_headers=math-68881.h
2407 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
2410 tm_file=m68k/linux-aout.h
2411 tmake_file="t-linux-aout m68k/t-linux-aout"
2412 extra_headers=math-68881.h
2416 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2417 # with ELF format using the
2418 # GNU/Linux C library 5
2420 tm_file=m68k/linux.h
2421 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2422 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2423 extra_headers=math-68881.h
2427 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2428 # with ELF format using glibc 2
2429 # aka the GNU/Linux C library 6.
2431 tm_file=m68k/linux.h
2432 tmake_file="t-linux m68k/t-linux"
2433 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2434 extra_headers=math-68881.h
2437 if test x$enable_threads = xyes; then
2442 tmake_file=m68k/t-m68kbare
2443 tm_file=m68k/m68k-psos.h
2444 extra_headers=math-68881.h
2448 tmake_file="m68k/t-m68kbare t-rtems"
2449 tm_file=m68k/rtems.h
2450 extra_headers=math-68881.h
2453 m68k-*-rtemself*|m68k-*-rtems*)
2454 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2455 tm_file=m68k/rtemself.h
2456 extra_headers=math-68881.h
2462 tm_file=m88k/dguxbcs.h
2463 tmake_file=m88k/t-dguxbcs
2467 tmake_file=m88k/t-dgux
2470 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2471 xmake_file=m88k/x-dgux
2472 if test x$gas = xyes
2474 tmake_file=m88k/t-dgux-gas
2477 m88k-dolphin-sysv3*)
2478 tm_file=m88k/dolph.h
2479 extra_parts="crtbegin.o crtend.o"
2480 xm_file="m88k/xm-sysv3.h ${xm_file}"
2481 xmake_file=m88k/x-dolph
2482 if test x$gas = xyes
2484 tmake_file=m88k/t-m88k-gas
2487 m88k-tektronix-sysv3)
2488 tm_file=m88k/tekXD88.h
2489 extra_parts="crtbegin.o crtend.o"
2490 xm_file="m88k/xm-sysv3.h ${xm_file}"
2491 xmake_file=m88k/x-tekXD88
2492 if test x$gas = xyes
2494 tmake_file=m88k/t-m88k-gas
2498 tm_file=m88k/m88k-aout.h
2501 tm_file=m88k/m88k-coff.h
2502 tmake_file=m88k/t-bug
2506 extra_parts="crtbegin.o crtend.o"
2507 if test x$gas = xyes
2509 tmake_file=m88k/t-luna-gas
2511 tmake_file=m88k/t-luna
2515 tmake_file="${tmake_file} m88k/t-luna-gas"
2518 tm_file=m88k/sysv3.h
2519 extra_parts="crtbegin.o crtend.o"
2520 xm_file="m88k/xm-sysv3.h ${xm_file}"
2521 xmake_file=m88k/x-sysv3
2522 if test x$gas = xyes
2524 tmake_file=m88k/t-m88k-gas
2528 tm_file=m88k/sysv4.h
2529 extra_parts="crtbegin.o crtend.o"
2530 xmake_file=m88k/x-sysv4
2531 tmake_file=m88k/t-sysv4
2534 tm_file=mcore/mcore-elf.h
2535 tmake_file=mcore/t-mcore
2538 tm_file=mcore/mcore-pe.h
2539 tmake_file=mcore/t-mcore-pe
2541 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2542 if test "x$gnu_ld" = xyes
2544 tm_file="mips/iris6.h mips/iris6gld.h"
2546 tm_file=mips/iris6.h
2548 tmake_file=mips/t-iris6
2549 xm_file=mips/xm-iris6.h
2550 xmake_file=mips/x-iris6
2551 # if test x$enable_threads = xyes; then
2552 # thread_file='irix'
2556 tm_file="mips/elf.h mips/vxworks.h"
2557 tmake_file=mips/t-ecoff
2560 extra_parts="crtbegin.o crtend.o"
2561 thread_file='vxworks'
2563 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2564 tm_file="mips/iris6.h mips/cross64.h"
2566 xm_file="mips/xm-iris5.h"
2567 xmake_file=mips/x-iris
2568 tmake_file=mips/t-cross64
2569 # See comment in mips/iris[56].h files.
2571 # if test x$enable_threads = xyes; then
2572 # thread_file='irix'
2576 if test x$gas = xyes
2578 if test x$stabs = xyes
2580 tm_file=mips/iris5gdb.h
2582 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2585 tm_file=mips/sni-svr4.h
2588 xmake_file=mips/x-sni-svr4
2589 tmake_file=mips/t-mips-gas
2590 if test x$gnu_ld != xyes
2595 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2596 if test x$gas = xyes
2598 tm_file="mips/iris5.h mips/iris5gas.h"
2599 if test x$stabs = xyes
2601 tm_file="${tm_file} dbx.h"
2604 tm_file=mips/iris5.h
2607 xm_file="mips/xm-iris5.h"
2608 xmake_file=mips/x-iris
2609 # mips-tfile doesn't work yet
2610 tmake_file=mips/t-mips-gas
2611 # See comment in mips/iris5.h file.
2613 # if test x$enable_threads = xyes; then
2614 # thread_file='irix'
2617 mips-sgi-irix4loser*) # Mostly like a MIPS.
2618 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2619 if test x$stabs = xyes; then
2620 tm_file="${tm_file} dbx.h"
2623 xmake_file=mips/x-iris
2624 if test x$gas = xyes
2626 tmake_file=mips/t-mips-gas
2628 extra_passes="mips-tfile mips-tdump"
2630 if test x$gnu_ld != xyes
2634 # if test x$enable_threads = xyes; then
2635 # thread_file='irix'
2638 mips-sgi-irix4*) # Mostly like a MIPS.
2639 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2640 if test x$stabs = xyes; then
2641 tm_file="${tm_file} dbx.h"
2644 xmake_file=mips/x-iris
2645 if test x$gas = xyes
2647 tmake_file=mips/t-mips-gas
2649 extra_passes="mips-tfile mips-tdump"
2651 if test x$gnu_ld != xyes
2655 # if test x$enable_threads = xyes; then
2656 # thread_file='irix'
2659 mips-sgi-*) # Mostly like a MIPS.
2660 tm_file="mips/iris3.h ${tm_file}"
2661 if test x$stabs = xyes; then
2662 tm_file="${tm_file} dbx.h"
2665 xmake_file=mips/x-iris3
2666 if test x$gas = xyes
2668 tmake_file=mips/t-mips-gas
2670 extra_passes="mips-tfile mips-tdump"
2672 if test x$gnu_ld != xyes
2677 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2678 tm_file="mips/osfrose.h ${tm_file}"
2679 xmake_file=mips/x-osfrose
2680 tmake_file=mips/t-osfrose
2681 extra_objs=halfpic.o
2684 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2685 tm_file=mips/dec-osf1.h
2686 if test x$stabs = xyes; then
2687 tm_file="${tm_file} dbx.h"
2689 xmake_file=mips/x-dec-osf1
2690 if test x$gas = xyes
2692 tmake_file=mips/t-mips-gas
2694 tmake_file=mips/t-ultrix
2695 extra_passes="mips-tfile mips-tdump"
2697 if test x$gnu_ld != xyes
2702 mips-dec-bsd*) # Decstation running 4.4 BSD
2703 tm_file=mips/dec-bsd.h
2704 if test x$gas = xyes
2706 tmake_file=mips/t-mips-gas
2708 tmake_file=mips/t-ultrix
2709 extra_passes="mips-tfile mips-tdump"
2711 if test x$gnu_ld != xyes
2716 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2717 tm_file=mips/netbsd.h
2718 # On NetBSD, the headers are already okay, except for math.h.
2721 mips*-*-linux*) # Linux MIPS, either endian.
2724 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2725 *) tm_file="mips/elf.h mips/linux.h" ;;
2727 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2730 if test x$enable_threads = xyes; then
2734 mips*el-*-openbsd*) # mips little endian
2735 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2737 mips*-*-openbsd*) # mips big endian
2738 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2739 tm_file="mips/openbsd-be.h ${tm_file}"
2741 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2742 tm_file="mips/news4.h ${tm_file}"
2743 if test x$stabs = xyes; then
2744 tm_file="${tm_file} dbx.h"
2746 if test x$gas = xyes
2748 tmake_file=mips/t-mips-gas
2750 extra_passes="mips-tfile mips-tdump"
2752 if test x$gnu_ld != xyes
2756 xmake_file=mips/x-sony
2758 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2759 # That is based on svr4.
2760 # t-svr4 is not right because this system doesn't use ELF.
2761 tm_file="mips/news5.h ${tm_file}"
2762 if test x$stabs = xyes; then
2763 tm_file="${tm_file} dbx.h"
2766 if test x$gas = xyes
2768 tmake_file=mips/t-mips-gas
2770 extra_passes="mips-tfile mips-tdump"
2772 if test x$gnu_ld != xyes
2777 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2778 tm_file="mips/svr4-5.h mips/svr4-t.h"
2779 if test x$stabs = xyes; then
2780 tm_file="${tm_file} dbx.h"
2783 xmake_file=mips/x-sysv
2784 if test x$gas = xyes
2786 tmake_file=mips/t-mips-gas
2787 extra_parts="crtbegin.o crtend.o"
2789 tmake_file=mips/t-mips
2790 extra_passes="mips-tfile mips-tdump"
2792 if test x$gnu_ld != xyes
2797 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2798 tm_file="mips/ultrix.h ${tm_file}"
2799 if test x$stabs = xyes; then
2800 tm_file="${tm_file} dbx.h"
2802 xmake_file=mips/x-ultrix
2803 if test x$gas = xyes
2805 tmake_file=mips/t-mips-gas
2807 tmake_file=mips/t-ultrix
2808 extra_passes="mips-tfile mips-tdump"
2810 if test x$gnu_ld != xyes
2816 mips-*-riscos[56789]bsd*)
2818 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2819 if test x$stabs = xyes; then
2820 tm_file="${tm_file} dbx.h"
2822 if test x$gas = xyes
2824 tmake_file=mips/t-bsd-gas
2826 tmake_file=mips/t-bsd
2827 extra_passes="mips-tfile mips-tdump"
2829 if test x$gnu_ld != xyes
2835 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2837 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2838 if test x$stabs = xyes; then
2839 tm_file="${tm_file} dbx.h"
2841 if test x$gas = xyes
2843 tmake_file=mips/t-bsd-gas
2845 tmake_file=mips/t-bsd
2846 extra_passes="mips-tfile mips-tdump"
2848 if test x$gnu_ld != xyes
2854 mips-*-riscos[56789]sysv4*)
2856 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2857 if test x$stabs = xyes; then
2858 tm_file="${tm_file} dbx.h"
2860 xmake_file=mips/x-sysv
2861 if test x$gas = xyes
2863 tmake_file=mips/t-svr4-gas
2865 tmake_file=mips/t-svr4
2866 extra_passes="mips-tfile mips-tdump"
2868 if test x$gnu_ld != xyes
2874 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2876 tm_file="mips/svr4-4.h ${tm_file}"
2877 if test x$stabs = xyes; then
2878 tm_file="${tm_file} dbx.h"
2881 xmake_file=mips/x-sysv
2882 if test x$gas = xyes
2884 tmake_file=mips/t-svr4-gas
2886 tmake_file=mips/t-svr4
2887 extra_passes="mips-tfile mips-tdump"
2889 if test x$gnu_ld != xyes
2895 mips-*-riscos[56789]sysv*)
2897 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2898 if test x$stabs = xyes; then
2899 tm_file="${tm_file} dbx.h"
2902 xmake_file=mips/x-sysv
2903 if test x$gas = xyes
2905 tmake_file=mips/t-svr3-gas
2907 tmake_file=mips/t-svr3
2908 extra_passes="mips-tfile mips-tdump"
2910 if test x$gnu_ld != xyes
2915 mips-*-sysv* | mips-*-riscos*sysv*)
2916 tm_file="mips/svr3-4.h ${tm_file}"
2917 if test x$stabs = xyes; then
2918 tm_file="${tm_file} dbx.h"
2921 xmake_file=mips/x-sysv
2922 if test x$gas = xyes
2924 tmake_file=mips/t-svr3-gas
2926 tmake_file=mips/t-svr3
2927 extra_passes="mips-tfile mips-tdump"
2929 if test x$gnu_ld != xyes
2935 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2937 tm_file=mips/mips-5.h
2938 if test x$stabs = xyes; then
2939 tm_file="${tm_file} dbx.h"
2941 if test x$gas = xyes
2943 tmake_file=mips/t-mips-gas
2945 extra_passes="mips-tfile mips-tdump"
2947 if test x$gnu_ld != xyes
2955 tm_file=mips/ecoffl.h
2956 if test x$stabs = xyes; then
2957 tm_file="${tm_file} dbx.h"
2959 tmake_file=mips/t-ecoff
2962 tm_file="gofast.h mips/ecoff.h"
2963 if test x$stabs = xyes; then
2964 tm_file="${tm_file} dbx.h"
2966 tmake_file=mips/t-ecoff
2969 tm_file="mips/elfl.h"
2970 tmake_file=mips/t-elf
2973 tm_file="mips/elf.h"
2974 tmake_file=mips/t-elf
2977 tm_file="mips/elfl64.h"
2978 tmake_file=mips/t-elf
2980 mips64orionel-*-elf*)
2981 tm_file="mips/elforion.h mips/elfl64.h"
2982 tmake_file=mips/t-elf
2985 tm_file="mips/elf64.h"
2986 tmake_file=mips/t-elf
2989 tm_file="mips/elforion.h mips/elf64.h"
2990 tmake_file=mips/t-elf
2992 mips64orion-*-rtems*)
2993 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2994 tmake_file="mips/t-elf t-rtems"
2997 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2998 tmake_file=mips/t-r3900
3001 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
3002 tmake_file=mips/t-r3900
3004 mips-*-*) # Default MIPS RISC-OS 4.0.
3005 if test x$stabs = xyes; then
3006 tm_file="${tm_file} dbx.h"
3008 if test x$gas = xyes
3010 tmake_file=mips/t-mips-gas
3012 extra_passes="mips-tfile mips-tdump"
3014 if test x$gnu_ld != xyes
3022 tm_file="mn10200/mn10200.h"
3023 if test x$stabs = xyes
3025 tm_file="${tm_file} dbx.h"
3031 tm_file="mn10300/mn10300.h"
3032 if test x$stabs = xyes
3034 tm_file="${tm_file} dbx.h"
3039 tm_file=ns32k/encore.h
3043 tm_file=ns32k/sequent.h
3047 tm_file=ns32k/tek6100.h
3051 tm_file=ns32k/tek6200.h
3054 # This has not been updated to GCC 2.
3057 # xmake_file=ns32k/x-genix
3058 # tm_file=ns32k/genix.h
3062 tm_file=ns32k/merlin.h
3066 tm_file=ns32k/pc532-mach.h
3070 tm_file=ns32k/pc532-min.h
3071 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3076 tm_file=ns32k/netbsd.h
3077 xm_file="ns32k/xm-netbsd.h ${xm_file}"
3078 # On NetBSD, the headers are already okay, except for math.h.
3083 tm_file="${tm_file} pdp11/2bsd.h"
3092 # This has not been updated to GCC 2.
3095 # xmake_file=pyr/x-pyr
3100 tm_file="svr4.h pj/linux.h ${tm_file}"
3105 tm_file="svr4.h pj/pjl.h ${tm_file}"
3112 xmake_file=romp/x-mach
3119 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3123 tm_file=rs6000/beos.h
3124 xm_file=rs6000/xm-beos.h
3125 tmake_file=rs6000/t-beos
3126 xmake_file=rs6000/x-beos
3129 tm_file=rs6000/sysv4.h
3130 xm_file="rs6000/xm-sysv4.h"
3131 xm_defines="USG POSIX"
3132 extra_headers=ppc-asm.h
3133 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3134 xmake_file=rs6000/x-sysv4
3137 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3138 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3139 extra_headers=ppc-asm.h
3142 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3143 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3144 extra_headers=ppc-asm.h
3147 tm_file="rs6000/sysv4.h"
3148 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3149 extra_headers=ppc-asm.h
3152 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3153 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3154 extra_headers=ppc-asm.h
3157 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3158 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3159 extra_headers=ppc-asm.h
3161 powerpc-*-linux-gnulibc1)
3162 tm_file="rs6000/sysv4.h rs6000/linux.h"
3163 xm_file=rs6000/xm-sysv4.h
3164 out_file=rs6000/rs6000.c
3165 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3167 extra_headers=ppc-asm.h
3168 if test x$enable_threads = xyes; then
3172 powerpc-*-linux-gnu*)
3173 tm_file="rs6000/sysv4.h rs6000/linux.h"
3174 xm_file="rs6000/xm-sysv4.h"
3175 xm_defines="USG ${xm_defines}"
3176 out_file=rs6000/rs6000.c
3177 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3179 extra_headers=ppc-asm.h
3180 if test x$enable_threads = xyes; then
3184 powerpc-wrs-vxworks*)
3186 xm_file="rs6000/xm-sysv4.h"
3187 xm_defines="USG POSIX"
3188 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3189 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3190 extra_headers=ppc-asm.h
3191 thread_file='vxworks'
3193 powerpcle-wrs-vxworks*)
3195 xm_file="rs6000/xm-sysv4.h"
3196 xm_defines="USG POSIX"
3197 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3198 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3199 extra_headers=ppc-asm.h
3200 thread_file='vxworks'
3203 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3204 xm_file="rs6000/xm-sysv4.h"
3205 xm_defines="USG POSIX"
3206 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3207 xmake_file=rs6000/x-sysv4
3208 extra_headers=ppc-asm.h
3211 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3212 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3213 extra_headers=ppc-asm.h
3215 powerpcle-*-eabisim*)
3216 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3217 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3218 extra_headers=ppc-asm.h
3221 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3222 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3223 extra_headers=ppc-asm.h
3225 powerpcle-*-solaris2*)
3226 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3227 xm_file="rs6000/xm-sysv4.h"
3228 xm_defines="USG POSIX"
3229 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3230 xmake_file=rs6000/x-sysv4
3231 extra_headers=ppc-asm.h
3234 rs6000-ibm-aix3.[01]*)
3236 tm_file=rs6000/aix31.h
3237 xmake_file=rs6000/x-aix31
3242 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3244 tm_file=rs6000/aix3newas.h
3245 if test x$host != x$target
3247 tmake_file=rs6000/t-xnewas
3249 tmake_file=rs6000/t-newas
3255 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3257 tm_file=rs6000/aix41.h
3258 if test x$host != x$target
3260 tmake_file=rs6000/t-xnewas
3262 tmake_file=rs6000/t-newas
3264 if test "$gnu_ld" = yes
3266 xmake_file=rs6000/x-aix41-gld
3268 tmake_file="rs6000/t-newas rs6000/t-aix41"
3270 xmake_file=rs6000/x-aix41
3275 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3277 tm_file=rs6000/aix43.h
3278 tmake_file=rs6000/t-aix43
3279 xmake_file=rs6000/x-aix41
3284 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3286 tm_file=rs6000/aix43.h
3287 tmake_file=rs6000/t-aix43
3288 xmake_file=rs6000/x-aix41
3301 tm_file=rs6000/mach.h
3302 xm_file="${xm_file} rs6000/xm-mach.h"
3303 xmake_file=rs6000/x-mach
3307 tm_file=rs6000/lynx.h
3308 xm_file=rs6000/xm-lynx.h
3309 tmake_file=rs6000/t-rs6000
3310 xmake_file=rs6000/x-lynx
3318 tmake_file="sh/t-sh t-rtems"
3319 tm_file=sh/rtemself.h
3323 tmake_file="sh/t-sh t-rtems"
3332 xm_file="xm-alloca.h ${xm_file}"
3335 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3336 tm_file=sparc/vxsparc.h
3337 tmake_file=sparc/t-vxsparc
3339 thread_file='vxworks'
3342 tmake_file=sparc/t-sparcbare
3343 tm_file="sparc/aout.h libgloss.h"
3346 tm_file=sparc/netbsd.h
3351 # we need collect2 until our bug is fixed...
3359 tmake_file=sparc/t-elf
3360 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3364 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
3365 xm_file="${xm_file} sparc/xm-linux.h"
3366 tm_file=sparc/linux-aout.h
3370 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
3371 xm_file="${xm_file} sparc/xm-linux.h"
3373 tm_file=sparc/linux.h
3374 tmake_file="t-linux t-linux-gnulibc1"
3375 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3379 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
3380 xm_file="${xm_file} sparc/xm-linux.h"
3382 tm_file=sparc/linux.h
3383 tmake_file="t-linux"
3384 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3386 if test x$enable_threads = xyes; then
3392 if test x$gas = xyes
3394 tm_file=sparc/lynx.h
3396 tm_file=sparc/lynx-ng.h
3398 xm_file=sparc/xm-lynx.h
3399 tmake_file=sparc/t-sunos41
3403 tmake_file="sparc/t-sparcbare t-rtems"
3404 tm_file=sparc/rtems.h
3406 sparc-*-rtems*|sparc-*-rtemself*)
3407 tm_file="sparc/rtemself.h"
3408 tmake_file="sparc/t-elf t-rtems"
3409 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3413 sparcv9-*-solaris2*)
3414 if test x$gnu_ld = xyes
3416 tm_file=sparc/sol2-64.h
3418 tm_file=sparc/sol2-sld-64.h
3420 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3421 xm_defines="USG POSIX"
3422 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3423 xmake_file=sparc/x-sysv4
3424 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3426 if test x${enable_threads} = x ; then
3427 enable_threads=$have_pthread_h
3428 if test x${enable_threads} = x ; then
3429 enable_threads=$have_thread_h
3432 if test x${enable_threads} = xyes ; then
3433 if test x${have_pthread_h} = xyes ; then
3436 thread_file='solaris'
3440 sparc-hal-solaris2*)
3441 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3442 xm_defines="USG POSIX"
3443 tm_file="sparc/sol2.h sparc/hal.h"
3444 tmake_file="sparc/t-halos sparc/t-sol2"
3445 xmake_file=sparc/x-sysv4
3446 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3457 thread_file='solaris'
3460 if test x$gnu_ld = xyes
3462 tm_file=sparc/sol2.h
3464 tm_file=sparc/sol2-sld.h
3466 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3467 xm_defines="USG POSIX"
3468 tmake_file=sparc/t-sol2
3469 xmake_file=sparc/x-sysv4
3470 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3473 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3476 if test x$gnu_ld = xyes
3478 tm_file=sparc/sol2-64.h
3480 tm_file=sparc/sol2-sld-64.h
3482 tmake_file="$tmake_file sparc/t-sol2-64"
3495 if test x${enable_threads} = x; then
3496 enable_threads=$have_pthread_h
3497 if test x${enable_threads} = x; then
3498 enable_threads=$have_thread_h
3501 if test x${enable_threads} = xyes; then
3502 if test x${have_pthread_h} = xyes; then
3505 thread_file='solaris'
3510 tm_file=sparc/sunos4.h
3511 tmake_file=sparc/t-sunos40
3515 tm_file=sparc/sunos4.h
3516 tmake_file=sparc/t-sunos41
3518 if test x$gas = xyes; then
3519 tm_file="${tm_file} sparc/sun4gas.h"
3523 tm_file=sparc/sun4o3.h
3527 tm_file=sparc/sysv4.h
3528 xm_file="sparc/xm-sysv4.h"
3529 xm_defines="USG POSIX"
3531 xmake_file=sparc/x-sysv4
3532 extra_parts="crtbegin.o crtend.o"
3535 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3536 xm_defines="USG POSIX"
3537 tm_file=sparc/vxsim.h
3538 tmake_file=sparc/t-vxsparc
3539 xmake_file=sparc/x-sysv4
3542 tm_file="sparc/splet.h libgloss.h"
3543 tmake_file=sparc/t-splet
3546 tm_file="sparc/litecoff.h libgloss.h"
3547 tmake_file=sparc/t-sparclite
3550 tm_file="sparc/lite.h aoutos.h libgloss.h"
3551 tmake_file=sparc/t-sparclite
3554 tm_file="sparc/liteelf.h"
3555 tmake_file=sparc/t-sparclite
3556 extra_parts="crtbegin.o crtend.o"
3559 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3560 tmake_file=sparc/t-sp86x
3563 tm_file="sparc/sp86x-elf.h"
3564 tmake_file=sparc/t-sp86x
3565 extra_parts="crtbegin.o crtend.o"
3568 tmake_file=sparc/t-sp64
3569 tm_file=sparc/sp64-aout.h
3572 tmake_file=sparc/t-sp64
3573 tm_file=sparc/sp64-elf.h
3574 extra_parts="crtbegin.o crtend.o"
3576 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3577 tmake_file="t-linux sparc/t-linux64"
3578 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3579 tm_file=sparc/linux64.h
3581 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3583 if test x$enable_threads = xyes; then
3588 # This hasn't been upgraded to GCC 2.
3589 # tahoe-harris-*) # Harris tahoe, using COFF.
3590 # tm_file=tahoe/harris.h
3592 # tahoe-*-bsd*) # tahoe running BSD
3597 *** The Thumb targets have been depreciated. The equivalent
3598 *** ARM based toolchain can now generated Thumb instructions
3599 *** when the -mthumb switch is given to the compiler.])
3601 # This hasn't been upgraded to GCC 2.
3608 tm_file="v850/rtems.h"
3609 xm_file="v850/xm-v850.h"
3610 tmake_file="v850/t-v850 t-rtems"
3611 if test x$stabs = xyes
3613 tm_file="${tm_file} dbx.h"
3618 target_cpu_default="TARGET_CPU_generic"
3620 tm_file="v850/v850.h"
3621 xm_file="v850/xm-v850.h"
3622 tmake_file=v850/t-v850
3623 if test x$stabs = xyes
3625 tm_file="${tm_file} dbx.h"
3629 vax-*-bsd*) # vaxen running BSD
3633 vax-*-sysv*) # vaxen running system V
3634 tm_file="${tm_file} vax/vaxv.h"
3639 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3645 tmake_file="${tmake_file} vax/t-openbsd"
3647 vax-*-ultrix*) # vaxen running ultrix
3648 tm_file="${tm_file} vax/ultrix.h"
3652 vax-*-vms*) # vaxen running VMS
3653 xm_file=vax/xm-vms.h
3657 vax-*-*) # vax default entry
3661 xm_file="${xm_file} xm-svr3"
3665 echo "Configuration $machine not supported" 1>&2
3672 ;; # Existing GNU/Linux systems do not use the GNU setup.
3674 # On the GNU system, the setup is just about the same on
3675 # each different CPU. The specific machines that GNU
3676 # supports are matched above and just set $cpu_type.
3677 xm_file="xm-gnu.h ${xm_file}"
3678 tm_file=${cpu_type}/gnu.h
3679 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3680 # GNU always uses ELF.
3682 # GNU tools are the only tools.
3685 xmake_file=x-linux # These details are the same as Linux.
3686 tmake_file=t-gnu # These are not.
3689 xmake_try_sysv=x-sysv
3690 install_headers_dir=install-headers-cpio
3693 install_headers_dir=install-headers-cpio
3697 # Distinguish i[34567]86
3698 # Also, do not run mips-tfile on MIPS if using gas.
3699 # Process --with-cpu= for PowerPC/rs6000
3700 target_cpu_default2=
3703 target_cpu_default2=1
3706 case $target_alias in
3708 target_cpu_default2=4
3711 target_cpu_default2=2
3715 i686-*-* | i786-*-*)
3716 target_cpu_default2=3
3723 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3726 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3729 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3732 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3735 target_cpu_default2="MASK_CPU_EV5"
3739 if test x$gas = xyes
3741 if test "$target_cpu_default2" = ""
3743 target_cpu_default2="MASK_GAS"
3745 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3750 case "x$with_cpu" in
3753 target_cpu_default2="TARGET_CPU_generic"
3756 # Distinguish cores, and major variants
3757 # arm7m doesn't exist, but D & I don't affect code
3759 xarm[23678] | xarm250 | xarm[67][01]0 \
3760 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3761 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3762 | xstrongarm | xstrongarm110 | xstrongarm1100)
3764 target_cpu_default2="TARGET_CPU_$with_cpu"
3768 echo "--with-cpu must be passed a value" 1>&2
3773 if test x$pass2done = xyes
3775 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3782 mips*-*-ecoff* | mips*-*-elf*)
3783 if test x$gas = xyes
3785 if test x$gnu_ld = xyes
3787 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3789 target_cpu_default2="MASK_GAS"
3794 if test x$gas = xyes
3796 target_cpu_default2="MASK_GAS"
3799 powerpc*-*-* | rs6000-*-*)
3800 case "x$with_cpu" in
3804 xcommon | xpower | xpower2 | xpowerpc | xrios \
3805 | xrios1 | xrios2 | xrsc | xrsc1 \
3806 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3807 | xec603e | x740 | x750 | x401 \
3808 | x403 | x505 | x801 | x821 | x823 | x860)
3809 target_cpu_default2="\"$with_cpu\""
3813 echo "--with-cpu must be passed a value" 1>&2
3818 if test x$pass2done = xyes
3820 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3827 case ".$with_cpu" in
3829 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3831 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3832 target_cpu_default2="TARGET_CPU_$with_cpu"
3835 if test x$pass2done = xyes
3837 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3845 if test "$target_cpu_default2" != ""
3847 if test "$target_cpu_default" != ""
3849 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3851 target_cpu_default=$target_cpu_default2
3855 # No need for collect2 if we have the GNU linker.
3856 # Actually, there is now; GNU ld doesn't handle the EH info or
3857 # collecting for shared libraries.
3864 # Save data on machine being used to compile GCC in build_xm_file.
3865 # Save data on host machine in vars host_xm_file and host_xmake_file.
3866 if test x$pass1done = x
3868 if test x"$xm_file" = x
3869 then build_xm_file=$cpu_type/xm-$cpu_type.h
3870 else build_xm_file=$xm_file
3872 build_xm_defines=$xm_defines
3873 build_install_headers_dir=$install_headers_dir
3874 build_exeext=$exeext
3877 if test x$pass2done = x
3879 if test x"$xm_file" = x
3880 then host_xm_file=$cpu_type/xm-$cpu_type.h
3881 else host_xm_file=$xm_file
3883 host_xm_defines=$xm_defines
3884 if test x"$xmake_file" = x
3885 then xmake_file=$cpu_type/x-$cpu_type
3887 host_xmake_file="$xmake_file"
3888 host_truncate_target=$truncate_target
3889 host_extra_gcc_objs=$extra_gcc_objs
3890 host_extra_objs=$extra_host_objs
3897 extra_objs="${host_extra_objs} ${extra_objs}"
3899 # Default the target-machine variables that were not explicitly set.
3900 if test x"$tm_file" = x
3901 then tm_file=$cpu_type/$cpu_type.h; fi
3903 if test x$extra_headers = x
3904 then extra_headers=; fi
3906 if test x"$xm_file" = x
3907 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3909 if test x$md_file = x
3910 then md_file=$cpu_type/$cpu_type.md; fi
3912 if test x$out_file = x
3913 then out_file=$cpu_type/$cpu_type.c; fi
3915 if test x"$tmake_file" = x
3916 then tmake_file=$cpu_type/t-$cpu_type
3919 if test x"$dwarf2" = xyes
3920 then tm_file="$tm_file tm-dwarf2.h"
3923 if test x$float_format = x
3924 then float_format=i64
3927 if test $float_format = none
3928 then float_h_file=Makefile.in
3929 else float_h_file=float-$float_format.h
3932 # Handle cpp installation.
3933 if test x$enable_cpp != xno
3935 tmake_file="$tmake_file t-install-cpp"
3938 # Say what files are being used for the output code and MD file.
3939 echo "Using \`$srcdir/config/$out_file' to output insns."
3940 echo "Using \`$srcdir/config/$md_file' as machine description file."
3943 for f in $tm_file; do
3946 if test $count = ax; then
3947 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3949 echo "Using the following target machine macro files:"
3950 for f in $tm_file; do
3951 echo " $srcdir/config/$f"
3956 for f in $host_xm_file; do
3959 if test $count = ax; then
3960 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3962 echo "Using the following host machine macro files:"
3963 for f in $host_xm_file; do
3964 echo " $srcdir/config/$f"
3968 if test "$host_xm_file" != "$build_xm_file"; then
3970 for f in $build_xm_file; do
3973 if test $count = ax; then
3974 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3976 echo "Using the following build machine macro files:"
3977 for f in $build_xm_file; do
3978 echo " $srcdir/config/$f"
3983 if test x$thread_file = x; then
3984 if test x$target_thread_file != x; then
3985 thread_file=$target_thread_file
3987 thread_file='single'
3991 # Set up the header files.
3992 # $links is the list of header files to create.
3993 # $vars is the list of shell variables with file names to include.
3994 # auto-host.h is the file containing items generated by autoconf and is
3995 # the first file included by config.h.
3997 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
3999 # If host=build, it is correct to have hconfig include auto-host.h
4000 # as well. If host!=build, we are in error and need to do more
4001 # work to find out the build config parameters.
4002 if test x$host = x$build
4004 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
4006 # We create a subdir, then run autoconf in the subdir.
4007 # To prevent recursion we set host and build for the new
4008 # invocation of configure to the build for this invocation
4015 /*) realsrcdir=${srcdir};;
4016 *) realsrcdir=../${srcdir};;
4018 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4019 --target=$target --host=$build --build=$build
4021 # We just finished tests for the build machine, so rename
4022 # the file auto-build.h in the gcc directory.
4023 mv auto-host.h ../auto-build.h
4026 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4029 xm_file="gansidecl.h ${xm_file}"
4030 tm_file="gansidecl.h ${tm_file}"
4032 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4033 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4034 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4037 if test -f config.status; then mv -f config.status config.bak; fi
4040 while test -n "$vars"
4042 set $vars; var=$1; shift; vars=$*
4043 set $links; link=$1; shift; links=$*
4044 set $defines; define=$1; shift; defines=$*
4047 # Make sure the file is created, even if it is empty.
4050 # Define TARGET_CPU_DEFAULT if the system wants one.
4051 # This substitutes for lots of *.h files.
4052 if test "$target_cpu_default" != "" -a $link = tm.h
4054 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4057 for file in `eval echo '$'$var`; do
4059 auto-host.h | auto-build.h )
4062 echo '#ifdef IN_GCC' >>$link
4065 echo "#include \"$file\"" >>$link
4067 auto-host.h | auto-build.h )
4070 echo '#endif' >>$link
4075 for def in `eval echo '$'$define`; do
4076 echo "#ifndef $def" >>$link
4077 echo "#define $def" >>$link
4078 echo "#endif" >>$link
4082 # Truncate the target if necessary
4083 if test x$host_truncate_target != x; then
4084 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4087 # Get the version trigger filename from the toplevel
4088 if test "${with_gcc_version_trigger+set}" = set; then
4089 gcc_version_trigger=$with_gcc_version_trigger
4091 gcc_version_trigger=${srcdir}/version.c
4094 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
4097 # Internationalization
4099 VERSION="$gcc_version"
4100 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4101 [Define to the name of the distribution.])
4102 AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4103 [Define to the version of the distribution.])
4109 # Enable NLS support by default
4111 [ --enable-nls use Native Language Support (default)],
4114 # if cross compiling, disable NLS support.
4115 # It's not worth the trouble, at least for now.
4117 if test "${build}" != "${host}" && test "x$enable_nls" == "xyes"; then
4118 AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
4123 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4125 # Windows32 Registry support for specifying GCC installation paths.
4126 AC_ARG_ENABLE(win32-registry,
4127 [ --disable-win32-registry
4128 Disable lookup of installation paths in the
4129 Registry on Windows hosts.
4130 --enable-win32-registry Enable registry lookup (default).
4131 --enable-win32-registry=KEY
4132 Use KEY instead of GCC version as the last portion
4133 of the registry key.],,)
4135 AC_MSG_CHECKING(whether windows registry support is requested)
4136 if test x$enable_win32_registry != xno; then
4137 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4138 [Define to 1 if installation paths should be looked up in Windows32
4139 Registry. Ignored on non windows32 hosts.])
4145 # Check if user specified a different registry key.
4146 case x${enable_win32_registry} in
4149 gcc_cv_win32_registry_key="$VERSION"
4152 # no registry lookup.
4153 gcc_cv_win32_registry_key=''
4156 # user-specified key.
4157 gcc_cv_win32_registry_key="$enable_win32_registry"
4161 if test x$enable_win32_registry != xno; then
4162 AC_MSG_CHECKING(registry key on windows hosts)
4163 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4164 [Define to be the last portion of registry key on windows hosts.])
4165 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4168 # Get an absolute path to the GCC top-level source directory
4174 # Conditionalize the makefile for this host machine.
4175 # Make-host contains the concatenation of all host makefile fragments
4176 # [there can be more than one]. This file is built by configure.frag.
4177 host_overrides=Make-host
4178 dep_host_xmake_file=
4179 for f in .. ${host_xmake_file}
4181 if test -f ${srcdir}/config/$f
4183 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4187 # Conditionalize the makefile for this target machine.
4188 # Make-target contains the concatenation of all host makefile fragments
4189 # [there can be more than one]. This file is built by configure.frag.
4190 target_overrides=Make-target
4192 for f in .. ${tmake_file}
4194 if test -f ${srcdir}/config/$f
4196 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4200 # If the host doesn't support symlinks, modify CC in
4201 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4202 # Otherwise, we can use "CC=$(CC)".
4204 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4206 cc_set_by_configure="\$(CC)"
4207 quoted_cc_set_by_configure="\$(CC)"
4208 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4211 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4213 symbolic_link="cp -p"
4217 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4218 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4219 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4223 out_object_file=`basename $out_file .c`.o
4226 for f in $tm_file; do
4229 tm_file_list="${tm_file_list} $f" ;;
4230 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4235 for f in $host_xm_file; do
4237 auto-host.h | gansidecl.h | hwint.h )
4238 host_xm_file_list="${host_xm_file_list} $f" ;;
4239 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4244 for f in $build_xm_file; do
4246 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4247 build_xm_file_list="${build_xm_file_list} $f" ;;
4248 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4252 # Define macro CROSS_COMPILE in compilation
4253 # if this is a cross-compiler.
4254 # Also use all.cross instead of all.internal
4255 # and add cross-make to Makefile.
4256 cross_overrides="/dev/null"
4257 if test x$host != x$target
4259 cross_defines="CROSS=-DCROSS_COMPILE"
4260 cross_overrides="${topdir}/cross-make"
4263 # If this is a cross-compiler that does not
4264 # have its own set of headers then define
4267 # If this is using newlib, then define inhibit_libc in
4268 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4269 # libgcc.a, but that's OK because newlib should have its own version of
4272 if [test x$host != x$target] && [test x$with_headers = x]; then
4273 inhibit_libc=-Dinhibit_libc
4275 if [test x$with_newlib = xyes]; then
4276 inhibit_libc=-Dinhibit_libc
4279 AC_SUBST(inhibit_libc)
4281 # When building gcc with a cross-compiler, we need to fix a few things.
4282 # This must come after cross-make as we want all.build to override
4284 build_overrides="/dev/null"
4285 if test x$build != x$host
4287 build_overrides="${topdir}/build-make"
4290 # Expand extra_headers to include complete path.
4291 # This substitutes for lots of t-* files.
4293 if test "x$extra_headers" = x
4296 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4297 for file in $extra_headers;
4299 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4303 if test x$use_collect2 = xno; then
4307 # Add a definition of USE_COLLECT2 if system wants one.
4308 # Also tell toplev.c what to do.
4309 # This substitutes for lots of t-* files.
4310 if test x$use_collect2 = x
4315 will_use_collect2="collect2"
4316 maybe_use_collect2="-DUSE_COLLECT2"
4320 # Set MD_DEPS if the real md file is in md.pre-cpp.
4321 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4322 # for line oriented comments, so we must always use a GNU cpp. If
4323 # building gcc with a cross compiler, use the cross compiler just
4324 # built. Otherwise, we can use the cpp just built.
4326 if test "x$md_cppflags" = x
4328 md_file_sub=$srcdir/config/$md_file
4333 # If we have gas in the build tree, make a link to it.
4334 if test -f ../gas/Makefile; then
4335 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4338 # If we have nm in the build tree, make a link to it.
4339 if test -f ../binutils/Makefile; then
4340 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4343 # If we have ld in the build tree, make a link to it.
4344 if test -f ../ld/Makefile; then
4345 # if test x$use_collect2 = x; then
4346 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4348 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4352 # Figure out what assembler alignment features are present.
4353 AC_MSG_CHECKING(assembler alignment features)
4355 gcc_cv_as_alignment_features=
4356 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4357 if test -x "$DEFAULT_ASSEMBLER"; then
4358 gcc_cv_as="$DEFAULT_ASSEMBLER"
4359 elif test -x "$AS"; then
4361 elif test -x as$host_exeext; then
4362 # Build using assembler in the current directory.
4363 gcc_cv_as=./as$host_exeext
4364 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4365 # Single tree build which includes gas.
4366 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4369 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4371 if test x$gcc_cv_gas_version != x; then
4376 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4377 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4379 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4380 # Gas version 2.6 and later support for .balign and .p2align.
4381 # bytes to skip when using .p2align.
4382 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
4383 gcc_cv_as_alignment_features=".balign and .p2align"
4384 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4386 # Gas version 2.8 and later support specifying the maximum
4387 # bytes to skip when using .p2align.
4388 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
4389 gcc_cv_as_alignment_features=".p2align including maximum skip"
4390 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4393 elif test x$host = x$target; then
4395 # Search the same directories that the installed compiler will
4396 # search. Else we may find the wrong assembler and lose. If we
4397 # do not find a suitable assembler binary, then try the user's
4400 # Also note we have to check MD_EXEC_PREFIX before checking the
4401 # user's path. Unfortunately, there is no good way to get at the
4402 # value of MD_EXEC_PREFIX here. So we do a brute force search
4403 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4404 # to be fixed as part of the make/configure rewrite too.
4406 if test "x$exec_prefix" = xNONE; then
4407 if test "x$prefix" = xNONE; then
4408 test_prefix=/usr/local
4413 test_prefix=$exec_prefix
4416 # If the loop below does not find an assembler, then use whatever
4417 # one we can find in the users's path.
4421 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4422 $test_prefix/lib/gcc-lib/$target \
4423 /usr/lib/gcc/$target/$gcc_version \
4424 /usr/lib/gcc/$target \
4425 $test_prefix/$target/bin/$target/$gcc_version \
4426 $test_prefix/$target/bin \
4431 /bsd43/usr/lib/cmplrs/cc \
4432 /usr/cross64/usr/bin \
4433 /usr/lib/cmplrs/cc \
4434 /sysv/usr/lib/cmplrs/cc \
4435 /svr4/usr/lib/cmplrs/cc \
4438 for dir in $test_dirs; do
4439 if test -f $dir/as$host_exeext; then
4440 gcc_cv_as=$dir/as$host_exeext
4445 if test x$gcc_cv_as != x; then
4446 # Check if we have .balign and .p2align
4447 echo ".balign 4" > conftest.s
4448 echo ".p2align 2" >> conftest.s
4449 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4450 gcc_cv_as_alignment_features=".balign and .p2align"
4451 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4453 rm -f conftest.s conftest.o
4454 # Check if specifying the maximum bytes to skip when
4455 # using .p2align is supported.
4456 echo ".p2align 4,,7" > conftest.s
4457 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4458 gcc_cv_as_alignment_features=".p2align including maximum skip"
4459 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4461 rm -f conftest.s conftest.o
4463 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4465 AC_MSG_CHECKING(assembler subsection support)
4466 gcc_cv_as_subsections=
4467 if test x$gcc_cv_as != x; then
4468 # Check if we have .subsection
4469 echo ".subsection 1" > conftest.s
4470 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4471 gcc_cv_as_subsections=".subsection"
4472 if test -x nm$host_exeext; then
4473 gcc_cv_nm=./nm$host_exeext
4474 elif test x$host = x$target; then
4476 gcc_cv_nm=nm$host_exeext
4478 if test x$gcc_cv_nm != x; then
4479 cat > conftest.s <<EOF
4480 conftest_label1: .word 0
4482 conftest_label2: .word 0
4485 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4486 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4487 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4488 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4491 gcc_cv_as_subsections="working .subsection -1"
4492 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4493 [Define if your assembler supports .subsection and .subsection -1 starts
4494 emitting at the beginning of your section.])
4499 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4501 AC_MSG_RESULT($gcc_cv_as_subsections)
4503 AC_MSG_CHECKING(assembler weak support)
4505 if test x$gcc_cv_as != x; then
4506 # Check if we have .weak
4507 echo " .weak foobar" > conftest.s
4508 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4509 AC_DEFINE(HAVE_GAS_WEAK, 1,
4510 [Define if your assembler supports .weak.])
4511 gcc_cv_as_weak="yes"
4513 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4515 AC_MSG_RESULT($gcc_cv_as_weak)
4517 AC_MSG_CHECKING(assembler hidden support)
4519 if test x$gcc_cv_as != x; then
4520 # Check if we have .hidden
4521 echo " .hidden foobar" > conftest.s
4522 echo "foobar:" >> conftest.s
4523 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4524 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4525 [Define if your assembler supports .hidden.])
4526 gcc_cv_as_hidden="yes"
4528 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4530 AC_MSG_RESULT($gcc_cv_as_hidden)
4534 AC_CACHE_CHECK([assembler .register pseudo-op support],
4535 gcc_cv_as_register_pseudo_op, [
4536 gcc_cv_as_register_pseudo_op=unknown
4537 if test x$gcc_cv_as != x; then
4538 # Check if we have .register
4539 echo ".register %g2, #scratch" > conftest.s
4540 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4541 gcc_cv_as_register_pseudo_op=yes
4543 gcc_cv_as_register_pseudo_op=no
4545 rm -f conftest.s conftest.o
4548 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4549 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4550 [Define if your assembler supports .register.])
4553 AC_CACHE_CHECK([assembler supports -relax],
4554 gcc_cv_as_relax_opt, [
4555 gcc_cv_as_relax_opt=unknown
4556 if test x$gcc_cv_as != x; then
4557 # Check if gas supports -relax
4558 echo ".text" > conftest.s
4559 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
4560 gcc_cv_as_relax_opt=yes
4562 gcc_cv_as_relax_opt=no
4564 rm -f conftest.s conftest.o
4567 if test "x$gcc_cv_as_relax_opt" = xyes; then
4568 AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
4569 [Define if your assembler supports -relax option.])
4574 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4575 gcc_cv_as_flags64, [
4576 if test -n "$gcc_cv_as"; then
4577 echo ".xword foo" > conftest.s
4578 gcc_cv_as_flags64=no
4579 for flag in "-xarch=v9" "-64 -Av9"; do
4580 if $gcc_cv_as $flag -o conftest.o conftest.s \
4581 > /dev/null 2>&1; then
4582 gcc_cv_as_flags64=$flag
4586 rm -f conftest.s conftest.o
4588 if test "$gas" = yes; then
4589 gcc_cv_as_flags64="-64 -Av9"
4591 gcc_cv_as_flags64="-xarch=v9"
4595 if test "x$gcc_cv_as_flags64" = xno; then
4597 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4598 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4601 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4602 [Define if the assembler supports 64bit sparc.])
4605 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4609 if test "x$gcc_cv_as_flags64" != xno; then
4610 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4611 gcc_cv_as_offsetable_lo10, [
4612 gcc_cv_as_offsetable_lo10=unknown
4613 if test "x$gcc_cv_as" != x; then
4614 # Check if assembler has offsetable %lo()
4615 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4616 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4617 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4619 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4620 > /dev/null 2>&1; then
4621 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4622 gcc_cv_as_offsetable_lo10=no
4624 gcc_cv_as_offsetable_lo10=yes
4627 gcc_cv_as_offsetable_lo10=no
4629 rm -f conftest.s conftest.o conftest1.s conftest1.o
4632 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4633 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4634 [Define if your assembler supports offsetable %lo().])
4642 AC_MSG_CHECKING(assembler instructions)
4643 gcc_cv_as_instructions=
4644 if test x$gcc_cv_as != x; then
4645 set "filds fists" "filds mem; fists mem"
4648 echo "$2" > conftest.s
4649 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4650 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4651 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
4655 rm -f conftest.s conftest.o
4657 AC_MSG_RESULT($gcc_cv_as_instructions)
4661 # Figure out what language subdirectories are present.
4662 # Look if the user specified --enable-languages="..."; if not, use
4663 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4665 if test x"${enable_languages+set}" != xset; then
4666 if test x"${LANGUAGES+set}" = xset; then
4667 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4669 enable_languages=all
4672 if test x"${enable_languages}" = x; then
4673 AC_MSG_ERROR([--enable-languages needs at least one argument])
4677 for lang in ${srcdir}/*/config-lang.in ..
4681 # The odd quoting in the next line works around
4682 # an apparent bug in bash 1.12 on linux.
4684 ${srcdir}/[*]/config-lang.in) ;;
4686 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4687 if test "x$lang_alias" = x
4689 echo "$lang doesn't set \$language." 1>&2
4692 if test x"${enable_languages}" = xall; then
4695 case "${enable_languages}" in
4696 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4704 if test x"${add_this_lang}" = xyes; then
4706 ${srcdir}/ada/config-lang.in)
4707 if test x$gnat = xyes ; then
4708 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4712 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4721 # Make gthr-default.h if we have a thread file.
4723 if test $thread_file != single; then
4724 rm -f gthr-default.h
4725 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4726 gthread_flags=-DHAVE_GTHR_DEFAULT
4728 AC_SUBST(gthread_flags)
4730 # Find out what GC implementation we want, or may, use.
4732 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4733 with the compiler.],
4739 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4742 [if test $ac_cv_func_mmap_anywhere = yes \
4743 || test $ac_cv_func_valloc = yes; then
4749 echo "Using $GGC for garbage collection."
4751 # Build a new-abi (c++) system
4752 AC_ARG_ENABLE(new-gxx-abi,
4753 [ --enable-new-gxx-abi
4754 select the new abi for g++. You must select an ABI
4755 at configuration time, so that the correct runtime
4756 support is built. You cannot mix ABIs.],
4757 [AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4758 [Define if you want to always select the new-abi for g++.])
4759 GXX_ABI_FLAG='-fnew-abi'
4760 echo "Building a new-abi g++ compiler."
4762 AC_SUBST(GXX_ABI_FLAG)
4764 # Build a new-libstdc++ system (ie libstdc++-v3)
4765 AC_MSG_CHECKING([for libstdc++ to install])
4766 AC_ARG_ENABLE(libstdcxx-v3,
4767 [ --enable-libstdcxx-v3
4768 enable libstdc++-v3 for building and installation],
4769 [enable_libstdcxx_v3=yes], [enable_libstdcxx_v3=no])
4771 if test x$enable_libstdcxx_v3 = xyes; then
4778 AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4779 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
4781 dnl Very limited version of automake's enable-maintainer-mode
4783 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4784 dnl maintainer-mode is disabled by default
4785 AC_ARG_ENABLE(maintainer-mode,
4786 [ --enable-maintainer-mode enable make rules and dependencies not useful
4787 (and sometimes confusing) to the casual installer],
4788 maintainer_mode=$enableval,
4791 AC_MSG_RESULT($maintainer_mode)
4793 if test "$maintainer_mode" = "yes"; then
4800 # Make empty files to contain the specs and options for each language.
4801 # Then add #include lines to for a compiler that has specs and/or options.
4806 rm -f specs.h options.h gencheck.h
4807 touch specs.h options.h gencheck.h
4808 for subdir in . $subdirs
4810 if test -f $srcdir/$subdir/lang-specs.h; then
4811 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4812 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4814 if test -f $srcdir/$subdir/lang-options.h; then
4815 echo "#include \"$subdir/lang-options.h\"" >>options.h
4816 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4818 if test -f $srcdir/$subdir/$subdir-tree.def; then
4819 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4820 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4824 # These (without "all_") are set in each config-lang.in.
4825 # `language' must be a single word so is spelled singularly.
4831 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
4832 # List of language makefile fragments.
4837 # Add the language fragments.
4838 # Languages are added via two mechanisms. Some information must be
4839 # recorded in makefile variables, these are defined in config-lang.in.
4840 # We accumulate them and plug them into the main Makefile.
4841 # The other mechanism is a set of hooks for each of the main targets
4842 # like `clean', `install', etc.
4844 language_fragments="Make-lang"
4845 language_hooks="Make-hooks"
4848 for s in .. $subdirs
4860 . ${srcdir}/$s/config-lang.in
4861 if test "x$language" = x
4863 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4866 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4867 all_languages="$all_languages $language"
4868 if test "x$boot_language" = xyes
4870 all_boot_languages="$all_boot_languages $language"
4872 all_compilers="$all_compilers $compilers"
4873 all_stagestuff="$all_stagestuff $stagestuff"
4874 all_diff_excludes="$all_diff_excludes $diff_excludes"
4875 all_headers="$all_headers $headers"
4876 all_outputs="$all_outputs $outputs"
4877 if test x$outputs = x
4879 oldstyle_subdirs="$oldstyle_subdirs $s"
4881 all_lib2funcs="$all_lib2funcs $lib2funcs"
4885 # Since we can't use `::' targets, we link each language in
4886 # with a set of hooks, reached indirectly via lang.${target}.
4890 target_list="all.build all.cross start.encap rest.encap \
4892 install-normal install-common install-info install-man \
4894 mostlyclean clean distclean extraclean maintainer-clean \
4895 stage1 stage2 stage3 stage4"
4896 for t in $target_list
4899 for lang in .. $all_languages
4901 if test $lang != ".."; then
4905 echo "lang.$t: $x" >> Make-hooks
4908 # If we're not building in srcdir, create .gdbinit.
4910 if test ! -f Makefile.in; then
4911 echo "dir ." > .gdbinit
4912 echo "dir ${srcdir}" >> .gdbinit
4913 if test x$gdb_needs_out_file_path = xyes
4915 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4917 if test "x$subdirs" != x; then
4920 echo "dir ${srcdir}/$s" >> .gdbinit
4923 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4926 # Define variables host_canonical and build_canonical
4927 # because some Cygnus local changes in the Makefile depend on them.
4928 build_canonical=${build}
4929 host_canonical=${host}
4931 if test "${host}" != "${target}" ; then
4932 target_subdir=${target}/
4934 AC_SUBST(build_canonical)
4935 AC_SUBST(host_canonical)
4936 AC_SUBST(target_subdir)
4938 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4939 # absolute path for gcc_tooldir based on inserting the number of up-directory
4940 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4941 # $(libsubdir)/@(unlibsubdir) based path.
4942 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4943 # make and thus we'd get different behavior depending on where we built the
4945 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4946 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4948 changequote(<<, >>)dnl
4949 # An explanation of the sed strings:
4950 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4951 # -e 's|/$||' match a trailing forward slash and eliminates it
4952 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4953 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4955 # (*) Note this pattern overwrites the first character of the string
4956 # with a forward slash if one is not already present. This is not a
4957 # problem because the exact names of the sub-directories concerned is
4958 # unimportant, just the number of them matters.
4960 # The practical upshot of these patterns is like this:
4962 # prefix exec_prefix result
4963 # ------ ----------- ------
4965 # /foo/ /foo/bar ../
4966 # /foo /foo/bar/ ../
4967 # /foo/ /foo/bar/ ../
4968 # /foo /foo/bar/ugg ../../
4971 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
4972 changequote([, ])dnl
4974 AC_SUBST(gcc_tooldir)
4977 # Nothing to do for FLOAT_H, float_format already handled.
4981 # Process the language and host/target makefile fragments.
4982 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4984 # Substitute configuration variables
4986 AC_SUBST(all_boot_languages)
4987 AC_SUBST(all_compilers)
4988 AC_SUBST(all_diff_excludes)
4989 AC_SUBST(all_headers)
4990 AC_SUBST(all_lang_makefiles)
4991 AC_SUBST(all_languages)
4992 AC_SUBST(all_lib2funcs)
4993 AC_SUBST(all_stagestuff)
4994 AC_SUBST(build_exeext)
4995 AC_SUBST(build_install_headers_dir)
4996 AC_SUBST(build_xm_file_list)
4997 AC_SUBST(cc_set_by_configure)
4998 AC_SUBST(quoted_cc_set_by_configure)
4999 AC_SUBST(cpp_install_dir)
5000 AC_SUBST(dep_host_xmake_file)
5001 AC_SUBST(dep_tmake_file)
5002 AC_SUBST(extra_c_flags)
5003 AC_SUBST(extra_c_objs)
5004 AC_SUBST(extra_cpp_objs)
5005 AC_SUBST(extra_cxx_objs)
5006 AC_SUBST(extra_headers_list)
5007 AC_SUBST(extra_objs)
5008 AC_SUBST(extra_parts)
5009 AC_SUBST(extra_passes)
5010 AC_SUBST(extra_programs)
5011 AC_SUBST(float_h_file)
5012 AC_SUBST(gcc_gxx_include_dir)
5013 AC_SUBST(gcc_version)
5014 AC_SUBST(gcc_version_trigger)
5015 AC_SUBST(host_exeext)
5016 AC_SUBST(host_extra_gcc_objs)
5017 AC_SUBST(host_xm_file_list)
5019 AC_SUBST(lang_options_files)
5020 AC_SUBST(lang_specs_files)
5021 AC_SUBST(lang_tree_files)
5022 AC_SUBST(local_prefix)
5023 AC_SUBST(maybe_use_collect2)
5025 AC_SUBST(objc_boehm_gc)
5027 AC_SUBST(out_object_file)
5028 AC_SUBST(stage_prefix_set_by_configure)
5029 AC_SUBST(symbolic_link)
5030 AC_SUBST(thread_file)
5031 AC_SUBST(tm_file_list)
5032 AC_SUBST(will_use_collect2)
5035 AC_SUBST_FILE(target_overrides)
5036 AC_SUBST_FILE(host_overrides)
5037 AC_SUBST(cross_defines)
5038 AC_SUBST_FILE(cross_overrides)
5039 AC_SUBST_FILE(build_overrides)
5040 AC_SUBST_FILE(language_fragments)
5041 AC_SUBST_FILE(language_hooks)
5043 # Echo that links are built
5044 if test x$host = x$target
5052 if test x$host != x$build
5054 str3=" on a $build system"
5057 if test "x$str2" != x || test "x$str3" != x
5062 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5064 if test "x$str2" != x || test "x$str3" != x
5066 echo " ${str2}${str3}." 1>&2
5069 # Truncate the target if necessary
5070 if test x$host_truncate_target != x; then
5071 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5074 # Configure the subdirectories
5075 # AC_CONFIG_SUBDIRS($subdirs)
5077 # Create the Makefile
5078 # and configure language subdirectories
5079 AC_OUTPUT($all_outputs,
5081 . $srcdir/configure.lang
5082 case x$CONFIG_HEADERS in
5083 xauto-host.h:config.in)
5086 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5087 # bootstrapping and the installation procedure can still use
5088 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5089 # FLAGS_TO_PASS has been modified to solve the problem there.
5090 # This is virtually a duplicate of what happens in configure.lang; we do
5091 # an extra check to make sure this only happens if ln -s can be used.
5092 if test "$symbolic_link" = "ln -s"; then
5093 for d in .. ${subdirs} ; do
5094 if test $d != ..; then
5097 for t in stage1 stage2 stage3 stage4 include
5100 $symbolic_link ../$t $t 2>/dev/null
5106 # Avoid having to add intl to our include paths.
5107 if test -f intl/libintl.h; then
5108 echo creating libintl.h
5109 echo '#include "intl/libintl.h"' >libintl.h
5116 target_alias='${target_alias}'
5118 subdirs='${subdirs}'
5119 oldstyle_subdirs='${oldstyle_subdirs}'
5120 symbolic_link='${symbolic_link}'
5121 program_transform_set='${program_transform_set}'
5122 program_transform_name='${program_transform_name}'
5123 dep_host_xmake_file='${dep_host_xmake_file}'
5124 host_xmake_file='${host_xmake_file}'
5125 dep_tmake_file='${dep_tmake_file}'
5126 tmake_file='${tmake_file}'
5127 thread_file='${thread_file}'
5128 gcc_version='${gcc_version}'
5129 gcc_version_trigger='${gcc_version_trigger}'
5130 local_prefix='${local_prefix}'
5131 build_install_headers_dir='${build_install_headers_dir}'
5132 build_exeext='${build_exeext}'
5133 host_exeext='${host_exeext}'
5134 out_file='${out_file}'
5135 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5136 SET_MAKE='${SET_MAKE}'
5137 target_list='${target_list}'
5138 target_overrides='${target_overrides}'
5139 host_overrides='${host_overrides}'
5140 cross_defines='${cross_defines}'
5141 cross_overrides='${cross_overrides}'
5142 build_overrides='${build_overrides}'
5143 cpp_install_dir='${cpp_install_dir}'