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