]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/configure.in
* call.c (null_ptr_cst_p): Integer type, not integral type.
[thirdparty/gcc.git] / gcc / configure.in
CommitLineData
46f18e7b
RK
1# configure.in for GNU CC
2# Process this file with autoconf to generate a configuration script.
3
4# Copyright (C) 1997 Free Software Foundation, Inc.
5
6#This file is part of GNU CC.
7
8#GNU CC is free software; you can redistribute it and/or modify
9#it under the terms of the GNU General Public License as published by
10#the Free Software Foundation; either version 2, or (at your option)
11#any later version.
12
13#GNU CC is distributed in the hope that it will be useful,
14#but WITHOUT ANY WARRANTY; without even the implied warranty of
15#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16#GNU General Public License for more details.
17
18#You should have received a copy of the GNU General Public License
19#along with GNU CC; see the file COPYING. If not, write to
20#the Free Software Foundation, 59 Temple Place - Suite 330,
21#Boston, MA 02111-1307, USA.
22
23# Initialization and defaults
24AC_INIT(tree.c)
cdcc6a01
DE
25AC_CONFIG_HEADER(config.h:config.in)
26
46f18e7b
RK
27remove=rm
28hard_link=ln
29symbolic_link='ln -s'
30copy=cp
31
32# Check for additional parameters
33
34# With GNU ld
35AC_ARG_WITH(gnu-ld,
36[ --with-gnu-ld arrange to work with GNU ld.],
37gnu_ld=yes,
38gnu_ld=no)
39
40# With GNU as
41AC_ARG_WITH(gnu-as,
4d8392b7 42[ --with-gnu-as arrange to work with GNU as.],
46f18e7b
RK
43gas=yes,
44gas=no)
45
46# With stabs
47AC_ARG_WITH(stabs,
48[ --with-stabs arrange to use stabs instead of host debug format.],
49stabs=yes,
50stabs=no)
51
52# With ELF
53AC_ARG_WITH(elf,
54[ --with-elf arrange to use ELF instead of host debug format.],
55elf=yes,
56elf=no)
57
4d8392b7
RK
58# Specify the local prefix
59AC_ARG_WITH(local-prefix,
60[ --with-local-prefix=DIR specifies directory to put local include.],
61local_prefix=$with_local_prefix,
62local_prefix=/usr/local)
63
64# Default local prefix if it is empty
65if [[ x$local_prefix = x ]]; then
66 local_prefix=/usr/local
67fi
68
9514f0d1
RK
69# Specify the g++ header file directory
70AC_ARG_WITH(gxx-include-dir,
71[ --with-gxx-include-dir=DIR
72 specifies directory to put g++ header files.],
73gxx_include_dir=$with_gxx_include_dir,
74gxx_include_dir='${prefix}/include/g++')
75
76# Default g++ header file directory if it is empty
77if [[ x$gxx_include_dir = x ]]; then
78 gxx_include_dir='${prefix}/include/g++'
79fi
46f18e7b 80
b4294351
PB
81# Enable use of cpplib for C.
82AC_ARG_ENABLE(c-cpplib,
83[ --enable-c-cpplib Use cpplib for C.],
84if [[[ x$enable_c_cpplib != xno ]]]; then
85 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
86 extra_c_flags=-DUSE_CPPLIB=1
87fi)
88
0bbb1697
RK
89# Enable threads
90# Pass with no value to take the default
91# Pass with a value to specify a thread package
92AC_ARG_ENABLE(threads,
93[ --enable-threads enable thread usage for target GCC.
94 --enable-threads=LIB use LIB thread package for target GCC.],
95if [[[ x$enable_threads = xno ]]]; then
96 enable_threads=''
97fi,
98enable_threads='')
99
100# Check if a valid thread package
101case x${enable_threads} in
102 x | xno)
103 # No threads
104 thread_file='single'
105 ;;
106 xyes)
107 # default
108 thread_file=''
109 ;;
110 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
111 xsolaris | xwin32)
112 thread_file=$enable_threads
113 ;;
114 *)
115 echo "$enable_threads is an unknown thread package" 1>&2
116 exit 1
117 ;;
118esac
119
46f18e7b
RK
120# Determine the host, build, and target systems
121AC_CANONICAL_SYSTEM
122
123# Find some useful tools
124AC_PROG_AWK
125AC_PROG_LEX
ac64120e
JW
126GCC_PROG_LN
127GCC_PROG_LN_S
46f18e7b
RK
128AC_PROG_RANLIB
129AC_PROG_YACC
130AC_PROG_INSTALL
131
132# Find the native compiler
133AC_PROG_CC
134AC_PROG_MAKE_SET
135
70988851 136AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h varargs.h sys/varargs.h)
cdcc6a01
DE
137
138GCC_NEED_DECLARATION(malloc)
139GCC_NEED_DECLARATION(realloc)
19372aa1 140GCC_NEED_DECLARATION(calloc)
cdcc6a01
DE
141GCC_NEED_DECLARATION(free)
142
e3512ac2
JL
143AC_DECL_SYS_SIGLIST
144
a63d08e6
JL
145AC_CHECK_FUNCS(strerror)
146
46f18e7b
RK
147# File extensions
148manext='.1'
149objext='.o'
46f18e7b
RK
150AC_SUBST(manext)
151AC_SUBST(objext)
46f18e7b
RK
152
153build_xm_file=
46f18e7b
RK
154build_install_headers_dir=install-headers-tar
155build_exeext=
156host_xm_file=
157host_xmake_file=
158host_truncate_target=
159
160# Decode the host machine, then the target machine.
161# For the host machine, we save the xm_file variable as host_xm_file;
162# then we decode the target machine and forget everything else
163# that came from the host machine.
164for machine in $build $host $target; do
165
166 out_file=
167 xmake_file=
168 tmake_file=
169 extra_headers=
170 extra_passes=
171 extra_parts=
172 extra_programs=
173 extra_objs=
174 extra_host_objs=
175 extra_gcc_objs=
176 float_format=
177 # Set this to force installation and use of collect2.
178 use_collect2=
179 # Set this to override the default target model.
180 target_cpu_default=
46f18e7b
RK
181 # Set this to control which fixincludes program to use.
182 fixincludes=fixincludes
183 # Set this to control how the header file directory is installed.
184 install_headers_dir=install-headers-tar
185 # Set this to a non-empty list of args to pass to cpp if the target
186 # wants its .md file passed through cpp.
187 md_cppflags=
188 # Set this if directory names should be truncated to 14 characters.
189 truncate_target=
190 # Set this if gdb needs a dir command with `dirname $out_file`
191 gdb_needs_out_file_path=
46f18e7b
RK
192 # Set this if the build machine requires executables to have a
193 # file name suffix.
194 exeext=
195
196 # Set default cpu_type, tm_file and xm_file so it can be updated in
197 # each machine entry.
198 cpu_type=`echo $machine | sed 's/-.*$//'`
199 case $machine in
08fc0184
RK
200 alpha*-*-*)
201 cpu_type=alpha
202 ;;
46f18e7b
RK
203 arm*-*-*)
204 cpu_type=arm
205 ;;
206 c*-convex-*)
207 cpu_type=convex
208 ;;
209 i[[3456]]86-*-*)
210 cpu_type=i386
211 ;;
212 hppa*-*-*)
213 cpu_type=pa
214 ;;
215 m68000-*-*)
216 cpu_type=m68k
217 ;;
218 mips*-*-*)
219 cpu_type=mips
220 ;;
221 powerpc*-*-*)
222 cpu_type=rs6000
223 ;;
224 pyramid-*-*)
225 cpu_type=pyr
226 ;;
227 sparc*-*-*)
228 cpu_type=sparc
229 ;;
230 esac
231
232 tm_file=${cpu_type}/${cpu_type}.h
233 xm_file=${cpu_type}/xm-${cpu_type}.h
234
235 case $machine in
236 # Support site-specific machine types.
237 *local*)
238 cpu_type=`echo $machine | sed -e 's/-.*//'`
239 rest=`echo $machine | sed -e "s/$cpu_type-//"`
240 xm_file=${cpu_type}/xm-$rest.h
241 tm_file=${cpu_type}/$rest.h
242 if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \
243 then xmake_file=${cpu_type}/x-$rest; \
244 else true; \
245 fi
246 if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \
247 then tmake_file=${cpu_type}/t-$rest; \
248 else true; \
249 fi
250 ;;
251 1750a-*-*)
252 ;;
253 a29k-*-bsd* | a29k-*-sym1*)
254 tm_file="${tm_file} a29k/unix.h"
255 xm_file=a29k/xm-unix.h
256 xmake_file=a29k/x-unix
257 use_collect2=yes
258 ;;
259 a29k-*-udi | a29k-*-coff)
260 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
261 tmake_file=a29k/t-a29kbare
262 ;;
263 a29k-*-vxworks*)
264 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
265 tmake_file=a29k/t-vx29k
266 extra_parts="crtbegin.o crtend.o"
267 ;;
268 a29k-*-*) # Default a29k environment.
269 use_collect2=yes
270 ;;
08fc0184 271 alpha*-*-linux-gnuecoff*)
46f18e7b
RK
272 tm_file="${tm_file} alpha/linux.h"
273 xm_file="${xm_file} alpha/xm-linux.h"
e71c3bb0
RK
274 target_cpu_default="MASK_GAS"
275 gas=no
46f18e7b
RK
276 xmake_file=none
277 fixincludes=Makefile.in
278 gas=yes gnu_ld=yes
279 ;;
704a6306
RH
280 alpha*-*-linux-gnulibc1*)
281 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
282 xm_file="${xm_file} alpha/xm-linux.h"
283 target_cpu_default="MASK_GAS"
284 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux"
285 xmake_file=none
286 fixincludes=Makefile.in
287 gas=yes gnu_ld=yes
288 if [[ x$enable_threads = xyes ]]; then
289 thread_file='posix'
290 fi
291 ;;
08fc0184 292 alpha*-*-linux-gnu*)
46f18e7b
RK
293 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
294 xm_file="${xm_file} alpha/xm-linux.h"
e71c3bb0 295 target_cpu_default="MASK_GAS"
1c988fb7 296 tmake_file="t-linux alpha/t-linux"
46f18e7b
RK
297 xmake_file=none
298 fixincludes=Makefile.in
46f18e7b 299 gas=yes gnu_ld=yes
d1054723 300 if [[ x$enable_threads = xyes ]]; then
c811d261
RK
301 thread_file='posix'
302 fi
46f18e7b 303 ;;
08fc0184 304 alpha*-dec-osf[[456789]]*)
dec3e070
JW
305 if [[ x$stabs = xyes ]]
306 then
307 tm_file="${tm_file} dbx.h"
308 fi
309 if [[ x$gas != xyes ]]
310 then
311 extra_passes="mips-tfile mips-tdump"
312 fi
dec3e070
JW
313 use_collect2=yes
314 # Some versions of OSF4 (specifically X4.0-9 296.7) have
315 # a broken tar, so we use cpio instead.
316 case $machine in
08fc0184 317 alpha*-dec-osf4*)
dec3e070
JW
318 install_headers_dir=install-headers-cpio
319 ;;
320 esac
321 ;;
08fc0184 322 alpha*-dec-osf[[23]]*)
dec3e070 323 tm_file="${tm_file} alpha/osf2or3.h"
46f18e7b
RK
324 if [[ x$stabs = xyes ]]
325 then
326 tm_file="${tm_file} dbx.h"
327 fi
328 if [[ x$gas != xyes ]]
329 then
330 extra_passes="mips-tfile mips-tdump"
331 fi
46f18e7b
RK
332 use_collect2=yes
333 ;;
08fc0184 334 alpha*-dec-osf1.2)
46f18e7b
RK
335 tm_file="${tm_file} alpha/osf12.h"
336 if [[ x$stabs = xyes ]]
337 then
338 tm_file="${tm_file} dbx.h"
339 fi
340 if [[ x$gas != xyes ]]
341 then
342 extra_passes="mips-tfile mips-tdump"
343 fi
46f18e7b
RK
344 use_collect2=yes
345 ;;
08fc0184 346 alpha*-*-osf*)
46f18e7b
RK
347 if [[ x$stabs = xyes ]]
348 then
349 tm_file="${tm_file} dbx.h"
350 fi
351 if [[ x$gas != xyes ]]
352 then
353 extra_passes="mips-tfile mips-tdump"
354 fi
46f18e7b
RK
355 use_collect2=yes
356 ;;
08fc0184 357 alpha*-*-winnt3*)
46f18e7b 358 tm_file="${tm_file} alpha/win-nt.h"
08fc0184 359 target_cpu_default=MASK_WINDOWS_NT
46f18e7b
RK
360 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
361 tmake_file=t-libc-ok
362 xmake_file=winnt/x-winnt
363 extra_host_objs=oldnames.o
364 extra_gcc_objs="spawnv.o oldnames.o"
365 fixincludes=fixinc.winnt
366 if [[ x$gnu_ld != xyes ]]
367 then
368 extra_programs=ld.exe
369 fi
434332b5 370 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
371 thread_file='win32'
372 fi
46f18e7b 373 ;;
08fc0184 374 alpha*-dec-vms*)
46f18e7b
RK
375 tm_file=alpha/vms.h
376 xm_file="${xm_file} alpha/xm-vms.h"
377 tmake_file=alpha/t-vms
378 fixincludes=Makefile.in
379 ;;
66ed0683
JL
380 arc-*-elf*)
381 extra_parts="crtinit.o crtfini.o"
382 ;;
46f18e7b
RK
383 arm-*-coff* | armel-*-coff*)
384 tm_file=arm/coff.h
385 tmake_file=arm/t-bare
386 ;;
387 arm-*-riscix1.[[01]]*) # Acorn RISC machine (early versions)
388 tm_file=arm/riscix1-1.h
389 use_collect2=yes
390 ;;
391 arm-*-riscix*) # Acorn RISC machine
392 if [[ x$gas = xyes ]]
393 then
394 tm_file=arm/rix-gas.h
395 else
396 tm_file=arm/riscix.h
397 fi
398 xmake_file=arm/x-riscix
399 tmake_file=arm/t-riscix
400 use_collect2=yes
401 ;;
402 arm-semi-aout | armel-semi-aout)
403 tm_file=arm/semi.h
404 tmake_file=arm/t-semi
405 fixincludes=Makefile.in # There is nothing to fix
406 ;;
407 arm-semi-aof | armel-semi-aof)
408 tm_file=arm/semiaof.h
409 tmake_file=arm/t-semiaof
410 fixincludes=Makefile.in # There is nothing to fix
411 ;;
d23f4158
RE
412 arm-*-netbsd*)
413 tm_file=arm/netbsd.h
414 xm_file=arm/xm-netbsd.h
e3482774 415 tmake_file=arm/t-netbsd
be1ed94f
JL
416 # On NetBSD, the headers are already okay, except for math.h.
417 fixincludes=fixinc.math
d23f4158
RE
418 use_collect2=yes
419 ;;
844dadc7 420 arm-*-linux-gnuaout*) # ARM Linux
618d2e70
RK
421 cpu_type=arm
422 xm_file=arm/xm-linux.h
423 xmake_file=x-linux
424 tm_file=arm/linux-gas.h
425 tmake_file=arm/t-linux
426 fixincludes=Makefile.in
618d2e70
RK
427 gnu_ld=yes
428 ;;
f5967c59
RE
429 arm-*-aout)
430 tm_file=arm/aout.h
46f18e7b
RK
431 ;;
432 c1-convex-*) # Convex C1
433 target_cpu_default=1
434 use_collect2=yes
435 fixincludes=Makefile.in
436 ;;
437 c2-convex-*) # Convex C2
438 target_cpu_default=2
439 use_collect2=yes
440 fixincludes=Makefile.in
441 ;;
442 c32-convex-*)
443 target_cpu_default=4
444 use_collect2=yes
445 fixincludes=Makefile.in
446 ;;
447 c34-convex-*)
448 target_cpu_default=8
449 use_collect2=yes
450 fixincludes=Makefile.in
451 ;;
452 c38-convex-*)
453 target_cpu_default=16
454 use_collect2=yes
455 fixincludes=Makefile.in
456 ;;
457 clipper-intergraph-clix*)
458 tm_file="${tm_file} svr3.h clipper/clix.h"
459 xm_file=clipper/xm-clix.h
460 xmake_file=clipper/x-clix
461 extra_headers=va-clipper.h
462 extra_parts="crtbegin.o crtend.o"
463 install_headers_dir=install-headers-cpio
46f18e7b
RK
464 ;;
465 dsp16xx-*)
466 ;;
467 elxsi-elxsi-*)
468 use_collect2=yes
469 ;;
470# This hasn't been upgraded to GCC 2.
471# fx80-alliant-*) # Alliant FX/80
472# ;;
473 h8300-*-*)
474 float_format=i32
475 ;;
476 hppa1.1-*-pro*)
2da05a5b
JL
477 if [[ x$enable_haifa != xno ]]; then
478 enable_haifa=yes
479 fi
46f18e7b
RK
480 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
481 xm_file=pa/xm-papro.h
482 tmake_file=pa/t-pro
483 ;;
484 hppa1.1-*-osf*)
2da05a5b
JL
485 if [[ x$enable_haifa != xno ]]; then
486 enable_haifa=yes
487 fi
46f18e7b
RK
488 target_cpu_default=1
489 tm_file="${tm_file} pa/pa-osf.h"
490 use_collect2=yes
491 fixincludes=Makefile.in
492 ;;
dec3e070 493 hppa1.1-*-rtems*)
2da05a5b
JL
494 if [[ x$enable_haifa != xno ]]; then
495 enable_haifa=yes
496 fi
dec3e070
JW
497 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
498 xm_file=pa/xm-papro.h
499 tmake_file=pa/t-pro
500 ;;
46f18e7b 501 hppa1.0-*-osf*)
2da05a5b
JL
502 if [[ x$enable_haifa != xno ]]; then
503 enable_haifa=yes
504 fi
46f18e7b
RK
505 tm_file="${tm_file} pa/pa-osf.h"
506 use_collect2=yes
507 fixincludes=Makefile.in
508 ;;
509 hppa1.1-*-bsd*)
2da05a5b
JL
510 if [[ x$enable_haifa != xno ]]; then
511 enable_haifa=yes
512 fi
46f18e7b
RK
513 target_cpu_default=1
514 use_collect2=yes
515 fixincludes=Makefile.in
516 ;;
517 hppa1.0-*-bsd*)
2da05a5b
JL
518 if [[ x$enable_haifa != xno ]]; then
519 enable_haifa=yes
520 fi
46f18e7b
RK
521 use_collect2=yes
522 fixincludes=Makefile.in
523 ;;
524 hppa1.0-*-hpux7*)
2da05a5b
JL
525 if [[ x$enable_haifa != xno ]]; then
526 enable_haifa=yes
527 fi
46f18e7b
RK
528 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
529 xm_file=pa/xm-pahpux.h
530 xmake_file=pa/x-pa-hpux
531 if [[ x$gas = xyes ]]
532 then
533 tm_file="${tm_file} pa/gas.h"
534 fi
46f18e7b
RK
535 install_headers_dir=install-headers-cpio
536 use_collect2=yes
537 ;;
538 hppa1.0-*-hpux8.0[[0-2]]*)
2da05a5b
JL
539 if [[ x$enable_haifa != xno ]]; then
540 enable_haifa=yes
541 fi
46f18e7b
RK
542 tm_file="${tm_file} pa/pa-hpux.h"
543 xm_file=pa/xm-pahpux.h
544 xmake_file=pa/x-pa-hpux
545 if [[ x$gas = xyes ]]
546 then
547 tm_file="${tm_file} pa/pa-gas.h"
548 else
549 tm_file="pa/pa-oldas.h ${tm_file}"
550 fi
46f18e7b
RK
551 install_headers_dir=install-headers-cpio
552 use_collect2=yes
553 ;;
554 hppa1.1-*-hpux8.0[[0-2]]*)
2da05a5b
JL
555 if [[ x$enable_haifa != xno ]]; then
556 enable_haifa=yes
557 fi
46f18e7b
RK
558 target_cpu_default=1
559 tm_file="${tm_file} pa/pa-hpux.h"
560 xm_file=pa/xm-pahpux.h
561 xmake_file=pa/x-pa-hpux
562 if [[ x$gas = xyes ]]
563 then
564 tm_file="${tm_file} pa/pa-gas.h"
565 else
566 tm_file="pa/pa-oldas.h ${tm_file}"
567 fi
46f18e7b
RK
568 install_headers_dir=install-headers-cpio
569 use_collect2=yes
570 ;;
571 hppa1.1-*-hpux8*)
2da05a5b
JL
572 if [[ x$enable_haifa != xno ]]; then
573 enable_haifa=yes
574 fi
46f18e7b
RK
575 target_cpu_default=1
576 tm_file="${tm_file} pa/pa-hpux.h"
577 xm_file=pa/xm-pahpux.h
578 xmake_file=pa/x-pa-hpux
579 if [[ x$gas = xyes ]]
580 then
581 tm_file="${tm_file} pa/pa-gas.h"
582 fi
46f18e7b
RK
583 install_headers_dir=install-headers-cpio
584 use_collect2=yes
585 ;;
586 hppa1.0-*-hpux8*)
2da05a5b
JL
587 if [[ x$enable_haifa != xno ]]; then
588 enable_haifa=yes
589 fi
46f18e7b
RK
590 tm_file="${tm_file} pa/pa-hpux.h"
591 xm_file=pa/xm-pahpux.h
592 xmake_file=pa/x-pa-hpux
593 if [[ x$gas = xyes ]]
594 then
595 tm_file="${tm_file} pa/pa-gas.h"
596 fi
46f18e7b
RK
597 install_headers_dir=install-headers-cpio
598 use_collect2=yes
599 ;;
600 hppa1.1-*-hpux10*)
2da05a5b
JL
601 if [[ x$enable_haifa != xno ]]; then
602 enable_haifa=yes
603 fi
46f18e7b
RK
604 target_cpu_default=1
605 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
606 xm_file=pa/xm-pahpux.h
607 xmake_file=pa/x-pa-hpux
608 if [[ x$gas = xyes ]]
609 then
610 tm_file="${tm_file} pa/pa-gas.h"
611 fi
46f18e7b
RK
612 install_headers_dir=install-headers-cpio
613 use_collect2=yes
614 ;;
615 hppa1.0-*-hpux10*)
2da05a5b
JL
616 if [[ x$enable_haifa != xno ]]; then
617 enable_haifa=yes
618 fi
46f18e7b
RK
619 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
620 xm_file=pa/xm-pahpux.h
621 xmake_file=pa/x-pa-hpux
622 if [[ x$gas = xyes ]]
623 then
624 tm_file="${tm_file} pa/pa-gas.h"
625 fi
46f18e7b
RK
626 install_headers_dir=install-headers-cpio
627 use_collect2=yes
628 ;;
629 hppa1.1-*-hpux*)
2da05a5b
JL
630 if [[ x$enable_haifa != xno ]]; then
631 enable_haifa=yes
632 fi
46f18e7b
RK
633 target_cpu_default=1
634 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
635 xm_file=pa/xm-pahpux.h
636 xmake_file=pa/x-pa-hpux
637 if [[ x$gas = xyes ]]
638 then
639 tm_file="${tm_file} pa/pa-gas.h"
640 fi
46f18e7b
RK
641 install_headers_dir=install-headers-cpio
642 use_collect2=yes
643 ;;
644 hppa1.0-*-hpux*)
2da05a5b
JL
645 if [[ x$enable_haifa != xno ]]; then
646 enable_haifa=yes
647 fi
46f18e7b
RK
648 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
649 xm_file=pa/xm-pahpux.h
650 xmake_file=pa/x-pa-hpux
651 if [[ x$gas = xyes ]]
652 then
653 tm_file="${tm_file} pa/pa-gas.h"
654 fi
46f18e7b
RK
655 install_headers_dir=install-headers-cpio
656 use_collect2=yes
657 ;;
658 hppa1.1-*-hiux*)
2da05a5b
JL
659 if [[ x$enable_haifa != xno ]]; then
660 enable_haifa=yes
661 fi
46f18e7b
RK
662 target_cpu_default=1
663 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
664 xm_file=pa/xm-pahpux.h
665 xmake_file=pa/x-pa-hpux
666 if [[ x$gas = xyes ]]
667 then
668 tm_file="${tm_file} pa/pa-gas.h"
669 fi
46f18e7b
RK
670 install_headers_dir=install-headers-cpio
671 use_collect2=yes
672 ;;
673 hppa1.0-*-hiux*)
2da05a5b
JL
674 if [[ x$enable_haifa != xno ]]; then
675 enable_haifa=yes
676 fi
46f18e7b
RK
677 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
678 xm_file=pa/xm-pahpux.h
679 xmake_file=pa/x-pa-hpux
680 if [[ x$gas = xyes ]]
681 then
682 tm_file="${tm_file} pa/pa-gas.h"
683 fi
46f18e7b
RK
684 install_headers_dir=install-headers-cpio
685 use_collect2=yes
686 ;;
687 hppa*-*-lites*)
2da05a5b
JL
688 if [[ x$enable_haifa != xno ]]; then
689 enable_haifa=yes
690 fi
46f18e7b
RK
691 target_cpu_default=1
692 use_collect2=yes
693 fixincludes=Makefile.in
694 ;;
695 i370-*-mvs*)
696 ;;
697 i[[3456]]86-ibm-aix*) # IBM PS/2 running AIX
698 if [[ x$gas = xyes ]]
699 then
700 tm_file=i386/aix386.h
701 extra_parts="crtbegin.o crtend.o"
702 tmake_file=i386/t-crtstuff
703 else
704 tm_file=i386/aix386ng.h
705 use_collect2=yes
706 fi
707 xm_file=i386/xm-aix.h
708 xmake_file=i386/x-aix
46f18e7b
RK
709 ;;
710 i486-ncr-sysv4*) # NCR 3000 - i486 running system V.4
711 xm_file=i386/xm-sysv4.h
712 xmake_file=i386/x-ncr3000
713 if [[ x$stabs = xyes -a x$gas = xyes ]]
714 then
715 tm_file=i386/sysv4gdb.h
716 else
717 tm_file=i386/sysv4.h
718 fi
719 extra_parts="crtbegin.o crtend.o"
720 tmake_file=i386/t-crtpic
721 ;;
722 i[[3456]]86-next-*)
723 tm_file=i386/next.h
724 xm_file=i386/xm-next.h
725 tmake_file=i386/t-next
726 xmake_file=i386/x-next
727 extra_objs=nextstep.o
434332b5 728 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
729 thread_file='mach'
730 fi
46f18e7b
RK
731 ;;
732 i[[3456]]86-sequent-bsd*) # 80386 from Sequent
733 use_collect2=yes
734 if [[ x$gas = xyes ]]
735 then
736 tm_file=i386/seq-gas.h
737 else
738 tm_file=i386/sequent.h
739 fi
740 ;;
741 i[[3456]]86-sequent-ptx1*)
742 xm_file=i386/xm-sysv3.h
743 xmake_file=i386/x-sysv3
744 tm_file=i386/seq-sysv3.h
745 tmake_file=i386/t-crtstuff
746 fixincludes=fixinc.ptx
747 extra_parts="crtbegin.o crtend.o"
748 install_headers_dir=install-headers-cpio
46f18e7b
RK
749 ;;
750 i[[3456]]86-sequent-ptx2* | i[[3456]]86-sequent-sysv3*)
751 xm_file=i386/xm-sysv3.h
752 xmake_file=i386/x-sysv3
753 tm_file=i386/seq2-sysv3.h
754 tmake_file=i386/t-crtstuff
755 extra_parts="crtbegin.o crtend.o"
756 fixincludes=fixinc.ptx
757 install_headers_dir=install-headers-cpio
46f18e7b
RK
758 ;;
759 i[[3456]]86-sequent-ptx4* | i[[3456]]86-sequent-sysv4*)
760 xm_file=i386/xm-sysv4.h
761 xmake_file=x-svr4
762 tm_file=i386/ptx4-i.h
763 tmake_file=t-svr4
764 extra_parts="crtbegin.o crtend.o"
765 fixincludes=fixinc.ptx
766 install_headers_dir=install-headers-cpio
46f18e7b
RK
767 ;;
768 i386-sun-sunos*) # Sun i386 roadrunner
769 xm_file=i386/xm-sun.h
770 tm_file=i386/sun.h
771 use_collect2=yes
772 ;;
773 i[[3456]]86-*-aout*)
774 tm_file=i386/i386-aout.h
775 tmake_file=i386/t-i386bare
776 ;;
777 i[[3456]]86-*-bsdi* | i[[345]]86-*-bsd386*)
778 tm_file=i386/bsd386.h
779 xm_file=i386/xm-bsd386.h
780# tmake_file=t-libc-ok
781 ;;
782 i[[3456]]86-*-bsd*)
783 tm_file=i386/386bsd.h
784 xm_file=i386/xm-bsd386.h
785# tmake_file=t-libc-ok
786# Next line turned off because both 386BSD and BSD/386 use GNU ld.
787# use_collect2=yes
788 ;;
789 i[[3456]]86-*-freebsdelf*)
790 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
791 xm_file=i386/xm-freebsd.h
be1ed94f
JL
792 # On FreeBSD, the headers are already ok, except for math.h.
793 fixincludes=fixinc.math
46f18e7b
RK
794 tmake_file=i386/t-freebsd
795 gas=yes
796 gnu_ld=yes
797 stabs=yes
798 ;;
799 i[[3456]]86-*-freebsd*)
800 tm_file=i386/freebsd.h
801 xm_file=i386/xm-freebsd.h
be1ed94f
JL
802 # On FreeBSD, the headers are already ok, except for math.h.
803 fixincludes=fixinc.math
46f18e7b
RK
804 tmake_file=i386/t-freebsd
805 ;;
806 i[[3456]]86-*-netbsd*)
807 tm_file=i386/netbsd.h
808 xm_file=i386/xm-netbsd.h
be1ed94f
JL
809 # On NetBSD, the headers are already okay, except for math.h.
810 fixincludes=fixinc.math
e47f44f4 811 tmake_file=t-netbsd
46f18e7b
RK
812 ;;
813 i[[3456]]86-*-coff*)
814 tm_file=i386/i386-coff.h
815 tmake_file=i386/t-i386bare
816 ;;
817 i[[3456]]86-*-isc*) # 80386 running ISC system
818 xm_file=i386/xm-isc.h
819 case $machine in
820 i[[345]]86-*-isc[[34]]*)
821 xmake_file=i386/x-isc3
822 ;;
823 *)
824 xmake_file=i386/x-isc
825 ;;
826 esac
827 if [[ x$gas = xyes -a x$stabs = xyes ]]
828 then
829 tm_file=i386/iscdbx.h
830 tmake_file=i386/t-svr3dbx
831 extra_parts="svr3.ifile svr3z.ifile"
832 else
833 tm_file=i386/isccoff.h
834 tmake_file=i386/t-crtstuff
835 extra_parts="crtbegin.o crtend.o"
836 fi
837 install_headers_dir=install-headers-cpio
46f18e7b 838 ;;
844dadc7 839 i[[3456]]86-*-linux-gnuoldld*) # Intel 80386's running Linux
46f18e7b
RK
840 xm_file=i386/xm-linux.h # with a.out format using pre BFD linkers
841 xmake_file=x-linux-aout
842 tmake_file="t-linux-aout i386/t-crtstuff"
843 tm_file=i386/linux-oldld.h
844 fixincludes=Makefile.in #On Linux, the headers are ok already.
46f18e7b 845 gnu_ld=yes
46f18e7b 846 ;;
844dadc7 847 i[[3456]]86-*-linux-gnuaout*) # Intel 80386's running Linux
46f18e7b
RK
848 xm_file=i386/xm-linux.h # with a.out format
849 xmake_file=x-linux-aout
850 tmake_file="t-linux-aout i386/t-crtstuff"
851 tm_file=i386/linux-aout.h
852 fixincludes=Makefile.in #On Linux, the headers are ok already.
46f18e7b 853 gnu_ld=yes
46f18e7b 854 ;;
844dadc7 855 i[[3456]]86-*-linux-gnulibc1)
78b9f8df
RK
856 xm_file=i386/xm-linux.h # Intel 80386's running Linux
857 xmake_file=x-linux # with ELF format using the
858 tm_file=i386/linux.h # Linux C library 5
859 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
860 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
861 fixincludes=Makefile.in #On Linux, the headers are ok already.
78b9f8df 862 gnu_ld=yes
434332b5 863 if [[ x$enable_threads = xyes ]]; then
78b9f8df
RK
864 thread_file='single'
865 fi
866 ;;
844dadc7 867 i[[3456]]86-*-linux-gnu*) # Intel 80386's running Linux
78b9f8df
RK
868 xm_file=i386/xm-linux.h # with ELF format using glibc 2
869 xmake_file=x-linux # aka Linux C library 6
46f18e7b
RK
870 tm_file=i386/linux.h
871 tmake_file="t-linux i386/t-crtstuff"
872 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
873 fixincludes=Makefile.in #On Linux, the headers are ok already.
46f18e7b 874 gnu_ld=yes
434332b5 875 if [[ x$enable_threads = xyes ]]; then
78b9f8df
RK
876 thread_file='posix'
877 fi
46f18e7b
RK
878 ;;
879 i[[3456]]86-*-gnu*)
880 ;;
881 i[[3456]]86-go32-msdos | i[[3456]]86-*-go32*)
882 xm_file=i386/xm-go32.h
883 tm_file=i386/go32.h
884 tmake_file=i386/t-go32
885 ;;
886 i[[3456]]86-moss-msdos* | i[[3456]]86-*-moss*)
887 tm_file=i386/moss.h
888 tmake_file=t-libc-ok
889 fixincludes=Makefile.in
890 gnu_ld=yes
891 gas=yes
892 ;;
893 i[[3456]]86-*-lynxos*)
894 if [[ x$gas = xyes ]]
895 then
896 tm_file=i386/lynx.h
897 else
898 tm_file=i386/lynx-ng.h
899 fi
900 xm_file=i386/xm-lynx.h
901 tmake_file=i386/t-i386bare
902 xmake_file=x-lynx
903 ;;
904 i[[3456]]86-*-mach*)
905 tm_file=i386/mach.h
906# tmake_file=t-libc-ok
907 use_collect2=yes
908 ;;
909 i[[3456]]86-*-osfrose*) # 386 using OSF/rose
910 if [[ x$elf = xyes ]]
911 then
912 tm_file=i386/osfelf.h
913 use_collect2=
914 else
915 tm_file=i386/osfrose.h
916 use_collect2=yes
917 fi
918 xm_file=i386/xm-osf.h
919 xmake_file=i386/x-osfrose
920 tmake_file=i386/t-osf
921 extra_objs=halfpic.o
922 ;;
923 i[[345]]86-go32-rtems*)
924 cpu_type=i386
925 xm_file=i386/xm-go32.h
926 tm_file=i386/go32-rtems.h
927 tmake_file="i386/t-go32 t-rtems"
928 ;;
929 i[[345]]86-*-rtems*)
930 cpu_type=i386
931 tm_file=i386/rtems.h
932 tmake_file="i386/t-i386bare t-rtems"
933 ;;
934 i[[3456]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
935 xm_file=i386/xm-sco5.h
936 xmake_file=i386/x-sco5
937 fixincludes=fixinc.sco
46f18e7b
RK
938 tm_file=i386/sco5.h
939 tmake_file=i386/t-sco5
940 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
941 ;;
942 i[[3456]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
943 xm_file=i386/xm-sco.h
944 xmake_file=i386/x-sco4
945 fixincludes=fixinc.sco
46f18e7b
RK
946 install_headers_dir=install-headers-cpio
947 if [[ x$stabs = xyes ]]
948 then
949 tm_file=i386/sco4dbx.h
950 tmake_file=i386/t-svr3dbx
951 extra_parts="svr3.ifile svr3z.rfile"
952 else
953 tm_file=i386/sco4.h
954 tmake_file=i386/t-crtstuff
955 extra_parts="crtbegin.o crtend.o"
956 fi
957 truncate_target=yes
958 ;;
959 i[[3456]]86-*-sco*) # 80386 running SCO system
960 xm_file=i386/xm-sco.h
961 xmake_file=i386/x-sco
46f18e7b
RK
962 install_headers_dir=install-headers-cpio
963 if [[ x$stabs = xyes ]]
964 then
965 tm_file=i386/scodbx.h
966 tmake_file=i386/t-svr3dbx
967 extra_parts="svr3.ifile svr3z.rfile"
968 else
969 tm_file=i386/sco.h
970 extra_parts="crtbegin.o crtend.o"
971 tmake_file=i386/t-crtstuff
972 fi
973 truncate_target=yes
974 ;;
975 i[[3456]]86-*-solaris2*)
976 xm_file=i386/xm-sysv4.h
977 if [[ x$stabs = xyes ]]
978 then
dec3e070 979 tm_file=i386/sol2dbg.h
46f18e7b
RK
980 else
981 tm_file=i386/sol2.h
982 fi
983 tmake_file=i386/t-sol2
984 extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
985 xmake_file=x-svr4
986 fixincludes=fixinc.svr4
434332b5 987 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
988 thread_file='solaris'
989 fi
46f18e7b
RK
990 ;;
991 i[[3456]]86-*-sysv4*) # Intel 80386's running system V.4
992 xm_file=i386/xm-sysv4.h
993 tm_file=i386/sysv4.h
994 if [[ x$stabs = xyes ]]
995 then
996 tm_file="${tm_file} dbx.h"
997 fi
998 tmake_file=i386/t-crtpic
999 xmake_file=x-svr4
1000 extra_parts="crtbegin.o crtend.o"
1001 ;;
1002 i[[3456]]86-*-sysv*) # Intel 80386's running system V
1003 xm_file=i386/xm-sysv3.h
1004 xmake_file=i386/x-sysv3
1005 if [[ x$gas = xyes ]]
1006 then
1007 if [[ x$stabs = xyes ]]
1008 then
1009 tm_file=i386/svr3dbx.h
1010 tmake_file=i386/t-svr3dbx
1011 extra_parts="svr3.ifile svr3z.rfile"
1012 else
1013 tm_file=i386/svr3gas.h
1014 extra_parts="crtbegin.o crtend.o"
1015 tmake_file=i386/t-crtstuff
1016 fi
1017 else
1018 tm_file=i386/sysv3.h
1019 extra_parts="crtbegin.o crtend.o"
1020 tmake_file=i386/t-crtstuff
1021 fi
1022 ;;
1023 i386-*-vsta) # Intel 80386's running VSTa kernel
1024 xm_file=i386/xm-vsta.h
1025 tm_file=i386/vsta.h
1026 tmake_file=i386/t-vsta
1027 xmake_file=i386/x-vsta
1028 ;;
1029 i[[3456]]86-*-pe | i[[3456]]86-*-cygwin32)
1030 xm_file="${xm_file} i386/xm-cygwin32.h"
1031 tmake_file=i386/t-cygwin32
1032 tm_file=i386/cygwin32.h
1033 xmake_file=i386/x-cygwin32
1034 extra_objs=winnt.o
1035 fixincludes=Makefile.in
434332b5 1036 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
1037 thread_file='win32'
1038 fi
46f18e7b
RK
1039 exeext=.exe
1040 ;;
5dfe8508
RK
1041 i[[3456]]86-*-mingw32)
1042 tm_file=i386/mingw32.h
1043 xm_file="${xm_file} i386/xm-mingw32.h"
1044 tmake_file=i386/t-cygwin32
1045 extra_objs=winnt.o
1046 xmake_file=i386/x-cygwin32
1047 fixincludes=Makefile.in
434332b5 1048 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
1049 thread_file='win32'
1050 fi
5dfe8508
RK
1051 exeext=.exe
1052 ;;
46f18e7b
RK
1053 i[[3456]]86-*-winnt3*)
1054 tm_file=i386/win-nt.h
1055 out_file=i386/i386.c
1056 xm_file=i386/xm-winnt.h
1057 xmake_file=winnt/x-winnt
1058 tmake_file=i386/t-winnt
1059 extra_host_objs="winnt.o oldnames.o"
1060 extra_gcc_objs="spawnv.o oldnames.o"
1061 fixincludes=fixinc.winnt
1062 if [[ x$gnu_ld != xyes ]]
1063 then
1064 extra_programs=ld.exe
1065 fi
434332b5 1066 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
1067 thread_file='win32'
1068 fi
46f18e7b
RK
1069 ;;
1070 i[[3456]]86-dg-dgux)
1071 xm_file=i386/xm-dgux.h
1072 out_file=i386/dgux.c
1073 tm_file=i386/dgux.h
1074 tmake_file=i386/t-dgux
1075 xmake_file=i386/x-dgux
1076 fixincludes=fixinc.dgux
1077 install_headers_dir=install-headers-cpio
1078 ;;
1079 i860-alliant-*) # Alliant FX/2800
1080 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1081 xm_file="${xm_file} i860/xm-fx2800.h"
1082 xmake_file=i860/x-fx2800
1083 tmake_file=i860/t-fx2800
1084 extra_parts="crtbegin.o crtend.o"
1085 ;;
1086 i860-*-bsd*)
1087 tm_file="${tm_file} i860/bsd.h"
1088 if [[ x$gas = xyes ]]
1089 then
1090 tm_file="${tm_file} i860/bsd-gas.h"
1091 fi
1092 use_collect2=yes
1093 ;;
1094 i860-*-mach*)
1095 tm_file="${tm_file} i860/mach.h"
1096 tmake_file=t-libc-ok
1097 ;;
1098 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1099 tm_file="${tm_file} svr3.h i860/paragon.h"
1100 xm_file="${xm_file} xm-svr3.h"
1101 tmake_file=t-osf
46f18e7b
RK
1102 ;;
1103 i860-*-sysv3*)
1104 tm_file="${tm_file} svr3.h i860/sysv3.h"
1105 xm_file="${tm_file} xm-svr3.h"
1106 xmake_file=i860/x-sysv3
1107 extra_parts="crtbegin.o crtend.o"
1108 ;;
1109 i860-*-sysv4*)
1110 tm_file="${tm_file} svr4.h i860/sysv4.h"
1111 xm_file="${xm_file} xm-svr3.h"
1112 xmake_file=i860/x-sysv4
1113 tmake_file=t-svr4
1114 extra_parts="crtbegin.o crtend.o"
1115 ;;
1116 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1117 tm_file="${tm_file} i960/vx960.h"
1118 tmake_file=i960/t-vxworks960
1119 use_collect2=yes
1120 ;;
1121 i960-wrs-vxworks5*)
1122 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1123 tmake_file=i960/t-vxworks960
1124 use_collect2=yes
1125 ;;
1126 i960-wrs-vxworks*)
1127 tm_file="${tm_file} i960/vx960.h"
1128 tmake_file=i960/t-vxworks960
1129 use_collect2=yes
1130 ;;
1131 i960-*-coff*)
1132 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1133 tmake_file=i960/t-960bare
1134 use_collect2=yes
1135 ;;
1136 i960-*-rtems)
1137 tmake_file="i960/t-960bare t-rtems"
1138 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1139 use_collect2=yes
1140 ;;
1141 i960-*-*) # Default i960 environment.
1142 use_collect2=yes
1143 ;;
dec3e070
JW
1144 m32r-*-elf*)
1145 extra_parts="crtinit.o crtfini.o"
1146 ;;
46f18e7b
RK
1147 m68000-convergent-sysv*)
1148 tm_file=m68k/ctix.h
1149 xm_file=m68k/xm-3b1.h
1150 use_collect2=yes
1151 extra_headers=math-68881.h
1152 ;;
1153 m68000-hp-bsd*) # HP 9000/200 running BSD
1154 tm_file=m68k/hp2bsd.h
1155 xmake_file=m68k/x-hp2bsd
1156 use_collect2=yes
1157 extra_headers=math-68881.h
1158 ;;
1159 m68000-hp-hpux*) # HP 9000 series 300
1160 xm_file=m68k/xm-hp320.h
1161 if [[ x$gas = xyes ]]
1162 then
1163 xmake_file=m68k/x-hp320g
1164 tm_file=m68k/hp310g.h
1165 else
1166 xmake_file=m68k/x-hp320
1167 tm_file=m68k/hp310.h
1168 fi
46f18e7b
RK
1169 install_headers_dir=install-headers-cpio
1170 use_collect2=yes
1171 extra_headers=math-68881.h
1172 ;;
1173 m68000-sun-sunos3*)
1174 tm_file=m68k/sun2.h
1175 use_collect2=yes
1176 extra_headers=math-68881.h
1177 ;;
1178 m68000-sun-sunos4*)
1179 tm_file=m68k/sun2o4.h
1180 use_collect2=yes
1181 extra_headers=math-68881.h
1182 ;;
1183 m68000-att-sysv*)
1184 xm_file=m68k/xm-3b1.h
1185 if [[ x$gas = xyes ]]
1186 then
1187 tm_file=m68k/3b1g.h
1188 else
1189 tm_file=m68k/3b1.h
1190 fi
1191 use_collect2=yes
1192 extra_headers=math-68881.h
1193 ;;
1194 m68k-apple-aux*) # Apple Macintosh running A/UX
1195 xm_file=m68k/xm-aux.h
1196 tmake_file=m68k/t-aux
46f18e7b
RK
1197 install_headers_dir=install-headers-cpio
1198 extra_headers=math-68881.h
1199 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1200 tm_file=
1201 if [[ "$gnu_ld" = yes ]]
1202 then
1203 tm_file="${tm_file} m68k/auxgld.h"
1204 else
1205 tm_file="${tm_file} m68k/auxld.h"
1206 fi
1207 if [[ "$gas" = yes ]]
1208 then
1209 tm_file="${tm_file} m68k/auxgas.h"
1210 else
1211 tm_file="${tm_file} m68k/auxas.h"
1212 fi
1213 tm_file="${tm_file} m68k/a-ux.h"
1214 ;;
1215 m68k-apollo-*)
1216 tm_file=m68k/apollo68.h
1217 xmake_file=m68k/x-apollo68
1218 use_collect2=yes
1219 extra_headers=math-68881.h
1220 ;;
1221 m68k-altos-sysv*) # Altos 3068
1222 if [[ x$gas = xyes ]]
1223 then
1224 tm_file=m68k/altos3068.h
1225 xm_file=m68k/xm-altos3068.h
1226 else
1227 echo "The Altos is supported only with the GNU assembler" 1>&2
1228 exit 1
1229 fi
1230 extra_headers=math-68881.h
1231 ;;
1232 m68k-bull-sysv*) # Bull DPX/2
1233 if [[ x$gas = xyes ]]
1234 then
1235 if [[ x$stabs = xyes ]]
1236 then
1237 tm_file=m68k/dpx2cdbx.h
1238 else
1239 tm_file=m68k/dpx2g.h
1240 fi
1241 else
1242 tm_file=m68k/dpx2.h
1243 fi
1244 xm_file=m68k/xm-m68kv.h
1245 xmake_file=m68k/x-dpx2
1246 use_collect2=yes
1247 extra_headers=math-68881.h
1248 ;;
1249 m68k-atari-sysv4*) # Atari variant of V.4.
1250 tm_file=m68k/atari.h
1251 xm_file=m68k/xm-atari.h
1252 tmake_file=t-svr4
1253 extra_parts="crtbegin.o crtend.o"
1254 extra_headers=math-68881.h
1255 ;;
1256 m68k-motorola-sysv*)
1257 tm_file=m68k/mot3300.h
1258 xm_file=m68k/xm-mot3300.h
1259 if [[ x$gas = xyes ]]
1260 then
1261 xmake_file=m68k/x-mot3300-gas
1262 if [[ x$gnu_ld = xyes ]]
1263 then
1264 tmake_file=m68k/t-mot3300-gald
1265 else
1266 tmake_file=m68k/t-mot3300-gas
1267 use_collect2=yes
1268 fi
1269 else
1270 xmake_file=m68k/x-mot3300
1271 if [[ x$gnu_ld = xyes ]]
1272 then
1273 tmake_file=m68k/t-mot3300-gld
1274 else
1275 tmake_file=m68k/t-mot3300
1276 use_collect2=yes
1277 fi
1278 fi
1279 gdb_needs_out_file_path=yes
1280 extra_parts="crt0.o mcrt0.o"
1281 extra_headers=math-68881.h
1282 ;;
1283 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1284 tm_file=m68k/tower-as.h
1285 xm_file=m68k/xm-tower.h
1286 xmake_file=m68k/x-tower
1287 extra_parts="crtbegin.o crtend.o"
1288 extra_headers=math-68881.h
1289 ;;
1290 m68k-plexus-sysv*)
1291 tm_file=m68k/plexus.h
1292 xm_file=m68k/xm-plexus.h
1293 use_collect2=yes
1294 extra_headers=math-68881.h
1295 ;;
1296 m68k-tti-*)
1297 tm_file=m68k/pbb.h
1298 xm_file=m68k/xm-m68kv.h
1299 extra_headers=math-68881.h
1300 ;;
1301 m68k-crds-unos*)
1302 xm_file=m68k/xm-crds.h
1303 xmake_file=m68k/x-crds
1304 tm_file=m68k/crds.h
46f18e7b
RK
1305 use_collect2=yes
1306 extra_headers=math-68881.h
1307 ;;
1308 m68k-cbm-sysv4*) # Commodore variant of V.4.
1309 tm_file=m68k/amix.h
1310 xm_file=m68k/xm-amix.h
1311 xmake_file=m68k/x-amix
1312 tmake_file=t-svr4
1313 extra_parts="crtbegin.o crtend.o"
1314 extra_headers=math-68881.h
1315 ;;
1316 m68k-ccur-rtu)
1317 tm_file=m68k/ccur-GAS.h
1318 xmake_file=m68k/x-ccur
1319 extra_headers=math-68881.h
1320 use_collect2=yes
46f18e7b
RK
1321 ;;
1322 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1323 tm_file=m68k/hp3bsd44.h
1324 xmake_file=m68k/x-hp3bsd44
1325 use_collect2=yes
1326 extra_headers=math-68881.h
1327 ;;
1328 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1329 tm_file=m68k/hp3bsd.h
1330 use_collect2=yes
1331 extra_headers=math-68881.h
1332 ;;
1333 m68k-isi-bsd*)
1334 if [[ x$with_fp = xno ]]
1335 then
1336 tm_file=m68k/isi-nfp.h
1337 else
1338 tm_file=m68k/isi.h
1339 fi
1340 use_collect2=yes
1341 extra_headers=math-68881.h
1342 ;;
1343 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1344 xm_file=m68k/xm-hp320.h
1345 if [[ x$gas = xyes ]]
1346 then
1347 xmake_file=m68k/x-hp320g
1348 tm_file=m68k/hp320g.h
1349 else
1350 xmake_file=m68k/x-hp320
1351 tm_file=m68k/hpux7.h
1352 fi
46f18e7b
RK
1353 install_headers_dir=install-headers-cpio
1354 use_collect2=yes
1355 extra_headers=math-68881.h
1356 ;;
1357 m68k-hp-hpux*) # HP 9000 series 300
1358 xm_file=m68k/xm-hp320.h
1359 if [[ x$gas = xyes ]]
1360 then
1361 xmake_file=m68k/x-hp320g
1362 tm_file=m68k/hp320g.h
1363 else
1364 xmake_file=m68k/x-hp320
1365 tm_file=m68k/hp320.h
1366 fi
46f18e7b
RK
1367 install_headers_dir=install-headers-cpio
1368 use_collect2=yes
1369 extra_headers=math-68881.h
1370 ;;
1371 m68k-sun-mach*)
1372 tm_file=m68k/sun3mach.h
1373 use_collect2=yes
1374 extra_headers=math-68881.h
1375 ;;
1376 m68k-sony-newsos3*)
1377 if [[ x$gas = xyes ]]
1378 then
1379 tm_file=m68k/news3gas.h
1380 else
1381 tm_file=m68k/news3.h
1382 fi
1383 use_collect2=yes
1384 extra_headers=math-68881.h
1385 ;;
1386 m68k-sony-bsd* | m68k-sony-newsos*)
1387 if [[ x$gas = xyes ]]
1388 then
1389 tm_file=m68k/newsgas.h
1390 else
1391 tm_file=m68k/news.h
1392 fi
1393 use_collect2=yes
1394 extra_headers=math-68881.h
1395 ;;
1396 m68k-next-nextstep2*)
1397 tm_file=m68k/next21.h
1398 xm_file=m68k/xm-next.h
1399 tmake_file=m68k/t-next
1400 xmake_file=m68k/x-next
1401 extra_objs=nextstep.o
1402 extra_headers=math-68881.h
1403 use_collect2=yes
1404 ;;
1405 m68k-next-nextstep3*)
1406 tm_file=m68k/next.h
1407 xm_file=m68k/xm-next.h
1408 tmake_file=m68k/t-next
1409 xmake_file=m68k/x-next
1410 extra_objs=nextstep.o
1411 extra_headers=math-68881.h
434332b5 1412 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
1413 thread_file='mach'
1414 fi
46f18e7b
RK
1415 ;;
1416 m68k-sun-sunos3*)
1417 if [[ x$with_fp = xno ]]
1418 then
1419 tm_file=m68k/sun3n3.h
1420 else
1421 tm_file=m68k/sun3o3.h
1422 fi
1423 use_collect2=yes
1424 extra_headers=math-68881.h
1425 ;;
1426 m68k-sun-sunos*) # For SunOS 4 (the default).
1427 if [[ x$with_fp = xno ]]
1428 then
1429 tm_file=m68k/sun3n.h
1430 else
1431 tm_file=m68k/sun3.h
1432 fi
1433 xm_file=m68k/xm-sun3.h
1434 use_collect2=yes
1435 extra_headers=math-68881.h
1436 ;;
1437 m68k-wrs-vxworks*)
1438 tm_file=m68k/vxm68k.h
1439 tmake_file=m68k/t-vxworks68
1440 extra_headers=math-68881.h
1441 ;;
1442 m68k-*-aout*)
1443 tmake_file=m68k/t-m68kbare
1444 tm_file="m68k/m68k-aout.h libgloss.h"
1445 extra_headers=math-68881.h
1446 ;;
1447 m68k-*-coff*)
1448 tmake_file=m68k/t-m68kbare
1449 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1450 extra_headers=math-68881.h
1451 ;;
1452 m68k-*-lynxos*)
1453 if [[ x$gas = xyes ]]
1454 then
1455 tm_file=m68k/lynx.h
1456 else
1457 tm_file=m68k/lynx-ng.h
1458 fi
1459 xm_file=m68k/xm-lynx.h
1460 xmake_file=x-lynx
1461 tmake_file=m68k/t-lynx
1462 extra_headers=math-68881.h
1463 ;;
1464 m68k-*-netbsd*)
1465 tm_file=m68k/netbsd.h
1466 xm_file=m68k/xm-netbsd.h
be1ed94f
JL
1467 # On NetBSD, the headers are already okay, except for math.h.
1468 fixincludes=fixinc.math
e47f44f4 1469 tmake_file=t-netbsd
46f18e7b
RK
1470 ;;
1471 m68k-*-sysv3*) # Motorola m68k's running system V.3
1472 xm_file=m68k/xm-m68kv.h
1473 xmake_file=m68k/x-m68kv
1474 extra_parts="crtbegin.o crtend.o"
1475 extra_headers=math-68881.h
1476 ;;
1477 m68k-*-sysv4*) # Motorola m68k's running system V.4
1478 tm_file=m68k/m68kv4.h
1479 xm_file=m68k/xm-m68kv.h
1480 tmake_file=t-svr4
1481 extra_parts="crtbegin.o crtend.o"
1482 extra_headers=math-68881.h
1483 ;;
844dadc7 1484 m68k-*-linux-gnuaout*) # Motorola m68k's running Linux
46f18e7b
RK
1485 xm_file=m68k/xm-linux.h # with a.out format
1486 xmake_file=x-linux
1487 tm_file=m68k/linux-aout.h
1488 tmake_file="t-linux-aout m68k/t-linux-aout"
1489 fixincludes=Makefile.in #On Linux, the headers are ok already.
1490 extra_headers=math-68881.h
1491 gnu_ld=yes
46f18e7b 1492 ;;
95fd3981
RK
1493 m68k-*-linux-gnulibc1) # Motorola m68k's running Linux
1494 xm_file=m68k/xm-linux.h # with ELF format using the
1495 xmake_file=x-linux # Linux C library 5
1496 tm_file=m68k/linux.h
1497 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1498 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1499 fixincludes=Makefile.in #On Linux, the headers are ok already.
1500 extra_headers=math-68881.h
1501 gnu_ld=yes
1502 ;;
844dadc7 1503 m68k-*-linux-gnu*) # Motorola m68k's running Linux
95fd3981
RK
1504 xm_file=m68k/xm-linux.h # with ELF format using glibc 2
1505 xmake_file=x-linux # aka the Linux C library 6.
46f18e7b
RK
1506 tm_file=m68k/linux.h
1507 tmake_file="t-linux m68k/t-linux"
1508 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1509 fixincludes=Makefile.in #On Linux, the headers are ok already.
1510 extra_headers=math-68881.h
1511 gnu_ld=yes
d1054723 1512 if [[ x$enable_threads = xyes ]]; then
95fd3981
RK
1513 thread_file='posix'
1514 fi
46f18e7b
RK
1515 ;;
1516 m68k-*-psos*)
1517 tmake_file=m68k/t-m68kbare
1518 tm_file=m68k/m68k-psos.h
1519 extra_headers=math-68881.h
1520 ;;
1521 m68k-*-rtems*)
1522 tmake_file="m68k/t-m68kbare t-rtems"
1523 tm_file=m68k/rtems.h
1524 extra_headers=math-68881.h
1525 ;;
1526
1527 m88k-dg-dgux*)
1528 case $machine in
1529 m88k-dg-dguxbcs*)
1530 tm_file=m88k/dguxbcs.h
1531 tmake_file=m88k/t-dguxbcs
1532 ;;
1533 *)
1534 tm_file=m88k/dgux.h
1535 tmake_file=m88k/t-dgux
1536 ;;
1537 esac
1538 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
46f18e7b
RK
1539 xmake_file=m88k/x-dgux
1540 if [[ x$gas = xyes ]]
1541 then
1542 tmake_file=m88k/t-dgux-gas
1543 fi
1544 fixincludes=fixinc.dgux
1545 ;;
1546 m88k-dolphin-sysv3*)
1547 tm_file=m88k/dolph.h
1548 extra_parts="crtbegin.o crtend.o"
1549 xm_file=m88k/xm-sysv3.h
1550 xmake_file=m88k/x-dolph
1551 if [[ x$gas = xyes ]]
1552 then
1553 tmake_file=m88k/t-m88k-gas
1554 fi
1555 ;;
1556 m88k-tektronix-sysv3)
1557 tm_file=m88k/tekXD88.h
1558 extra_parts="crtbegin.o crtend.o"
1559 xm_file=m88k/xm-sysv3.h
1560 xmake_file=m88k/x-tekXD88
1561 if [[ x$gas = xyes ]]
1562 then
1563 tmake_file=m88k/t-m88k-gas
1564 fi
1565 ;;
1566 m88k-*-aout*)
1567 tm_file=m88k/m88k-aout.h
1568 ;;
1569 m88k-*-coff*)
1570 tm_file=m88k/m88k-coff.h
1571 tmake_file=m88k/t-bug
1572 ;;
1573 m88k-*-luna*)
1574 tm_file=m88k/luna.h
1575 extra_parts="crtbegin.o crtend.o"
1576 if [[ x$gas = xyes ]]
1577 then
1578 tmake_file=m88k/t-luna-gas
1579 else
1580 tmake_file=m88k/t-luna
1581 fi
1582 ;;
1583 m88k-*-sysv3*)
1584 tm_file=m88k/sysv3.h
1585 extra_parts="crtbegin.o crtend.o"
1586 xm_file=m88k/xm-sysv3.h
1587 xmake_file=m88k/x-sysv3
1588 if [[ x$gas = xyes ]]
1589 then
1590 tmake_file=m88k/t-m88k-gas
1591 fi
1592 ;;
1593 m88k-*-sysv4*)
1594 tm_file=m88k/sysv4.h
1595 extra_parts="crtbegin.o crtend.o"
1596 xmake_file=m88k/x-sysv4
1597 tmake_file=m88k/t-sysv4
1598 ;;
1599 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1600 tm_file=mips/iris6.h
1601 xm_file=mips/xm-iris6.h
46f18e7b
RK
1602 fixincludes=fixinc.irix
1603 xmake_file=mips/x-iris6
1604 tmake_file=mips/t-iris6
434332b5 1605 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
1606 thread_file='irix'
1607 fi
46f18e7b
RK
1608 ;;
1609 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1610 tm_file=mips/cross64.h
1611 xm_file=mips/xm-iris5.h
46f18e7b
RK
1612 fixincludes=Makefile.in
1613 xmake_file=mips/x-iris
1614 tmake_file=mips/t-cross64
1615 # See comment in mips/iris[56].h files.
1616 use_collect2=yes
434332b5 1617 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
1618 thread_file='irix'
1619 fi
46f18e7b
RK
1620 ;;
1621 mips-sni-sysv4)
1622 if [[ x$gas = xyes ]]
1623 then
1624 if [[ x$stabs = xyes ]]
1625 then
1626 tm_file=mips/iris5gdb.h
1627 else
1628 tm_file=mips/sni-gas.h
1629 fi
1630 else
1631 tm_file=mips/sni-svr4.h
1632 fi
1633 xm_file=mips/xm-sysv.h
1634 xmake_file=mips/x-sni-svr4
1635 tmake_file=mips/t-mips-gas
1636 if [[ x$gnu_ld != xyes ]]
1637 then
1638 use_collect2=yes
1639 fi
46f18e7b
RK
1640 ;;
1641 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1642 if [[ x$gas = xyes ]]
1643 then
1644 tm_file=mips/iris5gas.h
1645 if [[ x$stabs = xyes ]]
1646 then
1647 tm_file="${tm_file} dbx.h"
1648 fi
1649 else
1650 tm_file=mips/iris5.h
1651 fi
1652 xm_file=mips/xm-iris5.h
46f18e7b
RK
1653 fixincludes=fixinc.irix
1654 xmake_file=mips/x-iris
1655 # mips-tfile doesn't work yet
1656 tmake_file=mips/t-mips-gas
1657 # See comment in mips/iris5.h file.
1658 use_collect2=yes
434332b5 1659 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
1660 thread_file='irix'
1661 fi
46f18e7b
RK
1662 ;;
1663 mips-sgi-irix4loser*) # Mostly like a MIPS.
1664 tm_file=mips/iris4loser.h
1665 if [[ x$stabs = xyes ]]; then
1666 tm_file="${tm_file} dbx.h"
1667 fi
1668 xm_file=mips/xm-iris4.h
46f18e7b
RK
1669 xmake_file=mips/x-iris
1670 if [[ x$gas = xyes ]]
1671 then
1672 tmake_file=mips/t-mips-gas
1673 else
1674 extra_passes="mips-tfile mips-tdump"
1675 fi
1676 if [[ x$gnu_ld != xyes ]]
1677 then
1678 use_collect2=yes
1679 fi
434332b5 1680 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
1681 thread_file='irix'
1682 fi
46f18e7b
RK
1683 ;;
1684 mips-sgi-irix4*) # Mostly like a MIPS.
1685 tm_file=mips/iris4.h
1686 if [[ x$stabs = xyes ]]; then
1687 tm_file="${tm_file} dbx.h"
1688 fi
1689 xm_file=mips/xm-iris4.h
46f18e7b
RK
1690 xmake_file=mips/x-iris
1691 if [[ x$gas = xyes ]]
1692 then
1693 tmake_file=mips/t-mips-gas
1694 else
1695 extra_passes="mips-tfile mips-tdump"
1696 fi
1697 if [[ x$gnu_ld != xyes ]]
1698 then
1699 use_collect2=yes
1700 fi
434332b5 1701 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
1702 thread_file='irix'
1703 fi
46f18e7b
RK
1704 ;;
1705 mips-sgi-*) # Mostly like a MIPS.
1706 tm_file=mips/iris3.h
1707 if [[ x$stabs = xyes ]]; then
1708 tm_file="${tm_file} dbx.h"
1709 fi
1710 xm_file=mips/xm-iris3.h
46f18e7b
RK
1711 xmake_file=mips/x-iris3
1712 if [[ x$gas = xyes ]]
1713 then
1714 tmake_file=mips/t-mips-gas
1715 else
1716 extra_passes="mips-tfile mips-tdump"
1717 fi
1718 if [[ x$gnu_ld != xyes ]]
1719 then
1720 use_collect2=yes
1721 fi
1722 ;;
1723 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
1724 tm_file=mips/osfrose.h
1725 xmake_file=mips/x-osfrose
1726 tmake_file=mips/t-osfrose
1727 extra_objs=halfpic.o
1728 use_collect2=yes
1729 ;;
1730 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
1731 tm_file=mips/dec-osf1.h
1732 if [[ x$stabs = xyes ]]; then
1733 tm_file="${tm_file} dbx.h"
1734 fi
1735 xmake_file=mips/x-dec-osf1
1736 if [[ x$gas = xyes ]]
1737 then
1738 tmake_file=mips/t-mips-gas
1739 else
1740 tmake_file=mips/t-ultrix
1741 extra_passes="mips-tfile mips-tdump"
1742 fi
1743 if [[ x$gnu_ld != xyes ]]
1744 then
1745 use_collect2=yes
1746 fi
1747 ;;
1748 mips-dec-bsd*) # Decstation running 4.4 BSD
1749 tm_file=mips/dec-bsd.h
1750 fixincludes=
1751 if [[ x$gas = xyes ]]
1752 then
1753 tmake_file=mips/t-mips-gas
1754 else
1755 tmake_file=mips/t-ultrix
1756 extra_passes="mips-tfile mips-tdump"
1757 fi
1758 if [[ x$gnu_ld != xyes ]]
1759 then
1760 use_collect2=yes
1761 fi
1762 ;;
1763 mips-dec-netbsd*) # Decstation running NetBSD
1764 tm_file=mips/netbsd.h
1765 xm_file=mips/xm-netbsd.h
be1ed94f
JL
1766 # On NetBSD, the headers are already okay, except for math.h.
1767 fixincludes=fixinc.math
e47f44f4 1768 tmake_file=t-netbsd
46f18e7b
RK
1769 ;;
1770 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
1771 tm_file=mips/news4.h
1772 if [[ x$stabs = xyes ]]; then
1773 tm_file="${tm_file} dbx.h"
1774 fi
1775 if [[ x$gas = xyes ]]
1776 then
1777 tmake_file=mips/t-mips-gas
1778 else
1779 extra_passes="mips-tfile mips-tdump"
1780 fi
1781 if [[ x$gnu_ld != xyes ]]
1782 then
1783 use_collect2=yes
1784 fi
1785 xmake_file=mips/x-sony
1786 ;;
1787 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
1788 # That is based on svr4.
1789 # t-svr4 is not right because this system doesn't use ELF.
1790 tm_file=mips/news5.h
1791 if [[ x$stabs = xyes ]]; then
1792 tm_file="${tm_file} dbx.h"
1793 fi
1794 xm_file=mips/xm-news.h
1795 if [[ x$gas = xyes ]]
1796 then
1797 tmake_file=mips/t-mips-gas
1798 else
1799 extra_passes="mips-tfile mips-tdump"
1800 fi
1801 if [[ x$gnu_ld != xyes ]]
1802 then
1803 use_collect2=yes
1804 fi
1805 ;;
1806 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
1807 tm_file=mips/svr4-t.h
1808 if [[ x$stabs = xyes ]]; then
1809 tm_file="${tm_file} dbx.h"
1810 fi
1811 xm_file=mips/xm-sysv4.h
1812 xmake_file=mips/x-sysv
1813 if [[ x$gas = xyes ]]
1814 then
1815 tmake_file=mips/t-mips-gas
1816 extra_parts="crtbegin.o crtend.o"
1817 else
1818 tmake_file=mips/t-mips
1819 extra_passes="mips-tfile mips-tdump"
1820 fi
1821 if [[ x$gnu_ld != xyes ]]
1822 then
1823 use_collect2=yes
1824 fi
46f18e7b
RK
1825 ;;
1826 mips-*-ultrix* | mips-dec-mach3) # Decstation.
1827 tm_file=mips/ultrix.h
1828 if [[ x$stabs = xyes ]]; then
1829 tm_file="${tm_file} dbx.h"
1830 fi
1831 xmake_file=mips/x-ultrix
1832 if [[ x$gas = xyes ]]
1833 then
1834 tmake_file=mips/t-mips-gas
1835 else
1836 tmake_file=mips/t-ultrix
1837 extra_passes="mips-tfile mips-tdump"
1838 fi
1839 if [[ x$gnu_ld != xyes ]]
1840 then
1841 use_collect2=yes
1842 fi
1843 ;;
1844 mips-*-riscos[[56789]]bsd*)
1845 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
1846 if [[ x$stabs = xyes ]]; then
1847 tm_file="${tm_file} dbx.h"
1848 fi
1849 if [[ x$gas = xyes ]]
1850 then
1851 tmake_file=mips/t-bsd-gas
1852 else
1853 tmake_file=mips/t-bsd
1854 extra_passes="mips-tfile mips-tdump"
1855 fi
1856 if [[ x$gnu_ld != xyes ]]
1857 then
1858 use_collect2=yes
1859 fi
46f18e7b
RK
1860 ;;
1861 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
1862 tm_file=mips/bsd-4.h # MIPS BSD 4.3, RISC-OS 4.0
1863 if [[ x$stabs = xyes ]]; then
1864 tm_file="${tm_file} dbx.h"
1865 fi
1866 if [[ x$gas = xyes ]]
1867 then
1868 tmake_file=mips/t-bsd-gas
1869 else
1870 tmake_file=mips/t-bsd
1871 extra_passes="mips-tfile mips-tdump"
1872 fi
1873 if [[ x$gnu_ld != xyes ]]
1874 then
1875 use_collect2=yes
1876 fi
46f18e7b
RK
1877 ;;
1878 mips-*-riscos[[56789]]sysv4*)
1879 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
1880 if [[ x$stabs = xyes ]]; then
1881 tm_file="${tm_file} dbx.h"
1882 fi
1883 xm_file=mips/xm-sysv4.h
1884 xmake_file=mips/x-sysv
1885 if [[ x$gas = xyes ]]
1886 then
1887 tmake_file=mips/t-svr4-gas
1888 else
1889 tmake_file=mips/t-svr4
1890 extra_passes="mips-tfile mips-tdump"
1891 fi
1892 if [[ x$gnu_ld != xyes ]]
1893 then
1894 use_collect2=yes
1895 fi
46f18e7b
RK
1896 ;;
1897 mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
1898 tm_file=mips/svr4-4.h # MIPS System V.4. RISC-OS 4.0
1899 if [[ x$stabs = xyes ]]; then
1900 tm_file="${tm_file} dbx.h"
1901 fi
1902 xm_file=mips/xm-sysv.h
1903 xmake_file=mips/x-sysv
1904 if [[ x$gas = xyes ]]
1905 then
1906 tmake_file=mips/t-svr4-gas
1907 else
1908 tmake_file=mips/t-svr4
1909 extra_passes="mips-tfile mips-tdump"
1910 fi
1911 if [[ x$gnu_ld != xyes ]]
1912 then
1913 use_collect2=yes
1914 fi
46f18e7b
RK
1915 ;;
1916 mips-*-riscos[[56789]]sysv*)
1917 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
1918 if [[ x$stabs = xyes ]]; then
1919 tm_file="${tm_file} dbx.h"
1920 fi
1921 xm_file=mips/xm-sysv.h
1922 xmake_file=mips/x-sysv
1923 if [[ x$gas = xyes ]]
1924 then
1925 tmake_file=mips/t-svr3-gas
1926 else
1927 tmake_file=mips/t-svr3
1928 extra_passes="mips-tfile mips-tdump"
1929 fi
1930 if [[ x$gnu_ld != xyes ]]
1931 then
1932 use_collect2=yes
1933 fi
46f18e7b
RK
1934 ;;
1935 mips-*-sysv* | mips-*-riscos*sysv*)
1936 tm_file=mips/svr3-4.h # MIPS System V.3, RISC-OS 4.0
1937 if [[ x$stabs = xyes ]]; then
1938 tm_file="${tm_file} dbx.h"
1939 fi
1940 xm_file=mips/xm-sysv.h
1941 xmake_file=mips/x-sysv
1942 if [[ x$gas = xyes ]]
1943 then
1944 tmake_file=mips/t-svr3-gas
1945 else
1946 tmake_file=mips/t-svr3
1947 extra_passes="mips-tfile mips-tdump"
1948 fi
1949 if [[ x$gnu_ld != xyes ]]
1950 then
1951 use_collect2=yes
1952 fi
46f18e7b
RK
1953 ;;
1954 mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0.
1955 tm_file=mips/mips-5.h
1956 if [[ x$stabs = xyes ]]; then
1957 tm_file="${tm_file} dbx.h"
1958 fi
1959 if [[ x$gas = xyes ]]
1960 then
1961 tmake_file=mips/t-mips-gas
1962 else
1963 extra_passes="mips-tfile mips-tdump"
1964 fi
1965 if [[ x$gnu_ld != xyes ]]
1966 then
1967 use_collect2=yes
1968 fi
46f18e7b
RK
1969 ;;
1970 mips-*-gnu*)
1971 ;;
1972 mipsel-*-ecoff*)
1973 tm_file=mips/ecoffl.h
1974 if [[ x$stabs = xyes ]]; then
1975 tm_file="${tm_file} dbx.h"
1976 fi
1977 tmake_file=mips/t-ecoff
1978 ;;
1979 mips-*-ecoff*)
1980 tm_file=mips/ecoff.h
1981 if [[ x$stabs = xyes ]]; then
1982 tm_file="${tm_file} dbx.h"
1983 fi
1984 tmake_file=mips/t-ecoff
46f18e7b
RK
1985 ;;
1986 mipsel-*-elf*)
1987 tm_file="mips/elfl.h libgloss.h"
1988 tmake_file=mips/t-ecoff
1989 ;;
1990 mips-*-elf*)
1991 tm_file="mips/elf.h libgloss.h"
1992 tmake_file=mips/t-ecoff
1993 ;;
1994 mips64el-*-elf*)
1995 tm_file="mips/elfl64.h libgloss.h"
1996 tmake_file=mips/t-ecoff
1997 ;;
1998 mips64orionel-*-elf*)
1999 tm_file="mips/elflorion.h libgloss.h"
2000 tmake_file=mips/t-ecoff
2001 ;;
2002 mips64-*-elf*)
2003 tm_file="mips/elf64.h libgloss.h"
2004 tmake_file=mips/t-ecoff
2005 ;;
2006 mips64orion-*-elf*)
2007 tm_file="mips/elforion.h libgloss.h"
2008 tmake_file=mips/t-ecoff
2009 ;;
2010 mips64orion-*-rtems*)
2011 tm_file=mips/rtems64.h
2012 tmake_file="mips/t-ecoff t-rtems"
2013 ;;
2014 mips-*-*) # Default MIPS RISC-OS 4.0.
2015 if [[ x$stabs = xyes ]]; then
2016 tm_file="${tm_file} dbx.h"
2017 fi
2018 if [[ x$gas = xyes ]]
2019 then
2020 tmake_file=mips/t-mips-gas
2021 else
2022 extra_passes="mips-tfile mips-tdump"
2023 fi
2024 if [[ x$gnu_ld != xyes ]]
2025 then
2026 use_collect2=yes
2027 fi
2028 ;;
cef64ec4
RK
2029 mn10200-*-*)
2030 cpu_type=mn10200
2031 tm_file="mn10200/mn10200.h"
2032 if [[ x$stabs = xyes ]]
2033 then
2034 tm_file="${tm_file} dbx.h"
2035 fi
2036 use_collect2=no
2037 ;;
46f18e7b
RK
2038 mn10300-*-*)
2039 cpu_type=mn10300
2040 tm_file="mn10300/mn10300.h"
2041 if [[ x$stabs = xyes ]]
2042 then
2043 tm_file="${tm_file} dbx.h"
2044 fi
2045 use_collect2=no
2046 ;;
2047 ns32k-encore-bsd*)
2048 tm_file=ns32k/encore.h
2049 use_collect2=yes
2050 ;;
2051 ns32k-sequent-bsd*)
2052 tm_file=ns32k/sequent.h
2053 use_collect2=yes
2054 ;;
2055 ns32k-tek6100-bsd*)
2056 tm_file=ns32k/tek6100.h
46f18e7b
RK
2057 use_collect2=yes
2058 ;;
2059 ns32k-tek6200-bsd*)
2060 tm_file=ns32k/tek6200.h
46f18e7b
RK
2061 use_collect2=yes
2062 ;;
2063# This has not been updated to GCC 2.
2064# ns32k-ns-genix*)
2065# xm_file=ns32k/xm-genix.h
2066# xmake_file=ns32k/x-genix
2067# tm_file=ns32k/genix.h
46f18e7b
RK
2068# use_collect2=yes
2069# ;;
2070 ns32k-merlin-*)
2071 tm_file=ns32k/merlin.h
2072 use_collect2=yes
2073 ;;
2074 ns32k-pc532-mach*)
2075 tm_file=ns32k/pc532-mach.h
2076 use_collect2=yes
2077 ;;
2078 ns32k-pc532-minix*)
2079 tm_file=ns32k/pc532-min.h
2080 xm_file=ns32k/xm-pc532-min.h
2081 use_collect2=yes
2082 ;;
2083 ns32k-pc532-netbsd*)
2084 tm_file=ns32k/netbsd.h
2085 xm_file=ns32k/xm-netbsd.h
be1ed94f
JL
2086 # On NetBSD, the headers are already okay, except for math.h.
2087 fixincludes=fixinc.math
e47f44f4 2088 tmake_file=t-netbsd
46f18e7b
RK
2089 ;;
2090 pdp11-*-bsd)
2091 tm_file="${tm_file} pdp11/2bsd.h"
2092 ;;
2093 pdp11-*-*)
2094 ;;
2095 pyramid-*-*)
2096 cpu_type=pyr
2097 xmake_file=pyr/x-pyr
2098 use_collect2=yes
2099 ;;
2100 romp-*-aos*)
2101 use_collect2=yes
2102 ;;
2103 romp-*-mach*)
2104 xmake_file=romp/x-mach
2105 use_collect2=yes
2106 ;;
2107 powerpc-*-sysv* | powerpc-*-elf*)
2108 tm_file=rs6000/sysv4.h
2109 xm_file=rs6000/xm-sysv4.h
2110 extra_headers=ppc-asm.h
2111 if [[ x$gas = xyes ]]
2112 then
2113 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2114 else
2115 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2116 fi
2117 xmake_file=rs6000/x-sysv4
2118 ;;
2119 powerpc-*-eabiaix*)
2120 tm_file=rs6000/eabiaix.h
2121 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2122 fixincludes=Makefile.in
2123 extra_headers=ppc-asm.h
2124 ;;
2125 powerpc-*-eabisim*)
2126 tm_file=rs6000/eabisim.h
2127 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2128 fixincludes=Makefile.in
2129 extra_headers=ppc-asm.h
2130 ;;
2131 powerpc-*-eabi*)
2132 tm_file=rs6000/eabi.h
2133 if [[ x$gas = xyes ]]
2134 then
2135 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2136 else
2137 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2138 fi
2139 fixincludes=Makefile.in
2140 extra_headers=ppc-asm.h
2141 ;;
dec3e070
JW
2142 powerpc-*-rtems*)
2143 tm_file=rs6000/rtems.h
46f18e7b
RK
2144 if [[ x$gas = xyes ]]
2145 then
dec3e070 2146 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
46f18e7b 2147 else
dec3e070 2148 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
46f18e7b 2149 fi
46f18e7b 2150 fixincludes=Makefile.in
46f18e7b
RK
2151 extra_headers=ppc-asm.h
2152 ;;
844dadc7 2153 powerpc-*-linux-gnu*)
dec3e070 2154 tm_file=rs6000/linux.h
46f18e7b 2155 xm_file=rs6000/xm-sysv4.h
dec3e070 2156 out_file=rs6000/rs6000.c
46f18e7b
RK
2157 if [[ x$gas = xyes ]]
2158 then
dec3e070 2159 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
46f18e7b 2160 else
dec3e070 2161 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
46f18e7b 2162 fi
d7308c0c 2163 xmake_file=x-linux
dec3e070 2164 fixincludes=Makefile.in
d7308c0c 2165 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
46f18e7b 2166 extra_headers=ppc-asm.h
d1054723 2167 if [[ x$enable_threads = xyes ]]; then
d7308c0c
RK
2168 thread_file='posix'
2169 fi
46f18e7b
RK
2170 ;;
2171 powerpc-*-vxworks*)
2172 cpu_type=rs6000
2173 xm_file=rs6000/xm-sysv4.h
2174 tm_file=rs6000/vxppc.h
2175 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2176 extra_headers=ppc-asm.h
2177 ;;
2178 powerpcle-*-sysv* | powerpcle-*-elf*)
2179 tm_file=rs6000/sysv4le.h
2180 xm_file=rs6000/xm-sysv4.h
2181 if [[ x$gas = xyes ]]
2182 then
2183 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2184 else
2185 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2186 fi
2187 xmake_file=rs6000/x-sysv4
2188 extra_headers=ppc-asm.h
2189 ;;
2190 powerpcle-*-eabisim*)
2191 tm_file=rs6000/eabilesim.h
2192 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2193 fixincludes=Makefile.in
2194 extra_headers=ppc-asm.h
2195 ;;
2196 powerpcle-*-eabi*)
2197 tm_file=rs6000/eabile.h
2198 if [[ x$gas = xyes ]]
2199 then
2200 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2201 else
2202 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2203 fi
2204 fixincludes=Makefile.in
2205 extra_headers=ppc-asm.h
2206 ;;
2207 powerpcle-*-winnt* )
2208 tm_file=rs6000/win-nt.h
2209 tmake_file=rs6000/t-winnt
2210# extra_objs=pe.o
2211 fixincludes=Makefile.in
434332b5 2212 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
2213 thread_file='win32'
2214 fi
46f18e7b
RK
2215 extra_headers=ppc-asm.h
2216 ;;
2217 powerpcle-*-pe | powerpcle-*-cygwin32)
2218 tm_file=rs6000/cygwin32.h
2219 xm_file=rs6000/xm-cygwin32.h
2220 tmake_file=rs6000/t-winnt
2221 xmake_file=rs6000/x-cygwin32
2222# extra_objs=pe.o
2223 fixincludes=Makefile.in
434332b5 2224 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
2225 thread_file='win32'
2226 fi
46f18e7b
RK
2227 exeext=.exe
2228 extra_headers=ppc-asm.h
2229 ;;
2230 powerpcle-*-solaris2*)
2231 tm_file=rs6000/sol2.h
2232 xm_file=rs6000/xm-sysv4.h
2233 if [[ x$gas = xyes ]]
2234 then
2235 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2236 else
2237 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2238 fi
2239 xmake_file=rs6000/x-sysv4
2240 fixincludes=fixinc.svr4
2241 extra_headers=ppc-asm.h
2242 ;;
2243 rs6000-ibm-aix3.[[01]]*)
2244 tm_file=rs6000/aix31.h
2245 xmake_file=rs6000/x-aix31
2246 use_collect2=yes
2247 ;;
2248 rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*)
2249 tm_file=rs6000/aix3newas.h
2250 if [[ x$host != x$target ]]
2251 then
2252 tmake_file=rs6000/t-xnewas
2253 else
2254 tmake_file=rs6000/t-newas
2255 fi
2256 use_collect2=yes
2257 ;;
2258 rs6000-ibm-aix[[456789]].* | powerpc-ibm-aix[[456789]].*)
2259 tm_file=rs6000/aix41.h
2260 if [[ x$host != x$target ]]
2261 then
2262 tmake_file=rs6000/t-xnewas
2263 else
2264 tmake_file=rs6000/t-newas
2265 fi
2266 xmake_file=rs6000/x-aix31
2267 use_collect2=yes
2268 ;;
2269 rs6000-ibm-aix*)
2270 use_collect2=yes
2271 ;;
2272 rs6000-bull-bosx)
2273 use_collect2=yes
2274 ;;
2275 rs6000-*-mach*)
2276 tm_file=rs6000/mach.h
2277 xm_file=rs6000/xm-mach.h
2278 xmake_file=rs6000/x-mach
2279 use_collect2=yes
2280 ;;
2281 rs6000-*-lynxos*)
2282 tm_file=rs6000/lynx.h
2283 xm_file=rs6000/xm-lynx.h
2284 tmake_file=rs6000/t-rs6000
2285 xmake_file=rs6000/x-lynx
2286 use_collect2=yes
2287 ;;
2288 sh-*-elf*)
2289 tm_file=sh/elf.h
2290 float_format=sh
2291 ;;
5d84b57e
JS
2292 sh-*-rtems*)
2293 tmake_file="sh/t-sh t-rtems"
2294 tm_file=sh/rtems.h
2295 float_format=sh
2296 ;;
46f18e7b
RK
2297 sh-*-*)
2298 float_format=sh
2299 ;;
2300 sparc-tti-*)
2301 tm_file=sparc/pbd.h
2302 xm_file=sparc/xm-pbd.h
2303 ;;
2304 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2305 tm_file=sparc/vxsparc.h
2306 tmake_file=sparc/t-vxsparc
2307 use_collect2=yes
2308 ;;
2309 sparc-*-aout*)
2310 tmake_file=sparc/t-sparcbare
2311 tm_file="sparc/aout.h libgloss.h"
2312 ;;
2313 sparc-*-netbsd*)
2314 tm_file=sparc/netbsd.h
2315 xm_file=sparc/xm-netbsd.h
be1ed94f
JL
2316 # On NetBSD, the headers are already okay, except for math.h.
2317 fixincludes=fixinc.math
e47f44f4 2318 tmake_file=t-netbsd
46f18e7b
RK
2319 ;;
2320 sparc-*-bsd*)
2321 tm_file=sparc/bsd.h
2322 ;;
844dadc7 2323 sparc-*-linux-gnuaout*) # Sparc's running Linux, a.out
46f18e7b
RK
2324 xm_file=sparc/xm-linux.h
2325 tm_file=sparc/linux-aout.h
2326 xmake_file=x-linux
2327 fixincludes=Makefile.in #On Linux, the headers are ok already.
46f18e7b 2328 gnu_ld=yes
46f18e7b 2329 ;;
9ad03bc1
RK
2330 sparc-*-linux-gnulibc1*) # Sparc's running Linux
2331 xm_file=sparc/xm-linux.h # with ELF format using the
2332 xmake_file=x-linux # Linux C library 5.
46f18e7b 2333 tm_file=sparc/linux.h
604d63b0 2334 tmake_file="t-linux t-linux-gnulibc1 sparc/t-linux"
9ad03bc1
RK
2335 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2336 fixincludes=Makefile.in #On Linux, the headers are ok already.
9ad03bc1
RK
2337 gnu_ld=yes
2338 ;;
2339 sparc-*-linux-gnu*) # Sparc's running Linux
2340 xm_file=sparc/xm-linux.h # with ELF format using glibc 2
2341 xmake_file=x-linux # aka the Linux C library 6.
2342 tm_file=sparc/linux.h
604d63b0 2343 tmake_file="t-linux sparc/t-linux"
9ad03bc1 2344 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
46f18e7b 2345 fixincludes=Makefile.in #On Linux, the headers are ok already.
46f18e7b 2346 gnu_ld=yes
d1054723 2347 if [[ x$enable_threads = xyes ]]; then
9ad03bc1
RK
2348 thread_file='posix'
2349 fi
46f18e7b
RK
2350 ;;
2351 sparc-*-lynxos*)
2352 if [[ x$gas = xyes ]]
2353 then
2354 tm_file=sparc/lynx.h
2355 else
2356 tm_file=sparc/lynx-ng.h
2357 fi
2358 xm_file=sparc/xm-lynx.h
2359 tmake_file=sparc/t-sunos41
2360 xmake_file=x-lynx
2361 ;;
2362 sparc-*-rtems*)
2363 tmake_file="sparc/t-sparcbare t-rtems"
2364 tm_file=sparc/rtems.h
2365 ;;
2366 sparc-*-solaris2*)
2367 tm_file=sparc/sol2.h
2368 xm_file=sparc/xm-sol2.h
2369 tmake_file=sparc/t-sol2
2370 xmake_file=sparc/x-sysv4
2371 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2372 fixincludes=fixinc.svr4
434332b5 2373 if [[ x$enable_threads = xyes ]]; then
0bbb1697
RK
2374 thread_file='solaris'
2375 fi
46f18e7b
RK
2376 ;;
2377 sparc-*-sunos4.0*)
2378 tm_file=sparc/sunos4.h
2379 tmake_file=sparc/t-sunos40
2380 use_collect2=yes
2381 ;;
2382 sparc-*-sunos4*)
2383 tm_file=sparc/sunos4.h
2384 tmake_file=sparc/t-sunos41
2385 use_collect2=yes
2386 ;;
2387 sparc-*-sunos3*)
2388 tm_file=sparc/sun4o3.h
2389 use_collect2=yes
2390 ;;
2391 sparc-*-sysv4*)
2392 tm_file=sparc/sysv4.h
2393 xm_file=sparc/xm-sysv4.h
2394 tmake_file=t-svr4
2395 xmake_file=sparc/x-sysv4
2396 extra_parts="crtbegin.o crtend.o"
2397 ;;
2398 sparc-*-vxsim*)
2399 xm_file=sparc/xm-sol2.h
2400 tm_file=sparc/vxsim.h
2401 tmake_file=sparc/t-vxsparc
2402 xmake_file=sparc/x-sysv4
2403 ;;
2404 sparclet-*-aout*)
2405 tm_file="sparc/splet.h libgloss.h"
2406 tmake_file=sparc/t-splet
2407 ;;
2408 sparclite-*-coff*)
2409 tm_file="sparc/litecoff.h libgloss.h"
2410 tmake_file=sparc/t-sparclite
2411 ;;
2412 sparclite-*-aout*)
2413 tm_file="sparc/lite.h aoutos.h libgloss.h"
2414 tmake_file=sparc/t-sparclite
2415 ;;
2416 sparc64-*-aout*)
2417 tmake_file=sparc/t-sp64
2418 tm_file=sparc/sp64-aout.h
2419 ;;
2420 sparc64-*-elf*)
2421 tmake_file=sparc/t-sp64
2422 tm_file=sparc/sp64-elf.h
2423 extra_parts="crtbegin.o crtend.o"
2424 ;;
2425# This hasn't been upgraded to GCC 2.
2426# tahoe-harris-*) # Harris tahoe, using COFF.
2427# tm_file=tahoe/harris.h
2428# ;;
2429# tahoe-*-bsd*) # tahoe running BSD
2430# ;;
2431# This hasn't been upgraded to GCC 2.
2432# tron-*-*)
2433# cpu_type=gmicro
2434# use_collect2=yes
2435# ;;
f84271d9
JL
2436 v850-*-*)
2437 cpu_type=v850
2438 tm_file="v850/v850.h"
2439 xm_file="v850/xm-v850.h"
2440 if [[ x$stabs = xyes ]]
2441 then
2442 tm_file="${tm_file} dbx.h"
2443 fi
2444 use_collect2=no
2445 ;;
46f18e7b
RK
2446 vax-*-bsd*) # vaxen running BSD
2447 use_collect2=yes
2448 float_format=vax
2449 ;;
2450 vax-*-sysv*) # vaxen running system V
2451 tm_file="${tm_file} vax/vaxv.h"
2452 xm_file="${tm_file} vax/xm-vaxv.h"
2453 float_format=vax
2454 ;;
2455 vax-*-netbsd*)
2456 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2457 xm_file="${xm_file} xm-netbsd.h"
be1ed94f
JL
2458 # On NetBSD, the headers are already okay, except for math.h.
2459 fixincludes=fixinc.math
e47f44f4 2460 tmake_file=t-netbsd
46f18e7b
RK
2461 float_format=vax
2462 ;;
2463 vax-*-ultrix*) # vaxen running ultrix
2464 tm_file="${tm_file} vax/ultrix.h"
2465 use_collect2=yes
2466 float_format=vax
2467 ;;
2468 vax-*-vms*) # vaxen running VMS
2469 xm_file=vax/xm-vms.h
2470 tm_file=vax/vms.h
2471 float_format=vax
2472 ;;
2473 vax-*-*) # vax default entry
2474 float_format=vax
2475 ;;
2476 we32k-att-sysv*)
2477 xm_file="${xm_file} xm-svr3"
2478 use_collect2=yes
2479 ;;
2480 *)
2481 echo "Configuration $machine not supported" 1>&2
2482 exit 1
2483 ;;
2484 esac
2485
2486 case $machine in
2487 *-*-linux-gnu*)
2488 ;; # Existing Linux/GNU systems do not use the GNU setup.
2489 *-*-gnu*)
2490 # On the GNU system, the setup is just about the same on
2491 # each different CPU. The specific machines that GNU
2492 # supports are matched above and just set $cpu_type.
2493 xm_file=${cpu_type}/xm-gnu.h
2494 tm_file=${cpu_type}/gnu.h
6b403743 2495 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
46f18e7b
RK
2496 # GNU always uses ELF.
2497 elf=yes
2498 # GNU tools are the only tools.
2499 gnu_ld=yes
2500 gas=yes
2501 # On GNU, the headers are already okay.
2502 fixincludes=Makefile.in
2503 xmake_file=x-linux # These details are the same as Linux.
2504 tmake_file=t-gnu # These are not.
2505 ;;
2506 *-*-sysv4*)
2507 fixincludes=fixinc.svr4
2508 xmake_try_sysv=x-sysv
46f18e7b
RK
2509 install_headers_dir=install-headers-cpio
2510 ;;
2511 *-*-sysv*)
46f18e7b
RK
2512 install_headers_dir=install-headers-cpio
2513 ;;
2514 esac
2515
2516 # Distinguish i[3456]86
2517 # Also, do not run mips-tfile on MIPS if using gas.
2518 # Process --with-cpu= for PowerPC/rs6000
2519 target_cpu_default2=
2520 case $machine in
2521 i486-*-*)
2522 target_cpu_default2=1
2523 ;;
2524 i586-*-*)
2525 target_cpu_default2=2
2526 ;;
2527 i686-*-*)
2528 target_cpu_default2=3
2529 ;;
08fc0184
RK
2530 alpha*-*-*)
2531 case $machine in
2532 alphaev56*)
2533 target_cpu_default2="MASK_CPU_EV5|MASK_BYTE_OPS"
2534 ;;
2535 alphaev5*)
2536 target_cpu_default2="MASK_CPU_EV5"
2537 ;;
2538 esac
2539
46f18e7b
RK
2540 if [[ x$gas = xyes ]]
2541 then
08fc0184
RK
2542 if [[ x$target_cpu_default2 = x ]]
2543 then
e71c3bb0 2544 target_cpu_default2="MASK_GAS"
08fc0184 2545 else
e71c3bb0 2546 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
08fc0184 2547 fi
46f18e7b
RK
2548 fi
2549 ;;
2550 mips*-*-ecoff* | mips*-*-elf*)
2551 if [[ x$gas = xyes ]]
2552 then
2553 if [[ x$gnu_ld = xyes ]]
2554 then
2555 target_cpu_default2=20
2556 else
2557 target_cpu_default2=16
2558 fi
2559 fi
2560 ;;
2561 mips*-*-*)
2562 if [[ x$gas = xyes ]]
2563 then
2564 target_cpu_default2=16
2565 fi
2566 ;;
2567 powerpc*-*-* | rs6000-*-*)
2568 case "x$with_cpu" in
2569 x)
2570 ;;
2571
2572 xcommon | xpower | xpower2 | xpowerpc | xrios \
52cddadb
MM
2573 | xrios1 | xrios2 | xrsc | xrsc1 \
2574 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2575 | x403 | x505 | x801 | x821 | x823 | x860)
f24b370a 2576 target_cpu_default2="\"$with_cpu\""
46f18e7b
RK
2577 ;;
2578
2579 xyes | xno)
2580 echo "--with-cpu must be passed a value" 1>&2
2581 exit 1
2582 ;;
2583
2584 *)
2585 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2586 exit 1
2587 ;;
2588 esac
2589 ;;
2590 sparc*-*-*)
2591 case ".$with_cpu" in
2592 .)
2593 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2594 ;;
2595 .supersparc | .ultrasparc | .v7 | .v8)
2596 target_cpu_default2="TARGET_CPU_$with_cpu"
2597 ;;
2598 *)
2599 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2600 exit 1
2601 ;;
2602 esac
2603 ;;
2604 esac
2605
2606 if [[ x$target_cpu_default2 != x ]]
2607 then
2608 if [[ x$target_cpu_default != x ]]
2609 then
2610 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2611 else
2612 target_cpu_default=$target_cpu_default2
2613 fi
2614 fi
2615
2616 # No need for collect2 if we have the GNU linker.
2617 case x$gnu_ld in
2618 xyes)
2619 use_collect2=
2620 ;;
2621 esac
2622
2623# Save data on machine being used to compile GCC in build_xm_file.
2624# Save data on host machine in vars host_xm_file and host_xmake_file.
2625 if [[ x$pass1done = x ]]
2626 then
2627 if [[ x"$xm_file" = x ]]
2628 then build_xm_file=$cpu_type/xm-$cpu_type.h
2629 else build_xm_file=$xm_file
2630 fi
46f18e7b
RK
2631 build_install_headers_dir=$install_headers_dir
2632 build_exeext=$exeext
2633 pass1done=yes
2634 else
2635 if [[ x$pass2done = x ]]
2636 then
2637 if [[ x"$xm_file" = x ]]
2638 then host_xm_file=$cpu_type/xm-$cpu_type.h
2639 else host_xm_file=$xm_file
2640 fi
2641 if [[ x"$xmake_file" = x ]]
2642 then xmake_file=$cpu_type/x-$cpu_type
2643 fi
2644 host_xmake_file="$xmake_file"
2645 host_truncate_target=$truncate_target
2646 host_extra_gcc_objs=$extra_gcc_objs
2647 host_extra_objs=$extra_host_objs
2648 pass2done=yes
2649 fi
2650 fi
2651done
2652
2653extra_objs="${host_extra_objs} ${extra_objs}"
2654
2655# Default the target-machine variables that were not explicitly set.
2656if [[ x"$tm_file" = x ]]
2657then tm_file=$cpu_type/$cpu_type.h; fi
2658
2659if [[ x$extra_headers = x ]]
2660then extra_headers=; fi
2661
2662if [[ x"$xm_file" = x ]]
2663then xm_file=$cpu_type/xm-$cpu_type.h; fi
2664
2665md_file=$cpu_type/$cpu_type.md
2666
2667if [[ x$out_file = x ]]
2668then out_file=$cpu_type/$cpu_type.c; fi
2669
2670if [[ x"$tmake_file" = x ]]
2671then tmake_file=$cpu_type/t-$cpu_type
2672fi
2673
2674if [[ x$float_format = x ]]
2675then float_format=i64
2676fi
2677
2678# Say what files are being used for the output code and MD file.
2679echo "Using \`$srcdir/config/$out_file' to output insns."
2680echo "Using \`$srcdir/config/$md_file' as machine description file."
2681
2682count=a
2683for f in $tm_file; do
2684 count=${count}x
2685done
2686if [[ $count = ax ]]; then
2687 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
2688else
2689 echo "Using the following target machine macro files:"
2690 for f in $tm_file; do
2691 echo " $srcdir/config/$f"
2692 done
2693fi
2694
2695count=a
2696for f in $host_xm_file; do
2697 count=${count}x
2698done
2699if [[ $count = ax ]]; then
2700 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
2701else
2702 echo "Using the following host machine macro files:"
2703 for f in $host_xm_file; do
2704 echo " $srcdir/config/$f"
2705 done
2706fi
2707
2708if [[ "$host_xm_file" != "$build_xm_file" ]]; then
2709 count=a
2710 for f in $build_xm_file; do
2711 count=${count}x
2712 done
2713 if [[ $count = ax ]]; then
2714 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
2715 else
2716 echo "Using the following build machine macro files:"
2717 for f in $build_xm_file; do
2718 echo " $srcdir/config/$f"
2719 done
2720 fi
2721fi
2722
0bbb1697
RK
2723if [[ x$thread_file = x ]]
2724then thread_file='single'
46f18e7b 2725fi
46f18e7b
RK
2726
2727# Set up the header files.
2728# $links is the list of header files to create.
2729# $vars is the list of shell variables with file names to include.
cdcc6a01
DE
2730# config2.h is the old config.h. It is included by the new config.h which
2731# created from config.in. The goal is to simplify the transition to autoconf.
46f18e7b 2732vars="host_xm_file tm_file xm_file build_xm_file"
cdcc6a01 2733links="config2.h tm.h tconfig.h hconfig.h"
46f18e7b
RK
2734
2735rm -f config.bak
2736if [[ -f config.status ]]; then mv -f config.status config.bak; fi
2737
2738# Make the links.
2739while [[ -n "$vars" ]]
2740do
2741 # set file to car of files, files to cdr of files
2742 set $vars; var=$1; shift; vars=$*
2743 set $links; link=$1; shift; links=$*
2744
2745 rm -f $link
2746
2747 # Define TARGET_CPU_DEFAULT if the system wants one.
2748 # This substitutes for lots of *.h files.
2749 if [[ x$target_cpu_default != x -a $link = tm.h ]]
2750 then
2751 echo "#define TARGET_CPU_DEFAULT $target_cpu_default" >>$link
2752 fi
2753
2754 for file in `eval echo '$'$var`; do
2755 echo "#include \"$file\"" >>$link
2756 done
2757done
2758
2759# Truncate the target if necessary
2760if [[ x$host_truncate_target != x ]]; then
2761 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
2762fi
2763
2764# Get the version number from the toplevel
2765version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
2766
7fa10b25
RK
2767# Get an absolute path to the GCC top-level source directory
2768holddir=`pwd`
2769cd $srcdir
2770topdir=`pwd`
2771cd $holddir
2772
af5e4ada 2773# Conditionalize the makefile for this host machine.
94f42018
DE
2774# Make-host contains the concatenation of all host makefile fragments
2775# [there can be more than one]. This file is built by configure.frag.
2776host_overrides=Make-host
af5e4ada 2777dep_host_xmake_file=
94f42018
DE
2778for f in .. ${host_xmake_file}
2779do
2780 if [[ -f ${srcdir}/config/$f ]]
2781 then
2782 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
2783 fi
2784done
46f18e7b 2785
af5e4ada 2786# Conditionalize the makefile for this target machine.
94f42018
DE
2787# Make-target contains the concatenation of all host makefile fragments
2788# [there can be more than one]. This file is built by configure.frag.
2789target_overrides=Make-target
af5e4ada 2790dep_tmake_file=
94f42018
DE
2791for f in .. ${tmake_file}
2792do
2793 if [[ -f ${srcdir}/config/$f ]]
2794 then
2795 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
2796 fi
2797done
5891b37d 2798
af5e4ada
DE
2799# If the host doesn't support symlinks, modify CC in
2800# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
2801# Otherwise, we can use "CC=$(CC)".
2802rm -f symtest.tem
2803if $symbolic_link symtest1.tem symtest.tem 2>/dev/null
2804then
2805 cc_set_by_configure="\$(CC)"
2806 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
2807else
2808 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
2809 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
2810fi
2811rm -f symtest.tem
5891b37d 2812
af5e4ada 2813out_object_file=`basename $out_file .c`.o
5891b37d 2814
af5e4ada
DE
2815tm_file_list=
2816for f in $tm_file; do
2817 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
2818done
46f18e7b 2819
af5e4ada
DE
2820host_xm_file_list=
2821for f in $host_xm_file; do
2822 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
2823done
2824
2825build_xm_file_list=
2826for f in $build_xm_file; do
2827 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
2828done
46f18e7b 2829
af5e4ada
DE
2830# Define macro CROSS_COMPILE in compilation
2831# if this is a cross-compiler.
2832# Also use all.cross instead of all.internal
2833# and add cross-make to Makefile.
571a8de5 2834cross_overrides="/dev/null"
af5e4ada
DE
2835if [[ x$host != x$target ]]
2836then
2837 cross_defines="CROSS=-DCROSS_COMPILE"
2838 cross_overrides="${topdir}/cross-make"
2839fi
46f18e7b 2840
af5e4ada
DE
2841# When building gcc with a cross-compiler, we need to fix a few things.
2842# This must come after cross-make as we want all.build to override
2843# all.cross.
571a8de5 2844build_overrides="/dev/null"
af5e4ada
DE
2845if [[ x$build != x$host ]]
2846then
2847 build_overrides="${topdir}/build-make"
2848fi
46f18e7b 2849
ae3a15bb
DE
2850# Expand extra_headers to include complete path.
2851# This substitutes for lots of t-* files.
2852extra_headers_list=
2853if [[ "x$extra_headers" = x ]]
2854then true
2855else
2856 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
2857 for file in $extra_headers;
2858 do
2859 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
2860 done
2861fi
2862
af5e4ada
DE
2863# Add a definition of USE_COLLECT2 if system wants one.
2864# Also tell toplev.c what to do.
2865# This substitutes for lots of t-* files.
2866if [[ x$use_collect2 = x ]]
2867then
2868 will_use_collect2=
2869 maybe_use_collect2=
2870else
2871 will_use_collect2="ld"
2872 maybe_use_collect2="-DUSE_COLLECT2"
2873fi
2874
2875# NEED TO CONVERT
2876# Set MD_DEPS if the real md file is in md.pre-cpp.
2877# Set MD_CPP to the cpp to pass the md file through. Md files use ';'
2878# for line oriented comments, so we must always use a GNU cpp. If
2879# building gcc with a cross compiler, use the cross compiler just
2880# built. Otherwise, we can use the cpp just built.
2881md_file_sub=
2882if [[ "x$md_cppflags" = x ]]
2883then
2884 md_file_sub=$srcdir/config/$md_file
2885else
2886 md_file=md
2887fi
2888
2889# If we have gas in the build tree, make a link to it.
2890if [[ -f ../gas/Makefile ]]; then
e41cea70 2891 rm -f as; $symbolic_link ../gas/as-new as 2>/dev/null
af5e4ada
DE
2892fi
2893
2894# If we have ld in the build tree, make a link to it.
2895if [[ -f ../ld/Makefile ]]; then
aa32d841 2896# if [[ x$use_collect2 = x ]]; then
e41cea70 2897# rm -f ld; $symbolic_link ../ld/ld-new ld 2>/dev/null
aa32d841 2898# else
e41cea70 2899 rm -f collect-ld; $symbolic_link ../ld/ld-new collect-ld 2>/dev/null
aa32d841 2900# fi
af5e4ada
DE
2901fi
2902
571a8de5
DE
2903# Figure out what language subdirectories are present.
2904subdirs=
2905for lang in ${srcdir}/*/config-lang.in ..
2906do
2907 case $lang in
2908 ..) ;;
2909 # The odd quoting in the next line works around
2910 # an apparent bug in bash 1.12 on linux.
2911 ${srcdir}/[[*]]/config-lang.in) ;;
2912 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
2913 esac
2914done
2915
2916# Make empty files to contain the specs and options for each language.
2917# Then add #include lines to for a compiler that has specs and/or options.
2918
2919lang_specs_files=
2920lang_options_files=
2921rm -f specs.h options.h
2922touch specs.h options.h
2923for subdir in . $subdirs
2924do
2925 if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
2926 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
2927 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
2928 fi
2929 if [[ -f $srcdir/$subdir/lang-options.h ]]; then
2930 echo "#include \"$subdir/lang-options.h\"" >>options.h
2931 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
2932 fi
2933done
2934
2935# These (without "all_") are set in each config-lang.in.
2936# `language' must be a single word so is spelled singularly.
2937all_languages=
2938all_boot_languages=
2939all_compilers=
2940all_stagestuff=
2941all_diff_excludes=
0280cf84 2942all_outputs=Makefile
571a8de5
DE
2943# List of language makefile fragments.
2944all_lang_makefiles=
2945all_headers=
2946all_lib2funcs=
2947
2948# Add the language fragments.
2949# Languages are added via two mechanisms. Some information must be
2950# recorded in makefile variables, these are defined in config-lang.in.
2951# We accumulate them and plug them into the main Makefile.
2952# The other mechanism is a set of hooks for each of the main targets
2953# like `clean', `install', etc.
2954
2955language_fragments="Make-lang"
2956language_hooks="Make-hooks"
0280cf84 2957oldstyle_subdirs=
571a8de5
DE
2958
2959for s in .. $subdirs
2960do
2961 if [[ $s != ".." ]]
2962 then
2963 language=
2964 boot_language=
2965 compilers=
2966 stagestuff=
2967 diff_excludes=
2968 headers=
0280cf84 2969 outputs=
571a8de5
DE
2970 lib2funcs=
2971 . ${srcdir}/$s/config-lang.in
2972 if [[ "x$language" = x ]]
2973 then
2974 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
2975 exit 1
2976 fi
2977 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
2978 all_languages="$all_languages $language"
2979 if [[ "x$boot_language" = xyes ]]
2980 then
2981 all_boot_languages="$all_boot_languages $language"
2982 fi
2983 all_compilers="$all_compilers $compilers"
2984 all_stagestuff="$all_stagestuff $stagestuff"
2985 all_diff_excludes="$all_diff_excludes $diff_excludes"
2986 all_headers="$all_headers $headers"
0280cf84
PB
2987 all_outputs="$all_outputs $outputs"
2988 if [[ x$outputs = x ]]
2989 then
2990 oldstyle_subdirs="$oldstyle_subdirs $s"
2991 fi
571a8de5
DE
2992 all_lib2funcs="$all_lib2funcs $lib2funcs"
2993 fi
2994done
2995
2996# Since we can't use `::' targets, we link each language in
2997# with a set of hooks, reached indirectly via lang.${target}.
2998
2999rm -f Make-hooks
3000touch Make-hooks
3001target_list="all.build all.cross start.encap rest.encap \
3002 info dvi \
3003 install-normal install-common install-info install-man \
3004 uninstall distdir \
3005 mostlyclean clean distclean extraclean maintainer-clean \
3006 stage1 stage2 stage3 stage4"
3007for t in $target_list
3008do
3009 x=
3010 for l in .. $all_languages
3011 do
3012 if [[ $l != ".." ]]; then
3013 x="$x $l.$t"
3014 fi
3015 done
3016 echo "lang.$t: $x" >> Make-hooks
3017done
3018
296e46bd
DE
3019# If we're not building in srcdir, create .gdbinit.
3020
3021if [[ ! -f Makefile.in ]]; then
3022 echo "dir ." > .gdbinit
3023 echo "dir ${srcdir}" >> .gdbinit
3024 if [[ x$gdb_needs_out_file_path = xyes ]]
3025 then
3026 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3027 fi
3028 if [[ "x$subdirs" != x ]]; then
3029 for s in $subdirs
3030 do
3031 echo "dir ${srcdir}/$s" >> .gdbinit
3032 done
3033 fi
3034 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3035fi
3036
8c660648
JL
3037# Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3038sched_prefix=
3039sched_cflags=
3040if [[ x$enable_haifa = xyes ]]; then
3041 echo "Using the Haifa scheduler."
3042 sched_prefix=haifa-
3043 sched_cflags=-DHAIFA
3044fi
3045AC_SUBST(sched_prefix)
3046AC_SUBST(sched_cflags)
3047if [[ x$enable_haifa != x ]]; then
3048 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3049 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
992d1248 3050 if [[ -f $x ]]; then
8c660648
JL
3051 echo "Removing $x"
3052 rm -f $x
3053 fi
3054 done
3055fi
3056
94f42018
DE
3057# Process the language and host/target makefile fragments.
3058${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
47866ac0 3059
46f18e7b
RK
3060# Substitute configuration variables
3061AC_SUBST(subdirs)
3062AC_SUBST(all_languages)
3063AC_SUBST(all_boot_languages)
3064AC_SUBST(all_compilers)
3065AC_SUBST(all_lang_makefiles)
3066AC_SUBST(all_stagestuff)
3067AC_SUBST(all_diff_excludes)
3068AC_SUBST(all_lib2funcs)
3069AC_SUBST(all_headers)
3070AC_SUBST(extra_passes)
3071AC_SUBST(extra_programs)
3072AC_SUBST(extra_parts)
b4294351
PB
3073AC_SUBST(extra_c_objs)
3074AC_SUBST(extra_c_flags)
46f18e7b
RK
3075AC_SUBST(extra_objs)
3076AC_SUBST(host_extra_gcc_objs)
3077AC_SUBST(extra_headers_list)
3078AC_SUBST(dep_host_xmake_file)
3079AC_SUBST(dep_tmake_file)
3080AC_SUBST(out_file)
3081AC_SUBST(out_object_file)
3082AC_SUBST(md_file)
3083AC_SUBST(tm_file_list)
3084AC_SUBST(build_xm_file_list)
3085AC_SUBST(host_xm_file_list)
3086AC_SUBST(lang_specs_files)
3087AC_SUBST(lang_options_files)
0bbb1697 3088AC_SUBST(thread_file)
46f18e7b
RK
3089AC_SUBST(version)
3090AC_SUBST(local_prefix)
9514f0d1 3091AC_SUBST(gxx_include_dir)
46f18e7b
RK
3092AC_SUBST(fixincludes)
3093AC_SUBST(build_install_headers_dir)
a204adc6 3094AC_SUBST(build_exeext)
46f18e7b
RK
3095AC_SUBST(float_format)
3096AC_SUBST(will_use_collect2)
3097AC_SUBST(maybe_use_collect2)
3098AC_SUBST(cc_set_by_configure)
3099AC_SUBST(stage_prefix_set_by_configure)
3100
3101AC_SUBST_FILE(target_overrides)
3102AC_SUBST_FILE(host_overrides)
3103AC_SUBST(cross_defines)
3104AC_SUBST_FILE(cross_overrides)
3105AC_SUBST_FILE(build_overrides)
3106AC_SUBST_FILE(language_fragments)
3107AC_SUBST_FILE(language_hooks)
3108
3109# Echo that links are built
3110if [[ x$host = x$target ]]
3111then
3112 str1="native "
3113else
3114 str1="cross-"
3115 str2=" from $host"
3116fi
3117
3118if [[ x$host != x$build ]]
3119then
3120 str3=" on a $build system"
3121fi
3122
3123if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3124then
3125 str4=
3126fi
3127
3128echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3129
3130if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3131then
3132 echo " ${str2}${str3}." 1>&2
3133fi
3134
3135# Configure the subdirectories
3136# AC_CONFIG_SUBDIRS($subdirs)
3137
3138# Create the Makefile
5891b37d 3139# and configure language subdirectories
0280cf84 3140AC_OUTPUT($all_outputs,
cdcc6a01
DE
3141[
3142. $srcdir/configure.lang
3143case x$CONFIG_HEADERS in
3144xconfig.h:config.in)
818b66cc 3145echo > cstamp-h ;;
cdcc6a01
DE
3146esac
3147],
3148[
5891b37d
RK
3149host='${host}'
3150build='${build}'
3151target='${target}'
52060267 3152target_alias='${target_alias}'
5891b37d
RK
3153srcdir='${srcdir}'
3154subdirs='${subdirs}'
296e46bd 3155oldstyle_subdirs='${oldstyle_subdirs}'
5891b37d
RK
3156symbolic_link='${symbolic_link}'
3157program_transform_set='${program_transform_set}'
3158program_transform_name='${program_transform_name}'
5891b37d
RK
3159dep_host_xmake_file='${dep_host_xmake_file}'
3160host_xmake_file='${host_xmake_file}'
3161dep_tmake_file='${dep_tmake_file}'
3162tmake_file='${tmake_file}'
0bbb1697 3163thread_file='${thread_file}'
5891b37d
RK
3164version='${version}'
3165local_prefix='${local_prefix}'
5891b37d 3166build_install_headers_dir='${build_install_headers_dir}'
a204adc6 3167build_exeext='${build_exeext}'
7ed46111 3168out_file='${out_file}'
5891b37d
RK
3169gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3170SET_MAKE='${SET_MAKE}'
5891b37d 3171target_list='${target_list}'
5891b37d
RK
3172target_overrides='${target_overrides}'
3173host_overrides='${host_overrides}'
3174cross_defines='${cross_defines}'
3175cross_overrides='${cross_overrides}'
3176build_overrides='${build_overrides}'
cdcc6a01 3177])