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