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