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 enable_threads_flag=$enable_threads
114 # Check if a valid thread package
115 case x${enable_threads_flag} in
118 target_thread_file='single'
122 target_thread_file=''
124 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
125 xsolaris | xwin32 | xdce | xvxworks)
126 target_thread_file=$enable_threads_flag
129 echo "$enable_threads is an unknown thread package" 1>&2
134 # Determine the host, build, and target systems
137 # Find the native compiler
141 # Find some useful tools
152 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)
154 # Check for thread headers.
155 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
156 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
158 # See if the system preprocessor understands the ANSI C preprocessor
159 # stringification operator.
160 AC_MSG_CHECKING(whether cpp understands the stringify operator)
161 AC_CACHE_VAL(gcc_cv_c_have_stringify,
164 char *test = S(foo);],
165 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
166 AC_MSG_RESULT($gcc_cv_c_have_stringify)
167 if test $gcc_cv_c_have_stringify = yes; then
168 AC_DEFINE(HAVE_CPP_STRINGIFY)
171 # Use <inttypes.h> only if it exists,
172 # doesn't clash with <sys/types.h>, and declares intmax_t.
173 AC_MSG_CHECKING(for inttypes.h)
174 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
176 [#include <sys/types.h>
177 #include <inttypes.h>],
179 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
180 gcc_cv_header_inttypes_h=yes],
181 gcc_cv_header_inttypes_h=no)])
182 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
184 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
185 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
188 GCC_FUNC_VFPRINTF_DOPRNT
191 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
192 index rindex getenv atol sbrk abort atof)
204 build_install_headers_dir=install-headers-tar
209 host_truncate_target=
212 # Decode the host machine, then the target machine.
213 # For the host machine, we save the xm_file variable as host_xm_file;
214 # then we decode the target machine and forget everything else
215 # that came from the host machine.
216 for machine in $build $host $target; do
230 # Set this to force installation and use of collect2.
232 # Set this to override the default target model.
234 # Set this to control which fixincludes program to use.
235 if [[ x$fast_fixinc != xyes ]] ; then
236 fixincludes=fixincludes
237 else fixincludes=fixinc.sh ; fi
238 # Set this to control how the header file directory is installed.
239 install_headers_dir=install-headers-tar
240 # Set this to a non-empty list of args to pass to cpp if the target
241 # wants its .md file passed through cpp.
243 # Set this if directory names should be truncated to 14 characters.
245 # Set this if gdb needs a dir command with `dirname $out_file`
246 gdb_needs_out_file_path=
247 # Set this if the build machine requires executables to have a
250 # Set this to control which thread package will be used.
252 # Reinitialize these from the flag values every loop pass, since some
253 # configure entries modify them.
255 gnu_ld="$gnu_ld_flag"
256 enable_threads=$enable_threads_flag
258 # Set default cpu_type, tm_file and xm_file so it can be updated in
259 # each machine entry.
260 cpu_type=`echo $machine | sed 's/-.*$//'`
294 tm_file=${cpu_type}/${cpu_type}.h
295 xm_file=${cpu_type}/xm-${cpu_type}.h
297 # Set the default macros to define for GNU/Linux systems.
300 xm_defines="HAVE_ATEXIT POSIX NO_STAB_H BSTRING"
305 # Support site-specific machine types.
307 cpu_type=`echo $machine | sed -e 's/-.*//'`
308 rest=`echo $machine | sed -e "s/$cpu_type-//"`
309 xm_file=${cpu_type}/xm-$rest.h
310 tm_file=${cpu_type}/$rest.h
311 if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \
312 then xmake_file=${cpu_type}/x-$rest; \
315 if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \
316 then tmake_file=${cpu_type}/t-$rest; \
322 a29k-*-bsd* | a29k-*-sym1*)
323 tm_file="${tm_file} a29k/unix.h"
325 xmake_file=a29k/x-unix
328 a29k-*-udi | a29k-*-coff)
329 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
330 tmake_file=a29k/t-a29kbare
333 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
334 tmake_file=a29k/t-vx29k
335 extra_parts="crtbegin.o crtend.o"
336 thread_file='vxworks'
338 a29k-*-*) # Default a29k environment.
341 alpha*-*-linux-gnuecoff*)
342 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
344 target_cpu_default="MASK_GAS"
349 alpha*-*-linux-gnulibc1*)
350 tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
352 target_cpu_default="MASK_GAS"
353 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
354 extra_parts="crtbegin.o crtend.o"
357 if [[ x$enable_threads = xyes ]]; then
362 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
364 target_cpu_default="MASK_GAS"
365 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
366 extra_parts="crtbegin.o crtend.o"
368 fixincludes=Makefile.in
370 if [[ x$enable_threads = xyes ]]; then
375 if [[ x$stabs = xyes ]]
377 tm_file="${tm_file} dbx.h"
379 if [[ x$gas != xyes ]]
381 extra_passes="mips-tfile mips-tdump"
386 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
389 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
392 tm_file="${tm_file} alpha/osf.h"
393 # Some versions of OSF4 (specifically X4.0-9 296.7) have
394 # a broken tar, so we use cpio instead.
395 install_headers_dir=install-headers-cpio
399 *-*-osf4.0[[b-z]] | *-*-osf4.[[1-9]]*)
400 target_cpu_default=MASK_SUPPORT_ARCH
405 tm_file="${tm_file} alpha/win-nt.h"
406 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
408 xmake_file=winnt/x-winnt
409 extra_host_objs=oldnames.o
410 extra_gcc_objs="spawnv.o oldnames.o"
411 fixincludes=fixinc.winnt
412 if [[ x$gnu_ld != xyes ]]
414 extra_programs=ld.exe
416 if [[ x$enable_threads = xyes ]]; then
422 xm_file="${xm_file} alpha/xm-vms.h"
423 tmake_file=alpha/t-vms
424 fixincludes=Makefile.in
427 extra_parts="crtinit.o crtfini.o"
429 arm-*-coff* | armel-*-coff*)
431 tmake_file=arm/t-bare
433 arm-*-riscix1.[[01]]*) # Acorn RISC machine (early versions)
434 tm_file=arm/riscix1-1.h
437 arm-*-riscix*) # Acorn RISC machine
438 if [[ x$gas = xyes ]]
440 tm_file=arm/rix-gas.h
444 xmake_file=arm/x-riscix
445 tmake_file=arm/t-riscix
448 arm-semi-aout | armel-semi-aout)
450 tmake_file=arm/t-semi
451 fixincludes=Makefile.in # There is nothing to fix
453 arm-semi-aof | armel-semi-aof)
454 tm_file=arm/semiaof.h
455 tmake_file=arm/t-semiaof
456 fixincludes=Makefile.in # There is nothing to fix
460 xm_file="xm-siglist.h ${xm_file}"
461 tmake_file="t-netbsd arm/t-netbsd"
462 # On NetBSD, the headers are already okay, except for math.h.
463 fixincludes=fixinc.math
465 arm-*-linux-gnuaout*) # ARM GNU/Linux
468 tm_file=arm/linux-gas.h
469 tmake_file=arm/t-linux
470 fixincludes=Makefile.in
475 tmake_file=arm/t-bare
477 c1-convex-*) # Convex C1
480 fixincludes=Makefile.in
482 c2-convex-*) # Convex C2
485 fixincludes=Makefile.in
490 fixincludes=Makefile.in
495 fixincludes=Makefile.in
498 target_cpu_default=16
500 fixincludes=Makefile.in
502 clipper-intergraph-clix*)
503 tm_file="${tm_file} svr3.h clipper/clix.h"
504 xm_file=clipper/xm-clix.h
505 xmake_file=clipper/x-clix
506 extra_headers=va-clipper.h
507 extra_parts="crtbegin.o crtend.o"
508 install_headers_dir=install-headers-cpio
515 # This hasn't been upgraded to GCC 2.
516 # fx80-alliant-*) # Alliant FX/80
522 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
523 xm_file=pa/xm-papro.h
528 tm_file="${tm_file} pa/pa-osf.h"
530 fixincludes=Makefile.in
533 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
534 xm_file=pa/xm-papro.h
538 tm_file="${tm_file} pa/pa-osf.h"
540 fixincludes=Makefile.in
545 fixincludes=Makefile.in
549 fixincludes=Makefile.in
552 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
553 xm_file=pa/xm-pahpux.h
554 xmake_file=pa/x-pa-hpux
555 if [[ x$gas = xyes ]]
557 tm_file="${tm_file} pa/gas.h"
559 install_headers_dir=install-headers-cpio
562 hppa1.0-*-hpux8.0[[0-2]]*)
563 tm_file="${tm_file} pa/pa-hpux.h"
564 xm_file=pa/xm-pahpux.h
565 xmake_file=pa/x-pa-hpux
566 if [[ x$gas = xyes ]]
568 tm_file="${tm_file} pa/pa-gas.h"
570 tm_file="pa/pa-oldas.h ${tm_file}"
572 install_headers_dir=install-headers-cpio
575 hppa1.1-*-hpux8.0[[0-2]]*)
577 tm_file="${tm_file} pa/pa-hpux.h"
578 xm_file=pa/xm-pahpux.h
579 xmake_file=pa/x-pa-hpux
580 if [[ x$gas = xyes ]]
582 tm_file="${tm_file} pa/pa-gas.h"
584 tm_file="pa/pa-oldas.h ${tm_file}"
586 install_headers_dir=install-headers-cpio
591 tm_file="${tm_file} pa/pa-hpux.h"
592 xm_file=pa/xm-pahpux.h
593 xmake_file=pa/x-pa-hpux
594 if [[ x$gas = xyes ]]
596 tm_file="${tm_file} pa/pa-gas.h"
598 install_headers_dir=install-headers-cpio
602 tm_file="${tm_file} pa/pa-hpux.h"
603 xm_file=pa/xm-pahpux.h
604 xmake_file=pa/x-pa-hpux
605 if [[ x$gas = xyes ]]
607 tm_file="${tm_file} pa/pa-gas.h"
609 install_headers_dir=install-headers-cpio
614 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
615 xm_file=pa/xm-pahpux.h
616 xmake_file=pa/x-pa-hpux
618 if [[ x$gas = xyes ]]
620 tm_file="${tm_file} pa/pa-gas.h"
622 if [[ x$enable_threads = x ]]; then
623 enable_threads=$have_pthread_h
625 if [[ x$enable_threads = xyes ]]; then
627 tmake_file="${tmake_file} pa/t-dce-thr"
629 install_headers_dir=install-headers-cpio
633 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
634 xm_file=pa/xm-pahpux.h
635 xmake_file=pa/x-pa-hpux
636 if [[ x$gas = xyes ]]
638 tm_file="${tm_file} pa/pa-gas.h"
640 if [[ x$enable_threads = x ]]; then
641 enable_threads=$have_pthread_h
643 if [[ x$enable_threads = xyes ]]; then
645 tmake_file="${tmake_file} pa/t-dce-thr"
647 install_headers_dir=install-headers-cpio
652 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
653 xm_file=pa/xm-pahpux.h
654 xmake_file=pa/x-pa-hpux
655 if [[ x$gas = xyes ]]
657 tm_file="${tm_file} pa/pa-gas.h"
659 install_headers_dir=install-headers-cpio
663 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
664 xm_file=pa/xm-pahpux.h
665 xmake_file=pa/x-pa-hpux
666 if [[ x$gas = xyes ]]
668 tm_file="${tm_file} pa/pa-gas.h"
670 install_headers_dir=install-headers-cpio
675 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
676 xm_file=pa/xm-pahpux.h
677 xmake_file=pa/x-pa-hpux
678 if [[ x$gas = xyes ]]
680 tm_file="${tm_file} pa/pa-gas.h"
682 install_headers_dir=install-headers-cpio
686 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
687 xm_file=pa/xm-pahpux.h
688 xmake_file=pa/x-pa-hpux
689 if [[ x$gas = xyes ]]
691 tm_file="${tm_file} pa/pa-gas.h"
693 install_headers_dir=install-headers-cpio
699 fixincludes=Makefile.in
703 i[[34567]]86-ibm-aix*) # IBM PS/2 running AIX
704 if [[ x$gas = xyes ]]
706 tm_file=i386/aix386.h
707 extra_parts="crtbegin.o crtend.o"
708 tmake_file=i386/t-crtstuff
710 tm_file=i386/aix386ng.h
713 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
715 xmake_file=i386/x-aix
717 i[[34567]]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
718 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
719 xm_defines="USG POSIX SMALL_ARG_MAX"
720 xmake_file=i386/x-ncr3000
721 if [[ x$stabs = xyes -a x$gas = xyes ]]
723 tm_file=i386/sysv4gdb.h
727 extra_parts="crtbegin.o crtend.o"
728 tmake_file=i386/t-crtpic
732 xm_file=i386/xm-next.h
733 tmake_file=i386/t-next
734 xmake_file=i386/x-next
735 extra_objs=nextstep.o
736 if [[ x$enable_threads = xyes ]]; then
740 i[[34567]]86-sequent-bsd*) # 80386 from Sequent
742 if [[ x$gas = xyes ]]
744 tm_file=i386/seq-gas.h
746 tm_file=i386/sequent.h
749 i[[34567]]86-sequent-ptx1*)
750 xm_defines="USG SVR3"
751 xmake_file=i386/x-sysv3
752 tm_file=i386/seq-sysv3.h
753 tmake_file=i386/t-crtstuff
754 fixincludes=fixinc.ptx
755 extra_parts="crtbegin.o crtend.o"
756 install_headers_dir=install-headers-cpio
758 i[[34567]]86-sequent-ptx2* | i[[34567]]86-sequent-sysv3*)
759 xm_defines="USG SVR3"
760 xmake_file=i386/x-sysv3
761 tm_file=i386/seq2-sysv3.h
762 tmake_file=i386/t-crtstuff
763 extra_parts="crtbegin.o crtend.o"
764 fixincludes=fixinc.ptx
765 install_headers_dir=install-headers-cpio
767 i[[34567]]86-sequent-ptx4* | i[[34567]]86-sequent-sysv4*)
768 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
769 xm_defines="USG POSIX SMALL_ARG_MAX"
771 tm_file=i386/ptx4-i.h
773 extra_parts="crtbegin.o crtend.o"
774 fixincludes=fixinc.ptx
775 install_headers_dir=install-headers-cpio
777 i386-sun-sunos*) # Sun i386 roadrunner
782 i[[34567]]86-wrs-vxworks*)
783 tm_file=i386/vxi386.h
784 tmake_file=i386/t-i386bare
786 i[[34567]]86-*-aout*)
787 tm_file=i386/i386-aout.h
788 tmake_file=i386/t-i386bare
790 i[[34567]]86-*-bsdi* | i[[34567]]86-*-bsd386*)
791 tm_file=i386/bsd386.h
792 # tmake_file=t-libc-ok
795 tm_file=i386/386bsd.h
796 # tmake_file=t-libc-ok
797 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
800 i[[34567]]86-*-freebsdelf*)
801 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
802 # On FreeBSD, the headers are already ok, except for math.h.
803 fixincludes=fixinc.math
804 tmake_file=i386/t-freebsd
809 i[[34567]]86-*-freebsd*)
810 tm_file=i386/freebsd.h
811 # On FreeBSD, the headers are already ok, except for math.h.
812 fixincludes=fixinc.math
813 tmake_file=i386/t-freebsd
815 i[[34567]]86-*-netbsd*)
816 tm_file=i386/netbsd.h
817 # On NetBSD, the headers are already okay, except for math.h.
818 fixincludes=fixinc.math
821 i[[34567]]86-*-coff*)
822 tm_file=i386/i386-coff.h
823 tmake_file=i386/t-i386bare
825 i[[34567]]86-*-isc*) # 80386 running ISC system
826 xm_file="${xm_file} i386/xm-isc.h"
827 xm_defines="USG SVR3"
829 i[[34567]]86-*-isc[[34]]*)
830 xmake_file=i386/x-isc3
833 xmake_file=i386/x-isc
836 if [[ x$gas = xyes -a x$stabs = xyes ]]
838 tm_file=i386/iscdbx.h
839 tmake_file=i386/t-svr3dbx
840 extra_parts="svr3.ifile svr3z.ifile"
842 tm_file=i386/isccoff.h
843 tmake_file=i386/t-crtstuff
844 extra_parts="crtbegin.o crtend.o"
846 install_headers_dir=install-headers-cpio
848 i[[34567]]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
849 # with a.out format using
851 xmake_file=x-linux-aout
852 tmake_file="t-linux-aout i386/t-crtstuff"
853 tm_file=i386/linux-oldld.h
854 fixincludes=Makefile.in #On Linux, the headers are ok already.
857 i[[34567]]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
859 xmake_file=x-linux-aout
860 tmake_file="t-linux-aout i386/t-crtstuff"
861 tm_file=i386/linux-aout.h
862 fixincludes=Makefile.in #On Linux, the headers are ok already.
865 i[[34567]]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
866 # with ELF format using the
867 # GNU/Linux C library 5
870 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
871 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
872 fixincludes=Makefile.in #On Linux, the headers are ok already.
874 if [[ x$enable_threads = xyes ]]; then
878 i[[34567]]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
879 # with ELF format using glibc 2
880 # aka GNU/Linux C library 6
883 tmake_file="t-linux i386/t-crtstuff"
884 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
885 fixincludes=Makefile.in #On Linux, the headers are ok already.
887 if [[ x$enable_threads = xyes ]]; then
893 i[[34567]]86-go32-msdos | i[[34567]]86-*-go32*)
894 xm_file=i386/xm-go32.h
896 tmake_file=i386/t-go32
898 i[[34567]]86-pc-msdosdjgpp*)
899 xm_file=i386/xm-go32.h
901 tmake_file=i386/t-go32
905 i[[34567]]86-moss-msdos* | i[[34567]]86-*-moss*)
908 fixincludes=Makefile.in
912 i[[34567]]86-*-lynxos*)
913 if [[ x$gas = xyes ]]
917 tm_file=i386/lynx-ng.h
919 xm_file=i386/xm-lynx.h
920 tmake_file=i386/t-i386bare
923 i[[34567]]86-*-mach*)
925 # tmake_file=t-libc-ok
928 i[[34567]]86-*-osfrose*) # 386 using OSF/rose
929 if [[ x$elf = xyes ]]
931 tm_file=i386/osfelf.h
934 tm_file=i386/osfrose.h
937 xm_file="i386/xm-osf.h ${xm_file}"
938 xmake_file=i386/x-osfrose
939 tmake_file=i386/t-osf
942 i[[34567]]86-go32-rtems*)
944 xm_file=i386/xm-go32.h
945 tm_file=i386/go32-rtems.h
946 tmake_file="i386/t-go32 t-rtems"
948 i[[34567]]86-*-rtemself*)
950 tm_file=i386/rtemself.h
951 tmake_file="i386/t-i386bare t-rtems"
953 i[[34567]]86-*-rtems*)
956 tmake_file="i386/t-i386bare t-rtems"
958 i[[34567]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
959 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
960 xm_defines="USG SVR3"
961 xmake_file=i386/x-sco5
962 fixincludes=fixinc.sco
963 install_headers_dir=install-headers-cpio
965 tmake_file=i386/t-sco5
966 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
968 i[[34567]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
969 xm_file="${xm_file} i386/xm-sco.h"
970 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
971 xmake_file=i386/x-sco4
972 fixincludes=fixinc.sco
973 install_headers_dir=install-headers-cpio
974 if [[ x$stabs = xyes ]]
976 tm_file=i386/sco4dbx.h
977 tmake_file=i386/t-svr3dbx
978 extra_parts="svr3.ifile svr3z.rfile"
981 tmake_file=i386/t-crtstuff
982 extra_parts="crtbegin.o crtend.o"
986 i[[34567]]86-*-sco*) # 80386 running SCO system
987 xm_file=i386/xm-sco.h
988 xmake_file=i386/x-sco
989 install_headers_dir=install-headers-cpio
990 if [[ x$stabs = xyes ]]
992 tm_file=i386/scodbx.h
993 tmake_file=i386/t-svr3dbx
994 extra_parts="svr3.ifile svr3z.rfile"
997 extra_parts="crtbegin.o crtend.o"
998 tmake_file=i386/t-crtstuff
1002 i[[34567]]86-*-solaris2*)
1003 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1004 xm_defines="USG POSIX SMALL_ARG_MAX"
1005 if [[ x$stabs = xyes ]]
1007 tm_file=i386/sol2dbg.h
1011 tmake_file=i386/t-sol2
1012 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1015 *-*-solaris2.[[0-4]])
1016 fixincludes=fixinc.svr4;;
1018 fixincludes=fixinc.math;;
1020 if [[ x$enable_threads = xyes ]]; then
1021 thread_file='solaris'
1024 i[[34567]]86-*-sysv5*) # Intel x86 on System V Release 5
1025 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1026 xm_defines="USG POSIX"
1027 tm_file=i386/sysv4.h
1028 if [[ x$stabs = xyes ]]
1030 tm_file="${tm_file} dbx.h"
1032 tmake_file=i386/t-crtpic
1034 extra_parts="crtbegin.o crtend.o"
1035 fixincludes=Makefile.in # The headers are just fine, thank you.
1037 i[[34567]]86-*-sysv4*) # Intel 80386's running system V.4
1038 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1039 xm_defines="USG POSIX SMALL_ARG_MAX"
1040 tm_file=i386/sysv4.h
1041 if [[ x$stabs = xyes ]]
1043 tm_file="${tm_file} dbx.h"
1045 tmake_file=i386/t-crtpic
1047 extra_parts="crtbegin.o crtend.o"
1049 i[[34567]]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1051 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1052 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1053 fixincludes=Makefile.in #Don't do it on OSF/1
1054 if [[ x$stabs = xyes ]]
1056 tm_file=i386/osf1elfgdb.h
1058 tm_file=i386/osf1elf.h
1060 tmake_file=i386/t-osf1elf
1061 xmake_file=i386/x-osf1elf
1062 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1064 i[[34567]]86-*-sysv*) # Intel 80386's running system V
1065 xm_defines="USG SVR3"
1066 xmake_file=i386/x-sysv3
1067 if [[ x$gas = xyes ]]
1069 if [[ x$stabs = xyes ]]
1071 tm_file=i386/svr3dbx.h
1072 tmake_file=i386/t-svr3dbx
1073 extra_parts="svr3.ifile svr3z.rfile"
1075 tm_file=i386/svr3gas.h
1076 extra_parts="crtbegin.o crtend.o"
1077 tmake_file=i386/t-crtstuff
1080 tm_file=i386/sysv3.h
1081 extra_parts="crtbegin.o crtend.o"
1082 tmake_file=i386/t-crtstuff
1085 i386-*-vsta) # Intel 80386's running VSTa kernel
1086 xm_file="${xm_file} i386/xm-vsta.h"
1088 tmake_file=i386/t-vsta
1089 xmake_file=i386/x-vsta
1091 i[[34567]]86-*-pe | i[[34567]]86-*-cygwin32)
1092 xm_file="${xm_file} i386/xm-cygwin32.h"
1093 tmake_file=i386/t-cygwin32
1094 tm_file=i386/cygwin32.h
1095 xmake_file=i386/x-cygwin32
1097 fixincludes=Makefile.in
1098 if [[ x$enable_threads = xyes ]]; then
1103 i[[34567]]86-*-mingw32*)
1104 tm_file=i386/mingw32.h
1105 xm_file="${xm_file} i386/xm-mingw32.h"
1106 tmake_file=i386/t-cygwin32
1108 xmake_file=i386/x-cygwin32
1109 fixincludes=Makefile.in
1110 if [[ x$enable_threads = xyes ]]; then
1117 *minwg32crt* | *mingw32*)
1118 tm_file="${tm_file} i386/crtdll.h"
1122 i[[34567]]86-*-winnt3*)
1123 tm_file=i386/win-nt.h
1124 out_file=i386/i386.c
1125 xm_file="xm-winnt.h ${xm_file}"
1126 xmake_file=winnt/x-winnt
1127 tmake_file=i386/t-winnt
1128 extra_host_objs="winnt.o oldnames.o"
1129 extra_gcc_objs="spawnv.o oldnames.o"
1130 fixincludes=fixinc.winnt
1131 if [[ x$gnu_ld != xyes ]]
1133 extra_programs=ld.exe
1135 if [[ x$enable_threads = xyes ]]; then
1139 i[[34567]]86-dg-dgux*)
1140 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1141 xm_defines="USG POSIX"
1142 out_file=i386/dgux.c
1144 tmake_file=i386/t-dgux
1145 xmake_file=i386/x-dgux
1146 fixincludes=fixinc.dgux
1147 install_headers_dir=install-headers-cpio
1149 i860-alliant-*) # Alliant FX/2800
1150 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1151 xm_file="${xm_file}"
1152 xmake_file=i860/x-fx2800
1153 tmake_file=i860/t-fx2800
1154 extra_parts="crtbegin.o crtend.o"
1157 tm_file="${tm_file} i860/bsd.h"
1158 if [[ x$gas = xyes ]]
1160 tm_file="${tm_file} i860/bsd-gas.h"
1165 tm_file="${tm_file} i860/mach.h"
1166 tmake_file=t-libc-ok
1168 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1169 tm_file="${tm_file} svr3.h i860/paragon.h"
1170 xm_defines="USG SVR3"
1174 tm_file="${tm_file} svr3.h i860/sysv3.h"
1175 xm_defines="USG SVR3"
1176 xmake_file=i860/x-sysv3
1177 extra_parts="crtbegin.o crtend.o"
1180 tm_file="${tm_file} svr4.h i860/sysv4.h"
1181 xm_defines="USG SVR3"
1182 xmake_file=i860/x-sysv4
1184 extra_parts="crtbegin.o crtend.o"
1186 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1187 tm_file="${tm_file} i960/vx960.h"
1188 tmake_file=i960/t-vxworks960
1190 thread_file='vxworks'
1192 i960-wrs-vxworks5* | i960-wrs-vxworks)
1193 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1194 tmake_file=i960/t-vxworks960
1196 thread_file='vxworks'
1199 tm_file="${tm_file} i960/vx960.h"
1200 tmake_file=i960/t-vxworks960
1202 thread_file='vxworks'
1205 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1206 tmake_file=i960/t-960bare
1210 tmake_file="i960/t-960bare t-rtems"
1211 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1214 i960-*-*) # Default i960 environment.
1218 extra_parts="crtinit.o crtfini.o"
1220 m68000-convergent-sysv*)
1222 xm_file="m68k/xm-3b1.h ${xm_file}"
1225 extra_headers=math-68881.h
1227 m68000-hp-bsd*) # HP 9000/200 running BSD
1228 tm_file=m68k/hp2bsd.h
1229 xmake_file=m68k/x-hp2bsd
1231 extra_headers=math-68881.h
1233 m68000-hp-hpux*) # HP 9000 series 300
1234 xm_file="xm_alloca.h ${xm_file}"
1235 xm_defines="USG NO_SYS_SIGLIST"
1236 if [[ x$gas = xyes ]]
1238 xmake_file=m68k/x-hp320g
1239 tm_file=m68k/hp310g.h
1241 xmake_file=m68k/x-hp320
1242 tm_file=m68k/hp310.h
1244 install_headers_dir=install-headers-cpio
1246 extra_headers=math-68881.h
1251 extra_headers=math-68881.h
1254 tm_file=m68k/sun2o4.h
1256 extra_headers=math-68881.h
1259 xm_file="m68k/xm-3b1.h ${xm_file}"
1261 if [[ x$gas = xyes ]]
1268 extra_headers=math-68881.h
1270 m68k-apple-aux*) # Apple Macintosh running A/UX
1271 xm_defines="USG AUX"
1272 tmake_file=m68k/t-aux
1273 install_headers_dir=install-headers-cpio
1274 extra_headers=math-68881.h
1275 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1277 if [[ "$gnu_ld" = yes ]]
1279 tm_file="${tm_file} m68k/auxgld.h"
1281 tm_file="${tm_file} m68k/auxld.h"
1283 if [[ "$gas" = yes ]]
1285 tm_file="${tm_file} m68k/auxgas.h"
1287 tm_file="${tm_file} m68k/auxas.h"
1289 tm_file="${tm_file} m68k/a-ux.h"
1292 tm_file=m68k/apollo68.h
1293 xmake_file=m68k/x-apollo68
1295 extra_headers=math-68881.h
1297 m68k-altos-sysv*) # Altos 3068
1298 if [[ x$gas = xyes ]]
1300 tm_file=m68k/altos3068.h
1303 echo "The Altos is supported only with the GNU assembler" 1>&2
1306 extra_headers=math-68881.h
1308 m68k-bull-sysv*) # Bull DPX/2
1309 if [[ x$gas = xyes ]]
1311 if [[ x$stabs = xyes ]]
1313 tm_file=m68k/dpx2cdbx.h
1315 tm_file=m68k/dpx2g.h
1320 xm_file="xm-alloca.h ${xm_file}"
1322 xmake_file=m68k/x-dpx2
1324 extra_headers=math-68881.h
1326 m68k-atari-sysv4*) # Atari variant of V.4.
1327 tm_file=m68k/atari.h
1328 xm_file="xm-alloca.h ${xm_file}"
1329 xm_defines="USG FULL_PROTOTYPES"
1331 extra_parts="crtbegin.o crtend.o"
1332 extra_headers=math-68881.h
1334 m68k-motorola-sysv*)
1335 tm_file=m68k/mot3300.h
1336 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1337 xm_defines=NO_SYS_SIGLIST
1338 if [[ x$gas = xyes ]]
1340 xmake_file=m68k/x-mot3300-gas
1341 if [[ x$gnu_ld = xyes ]]
1343 tmake_file=m68k/t-mot3300-gald
1345 tmake_file=m68k/t-mot3300-gas
1349 xmake_file=m68k/x-mot3300
1350 if [[ x$gnu_ld = xyes ]]
1352 tmake_file=m68k/t-mot3300-gld
1354 tmake_file=m68k/t-mot3300
1358 gdb_needs_out_file_path=yes
1359 extra_parts="crt0.o mcrt0.o"
1360 extra_headers=math-68881.h
1362 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1363 tm_file=m68k/tower-as.h
1364 xm_defines="USG SVR3"
1365 xmake_file=m68k/x-tower
1366 extra_parts="crtbegin.o crtend.o"
1367 extra_headers=math-68881.h
1370 tm_file=m68k/plexus.h
1371 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1374 extra_headers=math-68881.h
1378 xm_file="xm-alloca.h ${xm_file}"
1380 extra_headers=math-68881.h
1383 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1384 xm_defines="USG unos"
1385 xmake_file=m68k/x-crds
1388 extra_headers=math-68881.h
1390 m68k-cbm-sysv4*) # Commodore variant of V.4.
1392 xm_file="xm-alloca.h ${xm_file}"
1393 xm_defines="USG FULL_PROTOTYPES"
1394 xmake_file=m68k/x-amix
1396 extra_parts="crtbegin.o crtend.o"
1397 extra_headers=math-68881.h
1400 tm_file=m68k/ccur-GAS.h
1401 xmake_file=m68k/x-ccur
1402 extra_headers=math-68881.h
1405 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1406 tm_file=m68k/hp3bsd44.h
1407 xmake_file=m68k/x-hp3bsd44
1409 extra_headers=math-68881.h
1411 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1412 tm_file=m68k/hp3bsd.h
1414 extra_headers=math-68881.h
1417 if [[ x$with_fp = xno ]]
1419 tm_file=m68k/isi-nfp.h
1424 extra_headers=math-68881.h
1426 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1427 xm_file="xm_alloca.h ${xm_file}"
1428 xm_defines="USG NO_SYS_SIGLIST"
1429 if [[ x$gas = xyes ]]
1431 xmake_file=m68k/x-hp320g
1432 tm_file=m68k/hp320g.h
1434 xmake_file=m68k/x-hp320
1435 tm_file=m68k/hpux7.h
1437 install_headers_dir=install-headers-cpio
1439 extra_headers=math-68881.h
1441 m68k-hp-hpux*) # HP 9000 series 300
1442 xm_file="xm_alloca.h ${xm_file}"
1443 xm_defines="USG NO_SYS_SIGLIST"
1444 if [[ x$gas = xyes ]]
1446 xmake_file=m68k/x-hp320g
1447 tm_file=m68k/hp320g.h
1449 xmake_file=m68k/x-hp320
1450 tm_file=m68k/hp320.h
1452 install_headers_dir=install-headers-cpio
1454 extra_headers=math-68881.h
1457 tm_file=m68k/sun3mach.h
1459 extra_headers=math-68881.h
1462 if [[ x$gas = xyes ]]
1464 tm_file=m68k/news3gas.h
1466 tm_file=m68k/news3.h
1469 extra_headers=math-68881.h
1471 m68k-sony-bsd* | m68k-sony-newsos*)
1472 if [[ x$gas = xyes ]]
1474 tm_file=m68k/newsgas.h
1479 extra_headers=math-68881.h
1481 m68k-next-nextstep2*)
1482 tm_file=m68k/next21.h
1483 xm_file="m68k/xm-next.h ${xm_file}"
1484 tmake_file=m68k/t-next
1485 xmake_file=m68k/x-next
1486 extra_objs=nextstep.o
1487 extra_headers=math-68881.h
1490 m68k-next-nextstep3*)
1492 xm_file="m68k/xm-next.h ${xm_file}"
1493 tmake_file=m68k/t-next
1494 xmake_file=m68k/x-next
1495 extra_objs=nextstep.o
1496 extra_headers=math-68881.h
1497 if [[ x$enable_threads = xyes ]]; then
1502 if [[ x$with_fp = xno ]]
1504 tm_file=m68k/sun3n3.h
1506 tm_file=m68k/sun3o3.h
1509 extra_headers=math-68881.h
1511 m68k-sun-sunos*) # For SunOS 4 (the default).
1512 if [[ x$with_fp = xno ]]
1514 tm_file=m68k/sun3n.h
1519 extra_headers=math-68881.h
1522 tm_file=m68k/vxm68k.h
1523 tmake_file=m68k/t-vxworks68
1524 extra_headers=math-68881.h
1525 thread_file='vxworks'
1528 tmake_file=m68k/t-m68kbare
1529 tm_file="m68k/m68k-aout.h libgloss.h"
1530 extra_headers=math-68881.h
1533 tmake_file=m68k/t-m68kbare
1534 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1535 extra_headers=math-68881.h
1538 if [[ x$gas = xyes ]]
1542 tm_file=m68k/lynx-ng.h
1544 xm_file=m68k/xm-lynx.h
1546 tmake_file=m68k/t-lynx
1547 extra_headers=math-68881.h
1550 tm_file=m68k/netbsd.h
1551 # On NetBSD, the headers are already okay, except for math.h.
1552 fixincludes=fixinc.math
1555 m68k-*-sysv3*) # Motorola m68k's running system V.3
1556 xm_file="xm-alloca.h ${xm_file}"
1558 xmake_file=m68k/x-m68kv
1559 extra_parts="crtbegin.o crtend.o"
1560 extra_headers=math-68881.h
1562 m68k-*-sysv4*) # Motorola m68k's running system V.4
1563 tm_file=m68k/m68kv4.h
1564 xm_file="xm-alloca.h ${xm_file}"
1567 extra_parts="crtbegin.o crtend.o"
1568 extra_headers=math-68881.h
1570 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1573 tm_file=m68k/linux-aout.h
1574 tmake_file="t-linux-aout m68k/t-linux-aout"
1575 fixincludes=Makefile.in # The headers are ok already.
1576 extra_headers=math-68881.h
1579 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1580 # with ELF format using the
1581 # GNU/Linux C library 5
1583 tm_file=m68k/linux.h
1584 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1585 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1586 fixincludes=Makefile.in # The headers are ok already.
1587 extra_headers=math-68881.h
1590 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1591 # with ELF format using glibc 2
1592 # aka the GNU/Linux C library 6.
1594 tm_file=m68k/linux.h
1595 tmake_file="t-linux m68k/t-linux"
1596 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1597 fixincludes=Makefile.in # The headers are ok already.
1598 extra_headers=math-68881.h
1600 if [[ x$enable_threads = xyes ]]; then
1605 tmake_file=m68k/t-m68kbare
1606 tm_file=m68k/m68k-psos.h
1607 extra_headers=math-68881.h
1610 tmake_file="m68k/t-m68kbare t-rtems"
1611 tm_file=m68k/rtems.h
1612 extra_headers=math-68881.h
1618 tm_file=m88k/dguxbcs.h
1619 tmake_file=m88k/t-dguxbcs
1623 tmake_file=m88k/t-dgux
1626 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1627 xmake_file=m88k/x-dgux
1628 if [[ x$gas = xyes ]]
1630 tmake_file=m88k/t-dgux-gas
1632 fixincludes=fixinc.dgux
1634 m88k-dolphin-sysv3*)
1635 tm_file=m88k/dolph.h
1636 extra_parts="crtbegin.o crtend.o"
1637 xm_file="m88k/xm-sysv3.h ${xm_file}"
1638 xmake_file=m88k/x-dolph
1639 if [[ x$gas = xyes ]]
1641 tmake_file=m88k/t-m88k-gas
1644 m88k-tektronix-sysv3)
1645 tm_file=m88k/tekXD88.h
1646 extra_parts="crtbegin.o crtend.o"
1647 xm_file="m88k/xm-sysv3.h ${xm_file}"
1648 xmake_file=m88k/x-tekXD88
1649 if [[ x$gas = xyes ]]
1651 tmake_file=m88k/t-m88k-gas
1655 tm_file=m88k/m88k-aout.h
1658 tm_file=m88k/m88k-coff.h
1659 tmake_file=m88k/t-bug
1663 extra_parts="crtbegin.o crtend.o"
1664 if [[ x$gas = xyes ]]
1666 tmake_file=m88k/t-luna-gas
1668 tmake_file=m88k/t-luna
1672 tm_file=m88k/sysv3.h
1673 extra_parts="crtbegin.o crtend.o"
1674 xm_file="m88k/xm-sysv3.h ${xm_file}"
1675 xmake_file=m88k/x-sysv3
1676 if [[ x$gas = xyes ]]
1678 tmake_file=m88k/t-m88k-gas
1682 tm_file=m88k/sysv4.h
1683 extra_parts="crtbegin.o crtend.o"
1684 xmake_file=m88k/x-sysv4
1685 tmake_file=m88k/t-sysv4
1687 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1688 tm_file=mips/iris6.h
1689 xm_file=mips/xm-iris6.h
1690 fixincludes=fixinc.irix
1691 xmake_file=mips/x-iris6
1692 tmake_file=mips/t-iris6
1693 if [[ x$enable_threads = xyes ]]; then
1698 tm_file="mips/elf.h libgloss.h"
1699 tmake_file=mips/t-ecoff
1702 extra_parts="crtbegin.o crtend.o"
1703 # thread_file='vxworks'
1705 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1706 tm_file="mips/iris6.h mips/cross64.h"
1707 xm_defines="USG HAVE_INTTYPES_H"
1708 fixincludes=Makefile.in
1709 xmake_file=mips/x-iris
1710 tmake_file=mips/t-cross64
1711 # See comment in mips/iris[56].h files.
1713 if [[ x$enable_threads = xyes ]]; then
1718 if [[ x$gas = xyes ]]
1720 if [[ x$stabs = xyes ]]
1722 tm_file=mips/iris5gdb.h
1724 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1727 tm_file=mips/sni-svr4.h
1730 xmake_file=mips/x-sni-svr4
1731 tmake_file=mips/t-mips-gas
1732 if [[ x$gnu_ld != xyes ]]
1737 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1738 if [[ x$gas = xyes ]]
1740 tm_file="mips/iris5.h mips/iris5gas.h"
1741 if [[ x$stabs = xyes ]]
1743 tm_file="${tm_file} dbx.h"
1746 tm_file=mips/iris5.h
1748 xm_defines="USG HAVE_INTTYPES_H"
1749 fixincludes=fixinc.irix
1750 xmake_file=mips/x-iris
1751 # mips-tfile doesn't work yet
1752 tmake_file=mips/t-mips-gas
1753 # See comment in mips/iris5.h file.
1755 if [[ x$enable_threads = xyes ]]; then
1759 mips-sgi-irix4loser*) # Mostly like a MIPS.
1760 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
1761 if [[ x$stabs = xyes ]]; then
1762 tm_file="${tm_file} dbx.h"
1765 xmake_file=mips/x-iris
1766 if [[ x$gas = xyes ]]
1768 tmake_file=mips/t-mips-gas
1770 extra_passes="mips-tfile mips-tdump"
1772 if [[ x$gnu_ld != xyes ]]
1776 if [[ x$enable_threads = xyes ]]; then
1780 mips-sgi-irix4*) # Mostly like a MIPS.
1781 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
1782 if [[ x$stabs = xyes ]]; then
1783 tm_file="${tm_file} dbx.h"
1786 xmake_file=mips/x-iris
1787 if [[ x$gas = xyes ]]
1789 tmake_file=mips/t-mips-gas
1791 extra_passes="mips-tfile mips-tdump"
1793 if [[ x$gnu_ld != xyes ]]
1797 if [[ x$enable_threads = xyes ]]; then
1801 mips-sgi-*) # Mostly like a MIPS.
1802 tm_file="mips/iris3.h ${tm_file}"
1803 if [[ x$stabs = xyes ]]; then
1804 tm_file="${tm_file} dbx.h"
1807 xmake_file=mips/x-iris3
1808 if [[ x$gas = xyes ]]
1810 tmake_file=mips/t-mips-gas
1812 extra_passes="mips-tfile mips-tdump"
1814 if [[ x$gnu_ld != xyes ]]
1819 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
1820 tm_file="mips/osfrose.h ${tm_file}"
1821 xmake_file=mips/x-osfrose
1822 tmake_file=mips/t-osfrose
1823 extra_objs=halfpic.o
1826 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
1827 tm_file=mips/dec-osf1.h
1828 if [[ x$stabs = xyes ]]; then
1829 tm_file="${tm_file} dbx.h"
1831 xmake_file=mips/x-dec-osf1
1832 if [[ x$gas = xyes ]]
1834 tmake_file=mips/t-mips-gas
1836 tmake_file=mips/t-ultrix
1837 extra_passes="mips-tfile mips-tdump"
1839 if [[ x$gnu_ld != xyes ]]
1844 mips-dec-bsd*) # Decstation running 4.4 BSD
1845 tm_file=mips/dec-bsd.h
1847 if [[ x$gas = xyes ]]
1849 tmake_file=mips/t-mips-gas
1851 tmake_file=mips/t-ultrix
1852 extra_passes="mips-tfile mips-tdump"
1854 if [[ x$gnu_ld != xyes ]]
1859 mips-dec-netbsd*) # Decstation running NetBSD
1860 tm_file=mips/netbsd.h
1861 # On NetBSD, the headers are already okay, except for math.h.
1862 fixincludes=fixinc.math
1865 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
1866 tm_file="mips/news4.h ${tm_file}"
1867 if [[ x$stabs = xyes ]]; then
1868 tm_file="${tm_file} dbx.h"
1870 if [[ x$gas = xyes ]]
1872 tmake_file=mips/t-mips-gas
1874 extra_passes="mips-tfile mips-tdump"
1876 if [[ x$gnu_ld != xyes ]]
1880 xmake_file=mips/x-sony
1882 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
1883 # That is based on svr4.
1884 # t-svr4 is not right because this system doesn't use ELF.
1885 tm_file="mips/news5.h ${tm_file}"
1886 if [[ x$stabs = xyes ]]; then
1887 tm_file="${tm_file} dbx.h"
1889 xm_file="xm-siglist.h ${xm_file}"
1891 if [[ x$gas = xyes ]]
1893 tmake_file=mips/t-mips-gas
1895 extra_passes="mips-tfile mips-tdump"
1897 if [[ x$gnu_ld != xyes ]]
1902 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
1903 tm_file="mips/svr4-5.h mips/svr4-t.h"
1904 if [[ x$stabs = xyes ]]; then
1905 tm_file="${tm_file} dbx.h"
1907 xm_file="xm-siglist.h ${xm_file}"
1909 xmake_file=mips/x-sysv
1910 if [[ x$gas = xyes ]]
1912 tmake_file=mips/t-mips-gas
1913 extra_parts="crtbegin.o crtend.o"
1915 tmake_file=mips/t-mips
1916 extra_passes="mips-tfile mips-tdump"
1918 if [[ x$gnu_ld != xyes ]]
1923 mips-*-ultrix* | mips-dec-mach3) # Decstation.
1924 tm_file="mips/ultrix.h ${tm_file}"
1925 if [[ x$stabs = xyes ]]; then
1926 tm_file="${tm_file} dbx.h"
1928 xmake_file=mips/x-ultrix
1929 if [[ x$gas = xyes ]]
1931 tmake_file=mips/t-mips-gas
1933 tmake_file=mips/t-ultrix
1934 extra_passes="mips-tfile mips-tdump"
1936 if [[ x$gnu_ld != xyes ]]
1941 mips-*-riscos[[56789]]bsd*)
1942 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
1943 if [[ x$stabs = xyes ]]; then
1944 tm_file="${tm_file} dbx.h"
1946 if [[ x$gas = xyes ]]
1948 tmake_file=mips/t-bsd-gas
1950 tmake_file=mips/t-bsd
1951 extra_passes="mips-tfile mips-tdump"
1953 if [[ x$gnu_ld != xyes ]]
1958 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
1959 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
1960 if [[ x$stabs = xyes ]]; then
1961 tm_file="${tm_file} dbx.h"
1963 if [[ x$gas = xyes ]]
1965 tmake_file=mips/t-bsd-gas
1967 tmake_file=mips/t-bsd
1968 extra_passes="mips-tfile mips-tdump"
1970 if [[ x$gnu_ld != xyes ]]
1975 mips-*-riscos[[56789]]sysv4*)
1976 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
1977 if [[ x$stabs = xyes ]]; then
1978 tm_file="${tm_file} dbx.h"
1980 xm_file="xm-siglist.h ${xm_file}"
1981 xmake_file=mips/x-sysv
1982 if [[ x$gas = xyes ]]
1984 tmake_file=mips/t-svr4-gas
1986 tmake_file=mips/t-svr4
1987 extra_passes="mips-tfile mips-tdump"
1989 if [[ x$gnu_ld != xyes ]]
1994 mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
1995 tm_file="mips/svr4-4.h ${tm_file}"
1996 if [[ x$stabs = xyes ]]; then
1997 tm_file="${tm_file} dbx.h"
2000 xmake_file=mips/x-sysv
2001 if [[ x$gas = xyes ]]
2003 tmake_file=mips/t-svr4-gas
2005 tmake_file=mips/t-svr4
2006 extra_passes="mips-tfile mips-tdump"
2008 if [[ x$gnu_ld != xyes ]]
2013 mips-*-riscos[[56789]]sysv*)
2014 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2015 if [[ x$stabs = xyes ]]; then
2016 tm_file="${tm_file} dbx.h"
2019 xmake_file=mips/x-sysv
2020 if [[ x$gas = xyes ]]
2022 tmake_file=mips/t-svr3-gas
2024 tmake_file=mips/t-svr3
2025 extra_passes="mips-tfile mips-tdump"
2027 if [[ x$gnu_ld != xyes ]]
2032 mips-*-sysv* | mips-*-riscos*sysv*)
2033 tm_file="mips/svr3-4.h ${tm_file}"
2034 if [[ x$stabs = xyes ]]; then
2035 tm_file="${tm_file} dbx.h"
2038 xmake_file=mips/x-sysv
2039 if [[ x$gas = xyes ]]
2041 tmake_file=mips/t-svr3-gas
2043 tmake_file=mips/t-svr3
2044 extra_passes="mips-tfile mips-tdump"
2046 if [[ x$gnu_ld != xyes ]]
2051 mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0.
2052 tm_file=mips/mips-5.h
2053 if [[ x$stabs = xyes ]]; then
2054 tm_file="${tm_file} dbx.h"
2056 if [[ x$gas = xyes ]]
2058 tmake_file=mips/t-mips-gas
2060 extra_passes="mips-tfile mips-tdump"
2062 if [[ x$gnu_ld != xyes ]]
2070 tm_file=mips/ecoffl.h
2071 if [[ x$stabs = xyes ]]; then
2072 tm_file="${tm_file} dbx.h"
2074 tmake_file=mips/t-ecoff
2077 tm_file="gofast.h mips/ecoff.h"
2078 if [[ x$stabs = xyes ]]; then
2079 tm_file="${tm_file} dbx.h"
2081 tmake_file=mips/t-ecoff
2084 tm_file="mips/elfl.h libgloss.h"
2085 tmake_file=mips/t-ecoff
2088 tm_file="mips/elf.h libgloss.h"
2089 tmake_file=mips/t-ecoff
2092 tm_file="mips/elfl64.h libgloss.h"
2093 tmake_file=mips/t-ecoff
2095 mips64orionel-*-elf*)
2096 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2097 tmake_file=mips/t-ecoff
2100 tm_file="mips/elf64.h libgloss.h"
2101 tmake_file=mips/t-ecoff
2104 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2105 tmake_file=mips/t-ecoff
2107 mips64orion-*-rtems*)
2108 tm_file="mips/elforion.h mips/elfl64.h mips/rtems64.h"
2109 tmake_file="mips/t-ecoff t-rtems"
2112 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2113 tmake_file=mips/t-r3900
2116 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2117 tmake_file=mips/t-r3900
2119 mips-*-*) # Default MIPS RISC-OS 4.0.
2120 if [[ x$stabs = xyes ]]; then
2121 tm_file="${tm_file} dbx.h"
2123 if [[ x$gas = xyes ]]
2125 tmake_file=mips/t-mips-gas
2127 extra_passes="mips-tfile mips-tdump"
2129 if [[ x$gnu_ld != xyes ]]
2136 tm_file="mn10200/mn10200.h"
2137 if [[ x$stabs = xyes ]]
2139 tm_file="${tm_file} dbx.h"
2145 tm_file="mn10300/mn10300.h"
2146 if [[ x$stabs = xyes ]]
2148 tm_file="${tm_file} dbx.h"
2153 tm_file=ns32k/encore.h
2157 tm_file=ns32k/sequent.h
2161 tm_file=ns32k/tek6100.h
2165 tm_file=ns32k/tek6200.h
2168 # This has not been updated to GCC 2.
2171 # xmake_file=ns32k/x-genix
2172 # tm_file=ns32k/genix.h
2176 tm_file=ns32k/merlin.h
2180 tm_file=ns32k/pc532-mach.h
2184 tm_file=ns32k/pc532-min.h
2185 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2189 ns32k-pc532-netbsd*)
2190 tm_file=ns32k/netbsd.h
2191 # On NetBSD, the headers are already okay, except for math.h.
2192 fixincludes=fixinc.math
2196 tm_file="${tm_file} pdp11/2bsd.h"
2202 xmake_file=pyr/x-pyr
2209 xmake_file=romp/x-mach
2214 tm_file=rs6000/beos.h
2215 xm_file=rs6000/xm-beos.h
2216 tmake_file=rs6000/t-beos
2217 xmake_file=rs6000/x-beos
2219 powerpc-*-sysv* | powerpc-*-elf*)
2220 tm_file=rs6000/sysv4.h
2221 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2222 xm_defines="USG POSIX"
2223 extra_headers=ppc-asm.h
2224 if [[ x$gas = xyes ]]
2226 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2228 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2230 xmake_file=rs6000/x-sysv4
2233 tm_file=rs6000/eabiaix.h
2234 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2235 fixincludes=Makefile.in
2236 extra_headers=ppc-asm.h
2239 tm_file=rs6000/eabisim.h
2240 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2241 fixincludes=Makefile.in
2242 extra_headers=ppc-asm.h
2245 tm_file=rs6000/eabi.h
2246 if [[ x$gas = xyes ]]
2248 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2250 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2252 fixincludes=Makefile.in
2253 extra_headers=ppc-asm.h
2256 tm_file=rs6000/rtems.h
2257 if [[ x$gas = xyes ]]
2259 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2261 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2263 fixincludes=Makefile.in
2264 extra_headers=ppc-asm.h
2266 powerpc-*-linux-gnulibc1)
2267 tm_file=rs6000/linux.h
2268 xm_file=rs6000/xm-sysv4.h
2269 out_file=rs6000/rs6000.c
2270 if [[ x$gas = xyes ]]
2272 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2274 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2277 fixincludes=Makefile.in
2278 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2279 extra_headers=ppc-asm.h
2280 if [[ x$enable_threads = xyes ]]; then
2284 powerpc-*-linux-gnu*)
2285 tm_file=rs6000/linux.h
2286 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2287 xm_defines="USG ${xm_defines}"
2288 out_file=rs6000/rs6000.c
2289 if [[ x$gas = xyes ]]
2291 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2293 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2296 fixincludes=Makefile.in
2297 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2298 extra_headers=ppc-asm.h
2299 if [[ x$enable_threads = xyes ]]; then
2303 powerpc-wrs-vxworks*)
2305 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2306 xm_defines="USG POSIX"
2307 tm_file=rs6000/vxppc.h
2308 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2309 extra_headers=ppc-asm.h
2310 thread_file='vxworks'
2312 powerpcle-*-sysv* | powerpcle-*-elf*)
2313 tm_file=rs6000/sysv4le.h
2314 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2315 xm_defines="USG POSIX"
2316 if [[ x$gas = xyes ]]
2318 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2320 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2322 xmake_file=rs6000/x-sysv4
2323 extra_headers=ppc-asm.h
2325 powerpcle-*-eabisim*)
2326 tm_file=rs6000/eabilesim.h
2327 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2328 fixincludes=Makefile.in
2329 extra_headers=ppc-asm.h
2332 tm_file=rs6000/eabile.h
2333 if [[ x$gas = xyes ]]
2335 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2337 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2339 fixincludes=Makefile.in
2340 extra_headers=ppc-asm.h
2342 powerpcle-*-winnt* )
2343 tm_file=rs6000/win-nt.h
2344 tmake_file=rs6000/t-winnt
2346 fixincludes=Makefile.in
2347 if [[ x$enable_threads = xyes ]]; then
2350 extra_headers=ppc-asm.h
2352 powerpcle-*-pe | powerpcle-*-cygwin32)
2353 tm_file=rs6000/cygwin32.h
2354 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2355 xm_defines=NO_STAB_H
2356 tmake_file=rs6000/t-winnt
2357 xmake_file=rs6000/x-cygwin32
2359 fixincludes=Makefile.in
2360 if [[ x$enable_threads = xyes ]]; then
2364 extra_headers=ppc-asm.h
2366 powerpcle-*-solaris2*)
2367 tm_file=rs6000/sol2.h
2368 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2369 xm_defines="USG POSIX"
2370 if [[ x$gas = xyes ]]
2372 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2374 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2376 xmake_file=rs6000/x-sysv4
2378 *-*-solaris2.[[0-4]])
2379 fixincludes=fixinc.svr4;;
2381 fixincludes=fixinc.math;;
2383 extra_headers=ppc-asm.h
2385 rs6000-ibm-aix3.[[01]]*)
2386 tm_file=rs6000/aix31.h
2387 xmake_file=rs6000/x-aix31
2390 rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*)
2391 tm_file=rs6000/aix3newas.h
2392 if [[ x$host != x$target ]]
2394 tmake_file=rs6000/t-xnewas
2396 tmake_file=rs6000/t-newas
2400 rs6000-ibm-aix[[456789]].* | powerpc-ibm-aix[[456789]].*)
2401 tm_file=rs6000/aix41.h
2402 if [[ x$host != x$target ]]
2404 tmake_file=rs6000/t-xnewas
2406 tmake_file=rs6000/t-newas
2408 xmake_file=rs6000/x-aix31
2418 tm_file=rs6000/mach.h
2419 xm_file="${xm_file} rs6000/xm-mach.h"
2420 xmake_file=rs6000/x-mach
2424 tm_file=rs6000/lynx.h
2425 xm_file=rs6000/xm-lynx.h
2426 tmake_file=rs6000/t-rs6000
2427 xmake_file=rs6000/x-lynx
2435 tmake_file="sh/t-sh t-rtems"
2444 xm_file="xm-alloca.h ${xm_file}"
2447 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2448 tm_file=sparc/vxsparc.h
2449 tmake_file=sparc/t-vxsparc
2451 thread_file='vxworks'
2454 tmake_file=sparc/t-sparcbare
2455 tm_file="sparc/aout.h libgloss.h"
2458 tm_file=sparc/netbsd.h
2459 # On NetBSD, the headers are already okay, except for math.h.
2460 fixincludes=fixinc.math
2468 tmake_file=sparc/t-elf
2469 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2473 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2474 xm_file="${xm_file} sparc/xm-linux.h"
2475 tm_file=sparc/linux-aout.h
2477 fixincludes=Makefile.in #On Linux, the headers are ok already.
2480 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2481 xm_file="${xm_file} sparc/xm-linux.h"
2483 tm_file=sparc/linux.h
2484 tmake_file="t-linux t-linux-gnulibc1"
2485 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2486 fixincludes=Makefile.in #On Linux, the headers are ok already.
2489 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2490 xm_file="${xm_file} sparc/xm-linux.h"
2492 tm_file=sparc/linux.h
2493 tmake_file="t-linux"
2494 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2495 fixincludes=Makefile.in #On Linux, the headers are ok already.
2497 if [[ x$enable_threads = xyes ]]; then
2502 if [[ x$gas = xyes ]]
2504 tm_file=sparc/lynx.h
2506 tm_file=sparc/lynx-ng.h
2508 xm_file=sparc/xm-lynx.h
2509 tmake_file=sparc/t-sunos41
2513 tmake_file="sparc/t-sparcbare t-rtems"
2514 tm_file=sparc/rtems.h
2517 if [[ x$gnu_ld = xyes ]]
2519 tm_file=sparc/sol2.h
2521 tm_file=sparc/sol2-sld.h
2523 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2524 xm_defines="USG POSIX"
2525 tmake_file=sparc/t-sol2
2526 xmake_file=sparc/x-sysv4
2527 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2529 *-*-solaris2.[[0-4]])
2530 fixincludes=fixinc.svr4;;
2532 fixincludes=fixinc.math;;
2535 if [[ x${enable_threads} = x ]]; then
2536 enable_threads=$have_pthread_h
2537 if [[ x${enable_threads} = x ]]; then
2538 enable_threads=$have_thread_h
2541 if [[ x${enable_threads} = xyes ]]; then
2542 if [[ x${have_pthread_h} = xyes ]]; then
2545 thread_file='solaris'
2550 tm_file=sparc/sunos4.h
2551 tmake_file=sparc/t-sunos40
2555 tm_file=sparc/sunos4.h
2556 tmake_file=sparc/t-sunos41
2558 if [[ x$gas = xyes ]]; then
2559 tm_file="${tm_file} sparc/sun4gas.h"
2563 tm_file=sparc/sun4o3.h
2567 tm_file=sparc/sysv4.h
2568 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2569 xm_defines="USG POSIX"
2571 xmake_file=sparc/x-sysv4
2572 extra_parts="crtbegin.o crtend.o"
2575 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2576 xm_defines="USG POSIX"
2577 tm_file=sparc/vxsim.h
2578 tmake_file=sparc/t-vxsparc
2579 xmake_file=sparc/x-sysv4
2582 tm_file="sparc/splet.h libgloss.h"
2583 tmake_file=sparc/t-splet
2586 tm_file="sparc/litecoff.h libgloss.h"
2587 tmake_file=sparc/t-sparclite
2590 tm_file="sparc/lite.h aoutos.h libgloss.h"
2591 tmake_file=sparc/t-sparclite
2594 tmake_file=sparc/t-sp64
2595 tm_file=sparc/sp64-aout.h
2598 tmake_file=sparc/t-sp64
2599 tm_file=sparc/sp64-elf.h
2600 extra_parts="crtbegin.o crtend.o"
2602 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2603 tmake_file=sparc/t-sp64
2604 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2605 tm_file=sparc/linux64.h
2607 fixincludes=Makefile.in # The headers are ok already.
2610 # This hasn't been upgraded to GCC 2.
2611 # tahoe-harris-*) # Harris tahoe, using COFF.
2612 # tm_file=tahoe/harris.h
2614 # tahoe-*-bsd*) # tahoe running BSD
2616 thumb-*-coff* | thumbel-*-coff*)
2618 out_file=arm/thumb.c
2619 xm_file=arm/xm-thumb.h
2620 md_file=arm/thumb.md
2621 tmake_file=arm/t-thumb
2623 # This hasn't been upgraded to GCC 2.
2630 tm_file="v850/v850.h"
2631 xm_file="v850/xm-v850.h"
2632 tmake_file=v850/t-v850
2633 if [[ x$stabs = xyes ]]
2635 tm_file="${tm_file} dbx.h"
2639 vax-*-bsd*) # vaxen running BSD
2643 vax-*-sysv*) # vaxen running system V
2644 tm_file="${tm_file} vax/vaxv.h"
2649 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2650 # On NetBSD, the headers are already okay, except for math.h.
2651 fixincludes=fixinc.math
2655 vax-*-ultrix*) # vaxen running ultrix
2656 tm_file="${tm_file} vax/ultrix.h"
2660 vax-*-vms*) # vaxen running VMS
2661 xm_file=vax/xm-vms.h
2665 vax-*-*) # vax default entry
2669 xm_file="${xm_file} xm-svr3"
2673 echo "Configuration $machine not supported" 1>&2
2680 ;; # Existing GNU/Linux systems do not use the GNU setup.
2682 # On the GNU system, the setup is just about the same on
2683 # each different CPU. The specific machines that GNU
2684 # supports are matched above and just set $cpu_type.
2685 xm_file="xm-gnu.h ${xm_file}"
2686 tm_file=${cpu_type}/gnu.h
2687 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2688 # GNU always uses ELF.
2690 # GNU tools are the only tools.
2693 # On GNU, the headers are already okay.
2694 fixincludes=Makefile.in
2695 xmake_file=x-linux # These details are the same as Linux.
2696 tmake_file=t-gnu # These are not.
2699 fixincludes=fixinc.svr4
2700 xmake_try_sysv=x-sysv
2701 install_headers_dir=install-headers-cpio
2704 install_headers_dir=install-headers-cpio
2708 # Distinguish i[34567]86
2709 # Also, do not run mips-tfile on MIPS if using gas.
2710 # Process --with-cpu= for PowerPC/rs6000
2711 target_cpu_default2=
2714 target_cpu_default2=1
2717 target_cpu_default2=2
2719 i686-*-* | i786-*-*)
2720 target_cpu_default2=3
2725 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
2728 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2731 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2734 target_cpu_default2="MASK_CPU_EV5"
2738 if [[ x$gas = xyes ]]
2740 if [[ "$target_cpu_default2" = "" ]]
2742 target_cpu_default2="MASK_GAS"
2744 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2749 case "x$with_cpu" in
2752 target_cpu_default2="TARGET_CPU_generic"
2755 # Distinguish cores, and major variants
2756 # arm7m doesn't exist, but D & I don't affect code
2757 xarm[23678] | xarm250 | xarm[67][01]0 \
2758 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
2759 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2760 | xstrongarm | xstrongarm110)
2761 target_cpu_default2="TARGET_CPU_$with_cpu"
2765 echo "--with-cpu must be passed a value" 1>&2
2770 if [[ x$pass2done = xyes ]]
2772 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2779 mips*-*-ecoff* | mips*-*-elf*)
2780 if [[ x$gas = xyes ]]
2782 if [[ x$gnu_ld = xyes ]]
2784 target_cpu_default2=20
2786 target_cpu_default2=16
2791 if [[ x$gas = xyes ]]
2793 target_cpu_default2=16
2796 powerpc*-*-* | rs6000-*-*)
2797 case "x$with_cpu" in
2801 xcommon | xpower | xpower2 | xpowerpc | xrios \
2802 | xrios1 | xrios2 | xrsc | xrsc1 \
2803 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2804 | x403 | x505 | x801 | x821 | x823 | x860)
2805 target_cpu_default2="\"$with_cpu\""
2809 echo "--with-cpu must be passed a value" 1>&2
2814 if [[ x$pass2done = xyes ]]
2816 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2823 case ".$with_cpu" in
2825 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2827 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
2828 target_cpu_default2="TARGET_CPU_$with_cpu"
2831 if [[ x$pass2done = xyes ]]
2833 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2841 if [[ "$target_cpu_default2" != "" ]]
2843 if [[ "$target_cpu_default" != "" ]]
2845 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2847 target_cpu_default=$target_cpu_default2
2851 # No need for collect2 if we have the GNU linker.
2858 # Save data on machine being used to compile GCC in build_xm_file.
2859 # Save data on host machine in vars host_xm_file and host_xmake_file.
2860 if [[ x$pass1done = x ]]
2862 if [[ x"$xm_file" = x ]]
2863 then build_xm_file=$cpu_type/xm-$cpu_type.h
2864 else build_xm_file=$xm_file
2866 build_xm_defines=$xm_defines
2867 build_install_headers_dir=$install_headers_dir
2868 build_exeext=$exeext
2871 if [[ x$pass2done = x ]]
2873 if [[ x"$xm_file" = x ]]
2874 then host_xm_file=$cpu_type/xm-$cpu_type.h
2875 else host_xm_file=$xm_file
2877 host_xm_defines=$xm_defines
2878 if [[ x"$xmake_file" = x ]]
2879 then xmake_file=$cpu_type/x-$cpu_type
2881 host_xmake_file="$xmake_file"
2882 host_truncate_target=$truncate_target
2883 host_extra_gcc_objs=$extra_gcc_objs
2884 host_extra_objs=$extra_host_objs
2891 extra_objs="${host_extra_objs} ${extra_objs}"
2893 # Default the target-machine variables that were not explicitly set.
2894 if [[ x"$tm_file" = x ]]
2895 then tm_file=$cpu_type/$cpu_type.h; fi
2897 if [[ x$extra_headers = x ]]
2898 then extra_headers=; fi
2900 if [[ x"$xm_file" = x ]]
2901 then xm_file=$cpu_type/xm-$cpu_type.h; fi
2903 if [[ x$md_file = x ]]
2904 then md_file=$cpu_type/$cpu_type.md; fi
2906 if [[ x$out_file = x ]]
2907 then out_file=$cpu_type/$cpu_type.c; fi
2909 if [[ x"$tmake_file" = x ]]
2910 then tmake_file=$cpu_type/t-$cpu_type
2913 if [[ x$float_format = x ]]
2914 then float_format=i64
2917 if [[ x$enable_haifa = x ]]
2920 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-* | m32r*-*)
2925 # Say what files are being used for the output code and MD file.
2926 echo "Using \`$srcdir/config/$out_file' to output insns."
2927 echo "Using \`$srcdir/config/$md_file' as machine description file."
2930 for f in $tm_file; do
2933 if [[ $count = ax ]]; then
2934 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
2936 echo "Using the following target machine macro files:"
2937 for f in $tm_file; do
2938 echo " $srcdir/config/$f"
2943 for f in $host_xm_file; do
2946 if [[ $count = ax ]]; then
2947 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
2949 echo "Using the following host machine macro files:"
2950 for f in $host_xm_file; do
2951 echo " $srcdir/config/$f"
2955 if [[ "$host_xm_file" != "$build_xm_file" ]]; then
2957 for f in $build_xm_file; do
2960 if [[ $count = ax ]]; then
2961 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
2963 echo "Using the following build machine macro files:"
2964 for f in $build_xm_file; do
2965 echo " $srcdir/config/$f"
2970 if [[ x$thread_file = x ]]; then
2971 if [[ x$target_thread_file != x ]]; then
2972 thread_file=$target_thread_file
2974 thread_file='single'
2978 # Set up the header files.
2979 # $links is the list of header files to create.
2980 # $vars is the list of shell variables with file names to include.
2981 # auto-host.h is the file containing items generated by autoconf and is
2982 # the first file included by config.h.
2984 host_xm_file="auto-host.h ${host_xm_file}"
2986 # If host=build, it is correct to have hconfig include auto-host.h
2987 # as well. If host!=build, we are in error and need to do more
2988 # work to find out the build config parameters.
2989 if [[ x$host = x$build ]]
2991 build_xm_file="auto-host.h ${build_xm_file}"
2993 # We create a subdir, then run autoconf in the subdir.
2994 # To prevent recursion we set host and build for the new
2995 # invocation of configure to the build for this invocation
3002 /*) realsrcdir=${srcdir};;
3003 *) realsrcdir=../${srcdir};;
3005 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3006 --target=$target --host=$build --build=$build
3008 # We just finished tests for the build machine, so rename
3009 # the file auto-build.h in the gcc directory.
3010 mv auto-host.h ../auto-build.h
3013 build_xm_file="auto-build.h ${build_xm_file}"
3016 vars="host_xm_file tm_file xm_file build_xm_file"
3017 links="config.h tm.h tconfig.h hconfig.h"
3018 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3021 if [[ -f config.status ]]; then mv -f config.status config.bak; fi
3024 while [[ -n "$vars" ]]
3026 set $vars; var=$1; shift; vars=$*
3027 set $links; link=$1; shift; links=$*
3028 set $defines; define=$1; shift; defines=$*
3032 # Define TARGET_CPU_DEFAULT if the system wants one.
3033 # This substitutes for lots of *.h files.
3034 if [[ "$target_cpu_default" != "" -a $link = tm.h ]]
3036 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3039 for file in `eval echo '$'$var`; do
3040 echo "#include \"$file\"" >>$link
3043 for def in `eval echo '$'$define`; do
3044 echo "#ifndef $def" >>$link
3045 echo "#define $def" >>$link
3046 echo "#endif" >>$link
3050 # Truncate the target if necessary
3051 if [[ x$host_truncate_target != x ]]; then
3052 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3055 # Get the version number from the toplevel
3056 version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
3058 # Get an absolute path to the GCC top-level source directory
3064 # Conditionalize the makefile for this host machine.
3065 # Make-host contains the concatenation of all host makefile fragments
3066 # [there can be more than one]. This file is built by configure.frag.
3067 host_overrides=Make-host
3068 dep_host_xmake_file=
3069 for f in .. ${host_xmake_file}
3071 if [[ -f ${srcdir}/config/$f ]]
3073 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3077 # Conditionalize the makefile for this target machine.
3078 # Make-target contains the concatenation of all host makefile fragments
3079 # [there can be more than one]. This file is built by configure.frag.
3080 target_overrides=Make-target
3082 for f in .. ${tmake_file}
3084 if [[ -f ${srcdir}/config/$f ]]
3086 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3090 # If the host doesn't support symlinks, modify CC in
3091 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3092 # Otherwise, we can use "CC=$(CC)".
3094 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3096 cc_set_by_configure="\$(CC)"
3097 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3100 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3102 symbolic_link="cp -p"
3106 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3107 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3111 out_object_file=`basename $out_file .c`.o
3114 for f in $tm_file; do
3115 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3119 for f in $host_xm_file; do
3120 if test $f != "auto-host.h"; then
3121 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3123 host_xm_file_list="${host_xm_file_list} auto-host.h"
3128 for f in $build_xm_file; do
3129 if test $f != "auto-build.h"; then
3130 if test $f != "auto-host.h"; then
3131 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3133 build_xm_file_list="${build_xm_file_list} auto-host.h"
3136 build_xm_file_list="${build_xm_file_list} auto-build.h"
3140 # Define macro CROSS_COMPILE in compilation
3141 # if this is a cross-compiler.
3142 # Also use all.cross instead of all.internal
3143 # and add cross-make to Makefile.
3144 cross_overrides="/dev/null"
3145 if [[ x$host != x$target ]]
3147 cross_defines="CROSS=-DCROSS_COMPILE"
3148 cross_overrides="${topdir}/cross-make"
3151 # When building gcc with a cross-compiler, we need to fix a few things.
3152 # This must come after cross-make as we want all.build to override
3154 build_overrides="/dev/null"
3155 if [[ x$build != x$host ]]
3157 build_overrides="${topdir}/build-make"
3160 # Expand extra_headers to include complete path.
3161 # This substitutes for lots of t-* files.
3163 if [[ "x$extra_headers" = x ]]
3166 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3167 for file in $extra_headers;
3169 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3173 # Add a definition of USE_COLLECT2 if system wants one.
3174 # Also tell toplev.c what to do.
3175 # This substitutes for lots of t-* files.
3176 if [[ x$use_collect2 = x ]]
3181 will_use_collect2="collect2"
3182 maybe_use_collect2="-DUSE_COLLECT2"
3186 # Set MD_DEPS if the real md file is in md.pre-cpp.
3187 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3188 # for line oriented comments, so we must always use a GNU cpp. If
3189 # building gcc with a cross compiler, use the cross compiler just
3190 # built. Otherwise, we can use the cpp just built.
3192 if [[ "x$md_cppflags" = x ]]
3194 md_file_sub=$srcdir/config/$md_file
3199 # If we have gas in the build tree, make a link to it.
3200 if [[ -f ../gas/Makefile ]]; then
3201 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3204 # If we have ld in the build tree, make a link to it.
3205 if [[ -f ../ld/Makefile ]]; then
3206 # if [[ x$use_collect2 = x ]]; then
3207 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3209 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3213 # Figure out what language subdirectories are present.
3215 for lang in ${srcdir}/*/config-lang.in ..
3219 # The odd quoting in the next line works around
3220 # an apparent bug in bash 1.12 on linux.
3221 ${srcdir}/[[*]]/config-lang.in) ;;
3222 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
3226 # Make gthr-default.h if we have a thread file.
3228 if [[ $thread_file != single ]]; then
3229 rm -f gthr-default.h
3230 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3231 gthread_flags=-DHAVE_GTHR_DEFAULT
3233 AC_SUBST(gthread_flags)
3235 # Make empty files to contain the specs and options for each language.
3236 # Then add #include lines to for a compiler that has specs and/or options.
3240 rm -f specs.h options.h
3241 touch specs.h options.h
3242 for subdir in . $subdirs
3244 if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
3245 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3246 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3248 if [[ -f $srcdir/$subdir/lang-options.h ]]; then
3249 echo "#include \"$subdir/lang-options.h\"" >>options.h
3250 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3254 # These (without "all_") are set in each config-lang.in.
3255 # `language' must be a single word so is spelled singularly.
3261 all_outputs=Makefile
3262 # List of language makefile fragments.
3267 # Add the language fragments.
3268 # Languages are added via two mechanisms. Some information must be
3269 # recorded in makefile variables, these are defined in config-lang.in.
3270 # We accumulate them and plug them into the main Makefile.
3271 # The other mechanism is a set of hooks for each of the main targets
3272 # like `clean', `install', etc.
3274 language_fragments="Make-lang"
3275 language_hooks="Make-hooks"
3278 for s in .. $subdirs
3290 . ${srcdir}/$s/config-lang.in
3291 if [[ "x$language" = x ]]
3293 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3296 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3297 all_languages="$all_languages $language"
3298 if [[ "x$boot_language" = xyes ]]
3300 all_boot_languages="$all_boot_languages $language"
3302 all_compilers="$all_compilers $compilers"
3303 all_stagestuff="$all_stagestuff $stagestuff"
3304 all_diff_excludes="$all_diff_excludes $diff_excludes"
3305 all_headers="$all_headers $headers"
3306 all_outputs="$all_outputs $outputs"
3307 if [[ x$outputs = x ]]
3309 oldstyle_subdirs="$oldstyle_subdirs $s"
3311 all_lib2funcs="$all_lib2funcs $lib2funcs"
3315 # Since we can't use `::' targets, we link each language in
3316 # with a set of hooks, reached indirectly via lang.${target}.
3320 target_list="all.build all.cross start.encap rest.encap \
3322 install-normal install-common install-info install-man \
3324 mostlyclean clean distclean extraclean maintainer-clean \
3325 stage1 stage2 stage3 stage4"
3326 for t in $target_list
3329 for l in .. $all_languages
3331 if [[ $l != ".." ]]; then
3335 echo "lang.$t: $x" >> Make-hooks
3338 # If we're not building in srcdir, create .gdbinit.
3340 if [[ ! -f Makefile.in ]]; then
3341 echo "dir ." > .gdbinit
3342 echo "dir ${srcdir}" >> .gdbinit
3343 if [[ x$gdb_needs_out_file_path = xyes ]]
3345 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3347 if [[ "x$subdirs" != x ]]; then
3350 echo "dir ${srcdir}/$s" >> .gdbinit
3353 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3356 # If this is using newlib, then define inhibit_libc in
3357 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3358 # libgcc.a, but that's OK because newib should have its own version of
3361 if [[ x$with_newlib = xyes ]]; then
3362 inhibit_libc=-Dinhibit_libc
3364 AC_SUBST(inhibit_libc)
3366 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3369 if [[ x$enable_haifa = xyes ]]; then
3370 echo "Using the Haifa scheduler."
3372 sched_cflags=-DHAIFA
3374 AC_SUBST(sched_prefix)
3375 AC_SUBST(sched_cflags)
3376 if [[ x$enable_haifa != x ]]; then
3377 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3378 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3379 if [[ -f $x ]]; then
3386 # Process the language and host/target makefile fragments.
3387 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3389 # Substitute configuration variables
3391 AC_SUBST(all_languages)
3392 AC_SUBST(all_boot_languages)
3393 AC_SUBST(all_compilers)
3394 AC_SUBST(all_lang_makefiles)
3395 AC_SUBST(all_stagestuff)
3396 AC_SUBST(all_diff_excludes)
3397 AC_SUBST(all_lib2funcs)
3398 AC_SUBST(all_headers)
3399 AC_SUBST(extra_passes)
3400 AC_SUBST(extra_programs)
3401 AC_SUBST(extra_parts)
3402 AC_SUBST(extra_c_objs)
3403 AC_SUBST(extra_c_flags)
3404 AC_SUBST(extra_objs)
3405 AC_SUBST(host_extra_gcc_objs)
3406 AC_SUBST(extra_headers_list)
3407 AC_SUBST(dep_host_xmake_file)
3408 AC_SUBST(dep_tmake_file)
3410 AC_SUBST(out_object_file)
3412 AC_SUBST(tm_file_list)
3413 AC_SUBST(build_xm_file_list)
3414 AC_SUBST(host_xm_file_list)
3415 AC_SUBST(lang_specs_files)
3416 AC_SUBST(lang_options_files)
3417 AC_SUBST(thread_file)
3419 AC_SUBST(local_prefix)
3420 AC_SUBST(gxx_include_dir)
3421 AC_SUBST(fixincludes)
3422 AC_SUBST(build_install_headers_dir)
3423 AC_SUBST(build_exeext)
3424 AC_SUBST(host_exeext)
3425 AC_SUBST(float_format)
3426 AC_SUBST(will_use_collect2)
3427 AC_SUBST(maybe_use_collect2)
3428 AC_SUBST(cc_set_by_configure)
3429 AC_SUBST(stage_prefix_set_by_configure)
3431 AC_SUBST(symbolic_link)
3433 AC_SUBST_FILE(target_overrides)
3434 AC_SUBST_FILE(host_overrides)
3435 AC_SUBST(cross_defines)
3436 AC_SUBST_FILE(cross_overrides)
3437 AC_SUBST_FILE(build_overrides)
3438 AC_SUBST_FILE(language_fragments)
3439 AC_SUBST_FILE(language_hooks)
3441 # Echo that links are built
3442 if [[ x$host = x$target ]]
3450 if [[ x$host != x$build ]]
3452 str3=" on a $build system"
3455 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3460 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3462 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3464 echo " ${str2}${str3}." 1>&2
3467 # Truncate the target if necessary
3468 if [[ x$host_truncate_target != x ]]; then
3469 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3472 # Configure the subdirectories
3473 # AC_CONFIG_SUBDIRS($subdirs)
3475 # Create the Makefile
3476 # and configure language subdirectories
3477 AC_OUTPUT($all_outputs,
3479 . $srcdir/configure.lang
3480 case x$CONFIG_HEADERS in
3481 xauto-host.h:config.in)
3484 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3485 # bootstrapping and the installation procedure can still use
3486 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3487 # FLAGS_TO_PASS has been modified to solve the problem there.
3488 # This is virtually a duplicate of what happens in configure.lang; we do
3489 # an extra check to make sure this only happens if ln -s can be used.
3490 if [[ "$symbolic_link" = "ln -s" ]]; then
3491 for d in .. ${subdirs} ; do
3492 if [[ $d != .. ]]; then
3495 for t in stage1 stage2 stage3 stage4 include
3498 $symbolic_link ../$t $t 2>/dev/null
3509 target_alias='${target_alias}'
3511 subdirs='${subdirs}'
3512 oldstyle_subdirs='${oldstyle_subdirs}'
3513 symbolic_link='${symbolic_link}'
3514 program_transform_set='${program_transform_set}'
3515 program_transform_name='${program_transform_name}'
3516 dep_host_xmake_file='${dep_host_xmake_file}'
3517 host_xmake_file='${host_xmake_file}'
3518 dep_tmake_file='${dep_tmake_file}'
3519 tmake_file='${tmake_file}'
3520 thread_file='${thread_file}'
3521 version='${version}'
3522 local_prefix='${local_prefix}'
3523 build_install_headers_dir='${build_install_headers_dir}'
3524 build_exeext='${build_exeext}'
3525 host_exeext='${host_exeext}'
3526 out_file='${out_file}'
3527 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3528 SET_MAKE='${SET_MAKE}'
3529 target_list='${target_list}'
3530 target_overrides='${target_overrides}'
3531 host_overrides='${host_overrides}'
3532 cross_defines='${cross_defines}'
3533 cross_overrides='${cross_overrides}'
3534 build_overrides='${build_overrides}'