]> gcc.gnu.org Git - gcc.git/blame - gcc/configure.in
Rename CYGNUS LOCAL to EGCS LOCAL
[gcc.git] / gcc / configure.in
CommitLineData
46f18e7b
RK
1# configure.in for GNU CC
2# Process this file with autoconf to generate a configuration script.
3
4283012f 4# Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
46f18e7b
RK
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
c9a3de16 24AC_PREREQ(2.12.1)
46f18e7b 25AC_INIT(tree.c)
b7cb92ad 26AC_CONFIG_HEADER(auto-host.h:config.in)
cdcc6a01 27
46f18e7b
RK
28remove=rm
29hard_link=ln
30symbolic_link='ln -s'
31copy=cp
32
75a39864
JL
33# Check for bogus environment variables.
34# Test if LIBRARY_PATH contains the notation for the current directory
35# since this would lead to problems installing/building glibc.
36# LIBRARY_PATH contains the current directory if one of the following
37# is true:
38# - one of the terminals (":" and ";") is the first or last sign
39# - two terminals occur directly after each other
40# - the path contains an element with a dot in it
41AC_MSG_CHECKING(LIBRARY_PATH variable)
42changequote(,)dnl
43case ${LIBRARY_PATH} in
44 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
45 library_path_setting="contains current directory"
46 ;;
47 *)
48 library_path_setting="ok"
49 ;;
50esac
51changequote([,])dnl
52AC_MSG_RESULT($library_path_setting)
53if test "$library_path_setting" != "ok"; then
54AC_MSG_ERROR([
55*** LIBRARY_PATH shouldn't contain the current directory when
56*** building egcs. Please change the environment variable
57*** and run configure again.])
58fi
59
60# Test if GCC_EXEC_PREFIX contains the notation for the current directory
61# since this would lead to problems installing/building glibc.
62# GCC_EXEC_PREFIX contains the current directory if one of the following
63# is true:
64# - one of the terminals (":" and ";") is the first or last sign
65# - two terminals occur directly after each other
66# - the path contains an element with a dot in it
67AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
68changequote(,)dnl
69case ${GCC_EXEC_PREFIX} in
70 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
71 gcc_exec_prefix_setting="contains current directory"
72 ;;
73 *)
74 gcc_exec_prefix_setting="ok"
75 ;;
76esac
77changequote([,])dnl
78AC_MSG_RESULT($gcc_exec_prefix_setting)
79if test "$gcc_exec_prefix_setting" != "ok"; then
80AC_MSG_ERROR([
81*** GCC_EXEC_PREFIX shouldn't contain the current directory when
82*** building egcs. Please change the environment variable
83*** and run configure again.])
84fi
85
46f18e7b
RK
86# Check for additional parameters
87
88# With GNU ld
89AC_ARG_WITH(gnu-ld,
90[ --with-gnu-ld arrange to work with GNU ld.],
df6faf79
JW
91gnu_ld_flag="$with_gnu_ld",
92gnu_ld_flag=no)
46f18e7b 93
ab339d62
AO
94# With pre-defined ld
95AC_ARG_WITH(ld,
96[ --with-ld arrange to use the specified ld (full pathname).],
3ccc3a56
AO
97DEFAULT_LINKER="$with_ld")
98if test x"${DEFAULT_LINKER+set}" = x"set"; then
99 if test ! -x "$DEFAULT_LINKER"; then
100 AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
101 elif test "GNU" = `$DEFAULT_LINKER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
ab339d62
AO
102 gnu_ld_flag=yes
103 fi
3ccc3a56 104 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER")
ab339d62
AO
105fi
106
46f18e7b
RK
107# With GNU as
108AC_ARG_WITH(gnu-as,
4d8392b7 109[ --with-gnu-as arrange to work with GNU as.],
df6faf79
JW
110gas_flag="$with_gnu_as",
111gas_flag=no)
46f18e7b 112
ab339d62
AO
113AC_ARG_WITH(as,
114[ --with-as arrange to use the specified as (full pathname).],
3ccc3a56
AO
115DEFAULT_ASSEMBLER="$with_as")
116if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
117 if test ! -x "$DEFAULT_ASSEMBLER"; then
118 AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
119 elif test "GNU" = `$DEFAULT_ASSEMBLER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
ab339d62
AO
120 gas_flag=yes
121 fi
3ccc3a56
AO
122 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER")
123fi
ab339d62 124
46f18e7b
RK
125# With stabs
126AC_ARG_WITH(stabs,
127[ --with-stabs arrange to use stabs instead of host debug format.],
535b86ce 128stabs="$with_stabs",
46f18e7b
RK
129stabs=no)
130
131# With ELF
132AC_ARG_WITH(elf,
133[ --with-elf arrange to use ELF instead of host debug format.],
535b86ce 134elf="$with_elf",
46f18e7b
RK
135elf=no)
136
4d8392b7 137# Specify the local prefix
4e88d51b 138local_prefix=
4d8392b7
RK
139AC_ARG_WITH(local-prefix,
140[ --with-local-prefix=DIR specifies directory to put local include.],
4e88d51b
JM
141[case "${withval}" in
142yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
143no) ;;
144*) local_prefix=$with_local_prefix ;;
145esac])
4d8392b7
RK
146
147# Default local prefix if it is empty
75bffa71 148if test x$local_prefix = x; then
4d8392b7
RK
149 local_prefix=/usr/local
150fi
151
4e88d51b 152gxx_include_dir=
9514f0d1
RK
153# Specify the g++ header file directory
154AC_ARG_WITH(gxx-include-dir,
155[ --with-gxx-include-dir=DIR
156 specifies directory to put g++ header files.],
4e88d51b
JM
157[case "${withval}" in
158yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
159no) ;;
160*) gxx_include_dir=$with_gxx_include_dir ;;
161esac])
162
163if test x${gxx_include_dir} = x; then
164 if test x${enable_version_specific_runtime_libs} = xyes; then
165 gxx_include_dir='${libsubdir}/include/g++'
166 else
a270b446 167 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
de82584d 168changequote(<<, >>)dnl
6f144c9c 169 gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
de82584d 170changequote([, ])dnl
4e88d51b
JM
171 fi
172fi
46f18e7b 173
a494747c
MM
174# Enable expensive internal checks
175AC_ARG_ENABLE(checking,
176[ --enable-checking enable expensive run-time checks.],
4e88d51b
JM
177[case "${enableval}" in
178yes) AC_DEFINE(ENABLE_CHECKING) ;;
179no) ;;
180*) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
181esac])
a494747c 182
f81a440f 183# Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
e061d1ce 184cpp_main=cccp
f81a440f
ZW
185AC_ARG_ENABLE(cpplib,
186[ --enable-cpplib use cpplib for the C preprocessor.],
187if test x$enable_cpplib != xno; then
188 cpp_main=cppmain
189fi)
190
191# Link cpplib into the compiler proper, for C/C++/ObjC.
b4294351 192AC_ARG_ENABLE(c-cpplib,
f81a440f
ZW
193[ --enable-c-cpplib link cpplib directly into C and C++ compilers
194 (implies --enable-cpplib).],
75bffa71 195if test x$enable_c_cpplib != xno; then
19283265
RH
196 extra_c_objs="${extra_c_objs} libcpp.a"
197 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
b4294351 198 extra_c_flags=-DUSE_CPPLIB=1
e061d1ce 199 cpp_main=cppmain
b4294351 200fi)
f81a440f 201
56f48ce9
DB
202# Enable Multibyte Characters for C/C++
203AC_ARG_ENABLE(c-mbchar,
f81a440f 204[ --enable-c-mbchar enable multibyte characters for C and C++.],
75bffa71 205if test x$enable_c_mbchar != xno; then
56f48ce9
DB
206 extra_c_flags=-DMULTIBYTE_CHARS=1
207fi)
208
9101297d
DL
209# Enable Haifa scheduler.
210AC_ARG_ENABLE(haifa,
f81a440f
ZW
211[ --enable-haifa use the experimental scheduler.
212 --disable-haifa don't use the experimental scheduler for the
9101297d 213 targets which normally enable it.])
4b104d6e
JL
214# Fast fixincludes
215#
216# This is a work in progress...
34a4c466 217AC_ARG_WITH(fast-fixincludes,
94878f15 218[ --with-fast-fixincludes use a faster fixinclude program (experimental)],
4b104d6e
JL
219fast_fixinc="$with_fast_fixincludes",
220fast_fixinc=no)
b4294351 221
2ce3c6c6
JM
222# Enable init_priority.
223AC_ARG_ENABLE(init-priority,
f81a440f 224[ --enable-init-priority use attributes to assign initialization order
2ce3c6c6 225 for static objects.
f81a440f 226 --disable-init-priority conform to ISO C++ rules for ordering static objects
2ce3c6c6 227 (i.e. initialized in order of declaration). ],
75bffa71 228if test x$enable_init_priority != xno; then
2ce3c6c6
JM
229 extra_c_flags=-DUSE_INIT_PRIORITY
230fi)
231
0bbb1697
RK
232# Enable threads
233# Pass with no value to take the default
234# Pass with a value to specify a thread package
235AC_ARG_ENABLE(threads,
236[ --enable-threads enable thread usage for target GCC.
237 --enable-threads=LIB use LIB thread package for target GCC.],
75bffa71 238if test x$enable_threads = xno; then
0bbb1697
RK
239 enable_threads=''
240fi,
241enable_threads='')
242
e445171e 243enable_threads_flag=$enable_threads
0bbb1697 244# Check if a valid thread package
e445171e 245case x${enable_threads_flag} in
0bbb1697
RK
246 x | xno)
247 # No threads
a851212a 248 target_thread_file='single'
0bbb1697
RK
249 ;;
250 xyes)
251 # default
a851212a 252 target_thread_file=''
0bbb1697
RK
253 ;;
254 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
7cc34889 255 xsolaris | xwin32 | xdce | xvxworks)
e445171e 256 target_thread_file=$enable_threads_flag
0bbb1697
RK
257 ;;
258 *)
259 echo "$enable_threads is an unknown thread package" 1>&2
260 exit 1
261 ;;
262esac
263
d8bb17c8
OP
264AC_ARG_ENABLE(objc-gc,
265[ --enable-objc-gc enable the use of Boehm's garbage collector with
266 the GNU Objective-C runtime.],
267if [[[ x$enable_objc_gc = xno ]]]; then
268 objc_boehm_gc=''
269else
270 objc_boehm_gc=1
271fi,
272objc_boehm_gc='')
273
df37e3db
TT
274AC_ARG_ENABLE(java-gc,
275changequote(<<,>>)dnl
276<< --enable-java-gc=TYPE choose garbage collector [boehm]>>,
277changequote([,])
278 JAVAGC=$enableval,
279 JAVAGC=boehm)
280
90e6a802
RL
281AC_ARG_WITH(dwarf2,
282[ --enable-dwarf2 enable DWARF2 debugging as default.],
283dwarf2="$with_dwarf2",
284dwarf2=no)
285
46f18e7b
RK
286# Determine the host, build, and target systems
287AC_CANONICAL_SYSTEM
288
e9a25f70
JL
289# Find the native compiler
290AC_PROG_CC
61842080
MM
291
292# If the native compiler is GCC, we can enable warnings even in stage1.
293# That's useful for people building cross-compilers, or just running a
294# quick `make'.
295if test "x$GCC" = "xyes"; then
296 stage1_warn_cflags='$(WARN_CFLAGS)'
297else
298 stage1_warn_cflags=""
299fi
300AC_SUBST(stage1_warn_cflags)
301
e9a25f70
JL
302AC_PROG_MAKE_SET
303
ab339d62 304AC_MSG_CHECKING([whether a default assembler was specified])
3ccc3a56 305if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
ab339d62 306 if test x"$with_gas" = x"no"; then
3ccc3a56 307 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
ab339d62 308 else
3ccc3a56 309 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
ab339d62
AO
310 fi
311else
312 AC_MSG_RESULT(no)
313fi
314
315AC_MSG_CHECKING([whether a default linker was specified])
3ccc3a56 316if test x"${DEFAULT_LINKER+set}" = x"set"; then
ab339d62 317 if test x"$with_gnu_ld" = x"no"; then
3ccc3a56 318 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
ab339d62 319 else
3ccc3a56 320 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
ab339d62
AO
321 fi
322else
323 AC_MSG_RESULT(no)
324fi
325
46f18e7b
RK
326# Find some useful tools
327AC_PROG_AWK
328AC_PROG_LEX
ac64120e
JW
329GCC_PROG_LN
330GCC_PROG_LN_S
e9b4fabf 331GCC_C_VOLATILE
46f18e7b
RK
332AC_PROG_RANLIB
333AC_PROG_YACC
76143254 334EGCS_PROG_INSTALL
46f18e7b 335
956d6950
JL
336AC_HEADER_STDC
337AC_HEADER_TIME
ccc7d11a 338GCC_HEADER_STRING
e9831ca0 339AC_HEADER_SYS_WAIT
a05e22b8 340AC_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 sys/stat.h)
7636d567 341
f24af81b
TT
342# Check for thread headers.
343AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
344AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
345
bcf12124
JL
346# See if GNAT has been installed
347AC_CHECK_PROG(gnat, gnatbind, yes, no)
348
76844337
RH
349# See if the system preprocessor understands the ANSI C preprocessor
350# stringification operator.
351AC_MSG_CHECKING(whether cpp understands the stringify operator)
352AC_CACHE_VAL(gcc_cv_c_have_stringify,
353[AC_TRY_COMPILE(,
354[#define S(x) #x
355char *test = S(foo);],
356gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
357AC_MSG_RESULT($gcc_cv_c_have_stringify)
358if test $gcc_cv_c_have_stringify = yes; then
359 AC_DEFINE(HAVE_CPP_STRINGIFY)
360fi
361
7636d567
JW
362# Use <inttypes.h> only if it exists,
363# doesn't clash with <sys/types.h>, and declares intmax_t.
364AC_MSG_CHECKING(for inttypes.h)
365AC_CACHE_VAL(gcc_cv_header_inttypes_h,
366[AC_TRY_COMPILE(
367 [#include <sys/types.h>
368#include <inttypes.h>],
369 [intmax_t i = -1;],
9da0e39b 370 [gcc_cv_header_inttypes_h=yes],
7636d567
JW
371 gcc_cv_header_inttypes_h=no)])
372AC_MSG_RESULT($gcc_cv_header_inttypes_h)
9da0e39b
AS
373if test $gcc_cv_header_inttypes_h = yes; then
374 AC_DEFINE(HAVE_INTTYPES_H)
375fi
cdcc6a01 376
76b4b31e 377AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
8f81384f 378 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
54953b66
UD
379 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
380 fputs_unlocked)
a81fb89e 381
56f48ce9
DB
382# Make sure wchar_t is available
383#AC_CHECK_TYPE(wchar_t, unsigned int)
384
76b4b31e 385GCC_FUNC_VFPRINTF_DOPRNT
f1b54f9b 386GCC_FUNC_PRINTF_PTR
c375c43b 387AC_FUNC_VFORK
f1b54f9b 388
a81fb89e 389GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
007e8d2a
KG
390 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
391 strsignal)
cdcc6a01 392
d2cabf16
KG
393GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
394#include <sys/types.h>
395#ifdef HAVE_SYS_RESOURCE_H
396#include <sys/resource.h>
397#endif
398])
399
e3512ac2
JL
400AC_DECL_SYS_SIGLIST
401
46f18e7b
RK
402# File extensions
403manext='.1'
404objext='.o'
46f18e7b
RK
405AC_SUBST(manext)
406AC_SUBST(objext)
46f18e7b
RK
407
408build_xm_file=
61536478 409build_xm_defines=
46f18e7b
RK
410build_install_headers_dir=install-headers-tar
411build_exeext=
412host_xm_file=
61536478 413host_xm_defines=
46f18e7b
RK
414host_xmake_file=
415host_truncate_target=
6e26218f 416host_exeext=
46f18e7b 417
9fc9b82a
L
418# It is relative to $prefix.
419cpp_install_dir=
420
46f18e7b
RK
421# Decode the host machine, then the target machine.
422# For the host machine, we save the xm_file variable as host_xm_file;
423# then we decode the target machine and forget everything else
424# that came from the host machine.
425for machine in $build $host $target; do
426
427 out_file=
428 xmake_file=
429 tmake_file=
430 extra_headers=
431 extra_passes=
432 extra_parts=
433 extra_programs=
434 extra_objs=
435 extra_host_objs=
436 extra_gcc_objs=
61536478 437 xm_defines=
46f18e7b
RK
438 float_format=
439 # Set this to force installation and use of collect2.
440 use_collect2=
441 # Set this to override the default target model.
442 target_cpu_default=
46f18e7b 443 # Set this to control which fixincludes program to use.
75bffa71 444 if test x$fast_fixinc != xyes; then
4b104d6e
JL
445 fixincludes=fixincludes
446 else fixincludes=fixinc.sh ; fi
46f18e7b
RK
447 # Set this to control how the header file directory is installed.
448 install_headers_dir=install-headers-tar
449 # Set this to a non-empty list of args to pass to cpp if the target
450 # wants its .md file passed through cpp.
451 md_cppflags=
452 # Set this if directory names should be truncated to 14 characters.
453 truncate_target=
454 # Set this if gdb needs a dir command with `dirname $out_file`
455 gdb_needs_out_file_path=
46f18e7b
RK
456 # Set this if the build machine requires executables to have a
457 # file name suffix.
458 exeext=
a851212a
JW
459 # Set this to control which thread package will be used.
460 thread_file=
df6faf79
JW
461 # Reinitialize these from the flag values every loop pass, since some
462 # configure entries modify them.
463 gas="$gas_flag"
464 gnu_ld="$gnu_ld_flag"
e445171e 465 enable_threads=$enable_threads_flag
46f18e7b
RK
466
467 # Set default cpu_type, tm_file and xm_file so it can be updated in
468 # each machine entry.
469 cpu_type=`echo $machine | sed 's/-.*$//'`
470 case $machine in
08fc0184
RK
471 alpha*-*-*)
472 cpu_type=alpha
473 ;;
46f18e7b
RK
474 arm*-*-*)
475 cpu_type=arm
476 ;;
477 c*-convex-*)
478 cpu_type=convex
479 ;;
75bffa71
ILT
480changequote(,)dnl
481 i[34567]86-*-*)
482changequote([,])dnl
46f18e7b
RK
483 cpu_type=i386
484 ;;
485 hppa*-*-*)
486 cpu_type=pa
487 ;;
488 m68000-*-*)
489 cpu_type=m68k
490 ;;
491 mips*-*-*)
492 cpu_type=mips
493 ;;
494 powerpc*-*-*)
495 cpu_type=rs6000
496 ;;
497 pyramid-*-*)
498 cpu_type=pyr
499 ;;
500 sparc*-*-*)
501 cpu_type=sparc
502 ;;
503 esac
504
505 tm_file=${cpu_type}/${cpu_type}.h
506 xm_file=${cpu_type}/xm-${cpu_type}.h
507
1b4a979b 508 # Common parts for linux-gnu and openbsd systems
61536478
JL
509 case $machine in
510 *-*-linux-gnu*)
c7391272 511 xm_defines="HAVE_ATEXIT POSIX BSTRING"
61536478 512 ;;
1b4a979b
ME
513 *-*-openbsd*)
514 tm_file=${cpu_type}/openbsd.h
515 # On OpenBSD systems, the headers are okay
516 fixincludes=Makefile.in
517 tmake_file="t-libc-ok t-openbsd"
518 # avoid surprises, always provide an xm-openbsd file
519 xm_file=${cpu_type}/xm-openbsd.h
520 if test x$enable_threads = xyes; then
521 thread_file='posix'
522 tmake_file="${tmake_file} t-openbsd-thread"
523 fi
524 ;;
61536478
JL
525 esac
526
46f18e7b
RK
527 case $machine in
528 # Support site-specific machine types.
529 *local*)
530 cpu_type=`echo $machine | sed -e 's/-.*//'`
531 rest=`echo $machine | sed -e "s/$cpu_type-//"`
532 xm_file=${cpu_type}/xm-$rest.h
533 tm_file=${cpu_type}/$rest.h
75bffa71 534 if test -f $srcdir/config/${cpu_type}/x-$rest; \
46f18e7b
RK
535 then xmake_file=${cpu_type}/x-$rest; \
536 else true; \
537 fi
75bffa71 538 if test -f $srcdir/config/${cpu_type}/t-$rest; \
46f18e7b
RK
539 then tmake_file=${cpu_type}/t-$rest; \
540 else true; \
541 fi
542 ;;
543 1750a-*-*)
544 ;;
545 a29k-*-bsd* | a29k-*-sym1*)
546 tm_file="${tm_file} a29k/unix.h"
61536478 547 xm_defines=USG
46f18e7b
RK
548 xmake_file=a29k/x-unix
549 use_collect2=yes
550 ;;
551 a29k-*-udi | a29k-*-coff)
552 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
553 tmake_file=a29k/t-a29kbare
554 ;;
7cc34889 555 a29k-wrs-vxworks*)
46f18e7b
RK
556 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
557 tmake_file=a29k/t-vx29k
558 extra_parts="crtbegin.o crtend.o"
7cc34889 559 thread_file='vxworks'
46f18e7b
RK
560 ;;
561 a29k-*-*) # Default a29k environment.
562 use_collect2=yes
563 ;;
08fc0184 564 alpha*-*-linux-gnuecoff*)
8983c716 565 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
61536478 566 target_cpu_default="MASK_GAS"
e71c3bb0 567 gas=no
46f18e7b 568 xmake_file=none
46f18e7b
RK
569 gas=yes gnu_ld=yes
570 ;;
704a6306 571 alpha*-*-linux-gnulibc1*)
9d654bba 572 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
61536478 573 target_cpu_default="MASK_GAS"
574badbc
RH
574 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
575 extra_parts="crtbegin.o crtend.o"
9d654bba 576 fixincludes=fixinc.wrap
704a6306 577 xmake_file=none
704a6306 578 gas=yes gnu_ld=yes
75bffa71 579 if test x$enable_threads = xyes; then
704a6306
RH
580 thread_file='posix'
581 fi
582 ;;
08fc0184 583 alpha*-*-linux-gnu*)
9d654bba 584 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
61536478 585 target_cpu_default="MASK_GAS"
574badbc
RH
586 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
587 extra_parts="crtbegin.o crtend.o"
46f18e7b
RK
588 xmake_file=none
589 fixincludes=Makefile.in
46f18e7b 590 gas=yes gnu_ld=yes
75bffa71 591 if test x$enable_threads = xyes; then
c811d261
RK
592 thread_file='posix'
593 fi
46f18e7b 594 ;;
9d654bba 595 alpha*-*-netbsd*)
66953094 596 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
9d654bba
RH
597 target_cpu_default="MASK_GAS"
598 tmake_file="alpha/t-crtbe"
599 extra_parts="crtbegin.o crtend.o"
600 xmake_file=none
601 fixincludes=fixinc.wrap
602 gas=yes gnu_ld=yes
603 ;;
1b4a979b
ME
604
605 alpha*-*-openbsd*)
606 # default x-alpha is only appropriate for dec-osf.
607 target_cpu_default="MASK_GAS"
608 xmake_file=none
609 ;;
9d654bba 610
e9a25f70 611 alpha*-dec-osf*)
75bffa71 612 if test x$stabs = xyes
dec3e070
JW
613 then
614 tm_file="${tm_file} dbx.h"
615 fi
75bffa71 616 if test x$gas != xyes
dec3e070
JW
617 then
618 extra_passes="mips-tfile mips-tdump"
619 fi
dec3e070 620 use_collect2=yes
dec3e070 621 case $machine in
6ecd4e53 622 *-*-osf1*)
b0435cf4 623 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
e9a25f70 624 ;;
75bffa71
ILT
625changequote(,)dnl
626 *-*-osf[23]*)
627changequote([,])dnl
b0435cf4 628 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
e9a25f70
JL
629 ;;
630 *-*-osf4*)
b0435cf4 631 tm_file="${tm_file} alpha/osf.h"
e9a25f70
JL
632 # Some versions of OSF4 (specifically X4.0-9 296.7) have
633 # a broken tar, so we use cpio instead.
dec3e070
JW
634 install_headers_dir=install-headers-cpio
635 ;;
636 esac
e9a25f70 637 case $machine in
75bffa71
ILT
638changequote(,)dnl
639 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
640changequote([,])dnl
e9a25f70
JL
641 target_cpu_default=MASK_SUPPORT_ARCH
642 ;;
643 esac
46f18e7b 644 ;;
9ec36da5
JL
645 alpha*-*-vxworks*)
646 tm_file="${tm_file} dbx.h alpha/vxworks.h"
647 if [ x$gas != xyes ]
648 then
649 extra_passes="mips-tfile mips-tdump"
650 fi
651 use_collect2=yes
652 ;;
b0435cf4 653 alpha*-*-winnt*)
46f18e7b 654 tm_file="${tm_file} alpha/win-nt.h"
46f18e7b
RK
655 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
656 tmake_file=t-libc-ok
657 xmake_file=winnt/x-winnt
658 extra_host_objs=oldnames.o
659 extra_gcc_objs="spawnv.o oldnames.o"
660 fixincludes=fixinc.winnt
75bffa71 661 if test x$gnu_ld != xyes
46f18e7b
RK
662 then
663 extra_programs=ld.exe
664 fi
75bffa71 665 if test x$enable_threads = xyes; then
0bbb1697
RK
666 thread_file='win32'
667 fi
46f18e7b 668 ;;
08fc0184 669 alpha*-dec-vms*)
46f18e7b
RK
670 tm_file=alpha/vms.h
671 xm_file="${xm_file} alpha/xm-vms.h"
672 tmake_file=alpha/t-vms
673 fixincludes=Makefile.in
674 ;;
66ed0683
JL
675 arc-*-elf*)
676 extra_parts="crtinit.o crtfini.o"
677 ;;
46f18e7b
RK
678 arm-*-coff* | armel-*-coff*)
679 tm_file=arm/coff.h
680 tmake_file=arm/t-bare
681 ;;
75bffa71
ILT
682changequote(,)dnl
683 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
684changequote([,])dnl
46f18e7b
RK
685 tm_file=arm/riscix1-1.h
686 use_collect2=yes
687 ;;
688 arm-*-riscix*) # Acorn RISC machine
75bffa71 689 if test x$gas = xyes
46f18e7b
RK
690 then
691 tm_file=arm/rix-gas.h
692 else
693 tm_file=arm/riscix.h
694 fi
695 xmake_file=arm/x-riscix
696 tmake_file=arm/t-riscix
697 use_collect2=yes
698 ;;
699 arm-semi-aout | armel-semi-aout)
700 tm_file=arm/semi.h
701 tmake_file=arm/t-semi
702 fixincludes=Makefile.in # There is nothing to fix
703 ;;
704 arm-semi-aof | armel-semi-aof)
705 tm_file=arm/semiaof.h
706 tmake_file=arm/t-semiaof
707 fixincludes=Makefile.in # There is nothing to fix
708 ;;
58600d24 709 arm*-*-netbsd*)
d23f4158 710 tm_file=arm/netbsd.h
641d4216 711 xm_file="arm/xm-netbsd.h ${xm_file}"
e9a25f70 712 tmake_file="t-netbsd arm/t-netbsd"
be1ed94f 713 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 714 fixincludes=fixinc.wrap
d23f4158 715 ;;
b355a481 716 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
618d2e70 717 cpu_type=arm
618d2e70 718 xmake_file=x-linux
b355a481 719 tm_file=arm/linux-aout.h
618d2e70
RK
720 tmake_file=arm/t-linux
721 fixincludes=Makefile.in
618d2e70
RK
722 gnu_ld=yes
723 ;;
b355a481
NC
724 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
725 xm_file=arm/xm-linux.h
726 xmake_file=x-linux
727 case $machine in
728 armv2*-*-*)
729 tm_file=arm/linux-elf26.h
730 ;;
731 *)
732 tm_file=arm/linux-elf.h
733 ;;
734 esac
735 tmake_file="t-linux arm/t-linux"
736 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
737 fixincludes=Makefile.in # Nothing to fix
738 gnu_ld=yes
739 ;;
740 arm*-*-aout)
f5967c59 741 tm_file=arm/aout.h
e9a25f70 742 tmake_file=arm/t-bare
46f18e7b 743 ;;
e6592fff
CM
744 arm*-*-ecos-elf)
745 tm_file=arm/ecos-elf.h
746 tmake_file=arm/t-elf
747 ;;
b355a481
NC
748 arm*-*-elf)
749 tm_file=arm/unknown-elf.h
750 tmake_file=arm/t-arm-elf
751 ;;
cbca921c
CM
752 arm*-*-oabi)
753 tm_file=arm/unknown-elf-oabi.h
754 tmake_file=arm/t-arm-elf
755 ;;
46f18e7b
RK
756 c1-convex-*) # Convex C1
757 target_cpu_default=1
758 use_collect2=yes
759 fixincludes=Makefile.in
760 ;;
761 c2-convex-*) # Convex C2
762 target_cpu_default=2
763 use_collect2=yes
764 fixincludes=Makefile.in
765 ;;
766 c32-convex-*)
767 target_cpu_default=4
768 use_collect2=yes
769 fixincludes=Makefile.in
770 ;;
771 c34-convex-*)
772 target_cpu_default=8
773 use_collect2=yes
774 fixincludes=Makefile.in
775 ;;
776 c38-convex-*)
777 target_cpu_default=16
778 use_collect2=yes
779 fixincludes=Makefile.in
780 ;;
62616695
MH
781 c4x-*)
782 cpu_type=c4x
783 tmake_file=c4x/t-c4x
784 ;;
46f18e7b
RK
785 clipper-intergraph-clix*)
786 tm_file="${tm_file} svr3.h clipper/clix.h"
787 xm_file=clipper/xm-clix.h
788 xmake_file=clipper/x-clix
789 extra_headers=va-clipper.h
790 extra_parts="crtbegin.o crtend.o"
791 install_headers_dir=install-headers-cpio
46f18e7b
RK
792 ;;
793 dsp16xx-*)
794 ;;
795 elxsi-elxsi-*)
796 use_collect2=yes
797 ;;
798# This hasn't been upgraded to GCC 2.
799# fx80-alliant-*) # Alliant FX/80
800# ;;
801 h8300-*-*)
802 float_format=i32
803 ;;
1b4a979b
ME
804 hppa*-*-openbsd*)
805 target_cpu_default="MASK_SNAKE"
806 tmake_file=pa/t-openbsd
807 ;;
46f18e7b
RK
808 hppa1.1-*-pro*)
809 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
810 xm_file=pa/xm-papro.h
811 tmake_file=pa/t-pro
812 ;;
813 hppa1.1-*-osf*)
3723cad9 814 target_cpu_default="MASK_SNAKE"
46f18e7b
RK
815 tm_file="${tm_file} pa/pa-osf.h"
816 use_collect2=yes
817 fixincludes=Makefile.in
818 ;;
dec3e070
JW
819 hppa1.1-*-rtems*)
820 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
821 xm_file=pa/xm-papro.h
822 tmake_file=pa/t-pro
823 ;;
46f18e7b
RK
824 hppa1.0-*-osf*)
825 tm_file="${tm_file} pa/pa-osf.h"
826 use_collect2=yes
827 fixincludes=Makefile.in
828 ;;
829 hppa1.1-*-bsd*)
3723cad9 830 target_cpu_default="MASK_SNAKE"
46f18e7b
RK
831 use_collect2=yes
832 fixincludes=Makefile.in
833 ;;
834 hppa1.0-*-bsd*)
835 use_collect2=yes
836 fixincludes=Makefile.in
837 ;;
838 hppa1.0-*-hpux7*)
839 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
840 xm_file=pa/xm-pahpux.h
841 xmake_file=pa/x-pa-hpux
75bffa71 842 if test x$gas = xyes
46f18e7b
RK
843 then
844 tm_file="${tm_file} pa/gas.h"
845 fi
46f18e7b
RK
846 install_headers_dir=install-headers-cpio
847 use_collect2=yes
848 ;;
75bffa71
ILT
849changequote(,)dnl
850 hppa1.0-*-hpux8.0[0-2]*)
851changequote([,])dnl
46f18e7b
RK
852 tm_file="${tm_file} pa/pa-hpux.h"
853 xm_file=pa/xm-pahpux.h
854 xmake_file=pa/x-pa-hpux
75bffa71 855 if test x$gas = xyes
46f18e7b
RK
856 then
857 tm_file="${tm_file} pa/pa-gas.h"
858 else
859 tm_file="pa/pa-oldas.h ${tm_file}"
860 fi
46f18e7b
RK
861 install_headers_dir=install-headers-cpio
862 use_collect2=yes
863 ;;
75bffa71
ILT
864changequote(,)dnl
865 hppa1.1-*-hpux8.0[0-2]*)
866changequote([,])dnl
3723cad9 867 target_cpu_default="MASK_SNAKE"
46f18e7b
RK
868 tm_file="${tm_file} pa/pa-hpux.h"
869 xm_file=pa/xm-pahpux.h
870 xmake_file=pa/x-pa-hpux
75bffa71 871 if test x$gas = xyes
46f18e7b
RK
872 then
873 tm_file="${tm_file} pa/pa-gas.h"
874 else
875 tm_file="pa/pa-oldas.h ${tm_file}"
876 fi
46f18e7b
RK
877 install_headers_dir=install-headers-cpio
878 use_collect2=yes
879 ;;
880 hppa1.1-*-hpux8*)
3723cad9 881 target_cpu_default="MASK_SNAKE"
46f18e7b
RK
882 tm_file="${tm_file} pa/pa-hpux.h"
883 xm_file=pa/xm-pahpux.h
884 xmake_file=pa/x-pa-hpux
75bffa71 885 if test x$gas = xyes
46f18e7b
RK
886 then
887 tm_file="${tm_file} pa/pa-gas.h"
888 fi
46f18e7b
RK
889 install_headers_dir=install-headers-cpio
890 use_collect2=yes
891 ;;
892 hppa1.0-*-hpux8*)
893 tm_file="${tm_file} pa/pa-hpux.h"
894 xm_file=pa/xm-pahpux.h
895 xmake_file=pa/x-pa-hpux
75bffa71 896 if test x$gas = xyes
46f18e7b
RK
897 then
898 tm_file="${tm_file} pa/pa-gas.h"
899 fi
46f18e7b
RK
900 install_headers_dir=install-headers-cpio
901 use_collect2=yes
902 ;;
18cae839 903 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3723cad9 904 target_cpu_default="MASK_SNAKE"
46f18e7b
RK
905 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
906 xm_file=pa/xm-pahpux.h
907 xmake_file=pa/x-pa-hpux
f24af81b 908 tmake_file=pa/t-pa
75bffa71 909 if test x$gas = xyes
46f18e7b
RK
910 then
911 tm_file="${tm_file} pa/pa-gas.h"
912 fi
75bffa71 913 if test x$enable_threads = x; then
f24af81b
TT
914 enable_threads=$have_pthread_h
915 fi
75bffa71 916 if test x$enable_threads = xyes; then
f24af81b
TT
917 thread_file='dce'
918 tmake_file="${tmake_file} pa/t-dce-thr"
919 fi
46f18e7b
RK
920 install_headers_dir=install-headers-cpio
921 use_collect2=yes
922 ;;
923 hppa1.0-*-hpux10*)
924 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
925 xm_file=pa/xm-pahpux.h
926 xmake_file=pa/x-pa-hpux
661c7909 927 tmake_file=pa/t-pa
75bffa71 928 if test x$gas = xyes
46f18e7b
RK
929 then
930 tm_file="${tm_file} pa/pa-gas.h"
931 fi
75bffa71 932 if test x$enable_threads = x; then
d005a5a4
JL
933 enable_threads=$have_pthread_h
934 fi
75bffa71 935 if test x$enable_threads = xyes; then
d005a5a4
JL
936 thread_file='dce'
937 tmake_file="${tmake_file} pa/t-dce-thr"
938 fi
46f18e7b
RK
939 install_headers_dir=install-headers-cpio
940 use_collect2=yes
941 ;;
18cae839 942 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3723cad9 943 target_cpu_default="MASK_SNAKE"
46f18e7b
RK
944 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
945 xm_file=pa/xm-pahpux.h
946 xmake_file=pa/x-pa-hpux
75bffa71 947 if test x$gas = xyes
46f18e7b
RK
948 then
949 tm_file="${tm_file} pa/pa-gas.h"
950 fi
46f18e7b
RK
951 install_headers_dir=install-headers-cpio
952 use_collect2=yes
953 ;;
954 hppa1.0-*-hpux*)
955 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
956 xm_file=pa/xm-pahpux.h
957 xmake_file=pa/x-pa-hpux
75bffa71 958 if test x$gas = xyes
46f18e7b
RK
959 then
960 tm_file="${tm_file} pa/pa-gas.h"
961 fi
46f18e7b
RK
962 install_headers_dir=install-headers-cpio
963 use_collect2=yes
964 ;;
18cae839 965 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3723cad9 966 target_cpu_default="MASK_SNAKE"
46f18e7b
RK
967 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
968 xm_file=pa/xm-pahpux.h
969 xmake_file=pa/x-pa-hpux
75bffa71 970 if test x$gas = xyes
46f18e7b
RK
971 then
972 tm_file="${tm_file} pa/pa-gas.h"
973 fi
46f18e7b
RK
974 install_headers_dir=install-headers-cpio
975 use_collect2=yes
976 ;;
977 hppa1.0-*-hiux*)
978 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
979 xm_file=pa/xm-pahpux.h
980 xmake_file=pa/x-pa-hpux
75bffa71 981 if test x$gas = xyes
46f18e7b
RK
982 then
983 tm_file="${tm_file} pa/pa-gas.h"
984 fi
46f18e7b
RK
985 install_headers_dir=install-headers-cpio
986 use_collect2=yes
987 ;;
988 hppa*-*-lites*)
3723cad9 989 target_cpu_default="MASK_SNAKE"
46f18e7b
RK
990 use_collect2=yes
991 fixincludes=Makefile.in
992 ;;
993 i370-*-mvs*)
994 ;;
75bffa71
ILT
995changequote(,)dnl
996 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
997changequote([,])dnl
998 if test x$gas = xyes
46f18e7b
RK
999 then
1000 tm_file=i386/aix386.h
1001 extra_parts="crtbegin.o crtend.o"
1002 tmake_file=i386/t-crtstuff
1003 else
1004 tm_file=i386/aix386ng.h
1005 use_collect2=yes
1006 fi
61536478
JL
1007 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1008 xm_defines=USG
46f18e7b 1009 xmake_file=i386/x-aix
46f18e7b 1010 ;;
75bffa71
ILT
1011changequote(,)dnl
1012 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1013changequote([,])dnl
61536478
JL
1014 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1015 xm_defines="USG POSIX SMALL_ARG_MAX"
46f18e7b 1016 xmake_file=i386/x-ncr3000
75bffa71 1017 if test x$stabs = xyes -a x$gas = xyes
46f18e7b
RK
1018 then
1019 tm_file=i386/sysv4gdb.h
1020 else
1021 tm_file=i386/sysv4.h
1022 fi
1023 extra_parts="crtbegin.o crtend.o"
1024 tmake_file=i386/t-crtpic
1025 ;;
75bffa71
ILT
1026changequote(,)dnl
1027 i[34567]86-next-*)
1028changequote([,])dnl
46f18e7b
RK
1029 tm_file=i386/next.h
1030 xm_file=i386/xm-next.h
1031 tmake_file=i386/t-next
1032 xmake_file=i386/x-next
1033 extra_objs=nextstep.o
750930c1 1034 extra_parts="crtbegin.o crtend.o"
75bffa71 1035 if test x$enable_threads = xyes; then
0bbb1697
RK
1036 thread_file='mach'
1037 fi
46f18e7b 1038 ;;
75bffa71
ILT
1039changequote(,)dnl
1040 i[34567]86-sequent-bsd*) # 80386 from Sequent
1041changequote([,])dnl
46f18e7b 1042 use_collect2=yes
75bffa71 1043 if test x$gas = xyes
46f18e7b
RK
1044 then
1045 tm_file=i386/seq-gas.h
1046 else
1047 tm_file=i386/sequent.h
1048 fi
1049 ;;
75bffa71
ILT
1050changequote(,)dnl
1051 i[34567]86-sequent-ptx1*)
1052changequote([,])dnl
61536478 1053 xm_defines="USG SVR3"
46f18e7b
RK
1054 xmake_file=i386/x-sysv3
1055 tm_file=i386/seq-sysv3.h
1056 tmake_file=i386/t-crtstuff
1057 fixincludes=fixinc.ptx
1058 extra_parts="crtbegin.o crtend.o"
1059 install_headers_dir=install-headers-cpio
46f18e7b 1060 ;;
75bffa71
ILT
1061changequote(,)dnl
1062 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1063changequote([,])dnl
61536478 1064 xm_defines="USG SVR3"
46f18e7b
RK
1065 xmake_file=i386/x-sysv3
1066 tm_file=i386/seq2-sysv3.h
1067 tmake_file=i386/t-crtstuff
1068 extra_parts="crtbegin.o crtend.o"
1069 fixincludes=fixinc.ptx
1070 install_headers_dir=install-headers-cpio
46f18e7b 1071 ;;
75bffa71
ILT
1072changequote(,)dnl
1073 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1074changequote([,])dnl
61536478
JL
1075 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1076 xm_defines="USG POSIX SMALL_ARG_MAX"
46f18e7b
RK
1077 xmake_file=x-svr4
1078 tm_file=i386/ptx4-i.h
1079 tmake_file=t-svr4
1080 extra_parts="crtbegin.o crtend.o"
1081 fixincludes=fixinc.ptx
1082 install_headers_dir=install-headers-cpio
46f18e7b
RK
1083 ;;
1084 i386-sun-sunos*) # Sun i386 roadrunner
61536478 1085 xm_defines=USG
46f18e7b
RK
1086 tm_file=i386/sun.h
1087 use_collect2=yes
1088 ;;
75bffa71
ILT
1089changequote(,)dnl
1090 i[34567]86-wrs-vxworks*)
1091changequote([,])dnl
9e89df50
MS
1092 tm_file=i386/vxi386.h
1093 tmake_file=i386/t-i386bare
1094 ;;
75bffa71
ILT
1095changequote(,)dnl
1096 i[34567]86-*-aout*)
1097changequote([,])dnl
46f18e7b
RK
1098 tm_file=i386/i386-aout.h
1099 tmake_file=i386/t-i386bare
1100 ;;
75bffa71
ILT
1101changequote(,)dnl
1102 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1103changequote([,])dnl
46f18e7b 1104 tm_file=i386/bsd386.h
46f18e7b
RK
1105# tmake_file=t-libc-ok
1106 ;;
75bffa71
ILT
1107changequote(,)dnl
1108 i[34567]86-*-bsd*)
1109changequote([,])dnl
46f18e7b 1110 tm_file=i386/386bsd.h
46f18e7b
RK
1111# tmake_file=t-libc-ok
1112# Next line turned off because both 386BSD and BSD/386 use GNU ld.
1113# use_collect2=yes
1114 ;;
75bffa71
ILT
1115changequote(,)dnl
1116 i[34567]86-*-freebsdelf*)
1117changequote([,])dnl
46f18e7b 1118 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
be1ed94f 1119 # On FreeBSD, the headers are already ok, except for math.h.
32f65aa0 1120 fixincludes=fixinc.wrap
56830143 1121 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
46f18e7b
RK
1122 tmake_file=i386/t-freebsd
1123 gas=yes
1124 gnu_ld=yes
1125 stabs=yes
1126 ;;
75bffa71
ILT
1127changequote(,)dnl
1128 i[34567]86-*-freebsd*)
1129changequote([,])dnl
46f18e7b 1130 tm_file=i386/freebsd.h
be1ed94f 1131 # On FreeBSD, the headers are already ok, except for math.h.
32f65aa0 1132 fixincludes=fixinc.wrap
46f18e7b
RK
1133 tmake_file=i386/t-freebsd
1134 ;;
75bffa71 1135changequote(,)dnl
1b4a979b 1136 i[34567]86-*-netbsd*)
75bffa71 1137changequote([,])dnl
46f18e7b 1138 tm_file=i386/netbsd.h
be1ed94f 1139 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 1140 fixincludes=fixinc.wrap
e47f44f4 1141 tmake_file=t-netbsd
46f18e7b 1142 ;;
1b4a979b
ME
1143changequote(,)dnl
1144 i[34567]86-*-openbsd*)
1145changequote([,])dnl
1146 # Remove when the math emulator is fixed
1147 target_cpu_default="MASK_NO_FANCY_MATH_387"
1148 # we need collect2 until our bug is fixed...
1149 use_collect2=yes
1150 ;;
75bffa71
ILT
1151changequote(,)dnl
1152 i[34567]86-*-coff*)
1153changequote([,])dnl
46f18e7b
RK
1154 tm_file=i386/i386-coff.h
1155 tmake_file=i386/t-i386bare
1156 ;;
75bffa71
ILT
1157changequote(,)dnl
1158 i[34567]86-*-isc*) # 80386 running ISC system
1159changequote([,])dnl
61536478
JL
1160 xm_file="${xm_file} i386/xm-isc.h"
1161 xm_defines="USG SVR3"
46f18e7b 1162 case $machine in
75bffa71
ILT
1163changequote(,)dnl
1164 i[34567]86-*-isc[34]*)
1165changequote([,])dnl
46f18e7b
RK
1166 xmake_file=i386/x-isc3
1167 ;;
1168 *)
1169 xmake_file=i386/x-isc
1170 ;;
1171 esac
75bffa71 1172 if test x$gas = xyes -a x$stabs = xyes
46f18e7b
RK
1173 then
1174 tm_file=i386/iscdbx.h
1175 tmake_file=i386/t-svr3dbx
1176 extra_parts="svr3.ifile svr3z.ifile"
1177 else
1178 tm_file=i386/isccoff.h
1179 tmake_file=i386/t-crtstuff
1180 extra_parts="crtbegin.o crtend.o"
1181 fi
1182 install_headers_dir=install-headers-cpio
46f18e7b 1183 ;;
75bffa71
ILT
1184changequote(,)dnl
1185 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1186changequote([,])dnl # with a.out format using
61536478 1187 # pre BFD linkers
46f18e7b
RK
1188 xmake_file=x-linux-aout
1189 tmake_file="t-linux-aout i386/t-crtstuff"
1190 tm_file=i386/linux-oldld.h
6d567568 1191 fixincludes=fixinc.x86-linux-gnu
46f18e7b 1192 gnu_ld=yes
f906a0f0 1193 float_format=i386
46f18e7b 1194 ;;
75bffa71
ILT
1195changequote(,)dnl
1196 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1197changequote([,])dnl # with a.out format
46f18e7b
RK
1198 xmake_file=x-linux-aout
1199 tmake_file="t-linux-aout i386/t-crtstuff"
1200 tm_file=i386/linux-aout.h
6d567568 1201 fixincludes=fixinc.x86-linux-gnu
46f18e7b 1202 gnu_ld=yes
f906a0f0 1203 float_format=i386
46f18e7b 1204 ;;
75bffa71
ILT
1205changequote(,)dnl
1206 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1207changequote([,])dnl # with ELF format using the
61536478
JL
1208 # GNU/Linux C library 5
1209 xmake_file=x-linux
1210 tm_file=i386/linux.h
78b9f8df
RK
1211 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1212 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6d567568 1213 fixincludes=fixinc.x86-linux-gnu
78b9f8df 1214 gnu_ld=yes
f906a0f0 1215 float_format=i386
75bffa71 1216 if test x$enable_threads = xyes; then
78b9f8df
RK
1217 thread_file='single'
1218 fi
1219 ;;
75bffa71
ILT
1220changequote(,)dnl
1221 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1222changequote([,])dnl # with ELF format using glibc 2
61536478
JL
1223 # aka GNU/Linux C library 6
1224 xmake_file=x-linux
46f18e7b
RK
1225 tm_file=i386/linux.h
1226 tmake_file="t-linux i386/t-crtstuff"
1227 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6d567568 1228 fixincludes=fixinc.x86-linux-gnu
46f18e7b 1229 gnu_ld=yes
f906a0f0 1230 float_format=i386
75bffa71 1231 if test x$enable_threads = xyes; then
78b9f8df
RK
1232 thread_file='posix'
1233 fi
46f18e7b 1234 ;;
75bffa71
ILT
1235changequote(,)dnl
1236 i[34567]86-*-gnu*)
cd9e5e7c 1237 float_format=i386
75bffa71 1238changequote([,])dnl
61536478 1239 ;;
75bffa71
ILT
1240changequote(,)dnl
1241 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1242changequote([,])dnl
61536478
JL
1243 xm_file=i386/xm-go32.h
1244 tm_file=i386/go32.h
1245 tmake_file=i386/t-go32
46f18e7b 1246 ;;
75bffa71
ILT
1247changequote(,)dnl
1248 i[34567]86-pc-msdosdjgpp*)
1249changequote([,])dnl
46f18e7b
RK
1250 xm_file=i386/xm-go32.h
1251 tm_file=i386/go32.h
1252 tmake_file=i386/t-go32
2f197d2f 1253 xmake_file=i386/x-go32
61536478
JL
1254 gnu_ld=yes
1255 gas=yes
dedcc399
ME
1256 exeext=.exe
1257 case $host in
1258 *pc-msdosdjgpp*)
1259 target_alias=djgpp
1260 ;;
1261 esac
46f18e7b 1262 ;;
75bffa71
ILT
1263changequote(,)dnl
1264 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1265changequote([,])dnl
46f18e7b
RK
1266 tm_file=i386/moss.h
1267 tmake_file=t-libc-ok
1268 fixincludes=Makefile.in
1269 gnu_ld=yes
1270 gas=yes
1271 ;;
75bffa71
ILT
1272changequote(,)dnl
1273 i[34567]86-*-lynxos*)
1274changequote([,])dnl
1275 if test x$gas = xyes
46f18e7b
RK
1276 then
1277 tm_file=i386/lynx.h
1278 else
1279 tm_file=i386/lynx-ng.h
1280 fi
1281 xm_file=i386/xm-lynx.h
1282 tmake_file=i386/t-i386bare
1283 xmake_file=x-lynx
1284 ;;
75bffa71
ILT
1285changequote(,)dnl
1286 i[34567]86-*-mach*)
1287changequote([,])dnl
46f18e7b
RK
1288 tm_file=i386/mach.h
1289# tmake_file=t-libc-ok
1290 use_collect2=yes
1291 ;;
75bffa71
ILT
1292changequote(,)dnl
1293 i[34567]86-*-osfrose*) # 386 using OSF/rose
1294changequote([,])dnl
1295 if test x$elf = xyes
46f18e7b
RK
1296 then
1297 tm_file=i386/osfelf.h
1298 use_collect2=
1299 else
1300 tm_file=i386/osfrose.h
1301 use_collect2=yes
1302 fi
61536478 1303 xm_file="i386/xm-osf.h ${xm_file}"
46f18e7b
RK
1304 xmake_file=i386/x-osfrose
1305 tmake_file=i386/t-osf
1306 extra_objs=halfpic.o
1307 ;;
75bffa71
ILT
1308changequote(,)dnl
1309 i[34567]86-go32-rtems*)
1310changequote([,])dnl
46f18e7b
RK
1311 cpu_type=i386
1312 xm_file=i386/xm-go32.h
1313 tm_file=i386/go32-rtems.h
1314 tmake_file="i386/t-go32 t-rtems"
1315 ;;
75bffa71
ILT
1316changequote(,)dnl
1317 i[34567]86-*-rtemself*)
1318changequote([,])dnl
f5963e61
JL
1319 cpu_type=i386
1320 tm_file=i386/rtemself.h
1321 tmake_file="i386/t-i386bare t-rtems"
1322 ;;
75bffa71
ILT
1323changequote(,)dnl
1324 i[34567]86-*-rtems*)
1325changequote([,])dnl
46f18e7b
RK
1326 cpu_type=i386
1327 tm_file=i386/rtems.h
1328 tmake_file="i386/t-i386bare t-rtems"
1329 ;;
75bffa71
ILT
1330changequote(,)dnl
1331 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1332changequote([,])dnl
61536478
JL
1333 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1334 xm_defines="USG SVR3"
46f18e7b
RK
1335 xmake_file=i386/x-sco5
1336 fixincludes=fixinc.sco
f6857708 1337 install_headers_dir=install-headers-cpio
46f18e7b 1338 tm_file=i386/sco5.h
75bffa71 1339 if test x$gas = xyes
f7c9c2bb
RL
1340 then
1341 tm_file="i386/sco5gas.h ${tm_file}"
1342 tmake_file=i386/t-sco5gas
1343 else
1344 tmake_file=i386/t-sco5
1345 fi
42902a72 1346 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
46f18e7b 1347 ;;
75bffa71
ILT
1348changequote(,)dnl
1349 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1350changequote([,])dnl
61536478
JL
1351 xm_file="${xm_file} i386/xm-sco.h"
1352 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
46f18e7b
RK
1353 xmake_file=i386/x-sco4
1354 fixincludes=fixinc.sco
46f18e7b 1355 install_headers_dir=install-headers-cpio
75bffa71 1356 if test x$stabs = xyes
46f18e7b
RK
1357 then
1358 tm_file=i386/sco4dbx.h
1359 tmake_file=i386/t-svr3dbx
1360 extra_parts="svr3.ifile svr3z.rfile"
1361 else
1362 tm_file=i386/sco4.h
1363 tmake_file=i386/t-crtstuff
1364 extra_parts="crtbegin.o crtend.o"
1365 fi
1366 truncate_target=yes
1367 ;;
75bffa71
ILT
1368changequote(,)dnl
1369 i[34567]86-*-sco*) # 80386 running SCO system
1370changequote([,])dnl
46f18e7b
RK
1371 xm_file=i386/xm-sco.h
1372 xmake_file=i386/x-sco
46f18e7b 1373 install_headers_dir=install-headers-cpio
75bffa71 1374 if test x$stabs = xyes
46f18e7b
RK
1375 then
1376 tm_file=i386/scodbx.h
1377 tmake_file=i386/t-svr3dbx
1378 extra_parts="svr3.ifile svr3z.rfile"
1379 else
1380 tm_file=i386/sco.h
1381 extra_parts="crtbegin.o crtend.o"
1382 tmake_file=i386/t-crtstuff
1383 fi
1384 truncate_target=yes
1385 ;;
75bffa71
ILT
1386changequote(,)dnl
1387 i[34567]86-*-solaris2*)
1388changequote([,])dnl
61536478
JL
1389 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1390 xm_defines="USG POSIX SMALL_ARG_MAX"
75bffa71 1391 if test x$stabs = xyes
46f18e7b 1392 then
dec3e070 1393 tm_file=i386/sol2dbg.h
46f18e7b
RK
1394 else
1395 tm_file=i386/sol2.h
1396 fi
1397 tmake_file=i386/t-sol2
61536478 1398 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
46f18e7b 1399 xmake_file=x-svr4
61536478 1400 case $machine in
75bffa71
ILT
1401changequote(,)dnl
1402 *-*-solaris2.[0-4])
1403changequote([,])dnl
61536478
JL
1404 fixincludes=fixinc.svr4;;
1405 *)
32f65aa0 1406 fixincludes=fixinc.wrap;;
61536478 1407 esac
75bffa71 1408 if test x$enable_threads = xyes; then
0bbb1697
RK
1409 thread_file='solaris'
1410 fi
46f18e7b 1411 ;;
75bffa71
ILT
1412changequote(,)dnl
1413 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1414changequote([,])dnl
a4cbe801
RL
1415 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1416 xm_defines="USG POSIX"
fe07d4c1 1417 tm_file=i386/sysv4.h
75bffa71 1418 if test x$stabs = xyes
fe07d4c1
RL
1419 then
1420 tm_file="${tm_file} dbx.h"
1421 fi
1422 tmake_file=i386/t-crtpic
1423 xmake_file=x-svr4
1424 extra_parts="crtbegin.o crtend.o"
823642df 1425 fixincludes=fixinc.svr4
fe07d4c1 1426 ;;
75bffa71
ILT
1427changequote(,)dnl
1428 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1429changequote([,])dnl
61536478
JL
1430 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1431 xm_defines="USG POSIX SMALL_ARG_MAX"
46f18e7b 1432 tm_file=i386/sysv4.h
75bffa71 1433 if test x$stabs = xyes
46f18e7b
RK
1434 then
1435 tm_file="${tm_file} dbx.h"
1436 fi
1437 tmake_file=i386/t-crtpic
1438 xmake_file=x-svr4
1439 extra_parts="crtbegin.o crtend.o"
1440 ;;
5aaf0123
RL
1441changequote(,)dnl
1442 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1443changequote([,])dnl
1444 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1445 xm_defines="USG POSIX"
1446 tm_file=i386/udk.h
1447 tmake_file="i386/t-crtpic i386/t-udk"
1448 xmake_file=x-svr4
1449 extra_parts="crtbegin.o crtend.o"
1450 fixincludes="fixinc.svr4"
1451 ;;
75bffa71
ILT
1452changequote(,)dnl
1453 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1454changequote([,])dnl
f5963e61
JL
1455 cpu_type=i386
1456 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1457 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1458 fixincludes=Makefile.in #Don't do it on OSF/1
75bffa71 1459 if test x$stabs = xyes
f5963e61
JL
1460 then
1461 tm_file=i386/osf1elfgdb.h
1462 else
1463 tm_file=i386/osf1elf.h
1464 fi
1465 tmake_file=i386/t-osf1elf
1466 xmake_file=i386/x-osf1elf
1467 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1468 ;;
75bffa71
ILT
1469changequote(,)dnl
1470 i[34567]86-*-sysv*) # Intel 80386's running system V
1471changequote([,])dnl
61536478 1472 xm_defines="USG SVR3"
46f18e7b 1473 xmake_file=i386/x-sysv3
75bffa71 1474 if test x$gas = xyes
46f18e7b 1475 then
75bffa71 1476 if test x$stabs = xyes
46f18e7b
RK
1477 then
1478 tm_file=i386/svr3dbx.h
1479 tmake_file=i386/t-svr3dbx
1480 extra_parts="svr3.ifile svr3z.rfile"
1481 else
1482 tm_file=i386/svr3gas.h
1483 extra_parts="crtbegin.o crtend.o"
1484 tmake_file=i386/t-crtstuff
1485 fi
1486 else
1487 tm_file=i386/sysv3.h
1488 extra_parts="crtbegin.o crtend.o"
1489 tmake_file=i386/t-crtstuff
1490 fi
1491 ;;
1492 i386-*-vsta) # Intel 80386's running VSTa kernel
f5963e61 1493 xm_file="${xm_file} i386/xm-vsta.h"
46f18e7b
RK
1494 tm_file=i386/vsta.h
1495 tmake_file=i386/t-vsta
1496 xmake_file=i386/x-vsta
1497 ;;
75bffa71
ILT
1498changequote(,)dnl
1499 i[34567]86-*-win32)
1500changequote([,])dnl
cae21ae8
GN
1501 xm_file="${xm_file} i386/xm-cygwin.h"
1502 tmake_file=i386/t-cygwin
84530511 1503 tm_file=i386/win32.h
cae21ae8 1504 xmake_file=i386/x-cygwin
84530511
SC
1505 extra_objs=winnt.o
1506 fixincludes=Makefile.in
75bffa71 1507 if test x$enable_threads = xyes; then
84530511
SC
1508 thread_file='win32'
1509 fi
1510 exeext=.exe
1511 ;;
75bffa71 1512changequote(,)dnl
cae21ae8 1513 i[34567]86-*-pe | i[34567]86-*-cygwin*)
75bffa71 1514changequote([,])dnl
cae21ae8
GN
1515 xm_file="${xm_file} i386/xm-cygwin.h"
1516 tmake_file=i386/t-cygwin
1517 tm_file=i386/cygwin.h
1518 xmake_file=i386/x-cygwin
46f18e7b
RK
1519 extra_objs=winnt.o
1520 fixincludes=Makefile.in
75bffa71 1521 if test x$enable_threads = xyes; then
0bbb1697
RK
1522 thread_file='win32'
1523 fi
46f18e7b
RK
1524 exeext=.exe
1525 ;;
75bffa71
ILT
1526changequote(,)dnl
1527 i[34567]86-*-mingw32*)
1528changequote([,])dnl
5dfe8508
RK
1529 tm_file=i386/mingw32.h
1530 xm_file="${xm_file} i386/xm-mingw32.h"
cae21ae8 1531 tmake_file="i386/t-cygwin i386/t-mingw32"
5dfe8508 1532 extra_objs=winnt.o
cae21ae8 1533 xmake_file=i386/x-cygwin
5dfe8508 1534 fixincludes=Makefile.in
75bffa71 1535 if test x$enable_threads = xyes; then
0bbb1697
RK
1536 thread_file='win32'
1537 fi
5dfe8508 1538 exeext=.exe
61536478
JL
1539 case $machine in
1540 *mingw32msv*)
1541 ;;
1542 *minwg32crt* | *mingw32*)
1543 tm_file="${tm_file} i386/crtdll.h"
1544 ;;
1545 esac
5dfe8508 1546 ;;
75bffa71
ILT
1547changequote(,)dnl
1548 i[34567]86-*-winnt3*)
1549changequote([,])dnl
46f18e7b
RK
1550 tm_file=i386/win-nt.h
1551 out_file=i386/i386.c
61536478 1552 xm_file="xm-winnt.h ${xm_file}"
46f18e7b
RK
1553 xmake_file=winnt/x-winnt
1554 tmake_file=i386/t-winnt
1555 extra_host_objs="winnt.o oldnames.o"
1556 extra_gcc_objs="spawnv.o oldnames.o"
1557 fixincludes=fixinc.winnt
75bffa71 1558 if test x$gnu_ld != xyes
46f18e7b
RK
1559 then
1560 extra_programs=ld.exe
1561 fi
75bffa71 1562 if test x$enable_threads = xyes; then
0bbb1697
RK
1563 thread_file='win32'
1564 fi
46f18e7b 1565 ;;
75bffa71
ILT
1566changequote(,)dnl
1567 i[34567]86-dg-dgux*)
1568changequote([,])dnl
61536478
JL
1569 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1570 xm_defines="USG POSIX"
46f18e7b
RK
1571 out_file=i386/dgux.c
1572 tm_file=i386/dgux.h
1573 tmake_file=i386/t-dgux
1574 xmake_file=i386/x-dgux
9590eb1b 1575 fixincludes=fixinc.dgux
46f18e7b
RK
1576 install_headers_dir=install-headers-cpio
1577 ;;
1578 i860-alliant-*) # Alliant FX/2800
1579 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
956d6950 1580 xm_file="${xm_file}"
46f18e7b
RK
1581 xmake_file=i860/x-fx2800
1582 tmake_file=i860/t-fx2800
1583 extra_parts="crtbegin.o crtend.o"
1584 ;;
1585 i860-*-bsd*)
1586 tm_file="${tm_file} i860/bsd.h"
75bffa71 1587 if test x$gas = xyes
46f18e7b
RK
1588 then
1589 tm_file="${tm_file} i860/bsd-gas.h"
1590 fi
1591 use_collect2=yes
1592 ;;
1593 i860-*-mach*)
1594 tm_file="${tm_file} i860/mach.h"
1595 tmake_file=t-libc-ok
1596 ;;
1597 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1598 tm_file="${tm_file} svr3.h i860/paragon.h"
61536478 1599 xm_defines="USG SVR3"
46f18e7b 1600 tmake_file=t-osf
46f18e7b
RK
1601 ;;
1602 i860-*-sysv3*)
1603 tm_file="${tm_file} svr3.h i860/sysv3.h"
61536478 1604 xm_defines="USG SVR3"
46f18e7b
RK
1605 xmake_file=i860/x-sysv3
1606 extra_parts="crtbegin.o crtend.o"
1607 ;;
1608 i860-*-sysv4*)
1609 tm_file="${tm_file} svr4.h i860/sysv4.h"
61536478 1610 xm_defines="USG SVR3"
46f18e7b
RK
1611 xmake_file=i860/x-sysv4
1612 tmake_file=t-svr4
1613 extra_parts="crtbegin.o crtend.o"
1614 ;;
1615 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1616 tm_file="${tm_file} i960/vx960.h"
1617 tmake_file=i960/t-vxworks960
1618 use_collect2=yes
7cc34889 1619 thread_file='vxworks'
46f18e7b 1620 ;;
a0372c94 1621 i960-wrs-vxworks5* | i960-wrs-vxworks)
46f18e7b
RK
1622 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1623 tmake_file=i960/t-vxworks960
1624 use_collect2=yes
7cc34889 1625 thread_file='vxworks'
46f18e7b
RK
1626 ;;
1627 i960-wrs-vxworks*)
1628 tm_file="${tm_file} i960/vx960.h"
1629 tmake_file=i960/t-vxworks960
1630 use_collect2=yes
7cc34889 1631 thread_file='vxworks'
46f18e7b
RK
1632 ;;
1633 i960-*-coff*)
1634 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1635 tmake_file=i960/t-960bare
1636 use_collect2=yes
1637 ;;
1638 i960-*-rtems)
1639 tmake_file="i960/t-960bare t-rtems"
1640 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1641 use_collect2=yes
1642 ;;
1643 i960-*-*) # Default i960 environment.
1644 use_collect2=yes
1645 ;;
dec3e070
JW
1646 m32r-*-elf*)
1647 extra_parts="crtinit.o crtfini.o"
1648 ;;
46f18e7b
RK
1649 m68000-convergent-sysv*)
1650 tm_file=m68k/ctix.h
61536478
JL
1651 xm_file="m68k/xm-3b1.h ${xm_file}"
1652 xm_defines=USG
46f18e7b
RK
1653 use_collect2=yes
1654 extra_headers=math-68881.h
1655 ;;
1656 m68000-hp-bsd*) # HP 9000/200 running BSD
1657 tm_file=m68k/hp2bsd.h
1658 xmake_file=m68k/x-hp2bsd
1659 use_collect2=yes
1660 extra_headers=math-68881.h
1661 ;;
1662 m68000-hp-hpux*) # HP 9000 series 300
61536478
JL
1663 xm_file="xm_alloca.h ${xm_file}"
1664 xm_defines="USG NO_SYS_SIGLIST"
75bffa71 1665 if test x$gas = xyes
46f18e7b
RK
1666 then
1667 xmake_file=m68k/x-hp320g
1668 tm_file=m68k/hp310g.h
1669 else
1670 xmake_file=m68k/x-hp320
1671 tm_file=m68k/hp310.h
1672 fi
46f18e7b
RK
1673 install_headers_dir=install-headers-cpio
1674 use_collect2=yes
1675 extra_headers=math-68881.h
1676 ;;
1677 m68000-sun-sunos3*)
1678 tm_file=m68k/sun2.h
1679 use_collect2=yes
1680 extra_headers=math-68881.h
1681 ;;
1682 m68000-sun-sunos4*)
1683 tm_file=m68k/sun2o4.h
1684 use_collect2=yes
1685 extra_headers=math-68881.h
1686 ;;
1687 m68000-att-sysv*)
61536478
JL
1688 xm_file="m68k/xm-3b1.h ${xm_file}"
1689 xm_defines=USG
75bffa71 1690 if test x$gas = xyes
46f18e7b
RK
1691 then
1692 tm_file=m68k/3b1g.h
1693 else
1694 tm_file=m68k/3b1.h
1695 fi
1696 use_collect2=yes
1697 extra_headers=math-68881.h
1698 ;;
1699 m68k-apple-aux*) # Apple Macintosh running A/UX
61536478 1700 xm_defines="USG AUX"
46f18e7b 1701 tmake_file=m68k/t-aux
46f18e7b
RK
1702 install_headers_dir=install-headers-cpio
1703 extra_headers=math-68881.h
1704 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1705 tm_file=
75bffa71 1706 if test "$gnu_ld" = yes
46f18e7b
RK
1707 then
1708 tm_file="${tm_file} m68k/auxgld.h"
1709 else
1710 tm_file="${tm_file} m68k/auxld.h"
1711 fi
75bffa71 1712 if test "$gas" = yes
46f18e7b
RK
1713 then
1714 tm_file="${tm_file} m68k/auxgas.h"
1715 else
1716 tm_file="${tm_file} m68k/auxas.h"
1717 fi
1718 tm_file="${tm_file} m68k/a-ux.h"
c8db55b0 1719 float_format=m68k
46f18e7b
RK
1720 ;;
1721 m68k-apollo-*)
1722 tm_file=m68k/apollo68.h
1723 xmake_file=m68k/x-apollo68
1724 use_collect2=yes
1725 extra_headers=math-68881.h
c8db55b0 1726 float_format=m68k
46f18e7b
RK
1727 ;;
1728 m68k-altos-sysv*) # Altos 3068
75bffa71 1729 if test x$gas = xyes
46f18e7b
RK
1730 then
1731 tm_file=m68k/altos3068.h
61536478 1732 xm_defines=USG
46f18e7b
RK
1733 else
1734 echo "The Altos is supported only with the GNU assembler" 1>&2
1735 exit 1
1736 fi
1737 extra_headers=math-68881.h
1738 ;;
1739 m68k-bull-sysv*) # Bull DPX/2
75bffa71 1740 if test x$gas = xyes
46f18e7b 1741 then
75bffa71 1742 if test x$stabs = xyes
46f18e7b
RK
1743 then
1744 tm_file=m68k/dpx2cdbx.h
1745 else
1746 tm_file=m68k/dpx2g.h
1747 fi
1748 else
1749 tm_file=m68k/dpx2.h
1750 fi
61536478
JL
1751 xm_file="xm-alloca.h ${xm_file}"
1752 xm_defines=USG
46f18e7b
RK
1753 xmake_file=m68k/x-dpx2
1754 use_collect2=yes
1755 extra_headers=math-68881.h
1756 ;;
1757 m68k-atari-sysv4*) # Atari variant of V.4.
1758 tm_file=m68k/atari.h
61536478
JL
1759 xm_file="xm-alloca.h ${xm_file}"
1760 xm_defines="USG FULL_PROTOTYPES"
46f18e7b
RK
1761 tmake_file=t-svr4
1762 extra_parts="crtbegin.o crtend.o"
1763 extra_headers=math-68881.h
c8db55b0 1764 float_format=m68k
46f18e7b
RK
1765 ;;
1766 m68k-motorola-sysv*)
1767 tm_file=m68k/mot3300.h
61536478
JL
1768 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1769 xm_defines=NO_SYS_SIGLIST
75bffa71 1770 if test x$gas = xyes
46f18e7b
RK
1771 then
1772 xmake_file=m68k/x-mot3300-gas
75bffa71 1773 if test x$gnu_ld = xyes
46f18e7b
RK
1774 then
1775 tmake_file=m68k/t-mot3300-gald
1776 else
1777 tmake_file=m68k/t-mot3300-gas
1778 use_collect2=yes
1779 fi
1780 else
1781 xmake_file=m68k/x-mot3300
75bffa71 1782 if test x$gnu_ld = xyes
46f18e7b
RK
1783 then
1784 tmake_file=m68k/t-mot3300-gld
1785 else
1786 tmake_file=m68k/t-mot3300
1787 use_collect2=yes
1788 fi
1789 fi
1790 gdb_needs_out_file_path=yes
1791 extra_parts="crt0.o mcrt0.o"
1792 extra_headers=math-68881.h
c8db55b0 1793 float_format=m68k
46f18e7b
RK
1794 ;;
1795 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1796 tm_file=m68k/tower-as.h
61536478 1797 xm_defines="USG SVR3"
46f18e7b
RK
1798 xmake_file=m68k/x-tower
1799 extra_parts="crtbegin.o crtend.o"
1800 extra_headers=math-68881.h
1801 ;;
1802 m68k-plexus-sysv*)
1803 tm_file=m68k/plexus.h
61536478
JL
1804 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1805 xm_defines=USG
46f18e7b
RK
1806 use_collect2=yes
1807 extra_headers=math-68881.h
1808 ;;
1809 m68k-tti-*)
1810 tm_file=m68k/pbb.h
61536478
JL
1811 xm_file="xm-alloca.h ${xm_file}"
1812 xm_defines=USG
46f18e7b
RK
1813 extra_headers=math-68881.h
1814 ;;
1815 m68k-crds-unos*)
61536478
JL
1816 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1817 xm_defines="USG unos"
46f18e7b
RK
1818 xmake_file=m68k/x-crds
1819 tm_file=m68k/crds.h
46f18e7b
RK
1820 use_collect2=yes
1821 extra_headers=math-68881.h
1822 ;;
1823 m68k-cbm-sysv4*) # Commodore variant of V.4.
1824 tm_file=m68k/amix.h
61536478
JL
1825 xm_file="xm-alloca.h ${xm_file}"
1826 xm_defines="USG FULL_PROTOTYPES"
46f18e7b
RK
1827 xmake_file=m68k/x-amix
1828 tmake_file=t-svr4
1829 extra_parts="crtbegin.o crtend.o"
1830 extra_headers=math-68881.h
c8db55b0 1831 float_format=m68k
46f18e7b
RK
1832 ;;
1833 m68k-ccur-rtu)
1834 tm_file=m68k/ccur-GAS.h
1835 xmake_file=m68k/x-ccur
1836 extra_headers=math-68881.h
1837 use_collect2=yes
c8db55b0 1838 float_format=m68k
46f18e7b
RK
1839 ;;
1840 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1841 tm_file=m68k/hp3bsd44.h
1842 xmake_file=m68k/x-hp3bsd44
1843 use_collect2=yes
1844 extra_headers=math-68881.h
c8db55b0 1845 float_format=m68k
46f18e7b
RK
1846 ;;
1847 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1848 tm_file=m68k/hp3bsd.h
1849 use_collect2=yes
1850 extra_headers=math-68881.h
c8db55b0 1851 float_format=m68k
46f18e7b
RK
1852 ;;
1853 m68k-isi-bsd*)
75bffa71 1854 if test x$with_fp = xno
46f18e7b
RK
1855 then
1856 tm_file=m68k/isi-nfp.h
1857 else
1858 tm_file=m68k/isi.h
c8db55b0 1859 float_format=m68k
46f18e7b
RK
1860 fi
1861 use_collect2=yes
1862 extra_headers=math-68881.h
1863 ;;
1864 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
61536478
JL
1865 xm_file="xm_alloca.h ${xm_file}"
1866 xm_defines="USG NO_SYS_SIGLIST"
75bffa71 1867 if test x$gas = xyes
46f18e7b
RK
1868 then
1869 xmake_file=m68k/x-hp320g
1870 tm_file=m68k/hp320g.h
1871 else
1872 xmake_file=m68k/x-hp320
1873 tm_file=m68k/hpux7.h
1874 fi
46f18e7b
RK
1875 install_headers_dir=install-headers-cpio
1876 use_collect2=yes
1877 extra_headers=math-68881.h
c8db55b0 1878 float_format=m68k
46f18e7b
RK
1879 ;;
1880 m68k-hp-hpux*) # HP 9000 series 300
61536478
JL
1881 xm_file="xm_alloca.h ${xm_file}"
1882 xm_defines="USG NO_SYS_SIGLIST"
75bffa71 1883 if test x$gas = xyes
46f18e7b
RK
1884 then
1885 xmake_file=m68k/x-hp320g
1886 tm_file=m68k/hp320g.h
1887 else
1888 xmake_file=m68k/x-hp320
1889 tm_file=m68k/hp320.h
1890 fi
46f18e7b
RK
1891 install_headers_dir=install-headers-cpio
1892 use_collect2=yes
1893 extra_headers=math-68881.h
c8db55b0 1894 float_format=m68k
46f18e7b
RK
1895 ;;
1896 m68k-sun-mach*)
1897 tm_file=m68k/sun3mach.h
1898 use_collect2=yes
1899 extra_headers=math-68881.h
c8db55b0 1900 float_format=m68k
46f18e7b
RK
1901 ;;
1902 m68k-sony-newsos3*)
75bffa71 1903 if test x$gas = xyes
46f18e7b
RK
1904 then
1905 tm_file=m68k/news3gas.h
1906 else
1907 tm_file=m68k/news3.h
1908 fi
1909 use_collect2=yes
1910 extra_headers=math-68881.h
c8db55b0 1911 float_format=m68k
46f18e7b
RK
1912 ;;
1913 m68k-sony-bsd* | m68k-sony-newsos*)
75bffa71 1914 if test x$gas = xyes
46f18e7b
RK
1915 then
1916 tm_file=m68k/newsgas.h
1917 else
1918 tm_file=m68k/news.h
1919 fi
1920 use_collect2=yes
1921 extra_headers=math-68881.h
c8db55b0 1922 float_format=m68k
46f18e7b
RK
1923 ;;
1924 m68k-next-nextstep2*)
1925 tm_file=m68k/next21.h
61536478 1926 xm_file="m68k/xm-next.h ${xm_file}"
46f18e7b
RK
1927 tmake_file=m68k/t-next
1928 xmake_file=m68k/x-next
1929 extra_objs=nextstep.o
1930 extra_headers=math-68881.h
1931 use_collect2=yes
c8db55b0 1932 float_format=m68k
46f18e7b
RK
1933 ;;
1934 m68k-next-nextstep3*)
1935 tm_file=m68k/next.h
61536478 1936 xm_file="m68k/xm-next.h ${xm_file}"
46f18e7b
RK
1937 tmake_file=m68k/t-next
1938 xmake_file=m68k/x-next
1939 extra_objs=nextstep.o
750930c1 1940 extra_parts="crtbegin.o crtend.o"
46f18e7b 1941 extra_headers=math-68881.h
c8db55b0 1942 float_format=m68k
75bffa71 1943 if test x$enable_threads = xyes; then
0bbb1697
RK
1944 thread_file='mach'
1945 fi
46f18e7b
RK
1946 ;;
1947 m68k-sun-sunos3*)
75bffa71 1948 if test x$with_fp = xno
46f18e7b
RK
1949 then
1950 tm_file=m68k/sun3n3.h
1951 else
1952 tm_file=m68k/sun3o3.h
c8db55b0 1953 float_format=m68k
46f18e7b
RK
1954 fi
1955 use_collect2=yes
1956 extra_headers=math-68881.h
1957 ;;
1958 m68k-sun-sunos*) # For SunOS 4 (the default).
75bffa71 1959 if test x$with_fp = xno
46f18e7b
RK
1960 then
1961 tm_file=m68k/sun3n.h
1962 else
1963 tm_file=m68k/sun3.h
c8db55b0 1964 float_format=m68k
46f18e7b 1965 fi
46f18e7b
RK
1966 use_collect2=yes
1967 extra_headers=math-68881.h
1968 ;;
1969 m68k-wrs-vxworks*)
1970 tm_file=m68k/vxm68k.h
1971 tmake_file=m68k/t-vxworks68
1972 extra_headers=math-68881.h
7cc34889 1973 thread_file='vxworks'
c8db55b0 1974 float_format=m68k
46f18e7b
RK
1975 ;;
1976 m68k-*-aout*)
1977 tmake_file=m68k/t-m68kbare
1978 tm_file="m68k/m68k-aout.h libgloss.h"
1979 extra_headers=math-68881.h
c8db55b0 1980 float_format=m68k
46f18e7b
RK
1981 ;;
1982 m68k-*-coff*)
1983 tmake_file=m68k/t-m68kbare
1984 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1985 extra_headers=math-68881.h
c8db55b0 1986 float_format=m68k
46f18e7b 1987 ;;
d1be3be3
JW
1988 m68020-*-elf* | m68k-*-elf*)
1989 tm_file="m68k/m68020-elf.h libgloss.h"
1990 xm_file=m68k/xm-m68kv.h
1991 tmake_file=m68k/t-m68kelf
1992 header_files=math-68881.h
1993 ;;
46f18e7b 1994 m68k-*-lynxos*)
75bffa71 1995 if test x$gas = xyes
46f18e7b
RK
1996 then
1997 tm_file=m68k/lynx.h
1998 else
1999 tm_file=m68k/lynx-ng.h
2000 fi
2001 xm_file=m68k/xm-lynx.h
2002 xmake_file=x-lynx
2003 tmake_file=m68k/t-lynx
2004 extra_headers=math-68881.h
c8db55b0 2005 float_format=m68k
46f18e7b 2006 ;;
58600d24 2007 m68k*-*-netbsd*)
46f18e7b 2008 tm_file=m68k/netbsd.h
be1ed94f 2009 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 2010 fixincludes=fixinc.wrap
e47f44f4 2011 tmake_file=t-netbsd
c8db55b0 2012 float_format=m68k
46f18e7b 2013 ;;
1b4a979b
ME
2014 m68k*-*-openbsd*)
2015 float_format=m68k
2016 # we need collect2 until our bug is fixed...
2017 use_collect2=yes
2018 ;;
46f18e7b 2019 m68k-*-sysv3*) # Motorola m68k's running system V.3
61536478
JL
2020 xm_file="xm-alloca.h ${xm_file}"
2021 xm_defines=USG
46f18e7b
RK
2022 xmake_file=m68k/x-m68kv
2023 extra_parts="crtbegin.o crtend.o"
2024 extra_headers=math-68881.h
c8db55b0 2025 float_format=m68k
46f18e7b
RK
2026 ;;
2027 m68k-*-sysv4*) # Motorola m68k's running system V.4
2028 tm_file=m68k/m68kv4.h
61536478
JL
2029 xm_file="xm-alloca.h ${xm_file}"
2030 xm_defines=USG
46f18e7b
RK
2031 tmake_file=t-svr4
2032 extra_parts="crtbegin.o crtend.o"
2033 extra_headers=math-68881.h
c8db55b0 2034 float_format=m68k
46f18e7b 2035 ;;
956d6950 2036 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
61536478 2037 # with a.out format
46f18e7b
RK
2038 xmake_file=x-linux
2039 tm_file=m68k/linux-aout.h
2040 tmake_file="t-linux-aout m68k/t-linux-aout"
956d6950 2041 fixincludes=Makefile.in # The headers are ok already.
46f18e7b 2042 extra_headers=math-68881.h
c8db55b0 2043 float_format=m68k
46f18e7b 2044 gnu_ld=yes
46f18e7b 2045 ;;
956d6950 2046 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
61536478
JL
2047 # with ELF format using the
2048 # GNU/Linux C library 5
2049 xmake_file=x-linux
95fd3981
RK
2050 tm_file=m68k/linux.h
2051 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2052 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
956d6950 2053 fixincludes=Makefile.in # The headers are ok already.
95fd3981 2054 extra_headers=math-68881.h
c8db55b0 2055 float_format=m68k
95fd3981
RK
2056 gnu_ld=yes
2057 ;;
956d6950 2058 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
61536478
JL
2059 # with ELF format using glibc 2
2060 # aka the GNU/Linux C library 6.
2061 xmake_file=x-linux
46f18e7b
RK
2062 tm_file=m68k/linux.h
2063 tmake_file="t-linux m68k/t-linux"
2064 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
956d6950 2065 fixincludes=Makefile.in # The headers are ok already.
46f18e7b 2066 extra_headers=math-68881.h
c8db55b0 2067 float_format=m68k
46f18e7b 2068 gnu_ld=yes
75bffa71 2069 if test x$enable_threads = xyes; then
95fd3981
RK
2070 thread_file='posix'
2071 fi
46f18e7b
RK
2072 ;;
2073 m68k-*-psos*)
2074 tmake_file=m68k/t-m68kbare
2075 tm_file=m68k/m68k-psos.h
2076 extra_headers=math-68881.h
c8db55b0 2077 float_format=m68k
46f18e7b
RK
2078 ;;
2079 m68k-*-rtems*)
2080 tmake_file="m68k/t-m68kbare t-rtems"
2081 tm_file=m68k/rtems.h
2082 extra_headers=math-68881.h
c8db55b0 2083 float_format=m68k
46f18e7b
RK
2084 ;;
2085
2086 m88k-dg-dgux*)
2087 case $machine in
2088 m88k-dg-dguxbcs*)
2089 tm_file=m88k/dguxbcs.h
2090 tmake_file=m88k/t-dguxbcs
2091 ;;
2092 *)
2093 tm_file=m88k/dgux.h
2094 tmake_file=m88k/t-dgux
2095 ;;
2096 esac
2097 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
46f18e7b 2098 xmake_file=m88k/x-dgux
75bffa71 2099 if test x$gas = xyes
46f18e7b
RK
2100 then
2101 tmake_file=m88k/t-dgux-gas
2102 fi
2103 fixincludes=fixinc.dgux
2104 ;;
2105 m88k-dolphin-sysv3*)
2106 tm_file=m88k/dolph.h
2107 extra_parts="crtbegin.o crtend.o"
61536478 2108 xm_file="m88k/xm-sysv3.h ${xm_file}"
46f18e7b 2109 xmake_file=m88k/x-dolph
75bffa71 2110 if test x$gas = xyes
46f18e7b
RK
2111 then
2112 tmake_file=m88k/t-m88k-gas
2113 fi
2114 ;;
2115 m88k-tektronix-sysv3)
2116 tm_file=m88k/tekXD88.h
2117 extra_parts="crtbegin.o crtend.o"
61536478 2118 xm_file="m88k/xm-sysv3.h ${xm_file}"
46f18e7b 2119 xmake_file=m88k/x-tekXD88
75bffa71 2120 if test x$gas = xyes
46f18e7b
RK
2121 then
2122 tmake_file=m88k/t-m88k-gas
2123 fi
2124 ;;
2125 m88k-*-aout*)
2126 tm_file=m88k/m88k-aout.h
2127 ;;
2128 m88k-*-coff*)
2129 tm_file=m88k/m88k-coff.h
2130 tmake_file=m88k/t-bug
2131 ;;
2132 m88k-*-luna*)
2133 tm_file=m88k/luna.h
2134 extra_parts="crtbegin.o crtend.o"
75bffa71 2135 if test x$gas = xyes
46f18e7b
RK
2136 then
2137 tmake_file=m88k/t-luna-gas
2138 else
2139 tmake_file=m88k/t-luna
2140 fi
2141 ;;
1b4a979b
ME
2142 m88k-*-openbsd*)
2143 tmake_file="${tmake_file} m88k/t-luna-gas"
2144 ;;
46f18e7b
RK
2145 m88k-*-sysv3*)
2146 tm_file=m88k/sysv3.h
2147 extra_parts="crtbegin.o crtend.o"
61536478 2148 xm_file="m88k/xm-sysv3.h ${xm_file}"
46f18e7b 2149 xmake_file=m88k/x-sysv3
75bffa71 2150 if test x$gas = xyes
46f18e7b
RK
2151 then
2152 tmake_file=m88k/t-m88k-gas
2153 fi
2154 ;;
2155 m88k-*-sysv4*)
2156 tm_file=m88k/sysv4.h
2157 extra_parts="crtbegin.o crtend.o"
2158 xmake_file=m88k/x-sysv4
2159 tmake_file=m88k/t-sysv4
2160 ;;
2161 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2162 tm_file=mips/iris6.h
2163 xm_file=mips/xm-iris6.h
46f18e7b
RK
2164 fixincludes=fixinc.irix
2165 xmake_file=mips/x-iris6
2166 tmake_file=mips/t-iris6
04069e5c 2167# if test x$enable_threads = xyes; then
6e148807 2168# thread_file='irix'
04069e5c 2169# fi
46f18e7b 2170 ;;
98bd9f0f
DB
2171 mips-wrs-vxworks)
2172 tm_file="mips/elf.h libgloss.h"
2173 tmake_file=mips/t-ecoff
2174 gas=yes
2175 gnu_ld=yes
2176 extra_parts="crtbegin.o crtend.o"
e9c0315e 2177 thread_file='vxworks'
98bd9f0f 2178 ;;
46f18e7b 2179 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
61536478 2180 tm_file="mips/iris6.h mips/cross64.h"
74c55ab0
JW
2181 xm_defines=USG
2182 xm_file="mips/xm-iris5.h"
46f18e7b
RK
2183 fixincludes=Makefile.in
2184 xmake_file=mips/x-iris
2185 tmake_file=mips/t-cross64
2186 # See comment in mips/iris[56].h files.
2187 use_collect2=yes
04069e5c 2188# if test x$enable_threads = xyes; then
6e148807 2189# thread_file='irix'
04069e5c 2190# fi
46f18e7b
RK
2191 ;;
2192 mips-sni-sysv4)
75bffa71 2193 if test x$gas = xyes
46f18e7b 2194 then
75bffa71 2195 if test x$stabs = xyes
46f18e7b
RK
2196 then
2197 tm_file=mips/iris5gdb.h
2198 else
61536478 2199 tm_file="mips/sni-svr4.h mips/sni-gas.h"
46f18e7b
RK
2200 fi
2201 else
2202 tm_file=mips/sni-svr4.h
2203 fi
61536478 2204 xm_defines=USG
46f18e7b
RK
2205 xmake_file=mips/x-sni-svr4
2206 tmake_file=mips/t-mips-gas
75bffa71 2207 if test x$gnu_ld != xyes
46f18e7b
RK
2208 then
2209 use_collect2=yes
2210 fi
46f18e7b
RK
2211 ;;
2212 mips-sgi-irix5*) # SGI System V.4., IRIX 5
75bffa71 2213 if test x$gas = xyes
46f18e7b 2214 then
61536478 2215 tm_file="mips/iris5.h mips/iris5gas.h"
75bffa71 2216 if test x$stabs = xyes
46f18e7b
RK
2217 then
2218 tm_file="${tm_file} dbx.h"
2219 fi
2220 else
2221 tm_file=mips/iris5.h
2222 fi
74c55ab0
JW
2223 xm_defines=USG
2224 xm_file="mips/xm-iris5.h"
46f18e7b
RK
2225 fixincludes=fixinc.irix
2226 xmake_file=mips/x-iris
2227 # mips-tfile doesn't work yet
2228 tmake_file=mips/t-mips-gas
2229 # See comment in mips/iris5.h file.
2230 use_collect2=yes
04069e5c 2231# if test x$enable_threads = xyes; then
6e148807 2232# thread_file='irix'
04069e5c 2233# fi
46f18e7b
RK
2234 ;;
2235 mips-sgi-irix4loser*) # Mostly like a MIPS.
61536478 2236 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
75bffa71 2237 if test x$stabs = xyes; then
46f18e7b
RK
2238 tm_file="${tm_file} dbx.h"
2239 fi
61536478 2240 xm_defines=USG
46f18e7b 2241 xmake_file=mips/x-iris
75bffa71 2242 if test x$gas = xyes
46f18e7b
RK
2243 then
2244 tmake_file=mips/t-mips-gas
2245 else
2246 extra_passes="mips-tfile mips-tdump"
2247 fi
75bffa71 2248 if test x$gnu_ld != xyes
46f18e7b
RK
2249 then
2250 use_collect2=yes
2251 fi
04069e5c 2252# if test x$enable_threads = xyes; then
6e148807 2253# thread_file='irix'
04069e5c 2254# fi
46f18e7b
RK
2255 ;;
2256 mips-sgi-irix4*) # Mostly like a MIPS.
61536478 2257 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
75bffa71 2258 if test x$stabs = xyes; then
46f18e7b
RK
2259 tm_file="${tm_file} dbx.h"
2260 fi
61536478 2261 xm_defines=USG
46f18e7b 2262 xmake_file=mips/x-iris
75bffa71 2263 if test x$gas = xyes
46f18e7b
RK
2264 then
2265 tmake_file=mips/t-mips-gas
2266 else
2267 extra_passes="mips-tfile mips-tdump"
2268 fi
75bffa71 2269 if test x$gnu_ld != xyes
46f18e7b
RK
2270 then
2271 use_collect2=yes
2272 fi
04069e5c 2273# if test x$enable_threads = xyes; then
6e148807 2274# thread_file='irix'
04069e5c 2275# fi
46f18e7b
RK
2276 ;;
2277 mips-sgi-*) # Mostly like a MIPS.
61536478 2278 tm_file="mips/iris3.h ${tm_file}"
75bffa71 2279 if test x$stabs = xyes; then
46f18e7b
RK
2280 tm_file="${tm_file} dbx.h"
2281 fi
61536478 2282 xm_defines=USG
46f18e7b 2283 xmake_file=mips/x-iris3
75bffa71 2284 if test x$gas = xyes
46f18e7b
RK
2285 then
2286 tmake_file=mips/t-mips-gas
2287 else
2288 extra_passes="mips-tfile mips-tdump"
2289 fi
75bffa71 2290 if test x$gnu_ld != xyes
46f18e7b
RK
2291 then
2292 use_collect2=yes
2293 fi
2294 ;;
2295 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
61536478 2296 tm_file="mips/osfrose.h ${tm_file}"
46f18e7b
RK
2297 xmake_file=mips/x-osfrose
2298 tmake_file=mips/t-osfrose
2299 extra_objs=halfpic.o
2300 use_collect2=yes
2301 ;;
2302 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2303 tm_file=mips/dec-osf1.h
75bffa71 2304 if test x$stabs = xyes; then
46f18e7b
RK
2305 tm_file="${tm_file} dbx.h"
2306 fi
2307 xmake_file=mips/x-dec-osf1
75bffa71 2308 if test x$gas = xyes
46f18e7b
RK
2309 then
2310 tmake_file=mips/t-mips-gas
2311 else
2312 tmake_file=mips/t-ultrix
2313 extra_passes="mips-tfile mips-tdump"
2314 fi
75bffa71 2315 if test x$gnu_ld != xyes
46f18e7b
RK
2316 then
2317 use_collect2=yes
2318 fi
2319 ;;
2320 mips-dec-bsd*) # Decstation running 4.4 BSD
2321 tm_file=mips/dec-bsd.h
2322 fixincludes=
75bffa71 2323 if test x$gas = xyes
46f18e7b
RK
2324 then
2325 tmake_file=mips/t-mips-gas
2326 else
2327 tmake_file=mips/t-ultrix
2328 extra_passes="mips-tfile mips-tdump"
2329 fi
75bffa71 2330 if test x$gnu_ld != xyes
46f18e7b
RK
2331 then
2332 use_collect2=yes
2333 fi
2334 ;;
58600d24 2335 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
46f18e7b 2336 tm_file=mips/netbsd.h
be1ed94f 2337 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 2338 fixincludes=fixinc.wrap
e47f44f4 2339 tmake_file=t-netbsd
46f18e7b 2340 ;;
11fa8909 2341 mips*-*-linux*) # Linux MIPS, either endian.
18cae839
RL
2342 xmake_file=x-linux
2343 xm_file="xm-siglist.h ${xm_file}"
11fa8909
RL
2344 case $machine in
2345 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2346 *) tm_file="mips/elf.h mips/linux.h" ;;
2347 esac
18cae839
RL
2348 extra_parts="crtbegin.o crtend.o"
2349 gnu_ld=yes
2350 gas=yes
2351 fixincludes=Makefile.in
2352 ;;
1b4a979b
ME
2353 mips*el-*-openbsd*) # mips little endian
2354 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2355 tm_file=mips/openbsd.h
2356 xmake_file=none
2357 ;;
2358 mips*-*-openbsd*) # mips big endian
2359 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2360 tm_file=mips/openbsd-be.h
2361 xmake_file=none
2362 ;;
46f18e7b 2363 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
61536478 2364 tm_file="mips/news4.h ${tm_file}"
75bffa71 2365 if test x$stabs = xyes; then
46f18e7b
RK
2366 tm_file="${tm_file} dbx.h"
2367 fi
75bffa71 2368 if test x$gas = xyes
46f18e7b
RK
2369 then
2370 tmake_file=mips/t-mips-gas
2371 else
2372 extra_passes="mips-tfile mips-tdump"
2373 fi
75bffa71 2374 if test x$gnu_ld != xyes
46f18e7b
RK
2375 then
2376 use_collect2=yes
2377 fi
2378 xmake_file=mips/x-sony
2379 ;;
2380 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2381 # That is based on svr4.
2382 # t-svr4 is not right because this system doesn't use ELF.
61536478 2383 tm_file="mips/news5.h ${tm_file}"
75bffa71 2384 if test x$stabs = xyes; then
46f18e7b
RK
2385 tm_file="${tm_file} dbx.h"
2386 fi
61536478
JL
2387 xm_file="xm-siglist.h ${xm_file}"
2388 xm_defines=USG
75bffa71 2389 if test x$gas = xyes
46f18e7b
RK
2390 then
2391 tmake_file=mips/t-mips-gas
2392 else
2393 extra_passes="mips-tfile mips-tdump"
2394 fi
75bffa71 2395 if test x$gnu_ld != xyes
46f18e7b
RK
2396 then
2397 use_collect2=yes
2398 fi
2399 ;;
2400 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
61536478 2401 tm_file="mips/svr4-5.h mips/svr4-t.h"
75bffa71 2402 if test x$stabs = xyes; then
46f18e7b
RK
2403 tm_file="${tm_file} dbx.h"
2404 fi
61536478
JL
2405 xm_file="xm-siglist.h ${xm_file}"
2406 xm_defines=USG
46f18e7b 2407 xmake_file=mips/x-sysv
75bffa71 2408 if test x$gas = xyes
46f18e7b
RK
2409 then
2410 tmake_file=mips/t-mips-gas
2411 extra_parts="crtbegin.o crtend.o"
2412 else
2413 tmake_file=mips/t-mips
2414 extra_passes="mips-tfile mips-tdump"
2415 fi
75bffa71 2416 if test x$gnu_ld != xyes
46f18e7b
RK
2417 then
2418 use_collect2=yes
2419 fi
46f18e7b
RK
2420 ;;
2421 mips-*-ultrix* | mips-dec-mach3) # Decstation.
61536478 2422 tm_file="mips/ultrix.h ${tm_file}"
75bffa71 2423 if test x$stabs = xyes; then
46f18e7b
RK
2424 tm_file="${tm_file} dbx.h"
2425 fi
2426 xmake_file=mips/x-ultrix
75bffa71 2427 if test x$gas = xyes
46f18e7b
RK
2428 then
2429 tmake_file=mips/t-mips-gas
2430 else
2431 tmake_file=mips/t-ultrix
2432 extra_passes="mips-tfile mips-tdump"
2433 fi
75bffa71 2434 if test x$gnu_ld != xyes
46f18e7b
RK
2435 then
2436 use_collect2=yes
2437 fi
2438 ;;
75bffa71
ILT
2439changequote(,)dnl
2440 mips-*-riscos[56789]bsd*)
2441changequote([,])dnl
46f18e7b 2442 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
75bffa71 2443 if test x$stabs = xyes; then
46f18e7b
RK
2444 tm_file="${tm_file} dbx.h"
2445 fi
75bffa71 2446 if test x$gas = xyes
46f18e7b
RK
2447 then
2448 tmake_file=mips/t-bsd-gas
2449 else
2450 tmake_file=mips/t-bsd
2451 extra_passes="mips-tfile mips-tdump"
2452 fi
75bffa71 2453 if test x$gnu_ld != xyes
46f18e7b
RK
2454 then
2455 use_collect2=yes
2456 fi
46f18e7b 2457 ;;
75bffa71
ILT
2458changequote(,)dnl
2459 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2460changequote([,])dnl
61536478 2461 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
75bffa71 2462 if test x$stabs = xyes; then
46f18e7b
RK
2463 tm_file="${tm_file} dbx.h"
2464 fi
75bffa71 2465 if test x$gas = xyes
46f18e7b
RK
2466 then
2467 tmake_file=mips/t-bsd-gas
2468 else
2469 tmake_file=mips/t-bsd
2470 extra_passes="mips-tfile mips-tdump"
2471 fi
75bffa71 2472 if test x$gnu_ld != xyes
46f18e7b
RK
2473 then
2474 use_collect2=yes
2475 fi
46f18e7b 2476 ;;
75bffa71
ILT
2477changequote(,)dnl
2478 mips-*-riscos[56789]sysv4*)
2479changequote([,])dnl
46f18e7b 2480 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
75bffa71 2481 if test x$stabs = xyes; then
46f18e7b
RK
2482 tm_file="${tm_file} dbx.h"
2483 fi
61536478 2484 xm_file="xm-siglist.h ${xm_file}"
46f18e7b 2485 xmake_file=mips/x-sysv
75bffa71 2486 if test x$gas = xyes
46f18e7b
RK
2487 then
2488 tmake_file=mips/t-svr4-gas
2489 else
2490 tmake_file=mips/t-svr4
2491 extra_passes="mips-tfile mips-tdump"
2492 fi
75bffa71 2493 if test x$gnu_ld != xyes
46f18e7b
RK
2494 then
2495 use_collect2=yes
2496 fi
46f18e7b 2497 ;;
75bffa71
ILT
2498changequote(,)dnl
2499 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2500changequote([,])dnl
61536478 2501 tm_file="mips/svr4-4.h ${tm_file}"
75bffa71 2502 if test x$stabs = xyes; then
46f18e7b
RK
2503 tm_file="${tm_file} dbx.h"
2504 fi
61536478 2505 xm_defines=USG
46f18e7b 2506 xmake_file=mips/x-sysv
75bffa71 2507 if test x$gas = xyes
46f18e7b
RK
2508 then
2509 tmake_file=mips/t-svr4-gas
2510 else
2511 tmake_file=mips/t-svr4
2512 extra_passes="mips-tfile mips-tdump"
2513 fi
75bffa71 2514 if test x$gnu_ld != xyes
46f18e7b
RK
2515 then
2516 use_collect2=yes
2517 fi
46f18e7b 2518 ;;
75bffa71
ILT
2519changequote(,)dnl
2520 mips-*-riscos[56789]sysv*)
2521changequote([,])dnl
46f18e7b 2522 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
75bffa71 2523 if test x$stabs = xyes; then
46f18e7b
RK
2524 tm_file="${tm_file} dbx.h"
2525 fi
61536478 2526 xm_defines=USG
46f18e7b 2527 xmake_file=mips/x-sysv
75bffa71 2528 if test x$gas = xyes
46f18e7b
RK
2529 then
2530 tmake_file=mips/t-svr3-gas
2531 else
2532 tmake_file=mips/t-svr3
2533 extra_passes="mips-tfile mips-tdump"
2534 fi
75bffa71 2535 if test x$gnu_ld != xyes
46f18e7b
RK
2536 then
2537 use_collect2=yes
2538 fi
46f18e7b
RK
2539 ;;
2540 mips-*-sysv* | mips-*-riscos*sysv*)
61536478 2541 tm_file="mips/svr3-4.h ${tm_file}"
75bffa71 2542 if test x$stabs = xyes; then
46f18e7b
RK
2543 tm_file="${tm_file} dbx.h"
2544 fi
61536478 2545 xm_defines=USG
46f18e7b 2546 xmake_file=mips/x-sysv
75bffa71 2547 if test x$gas = xyes
46f18e7b
RK
2548 then
2549 tmake_file=mips/t-svr3-gas
2550 else
2551 tmake_file=mips/t-svr3
2552 extra_passes="mips-tfile mips-tdump"
2553 fi
75bffa71 2554 if test x$gnu_ld != xyes
46f18e7b
RK
2555 then
2556 use_collect2=yes
2557 fi
46f18e7b 2558 ;;
75bffa71
ILT
2559changequote(,)dnl
2560 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2561changequote([,])dnl
46f18e7b 2562 tm_file=mips/mips-5.h
75bffa71 2563 if test x$stabs = xyes; then
46f18e7b
RK
2564 tm_file="${tm_file} dbx.h"
2565 fi
75bffa71 2566 if test x$gas = xyes
46f18e7b
RK
2567 then
2568 tmake_file=mips/t-mips-gas
2569 else
2570 extra_passes="mips-tfile mips-tdump"
2571 fi
75bffa71 2572 if test x$gnu_ld != xyes
46f18e7b
RK
2573 then
2574 use_collect2=yes
2575 fi
46f18e7b
RK
2576 ;;
2577 mips-*-gnu*)
2578 ;;
2579 mipsel-*-ecoff*)
2580 tm_file=mips/ecoffl.h
75bffa71 2581 if test x$stabs = xyes; then
46f18e7b
RK
2582 tm_file="${tm_file} dbx.h"
2583 fi
2584 tmake_file=mips/t-ecoff
2585 ;;
2586 mips-*-ecoff*)
1be12a4a 2587 tm_file="gofast.h mips/ecoff.h"
75bffa71 2588 if test x$stabs = xyes; then
46f18e7b
RK
2589 tm_file="${tm_file} dbx.h"
2590 fi
2591 tmake_file=mips/t-ecoff
46f18e7b
RK
2592 ;;
2593 mipsel-*-elf*)
2594 tm_file="mips/elfl.h libgloss.h"
2595 tmake_file=mips/t-ecoff
2596 ;;
2597 mips-*-elf*)
2598 tm_file="mips/elf.h libgloss.h"
2599 tmake_file=mips/t-ecoff
2600 ;;
2601 mips64el-*-elf*)
2602 tm_file="mips/elfl64.h libgloss.h"
2603 tmake_file=mips/t-ecoff
2604 ;;
2605 mips64orionel-*-elf*)
61536478 2606 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
46f18e7b
RK
2607 tmake_file=mips/t-ecoff
2608 ;;
2609 mips64-*-elf*)
2610 tm_file="mips/elf64.h libgloss.h"
2611 tmake_file=mips/t-ecoff
2612 ;;
2613 mips64orion-*-elf*)
61536478 2614 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
46f18e7b
RK
2615 tmake_file=mips/t-ecoff
2616 ;;
2617 mips64orion-*-rtems*)
6e9856ba 2618 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
46f18e7b
RK
2619 tmake_file="mips/t-ecoff t-rtems"
2620 ;;
e9a25f70
JL
2621 mipstx39el-*-elf*)
2622 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
09e4daf5 2623 tmake_file=mips/t-r3900
e9a25f70
JL
2624 ;;
2625 mipstx39-*-elf*)
2626 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
09e4daf5 2627 tmake_file=mips/t-r3900
2ce3c6c6
JM
2628 # FIXME mips-elf should be fixed to use crtstuff.
2629 use_collect2=yes
e9a25f70 2630 ;;
46f18e7b 2631 mips-*-*) # Default MIPS RISC-OS 4.0.
75bffa71 2632 if test x$stabs = xyes; then
46f18e7b
RK
2633 tm_file="${tm_file} dbx.h"
2634 fi
75bffa71 2635 if test x$gas = xyes
46f18e7b
RK
2636 then
2637 tmake_file=mips/t-mips-gas
2638 else
2639 extra_passes="mips-tfile mips-tdump"
2640 fi
75bffa71 2641 if test x$gnu_ld != xyes
46f18e7b
RK
2642 then
2643 use_collect2=yes
2644 fi
2645 ;;
cef64ec4
RK
2646 mn10200-*-*)
2647 cpu_type=mn10200
2648 tm_file="mn10200/mn10200.h"
75bffa71 2649 if test x$stabs = xyes
cef64ec4
RK
2650 then
2651 tm_file="${tm_file} dbx.h"
2652 fi
2653 use_collect2=no
2654 ;;
46f18e7b
RK
2655 mn10300-*-*)
2656 cpu_type=mn10300
2657 tm_file="mn10300/mn10300.h"
75bffa71 2658 if test x$stabs = xyes
46f18e7b
RK
2659 then
2660 tm_file="${tm_file} dbx.h"
2661 fi
2662 use_collect2=no
2663 ;;
2664 ns32k-encore-bsd*)
2665 tm_file=ns32k/encore.h
2666 use_collect2=yes
2667 ;;
2668 ns32k-sequent-bsd*)
2669 tm_file=ns32k/sequent.h
2670 use_collect2=yes
2671 ;;
2672 ns32k-tek6100-bsd*)
2673 tm_file=ns32k/tek6100.h
46f18e7b
RK
2674 use_collect2=yes
2675 ;;
2676 ns32k-tek6200-bsd*)
2677 tm_file=ns32k/tek6200.h
46f18e7b
RK
2678 use_collect2=yes
2679 ;;
2680# This has not been updated to GCC 2.
2681# ns32k-ns-genix*)
61536478 2682# xm_defines=USG
46f18e7b
RK
2683# xmake_file=ns32k/x-genix
2684# tm_file=ns32k/genix.h
46f18e7b
RK
2685# use_collect2=yes
2686# ;;
2687 ns32k-merlin-*)
2688 tm_file=ns32k/merlin.h
2689 use_collect2=yes
2690 ;;
2691 ns32k-pc532-mach*)
2692 tm_file=ns32k/pc532-mach.h
2693 use_collect2=yes
2694 ;;
2695 ns32k-pc532-minix*)
2696 tm_file=ns32k/pc532-min.h
61536478
JL
2697 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2698 xm_defines=USG
46f18e7b
RK
2699 use_collect2=yes
2700 ;;
58600d24 2701 ns32k-*-netbsd*)
46f18e7b 2702 tm_file=ns32k/netbsd.h
641d4216 2703 xm_file="ns32k/xm-netbsd.h ${xm_file}"
be1ed94f 2704 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 2705 fixincludes=fixinc.wrap
e47f44f4 2706 tmake_file=t-netbsd
46f18e7b
RK
2707 ;;
2708 pdp11-*-bsd)
2709 tm_file="${tm_file} pdp11/2bsd.h"
2710 ;;
2711 pdp11-*-*)
2712 ;;
1b4a979b
ME
2713 ns32k-*-openbsd*)
2714 # Nothing special
2715 ;;
46f18e7b
RK
2716 pyramid-*-*)
2717 cpu_type=pyr
2718 xmake_file=pyr/x-pyr
2719 use_collect2=yes
2720 ;;
2721 romp-*-aos*)
2722 use_collect2=yes
2723 ;;
2724 romp-*-mach*)
2725 xmake_file=romp/x-mach
2726 use_collect2=yes
2727 ;;
1b4a979b
ME
2728 romp-*-openbsd*)
2729 # Nothing special
2730 ;;
2731 powerpc-*-openbsd*)
2732 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2733 xmake_file=none
2734 ;;
c55dcc7d
FF
2735 powerpc-*-beos*)
2736 cpu_type=rs6000
2737 tm_file=rs6000/beos.h
2738 xm_file=rs6000/xm-beos.h
2739 tmake_file=rs6000/t-beos
2740 xmake_file=rs6000/x-beos
2741 ;;
46f18e7b
RK
2742 powerpc-*-sysv* | powerpc-*-elf*)
2743 tm_file=rs6000/sysv4.h
61536478
JL
2744 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2745 xm_defines="USG POSIX"
46f18e7b 2746 extra_headers=ppc-asm.h
75bffa71 2747 if test x$gas = xyes
46f18e7b
RK
2748 then
2749 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2750 else
2751 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2752 fi
2753 xmake_file=rs6000/x-sysv4
2754 ;;
2755 powerpc-*-eabiaix*)
2756 tm_file=rs6000/eabiaix.h
2757 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2758 fixincludes=Makefile.in
2759 extra_headers=ppc-asm.h
2760 ;;
2761 powerpc-*-eabisim*)
2762 tm_file=rs6000/eabisim.h
2763 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2764 fixincludes=Makefile.in
2765 extra_headers=ppc-asm.h
2766 ;;
2767 powerpc-*-eabi*)
2768 tm_file=rs6000/eabi.h
75bffa71 2769 if test x$gas = xyes
46f18e7b
RK
2770 then
2771 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2772 else
2773 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2774 fi
2775 fixincludes=Makefile.in
2776 extra_headers=ppc-asm.h
2777 ;;
dec3e070
JW
2778 powerpc-*-rtems*)
2779 tm_file=rs6000/rtems.h
75bffa71 2780 if test x$gas = xyes
46f18e7b 2781 then
dec3e070 2782 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
46f18e7b 2783 else
dec3e070 2784 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
46f18e7b 2785 fi
46f18e7b 2786 fixincludes=Makefile.in
46f18e7b
RK
2787 extra_headers=ppc-asm.h
2788 ;;
ce514f57
FS
2789 powerpc-*-linux-gnulibc1)
2790 tm_file=rs6000/linux.h
2791 xm_file=rs6000/xm-sysv4.h
2792 out_file=rs6000/rs6000.c
75bffa71 2793 if test x$gas = xyes
ce514f57
FS
2794 then
2795 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2796 else
2797 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2798 fi
2799 xmake_file=x-linux
2800 fixincludes=Makefile.in
2801 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2802 extra_headers=ppc-asm.h
75bffa71 2803 if test x$enable_threads = xyes; then
ce514f57
FS
2804 thread_file='posix'
2805 fi
2806 ;;
844dadc7 2807 powerpc-*-linux-gnu*)
dec3e070 2808 tm_file=rs6000/linux.h
61536478
JL
2809 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2810 xm_defines="USG ${xm_defines}"
dec3e070 2811 out_file=rs6000/rs6000.c
75bffa71 2812 if test x$gas = xyes
46f18e7b 2813 then
dec3e070 2814 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
46f18e7b 2815 else
dec3e070 2816 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
46f18e7b 2817 fi
d7308c0c 2818 xmake_file=x-linux
dec3e070 2819 fixincludes=Makefile.in
d7308c0c 2820 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
46f18e7b 2821 extra_headers=ppc-asm.h
75bffa71 2822 if test x$enable_threads = xyes; then
d7308c0c
RK
2823 thread_file='posix'
2824 fi
46f18e7b 2825 ;;
7cc34889 2826 powerpc-wrs-vxworks*)
46f18e7b 2827 cpu_type=rs6000
61536478
JL
2828 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2829 xm_defines="USG POSIX"
46f18e7b
RK
2830 tm_file=rs6000/vxppc.h
2831 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2832 extra_headers=ppc-asm.h
7cc34889 2833 thread_file='vxworks'
46f18e7b
RK
2834 ;;
2835 powerpcle-*-sysv* | powerpcle-*-elf*)
2836 tm_file=rs6000/sysv4le.h
61536478
JL
2837 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2838 xm_defines="USG POSIX"
75bffa71 2839 if test x$gas = xyes
46f18e7b
RK
2840 then
2841 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2842 else
2843 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2844 fi
2845 xmake_file=rs6000/x-sysv4
2846 extra_headers=ppc-asm.h
2847 ;;
2848 powerpcle-*-eabisim*)
2849 tm_file=rs6000/eabilesim.h
2850 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2851 fixincludes=Makefile.in
2852 extra_headers=ppc-asm.h
2853 ;;
2854 powerpcle-*-eabi*)
2855 tm_file=rs6000/eabile.h
75bffa71 2856 if test x$gas = xyes
46f18e7b
RK
2857 then
2858 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2859 else
2860 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2861 fi
2862 fixincludes=Makefile.in
2863 extra_headers=ppc-asm.h
2864 ;;
2865 powerpcle-*-winnt* )
2866 tm_file=rs6000/win-nt.h
2867 tmake_file=rs6000/t-winnt
2868# extra_objs=pe.o
2869 fixincludes=Makefile.in
75bffa71 2870 if test x$enable_threads = xyes; then
0bbb1697
RK
2871 thread_file='win32'
2872 fi
46f18e7b
RK
2873 extra_headers=ppc-asm.h
2874 ;;
cae21ae8
GN
2875 powerpcle-*-pe | powerpcle-*-cygwin*)
2876 tm_file=rs6000/cygwin.h
2877 xm_file="rs6000/xm-cygwin.h ${xm_file}"
46f18e7b 2878 tmake_file=rs6000/t-winnt
cae21ae8 2879 xmake_file=rs6000/x-cygwin
46f18e7b
RK
2880# extra_objs=pe.o
2881 fixincludes=Makefile.in
75bffa71 2882 if test x$enable_threads = xyes; then
0bbb1697
RK
2883 thread_file='win32'
2884 fi
46f18e7b
RK
2885 exeext=.exe
2886 extra_headers=ppc-asm.h
2887 ;;
2888 powerpcle-*-solaris2*)
2889 tm_file=rs6000/sol2.h
61536478
JL
2890 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2891 xm_defines="USG POSIX"
75bffa71 2892 if test x$gas = xyes
46f18e7b
RK
2893 then
2894 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2895 else
2896 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2897 fi
2898 xmake_file=rs6000/x-sysv4
61536478 2899 case $machine in
75bffa71
ILT
2900changequote(,)dnl
2901 *-*-solaris2.[0-4])
2902changequote([,])dnl
61536478
JL
2903 fixincludes=fixinc.svr4;;
2904 *)
32f65aa0 2905 fixincludes=fixinc.wrap;;
61536478 2906 esac
46f18e7b
RK
2907 extra_headers=ppc-asm.h
2908 ;;
75bffa71
ILT
2909changequote(,)dnl
2910 rs6000-ibm-aix3.[01]*)
2911changequote([,])dnl
46f18e7b
RK
2912 tm_file=rs6000/aix31.h
2913 xmake_file=rs6000/x-aix31
2914 use_collect2=yes
2915 ;;
75bffa71
ILT
2916changequote(,)dnl
2917 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2918changequote([,])dnl
46f18e7b 2919 tm_file=rs6000/aix3newas.h
75bffa71 2920 if test x$host != x$target
46f18e7b
RK
2921 then
2922 tmake_file=rs6000/t-xnewas
2923 else
2924 tmake_file=rs6000/t-newas
2925 fi
2926 use_collect2=yes
2927 ;;
75bffa71 2928changequote(,)dnl
05cea40f 2929 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
75bffa71 2930changequote([,])dnl
20fced2c 2931 if test "$gnu_ld" = yes
d202e8aa 2932 then
20fced2c
MM
2933 tm_file=rs6000/aix41-gld.h
2934 else
2935 tm_file=rs6000/aix41.h
2936 fi
75bffa71 2937 if test x$host != x$target
46f18e7b
RK
2938 then
2939 tmake_file=rs6000/t-xnewas
2940 else
2941 tmake_file=rs6000/t-newas
2942 fi
a260abc9
DE
2943 xmake_file=rs6000/x-aix41
2944 use_collect2=yes
2945 ;;
75bffa71
ILT
2946changequote(,)dnl
2947 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2948changequote([,])dnl
a260abc9 2949 tm_file=rs6000/aix43.h
75bffa71 2950 if test x$host != x$target
a260abc9
DE
2951 then
2952 tmake_file=rs6000/t-xaix43
2953 else
2954 tmake_file=rs6000/t-aix43
2955 fi
2956 xmake_file=rs6000/x-aix43
2957 use_collect2=yes
2958 ;;
75bffa71
ILT
2959changequote(,)dnl
2960 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2961changequote([,])dnl
a260abc9 2962 tm_file=rs6000/aix43.h
75bffa71 2963 if test x$host != x$target
a260abc9
DE
2964 then
2965 tmake_file=rs6000/t-xaix43
2966 else
2967 tmake_file=rs6000/t-aix43
2968 fi
2969 xmake_file=rs6000/x-aix43
46f18e7b
RK
2970 use_collect2=yes
2971 ;;
2972 rs6000-ibm-aix*)
2973 use_collect2=yes
2974 ;;
2975 rs6000-bull-bosx)
2976 use_collect2=yes
2977 ;;
2978 rs6000-*-mach*)
2979 tm_file=rs6000/mach.h
61536478 2980 xm_file="${xm_file} rs6000/xm-mach.h"
46f18e7b
RK
2981 xmake_file=rs6000/x-mach
2982 use_collect2=yes
2983 ;;
2984 rs6000-*-lynxos*)
2985 tm_file=rs6000/lynx.h
2986 xm_file=rs6000/xm-lynx.h
2987 tmake_file=rs6000/t-rs6000
2988 xmake_file=rs6000/x-lynx
2989 use_collect2=yes
2990 ;;
2991 sh-*-elf*)
2992 tm_file=sh/elf.h
2993 float_format=sh
2994 ;;
b098f56d
JS
2995 sh-*-rtemself*)
2996 tmake_file="sh/t-sh t-rtems"
2997 tm_file=sh/rtemself.h
2998 float_format=sh
2999 ;;
5d84b57e
JS
3000 sh-*-rtems*)
3001 tmake_file="sh/t-sh t-rtems"
3002 tm_file=sh/rtems.h
3003 float_format=sh
3004 ;;
46f18e7b
RK
3005 sh-*-*)
3006 float_format=sh
3007 ;;
3008 sparc-tti-*)
3009 tm_file=sparc/pbd.h
61536478
JL
3010 xm_file="xm-alloca.h ${xm_file}"
3011 xm_defines=USG
46f18e7b
RK
3012 ;;
3013 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3014 tm_file=sparc/vxsparc.h
3015 tmake_file=sparc/t-vxsparc
3016 use_collect2=yes
7cc34889 3017 thread_file='vxworks'
46f18e7b
RK
3018 ;;
3019 sparc-*-aout*)
3020 tmake_file=sparc/t-sparcbare
3021 tm_file="sparc/aout.h libgloss.h"
3022 ;;
3023 sparc-*-netbsd*)
3024 tm_file=sparc/netbsd.h
be1ed94f 3025 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 3026 fixincludes=fixinc.wrap
e47f44f4 3027 tmake_file=t-netbsd
46f18e7b 3028 ;;
1b4a979b
ME
3029 sparc-*-openbsd*)
3030 # we need collect2 until our bug is fixed...
3031 use_collect2=yes
3032 ;;
46f18e7b
RK
3033 sparc-*-bsd*)
3034 tm_file=sparc/bsd.h
3035 ;;
ac52b80b
DE
3036 sparc-*-elf*)
3037 tm_file=sparc/elf.h
3038 tmake_file=sparc/t-elf
3039 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3040 #float_format=i128
3041 float_format=i64
3042 ;;
956d6950 3043 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
61536478 3044 xm_file="${xm_file} sparc/xm-linux.h"
46f18e7b
RK
3045 tm_file=sparc/linux-aout.h
3046 xmake_file=x-linux
3047 fixincludes=Makefile.in #On Linux, the headers are ok already.
46f18e7b 3048 gnu_ld=yes
46f18e7b 3049 ;;
956d6950 3050 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
61536478 3051 xm_file="${xm_file} sparc/xm-linux.h"
2334126e 3052 xmake_file=x-linux
46f18e7b 3053 tm_file=sparc/linux.h
9d1ebd25 3054 tmake_file="t-linux t-linux-gnulibc1"
9ad03bc1
RK
3055 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3056 fixincludes=Makefile.in #On Linux, the headers are ok already.
9ad03bc1
RK
3057 gnu_ld=yes
3058 ;;
956d6950 3059 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
61536478 3060 xm_file="${xm_file} sparc/xm-linux.h"
2334126e 3061 xmake_file=x-linux
9ad03bc1 3062 tm_file=sparc/linux.h
9d1ebd25 3063 tmake_file="t-linux"
9ad03bc1 3064 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
46f18e7b 3065 fixincludes=Makefile.in #On Linux, the headers are ok already.
46f18e7b 3066 gnu_ld=yes
75bffa71 3067 if test x$enable_threads = xyes; then
9ad03bc1
RK
3068 thread_file='posix'
3069 fi
46f18e7b
RK
3070 ;;
3071 sparc-*-lynxos*)
75bffa71 3072 if test x$gas = xyes
46f18e7b
RK
3073 then
3074 tm_file=sparc/lynx.h
3075 else
3076 tm_file=sparc/lynx-ng.h
3077 fi
3078 xm_file=sparc/xm-lynx.h
3079 tmake_file=sparc/t-sunos41
3080 xmake_file=x-lynx
3081 ;;
3082 sparc-*-rtems*)
3083 tmake_file="sparc/t-sparcbare t-rtems"
3084 tm_file=sparc/rtems.h
3085 ;;
d559a4db
DM
3086 sparcv9-*-solaris2*)
3087 tm_file=sparc/sol2-sld-64.h
3088 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3089 xm_defines="USG POSIX"
345a6161 3090 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
d559a4db
DM
3091 xmake_file=sparc/x-sysv4
3092 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3093 fixincludes=fixinc.wrap
027ea2a7 3094 float_format=none
d7496fbb 3095 if test x${enable_threads} = x ; then
d559a4db 3096 enable_threads=$have_pthread_h
d7496fbb 3097 if test x${enable_threads} = x ; then
d559a4db
DM
3098 enable_threads=$have_thread_h
3099 fi
3100 fi
d7496fbb
DM
3101 if test x${enable_threads} = xyes ; then
3102 if test x${have_pthread_h} = xyes ; then
d559a4db
DM
3103 thread_file='posix'
3104 else
3105 thread_file='solaris'
3106 fi
3107 fi
3108 ;;
ab87f8c8
JL
3109 sparc-hal-solaris2*)
3110 xm_file=sparc/xm-sol2.h
3111 tm_file="sparc/sol2.h sparc/hal.h"
3112 tmake_file="sparc/t-halos sparc/t-sol2"
3113 xmake_file=sparc/x-sysv4
3114 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3115 fixincludes=fixinc.svr4
3116 broken_install=yes
3117 ;;
46f18e7b 3118 sparc-*-solaris2*)
75bffa71 3119 if test x$gnu_ld = xyes
0a9bdce3
PE
3120 then
3121 tm_file=sparc/sol2.h
3122 else
3123 tm_file=sparc/sol2-sld.h
3124 fi
22ec3928
RE
3125 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3126 xm_defines="USG POSIX"
46f18e7b
RK
3127 tmake_file=sparc/t-sol2
3128 xmake_file=sparc/x-sysv4
3129 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
61536478 3130 case $machine in
75bffa71
ILT
3131changequote(,)dnl
3132 *-*-solaris2.[0-4])
3133changequote([,])dnl
027ea2a7
JW
3134 fixincludes=fixinc.svr4
3135 float_format=i128
3136 ;;
61536478 3137 *)
027ea2a7
JW
3138 fixincludes=fixinc.wrap
3139 float_format=none
3140 ;;
61536478 3141 esac
75bffa71 3142 if test x${enable_threads} = x; then
f24af81b 3143 enable_threads=$have_pthread_h
75bffa71 3144 if test x${enable_threads} = x; then
f24af81b
TT
3145 enable_threads=$have_thread_h
3146 fi
3147 fi
75bffa71
ILT
3148 if test x${enable_threads} = xyes; then
3149 if test x${have_pthread_h} = xyes; then
f24af81b
TT
3150 thread_file='posix'
3151 else
0bbb1697 3152 thread_file='solaris'
f24af81b 3153 fi
0bbb1697 3154 fi
46f18e7b
RK
3155 ;;
3156 sparc-*-sunos4.0*)
3157 tm_file=sparc/sunos4.h
3158 tmake_file=sparc/t-sunos40
3159 use_collect2=yes
3160 ;;
3161 sparc-*-sunos4*)
3162 tm_file=sparc/sunos4.h
3163 tmake_file=sparc/t-sunos41
3164 use_collect2=yes
75bffa71 3165 if test x$gas = xyes; then
ca55abae
JM
3166 tm_file="${tm_file} sparc/sun4gas.h"
3167 fi
46f18e7b
RK
3168 ;;
3169 sparc-*-sunos3*)
3170 tm_file=sparc/sun4o3.h
3171 use_collect2=yes
3172 ;;
3173 sparc-*-sysv4*)
3174 tm_file=sparc/sysv4.h
61536478
JL
3175 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3176 xm_defines="USG POSIX"
46f18e7b
RK
3177 tmake_file=t-svr4
3178 xmake_file=sparc/x-sysv4
3179 extra_parts="crtbegin.o crtend.o"
3180 ;;
3181 sparc-*-vxsim*)
f5963e61
JL
3182 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3183 xm_defines="USG POSIX"
46f18e7b
RK
3184 tm_file=sparc/vxsim.h
3185 tmake_file=sparc/t-vxsparc
3186 xmake_file=sparc/x-sysv4
3187 ;;
3188 sparclet-*-aout*)
3189 tm_file="sparc/splet.h libgloss.h"
3190 tmake_file=sparc/t-splet
3191 ;;
3192 sparclite-*-coff*)
3193 tm_file="sparc/litecoff.h libgloss.h"
3194 tmake_file=sparc/t-sparclite
3195 ;;
3196 sparclite-*-aout*)
3197 tm_file="sparc/lite.h aoutos.h libgloss.h"
3198 tmake_file=sparc/t-sparclite
3199 ;;
3200 sparc64-*-aout*)
3201 tmake_file=sparc/t-sp64
3202 tm_file=sparc/sp64-aout.h
3203 ;;
3204 sparc64-*-elf*)
3205 tmake_file=sparc/t-sp64
3206 tm_file=sparc/sp64-elf.h
3207 extra_parts="crtbegin.o crtend.o"
3208 ;;
956d6950 3209 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
345a6161 3210 tmake_file="t-linux sparc/t-linux64"
2334126e
DE
3211 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3212 tm_file=sparc/linux64.h
3213 xmake_file=x-linux
956d6950 3214 fixincludes=Makefile.in # The headers are ok already.
345a6161 3215 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2334126e
DE
3216 gnu_ld=yes
3217 ;;
46f18e7b
RK
3218# This hasn't been upgraded to GCC 2.
3219# tahoe-harris-*) # Harris tahoe, using COFF.
3220# tm_file=tahoe/harris.h
3221# ;;
3222# tahoe-*-bsd*) # tahoe running BSD
3223# ;;
e98e406f
NC
3224 thumb-*-coff* | thumbel-*-coff*)
3225 tm_file=arm/tcoff.h
3226 out_file=arm/thumb.c
3227 xm_file=arm/xm-thumb.h
3228 md_file=arm/thumb.md
3229 tmake_file=arm/t-thumb
a717c1f9 3230 fixincludes=Makefile.in # There is nothing to fix
e98e406f 3231 ;;
46f18e7b
RK
3232# This hasn't been upgraded to GCC 2.
3233# tron-*-*)
3234# cpu_type=gmicro
3235# use_collect2=yes
3236# ;;
f84271d9
JL
3237 v850-*-*)
3238 cpu_type=v850
3239 tm_file="v850/v850.h"
3240 xm_file="v850/xm-v850.h"
62db76ee 3241 tmake_file=v850/t-v850
75bffa71 3242 if test x$stabs = xyes
f84271d9
JL
3243 then
3244 tm_file="${tm_file} dbx.h"
3245 fi
3246 use_collect2=no
3247 ;;
46f18e7b
RK
3248 vax-*-bsd*) # vaxen running BSD
3249 use_collect2=yes
3250 float_format=vax
3251 ;;
3252 vax-*-sysv*) # vaxen running system V
3253 tm_file="${tm_file} vax/vaxv.h"
61536478 3254 xm_defines=USG
46f18e7b
RK
3255 float_format=vax
3256 ;;
3257 vax-*-netbsd*)
3258 tm_file="${tm_file} netbsd.h vax/netbsd.h"
be1ed94f 3259 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 3260 fixincludes=fixinc.wrap
e47f44f4 3261 tmake_file=t-netbsd
46f18e7b
RK
3262 float_format=vax
3263 ;;
1b4a979b
ME
3264 vax-*-openbsd*)
3265 tmake_file="${tm_file} vax/t-openbsd"
3266 ;;
46f18e7b
RK
3267 vax-*-ultrix*) # vaxen running ultrix
3268 tm_file="${tm_file} vax/ultrix.h"
3269 use_collect2=yes
3270 float_format=vax
3271 ;;
3272 vax-*-vms*) # vaxen running VMS
3273 xm_file=vax/xm-vms.h
3274 tm_file=vax/vms.h
3275 float_format=vax
3276 ;;
3277 vax-*-*) # vax default entry
3278 float_format=vax
3279 ;;
3280 we32k-att-sysv*)
3281 xm_file="${xm_file} xm-svr3"
3282 use_collect2=yes
3283 ;;
3284 *)
3285 echo "Configuration $machine not supported" 1>&2
3286 exit 1
3287 ;;
3288 esac
3289
3290 case $machine in
3291 *-*-linux-gnu*)
61536478 3292 ;; # Existing GNU/Linux systems do not use the GNU setup.
46f18e7b
RK
3293 *-*-gnu*)
3294 # On the GNU system, the setup is just about the same on
3295 # each different CPU. The specific machines that GNU
3296 # supports are matched above and just set $cpu_type.
61536478 3297 xm_file="xm-gnu.h ${xm_file}"
46f18e7b 3298 tm_file=${cpu_type}/gnu.h
6b403743 3299 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
46f18e7b
RK
3300 # GNU always uses ELF.
3301 elf=yes
3302 # GNU tools are the only tools.
3303 gnu_ld=yes
3304 gas=yes
3305 # On GNU, the headers are already okay.
3306 fixincludes=Makefile.in
3307 xmake_file=x-linux # These details are the same as Linux.
3308 tmake_file=t-gnu # These are not.
3309 ;;
3310 *-*-sysv4*)
3311 fixincludes=fixinc.svr4
3312 xmake_try_sysv=x-sysv
46f18e7b
RK
3313 install_headers_dir=install-headers-cpio
3314 ;;
3315 *-*-sysv*)
46f18e7b
RK
3316 install_headers_dir=install-headers-cpio
3317 ;;
3318 esac
3319
61536478 3320 # Distinguish i[34567]86
46f18e7b
RK
3321 # Also, do not run mips-tfile on MIPS if using gas.
3322 # Process --with-cpu= for PowerPC/rs6000
3323 target_cpu_default2=
3324 case $machine in
3325 i486-*-*)
3326 target_cpu_default2=1
3327 ;;
3328 i586-*-*)
3329 target_cpu_default2=2
3330 ;;
61536478 3331 i686-*-* | i786-*-*)
46f18e7b
RK
3332 target_cpu_default2=3
3333 ;;
08fc0184
RK
3334 alpha*-*-*)
3335 case $machine in
e9a25f70 3336 alphaev6*)
44e95b19 3337 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_CIX|MASK_MAX"
e9a25f70
JL
3338 ;;
3339 alphapca56*)
fbb5ed67 3340 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
e9a25f70 3341 ;;
08fc0184 3342 alphaev56*)
e9a25f70 3343 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
08fc0184
RK
3344 ;;
3345 alphaev5*)
3346 target_cpu_default2="MASK_CPU_EV5"
3347 ;;
3348 esac
3349
75bffa71 3350 if test x$gas = xyes
46f18e7b 3351 then
75bffa71 3352 if test "$target_cpu_default2" = ""
08fc0184 3353 then
e71c3bb0 3354 target_cpu_default2="MASK_GAS"
08fc0184 3355 else
e71c3bb0 3356 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
08fc0184 3357 fi
46f18e7b
RK
3358 fi
3359 ;;
956d6950
JL
3360 arm*-*-*)
3361 case "x$with_cpu" in
3362 x)
3363 # The most generic
3364 target_cpu_default2="TARGET_CPU_generic"
3365 ;;
3366
3367 # Distinguish cores, and major variants
3368 # arm7m doesn't exist, but D & I don't affect code
3369 xarm[23678] | xarm250 | xarm[67][01]0 \
3370 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3371 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3372 | xstrongarm | xstrongarm110)
3373 target_cpu_default2="TARGET_CPU_$with_cpu"
3374 ;;
3375
3376 xyes | xno)
3377 echo "--with-cpu must be passed a value" 1>&2
3378 exit 1
3379 ;;
3380
3381 *)
75bffa71 3382 if test x$pass2done = xyes
956d6950
JL
3383 then
3384 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3385 exit 1
3386 fi
3387 ;;
3388 esac
3389 ;;
3390
46f18e7b 3391 mips*-*-ecoff* | mips*-*-elf*)
75bffa71 3392 if test x$gas = xyes
46f18e7b 3393 then
75bffa71 3394 if test x$gnu_ld = xyes
46f18e7b
RK
3395 then
3396 target_cpu_default2=20
3397 else
3398 target_cpu_default2=16
3399 fi
3400 fi
3401 ;;
3402 mips*-*-*)
75bffa71 3403 if test x$gas = xyes
46f18e7b
RK
3404 then
3405 target_cpu_default2=16
3406 fi
3407 ;;
3408 powerpc*-*-* | rs6000-*-*)
3409 case "x$with_cpu" in
3410 x)
3411 ;;
3412
3413 xcommon | xpower | xpower2 | xpowerpc | xrios \
52cddadb
MM
3414 | xrios1 | xrios2 | xrsc | xrsc1 \
3415 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
507ba956 3416 | xec603e | x740 | x750 | x401 \
52cddadb 3417 | x403 | x505 | x801 | x821 | x823 | x860)
f24b370a 3418 target_cpu_default2="\"$with_cpu\""
46f18e7b
RK
3419 ;;
3420
3421 xyes | xno)
3422 echo "--with-cpu must be passed a value" 1>&2
3423 exit 1
3424 ;;
3425
3426 *)
75bffa71 3427 if test x$pass2done = xyes
956d6950
JL
3428 then
3429 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3430 exit 1
3431 fi
46f18e7b
RK
3432 ;;
3433 esac
3434 ;;
3435 sparc*-*-*)
3436 case ".$with_cpu" in
3437 .)
3438 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3439 ;;
8947065c 3440 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
46f18e7b
RK
3441 target_cpu_default2="TARGET_CPU_$with_cpu"
3442 ;;
3443 *)
75bffa71 3444 if test x$pass2done = xyes
956d6950
JL
3445 then
3446 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3447 exit 1
3448 fi
46f18e7b
RK
3449 ;;
3450 esac
3451 ;;
3452 esac
3453
75bffa71 3454 if test "$target_cpu_default2" != ""
46f18e7b 3455 then
75bffa71 3456 if test "$target_cpu_default" != ""
46f18e7b
RK
3457 then
3458 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3459 else
3460 target_cpu_default=$target_cpu_default2
3461 fi
3462 fi
3463
3464 # No need for collect2 if we have the GNU linker.
d460fb3c
JM
3465 # Actually, there is now; GNU ld doesn't handle the EH info or
3466 # collecting for shared libraries.
ca8c3b37
JM
3467 #case x$gnu_ld in
3468 #xyes)
3469 # use_collect2=
3470 # ;;
3471 #esac
46f18e7b
RK
3472
3473# Save data on machine being used to compile GCC in build_xm_file.
3474# Save data on host machine in vars host_xm_file and host_xmake_file.
75bffa71 3475 if test x$pass1done = x
46f18e7b 3476 then
75bffa71 3477 if test x"$xm_file" = x
46f18e7b
RK
3478 then build_xm_file=$cpu_type/xm-$cpu_type.h
3479 else build_xm_file=$xm_file
3480 fi
61536478 3481 build_xm_defines=$xm_defines
46f18e7b
RK
3482 build_install_headers_dir=$install_headers_dir
3483 build_exeext=$exeext
3484 pass1done=yes
3485 else
75bffa71 3486 if test x$pass2done = x
46f18e7b 3487 then
75bffa71 3488 if test x"$xm_file" = x
46f18e7b
RK
3489 then host_xm_file=$cpu_type/xm-$cpu_type.h
3490 else host_xm_file=$xm_file
3491 fi
61536478 3492 host_xm_defines=$xm_defines
75bffa71 3493 if test x"$xmake_file" = x
46f18e7b
RK
3494 then xmake_file=$cpu_type/x-$cpu_type
3495 fi
3496 host_xmake_file="$xmake_file"
3497 host_truncate_target=$truncate_target
3498 host_extra_gcc_objs=$extra_gcc_objs
3499 host_extra_objs=$extra_host_objs
6e26218f 3500 host_exeext=$exeext
46f18e7b
RK
3501 pass2done=yes
3502 fi
3503 fi
3504done
3505
3506extra_objs="${host_extra_objs} ${extra_objs}"
3507
3508# Default the target-machine variables that were not explicitly set.
75bffa71 3509if test x"$tm_file" = x
46f18e7b
RK
3510then tm_file=$cpu_type/$cpu_type.h; fi
3511
75bffa71 3512if test x$extra_headers = x
46f18e7b
RK
3513then extra_headers=; fi
3514
75bffa71 3515if test x"$xm_file" = x
46f18e7b
RK
3516then xm_file=$cpu_type/xm-$cpu_type.h; fi
3517
75bffa71 3518if test x$md_file = x
e98e406f 3519then md_file=$cpu_type/$cpu_type.md; fi
46f18e7b 3520
75bffa71 3521if test x$out_file = x
46f18e7b
RK
3522then out_file=$cpu_type/$cpu_type.c; fi
3523
75bffa71 3524if test x"$tmake_file" = x
46f18e7b
RK
3525then tmake_file=$cpu_type/t-$cpu_type
3526fi
3527
90e6a802
RL
3528if test x"$dwarf2" = xyes
3529then tm_file="tm-dwarf2.h $tm_file"
3530fi
3531
75bffa71 3532if test x$float_format = x
46f18e7b
RK
3533then float_format=i64
3534fi
3535
027ea2a7
JW
3536if test $float_format = none
3537then float_h_file=Makefile.in
3538else float_h_file=float-$float_format.h
3539fi
3540
75bffa71 3541if test x$enable_haifa = x
128f7968
RH
3542then
3543 case $target in
18cae839 3544 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
128f7968
RH
3545 enable_haifa=yes;;
3546 esac
3547fi
3548
9fc9b82a
L
3549# Handle cpp installation.
3550if [[ x$enable_cpp != x ]]
3551then
3552 tmake_file="$tmake_file t-install-cpp"
3553fi
3554
46f18e7b
RK
3555# Say what files are being used for the output code and MD file.
3556echo "Using \`$srcdir/config/$out_file' to output insns."
3557echo "Using \`$srcdir/config/$md_file' as machine description file."
3558
3559count=a
3560for f in $tm_file; do
3561 count=${count}x
3562done
75bffa71 3563if test $count = ax; then
46f18e7b
RK
3564 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3565else
3566 echo "Using the following target machine macro files:"
3567 for f in $tm_file; do
3568 echo " $srcdir/config/$f"
3569 done
3570fi
3571
3572count=a
3573for f in $host_xm_file; do
3574 count=${count}x
3575done
75bffa71 3576if test $count = ax; then
46f18e7b
RK
3577 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3578else
3579 echo "Using the following host machine macro files:"
3580 for f in $host_xm_file; do
3581 echo " $srcdir/config/$f"
3582 done
3583fi
3584
75bffa71 3585if test "$host_xm_file" != "$build_xm_file"; then
46f18e7b
RK
3586 count=a
3587 for f in $build_xm_file; do
3588 count=${count}x
3589 done
75bffa71 3590 if test $count = ax; then
46f18e7b
RK
3591 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3592 else
3593 echo "Using the following build machine macro files:"
3594 for f in $build_xm_file; do
3595 echo " $srcdir/config/$f"
3596 done
3597 fi
3598fi
3599
75bffa71
ILT
3600if test x$thread_file = x; then
3601 if test x$target_thread_file != x; then
a851212a
JW
3602 thread_file=$target_thread_file
3603 else
3604 thread_file='single'
3605 fi
46f18e7b 3606fi
46f18e7b
RK
3607
3608# Set up the header files.
3609# $links is the list of header files to create.
3610# $vars is the list of shell variables with file names to include.
b7cb92ad 3611# auto-host.h is the file containing items generated by autoconf and is
e9a25f70 3612# the first file included by config.h.
61536478 3613null_defines=
0056a9b5 3614host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
db81d74a 3615
b7cb92ad 3616# If host=build, it is correct to have hconfig include auto-host.h
db81d74a
RH
3617# as well. If host!=build, we are in error and need to do more
3618# work to find out the build config parameters.
75bffa71 3619if test x$host = x$build
db81d74a 3620then
0056a9b5 3621 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
b7cb92ad
JL
3622else
3623 # We create a subdir, then run autoconf in the subdir.
3624 # To prevent recursion we set host and build for the new
3625 # invocation of configure to the build for this invocation
3626 # of configure.
3627 tempdir=build.$$
3628 rm -rf $tempdir
3629 mkdir $tempdir
3630 cd $tempdir
3631 case ${srcdir} in
3632 /*) realsrcdir=${srcdir};;
3633 *) realsrcdir=../${srcdir};;
3634 esac
fe81dd69 3635 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
b7cb92ad
JL
3636 --target=$target --host=$build --build=$build
3637
3638 # We just finished tests for the build machine, so rename
3639 # the file auto-build.h in the gcc directory.
3640 mv auto-host.h ../auto-build.h
3641 cd ..
3642 rm -rf $tempdir
0056a9b5 3643 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
db81d74a
RH
3644fi
3645
0056a9b5
KG
3646xm_file="gansidecl.h ${xm_file}"
3647tm_file="gansidecl.h ${tm_file}"
3648
46f18e7b 3649vars="host_xm_file tm_file xm_file build_xm_file"
e9a25f70 3650links="config.h tm.h tconfig.h hconfig.h"
61536478 3651defines="host_xm_defines null_defines xm_defines build_xm_defines"
46f18e7b
RK
3652
3653rm -f config.bak
75bffa71 3654if test -f config.status; then mv -f config.status config.bak; fi
46f18e7b
RK
3655
3656# Make the links.
75bffa71 3657while test -n "$vars"
46f18e7b 3658do
46f18e7b
RK
3659 set $vars; var=$1; shift; vars=$*
3660 set $links; link=$1; shift; links=$*
61536478 3661 set $defines; define=$1; shift; defines=$*
46f18e7b
RK
3662
3663 rm -f $link
3664
3665 # Define TARGET_CPU_DEFAULT if the system wants one.
3666 # This substitutes for lots of *.h files.
75bffa71 3667 if test "$target_cpu_default" != "" -a $link = tm.h
46f18e7b 3668 then
8fbf199e 3669 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
46f18e7b
RK
3670 fi
3671
3672 for file in `eval echo '$'$var`; do
ab87f8c8
JL
3673 case $file in
3674 auto-config.h)
3675 ;;
3676 *)
3677 echo '#ifdef IN_GCC' >>$link
3678 ;;
3679 esac
46f18e7b 3680 echo "#include \"$file\"" >>$link
ab87f8c8
JL
3681 case $file in
3682 auto-config.h)
3683 ;;
3684 *)
3685 echo '#endif' >>$link
3686 ;;
3687 esac
46f18e7b 3688 done
61536478
JL
3689
3690 for def in `eval echo '$'$define`; do
3691 echo "#ifndef $def" >>$link
3692 echo "#define $def" >>$link
3693 echo "#endif" >>$link
3694 done
46f18e7b
RK
3695done
3696
3697# Truncate the target if necessary
75bffa71 3698if test x$host_truncate_target != x; then
46f18e7b
RK
3699 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3700fi
3701
f1943b77 3702# Get the version trigger filename from the toplevel
75bffa71 3703if test "${with_gcc_version_trigger+set}" = set; then
f1943b77
MH
3704 gcc_version_trigger=$with_gcc_version_trigger
3705else
3706 gcc_version_trigger=${srcdir}/version.c
3707fi
75bffa71
ILT
3708changequote(,)dnl
3709gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3710changequote([,])dnl
46f18e7b 3711
ab87f8c8
JL
3712# Internationalization
3713PACKAGE=gcc
3714VERSION="$gcc_version"
3715AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
3716AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
3717AC_SUBST(PACKAGE)
3718AC_SUBST(VERSION)
3719
3720ALL_LINGUAS="en_UK"
3721
3722# NLS support is still experimental, so disable it by default for now.
3723AC_ARG_ENABLE(nls,
3724 [ --enable-nls use Native Language Support (disabled by default)],
3725 , enable_nls=no)
3726
3727AM_GNU_GETTEXT
3728XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
3729
7fa10b25
RK
3730# Get an absolute path to the GCC top-level source directory
3731holddir=`pwd`
3732cd $srcdir
3733topdir=`pwd`
3734cd $holddir
3735
af5e4ada 3736# Conditionalize the makefile for this host machine.
94f42018
DE
3737# Make-host contains the concatenation of all host makefile fragments
3738# [there can be more than one]. This file is built by configure.frag.
3739host_overrides=Make-host
af5e4ada 3740dep_host_xmake_file=
94f42018
DE
3741for f in .. ${host_xmake_file}
3742do
75bffa71 3743 if test -f ${srcdir}/config/$f
94f42018
DE
3744 then
3745 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3746 fi
3747done
46f18e7b 3748
af5e4ada 3749# Conditionalize the makefile for this target machine.
94f42018
DE
3750# Make-target contains the concatenation of all host makefile fragments
3751# [there can be more than one]. This file is built by configure.frag.
3752target_overrides=Make-target
af5e4ada 3753dep_tmake_file=
94f42018
DE
3754for f in .. ${tmake_file}
3755do
75bffa71 3756 if test -f ${srcdir}/config/$f
94f42018
DE
3757 then
3758 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3759 fi
3760done
5891b37d 3761
af5e4ada
DE
3762# If the host doesn't support symlinks, modify CC in
3763# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3764# Otherwise, we can use "CC=$(CC)".
3765rm -f symtest.tem
61536478 3766if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
af5e4ada
DE
3767then
3768 cc_set_by_configure="\$(CC)"
3769 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3770else
61536478
JL
3771 rm -f symtest.tem
3772 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3773 then
3774 symbolic_link="cp -p"
3775 else
3776 symbolic_link="cp"
3777 fi
af5e4ada
DE
3778 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3779 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3780fi
3781rm -f symtest.tem
5891b37d 3782
af5e4ada 3783out_object_file=`basename $out_file .c`.o
5891b37d 3784
af5e4ada
DE
3785tm_file_list=
3786for f in $tm_file; do
0056a9b5
KG
3787 if test $f != "gansidecl.h" ; then
3788 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3789 else
3790 tm_file_list="${tm_file_list} $f"
3791 fi
af5e4ada 3792done
46f18e7b 3793
af5e4ada
DE
3794host_xm_file_list=
3795for f in $host_xm_file; do
0056a9b5 3796 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
db81d74a
RH
3797 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3798 else
0056a9b5 3799 host_xm_file_list="${host_xm_file_list} $f"
db81d74a 3800 fi
af5e4ada
DE
3801done
3802
3803build_xm_file_list=
3804for f in $build_xm_file; do
0056a9b5
KG
3805 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3806 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
db81d74a 3807 else
0056a9b5 3808 build_xm_file_list="${build_xm_file_list} $f"
db81d74a 3809 fi
af5e4ada 3810done
46f18e7b 3811
af5e4ada
DE
3812# Define macro CROSS_COMPILE in compilation
3813# if this is a cross-compiler.
3814# Also use all.cross instead of all.internal
3815# and add cross-make to Makefile.
571a8de5 3816cross_overrides="/dev/null"
75bffa71 3817if test x$host != x$target
af5e4ada
DE
3818then
3819 cross_defines="CROSS=-DCROSS_COMPILE"
3820 cross_overrides="${topdir}/cross-make"
3821fi
46f18e7b 3822
af5e4ada
DE
3823# When building gcc with a cross-compiler, we need to fix a few things.
3824# This must come after cross-make as we want all.build to override
3825# all.cross.
571a8de5 3826build_overrides="/dev/null"
75bffa71 3827if test x$build != x$host
af5e4ada
DE
3828then
3829 build_overrides="${topdir}/build-make"
3830fi
46f18e7b 3831
ae3a15bb
DE
3832# Expand extra_headers to include complete path.
3833# This substitutes for lots of t-* files.
3834extra_headers_list=
75bffa71 3835if test "x$extra_headers" = x
ae3a15bb
DE
3836then true
3837else
3838 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3839 for file in $extra_headers;
3840 do
3841 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3842 done
3843fi
3844
75bffa71 3845if test x$use_collect2 = xno; then
2ce3c6c6
JM
3846 use_collect2=
3847fi
3848
af5e4ada
DE
3849# Add a definition of USE_COLLECT2 if system wants one.
3850# Also tell toplev.c what to do.
3851# This substitutes for lots of t-* files.
75bffa71 3852if test x$use_collect2 = x
af5e4ada
DE
3853then
3854 will_use_collect2=
3855 maybe_use_collect2=
3856else
10da1131 3857 will_use_collect2="collect2"
af5e4ada
DE
3858 maybe_use_collect2="-DUSE_COLLECT2"
3859fi
3860
3861# NEED TO CONVERT
3862# Set MD_DEPS if the real md file is in md.pre-cpp.
3863# Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3864# for line oriented comments, so we must always use a GNU cpp. If
3865# building gcc with a cross compiler, use the cross compiler just
3866# built. Otherwise, we can use the cpp just built.
3867md_file_sub=
75bffa71 3868if test "x$md_cppflags" = x
af5e4ada
DE
3869then
3870 md_file_sub=$srcdir/config/$md_file
3871else
3872 md_file=md
3873fi
3874
3875# If we have gas in the build tree, make a link to it.
75bffa71 3876if test -f ../gas/Makefile; then
6e26218f 3877 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
af5e4ada
DE
3878fi
3879
4b95eb49 3880# If we have nm in the build tree, make a link to it.
75bffa71 3881if test -f ../binutils/Makefile; then
4b95eb49
JL
3882 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3883fi
3884
af5e4ada 3885# If we have ld in the build tree, make a link to it.
75bffa71
ILT
3886if test -f ../ld/Makefile; then
3887# if test x$use_collect2 = x; then
6e26218f 3888# rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
aa32d841 3889# else
6e26218f 3890 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
aa32d841 3891# fi
af5e4ada
DE
3892fi
3893
9e423e6d
JW
3894# Figure out what assembler alignment features are present.
3895AC_MSG_CHECKING(assembler alignment features)
3896gcc_cv_as=
3897gcc_cv_as_alignment_features=
a2f319ea 3898gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3ccc3a56
AO
3899if test -x "$DEFAULT_ASSEMBLER"; then
3900 gcc_cv_as="$DEFAULT_ASSEMBLER"
3901elif test -x "$AS"; then
3902 gcc_cv_as="$AS"
ab339d62 3903elif test -x as$host_exeext; then
9e423e6d
JW
3904 # Build using assembler in the current directory.
3905 gcc_cv_as=./as$host_exeext
5585c1bc 3906elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
9e423e6d 3907 # Single tree build which includes gas.
a2c9d57c 3908 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
9e423e6d 3909 do
75bffa71
ILT
3910changequote(,)dnl
3911 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3912changequote([,])dnl
3913 if test x$gcc_cv_gas_version != x; then
9e423e6d
JW
3914 break
3915 fi
3916 done
75bffa71
ILT
3917changequote(,)dnl
3918 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3919 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3920changequote([,])dnl
3921 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
0b9d02c6
JL
3922 # Gas version 2.6 and later support for .balign and .p2align.
3923 # bytes to skip when using .p2align.
75bffa71 3924 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
0b9d02c6
JL
3925 gcc_cv_as_alignment_features=".balign and .p2align"
3926 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3927 fi
3928 # Gas version 2.8 and later support specifying the maximum
3929 # bytes to skip when using .p2align.
75bffa71 3930 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
0b9d02c6
JL
3931 gcc_cv_as_alignment_features=".p2align including maximum skip"
3932 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3933 fi
9e423e6d 3934 fi
75bffa71 3935elif test x$host = x$target; then
9e423e6d
JW
3936 # Native build.
3937 gcc_cv_as=as$host_exeext
3938fi
75bffa71 3939if test x$gcc_cv_as != x; then
00ccc16d
JL
3940 # Check if we have .balign and .p2align
3941 echo ".balign 4" > conftest.s
3942 echo ".p2align 2" >> conftest.s
3943 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3944 gcc_cv_as_alignment_features=".balign and .p2align"
3945 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3946 fi
3947 rm -f conftest.s conftest.o
9e423e6d
JW
3948 # Check if specifying the maximum bytes to skip when
3949 # using .p2align is supported.
3950 echo ".p2align 4,,7" > conftest.s
3951 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3952 gcc_cv_as_alignment_features=".p2align including maximum skip"
3953 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3954 fi
3955 rm -f conftest.s conftest.o
3956fi
3957AC_MSG_RESULT($gcc_cv_as_alignment_features)
3958
d1accaa3
JJ
3959AC_MSG_CHECKING(assembler subsection support)
3960gcc_cv_as_subsections=
3961if test x$gcc_cv_as != x; then
3962 # Check if we have .subsection
3963 echo ".subsection 1" > conftest.s
3964 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3965 gcc_cv_as_subsections=".subsection"
3966 if test -x nm$host_exeext; then
3967 gcc_cv_nm=./nm$host_exeext
3968 elif test x$host = x$target; then
3969 # Native build.
3970 gcc_cv_nm=nm$host_exeext
3971 fi
3972 if test x$gcc_cv_nm != x; then
3973 cat > conftest.s <<EOF
3974conftest_label1: .word 0
3975.subsection -1
3976conftest_label2: .word 0
3977.previous
3978EOF
3979 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3980 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3981 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
1b015bec
AO
3982 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3983 :
3984 else
d1accaa3
JJ
3985 gcc_cv_as_subsections="working .subsection -1"
3986 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3987 fi
3988 fi
3989 fi
3990 fi
3991 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3992fi
3993AC_MSG_RESULT($gcc_cv_as_subsections)
3994
571a8de5 3995# Figure out what language subdirectories are present.
71205e0b
MH
3996# Look if the user specified --enable-languages="..."; if not, use
3997# the environment variable $LANGUAGES if defined. $LANGUAGES might
3998# go away some day.
3999if test x"${enable_languages+set}" != xset; then
4000 if test x"${LANGUAGES+set}" = xset; then
4001 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4002 else
4003 enable_languages=all
4004 fi
4005fi
571a8de5
DE
4006subdirs=
4007for lang in ${srcdir}/*/config-lang.in ..
4008do
4009 case $lang in
4010 ..) ;;
4011 # The odd quoting in the next line works around
4012 # an apparent bug in bash 1.12 on linux.
75bffa71
ILT
4013changequote(,)dnl
4014 ${srcdir}/[*]/config-lang.in) ;;
71205e0b
MH
4015 *)
4016 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4017 if test "x$lang_alias" = x
4018 then
4019 echo "$lang doesn't set \$language." 1>&2
4020 exit 1
4021 fi
4022 if test x"${enable_languages}" = xall; then
4023 add_this_lang=yes
4024 else
4025 case "${enable_languages}" in
4026 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4027 add_this_lang=yes
4028 ;;
4029 * )
4030 add_this_lang=no
4031 ;;
4032 esac
4033 fi
4034 if test x"${add_this_lang}" = xyes; then
4035 case $lang in
4036 ${srcdir}/ada/config-lang.in)
4037 if test x$gnat = xyes ; then
4038 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4039 fi
4040 ;;
4041 *)
4042 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4043 ;;
4044 esac
4045 fi
4046 ;;
75bffa71 4047changequote([,])dnl
571a8de5
DE
4048 esac
4049done
4050
f24af81b
TT
4051# Make gthr-default.h if we have a thread file.
4052gthread_flags=
75bffa71 4053if test $thread_file != single; then
f24af81b 4054 rm -f gthr-default.h
db0d1ed9 4055 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
f24af81b
TT
4056 gthread_flags=-DHAVE_GTHR_DEFAULT
4057fi
4058AC_SUBST(gthread_flags)
4059
571a8de5
DE
4060# Make empty files to contain the specs and options for each language.
4061# Then add #include lines to for a compiler that has specs and/or options.
4062
4063lang_specs_files=
4064lang_options_files=
3103b7db
ML
4065lang_tree_files=
4066rm -f specs.h options.h gencheck.h
4067touch specs.h options.h gencheck.h
571a8de5
DE
4068for subdir in . $subdirs
4069do
75bffa71 4070 if test -f $srcdir/$subdir/lang-specs.h; then
571a8de5
DE
4071 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4072 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4073 fi
75bffa71 4074 if test -f $srcdir/$subdir/lang-options.h; then
571a8de5
DE
4075 echo "#include \"$subdir/lang-options.h\"" >>options.h
4076 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4077 fi
3103b7db
ML
4078 if test -f $srcdir/$subdir/$subdir-tree.def; then
4079 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4080 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4081 fi
571a8de5
DE
4082done
4083
4084# These (without "all_") are set in each config-lang.in.
4085# `language' must be a single word so is spelled singularly.
4086all_languages=
4087all_boot_languages=
4088all_compilers=
4089all_stagestuff=
4090all_diff_excludes=
ab87f8c8 4091all_outputs='Makefile intl/Makefile po/Makefile.in'
571a8de5
DE
4092# List of language makefile fragments.
4093all_lang_makefiles=
4094all_headers=
4095all_lib2funcs=
4096
4097# Add the language fragments.
4098# Languages are added via two mechanisms. Some information must be
4099# recorded in makefile variables, these are defined in config-lang.in.
4100# We accumulate them and plug them into the main Makefile.
4101# The other mechanism is a set of hooks for each of the main targets
4102# like `clean', `install', etc.
4103
4104language_fragments="Make-lang"
4105language_hooks="Make-hooks"
0280cf84 4106oldstyle_subdirs=
571a8de5
DE
4107
4108for s in .. $subdirs
4109do
75bffa71 4110 if test $s != ".."
571a8de5
DE
4111 then
4112 language=
4113 boot_language=
4114 compilers=
4115 stagestuff=
4116 diff_excludes=
4117 headers=
0280cf84 4118 outputs=
571a8de5
DE
4119 lib2funcs=
4120 . ${srcdir}/$s/config-lang.in
75bffa71 4121 if test "x$language" = x
571a8de5
DE
4122 then
4123 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4124 exit 1
4125 fi
4126 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4127 all_languages="$all_languages $language"
75bffa71 4128 if test "x$boot_language" = xyes
571a8de5
DE
4129 then
4130 all_boot_languages="$all_boot_languages $language"
4131 fi
4132 all_compilers="$all_compilers $compilers"
4133 all_stagestuff="$all_stagestuff $stagestuff"
4134 all_diff_excludes="$all_diff_excludes $diff_excludes"
4135 all_headers="$all_headers $headers"
0280cf84 4136 all_outputs="$all_outputs $outputs"
75bffa71 4137 if test x$outputs = x
0280cf84
PB
4138 then
4139 oldstyle_subdirs="$oldstyle_subdirs $s"
4140 fi
571a8de5
DE
4141 all_lib2funcs="$all_lib2funcs $lib2funcs"
4142 fi
4143done
4144
4145# Since we can't use `::' targets, we link each language in
4146# with a set of hooks, reached indirectly via lang.${target}.
4147
4148rm -f Make-hooks
4149touch Make-hooks
4150target_list="all.build all.cross start.encap rest.encap \
4151 info dvi \
4152 install-normal install-common install-info install-man \
4153 uninstall distdir \
4154 mostlyclean clean distclean extraclean maintainer-clean \
4155 stage1 stage2 stage3 stage4"
4156for t in $target_list
4157do
4158 x=
ab87f8c8 4159 for lang in .. $all_languages
571a8de5 4160 do
ab87f8c8
JL
4161 if test $lang != ".."; then
4162 x="$x $lang.$t"
571a8de5
DE
4163 fi
4164 done
4165 echo "lang.$t: $x" >> Make-hooks
4166done
4167
296e46bd
DE
4168# If we're not building in srcdir, create .gdbinit.
4169
75bffa71 4170if test ! -f Makefile.in; then
296e46bd
DE
4171 echo "dir ." > .gdbinit
4172 echo "dir ${srcdir}" >> .gdbinit
75bffa71 4173 if test x$gdb_needs_out_file_path = xyes
296e46bd
DE
4174 then
4175 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4176 fi
75bffa71 4177 if test "x$subdirs" != x; then
296e46bd
DE
4178 for s in $subdirs
4179 do
4180 echo "dir ${srcdir}/$s" >> .gdbinit
4181 done
4182 fi
4183 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4184fi
4185
88111b26
JL
4186# Define variables host_canonical and build_canonical
4187# because some Cygnus local changes in the Makefile depend on them.
4188build_canonical=${build}
4189host_canonical=${host}
4190target_subdir=
75bffa71 4191if test "${host}" != "${target}" ; then
88111b26
JL
4192 target_subdir=${target}/
4193fi
4194AC_SUBST(build_canonical)
4195AC_SUBST(host_canonical)
4196AC_SUBST(target_subdir)
4197
dec88383
DE
4198# If this is using newlib, then define inhibit_libc in
4199# LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4200# libgcc.a, but that's OK because newib should have its own version of
4201# assert.h.
4202inhibit_libc=
75bffa71 4203if test x$with_newlib = xyes; then
dec88383
DE
4204 inhibit_libc=-Dinhibit_libc
4205fi
4206AC_SUBST(inhibit_libc)
4207
8c660648
JL
4208# Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4209sched_prefix=
4210sched_cflags=
75bffa71 4211if test x$enable_haifa = xyes; then
8c660648
JL
4212 echo "Using the Haifa scheduler."
4213 sched_prefix=haifa-
4214 sched_cflags=-DHAIFA
4215fi
4216AC_SUBST(sched_prefix)
4217AC_SUBST(sched_cflags)
75bffa71 4218if test x$enable_haifa != x; then
8c660648 4219 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
81814e35 4220 for x in genattrtab.o toplev.o *sched.o; do
75bffa71 4221 if test -f $x; then
8c660648
JL
4222 echo "Removing $x"
4223 rm -f $x
4224 fi
4225 done
4226fi
4227
d062c304 4228# if $(exec_prefix) is not the same as $(prefix), then do not use a relative
5949a9fc
JL
4229# directory to get to $gcc_tooldir. Also handle the case where the user did
4230# not specify a value for exec_prefix.
82cbf8f7
JL
4231# Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4232# make and thus we'd get different behavior depending on where we built the
4233# sources.
5949a9fc 4234if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
d062c304
JL
4235 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4236else
82cbf8f7 4237 gcc_tooldir='$(exec_prefix)'/${target_alias}
d062c304
JL
4238fi
4239AC_SUBST(gcc_tooldir)
4240
2ce3c6c6
JM
4241# Warn if using init_priority.
4242AC_MSG_CHECKING(whether to enable init_priority by default)
75bffa71 4243if test x$enable_init_priority != xyes; then
2ce3c6c6
JM
4244 enable_init_priority=no
4245fi
4246AC_MSG_RESULT($enable_init_priority)
4247
7e717196
JL
4248# Nothing to do for FLOAT_H, float_format already handled.
4249objdir=`pwd`
4250AC_SUBST(objdir)
4251
94f42018
DE
4252# Process the language and host/target makefile fragments.
4253${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
47866ac0 4254
46f18e7b
RK
4255# Substitute configuration variables
4256AC_SUBST(subdirs)
4257AC_SUBST(all_languages)
4258AC_SUBST(all_boot_languages)
4259AC_SUBST(all_compilers)
4260AC_SUBST(all_lang_makefiles)
4261AC_SUBST(all_stagestuff)
4262AC_SUBST(all_diff_excludes)
4263AC_SUBST(all_lib2funcs)
4264AC_SUBST(all_headers)
e061d1ce 4265AC_SUBST(cpp_main)
46f18e7b
RK
4266AC_SUBST(extra_passes)
4267AC_SUBST(extra_programs)
4268AC_SUBST(extra_parts)
b4294351 4269AC_SUBST(extra_c_objs)
c8724862 4270AC_SUBST(extra_cxx_objs)
56f48ce9 4271AC_SUBST(extra_cpp_objs)
b4294351 4272AC_SUBST(extra_c_flags)
46f18e7b
RK
4273AC_SUBST(extra_objs)
4274AC_SUBST(host_extra_gcc_objs)
4275AC_SUBST(extra_headers_list)
4276AC_SUBST(dep_host_xmake_file)
4277AC_SUBST(dep_tmake_file)
4278AC_SUBST(out_file)
4279AC_SUBST(out_object_file)
4280AC_SUBST(md_file)
4281AC_SUBST(tm_file_list)
4282AC_SUBST(build_xm_file_list)
4283AC_SUBST(host_xm_file_list)
4284AC_SUBST(lang_specs_files)
4285AC_SUBST(lang_options_files)
3103b7db 4286AC_SUBST(lang_tree_files)
0bbb1697 4287AC_SUBST(thread_file)
d8bb17c8 4288AC_SUBST(objc_boehm_gc)
df37e3db 4289AC_SUBST(JAVAGC)
f1943b77
MH
4290AC_SUBST(gcc_version)
4291AC_SUBST(gcc_version_trigger)
46f18e7b 4292AC_SUBST(local_prefix)
9514f0d1 4293AC_SUBST(gxx_include_dir)
46f18e7b
RK
4294AC_SUBST(fixincludes)
4295AC_SUBST(build_install_headers_dir)
a204adc6 4296AC_SUBST(build_exeext)
6e26218f 4297AC_SUBST(host_exeext)
027ea2a7 4298AC_SUBST(float_h_file)
46f18e7b
RK
4299AC_SUBST(will_use_collect2)
4300AC_SUBST(maybe_use_collect2)
4301AC_SUBST(cc_set_by_configure)
4302AC_SUBST(stage_prefix_set_by_configure)
9b16d2c4 4303AC_SUBST(install)
e9a25f70 4304AC_SUBST(symbolic_link)
9fc9b82a
L
4305AC_SUBST(cpp_install_dir)
4306
46f18e7b
RK
4307
4308AC_SUBST_FILE(target_overrides)
4309AC_SUBST_FILE(host_overrides)
4310AC_SUBST(cross_defines)
4311AC_SUBST_FILE(cross_overrides)
4312AC_SUBST_FILE(build_overrides)
4313AC_SUBST_FILE(language_fragments)
4314AC_SUBST_FILE(language_hooks)
4315
4316# Echo that links are built
75bffa71 4317if test x$host = x$target
46f18e7b
RK
4318then
4319 str1="native "
4320else
4321 str1="cross-"
4322 str2=" from $host"
4323fi
4324
75bffa71 4325if test x$host != x$build
46f18e7b
RK
4326then
4327 str3=" on a $build system"
4328fi
4329
75bffa71 4330if test "x$str2" != x || test "x$str3" != x
46f18e7b
RK
4331then
4332 str4=
4333fi
4334
4335echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4336
75bffa71 4337if test "x$str2" != x || test "x$str3" != x
46f18e7b
RK
4338then
4339 echo " ${str2}${str3}." 1>&2
4340fi
4341
61536478 4342# Truncate the target if necessary
75bffa71 4343if test x$host_truncate_target != x; then
61536478
JL
4344 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4345fi
4346
46f18e7b
RK
4347# Configure the subdirectories
4348# AC_CONFIG_SUBDIRS($subdirs)
4349
4350# Create the Makefile
5891b37d 4351# and configure language subdirectories
0280cf84 4352AC_OUTPUT($all_outputs,
cdcc6a01
DE
4353[
4354. $srcdir/configure.lang
4355case x$CONFIG_HEADERS in
b7cb92ad 4356xauto-host.h:config.in)
818b66cc 4357echo > cstamp-h ;;
cdcc6a01 4358esac
93cf819d
BK
4359# If the host supports symlinks, point stage[1234] at ../stage[1234] so
4360# bootstrapping and the installation procedure can still use
4361# CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4362# FLAGS_TO_PASS has been modified to solve the problem there.
4363# This is virtually a duplicate of what happens in configure.lang; we do
4364# an extra check to make sure this only happens if ln -s can be used.
75bffa71 4365if test "$symbolic_link" = "ln -s"; then
93cf819d 4366 for d in .. ${subdirs} ; do
75bffa71 4367 if test $d != ..; then
4e8a434e
BK
4368 STARTDIR=`pwd`
4369 cd $d
4370 for t in stage1 stage2 stage3 stage4 include
4371 do
4372 rm -f $t
4373 $symbolic_link ../$t $t 2>/dev/null
4374 done
4375 cd $STARTDIR
93cf819d
BK
4376 fi
4377 done
4378else true ; fi
ab87f8c8
JL
4379# Avoid having to add intl to our include paths.
4380if test -f intl/libintl.h; then
4381 echo creating libintl.h
4382 echo '#include "intl/libintl.h"' >libintl.h
4383fi
cdcc6a01
DE
4384],
4385[
5891b37d
RK
4386host='${host}'
4387build='${build}'
4388target='${target}'
52060267 4389target_alias='${target_alias}'
5891b37d
RK
4390srcdir='${srcdir}'
4391subdirs='${subdirs}'
296e46bd 4392oldstyle_subdirs='${oldstyle_subdirs}'
5891b37d
RK
4393symbolic_link='${symbolic_link}'
4394program_transform_set='${program_transform_set}'
4395program_transform_name='${program_transform_name}'
5891b37d
RK
4396dep_host_xmake_file='${dep_host_xmake_file}'
4397host_xmake_file='${host_xmake_file}'
4398dep_tmake_file='${dep_tmake_file}'
4399tmake_file='${tmake_file}'
0bbb1697 4400thread_file='${thread_file}'
f1943b77
MH
4401gcc_version='${gcc_version}'
4402gcc_version_trigger='${gcc_version_trigger}'
5891b37d 4403local_prefix='${local_prefix}'
5891b37d 4404build_install_headers_dir='${build_install_headers_dir}'
a204adc6 4405build_exeext='${build_exeext}'
6e26218f 4406host_exeext='${host_exeext}'
7ed46111 4407out_file='${out_file}'
5891b37d
RK
4408gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4409SET_MAKE='${SET_MAKE}'
5891b37d 4410target_list='${target_list}'
5891b37d
RK
4411target_overrides='${target_overrides}'
4412host_overrides='${host_overrides}'
4413cross_defines='${cross_defines}'
4414cross_overrides='${cross_overrides}'
4415build_overrides='${build_overrides}'
9fc9b82a 4416cpp_install_dir='${cpp_install_dir}'
cdcc6a01 4417])
This page took 0.918441 seconds and 5 git commands to generate.