OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
1 # GCC build-, host- and target-specific configuration file.
2 # Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 #This file is part of GNU CC.
5
6 #GNU CC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 2, or (at your option)
9 #any later version.
10
11 #GNU CC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #GNU General Public License for more details.
15
16 #You should have received a copy of the GNU General Public License
17 #along with GNU CC; see the file COPYING.  If not, write to
18 #the Free Software Foundation, 59 Temple Place - Suite 330,
19 #Boston, MA 02111-1307, USA.
20
21 # This is the GCC build-, host- and target-specific configuration file
22 # where a configuration type, as recognized and generated by config.bfd,
23 # is mapped to different system-specific definitions and files.  This is
24 # invoked by the autoconf-generated configure script, called for build,
25 # host and target in that order, setting ${machine} to each.  Putting it
26 # in a separate shell file lets us skip running autoconf when modifying
27 # build-, host- and target-specific information.
28
29 # This file switches on the shell variable ${machine}, and also uses the
30 # following shell variables:
31 #
32 #  with_*               Various variables as set by configure.
33 #
34 #  enable_threads_flag  Either the name, yes or no depending on whether
35 #                       threads support was requested.
36 #
37 #  gas_flag             Either yes or no depending on whether GNU as was
38 #                       requested.
39 #
40 #  gnu_ld_flag          Either yes or no depending on whether GNU ld was
41 #                       requested.
42
43 # This file sets the following shell variables for use by the
44 # autoconf-generated configure script:
45 #
46 #  cpu_type             The name of the cpu, if different from machine.
47 #
48 #  tm_file              A list of target macro files, if different from
49 #                       "$cpu_type/$cpu_type.h".
50 #
51 #  tm_p_file            Location of file with declarations for functions
52 #                       in $out_file.
53 #
54 #  out_file             The name of the machine description C support
55 #                       file, if different from "$cpu_type/$cpu_type.c".
56 #
57 #  md_file              The name of the machine-description file, if
58 #                       different from "$cpu_type/$cpu_type.md".
59 #
60 #  tmake_file           A list of machine-description-specific
61 #                       makefile-fragments, if different from
62 #                       "$cpu_type/t-$cpu_type".
63 #
64 #  float_format         Set to the symbolic name for the floating-point
65 #                       formats used for this machine, if different from
66 #                       "i64".  Used to derive a header file name to
67 #                       include, like "vax" for "float-vax.h".  If no such
68 #                       file is wanted, set to "none".
69 #
70 #  extra_objs           List of extra objects that should be linked into
71 #                       the compiler proper (cc1, cc1obj, cc1plus)
72 #                       depending on target.
73 #
74 #  extra_headers        List of used header files from the directory
75 #                       ginclude.
76 #
77 #  host_xmake_file      List of host-specific makefile-fragments.
78 #
79 #  extra_passes         List of extra executables compiled for this target
80 #                       machine, used for compiling from source to object.
81 #
82 #  extra_parts          List of extra object files that should be compiled
83 #                       for this target machine.
84 #
85 #  extra_programs       Like extra_passes, but these are used when linking.
86 #
87 #  host_extra_objs      List of extra host-dependant objects that should
88 #                       be linked into the compiler proper.
89 #
90 #  host_extra_gcc_objs  List of extra host-dependant objects that should
91 #                       be linked into the gcc driver.
92 #
93 #  c_target_objs        List of extra target-dependant objects that be
94 #                       linked into the C compiler only.
95 #  
96 #  cxx_target_objs      List of extra target-dependant objects that be
97 #                       linked into the C++ compiler only.
98 #  
99 #  build_xm_defines     List of macros to define when compiling for the
100 #                       build machine.
101 #
102 #  build_xm_file        List of files to include when compiling for the
103 #                       build machine.
104 #
105 #  host_xm_defines      List of macros to define when compiling for the
106 #                       host machine.
107 #
108 #  host_xm_file         List of files to include when compiling for the
109 #                       host machine.
110 #
111 #  xm_defines           List of macros to define when compiling for the
112 #                       target machine.
113 #
114 #  xm_file              List of files to include when compiling for the
115 #                       target machine.
116 #
117 #  use_collect2         Set to yes or no, depending on whether collect2
118 #                       will be used.
119 #
120 #  target_cpu_default   Set to override the default target model.
121 #
122 #  build_install_headers_dir
123 #                       Target to use when installing header files.
124 #
125 #  host_truncate_target
126 #                       Non-empty if the target name should be truncated
127 #                       on this host, due to filename length issues.
128 #
129 #  gdb_needs_out_file_path
130 #                       Set to yes if gdb needs a dir command with
131 #                       `dirname $out_file`.
132 #
133 #  build_exeext         Set to the suffix, if the build machine requires
134 #                       executables to have a file name suffix.
135 #
136 #  host_exeext          Set to the suffix, if the host machine requires
137 #                       executables to have a file name suffix.
138 #
139 #  thread_file          Set to control which thread package to use.
140 #
141 #  gas                  Set to yes or no depending on whether the target
142 #                       system normally uses GNU as.
143
144 # The following variables are used in each case-construct to build up the
145 # outgoing variables:
146 #
147 #  xmake_file           Makefile-fragment when this system is as a host,
148 #                       for host_xmake_file.
149 #
150 #  extra_host_objs      List of extra objects that should be linked into
151 #                       the compiler proper when this system is a host,
152 #                       for host_extra_objs.
153 #
154 #  install_headers_dir  Makefile-target for how the header file directory
155 #                       is installed, when this system is a build system,
156 #                       for build_install_headers_dir.
157 #
158 #  truncate_target      Non-empty if the target name should be truncated
159 #                       when this system is a host, due to filename length
160 #                       issues.  For host_truncate_target.
161 #
162 #  exeext               The suffix for executables on this system.
163 #
164 #  gnu_ld               Set to yes or no depending on whether the target
165 #                       system normally uses GNU ld.
166
167 out_file=
168 xmake_file=
169 tmake_file=
170 extra_headers=
171 extra_passes=
172 extra_parts=
173 extra_programs=
174 extra_objs=
175 extra_host_objs=
176 extra_gcc_objs=
177 c_target_objs=
178 cxx_target_objs=
179 xm_defines=
180 float_format=
181 # Set this to force installation and use of collect2.
182 use_collect2=
183 # Set this to override the default target model.
184 target_cpu_default=
185 # Set this to control how the header file directory is installed.
186 install_headers_dir=install-headers-tar
187 # Set this if directory names should be truncated to 14 characters.
188 truncate_target=
189 # Set this if gdb needs a dir command with `dirname $out_file`
190 gdb_needs_out_file_path=
191 # Set this if the build machine requires executables to have a
192 # file name suffix.
193 exeext=
194 # Set this to control which thread package will be used.
195 thread_file=
196 # Reinitialize these from the flag values every loop pass, since some
197 # configure entries modify them.
198 gas="$gas_flag"
199 gnu_ld="$gnu_ld_flag"
200 enable_threads=$enable_threads_flag
201
202 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
203 # updated in each machine entry.
204 tm_p_file=
205 cpu_type=`echo $machine | sed 's/-.*$//'`
206 case $machine in
207 alpha*-*-*)
208         cpu_type=alpha
209         ;;
210 strongarm*-*-*)
211         cpu_type=arm
212         ;;
213 arm*-*-*)
214         cpu_type=arm
215         ;;
216 xscale-*-*)
217         cpu_type=arm
218         ;;
219 c*-convex-*)
220         cpu_type=convex
221         ;;
222 i[34567]86-*-*)
223         cpu_type=i386
224         ;;
225 hppa*-*-*)
226         cpu_type=pa
227         ;;
228 m68000-*-*)
229         cpu_type=m68k
230         ;;
231 mips*-*-*)
232         cpu_type=mips
233         ;;
234 pj*-*-*)
235         cpu_type=pj
236         ;;
237 powerpc*-*-*)
238         cpu_type=rs6000
239         ;;
240 sparc*-*-*)
241         cpu_type=sparc
242         ;;
243 esac
244
245 tm_file=${cpu_type}/${cpu_type}.h
246 xm_file=${cpu_type}/xm-${cpu_type}.h
247 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
248 then
249         tm_p_file=${cpu_type}/${cpu_type}-protos.h;
250 fi
251 # On a.out targets, we need to use collect2.
252 case $machine in
253 *-*-*aout*)
254         use_collect2=yes
255         ;;
256 esac    
257
258 # Common parts for GNU/Linux, GNU/Hurd and OpenBSD systems.
259 case $machine in
260 *-*-linux*)
261         xm_defines="POSIX"
262         ;;
263 *-*-gnu*)
264         # On the Hurd, the setup is just about the same on
265         # each different CPU.  The specific machines that we
266         # support are matched above and just set $cpu_type.
267         xm_file="xm-gnu.h ${xm_file}"
268         tm_file=${cpu_type}/gnu.h
269         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
270         # GNU always uses ELF.
271         elf=yes
272         # GNU tools are the only tools.
273         gnu_ld=yes
274         gas=yes
275         # These details are the same as for Linux.
276         xmake_file=x-linux
277         # But here we need a little extra magic.
278         tmake_file="t-linux t-gnu"
279         ;;
280 *-*-openbsd*)
281         tm_file=${cpu_type}/openbsd.h
282         tmake_file="t-libc-ok t-openbsd"
283         # avoid surprises, always provide an xm-openbsd file 
284         xm_file=${cpu_type}/xm-openbsd.h
285         # don't depend on processor x-fragments as well
286         xmake_file=none
287         if test x$enable_threads = xyes; then
288                 thread_file='posix'
289                 tmake_file="${tmake_file} t-openbsd-thread"
290         fi
291         ;;
292 esac
293
294 case $machine in
295 # Support site-specific machine types.
296 *local*)
297         cpu_type=`echo $machine | sed -e 's/-.*//'`
298         rest=`echo $machine | sed -e "s/$cpu_type-//"`
299         xm_file=${cpu_type}/xm-$rest.h
300         tm_file=${cpu_type}/$rest.h
301         if test -f $srcdir/config/${cpu_type}/x-$rest; \
302         then xmake_file=${cpu_type}/x-$rest; \
303         else true; \
304         fi
305         if test -f $srcdir/config/${cpu_type}/t-$rest; \
306         then tmake_file=${cpu_type}/t-$rest; \
307         else true; \
308         fi
309         ;;
310 1750a-*-*)
311         ;;
312 a29k-*-bsd* | a29k-*-sym1*)
313         tm_file="${tm_file} a29k/unix.h"
314         xm_defines=USG
315         xmake_file=a29k/x-unix
316         use_collect2=yes
317         ;;
318 a29k-*-udi | a29k-*-coff)
319         tm_file="${tm_file} dbxcoff.h a29k/udi.h"
320         tmake_file=a29k/t-a29kbare
321         ;;
322 a29k*-*-rtems*)
323         tm_file=a29k/rtems.h
324         tmake_file="a29k/t-a29kbare t-rtems"
325         if test x$enable_threads = xyes; then
326           thread_file='rtems'
327         fi
328         ;;
329 a29k-wrs-vxworks*)
330         tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
331         tmake_file=a29k/t-vx29k
332         extra_parts="crtbegin.o crtend.o"
333         thread_file='vxworks'
334         ;;
335 a29k-*-*)                       # Default a29k environment.
336         use_collect2=yes
337         ;;
338 alpha-*-interix)
339         tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
340
341         # GAS + IEEE_CONFORMANT+IEEE (no inexact);
342         #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
343
344         # GAS + IEEE_CONFORMANT
345         target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
346
347         xm_file="alpha/xm-alpha-interix.h xm-interix.h"
348         xmake_file="x-interix alpha/t-pe"
349         tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
350         if test x$enable_threads = xyes ; then
351                 thread_file='posix'
352         fi
353         if test x$stabs = xyes ; then
354                 tm_file="${tm_file} dbxcoff.h"
355         fi
356         #prefix='$$INTERIX_ROOT'/usr/contrib
357         #local_prefix='$$INTERIX_ROOT'/usr/contrib
358         ;;
359 alpha*-*-linux*ecoff*)
360         tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
361         target_cpu_default="MASK_GAS"
362         tmake_file="alpha/t-alpha alpha/t-ieee"
363         gas=no
364         xmake_file=none
365         gas=yes gnu_ld=yes
366         ;;
367 alpha*-*-linux*libc1*)
368         tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
369         target_cpu_default="MASK_GAS"
370         tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
371         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
372         xmake_file=none
373         gas=yes gnu_ld=yes
374         if test x$enable_threads = xyes; then
375                 thread_file='posix'
376         fi
377         ;;
378 alpha*-*-linux*)
379         tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
380         target_cpu_default="MASK_GAS"
381         tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
382         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
383         xmake_file=none
384         gas=yes gnu_ld=yes
385         if test x$enable_threads = xyes; then
386                 thread_file='posix'
387         fi
388         ;;
389 alpha*-*-freebsd*)
390         tm_file="${tm_file} freebsd.h alpha/elf.h alpha/freebsd.h"
391         target_cpu_default="MASK_GAS"
392         tmake_file="t-freebsd alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
393         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
394         xmake_file=none
395         gas=yes gnu_ld=yes
396         stabs=yes
397         case x${enable_threads} in
398         xyes | xpthreads | xposix)
399                 thread_file='posix'
400                 tmake_file="${tmake_file} t-freebsd-thread"
401                 ;;
402         esac
403         ;;
404 alpha*-*-netbsd*)
405         tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
406         target_cpu_default="MASK_GAS"
407         tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
408         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
409         xmake_file=none
410         gas=yes gnu_ld=yes
411         ;;
412
413 alpha*-*-openbsd*)
414         # default x-alpha is only appropriate for dec-osf.
415         target_cpu_default="MASK_GAS"
416         tmake_file="alpha/t-alpha alpha/t-ieee"
417         ;;
418         
419 alpha*-dec-osf*)
420         if test x$stabs = xyes
421         then
422                 tm_file="${tm_file} dbx.h"
423         fi
424         if test x$gas != xyes
425         then
426                 extra_passes="mips-tfile mips-tdump"
427         fi
428         use_collect2=yes
429         tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
430         xmake_file=alpha/x-osf
431         case $machine in
432           *-*-osf1*)
433             tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
434             ;;
435           *-*-osf[23]*)
436             tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
437             ;;
438           *-*-osf4*)
439             tm_file="${tm_file} alpha/osf.h"
440             tmake_file="$tmake_file alpha/t-osf4"
441             # Some versions of OSF4 (specifically X4.0-9 296.7) have
442             # a broken tar, so we use cpio instead.
443             install_headers_dir=install-headers-cpio
444             ;;
445           *-*-osf5*)
446             tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
447             tmake_file="$tmake_file alpha/t-osf4"
448             ;;
449         esac
450         case $machine in
451           *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
452             target_cpu_default=MASK_SUPPORT_ARCH
453             ;;
454         esac
455         ;;
456 alpha*-*-vxworks*)
457         tm_file="${tm_file} dbx.h alpha/vxworks.h"
458         tmake_file="alpha/t-alpha alpha/t-ieee"
459         if [ x$gas != xyes ]
460         then
461                 extra_passes="mips-tfile mips-tdump"
462         fi
463         use_collect2=yes
464         thread_file='vxworks'
465         ;;
466 alpha*-*-winnt*)
467         tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
468         xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
469         tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
470         xmake_file=winnt/x-winnt
471         extra_host_objs=oldnames.o
472         extra_gcc_objs="spawnv.o oldnames.o"
473         if test x$gnu_ld != xyes
474         then
475                 extra_programs=ld.exe
476         fi
477         if test x$enable_threads = xyes; then
478                 thread_file='win32'
479         fi
480         ;;
481 alpha*-dec-vms*)
482         tm_file=alpha/vms.h
483         xm_file="${xm_file} alpha/xm-vms.h"
484         tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
485         ;;
486 arm*-*-rtems*)
487         tm_file=arm/rtems-elf.h
488         tmake_file="arm/t-arm-elf t-rtems"
489         if test x$enable_threads = xyes; then
490           thread_file='rtems'
491         fi
492         extra_parts="crtinit.o crtfini.o"
493         ;;
494 arc-*-elf*)
495         extra_parts="crtinit.o crtfini.o"
496         ;;
497 arm-*-coff* | armel-*-coff*)
498         tm_file=arm/coff.h
499         tmake_file=arm/t-arm-coff
500         ;;
501 arm-*-vxworks*)
502         tm_file=arm/vxarm.h
503         tmake_file=arm/t-arm-coff
504         thread_file='vxworks'
505         ;;
506 arm-*-riscix1.[01]*)            # Acorn RISC machine (early versions)
507         tm_file=arm/riscix1-1.h
508         use_collect2=yes
509         ;;
510 arm-*-riscix*)                  # Acorn RISC machine
511         if test x$gas = xyes
512         then
513             tm_file=arm/rix-gas.h
514         else
515             tm_file=arm/riscix.h
516         fi
517         xmake_file=arm/x-riscix
518         tmake_file=arm/t-riscix
519         use_collect2=yes
520         ;;
521 arm-semi-aout | armel-semi-aout)
522         tm_file=arm/semi.h
523         tmake_file=arm/t-semi
524         ;;
525 arm-semi-aof | armel-semi-aof)
526         tm_file=arm/semiaof.h
527         tmake_file=arm/t-semiaof
528         ;;
529 arm*-*-netbsd*)
530         tm_file=arm/netbsd.h
531         tmake_file="t-netbsd arm/t-netbsd"
532         use_collect2=yes
533         ;;
534 arm*-*-linux*oldld*)            # ARM GNU/Linux with old ELF linker
535         xm_file=arm/xm-linux.h
536         xmake_file=x-linux
537         tm_file="arm/linux-oldld.h arm/linux-elf.h"
538         case $machine in
539         armv2*-*-*)
540                 tm_file="arm/linux-elf26.h $tm_file"
541                 ;;
542         esac
543         tmake_file="t-linux arm/t-linux"
544         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
545         gnu_ld=yes
546         case x${enable_threads} in
547         x | xyes | xpthreads | xposix)
548                 thread_file='posix'
549                 ;;
550         esac
551         ;;
552 arm*-*-linux*)          # ARM GNU/Linux with ELF
553         xm_file=arm/xm-linux.h
554         xmake_file=x-linux
555         tm_file="arm/linux-elf.h"
556         case $machine in
557         armv2*-*-*)
558                 tm_file="arm/linux-elf26.h $tm_file"
559                 ;;
560         esac
561         tmake_file="t-linux arm/t-linux"
562         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
563         gnu_ld=yes
564         case x${enable_threads} in
565         x | xyes | xpthreads | xposix)
566                 thread_file='posix'
567                 ;;
568         esac
569         ;;
570 arm*-*-uclinux*)                # ARM ucLinux
571         tm_file=arm/uclinux-elf.h
572         tmake_file=arm/t-arm-elf
573         ;;
574 arm*-*-aout)
575         tm_file=arm/aout.h
576         tmake_file=arm/t-arm-aout
577         ;;
578 arm*-*-ecos-elf)
579         tm_file=arm/ecos-elf.h
580         tmake_file=arm/t-arm-elf
581         ;; 
582 arm*-*-elf)
583         tm_file=arm/unknown-elf.h
584         tmake_file=arm/t-arm-elf
585         ;;
586 arm*-*-conix*)
587         tm_file=arm/conix-elf.h
588         tmake_file=arm/t-arm-elf
589         ;;
590 arm*-*-oabi)
591         tm_file=arm/unknown-elf-oabi.h
592         tmake_file=arm/t-arm-elf
593         ;;
594 arm-*-pe*)
595         tm_file=arm/pe.h
596         tmake_file=arm/t-pe
597         extra_objs="pe.o"
598         ;;
599 avr-*-*)
600         ;;
601 c1-convex-*)                    # Convex C1
602         target_cpu_default=1
603         use_collect2=yes
604         ;;
605 c2-convex-*)                    # Convex C2
606         target_cpu_default=2
607         use_collect2=yes
608         ;;
609 c32-convex-*)
610         target_cpu_default=4
611         use_collect2=yes
612         ;;
613 c34-convex-*)
614         target_cpu_default=8
615         use_collect2=yes
616         ;;
617 c38-convex-*)
618         target_cpu_default=16           
619         use_collect2=yes
620         ;;
621 c4x-*-rtems*)
622         cpu_type=c4x
623         tmake_file="c4x/t-c4x t-rtems"
624         tm_file=c4x/rtems.h
625         if test x$enable_threads = xyes; then
626           thread_file='rtems'
627         fi
628         ;;
629 c4x-*)
630         cpu_type=c4x
631         float_format=c4x
632         tmake_file=c4x/t-c4x
633         ;;
634 clipper-intergraph-clix*)
635         tm_file="${tm_file} svr3.h clipper/clix.h"
636         xm_file=clipper/xm-clix.h
637         xmake_file=clipper/x-clix
638         extra_headers=va-clipper.h
639         extra_parts="crtbegin.o crtend.o"
640         install_headers_dir=install-headers-cpio
641         ;;
642 d30v-*)
643         float_format=i64
644         ;;
645 dsp16xx-*)
646         ;;
647 elxsi-elxsi-*)
648         use_collect2=yes
649         ;;
650 fr30-*-elf)
651         tm_file="fr30/fr30.h"
652         tmake_file=fr30/t-fr30
653         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
654         ;;
655 h8300-*-rtems*)
656         tmake_file="h8300/t-h8300 t-rtems"
657         tm_file=h8300/rtems.h
658         if test x$enable_threads = xyes; then
659           thread_file='rtems'
660         fi
661         float_format=i32
662         ;;
663 h8300-*-*)
664         float_format=i32
665         ;;
666 hppa*-*-linux*)
667         target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
668         tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
669         tmake_file="t-linux pa/t-linux"
670         extra_parts="crtbegin.o crtend.o"
671         xmake_file=none
672         gas=yes gnu_ld=yes
673         if test x$enable_threads = xyes; then
674                 thread_file='posix'
675         fi
676         ;;
677 hppa*-*-openbsd*)
678         target_cpu_default="MASK_PA_11"
679         tmake_file=pa/t-openbsd
680         ;;
681 hppa1.1-*-rtems*)
682         tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
683         xm_file=pa/xm-papro.h
684         tmake_file="pa/t-pro t-rtems"
685         if test x$enable_threads = xyes; then
686           thread_file='rtems'
687         fi
688         ;;
689 hppa1.1-*-pro*)
690         target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
691         tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
692         xm_file=pa/xm-papro.h
693         tmake_file=pa/t-pro
694         ;;
695 hppa1.1-*-osf*)
696         target_cpu_default="MASK_PA_11"
697         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
698         use_collect2=yes
699         ;;
700 hppa1.1-*-rtems*)
701         target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
702         tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
703         xm_file=pa/xm-papro.h
704         tmake_file=pa/t-pro
705         ;;
706 hppa1.0-*-osf*)
707         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
708         use_collect2=yes
709         ;;
710 hppa1.1-*-bsd*)
711         tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
712         target_cpu_default="MASK_PA_11"
713         use_collect2=yes
714         ;;
715 hppa1.0-*-bsd*)
716         tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
717         use_collect2=yes
718         ;;
719 hppa1.0-*-hpux7*)
720         tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
721         xm_file=pa/xm-pahpux.h
722         xmake_file=pa/x-pa-hpux
723         if test x$gas = xyes
724         then
725                 tm_file="${tm_file} pa/gas.h"
726         fi
727         install_headers_dir=install-headers-cpio
728         use_collect2=yes
729         ;;
730 hppa1.0-*-hpux8.0[0-2]*)
731         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
732         xm_file=pa/xm-pahpux.h
733         xmake_file=pa/x-pa-hpux
734         if test x$gas = xyes
735         then
736                 tm_file="${tm_file} pa/pa-gas.h"
737         else
738                 tm_file="pa/pa-oldas.h ${tm_file}"
739         fi
740         install_headers_dir=install-headers-cpio
741         use_collect2=yes
742         ;;
743 hppa1.1-*-hpux8.0[0-2]*)
744         target_cpu_default="MASK_PA_11"
745         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
746         xm_file=pa/xm-pahpux.h
747         xmake_file=pa/x-pa-hpux
748         if test x$gas = xyes
749         then
750                 tm_file="${tm_file} pa/pa-gas.h"
751         else
752                 tm_file="pa/pa-oldas.h ${tm_file}"
753         fi
754         install_headers_dir=install-headers-cpio
755         use_collect2=yes
756         ;;
757 hppa1.1-*-hpux8*)
758         target_cpu_default="MASK_PA_11"
759         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
760         xm_file=pa/xm-pahpux.h
761         xmake_file=pa/x-pa-hpux
762         if test x$gas = xyes
763         then
764                 tm_file="${tm_file} pa/pa-gas.h"
765         fi
766         install_headers_dir=install-headers-cpio
767         use_collect2=yes
768         ;;
769 hppa1.0-*-hpux8*)
770         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
771         xm_file=pa/xm-pahpux.h
772         xmake_file=pa/x-pa-hpux
773         if test x$gas = xyes
774         then
775                 tm_file="${tm_file} pa/pa-gas.h"
776         fi
777         install_headers_dir=install-headers-cpio
778         use_collect2=yes
779         ;;
780 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
781         target_cpu_default="MASK_PA_11"
782         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
783         float_format=i128
784         xm_file=pa/xm-pahpux.h
785         xmake_file=pa/x-pa-hpux
786         tmake_file=pa/t-pa
787         if test x$gas = xyes
788         then
789                 tm_file="${tm_file} pa/pa-gas.h"
790         fi
791         if test x$enable_threads = x; then
792             enable_threads=$have_pthread_h
793         fi
794         case x${enable_threads} in
795         xyes | xdce)
796                 tmake_file="${tmake_file} pa/t-dce-thr"
797                 ;;
798         esac
799         install_headers_dir=install-headers-cpio
800         use_collect2=yes
801         ;;
802 hppa1.0-*-hpux10*)
803         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
804         float_format=i128
805         xm_file=pa/xm-pahpux.h
806         xmake_file=pa/x-pa-hpux
807         tmake_file=pa/t-pa
808         if test x$gas = xyes
809         then
810                 tm_file="${tm_file} pa/pa-gas.h"
811         fi
812         if test x$enable_threads = x; then
813             enable_threads=$have_pthread_h
814         fi
815         case x${enable_threads} in
816         xyes | xdce)
817                 tmake_file="${tmake_file} pa/t-dce-thr"
818                 ;;
819         esac
820         install_headers_dir=install-headers-cpio
821         use_collect2=yes
822         ;;
823 hppa*64*-*-hpux11*)
824         target_cpu_default="MASK_PA_11"
825         xm_file=pa/xm-pa64hpux.h
826         xmake_file=pa/x-pa-hpux
827         tmake_file=pa/t-pa
828         tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
829         float_format=i128
830         tmake_file=pa/t-pa64
831         target_cpu_default="(MASK_PA_11|MASK_PA_20)"
832
833         if [ x$gas = xyes ]
834         then
835                 tm_file="${tm_file} pa/pa-gas.h"
836         fi
837 #       if [ x$enable_threads = x ]; then
838 #           enable_threads=$have_pthread_h
839 #       fi
840 #       if [ x$enable_threads = xyes ]; then
841 #               thread_file='dce'
842 #               tmake_file="${tmake_file} pa/t-dce-thr"
843 #       fi
844         install_headers_dir=install-headers-cpio
845         use_collect2=yes
846         ;;
847 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
848         target_cpu_default="MASK_PA_11"
849         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
850         float_format=i128
851         xm_file=pa/xm-pahpux.h
852         xmake_file=pa/x-pa-hpux
853         tmake_file=pa/t-pa
854         if test x$gas = xyes
855         then
856                 tm_file="${tm_file} pa/pa-gas.h"
857         fi
858 #       if test x$enable_threads = x; then
859 #           enable_threads=$have_pthread_h
860 #       fi
861 #       if test x$enable_threads = xyes; then
862 #               thread_file='dce'
863 #               tmake_file="${tmake_file} pa/t-dce-thr"
864 #       fi
865         install_headers_dir=install-headers-cpio
866         use_collect2=yes
867         ;;
868 hppa1.0-*-hpux11*)
869         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
870         float_format=i128
871         xm_file=pa/xm-pahpux.h
872         xmake_file=pa/x-pa-hpux
873         if test x$gas = xyes
874         then
875                 tm_file="${tm_file} pa/pa-gas.h"
876         fi
877 #       if test x$enable_threads = x; then
878 #           enable_threads=$have_pthread_h
879 #       fi
880 #       if test x$enable_threads = xyes; then
881 #               thread_file='dce'
882 #               tmake_file="${tmake_file} pa/t-dce-thr"
883 #       fi
884         install_headers_dir=install-headers-cpio
885         use_collect2=yes
886         ;;
887 hppa1.1-*-hpux* | hppa2*-*-hpux*)
888         target_cpu_default="MASK_PA_11"
889         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
890         xm_file=pa/xm-pahpux.h
891         xmake_file=pa/x-pa-hpux
892         if test x$gas = xyes
893         then
894                 tm_file="${tm_file} pa/pa-gas.h"
895         fi
896         install_headers_dir=install-headers-cpio
897         use_collect2=yes
898         ;;
899 hppa1.0-*-hpux*)
900         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
901         xm_file=pa/xm-pahpux.h
902         xmake_file=pa/x-pa-hpux
903         if test x$gas = xyes
904         then
905                 tm_file="${tm_file} pa/pa-gas.h"
906         fi
907         install_headers_dir=install-headers-cpio
908         use_collect2=yes
909         ;;
910 hppa1.1-*-hiux* | hppa2*-*-hiux*)
911         target_cpu_default="MASK_PA_11"
912         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
913         xm_file=pa/xm-pahpux.h
914         xmake_file=pa/x-pa-hpux
915         if test x$gas = xyes
916         then
917                 tm_file="${tm_file} pa/pa-gas.h"
918         fi
919         install_headers_dir=install-headers-cpio
920         use_collect2=yes
921         ;;
922 hppa1.0-*-hiux*)
923         tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
924         xm_file=pa/xm-pahpux.h
925         xmake_file=pa/x-pa-hpux
926         if test x$gas = xyes
927         then
928                 tm_file="${tm_file} pa/pa-gas.h"
929         fi
930         install_headers_dir=install-headers-cpio
931         use_collect2=yes
932         ;;
933 hppa*-*-lites*)
934         tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
935         target_cpu_default="MASK_PA_11"
936         use_collect2=yes
937         ;;
938 hppa*-*-mpeix*)
939         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
940         xm_file=pa/xm-pampeix.h 
941         xmake_file=pa/x-pa-mpeix 
942         echo "You must use gas. Assuming it is already installed." 
943         install_headers_dir=install-headers-tar
944         use_collect2=yes 
945         ;; 
946 i370-*-opened*)                  # IBM 360/370/390 Architecture
947         xm_file=i370/xm-oe.h
948         tm_file=i370/oe.h
949         xmake_file=i370/x-oe
950         tmake_file=i370/t-oe
951         ;;
952 i370-*-mvs*)
953         xm_file=i370/xm-mvs.h
954         tm_file=i370/mvs.h
955         tmake_file=i370/t-mvs
956         ;;
957 i370-*-linux*)
958         xm_file="xm-linux.h i370/xm-linux.h"
959         xmake_file=x-linux
960         tm_file="i370/linux.h ${tm_file}"
961         tmake_file="t-linux i370/t-linux"
962         # broken_install=yes
963         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
964         # extra_parts="crtbegin.o crtend.o"
965         gnu_ld=yes
966         gas=yes
967         elf=yes
968         if test x$enable_threads = xyes; then
969                 thread_file='posix'
970         fi
971         ;;
972 i[34567]86-*-elf*)
973         xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
974         tm_file=i386/i386elf.h
975         tmake_file=i386/t-i386elf
976         xmake_file=x-svr4
977         ;;
978 i[34567]86-ibm-aix*)            # IBM PS/2 running AIX
979         if test x$gas = xyes
980         then
981                 tm_file=i386/aix386.h
982                 extra_parts="crtbegin.o crtend.o"
983                 tmake_file=i386/t-crtstuff
984         else
985                 tm_file=i386/aix386ng.h
986                 use_collect2=yes
987         fi
988         xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
989         xm_defines=USG
990         xmake_file=i386/x-aix
991         ;;
992 i[34567]86-ncr-sysv4*)          # NCR 3000 - ix86 running system V.4
993         xm_file="xm-alloca.h ${xm_file}"
994         xm_defines="USG POSIX SMALL_ARG_MAX"
995         xmake_file=i386/x-ncr3000
996         if test x$stabs = xyes -a x$gas = xyes
997         then
998                 tm_file=i386/sysv4gdb.h
999         else
1000                 tm_file=i386/sysv4.h
1001         fi
1002         extra_parts="crtbegin.o crtend.o"
1003         tmake_file=i386/t-crtpic
1004         ;;
1005 i[34567]86-next-*)
1006         tm_file=i386/next.h
1007         xm_file=i386/xm-next.h
1008         tmake_file=i386/t-next
1009         xmake_file=i386/x-next
1010         extra_objs=nextstep.o
1011         extra_parts="crtbegin.o crtend.o"
1012         if test x$enable_threads = xyes; then
1013                 thread_file='mach'
1014         fi
1015         ;;
1016 i[34567]86-*-netware)           # Intel 80386's running netware
1017         tm_file=i386/netware.h
1018         tmake_file=i386/t-netware
1019         ;;
1020 i[34567]86-sequent-bsd*)                # 80386 from Sequent
1021         use_collect2=yes
1022         if test x$gas = xyes
1023         then
1024                 tm_file=i386/seq-gas.h
1025         else
1026                 tm_file=i386/sequent.h
1027         fi
1028         ;;
1029 i[34567]86-sequent-ptx1*)
1030         xm_defines="USG SVR3"
1031         xmake_file=i386/x-sysv3
1032         tm_file=i386/seq-sysv3.h
1033         tmake_file=i386/t-crtstuff
1034         extra_parts="crtbegin.o crtend.o"
1035         install_headers_dir=install-headers-cpio
1036         ;;
1037 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1038         xm_defines="USG SVR3"
1039         xmake_file=i386/x-sysv3
1040         tm_file=i386/seq2-sysv3.h
1041         tmake_file=i386/t-crtstuff
1042         extra_parts="crtbegin.o crtend.o"
1043         install_headers_dir=install-headers-cpio
1044         ;;
1045 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1046         xm_file="xm-alloca.h ${xm_file}"
1047         xm_defines="USG POSIX SMALL_ARG_MAX"
1048         xmake_file=x-svr4
1049         tm_file=i386/ptx4-i.h
1050         tmake_file=t-svr4
1051         extra_parts="crtbegin.o crtend.o"
1052         install_headers_dir=install-headers-cpio
1053         ;;
1054 i386-sun-sunos*)                # Sun i386 roadrunner
1055         xm_defines=USG
1056         tm_file=i386/sun.h
1057         use_collect2=yes
1058         ;;
1059 i[34567]86-wrs-vxworks*)
1060         tm_file=i386/vxi386.h
1061         tmake_file=i386/t-i386bare
1062         thread_file='vxworks'
1063         ;;
1064 i[34567]86-*-aout*)
1065         tm_file=i386/i386-aout.h
1066         tmake_file=i386/t-i386bare
1067         ;;
1068 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1069         xm_file=i386/xm-beos.h
1070         tmake_file='i386/t-beos i386/t-crtpic'
1071         tm_file=i386/beos-elf.h
1072         xmake_file=i386/x-beos
1073         extra_parts='crtbegin.o crtend.o'
1074         ;;
1075 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1076         tm_file=i386/bsd386.h
1077 #       tmake_file=t-libc-ok
1078         ;;
1079 i[34567]86-*-bsd*)
1080         tm_file=i386/386bsd.h
1081 #       tmake_file=t-libc-ok
1082 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1083 #       use_collect2=yes
1084         ;;
1085 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1086         tm_file="i386/freebsd-aout.h i386/perform.h"
1087         tmake_file=t-freebsd
1088         ;;
1089 i[34567]86-*-freebsd*)
1090         tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h"
1091         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1092         tmake_file=t-freebsd
1093         gas=yes
1094         gnu_ld=yes
1095         stabs=yes
1096         case x${enable_threads} in
1097         xyes | xpthreads | xposix)
1098                 thread_file='posix'
1099                 tmake_file="${tmake_file} t-freebsd-thread"
1100                 ;;
1101         esac
1102         ;;
1103 i[34567]86-*-netbsd*)
1104         tm_file=i386/netbsd.h
1105         tmake_file=t-netbsd
1106         use_collect2=yes
1107         ;;
1108 i[34567]86-*-openbsd*)
1109         # we need collect2 until our bug is fixed...
1110         use_collect2=yes
1111         ;;
1112 i[34567]86-*-coff*)
1113         tm_file=i386/i386-coff.h
1114         tmake_file=i386/t-i386bare
1115         ;;
1116 i[34567]86-*-isc*)              # 80386 running ISC system
1117         xm_file="${xm_file} i386/xm-isc.h"
1118         xm_defines="USG SVR3"
1119         case $machine in
1120           i[34567]86-*-isc[34]*)
1121             xmake_file=i386/x-isc3
1122             ;;
1123           *)
1124             xmake_file=i386/x-isc
1125             ;;
1126         esac
1127         if test x$gas = xyes -a x$stabs = xyes
1128         then
1129                 tm_file=i386/iscdbx.h
1130                 tmake_file=i386/t-svr3dbx
1131                 extra_parts="svr3.ifile svr3z.ifile"
1132         else
1133                 tm_file=i386/isccoff.h
1134                 tmake_file=i386/t-crtstuff
1135                 extra_parts="crtbegin.o crtend.o"
1136         fi
1137         tmake_file="$tmake_file i386/t-i386bare"
1138         install_headers_dir=install-headers-cpio
1139         ;;
1140 i[34567]86-*-linux*oldld*)      # Intel 80386's running GNU/Linux
1141                                 # with a.out format using
1142                                 # pre BFD linkers
1143         xmake_file=x-linux-aout
1144         tmake_file="t-linux-aout i386/t-crtstuff"
1145         tm_file=i386/linux-oldld.h
1146         gnu_ld=yes
1147         float_format=i386
1148         ;;
1149 i[34567]86-*-linux*aout*)       # Intel 80386's running GNU/Linux
1150                                 # with a.out format
1151         xmake_file=x-linux-aout
1152         tmake_file="t-linux-aout i386/t-crtstuff"
1153         tm_file=i386/linux-aout.h
1154         gnu_ld=yes
1155         float_format=i386
1156         ;;
1157 i[34567]86-*-linux*libc1)       # Intel 80386's running GNU/Linux
1158                                 # with ELF format using the
1159                                 # GNU/Linux C library 5
1160         xmake_file=x-linux      
1161         tm_file=i386/linux.h    
1162         tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1163         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1164         gnu_ld=yes
1165         float_format=i386
1166         if test x$enable_threads = xyes; then
1167                 thread_file='single'
1168         fi
1169         ;;
1170 i[34567]86-*-linux*)    # Intel 80386's running GNU/Linux
1171                         # with ELF format using glibc 2
1172                         # aka GNU/Linux C library 6
1173         xmake_file=x-linux
1174         tm_file=i386/linux.h
1175         tmake_file="t-linux i386/t-crtstuff"
1176         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1177         gnu_ld=yes
1178         float_format=i386
1179         if test x$enable_threads = xyes; then
1180                 thread_file='posix'
1181         fi
1182         ;;
1183 i[34567]86-*-gnu*)
1184         float_format=i386
1185         ;;
1186 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1187         echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1188         exit 1
1189         ;;
1190 i[34567]86-pc-msdosdjgpp*)
1191         xm_file=i386/xm-djgpp.h
1192         tm_file=i386/djgpp.h
1193         tmake_file=i386/t-djgpp
1194         xmake_file=i386/x-djgpp
1195         gnu_ld=yes
1196         gas=yes
1197         exeext=.exe
1198         float_format=none
1199         case $host in *pc-msdosdjgpp*)
1200                 target_alias=djgpp
1201                 ;;
1202         esac
1203         ;;
1204 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1205         tm_file=i386/moss.h
1206         tmake_file=t-libc-ok
1207         gnu_ld=yes
1208         gas=yes
1209         ;;
1210 i[34567]86-*-lynxos*)
1211         if test x$gas = xyes
1212         then
1213                 tm_file=i386/lynx.h
1214         else
1215                 tm_file=i386/lynx-ng.h
1216         fi
1217         xm_file=i386/xm-lynx.h
1218         tmake_file=i386/t-i386bare
1219         xmake_file=x-lynx
1220         ;;
1221 i[34567]86-*-mach*)
1222         tm_file=i386/mach.h
1223 #       tmake_file=t-libc-ok
1224         use_collect2=yes
1225         ;;
1226 i[34567]86-*-osfrose*)          # 386 using OSF/rose
1227         if test x$elf = xyes
1228         then
1229                 tm_file=i386/osfelf.h
1230                 use_collect2=
1231         else
1232                 tm_file=i386/osfrose.h
1233                 use_collect2=yes
1234         fi
1235         xm_file="i386/xm-osf.h ${xm_file}"
1236         xmake_file=i386/x-osfrose
1237         tmake_file=i386/t-osf
1238         extra_objs=halfpic.o
1239         ;;
1240 i[34567]86-go32-rtems*)
1241         cpu_type=i386
1242         xm_file=i386/xm-go32.h
1243         tm_file=i386/go32-rtems.h
1244         tmake_file="i386/t-go32 t-rtems"
1245         if test x$enable_threads = xyes; then
1246           thread_file='rtems'
1247         fi
1248         ;;
1249 i[34567]86-*-rtemscoff*)
1250         cpu_type=i386
1251         tm_file=i386/rtems.h
1252         tmake_file="i386/t-i386bare t-rtems"
1253         if test x$enable_threads = xyes; then
1254           thread_file='rtems'
1255         fi
1256         ;;
1257 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1258         cpu_type=i386
1259         tm_file=i386/rtemself.h
1260         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1261         tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1262         if test x$enable_threads = xyes; then
1263           thread_file='rtems'
1264         fi
1265         ;;
1266 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1267         xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1268         xm_defines="USG SVR3"
1269         xmake_file=i386/x-sco5
1270         install_headers_dir=install-headers-cpio
1271         tm_file=i386/sco5.h
1272         if test x$gas = xyes
1273         then
1274                 tm_file="i386/sco5gas.h ${tm_file}"
1275                 tmake_file=i386/t-sco5gas
1276         else
1277                 tmake_file=i386/t-sco5
1278         fi
1279         tmake_file="$tmake_file i386/t-i386bare"
1280         extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1281         ;;
1282 i[34567]86-*-sco3.2v4*)         # 80386 running SCO 3.2v4 system
1283         xm_file="${xm_file} i386/xm-sco.h"
1284         xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1285         xmake_file=i386/x-sco4
1286         install_headers_dir=install-headers-cpio
1287         if test x$stabs = xyes
1288         then
1289                 tm_file=i386/sco4dbx.h
1290                 tmake_file=i386/t-svr3dbx
1291                 extra_parts="svr3.ifile svr3z.rfile"
1292         else
1293                 tm_file=i386/sco4.h
1294                 tmake_file=i386/t-crtstuff
1295                 extra_parts="crtbegin.o crtend.o"
1296         fi
1297         tmake_file="$tmake_file i386/t-i386bare"
1298         # The default EAFS filesystem supports long file names.
1299         # Truncating the target makes $host != $target which
1300         # makes gcc think it is doing a cross-compile.
1301         # truncate_target=yes
1302         ;;
1303 i[34567]86-*-sco*)              # 80386 running SCO system
1304         xm_file=i386/xm-sco.h
1305         xmake_file=i386/x-sco
1306         install_headers_dir=install-headers-cpio
1307         if test x$stabs = xyes
1308         then
1309                 tm_file=i386/scodbx.h
1310                 tmake_file=i386/t-svr3dbx
1311                 extra_parts="svr3.ifile svr3z.rfile"
1312         else
1313                 tm_file=i386/sco.h
1314                 extra_parts="crtbegin.o crtend.o"
1315                 tmake_file=i386/t-crtstuff
1316         fi
1317         tmake_file="$tmake_file i386/t-i386bare"
1318         truncate_target=yes
1319         ;;
1320 i[34567]86-*-solaris2*)
1321         xm_file="xm-alloca.h ${xm_file}"
1322         xm_defines="USG POSIX SMALL_ARG_MAX"
1323         tm_file=i386/sol2.h
1324         if test x$gas = xyes; then
1325                 # Only needed if gas does not support -s
1326                 tm_file="i386/sol2gas.h ${tm_file}"
1327         fi
1328         tmake_file="i386/t-i386bare i386/t-sol2"
1329         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1330         xmake_file=x-svr4
1331         if test x${enable_threads} = x; then
1332             enable_threads=$have_pthread_h
1333             if test x${enable_threads} = x; then
1334                 enable_threads=$have_thread_h
1335             fi
1336         fi
1337         if test x${enable_threads} = xyes; then
1338             if test x${have_pthread_h} = xyes; then
1339                 thread_file='posix'
1340             else
1341                 thread_file='solaris'
1342             fi
1343         fi
1344         ;;
1345 i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
1346        xm_file="xm-alloca.h ${xm_file}"
1347        xm_defines="USG POSIX"
1348        tm_file=i386/sysv5.h
1349        if test x$stabs = xyes
1350        then
1351                tm_file="${tm_file} dbx.h"
1352        fi
1353        tmake_file="i386/t-i386bare i386/t-crtpic"
1354        xmake_file=x-svr4
1355        extra_parts="crtbegin.o crtend.o"
1356        if test x$enable_threads = xyes; then
1357                thread_file='posix'
1358        fi
1359        ;;
1360 i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
1361         xm_file="xm-alloca.h ${xm_file}"
1362         xm_defines="USG POSIX SMALL_ARG_MAX"
1363         tm_file=i386/sysv4.h
1364         if test x$stabs = xyes
1365         then
1366                 tm_file="${tm_file} dbx.h"
1367         fi
1368         tmake_file="i386/t-i386bare i386/t-crtpic"
1369         xmake_file=x-svr4
1370         extra_parts="crtbegin.o crtend.o"
1371         ;;
1372 i[34567]86-*-udk*)      # Intel x86 on SCO UW/OSR5 Dev Kit
1373         xm_file="xm-alloca.h ${xm_file}"
1374         xm_defines="USG POSIX"
1375         tm_file=i386/udk.h
1376         tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1377         xmake_file=x-svr4
1378         extra_parts="crtbegin.o crtend.o"
1379         install_headers_dir=install-headers-cpio
1380         ;;
1381 i[34567]86-*-osf1*)             # Intel 80386's running OSF/1 1.3+
1382         cpu_type=i386
1383         xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1384         xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1385         if test x$stabs = xyes
1386         then
1387                 tm_file=i386/osf1elfgdb.h
1388         else
1389                 tm_file=i386/osf1elf.h
1390         fi
1391         tmake_file=i386/t-osf1elf
1392         xmake_file=i386/x-osf1elf
1393         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1394         ;;
1395 i[34567]86-*-sysv*)             # Intel 80386's running system V
1396         xm_defines="USG SVR3"
1397         xmake_file=i386/x-sysv3
1398         if test x$gas = xyes
1399         then
1400                 if test x$stabs = xyes
1401                 then
1402                         tm_file=i386/svr3dbx.h
1403                         tmake_file=i386/t-svr3dbx
1404                         extra_parts="svr3.ifile svr3z.rfile"
1405                 else
1406                         tm_file=i386/svr3gas.h
1407                         extra_parts="crtbegin.o crtend.o"
1408                         tmake_file=i386/t-crtstuff
1409                 fi
1410         else
1411                 tm_file=i386/sysv3.h
1412                 extra_parts="crtbegin.o crtend.o"
1413                 tmake_file=i386/t-crtstuff
1414         fi
1415         tmake_file="$tmake_file i386/t-crtpic"
1416         ;;
1417 i386-*-vsta)                    # Intel 80386's running VSTa kernel
1418         xm_file="${xm_file} i386/xm-vsta.h"
1419         tm_file=i386/vsta.h
1420         tmake_file=i386/t-vsta
1421         xmake_file=i386/x-vsta
1422         ;;
1423 i[34567]86-*-win32)
1424         xm_file="${xm_file} i386/xm-cygwin.h"
1425         float_format=i386
1426         tmake_file=i386/t-cygwin
1427         tm_file=i386/win32.h
1428         xmake_file=i386/x-cygwin
1429         extra_objs=winnt.o
1430         if test x$enable_threads = xyes; then
1431                 thread_file='win32'
1432         fi
1433         exeext=.exe
1434         ;;
1435 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1436         xm_file="${xm_file} i386/xm-cygwin.h"
1437         float_format=i386
1438         tmake_file=i386/t-cygwin
1439         tm_file=i386/cygwin.h
1440         xmake_file=i386/x-cygwin
1441         extra_objs=winnt.o
1442         if test x$enable_threads = xyes; then
1443                 thread_file='win32'
1444         fi
1445         exeext=.exe
1446         ;;
1447 i[34567]86-*-mingw32*)
1448         tm_file=i386/mingw32.h
1449         float_format=i386
1450         xm_file="${xm_file} i386/xm-mingw32.h"
1451         tmake_file="i386/t-cygwin i386/t-mingw32"
1452         extra_objs=winnt.o
1453         xmake_file=i386/x-cygwin
1454         if test x$enable_threads = xyes; then
1455                 thread_file='win32'
1456         fi
1457         exeext=.exe
1458         case $machine in
1459                 *mingw32msv*)
1460                         ;;
1461                 *minwg32crt* | *mingw32*)
1462                         tm_file="${tm_file} i386/crtdll.h"
1463                         ;;
1464         esac
1465         ;;
1466 i[34567]86-*-uwin*)
1467         tm_file=i386/uwin.h
1468         xm_file="${xm_file} i386/xm-uwin.h"
1469         xm_defines="USG NO_STAB_H"
1470         tmake_file="i386/t-cygwin i386/t-uwin"
1471         extra_objs=winnt.o
1472         xmake_file=i386/x-cygwin
1473         if test x$enable_threads = xyes; then
1474                 thread_file='win32'
1475         fi
1476         exeext=.exe
1477         ;;
1478 i[34567]86-*-interix*)
1479         tm_file="i386/i386-interix.h interix.h"
1480         xm_file="i386/xm-i386-interix.h xm-interix.h"
1481         xm_defines="USG"
1482         tmake_file="i386/t-interix"
1483         extra_objs=interix.o
1484         xmake_file=x-interix
1485         if test x$enable_threads = xyes ; then
1486                 thread_file='posix'
1487         fi
1488         if test x$stabs = xyes ; then
1489                 tm_file="${tm_file} dbxcoff.h"
1490         fi
1491         ;;
1492 i[34567]86-*-winnt3*)
1493         tm_file=i386/win-nt.h
1494         out_file=i386/i386.c
1495         xm_file="xm-winnt.h ${xm_file}"
1496         xmake_file=winnt/x-winnt
1497         tmake_file=i386/t-winnt
1498         extra_host_objs="winnt.o oldnames.o"
1499         extra_gcc_objs="spawnv.o oldnames.o"
1500         if test x$gnu_ld != xyes
1501         then
1502                 extra_programs=ld.exe
1503         fi
1504         if test x$enable_threads = xyes; then
1505                 thread_file='win32'
1506         fi
1507         ;;
1508 i[34567]86-dg-dgux*)
1509         xm_file="xm-alloca.h ${xm_file}"
1510         xm_defines="USG POSIX"
1511         out_file=i386/dgux.c
1512         tm_file=i386/dgux.h
1513         tmake_file=i386/t-dgux
1514         xmake_file=i386/x-dgux
1515         install_headers_dir=install-headers-cpio
1516       ;;
1517 i860-alliant-*)         # Alliant FX/2800
1518         tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1519         xm_file="${xm_file}"
1520         xmake_file=i860/x-fx2800
1521         tmake_file=i860/t-fx2800
1522         extra_parts="crtbegin.o crtend.o"
1523         ;;
1524 i860-*-bsd*)
1525         tm_file="${tm_file} i860/bsd.h"
1526         if test x$gas = xyes
1527         then
1528                 tm_file="${tm_file} i860/bsd-gas.h"
1529         fi
1530         use_collect2=yes
1531         ;;
1532 i860-*-mach*)
1533         tm_file="${tm_file} i860/mach.h"
1534         tmake_file=t-libc-ok
1535         ;;
1536 i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
1537         tm_file="${tm_file} svr3.h i860/paragon.h"
1538         xm_defines="USG SVR3"
1539         tmake_file=t-osf
1540         ;;
1541 i860-*-sysv3*)
1542         tm_file="${tm_file} svr3.h i860/sysv3.h"
1543         xm_defines="USG SVR3"
1544         xmake_file=i860/x-sysv3
1545         extra_parts="crtbegin.o crtend.o"
1546         ;;
1547 i860-*-sysv4*)
1548         tm_file="${tm_file} svr4.h i860/sysv4.h"
1549         xm_defines="USG SVR3"
1550         xmake_file=i860/x-sysv4
1551         tmake_file=t-svr4
1552         extra_parts="crtbegin.o crtend.o"
1553         ;;
1554 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1555         tm_file="${tm_file} i960/vx960.h"
1556         tmake_file=i960/t-vxworks960
1557         use_collect2=yes
1558         thread_file='vxworks'
1559         ;;
1560 i960-wrs-vxworks5* | i960-wrs-vxworks)
1561         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1562         tmake_file=i960/t-vxworks960
1563         use_collect2=yes
1564         thread_file='vxworks'
1565         ;;
1566 i960-wrs-vxworks*)
1567         tm_file="${tm_file} i960/vx960.h"
1568         tmake_file=i960/t-vxworks960
1569         use_collect2=yes
1570         thread_file='vxworks'
1571         ;;
1572 i960-*-coff*)
1573         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1574         tmake_file=i960/t-960bare
1575         use_collect2=yes
1576         ;;
1577 i960-*-rtems)
1578         tmake_file="i960/t-960bare t-rtems"
1579         tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1580         use_collect2=yes
1581         if test x$enable_threads = xyes; then
1582           thread_file='rtems'
1583         fi
1584         ;;
1585 i960-*-*)                       # Default i960 environment.
1586         use_collect2=yes
1587         ;;
1588 ia64*-*-elf*)
1589         tm_file=ia64/elf.h
1590         tmake_file="ia64/t-ia64"
1591         target_cpu_default="0"
1592         if test x$gas = xyes
1593         then
1594                 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1595         fi
1596         if test x$gnu_ld = xyes
1597         then
1598                 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1599         fi
1600         float_format=i386
1601         ;;
1602 ia64*-*-linux*)
1603         tm_file=ia64/linux.h
1604         tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
1605         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1606         if test x$enable_threads = xyes; then
1607                 thread_file='posix'
1608         fi
1609         float_format=i386
1610         ;;
1611 m32r-*-elf*)
1612         extra_parts="crtinit.o crtfini.o"
1613         ;;
1614 # m68hc11 and m68hc12 share the same machine description.
1615 m68hc11-*-*|m6811-*-*)
1616         tm_file="m68hc11/m68hc11.h"
1617         xm_file="m68hc11/xm-m68hc11.h"
1618         tm_p_file="m68hc11/m68hc11-protos.h"
1619         md_file="m68hc11/m68hc11.md"
1620         out_file="m68hc11/m68hc11.c"
1621         tmake_file="m68hc11/t-m68hc11-gas"
1622         ;;
1623 m68hc12-*-*|m6812-*-*)
1624         tm_file="m68hc11/m68hc12.h"
1625         tm_p_file="m68hc11/m68hc11-protos.h"
1626         xm_file="m68hc11/xm-m68hc11.h"
1627         md_file="m68hc11/m68hc11.md"
1628         out_file="m68hc11/m68hc11.c"
1629         tmake_file="m68hc11/t-m68hc11-gas"
1630         ;;
1631 m68000-convergent-sysv*)
1632         tm_file=m68k/ctix.h
1633         xm_file="m68k/xm-3b1.h ${xm_file}"
1634         xm_defines=USG
1635         use_collect2=yes
1636         extra_headers=math-68881.h
1637         ;;
1638 m68000-hp-bsd*)                 # HP 9000/200 running BSD
1639         tm_file=m68k/hp2bsd.h
1640         xmake_file=m68k/x-hp2bsd
1641         use_collect2=yes
1642         extra_headers=math-68881.h
1643         ;;
1644 m68000-hp-hpux*)                # HP 9000 series 300
1645         xm_file="xm-alloca.h ${xm_file}"
1646         xm_defines="USG"
1647         if test x$gas = xyes
1648         then
1649                 xmake_file=m68k/x-hp320g
1650                 tm_file=m68k/hp310g.h
1651         else
1652                 xmake_file=m68k/x-hp320
1653                 tm_file=m68k/hp310.h
1654         fi
1655         install_headers_dir=install-headers-cpio
1656         use_collect2=yes
1657         extra_headers=math-68881.h
1658         ;;
1659 m68000-sun-sunos3*)
1660         tm_file=m68k/sun2.h
1661         use_collect2=yes
1662         extra_headers=math-68881.h
1663         ;;
1664 m68000-sun-sunos4*)
1665         tm_file=m68k/sun2o4.h
1666         use_collect2=yes
1667         extra_headers=math-68881.h
1668         ;;
1669 m68000-att-sysv*)
1670         xm_file="m68k/xm-3b1.h ${xm_file}"
1671         xm_defines=USG
1672         if test x$gas = xyes
1673         then
1674                 tm_file=m68k/3b1g.h
1675         else
1676                 tm_file=m68k/3b1.h
1677         fi
1678         use_collect2=yes
1679         extra_headers=math-68881.h
1680         ;;
1681 m68k-apple-aux*)                # Apple Macintosh running A/UX
1682         xm_defines="USG AUX"
1683         tmake_file=m68k/t-aux
1684         install_headers_dir=install-headers-cpio
1685         extra_headers=math-68881.h
1686         extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1687         tm_file=
1688         if test "$gnu_ld" = yes
1689         then
1690                 tm_file="${tm_file} m68k/auxgld.h"
1691         else
1692                 tm_file="${tm_file} m68k/auxld.h"
1693         fi
1694         if test "$gas" = yes
1695         then
1696                 tm_file="${tm_file} m68k/auxgas.h"
1697         else
1698                 tm_file="${tm_file} m68k/auxas.h"
1699         fi
1700         tm_file="${tm_file} m68k/a-ux.h"
1701         float_format=m68k
1702         ;;
1703 m68k-apollo-*)
1704         tm_file=m68k/apollo68.h
1705         xmake_file=m68k/x-apollo68
1706         use_collect2=yes
1707         extra_headers=math-68881.h
1708         float_format=m68k
1709         ;;
1710 m68k-altos-sysv*)                  # Altos 3068
1711         if test x$gas = xyes
1712         then
1713                 tm_file=m68k/altos3068.h
1714                 xm_defines=USG
1715         else
1716                 echo "The Altos is supported only with the GNU assembler" 1>&2
1717                 exit 1
1718         fi
1719         extra_headers=math-68881.h
1720         ;;
1721 m68k-bull-sysv*)                # Bull DPX/2
1722         if test x$gas = xyes
1723         then
1724                 if test x$stabs = xyes
1725                 then
1726                         tm_file=m68k/dpx2cdbx.h
1727                 else
1728                         tm_file=m68k/dpx2g.h
1729                 fi
1730         else
1731                 tm_file=m68k/dpx2.h
1732         fi
1733         xm_file="xm-alloca.h ${xm_file}"
1734         xm_defines=USG
1735         xmake_file=m68k/x-dpx2
1736         use_collect2=yes
1737         extra_headers=math-68881.h
1738         ;;
1739 m68k-atari-sysv4*)              # Atari variant of V.4.
1740         tm_file=m68k/atari.h
1741         xm_file="xm-alloca.h ${xm_file}"
1742         xm_defines="USG FULL_PROTOTYPES"
1743         tmake_file=t-svr4
1744         extra_parts="crtbegin.o crtend.o"
1745         extra_headers=math-68881.h
1746         float_format=m68k
1747         ;;
1748 m68k-motorola-sysv*)
1749         tm_file=m68k/mot3300.h
1750         xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1751         if test x$gas = xyes
1752         then
1753                 xmake_file=m68k/x-mot3300-gas
1754                 if test x$gnu_ld = xyes
1755                 then
1756                         tmake_file=m68k/t-mot3300-gald
1757                 else
1758                         tmake_file=m68k/t-mot3300-gas
1759                         use_collect2=yes
1760                 fi
1761         else
1762                 xmake_file=m68k/x-mot3300
1763                 if test x$gnu_ld = xyes
1764                 then
1765                         tmake_file=m68k/t-mot3300-gld
1766                 else
1767                         tmake_file=m68k/t-mot3300
1768                         use_collect2=yes
1769                 fi
1770         fi
1771         gdb_needs_out_file_path=yes
1772         extra_parts="crt0.o mcrt0.o"
1773         extra_headers=math-68881.h
1774         float_format=m68k
1775         ;;
1776 m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
1777         tm_file=m68k/tower-as.h
1778         xm_defines="USG SVR3"
1779         xmake_file=m68k/x-tower
1780         extra_parts="crtbegin.o crtend.o"
1781         extra_headers=math-68881.h
1782         ;;
1783 m68k-plexus-sysv*)
1784         tm_file=m68k/plexus.h
1785         xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1786         xm_defines=USG
1787         use_collect2=yes
1788         extra_headers=math-68881.h
1789         ;;
1790 m68k-tti-*)
1791         tm_file=m68k/pbb.h
1792         xm_file="xm-alloca.h ${xm_file}"
1793         xm_defines=USG
1794         extra_headers=math-68881.h
1795         ;;
1796 m68k-crds-unos*)
1797         xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1798         xm_defines="USG unos"
1799         xmake_file=m68k/x-crds
1800         tm_file=m68k/crds.h
1801         use_collect2=yes
1802         extra_headers=math-68881.h
1803         ;;
1804 m68k-cbm-sysv4*)                # Commodore variant of V.4.
1805         tm_file=m68k/amix.h
1806         xm_file="xm-alloca.h ${xm_file}"
1807         xm_defines="USG FULL_PROTOTYPES"
1808         xmake_file=m68k/x-amix
1809         tmake_file=t-svr4
1810         extra_parts="crtbegin.o crtend.o"
1811         extra_headers=math-68881.h
1812         float_format=m68k
1813         ;;
1814 m68k-ccur-rtu)
1815         tm_file=m68k/ccur-GAS.h
1816         xmake_file=m68k/x-ccur
1817         extra_headers=math-68881.h
1818         use_collect2=yes
1819         float_format=m68k
1820         ;;
1821 m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
1822         tm_file=m68k/hp3bsd44.h
1823         xmake_file=m68k/x-hp3bsd44
1824         use_collect2=yes
1825         extra_headers=math-68881.h
1826         float_format=m68k
1827         ;;
1828 m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
1829         tm_file=m68k/hp3bsd.h
1830         use_collect2=yes
1831         extra_headers=math-68881.h
1832         float_format=m68k
1833         ;;
1834 m68k-isi-bsd*)
1835         if test x$with_fp = xno
1836         then
1837                 tm_file=m68k/isi-nfp.h
1838         else
1839                 tm_file=m68k/isi.h
1840                 float_format=m68k
1841         fi
1842         use_collect2=yes
1843         extra_headers=math-68881.h
1844         ;;
1845 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1846         xm_file="xm-alloca.h ${xm_file}"
1847         xm_defines="USG"
1848         if test x$gas = xyes
1849         then
1850                 xmake_file=m68k/x-hp320g
1851                 tm_file=m68k/hp320g.h
1852         else
1853                 xmake_file=m68k/x-hp320
1854                 tm_file=m68k/hpux7.h
1855         fi
1856         install_headers_dir=install-headers-cpio
1857         use_collect2=yes
1858         extra_headers=math-68881.h
1859         float_format=m68k
1860         ;;
1861 m68k-hp-hpux*)  # HP 9000 series 300
1862         xm_file="xm-alloca.h ${xm_file}"
1863         xm_defines="USG"
1864         if test x$gas = xyes
1865         then
1866                 xmake_file=m68k/x-hp320g
1867                 tm_file=m68k/hp320g.h
1868         else
1869                 xmake_file=m68k/x-hp320
1870                 tm_file=m68k/hp320.h
1871         fi
1872         install_headers_dir=install-headers-cpio
1873         use_collect2=yes
1874         extra_headers=math-68881.h
1875         float_format=m68k
1876         ;;
1877 m68k-sun-mach*)
1878         tm_file=m68k/sun3mach.h
1879         use_collect2=yes
1880         extra_headers=math-68881.h
1881         float_format=m68k
1882         ;;
1883 m68k-sony-newsos3*)
1884         if test x$gas = xyes
1885         then
1886                 tm_file=m68k/news3gas.h
1887         else
1888                 tm_file=m68k/news3.h
1889         fi
1890         use_collect2=yes
1891         extra_headers=math-68881.h
1892         float_format=m68k
1893         ;;
1894 m68k-sony-bsd* | m68k-sony-newsos*)
1895         if test x$gas = xyes
1896         then
1897                 tm_file=m68k/newsgas.h
1898         else
1899                 tm_file=m68k/news.h
1900         fi
1901         use_collect2=yes
1902         extra_headers=math-68881.h
1903         float_format=m68k
1904         ;;
1905 m68k-next-nextstep2*)
1906         tm_file=m68k/next21.h
1907         xm_file="m68k/xm-next.h ${xm_file}"
1908         tmake_file=m68k/t-next
1909         xmake_file=m68k/x-next
1910         extra_objs=nextstep.o
1911         extra_headers=math-68881.h
1912         use_collect2=yes
1913         float_format=m68k
1914         ;;
1915 m68k-next-nextstep[34]*)
1916         tm_file=m68k/next.h
1917         xm_file="m68k/xm-next.h ${xm_file}"
1918         tmake_file=m68k/t-next
1919         xmake_file=m68k/x-next
1920         extra_objs=nextstep.o
1921         extra_parts="crtbegin.o crtend.o"
1922         extra_headers=math-68881.h
1923         float_format=m68k
1924         if test x$enable_threads = xyes; then
1925                 thread_file='mach'
1926         fi
1927         ;;
1928 m68k-sun-sunos3*)
1929         if test x$with_fp = xno
1930         then
1931                 tm_file=m68k/sun3n3.h
1932         else
1933                 tm_file=m68k/sun3o3.h
1934                 float_format=m68k
1935         fi
1936         use_collect2=yes
1937         extra_headers=math-68881.h
1938         ;;
1939 m68k-sun-sunos*)                        # For SunOS 4 (the default).
1940         if test x$with_fp = xno
1941         then
1942                 tm_file=m68k/sun3n.h
1943         else
1944                 tm_file=m68k/sun3.h
1945                 float_format=m68k
1946         fi
1947         use_collect2=yes
1948         extra_headers=math-68881.h
1949         ;;
1950 m68k-wrs-vxworks*)
1951         tm_file=m68k/vxm68k.h
1952         tmake_file=m68k/t-vxworks68
1953         extra_headers=math-68881.h
1954         thread_file='vxworks'
1955         float_format=m68k
1956         ;;
1957 m68k-*-aout*)
1958         tmake_file=m68k/t-m68kbare
1959         tm_file="m68k/m68k-aout.h libgloss.h"
1960         extra_headers=math-68881.h
1961         float_format=m68k
1962         ;;
1963 m68k-*-coff*)
1964         tmake_file=m68k/t-m68kbare
1965         tm_file="m68k/m68k-coff.h dbx.h"
1966         extra_headers=math-68881.h
1967         float_format=m68k
1968         ;;
1969 m68020-*-elf* | m68k-*-elf*)
1970         tm_file="m68k/m68020-elf.h"
1971         xm_file=m68k/xm-m68kv.h
1972         tmake_file=m68k/t-m68kelf
1973         header_files=math-68881.h
1974         ;;
1975 m68k-*-lynxos*)
1976         if test x$gas = xyes
1977         then
1978                 tm_file=m68k/lynx.h
1979         else
1980                 tm_file=m68k/lynx-ng.h
1981         fi
1982         xm_file=m68k/xm-lynx.h
1983         xmake_file=x-lynx
1984         tmake_file=m68k/t-lynx
1985         extra_headers=math-68881.h
1986         float_format=m68k
1987         ;;
1988 m68k*-*-netbsd*)
1989         tm_file=m68k/netbsd.h
1990         tmake_file=t-netbsd
1991         float_format=m68k
1992         use_collect2=yes
1993         ;;
1994 m68k*-*-openbsd*)
1995         float_format=m68k
1996         # we need collect2 until our bug is fixed...
1997         use_collect2=yes
1998         ;;
1999 m68k-*-sysv3*)                  # Motorola m68k's running system V.3
2000         xm_file="xm-alloca.h ${xm_file}"
2001         xm_defines=USG
2002         xmake_file=m68k/x-m68kv
2003         extra_parts="crtbegin.o crtend.o"
2004         extra_headers=math-68881.h
2005         float_format=m68k
2006         ;;
2007 m68k-*-sysv4*)                  # Motorola m68k's running system V.4
2008         tm_file=m68k/m68kv4.h
2009         xm_file="xm-alloca.h ${xm_file}"
2010         xm_defines=USG
2011         tmake_file=t-svr4
2012         extra_parts="crtbegin.o crtend.o"
2013         extra_headers=math-68881.h
2014         float_format=m68k
2015         ;;
2016 m68k-*-linux*aout*)             # Motorola m68k's running GNU/Linux
2017                                 # with a.out format
2018         xmake_file=x-linux
2019         tm_file=m68k/linux-aout.h
2020         tmake_file="t-linux-aout m68k/t-linux-aout"
2021         extra_headers=math-68881.h
2022         float_format=m68k
2023         gnu_ld=yes
2024         ;;
2025 m68k-*-linux*libc1)             # Motorola m68k's running GNU/Linux
2026                                 # with ELF format using the
2027                                 # GNU/Linux C library 5
2028         xmake_file=x-linux
2029         tm_file=m68k/linux.h
2030         tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2031         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2032         extra_headers=math-68881.h
2033         float_format=m68k
2034         gnu_ld=yes
2035         ;;
2036 m68k-*-linux*)          # Motorola m68k's running GNU/Linux
2037                                 # with ELF format using glibc 2
2038                                 # aka the GNU/Linux C library 6.
2039         xmake_file=x-linux
2040         tm_file=m68k/linux.h
2041         tmake_file="t-linux m68k/t-linux"
2042         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2043         extra_headers=math-68881.h
2044         float_format=m68k
2045         gnu_ld=yes
2046         if test x$enable_threads = xyes; then
2047                 thread_file='posix'
2048         fi
2049         ;;
2050 m68k-*-psos*)
2051         tmake_file=m68k/t-m68kbare
2052         tm_file=m68k/m68k-psos.h
2053         extra_headers=math-68881.h
2054         float_format=m68k
2055         ;;
2056 m68k-*-rtemscoff*)
2057         tmake_file="m68k/t-m68kbare t-rtems"
2058         tm_file=m68k/rtems.h
2059         extra_headers=math-68881.h
2060         float_format=m68k
2061         if test x$enable_threads = xyes; then
2062           thread_file='rtems'
2063         fi
2064         ;;
2065 m68k-*-rtemself*|m68k-*-rtems*)
2066         tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2067         tm_file=m68k/rtemself.h
2068         extra_headers=math-68881.h
2069         float_format=m68k
2070         if test x$enable_threads = xyes; then
2071           thread_file='rtems'
2072         fi
2073         ;;
2074 m88k-dg-dgux*)
2075         case $machine in
2076           m88k-dg-dguxbcs*)
2077             tm_file=m88k/dguxbcs.h
2078             tmake_file=m88k/t-dguxbcs
2079             ;;
2080           *)
2081             tm_file=m88k/dgux.h
2082             tmake_file=m88k/t-dgux
2083             ;;
2084         esac
2085         extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2086         xmake_file=m88k/x-dgux
2087         if test x$gas = xyes
2088         then
2089                 tmake_file=m88k/t-dgux-gas
2090         fi
2091         ;;
2092 m88k-dolphin-sysv3*)
2093         tm_file=m88k/dolph.h
2094         extra_parts="crtbegin.o crtend.o"
2095         xm_file="m88k/xm-sysv3.h ${xm_file}"
2096         xmake_file=m88k/x-dolph
2097         if test x$gas = xyes
2098         then
2099                 tmake_file=m88k/t-m88k-gas
2100         fi
2101         ;;
2102 m88k-tektronix-sysv3)
2103         tm_file=m88k/tekXD88.h
2104         extra_parts="crtbegin.o crtend.o"
2105         xm_file="m88k/xm-sysv3.h ${xm_file}"
2106         xmake_file=m88k/x-tekXD88
2107         if test x$gas = xyes
2108         then
2109                 tmake_file=m88k/t-m88k-gas
2110         fi
2111         ;;
2112 m88k-*-aout*)
2113         tm_file=m88k/m88k-aout.h
2114         ;;
2115 m88k-*-coff*)
2116         tm_file=m88k/m88k-coff.h
2117         tmake_file=m88k/t-bug
2118         ;;
2119 m88k-*-luna*)
2120         tm_file=m88k/luna.h
2121         extra_parts="crtbegin.o crtend.o"
2122         if test x$gas = xyes
2123         then
2124                 tmake_file=m88k/t-luna-gas
2125         else
2126                 tmake_file=m88k/t-luna
2127         fi
2128         ;;
2129 m88k-*-openbsd*)
2130         tmake_file="${tmake_file} m88k/t-luna-gas"
2131         tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2132         xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2133         ;;
2134 m88k-*-sysv3*)
2135         tm_file=m88k/sysv3.h
2136         extra_parts="crtbegin.o crtend.o"
2137         xm_file="m88k/xm-sysv3.h ${xm_file}"
2138         xmake_file=m88k/x-sysv3
2139         if test x$gas = xyes
2140         then
2141                 tmake_file=m88k/t-m88k-gas
2142         fi
2143         ;;
2144 m88k-*-sysv4*)
2145         tm_file=m88k/sysv4.h
2146         extra_parts="crtbegin.o crtend.o"
2147         xmake_file=m88k/x-sysv4
2148         tmake_file=m88k/t-sysv4
2149         ;;
2150 mcore-*-elf)
2151         tm_file=mcore/mcore-elf.h
2152         tmake_file=mcore/t-mcore
2153         ;;
2154 mcore-*-pe*)
2155         tm_file=mcore/mcore-pe.h
2156         tmake_file=mcore/t-mcore-pe
2157         ;;
2158 mips-sgi-irix6*)                # SGI System V.4., IRIX 6
2159         if test "x$gnu_ld" = xyes
2160         then
2161                 tm_file="mips/iris6.h mips/iris6gld.h"
2162         else
2163                 tm_file=mips/iris6.h
2164         fi
2165         tmake_file=mips/t-iris6
2166         xm_file=mips/xm-iris6.h
2167         xmake_file=mips/x-iris6
2168 #       if test x$enable_threads = xyes; then
2169 #               thread_file='irix'
2170 #       fi
2171         ;;
2172 mips-wrs-vxworks)
2173         tm_file="mips/elf.h mips/vxworks.h"
2174         tmake_file=mips/t-ecoff
2175         gas=yes
2176         gnu_ld=yes
2177         extra_parts="crtbegin.o crtend.o"
2178         thread_file='vxworks'
2179         ;;
2180 mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
2181         tm_file="mips/iris6.h mips/cross64.h"
2182         xm_defines=USG
2183         xm_file="mips/xm-iris5.h"
2184         xmake_file=mips/x-iris
2185         tmake_file=mips/t-cross64
2186         # See comment in mips/iris[56].h files.
2187         use_collect2=yes
2188 #       if test x$enable_threads = xyes; then
2189 #               thread_file='irix'
2190 #       fi
2191         ;;
2192 mips-sni-sysv4)
2193         if test x$gas = xyes
2194         then
2195                 if test x$stabs = xyes
2196                 then
2197                         tm_file=mips/iris5gdb.h
2198                 else
2199                         tm_file="mips/sni-svr4.h mips/sni-gas.h"
2200                 fi
2201         else
2202                 tm_file=mips/sni-svr4.h
2203         fi
2204         xm_defines=USG
2205         xmake_file=mips/x-sni-svr4
2206         tmake_file=mips/t-mips-gas
2207         if test x$gnu_ld != xyes
2208         then
2209                 use_collect2=yes
2210         fi
2211         ;;
2212 mips-sgi-irix5*)                # SGI System V.4., IRIX 5
2213         if test x$gas = xyes
2214         then
2215                 tm_file="mips/iris5.h mips/iris5gas.h"
2216                 if test x$stabs = xyes
2217                 then
2218                         tm_file="${tm_file} dbx.h"
2219                 fi
2220         else
2221                 tm_file=mips/iris5.h
2222         fi
2223         xm_defines=USG
2224         xm_file="mips/xm-iris5.h"
2225         xmake_file=mips/x-iris
2226         # mips-tfile doesn't work yet
2227         tmake_file=mips/t-mips-gas
2228         # See comment in mips/iris5.h file.
2229         use_collect2=yes
2230 #       if test x$enable_threads = xyes; then
2231 #               thread_file='irix'
2232 #       fi
2233         ;;
2234 mips-sgi-irix4loser*)           # Mostly like a MIPS.
2235         tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2236         if test x$stabs = xyes; then
2237                 tm_file="${tm_file} dbx.h"
2238         fi
2239         xm_defines=USG
2240         xmake_file=mips/x-iris
2241         if test x$gas = xyes
2242         then
2243                 tmake_file=mips/t-mips-gas
2244         else
2245                 extra_passes="mips-tfile mips-tdump"
2246         fi
2247         if test x$gnu_ld != xyes
2248         then
2249                 use_collect2=yes
2250         fi
2251 #       if test x$enable_threads = xyes; then
2252 #               thread_file='irix'
2253 #       fi
2254         ;;
2255 mips-sgi-irix4*)                # Mostly like a MIPS.
2256         tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2257         if test x$stabs = xyes; then
2258                 tm_file="${tm_file} dbx.h"
2259         fi
2260         xm_defines=USG
2261         xmake_file=mips/x-iris
2262         if test x$gas = xyes
2263         then
2264                 tmake_file=mips/t-mips-gas
2265         else
2266                 extra_passes="mips-tfile mips-tdump"
2267         fi
2268         if test x$gnu_ld != xyes
2269         then
2270                 use_collect2=yes
2271         fi
2272 #       if test x$enable_threads = xyes; then
2273 #               thread_file='irix'
2274 #       fi
2275         ;;
2276 mips-sgi-*)                     # Mostly like a MIPS.
2277         tm_file="mips/iris3.h ${tm_file}"
2278         if test x$stabs = xyes; then
2279                 tm_file="${tm_file} dbx.h"
2280         fi
2281         xm_defines=USG
2282         xmake_file=mips/x-iris3
2283         if test x$gas = xyes
2284         then
2285                 tmake_file=mips/t-mips-gas
2286         else
2287                 extra_passes="mips-tfile mips-tdump"
2288         fi
2289         if test x$gnu_ld != xyes
2290         then
2291                 use_collect2=yes
2292         fi
2293         ;;
2294 mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
2295         tm_file="mips/osfrose.h ${tm_file}"
2296         xmake_file=mips/x-osfrose
2297         tmake_file=mips/t-osfrose
2298         extra_objs=halfpic.o
2299         use_collect2=yes
2300         ;;
2301 mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
2302         tm_file=mips/dec-osf1.h
2303         if test x$stabs = xyes; then
2304                 tm_file="${tm_file} dbx.h"
2305         fi
2306         xmake_file=mips/x-dec-osf1
2307         if test x$gas = xyes
2308         then
2309                 tmake_file=mips/t-mips-gas
2310         else
2311                 tmake_file=mips/t-ultrix
2312                 extra_passes="mips-tfile mips-tdump"
2313         fi
2314         if test x$gnu_ld != xyes
2315         then
2316                 use_collect2=yes
2317         fi
2318         ;;
2319 mips-dec-bsd*)                  # Decstation running 4.4 BSD
2320       tm_file=mips/dec-bsd.h
2321       if test x$gas = xyes
2322       then
2323                 tmake_file=mips/t-mips-gas
2324       else
2325                 tmake_file=mips/t-ultrix
2326                 extra_passes="mips-tfile mips-tdump"
2327       fi
2328       if test x$gnu_ld != xyes
2329       then
2330                 use_collect2=yes
2331       fi
2332       ;;
2333 mipsel-*-netbsd* | mips-dec-netbsd*)    # Decstation running NetBSD
2334         tm_file=mips/netbsd.h
2335         # On NetBSD, the headers are already okay, except for math.h.
2336         tmake_file=t-netbsd
2337         ;;
2338 mips*-*-linux*)                         # Linux MIPS, either endian.
2339         xmake_file=x-linux
2340         case $machine in
2341                mips*el-*)  tm_file="mips/elfl.h mips/linux.h" ;;
2342                *)         tm_file="mips/elf.h mips/linux.h" ;;
2343         esac
2344         tmake_file=t-linux
2345         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2346         gnu_ld=yes
2347         gas=yes
2348         if test x$enable_threads = xyes; then
2349                 thread_file='posix'
2350         fi
2351         ;;
2352 mips*el-*-openbsd*)     # mips little endian
2353         target_cpu_default="MASK_GAS|MASK_ABICALLS"
2354         ;;
2355 mips*-*-openbsd*)               # mips big endian
2356         target_cpu_default="MASK_GAS|MASK_ABICALLS"
2357         tm_file="mips/openbsd-be.h ${tm_file}"
2358         ;;
2359 mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
2360         tm_file="mips/news4.h ${tm_file}"
2361         if test x$stabs = xyes; then
2362                 tm_file="${tm_file} dbx.h"
2363         fi
2364         if test x$gas = xyes
2365         then
2366                 tmake_file=mips/t-mips-gas
2367         else
2368                 extra_passes="mips-tfile mips-tdump"
2369         fi
2370         if test x$gnu_ld != xyes
2371         then
2372                 use_collect2=yes
2373         fi
2374         xmake_file=mips/x-sony
2375         ;;
2376 mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
2377                                 # That is based on svr4.
2378         # t-svr4 is not right because this system doesn't use ELF.
2379         tm_file="mips/news5.h ${tm_file}"
2380         if test x$stabs = xyes; then
2381                 tm_file="${tm_file} dbx.h"
2382         fi
2383         xm_defines=USG
2384         if test x$gas = xyes
2385         then
2386                 tmake_file=mips/t-mips-gas
2387         else
2388                 extra_passes="mips-tfile mips-tdump"
2389         fi
2390         if test x$gnu_ld != xyes
2391         then
2392                 use_collect2=yes
2393         fi
2394         ;;
2395 mips-tandem-sysv4*)             # Tandem S2 running NonStop UX
2396         tm_file="mips/svr4-5.h mips/svr4-t.h"
2397         if test x$stabs = xyes; then
2398                 tm_file="${tm_file} dbx.h"
2399         fi
2400         xm_defines=USG
2401         xmake_file=mips/x-sysv
2402         if test x$gas = xyes
2403         then
2404                 tmake_file=mips/t-mips-gas
2405                 extra_parts="crtbegin.o crtend.o"
2406         else
2407                 tmake_file=mips/t-mips
2408                 extra_passes="mips-tfile mips-tdump"
2409         fi
2410         if test x$gnu_ld != xyes
2411         then
2412                 use_collect2=yes
2413         fi
2414         ;;
2415 mips-*-ultrix* | mips-dec-mach3)        # Decstation.
2416         tm_file="mips/ultrix.h ${tm_file}"
2417         if test x$stabs = xyes; then
2418                 tm_file="${tm_file} dbx.h"
2419         fi
2420         xmake_file=mips/x-ultrix
2421         if test x$gas = xyes
2422         then
2423                 tmake_file=mips/t-mips-gas
2424         else
2425                 tmake_file=mips/t-ultrix
2426                 extra_passes="mips-tfile mips-tdump"
2427         fi
2428         if test x$gnu_ld != xyes
2429         then
2430                 use_collect2=yes
2431         fi
2432         ;;
2433 mips-*-riscos[56789]bsd*)
2434         tm_file=mips/bsd-5.h    # MIPS BSD 4.3, RISC-OS 5.0
2435         if test x$stabs = xyes; then
2436                 tm_file="${tm_file} dbx.h"
2437         fi
2438         if test x$gas = xyes
2439         then
2440                 tmake_file=mips/t-bsd-gas
2441         else
2442                 tmake_file=mips/t-bsd
2443                 extra_passes="mips-tfile mips-tdump"
2444         fi
2445         if test x$gnu_ld != xyes
2446         then
2447                 use_collect2=yes
2448         fi
2449         ;;
2450 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2451         tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2452         if test x$stabs = xyes; then
2453                 tm_file="${tm_file} dbx.h"
2454         fi
2455         if test x$gas = xyes
2456         then
2457                 tmake_file=mips/t-bsd-gas
2458         else
2459                 tmake_file=mips/t-bsd
2460                 extra_passes="mips-tfile mips-tdump"
2461         fi
2462         if test x$gnu_ld != xyes
2463         then
2464                 use_collect2=yes
2465         fi
2466         ;;
2467 mips-*-riscos[56789]sysv4*)
2468         tm_file=mips/svr4-5.h   # MIPS System V.4., RISC-OS 5.0
2469         if test x$stabs = xyes; then
2470                 tm_file="${tm_file} dbx.h"
2471         fi
2472         xmake_file=mips/x-sysv
2473         if test x$gas = xyes
2474         then
2475                 tmake_file=mips/t-svr4-gas
2476         else
2477                 tmake_file=mips/t-svr4
2478                 extra_passes="mips-tfile mips-tdump"
2479         fi
2480         if test x$gnu_ld != xyes
2481         then
2482                 use_collect2=yes
2483         fi
2484         ;;
2485 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2486         tm_file="mips/svr4-4.h ${tm_file}"
2487         if test x$stabs = xyes; then
2488                 tm_file="${tm_file} dbx.h"
2489         fi
2490         xm_defines=USG
2491         xmake_file=mips/x-sysv
2492         if test x$gas = xyes
2493         then
2494                 tmake_file=mips/t-svr4-gas
2495         else
2496                 tmake_file=mips/t-svr4
2497                 extra_passes="mips-tfile mips-tdump"
2498         fi
2499         if test x$gnu_ld != xyes
2500         then
2501                 use_collect2=yes
2502         fi
2503         ;;
2504 mips-*-riscos[56789]sysv*)
2505         tm_file=mips/svr3-5.h   # MIPS System V.3, RISC-OS 5.0
2506         if test x$stabs = xyes; then
2507                 tm_file="${tm_file} dbx.h"
2508         fi
2509         xm_defines=USG
2510         xmake_file=mips/x-sysv
2511         if test x$gas = xyes
2512         then
2513                 tmake_file=mips/t-svr3-gas
2514         else
2515                 tmake_file=mips/t-svr3
2516                 extra_passes="mips-tfile mips-tdump"
2517         fi
2518         if test x$gnu_ld != xyes
2519         then
2520                 use_collect2=yes
2521         fi
2522         ;;
2523 mips-*-sysv* | mips-*-riscos*sysv*)
2524         tm_file="mips/svr3-4.h ${tm_file}"
2525         if test x$stabs = xyes; then
2526                 tm_file="${tm_file} dbx.h"
2527         fi
2528         xm_defines=USG
2529         xmake_file=mips/x-sysv
2530         if test x$gas = xyes
2531         then
2532                 tmake_file=mips/t-svr3-gas
2533         else
2534                 tmake_file=mips/t-svr3
2535                 extra_passes="mips-tfile mips-tdump"
2536         fi
2537         if test x$gnu_ld != xyes
2538         then
2539                 use_collect2=yes
2540         fi
2541         ;;
2542 mips-*-riscos[56789]*)          # Default MIPS RISC-OS 5.0.
2543         tm_file=mips/mips-5.h
2544         if test x$stabs = xyes; then
2545                 tm_file="${tm_file} dbx.h"
2546         fi
2547         if test x$gas = xyes
2548         then
2549                 tmake_file=mips/t-mips-gas
2550         else
2551                 extra_passes="mips-tfile mips-tdump"
2552         fi
2553         if test x$gnu_ld != xyes
2554         then
2555                 use_collect2=yes
2556         fi
2557         ;;
2558 mips-*-gnu*)
2559         ;;
2560 mipsel-*-ecoff*)
2561         tm_file=mips/ecoffl.h
2562         if test x$stabs = xyes; then
2563                 tm_file="${tm_file} dbx.h"
2564         fi
2565         tmake_file=mips/t-ecoff
2566         ;;
2567 mips-*-ecoff*)
2568         tm_file="gofast.h mips/ecoff.h"
2569         if test x$stabs = xyes; then
2570                 tm_file="${tm_file} dbx.h"
2571         fi
2572         tmake_file=mips/t-ecoff
2573         ;;
2574 mipsel-*-elf*)
2575         tm_file="mips/elfl.h"
2576         tmake_file=mips/t-elf
2577         ;;
2578 mips-*-elf*)
2579         tm_file="mips/elf.h"
2580         tmake_file=mips/t-elf
2581         ;;
2582 mips64el-*-elf*)
2583         tm_file="mips/elfl64.h"
2584         tmake_file=mips/t-elf
2585         ;;
2586 mips64orionel-*-elf*)
2587         tm_file="mips/elforion.h mips/elfl64.h"
2588         tmake_file=mips/t-elf
2589         ;;
2590 mips64-*-elf*)
2591         tm_file="mips/elf64.h"
2592         tmake_file=mips/t-elf
2593         ;;
2594 mips64orion-*-elf*)
2595         tm_file="mips/elforion.h mips/elf64.h"
2596         tmake_file=mips/t-elf
2597         ;;
2598 mips64orion-*-rtems*)
2599         tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2600         tmake_file="mips/t-elf t-rtems"
2601         if test x$enable_threads = xyes; then
2602           thread_file='rtems'
2603         fi
2604         ;;
2605 mips*-*-rtems*)
2606         tm_file="mips/elf.h mips/rtems.h"
2607         tmake_file="mips/t-elf t-rtems"
2608         if test x$enable_threads = xyes; then
2609           thread_file='rtems'
2610         fi
2611         ;;
2612 mipstx39el-*-elf*)
2613         tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2614         tmake_file=mips/t-r3900
2615         ;;
2616 mipstx39-*-elf*)
2617         tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2618         tmake_file=mips/t-r3900
2619         ;;
2620 mips-*-*)                               # Default MIPS RISC-OS 4.0.
2621         if test x$stabs = xyes; then
2622                 tm_file="${tm_file} dbx.h"
2623         fi
2624         if test x$gas = xyes
2625         then
2626                 tmake_file=mips/t-mips-gas
2627         else
2628                 extra_passes="mips-tfile mips-tdump"
2629         fi
2630         if test x$gnu_ld != xyes
2631         then
2632                 use_collect2=yes
2633         fi
2634         ;;
2635 mn10200-*-*)
2636         float_format=i32
2637         cpu_type=mn10200
2638         tm_file="mn10200/mn10200.h"
2639         if test x$stabs = xyes
2640         then
2641                 tm_file="${tm_file} dbx.h"
2642         fi
2643         use_collect2=no
2644         ;;
2645 mn10300-*-*)
2646         cpu_type=mn10300
2647         tm_file="mn10300/mn10300.h"
2648         if test x$stabs = xyes
2649         then
2650                 tm_file="${tm_file} dbx.h"
2651         fi
2652         use_collect2=no
2653         ;;
2654 ns32k-encore-bsd*)
2655         tm_file=ns32k/encore.h
2656         use_collect2=yes
2657         ;;
2658 ns32k-sequent-bsd*)
2659         tm_file=ns32k/sequent.h
2660         use_collect2=yes
2661         ;;
2662 ns32k-tek6100-bsd*)
2663         tm_file=ns32k/tek6100.h
2664         use_collect2=yes
2665         ;;
2666 ns32k-tek6200-bsd*)
2667         tm_file=ns32k/tek6200.h
2668         use_collect2=yes
2669         ;;
2670 ns32k-merlin-*)
2671         tm_file=ns32k/merlin.h
2672         use_collect2=yes
2673         ;;
2674 ns32k-pc532-mach*)
2675         tm_file=ns32k/pc532-mach.h
2676         use_collect2=yes
2677         ;;
2678 ns32k-pc532-minix*)
2679         tm_file=ns32k/pc532-min.h
2680         xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2681         xm_defines=USG
2682         use_collect2=yes
2683         ;;
2684 ns32k-*-netbsd*)
2685         tm_file=ns32k/netbsd.h
2686         xm_file="ns32k/xm-netbsd.h ${xm_file}"
2687         # On NetBSD, the headers are already okay, except for math.h.
2688         tmake_file=t-netbsd
2689         use_collect2=yes
2690         ;;
2691 pdp11-*-bsd)
2692         tm_file="${tm_file} pdp11/2bsd.h"
2693         ;;
2694 pdp11-*-*)
2695         ;;
2696 avr-*-*)
2697         ;;
2698 ns32k-*-openbsd*)
2699         # Nothing special
2700         ;;
2701 pj*-linux*)
2702         tm_file="svr4.h pj/linux.h ${tm_file}"
2703         ;;
2704 pj-*)
2705         ;;
2706 pjl-*)
2707         tm_file="svr4.h pj/pjl.h ${tm_file}"
2708         ;;
2709
2710 romp-*-aos*)
2711         use_collect2=yes
2712         ;;
2713 romp-*-mach*)
2714         xmake_file=romp/x-mach
2715         use_collect2=yes
2716         ;;
2717 romp-*-openbsd*)
2718         # Nothing special
2719         ;;
2720 powerpc-*-openbsd*)
2721         tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2722         ;;
2723 powerpc-*-beos*)
2724         cpu_type=rs6000
2725         tm_file=rs6000/beos.h
2726         xm_file=rs6000/xm-beos.h
2727         tmake_file=rs6000/t-beos
2728         xmake_file=rs6000/x-beos
2729         ;;
2730 powerpc-*-darwin*)
2731         xm_file="rs6000/xm-rs6000.h rs6000/xm-darwin.h"
2732         xmake_file=rs6000/x-darwin
2733         ;;
2734 powerpc-*-sysv*)
2735         tm_file=rs6000/sysv4.h
2736         xm_file="rs6000/xm-sysv4.h"
2737         xm_defines="USG POSIX"
2738         extra_headers=ppc-asm.h
2739         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2740         xmake_file=rs6000/x-sysv4
2741         ;;
2742 powerpc-*-eabiaix*)
2743         tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2744         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2745         extra_headers=ppc-asm.h
2746         ;;
2747 powerpc-*-eabisim*)
2748         tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2749         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2750         extra_headers=ppc-asm.h
2751         ;;
2752 powerpc-*-elf*)
2753         tm_file="rs6000/sysv4.h"
2754         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2755         extra_headers=ppc-asm.h
2756         ;;
2757 powerpc-*-eabi*)
2758         tm_file="rs6000/sysv4.h rs6000/eabi.h"
2759         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2760         extra_headers=ppc-asm.h
2761         ;;
2762 powerpc-*-rtems*)
2763         tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
2764         tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2765         extra_headers=ppc-asm.h
2766         if test x$enable_threads = xyes; then
2767           thread_file='rtems'
2768         fi
2769         ;;
2770 powerpc-*-linux*libc1)
2771         tm_file="rs6000/sysv4.h rs6000/linux.h"
2772         xm_file=rs6000/xm-sysv4.h
2773         out_file=rs6000/rs6000.c
2774         tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2775         xmake_file=x-linux
2776         extra_headers=ppc-asm.h
2777         if test x$enable_threads = xyes; then
2778                 thread_file='posix'
2779         fi
2780         ;;
2781 powerpc-*-linux*)
2782         tm_file="rs6000/sysv4.h rs6000/linux.h"
2783         xm_file="rs6000/xm-sysv4.h"
2784         xm_defines="USG ${xm_defines}"
2785         out_file=rs6000/rs6000.c
2786         tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2787         xmake_file=x-linux
2788         extra_headers=ppc-asm.h
2789         if test x$enable_threads = xyes; then
2790                 thread_file='posix'
2791         fi
2792         ;;
2793 powerpc-wrs-vxworks*)
2794         cpu_type=rs6000
2795         xm_file="rs6000/xm-sysv4.h"
2796         xm_defines="USG POSIX"
2797         tm_file="rs6000/sysv4.h rs6000/vxppc.h"
2798         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2799         extra_headers=ppc-asm.h
2800         thread_file='vxworks'
2801         ;;
2802 powerpcle-wrs-vxworks*)
2803         cpu_type=rs6000
2804         xm_file="rs6000/xm-sysv4.h"
2805         xm_defines="USG POSIX"
2806         tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2807         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2808         extra_headers=ppc-asm.h
2809         thread_file='vxworks'
2810         ;;
2811 powerpcle-*-sysv*)
2812         tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
2813         xm_file="rs6000/xm-sysv4.h"
2814         xm_defines="USG POSIX"
2815         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2816         xmake_file=rs6000/x-sysv4
2817         extra_headers=ppc-asm.h
2818         ;;
2819 powerpcle-*-elf*)
2820         tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
2821         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2822         extra_headers=ppc-asm.h
2823         ;;
2824 powerpcle-*-eabisim*)
2825         tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2826         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2827         extra_headers=ppc-asm.h
2828         ;;
2829 powerpcle-*-eabi*)
2830         tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2831         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2832         extra_headers=ppc-asm.h
2833         ;;
2834 powerpcle-*-solaris2*)
2835         tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2836         xm_file="rs6000/xm-sysv4.h"
2837         xm_defines="USG POSIX"
2838         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2839         xmake_file=rs6000/x-sysv4
2840         extra_headers=ppc-asm.h
2841         ;;
2842 rs6000-ibm-aix3.[01]*)
2843         tm_file=rs6000/aix31.h
2844         xmake_file=rs6000/x-aix31
2845         float_format=none
2846         use_collect2=yes
2847         ;;
2848 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2849         tm_file=rs6000/aix3newas.h
2850         if test x$host != x$target
2851         then
2852                 tmake_file=rs6000/t-xnewas
2853         else
2854                 tmake_file=rs6000/t-newas
2855         fi
2856         float_format=none
2857         use_collect2=yes
2858         ;;
2859 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2860         tm_file=rs6000/aix41.h
2861         if test x$host != x$target
2862         then
2863                 tmake_file=rs6000/t-xnewas
2864         else
2865                 tmake_file=rs6000/t-newas
2866         fi
2867         if test "$gnu_ld" = yes
2868         then
2869                 xmake_file=rs6000/x-aix41-gld
2870         else
2871                 tmake_file='rs6000/t-newas'
2872         fi
2873         xmake_file=rs6000/x-aix41
2874         float_format=none
2875         use_collect2=yes
2876         ;;
2877 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2878         tm_file=rs6000/aix43.h
2879         tmake_file=rs6000/t-aix43
2880         xmake_file=rs6000/x-aix41
2881         float_format=none
2882         use_collect2=yes
2883         thread_file='aix'
2884         ;;
2885 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2886         tm_file=rs6000/aix43.h
2887         tmake_file=rs6000/t-aix43
2888         xmake_file=rs6000/x-aix41
2889         float_format=none
2890         use_collect2=yes
2891         thread_file='aix'
2892         ;;
2893 rs6000-ibm-aix*)
2894         float_format=none
2895         use_collect2=yes
2896         ;;
2897 rs6000-bull-bosx)
2898         float_format=none
2899         use_collect2=yes
2900         ;;
2901 rs6000-*-mach*)
2902         tm_file=rs6000/mach.h
2903         xm_file="${xm_file} rs6000/xm-mach.h"
2904         xmake_file=rs6000/x-mach
2905         use_collect2=yes
2906         ;;
2907 rs6000-*-lynxos*)
2908         tm_file=rs6000/lynx.h
2909         xm_file=rs6000/xm-lynx.h
2910         tmake_file=rs6000/t-rs6000
2911         xmake_file=rs6000/x-lynx
2912         use_collect2=yes
2913         ;;
2914 sh-*-elf*)
2915         tmake_file="sh/t-sh sh/t-elf"
2916         tm_file="sh/sh.h sh/elf.h"
2917         float_format=sh
2918         ;;
2919 sh-*-rtemself*)
2920         tmake_file="sh/t-sh sh/t-elf t-rtems"
2921         tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
2922         float_format=sh
2923         if test x$enable_threads = xyes; then
2924           thread_file='rtems'
2925         fi
2926         ;;
2927 sh-*-rtems*)
2928         tmake_file="sh/t-sh t-rtems"
2929         tm_file="sh/sh.h sh/rtems.h"
2930         float_format=sh
2931         if test x$enable_threads = xyes; then
2932           thread_file='rtems'
2933         fi
2934         ;;
2935 sh-*-linux*)
2936         tm_file="sh/sh.h sh/elf.h sh/linux.h"
2937         tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2938         xmake_file=x-linux
2939         gas=yes gnu_ld=yes
2940         if test x$enable_threads = xyes; then
2941                 thread_file='posix'
2942         fi
2943         float_format=sh
2944         ;;
2945 sh-*-*)
2946         float_format=sh
2947         ;;
2948 sparc-tti-*)
2949         tm_file=sparc/pbd.h
2950         xm_file="xm-alloca.h ${xm_file}"
2951         xm_defines=USG
2952         ;;
2953 sparc64-wrs-vxworks*)
2954         tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
2955         tmake_file=sparc/t-vxsparc64
2956         use_collect2=yes
2957         ;;
2958 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2959         tm_file=sparc/vxsparc.h
2960         tmake_file=sparc/t-vxsparc
2961         use_collect2=yes
2962         thread_file='vxworks'
2963         ;;
2964 sparc-*-aout*)
2965         tmake_file=sparc/t-sparcbare
2966         tm_file="sparc/aout.h libgloss.h"
2967         ;;
2968 sparc-*-netbsd*)
2969         tm_file=sparc/netbsd.h
2970         tmake_file=t-netbsd
2971         use_collect2=yes
2972         ;;
2973 sparc-*-openbsd*)
2974         # we need collect2 until our bug is fixed...
2975         use_collect2=yes
2976         ;;
2977 sparc-*-bsd*)
2978         tm_file=sparc/bsd.h
2979         ;;
2980 sparc-*-elf*)
2981         tm_file="sparc/sol2.h sparc/elf.h"
2982         tmake_file=sparc/t-elf
2983         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2984         #float_format=i128
2985         float_format=i64
2986         ;;
2987 sparc-*-linux*aout*)            # Sparc's running GNU/Linux, a.out
2988         xm_file="${xm_file} sparc/xm-linux.h"
2989         tm_file=sparc/linux-aout.h
2990         xmake_file=x-linux
2991         gnu_ld=yes
2992         ;;
2993 sparc-*-linux*libc1*)   # Sparc's running GNU/Linux, libc5
2994         xm_file="${xm_file} sparc/xm-linux.h"
2995         xmake_file=x-linux
2996         tm_file=sparc/linux.h
2997         tmake_file="t-linux t-linux-gnulibc1"
2998         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2999         gnu_ld=yes
3000         float_format=sparc
3001         ;;
3002 sparc-*-linux*)         # Sparc's running GNU/Linux, libc6
3003         xm_file="${xm_file} sparc/xm-linux.h"
3004         xmake_file=x-linux
3005         tm_file=sparc/linux.h
3006         tmake_file="t-linux"
3007         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3008         gnu_ld=yes
3009         if test x$enable_threads = xyes; then
3010                 thread_file='posix'
3011         fi
3012         float_format=sparc
3013         ;;
3014 sparc-*-lynxos*)
3015         if test x$gas = xyes
3016         then
3017                 tm_file=sparc/lynx.h
3018         else
3019                 tm_file=sparc/lynx-ng.h
3020         fi
3021         xm_file=sparc/xm-lynx.h
3022         tmake_file=sparc/t-sunos41
3023         xmake_file=x-lynx
3024         ;;
3025 sparc-*-rtemsaout*)
3026         tmake_file="sparc/t-sparcbare t-rtems"
3027         tm_file=sparc/rtems.h
3028         if test x$enable_threads = xyes; then
3029           thread_file='rtems'
3030         fi
3031         ;;
3032 sparc-*-rtems*|sparc-*-rtemself*)
3033         tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
3034         tmake_file="sparc/t-elf t-rtems"
3035         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3036         #float_format=i128
3037         float_format=i64
3038         if test x$enable_threads = xyes; then
3039           thread_file='rtems'
3040         fi
3041         ;;
3042 sparcv9-*-solaris2*)
3043         if test x$gnu_ld = xyes
3044         then
3045                 tm_file=sparc/sol2-64.h
3046         else
3047                 tm_file=sparc/sol2-sld-64.h
3048         fi
3049         xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3050         xm_defines="USG POSIX"
3051         tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3052         if test x$gnu_ld = xyes; then
3053                 tmake_file="$tmake_file sparc/t-slibgcc"
3054         else
3055                 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3056         fi
3057         xmake_file=sparc/x-sysv4
3058         extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3059         float_format=none
3060         if test x${enable_threads} = x ; then
3061             enable_threads=$have_pthread_h
3062             if test x${enable_threads} = x ; then
3063                 enable_threads=$have_thread_h
3064             fi
3065         fi
3066         if test x${enable_threads} = xyes ; then
3067             if test x${have_pthread_h} = xyes ; then
3068                 thread_file='posix'
3069             else
3070                 thread_file='solaris'
3071             fi
3072         fi
3073         ;;
3074 sparc-hal-solaris2*)
3075         xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3076         xm_defines="USG POSIX"
3077         tm_file="sparc/sol2.h sparc/hal.h"
3078         tmake_file="sparc/t-halos sparc/t-sol2"
3079         if test x$gnu_ld = xyes; then
3080                 tmake_file="$tmake_file sparc/t-slibgcc"
3081         else
3082                 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3083         fi
3084         xmake_file=sparc/x-sysv4
3085         extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3086         case $machine in
3087         *-*-solaris2.[0-4])
3088                 float_format=i128
3089         ;;
3090         *)
3091                 float_format=none
3092                 ;;
3093         esac
3094         thread_file='solaris'
3095         ;;
3096 sparc-*-solaris2*)
3097         if test x$gnu_ld = xyes
3098         then
3099                 tm_file=sparc/sol2.h
3100         else
3101                 tm_file=sparc/sol2-sld.h
3102         fi
3103         xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3104         xm_defines="USG POSIX"
3105         tmake_file=sparc/t-sol2
3106         if test x$gnu_ld = xyes; then
3107                 tmake_file="$tmake_file sparc/t-slibgcc"
3108         else
3109                 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3110         fi
3111         xmake_file=sparc/x-sysv4
3112         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3113 # At the moment, 32-to-64 cross compilation doesn't work.
3114 #       case $machine in
3115 #       *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3116 #       *-*-solaris2*)
3117 #               if test x$gnu_ld = xyes
3118 #               then
3119 #                       tm_file=sparc/sol2-64.h
3120 #               else
3121 #                       tm_file=sparc/sol2-sld-64.h
3122 #               fi
3123 #               tmake_file="$tmake_file sparc/t-sol2-64"
3124 #               ;;
3125 #       esac
3126         case $machine in
3127         *-*-solaris2.[0-4])
3128                 float_format=i128
3129                 ;;
3130         *)
3131                 float_format=none
3132                 ;;
3133         esac
3134         if test x${enable_threads} = x; then
3135             enable_threads=$have_pthread_h
3136             if test x${enable_threads} = x; then
3137                 enable_threads=$have_thread_h
3138             fi
3139         fi
3140         if test x${enable_threads} = xyes; then
3141             if test x${have_pthread_h} = xyes; then
3142                 thread_file='posix'
3143             else
3144                 thread_file='solaris'
3145             fi
3146         fi
3147         ;;
3148 sparc-*-sunos4.0*)
3149         tm_file=sparc/sunos4.h
3150         tmake_file=sparc/t-sunos40
3151         use_collect2=yes
3152         ;;
3153 sparc-*-sunos4*)
3154         tm_file=sparc/sunos4.h
3155         tmake_file=sparc/t-sunos41
3156         use_collect2=yes
3157         if test x$gas = xyes; then
3158                 tm_file="${tm_file} sparc/sun4gas.h"
3159         fi
3160         ;;
3161 sparc-*-sunos3*)
3162         tm_file=sparc/sun4o3.h
3163         use_collect2=yes
3164         ;;
3165 sparc-*-sysv4*)
3166         tm_file=sparc/sysv4.h
3167         xm_file="sparc/xm-sysv4.h"
3168         xm_defines="USG POSIX"
3169         tmake_file=t-svr4
3170         xmake_file=sparc/x-sysv4
3171         extra_parts="crtbegin.o crtend.o"
3172         ;;
3173 sparc-*-vxsim*)
3174         xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3175         xm_defines="USG POSIX"
3176         tm_file=sparc/vxsim.h
3177         tmake_file=sparc/t-vxsparc
3178         xmake_file=sparc/x-sysv4
3179         ;;
3180 sparclet-*-aout*)
3181         tm_file="sparc/splet.h libgloss.h"
3182         tmake_file=sparc/t-splet
3183         ;;
3184 sparclite-*-coff*)
3185         tm_file="sparc/litecoff.h libgloss.h"
3186         tmake_file=sparc/t-sparclite
3187         ;;
3188 sparclite-*-aout*)
3189         tm_file="sparc/lite.h aoutos.h libgloss.h"
3190         tmake_file=sparc/t-sparclite
3191         ;;
3192 sparclite-*-elf*)
3193         tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
3194         tmake_file=sparc/t-sparclite
3195         extra_parts="crtbegin.o crtend.o"
3196         ;;
3197 sparc86x-*-aout*)
3198         tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3199         tmake_file=sparc/t-sp86x
3200         ;;
3201 sparc86x-*-elf*)        
3202         tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
3203         tmake_file=sparc/t-sp86x
3204         extra_parts="crtbegin.o crtend.o"
3205         ;;
3206 sparc64-*-aout*)
3207         tmake_file=sparc/t-sp64
3208         tm_file=sparc/sp64-aout.h
3209         ;;
3210 sparc64-*-elf*)
3211         tmake_file=sparc/t-sp64
3212         tm_file=sparc/sp64-elf.h
3213         extra_parts="crtbegin.o crtend.o"
3214         ;;
3215 sparc64-*-linux*)               # 64-bit Sparc's running GNU/Linux
3216         tmake_file="t-linux sparc/t-linux64"
3217         xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3218         tm_file=sparc/linux64.h
3219         xmake_file=x-linux
3220         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3221         gnu_ld=yes
3222         if test x$enable_threads = xyes; then
3223                 thread_file='posix'
3224         fi
3225         float_format=sparc
3226         ;;
3227 strongarm-*-elf*)
3228         tm_file=arm/strongarm-elf.h
3229         tmake_file=arm/t-strongarm-elf
3230         out_file=arm/arm.c
3231         xm_file=arm/xm-arm.h
3232         md_file=arm/arm.md
3233         ;;
3234 strongarm-*-coff*)
3235         tm_file=arm/strongarm-coff.h
3236         tmake_file=arm/t-strongarm-coff
3237         out_file=arm/arm.c
3238         xm_file=arm/xm-arm.h
3239         md_file=arm/arm.md
3240         ;;
3241 strongarm-*-pe)
3242         tm_file=arm/strongarm-pe.h
3243         tmake_file=arm/t-strongarm-pe
3244         out_file=arm/arm.c
3245         xm_file=arm/xm-arm.h
3246         md_file=arm/arm.md
3247         extra_objs=pe.o
3248         ;;
3249 thumb*-*-*)
3250         { echo "config.gcc: error:
3251 *** The Thumb targets have been deprecated.  The equivalent
3252 *** ARM based toolchain can now generate Thumb instructions
3253 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3254         ;;
3255 v850-*-rtems*)
3256         cpu_type=v850
3257         tm_file="v850/rtems.h"
3258         xm_file="v850/xm-v850.h"
3259         tmake_file="v850/t-v850 t-rtems"
3260         if test x$stabs = xyes
3261         then
3262                 tm_file="${tm_file} dbx.h"
3263         fi
3264         use_collect2=no
3265         c_target_objs="v850-c.o"
3266         cxx_target_objs="v850-c.o"
3267         ;;
3268 v850-*-*)
3269         target_cpu_default="TARGET_CPU_generic"
3270         cpu_type=v850
3271         tm_file="v850/v850.h"
3272         xm_file="v850/xm-v850.h"
3273         tmake_file=v850/t-v850
3274         if test x$stabs = xyes
3275         then
3276                 tm_file="${tm_file} dbx.h"
3277         fi
3278         use_collect2=no
3279         c_target_objs="v850-c.o"
3280         cxx_target_objs="v850-c.o"
3281         ;;
3282 vax-*-bsd*)                     # vaxen running BSD
3283         use_collect2=yes
3284         float_format=vax
3285         ;;
3286 vax-*-sysv*)                    # vaxen running system V
3287         tm_file="${tm_file} vax/vaxv.h"
3288         xm_defines=USG
3289         float_format=vax
3290         ;;
3291 vax-*-netbsd*)
3292         tm_file="${tm_file} netbsd.h vax/netbsd.h"
3293         tmake_file=t-netbsd
3294         float_format=vax
3295         use_collect2=yes
3296         ;;
3297 vax-*-openbsd*)
3298         tmake_file="${tmake_file} vax/t-openbsd"
3299         tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3300         xm_file="xm-openbsd.h vax/xm-vax.h"
3301         float_format=vax
3302         use_collect2=yes
3303         ;;
3304 vax-*-ultrix*)                  # vaxen running ultrix
3305         tm_file="${tm_file} vax/ultrix.h"
3306         float_format=vax
3307         ;;
3308 vax-*-vms*)                     # vaxen running VMS
3309         xm_file=vax/xm-vms.h
3310         tm_file=vax/vms.h
3311         float_format=vax
3312         ;;
3313 vax-*-*)                        # vax default entry
3314         float_format=vax
3315         ;;
3316 we32k-att-sysv*)
3317         xm_file="${xm_file} xm-svr3"
3318         use_collect2=yes
3319         ;;
3320 xscale-*-elf)
3321         tm_file=arm/xscale-elf.h
3322         tmake_file=arm/t-xscale-elf
3323         out_file=arm/arm.c
3324         xm_file=arm/xm-arm.h
3325         md_file=arm/arm.md
3326         ;;
3327 xscale-*-coff)
3328         tm_file=arm/xscale-coff.h
3329         tmake_file=arm/t-xscale-coff
3330         out_file=arm/arm.c
3331         xm_file=arm/xm-arm.h
3332         md_file=arm/arm.md
3333         ;;
3334 *)
3335         echo "Configuration $machine not supported" 1>&2
3336         exit 1
3337         ;;
3338 esac
3339
3340 case $machine in
3341 *-*-sysv4*)
3342         xmake_try_sysv=x-sysv
3343         install_headers_dir=install-headers-cpio
3344         ;;
3345 *-*-sysv*)
3346         install_headers_dir=install-headers-cpio
3347         ;;
3348 esac
3349
3350 # Distinguish i[34567]86
3351 # Also, do not run mips-tfile on MIPS if using gas.
3352 # Process --with-cpu= for PowerPC/rs6000
3353 target_cpu_default2=
3354 case $machine in
3355 i486-*-*)
3356         target_cpu_default2=1
3357         ;;
3358 i586-*-*)
3359         case $target_alias in
3360                 k6-*)
3361                         target_cpu_default2=4
3362                         ;;
3363                 *)
3364                         target_cpu_default2=2
3365                         ;;
3366         esac
3367         ;;
3368 i686-*-* | i786-*-*)
3369         target_cpu_default2=3
3370         ;;
3371 alpha*-*-*)
3372         case $machine in
3373                 alphaev6[78]*)
3374                         target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3375                         ;;
3376                 alphaev6*)
3377                         target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3378                         ;;
3379                 alphapca56*)
3380                         target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3381                         ;;
3382                 alphaev56*)
3383                         target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3384                         ;;
3385                 alphaev5*)
3386                         target_cpu_default2="MASK_CPU_EV5"
3387                         ;;
3388         esac
3389                         
3390         if test x$gas = xyes
3391         then
3392                 if test "$target_cpu_default2" = ""
3393                 then
3394                         target_cpu_default2="MASK_GAS"
3395                 else
3396                         target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3397                 fi
3398         fi
3399         ;;
3400 arm*-*-*)
3401         case "x$with_cpu" in
3402                 x)
3403                         # The most generic
3404                         target_cpu_default2="TARGET_CPU_generic"
3405                         ;;
3406
3407                 # Distinguish cores, and major variants
3408                 # arm7m doesn't exist, but D & I don't affect code
3409                 xarm[236789] | xarm250 | xarm[67][01]0 \
3410                 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3411                 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3412                 | xxscale \
3413                 | xstrongarm | xstrongarm110 | xstrongarm1100)
3414                         target_cpu_default2="TARGET_CPU_$with_cpu"
3415                         ;;
3416
3417                 xyes | xno)
3418                         echo "--with-cpu must be passed a value" 1>&2
3419                         exit 1
3420                         ;;
3421
3422                 *)
3423                         if test x$pass2done = xyes
3424                         then
3425                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3426                                 exit 1
3427                         fi
3428                         ;;
3429         esac
3430         ;;
3431
3432 mips*-*-ecoff* | mips*-*-elf*)
3433         if test x$gas = xyes
3434         then
3435                 if test x$gnu_ld = xyes
3436                 then
3437                         target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3438                 else
3439                         target_cpu_default2="MASK_GAS"
3440                 fi
3441         fi
3442         ;;
3443 mips*-*-*)
3444         if test x$gas = xyes
3445         then
3446                 target_cpu_default2="MASK_GAS"
3447         fi
3448         ;;
3449 powerpc*-*-* | rs6000-*-*)
3450         case "x$with_cpu" in
3451                 x)
3452                         ;;
3453
3454                 xcommon | xpower | xpower2 | xpowerpc | xrios \
3455                   | xrios1 | xrios2 | xrsc | xrsc1 \
3456                   | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3457                   | xec603e | x740 | x750 | x401 \
3458                   | x403 | x505 | x801 | x821 | x823 | x860)
3459                         target_cpu_default2="\"$with_cpu\""
3460                         ;;
3461
3462                 xyes | xno)
3463                         echo "--with-cpu must be passed a value" 1>&2
3464                         exit 1
3465                         ;;
3466
3467                 *)
3468                         if test x$pass2done = xyes
3469                         then
3470                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3471                                 exit 1
3472                         fi
3473                         ;;
3474         esac
3475         ;;
3476 sparc*-*-*)
3477         case ".$with_cpu" in
3478                 .)
3479                         target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3480                         ;;
3481                 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3482                         target_cpu_default2="TARGET_CPU_$with_cpu"
3483                         ;;
3484                 *)
3485                         if test x$pass2done = xyes
3486                         then
3487                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3488                                 exit 1
3489                         fi
3490                         ;;
3491         esac
3492         ;;
3493 esac
3494
3495 if test "$target_cpu_default2" != ""
3496 then
3497         if test "$target_cpu_default" != ""
3498         then
3499                 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3500         else
3501                 target_cpu_default=$target_cpu_default2
3502         fi
3503 fi
3504
3505 # No need for collect2 if we have the GNU linker.
3506 # Actually, there is now; GNU ld doesn't handle the EH info or
3507 # collecting for shared libraries.
3508 #case x$gnu_ld in
3509 #xyes)
3510 #       use_collect2=
3511 #       ;;
3512 #esac
3513
3514 # Save data on machine being used to compile GCC in build_xm_file.
3515 # Save data on host machine in vars host_xm_file and host_xmake_file.
3516 if test x$pass1done = x
3517 then
3518         if test x"$xm_file" = x
3519         then build_xm_file=$cpu_type/xm-$cpu_type.h
3520         else build_xm_file=$xm_file
3521         fi
3522         build_xm_defines=$xm_defines
3523         build_install_headers_dir=$install_headers_dir
3524         build_exeext=$exeext
3525         pass1done=yes
3526 else
3527         if test x$pass2done = x
3528         then
3529                 if test x"$xm_file" = x
3530                 then host_xm_file=$cpu_type/xm-$cpu_type.h
3531                 else host_xm_file=$xm_file
3532                 fi
3533                 host_xm_defines=$xm_defines
3534                 if test x"$xmake_file" = x
3535                 then xmake_file=$cpu_type/x-$cpu_type
3536                 fi
3537                 host_xmake_file="$xmake_file"
3538                 host_truncate_target=$truncate_target
3539                 host_extra_gcc_objs=$extra_gcc_objs
3540                 host_extra_objs=$extra_host_objs
3541                 host_exeext=$exeext
3542                 pass2done=yes
3543         fi
3544 fi