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