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 stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.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 bcopy bzero bcmp \
184 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
187 GCC_FUNC_VFPRINTF_DOPRNT
190 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
191 index rindex getenv atol sbrk abort atof)
203 build_install_headers_dir=install-headers-tar
208 host_truncate_target=
211 # Decode the host machine, then the target machine.
212 # For the host machine, we save the xm_file variable as host_xm_file;
213 # then we decode the target machine and forget everything else
214 # that came from the host machine.
215 for machine in $build $host $target; do
229 # Set this to force installation and use of collect2.
231 # Set this to override the default target model.
233 # Set this to control which fixincludes program to use.
234 if [[ x$fast_fixinc != xyes ]] ; then
235 fixincludes=fixincludes
236 else fixincludes=fixinc.sh ; fi
237 # Set this to control how the header file directory is installed.
238 install_headers_dir=install-headers-tar
239 # Set this to a non-empty list of args to pass to cpp if the target
240 # wants its .md file passed through cpp.
242 # Set this if directory names should be truncated to 14 characters.
244 # Set this if gdb needs a dir command with `dirname $out_file`
245 gdb_needs_out_file_path=
246 # Set this if the build machine requires executables to have a
249 # Set this to control which thread package will be used.
251 # Reinitialize these from the flag values every loop pass, since some
252 # configure entries modify them.
254 gnu_ld="$gnu_ld_flag"
256 # Set default cpu_type, tm_file and xm_file so it can be updated in
257 # each machine entry.
258 cpu_type=`echo $machine | sed 's/-.*$//'`
292 tm_file=${cpu_type}/${cpu_type}.h
293 xm_file=${cpu_type}/xm-${cpu_type}.h
295 # Set the default macros to define for GNU/Linux systems.
298 xm_defines="HAVE_ATEXIT POSIX NO_STAB_H BSTRING"
303 # Support site-specific machine types.
305 cpu_type=`echo $machine | sed -e 's/-.*//'`
306 rest=`echo $machine | sed -e "s/$cpu_type-//"`
307 xm_file=${cpu_type}/xm-$rest.h
308 tm_file=${cpu_type}/$rest.h
309 if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \
310 then xmake_file=${cpu_type}/x-$rest; \
313 if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \
314 then tmake_file=${cpu_type}/t-$rest; \
320 a29k-*-bsd* | a29k-*-sym1*)
321 tm_file="${tm_file} a29k/unix.h"
323 xmake_file=a29k/x-unix
326 a29k-*-udi | a29k-*-coff)
327 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
328 tmake_file=a29k/t-a29kbare
331 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
332 tmake_file=a29k/t-vx29k
333 extra_parts="crtbegin.o crtend.o"
334 thread_file='vxworks'
336 a29k-*-*) # Default a29k environment.
339 alpha*-*-linux-gnuecoff*)
340 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
342 target_cpu_default="MASK_GAS"
347 alpha*-*-linux-gnulibc1*)
348 tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
350 target_cpu_default="MASK_GAS"
351 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
352 extra_parts="crtbegin.o crtend.o"
355 if [[ x$enable_threads = xyes ]]; then
360 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
362 target_cpu_default="MASK_GAS"
363 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
364 extra_parts="crtbegin.o crtend.o"
366 fixincludes=Makefile.in
368 if [[ x$enable_threads = xyes ]]; then
373 if [[ x$stabs = xyes ]]
375 tm_file="${tm_file} dbx.h"
377 if [[ x$gas != xyes ]]
379 extra_passes="mips-tfile mips-tdump"
384 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
387 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
390 tm_file="${tm_file} alpha/osf.h"
391 # Some versions of OSF4 (specifically X4.0-9 296.7) have
392 # a broken tar, so we use cpio instead.
393 install_headers_dir=install-headers-cpio
397 *-*-osf4.0[[b-z]] | *-*-osf4.[[1-9]]*)
398 target_cpu_default=MASK_SUPPORT_ARCH
403 tm_file="${tm_file} alpha/win-nt.h"
404 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
406 xmake_file=winnt/x-winnt
407 extra_host_objs=oldnames.o
408 extra_gcc_objs="spawnv.o oldnames.o"
409 fixincludes=fixinc.winnt
410 if [[ x$gnu_ld != xyes ]]
412 extra_programs=ld.exe
414 if [[ x$enable_threads = xyes ]]; then
420 xm_file="${xm_file} alpha/xm-vms.h"
421 tmake_file=alpha/t-vms
422 fixincludes=Makefile.in
425 extra_parts="crtinit.o crtfini.o"
427 arm-*-coff* | armel-*-coff*)
429 tmake_file=arm/t-bare
431 arm-*-riscix1.[[01]]*) # Acorn RISC machine (early versions)
432 tm_file=arm/riscix1-1.h
435 arm-*-riscix*) # Acorn RISC machine
436 if [[ x$gas = xyes ]]
438 tm_file=arm/rix-gas.h
442 xmake_file=arm/x-riscix
443 tmake_file=arm/t-riscix
446 arm-semi-aout | armel-semi-aout)
448 tmake_file=arm/t-semi
449 fixincludes=Makefile.in # There is nothing to fix
451 arm-semi-aof | armel-semi-aof)
452 tm_file=arm/semiaof.h
453 tmake_file=arm/t-semiaof
454 fixincludes=Makefile.in # There is nothing to fix
458 xm_file="xm-siglist.h ${xm_file}"
459 tmake_file="t-netbsd arm/t-netbsd"
460 # On NetBSD, the headers are already okay, except for math.h.
461 fixincludes=fixinc.math
463 arm-*-linux-gnuaout*) # ARM GNU/Linux
466 tm_file=arm/linux-gas.h
467 tmake_file=arm/t-linux
468 fixincludes=Makefile.in
473 tmake_file=arm/t-bare
475 c1-convex-*) # Convex C1
478 fixincludes=Makefile.in
480 c2-convex-*) # Convex C2
483 fixincludes=Makefile.in
488 fixincludes=Makefile.in
493 fixincludes=Makefile.in
496 target_cpu_default=16
498 fixincludes=Makefile.in
500 clipper-intergraph-clix*)
501 tm_file="${tm_file} svr3.h clipper/clix.h"
502 xm_file=clipper/xm-clix.h
503 xmake_file=clipper/x-clix
504 extra_headers=va-clipper.h
505 extra_parts="crtbegin.o crtend.o"
506 install_headers_dir=install-headers-cpio
513 # This hasn't been upgraded to GCC 2.
514 # fx80-alliant-*) # Alliant FX/80
520 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
521 xm_file=pa/xm-papro.h
526 tm_file="${tm_file} pa/pa-osf.h"
528 fixincludes=Makefile.in
531 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
532 xm_file=pa/xm-papro.h
536 tm_file="${tm_file} pa/pa-osf.h"
538 fixincludes=Makefile.in
543 fixincludes=Makefile.in
547 fixincludes=Makefile.in
550 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
551 xm_file=pa/xm-pahpux.h
552 xmake_file=pa/x-pa-hpux
553 if [[ x$gas = xyes ]]
555 tm_file="${tm_file} pa/gas.h"
557 install_headers_dir=install-headers-cpio
560 hppa1.0-*-hpux8.0[[0-2]]*)
561 tm_file="${tm_file} pa/pa-hpux.h"
562 xm_file=pa/xm-pahpux.h
563 xmake_file=pa/x-pa-hpux
564 if [[ x$gas = xyes ]]
566 tm_file="${tm_file} pa/pa-gas.h"
568 tm_file="pa/pa-oldas.h ${tm_file}"
570 install_headers_dir=install-headers-cpio
573 hppa1.1-*-hpux8.0[[0-2]]*)
575 tm_file="${tm_file} pa/pa-hpux.h"
576 xm_file=pa/xm-pahpux.h
577 xmake_file=pa/x-pa-hpux
578 if [[ x$gas = xyes ]]
580 tm_file="${tm_file} pa/pa-gas.h"
582 tm_file="pa/pa-oldas.h ${tm_file}"
584 install_headers_dir=install-headers-cpio
589 tm_file="${tm_file} pa/pa-hpux.h"
590 xm_file=pa/xm-pahpux.h
591 xmake_file=pa/x-pa-hpux
592 if [[ x$gas = xyes ]]
594 tm_file="${tm_file} pa/pa-gas.h"
596 install_headers_dir=install-headers-cpio
600 tm_file="${tm_file} pa/pa-hpux.h"
601 xm_file=pa/xm-pahpux.h
602 xmake_file=pa/x-pa-hpux
603 if [[ x$gas = xyes ]]
605 tm_file="${tm_file} pa/pa-gas.h"
607 install_headers_dir=install-headers-cpio
612 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
613 xm_file=pa/xm-pahpux.h
614 xmake_file=pa/x-pa-hpux
616 if [[ x$gas = xyes ]]
618 tm_file="${tm_file} pa/pa-gas.h"
620 if [[ x$enable_threads = x ]]; then
621 enable_threads=$have_pthread_h
623 if [[ x$enable_threads = xyes ]]; then
625 tmake_file="${tmake_file} pa/t-dce-thr"
627 install_headers_dir=install-headers-cpio
631 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
632 xm_file=pa/xm-pahpux.h
633 xmake_file=pa/x-pa-hpux
634 if [[ x$gas = xyes ]]
636 tm_file="${tm_file} pa/pa-gas.h"
638 if [[ x$enable_threads = x ]]; then
639 enable_threads=$have_pthread_h
641 if [[ x$enable_threads = xyes ]]; then
643 tmake_file="${tmake_file} pa/t-dce-thr"
645 install_headers_dir=install-headers-cpio
650 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
651 xm_file=pa/xm-pahpux.h
652 xmake_file=pa/x-pa-hpux
653 if [[ x$gas = xyes ]]
655 tm_file="${tm_file} pa/pa-gas.h"
657 install_headers_dir=install-headers-cpio
661 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
662 xm_file=pa/xm-pahpux.h
663 xmake_file=pa/x-pa-hpux
664 if [[ x$gas = xyes ]]
666 tm_file="${tm_file} pa/pa-gas.h"
668 install_headers_dir=install-headers-cpio
673 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
674 xm_file=pa/xm-pahpux.h
675 xmake_file=pa/x-pa-hpux
676 if [[ x$gas = xyes ]]
678 tm_file="${tm_file} pa/pa-gas.h"
680 install_headers_dir=install-headers-cpio
684 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
685 xm_file=pa/xm-pahpux.h
686 xmake_file=pa/x-pa-hpux
687 if [[ x$gas = xyes ]]
689 tm_file="${tm_file} pa/pa-gas.h"
691 install_headers_dir=install-headers-cpio
697 fixincludes=Makefile.in
701 i[[34567]]86-ibm-aix*) # IBM PS/2 running AIX
702 if [[ x$gas = xyes ]]
704 tm_file=i386/aix386.h
705 extra_parts="crtbegin.o crtend.o"
706 tmake_file=i386/t-crtstuff
708 tm_file=i386/aix386ng.h
711 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
713 xmake_file=i386/x-aix
715 i[[34567]]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
716 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
717 xm_defines="USG POSIX SMALL_ARG_MAX"
718 xmake_file=i386/x-ncr3000
719 if [[ x$stabs = xyes -a x$gas = xyes ]]
721 tm_file=i386/sysv4gdb.h
725 extra_parts="crtbegin.o crtend.o"
726 tmake_file=i386/t-crtpic
730 xm_file=i386/xm-next.h
731 tmake_file=i386/t-next
732 xmake_file=i386/x-next
733 extra_objs=nextstep.o
734 if [[ x$enable_threads = xyes ]]; then
738 i[[34567]]86-sequent-bsd*) # 80386 from Sequent
740 if [[ x$gas = xyes ]]
742 tm_file=i386/seq-gas.h
744 tm_file=i386/sequent.h
747 i[[34567]]86-sequent-ptx1*)
748 xm_defines="USG SVR3"
749 xmake_file=i386/x-sysv3
750 tm_file=i386/seq-sysv3.h
751 tmake_file=i386/t-crtstuff
752 fixincludes=fixinc.ptx
753 extra_parts="crtbegin.o crtend.o"
754 install_headers_dir=install-headers-cpio
756 i[[34567]]86-sequent-ptx2* | i[[34567]]86-sequent-sysv3*)
757 xm_defines="USG SVR3"
758 xmake_file=i386/x-sysv3
759 tm_file=i386/seq2-sysv3.h
760 tmake_file=i386/t-crtstuff
761 extra_parts="crtbegin.o crtend.o"
762 fixincludes=fixinc.ptx
763 install_headers_dir=install-headers-cpio
765 i[[34567]]86-sequent-ptx4* | i[[34567]]86-sequent-sysv4*)
766 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
767 xm_defines="USG POSIX SMALL_ARG_MAX"
769 tm_file=i386/ptx4-i.h
771 extra_parts="crtbegin.o crtend.o"
772 fixincludes=fixinc.ptx
773 install_headers_dir=install-headers-cpio
775 i386-sun-sunos*) # Sun i386 roadrunner
780 i[[34567]]86-wrs-vxworks*)
781 tm_file=i386/vxi386.h
782 tmake_file=i386/t-i386bare
784 i[[34567]]86-*-aout*)
785 tm_file=i386/i386-aout.h
786 tmake_file=i386/t-i386bare
788 i[[34567]]86-*-bsdi* | i[[34567]]86-*-bsd386*)
789 tm_file=i386/bsd386.h
790 # tmake_file=t-libc-ok
793 tm_file=i386/386bsd.h
794 # tmake_file=t-libc-ok
795 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
798 i[[34567]]86-*-freebsdelf*)
799 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
800 # On FreeBSD, the headers are already ok, except for math.h.
801 fixincludes=fixinc.math
802 tmake_file=i386/t-freebsd
807 i[[34567]]86-*-freebsd*)
808 tm_file=i386/freebsd.h
809 # On FreeBSD, the headers are already ok, except for math.h.
810 fixincludes=fixinc.math
811 tmake_file=i386/t-freebsd
813 i[[34567]]86-*-netbsd*)
814 tm_file=i386/netbsd.h
815 # On NetBSD, the headers are already okay, except for math.h.
816 fixincludes=fixinc.math
819 i[[34567]]86-*-coff*)
820 tm_file=i386/i386-coff.h
821 tmake_file=i386/t-i386bare
823 i[[34567]]86-*-isc*) # 80386 running ISC system
824 xm_file="${xm_file} i386/xm-isc.h"
825 xm_defines="USG SVR3"
827 i[[34567]]86-*-isc[[34]]*)
828 xmake_file=i386/x-isc3
831 xmake_file=i386/x-isc
834 if [[ x$gas = xyes -a x$stabs = xyes ]]
836 tm_file=i386/iscdbx.h
837 tmake_file=i386/t-svr3dbx
838 extra_parts="svr3.ifile svr3z.ifile"
840 tm_file=i386/isccoff.h
841 tmake_file=i386/t-crtstuff
842 extra_parts="crtbegin.o crtend.o"
844 install_headers_dir=install-headers-cpio
846 i[[34567]]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
847 # with a.out format using
849 xmake_file=x-linux-aout
850 tmake_file="t-linux-aout i386/t-crtstuff"
851 tm_file=i386/linux-oldld.h
852 fixincludes=Makefile.in #On Linux, the headers are ok already.
855 i[[34567]]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
857 xmake_file=x-linux-aout
858 tmake_file="t-linux-aout i386/t-crtstuff"
859 tm_file=i386/linux-aout.h
860 fixincludes=Makefile.in #On Linux, the headers are ok already.
863 i[[34567]]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
864 # with ELF format using the
865 # GNU/Linux C library 5
868 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
869 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
870 fixincludes=Makefile.in #On Linux, the headers are ok already.
872 if [[ x$enable_threads = xyes ]]; then
876 i[[34567]]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
877 # with ELF format using glibc 2
878 # aka GNU/Linux C library 6
881 tmake_file="t-linux i386/t-crtstuff"
882 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
883 fixincludes=Makefile.in #On Linux, the headers are ok already.
885 if [[ x$enable_threads = xyes ]]; then
891 i[[34567]]86-go32-msdos | i[[34567]]86-*-go32*)
892 xm_file=i386/xm-go32.h
894 tmake_file=i386/t-go32
896 i[[34567]]86-pc-msdosdjgpp*)
897 xm_file=i386/xm-go32.h
899 tmake_file=i386/t-go32
903 i[[34567]]86-moss-msdos* | i[[34567]]86-*-moss*)
906 fixincludes=Makefile.in
910 i[[34567]]86-*-lynxos*)
911 if [[ x$gas = xyes ]]
915 tm_file=i386/lynx-ng.h
917 xm_file=i386/xm-lynx.h
918 tmake_file=i386/t-i386bare
921 i[[34567]]86-*-mach*)
923 # tmake_file=t-libc-ok
926 i[[34567]]86-*-osfrose*) # 386 using OSF/rose
927 if [[ x$elf = xyes ]]
929 tm_file=i386/osfelf.h
932 tm_file=i386/osfrose.h
935 xm_file="i386/xm-osf.h ${xm_file}"
936 xmake_file=i386/x-osfrose
937 tmake_file=i386/t-osf
940 i[[34567]]86-go32-rtems*)
942 xm_file=i386/xm-go32.h
943 tm_file=i386/go32-rtems.h
944 tmake_file="i386/t-go32 t-rtems"
946 i[[34567]]86-*-rtemself*)
948 tm_file=i386/rtemself.h
949 tmake_file="i386/t-i386bare t-rtems"
951 i[[34567]]86-*-rtems*)
954 tmake_file="i386/t-i386bare t-rtems"
956 i[[34567]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
957 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
958 xm_defines="USG SVR3"
959 xmake_file=i386/x-sco5
960 fixincludes=fixinc.sco
961 install_headers_dir=install-headers-cpio
963 tmake_file=i386/t-sco5
964 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
966 i[[34567]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
967 xm_file="${xm_file} i386/xm-sco.h"
968 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
969 xmake_file=i386/x-sco4
970 fixincludes=fixinc.sco
971 install_headers_dir=install-headers-cpio
972 if [[ x$stabs = xyes ]]
974 tm_file=i386/sco4dbx.h
975 tmake_file=i386/t-svr3dbx
976 extra_parts="svr3.ifile svr3z.rfile"
979 tmake_file=i386/t-crtstuff
980 extra_parts="crtbegin.o crtend.o"
984 i[[34567]]86-*-sco*) # 80386 running SCO system
985 xm_file=i386/xm-sco.h
986 xmake_file=i386/x-sco
987 install_headers_dir=install-headers-cpio
988 if [[ x$stabs = xyes ]]
990 tm_file=i386/scodbx.h
991 tmake_file=i386/t-svr3dbx
992 extra_parts="svr3.ifile svr3z.rfile"
995 extra_parts="crtbegin.o crtend.o"
996 tmake_file=i386/t-crtstuff
1000 i[[34567]]86-*-solaris2*)
1001 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1002 xm_defines="USG POSIX SMALL_ARG_MAX"
1003 if [[ x$stabs = xyes ]]
1005 tm_file=i386/sol2dbg.h
1009 tmake_file=i386/t-sol2
1010 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1013 *-*-solaris2.[[0-4]])
1014 fixincludes=fixinc.svr4;;
1016 fixincludes=fixinc.math;;
1018 if [[ x$enable_threads = xyes ]]; then
1019 thread_file='solaris'
1022 i[[34567]]86-*-sysv5*) # Intel x86 on System V Release 5
1023 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1024 xm_defines="USG POSIX"
1025 tm_file=i386/sysv4.h
1026 if [[ x$stabs = xyes ]]
1028 tm_file="${tm_file} dbx.h"
1030 tmake_file=i386/t-crtpic
1032 extra_parts="crtbegin.o crtend.o"
1033 fixincludes=Makefile.in # The headers are just fine, thank you.
1035 i[[34567]]86-*-sysv4*) # Intel 80386's running system V.4
1036 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1037 xm_defines="USG POSIX SMALL_ARG_MAX"
1038 tm_file=i386/sysv4.h
1039 if [[ x$stabs = xyes ]]
1041 tm_file="${tm_file} dbx.h"
1043 tmake_file=i386/t-crtpic
1045 extra_parts="crtbegin.o crtend.o"
1047 i[[34567]]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1049 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1050 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1051 fixincludes=Makefile.in #Don't do it on OSF/1
1052 if [[ x$stabs = xyes ]]
1054 tm_file=i386/osf1elfgdb.h
1056 tm_file=i386/osf1elf.h
1058 tmake_file=i386/t-osf1elf
1059 xmake_file=i386/x-osf1elf
1060 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1062 i[[34567]]86-*-sysv*) # Intel 80386's running system V
1063 xm_defines="USG SVR3"
1064 xmake_file=i386/x-sysv3
1065 if [[ x$gas = xyes ]]
1067 if [[ x$stabs = xyes ]]
1069 tm_file=i386/svr3dbx.h
1070 tmake_file=i386/t-svr3dbx
1071 extra_parts="svr3.ifile svr3z.rfile"
1073 tm_file=i386/svr3gas.h
1074 extra_parts="crtbegin.o crtend.o"
1075 tmake_file=i386/t-crtstuff
1078 tm_file=i386/sysv3.h
1079 extra_parts="crtbegin.o crtend.o"
1080 tmake_file=i386/t-crtstuff
1083 i386-*-vsta) # Intel 80386's running VSTa kernel
1084 xm_file="${xm_file} i386/xm-vsta.h"
1086 tmake_file=i386/t-vsta
1087 xmake_file=i386/x-vsta
1089 i[[34567]]86-*-pe | i[[34567]]86-*-cygwin32)
1090 xm_file="${xm_file} i386/xm-cygwin32.h"
1091 tmake_file=i386/t-cygwin32
1092 tm_file=i386/cygwin32.h
1093 xmake_file=i386/x-cygwin32
1095 fixincludes=Makefile.in
1096 if [[ x$enable_threads = xyes ]]; then
1101 i[[34567]]86-*-mingw32*)
1102 tm_file=i386/mingw32.h
1103 xm_file="${xm_file} i386/xm-mingw32.h"
1104 tmake_file=i386/t-cygwin32
1106 xmake_file=i386/x-cygwin32
1107 fixincludes=Makefile.in
1108 if [[ x$enable_threads = xyes ]]; then
1115 *minwg32crt* | *mingw32*)
1116 tm_file="${tm_file} i386/crtdll.h"
1120 i[[34567]]86-*-winnt3*)
1121 tm_file=i386/win-nt.h
1122 out_file=i386/i386.c
1123 xm_file="xm-winnt.h ${xm_file}"
1124 xmake_file=winnt/x-winnt
1125 tmake_file=i386/t-winnt
1126 extra_host_objs="winnt.o oldnames.o"
1127 extra_gcc_objs="spawnv.o oldnames.o"
1128 fixincludes=fixinc.winnt
1129 if [[ x$gnu_ld != xyes ]]
1131 extra_programs=ld.exe
1133 if [[ x$enable_threads = xyes ]]; then
1137 i[[34567]]86-dg-dgux*)
1138 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1139 xm_defines="USG POSIX"
1140 out_file=i386/dgux.c
1142 tmake_file=i386/t-dgux
1143 xmake_file=i386/x-dgux
1144 fixincludes=fixinc.dgux
1145 install_headers_dir=install-headers-cpio
1147 i860-alliant-*) # Alliant FX/2800
1148 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1149 xm_file="${xm_file}"
1150 xmake_file=i860/x-fx2800
1151 tmake_file=i860/t-fx2800
1152 extra_parts="crtbegin.o crtend.o"
1155 tm_file="${tm_file} i860/bsd.h"
1156 if [[ x$gas = xyes ]]
1158 tm_file="${tm_file} i860/bsd-gas.h"
1163 tm_file="${tm_file} i860/mach.h"
1164 tmake_file=t-libc-ok
1166 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1167 tm_file="${tm_file} svr3.h i860/paragon.h"
1168 xm_defines="USG SVR3"
1172 tm_file="${tm_file} svr3.h i860/sysv3.h"
1173 xm_defines="USG SVR3"
1174 xmake_file=i860/x-sysv3
1175 extra_parts="crtbegin.o crtend.o"
1178 tm_file="${tm_file} svr4.h i860/sysv4.h"
1179 xm_defines="USG SVR3"
1180 xmake_file=i860/x-sysv4
1182 extra_parts="crtbegin.o crtend.o"
1184 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1185 tm_file="${tm_file} i960/vx960.h"
1186 tmake_file=i960/t-vxworks960
1188 thread_file='vxworks'
1190 i960-wrs-vxworks5* | i960-wrs-vxworks)
1191 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1192 tmake_file=i960/t-vxworks960
1194 thread_file='vxworks'
1197 tm_file="${tm_file} i960/vx960.h"
1198 tmake_file=i960/t-vxworks960
1200 thread_file='vxworks'
1203 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1204 tmake_file=i960/t-960bare
1208 tmake_file="i960/t-960bare t-rtems"
1209 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1212 i960-*-*) # Default i960 environment.
1216 extra_parts="crtinit.o crtfini.o"
1218 m68000-convergent-sysv*)
1220 xm_file="m68k/xm-3b1.h ${xm_file}"
1223 extra_headers=math-68881.h
1225 m68000-hp-bsd*) # HP 9000/200 running BSD
1226 tm_file=m68k/hp2bsd.h
1227 xmake_file=m68k/x-hp2bsd
1229 extra_headers=math-68881.h
1231 m68000-hp-hpux*) # HP 9000 series 300
1232 xm_file="xm_alloca.h ${xm_file}"
1233 xm_defines="USG NO_SYS_SIGLIST"
1234 if [[ x$gas = xyes ]]
1236 xmake_file=m68k/x-hp320g
1237 tm_file=m68k/hp310g.h
1239 xmake_file=m68k/x-hp320
1240 tm_file=m68k/hp310.h
1242 install_headers_dir=install-headers-cpio
1244 extra_headers=math-68881.h
1249 extra_headers=math-68881.h
1252 tm_file=m68k/sun2o4.h
1254 extra_headers=math-68881.h
1257 xm_file="m68k/xm-3b1.h ${xm_file}"
1259 if [[ x$gas = xyes ]]
1266 extra_headers=math-68881.h
1268 m68k-apple-aux*) # Apple Macintosh running A/UX
1269 xm_defines="USG AUX"
1270 tmake_file=m68k/t-aux
1271 install_headers_dir=install-headers-cpio
1272 extra_headers=math-68881.h
1273 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1275 if [[ "$gnu_ld" = yes ]]
1277 tm_file="${tm_file} m68k/auxgld.h"
1279 tm_file="${tm_file} m68k/auxld.h"
1281 if [[ "$gas" = yes ]]
1283 tm_file="${tm_file} m68k/auxgas.h"
1285 tm_file="${tm_file} m68k/auxas.h"
1287 tm_file="${tm_file} m68k/a-ux.h"
1290 tm_file=m68k/apollo68.h
1291 xmake_file=m68k/x-apollo68
1293 extra_headers=math-68881.h
1295 m68k-altos-sysv*) # Altos 3068
1296 if [[ x$gas = xyes ]]
1298 tm_file=m68k/altos3068.h
1301 echo "The Altos is supported only with the GNU assembler" 1>&2
1304 extra_headers=math-68881.h
1306 m68k-bull-sysv*) # Bull DPX/2
1307 if [[ x$gas = xyes ]]
1309 if [[ x$stabs = xyes ]]
1311 tm_file=m68k/dpx2cdbx.h
1313 tm_file=m68k/dpx2g.h
1318 xm_file="xm-alloca.h ${xm_file}"
1320 xmake_file=m68k/x-dpx2
1322 extra_headers=math-68881.h
1324 m68k-atari-sysv4*) # Atari variant of V.4.
1325 tm_file=m68k/atari.h
1326 xm_file="xm-alloca.h ${xm_file}"
1327 xm_defines="USG FULL_PROTOTYPES"
1329 extra_parts="crtbegin.o crtend.o"
1330 extra_headers=math-68881.h
1332 m68k-motorola-sysv*)
1333 tm_file=m68k/mot3300.h
1334 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1335 xm_defines=NO_SYS_SIGLIST
1336 if [[ x$gas = xyes ]]
1338 xmake_file=m68k/x-mot3300-gas
1339 if [[ x$gnu_ld = xyes ]]
1341 tmake_file=m68k/t-mot3300-gald
1343 tmake_file=m68k/t-mot3300-gas
1347 xmake_file=m68k/x-mot3300
1348 if [[ x$gnu_ld = xyes ]]
1350 tmake_file=m68k/t-mot3300-gld
1352 tmake_file=m68k/t-mot3300
1356 gdb_needs_out_file_path=yes
1357 extra_parts="crt0.o mcrt0.o"
1358 extra_headers=math-68881.h
1360 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1361 tm_file=m68k/tower-as.h
1362 xm_defines="USG SVR3"
1363 xmake_file=m68k/x-tower
1364 extra_parts="crtbegin.o crtend.o"
1365 extra_headers=math-68881.h
1368 tm_file=m68k/plexus.h
1369 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1372 extra_headers=math-68881.h
1376 xm_file="xm-alloca.h ${xm_file}"
1378 extra_headers=math-68881.h
1381 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1382 xm_defines="USG unos"
1383 xmake_file=m68k/x-crds
1386 extra_headers=math-68881.h
1388 m68k-cbm-sysv4*) # Commodore variant of V.4.
1390 xm_file="xm-alloca.h ${xm_file}"
1391 xm_defines="USG FULL_PROTOTYPES"
1392 xmake_file=m68k/x-amix
1394 extra_parts="crtbegin.o crtend.o"
1395 extra_headers=math-68881.h
1398 tm_file=m68k/ccur-GAS.h
1399 xmake_file=m68k/x-ccur
1400 extra_headers=math-68881.h
1403 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1404 tm_file=m68k/hp3bsd44.h
1405 xmake_file=m68k/x-hp3bsd44
1407 extra_headers=math-68881.h
1409 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1410 tm_file=m68k/hp3bsd.h
1412 extra_headers=math-68881.h
1415 if [[ x$with_fp = xno ]]
1417 tm_file=m68k/isi-nfp.h
1422 extra_headers=math-68881.h
1424 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1425 xm_file="xm_alloca.h ${xm_file}"
1426 xm_defines="USG NO_SYS_SIGLIST"
1427 if [[ x$gas = xyes ]]
1429 xmake_file=m68k/x-hp320g
1430 tm_file=m68k/hp320g.h
1432 xmake_file=m68k/x-hp320
1433 tm_file=m68k/hpux7.h
1435 install_headers_dir=install-headers-cpio
1437 extra_headers=math-68881.h
1439 m68k-hp-hpux*) # HP 9000 series 300
1440 xm_file="xm_alloca.h ${xm_file}"
1441 xm_defines="USG NO_SYS_SIGLIST"
1442 if [[ x$gas = xyes ]]
1444 xmake_file=m68k/x-hp320g
1445 tm_file=m68k/hp320g.h
1447 xmake_file=m68k/x-hp320
1448 tm_file=m68k/hp320.h
1450 install_headers_dir=install-headers-cpio
1452 extra_headers=math-68881.h
1455 tm_file=m68k/sun3mach.h
1457 extra_headers=math-68881.h
1460 if [[ x$gas = xyes ]]
1462 tm_file=m68k/news3gas.h
1464 tm_file=m68k/news3.h
1467 extra_headers=math-68881.h
1469 m68k-sony-bsd* | m68k-sony-newsos*)
1470 if [[ x$gas = xyes ]]
1472 tm_file=m68k/newsgas.h
1477 extra_headers=math-68881.h
1479 m68k-next-nextstep2*)
1480 tm_file=m68k/next21.h
1481 xm_file="m68k/xm-next.h ${xm_file}"
1482 tmake_file=m68k/t-next
1483 xmake_file=m68k/x-next
1484 extra_objs=nextstep.o
1485 extra_headers=math-68881.h
1488 m68k-next-nextstep3*)
1490 xm_file="m68k/xm-next.h ${xm_file}"
1491 tmake_file=m68k/t-next
1492 xmake_file=m68k/x-next
1493 extra_objs=nextstep.o
1494 extra_headers=math-68881.h
1495 if [[ x$enable_threads = xyes ]]; then
1500 if [[ x$with_fp = xno ]]
1502 tm_file=m68k/sun3n3.h
1504 tm_file=m68k/sun3o3.h
1507 extra_headers=math-68881.h
1509 m68k-sun-sunos*) # For SunOS 4 (the default).
1510 if [[ x$with_fp = xno ]]
1512 tm_file=m68k/sun3n.h
1517 extra_headers=math-68881.h
1520 tm_file=m68k/vxm68k.h
1521 tmake_file=m68k/t-vxworks68
1522 extra_headers=math-68881.h
1523 thread_file='vxworks'
1526 tmake_file=m68k/t-m68kbare
1527 tm_file="m68k/m68k-aout.h libgloss.h"
1528 extra_headers=math-68881.h
1531 tmake_file=m68k/t-m68kbare
1532 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1533 extra_headers=math-68881.h
1536 if [[ x$gas = xyes ]]
1540 tm_file=m68k/lynx-ng.h
1542 xm_file=m68k/xm-lynx.h
1544 tmake_file=m68k/t-lynx
1545 extra_headers=math-68881.h
1548 tm_file=m68k/netbsd.h
1549 # On NetBSD, the headers are already okay, except for math.h.
1550 fixincludes=fixinc.math
1553 m68k-*-sysv3*) # Motorola m68k's running system V.3
1554 xm_file="xm-alloca.h ${xm_file}"
1556 xmake_file=m68k/x-m68kv
1557 extra_parts="crtbegin.o crtend.o"
1558 extra_headers=math-68881.h
1560 m68k-*-sysv4*) # Motorola m68k's running system V.4
1561 tm_file=m68k/m68kv4.h
1562 xm_file="xm-alloca.h ${xm_file}"
1565 extra_parts="crtbegin.o crtend.o"
1566 extra_headers=math-68881.h
1568 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1571 tm_file=m68k/linux-aout.h
1572 tmake_file="t-linux-aout m68k/t-linux-aout"
1573 fixincludes=Makefile.in # The headers are ok already.
1574 extra_headers=math-68881.h
1577 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1578 # with ELF format using the
1579 # GNU/Linux C library 5
1581 tm_file=m68k/linux.h
1582 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1583 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1584 fixincludes=Makefile.in # The headers are ok already.
1585 extra_headers=math-68881.h
1588 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1589 # with ELF format using glibc 2
1590 # aka the GNU/Linux C library 6.
1592 tm_file=m68k/linux.h
1593 tmake_file="t-linux m68k/t-linux"
1594 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1595 fixincludes=Makefile.in # The headers are ok already.
1596 extra_headers=math-68881.h
1598 if [[ x$enable_threads = xyes ]]; then
1603 tmake_file=m68k/t-m68kbare
1604 tm_file=m68k/m68k-psos.h
1605 extra_headers=math-68881.h
1608 tmake_file="m68k/t-m68kbare t-rtems"
1609 tm_file=m68k/rtems.h
1610 extra_headers=math-68881.h
1616 tm_file=m88k/dguxbcs.h
1617 tmake_file=m88k/t-dguxbcs
1621 tmake_file=m88k/t-dgux
1624 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1625 xmake_file=m88k/x-dgux
1626 if [[ x$gas = xyes ]]
1628 tmake_file=m88k/t-dgux-gas
1630 fixincludes=fixinc.dgux
1632 m88k-dolphin-sysv3*)
1633 tm_file=m88k/dolph.h
1634 extra_parts="crtbegin.o crtend.o"
1635 xm_file="m88k/xm-sysv3.h ${xm_file}"
1636 xmake_file=m88k/x-dolph
1637 if [[ x$gas = xyes ]]
1639 tmake_file=m88k/t-m88k-gas
1642 m88k-tektronix-sysv3)
1643 tm_file=m88k/tekXD88.h
1644 extra_parts="crtbegin.o crtend.o"
1645 xm_file="m88k/xm-sysv3.h ${xm_file}"
1646 xmake_file=m88k/x-tekXD88
1647 if [[ x$gas = xyes ]]
1649 tmake_file=m88k/t-m88k-gas
1653 tm_file=m88k/m88k-aout.h
1656 tm_file=m88k/m88k-coff.h
1657 tmake_file=m88k/t-bug
1661 extra_parts="crtbegin.o crtend.o"
1662 if [[ x$gas = xyes ]]
1664 tmake_file=m88k/t-luna-gas
1666 tmake_file=m88k/t-luna
1670 tm_file=m88k/sysv3.h
1671 extra_parts="crtbegin.o crtend.o"
1672 xm_file="m88k/xm-sysv3.h ${xm_file}"
1673 xmake_file=m88k/x-sysv3
1674 if [[ x$gas = xyes ]]
1676 tmake_file=m88k/t-m88k-gas
1680 tm_file=m88k/sysv4.h
1681 extra_parts="crtbegin.o crtend.o"
1682 xmake_file=m88k/x-sysv4
1683 tmake_file=m88k/t-sysv4
1685 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1686 tm_file=mips/iris6.h
1687 xm_file=mips/xm-iris6.h
1688 fixincludes=fixinc.irix
1689 xmake_file=mips/x-iris6
1690 tmake_file=mips/t-iris6
1691 if [[ x$enable_threads = xyes ]]; then
1696 tm_file="mips/elf.h libgloss.h"
1697 tmake_file=mips/t-ecoff
1700 extra_parts="crtbegin.o crtend.o"
1701 # thread_file='vxworks'
1703 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1704 tm_file="mips/iris6.h mips/cross64.h"
1705 xm_defines="USG HAVE_INTTYPES_H"
1706 fixincludes=Makefile.in
1707 xmake_file=mips/x-iris
1708 tmake_file=mips/t-cross64
1709 # See comment in mips/iris[56].h files.
1711 if [[ x$enable_threads = xyes ]]; then
1716 if [[ x$gas = xyes ]]
1718 if [[ x$stabs = xyes ]]
1720 tm_file=mips/iris5gdb.h
1722 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1725 tm_file=mips/sni-svr4.h
1728 xmake_file=mips/x-sni-svr4
1729 tmake_file=mips/t-mips-gas
1730 if [[ x$gnu_ld != xyes ]]
1735 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1736 if [[ x$gas = xyes ]]
1738 tm_file="mips/iris5.h mips/iris5gas.h"
1739 if [[ x$stabs = xyes ]]
1741 tm_file="${tm_file} dbx.h"
1744 tm_file=mips/iris5.h
1746 xm_defines="USG HAVE_INTTYPES_H"
1747 fixincludes=fixinc.irix
1748 xmake_file=mips/x-iris
1749 # mips-tfile doesn't work yet
1750 tmake_file=mips/t-mips-gas
1751 # See comment in mips/iris5.h file.
1753 if [[ x$enable_threads = xyes ]]; then
1757 mips-sgi-irix4loser*) # Mostly like a MIPS.
1758 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
1759 if [[ x$stabs = xyes ]]; then
1760 tm_file="${tm_file} dbx.h"
1763 xmake_file=mips/x-iris
1764 if [[ x$gas = xyes ]]
1766 tmake_file=mips/t-mips-gas
1768 extra_passes="mips-tfile mips-tdump"
1770 if [[ x$gnu_ld != xyes ]]
1774 if [[ x$enable_threads = xyes ]]; then
1778 mips-sgi-irix4*) # Mostly like a MIPS.
1779 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
1780 if [[ x$stabs = xyes ]]; then
1781 tm_file="${tm_file} dbx.h"
1784 xmake_file=mips/x-iris
1785 if [[ x$gas = xyes ]]
1787 tmake_file=mips/t-mips-gas
1789 extra_passes="mips-tfile mips-tdump"
1791 if [[ x$gnu_ld != xyes ]]
1795 if [[ x$enable_threads = xyes ]]; then
1799 mips-sgi-*) # Mostly like a MIPS.
1800 tm_file="mips/iris3.h ${tm_file}"
1801 if [[ x$stabs = xyes ]]; then
1802 tm_file="${tm_file} dbx.h"
1805 xmake_file=mips/x-iris3
1806 if [[ x$gas = xyes ]]
1808 tmake_file=mips/t-mips-gas
1810 extra_passes="mips-tfile mips-tdump"
1812 if [[ x$gnu_ld != xyes ]]
1817 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
1818 tm_file="mips/osfrose.h ${tm_file}"
1819 xmake_file=mips/x-osfrose
1820 tmake_file=mips/t-osfrose
1821 extra_objs=halfpic.o
1824 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
1825 tm_file=mips/dec-osf1.h
1826 if [[ x$stabs = xyes ]]; then
1827 tm_file="${tm_file} dbx.h"
1829 xmake_file=mips/x-dec-osf1
1830 if [[ x$gas = xyes ]]
1832 tmake_file=mips/t-mips-gas
1834 tmake_file=mips/t-ultrix
1835 extra_passes="mips-tfile mips-tdump"
1837 if [[ x$gnu_ld != xyes ]]
1842 mips-dec-bsd*) # Decstation running 4.4 BSD
1843 tm_file=mips/dec-bsd.h
1845 if [[ x$gas = xyes ]]
1847 tmake_file=mips/t-mips-gas
1849 tmake_file=mips/t-ultrix
1850 extra_passes="mips-tfile mips-tdump"
1852 if [[ x$gnu_ld != xyes ]]
1857 mips-dec-netbsd*) # Decstation running NetBSD
1858 tm_file=mips/netbsd.h
1859 # On NetBSD, the headers are already okay, except for math.h.
1860 fixincludes=fixinc.math
1863 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
1864 tm_file="mips/news4.h ${tm_file}"
1865 if [[ x$stabs = xyes ]]; then
1866 tm_file="${tm_file} dbx.h"
1868 if [[ x$gas = xyes ]]
1870 tmake_file=mips/t-mips-gas
1872 extra_passes="mips-tfile mips-tdump"
1874 if [[ x$gnu_ld != xyes ]]
1878 xmake_file=mips/x-sony
1880 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
1881 # That is based on svr4.
1882 # t-svr4 is not right because this system doesn't use ELF.
1883 tm_file="mips/news5.h ${tm_file}"
1884 if [[ x$stabs = xyes ]]; then
1885 tm_file="${tm_file} dbx.h"
1887 xm_file="xm-siglist.h ${xm_file}"
1889 if [[ x$gas = xyes ]]
1891 tmake_file=mips/t-mips-gas
1893 extra_passes="mips-tfile mips-tdump"
1895 if [[ x$gnu_ld != xyes ]]
1900 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
1901 tm_file="mips/svr4-5.h mips/svr4-t.h"
1902 if [[ x$stabs = xyes ]]; then
1903 tm_file="${tm_file} dbx.h"
1905 xm_file="xm-siglist.h ${xm_file}"
1907 xmake_file=mips/x-sysv
1908 if [[ x$gas = xyes ]]
1910 tmake_file=mips/t-mips-gas
1911 extra_parts="crtbegin.o crtend.o"
1913 tmake_file=mips/t-mips
1914 extra_passes="mips-tfile mips-tdump"
1916 if [[ x$gnu_ld != xyes ]]
1921 mips-*-ultrix* | mips-dec-mach3) # Decstation.
1922 tm_file="mips/ultrix.h ${tm_file}"
1923 if [[ x$stabs = xyes ]]; then
1924 tm_file="${tm_file} dbx.h"
1926 xmake_file=mips/x-ultrix
1927 if [[ x$gas = xyes ]]
1929 tmake_file=mips/t-mips-gas
1931 tmake_file=mips/t-ultrix
1932 extra_passes="mips-tfile mips-tdump"
1934 if [[ x$gnu_ld != xyes ]]
1939 mips-*-riscos[[56789]]bsd*)
1940 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
1941 if [[ x$stabs = xyes ]]; then
1942 tm_file="${tm_file} dbx.h"
1944 if [[ x$gas = xyes ]]
1946 tmake_file=mips/t-bsd-gas
1948 tmake_file=mips/t-bsd
1949 extra_passes="mips-tfile mips-tdump"
1951 if [[ x$gnu_ld != xyes ]]
1956 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
1957 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
1958 if [[ x$stabs = xyes ]]; then
1959 tm_file="${tm_file} dbx.h"
1961 if [[ x$gas = xyes ]]
1963 tmake_file=mips/t-bsd-gas
1965 tmake_file=mips/t-bsd
1966 extra_passes="mips-tfile mips-tdump"
1968 if [[ x$gnu_ld != xyes ]]
1973 mips-*-riscos[[56789]]sysv4*)
1974 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
1975 if [[ x$stabs = xyes ]]; then
1976 tm_file="${tm_file} dbx.h"
1978 xm_file="xm-siglist.h ${xm_file}"
1979 xmake_file=mips/x-sysv
1980 if [[ x$gas = xyes ]]
1982 tmake_file=mips/t-svr4-gas
1984 tmake_file=mips/t-svr4
1985 extra_passes="mips-tfile mips-tdump"
1987 if [[ x$gnu_ld != xyes ]]
1992 mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
1993 tm_file="mips/svr4-4.h ${tm_file}"
1994 if [[ x$stabs = xyes ]]; then
1995 tm_file="${tm_file} dbx.h"
1998 xmake_file=mips/x-sysv
1999 if [[ x$gas = xyes ]]
2001 tmake_file=mips/t-svr4-gas
2003 tmake_file=mips/t-svr4
2004 extra_passes="mips-tfile mips-tdump"
2006 if [[ x$gnu_ld != xyes ]]
2011 mips-*-riscos[[56789]]sysv*)
2012 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2013 if [[ x$stabs = xyes ]]; then
2014 tm_file="${tm_file} dbx.h"
2017 xmake_file=mips/x-sysv
2018 if [[ x$gas = xyes ]]
2020 tmake_file=mips/t-svr3-gas
2022 tmake_file=mips/t-svr3
2023 extra_passes="mips-tfile mips-tdump"
2025 if [[ x$gnu_ld != xyes ]]
2030 mips-*-sysv* | mips-*-riscos*sysv*)
2031 tm_file="mips/svr3-4.h ${tm_file}"
2032 if [[ x$stabs = xyes ]]; then
2033 tm_file="${tm_file} dbx.h"
2036 xmake_file=mips/x-sysv
2037 if [[ x$gas = xyes ]]
2039 tmake_file=mips/t-svr3-gas
2041 tmake_file=mips/t-svr3
2042 extra_passes="mips-tfile mips-tdump"
2044 if [[ x$gnu_ld != xyes ]]
2049 mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0.
2050 tm_file=mips/mips-5.h
2051 if [[ x$stabs = xyes ]]; then
2052 tm_file="${tm_file} dbx.h"
2054 if [[ x$gas = xyes ]]
2056 tmake_file=mips/t-mips-gas
2058 extra_passes="mips-tfile mips-tdump"
2060 if [[ x$gnu_ld != xyes ]]
2068 tm_file=mips/ecoffl.h
2069 if [[ x$stabs = xyes ]]; then
2070 tm_file="${tm_file} dbx.h"
2072 tmake_file=mips/t-ecoff
2075 tm_file="gofast.h mips/ecoff.h"
2076 if [[ x$stabs = xyes ]]; then
2077 tm_file="${tm_file} dbx.h"
2079 tmake_file=mips/t-ecoff
2082 tm_file="mips/elfl.h libgloss.h"
2083 tmake_file=mips/t-ecoff
2086 tm_file="mips/elf.h libgloss.h"
2087 tmake_file=mips/t-ecoff
2090 tm_file="mips/elfl64.h libgloss.h"
2091 tmake_file=mips/t-ecoff
2093 mips64orionel-*-elf*)
2094 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2095 tmake_file=mips/t-ecoff
2098 tm_file="mips/elf64.h libgloss.h"
2099 tmake_file=mips/t-ecoff
2102 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2103 tmake_file=mips/t-ecoff
2105 mips64orion-*-rtems*)
2106 tm_file="mips/elforion.h mips/elfl64.h mips/rtems64.h"
2107 tmake_file="mips/t-ecoff t-rtems"
2110 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2111 tmake_file=mips/t-r3900
2114 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2115 tmake_file=mips/t-r3900
2117 mips-*-*) # Default MIPS RISC-OS 4.0.
2118 if [[ x$stabs = xyes ]]; then
2119 tm_file="${tm_file} dbx.h"
2121 if [[ x$gas = xyes ]]
2123 tmake_file=mips/t-mips-gas
2125 extra_passes="mips-tfile mips-tdump"
2127 if [[ x$gnu_ld != xyes ]]
2134 tm_file="mn10200/mn10200.h"
2135 if [[ x$stabs = xyes ]]
2137 tm_file="${tm_file} dbx.h"
2143 tm_file="mn10300/mn10300.h"
2144 if [[ x$stabs = xyes ]]
2146 tm_file="${tm_file} dbx.h"
2151 tm_file=ns32k/encore.h
2155 tm_file=ns32k/sequent.h
2159 tm_file=ns32k/tek6100.h
2163 tm_file=ns32k/tek6200.h
2166 # This has not been updated to GCC 2.
2169 # xmake_file=ns32k/x-genix
2170 # tm_file=ns32k/genix.h
2174 tm_file=ns32k/merlin.h
2178 tm_file=ns32k/pc532-mach.h
2182 tm_file=ns32k/pc532-min.h
2183 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2187 ns32k-pc532-netbsd*)
2188 tm_file=ns32k/netbsd.h
2189 # On NetBSD, the headers are already okay, except for math.h.
2190 fixincludes=fixinc.math
2194 tm_file="${tm_file} pdp11/2bsd.h"
2200 xmake_file=pyr/x-pyr
2207 xmake_file=romp/x-mach
2212 tm_file=rs6000/beos.h
2213 xm_file=rs6000/xm-beos.h
2214 tmake_file=rs6000/t-beos
2215 xmake_file=rs6000/x-beos
2217 powerpc-*-sysv* | powerpc-*-elf*)
2218 tm_file=rs6000/sysv4.h
2219 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2220 xm_defines="USG POSIX"
2221 extra_headers=ppc-asm.h
2222 if [[ x$gas = xyes ]]
2224 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2226 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2228 xmake_file=rs6000/x-sysv4
2231 tm_file=rs6000/eabiaix.h
2232 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2233 fixincludes=Makefile.in
2234 extra_headers=ppc-asm.h
2237 tm_file=rs6000/eabisim.h
2238 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2239 fixincludes=Makefile.in
2240 extra_headers=ppc-asm.h
2243 tm_file=rs6000/eabi.h
2244 if [[ x$gas = xyes ]]
2246 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2248 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2250 fixincludes=Makefile.in
2251 extra_headers=ppc-asm.h
2254 tm_file=rs6000/rtems.h
2255 if [[ x$gas = xyes ]]
2257 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2259 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2261 fixincludes=Makefile.in
2262 extra_headers=ppc-asm.h
2264 powerpc-*-linux-gnulibc1)
2265 tm_file=rs6000/linux.h
2266 xm_file=rs6000/xm-sysv4.h
2267 out_file=rs6000/rs6000.c
2268 if [[ x$gas = xyes ]]
2270 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2272 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2275 fixincludes=Makefile.in
2276 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2277 extra_headers=ppc-asm.h
2278 if [[ x$enable_threads = xyes ]]; then
2282 powerpc-*-linux-gnu*)
2283 tm_file=rs6000/linux.h
2284 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2285 xm_defines="USG ${xm_defines}"
2286 out_file=rs6000/rs6000.c
2287 if [[ x$gas = xyes ]]
2289 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2291 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2294 fixincludes=Makefile.in
2295 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2296 extra_headers=ppc-asm.h
2297 if [[ x$enable_threads = xyes ]]; then
2301 powerpc-wrs-vxworks*)
2303 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2304 xm_defines="USG POSIX"
2305 tm_file=rs6000/vxppc.h
2306 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2307 extra_headers=ppc-asm.h
2308 thread_file='vxworks'
2310 powerpcle-*-sysv* | powerpcle-*-elf*)
2311 tm_file=rs6000/sysv4le.h
2312 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2313 xm_defines="USG POSIX"
2314 if [[ x$gas = xyes ]]
2316 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2318 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2320 xmake_file=rs6000/x-sysv4
2321 extra_headers=ppc-asm.h
2323 powerpcle-*-eabisim*)
2324 tm_file=rs6000/eabilesim.h
2325 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2326 fixincludes=Makefile.in
2327 extra_headers=ppc-asm.h
2330 tm_file=rs6000/eabile.h
2331 if [[ x$gas = xyes ]]
2333 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2335 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2337 fixincludes=Makefile.in
2338 extra_headers=ppc-asm.h
2340 powerpcle-*-winnt* )
2341 tm_file=rs6000/win-nt.h
2342 tmake_file=rs6000/t-winnt
2344 fixincludes=Makefile.in
2345 if [[ x$enable_threads = xyes ]]; then
2348 extra_headers=ppc-asm.h
2350 powerpcle-*-pe | powerpcle-*-cygwin32)
2351 tm_file=rs6000/cygwin32.h
2352 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2353 xm_defines=NO_STAB_H
2354 tmake_file=rs6000/t-winnt
2355 xmake_file=rs6000/x-cygwin32
2357 fixincludes=Makefile.in
2358 if [[ x$enable_threads = xyes ]]; then
2362 extra_headers=ppc-asm.h
2364 powerpcle-*-solaris2*)
2365 tm_file=rs6000/sol2.h
2366 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2367 xm_defines="USG POSIX"
2368 if [[ x$gas = xyes ]]
2370 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2372 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2374 xmake_file=rs6000/x-sysv4
2376 *-*-solaris2.[[0-4]])
2377 fixincludes=fixinc.svr4;;
2379 fixincludes=fixinc.math;;
2381 extra_headers=ppc-asm.h
2383 rs6000-ibm-aix3.[[01]]*)
2384 tm_file=rs6000/aix31.h
2385 xmake_file=rs6000/x-aix31
2388 rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*)
2389 tm_file=rs6000/aix3newas.h
2390 if [[ x$host != x$target ]]
2392 tmake_file=rs6000/t-xnewas
2394 tmake_file=rs6000/t-newas
2398 rs6000-ibm-aix[[456789]].* | powerpc-ibm-aix[[456789]].*)
2399 tm_file=rs6000/aix41.h
2400 if [[ x$host != x$target ]]
2402 tmake_file=rs6000/t-xnewas
2404 tmake_file=rs6000/t-newas
2406 xmake_file=rs6000/x-aix31
2416 tm_file=rs6000/mach.h
2417 xm_file="${xm_file} rs6000/xm-mach.h"
2418 xmake_file=rs6000/x-mach
2422 tm_file=rs6000/lynx.h
2423 xm_file=rs6000/xm-lynx.h
2424 tmake_file=rs6000/t-rs6000
2425 xmake_file=rs6000/x-lynx
2433 tmake_file="sh/t-sh t-rtems"
2442 xm_file="xm-alloca.h ${xm_file}"
2445 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2446 tm_file=sparc/vxsparc.h
2447 tmake_file=sparc/t-vxsparc
2449 thread_file='vxworks'
2452 tmake_file=sparc/t-sparcbare
2453 tm_file="sparc/aout.h libgloss.h"
2456 tm_file=sparc/netbsd.h
2457 # On NetBSD, the headers are already okay, except for math.h.
2458 fixincludes=fixinc.math
2466 tmake_file=sparc/t-elf
2467 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2471 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2472 xm_file="${xm_file} sparc/xm-linux.h"
2473 tm_file=sparc/linux-aout.h
2475 fixincludes=Makefile.in #On Linux, the headers are ok already.
2478 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2479 xm_file="${xm_file} sparc/xm-linux.h"
2481 tm_file=sparc/linux.h
2482 tmake_file="t-linux t-linux-gnulibc1"
2483 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2484 fixincludes=Makefile.in #On Linux, the headers are ok already.
2487 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2488 xm_file="${xm_file} sparc/xm-linux.h"
2490 tm_file=sparc/linux.h
2491 tmake_file="t-linux"
2492 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2493 fixincludes=Makefile.in #On Linux, the headers are ok already.
2495 if [[ x$enable_threads = xyes ]]; then
2500 if [[ x$gas = xyes ]]
2502 tm_file=sparc/lynx.h
2504 tm_file=sparc/lynx-ng.h
2506 xm_file=sparc/xm-lynx.h
2507 tmake_file=sparc/t-sunos41
2511 tmake_file="sparc/t-sparcbare t-rtems"
2512 tm_file=sparc/rtems.h
2515 if [[ x$gnu_ld = xyes ]]
2517 tm_file=sparc/sol2.h
2519 tm_file=sparc/sol2-sld.h
2521 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2522 xm_defines="USG POSIX"
2523 tmake_file=sparc/t-sol2
2524 xmake_file=sparc/x-sysv4
2525 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2527 *-*-solaris2.[[0-4]])
2528 fixincludes=fixinc.svr4;;
2530 fixincludes=fixinc.math;;
2533 if [[ x${enable_threads} = x ]]; then
2534 enable_threads=$have_pthread_h
2535 if [[ x${enable_threads} = x ]]; then
2536 enable_threads=$have_thread_h
2539 if [[ x${enable_threads} = xyes ]]; then
2540 if [[ x${have_pthread_h} = xyes ]]; then
2543 thread_file='solaris'
2548 tm_file=sparc/sunos4.h
2549 tmake_file=sparc/t-sunos40
2553 tm_file=sparc/sunos4.h
2554 tmake_file=sparc/t-sunos41
2556 if [[ x$gas = xyes ]]; then
2557 tm_file="${tm_file} sparc/sun4gas.h"
2561 tm_file=sparc/sun4o3.h
2565 tm_file=sparc/sysv4.h
2566 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2567 xm_defines="USG POSIX"
2569 xmake_file=sparc/x-sysv4
2570 extra_parts="crtbegin.o crtend.o"
2573 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2574 xm_defines="USG POSIX"
2575 tm_file=sparc/vxsim.h
2576 tmake_file=sparc/t-vxsparc
2577 xmake_file=sparc/x-sysv4
2580 tm_file="sparc/splet.h libgloss.h"
2581 tmake_file=sparc/t-splet
2584 tm_file="sparc/litecoff.h libgloss.h"
2585 tmake_file=sparc/t-sparclite
2588 tm_file="sparc/lite.h aoutos.h libgloss.h"
2589 tmake_file=sparc/t-sparclite
2592 tmake_file=sparc/t-sp64
2593 tm_file=sparc/sp64-aout.h
2596 tmake_file=sparc/t-sp64
2597 tm_file=sparc/sp64-elf.h
2598 extra_parts="crtbegin.o crtend.o"
2600 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2601 tmake_file=sparc/t-sp64
2602 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2603 tm_file=sparc/linux64.h
2605 fixincludes=Makefile.in # The headers are ok already.
2608 # This hasn't been upgraded to GCC 2.
2609 # tahoe-harris-*) # Harris tahoe, using COFF.
2610 # tm_file=tahoe/harris.h
2612 # tahoe-*-bsd*) # tahoe running BSD
2614 thumb-*-coff* | thumbel-*-coff*)
2616 out_file=arm/thumb.c
2617 xm_file=arm/xm-thumb.h
2618 md_file=arm/thumb.md
2619 tmake_file=arm/t-thumb
2621 # This hasn't been upgraded to GCC 2.
2628 tm_file="v850/v850.h"
2629 xm_file="v850/xm-v850.h"
2630 tmake_file=v850/t-v850
2631 if [[ x$stabs = xyes ]]
2633 tm_file="${tm_file} dbx.h"
2637 vax-*-bsd*) # vaxen running BSD
2641 vax-*-sysv*) # vaxen running system V
2642 tm_file="${tm_file} vax/vaxv.h"
2647 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2648 # On NetBSD, the headers are already okay, except for math.h.
2649 fixincludes=fixinc.math
2653 vax-*-ultrix*) # vaxen running ultrix
2654 tm_file="${tm_file} vax/ultrix.h"
2658 vax-*-vms*) # vaxen running VMS
2659 xm_file=vax/xm-vms.h
2663 vax-*-*) # vax default entry
2667 xm_file="${xm_file} xm-svr3"
2671 echo "Configuration $machine not supported" 1>&2
2678 ;; # Existing GNU/Linux systems do not use the GNU setup.
2680 # On the GNU system, the setup is just about the same on
2681 # each different CPU. The specific machines that GNU
2682 # supports are matched above and just set $cpu_type.
2683 xm_file="xm-gnu.h ${xm_file}"
2684 tm_file=${cpu_type}/gnu.h
2685 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2686 # GNU always uses ELF.
2688 # GNU tools are the only tools.
2691 # On GNU, the headers are already okay.
2692 fixincludes=Makefile.in
2693 xmake_file=x-linux # These details are the same as Linux.
2694 tmake_file=t-gnu # These are not.
2697 fixincludes=fixinc.svr4
2698 xmake_try_sysv=x-sysv
2699 install_headers_dir=install-headers-cpio
2702 install_headers_dir=install-headers-cpio
2706 # Distinguish i[34567]86
2707 # Also, do not run mips-tfile on MIPS if using gas.
2708 # Process --with-cpu= for PowerPC/rs6000
2709 target_cpu_default2=
2712 target_cpu_default2=1
2715 target_cpu_default2=2
2717 i686-*-* | i786-*-*)
2718 target_cpu_default2=3
2723 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
2726 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2729 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2732 target_cpu_default2="MASK_CPU_EV5"
2736 if [[ x$gas = xyes ]]
2738 if [[ "$target_cpu_default2" = "" ]]
2740 target_cpu_default2="MASK_GAS"
2742 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2747 case "x$with_cpu" in
2750 target_cpu_default2="TARGET_CPU_generic"
2753 # Distinguish cores, and major variants
2754 # arm7m doesn't exist, but D & I don't affect code
2755 xarm[23678] | xarm250 | xarm[67][01]0 \
2756 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
2757 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2758 | xstrongarm | xstrongarm110)
2759 target_cpu_default2="TARGET_CPU_$with_cpu"
2763 echo "--with-cpu must be passed a value" 1>&2
2768 if [[ x$pass2done = xyes ]]
2770 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2777 mips*-*-ecoff* | mips*-*-elf*)
2778 if [[ x$gas = xyes ]]
2780 if [[ x$gnu_ld = xyes ]]
2782 target_cpu_default2=20
2784 target_cpu_default2=16
2789 if [[ x$gas = xyes ]]
2791 target_cpu_default2=16
2794 powerpc*-*-* | rs6000-*-*)
2795 case "x$with_cpu" in
2799 xcommon | xpower | xpower2 | xpowerpc | xrios \
2800 | xrios1 | xrios2 | xrsc | xrsc1 \
2801 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2802 | x403 | x505 | x801 | x821 | x823 | x860)
2803 target_cpu_default2="\"$with_cpu\""
2807 echo "--with-cpu must be passed a value" 1>&2
2812 if [[ x$pass2done = xyes ]]
2814 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2821 case ".$with_cpu" in
2823 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2825 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
2826 target_cpu_default2="TARGET_CPU_$with_cpu"
2829 if [[ x$pass2done = xyes ]]
2831 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2839 if [[ "$target_cpu_default2" != "" ]]
2841 if [[ "$target_cpu_default" != "" ]]
2843 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2845 target_cpu_default=$target_cpu_default2
2849 # No need for collect2 if we have the GNU linker.
2856 # Save data on machine being used to compile GCC in build_xm_file.
2857 # Save data on host machine in vars host_xm_file and host_xmake_file.
2858 if [[ x$pass1done = x ]]
2860 if [[ x"$xm_file" = x ]]
2861 then build_xm_file=$cpu_type/xm-$cpu_type.h
2862 else build_xm_file=$xm_file
2864 build_xm_defines=$xm_defines
2865 build_install_headers_dir=$install_headers_dir
2866 build_exeext=$exeext
2869 if [[ x$pass2done = x ]]
2871 if [[ x"$xm_file" = x ]]
2872 then host_xm_file=$cpu_type/xm-$cpu_type.h
2873 else host_xm_file=$xm_file
2875 host_xm_defines=$xm_defines
2876 if [[ x"$xmake_file" = x ]]
2877 then xmake_file=$cpu_type/x-$cpu_type
2879 host_xmake_file="$xmake_file"
2880 host_truncate_target=$truncate_target
2881 host_extra_gcc_objs=$extra_gcc_objs
2882 host_extra_objs=$extra_host_objs
2889 extra_objs="${host_extra_objs} ${extra_objs}"
2891 # Default the target-machine variables that were not explicitly set.
2892 if [[ x"$tm_file" = x ]]
2893 then tm_file=$cpu_type/$cpu_type.h; fi
2895 if [[ x$extra_headers = x ]]
2896 then extra_headers=; fi
2898 if [[ x"$xm_file" = x ]]
2899 then xm_file=$cpu_type/xm-$cpu_type.h; fi
2901 if [[ x$md_file = x ]]
2902 then md_file=$cpu_type/$cpu_type.md; fi
2904 if [[ x$out_file = x ]]
2905 then out_file=$cpu_type/$cpu_type.c; fi
2907 if [[ x"$tmake_file" = x ]]
2908 then tmake_file=$cpu_type/t-$cpu_type
2911 if [[ x$float_format = x ]]
2912 then float_format=i64
2915 if [[ x$enable_haifa = x ]]
2918 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-* | m32r*-*)
2923 # Say what files are being used for the output code and MD file.
2924 echo "Using \`$srcdir/config/$out_file' to output insns."
2925 echo "Using \`$srcdir/config/$md_file' as machine description file."
2928 for f in $tm_file; do
2931 if [[ $count = ax ]]; then
2932 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
2934 echo "Using the following target machine macro files:"
2935 for f in $tm_file; do
2936 echo " $srcdir/config/$f"
2941 for f in $host_xm_file; do
2944 if [[ $count = ax ]]; then
2945 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
2947 echo "Using the following host machine macro files:"
2948 for f in $host_xm_file; do
2949 echo " $srcdir/config/$f"
2953 if [[ "$host_xm_file" != "$build_xm_file" ]]; then
2955 for f in $build_xm_file; do
2958 if [[ $count = ax ]]; then
2959 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
2961 echo "Using the following build machine macro files:"
2962 for f in $build_xm_file; do
2963 echo " $srcdir/config/$f"
2968 if [[ x$thread_file = x ]]; then
2969 if [[ x$target_thread_file != x ]]; then
2970 thread_file=$target_thread_file
2972 thread_file='single'
2976 # Set up the header files.
2977 # $links is the list of header files to create.
2978 # $vars is the list of shell variables with file names to include.
2979 # auto-host.h is the file containing items generated by autoconf and is
2980 # the first file included by config.h.
2982 host_xm_file="auto-host.h ${host_xm_file}"
2984 # If host=build, it is correct to have hconfig include auto-host.h
2985 # as well. If host!=build, we are in error and need to do more
2986 # work to find out the build config parameters.
2987 if [[ x$host = x$build ]]
2989 build_xm_file="auto-host.h ${build_xm_file}"
2991 # We create a subdir, then run autoconf in the subdir.
2992 # To prevent recursion we set host and build for the new
2993 # invocation of configure to the build for this invocation
3000 /*) realsrcdir=${srcdir};;
3001 *) realsrcdir=../${srcdir};;
3003 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3004 --target=$target --host=$build --build=$build
3006 # We just finished tests for the build machine, so rename
3007 # the file auto-build.h in the gcc directory.
3008 mv auto-host.h ../auto-build.h
3011 build_xm_file="auto-build.h ${build_xm_file}"
3014 vars="host_xm_file tm_file xm_file build_xm_file"
3015 links="config.h tm.h tconfig.h hconfig.h"
3016 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3019 if [[ -f config.status ]]; then mv -f config.status config.bak; fi
3022 while [[ -n "$vars" ]]
3024 set $vars; var=$1; shift; vars=$*
3025 set $links; link=$1; shift; links=$*
3026 set $defines; define=$1; shift; defines=$*
3030 # Define TARGET_CPU_DEFAULT if the system wants one.
3031 # This substitutes for lots of *.h files.
3032 if [[ "$target_cpu_default" != "" -a $link = tm.h ]]
3034 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3037 for file in `eval echo '$'$var`; do
3038 echo "#include \"$file\"" >>$link
3041 for def in `eval echo '$'$define`; do
3042 echo "#ifndef $def" >>$link
3043 echo "#define $def" >>$link
3044 echo "#endif" >>$link
3048 # Truncate the target if necessary
3049 if [[ x$host_truncate_target != x ]]; then
3050 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3053 # Get the version number from the toplevel
3054 version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
3056 # Get an absolute path to the GCC top-level source directory
3062 # Conditionalize the makefile for this host machine.
3063 # Make-host contains the concatenation of all host makefile fragments
3064 # [there can be more than one]. This file is built by configure.frag.
3065 host_overrides=Make-host
3066 dep_host_xmake_file=
3067 for f in .. ${host_xmake_file}
3069 if [[ -f ${srcdir}/config/$f ]]
3071 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3075 # Conditionalize the makefile for this target machine.
3076 # Make-target contains the concatenation of all host makefile fragments
3077 # [there can be more than one]. This file is built by configure.frag.
3078 target_overrides=Make-target
3080 for f in .. ${tmake_file}
3082 if [[ -f ${srcdir}/config/$f ]]
3084 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3088 # If the host doesn't support symlinks, modify CC in
3089 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3090 # Otherwise, we can use "CC=$(CC)".
3092 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3094 cc_set_by_configure="\$(CC)"
3095 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3098 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3100 symbolic_link="cp -p"
3104 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3105 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3109 out_object_file=`basename $out_file .c`.o
3112 for f in $tm_file; do
3113 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3117 for f in $host_xm_file; do
3118 if test $f != "auto-host.h"; then
3119 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3121 host_xm_file_list="${host_xm_file_list} auto-host.h"
3126 for f in $build_xm_file; do
3127 if test $f != "auto-build.h"; then
3128 if test $f != "auto-host.h"; then
3129 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3131 build_xm_file_list="${build_xm_file_list} auto-host.h"
3134 build_xm_file_list="${build_xm_file_list} auto-build.h"
3138 # Define macro CROSS_COMPILE in compilation
3139 # if this is a cross-compiler.
3140 # Also use all.cross instead of all.internal
3141 # and add cross-make to Makefile.
3142 cross_overrides="/dev/null"
3143 if [[ x$host != x$target ]]
3145 cross_defines="CROSS=-DCROSS_COMPILE"
3146 cross_overrides="${topdir}/cross-make"
3149 # When building gcc with a cross-compiler, we need to fix a few things.
3150 # This must come after cross-make as we want all.build to override
3152 build_overrides="/dev/null"
3153 if [[ x$build != x$host ]]
3155 build_overrides="${topdir}/build-make"
3158 # Expand extra_headers to include complete path.
3159 # This substitutes for lots of t-* files.
3161 if [[ "x$extra_headers" = x ]]
3164 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3165 for file in $extra_headers;
3167 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3171 # Add a definition of USE_COLLECT2 if system wants one.
3172 # Also tell toplev.c what to do.
3173 # This substitutes for lots of t-* files.
3174 if [[ x$use_collect2 = x ]]
3179 will_use_collect2="collect2"
3180 maybe_use_collect2="-DUSE_COLLECT2"
3184 # Set MD_DEPS if the real md file is in md.pre-cpp.
3185 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3186 # for line oriented comments, so we must always use a GNU cpp. If
3187 # building gcc with a cross compiler, use the cross compiler just
3188 # built. Otherwise, we can use the cpp just built.
3190 if [[ "x$md_cppflags" = x ]]
3192 md_file_sub=$srcdir/config/$md_file
3197 # If we have gas in the build tree, make a link to it.
3198 if [[ -f ../gas/Makefile ]]; then
3199 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3202 # If we have ld in the build tree, make a link to it.
3203 if [[ -f ../ld/Makefile ]]; then
3204 # if [[ x$use_collect2 = x ]]; then
3205 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3207 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3211 # Figure out what language subdirectories are present.
3213 for lang in ${srcdir}/*/config-lang.in ..
3217 # The odd quoting in the next line works around
3218 # an apparent bug in bash 1.12 on linux.
3219 ${srcdir}/[[*]]/config-lang.in) ;;
3220 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
3224 # Make gthr-default.h if we have a thread file.
3226 if [[ $thread_file != single ]]; then
3227 rm -f gthr-default.h
3228 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3229 gthread_flags=-DHAVE_GTHR_DEFAULT
3231 AC_SUBST(gthread_flags)
3233 # Make empty files to contain the specs and options for each language.
3234 # Then add #include lines to for a compiler that has specs and/or options.
3238 rm -f specs.h options.h
3239 touch specs.h options.h
3240 for subdir in . $subdirs
3242 if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
3243 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3244 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3246 if [[ -f $srcdir/$subdir/lang-options.h ]]; then
3247 echo "#include \"$subdir/lang-options.h\"" >>options.h
3248 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3252 # These (without "all_") are set in each config-lang.in.
3253 # `language' must be a single word so is spelled singularly.
3259 all_outputs=Makefile
3260 # List of language makefile fragments.
3265 # Add the language fragments.
3266 # Languages are added via two mechanisms. Some information must be
3267 # recorded in makefile variables, these are defined in config-lang.in.
3268 # We accumulate them and plug them into the main Makefile.
3269 # The other mechanism is a set of hooks for each of the main targets
3270 # like `clean', `install', etc.
3272 language_fragments="Make-lang"
3273 language_hooks="Make-hooks"
3276 for s in .. $subdirs
3288 . ${srcdir}/$s/config-lang.in
3289 if [[ "x$language" = x ]]
3291 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3294 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3295 all_languages="$all_languages $language"
3296 if [[ "x$boot_language" = xyes ]]
3298 all_boot_languages="$all_boot_languages $language"
3300 all_compilers="$all_compilers $compilers"
3301 all_stagestuff="$all_stagestuff $stagestuff"
3302 all_diff_excludes="$all_diff_excludes $diff_excludes"
3303 all_headers="$all_headers $headers"
3304 all_outputs="$all_outputs $outputs"
3305 if [[ x$outputs = x ]]
3307 oldstyle_subdirs="$oldstyle_subdirs $s"
3309 all_lib2funcs="$all_lib2funcs $lib2funcs"
3313 # Since we can't use `::' targets, we link each language in
3314 # with a set of hooks, reached indirectly via lang.${target}.
3318 target_list="all.build all.cross start.encap rest.encap \
3320 install-normal install-common install-info install-man \
3322 mostlyclean clean distclean extraclean maintainer-clean \
3323 stage1 stage2 stage3 stage4"
3324 for t in $target_list
3327 for l in .. $all_languages
3329 if [[ $l != ".." ]]; then
3333 echo "lang.$t: $x" >> Make-hooks
3336 # If we're not building in srcdir, create .gdbinit.
3338 if [[ ! -f Makefile.in ]]; then
3339 echo "dir ." > .gdbinit
3340 echo "dir ${srcdir}" >> .gdbinit
3341 if [[ x$gdb_needs_out_file_path = xyes ]]
3343 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3345 if [[ "x$subdirs" != x ]]; then
3348 echo "dir ${srcdir}/$s" >> .gdbinit
3351 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3354 # If this is using newlib, then define inhibit_libc in
3355 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3356 # libgcc.a, but that's OK because newib should have its own version of
3359 if [[ x$with_newlib = xyes ]]; then
3360 inhibit_libc=-Dinhibit_libc
3362 AC_SUBST(inhibit_libc)
3364 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3367 if [[ x$enable_haifa = xyes ]]; then
3368 echo "Using the Haifa scheduler."
3370 sched_cflags=-DHAIFA
3372 AC_SUBST(sched_prefix)
3373 AC_SUBST(sched_cflags)
3374 if [[ x$enable_haifa != x ]]; then
3375 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3376 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3377 if [[ -f $x ]]; then
3384 # Process the language and host/target makefile fragments.
3385 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3387 # Substitute configuration variables
3389 AC_SUBST(all_languages)
3390 AC_SUBST(all_boot_languages)
3391 AC_SUBST(all_compilers)
3392 AC_SUBST(all_lang_makefiles)
3393 AC_SUBST(all_stagestuff)
3394 AC_SUBST(all_diff_excludes)
3395 AC_SUBST(all_lib2funcs)
3396 AC_SUBST(all_headers)
3397 AC_SUBST(extra_passes)
3398 AC_SUBST(extra_programs)
3399 AC_SUBST(extra_parts)
3400 AC_SUBST(extra_c_objs)
3401 AC_SUBST(extra_c_flags)
3402 AC_SUBST(extra_objs)
3403 AC_SUBST(host_extra_gcc_objs)
3404 AC_SUBST(extra_headers_list)
3405 AC_SUBST(dep_host_xmake_file)
3406 AC_SUBST(dep_tmake_file)
3408 AC_SUBST(out_object_file)
3410 AC_SUBST(tm_file_list)
3411 AC_SUBST(build_xm_file_list)
3412 AC_SUBST(host_xm_file_list)
3413 AC_SUBST(lang_specs_files)
3414 AC_SUBST(lang_options_files)
3415 AC_SUBST(thread_file)
3417 AC_SUBST(local_prefix)
3418 AC_SUBST(gxx_include_dir)
3419 AC_SUBST(fixincludes)
3420 AC_SUBST(build_install_headers_dir)
3421 AC_SUBST(build_exeext)
3422 AC_SUBST(host_exeext)
3423 AC_SUBST(float_format)
3424 AC_SUBST(will_use_collect2)
3425 AC_SUBST(maybe_use_collect2)
3426 AC_SUBST(cc_set_by_configure)
3427 AC_SUBST(stage_prefix_set_by_configure)
3429 AC_SUBST(symbolic_link)
3431 AC_SUBST_FILE(target_overrides)
3432 AC_SUBST_FILE(host_overrides)
3433 AC_SUBST(cross_defines)
3434 AC_SUBST_FILE(cross_overrides)
3435 AC_SUBST_FILE(build_overrides)
3436 AC_SUBST_FILE(language_fragments)
3437 AC_SUBST_FILE(language_hooks)
3439 # Echo that links are built
3440 if [[ x$host = x$target ]]
3448 if [[ x$host != x$build ]]
3450 str3=" on a $build system"
3453 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3458 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3460 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3462 echo " ${str2}${str3}." 1>&2
3465 # Truncate the target if necessary
3466 if [[ x$host_truncate_target != x ]]; then
3467 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3470 # Configure the subdirectories
3471 # AC_CONFIG_SUBDIRS($subdirs)
3473 # Create the Makefile
3474 # and configure language subdirectories
3475 AC_OUTPUT($all_outputs,
3477 . $srcdir/configure.lang
3478 case x$CONFIG_HEADERS in
3479 xauto-host.h:config.in)
3482 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3483 # bootstrapping and the installation procedure can still use
3484 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3485 # FLAGS_TO_PASS has been modified to solve the problem there.
3486 # This is virtually a duplicate of what happens in configure.lang; we do
3487 # an extra check to make sure this only happens if ln -s can be used.
3488 if [[ "$symbolic_link" = "ln -s" ]]; then
3489 for d in .. ${subdirs} ; do
3490 if [[ $d != .. ]]; then
3493 for t in stage1 stage2 stage3 stage4 include
3496 $symbolic_link ../$t $t 2>/dev/null
3507 target_alias='${target_alias}'
3509 subdirs='${subdirs}'
3510 oldstyle_subdirs='${oldstyle_subdirs}'
3511 symbolic_link='${symbolic_link}'
3512 program_transform_set='${program_transform_set}'
3513 program_transform_name='${program_transform_name}'
3514 dep_host_xmake_file='${dep_host_xmake_file}'
3515 host_xmake_file='${host_xmake_file}'
3516 dep_tmake_file='${dep_tmake_file}'
3517 tmake_file='${tmake_file}'
3518 thread_file='${thread_file}'
3519 version='${version}'
3520 local_prefix='${local_prefix}'
3521 build_install_headers_dir='${build_install_headers_dir}'
3522 build_exeext='${build_exeext}'
3523 host_exeext='${host_exeext}'
3524 out_file='${out_file}'
3525 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3526 SET_MAKE='${SET_MAKE}'
3527 target_list='${target_list}'
3528 target_overrides='${target_overrides}'
3529 host_overrides='${host_overrides}'
3530 cross_defines='${cross_defines}'
3531 cross_overrides='${cross_overrides}'
3532 build_overrides='${build_overrides}'