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 expensive internal checks
82 AC_ARG_ENABLE(checking,
83 [ --enable-checking enable expensive run-time checks.],
84 AC_DEFINE(ENABLE_CHECKING)
87 # Enable use of cpplib for C.
89 AC_ARG_ENABLE(c-cpplib,
90 [ --enable-c-cpplib Use cpplib for C.],
91 if [[[ x$enable_c_cpplib != xno ]]]; then
92 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
93 extra_c_objs="${extra_c_objs} prefix.o"
94 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
95 extra_c_flags=-DUSE_CPPLIB=1
99 # Enable Haifa scheduler.
101 [ --enable-haifa Use the experimental scheduler.
102 --disable-haifa Don't use the experimental scheduler for the
103 targets which normally enable it.])
106 # This is a work in progress...
107 AC_ARG_WITH(fast-fixincludes,
108 [ --with-fast-fixincludes Use a faster fixinclude program. Experimental],
109 fast_fixinc="$with_fast_fixincludes",
113 # Pass with no value to take the default
114 # Pass with a value to specify a thread package
115 AC_ARG_ENABLE(threads,
116 [ --enable-threads enable thread usage for target GCC.
117 --enable-threads=LIB use LIB thread package for target GCC.],
118 if [[[ x$enable_threads = xno ]]]; then
123 enable_threads_flag=$enable_threads
124 # Check if a valid thread package
125 case x${enable_threads_flag} in
128 target_thread_file='single'
132 target_thread_file=''
134 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
135 xsolaris | xwin32 | xdce | xvxworks)
136 target_thread_file=$enable_threads_flag
139 echo "$enable_threads is an unknown thread package" 1>&2
144 # Determine the host, build, and target systems
147 # Find the native compiler
151 # Find some useful tools
163 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)
165 # Check for thread headers.
166 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
167 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
169 # See if the system preprocessor understands the ANSI C preprocessor
170 # stringification operator.
171 AC_MSG_CHECKING(whether cpp understands the stringify operator)
172 AC_CACHE_VAL(gcc_cv_c_have_stringify,
175 char *test = S(foo);],
176 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
177 AC_MSG_RESULT($gcc_cv_c_have_stringify)
178 if test $gcc_cv_c_have_stringify = yes; then
179 AC_DEFINE(HAVE_CPP_STRINGIFY)
182 # Use <inttypes.h> only if it exists,
183 # doesn't clash with <sys/types.h>, and declares intmax_t.
184 AC_MSG_CHECKING(for inttypes.h)
185 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
187 [#include <sys/types.h>
188 #include <inttypes.h>],
190 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
191 gcc_cv_header_inttypes_h=yes],
192 gcc_cv_header_inttypes_h=no)])
193 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
195 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
196 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
199 GCC_FUNC_VFPRINTF_DOPRNT
202 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
203 index rindex getenv atol sbrk abort atof)
215 build_install_headers_dir=install-headers-tar
220 host_truncate_target=
223 # Decode the host machine, then the target machine.
224 # For the host machine, we save the xm_file variable as host_xm_file;
225 # then we decode the target machine and forget everything else
226 # that came from the host machine.
227 for machine in $build $host $target; do
241 # Set this to force installation and use of collect2.
243 # Set this to override the default target model.
245 # Set this to control which fixincludes program to use.
246 if [[ x$fast_fixinc != xyes ]] ; then
247 fixincludes=fixincludes
248 else fixincludes=fixinc.sh ; fi
249 # Set this to control how the header file directory is installed.
250 install_headers_dir=install-headers-tar
251 # Set this to a non-empty list of args to pass to cpp if the target
252 # wants its .md file passed through cpp.
254 # Set this if directory names should be truncated to 14 characters.
256 # Set this if gdb needs a dir command with `dirname $out_file`
257 gdb_needs_out_file_path=
258 # Set this if the build machine requires executables to have a
261 # Set this to control which thread package will be used.
263 # Reinitialize these from the flag values every loop pass, since some
264 # configure entries modify them.
266 gnu_ld="$gnu_ld_flag"
267 enable_threads=$enable_threads_flag
269 # Set default cpu_type, tm_file and xm_file so it can be updated in
270 # each machine entry.
271 cpu_type=`echo $machine | sed 's/-.*$//'`
305 tm_file=${cpu_type}/${cpu_type}.h
306 xm_file=${cpu_type}/xm-${cpu_type}.h
308 # Set the default macros to define for GNU/Linux systems.
311 xm_defines="HAVE_ATEXIT POSIX BSTRING"
316 # Support site-specific machine types.
318 cpu_type=`echo $machine | sed -e 's/-.*//'`
319 rest=`echo $machine | sed -e "s/$cpu_type-//"`
320 xm_file=${cpu_type}/xm-$rest.h
321 tm_file=${cpu_type}/$rest.h
322 if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \
323 then xmake_file=${cpu_type}/x-$rest; \
326 if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \
327 then tmake_file=${cpu_type}/t-$rest; \
333 a29k-*-bsd* | a29k-*-sym1*)
334 tm_file="${tm_file} a29k/unix.h"
336 xmake_file=a29k/x-unix
339 a29k-*-udi | a29k-*-coff)
340 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
341 tmake_file=a29k/t-a29kbare
344 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
345 tmake_file=a29k/t-vx29k
346 extra_parts="crtbegin.o crtend.o"
347 thread_file='vxworks'
349 a29k-*-*) # Default a29k environment.
352 alpha*-*-linux-gnuecoff*)
353 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
354 target_cpu_default="MASK_GAS"
359 alpha*-*-linux-gnulibc1*)
360 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
361 target_cpu_default="MASK_GAS"
362 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
363 extra_parts="crtbegin.o crtend.o"
364 fixincludes=fixinc.wrap
367 if [[ x$enable_threads = xyes ]]; then
372 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
373 target_cpu_default="MASK_GAS"
374 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
375 extra_parts="crtbegin.o crtend.o"
377 fixincludes=Makefile.in
379 if [[ x$enable_threads = xyes ]]; then
384 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
385 target_cpu_default="MASK_GAS"
386 tmake_file="alpha/t-crtbe"
387 extra_parts="crtbegin.o crtend.o"
389 fixincludes=fixinc.wrap
394 if [[ x$stabs = xyes ]]
396 tm_file="${tm_file} dbx.h"
398 if [[ x$gas != xyes ]]
400 extra_passes="mips-tfile mips-tdump"
405 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
408 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
411 tm_file="${tm_file} alpha/osf.h"
412 # Some versions of OSF4 (specifically X4.0-9 296.7) have
413 # a broken tar, so we use cpio instead.
414 install_headers_dir=install-headers-cpio
418 *-*-osf4.0[[b-z]] | *-*-osf4.[[1-9]]*)
419 target_cpu_default=MASK_SUPPORT_ARCH
424 tm_file="${tm_file} alpha/win-nt.h"
425 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
427 xmake_file=winnt/x-winnt
428 extra_host_objs=oldnames.o
429 extra_gcc_objs="spawnv.o oldnames.o"
430 fixincludes=fixinc.winnt
431 if [[ x$gnu_ld != xyes ]]
433 extra_programs=ld.exe
435 if [[ x$enable_threads = xyes ]]; then
441 xm_file="${xm_file} alpha/xm-vms.h"
442 tmake_file=alpha/t-vms
443 fixincludes=Makefile.in
446 extra_parts="crtinit.o crtfini.o"
448 arm-*-coff* | armel-*-coff*)
450 tmake_file=arm/t-bare
452 arm-*-riscix1.[[01]]*) # Acorn RISC machine (early versions)
453 tm_file=arm/riscix1-1.h
456 arm-*-riscix*) # Acorn RISC machine
457 if [[ x$gas = xyes ]]
459 tm_file=arm/rix-gas.h
463 xmake_file=arm/x-riscix
464 tmake_file=arm/t-riscix
467 arm-semi-aout | armel-semi-aout)
469 tmake_file=arm/t-semi
470 fixincludes=Makefile.in # There is nothing to fix
472 arm-semi-aof | armel-semi-aof)
473 tm_file=arm/semiaof.h
474 tmake_file=arm/t-semiaof
475 fixincludes=Makefile.in # There is nothing to fix
479 xm_file="xm-siglist.h ${xm_file}"
480 tmake_file="t-netbsd arm/t-netbsd"
481 # On NetBSD, the headers are already okay, except for math.h.
482 fixincludes=fixinc.wrap
484 arm-*-linux-gnuaout*) # ARM GNU/Linux
487 tm_file=arm/linux-gas.h
488 tmake_file=arm/t-linux
489 fixincludes=Makefile.in
494 tmake_file=arm/t-bare
496 c1-convex-*) # Convex C1
499 fixincludes=Makefile.in
501 c2-convex-*) # Convex C2
504 fixincludes=Makefile.in
509 fixincludes=Makefile.in
514 fixincludes=Makefile.in
517 target_cpu_default=16
519 fixincludes=Makefile.in
521 clipper-intergraph-clix*)
522 tm_file="${tm_file} svr3.h clipper/clix.h"
523 xm_file=clipper/xm-clix.h
524 xmake_file=clipper/x-clix
525 extra_headers=va-clipper.h
526 extra_parts="crtbegin.o crtend.o"
527 install_headers_dir=install-headers-cpio
534 # This hasn't been upgraded to GCC 2.
535 # fx80-alliant-*) # Alliant FX/80
541 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
542 xm_file=pa/xm-papro.h
547 tm_file="${tm_file} pa/pa-osf.h"
549 fixincludes=Makefile.in
552 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
553 xm_file=pa/xm-papro.h
557 tm_file="${tm_file} pa/pa-osf.h"
559 fixincludes=Makefile.in
564 fixincludes=Makefile.in
568 fixincludes=Makefile.in
571 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
572 xm_file=pa/xm-pahpux.h
573 xmake_file=pa/x-pa-hpux
574 if [[ x$gas = xyes ]]
576 tm_file="${tm_file} pa/gas.h"
578 install_headers_dir=install-headers-cpio
581 hppa1.0-*-hpux8.0[[0-2]]*)
582 tm_file="${tm_file} pa/pa-hpux.h"
583 xm_file=pa/xm-pahpux.h
584 xmake_file=pa/x-pa-hpux
585 if [[ x$gas = xyes ]]
587 tm_file="${tm_file} pa/pa-gas.h"
589 tm_file="pa/pa-oldas.h ${tm_file}"
591 install_headers_dir=install-headers-cpio
594 hppa1.1-*-hpux8.0[[0-2]]*)
596 tm_file="${tm_file} pa/pa-hpux.h"
597 xm_file=pa/xm-pahpux.h
598 xmake_file=pa/x-pa-hpux
599 if [[ x$gas = xyes ]]
601 tm_file="${tm_file} pa/pa-gas.h"
603 tm_file="pa/pa-oldas.h ${tm_file}"
605 install_headers_dir=install-headers-cpio
610 tm_file="${tm_file} pa/pa-hpux.h"
611 xm_file=pa/xm-pahpux.h
612 xmake_file=pa/x-pa-hpux
613 if [[ x$gas = xyes ]]
615 tm_file="${tm_file} pa/pa-gas.h"
617 install_headers_dir=install-headers-cpio
621 tm_file="${tm_file} pa/pa-hpux.h"
622 xm_file=pa/xm-pahpux.h
623 xmake_file=pa/x-pa-hpux
624 if [[ x$gas = xyes ]]
626 tm_file="${tm_file} pa/pa-gas.h"
628 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
637 if [[ x$gas = xyes ]]
639 tm_file="${tm_file} pa/pa-gas.h"
641 if [[ x$enable_threads = x ]]; then
642 enable_threads=$have_pthread_h
644 if [[ x$enable_threads = xyes ]]; then
646 tmake_file="${tmake_file} pa/t-dce-thr"
648 install_headers_dir=install-headers-cpio
652 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.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 if [[ x$enable_threads = x ]]; then
660 enable_threads=$have_pthread_h
662 if [[ x$enable_threads = xyes ]]; then
664 tmake_file="${tmake_file} pa/t-dce-thr"
666 install_headers_dir=install-headers-cpio
671 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
672 xm_file=pa/xm-pahpux.h
673 xmake_file=pa/x-pa-hpux
674 if [[ x$gas = xyes ]]
676 tm_file="${tm_file} pa/pa-gas.h"
678 install_headers_dir=install-headers-cpio
682 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
683 xm_file=pa/xm-pahpux.h
684 xmake_file=pa/x-pa-hpux
685 if [[ x$gas = xyes ]]
687 tm_file="${tm_file} pa/pa-gas.h"
689 install_headers_dir=install-headers-cpio
694 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
695 xm_file=pa/xm-pahpux.h
696 xmake_file=pa/x-pa-hpux
697 if [[ x$gas = xyes ]]
699 tm_file="${tm_file} pa/pa-gas.h"
701 install_headers_dir=install-headers-cpio
705 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
706 xm_file=pa/xm-pahpux.h
707 xmake_file=pa/x-pa-hpux
708 if [[ x$gas = xyes ]]
710 tm_file="${tm_file} pa/pa-gas.h"
712 install_headers_dir=install-headers-cpio
718 fixincludes=Makefile.in
722 i[[34567]]86-ibm-aix*) # IBM PS/2 running AIX
723 if [[ x$gas = xyes ]]
725 tm_file=i386/aix386.h
726 extra_parts="crtbegin.o crtend.o"
727 tmake_file=i386/t-crtstuff
729 tm_file=i386/aix386ng.h
732 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
734 xmake_file=i386/x-aix
736 i[[34567]]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
737 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
738 xm_defines="USG POSIX SMALL_ARG_MAX"
739 xmake_file=i386/x-ncr3000
740 if [[ x$stabs = xyes -a x$gas = xyes ]]
742 tm_file=i386/sysv4gdb.h
746 extra_parts="crtbegin.o crtend.o"
747 tmake_file=i386/t-crtpic
751 xm_file=i386/xm-next.h
752 tmake_file=i386/t-next
753 xmake_file=i386/x-next
754 extra_objs=nextstep.o
755 if [[ x$enable_threads = xyes ]]; then
759 i[[34567]]86-sequent-bsd*) # 80386 from Sequent
761 if [[ x$gas = xyes ]]
763 tm_file=i386/seq-gas.h
765 tm_file=i386/sequent.h
768 i[[34567]]86-sequent-ptx1*)
769 xm_defines="USG SVR3"
770 xmake_file=i386/x-sysv3
771 tm_file=i386/seq-sysv3.h
772 tmake_file=i386/t-crtstuff
773 fixincludes=fixinc.ptx
774 extra_parts="crtbegin.o crtend.o"
775 install_headers_dir=install-headers-cpio
777 i[[34567]]86-sequent-ptx2* | i[[34567]]86-sequent-sysv3*)
778 xm_defines="USG SVR3"
779 xmake_file=i386/x-sysv3
780 tm_file=i386/seq2-sysv3.h
781 tmake_file=i386/t-crtstuff
782 extra_parts="crtbegin.o crtend.o"
783 fixincludes=fixinc.ptx
784 install_headers_dir=install-headers-cpio
786 i[[34567]]86-sequent-ptx4* | i[[34567]]86-sequent-sysv4*)
787 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
788 xm_defines="USG POSIX SMALL_ARG_MAX"
790 tm_file=i386/ptx4-i.h
792 extra_parts="crtbegin.o crtend.o"
793 fixincludes=fixinc.ptx
794 install_headers_dir=install-headers-cpio
796 i386-sun-sunos*) # Sun i386 roadrunner
801 i[[34567]]86-wrs-vxworks*)
802 tm_file=i386/vxi386.h
803 tmake_file=i386/t-i386bare
805 i[[34567]]86-*-aout*)
806 tm_file=i386/i386-aout.h
807 tmake_file=i386/t-i386bare
809 i[[34567]]86-*-bsdi* | i[[34567]]86-*-bsd386*)
810 tm_file=i386/bsd386.h
811 # tmake_file=t-libc-ok
814 tm_file=i386/386bsd.h
815 # tmake_file=t-libc-ok
816 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
819 i[[34567]]86-*-freebsdelf*)
820 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
821 # On FreeBSD, the headers are already ok, except for math.h.
822 fixincludes=fixinc.wrap
823 tmake_file=i386/t-freebsd
828 i[[34567]]86-*-freebsd*)
829 tm_file=i386/freebsd.h
830 # On FreeBSD, the headers are already ok, except for math.h.
831 fixincludes=fixinc.wrap
832 tmake_file=i386/t-freebsd
834 i[[34567]]86-*-netbsd*)
835 tm_file=i386/netbsd.h
836 # On NetBSD, the headers are already okay, except for math.h.
837 fixincludes=fixinc.wrap
840 i[[34567]]86-*-coff*)
841 tm_file=i386/i386-coff.h
842 tmake_file=i386/t-i386bare
844 i[[34567]]86-*-isc*) # 80386 running ISC system
845 xm_file="${xm_file} i386/xm-isc.h"
846 xm_defines="USG SVR3"
848 i[[34567]]86-*-isc[[34]]*)
849 xmake_file=i386/x-isc3
852 xmake_file=i386/x-isc
855 if [[ x$gas = xyes -a x$stabs = xyes ]]
857 tm_file=i386/iscdbx.h
858 tmake_file=i386/t-svr3dbx
859 extra_parts="svr3.ifile svr3z.ifile"
861 tm_file=i386/isccoff.h
862 tmake_file=i386/t-crtstuff
863 extra_parts="crtbegin.o crtend.o"
865 install_headers_dir=install-headers-cpio
867 i[[34567]]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
868 # with a.out format using
870 xmake_file=x-linux-aout
871 tmake_file="t-linux-aout i386/t-crtstuff"
872 tm_file=i386/linux-oldld.h
873 fixincludes=Makefile.in #On Linux, the headers are ok already.
876 i[[34567]]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
878 xmake_file=x-linux-aout
879 tmake_file="t-linux-aout i386/t-crtstuff"
880 tm_file=i386/linux-aout.h
881 fixincludes=Makefile.in #On Linux, the headers are ok already.
884 i[[34567]]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
885 # with ELF format using the
886 # GNU/Linux C library 5
889 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
890 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
891 fixincludes=Makefile.in #On Linux, the headers are ok already.
893 if [[ x$enable_threads = xyes ]]; then
897 i[[34567]]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
898 # with ELF format using glibc 2
899 # aka GNU/Linux C library 6
902 tmake_file="t-linux i386/t-crtstuff"
903 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
904 fixincludes=Makefile.in #On Linux, the headers are ok already.
906 if [[ x$enable_threads = xyes ]]; then
912 i[[34567]]86-go32-msdos | i[[34567]]86-*-go32*)
913 xm_file=i386/xm-go32.h
915 tmake_file=i386/t-go32
917 i[[34567]]86-pc-msdosdjgpp*)
918 xm_file=i386/xm-go32.h
920 tmake_file=i386/t-go32
924 i[[34567]]86-moss-msdos* | i[[34567]]86-*-moss*)
927 fixincludes=Makefile.in
931 i[[34567]]86-*-lynxos*)
932 if [[ x$gas = xyes ]]
936 tm_file=i386/lynx-ng.h
938 xm_file=i386/xm-lynx.h
939 tmake_file=i386/t-i386bare
942 i[[34567]]86-*-mach*)
944 # tmake_file=t-libc-ok
947 i[[34567]]86-*-osfrose*) # 386 using OSF/rose
948 if [[ x$elf = xyes ]]
950 tm_file=i386/osfelf.h
953 tm_file=i386/osfrose.h
956 xm_file="i386/xm-osf.h ${xm_file}"
957 xmake_file=i386/x-osfrose
958 tmake_file=i386/t-osf
961 i[[34567]]86-go32-rtems*)
963 xm_file=i386/xm-go32.h
964 tm_file=i386/go32-rtems.h
965 tmake_file="i386/t-go32 t-rtems"
967 i[[34567]]86-*-rtemself*)
969 tm_file=i386/rtemself.h
970 tmake_file="i386/t-i386bare t-rtems"
972 i[[34567]]86-*-rtems*)
975 tmake_file="i386/t-i386bare t-rtems"
977 i[[34567]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
978 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
979 xm_defines="USG SVR3"
980 xmake_file=i386/x-sco5
981 fixincludes=fixinc.sco
982 install_headers_dir=install-headers-cpio
984 tmake_file=i386/t-sco5
985 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
987 i[[34567]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
988 xm_file="${xm_file} i386/xm-sco.h"
989 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
990 xmake_file=i386/x-sco4
991 fixincludes=fixinc.sco
992 install_headers_dir=install-headers-cpio
993 if [[ x$stabs = xyes ]]
995 tm_file=i386/sco4dbx.h
996 tmake_file=i386/t-svr3dbx
997 extra_parts="svr3.ifile svr3z.rfile"
1000 tmake_file=i386/t-crtstuff
1001 extra_parts="crtbegin.o crtend.o"
1005 i[[34567]]86-*-sco*) # 80386 running SCO system
1006 xm_file=i386/xm-sco.h
1007 xmake_file=i386/x-sco
1008 install_headers_dir=install-headers-cpio
1009 if [[ x$stabs = xyes ]]
1011 tm_file=i386/scodbx.h
1012 tmake_file=i386/t-svr3dbx
1013 extra_parts="svr3.ifile svr3z.rfile"
1016 extra_parts="crtbegin.o crtend.o"
1017 tmake_file=i386/t-crtstuff
1021 i[[34567]]86-*-solaris2*)
1022 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1023 xm_defines="USG POSIX SMALL_ARG_MAX"
1024 if [[ x$stabs = xyes ]]
1026 tm_file=i386/sol2dbg.h
1030 tmake_file=i386/t-sol2
1031 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1034 *-*-solaris2.[[0-4]])
1035 fixincludes=fixinc.svr4;;
1037 fixincludes=fixinc.wrap;;
1039 if [[ x$enable_threads = xyes ]]; then
1040 thread_file='solaris'
1043 i[[34567]]86-*-sysv5*) # Intel x86 on System V Release 5
1044 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1045 xm_defines="USG POSIX"
1046 tm_file=i386/sysv4.h
1047 if [[ x$stabs = xyes ]]
1049 tm_file="${tm_file} dbx.h"
1051 tmake_file=i386/t-crtpic
1053 extra_parts="crtbegin.o crtend.o"
1054 fixincludes=Makefile.in # The headers are just fine, thank you.
1056 i[[34567]]86-*-sysv4*) # Intel 80386's running system V.4
1057 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1058 xm_defines="USG POSIX SMALL_ARG_MAX"
1059 tm_file=i386/sysv4.h
1060 if [[ x$stabs = xyes ]]
1062 tm_file="${tm_file} dbx.h"
1064 tmake_file=i386/t-crtpic
1066 extra_parts="crtbegin.o crtend.o"
1068 i[[34567]]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1070 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1071 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1072 fixincludes=Makefile.in #Don't do it on OSF/1
1073 if [[ x$stabs = xyes ]]
1075 tm_file=i386/osf1elfgdb.h
1077 tm_file=i386/osf1elf.h
1079 tmake_file=i386/t-osf1elf
1080 xmake_file=i386/x-osf1elf
1081 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1083 i[[34567]]86-*-sysv*) # Intel 80386's running system V
1084 xm_defines="USG SVR3"
1085 xmake_file=i386/x-sysv3
1086 if [[ x$gas = xyes ]]
1088 if [[ x$stabs = xyes ]]
1090 tm_file=i386/svr3dbx.h
1091 tmake_file=i386/t-svr3dbx
1092 extra_parts="svr3.ifile svr3z.rfile"
1094 tm_file=i386/svr3gas.h
1095 extra_parts="crtbegin.o crtend.o"
1096 tmake_file=i386/t-crtstuff
1099 tm_file=i386/sysv3.h
1100 extra_parts="crtbegin.o crtend.o"
1101 tmake_file=i386/t-crtstuff
1104 i386-*-vsta) # Intel 80386's running VSTa kernel
1105 xm_file="${xm_file} i386/xm-vsta.h"
1107 tmake_file=i386/t-vsta
1108 xmake_file=i386/x-vsta
1110 i[[34567]]86-*-pe | i[[34567]]86-*-cygwin32)
1111 xm_file="${xm_file} i386/xm-cygwin32.h"
1112 tmake_file=i386/t-cygwin32
1113 tm_file=i386/cygwin32.h
1114 xmake_file=i386/x-cygwin32
1116 fixincludes=Makefile.in
1117 if [[ x$enable_threads = xyes ]]; then
1122 i[[34567]]86-*-mingw32*)
1123 tm_file=i386/mingw32.h
1124 xm_file="${xm_file} i386/xm-mingw32.h"
1125 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1127 xmake_file=i386/x-cygwin32
1128 fixincludes=Makefile.in
1129 if [[ x$enable_threads = xyes ]]; then
1136 *minwg32crt* | *mingw32*)
1137 tm_file="${tm_file} i386/crtdll.h"
1141 i[[34567]]86-*-winnt3*)
1142 tm_file=i386/win-nt.h
1143 out_file=i386/i386.c
1144 xm_file="xm-winnt.h ${xm_file}"
1145 xmake_file=winnt/x-winnt
1146 tmake_file=i386/t-winnt
1147 extra_host_objs="winnt.o oldnames.o"
1148 extra_gcc_objs="spawnv.o oldnames.o"
1149 fixincludes=fixinc.winnt
1150 if [[ x$gnu_ld != xyes ]]
1152 extra_programs=ld.exe
1154 if [[ x$enable_threads = xyes ]]; then
1158 i[[34567]]86-dg-dgux*)
1159 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1160 xm_defines="USG POSIX"
1161 out_file=i386/dgux.c
1163 tmake_file=i386/t-dgux
1164 xmake_file=i386/x-dgux
1165 fixincludes=fixinc.dgux
1166 install_headers_dir=install-headers-cpio
1168 i860-alliant-*) # Alliant FX/2800
1169 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1170 xm_file="${xm_file}"
1171 xmake_file=i860/x-fx2800
1172 tmake_file=i860/t-fx2800
1173 extra_parts="crtbegin.o crtend.o"
1176 tm_file="${tm_file} i860/bsd.h"
1177 if [[ x$gas = xyes ]]
1179 tm_file="${tm_file} i860/bsd-gas.h"
1184 tm_file="${tm_file} i860/mach.h"
1185 tmake_file=t-libc-ok
1187 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1188 tm_file="${tm_file} svr3.h i860/paragon.h"
1189 xm_defines="USG SVR3"
1193 tm_file="${tm_file} svr3.h i860/sysv3.h"
1194 xm_defines="USG SVR3"
1195 xmake_file=i860/x-sysv3
1196 extra_parts="crtbegin.o crtend.o"
1199 tm_file="${tm_file} svr4.h i860/sysv4.h"
1200 xm_defines="USG SVR3"
1201 xmake_file=i860/x-sysv4
1203 extra_parts="crtbegin.o crtend.o"
1205 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1206 tm_file="${tm_file} i960/vx960.h"
1207 tmake_file=i960/t-vxworks960
1209 thread_file='vxworks'
1211 i960-wrs-vxworks5* | i960-wrs-vxworks)
1212 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1213 tmake_file=i960/t-vxworks960
1215 thread_file='vxworks'
1218 tm_file="${tm_file} i960/vx960.h"
1219 tmake_file=i960/t-vxworks960
1221 thread_file='vxworks'
1224 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1225 tmake_file=i960/t-960bare
1229 tmake_file="i960/t-960bare t-rtems"
1230 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1233 i960-*-*) # Default i960 environment.
1237 extra_parts="crtinit.o crtfini.o"
1239 m68000-convergent-sysv*)
1241 xm_file="m68k/xm-3b1.h ${xm_file}"
1244 extra_headers=math-68881.h
1246 m68000-hp-bsd*) # HP 9000/200 running BSD
1247 tm_file=m68k/hp2bsd.h
1248 xmake_file=m68k/x-hp2bsd
1250 extra_headers=math-68881.h
1252 m68000-hp-hpux*) # HP 9000 series 300
1253 xm_file="xm_alloca.h ${xm_file}"
1254 xm_defines="USG NO_SYS_SIGLIST"
1255 if [[ x$gas = xyes ]]
1257 xmake_file=m68k/x-hp320g
1258 tm_file=m68k/hp310g.h
1260 xmake_file=m68k/x-hp320
1261 tm_file=m68k/hp310.h
1263 install_headers_dir=install-headers-cpio
1265 extra_headers=math-68881.h
1270 extra_headers=math-68881.h
1273 tm_file=m68k/sun2o4.h
1275 extra_headers=math-68881.h
1278 xm_file="m68k/xm-3b1.h ${xm_file}"
1280 if [[ x$gas = xyes ]]
1287 extra_headers=math-68881.h
1289 m68k-apple-aux*) # Apple Macintosh running A/UX
1290 xm_defines="USG AUX"
1291 tmake_file=m68k/t-aux
1292 install_headers_dir=install-headers-cpio
1293 extra_headers=math-68881.h
1294 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1296 if [[ "$gnu_ld" = yes ]]
1298 tm_file="${tm_file} m68k/auxgld.h"
1300 tm_file="${tm_file} m68k/auxld.h"
1302 if [[ "$gas" = yes ]]
1304 tm_file="${tm_file} m68k/auxgas.h"
1306 tm_file="${tm_file} m68k/auxas.h"
1308 tm_file="${tm_file} m68k/a-ux.h"
1312 tm_file=m68k/apollo68.h
1313 xmake_file=m68k/x-apollo68
1315 extra_headers=math-68881.h
1318 m68k-altos-sysv*) # Altos 3068
1319 if [[ x$gas = xyes ]]
1321 tm_file=m68k/altos3068.h
1324 echo "The Altos is supported only with the GNU assembler" 1>&2
1327 extra_headers=math-68881.h
1329 m68k-bull-sysv*) # Bull DPX/2
1330 if [[ x$gas = xyes ]]
1332 if [[ x$stabs = xyes ]]
1334 tm_file=m68k/dpx2cdbx.h
1336 tm_file=m68k/dpx2g.h
1341 xm_file="xm-alloca.h ${xm_file}"
1343 xmake_file=m68k/x-dpx2
1345 extra_headers=math-68881.h
1347 m68k-atari-sysv4*) # Atari variant of V.4.
1348 tm_file=m68k/atari.h
1349 xm_file="xm-alloca.h ${xm_file}"
1350 xm_defines="USG FULL_PROTOTYPES"
1352 extra_parts="crtbegin.o crtend.o"
1353 extra_headers=math-68881.h
1356 m68k-motorola-sysv*)
1357 tm_file=m68k/mot3300.h
1358 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1359 xm_defines=NO_SYS_SIGLIST
1360 if [[ x$gas = xyes ]]
1362 xmake_file=m68k/x-mot3300-gas
1363 if [[ x$gnu_ld = xyes ]]
1365 tmake_file=m68k/t-mot3300-gald
1367 tmake_file=m68k/t-mot3300-gas
1371 xmake_file=m68k/x-mot3300
1372 if [[ x$gnu_ld = xyes ]]
1374 tmake_file=m68k/t-mot3300-gld
1376 tmake_file=m68k/t-mot3300
1380 gdb_needs_out_file_path=yes
1381 extra_parts="crt0.o mcrt0.o"
1382 extra_headers=math-68881.h
1385 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1386 tm_file=m68k/tower-as.h
1387 xm_defines="USG SVR3"
1388 xmake_file=m68k/x-tower
1389 extra_parts="crtbegin.o crtend.o"
1390 extra_headers=math-68881.h
1393 tm_file=m68k/plexus.h
1394 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1397 extra_headers=math-68881.h
1401 xm_file="xm-alloca.h ${xm_file}"
1403 extra_headers=math-68881.h
1406 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1407 xm_defines="USG unos"
1408 xmake_file=m68k/x-crds
1411 extra_headers=math-68881.h
1413 m68k-cbm-sysv4*) # Commodore variant of V.4.
1415 xm_file="xm-alloca.h ${xm_file}"
1416 xm_defines="USG FULL_PROTOTYPES"
1417 xmake_file=m68k/x-amix
1419 extra_parts="crtbegin.o crtend.o"
1420 extra_headers=math-68881.h
1424 tm_file=m68k/ccur-GAS.h
1425 xmake_file=m68k/x-ccur
1426 extra_headers=math-68881.h
1430 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1431 tm_file=m68k/hp3bsd44.h
1432 xmake_file=m68k/x-hp3bsd44
1434 extra_headers=math-68881.h
1437 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1438 tm_file=m68k/hp3bsd.h
1440 extra_headers=math-68881.h
1444 if [[ x$with_fp = xno ]]
1446 tm_file=m68k/isi-nfp.h
1452 extra_headers=math-68881.h
1454 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1455 xm_file="xm_alloca.h ${xm_file}"
1456 xm_defines="USG NO_SYS_SIGLIST"
1457 if [[ x$gas = xyes ]]
1459 xmake_file=m68k/x-hp320g
1460 tm_file=m68k/hp320g.h
1462 xmake_file=m68k/x-hp320
1463 tm_file=m68k/hpux7.h
1465 install_headers_dir=install-headers-cpio
1467 extra_headers=math-68881.h
1470 m68k-hp-hpux*) # HP 9000 series 300
1471 xm_file="xm_alloca.h ${xm_file}"
1472 xm_defines="USG NO_SYS_SIGLIST"
1473 if [[ x$gas = xyes ]]
1475 xmake_file=m68k/x-hp320g
1476 tm_file=m68k/hp320g.h
1478 xmake_file=m68k/x-hp320
1479 tm_file=m68k/hp320.h
1481 install_headers_dir=install-headers-cpio
1483 extra_headers=math-68881.h
1487 tm_file=m68k/sun3mach.h
1489 extra_headers=math-68881.h
1493 if [[ x$gas = xyes ]]
1495 tm_file=m68k/news3gas.h
1497 tm_file=m68k/news3.h
1500 extra_headers=math-68881.h
1503 m68k-sony-bsd* | m68k-sony-newsos*)
1504 if [[ x$gas = xyes ]]
1506 tm_file=m68k/newsgas.h
1511 extra_headers=math-68881.h
1514 m68k-next-nextstep2*)
1515 tm_file=m68k/next21.h
1516 xm_file="m68k/xm-next.h ${xm_file}"
1517 tmake_file=m68k/t-next
1518 xmake_file=m68k/x-next
1519 extra_objs=nextstep.o
1520 extra_headers=math-68881.h
1524 m68k-next-nextstep3*)
1526 xm_file="m68k/xm-next.h ${xm_file}"
1527 tmake_file=m68k/t-next
1528 xmake_file=m68k/x-next
1529 extra_objs=nextstep.o
1530 extra_headers=math-68881.h
1532 if [[ x$enable_threads = xyes ]]; then
1537 if [[ x$with_fp = xno ]]
1539 tm_file=m68k/sun3n3.h
1541 tm_file=m68k/sun3o3.h
1545 extra_headers=math-68881.h
1547 m68k-sun-sunos*) # For SunOS 4 (the default).
1548 if [[ x$with_fp = xno ]]
1550 tm_file=m68k/sun3n.h
1556 extra_headers=math-68881.h
1559 tm_file=m68k/vxm68k.h
1560 tmake_file=m68k/t-vxworks68
1561 extra_headers=math-68881.h
1562 thread_file='vxworks'
1566 tmake_file=m68k/t-m68kbare
1567 tm_file="m68k/m68k-aout.h libgloss.h"
1568 extra_headers=math-68881.h
1572 tmake_file=m68k/t-m68kbare
1573 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1574 extra_headers=math-68881.h
1578 if [[ x$gas = xyes ]]
1582 tm_file=m68k/lynx-ng.h
1584 xm_file=m68k/xm-lynx.h
1586 tmake_file=m68k/t-lynx
1587 extra_headers=math-68881.h
1591 tm_file=m68k/netbsd.h
1592 # On NetBSD, the headers are already okay, except for math.h.
1593 fixincludes=fixinc.wrap
1597 m68k-*-sysv3*) # Motorola m68k's running system V.3
1598 xm_file="xm-alloca.h ${xm_file}"
1600 xmake_file=m68k/x-m68kv
1601 extra_parts="crtbegin.o crtend.o"
1602 extra_headers=math-68881.h
1605 m68k-*-sysv4*) # Motorola m68k's running system V.4
1606 tm_file=m68k/m68kv4.h
1607 xm_file="xm-alloca.h ${xm_file}"
1610 extra_parts="crtbegin.o crtend.o"
1611 extra_headers=math-68881.h
1614 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1617 tm_file=m68k/linux-aout.h
1618 tmake_file="t-linux-aout m68k/t-linux-aout"
1619 fixincludes=Makefile.in # The headers are ok already.
1620 extra_headers=math-68881.h
1624 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1625 # with ELF format using the
1626 # GNU/Linux C library 5
1628 tm_file=m68k/linux.h
1629 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1630 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1631 fixincludes=Makefile.in # The headers are ok already.
1632 extra_headers=math-68881.h
1636 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1637 # with ELF format using glibc 2
1638 # aka the GNU/Linux C library 6.
1640 tm_file=m68k/linux.h
1641 tmake_file="t-linux m68k/t-linux"
1642 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1643 fixincludes=Makefile.in # The headers are ok already.
1644 extra_headers=math-68881.h
1647 if [[ x$enable_threads = xyes ]]; then
1652 tmake_file=m68k/t-m68kbare
1653 tm_file=m68k/m68k-psos.h
1654 extra_headers=math-68881.h
1658 tmake_file="m68k/t-m68kbare t-rtems"
1659 tm_file=m68k/rtems.h
1660 extra_headers=math-68881.h
1667 tm_file=m88k/dguxbcs.h
1668 tmake_file=m88k/t-dguxbcs
1672 tmake_file=m88k/t-dgux
1675 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1676 xmake_file=m88k/x-dgux
1677 if [[ x$gas = xyes ]]
1679 tmake_file=m88k/t-dgux-gas
1681 fixincludes=fixinc.dgux
1683 m88k-dolphin-sysv3*)
1684 tm_file=m88k/dolph.h
1685 extra_parts="crtbegin.o crtend.o"
1686 xm_file="m88k/xm-sysv3.h ${xm_file}"
1687 xmake_file=m88k/x-dolph
1688 if [[ x$gas = xyes ]]
1690 tmake_file=m88k/t-m88k-gas
1693 m88k-tektronix-sysv3)
1694 tm_file=m88k/tekXD88.h
1695 extra_parts="crtbegin.o crtend.o"
1696 xm_file="m88k/xm-sysv3.h ${xm_file}"
1697 xmake_file=m88k/x-tekXD88
1698 if [[ x$gas = xyes ]]
1700 tmake_file=m88k/t-m88k-gas
1704 tm_file=m88k/m88k-aout.h
1707 tm_file=m88k/m88k-coff.h
1708 tmake_file=m88k/t-bug
1712 extra_parts="crtbegin.o crtend.o"
1713 if [[ x$gas = xyes ]]
1715 tmake_file=m88k/t-luna-gas
1717 tmake_file=m88k/t-luna
1721 tm_file=m88k/sysv3.h
1722 extra_parts="crtbegin.o crtend.o"
1723 xm_file="m88k/xm-sysv3.h ${xm_file}"
1724 xmake_file=m88k/x-sysv3
1725 if [[ x$gas = xyes ]]
1727 tmake_file=m88k/t-m88k-gas
1731 tm_file=m88k/sysv4.h
1732 extra_parts="crtbegin.o crtend.o"
1733 xmake_file=m88k/x-sysv4
1734 tmake_file=m88k/t-sysv4
1736 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1737 tm_file=mips/iris6.h
1738 xm_file=mips/xm-iris6.h
1739 fixincludes=fixinc.irix
1740 xmake_file=mips/x-iris6
1741 tmake_file=mips/t-iris6
1742 if [[ x$enable_threads = xyes ]]; then
1747 tm_file="mips/elf.h libgloss.h"
1748 tmake_file=mips/t-ecoff
1751 extra_parts="crtbegin.o crtend.o"
1752 # thread_file='vxworks'
1754 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1755 tm_file="mips/iris6.h mips/cross64.h"
1756 xm_defines="USG HAVE_INTTYPES_H"
1757 fixincludes=Makefile.in
1758 xmake_file=mips/x-iris
1759 tmake_file=mips/t-cross64
1760 # See comment in mips/iris[56].h files.
1762 if [[ x$enable_threads = xyes ]]; then
1767 if [[ x$gas = xyes ]]
1769 if [[ x$stabs = xyes ]]
1771 tm_file=mips/iris5gdb.h
1773 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1776 tm_file=mips/sni-svr4.h
1779 xmake_file=mips/x-sni-svr4
1780 tmake_file=mips/t-mips-gas
1781 if [[ x$gnu_ld != xyes ]]
1786 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1787 if [[ x$gas = xyes ]]
1789 tm_file="mips/iris5.h mips/iris5gas.h"
1790 if [[ x$stabs = xyes ]]
1792 tm_file="${tm_file} dbx.h"
1795 tm_file=mips/iris5.h
1797 xm_defines="USG HAVE_INTTYPES_H"
1798 fixincludes=fixinc.irix
1799 xmake_file=mips/x-iris
1800 # mips-tfile doesn't work yet
1801 tmake_file=mips/t-mips-gas
1802 # See comment in mips/iris5.h file.
1804 if [[ x$enable_threads = xyes ]]; then
1808 mips-sgi-irix4loser*) # Mostly like a MIPS.
1809 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
1810 if [[ x$stabs = xyes ]]; then
1811 tm_file="${tm_file} dbx.h"
1814 xmake_file=mips/x-iris
1815 if [[ x$gas = xyes ]]
1817 tmake_file=mips/t-mips-gas
1819 extra_passes="mips-tfile mips-tdump"
1821 if [[ x$gnu_ld != xyes ]]
1825 if [[ x$enable_threads = xyes ]]; then
1829 mips-sgi-irix4*) # Mostly like a MIPS.
1830 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
1831 if [[ x$stabs = xyes ]]; then
1832 tm_file="${tm_file} dbx.h"
1835 xmake_file=mips/x-iris
1836 if [[ x$gas = xyes ]]
1838 tmake_file=mips/t-mips-gas
1840 extra_passes="mips-tfile mips-tdump"
1842 if [[ x$gnu_ld != xyes ]]
1846 if [[ x$enable_threads = xyes ]]; then
1850 mips-sgi-*) # Mostly like a MIPS.
1851 tm_file="mips/iris3.h ${tm_file}"
1852 if [[ x$stabs = xyes ]]; then
1853 tm_file="${tm_file} dbx.h"
1856 xmake_file=mips/x-iris3
1857 if [[ x$gas = xyes ]]
1859 tmake_file=mips/t-mips-gas
1861 extra_passes="mips-tfile mips-tdump"
1863 if [[ x$gnu_ld != xyes ]]
1868 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
1869 tm_file="mips/osfrose.h ${tm_file}"
1870 xmake_file=mips/x-osfrose
1871 tmake_file=mips/t-osfrose
1872 extra_objs=halfpic.o
1875 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
1876 tm_file=mips/dec-osf1.h
1877 if [[ x$stabs = xyes ]]; then
1878 tm_file="${tm_file} dbx.h"
1880 xmake_file=mips/x-dec-osf1
1881 if [[ x$gas = xyes ]]
1883 tmake_file=mips/t-mips-gas
1885 tmake_file=mips/t-ultrix
1886 extra_passes="mips-tfile mips-tdump"
1888 if [[ x$gnu_ld != xyes ]]
1893 mips-dec-bsd*) # Decstation running 4.4 BSD
1894 tm_file=mips/dec-bsd.h
1896 if [[ x$gas = xyes ]]
1898 tmake_file=mips/t-mips-gas
1900 tmake_file=mips/t-ultrix
1901 extra_passes="mips-tfile mips-tdump"
1903 if [[ x$gnu_ld != xyes ]]
1908 mips-dec-netbsd*) # Decstation running NetBSD
1909 tm_file=mips/netbsd.h
1910 # On NetBSD, the headers are already okay, except for math.h.
1911 fixincludes=fixinc.wrap
1914 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
1915 tm_file="mips/news4.h ${tm_file}"
1916 if [[ x$stabs = xyes ]]; then
1917 tm_file="${tm_file} dbx.h"
1919 if [[ x$gas = xyes ]]
1921 tmake_file=mips/t-mips-gas
1923 extra_passes="mips-tfile mips-tdump"
1925 if [[ x$gnu_ld != xyes ]]
1929 xmake_file=mips/x-sony
1931 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
1932 # That is based on svr4.
1933 # t-svr4 is not right because this system doesn't use ELF.
1934 tm_file="mips/news5.h ${tm_file}"
1935 if [[ x$stabs = xyes ]]; then
1936 tm_file="${tm_file} dbx.h"
1938 xm_file="xm-siglist.h ${xm_file}"
1940 if [[ x$gas = xyes ]]
1942 tmake_file=mips/t-mips-gas
1944 extra_passes="mips-tfile mips-tdump"
1946 if [[ x$gnu_ld != xyes ]]
1951 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
1952 tm_file="mips/svr4-5.h mips/svr4-t.h"
1953 if [[ x$stabs = xyes ]]; then
1954 tm_file="${tm_file} dbx.h"
1956 xm_file="xm-siglist.h ${xm_file}"
1958 xmake_file=mips/x-sysv
1959 if [[ x$gas = xyes ]]
1961 tmake_file=mips/t-mips-gas
1962 extra_parts="crtbegin.o crtend.o"
1964 tmake_file=mips/t-mips
1965 extra_passes="mips-tfile mips-tdump"
1967 if [[ x$gnu_ld != xyes ]]
1972 mips-*-ultrix* | mips-dec-mach3) # Decstation.
1973 tm_file="mips/ultrix.h ${tm_file}"
1974 if [[ x$stabs = xyes ]]; then
1975 tm_file="${tm_file} dbx.h"
1977 xmake_file=mips/x-ultrix
1978 if [[ x$gas = xyes ]]
1980 tmake_file=mips/t-mips-gas
1982 tmake_file=mips/t-ultrix
1983 extra_passes="mips-tfile mips-tdump"
1985 if [[ x$gnu_ld != xyes ]]
1990 mips-*-riscos[[56789]]bsd*)
1991 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
1992 if [[ x$stabs = xyes ]]; then
1993 tm_file="${tm_file} dbx.h"
1995 if [[ x$gas = xyes ]]
1997 tmake_file=mips/t-bsd-gas
1999 tmake_file=mips/t-bsd
2000 extra_passes="mips-tfile mips-tdump"
2002 if [[ x$gnu_ld != xyes ]]
2007 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
2008 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2009 if [[ x$stabs = xyes ]]; then
2010 tm_file="${tm_file} dbx.h"
2012 if [[ x$gas = xyes ]]
2014 tmake_file=mips/t-bsd-gas
2016 tmake_file=mips/t-bsd
2017 extra_passes="mips-tfile mips-tdump"
2019 if [[ x$gnu_ld != xyes ]]
2024 mips-*-riscos[[56789]]sysv4*)
2025 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2026 if [[ x$stabs = xyes ]]; then
2027 tm_file="${tm_file} dbx.h"
2029 xm_file="xm-siglist.h ${xm_file}"
2030 xmake_file=mips/x-sysv
2031 if [[ x$gas = xyes ]]
2033 tmake_file=mips/t-svr4-gas
2035 tmake_file=mips/t-svr4
2036 extra_passes="mips-tfile mips-tdump"
2038 if [[ x$gnu_ld != xyes ]]
2043 mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
2044 tm_file="mips/svr4-4.h ${tm_file}"
2045 if [[ x$stabs = xyes ]]; then
2046 tm_file="${tm_file} dbx.h"
2049 xmake_file=mips/x-sysv
2050 if [[ x$gas = xyes ]]
2052 tmake_file=mips/t-svr4-gas
2054 tmake_file=mips/t-svr4
2055 extra_passes="mips-tfile mips-tdump"
2057 if [[ x$gnu_ld != xyes ]]
2062 mips-*-riscos[[56789]]sysv*)
2063 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2064 if [[ x$stabs = xyes ]]; then
2065 tm_file="${tm_file} dbx.h"
2068 xmake_file=mips/x-sysv
2069 if [[ x$gas = xyes ]]
2071 tmake_file=mips/t-svr3-gas
2073 tmake_file=mips/t-svr3
2074 extra_passes="mips-tfile mips-tdump"
2076 if [[ x$gnu_ld != xyes ]]
2081 mips-*-sysv* | mips-*-riscos*sysv*)
2082 tm_file="mips/svr3-4.h ${tm_file}"
2083 if [[ x$stabs = xyes ]]; then
2084 tm_file="${tm_file} dbx.h"
2087 xmake_file=mips/x-sysv
2088 if [[ x$gas = xyes ]]
2090 tmake_file=mips/t-svr3-gas
2092 tmake_file=mips/t-svr3
2093 extra_passes="mips-tfile mips-tdump"
2095 if [[ x$gnu_ld != xyes ]]
2100 mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0.
2101 tm_file=mips/mips-5.h
2102 if [[ x$stabs = xyes ]]; then
2103 tm_file="${tm_file} dbx.h"
2105 if [[ x$gas = xyes ]]
2107 tmake_file=mips/t-mips-gas
2109 extra_passes="mips-tfile mips-tdump"
2111 if [[ x$gnu_ld != xyes ]]
2119 tm_file=mips/ecoffl.h
2120 if [[ x$stabs = xyes ]]; then
2121 tm_file="${tm_file} dbx.h"
2123 tmake_file=mips/t-ecoff
2126 tm_file="gofast.h mips/ecoff.h"
2127 if [[ x$stabs = xyes ]]; then
2128 tm_file="${tm_file} dbx.h"
2130 tmake_file=mips/t-ecoff
2133 tm_file="mips/elfl.h libgloss.h"
2134 tmake_file=mips/t-ecoff
2137 tm_file="mips/elf.h libgloss.h"
2138 tmake_file=mips/t-ecoff
2141 tm_file="mips/elfl64.h libgloss.h"
2142 tmake_file=mips/t-ecoff
2144 mips64orionel-*-elf*)
2145 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2146 tmake_file=mips/t-ecoff
2149 tm_file="mips/elf64.h libgloss.h"
2150 tmake_file=mips/t-ecoff
2153 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2154 tmake_file=mips/t-ecoff
2156 mips64orion-*-rtems*)
2157 tm_file="mips/elforion.h mips/elfl64.h mips/rtems64.h"
2158 tmake_file="mips/t-ecoff t-rtems"
2161 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2162 tmake_file=mips/t-r3900
2165 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2166 tmake_file=mips/t-r3900
2168 mips-*-*) # Default MIPS RISC-OS 4.0.
2169 if [[ x$stabs = xyes ]]; then
2170 tm_file="${tm_file} dbx.h"
2172 if [[ x$gas = xyes ]]
2174 tmake_file=mips/t-mips-gas
2176 extra_passes="mips-tfile mips-tdump"
2178 if [[ x$gnu_ld != xyes ]]
2185 tm_file="mn10200/mn10200.h"
2186 if [[ x$stabs = xyes ]]
2188 tm_file="${tm_file} dbx.h"
2194 tm_file="mn10300/mn10300.h"
2195 if [[ x$stabs = xyes ]]
2197 tm_file="${tm_file} dbx.h"
2202 tm_file=ns32k/encore.h
2206 tm_file=ns32k/sequent.h
2210 tm_file=ns32k/tek6100.h
2214 tm_file=ns32k/tek6200.h
2217 # This has not been updated to GCC 2.
2220 # xmake_file=ns32k/x-genix
2221 # tm_file=ns32k/genix.h
2225 tm_file=ns32k/merlin.h
2229 tm_file=ns32k/pc532-mach.h
2233 tm_file=ns32k/pc532-min.h
2234 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2238 ns32k-pc532-netbsd*)
2239 tm_file=ns32k/netbsd.h
2240 # On NetBSD, the headers are already okay, except for math.h.
2241 fixincludes=fixinc.wrap
2245 tm_file="${tm_file} pdp11/2bsd.h"
2251 xmake_file=pyr/x-pyr
2258 xmake_file=romp/x-mach
2263 tm_file=rs6000/beos.h
2264 xm_file=rs6000/xm-beos.h
2265 tmake_file=rs6000/t-beos
2266 xmake_file=rs6000/x-beos
2268 powerpc-*-sysv* | powerpc-*-elf*)
2269 tm_file=rs6000/sysv4.h
2270 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2271 xm_defines="USG POSIX"
2272 extra_headers=ppc-asm.h
2273 if [[ x$gas = xyes ]]
2275 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2277 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2279 xmake_file=rs6000/x-sysv4
2282 tm_file=rs6000/eabiaix.h
2283 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2284 fixincludes=Makefile.in
2285 extra_headers=ppc-asm.h
2288 tm_file=rs6000/eabisim.h
2289 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2290 fixincludes=Makefile.in
2291 extra_headers=ppc-asm.h
2294 tm_file=rs6000/eabi.h
2295 if [[ x$gas = xyes ]]
2297 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2299 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2301 fixincludes=Makefile.in
2302 extra_headers=ppc-asm.h
2305 tm_file=rs6000/rtems.h
2306 if [[ x$gas = xyes ]]
2308 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2310 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2312 fixincludes=Makefile.in
2313 extra_headers=ppc-asm.h
2315 powerpc-*-linux-gnulibc1)
2316 tm_file=rs6000/linux.h
2317 xm_file=rs6000/xm-sysv4.h
2318 out_file=rs6000/rs6000.c
2319 if [[ x$gas = xyes ]]
2321 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2323 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2326 fixincludes=Makefile.in
2327 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2328 extra_headers=ppc-asm.h
2329 if [[ x$enable_threads = xyes ]]; then
2333 powerpc-*-linux-gnu*)
2334 tm_file=rs6000/linux.h
2335 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2336 xm_defines="USG ${xm_defines}"
2337 out_file=rs6000/rs6000.c
2338 if [[ x$gas = xyes ]]
2340 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2342 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2345 fixincludes=Makefile.in
2346 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2347 extra_headers=ppc-asm.h
2348 if [[ x$enable_threads = xyes ]]; then
2352 powerpc-wrs-vxworks*)
2354 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2355 xm_defines="USG POSIX"
2356 tm_file=rs6000/vxppc.h
2357 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2358 extra_headers=ppc-asm.h
2359 thread_file='vxworks'
2361 powerpcle-*-sysv* | powerpcle-*-elf*)
2362 tm_file=rs6000/sysv4le.h
2363 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2364 xm_defines="USG POSIX"
2365 if [[ x$gas = xyes ]]
2367 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2369 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2371 xmake_file=rs6000/x-sysv4
2372 extra_headers=ppc-asm.h
2374 powerpcle-*-eabisim*)
2375 tm_file=rs6000/eabilesim.h
2376 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2377 fixincludes=Makefile.in
2378 extra_headers=ppc-asm.h
2381 tm_file=rs6000/eabile.h
2382 if [[ x$gas = xyes ]]
2384 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2386 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2388 fixincludes=Makefile.in
2389 extra_headers=ppc-asm.h
2391 powerpcle-*-winnt* )
2392 tm_file=rs6000/win-nt.h
2393 tmake_file=rs6000/t-winnt
2395 fixincludes=Makefile.in
2396 if [[ x$enable_threads = xyes ]]; then
2399 extra_headers=ppc-asm.h
2401 powerpcle-*-pe | powerpcle-*-cygwin32)
2402 tm_file=rs6000/cygwin32.h
2403 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2404 tmake_file=rs6000/t-winnt
2405 xmake_file=rs6000/x-cygwin32
2407 fixincludes=Makefile.in
2408 if [[ x$enable_threads = xyes ]]; then
2412 extra_headers=ppc-asm.h
2414 powerpcle-*-solaris2*)
2415 tm_file=rs6000/sol2.h
2416 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2417 xm_defines="USG POSIX"
2418 if [[ x$gas = xyes ]]
2420 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2422 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2424 xmake_file=rs6000/x-sysv4
2426 *-*-solaris2.[[0-4]])
2427 fixincludes=fixinc.svr4;;
2429 fixincludes=fixinc.wrap;;
2431 extra_headers=ppc-asm.h
2433 rs6000-ibm-aix3.[[01]]*)
2434 tm_file=rs6000/aix31.h
2435 xmake_file=rs6000/x-aix31
2438 rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*)
2439 tm_file=rs6000/aix3newas.h
2440 if [[ x$host != x$target ]]
2442 tmake_file=rs6000/t-xnewas
2444 tmake_file=rs6000/t-newas
2448 rs6000-ibm-aix4.[[12]].* | powerpc-ibm-aix4.[[12]].*)
2449 tm_file=rs6000/aix41.h
2450 if [[ x$host != x$target ]]
2452 tmake_file=rs6000/t-xnewas
2454 tmake_file=rs6000/t-newas
2456 xmake_file=rs6000/x-aix41
2459 rs6000-ibm-aix4.[[3456789]].* | powerpc-ibm-aix4.[[3456789]].*)
2460 tm_file=rs6000/aix43.h
2461 if [[ x$host != x$target ]]
2463 tmake_file=rs6000/t-xaix43
2465 tmake_file=rs6000/t-aix43
2467 xmake_file=rs6000/x-aix43
2470 rs6000-ibm-aix[[56789]].* | powerpc-ibm-aix[[56789]].*)
2471 tm_file=rs6000/aix43.h
2472 if [[ x$host != x$target ]]
2474 tmake_file=rs6000/t-xaix43
2476 tmake_file=rs6000/t-aix43
2478 xmake_file=rs6000/x-aix43
2488 tm_file=rs6000/mach.h
2489 xm_file="${xm_file} rs6000/xm-mach.h"
2490 xmake_file=rs6000/x-mach
2494 tm_file=rs6000/lynx.h
2495 xm_file=rs6000/xm-lynx.h
2496 tmake_file=rs6000/t-rs6000
2497 xmake_file=rs6000/x-lynx
2505 tmake_file="sh/t-sh t-rtems"
2514 xm_file="xm-alloca.h ${xm_file}"
2517 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2518 tm_file=sparc/vxsparc.h
2519 tmake_file=sparc/t-vxsparc
2521 thread_file='vxworks'
2524 tmake_file=sparc/t-sparcbare
2525 tm_file="sparc/aout.h libgloss.h"
2528 tm_file=sparc/netbsd.h
2529 # On NetBSD, the headers are already okay, except for math.h.
2530 fixincludes=fixinc.wrap
2538 tmake_file=sparc/t-elf
2539 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2543 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2544 xm_file="${xm_file} sparc/xm-linux.h"
2545 tm_file=sparc/linux-aout.h
2547 fixincludes=Makefile.in #On Linux, the headers are ok already.
2550 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2551 xm_file="${xm_file} sparc/xm-linux.h"
2553 tm_file=sparc/linux.h
2554 tmake_file="t-linux t-linux-gnulibc1"
2555 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2556 fixincludes=Makefile.in #On Linux, the headers are ok already.
2559 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2560 xm_file="${xm_file} sparc/xm-linux.h"
2562 tm_file=sparc/linux.h
2563 tmake_file="t-linux"
2564 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2565 fixincludes=Makefile.in #On Linux, the headers are ok already.
2567 if [[ x$enable_threads = xyes ]]; then
2572 if [[ x$gas = xyes ]]
2574 tm_file=sparc/lynx.h
2576 tm_file=sparc/lynx-ng.h
2578 xm_file=sparc/xm-lynx.h
2579 tmake_file=sparc/t-sunos41
2583 tmake_file="sparc/t-sparcbare t-rtems"
2584 tm_file=sparc/rtems.h
2587 if [[ x$gnu_ld = xyes ]]
2589 tm_file=sparc/sol2.h
2591 tm_file=sparc/sol2-sld.h
2593 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2594 xm_defines="USG POSIX"
2595 tmake_file=sparc/t-sol2
2596 xmake_file=sparc/x-sysv4
2597 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2599 *-*-solaris2.[[0-4]])
2600 fixincludes=fixinc.svr4;;
2602 fixincludes=fixinc.wrap;;
2605 if [[ x${enable_threads} = x ]]; then
2606 enable_threads=$have_pthread_h
2607 if [[ x${enable_threads} = x ]]; then
2608 enable_threads=$have_thread_h
2611 if [[ x${enable_threads} = xyes ]]; then
2612 if [[ x${have_pthread_h} = xyes ]]; then
2615 thread_file='solaris'
2620 tm_file=sparc/sunos4.h
2621 tmake_file=sparc/t-sunos40
2625 tm_file=sparc/sunos4.h
2626 tmake_file=sparc/t-sunos41
2628 if [[ x$gas = xyes ]]; then
2629 tm_file="${tm_file} sparc/sun4gas.h"
2633 tm_file=sparc/sun4o3.h
2637 tm_file=sparc/sysv4.h
2638 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2639 xm_defines="USG POSIX"
2641 xmake_file=sparc/x-sysv4
2642 extra_parts="crtbegin.o crtend.o"
2645 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2646 xm_defines="USG POSIX"
2647 tm_file=sparc/vxsim.h
2648 tmake_file=sparc/t-vxsparc
2649 xmake_file=sparc/x-sysv4
2652 tm_file="sparc/splet.h libgloss.h"
2653 tmake_file=sparc/t-splet
2656 tm_file="sparc/litecoff.h libgloss.h"
2657 tmake_file=sparc/t-sparclite
2660 tm_file="sparc/lite.h aoutos.h libgloss.h"
2661 tmake_file=sparc/t-sparclite
2664 tmake_file=sparc/t-sp64
2665 tm_file=sparc/sp64-aout.h
2668 tmake_file=sparc/t-sp64
2669 tm_file=sparc/sp64-elf.h
2670 extra_parts="crtbegin.o crtend.o"
2672 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2673 tmake_file=sparc/t-sp64
2674 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2675 tm_file=sparc/linux64.h
2677 fixincludes=Makefile.in # The headers are ok already.
2680 # This hasn't been upgraded to GCC 2.
2681 # tahoe-harris-*) # Harris tahoe, using COFF.
2682 # tm_file=tahoe/harris.h
2684 # tahoe-*-bsd*) # tahoe running BSD
2686 thumb-*-coff* | thumbel-*-coff*)
2688 out_file=arm/thumb.c
2689 xm_file=arm/xm-thumb.h
2690 md_file=arm/thumb.md
2691 tmake_file=arm/t-thumb
2693 # This hasn't been upgraded to GCC 2.
2700 tm_file="v850/v850.h"
2701 xm_file="v850/xm-v850.h"
2702 tmake_file=v850/t-v850
2703 if [[ x$stabs = xyes ]]
2705 tm_file="${tm_file} dbx.h"
2709 vax-*-bsd*) # vaxen running BSD
2713 vax-*-sysv*) # vaxen running system V
2714 tm_file="${tm_file} vax/vaxv.h"
2719 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2720 # On NetBSD, the headers are already okay, except for math.h.
2721 fixincludes=fixinc.wrap
2725 vax-*-ultrix*) # vaxen running ultrix
2726 tm_file="${tm_file} vax/ultrix.h"
2730 vax-*-vms*) # vaxen running VMS
2731 xm_file=vax/xm-vms.h
2735 vax-*-*) # vax default entry
2739 xm_file="${xm_file} xm-svr3"
2743 echo "Configuration $machine not supported" 1>&2
2750 ;; # Existing GNU/Linux systems do not use the GNU setup.
2752 # On the GNU system, the setup is just about the same on
2753 # each different CPU. The specific machines that GNU
2754 # supports are matched above and just set $cpu_type.
2755 xm_file="xm-gnu.h ${xm_file}"
2756 tm_file=${cpu_type}/gnu.h
2757 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2758 # GNU always uses ELF.
2760 # GNU tools are the only tools.
2763 # On GNU, the headers are already okay.
2764 fixincludes=Makefile.in
2765 xmake_file=x-linux # These details are the same as Linux.
2766 tmake_file=t-gnu # These are not.
2769 fixincludes=fixinc.svr4
2770 xmake_try_sysv=x-sysv
2771 install_headers_dir=install-headers-cpio
2774 install_headers_dir=install-headers-cpio
2778 # Distinguish i[34567]86
2779 # Also, do not run mips-tfile on MIPS if using gas.
2780 # Process --with-cpu= for PowerPC/rs6000
2781 target_cpu_default2=
2784 target_cpu_default2=1
2787 target_cpu_default2=2
2789 i686-*-* | i786-*-*)
2790 target_cpu_default2=3
2795 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
2798 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2801 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2804 target_cpu_default2="MASK_CPU_EV5"
2808 if [[ x$gas = xyes ]]
2810 if [[ "$target_cpu_default2" = "" ]]
2812 target_cpu_default2="MASK_GAS"
2814 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2819 case "x$with_cpu" in
2822 target_cpu_default2="TARGET_CPU_generic"
2825 # Distinguish cores, and major variants
2826 # arm7m doesn't exist, but D & I don't affect code
2827 xarm[23678] | xarm250 | xarm[67][01]0 \
2828 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
2829 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2830 | xstrongarm | xstrongarm110)
2831 target_cpu_default2="TARGET_CPU_$with_cpu"
2835 echo "--with-cpu must be passed a value" 1>&2
2840 if [[ x$pass2done = xyes ]]
2842 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2849 mips*-*-ecoff* | mips*-*-elf*)
2850 if [[ x$gas = xyes ]]
2852 if [[ x$gnu_ld = xyes ]]
2854 target_cpu_default2=20
2856 target_cpu_default2=16
2861 if [[ x$gas = xyes ]]
2863 target_cpu_default2=16
2866 powerpc*-*-* | rs6000-*-*)
2867 case "x$with_cpu" in
2871 xcommon | xpower | xpower2 | xpowerpc | xrios \
2872 | xrios1 | xrios2 | xrsc | xrsc1 \
2873 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2874 | x403 | x505 | x801 | x821 | x823 | x860)
2875 target_cpu_default2="\"$with_cpu\""
2879 echo "--with-cpu must be passed a value" 1>&2
2884 if [[ x$pass2done = xyes ]]
2886 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2893 case ".$with_cpu" in
2895 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2897 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
2898 target_cpu_default2="TARGET_CPU_$with_cpu"
2901 if [[ x$pass2done = xyes ]]
2903 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2911 if [[ "$target_cpu_default2" != "" ]]
2913 if [[ "$target_cpu_default" != "" ]]
2915 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2917 target_cpu_default=$target_cpu_default2
2921 # No need for collect2 if we have the GNU linker.
2922 # Actually, there is now; GNU ld doesn't handle the EH info or
2923 # collecting for shared libraries.
2924 # Instead we always turn on use_collect2; it's a rather heavyweight
2925 # solution to the problem, but it works.
2928 # Save data on machine being used to compile GCC in build_xm_file.
2929 # Save data on host machine in vars host_xm_file and host_xmake_file.
2930 if [[ x$pass1done = x ]]
2932 if [[ x"$xm_file" = x ]]
2933 then build_xm_file=$cpu_type/xm-$cpu_type.h
2934 else build_xm_file=$xm_file
2936 build_xm_defines=$xm_defines
2937 build_install_headers_dir=$install_headers_dir
2938 build_exeext=$exeext
2941 if [[ x$pass2done = x ]]
2943 if [[ x"$xm_file" = x ]]
2944 then host_xm_file=$cpu_type/xm-$cpu_type.h
2945 else host_xm_file=$xm_file
2947 host_xm_defines=$xm_defines
2948 if [[ x"$xmake_file" = x ]]
2949 then xmake_file=$cpu_type/x-$cpu_type
2951 host_xmake_file="$xmake_file"
2952 host_truncate_target=$truncate_target
2953 host_extra_gcc_objs=$extra_gcc_objs
2954 host_extra_objs=$extra_host_objs
2961 extra_objs="${host_extra_objs} ${extra_objs}"
2963 # Default the target-machine variables that were not explicitly set.
2964 if [[ x"$tm_file" = x ]]
2965 then tm_file=$cpu_type/$cpu_type.h; fi
2967 if [[ x$extra_headers = x ]]
2968 then extra_headers=; fi
2970 if [[ x"$xm_file" = x ]]
2971 then xm_file=$cpu_type/xm-$cpu_type.h; fi
2973 if [[ x$md_file = x ]]
2974 then md_file=$cpu_type/$cpu_type.md; fi
2976 if [[ x$out_file = x ]]
2977 then out_file=$cpu_type/$cpu_type.c; fi
2979 if [[ x"$tmake_file" = x ]]
2980 then tmake_file=$cpu_type/t-$cpu_type
2983 if [[ x$float_format = x ]]
2984 then float_format=i64
2987 if [[ x$enable_haifa = x ]]
2990 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-* | m32r*-*)
2995 # Say what files are being used for the output code and MD file.
2996 echo "Using \`$srcdir/config/$out_file' to output insns."
2997 echo "Using \`$srcdir/config/$md_file' as machine description file."
3000 for f in $tm_file; do
3003 if [[ $count = ax ]]; then
3004 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3006 echo "Using the following target machine macro files:"
3007 for f in $tm_file; do
3008 echo " $srcdir/config/$f"
3013 for f in $host_xm_file; do
3016 if [[ $count = ax ]]; then
3017 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3019 echo "Using the following host machine macro files:"
3020 for f in $host_xm_file; do
3021 echo " $srcdir/config/$f"
3025 if [[ "$host_xm_file" != "$build_xm_file" ]]; then
3027 for f in $build_xm_file; do
3030 if [[ $count = ax ]]; then
3031 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3033 echo "Using the following build machine macro files:"
3034 for f in $build_xm_file; do
3035 echo " $srcdir/config/$f"
3040 if [[ x$thread_file = x ]]; then
3041 if [[ x$target_thread_file != x ]]; then
3042 thread_file=$target_thread_file
3044 thread_file='single'
3048 # Set up the header files.
3049 # $links is the list of header files to create.
3050 # $vars is the list of shell variables with file names to include.
3051 # auto-host.h is the file containing items generated by autoconf and is
3052 # the first file included by config.h.
3054 host_xm_file="auto-host.h ${host_xm_file}"
3056 # If host=build, it is correct to have hconfig include auto-host.h
3057 # as well. If host!=build, we are in error and need to do more
3058 # work to find out the build config parameters.
3059 if [[ x$host = x$build ]]
3061 build_xm_file="auto-host.h ${build_xm_file}"
3063 # We create a subdir, then run autoconf in the subdir.
3064 # To prevent recursion we set host and build for the new
3065 # invocation of configure to the build for this invocation
3072 /*) realsrcdir=${srcdir};;
3073 *) realsrcdir=../${srcdir};;
3075 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3076 --target=$target --host=$build --build=$build
3078 # We just finished tests for the build machine, so rename
3079 # the file auto-build.h in the gcc directory.
3080 mv auto-host.h ../auto-build.h
3083 build_xm_file="auto-build.h ${build_xm_file}"
3086 vars="host_xm_file tm_file xm_file build_xm_file"
3087 links="config.h tm.h tconfig.h hconfig.h"
3088 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3091 if [[ -f config.status ]]; then mv -f config.status config.bak; fi
3094 while [[ -n "$vars" ]]
3096 set $vars; var=$1; shift; vars=$*
3097 set $links; link=$1; shift; links=$*
3098 set $defines; define=$1; shift; defines=$*
3102 # Define TARGET_CPU_DEFAULT if the system wants one.
3103 # This substitutes for lots of *.h files.
3104 if [[ "$target_cpu_default" != "" -a $link = tm.h ]]
3106 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3109 for file in `eval echo '$'$var`; do
3110 echo "#include \"$file\"" >>$link
3113 for def in `eval echo '$'$define`; do
3114 echo "#ifndef $def" >>$link
3115 echo "#define $def" >>$link
3116 echo "#endif" >>$link
3120 # Truncate the target if necessary
3121 if [[ x$host_truncate_target != x ]]; then
3122 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3125 # Get the version number from the toplevel
3126 version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
3128 # Get an absolute path to the GCC top-level source directory
3134 # Conditionalize the makefile for this host machine.
3135 # Make-host contains the concatenation of all host makefile fragments
3136 # [there can be more than one]. This file is built by configure.frag.
3137 host_overrides=Make-host
3138 dep_host_xmake_file=
3139 for f in .. ${host_xmake_file}
3141 if [[ -f ${srcdir}/config/$f ]]
3143 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3147 # Conditionalize the makefile for this target machine.
3148 # Make-target contains the concatenation of all host makefile fragments
3149 # [there can be more than one]. This file is built by configure.frag.
3150 target_overrides=Make-target
3152 for f in .. ${tmake_file}
3154 if [[ -f ${srcdir}/config/$f ]]
3156 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3160 # If the host doesn't support symlinks, modify CC in
3161 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3162 # Otherwise, we can use "CC=$(CC)".
3164 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3166 cc_set_by_configure="\$(CC)"
3167 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3170 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3172 symbolic_link="cp -p"
3176 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3177 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3181 out_object_file=`basename $out_file .c`.o
3184 for f in $tm_file; do
3185 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3189 for f in $host_xm_file; do
3190 if test $f != "auto-host.h"; then
3191 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3193 host_xm_file_list="${host_xm_file_list} auto-host.h"
3198 for f in $build_xm_file; do
3199 if test $f != "auto-build.h"; then
3200 if test $f != "auto-host.h"; then
3201 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3203 build_xm_file_list="${build_xm_file_list} auto-host.h"
3206 build_xm_file_list="${build_xm_file_list} auto-build.h"
3210 # Define macro CROSS_COMPILE in compilation
3211 # if this is a cross-compiler.
3212 # Also use all.cross instead of all.internal
3213 # and add cross-make to Makefile.
3214 cross_overrides="/dev/null"
3215 if [[ x$host != x$target ]]
3217 cross_defines="CROSS=-DCROSS_COMPILE"
3218 cross_overrides="${topdir}/cross-make"
3221 # When building gcc with a cross-compiler, we need to fix a few things.
3222 # This must come after cross-make as we want all.build to override
3224 build_overrides="/dev/null"
3225 if [[ x$build != x$host ]]
3227 build_overrides="${topdir}/build-make"
3230 # Expand extra_headers to include complete path.
3231 # This substitutes for lots of t-* files.
3233 if [[ "x$extra_headers" = x ]]
3236 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3237 for file in $extra_headers;
3239 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3243 # Add a definition of USE_COLLECT2 if system wants one.
3244 # Also tell toplev.c what to do.
3245 # This substitutes for lots of t-* files.
3246 if [[ x$use_collect2 = x ]]
3251 will_use_collect2="collect2"
3252 maybe_use_collect2="-DUSE_COLLECT2"
3256 # Set MD_DEPS if the real md file is in md.pre-cpp.
3257 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3258 # for line oriented comments, so we must always use a GNU cpp. If
3259 # building gcc with a cross compiler, use the cross compiler just
3260 # built. Otherwise, we can use the cpp just built.
3262 if [[ "x$md_cppflags" = x ]]
3264 md_file_sub=$srcdir/config/$md_file
3269 # If we have gas in the build tree, make a link to it.
3270 if [[ -f ../gas/Makefile ]]; then
3271 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3274 # If we have nm in the build tree, make a link to it.
3275 if [[ -f ../binutils/Makefile ]]; then
3276 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3279 # If we have ld in the build tree, make a link to it.
3280 if [[ -f ../ld/Makefile ]]; then
3281 # if [[ x$use_collect2 = x ]]; then
3282 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3284 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3288 # Figure out what assembler alignment features are present.
3289 AC_MSG_CHECKING(assembler alignment features)
3291 gcc_cv_as_alignment_features=
3292 if [[ -x as$host_exeext ]]; then
3293 # Build using assembler in the current directory.
3294 gcc_cv_as=./as$host_exeext
3295 elif [[ -f $srcdir/../gas/configure.in ]]; then
3296 # Single tree build which includes gas.
3297 for f in $srcdir/../gas/configure.in $srcdir/../gas/Makefile.in
3299 gcc_cv_gas_version=`grep '^VERSION=[[0-9]]*\.[[0-9]]*' $f`
3300 if [[ x$gcc_cv_gas_version != x ]]; then
3304 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([[0-9]]*\)"`
3305 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[[0-9]]*\.\([[0-9]]*\)"`
3306 # Gas version 2.8 and later support specifying the maximum
3307 # bytes to skip when using .p2align.
3308 if [[ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]]; then
3309 gcc_cv_as_alignment_features=".p2align including maximum skip"
3310 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3312 elif [[ x$host = x$target ]]; then
3314 gcc_cv_as=as$host_exeext
3316 if [[ x$gcc_cv_as != x ]]; then
3317 # Check if specifying the maximum bytes to skip when
3318 # using .p2align is supported.
3319 echo ".p2align 4,,7" > conftest.s
3320 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3321 gcc_cv_as_alignment_features=".p2align including maximum skip"
3322 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3324 rm -f conftest.s conftest.o
3326 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3328 # Figure out what language subdirectories are present.
3330 for lang in ${srcdir}/*/config-lang.in ..
3334 # The odd quoting in the next line works around
3335 # an apparent bug in bash 1.12 on linux.
3336 ${srcdir}/[[*]]/config-lang.in) ;;
3337 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
3341 # Make gthr-default.h if we have a thread file.
3343 if [[ $thread_file != single ]]; then
3344 rm -f gthr-default.h
3345 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3346 gthread_flags=-DHAVE_GTHR_DEFAULT
3348 AC_SUBST(gthread_flags)
3350 # Make empty files to contain the specs and options for each language.
3351 # Then add #include lines to for a compiler that has specs and/or options.
3355 rm -f specs.h options.h
3356 touch specs.h options.h
3357 for subdir in . $subdirs
3359 if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
3360 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3361 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3363 if [[ -f $srcdir/$subdir/lang-options.h ]]; then
3364 echo "#include \"$subdir/lang-options.h\"" >>options.h
3365 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3369 # These (without "all_") are set in each config-lang.in.
3370 # `language' must be a single word so is spelled singularly.
3376 all_outputs=Makefile
3377 # List of language makefile fragments.
3382 # Add the language fragments.
3383 # Languages are added via two mechanisms. Some information must be
3384 # recorded in makefile variables, these are defined in config-lang.in.
3385 # We accumulate them and plug them into the main Makefile.
3386 # The other mechanism is a set of hooks for each of the main targets
3387 # like `clean', `install', etc.
3389 language_fragments="Make-lang"
3390 language_hooks="Make-hooks"
3393 for s in .. $subdirs
3405 . ${srcdir}/$s/config-lang.in
3406 if [[ "x$language" = x ]]
3408 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3411 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3412 all_languages="$all_languages $language"
3413 if [[ "x$boot_language" = xyes ]]
3415 all_boot_languages="$all_boot_languages $language"
3417 all_compilers="$all_compilers $compilers"
3418 all_stagestuff="$all_stagestuff $stagestuff"
3419 all_diff_excludes="$all_diff_excludes $diff_excludes"
3420 all_headers="$all_headers $headers"
3421 all_outputs="$all_outputs $outputs"
3422 if [[ x$outputs = x ]]
3424 oldstyle_subdirs="$oldstyle_subdirs $s"
3426 all_lib2funcs="$all_lib2funcs $lib2funcs"
3430 # Since we can't use `::' targets, we link each language in
3431 # with a set of hooks, reached indirectly via lang.${target}.
3435 target_list="all.build all.cross start.encap rest.encap \
3437 install-normal install-common install-info install-man \
3439 mostlyclean clean distclean extraclean maintainer-clean \
3440 stage1 stage2 stage3 stage4"
3441 for t in $target_list
3444 for l in .. $all_languages
3446 if [[ $l != ".." ]]; then
3450 echo "lang.$t: $x" >> Make-hooks
3453 # If we're not building in srcdir, create .gdbinit.
3455 if [[ ! -f Makefile.in ]]; then
3456 echo "dir ." > .gdbinit
3457 echo "dir ${srcdir}" >> .gdbinit
3458 if [[ x$gdb_needs_out_file_path = xyes ]]
3460 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3462 if [[ "x$subdirs" != x ]]; then
3465 echo "dir ${srcdir}/$s" >> .gdbinit
3468 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3471 # Define variables host_canonical and build_canonical
3472 # because some Cygnus local changes in the Makefile depend on them.
3473 build_canonical=${build}
3474 host_canonical=${host}
3476 if [[ "${host}" != "${target}" ]] ; then
3477 target_subdir=${target}/
3479 AC_SUBST(build_canonical)
3480 AC_SUBST(host_canonical)
3481 AC_SUBST(target_subdir)
3483 # If this is using newlib, then define inhibit_libc in
3484 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3485 # libgcc.a, but that's OK because newib should have its own version of
3488 if [[ x$with_newlib = xyes ]]; then
3489 inhibit_libc=-Dinhibit_libc
3491 AC_SUBST(inhibit_libc)
3493 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3496 if [[ x$enable_haifa = xyes ]]; then
3497 echo "Using the Haifa scheduler."
3499 sched_cflags=-DHAIFA
3501 AC_SUBST(sched_prefix)
3502 AC_SUBST(sched_cflags)
3503 if [[ x$enable_haifa != x ]]; then
3504 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3505 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3506 if [[ -f $x ]]; then
3513 # Nothing to do for FLOAT_H, float_format already handled.
3517 # Process the language and host/target makefile fragments.
3518 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3520 # Substitute configuration variables
3522 AC_SUBST(all_languages)
3523 AC_SUBST(all_boot_languages)
3524 AC_SUBST(all_compilers)
3525 AC_SUBST(all_lang_makefiles)
3526 AC_SUBST(all_stagestuff)
3527 AC_SUBST(all_diff_excludes)
3528 AC_SUBST(all_lib2funcs)
3529 AC_SUBST(all_headers)
3531 AC_SUBST(extra_passes)
3532 AC_SUBST(extra_programs)
3533 AC_SUBST(extra_parts)
3534 AC_SUBST(extra_c_objs)
3535 AC_SUBST(extra_cxx_objs)
3536 AC_SUBST(extra_c_flags)
3537 AC_SUBST(extra_objs)
3538 AC_SUBST(host_extra_gcc_objs)
3539 AC_SUBST(extra_headers_list)
3540 AC_SUBST(dep_host_xmake_file)
3541 AC_SUBST(dep_tmake_file)
3543 AC_SUBST(out_object_file)
3545 AC_SUBST(tm_file_list)
3546 AC_SUBST(build_xm_file_list)
3547 AC_SUBST(host_xm_file_list)
3548 AC_SUBST(lang_specs_files)
3549 AC_SUBST(lang_options_files)
3550 AC_SUBST(thread_file)
3552 AC_SUBST(local_prefix)
3553 AC_SUBST(gxx_include_dir)
3554 AC_SUBST(fixincludes)
3555 AC_SUBST(build_install_headers_dir)
3556 AC_SUBST(build_exeext)
3557 AC_SUBST(host_exeext)
3558 AC_SUBST(float_format)
3559 AC_SUBST(will_use_collect2)
3560 AC_SUBST(maybe_use_collect2)
3561 AC_SUBST(cc_set_by_configure)
3562 AC_SUBST(stage_prefix_set_by_configure)
3564 AC_SUBST(symbolic_link)
3566 AC_SUBST_FILE(target_overrides)
3567 AC_SUBST_FILE(host_overrides)
3568 AC_SUBST(cross_defines)
3569 AC_SUBST_FILE(cross_overrides)
3570 AC_SUBST_FILE(build_overrides)
3571 AC_SUBST_FILE(language_fragments)
3572 AC_SUBST_FILE(language_hooks)
3574 # Echo that links are built
3575 if [[ x$host = x$target ]]
3583 if [[ x$host != x$build ]]
3585 str3=" on a $build system"
3588 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3593 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3595 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3597 echo " ${str2}${str3}." 1>&2
3600 # Truncate the target if necessary
3601 if [[ x$host_truncate_target != x ]]; then
3602 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3605 # Configure the subdirectories
3606 # AC_CONFIG_SUBDIRS($subdirs)
3608 # Create the Makefile
3609 # and configure language subdirectories
3610 AC_OUTPUT($all_outputs,
3612 . $srcdir/configure.lang
3613 case x$CONFIG_HEADERS in
3614 xauto-host.h:config.in)
3617 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3618 # bootstrapping and the installation procedure can still use
3619 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3620 # FLAGS_TO_PASS has been modified to solve the problem there.
3621 # This is virtually a duplicate of what happens in configure.lang; we do
3622 # an extra check to make sure this only happens if ln -s can be used.
3623 if [[ "$symbolic_link" = "ln -s" ]]; then
3624 for d in .. ${subdirs} ; do
3625 if [[ $d != .. ]]; then
3628 for t in stage1 stage2 stage3 stage4 include
3631 $symbolic_link ../$t $t 2>/dev/null
3642 target_alias='${target_alias}'
3644 subdirs='${subdirs}'
3645 oldstyle_subdirs='${oldstyle_subdirs}'
3646 symbolic_link='${symbolic_link}'
3647 program_transform_set='${program_transform_set}'
3648 program_transform_name='${program_transform_name}'
3649 dep_host_xmake_file='${dep_host_xmake_file}'
3650 host_xmake_file='${host_xmake_file}'
3651 dep_tmake_file='${dep_tmake_file}'
3652 tmake_file='${tmake_file}'
3653 thread_file='${thread_file}'
3654 version='${version}'
3655 local_prefix='${local_prefix}'
3656 build_install_headers_dir='${build_install_headers_dir}'
3657 build_exeext='${build_exeext}'
3658 host_exeext='${host_exeext}'
3659 out_file='${out_file}'
3660 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3661 SET_MAKE='${SET_MAKE}'
3662 target_list='${target_list}'
3663 target_overrides='${target_overrides}'
3664 host_overrides='${host_overrides}'
3665 cross_defines='${cross_defines}'
3666 cross_overrides='${cross_overrides}'
3667 build_overrides='${build_overrides}'