1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998 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
25 AC_CONFIG_HEADER(auto-host.h:config.in)
32 # Check for additional parameters
36 [ --with-gnu-ld arrange to work with GNU ld.],
37 gnu_ld_flag="$with_gnu_ld",
42 [ --with-gnu-as arrange to work with GNU as.],
43 gas_flag="$with_gnu_as",
48 [ --with-stabs arrange to use stabs instead of host debug format.],
54 [ --with-elf arrange to use ELF instead of host debug format.],
58 # Specify the local prefix
59 AC_ARG_WITH(local-prefix,
60 [ --with-local-prefix=DIR specifies directory to put local include.],
61 local_prefix=$with_local_prefix,
62 local_prefix=/usr/local)
64 # Default local prefix if it is empty
65 if [[ x$local_prefix = x ]]; then
66 local_prefix=/usr/local
69 # Specify the g++ header file directory
70 AC_ARG_WITH(gxx-include-dir,
71 [ --with-gxx-include-dir=DIR
72 specifies directory to put g++ header files.],
73 gxx_include_dir=$with_gxx_include_dir,
74 gxx_include_dir='${prefix}/include/g++')
76 # Default g++ header file directory if it is empty
77 if [[ x$gxx_include_dir = x ]]; then
78 gxx_include_dir='${prefix}/include/g++'
81 # Enable use of cpplib for C.
82 AC_ARG_ENABLE(c-cpplib,
83 [ --enable-c-cpplib Use cpplib for C.],
84 if [[[ x$enable_c_cpplib != xno ]]]; then
85 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
86 extra_c_flags=-DUSE_CPPLIB=1
89 # Enable Haifa scheduler.
91 [ --enable-haifa Use the experimental scheduler.
92 --disable-haifa Don't use the experimental scheduler for the
93 targets which normally enable it.])
96 # This is a work in progress...
97 AC_ARG_WITH(fast-fixincludes,
98 [ --with-fast-fixincludes Use a faster fixinclude program. Experimental],
99 fast_fixinc="$with_fast_fixincludes",
103 # Pass with no value to take the default
104 # Pass with a value to specify a thread package
105 AC_ARG_ENABLE(threads,
106 [ --enable-threads enable thread usage for target GCC.
107 --enable-threads=LIB use LIB thread package for target GCC.],
108 if [[[ x$enable_threads = xno ]]]; then
113 # Check if a valid thread package
114 case x${enable_threads} in
117 target_thread_file='single'
121 target_thread_file=''
123 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
124 xsolaris | xwin32 | xdce | xvxworks)
125 target_thread_file=$enable_threads
128 echo "$enable_threads is an unknown thread package" 1>&2
133 # Determine the host, build, and target systems
136 # Find the native compiler
140 # Find some useful tools
151 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h varargs.h sys/varargs.h wait.h sys/wait.h)
153 # Check for thread headers.
154 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
155 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
157 # See if the system preprocessor understands the ANSI C preprocessor
158 # stringification operator.
159 AC_MSG_CHECKING(whether cpp understands the stringify operator)
160 AC_CACHE_VAL(gcc_cv_c_have_stringify,
163 char *test = S(foo);],
164 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
165 AC_MSG_RESULT($gcc_cv_c_have_stringify)
166 if test $gcc_cv_c_have_stringify = yes; then
167 AC_DEFINE(HAVE_CPP_STRINGIFY)
170 # Use <inttypes.h> only if it exists,
171 # doesn't clash with <sys/types.h>, and declares intmax_t.
172 AC_MSG_CHECKING(for inttypes.h)
173 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
175 [#include <sys/types.h>
176 #include <inttypes.h>],
178 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
179 gcc_cv_header_inttypes_h=yes],
180 gcc_cv_header_inttypes_h=no)])
181 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
183 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen vprintf bcopy bzero bcmp \
184 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq sysconf)
188 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
189 index rindex getenv atol sbrk abort)
201 build_install_headers_dir=install-headers-tar
206 host_truncate_target=
209 # Decode the host machine, then the target machine.
210 # For the host machine, we save the xm_file variable as host_xm_file;
211 # then we decode the target machine and forget everything else
212 # that came from the host machine.
213 for machine in $build $host $target; do
227 # Set this to force installation and use of collect2.
229 # Set this to override the default target model.
231 # Set this to control which fixincludes program to use.
232 if [[ x$fast_fixinc != xyes ]] ; then
233 fixincludes=fixincludes
234 else fixincludes=fixinc.sh ; fi
235 # Set this to control how the header file directory is installed.
236 install_headers_dir=install-headers-tar
237 # Set this to a non-empty list of args to pass to cpp if the target
238 # wants its .md file passed through cpp.
240 # Set this if directory names should be truncated to 14 characters.
242 # Set this if gdb needs a dir command with `dirname $out_file`
243 gdb_needs_out_file_path=
244 # Set this if the build machine requires executables to have a
247 # Set this to control which thread package will be used.
249 # Reinitialize these from the flag values every loop pass, since some
250 # configure entries modify them.
252 gnu_ld="$gnu_ld_flag"
254 # Set default cpu_type, tm_file and xm_file so it can be updated in
255 # each machine entry.
256 cpu_type=`echo $machine | sed 's/-.*$//'`
290 tm_file=${cpu_type}/${cpu_type}.h
291 xm_file=${cpu_type}/xm-${cpu_type}.h
293 # Set the default macros to define for GNU/Linux systems.
296 xm_defines="HAVE_ATEXIT POSIX NO_STAB_H BSTRING"
301 # Support site-specific machine types.
303 cpu_type=`echo $machine | sed -e 's/-.*//'`
304 rest=`echo $machine | sed -e "s/$cpu_type-//"`
305 xm_file=${cpu_type}/xm-$rest.h
306 tm_file=${cpu_type}/$rest.h
307 if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \
308 then xmake_file=${cpu_type}/x-$rest; \
311 if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \
312 then tmake_file=${cpu_type}/t-$rest; \
318 a29k-*-bsd* | a29k-*-sym1*)
319 tm_file="${tm_file} a29k/unix.h"
321 xmake_file=a29k/x-unix
324 a29k-*-udi | a29k-*-coff)
325 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
326 tmake_file=a29k/t-a29kbare
329 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
330 tmake_file=a29k/t-vx29k
331 extra_parts="crtbegin.o crtend.o"
332 thread_file='vxworks'
334 a29k-*-*) # Default a29k environment.
337 alpha*-*-linux-gnuecoff*)
338 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
340 target_cpu_default="MASK_GAS"
345 alpha*-*-linux-gnulibc1*)
346 tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
348 target_cpu_default="MASK_GAS"
349 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
350 extra_parts="crtbegin.o crtend.o"
353 if [[ x$enable_threads = xyes ]]; then
358 tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
360 target_cpu_default="MASK_GAS"
361 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
362 extra_parts="crtbegin.o crtend.o"
364 fixincludes=Makefile.in
366 if [[ x$enable_threads = xyes ]]; then
371 if [[ x$stabs = xyes ]]
373 tm_file="${tm_file} dbx.h"
375 if [[ x$gas != xyes ]]
377 extra_passes="mips-tfile mips-tdump"
382 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
385 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
388 tm_file="${tm_file} alpha/osf.h"
389 # Some versions of OSF4 (specifically X4.0-9 296.7) have
390 # a broken tar, so we use cpio instead.
391 install_headers_dir=install-headers-cpio
395 *-*-osf4.0[[b-z]] | *-*-osf4.[[1-9]]*)
396 target_cpu_default=MASK_SUPPORT_ARCH
401 tm_file="${tm_file} alpha/win-nt.h"
402 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
404 xmake_file=winnt/x-winnt
405 extra_host_objs=oldnames.o
406 extra_gcc_objs="spawnv.o oldnames.o"
407 fixincludes=fixinc.winnt
408 if [[ x$gnu_ld != xyes ]]
410 extra_programs=ld.exe
412 if [[ x$enable_threads = xyes ]]; then
418 xm_file="${xm_file} alpha/xm-vms.h"
419 tmake_file=alpha/t-vms
420 fixincludes=Makefile.in
423 extra_parts="crtinit.o crtfini.o"
425 arm-*-coff* | armel-*-coff*)
427 tmake_file=arm/t-bare
429 arm-*-riscix1.[[01]]*) # Acorn RISC machine (early versions)
430 tm_file=arm/riscix1-1.h
433 arm-*-riscix*) # Acorn RISC machine
434 if [[ x$gas = xyes ]]
436 tm_file=arm/rix-gas.h
440 xmake_file=arm/x-riscix
441 tmake_file=arm/t-riscix
444 arm-semi-aout | armel-semi-aout)
446 tmake_file=arm/t-semi
447 fixincludes=Makefile.in # There is nothing to fix
449 arm-semi-aof | armel-semi-aof)
450 tm_file=arm/semiaof.h
451 tmake_file=arm/t-semiaof
452 fixincludes=Makefile.in # There is nothing to fix
456 xm_file="xm-siglist.h ${xm_file}"
457 tmake_file="t-netbsd arm/t-netbsd"
458 # On NetBSD, the headers are already okay, except for math.h.
459 fixincludes=fixinc.math
461 arm-*-linux-gnuaout*) # ARM GNU/Linux
464 tm_file=arm/linux-gas.h
465 tmake_file=arm/t-linux
466 fixincludes=Makefile.in
471 tmake_file=arm/t-bare
473 c1-convex-*) # Convex C1
476 fixincludes=Makefile.in
478 c2-convex-*) # Convex C2
481 fixincludes=Makefile.in
486 fixincludes=Makefile.in
491 fixincludes=Makefile.in
494 target_cpu_default=16
496 fixincludes=Makefile.in
498 clipper-intergraph-clix*)
499 tm_file="${tm_file} svr3.h clipper/clix.h"
500 xm_file=clipper/xm-clix.h
501 xmake_file=clipper/x-clix
502 extra_headers=va-clipper.h
503 extra_parts="crtbegin.o crtend.o"
504 install_headers_dir=install-headers-cpio
511 # This hasn't been upgraded to GCC 2.
512 # fx80-alliant-*) # Alliant FX/80
518 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
519 xm_file=pa/xm-papro.h
524 tm_file="${tm_file} pa/pa-osf.h"
526 fixincludes=Makefile.in
529 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
530 xm_file=pa/xm-papro.h
534 tm_file="${tm_file} pa/pa-osf.h"
536 fixincludes=Makefile.in
541 fixincludes=Makefile.in
545 fixincludes=Makefile.in
548 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
549 xm_file=pa/xm-pahpux.h
550 xmake_file=pa/x-pa-hpux
551 if [[ x$gas = xyes ]]
553 tm_file="${tm_file} pa/gas.h"
555 install_headers_dir=install-headers-cpio
558 hppa1.0-*-hpux8.0[[0-2]]*)
559 tm_file="${tm_file} pa/pa-hpux.h"
560 xm_file=pa/xm-pahpux.h
561 xmake_file=pa/x-pa-hpux
562 if [[ x$gas = xyes ]]
564 tm_file="${tm_file} pa/pa-gas.h"
566 tm_file="pa/pa-oldas.h ${tm_file}"
568 install_headers_dir=install-headers-cpio
571 hppa1.1-*-hpux8.0[[0-2]]*)
573 tm_file="${tm_file} pa/pa-hpux.h"
574 xm_file=pa/xm-pahpux.h
575 xmake_file=pa/x-pa-hpux
576 if [[ x$gas = xyes ]]
578 tm_file="${tm_file} pa/pa-gas.h"
580 tm_file="pa/pa-oldas.h ${tm_file}"
582 install_headers_dir=install-headers-cpio
587 tm_file="${tm_file} pa/pa-hpux.h"
588 xm_file=pa/xm-pahpux.h
589 xmake_file=pa/x-pa-hpux
590 if [[ x$gas = xyes ]]
592 tm_file="${tm_file} pa/pa-gas.h"
594 install_headers_dir=install-headers-cpio
598 tm_file="${tm_file} pa/pa-hpux.h"
599 xm_file=pa/xm-pahpux.h
600 xmake_file=pa/x-pa-hpux
601 if [[ x$gas = xyes ]]
603 tm_file="${tm_file} pa/pa-gas.h"
605 install_headers_dir=install-headers-cpio
610 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
611 xm_file=pa/xm-pahpux.h
612 xmake_file=pa/x-pa-hpux
614 if [[ x$gas = xyes ]]
616 tm_file="${tm_file} pa/pa-gas.h"
618 if [[ x$enable_threads = x ]]; then
619 enable_threads=$have_pthread_h
621 if [[ x$enable_threads = xyes ]]; then
623 tmake_file="${tmake_file} pa/t-dce-thr"
625 install_headers_dir=install-headers-cpio
629 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
630 xm_file=pa/xm-pahpux.h
631 xmake_file=pa/x-pa-hpux
632 if [[ x$gas = xyes ]]
634 tm_file="${tm_file} pa/pa-gas.h"
636 if [[ x$enable_threads = x ]]; then
637 enable_threads=$have_pthread_h
639 if [[ x$enable_threads = xyes ]]; then
641 tmake_file="${tmake_file} pa/t-dce-thr"
643 install_headers_dir=install-headers-cpio
648 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
649 xm_file=pa/xm-pahpux.h
650 xmake_file=pa/x-pa-hpux
651 if [[ x$gas = xyes ]]
653 tm_file="${tm_file} pa/pa-gas.h"
655 install_headers_dir=install-headers-cpio
659 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
660 xm_file=pa/xm-pahpux.h
661 xmake_file=pa/x-pa-hpux
662 if [[ x$gas = xyes ]]
664 tm_file="${tm_file} pa/pa-gas.h"
666 install_headers_dir=install-headers-cpio
671 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
672 xm_file=pa/xm-pahpux.h
673 xmake_file=pa/x-pa-hpux
674 if [[ x$gas = xyes ]]
676 tm_file="${tm_file} pa/pa-gas.h"
678 install_headers_dir=install-headers-cpio
682 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
683 xm_file=pa/xm-pahpux.h
684 xmake_file=pa/x-pa-hpux
685 if [[ x$gas = xyes ]]
687 tm_file="${tm_file} pa/pa-gas.h"
689 install_headers_dir=install-headers-cpio
695 fixincludes=Makefile.in
699 i[[34567]]86-ibm-aix*) # IBM PS/2 running AIX
700 if [[ x$gas = xyes ]]
702 tm_file=i386/aix386.h
703 extra_parts="crtbegin.o crtend.o"
704 tmake_file=i386/t-crtstuff
706 tm_file=i386/aix386ng.h
709 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
711 xmake_file=i386/x-aix
713 i[[34567]]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
714 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
715 xm_defines="USG POSIX SMALL_ARG_MAX"
716 xmake_file=i386/x-ncr3000
717 if [[ x$stabs = xyes -a x$gas = xyes ]]
719 tm_file=i386/sysv4gdb.h
723 extra_parts="crtbegin.o crtend.o"
724 tmake_file=i386/t-crtpic
728 xm_file=i386/xm-next.h
729 tmake_file=i386/t-next
730 xmake_file=i386/x-next
731 extra_objs=nextstep.o
732 if [[ x$enable_threads = xyes ]]; then
736 i[[34567]]86-sequent-bsd*) # 80386 from Sequent
738 if [[ x$gas = xyes ]]
740 tm_file=i386/seq-gas.h
742 tm_file=i386/sequent.h
745 i[[34567]]86-sequent-ptx1*)
746 xm_defines="USG SVR3"
747 xmake_file=i386/x-sysv3
748 tm_file=i386/seq-sysv3.h
749 tmake_file=i386/t-crtstuff
750 fixincludes=fixinc.ptx
751 extra_parts="crtbegin.o crtend.o"
752 install_headers_dir=install-headers-cpio
754 i[[34567]]86-sequent-ptx2* | i[[34567]]86-sequent-sysv3*)
755 xm_defines="USG SVR3"
756 xmake_file=i386/x-sysv3
757 tm_file=i386/seq2-sysv3.h
758 tmake_file=i386/t-crtstuff
759 extra_parts="crtbegin.o crtend.o"
760 fixincludes=fixinc.ptx
761 install_headers_dir=install-headers-cpio
763 i[[34567]]86-sequent-ptx4* | i[[34567]]86-sequent-sysv4*)
764 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
765 xm_defines="USG POSIX SMALL_ARG_MAX"
767 tm_file=i386/ptx4-i.h
769 extra_parts="crtbegin.o crtend.o"
770 fixincludes=fixinc.ptx
771 install_headers_dir=install-headers-cpio
773 i386-sun-sunos*) # Sun i386 roadrunner
778 i[[34567]]86-wrs-vxworks*)
779 tm_file=i386/vxi386.h
780 tmake_file=i386/t-i386bare
782 i[[34567]]86-*-aout*)
783 tm_file=i386/i386-aout.h
784 tmake_file=i386/t-i386bare
786 i[[34567]]86-*-bsdi* | i[[34567]]86-*-bsd386*)
787 tm_file=i386/bsd386.h
788 # tmake_file=t-libc-ok
791 tm_file=i386/386bsd.h
792 # tmake_file=t-libc-ok
793 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
796 i[[34567]]86-*-freebsdelf*)
797 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
798 # On FreeBSD, the headers are already ok, except for math.h.
799 fixincludes=fixinc.math
800 tmake_file=i386/t-freebsd
805 i[[34567]]86-*-freebsd*)
806 tm_file=i386/freebsd.h
807 # On FreeBSD, the headers are already ok, except for math.h.
808 fixincludes=fixinc.math
809 tmake_file=i386/t-freebsd
811 i[[34567]]86-*-netbsd*)
812 tm_file=i386/netbsd.h
813 # On NetBSD, the headers are already okay, except for math.h.
814 fixincludes=fixinc.math
817 i[[34567]]86-*-coff*)
818 tm_file=i386/i386-coff.h
819 tmake_file=i386/t-i386bare
821 i[[34567]]86-*-isc*) # 80386 running ISC system
822 xm_file="${xm_file} i386/xm-isc.h"
823 xm_defines="USG SVR3"
825 i[[34567]]86-*-isc[[34]]*)
826 xmake_file=i386/x-isc3
829 xmake_file=i386/x-isc
832 if [[ x$gas = xyes -a x$stabs = xyes ]]
834 tm_file=i386/iscdbx.h
835 tmake_file=i386/t-svr3dbx
836 extra_parts="svr3.ifile svr3z.ifile"
838 tm_file=i386/isccoff.h
839 tmake_file=i386/t-crtstuff
840 extra_parts="crtbegin.o crtend.o"
842 install_headers_dir=install-headers-cpio
844 i[[34567]]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
845 # with a.out format using
847 xmake_file=x-linux-aout
848 tmake_file="t-linux-aout i386/t-crtstuff"
849 tm_file=i386/linux-oldld.h
850 fixincludes=Makefile.in #On Linux, the headers are ok already.
853 i[[34567]]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
855 xmake_file=x-linux-aout
856 tmake_file="t-linux-aout i386/t-crtstuff"
857 tm_file=i386/linux-aout.h
858 fixincludes=Makefile.in #On Linux, the headers are ok already.
861 i[[34567]]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
862 # with ELF format using the
863 # GNU/Linux C library 5
866 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
867 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
868 fixincludes=Makefile.in #On Linux, the headers are ok already.
870 if [[ x$enable_threads = xyes ]]; then
874 i[[34567]]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
875 # with ELF format using glibc 2
876 # aka GNU/Linux C library 6
879 tmake_file="t-linux i386/t-crtstuff"
880 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
881 fixincludes=Makefile.in #On Linux, the headers are ok already.
883 if [[ x$enable_threads = xyes ]]; then
889 i[[34567]]86-go32-msdos | i[[34567]]86-*-go32*)
890 xm_file=i386/xm-go32.h
892 tmake_file=i386/t-go32
894 i[[34567]]86-pc-msdosdjgpp*)
895 xm_file=i386/xm-go32.h
897 tmake_file=i386/t-go32
901 i[[34567]]86-moss-msdos* | i[[34567]]86-*-moss*)
904 fixincludes=Makefile.in
908 i[[34567]]86-*-lynxos*)
909 if [[ x$gas = xyes ]]
913 tm_file=i386/lynx-ng.h
915 xm_file=i386/xm-lynx.h
916 tmake_file=i386/t-i386bare
919 i[[34567]]86-*-mach*)
921 # tmake_file=t-libc-ok
924 i[[34567]]86-*-osfrose*) # 386 using OSF/rose
925 if [[ x$elf = xyes ]]
927 tm_file=i386/osfelf.h
930 tm_file=i386/osfrose.h
933 xm_file="i386/xm-osf.h ${xm_file}"
934 xmake_file=i386/x-osfrose
935 tmake_file=i386/t-osf
938 i[[34567]]86-go32-rtems*)
940 xm_file=i386/xm-go32.h
941 tm_file=i386/go32-rtems.h
942 tmake_file="i386/t-go32 t-rtems"
944 i[[34567]]86-*-rtems*)
947 tmake_file="i386/t-i386bare t-rtems"
949 i[[34567]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
950 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
951 xm_defines="USG SVR3"
952 xmake_file=i386/x-sco5
953 fixincludes=fixinc.sco
954 install_headers_dir=install-headers-cpio
956 tmake_file=i386/t-sco5
957 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
959 i[[34567]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
960 xm_file="${xm_file} i386/xm-sco.h"
961 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
962 xmake_file=i386/x-sco4
963 fixincludes=fixinc.sco
964 install_headers_dir=install-headers-cpio
965 if [[ x$stabs = xyes ]]
967 tm_file=i386/sco4dbx.h
968 tmake_file=i386/t-svr3dbx
969 extra_parts="svr3.ifile svr3z.rfile"
972 tmake_file=i386/t-crtstuff
973 extra_parts="crtbegin.o crtend.o"
977 i[[34567]]86-*-sco*) # 80386 running SCO system
978 xm_file=i386/xm-sco.h
979 xmake_file=i386/x-sco
980 install_headers_dir=install-headers-cpio
981 if [[ x$stabs = xyes ]]
983 tm_file=i386/scodbx.h
984 tmake_file=i386/t-svr3dbx
985 extra_parts="svr3.ifile svr3z.rfile"
988 extra_parts="crtbegin.o crtend.o"
989 tmake_file=i386/t-crtstuff
993 i[[34567]]86-*-solaris2*)
994 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
995 xm_defines="USG POSIX SMALL_ARG_MAX"
996 if [[ x$stabs = xyes ]]
998 tm_file=i386/sol2dbg.h
1002 tmake_file=i386/t-sol2
1003 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1006 *-*-solaris2.[[0-4]])
1007 fixincludes=fixinc.svr4;;
1009 fixincludes=fixinc.math;;
1011 if [[ x$enable_threads = xyes ]]; then
1012 thread_file='solaris'
1015 i[[34567]]86-*-sysv5*) # Intel x86 on System V Release 5
1016 xm_file=i386/xm-sysv4.h
1017 tm_file=i386/sysv4.h
1018 if [[ x$stabs = xyes ]]
1020 tm_file="${tm_file} dbx.h"
1022 tmake_file=i386/t-crtpic
1024 extra_parts="crtbegin.o crtend.o"
1025 fixincludes=Makefile.in # The headers are just fine, thank you.
1027 i[[34567]]86-*-sysv4*) # Intel 80386's running system V.4
1028 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1029 xm_defines="USG POSIX SMALL_ARG_MAX"
1030 tm_file=i386/sysv4.h
1031 if [[ x$stabs = xyes ]]
1033 tm_file="${tm_file} dbx.h"
1035 tmake_file=i386/t-crtpic
1037 extra_parts="crtbegin.o crtend.o"
1039 i[[34567]]86-*-sysv*) # Intel 80386's running system V
1040 xm_defines="USG SVR3"
1041 xmake_file=i386/x-sysv3
1042 if [[ x$gas = xyes ]]
1044 if [[ x$stabs = xyes ]]
1046 tm_file=i386/svr3dbx.h
1047 tmake_file=i386/t-svr3dbx
1048 extra_parts="svr3.ifile svr3z.rfile"
1050 tm_file=i386/svr3gas.h
1051 extra_parts="crtbegin.o crtend.o"
1052 tmake_file=i386/t-crtstuff
1055 tm_file=i386/sysv3.h
1056 extra_parts="crtbegin.o crtend.o"
1057 tmake_file=i386/t-crtstuff
1060 i386-*-vsta) # Intel 80386's running VSTa kernel
1061 xm_file=i386/xm-vsta.h
1063 tmake_file=i386/t-vsta
1064 xmake_file=i386/x-vsta
1066 i[[34567]]86-*-pe | i[[34567]]86-*-cygwin32)
1067 xm_file="${xm_file} i386/xm-cygwin32.h"
1068 tmake_file=i386/t-cygwin32
1069 tm_file=i386/cygwin32.h
1070 xmake_file=i386/x-cygwin32
1072 fixincludes=Makefile.in
1073 if [[ x$enable_threads = xyes ]]; then
1078 i[[34567]]86-*-mingw32*)
1079 tm_file=i386/mingw32.h
1080 xm_file="${xm_file} i386/xm-mingw32.h"
1081 tmake_file=i386/t-cygwin32
1083 xmake_file=i386/x-cygwin32
1084 fixincludes=Makefile.in
1085 if [[ x$enable_threads = xyes ]]; then
1092 *minwg32crt* | *mingw32*)
1093 tm_file="${tm_file} i386/crtdll.h"
1097 i[[34567]]86-*-winnt3*)
1098 tm_file=i386/win-nt.h
1099 out_file=i386/i386.c
1100 xm_file="xm-winnt.h ${xm_file}"
1101 xmake_file=winnt/x-winnt
1102 tmake_file=i386/t-winnt
1103 extra_host_objs="winnt.o oldnames.o"
1104 extra_gcc_objs="spawnv.o oldnames.o"
1105 fixincludes=fixinc.winnt
1106 if [[ x$gnu_ld != xyes ]]
1108 extra_programs=ld.exe
1110 if [[ x$enable_threads = xyes ]]; then
1114 i[[34567]]86-dg-dgux*)
1115 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1116 xm_defines="USG POSIX"
1117 out_file=i386/dgux.c
1119 tmake_file=i386/t-dgux
1120 xmake_file=i386/x-dgux
1121 fixincludes=fixinc.dgux
1122 install_headers_dir=install-headers-cpio
1124 i860-alliant-*) # Alliant FX/2800
1125 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1126 xm_file="${xm_file}"
1127 xmake_file=i860/x-fx2800
1128 tmake_file=i860/t-fx2800
1129 extra_parts="crtbegin.o crtend.o"
1132 tm_file="${tm_file} i860/bsd.h"
1133 if [[ x$gas = xyes ]]
1135 tm_file="${tm_file} i860/bsd-gas.h"
1140 tm_file="${tm_file} i860/mach.h"
1141 tmake_file=t-libc-ok
1143 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1144 tm_file="${tm_file} svr3.h i860/paragon.h"
1145 xm_defines="USG SVR3"
1149 tm_file="${tm_file} svr3.h i860/sysv3.h"
1150 xm_defines="USG SVR3"
1151 xmake_file=i860/x-sysv3
1152 extra_parts="crtbegin.o crtend.o"
1155 tm_file="${tm_file} svr4.h i860/sysv4.h"
1156 xm_defines="USG SVR3"
1157 xmake_file=i860/x-sysv4
1159 extra_parts="crtbegin.o crtend.o"
1161 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1162 tm_file="${tm_file} i960/vx960.h"
1163 tmake_file=i960/t-vxworks960
1165 thread_file='vxworks'
1167 i960-wrs-vxworks5* | i960-wrs-vxworks)
1168 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1169 tmake_file=i960/t-vxworks960
1171 thread_file='vxworks'
1174 tm_file="${tm_file} i960/vx960.h"
1175 tmake_file=i960/t-vxworks960
1177 thread_file='vxworks'
1180 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1181 tmake_file=i960/t-960bare
1185 tmake_file="i960/t-960bare t-rtems"
1186 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1189 i960-*-*) # Default i960 environment.
1193 extra_parts="crtinit.o crtfini.o"
1195 m68000-convergent-sysv*)
1197 xm_file="m68k/xm-3b1.h ${xm_file}"
1200 extra_headers=math-68881.h
1202 m68000-hp-bsd*) # HP 9000/200 running BSD
1203 tm_file=m68k/hp2bsd.h
1204 xmake_file=m68k/x-hp2bsd
1206 extra_headers=math-68881.h
1208 m68000-hp-hpux*) # HP 9000 series 300
1209 xm_file="xm_alloca.h ${xm_file}"
1210 xm_defines="USG NO_SYS_SIGLIST"
1211 if [[ x$gas = xyes ]]
1213 xmake_file=m68k/x-hp320g
1214 tm_file=m68k/hp310g.h
1216 xmake_file=m68k/x-hp320
1217 tm_file=m68k/hp310.h
1219 install_headers_dir=install-headers-cpio
1221 extra_headers=math-68881.h
1226 extra_headers=math-68881.h
1229 tm_file=m68k/sun2o4.h
1231 extra_headers=math-68881.h
1234 xm_file="m68k/xm-3b1.h ${xm_file}"
1236 if [[ x$gas = xyes ]]
1243 extra_headers=math-68881.h
1245 m68k-apple-aux*) # Apple Macintosh running A/UX
1246 xm_defines="USG AUX"
1247 tmake_file=m68k/t-aux
1248 install_headers_dir=install-headers-cpio
1249 extra_headers=math-68881.h
1250 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1252 if [[ "$gnu_ld" = yes ]]
1254 tm_file="${tm_file} m68k/auxgld.h"
1256 tm_file="${tm_file} m68k/auxld.h"
1258 if [[ "$gas" = yes ]]
1260 tm_file="${tm_file} m68k/auxgas.h"
1262 tm_file="${tm_file} m68k/auxas.h"
1264 tm_file="${tm_file} m68k/a-ux.h"
1267 tm_file=m68k/apollo68.h
1268 xmake_file=m68k/x-apollo68
1270 extra_headers=math-68881.h
1272 m68k-altos-sysv*) # Altos 3068
1273 if [[ x$gas = xyes ]]
1275 tm_file=m68k/altos3068.h
1278 echo "The Altos is supported only with the GNU assembler" 1>&2
1281 extra_headers=math-68881.h
1283 m68k-bull-sysv*) # Bull DPX/2
1284 if [[ x$gas = xyes ]]
1286 if [[ x$stabs = xyes ]]
1288 tm_file=m68k/dpx2cdbx.h
1290 tm_file=m68k/dpx2g.h
1295 xm_file="xm-alloca.h ${xm_file}"
1297 xmake_file=m68k/x-dpx2
1299 extra_headers=math-68881.h
1301 m68k-atari-sysv4*) # Atari variant of V.4.
1302 tm_file=m68k/atari.h
1303 xm_file="xm-alloca.h ${xm_file}"
1304 xm_defines="USG FULL_PROTOTYPES"
1306 extra_parts="crtbegin.o crtend.o"
1307 extra_headers=math-68881.h
1309 m68k-motorola-sysv*)
1310 tm_file=m68k/mot3300.h
1311 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1312 xm_defines=NO_SYS_SIGLIST
1313 if [[ x$gas = xyes ]]
1315 xmake_file=m68k/x-mot3300-gas
1316 if [[ x$gnu_ld = xyes ]]
1318 tmake_file=m68k/t-mot3300-gald
1320 tmake_file=m68k/t-mot3300-gas
1324 xmake_file=m68k/x-mot3300
1325 if [[ x$gnu_ld = xyes ]]
1327 tmake_file=m68k/t-mot3300-gld
1329 tmake_file=m68k/t-mot3300
1333 gdb_needs_out_file_path=yes
1334 extra_parts="crt0.o mcrt0.o"
1335 extra_headers=math-68881.h
1337 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1338 tm_file=m68k/tower-as.h
1339 xm_defines="USG SVR3"
1340 xmake_file=m68k/x-tower
1341 extra_parts="crtbegin.o crtend.o"
1342 extra_headers=math-68881.h
1345 tm_file=m68k/plexus.h
1346 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1349 extra_headers=math-68881.h
1353 xm_file="xm-alloca.h ${xm_file}"
1355 extra_headers=math-68881.h
1358 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1359 xm_defines="USG unos"
1360 xmake_file=m68k/x-crds
1363 extra_headers=math-68881.h
1365 m68k-cbm-sysv4*) # Commodore variant of V.4.
1367 xm_file="xm-alloca.h ${xm_file}"
1368 xm_defines="USG FULL_PROTOTYPES"
1369 xmake_file=m68k/x-amix
1371 extra_parts="crtbegin.o crtend.o"
1372 extra_headers=math-68881.h
1375 tm_file=m68k/ccur-GAS.h
1376 xmake_file=m68k/x-ccur
1377 extra_headers=math-68881.h
1380 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1381 tm_file=m68k/hp3bsd44.h
1382 xmake_file=m68k/x-hp3bsd44
1384 extra_headers=math-68881.h
1386 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1387 tm_file=m68k/hp3bsd.h
1389 extra_headers=math-68881.h
1392 if [[ x$with_fp = xno ]]
1394 tm_file=m68k/isi-nfp.h
1399 extra_headers=math-68881.h
1401 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1402 xm_file="xm_alloca.h ${xm_file}"
1403 xm_defines="USG NO_SYS_SIGLIST"
1404 if [[ x$gas = xyes ]]
1406 xmake_file=m68k/x-hp320g
1407 tm_file=m68k/hp320g.h
1409 xmake_file=m68k/x-hp320
1410 tm_file=m68k/hpux7.h
1412 install_headers_dir=install-headers-cpio
1414 extra_headers=math-68881.h
1416 m68k-hp-hpux*) # HP 9000 series 300
1417 xm_file="xm_alloca.h ${xm_file}"
1418 xm_defines="USG NO_SYS_SIGLIST"
1419 if [[ x$gas = xyes ]]
1421 xmake_file=m68k/x-hp320g
1422 tm_file=m68k/hp320g.h
1424 xmake_file=m68k/x-hp320
1425 tm_file=m68k/hp320.h
1427 install_headers_dir=install-headers-cpio
1429 extra_headers=math-68881.h
1432 tm_file=m68k/sun3mach.h
1434 extra_headers=math-68881.h
1437 if [[ x$gas = xyes ]]
1439 tm_file=m68k/news3gas.h
1441 tm_file=m68k/news3.h
1444 extra_headers=math-68881.h
1446 m68k-sony-bsd* | m68k-sony-newsos*)
1447 if [[ x$gas = xyes ]]
1449 tm_file=m68k/newsgas.h
1454 extra_headers=math-68881.h
1456 m68k-next-nextstep2*)
1457 tm_file=m68k/next21.h
1458 xm_file="m68k/xm-next.h ${xm_file}"
1459 tmake_file=m68k/t-next
1460 xmake_file=m68k/x-next
1461 extra_objs=nextstep.o
1462 extra_headers=math-68881.h
1465 m68k-next-nextstep3*)
1467 xm_file="m68k/xm-next.h ${xm_file}"
1468 tmake_file=m68k/t-next
1469 xmake_file=m68k/x-next
1470 extra_objs=nextstep.o
1471 extra_headers=math-68881.h
1472 if [[ x$enable_threads = xyes ]]; then
1477 if [[ x$with_fp = xno ]]
1479 tm_file=m68k/sun3n3.h
1481 tm_file=m68k/sun3o3.h
1484 extra_headers=math-68881.h
1486 m68k-sun-sunos*) # For SunOS 4 (the default).
1487 if [[ x$with_fp = xno ]]
1489 tm_file=m68k/sun3n.h
1494 extra_headers=math-68881.h
1497 tm_file=m68k/vxm68k.h
1498 tmake_file=m68k/t-vxworks68
1499 extra_headers=math-68881.h
1500 thread_file='vxworks'
1503 tmake_file=m68k/t-m68kbare
1504 tm_file="m68k/m68k-aout.h libgloss.h"
1505 extra_headers=math-68881.h
1508 tmake_file=m68k/t-m68kbare
1509 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1510 extra_headers=math-68881.h
1513 if [[ x$gas = xyes ]]
1517 tm_file=m68k/lynx-ng.h
1519 xm_file=m68k/xm-lynx.h
1521 tmake_file=m68k/t-lynx
1522 extra_headers=math-68881.h
1525 tm_file=m68k/netbsd.h
1526 # On NetBSD, the headers are already okay, except for math.h.
1527 fixincludes=fixinc.math
1530 m68k-*-sysv3*) # Motorola m68k's running system V.3
1531 xm_file="xm-alloca.h ${xm_file}"
1533 xmake_file=m68k/x-m68kv
1534 extra_parts="crtbegin.o crtend.o"
1535 extra_headers=math-68881.h
1537 m68k-*-sysv4*) # Motorola m68k's running system V.4
1538 tm_file=m68k/m68kv4.h
1539 xm_file="xm-alloca.h ${xm_file}"
1542 extra_parts="crtbegin.o crtend.o"
1543 extra_headers=math-68881.h
1545 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1548 tm_file=m68k/linux-aout.h
1549 tmake_file="t-linux-aout m68k/t-linux-aout"
1550 fixincludes=Makefile.in # The headers are ok already.
1551 extra_headers=math-68881.h
1554 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1555 # with ELF format using the
1556 # GNU/Linux C library 5
1558 tm_file=m68k/linux.h
1559 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1560 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1561 fixincludes=Makefile.in # The headers are ok already.
1562 extra_headers=math-68881.h
1565 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1566 # with ELF format using glibc 2
1567 # aka the GNU/Linux C library 6.
1569 tm_file=m68k/linux.h
1570 tmake_file="t-linux m68k/t-linux"
1571 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1572 fixincludes=Makefile.in # The headers are ok already.
1573 extra_headers=math-68881.h
1575 if [[ x$enable_threads = xyes ]]; then
1580 tmake_file=m68k/t-m68kbare
1581 tm_file=m68k/m68k-psos.h
1582 extra_headers=math-68881.h
1585 tmake_file="m68k/t-m68kbare t-rtems"
1586 tm_file=m68k/rtems.h
1587 extra_headers=math-68881.h
1593 tm_file=m88k/dguxbcs.h
1594 tmake_file=m88k/t-dguxbcs
1598 tmake_file=m88k/t-dgux
1601 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1602 xmake_file=m88k/x-dgux
1603 if [[ x$gas = xyes ]]
1605 tmake_file=m88k/t-dgux-gas
1607 fixincludes=fixinc.dgux
1609 m88k-dolphin-sysv3*)
1610 tm_file=m88k/dolph.h
1611 extra_parts="crtbegin.o crtend.o"
1612 xm_file="m88k/xm-sysv3.h ${xm_file}"
1613 xmake_file=m88k/x-dolph
1614 if [[ x$gas = xyes ]]
1616 tmake_file=m88k/t-m88k-gas
1619 m88k-tektronix-sysv3)
1620 tm_file=m88k/tekXD88.h
1621 extra_parts="crtbegin.o crtend.o"
1622 xm_file="m88k/xm-sysv3.h ${xm_file}"
1623 xmake_file=m88k/x-tekXD88
1624 if [[ x$gas = xyes ]]
1626 tmake_file=m88k/t-m88k-gas
1630 tm_file=m88k/m88k-aout.h
1633 tm_file=m88k/m88k-coff.h
1634 tmake_file=m88k/t-bug
1638 extra_parts="crtbegin.o crtend.o"
1639 if [[ x$gas = xyes ]]
1641 tmake_file=m88k/t-luna-gas
1643 tmake_file=m88k/t-luna
1647 tm_file=m88k/sysv3.h
1648 extra_parts="crtbegin.o crtend.o"
1649 xm_file="m88k/xm-sysv3.h ${xm_file}"
1650 xmake_file=m88k/x-sysv3
1651 if [[ x$gas = xyes ]]
1653 tmake_file=m88k/t-m88k-gas
1657 tm_file=m88k/sysv4.h
1658 extra_parts="crtbegin.o crtend.o"
1659 xmake_file=m88k/x-sysv4
1660 tmake_file=m88k/t-sysv4
1662 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1663 tm_file=mips/iris6.h
1664 xm_file=mips/xm-iris6.h
1665 fixincludes=fixinc.irix
1666 xmake_file=mips/x-iris6
1667 tmake_file=mips/t-iris6
1668 if [[ x$enable_threads = xyes ]]; then
1673 tm_file="mips/elf.h libgloss.h"
1674 tmake_file=mips/t-ecoff
1677 extra_parts="crtbegin.o crtend.o"
1678 # thread_file='vxworks'
1680 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1681 tm_file="mips/iris6.h mips/cross64.h"
1682 xm_defines="USG HAVE_INTTYPES_H"
1683 fixincludes=Makefile.in
1684 xmake_file=mips/x-iris
1685 tmake_file=mips/t-cross64
1686 # See comment in mips/iris[56].h files.
1688 if [[ x$enable_threads = xyes ]]; then
1693 if [[ x$gas = xyes ]]
1695 if [[ x$stabs = xyes ]]
1697 tm_file=mips/iris5gdb.h
1699 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1702 tm_file=mips/sni-svr4.h
1705 xmake_file=mips/x-sni-svr4
1706 tmake_file=mips/t-mips-gas
1707 if [[ x$gnu_ld != xyes ]]
1712 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1713 if [[ x$gas = xyes ]]
1715 tm_file="mips/iris5.h mips/iris5gas.h"
1716 if [[ x$stabs = xyes ]]
1718 tm_file="${tm_file} dbx.h"
1721 tm_file=mips/iris5.h
1723 xm_defines="USG HAVE_INTTYPES_H"
1724 fixincludes=fixinc.irix
1725 xmake_file=mips/x-iris
1726 # mips-tfile doesn't work yet
1727 tmake_file=mips/t-mips-gas
1728 # See comment in mips/iris5.h file.
1730 if [[ x$enable_threads = xyes ]]; then
1734 mips-sgi-irix4loser*) # Mostly like a MIPS.
1735 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
1736 if [[ x$stabs = xyes ]]; then
1737 tm_file="${tm_file} dbx.h"
1740 xmake_file=mips/x-iris
1741 if [[ x$gas = xyes ]]
1743 tmake_file=mips/t-mips-gas
1745 extra_passes="mips-tfile mips-tdump"
1747 if [[ x$gnu_ld != xyes ]]
1751 if [[ x$enable_threads = xyes ]]; then
1755 mips-sgi-irix4*) # Mostly like a MIPS.
1756 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
1757 if [[ x$stabs = xyes ]]; then
1758 tm_file="${tm_file} dbx.h"
1761 xmake_file=mips/x-iris
1762 if [[ x$gas = xyes ]]
1764 tmake_file=mips/t-mips-gas
1766 extra_passes="mips-tfile mips-tdump"
1768 if [[ x$gnu_ld != xyes ]]
1772 if [[ x$enable_threads = xyes ]]; then
1776 mips-sgi-*) # Mostly like a MIPS.
1777 tm_file="mips/iris3.h ${tm_file}"
1778 if [[ x$stabs = xyes ]]; then
1779 tm_file="${tm_file} dbx.h"
1782 xmake_file=mips/x-iris3
1783 if [[ x$gas = xyes ]]
1785 tmake_file=mips/t-mips-gas
1787 extra_passes="mips-tfile mips-tdump"
1789 if [[ x$gnu_ld != xyes ]]
1794 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
1795 tm_file="mips/osfrose.h ${tm_file}"
1796 xmake_file=mips/x-osfrose
1797 tmake_file=mips/t-osfrose
1798 extra_objs=halfpic.o
1801 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
1802 tm_file=mips/dec-osf1.h
1803 if [[ x$stabs = xyes ]]; then
1804 tm_file="${tm_file} dbx.h"
1806 xmake_file=mips/x-dec-osf1
1807 if [[ x$gas = xyes ]]
1809 tmake_file=mips/t-mips-gas
1811 tmake_file=mips/t-ultrix
1812 extra_passes="mips-tfile mips-tdump"
1814 if [[ x$gnu_ld != xyes ]]
1819 mips-dec-bsd*) # Decstation running 4.4 BSD
1820 tm_file=mips/dec-bsd.h
1822 if [[ x$gas = xyes ]]
1824 tmake_file=mips/t-mips-gas
1826 tmake_file=mips/t-ultrix
1827 extra_passes="mips-tfile mips-tdump"
1829 if [[ x$gnu_ld != xyes ]]
1834 mips-dec-netbsd*) # Decstation running NetBSD
1835 tm_file=mips/netbsd.h
1836 # On NetBSD, the headers are already okay, except for math.h.
1837 fixincludes=fixinc.math
1840 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
1841 tm_file="mips/news4.h ${tm_file}"
1842 if [[ x$stabs = xyes ]]; then
1843 tm_file="${tm_file} dbx.h"
1845 if [[ x$gas = xyes ]]
1847 tmake_file=mips/t-mips-gas
1849 extra_passes="mips-tfile mips-tdump"
1851 if [[ x$gnu_ld != xyes ]]
1855 xmake_file=mips/x-sony
1857 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
1858 # That is based on svr4.
1859 # t-svr4 is not right because this system doesn't use ELF.
1860 tm_file="mips/news5.h ${tm_file}"
1861 if [[ x$stabs = xyes ]]; then
1862 tm_file="${tm_file} dbx.h"
1864 xm_file="xm-siglist.h ${xm_file}"
1866 if [[ x$gas = xyes ]]
1868 tmake_file=mips/t-mips-gas
1870 extra_passes="mips-tfile mips-tdump"
1872 if [[ x$gnu_ld != xyes ]]
1877 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
1878 tm_file="mips/svr4-5.h mips/svr4-t.h"
1879 if [[ x$stabs = xyes ]]; then
1880 tm_file="${tm_file} dbx.h"
1882 xm_file="xm-siglist.h ${xm_file}"
1884 xmake_file=mips/x-sysv
1885 if [[ x$gas = xyes ]]
1887 tmake_file=mips/t-mips-gas
1888 extra_parts="crtbegin.o crtend.o"
1890 tmake_file=mips/t-mips
1891 extra_passes="mips-tfile mips-tdump"
1893 if [[ x$gnu_ld != xyes ]]
1898 mips-*-ultrix* | mips-dec-mach3) # Decstation.
1899 tm_file="mips/ultrix.h ${tm_file}"
1900 if [[ x$stabs = xyes ]]; then
1901 tm_file="${tm_file} dbx.h"
1903 xmake_file=mips/x-ultrix
1904 if [[ x$gas = xyes ]]
1906 tmake_file=mips/t-mips-gas
1908 tmake_file=mips/t-ultrix
1909 extra_passes="mips-tfile mips-tdump"
1911 if [[ x$gnu_ld != xyes ]]
1916 mips-*-riscos[[56789]]bsd*)
1917 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
1918 if [[ x$stabs = xyes ]]; then
1919 tm_file="${tm_file} dbx.h"
1921 if [[ x$gas = xyes ]]
1923 tmake_file=mips/t-bsd-gas
1925 tmake_file=mips/t-bsd
1926 extra_passes="mips-tfile mips-tdump"
1928 if [[ x$gnu_ld != xyes ]]
1933 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
1934 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
1935 if [[ x$stabs = xyes ]]; then
1936 tm_file="${tm_file} dbx.h"
1938 if [[ x$gas = xyes ]]
1940 tmake_file=mips/t-bsd-gas
1942 tmake_file=mips/t-bsd
1943 extra_passes="mips-tfile mips-tdump"
1945 if [[ x$gnu_ld != xyes ]]
1950 mips-*-riscos[[56789]]sysv4*)
1951 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
1952 if [[ x$stabs = xyes ]]; then
1953 tm_file="${tm_file} dbx.h"
1955 xm_file="xm-siglist.h ${xm_file}"
1956 xmake_file=mips/x-sysv
1957 if [[ x$gas = xyes ]]
1959 tmake_file=mips/t-svr4-gas
1961 tmake_file=mips/t-svr4
1962 extra_passes="mips-tfile mips-tdump"
1964 if [[ x$gnu_ld != xyes ]]
1969 mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
1970 tm_file="mips/svr4-4.h ${tm_file}"
1971 if [[ x$stabs = xyes ]]; then
1972 tm_file="${tm_file} dbx.h"
1975 xmake_file=mips/x-sysv
1976 if [[ x$gas = xyes ]]
1978 tmake_file=mips/t-svr4-gas
1980 tmake_file=mips/t-svr4
1981 extra_passes="mips-tfile mips-tdump"
1983 if [[ x$gnu_ld != xyes ]]
1988 mips-*-riscos[[56789]]sysv*)
1989 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
1990 if [[ x$stabs = xyes ]]; then
1991 tm_file="${tm_file} dbx.h"
1994 xmake_file=mips/x-sysv
1995 if [[ x$gas = xyes ]]
1997 tmake_file=mips/t-svr3-gas
1999 tmake_file=mips/t-svr3
2000 extra_passes="mips-tfile mips-tdump"
2002 if [[ x$gnu_ld != xyes ]]
2007 mips-*-sysv* | mips-*-riscos*sysv*)
2008 tm_file="mips/svr3-4.h ${tm_file}"
2009 if [[ x$stabs = xyes ]]; then
2010 tm_file="${tm_file} dbx.h"
2013 xmake_file=mips/x-sysv
2014 if [[ x$gas = xyes ]]
2016 tmake_file=mips/t-svr3-gas
2018 tmake_file=mips/t-svr3
2019 extra_passes="mips-tfile mips-tdump"
2021 if [[ x$gnu_ld != xyes ]]
2026 mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0.
2027 tm_file=mips/mips-5.h
2028 if [[ x$stabs = xyes ]]; then
2029 tm_file="${tm_file} dbx.h"
2031 if [[ x$gas = xyes ]]
2033 tmake_file=mips/t-mips-gas
2035 extra_passes="mips-tfile mips-tdump"
2037 if [[ x$gnu_ld != xyes ]]
2045 tm_file=mips/ecoffl.h
2046 if [[ x$stabs = xyes ]]; then
2047 tm_file="${tm_file} dbx.h"
2049 tmake_file=mips/t-ecoff
2052 tm_file="gofast.h mips/ecoff.h"
2053 if [[ x$stabs = xyes ]]; then
2054 tm_file="${tm_file} dbx.h"
2056 tmake_file=mips/t-ecoff
2059 tm_file="mips/elfl.h libgloss.h"
2060 tmake_file=mips/t-ecoff
2063 tm_file="mips/elf.h libgloss.h"
2064 tmake_file=mips/t-ecoff
2067 tm_file="mips/elfl64.h libgloss.h"
2068 tmake_file=mips/t-ecoff
2070 mips64orionel-*-elf*)
2071 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2072 tmake_file=mips/t-ecoff
2075 tm_file="mips/elf64.h libgloss.h"
2076 tmake_file=mips/t-ecoff
2079 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2080 tmake_file=mips/t-ecoff
2082 mips64orion-*-rtems*)
2083 tm_file="mips/elforion.h mips/elfl64.h mips/rtems64.h"
2084 tmake_file="mips/t-ecoff t-rtems"
2087 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2088 tmake_file=mips/t-r3900
2091 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2092 tmake_file=mips/t-r3900
2094 mips-*-*) # Default MIPS RISC-OS 4.0.
2095 if [[ x$stabs = xyes ]]; then
2096 tm_file="${tm_file} dbx.h"
2098 if [[ x$gas = xyes ]]
2100 tmake_file=mips/t-mips-gas
2102 extra_passes="mips-tfile mips-tdump"
2104 if [[ x$gnu_ld != xyes ]]
2111 tm_file="mn10200/mn10200.h"
2112 if [[ x$stabs = xyes ]]
2114 tm_file="${tm_file} dbx.h"
2120 tm_file="mn10300/mn10300.h"
2121 if [[ x$stabs = xyes ]]
2123 tm_file="${tm_file} dbx.h"
2128 tm_file=ns32k/encore.h
2132 tm_file=ns32k/sequent.h
2136 tm_file=ns32k/tek6100.h
2140 tm_file=ns32k/tek6200.h
2143 # This has not been updated to GCC 2.
2146 # xmake_file=ns32k/x-genix
2147 # tm_file=ns32k/genix.h
2151 tm_file=ns32k/merlin.h
2155 tm_file=ns32k/pc532-mach.h
2159 tm_file=ns32k/pc532-min.h
2160 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2164 ns32k-pc532-netbsd*)
2165 tm_file=ns32k/netbsd.h
2166 # On NetBSD, the headers are already okay, except for math.h.
2167 fixincludes=fixinc.math
2171 tm_file="${tm_file} pdp11/2bsd.h"
2177 xmake_file=pyr/x-pyr
2184 xmake_file=romp/x-mach
2189 tm_file=rs6000/beos.h
2190 xm_file=rs6000/xm-beos.h
2191 tmake_file=rs6000/t-beos
2192 xmake_file=rs6000/x-beos
2194 powerpc-*-sysv* | powerpc-*-elf*)
2195 tm_file=rs6000/sysv4.h
2196 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2197 xm_defines="USG POSIX"
2198 extra_headers=ppc-asm.h
2199 if [[ x$gas = xyes ]]
2201 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2203 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2205 xmake_file=rs6000/x-sysv4
2208 tm_file=rs6000/eabiaix.h
2209 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2210 fixincludes=Makefile.in
2211 extra_headers=ppc-asm.h
2214 tm_file=rs6000/eabisim.h
2215 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2216 fixincludes=Makefile.in
2217 extra_headers=ppc-asm.h
2220 tm_file=rs6000/eabi.h
2221 if [[ x$gas = xyes ]]
2223 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2225 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2227 fixincludes=Makefile.in
2228 extra_headers=ppc-asm.h
2231 tm_file=rs6000/rtems.h
2232 if [[ x$gas = xyes ]]
2234 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2236 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2238 fixincludes=Makefile.in
2239 extra_headers=ppc-asm.h
2241 powerpc-*-linux-gnulibc1)
2242 tm_file=rs6000/linux.h
2243 xm_file=rs6000/xm-sysv4.h
2244 out_file=rs6000/rs6000.c
2245 if [[ x$gas = xyes ]]
2247 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2249 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2252 fixincludes=Makefile.in
2253 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2254 extra_headers=ppc-asm.h
2255 if [[ x$enable_threads = xyes ]]; then
2259 powerpc-*-linux-gnu*)
2260 tm_file=rs6000/linux.h
2261 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2262 xm_defines="USG ${xm_defines}"
2263 out_file=rs6000/rs6000.c
2264 if [[ x$gas = xyes ]]
2266 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2268 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2271 fixincludes=Makefile.in
2272 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2273 extra_headers=ppc-asm.h
2274 if [[ x$enable_threads = xyes ]]; then
2278 powerpc-wrs-vxworks*)
2280 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2281 xm_defines="USG POSIX"
2282 tm_file=rs6000/vxppc.h
2283 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2284 extra_headers=ppc-asm.h
2285 thread_file='vxworks'
2287 powerpcle-*-sysv* | powerpcle-*-elf*)
2288 tm_file=rs6000/sysv4le.h
2289 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2290 xm_defines="USG POSIX"
2291 if [[ x$gas = xyes ]]
2293 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2295 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2297 xmake_file=rs6000/x-sysv4
2298 extra_headers=ppc-asm.h
2300 powerpcle-*-eabisim*)
2301 tm_file=rs6000/eabilesim.h
2302 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2303 fixincludes=Makefile.in
2304 extra_headers=ppc-asm.h
2307 tm_file=rs6000/eabile.h
2308 if [[ x$gas = xyes ]]
2310 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2312 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2314 fixincludes=Makefile.in
2315 extra_headers=ppc-asm.h
2317 powerpcle-*-winnt* )
2318 tm_file=rs6000/win-nt.h
2319 tmake_file=rs6000/t-winnt
2321 fixincludes=Makefile.in
2322 if [[ x$enable_threads = xyes ]]; then
2325 extra_headers=ppc-asm.h
2327 powerpcle-*-pe | powerpcle-*-cygwin32)
2328 tm_file=rs6000/cygwin32.h
2329 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2330 xm_defines=NO_STAB_H
2331 tmake_file=rs6000/t-winnt
2332 xmake_file=rs6000/x-cygwin32
2334 fixincludes=Makefile.in
2335 if [[ x$enable_threads = xyes ]]; then
2339 extra_headers=ppc-asm.h
2341 powerpcle-*-solaris2*)
2342 tm_file=rs6000/sol2.h
2343 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2344 xm_defines="USG POSIX"
2345 if [[ x$gas = xyes ]]
2347 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2349 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2351 xmake_file=rs6000/x-sysv4
2353 *-*-solaris2.[[0-4]])
2354 fixincludes=fixinc.svr4;;
2356 fixincludes=fixinc.math;;
2358 extra_headers=ppc-asm.h
2360 rs6000-ibm-aix3.[[01]]*)
2361 tm_file=rs6000/aix31.h
2362 xmake_file=rs6000/x-aix31
2365 rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*)
2366 tm_file=rs6000/aix3newas.h
2367 if [[ x$host != x$target ]]
2369 tmake_file=rs6000/t-xnewas
2371 tmake_file=rs6000/t-newas
2375 rs6000-ibm-aix[[456789]].* | powerpc-ibm-aix[[456789]].*)
2376 tm_file=rs6000/aix41.h
2377 if [[ x$host != x$target ]]
2379 tmake_file=rs6000/t-xnewas
2381 tmake_file=rs6000/t-newas
2383 xmake_file=rs6000/x-aix31
2393 tm_file=rs6000/mach.h
2394 xm_file="${xm_file} rs6000/xm-mach.h"
2395 xmake_file=rs6000/x-mach
2399 tm_file=rs6000/lynx.h
2400 xm_file=rs6000/xm-lynx.h
2401 tmake_file=rs6000/t-rs6000
2402 xmake_file=rs6000/x-lynx
2410 tmake_file="sh/t-sh t-rtems"
2419 xm_file="xm-alloca.h ${xm_file}"
2422 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2423 tm_file=sparc/vxsparc.h
2424 tmake_file=sparc/t-vxsparc
2426 thread_file='vxworks'
2429 tmake_file=sparc/t-sparcbare
2430 tm_file="sparc/aout.h libgloss.h"
2433 tm_file=sparc/netbsd.h
2434 # On NetBSD, the headers are already okay, except for math.h.
2435 fixincludes=fixinc.math
2443 tmake_file=sparc/t-elf
2444 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2448 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2449 xm_file="${xm_file} sparc/xm-linux.h"
2450 tm_file=sparc/linux-aout.h
2452 fixincludes=Makefile.in #On Linux, the headers are ok already.
2455 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2456 xm_file="${xm_file} sparc/xm-linux.h"
2458 tm_file=sparc/linux.h
2459 tmake_file="t-linux t-linux-gnulibc1"
2460 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2461 fixincludes=Makefile.in #On Linux, the headers are ok already.
2464 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2465 xm_file="${xm_file} sparc/xm-linux.h"
2467 tm_file=sparc/linux.h
2468 tmake_file="t-linux"
2469 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2470 fixincludes=Makefile.in #On Linux, the headers are ok already.
2472 if [[ x$enable_threads = xyes ]]; then
2477 if [[ x$gas = xyes ]]
2479 tm_file=sparc/lynx.h
2481 tm_file=sparc/lynx-ng.h
2483 xm_file=sparc/xm-lynx.h
2484 tmake_file=sparc/t-sunos41
2488 tmake_file="sparc/t-sparcbare t-rtems"
2489 tm_file=sparc/rtems.h
2492 if [[ x$gnu_ld = xyes ]]
2494 tm_file=sparc/sol2.h
2496 tm_file=sparc/sol2-sld.h
2498 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2499 xm_defines="USG POSIX"
2500 tmake_file=sparc/t-sol2
2501 xmake_file=sparc/x-sysv4
2502 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2504 *-*-solaris2.[[0-4]])
2505 fixincludes=fixinc.svr4;;
2507 fixincludes=fixinc.math;;
2510 if [[ x${enable_threads} = x ]]; then
2511 enable_threads=$have_pthread_h
2512 if [[ x${enable_threads} = x ]]; then
2513 enable_threads=$have_thread_h
2516 if [[ x${enable_threads} = xyes ]]; then
2517 if [[ x${have_pthread_h} = xyes ]]; then
2520 thread_file='solaris'
2525 tm_file=sparc/sunos4.h
2526 tmake_file=sparc/t-sunos40
2530 tm_file=sparc/sunos4.h
2531 tmake_file=sparc/t-sunos41
2533 if [[ x$gas = xyes ]]; then
2534 tm_file="${tm_file} sparc/sun4gas.h"
2538 tm_file=sparc/sun4o3.h
2542 tm_file=sparc/sysv4.h
2543 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2544 xm_defines="USG POSIX"
2546 xmake_file=sparc/x-sysv4
2547 extra_parts="crtbegin.o crtend.o"
2550 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
2551 tm_file=sparc/vxsim.h
2552 tmake_file=sparc/t-vxsparc
2553 xmake_file=sparc/x-sysv4
2556 tm_file="sparc/splet.h libgloss.h"
2557 tmake_file=sparc/t-splet
2560 tm_file="sparc/litecoff.h libgloss.h"
2561 tmake_file=sparc/t-sparclite
2564 tm_file="sparc/lite.h aoutos.h libgloss.h"
2565 tmake_file=sparc/t-sparclite
2568 tmake_file=sparc/t-sp64
2569 tm_file=sparc/sp64-aout.h
2572 tmake_file=sparc/t-sp64
2573 tm_file=sparc/sp64-elf.h
2574 extra_parts="crtbegin.o crtend.o"
2576 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2577 tmake_file=sparc/t-sp64
2578 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2579 tm_file=sparc/linux64.h
2581 fixincludes=Makefile.in # The headers are ok already.
2584 # This hasn't been upgraded to GCC 2.
2585 # tahoe-harris-*) # Harris tahoe, using COFF.
2586 # tm_file=tahoe/harris.h
2588 # tahoe-*-bsd*) # tahoe running BSD
2590 thumb-*-coff* | thumbel-*-coff*)
2592 out_file=arm/thumb.c
2593 xm_file=arm/xm-thumb.h
2594 md_file=arm/thumb.md
2595 tmake_file=arm/t-thumb
2597 # This hasn't been upgraded to GCC 2.
2604 tm_file="v850/v850.h"
2605 xm_file="v850/xm-v850.h"
2606 tmake_file=v850/t-v850
2607 if [[ x$stabs = xyes ]]
2609 tm_file="${tm_file} dbx.h"
2613 vax-*-bsd*) # vaxen running BSD
2617 vax-*-sysv*) # vaxen running system V
2618 tm_file="${tm_file} vax/vaxv.h"
2623 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2624 # On NetBSD, the headers are already okay, except for math.h.
2625 fixincludes=fixinc.math
2629 vax-*-ultrix*) # vaxen running ultrix
2630 tm_file="${tm_file} vax/ultrix.h"
2634 vax-*-vms*) # vaxen running VMS
2635 xm_file=vax/xm-vms.h
2639 vax-*-*) # vax default entry
2643 xm_file="${xm_file} xm-svr3"
2647 echo "Configuration $machine not supported" 1>&2
2654 ;; # Existing GNU/Linux systems do not use the GNU setup.
2656 # On the GNU system, the setup is just about the same on
2657 # each different CPU. The specific machines that GNU
2658 # supports are matched above and just set $cpu_type.
2659 xm_file="xm-gnu.h ${xm_file}"
2660 tm_file=${cpu_type}/gnu.h
2661 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2662 # GNU always uses ELF.
2664 # GNU tools are the only tools.
2667 # On GNU, the headers are already okay.
2668 fixincludes=Makefile.in
2669 xmake_file=x-linux # These details are the same as Linux.
2670 tmake_file=t-gnu # These are not.
2673 fixincludes=fixinc.svr4
2674 xmake_try_sysv=x-sysv
2675 install_headers_dir=install-headers-cpio
2678 install_headers_dir=install-headers-cpio
2682 # Distinguish i[34567]86
2683 # Also, do not run mips-tfile on MIPS if using gas.
2684 # Process --with-cpu= for PowerPC/rs6000
2685 target_cpu_default2=
2688 target_cpu_default2=1
2691 target_cpu_default2=2
2693 i686-*-* | i786-*-*)
2694 target_cpu_default2=3
2699 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
2702 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2705 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2708 target_cpu_default2="MASK_CPU_EV5"
2712 if [[ x$gas = xyes ]]
2714 if [[ "$target_cpu_default2" = "" ]]
2716 target_cpu_default2="MASK_GAS"
2718 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2723 case "x$with_cpu" in
2726 target_cpu_default2="TARGET_CPU_generic"
2729 # Distinguish cores, and major variants
2730 # arm7m doesn't exist, but D & I don't affect code
2731 xarm[23678] | xarm250 | xarm[67][01]0 \
2732 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
2733 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2734 | xstrongarm | xstrongarm110)
2735 target_cpu_default2="TARGET_CPU_$with_cpu"
2739 echo "--with-cpu must be passed a value" 1>&2
2744 if [[ x$pass2done = xyes ]]
2746 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2753 mips*-*-ecoff* | mips*-*-elf*)
2754 if [[ x$gas = xyes ]]
2756 if [[ x$gnu_ld = xyes ]]
2758 target_cpu_default2=20
2760 target_cpu_default2=16
2765 if [[ x$gas = xyes ]]
2767 target_cpu_default2=16
2770 powerpc*-*-* | rs6000-*-*)
2771 case "x$with_cpu" in
2775 xcommon | xpower | xpower2 | xpowerpc | xrios \
2776 | xrios1 | xrios2 | xrsc | xrsc1 \
2777 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2778 | x403 | x505 | x801 | x821 | x823 | x860)
2779 target_cpu_default2="\"$with_cpu\""
2783 echo "--with-cpu must be passed a value" 1>&2
2788 if [[ x$pass2done = xyes ]]
2790 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2797 case ".$with_cpu" in
2799 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2801 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
2802 target_cpu_default2="TARGET_CPU_$with_cpu"
2805 if [[ x$pass2done = xyes ]]
2807 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2815 if [[ "$target_cpu_default2" != "" ]]
2817 if [[ "$target_cpu_default" != "" ]]
2819 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2821 target_cpu_default=$target_cpu_default2
2825 # No need for collect2 if we have the GNU linker.
2832 # Save data on machine being used to compile GCC in build_xm_file.
2833 # Save data on host machine in vars host_xm_file and host_xmake_file.
2834 if [[ x$pass1done = x ]]
2836 if [[ x"$xm_file" = x ]]
2837 then build_xm_file=$cpu_type/xm-$cpu_type.h
2838 else build_xm_file=$xm_file
2840 build_xm_defines=$xm_defines
2841 build_install_headers_dir=$install_headers_dir
2842 build_exeext=$exeext
2845 if [[ x$pass2done = x ]]
2847 if [[ x"$xm_file" = x ]]
2848 then host_xm_file=$cpu_type/xm-$cpu_type.h
2849 else host_xm_file=$xm_file
2851 host_xm_defines=$xm_defines
2852 if [[ x"$xmake_file" = x ]]
2853 then xmake_file=$cpu_type/x-$cpu_type
2855 host_xmake_file="$xmake_file"
2856 host_truncate_target=$truncate_target
2857 host_extra_gcc_objs=$extra_gcc_objs
2858 host_extra_objs=$extra_host_objs
2865 extra_objs="${host_extra_objs} ${extra_objs}"
2867 # Default the target-machine variables that were not explicitly set.
2868 if [[ x"$tm_file" = x ]]
2869 then tm_file=$cpu_type/$cpu_type.h; fi
2871 if [[ x$extra_headers = x ]]
2872 then extra_headers=; fi
2874 if [[ x"$xm_file" = x ]]
2875 then xm_file=$cpu_type/xm-$cpu_type.h; fi
2877 if [[ x$md_file = x ]]
2878 then md_file=$cpu_type/$cpu_type.md; fi
2880 if [[ x$out_file = x ]]
2881 then out_file=$cpu_type/$cpu_type.c; fi
2883 if [[ x"$tmake_file" = x ]]
2884 then tmake_file=$cpu_type/t-$cpu_type
2887 if [[ x$float_format = x ]]
2888 then float_format=i64
2891 if [[ x$enable_haifa = x ]]
2894 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-*)
2899 # Say what files are being used for the output code and MD file.
2900 echo "Using \`$srcdir/config/$out_file' to output insns."
2901 echo "Using \`$srcdir/config/$md_file' as machine description file."
2904 for f in $tm_file; do
2907 if [[ $count = ax ]]; then
2908 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
2910 echo "Using the following target machine macro files:"
2911 for f in $tm_file; do
2912 echo " $srcdir/config/$f"
2917 for f in $host_xm_file; do
2920 if [[ $count = ax ]]; then
2921 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
2923 echo "Using the following host machine macro files:"
2924 for f in $host_xm_file; do
2925 echo " $srcdir/config/$f"
2929 if [[ "$host_xm_file" != "$build_xm_file" ]]; then
2931 for f in $build_xm_file; do
2934 if [[ $count = ax ]]; then
2935 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
2937 echo "Using the following build machine macro files:"
2938 for f in $build_xm_file; do
2939 echo " $srcdir/config/$f"
2944 if [[ x$thread_file = x ]]; then
2945 if [[ x$target_thread_file != x ]]; then
2946 thread_file=$target_thread_file
2948 thread_file='single'
2952 # Set up the header files.
2953 # $links is the list of header files to create.
2954 # $vars is the list of shell variables with file names to include.
2955 # auto-host.h is the file containing items generated by autoconf and is
2956 # the first file included by config.h.
2958 host_xm_file="auto-host.h ${host_xm_file}"
2960 # If host=build, it is correct to have hconfig include auto-host.h
2961 # as well. If host!=build, we are in error and need to do more
2962 # work to find out the build config parameters.
2963 if [[ x$host = x$build ]]
2965 build_xm_file="auto-host.h ${build_xm_file}"
2967 # We create a subdir, then run autoconf in the subdir.
2968 # To prevent recursion we set host and build for the new
2969 # invocation of configure to the build for this invocation
2976 /*) realsrcdir=${srcdir};;
2977 *) realsrcdir=../${srcdir};;
2979 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
2980 --target=$target --host=$build --build=$build
2982 # We just finished tests for the build machine, so rename
2983 # the file auto-build.h in the gcc directory.
2984 mv auto-host.h ../auto-build.h
2987 build_xm_file="auto-build.h ${build_xm_file}"
2990 vars="host_xm_file tm_file xm_file build_xm_file"
2991 links="config.h tm.h tconfig.h hconfig.h"
2992 defines="host_xm_defines null_defines xm_defines build_xm_defines"
2995 if [[ -f config.status ]]; then mv -f config.status config.bak; fi
2998 while [[ -n "$vars" ]]
3000 set $vars; var=$1; shift; vars=$*
3001 set $links; link=$1; shift; links=$*
3002 set $defines; define=$1; shift; defines=$*
3006 # Define TARGET_CPU_DEFAULT if the system wants one.
3007 # This substitutes for lots of *.h files.
3008 if [[ "$target_cpu_default" != "" -a $link = tm.h ]]
3010 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3013 for file in `eval echo '$'$var`; do
3014 echo "#include \"$file\"" >>$link
3017 for def in `eval echo '$'$define`; do
3018 echo "#ifndef $def" >>$link
3019 echo "#define $def" >>$link
3020 echo "#endif" >>$link
3024 # Truncate the target if necessary
3025 if [[ x$host_truncate_target != x ]]; then
3026 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3029 # Get the version number from the toplevel
3030 version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
3032 # Get an absolute path to the GCC top-level source directory
3038 # Conditionalize the makefile for this host machine.
3039 # Make-host contains the concatenation of all host makefile fragments
3040 # [there can be more than one]. This file is built by configure.frag.
3041 host_overrides=Make-host
3042 dep_host_xmake_file=
3043 for f in .. ${host_xmake_file}
3045 if [[ -f ${srcdir}/config/$f ]]
3047 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3051 # Conditionalize the makefile for this target machine.
3052 # Make-target contains the concatenation of all host makefile fragments
3053 # [there can be more than one]. This file is built by configure.frag.
3054 target_overrides=Make-target
3056 for f in .. ${tmake_file}
3058 if [[ -f ${srcdir}/config/$f ]]
3060 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3064 # If the host doesn't support symlinks, modify CC in
3065 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3066 # Otherwise, we can use "CC=$(CC)".
3068 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3070 cc_set_by_configure="\$(CC)"
3071 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3074 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3076 symbolic_link="cp -p"
3080 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3081 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3085 out_object_file=`basename $out_file .c`.o
3088 for f in $tm_file; do
3089 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3093 for f in $host_xm_file; do
3094 if test $f != "auto-host.h"; then
3095 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3097 host_xm_file_list="${host_xm_file_list} auto-host.h"
3102 for f in $build_xm_file; do
3103 if test $f != "auto-build.h"; then
3104 if test $f != "auto-host.h"; then
3105 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3107 build_xm_file_list="${build_xm_file_list} auto-host.h"
3110 build_xm_file_list="${build_xm_file_list} auto-build.h"
3114 # Define macro CROSS_COMPILE in compilation
3115 # if this is a cross-compiler.
3116 # Also use all.cross instead of all.internal
3117 # and add cross-make to Makefile.
3118 cross_overrides="/dev/null"
3119 if [[ x$host != x$target ]]
3121 cross_defines="CROSS=-DCROSS_COMPILE"
3122 cross_overrides="${topdir}/cross-make"
3125 # When building gcc with a cross-compiler, we need to fix a few things.
3126 # This must come after cross-make as we want all.build to override
3128 build_overrides="/dev/null"
3129 if [[ x$build != x$host ]]
3131 build_overrides="${topdir}/build-make"
3134 # Expand extra_headers to include complete path.
3135 # This substitutes for lots of t-* files.
3137 if [[ "x$extra_headers" = x ]]
3140 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3141 for file in $extra_headers;
3143 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3147 # Add a definition of USE_COLLECT2 if system wants one.
3148 # Also tell toplev.c what to do.
3149 # This substitutes for lots of t-* files.
3150 if [[ x$use_collect2 = x ]]
3155 will_use_collect2="collect2"
3156 maybe_use_collect2="-DUSE_COLLECT2"
3160 # Set MD_DEPS if the real md file is in md.pre-cpp.
3161 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3162 # for line oriented comments, so we must always use a GNU cpp. If
3163 # building gcc with a cross compiler, use the cross compiler just
3164 # built. Otherwise, we can use the cpp just built.
3166 if [[ "x$md_cppflags" = x ]]
3168 md_file_sub=$srcdir/config/$md_file
3173 # If we have gas in the build tree, make a link to it.
3174 if [[ -f ../gas/Makefile ]]; then
3175 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3178 # If we have ld in the build tree, make a link to it.
3179 if [[ -f ../ld/Makefile ]]; then
3180 # if [[ x$use_collect2 = x ]]; then
3181 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3183 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3187 # Figure out what language subdirectories are present.
3189 for lang in ${srcdir}/*/config-lang.in ..
3193 # The odd quoting in the next line works around
3194 # an apparent bug in bash 1.12 on linux.
3195 ${srcdir}/[[*]]/config-lang.in) ;;
3196 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
3200 # Make gthr-default.h if we have a thread file.
3202 if [[ $thread_file != single ]]; then
3203 rm -f gthr-default.h
3204 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3205 gthread_flags=-DHAVE_GTHR_DEFAULT
3207 AC_SUBST(gthread_flags)
3209 # Make empty files to contain the specs and options for each language.
3210 # Then add #include lines to for a compiler that has specs and/or options.
3214 rm -f specs.h options.h
3215 touch specs.h options.h
3216 for subdir in . $subdirs
3218 if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
3219 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3220 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3222 if [[ -f $srcdir/$subdir/lang-options.h ]]; then
3223 echo "#include \"$subdir/lang-options.h\"" >>options.h
3224 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3228 # These (without "all_") are set in each config-lang.in.
3229 # `language' must be a single word so is spelled singularly.
3235 all_outputs=Makefile
3236 # List of language makefile fragments.
3241 # Add the language fragments.
3242 # Languages are added via two mechanisms. Some information must be
3243 # recorded in makefile variables, these are defined in config-lang.in.
3244 # We accumulate them and plug them into the main Makefile.
3245 # The other mechanism is a set of hooks for each of the main targets
3246 # like `clean', `install', etc.
3248 language_fragments="Make-lang"
3249 language_hooks="Make-hooks"
3252 for s in .. $subdirs
3264 . ${srcdir}/$s/config-lang.in
3265 if [[ "x$language" = x ]]
3267 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3270 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3271 all_languages="$all_languages $language"
3272 if [[ "x$boot_language" = xyes ]]
3274 all_boot_languages="$all_boot_languages $language"
3276 all_compilers="$all_compilers $compilers"
3277 all_stagestuff="$all_stagestuff $stagestuff"
3278 all_diff_excludes="$all_diff_excludes $diff_excludes"
3279 all_headers="$all_headers $headers"
3280 all_outputs="$all_outputs $outputs"
3281 if [[ x$outputs = x ]]
3283 oldstyle_subdirs="$oldstyle_subdirs $s"
3285 all_lib2funcs="$all_lib2funcs $lib2funcs"
3289 # Since we can't use `::' targets, we link each language in
3290 # with a set of hooks, reached indirectly via lang.${target}.
3294 target_list="all.build all.cross start.encap rest.encap \
3296 install-normal install-common install-info install-man \
3298 mostlyclean clean distclean extraclean maintainer-clean \
3299 stage1 stage2 stage3 stage4"
3300 for t in $target_list
3303 for l in .. $all_languages
3305 if [[ $l != ".." ]]; then
3309 echo "lang.$t: $x" >> Make-hooks
3312 # If we're not building in srcdir, create .gdbinit.
3314 if [[ ! -f Makefile.in ]]; then
3315 echo "dir ." > .gdbinit
3316 echo "dir ${srcdir}" >> .gdbinit
3317 if [[ x$gdb_needs_out_file_path = xyes ]]
3319 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3321 if [[ "x$subdirs" != x ]]; then
3324 echo "dir ${srcdir}/$s" >> .gdbinit
3327 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3330 # If this is using newlib, then define inhibit_libc in
3331 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3332 # libgcc.a, but that's OK because newib should have its own version of
3335 if [[ x$with_newlib = xyes ]]; then
3336 inhibit_libc=-Dinhibit_libc
3338 AC_SUBST(inhibit_libc)
3340 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3343 if [[ x$enable_haifa = xyes ]]; then
3344 echo "Using the Haifa scheduler."
3346 sched_cflags=-DHAIFA
3348 AC_SUBST(sched_prefix)
3349 AC_SUBST(sched_cflags)
3350 if [[ x$enable_haifa != x ]]; then
3351 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3352 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3353 if [[ -f $x ]]; then
3360 # Process the language and host/target makefile fragments.
3361 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3363 # Substitute configuration variables
3365 AC_SUBST(all_languages)
3366 AC_SUBST(all_boot_languages)
3367 AC_SUBST(all_compilers)
3368 AC_SUBST(all_lang_makefiles)
3369 AC_SUBST(all_stagestuff)
3370 AC_SUBST(all_diff_excludes)
3371 AC_SUBST(all_lib2funcs)
3372 AC_SUBST(all_headers)
3373 AC_SUBST(extra_passes)
3374 AC_SUBST(extra_programs)
3375 AC_SUBST(extra_parts)
3376 AC_SUBST(extra_c_objs)
3377 AC_SUBST(extra_c_flags)
3378 AC_SUBST(extra_objs)
3379 AC_SUBST(host_extra_gcc_objs)
3380 AC_SUBST(extra_headers_list)
3381 AC_SUBST(dep_host_xmake_file)
3382 AC_SUBST(dep_tmake_file)
3384 AC_SUBST(out_object_file)
3386 AC_SUBST(tm_file_list)
3387 AC_SUBST(build_xm_file_list)
3388 AC_SUBST(host_xm_file_list)
3389 AC_SUBST(lang_specs_files)
3390 AC_SUBST(lang_options_files)
3391 AC_SUBST(thread_file)
3393 AC_SUBST(local_prefix)
3394 AC_SUBST(gxx_include_dir)
3395 AC_SUBST(fixincludes)
3396 AC_SUBST(build_install_headers_dir)
3397 AC_SUBST(build_exeext)
3398 AC_SUBST(host_exeext)
3399 AC_SUBST(float_format)
3400 AC_SUBST(will_use_collect2)
3401 AC_SUBST(maybe_use_collect2)
3402 AC_SUBST(cc_set_by_configure)
3403 AC_SUBST(stage_prefix_set_by_configure)
3405 AC_SUBST(symbolic_link)
3407 AC_SUBST_FILE(target_overrides)
3408 AC_SUBST_FILE(host_overrides)
3409 AC_SUBST(cross_defines)
3410 AC_SUBST_FILE(cross_overrides)
3411 AC_SUBST_FILE(build_overrides)
3412 AC_SUBST_FILE(language_fragments)
3413 AC_SUBST_FILE(language_hooks)
3415 # Echo that links are built
3416 if [[ x$host = x$target ]]
3424 if [[ x$host != x$build ]]
3426 str3=" on a $build system"
3429 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3434 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3436 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3438 echo " ${str2}${str3}." 1>&2
3441 # Truncate the target if necessary
3442 if [[ x$host_truncate_target != x ]]; then
3443 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3446 # Configure the subdirectories
3447 # AC_CONFIG_SUBDIRS($subdirs)
3449 # Create the Makefile
3450 # and configure language subdirectories
3451 AC_OUTPUT($all_outputs,
3453 . $srcdir/configure.lang
3454 case x$CONFIG_HEADERS in
3455 xauto-host.h:config.in)
3458 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3459 # bootstrapping and the installation procedure can still use
3460 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3461 # FLAGS_TO_PASS has been modified to solve the problem there.
3462 # This is virtually a duplicate of what happens in configure.lang; we do
3463 # an extra check to make sure this only happens if ln -s can be used.
3464 if [[ "$symbolic_link" = "ln -s" ]]; then
3465 for d in .. ${subdirs} ; do
3466 if [[ $d != .. ]]; then
3469 for t in stage1 stage2 stage3 stage4 include
3472 $symbolic_link ../$t $t 2>/dev/null
3483 target_alias='${target_alias}'
3485 subdirs='${subdirs}'
3486 oldstyle_subdirs='${oldstyle_subdirs}'
3487 symbolic_link='${symbolic_link}'
3488 program_transform_set='${program_transform_set}'
3489 program_transform_name='${program_transform_name}'
3490 dep_host_xmake_file='${dep_host_xmake_file}'
3491 host_xmake_file='${host_xmake_file}'
3492 dep_tmake_file='${dep_tmake_file}'
3493 tmake_file='${tmake_file}'
3494 thread_file='${thread_file}'
3495 version='${version}'
3496 local_prefix='${local_prefix}'
3497 build_install_headers_dir='${build_install_headers_dir}'
3498 build_exeext='${build_exeext}'
3499 host_exeext='${host_exeext}'
3500 out_file='${out_file}'
3501 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3502 SET_MAKE='${SET_MAKE}'
3503 target_list='${target_list}'
3504 target_overrides='${target_overrides}'
3505 host_overrides='${host_overrides}'
3506 cross_defines='${cross_defines}'
3507 cross_overrides='${cross_overrides}'
3508 build_overrides='${build_overrides}'