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