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