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