]> gcc.gnu.org Git - gcc.git/blame - gcc/configure.in
recog.c (split_all_insns): Run cleanup_subreg_operands after reload.
[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
3ed06573 4# Copyright (C) 1997, 1998, 1999, 2000 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
890ad3ea 24AC_PREREQ(2.13)
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
079bd08e 56*** building gcc. Please change the environment variable
75a39864
JL
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
079bd08e 82*** building gcc. Please change the environment variable
75a39864
JL
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
119d24d1
KG
104 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER",
105 [Define to enable the use of a default linker.])
ab339d62
AO
106fi
107
46f18e7b
RK
108# With GNU as
109AC_ARG_WITH(gnu-as,
4d8392b7 110[ --with-gnu-as arrange to work with GNU as.],
df6faf79
JW
111gas_flag="$with_gnu_as",
112gas_flag=no)
46f18e7b 113
ab339d62
AO
114AC_ARG_WITH(as,
115[ --with-as arrange to use the specified as (full pathname).],
3ccc3a56
AO
116DEFAULT_ASSEMBLER="$with_as")
117if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
118 if test ! -x "$DEFAULT_ASSEMBLER"; then
119 AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
e154a394 120 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
ab339d62
AO
121 gas_flag=yes
122 fi
119d24d1
KG
123 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER",
124 [Define to enable the use of a default assembler.])
3ccc3a56 125fi
ab339d62 126
46f18e7b
RK
127# With stabs
128AC_ARG_WITH(stabs,
129[ --with-stabs arrange to use stabs instead of host debug format.],
535b86ce 130stabs="$with_stabs",
46f18e7b
RK
131stabs=no)
132
133# With ELF
134AC_ARG_WITH(elf,
135[ --with-elf arrange to use ELF instead of host debug format.],
535b86ce 136elf="$with_elf",
46f18e7b
RK
137elf=no)
138
4d8392b7 139# Specify the local prefix
4e88d51b 140local_prefix=
4d8392b7
RK
141AC_ARG_WITH(local-prefix,
142[ --with-local-prefix=DIR specifies directory to put local include.],
4e88d51b
JM
143[case "${withval}" in
144yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
145no) ;;
146*) local_prefix=$with_local_prefix ;;
147esac])
4d8392b7
RK
148
149# Default local prefix if it is empty
75bffa71 150if test x$local_prefix = x; then
4d8392b7
RK
151 local_prefix=/usr/local
152fi
153
8f8d3278
NC
154# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
155# passed in by the toplevel make and thus we'd get different behavior
156# depending on where we built the sources.
157gcc_gxx_include_dir=
9514f0d1
RK
158# Specify the g++ header file directory
159AC_ARG_WITH(gxx-include-dir,
160[ --with-gxx-include-dir=DIR
161 specifies directory to put g++ header files.],
4e88d51b
JM
162[case "${withval}" in
163yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
164no) ;;
8f8d3278 165*) gcc_gxx_include_dir=$with_gxx_include_dir ;;
4e88d51b
JM
166esac])
167
8f8d3278 168if test x${gcc_gxx_include_dir} = x; then
4e88d51b 169 if test x${enable_version_specific_runtime_libs} = xyes; then
8f8d3278 170 gcc_gxx_include_dir='${libsubdir}/include/g++'
4e88d51b 171 else
a270b446 172 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
de82584d 173changequote(<<, >>)dnl
8f8d3278 174 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
de82584d 175changequote([, ])dnl
4e88d51b
JM
176 fi
177fi
46f18e7b 178
a494747c
MM
179# Enable expensive internal checks
180AC_ARG_ENABLE(checking,
f4524c9e
ZW
181[ --enable-checking[=LIST]
182 enable expensive run-time checks. With LIST,
183 enable only specific categories of checks.
184 Categories are: misc,tree,rtl,gc,gcac; default
59f406b7 185 is misc,tree,gc],
119d24d1
KG
186[ac_checking=
187ac_tree_checking=
188ac_rtl_checking=
189ac_gc_checking=
190ac_gc_always_collect=
191case "${enableval}" in
51d0e20c 192yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
4e88d51b 193no) ;;
59f406b7 194*) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
f4524c9e
ZW
195 set fnord $enableval; shift
196 IFS="$ac_save_IFS"
c62e45ad
KG
197 for check
198 do
f4524c9e 199 case $check in
119d24d1
KG
200 misc) ac_checking=1 ;;
201 tree) ac_tree_checking=1 ;;
202 rtl) ac_rtl_checking=1 ;;
203 gc) ac_gc_checking=1 ;;
204 gcac) ac_gc_always_collect=1 ;;
f4524c9e
ZW
205 *) AC_MSG_ERROR(unknown check category $check) ;;
206 esac
207 done
208 ;;
119d24d1 209esac
51d0e20c
AJ
210],
211# Enable some checks by default for development versions of GCC
212[ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;])
119d24d1
KG
213if test x$ac_checking != x ; then
214 AC_DEFINE(ENABLE_CHECKING, 1,
215[Define if you want more run-time sanity checks. This one gets a grab
216 bag of miscellaneous but relatively cheap checks.])
217fi
218if test x$ac_tree_checking != x ; then
219 AC_DEFINE(ENABLE_TREE_CHECKING, 1,
220[Define if you want all operations on trees (the basic data
221 structure of the front ends) to be checked for dynamic type safety
222 at runtime. This is moderately expensive.])
223fi
224if test x$ac_rtl_checking != x ; then
225 AC_DEFINE(ENABLE_RTL_CHECKING, 1,
226[Define if you want all operations on RTL (the basic data structure
227 of the optimizer and back end) to be checked for dynamic type safety
228 at runtime. This is quite expensive.])
229fi
230if test x$ac_gc_checking != x ; then
231 AC_DEFINE(ENABLE_GC_CHECKING, 1,
232[Define if you want the garbage collector to do object poisoning and
233 other memory allocation checks. This is quite expensive.])
234fi
235if test x$ac_gc_always_collect != x ; then
236 AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT, 1,
237[Define if you want the garbage collector to operate in maximally
238 paranoid mode, validating the entire heap and collecting garbage at
239 every opportunity. This is extremely expensive.])
240fi
51d0e20c 241
a494747c 242
3ecc3258
ZW
243AC_ARG_ENABLE(cpp,
244[ --disable-cpp don't provide a user-visible C preprocessor.],
245[], [enable_cpp=yes])
246
247AC_ARG_WITH(cpp_install_dir,
248[ --with-cpp-install-dir=DIR
249 install the user visible C preprocessor in DIR
250 (relative to PREFIX) as well as PREFIX/bin.],
251[if test x$withval = xyes; then
252 AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
253elif test x$withval != xno; then
254 cpp_install_dir=$withval
255fi])
256
9ec7291f 257# Link cpplib into the compiler proper, for C/C++/ObjC.
b8dad04b 258maybe_cpplib=
9ec7291f
ZW
259AC_ARG_ENABLE(c-cpplib,
260[ --enable-c-cpplib link cpplib directly into C and C++ compilers
261 (HIGHLY EXPERIMENTAL).],
262if test x$enable_c_cpplib != xno; then
b8dad04b 263 maybe_cpplib=libcpp.a
9ec7291f 264 AC_DEFINE(USE_CPPLIB, 1,
b8dad04b 265 [Define if you want the preprocessor merged into the C and C++ compilers.])
9ec7291f 266fi)
b8dad04b 267AC_SUBST(maybe_cpplib)
f81a440f 268
c5c76735
JL
269# Enable Multibyte Characters for C/C++
270AC_ARG_ENABLE(c-mbchar,
271[ --enable-c-mbchar Enable multibyte characters for C and C++.],
2618c083 272if test x$enable_c_mbchar != xno; then
9ec7291f
ZW
273 AC_DEFINE(MULTIBYTE_CHARS, 1,
274 [Define if you want the C and C++ compilers to support multibyte
275 character sets for source code.])
c5c76735
JL
276fi)
277
0bbb1697
RK
278# Enable threads
279# Pass with no value to take the default
280# Pass with a value to specify a thread package
281AC_ARG_ENABLE(threads,
282[ --enable-threads enable thread usage for target GCC.
981d4858 283 --enable-threads=LIB use LIB thread package for target GCC.],,
0bbb1697
RK
284enable_threads='')
285
e445171e 286enable_threads_flag=$enable_threads
0bbb1697 287# Check if a valid thread package
e445171e 288case x${enable_threads_flag} in
0bbb1697
RK
289 x | xno)
290 # No threads
a851212a 291 target_thread_file='single'
0bbb1697
RK
292 ;;
293 xyes)
294 # default
a851212a 295 target_thread_file=''
0bbb1697
RK
296 ;;
297 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
a473fe45 298 xsolaris | xwin32 | xdce | xvxworks | xaix)
e445171e 299 target_thread_file=$enable_threads_flag
0bbb1697
RK
300 ;;
301 *)
302 echo "$enable_threads is an unknown thread package" 1>&2
303 exit 1
304 ;;
305esac
306
d8bb17c8
OP
307AC_ARG_ENABLE(objc-gc,
308[ --enable-objc-gc enable the use of Boehm's garbage collector with
309 the GNU Objective-C runtime.],
2618c083 310if test x$enable_objc_gc = xno; then
d8bb17c8
OP
311 objc_boehm_gc=''
312else
313 objc_boehm_gc=1
314fi,
315objc_boehm_gc='')
316
90e6a802 317AC_ARG_WITH(dwarf2,
756ee602 318[ --with-dwarf2 force the default debug format to be DWARF2.],
90e6a802
RL
319dwarf2="$with_dwarf2",
320dwarf2=no)
321
50503ac8
RH
322AC_ARG_ENABLE(shared,
323[ --disable-shared don't provide a shared libgcc.],
324[], [enable_shared=yes])
325AC_SUBST(enable_shared)
326
46f18e7b
RK
327# Determine the host, build, and target systems
328AC_CANONICAL_SYSTEM
329
e9a25f70
JL
330# Find the native compiler
331AC_PROG_CC
3ec83fc2 332AC_PROG_CC_C_O
b8dad04b 333# autoconf is lame and doesn't give us any substitution variable for this.
e38df833 334if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
b4c7e567 335 NO_MINUS_C_MINUS_O=yes
b8dad04b
ZW
336else
337 OUTPUT_OPTION='-o $@'
b4c7e567 338fi
3ec83fc2 339AC_SUBST(NO_MINUS_C_MINUS_O)
b8dad04b 340AC_SUBST(OUTPUT_OPTION)
3ec83fc2 341
99e757d5 342gcc_AC_C_LONG_DOUBLE
61842080 343
97d81d66
JM
344AC_CACHE_CHECK(whether ${CC-cc} accepts -Wno-long-long,
345ac_cv_prog_cc_no_long_long,
346[save_CFLAGS="$CFLAGS"
347CFLAGS="-Wno-long-long"
348AC_TRY_COMPILE(,,ac_cv_prog_cc_no_long_long=yes,
349 ac_cv_prog_cc_no_long_long=no)
350CFLAGS="$save_CFLAGS"])
b8dad04b
ZW
351strict1_warn=
352if test $ac_cv_prog_cc_no_long_long = yes; then
353 strict1_warn="-pedantic -Wno-long-long"
354fi
355AC_SUBST(strict1_warn)
ff5def20 356
61842080
MM
357# If the native compiler is GCC, we can enable warnings even in stage1.
358# That's useful for people building cross-compilers, or just running a
359# quick `make'.
b8dad04b
ZW
360warn_cflags=
361if test "x$GCC" = "xyes"; then
362 warn_cflags='$(GCC_WARN_CFLAGS)'
61842080 363fi
b8dad04b 364AC_SUBST(warn_cflags)
5b67ad6f
DA
365
366# Stage specific cflags for build.
b8dad04b 367stage1_cflags=
5b67ad6f
DA
368case $build in
369vax-*-*)
370 if test x$GCC = xyes
371 then
b8dad04b 372 stage1_cflags="-Wa,-J"
5b67ad6f 373 else
b8dad04b 374 stage1_cflags="-J"
5b67ad6f
DA
375 fi
376 ;;
377esac
b8dad04b 378AC_SUBST(stage1_cflags)
61842080 379
e9a25f70
JL
380AC_PROG_MAKE_SET
381
ab339d62 382AC_MSG_CHECKING([whether a default assembler was specified])
3ccc3a56 383if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
e154a394 384 if test x"$gas_flag" = x"no"; then
3ccc3a56 385 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
ab339d62 386 else
3ccc3a56 387 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
ab339d62
AO
388 fi
389else
390 AC_MSG_RESULT(no)
391fi
392
393AC_MSG_CHECKING([whether a default linker was specified])
3ccc3a56 394if test x"${DEFAULT_LINKER+set}" = x"set"; then
e154a394 395 if test x"$gnu_ld_flag" = x"no"; then
3ccc3a56 396 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
ab339d62 397 else
3ccc3a56 398 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
ab339d62
AO
399 fi
400else
401 AC_MSG_RESULT(no)
402fi
403
4070d885
AJ
404AC_MSG_CHECKING(for GNU C library)
405AC_CACHE_VAL(gcc_cv_glibc,
406[AC_TRY_COMPILE(
407 [#include <features.h>],[
408#if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
409#error Not a GNU C library system
410#endif],
411 [gcc_cv_glibc=yes],
412 gcc_cv_glibc=no)])
413AC_MSG_RESULT($gcc_cv_glibc)
c2f7d403 414if test $gcc_cv_glibc = yes; then
4070d885
AJ
415 AC_DEFINE(_GNU_SOURCE, 1, [Always define this when using the GNU C Library])
416fi
4797e955 417
603832a0
PT
418AC_C_INLINE
419
46f18e7b
RK
420# Find some useful tools
421AC_PROG_AWK
422AC_PROG_LEX
99e757d5
KG
423gcc_AC_PROG_LN
424gcc_AC_PROG_LN_S
425gcc_AC_C_VOLATILE
46f18e7b
RK
426AC_PROG_RANLIB
427AC_PROG_YACC
99e757d5 428gcc_AC_PROG_INSTALL
46f18e7b 429
956d6950
JL
430AC_HEADER_STDC
431AC_HEADER_TIME
99e757d5 432gcc_AC_HEADER_STRING
e9831ca0 433AC_HEADER_SYS_WAIT
03c41c05
ZW
434AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
435 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
436 sys/resource.h sys/param.h sys/times.h sys/stat.h \
16abe34a 437 direct.h malloc.h langinfo.h iconv.h)
7636d567 438
f24af81b
TT
439# Check for thread headers.
440AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
441AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
442
bcf12124
JL
443# See if GNAT has been installed
444AC_CHECK_PROG(gnat, gnatbind, yes, no)
445
09fa0705
ZW
446# Do we have a single-tree copy of texinfo?
447if test -f $srcdir/../texinfo/Makefile.in; then
448 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
449 gcc_cv_prog_makeinfo_modern=yes
450 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
451else
452 # See if makeinfo has been installed and is modern enough
453 # that we can use it.
454 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
455 [GNU texinfo.* \([0-9][0-9.]*\)],
456 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
457fi
458
459if test $gcc_cv_prog_makeinfo_modern = no; then
460 AC_MSG_WARN([
461*** Makeinfo is missing or too old.
462*** Info documentation will not be built or installed.])
463 BUILD_INFO=
464 INSTALL_INFO=
465else
466 BUILD_INFO=info AC_SUBST(BUILD_INFO)
467 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
468fi
469
890ad3ea
KG
470# See if the stage1 system preprocessor understands the ANSI C
471# preprocessor stringification operator.
472AC_C_STRINGIZE
76844337 473
7636d567
JW
474# Use <inttypes.h> only if it exists,
475# doesn't clash with <sys/types.h>, and declares intmax_t.
476AC_MSG_CHECKING(for inttypes.h)
477AC_CACHE_VAL(gcc_cv_header_inttypes_h,
478[AC_TRY_COMPILE(
479 [#include <sys/types.h>
480#include <inttypes.h>],
481 [intmax_t i = -1;],
9da0e39b 482 [gcc_cv_header_inttypes_h=yes],
7636d567
JW
483 gcc_cv_header_inttypes_h=no)])
484AC_MSG_RESULT($gcc_cv_header_inttypes_h)
9da0e39b 485if test $gcc_cv_header_inttypes_h = yes; then
119d24d1
KG
486 AC_DEFINE(HAVE_INTTYPES_H, 1,
487 [Define if you have a working <inttypes.h> header file.])
9da0e39b 488fi
cdcc6a01 489
c149cc37
RL
490#
491# Determine if enumerated bitfields are unsigned. ISO C says they can
492# be either signed or unsigned.
493#
494AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
495[AC_TRY_RUN(#include <stdlib.h>
496enum t { BLAH = 128 } ;
497struct s_t { enum t member : 8; } s ;
498int main(void)
499{
500 s.member = BLAH;
501 if (s.member < 0) exit(1);
502 exit(0);
503
504}, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
c149cc37
RL
505if test $gcc_cv_enum_bf_unsigned = yes; then
506 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
507 [Define if enumerated bitfields are treated as unsigned values.])
508fi
509
f95e46b9 510AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
8f81384f 511 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
54953b66 512 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
d21445e7 513 fputs_unlocked getrusage valloc iconv nl_langinfo)
a81fb89e 514
f12bc141 515AC_CHECK_TYPE(ssize_t, int)
56f48ce9 516
e256b8b6
DA
517# Try to determine the array type of the second argument of getgroups
518# for the target system (int or gid_t).
519AC_TYPE_GETGROUPS
520if test "${target}" = "${build}"; then
521 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
522else
523 case "${target}" in
524 # This condition may need some tweaking. It should include all
525 # targets where the array type of the second argument of getgroups
526 # is int and the type of gid_t is not equivalent to int.
527 *-*-sunos* | *-*-ultrix*)
528 TARGET_GETGROUPS_T=int
529 ;;
530 *)
531 TARGET_GETGROUPS_T=gid_t
532 ;;
533 esac
534fi
535AC_SUBST(TARGET_GETGROUPS_T)
536
99e757d5
KG
537gcc_AC_FUNC_VFPRINTF_DOPRNT
538gcc_AC_FUNC_PRINTF_PTR
b27d2bd5
MK
539
540case "${host}" in
541*-*-uwin*)
542 # Under some versions of uwin, vfork is notoriously buggy and the test
543 # can hang configure; on other versions, vfork exists just as a stub.
544 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
545 ac_cv_func_vfork_works=no
546 ;;
547esac
c375c43b 548AC_FUNC_VFORK
4acab94b 549AC_FUNC_MMAP_ANYWHERE
56f02b88 550AC_FUNC_MMAP_FILE
f1b54f9b 551
86cf1cbd
KG
552# We will need to find libiberty.h and ansidecl.h
553saved_CFLAGS="$CFLAGS"
554CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
f31e826b 555gcc_AC_CHECK_DECLS(bcopy bzero bcmp \
f95e46b9 556 index rindex getenv atol sbrk abort atof getcwd getwd \
86cf1cbd 557 strsignal putc_unlocked fputs_unlocked strstr environ \
f31e826b 558 malloc realloc calloc free basename getopt, , ,[
86cf1cbd
KG
559#include "gansidecl.h"
560#include "system.h"])
c5c76735 561
f31e826b 562gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
86cf1cbd
KG
563#include "gansidecl.h"
564#include "system.h"
d2cabf16
KG
565#ifdef HAVE_SYS_RESOURCE_H
566#include <sys/resource.h>
567#endif
568])
569
86cf1cbd
KG
570# Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
571CFLAGS="$saved_CFLAGS"
572
75923b2f 573# mkdir takes a single argument on some systems.
99e757d5 574gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
75923b2f 575
46f18e7b
RK
576# File extensions
577manext='.1'
578objext='.o'
46f18e7b
RK
579AC_SUBST(manext)
580AC_SUBST(objext)
46f18e7b
RK
581
582build_xm_file=
61536478 583build_xm_defines=
46f18e7b
RK
584build_install_headers_dir=install-headers-tar
585build_exeext=
586host_xm_file=
61536478 587host_xm_defines=
46f18e7b
RK
588host_xmake_file=
589host_truncate_target=
6e26218f 590host_exeext=
46f18e7b
RK
591
592# Decode the host machine, then the target machine.
593# For the host machine, we save the xm_file variable as host_xm_file;
594# then we decode the target machine and forget everything else
595# that came from the host machine.
596for machine in $build $host $target; do
597
598 out_file=
599 xmake_file=
600 tmake_file=
601 extra_headers=
602 extra_passes=
603 extra_parts=
604 extra_programs=
605 extra_objs=
606 extra_host_objs=
607 extra_gcc_objs=
61536478 608 xm_defines=
46f18e7b
RK
609 float_format=
610 # Set this to force installation and use of collect2.
611 use_collect2=
612 # Set this to override the default target model.
613 target_cpu_default=
46f18e7b
RK
614 # Set this to control how the header file directory is installed.
615 install_headers_dir=install-headers-tar
616 # Set this to a non-empty list of args to pass to cpp if the target
617 # wants its .md file passed through cpp.
618 md_cppflags=
619 # Set this if directory names should be truncated to 14 characters.
620 truncate_target=
621 # Set this if gdb needs a dir command with `dirname $out_file`
622 gdb_needs_out_file_path=
46f18e7b
RK
623 # Set this if the build machine requires executables to have a
624 # file name suffix.
625 exeext=
a851212a
JW
626 # Set this to control which thread package will be used.
627 thread_file=
df6faf79
JW
628 # Reinitialize these from the flag values every loop pass, since some
629 # configure entries modify them.
630 gas="$gas_flag"
631 gnu_ld="$gnu_ld_flag"
e445171e 632 enable_threads=$enable_threads_flag
46f18e7b 633
6baf1cc8
BS
634 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
635 # updated in each machine entry.
636 tm_p_file=
46f18e7b
RK
637 cpu_type=`echo $machine | sed 's/-.*$//'`
638 case $machine in
08fc0184
RK
639 alpha*-*-*)
640 cpu_type=alpha
641 ;;
cd2b33d0
NC
642 strongarm*-*-*)
643 cpu_type=arm
644 ;;
46f18e7b
RK
645 arm*-*-*)
646 cpu_type=arm
647 ;;
648 c*-convex-*)
649 cpu_type=convex
650 ;;
75bffa71
ILT
651changequote(,)dnl
652 i[34567]86-*-*)
653changequote([,])dnl
46f18e7b
RK
654 cpu_type=i386
655 ;;
656 hppa*-*-*)
657 cpu_type=pa
658 ;;
659 m68000-*-*)
660 cpu_type=m68k
661 ;;
662 mips*-*-*)
663 cpu_type=mips
664 ;;
1b992148
SC
665 pj*-*-*)
666 cpu_type=pj
667 ;;
46f18e7b
RK
668 powerpc*-*-*)
669 cpu_type=rs6000
670 ;;
671 pyramid-*-*)
672 cpu_type=pyr
673 ;;
674 sparc*-*-*)
675 cpu_type=sparc
676 ;;
677 esac
678
679 tm_file=${cpu_type}/${cpu_type}.h
680 xm_file=${cpu_type}/xm-${cpu_type}.h
6baf1cc8
BS
681 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
682 then
683 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
684 fi
7aae67a2
JM
685 # On a.out targets, we need to use collect2.
686 case $machine in
687 *-*-*aout*)
688 use_collect2=yes
689 ;;
690 esac
691
57119aa9 692 # Common parts for linux and openbsd systems
61536478 693 case $machine in
57119aa9 694 *-*-linux*)
c7391272 695 xm_defines="HAVE_ATEXIT POSIX BSTRING"
61536478 696 ;;
1b4a979b
ME
697 *-*-openbsd*)
698 tm_file=${cpu_type}/openbsd.h
1b4a979b
ME
699 tmake_file="t-libc-ok t-openbsd"
700 # avoid surprises, always provide an xm-openbsd file
701 xm_file=${cpu_type}/xm-openbsd.h
766518a0
ME
702 # don't depend on processor x-fragments as well
703 xmake_file=none
1b4a979b
ME
704 if test x$enable_threads = xyes; then
705 thread_file='posix'
706 tmake_file="${tmake_file} t-openbsd-thread"
707 fi
708 ;;
61536478
JL
709 esac
710
46f18e7b
RK
711 case $machine in
712 # Support site-specific machine types.
713 *local*)
714 cpu_type=`echo $machine | sed -e 's/-.*//'`
715 rest=`echo $machine | sed -e "s/$cpu_type-//"`
716 xm_file=${cpu_type}/xm-$rest.h
717 tm_file=${cpu_type}/$rest.h
75bffa71 718 if test -f $srcdir/config/${cpu_type}/x-$rest; \
46f18e7b
RK
719 then xmake_file=${cpu_type}/x-$rest; \
720 else true; \
721 fi
75bffa71 722 if test -f $srcdir/config/${cpu_type}/t-$rest; \
46f18e7b
RK
723 then tmake_file=${cpu_type}/t-$rest; \
724 else true; \
725 fi
726 ;;
727 1750a-*-*)
728 ;;
729 a29k-*-bsd* | a29k-*-sym1*)
730 tm_file="${tm_file} a29k/unix.h"
61536478 731 xm_defines=USG
46f18e7b
RK
732 xmake_file=a29k/x-unix
733 use_collect2=yes
734 ;;
735 a29k-*-udi | a29k-*-coff)
736 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
737 tmake_file=a29k/t-a29kbare
738 ;;
7cc34889 739 a29k-wrs-vxworks*)
46f18e7b
RK
740 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
741 tmake_file=a29k/t-vx29k
742 extra_parts="crtbegin.o crtend.o"
7cc34889 743 thread_file='vxworks'
46f18e7b
RK
744 ;;
745 a29k-*-*) # Default a29k environment.
746 use_collect2=yes
747 ;;
615c8231
DT
748 alpha-*-interix)
749 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
750
751 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
8354da48 752 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
615c8231 753
8354da48
JL
754 # GAS + IEEE_CONFORMANT
755 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
615c8231
DT
756
757 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
758 xmake_file="x-interix alpha/t-pe"
6da9c622 759 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
615c8231
DT
760 if test x$enable_threads = xyes ; then
761 thread_file='posix'
762 fi
763 if test x$stabs = xyes ; then
764 tm_file="${tm_file} dbxcoff.h"
765 fi
766 #prefix='$$INTERIX_ROOT'/usr/contrib
767 #local_prefix='$$INTERIX_ROOT'/usr/contrib
768 ;;
57119aa9 769 alpha*-*-linux*ecoff*)
8983c716 770 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
61536478 771 target_cpu_default="MASK_GAS"
6da9c622 772 tmake_file="alpha/t-alpha alpha/t-ieee"
e71c3bb0 773 gas=no
46f18e7b 774 xmake_file=none
46f18e7b
RK
775 gas=yes gnu_ld=yes
776 ;;
57119aa9 777 alpha*-*-linux*libc1*)
9d654bba 778 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
61536478 779 target_cpu_default="MASK_GAS"
cf889600 780 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
ee8d66f7 781 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
704a6306 782 xmake_file=none
704a6306 783 gas=yes gnu_ld=yes
75bffa71 784 if test x$enable_threads = xyes; then
704a6306
RH
785 thread_file='posix'
786 fi
787 ;;
57119aa9 788 alpha*-*-linux*)
9d654bba 789 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
61536478 790 target_cpu_default="MASK_GAS"
cf889600 791 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
ee8d66f7 792 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
46f18e7b 793 xmake_file=none
46f18e7b 794 gas=yes gnu_ld=yes
75bffa71 795 if test x$enable_threads = xyes; then
c811d261
RK
796 thread_file='posix'
797 fi
46f18e7b 798 ;;
9d654bba 799 alpha*-*-netbsd*)
66953094 800 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
9d654bba 801 target_cpu_default="MASK_GAS"
6da9c622 802 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
ee8d66f7 803 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
9d654bba 804 xmake_file=none
9d654bba
RH
805 gas=yes gnu_ld=yes
806 ;;
1b4a979b
ME
807
808 alpha*-*-openbsd*)
809 # default x-alpha is only appropriate for dec-osf.
810 target_cpu_default="MASK_GAS"
6da9c622 811 tmake_file="alpha/t-alpha alpha/t-ieee"
1b4a979b 812 ;;
9d654bba 813
e9a25f70 814 alpha*-dec-osf*)
75bffa71 815 if test x$stabs = xyes
dec3e070
JW
816 then
817 tm_file="${tm_file} dbx.h"
818 fi
75bffa71 819 if test x$gas != xyes
dec3e070
JW
820 then
821 extra_passes="mips-tfile mips-tdump"
822 fi
dec3e070 823 use_collect2=yes
50503ac8
RH
824 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
825 xmake_file=alpha/x-osf
dec3e070 826 case $machine in
6ecd4e53 827 *-*-osf1*)
b0435cf4 828 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
e9a25f70 829 ;;
75bffa71
ILT
830changequote(,)dnl
831 *-*-osf[23]*)
832changequote([,])dnl
b0435cf4 833 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
e9a25f70
JL
834 ;;
835 *-*-osf4*)
b0435cf4 836 tm_file="${tm_file} alpha/osf.h"
50503ac8 837 tmake_file="$tmake_file alpha/t-osf4"
e9a25f70
JL
838 # Some versions of OSF4 (specifically X4.0-9 296.7) have
839 # a broken tar, so we use cpio instead.
dec3e070
JW
840 install_headers_dir=install-headers-cpio
841 ;;
7bc69973 842 *-*-osf5*)
5495cc55 843 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
50503ac8 844 tmake_file="$tmake_file alpha/t-osf4"
7bc69973 845 ;;
dec3e070 846 esac
e9a25f70 847 case $machine in
75bffa71 848changequote(,)dnl
cd038ac2 849 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
75bffa71 850changequote([,])dnl
e9a25f70
JL
851 target_cpu_default=MASK_SUPPORT_ARCH
852 ;;
853 esac
46f18e7b 854 ;;
9ec36da5
JL
855 alpha*-*-vxworks*)
856 tm_file="${tm_file} dbx.h alpha/vxworks.h"
6da9c622 857 tmake_file="alpha/t-alpha alpha/t-ieee"
9ec36da5
JL
858 if [ x$gas != xyes ]
859 then
860 extra_passes="mips-tfile mips-tdump"
861 fi
862 use_collect2=yes
28897609 863 thread_file='vxworks'
9ec36da5 864 ;;
b0435cf4 865 alpha*-*-winnt*)
615c8231 866 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
46f18e7b 867 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
6da9c622 868 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
46f18e7b
RK
869 xmake_file=winnt/x-winnt
870 extra_host_objs=oldnames.o
871 extra_gcc_objs="spawnv.o oldnames.o"
75bffa71 872 if test x$gnu_ld != xyes
46f18e7b
RK
873 then
874 extra_programs=ld.exe
875 fi
75bffa71 876 if test x$enable_threads = xyes; then
0bbb1697
RK
877 thread_file='win32'
878 fi
46f18e7b 879 ;;
08fc0184 880 alpha*-dec-vms*)
46f18e7b
RK
881 tm_file=alpha/vms.h
882 xm_file="${xm_file} alpha/xm-vms.h"
6da9c622 883 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
46f18e7b 884 ;;
66ed0683
JL
885 arc-*-elf*)
886 extra_parts="crtinit.o crtfini.o"
887 ;;
46f18e7b
RK
888 arm-*-coff* | armel-*-coff*)
889 tm_file=arm/coff.h
d5b7b3ae 890 tmake_file=arm/t-arm-coff
46f18e7b 891 ;;
2aa0c933 892 arm-*-vxworks*)
e14db015 893 tm_file=arm/vxarm.h
d5b7b3ae 894 tmake_file=arm/t-arm-coff
28897609 895 thread_file='vxworks'
2aa0c933 896 ;;
75bffa71
ILT
897changequote(,)dnl
898 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
899changequote([,])dnl
46f18e7b
RK
900 tm_file=arm/riscix1-1.h
901 use_collect2=yes
902 ;;
903 arm-*-riscix*) # Acorn RISC machine
75bffa71 904 if test x$gas = xyes
46f18e7b
RK
905 then
906 tm_file=arm/rix-gas.h
907 else
908 tm_file=arm/riscix.h
909 fi
910 xmake_file=arm/x-riscix
911 tmake_file=arm/t-riscix
912 use_collect2=yes
913 ;;
914 arm-semi-aout | armel-semi-aout)
915 tm_file=arm/semi.h
916 tmake_file=arm/t-semi
46f18e7b
RK
917 ;;
918 arm-semi-aof | armel-semi-aof)
919 tm_file=arm/semiaof.h
920 tmake_file=arm/t-semiaof
46f18e7b 921 ;;
58600d24 922 arm*-*-netbsd*)
d23f4158 923 tm_file=arm/netbsd.h
e9a25f70 924 tmake_file="t-netbsd arm/t-netbsd"
ed4acb3b 925 use_collect2=yes
d23f4158 926 ;;
57119aa9 927 arm*-*-linux*aout*) # ARM GNU/Linux with a.out
618d2e70 928 cpu_type=arm
618d2e70 929 xmake_file=x-linux
b355a481 930 tm_file=arm/linux-aout.h
618d2e70 931 tmake_file=arm/t-linux
618d2e70
RK
932 gnu_ld=yes
933 ;;
57119aa9 934 arm*-*-linux*oldld*) # ARM GNU/Linux with old ELF linker
b355a481
NC
935 xm_file=arm/xm-linux.h
936 xmake_file=x-linux
078e19a4 937 tm_file="arm/linux-oldld.h arm/linux-elf.h"
b355a481
NC
938 case $machine in
939 armv2*-*-*)
078e19a4
PB
940 tm_file="arm/linux-elf26.h $tm_file"
941 ;;
942 esac
943 tmake_file="t-linux arm/t-linux"
944 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
945 gnu_ld=yes
946 case x${enable_threads} in
947 x | xyes | xpthreads | xposix)
948 thread_file='posix'
b355a481 949 ;;
078e19a4
PB
950 esac
951 ;;
57119aa9 952 arm*-*-linux*) # ARM GNU/Linux with ELF
078e19a4
PB
953 xm_file=arm/xm-linux.h
954 xmake_file=x-linux
955 tm_file="arm/linux-elf.h"
956 case $machine in
957 armv2*-*-*)
958 tm_file="arm/linux-elf26.h $tm_file"
b355a481
NC
959 ;;
960 esac
961 tmake_file="t-linux arm/t-linux"
962 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
b355a481 963 gnu_ld=yes
65120c40
SB
964 case x${enable_threads} in
965 x | xyes | xpthreads | xposix)
966 thread_file='posix'
967 ;;
968 esac
b355a481 969 ;;
483f6332
PB
970 arm*-*-uclinux*) # ARM ucLinux
971 tm_file=arm/uclinux-elf.h
972 tmake_file=arm/t-arm-elf
973 ;;
b355a481 974 arm*-*-aout)
f5967c59 975 tm_file=arm/aout.h
d5b7b3ae 976 tmake_file=arm/t-arm-aout
46f18e7b 977 ;;
e6592fff
CM
978 arm*-*-ecos-elf)
979 tm_file=arm/ecos-elf.h
d5b7b3ae 980 tmake_file=arm/t-arm-elf
e6592fff 981 ;;
b355a481
NC
982 arm*-*-elf)
983 tm_file=arm/unknown-elf.h
984 tmake_file=arm/t-arm-elf
47163378
PB
985 ;;
986 arm*-*-conix*)
987 tm_file=arm/conix-elf.h
988 tmake_file=arm/t-arm-elf
b355a481 989 ;;
cbca921c
CM
990 arm*-*-oabi)
991 tm_file=arm/unknown-elf-oabi.h
992 tmake_file=arm/t-arm-elf
993 ;;
cb805c2d
NC
994 arm-*-pe*)
995 tm_file=arm/pe.h
996 tmake_file=arm/t-pe
d5b7b3ae 997 extra_objs="pe.o"
cb805c2d 998 ;;
ed4acb3b
DC
999 avr-*-*)
1000 ;;
46f18e7b
RK
1001 c1-convex-*) # Convex C1
1002 target_cpu_default=1
1003 use_collect2=yes
46f18e7b
RK
1004 ;;
1005 c2-convex-*) # Convex C2
1006 target_cpu_default=2
1007 use_collect2=yes
46f18e7b
RK
1008 ;;
1009 c32-convex-*)
1010 target_cpu_default=4
1011 use_collect2=yes
46f18e7b
RK
1012 ;;
1013 c34-convex-*)
1014 target_cpu_default=8
1015 use_collect2=yes
46f18e7b
RK
1016 ;;
1017 c38-convex-*)
1018 target_cpu_default=16
1019 use_collect2=yes
46f18e7b 1020 ;;
62616695
MH
1021 c4x-*)
1022 cpu_type=c4x
81bce466 1023 float_format=c4x
62616695
MH
1024 tmake_file=c4x/t-c4x
1025 ;;
46f18e7b
RK
1026 clipper-intergraph-clix*)
1027 tm_file="${tm_file} svr3.h clipper/clix.h"
1028 xm_file=clipper/xm-clix.h
1029 xmake_file=clipper/x-clix
1030 extra_headers=va-clipper.h
1031 extra_parts="crtbegin.o crtend.o"
1032 install_headers_dir=install-headers-cpio
46f18e7b 1033 ;;
a5c874cb
RH
1034 d30v-*)
1035 float_format=i64
1036 ;;
46f18e7b
RK
1037 dsp16xx-*)
1038 ;;
1039 elxsi-elxsi-*)
1040 use_collect2=yes
1041 ;;
309dd885
NC
1042 fr30-*-elf)
1043 tm_file="fr30/fr30.h"
1044 tmake_file=fr30/t-fr30
1045 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1046 ;;
46f18e7b
RK
1047 h8300-*-*)
1048 float_format=i32
1049 ;;
30f08b39
JL
1050 hppa*-*-linux*)
1051 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
1052 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
1053 tmake_file="t-linux pa/t-linux"
1054 extra_parts="crtbegin.o crtend.o"
1055 xmake_file=none
1056 gas=yes gnu_ld=yes
1057 if test x$enable_threads = xyes; then
1058 thread_file='posix'
1059 fi
1060 ;;
1b4a979b 1061 hppa*-*-openbsd*)
13ee407e 1062 target_cpu_default="MASK_PA_11"
8f8d3278 1063 tmake_file=pa/t-openbsd
1b4a979b 1064 ;;
46f18e7b 1065 hppa1.1-*-pro*)
0d381b47 1066 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
88624c0e 1067 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
46f18e7b
RK
1068 xm_file=pa/xm-papro.h
1069 tmake_file=pa/t-pro
1070 ;;
1071 hppa1.1-*-osf*)
13ee407e 1072 target_cpu_default="MASK_PA_11"
88624c0e 1073 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
46f18e7b 1074 use_collect2=yes
46f18e7b 1075 ;;
dec3e070 1076 hppa1.1-*-rtems*)
0d381b47 1077 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
88624c0e 1078 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
dec3e070
JW
1079 xm_file=pa/xm-papro.h
1080 tmake_file=pa/t-pro
1081 ;;
46f18e7b 1082 hppa1.0-*-osf*)
88624c0e 1083 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
46f18e7b 1084 use_collect2=yes
46f18e7b
RK
1085 ;;
1086 hppa1.1-*-bsd*)
88624c0e 1087 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
13ee407e 1088 target_cpu_default="MASK_PA_11"
46f18e7b 1089 use_collect2=yes
46f18e7b
RK
1090 ;;
1091 hppa1.0-*-bsd*)
88624c0e 1092 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
46f18e7b 1093 use_collect2=yes
46f18e7b
RK
1094 ;;
1095 hppa1.0-*-hpux7*)
88624c0e 1096 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
46f18e7b
RK
1097 xm_file=pa/xm-pahpux.h
1098 xmake_file=pa/x-pa-hpux
75bffa71 1099 if test x$gas = xyes
46f18e7b
RK
1100 then
1101 tm_file="${tm_file} pa/gas.h"
1102 fi
46f18e7b
RK
1103 install_headers_dir=install-headers-cpio
1104 use_collect2=yes
1105 ;;
75bffa71
ILT
1106changequote(,)dnl
1107 hppa1.0-*-hpux8.0[0-2]*)
1108changequote([,])dnl
88624c0e 1109 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
46f18e7b
RK
1110 xm_file=pa/xm-pahpux.h
1111 xmake_file=pa/x-pa-hpux
75bffa71 1112 if test x$gas = xyes
46f18e7b
RK
1113 then
1114 tm_file="${tm_file} pa/pa-gas.h"
1115 else
1116 tm_file="pa/pa-oldas.h ${tm_file}"
1117 fi
46f18e7b
RK
1118 install_headers_dir=install-headers-cpio
1119 use_collect2=yes
1120 ;;
75bffa71
ILT
1121changequote(,)dnl
1122 hppa1.1-*-hpux8.0[0-2]*)
1123changequote([,])dnl
13ee407e 1124 target_cpu_default="MASK_PA_11"
88624c0e 1125 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
46f18e7b
RK
1126 xm_file=pa/xm-pahpux.h
1127 xmake_file=pa/x-pa-hpux
75bffa71 1128 if test x$gas = xyes
46f18e7b
RK
1129 then
1130 tm_file="${tm_file} pa/pa-gas.h"
1131 else
1132 tm_file="pa/pa-oldas.h ${tm_file}"
1133 fi
46f18e7b
RK
1134 install_headers_dir=install-headers-cpio
1135 use_collect2=yes
1136 ;;
1137 hppa1.1-*-hpux8*)
13ee407e 1138 target_cpu_default="MASK_PA_11"
88624c0e 1139 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
46f18e7b
RK
1140 xm_file=pa/xm-pahpux.h
1141 xmake_file=pa/x-pa-hpux
75bffa71 1142 if test x$gas = xyes
46f18e7b
RK
1143 then
1144 tm_file="${tm_file} pa/pa-gas.h"
1145 fi
46f18e7b
RK
1146 install_headers_dir=install-headers-cpio
1147 use_collect2=yes
1148 ;;
1149 hppa1.0-*-hpux8*)
88624c0e 1150 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
46f18e7b
RK
1151 xm_file=pa/xm-pahpux.h
1152 xmake_file=pa/x-pa-hpux
75bffa71 1153 if test x$gas = xyes
46f18e7b
RK
1154 then
1155 tm_file="${tm_file} pa/pa-gas.h"
1156 fi
46f18e7b
RK
1157 install_headers_dir=install-headers-cpio
1158 use_collect2=yes
1159 ;;
18cae839 1160 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
13ee407e 1161 target_cpu_default="MASK_PA_11"
88624c0e 1162 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
f701f77c 1163 float_format=i128
46f18e7b
RK
1164 xm_file=pa/xm-pahpux.h
1165 xmake_file=pa/x-pa-hpux
f24af81b 1166 tmake_file=pa/t-pa
75bffa71 1167 if test x$gas = xyes
46f18e7b
RK
1168 then
1169 tm_file="${tm_file} pa/pa-gas.h"
1170 fi
75bffa71 1171 if test x$enable_threads = x; then
f24af81b
TT
1172 enable_threads=$have_pthread_h
1173 fi
1ba2dbaa
DA
1174 case x${enable_threads} in
1175 xyes | xdce)
f24af81b 1176 tmake_file="${tmake_file} pa/t-dce-thr"
1ba2dbaa
DA
1177 ;;
1178 esac
46f18e7b
RK
1179 install_headers_dir=install-headers-cpio
1180 use_collect2=yes
1181 ;;
1182 hppa1.0-*-hpux10*)
88624c0e 1183 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
f701f77c 1184 float_format=i128
46f18e7b
RK
1185 xm_file=pa/xm-pahpux.h
1186 xmake_file=pa/x-pa-hpux
661c7909 1187 tmake_file=pa/t-pa
75bffa71 1188 if test x$gas = xyes
46f18e7b
RK
1189 then
1190 tm_file="${tm_file} pa/pa-gas.h"
1191 fi
75bffa71 1192 if test x$enable_threads = x; then
d005a5a4
JL
1193 enable_threads=$have_pthread_h
1194 fi
1ba2dbaa
DA
1195 case x${enable_threads} in
1196 xyes | xdce)
d005a5a4 1197 tmake_file="${tmake_file} pa/t-dce-thr"
1ba2dbaa
DA
1198 ;;
1199 esac
46f18e7b
RK
1200 install_headers_dir=install-headers-cpio
1201 use_collect2=yes
1202 ;;
99b09ff3
JL
1203 hppa*64*-*-hpux11*)
1204 target_cpu_default="MASK_PA_11"
1205 xm_file=pa/xm-pa64hpux.h
1206 xmake_file=pa/x-pa-hpux
1207 tmake_file=pa/t-pa
1208 tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
1209 float_format=i128
1210 tmake_file=pa/t-pa64
1211 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1212
1213 if [[ x$gas = xyes ]]
1214 then
1215 tm_file="${tm_file} pa/pa-gas.h"
1216 fi
1217# if [[ x$enable_threads = x ]]; then
1218# enable_threads=$have_pthread_h
1219# fi
1220# if [[ x$enable_threads = xyes ]]; then
1221# thread_file='dce'
1222# tmake_file="${tmake_file} pa/t-dce-thr"
1223# fi
1224 install_headers_dir=install-headers-cpio
1225 use_collect2=yes
1226 ;;
fab7be4f 1227 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
30f08b39 1228 target_cpu_default="MASK_PA_11"
88624c0e 1229 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
f701f77c 1230 float_format=i128
fab7be4f
JL
1231 xm_file=pa/xm-pahpux.h
1232 xmake_file=pa/x-pa-hpux
1233 tmake_file=pa/t-pa
2618c083 1234 if test x$gas = xyes
fab7be4f
JL
1235 then
1236 tm_file="${tm_file} pa/pa-gas.h"
1237 fi
2618c083 1238# if test x$enable_threads = x; then
fab7be4f
JL
1239# enable_threads=$have_pthread_h
1240# fi
2618c083 1241# if test x$enable_threads = xyes; then
fab7be4f
JL
1242# thread_file='dce'
1243# tmake_file="${tmake_file} pa/t-dce-thr"
1244# fi
1245 install_headers_dir=install-headers-cpio
1246 use_collect2=yes
1247 ;;
1248 hppa1.0-*-hpux11*)
88624c0e 1249 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
f701f77c 1250 float_format=i128
fab7be4f
JL
1251 xm_file=pa/xm-pahpux.h
1252 xmake_file=pa/x-pa-hpux
2618c083 1253 if test x$gas = xyes
fab7be4f
JL
1254 then
1255 tm_file="${tm_file} pa/pa-gas.h"
1256 fi
2618c083 1257# if test x$enable_threads = x; then
fab7be4f
JL
1258# enable_threads=$have_pthread_h
1259# fi
2618c083 1260# if test x$enable_threads = xyes; then
fab7be4f
JL
1261# thread_file='dce'
1262# tmake_file="${tmake_file} pa/t-dce-thr"
1263# fi
1264 install_headers_dir=install-headers-cpio
1265 use_collect2=yes
1266 ;;
18cae839 1267 hppa1.1-*-hpux* | hppa2*-*-hpux*)
13ee407e 1268 target_cpu_default="MASK_PA_11"
88624c0e 1269 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
46f18e7b
RK
1270 xm_file=pa/xm-pahpux.h
1271 xmake_file=pa/x-pa-hpux
75bffa71 1272 if test x$gas = xyes
46f18e7b
RK
1273 then
1274 tm_file="${tm_file} pa/pa-gas.h"
1275 fi
46f18e7b
RK
1276 install_headers_dir=install-headers-cpio
1277 use_collect2=yes
1278 ;;
1279 hppa1.0-*-hpux*)
88624c0e 1280 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
46f18e7b
RK
1281 xm_file=pa/xm-pahpux.h
1282 xmake_file=pa/x-pa-hpux
75bffa71 1283 if test x$gas = xyes
46f18e7b
RK
1284 then
1285 tm_file="${tm_file} pa/pa-gas.h"
1286 fi
46f18e7b
RK
1287 install_headers_dir=install-headers-cpio
1288 use_collect2=yes
1289 ;;
18cae839 1290 hppa1.1-*-hiux* | hppa2*-*-hiux*)
13ee407e 1291 target_cpu_default="MASK_PA_11"
88624c0e 1292 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
46f18e7b
RK
1293 xm_file=pa/xm-pahpux.h
1294 xmake_file=pa/x-pa-hpux
75bffa71 1295 if test x$gas = xyes
46f18e7b
RK
1296 then
1297 tm_file="${tm_file} pa/pa-gas.h"
1298 fi
46f18e7b
RK
1299 install_headers_dir=install-headers-cpio
1300 use_collect2=yes
1301 ;;
1302 hppa1.0-*-hiux*)
88624c0e 1303 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
46f18e7b
RK
1304 xm_file=pa/xm-pahpux.h
1305 xmake_file=pa/x-pa-hpux
75bffa71 1306 if test x$gas = xyes
46f18e7b
RK
1307 then
1308 tm_file="${tm_file} pa/pa-gas.h"
1309 fi
46f18e7b
RK
1310 install_headers_dir=install-headers-cpio
1311 use_collect2=yes
1312 ;;
1313 hppa*-*-lites*)
88624c0e 1314 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
13ee407e 1315 target_cpu_default="MASK_PA_11"
46f18e7b 1316 use_collect2=yes
46f18e7b 1317 ;;
6bc2c8c8 1318 hppa*-*-mpeix*)
5d712c39 1319 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
6bc2c8c8
MK
1320 xm_file=pa/xm-pampeix.h
1321 xmake_file=pa/x-pa-mpeix
1322 echo "You must use gas. Assuming it is already installed."
1323 install_headers_dir=install-headers-tar
6bc2c8c8
MK
1324 use_collect2=yes
1325 ;;
a2b368b6
LV
1326 i370-*-opened*) # IBM 360/370/390 Architecture
1327 xm_file=i370/xm-oe.h
1328 tm_file=i370/oe.h
1329 xmake_file=i370/x-oe
1330 tmake_file=i370/t-oe
a2b368b6 1331 ;;
46f18e7b 1332 i370-*-mvs*)
a2b368b6
LV
1333 xm_file=i370/xm-mvs.h
1334 tm_file=i370/mvs.h
1335 tmake_file=i370/t-mvs
a2b368b6
LV
1336 ;;
1337 i370-*-linux*)
1338 xm_file="xm-linux.h i370/xm-linux.h"
1339 xmake_file=x-linux
1340 tm_file="i370/linux.h ${tm_file}"
1341 tmake_file="t-linux i370/t-linux"
a2b368b6
LV
1342 # broken_install=yes
1343 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1344 # extra_parts="crtbegin.o crtend.o"
1345 gnu_ld=yes
1346 gas=yes
1347 elf=yes
2618c083 1348 if test x$enable_threads = xyes; then
a2b368b6
LV
1349 thread_file='posix'
1350 fi
46f18e7b 1351 ;;
9b5c756a
JL
1352changequote(,)dnl
1353 i[34567]86-*-elf*)
1354changequote([,])dnl
1355 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1356 tm_file=i386/i386elf.h
1357 tmake_file=i386/t-i386elf
1358 xmake_file=x-svr4
1359 ;;
75bffa71
ILT
1360changequote(,)dnl
1361 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1362changequote([,])dnl
1363 if test x$gas = xyes
46f18e7b
RK
1364 then
1365 tm_file=i386/aix386.h
1366 extra_parts="crtbegin.o crtend.o"
1367 tmake_file=i386/t-crtstuff
1368 else
1369 tm_file=i386/aix386ng.h
1370 use_collect2=yes
1371 fi
61536478
JL
1372 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1373 xm_defines=USG
46f18e7b 1374 xmake_file=i386/x-aix
46f18e7b 1375 ;;
75bffa71
ILT
1376changequote(,)dnl
1377 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1378changequote([,])dnl
2d092ffa 1379 xm_file="xm-alloca.h ${xm_file}"
61536478 1380 xm_defines="USG POSIX SMALL_ARG_MAX"
46f18e7b 1381 xmake_file=i386/x-ncr3000
75bffa71 1382 if test x$stabs = xyes -a x$gas = xyes
46f18e7b
RK
1383 then
1384 tm_file=i386/sysv4gdb.h
1385 else
1386 tm_file=i386/sysv4.h
1387 fi
1388 extra_parts="crtbegin.o crtend.o"
1389 tmake_file=i386/t-crtpic
1390 ;;
75bffa71
ILT
1391changequote(,)dnl
1392 i[34567]86-next-*)
1393changequote([,])dnl
46f18e7b
RK
1394 tm_file=i386/next.h
1395 xm_file=i386/xm-next.h
1396 tmake_file=i386/t-next
1397 xmake_file=i386/x-next
1398 extra_objs=nextstep.o
750930c1 1399 extra_parts="crtbegin.o crtend.o"
75bffa71 1400 if test x$enable_threads = xyes; then
0bbb1697
RK
1401 thread_file='mach'
1402 fi
46f18e7b 1403 ;;
4c2c5712
GK
1404changequote(,)dnl
1405 i[34567]86-*-netware) # Intel 80386's running netware
1406changequote([,])dnl
1407 tm_file=i386/netware.h
1408 tmake_file=i386/t-netware
1409 ;;
75bffa71
ILT
1410changequote(,)dnl
1411 i[34567]86-sequent-bsd*) # 80386 from Sequent
1412changequote([,])dnl
46f18e7b 1413 use_collect2=yes
75bffa71 1414 if test x$gas = xyes
46f18e7b
RK
1415 then
1416 tm_file=i386/seq-gas.h
1417 else
1418 tm_file=i386/sequent.h
1419 fi
1420 ;;
75bffa71
ILT
1421changequote(,)dnl
1422 i[34567]86-sequent-ptx1*)
1423changequote([,])dnl
61536478 1424 xm_defines="USG SVR3"
46f18e7b
RK
1425 xmake_file=i386/x-sysv3
1426 tm_file=i386/seq-sysv3.h
1427 tmake_file=i386/t-crtstuff
46f18e7b
RK
1428 extra_parts="crtbegin.o crtend.o"
1429 install_headers_dir=install-headers-cpio
46f18e7b 1430 ;;
75bffa71
ILT
1431changequote(,)dnl
1432 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1433changequote([,])dnl
61536478 1434 xm_defines="USG SVR3"
46f18e7b
RK
1435 xmake_file=i386/x-sysv3
1436 tm_file=i386/seq2-sysv3.h
1437 tmake_file=i386/t-crtstuff
1438 extra_parts="crtbegin.o crtend.o"
46f18e7b 1439 install_headers_dir=install-headers-cpio
46f18e7b 1440 ;;
75bffa71
ILT
1441changequote(,)dnl
1442 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1443changequote([,])dnl
2d092ffa 1444 xm_file="xm-alloca.h ${xm_file}"
61536478 1445 xm_defines="USG POSIX SMALL_ARG_MAX"
46f18e7b
RK
1446 xmake_file=x-svr4
1447 tm_file=i386/ptx4-i.h
1448 tmake_file=t-svr4
1449 extra_parts="crtbegin.o crtend.o"
46f18e7b 1450 install_headers_dir=install-headers-cpio
46f18e7b
RK
1451 ;;
1452 i386-sun-sunos*) # Sun i386 roadrunner
61536478 1453 xm_defines=USG
46f18e7b
RK
1454 tm_file=i386/sun.h
1455 use_collect2=yes
1456 ;;
75bffa71
ILT
1457changequote(,)dnl
1458 i[34567]86-wrs-vxworks*)
1459changequote([,])dnl
9e89df50
MS
1460 tm_file=i386/vxi386.h
1461 tmake_file=i386/t-i386bare
28897609 1462 thread_file='vxworks'
9e89df50 1463 ;;
75bffa71
ILT
1464changequote(,)dnl
1465 i[34567]86-*-aout*)
1466changequote([,])dnl
46f18e7b
RK
1467 tm_file=i386/i386-aout.h
1468 tmake_file=i386/t-i386bare
1469 ;;
512b62fb
JM
1470changequote(,)dnl
1471 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1472changequote([,])dnl
1473 xm_file=i386/xm-beos.h
1474 tmake_file='i386/t-beos i386/t-crtpic'
1475 tm_file=i386/beos-elf.h
1476 xmake_file=i386/x-beos
512b62fb 1477 extra_parts='crtbegin.o crtend.o'
512b62fb 1478 ;;
75bffa71
ILT
1479changequote(,)dnl
1480 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1481changequote([,])dnl
46f18e7b 1482 tm_file=i386/bsd386.h
46f18e7b
RK
1483# tmake_file=t-libc-ok
1484 ;;
75bffa71
ILT
1485changequote(,)dnl
1486 i[34567]86-*-bsd*)
1487changequote([,])dnl
46f18e7b 1488 tm_file=i386/386bsd.h
46f18e7b
RK
1489# tmake_file=t-libc-ok
1490# Next line turned off because both 386BSD and BSD/386 use GNU ld.
1491# use_collect2=yes
1492 ;;
75bffa71 1493changequote(,)dnl
bad4c106
DB
1494 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1495changequote([,])dnl
41e5a1f5 1496 tm_file="i386/freebsd-aout.h i386/perform.h"
bad4c106
DB
1497 tmake_file=t-freebsd
1498 ;;
1499changequote(,)dnl
1500 i[34567]86-*-freebsd*)
75bffa71 1501changequote([,])dnl
41e5a1f5 1502 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h"
56830143 1503 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
d0550c9b 1504 tmake_file=t-freebsd
46f18e7b
RK
1505 gas=yes
1506 gnu_ld=yes
1507 stabs=yes
46346e0e
LR
1508 case x${enable_threads} in
1509 xyes | xpthreads | xposix)
1510 thread_file='posix'
e1459ff8 1511 tmake_file="${tmake_file} t-freebsd-thread"
46346e0e
LR
1512 ;;
1513 esac
46f18e7b 1514 ;;
75bffa71 1515changequote(,)dnl
1b4a979b 1516 i[34567]86-*-netbsd*)
75bffa71 1517changequote([,])dnl
46f18e7b 1518 tm_file=i386/netbsd.h
e47f44f4 1519 tmake_file=t-netbsd
ed4acb3b 1520 use_collect2=yes
46f18e7b 1521 ;;
1b4a979b
ME
1522changequote(,)dnl
1523 i[34567]86-*-openbsd*)
1524changequote([,])dnl
1b4a979b
ME
1525 # we need collect2 until our bug is fixed...
1526 use_collect2=yes
1527 ;;
75bffa71
ILT
1528changequote(,)dnl
1529 i[34567]86-*-coff*)
1530changequote([,])dnl
46f18e7b
RK
1531 tm_file=i386/i386-coff.h
1532 tmake_file=i386/t-i386bare
1533 ;;
75bffa71
ILT
1534changequote(,)dnl
1535 i[34567]86-*-isc*) # 80386 running ISC system
1536changequote([,])dnl
61536478
JL
1537 xm_file="${xm_file} i386/xm-isc.h"
1538 xm_defines="USG SVR3"
46f18e7b 1539 case $machine in
75bffa71
ILT
1540changequote(,)dnl
1541 i[34567]86-*-isc[34]*)
1542changequote([,])dnl
46f18e7b
RK
1543 xmake_file=i386/x-isc3
1544 ;;
1545 *)
1546 xmake_file=i386/x-isc
1547 ;;
1548 esac
75bffa71 1549 if test x$gas = xyes -a x$stabs = xyes
46f18e7b
RK
1550 then
1551 tm_file=i386/iscdbx.h
1552 tmake_file=i386/t-svr3dbx
1553 extra_parts="svr3.ifile svr3z.ifile"
1554 else
1555 tm_file=i386/isccoff.h
1556 tmake_file=i386/t-crtstuff
1557 extra_parts="crtbegin.o crtend.o"
1558 fi
a5598a06 1559 tmake_file="$tmake_file i386/t-i386bare"
46f18e7b 1560 install_headers_dir=install-headers-cpio
46f18e7b 1561 ;;
75bffa71 1562changequote(,)dnl
57119aa9 1563 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
75bffa71 1564changequote([,])dnl # with a.out format using
61536478 1565 # pre BFD linkers
46f18e7b
RK
1566 xmake_file=x-linux-aout
1567 tmake_file="t-linux-aout i386/t-crtstuff"
1568 tm_file=i386/linux-oldld.h
46f18e7b 1569 gnu_ld=yes
f906a0f0 1570 float_format=i386
46f18e7b 1571 ;;
75bffa71 1572changequote(,)dnl
57119aa9 1573 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
75bffa71 1574changequote([,])dnl # with a.out format
46f18e7b
RK
1575 xmake_file=x-linux-aout
1576 tmake_file="t-linux-aout i386/t-crtstuff"
1577 tm_file=i386/linux-aout.h
46f18e7b 1578 gnu_ld=yes
f906a0f0 1579 float_format=i386
46f18e7b 1580 ;;
75bffa71 1581changequote(,)dnl
57119aa9 1582 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
75bffa71 1583changequote([,])dnl # with ELF format using the
61536478
JL
1584 # GNU/Linux C library 5
1585 xmake_file=x-linux
1586 tm_file=i386/linux.h
78b9f8df
RK
1587 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1588 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
78b9f8df 1589 gnu_ld=yes
f906a0f0 1590 float_format=i386
75bffa71 1591 if test x$enable_threads = xyes; then
78b9f8df
RK
1592 thread_file='single'
1593 fi
1594 ;;
75bffa71 1595changequote(,)dnl
57119aa9 1596 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
75bffa71 1597changequote([,])dnl # with ELF format using glibc 2
61536478
JL
1598 # aka GNU/Linux C library 6
1599 xmake_file=x-linux
46f18e7b
RK
1600 tm_file=i386/linux.h
1601 tmake_file="t-linux i386/t-crtstuff"
1602 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
46f18e7b 1603 gnu_ld=yes
f906a0f0 1604 float_format=i386
75bffa71 1605 if test x$enable_threads = xyes; then
78b9f8df
RK
1606 thread_file='posix'
1607 fi
46f18e7b 1608 ;;
75bffa71
ILT
1609changequote(,)dnl
1610 i[34567]86-*-gnu*)
cd9e5e7c 1611 float_format=i386
75bffa71 1612changequote([,])dnl
61536478 1613 ;;
75bffa71
ILT
1614changequote(,)dnl
1615 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1616changequote([,])dnl
77d787fa 1617 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
866fb7cc 1618 exit 1
46f18e7b 1619 ;;
75bffa71
ILT
1620changequote(,)dnl
1621 i[34567]86-pc-msdosdjgpp*)
1622changequote([,])dnl
77d787fa
ME
1623 xm_file=i386/xm-djgpp.h
1624 tm_file=i386/djgpp.h
1625 tmake_file=i386/t-djgpp
1626 xmake_file=i386/x-djgpp
61536478
JL
1627 gnu_ld=yes
1628 gas=yes
dedcc399 1629 exeext=.exe
2838397c 1630 float_format=none
77d787fa 1631 case $host in *pc-msdosdjgpp*)
dedcc399
ME
1632 target_alias=djgpp
1633 ;;
1634 esac
46f18e7b 1635 ;;
75bffa71
ILT
1636changequote(,)dnl
1637 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1638changequote([,])dnl
46f18e7b
RK
1639 tm_file=i386/moss.h
1640 tmake_file=t-libc-ok
46f18e7b
RK
1641 gnu_ld=yes
1642 gas=yes
1643 ;;
75bffa71
ILT
1644changequote(,)dnl
1645 i[34567]86-*-lynxos*)
1646changequote([,])dnl
1647 if test x$gas = xyes
46f18e7b
RK
1648 then
1649 tm_file=i386/lynx.h
1650 else
1651 tm_file=i386/lynx-ng.h
1652 fi
1653 xm_file=i386/xm-lynx.h
1654 tmake_file=i386/t-i386bare
1655 xmake_file=x-lynx
1656 ;;
75bffa71
ILT
1657changequote(,)dnl
1658 i[34567]86-*-mach*)
1659changequote([,])dnl
46f18e7b
RK
1660 tm_file=i386/mach.h
1661# tmake_file=t-libc-ok
1662 use_collect2=yes
1663 ;;
75bffa71
ILT
1664changequote(,)dnl
1665 i[34567]86-*-osfrose*) # 386 using OSF/rose
1666changequote([,])dnl
1667 if test x$elf = xyes
46f18e7b
RK
1668 then
1669 tm_file=i386/osfelf.h
1670 use_collect2=
1671 else
1672 tm_file=i386/osfrose.h
1673 use_collect2=yes
1674 fi
61536478 1675 xm_file="i386/xm-osf.h ${xm_file}"
46f18e7b
RK
1676 xmake_file=i386/x-osfrose
1677 tmake_file=i386/t-osf
1678 extra_objs=halfpic.o
1679 ;;
75bffa71
ILT
1680changequote(,)dnl
1681 i[34567]86-go32-rtems*)
1682changequote([,])dnl
46f18e7b
RK
1683 cpu_type=i386
1684 xm_file=i386/xm-go32.h
1685 tm_file=i386/go32-rtems.h
1686 tmake_file="i386/t-go32 t-rtems"
1687 ;;
75bffa71 1688changequote(,)dnl
0d4ef09c 1689 i[34567]86-*-rtemscoff*)
75bffa71 1690changequote([,])dnl
f5963e61 1691 cpu_type=i386
0d4ef09c
JS
1692 tm_file=i386/rtems.h
1693 tmake_file="i386/t-i386bare t-rtems"
f5963e61 1694 ;;
75bffa71 1695changequote(,)dnl
0d4ef09c 1696 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
75bffa71 1697changequote([,])dnl
46f18e7b 1698 cpu_type=i386
0d4ef09c
JS
1699 tm_file=i386/rtemself.h
1700 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1701 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
46f18e7b 1702 ;;
75bffa71
ILT
1703changequote(,)dnl
1704 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1705changequote([,])dnl
2d092ffa 1706 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
61536478 1707 xm_defines="USG SVR3"
46f18e7b 1708 xmake_file=i386/x-sco5
f6857708 1709 install_headers_dir=install-headers-cpio
46f18e7b 1710 tm_file=i386/sco5.h
75bffa71 1711 if test x$gas = xyes
f7c9c2bb
RL
1712 then
1713 tm_file="i386/sco5gas.h ${tm_file}"
1714 tmake_file=i386/t-sco5gas
1715 else
1716 tmake_file=i386/t-sco5
1717 fi
a5598a06 1718 tmake_file="$tmake_file i386/t-i386bare"
42902a72 1719 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
46f18e7b 1720 ;;
75bffa71
ILT
1721changequote(,)dnl
1722 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1723changequote([,])dnl
61536478 1724 xm_file="${xm_file} i386/xm-sco.h"
2d092ffa 1725 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
46f18e7b 1726 xmake_file=i386/x-sco4
46f18e7b 1727 install_headers_dir=install-headers-cpio
75bffa71 1728 if test x$stabs = xyes
46f18e7b
RK
1729 then
1730 tm_file=i386/sco4dbx.h
1731 tmake_file=i386/t-svr3dbx
1732 extra_parts="svr3.ifile svr3z.rfile"
1733 else
1734 tm_file=i386/sco4.h
1735 tmake_file=i386/t-crtstuff
1736 extra_parts="crtbegin.o crtend.o"
1737 fi
a5598a06 1738 tmake_file="$tmake_file i386/t-i386bare"
090164c0
WB
1739 # The default EAFS filesystem supports long file names.
1740 # Truncating the target makes $host != $target which
1741 # makes gcc think it is doing a cross-compile.
1742 # truncate_target=yes
46f18e7b 1743 ;;
75bffa71
ILT
1744changequote(,)dnl
1745 i[34567]86-*-sco*) # 80386 running SCO system
1746changequote([,])dnl
46f18e7b
RK
1747 xm_file=i386/xm-sco.h
1748 xmake_file=i386/x-sco
46f18e7b 1749 install_headers_dir=install-headers-cpio
75bffa71 1750 if test x$stabs = xyes
46f18e7b
RK
1751 then
1752 tm_file=i386/scodbx.h
1753 tmake_file=i386/t-svr3dbx
1754 extra_parts="svr3.ifile svr3z.rfile"
1755 else
1756 tm_file=i386/sco.h
1757 extra_parts="crtbegin.o crtend.o"
1758 tmake_file=i386/t-crtstuff
1759 fi
a5598a06 1760 tmake_file="$tmake_file i386/t-i386bare"
46f18e7b
RK
1761 truncate_target=yes
1762 ;;
75bffa71
ILT
1763changequote(,)dnl
1764 i[34567]86-*-solaris2*)
1765changequote([,])dnl
2d092ffa 1766 xm_file="xm-alloca.h ${xm_file}"
61536478 1767 xm_defines="USG POSIX SMALL_ARG_MAX"
0c723ada
AO
1768 tm_file=i386/sol2.h
1769 if test x$gas = xyes; then
1770 # Only needed if gas does not support -s
1771 tm_file="i386/sol2gas.h ${tm_file}"
46f18e7b 1772 fi
a5598a06 1773 tmake_file="i386/t-i386bare i386/t-sol2"
61536478 1774 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
46f18e7b 1775 xmake_file=x-svr4
4a8021dc
AO
1776 if test x${enable_threads} = x; then
1777 enable_threads=$have_pthread_h
1778 if test x${enable_threads} = x; then
1779 enable_threads=$have_thread_h
1780 fi
1781 fi
1782 if test x${enable_threads} = xyes; then
1783 if test x${have_pthread_h} = xyes; then
1784 thread_file='posix'
1785 else
0bbb1697 1786 thread_file='solaris'
4a8021dc 1787 fi
0bbb1697 1788 fi
46f18e7b 1789 ;;
75bffa71
ILT
1790changequote(,)dnl
1791 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1792changequote([,])dnl
2d092ffa 1793 xm_file="xm-alloca.h ${xm_file}"
a4cbe801 1794 xm_defines="USG POSIX"
87e11b70 1795 tm_file=i386/sysv5.h
75bffa71 1796 if test x$stabs = xyes
fe07d4c1
RL
1797 then
1798 tm_file="${tm_file} dbx.h"
1799 fi
a5598a06 1800 tmake_file="i386/t-i386bare i386/t-crtpic"
fe07d4c1
RL
1801 xmake_file=x-svr4
1802 extra_parts="crtbegin.o crtend.o"
01e39005
RL
1803 if test x$enable_threads = xyes; then
1804 thread_file='posix'
1805 fi
fe07d4c1 1806 ;;
75bffa71
ILT
1807changequote(,)dnl
1808 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1809changequote([,])dnl
2d092ffa 1810 xm_file="xm-alloca.h ${xm_file}"
61536478 1811 xm_defines="USG POSIX SMALL_ARG_MAX"
46f18e7b 1812 tm_file=i386/sysv4.h
75bffa71 1813 if test x$stabs = xyes
46f18e7b
RK
1814 then
1815 tm_file="${tm_file} dbx.h"
1816 fi
a5598a06 1817 tmake_file="i386/t-i386bare i386/t-crtpic"
46f18e7b
RK
1818 xmake_file=x-svr4
1819 extra_parts="crtbegin.o crtend.o"
1820 ;;
5aaf0123
RL
1821changequote(,)dnl
1822 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1823changequote([,])dnl
2d092ffa 1824 xm_file="xm-alloca.h ${xm_file}"
5aaf0123
RL
1825 xm_defines="USG POSIX"
1826 tm_file=i386/udk.h
a5598a06 1827 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
5aaf0123
RL
1828 xmake_file=x-svr4
1829 extra_parts="crtbegin.o crtend.o"
fd9c643f 1830 install_headers_dir=install-headers-cpio
5aaf0123 1831 ;;
75bffa71
ILT
1832changequote(,)dnl
1833 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1834changequote([,])dnl
f5963e61
JL
1835 cpu_type=i386
1836 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1837 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
75bffa71 1838 if test x$stabs = xyes
f5963e61
JL
1839 then
1840 tm_file=i386/osf1elfgdb.h
1841 else
1842 tm_file=i386/osf1elf.h
1843 fi
1844 tmake_file=i386/t-osf1elf
1845 xmake_file=i386/x-osf1elf
1846 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1847 ;;
75bffa71
ILT
1848changequote(,)dnl
1849 i[34567]86-*-sysv*) # Intel 80386's running system V
1850changequote([,])dnl
61536478 1851 xm_defines="USG SVR3"
46f18e7b 1852 xmake_file=i386/x-sysv3
75bffa71 1853 if test x$gas = xyes
46f18e7b 1854 then
75bffa71 1855 if test x$stabs = xyes
46f18e7b
RK
1856 then
1857 tm_file=i386/svr3dbx.h
1858 tmake_file=i386/t-svr3dbx
1859 extra_parts="svr3.ifile svr3z.rfile"
1860 else
1861 tm_file=i386/svr3gas.h
1862 extra_parts="crtbegin.o crtend.o"
1863 tmake_file=i386/t-crtstuff
1864 fi
1865 else
1866 tm_file=i386/sysv3.h
1867 extra_parts="crtbegin.o crtend.o"
1868 tmake_file=i386/t-crtstuff
1869 fi
a5598a06 1870 tmake_file="$tmake_file i386/t-crtpic"
46f18e7b
RK
1871 ;;
1872 i386-*-vsta) # Intel 80386's running VSTa kernel
f5963e61 1873 xm_file="${xm_file} i386/xm-vsta.h"
46f18e7b
RK
1874 tm_file=i386/vsta.h
1875 tmake_file=i386/t-vsta
1876 xmake_file=i386/x-vsta
1877 ;;
75bffa71
ILT
1878changequote(,)dnl
1879 i[34567]86-*-win32)
1880changequote([,])dnl
cae21ae8
GN
1881 xm_file="${xm_file} i386/xm-cygwin.h"
1882 tmake_file=i386/t-cygwin
84530511 1883 tm_file=i386/win32.h
cae21ae8 1884 xmake_file=i386/x-cygwin
84530511 1885 extra_objs=winnt.o
75bffa71 1886 if test x$enable_threads = xyes; then
84530511
SC
1887 thread_file='win32'
1888 fi
1889 exeext=.exe
1890 ;;
75bffa71 1891changequote(,)dnl
cae21ae8 1892 i[34567]86-*-pe | i[34567]86-*-cygwin*)
75bffa71 1893changequote([,])dnl
cae21ae8
GN
1894 xm_file="${xm_file} i386/xm-cygwin.h"
1895 tmake_file=i386/t-cygwin
1896 tm_file=i386/cygwin.h
1897 xmake_file=i386/x-cygwin
46f18e7b 1898 extra_objs=winnt.o
75bffa71 1899 if test x$enable_threads = xyes; then
0bbb1697
RK
1900 thread_file='win32'
1901 fi
46f18e7b
RK
1902 exeext=.exe
1903 ;;
75bffa71
ILT
1904changequote(,)dnl
1905 i[34567]86-*-mingw32*)
1906changequote([,])dnl
5dfe8508
RK
1907 tm_file=i386/mingw32.h
1908 xm_file="${xm_file} i386/xm-mingw32.h"
cae21ae8 1909 tmake_file="i386/t-cygwin i386/t-mingw32"
5dfe8508 1910 extra_objs=winnt.o
cae21ae8 1911 xmake_file=i386/x-cygwin
75bffa71 1912 if test x$enable_threads = xyes; then
0bbb1697
RK
1913 thread_file='win32'
1914 fi
5dfe8508 1915 exeext=.exe
61536478
JL
1916 case $machine in
1917 *mingw32msv*)
1918 ;;
1919 *minwg32crt* | *mingw32*)
1920 tm_file="${tm_file} i386/crtdll.h"
1921 ;;
1922 esac
5dfe8508 1923 ;;
b27d2bd5
MK
1924changequote(,)dnl
1925 i[34567]86-*-uwin*)
1926changequote([,])dnl
1927 tm_file=i386/uwin.h
1928 xm_file="${xm_file} i386/xm-uwin.h"
2d092ffa 1929 xm_defines="USG NO_STAB_H"
b27d2bd5
MK
1930 tmake_file="i386/t-cygwin i386/t-uwin"
1931 extra_objs=winnt.o
1932 xmake_file=i386/x-cygwin
b27d2bd5
MK
1933 if test x$enable_threads = xyes; then
1934 thread_file='win32'
1935 fi
1936 exeext=.exe
1937 ;;
052dbd9e
MK
1938changequote(,)dnl
1939 i[34567]86-*-interix*)
1940changequote([,])dnl
615c8231 1941 tm_file="i386/i386-interix.h interix.h"
97ad1d43 1942 xm_file="i386/xm-i386-interix.h xm-interix.h"
2d092ffa 1943 xm_defines="USG"
052dbd9e
MK
1944 tmake_file="i386/t-interix"
1945 extra_objs=interix.o
1946 xmake_file=x-interix
615c8231 1947 if test x$enable_threads = xyes ; then
052dbd9e
MK
1948 thread_file='posix'
1949 fi
615c8231 1950 if test x$stabs = xyes ; then
052dbd9e
MK
1951 tm_file="${tm_file} dbxcoff.h"
1952 fi
1953 ;;
75bffa71
ILT
1954changequote(,)dnl
1955 i[34567]86-*-winnt3*)
1956changequote([,])dnl
46f18e7b
RK
1957 tm_file=i386/win-nt.h
1958 out_file=i386/i386.c
61536478 1959 xm_file="xm-winnt.h ${xm_file}"
46f18e7b
RK
1960 xmake_file=winnt/x-winnt
1961 tmake_file=i386/t-winnt
1962 extra_host_objs="winnt.o oldnames.o"
1963 extra_gcc_objs="spawnv.o oldnames.o"
75bffa71 1964 if test x$gnu_ld != xyes
46f18e7b
RK
1965 then
1966 extra_programs=ld.exe
1967 fi
75bffa71 1968 if test x$enable_threads = xyes; then
0bbb1697
RK
1969 thread_file='win32'
1970 fi
46f18e7b 1971 ;;
75bffa71
ILT
1972changequote(,)dnl
1973 i[34567]86-dg-dgux*)
1974changequote([,])dnl
2d092ffa 1975 xm_file="xm-alloca.h ${xm_file}"
61536478 1976 xm_defines="USG POSIX"
46f18e7b
RK
1977 out_file=i386/dgux.c
1978 tm_file=i386/dgux.h
1979 tmake_file=i386/t-dgux
1980 xmake_file=i386/x-dgux
46f18e7b
RK
1981 install_headers_dir=install-headers-cpio
1982 ;;
1983 i860-alliant-*) # Alliant FX/2800
1984 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
956d6950 1985 xm_file="${xm_file}"
46f18e7b
RK
1986 xmake_file=i860/x-fx2800
1987 tmake_file=i860/t-fx2800
1988 extra_parts="crtbegin.o crtend.o"
1989 ;;
1990 i860-*-bsd*)
1991 tm_file="${tm_file} i860/bsd.h"
75bffa71 1992 if test x$gas = xyes
46f18e7b
RK
1993 then
1994 tm_file="${tm_file} i860/bsd-gas.h"
1995 fi
1996 use_collect2=yes
1997 ;;
1998 i860-*-mach*)
1999 tm_file="${tm_file} i860/mach.h"
2000 tmake_file=t-libc-ok
2001 ;;
2002 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
2003 tm_file="${tm_file} svr3.h i860/paragon.h"
61536478 2004 xm_defines="USG SVR3"
46f18e7b 2005 tmake_file=t-osf
46f18e7b
RK
2006 ;;
2007 i860-*-sysv3*)
2008 tm_file="${tm_file} svr3.h i860/sysv3.h"
61536478 2009 xm_defines="USG SVR3"
46f18e7b
RK
2010 xmake_file=i860/x-sysv3
2011 extra_parts="crtbegin.o crtend.o"
2012 ;;
2013 i860-*-sysv4*)
2014 tm_file="${tm_file} svr4.h i860/sysv4.h"
61536478 2015 xm_defines="USG SVR3"
46f18e7b
RK
2016 xmake_file=i860/x-sysv4
2017 tmake_file=t-svr4
2018 extra_parts="crtbegin.o crtend.o"
2019 ;;
2020 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
2021 tm_file="${tm_file} i960/vx960.h"
2022 tmake_file=i960/t-vxworks960
2023 use_collect2=yes
7cc34889 2024 thread_file='vxworks'
46f18e7b 2025 ;;
a0372c94 2026 i960-wrs-vxworks5* | i960-wrs-vxworks)
46f18e7b
RK
2027 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2028 tmake_file=i960/t-vxworks960
2029 use_collect2=yes
7cc34889 2030 thread_file='vxworks'
46f18e7b
RK
2031 ;;
2032 i960-wrs-vxworks*)
2033 tm_file="${tm_file} i960/vx960.h"
2034 tmake_file=i960/t-vxworks960
2035 use_collect2=yes
7cc34889 2036 thread_file='vxworks'
46f18e7b
RK
2037 ;;
2038 i960-*-coff*)
2039 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2040 tmake_file=i960/t-960bare
2041 use_collect2=yes
2042 ;;
2043 i960-*-rtems)
2044 tmake_file="i960/t-960bare t-rtems"
2045 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2046 use_collect2=yes
2047 ;;
2048 i960-*-*) # Default i960 environment.
2049 use_collect2=yes
2050 ;;
c65ebc55
JW
2051 ia64*-*-elf*)
2052 tm_file=ia64/elf.h
2053 tmake_file="ia64/t-ia64"
2054 target_cpu_default="0"
2055 if test x$gas = xyes
2056 then
2057 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
2058 fi
2059 if test x$gnu_ld = xyes
2060 then
2061 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
2062 fi
3f622353 2063 float_format=i386
c65ebc55
JW
2064 ;;
2065 ia64*-*-linux*)
2066 tm_file=ia64/linux.h
fee0225a 2067 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
c65ebc55
JW
2068 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
2069 if test x$enable_threads = xyes; then
2070 thread_file='posix'
2071 fi
3f622353 2072 float_format=i386
c65ebc55 2073 ;;
dec3e070
JW
2074 m32r-*-elf*)
2075 extra_parts="crtinit.o crtfini.o"
2076 ;;
63883fc3
SC
2077 # m68hc11 and m68hc12 share the same machine description.
2078 m68hc11-*-*|m6811-*-*)
2079 tm_file="m68hc11/m68hc11.h"
2080 xm_file="m68hc11/xm-m68hc11.h"
2081 tm_p_file="m68hc11/m68hc11-protos.h"
2082 md_file="m68hc11/m68hc11.md"
2083 out_file="m68hc11/m68hc11.c"
2084 tmake_file="m68hc11/t-m68hc11-gas"
2085 ;;
2086 m68hc12-*-*|m6812-*-*)
2087 tm_file="m68hc11/m68hc12.h"
2088 tm_p_file="m68hc11/m68hc11-protos.h"
2089 xm_file="m68hc11/xm-m68hc11.h"
2090 md_file="m68hc11/m68hc11.md"
2091 out_file="m68hc11/m68hc11.c"
2092 tmake_file="m68hc11/t-m68hc11-gas"
2093 ;;
46f18e7b
RK
2094 m68000-convergent-sysv*)
2095 tm_file=m68k/ctix.h
61536478
JL
2096 xm_file="m68k/xm-3b1.h ${xm_file}"
2097 xm_defines=USG
46f18e7b
RK
2098 use_collect2=yes
2099 extra_headers=math-68881.h
2100 ;;
2101 m68000-hp-bsd*) # HP 9000/200 running BSD
2102 tm_file=m68k/hp2bsd.h
2103 xmake_file=m68k/x-hp2bsd
2104 use_collect2=yes
2105 extra_headers=math-68881.h
2106 ;;
2107 m68000-hp-hpux*) # HP 9000 series 300
1a87de8d 2108 xm_file="xm-alloca.h ${xm_file}"
2d092ffa 2109 xm_defines="USG"
75bffa71 2110 if test x$gas = xyes
46f18e7b
RK
2111 then
2112 xmake_file=m68k/x-hp320g
2113 tm_file=m68k/hp310g.h
2114 else
2115 xmake_file=m68k/x-hp320
2116 tm_file=m68k/hp310.h
2117 fi
46f18e7b
RK
2118 install_headers_dir=install-headers-cpio
2119 use_collect2=yes
2120 extra_headers=math-68881.h
2121 ;;
2122 m68000-sun-sunos3*)
2123 tm_file=m68k/sun2.h
2124 use_collect2=yes
2125 extra_headers=math-68881.h
2126 ;;
2127 m68000-sun-sunos4*)
2128 tm_file=m68k/sun2o4.h
2129 use_collect2=yes
2130 extra_headers=math-68881.h
2131 ;;
2132 m68000-att-sysv*)
61536478
JL
2133 xm_file="m68k/xm-3b1.h ${xm_file}"
2134 xm_defines=USG
75bffa71 2135 if test x$gas = xyes
46f18e7b
RK
2136 then
2137 tm_file=m68k/3b1g.h
2138 else
2139 tm_file=m68k/3b1.h
2140 fi
2141 use_collect2=yes
2142 extra_headers=math-68881.h
2143 ;;
2144 m68k-apple-aux*) # Apple Macintosh running A/UX
61536478 2145 xm_defines="USG AUX"
46f18e7b 2146 tmake_file=m68k/t-aux
46f18e7b
RK
2147 install_headers_dir=install-headers-cpio
2148 extra_headers=math-68881.h
2149 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2150 tm_file=
75bffa71 2151 if test "$gnu_ld" = yes
46f18e7b
RK
2152 then
2153 tm_file="${tm_file} m68k/auxgld.h"
2154 else
2155 tm_file="${tm_file} m68k/auxld.h"
2156 fi
75bffa71 2157 if test "$gas" = yes
46f18e7b
RK
2158 then
2159 tm_file="${tm_file} m68k/auxgas.h"
2160 else
2161 tm_file="${tm_file} m68k/auxas.h"
2162 fi
2163 tm_file="${tm_file} m68k/a-ux.h"
c8db55b0 2164 float_format=m68k
46f18e7b
RK
2165 ;;
2166 m68k-apollo-*)
2167 tm_file=m68k/apollo68.h
2168 xmake_file=m68k/x-apollo68
2169 use_collect2=yes
2170 extra_headers=math-68881.h
c8db55b0 2171 float_format=m68k
46f18e7b
RK
2172 ;;
2173 m68k-altos-sysv*) # Altos 3068
75bffa71 2174 if test x$gas = xyes
46f18e7b
RK
2175 then
2176 tm_file=m68k/altos3068.h
61536478 2177 xm_defines=USG
46f18e7b
RK
2178 else
2179 echo "The Altos is supported only with the GNU assembler" 1>&2
2180 exit 1
2181 fi
2182 extra_headers=math-68881.h
2183 ;;
2184 m68k-bull-sysv*) # Bull DPX/2
75bffa71 2185 if test x$gas = xyes
46f18e7b 2186 then
75bffa71 2187 if test x$stabs = xyes
46f18e7b
RK
2188 then
2189 tm_file=m68k/dpx2cdbx.h
2190 else
2191 tm_file=m68k/dpx2g.h
2192 fi
2193 else
2194 tm_file=m68k/dpx2.h
2195 fi
61536478
JL
2196 xm_file="xm-alloca.h ${xm_file}"
2197 xm_defines=USG
46f18e7b
RK
2198 xmake_file=m68k/x-dpx2
2199 use_collect2=yes
2200 extra_headers=math-68881.h
2201 ;;
2202 m68k-atari-sysv4*) # Atari variant of V.4.
2203 tm_file=m68k/atari.h
61536478
JL
2204 xm_file="xm-alloca.h ${xm_file}"
2205 xm_defines="USG FULL_PROTOTYPES"
46f18e7b
RK
2206 tmake_file=t-svr4
2207 extra_parts="crtbegin.o crtend.o"
2208 extra_headers=math-68881.h
c8db55b0 2209 float_format=m68k
46f18e7b
RK
2210 ;;
2211 m68k-motorola-sysv*)
2212 tm_file=m68k/mot3300.h
61536478 2213 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
75bffa71 2214 if test x$gas = xyes
46f18e7b
RK
2215 then
2216 xmake_file=m68k/x-mot3300-gas
75bffa71 2217 if test x$gnu_ld = xyes
46f18e7b
RK
2218 then
2219 tmake_file=m68k/t-mot3300-gald
2220 else
2221 tmake_file=m68k/t-mot3300-gas
2222 use_collect2=yes
2223 fi
2224 else
2225 xmake_file=m68k/x-mot3300
75bffa71 2226 if test x$gnu_ld = xyes
46f18e7b
RK
2227 then
2228 tmake_file=m68k/t-mot3300-gld
2229 else
2230 tmake_file=m68k/t-mot3300
2231 use_collect2=yes
2232 fi
2233 fi
2234 gdb_needs_out_file_path=yes
2235 extra_parts="crt0.o mcrt0.o"
2236 extra_headers=math-68881.h
c8db55b0 2237 float_format=m68k
46f18e7b
RK
2238 ;;
2239 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2240 tm_file=m68k/tower-as.h
61536478 2241 xm_defines="USG SVR3"
46f18e7b
RK
2242 xmake_file=m68k/x-tower
2243 extra_parts="crtbegin.o crtend.o"
2244 extra_headers=math-68881.h
2245 ;;
2246 m68k-plexus-sysv*)
2247 tm_file=m68k/plexus.h
61536478
JL
2248 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2249 xm_defines=USG
46f18e7b
RK
2250 use_collect2=yes
2251 extra_headers=math-68881.h
2252 ;;
2253 m68k-tti-*)
2254 tm_file=m68k/pbb.h
61536478
JL
2255 xm_file="xm-alloca.h ${xm_file}"
2256 xm_defines=USG
46f18e7b
RK
2257 extra_headers=math-68881.h
2258 ;;
2259 m68k-crds-unos*)
61536478
JL
2260 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2261 xm_defines="USG unos"
46f18e7b
RK
2262 xmake_file=m68k/x-crds
2263 tm_file=m68k/crds.h
46f18e7b
RK
2264 use_collect2=yes
2265 extra_headers=math-68881.h
2266 ;;
2267 m68k-cbm-sysv4*) # Commodore variant of V.4.
2268 tm_file=m68k/amix.h
61536478
JL
2269 xm_file="xm-alloca.h ${xm_file}"
2270 xm_defines="USG FULL_PROTOTYPES"
46f18e7b
RK
2271 xmake_file=m68k/x-amix
2272 tmake_file=t-svr4
2273 extra_parts="crtbegin.o crtend.o"
2274 extra_headers=math-68881.h
c8db55b0 2275 float_format=m68k
46f18e7b
RK
2276 ;;
2277 m68k-ccur-rtu)
2278 tm_file=m68k/ccur-GAS.h
2279 xmake_file=m68k/x-ccur
2280 extra_headers=math-68881.h
2281 use_collect2=yes
c8db55b0 2282 float_format=m68k
46f18e7b
RK
2283 ;;
2284 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2285 tm_file=m68k/hp3bsd44.h
c83fe036 2286 xmake_file=m68k/x-hp3bsd44
46f18e7b
RK
2287 use_collect2=yes
2288 extra_headers=math-68881.h
c8db55b0 2289 float_format=m68k
46f18e7b
RK
2290 ;;
2291 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2292 tm_file=m68k/hp3bsd.h
2293 use_collect2=yes
2294 extra_headers=math-68881.h
c8db55b0 2295 float_format=m68k
46f18e7b
RK
2296 ;;
2297 m68k-isi-bsd*)
75bffa71 2298 if test x$with_fp = xno
46f18e7b
RK
2299 then
2300 tm_file=m68k/isi-nfp.h
2301 else
2302 tm_file=m68k/isi.h
c8db55b0 2303 float_format=m68k
46f18e7b
RK
2304 fi
2305 use_collect2=yes
2306 extra_headers=math-68881.h
2307 ;;
2308 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1a87de8d 2309 xm_file="xm-alloca.h ${xm_file}"
2d092ffa 2310 xm_defines="USG"
75bffa71 2311 if test x$gas = xyes
46f18e7b
RK
2312 then
2313 xmake_file=m68k/x-hp320g
2314 tm_file=m68k/hp320g.h
2315 else
2316 xmake_file=m68k/x-hp320
2317 tm_file=m68k/hpux7.h
2318 fi
46f18e7b
RK
2319 install_headers_dir=install-headers-cpio
2320 use_collect2=yes
2321 extra_headers=math-68881.h
c8db55b0 2322 float_format=m68k
46f18e7b
RK
2323 ;;
2324 m68k-hp-hpux*) # HP 9000 series 300
1a87de8d 2325 xm_file="xm-alloca.h ${xm_file}"
2d092ffa 2326 xm_defines="USG"
75bffa71 2327 if test x$gas = xyes
46f18e7b
RK
2328 then
2329 xmake_file=m68k/x-hp320g
2330 tm_file=m68k/hp320g.h
2331 else
2332 xmake_file=m68k/x-hp320
2333 tm_file=m68k/hp320.h
2334 fi
46f18e7b
RK
2335 install_headers_dir=install-headers-cpio
2336 use_collect2=yes
2337 extra_headers=math-68881.h
c8db55b0 2338 float_format=m68k
46f18e7b
RK
2339 ;;
2340 m68k-sun-mach*)
2341 tm_file=m68k/sun3mach.h
2342 use_collect2=yes
2343 extra_headers=math-68881.h
c8db55b0 2344 float_format=m68k
46f18e7b
RK
2345 ;;
2346 m68k-sony-newsos3*)
75bffa71 2347 if test x$gas = xyes
46f18e7b
RK
2348 then
2349 tm_file=m68k/news3gas.h
2350 else
2351 tm_file=m68k/news3.h
2352 fi
2353 use_collect2=yes
2354 extra_headers=math-68881.h
c8db55b0 2355 float_format=m68k
46f18e7b
RK
2356 ;;
2357 m68k-sony-bsd* | m68k-sony-newsos*)
75bffa71 2358 if test x$gas = xyes
46f18e7b
RK
2359 then
2360 tm_file=m68k/newsgas.h
2361 else
2362 tm_file=m68k/news.h
2363 fi
2364 use_collect2=yes
2365 extra_headers=math-68881.h
c8db55b0 2366 float_format=m68k
46f18e7b
RK
2367 ;;
2368 m68k-next-nextstep2*)
2369 tm_file=m68k/next21.h
61536478 2370 xm_file="m68k/xm-next.h ${xm_file}"
46f18e7b
RK
2371 tmake_file=m68k/t-next
2372 xmake_file=m68k/x-next
2373 extra_objs=nextstep.o
2374 extra_headers=math-68881.h
2375 use_collect2=yes
c8db55b0 2376 float_format=m68k
46f18e7b 2377 ;;
016cebc3
JL
2378changequote(,)dnl
2379 m68k-next-nextstep[34]*)
2380changequote([,])dnl
46f18e7b 2381 tm_file=m68k/next.h
61536478 2382 xm_file="m68k/xm-next.h ${xm_file}"
46f18e7b
RK
2383 tmake_file=m68k/t-next
2384 xmake_file=m68k/x-next
2385 extra_objs=nextstep.o
750930c1 2386 extra_parts="crtbegin.o crtend.o"
46f18e7b 2387 extra_headers=math-68881.h
c8db55b0 2388 float_format=m68k
75bffa71 2389 if test x$enable_threads = xyes; then
0bbb1697
RK
2390 thread_file='mach'
2391 fi
46f18e7b
RK
2392 ;;
2393 m68k-sun-sunos3*)
75bffa71 2394 if test x$with_fp = xno
46f18e7b
RK
2395 then
2396 tm_file=m68k/sun3n3.h
2397 else
2398 tm_file=m68k/sun3o3.h
c8db55b0 2399 float_format=m68k
46f18e7b
RK
2400 fi
2401 use_collect2=yes
2402 extra_headers=math-68881.h
2403 ;;
2404 m68k-sun-sunos*) # For SunOS 4 (the default).
75bffa71 2405 if test x$with_fp = xno
46f18e7b
RK
2406 then
2407 tm_file=m68k/sun3n.h
2408 else
2409 tm_file=m68k/sun3.h
c8db55b0 2410 float_format=m68k
46f18e7b 2411 fi
46f18e7b
RK
2412 use_collect2=yes
2413 extra_headers=math-68881.h
2414 ;;
2415 m68k-wrs-vxworks*)
2416 tm_file=m68k/vxm68k.h
2417 tmake_file=m68k/t-vxworks68
2418 extra_headers=math-68881.h
7cc34889 2419 thread_file='vxworks'
c8db55b0 2420 float_format=m68k
46f18e7b
RK
2421 ;;
2422 m68k-*-aout*)
2423 tmake_file=m68k/t-m68kbare
2424 tm_file="m68k/m68k-aout.h libgloss.h"
2425 extra_headers=math-68881.h
c8db55b0 2426 float_format=m68k
46f18e7b
RK
2427 ;;
2428 m68k-*-coff*)
2429 tmake_file=m68k/t-m68kbare
261f21e7 2430 tm_file="m68k/m68k-coff.h dbx.h"
46f18e7b 2431 extra_headers=math-68881.h
c8db55b0 2432 float_format=m68k
46f18e7b 2433 ;;
d1be3be3 2434 m68020-*-elf* | m68k-*-elf*)
7aae67a2 2435 tm_file="m68k/m68020-elf.h"
d1be3be3
JW
2436 xm_file=m68k/xm-m68kv.h
2437 tmake_file=m68k/t-m68kelf
2438 header_files=math-68881.h
2439 ;;
46f18e7b 2440 m68k-*-lynxos*)
75bffa71 2441 if test x$gas = xyes
46f18e7b
RK
2442 then
2443 tm_file=m68k/lynx.h
2444 else
2445 tm_file=m68k/lynx-ng.h
2446 fi
2447 xm_file=m68k/xm-lynx.h
2448 xmake_file=x-lynx
2449 tmake_file=m68k/t-lynx
2450 extra_headers=math-68881.h
c8db55b0 2451 float_format=m68k
46f18e7b 2452 ;;
58600d24 2453 m68k*-*-netbsd*)
46f18e7b 2454 tm_file=m68k/netbsd.h
e47f44f4 2455 tmake_file=t-netbsd
c8db55b0 2456 float_format=m68k
ed4acb3b 2457 use_collect2=yes
46f18e7b 2458 ;;
1b4a979b
ME
2459 m68k*-*-openbsd*)
2460 float_format=m68k
2461 # we need collect2 until our bug is fixed...
2462 use_collect2=yes
2463 ;;
46f18e7b 2464 m68k-*-sysv3*) # Motorola m68k's running system V.3
61536478
JL
2465 xm_file="xm-alloca.h ${xm_file}"
2466 xm_defines=USG
46f18e7b
RK
2467 xmake_file=m68k/x-m68kv
2468 extra_parts="crtbegin.o crtend.o"
2469 extra_headers=math-68881.h
c8db55b0 2470 float_format=m68k
46f18e7b
RK
2471 ;;
2472 m68k-*-sysv4*) # Motorola m68k's running system V.4
2473 tm_file=m68k/m68kv4.h
61536478
JL
2474 xm_file="xm-alloca.h ${xm_file}"
2475 xm_defines=USG
46f18e7b
RK
2476 tmake_file=t-svr4
2477 extra_parts="crtbegin.o crtend.o"
2478 extra_headers=math-68881.h
c8db55b0 2479 float_format=m68k
46f18e7b 2480 ;;
57119aa9 2481 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
61536478 2482 # with a.out format
46f18e7b
RK
2483 xmake_file=x-linux
2484 tm_file=m68k/linux-aout.h
2485 tmake_file="t-linux-aout m68k/t-linux-aout"
46f18e7b 2486 extra_headers=math-68881.h
c8db55b0 2487 float_format=m68k
46f18e7b 2488 gnu_ld=yes
46f18e7b 2489 ;;
57119aa9 2490 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
61536478
JL
2491 # with ELF format using the
2492 # GNU/Linux C library 5
2493 xmake_file=x-linux
95fd3981
RK
2494 tm_file=m68k/linux.h
2495 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2496 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
95fd3981 2497 extra_headers=math-68881.h
c8db55b0 2498 float_format=m68k
95fd3981
RK
2499 gnu_ld=yes
2500 ;;
57119aa9 2501 m68k-*-linux*) # Motorola m68k's running GNU/Linux
61536478
JL
2502 # with ELF format using glibc 2
2503 # aka the GNU/Linux C library 6.
2504 xmake_file=x-linux
46f18e7b
RK
2505 tm_file=m68k/linux.h
2506 tmake_file="t-linux m68k/t-linux"
2507 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
46f18e7b 2508 extra_headers=math-68881.h
c8db55b0 2509 float_format=m68k
46f18e7b 2510 gnu_ld=yes
75bffa71 2511 if test x$enable_threads = xyes; then
95fd3981
RK
2512 thread_file='posix'
2513 fi
46f18e7b
RK
2514 ;;
2515 m68k-*-psos*)
2516 tmake_file=m68k/t-m68kbare
2517 tm_file=m68k/m68k-psos.h
2518 extra_headers=math-68881.h
c8db55b0 2519 float_format=m68k
46f18e7b 2520 ;;
6e5138f0 2521 m68k-*-rtemscoff*)
46f18e7b
RK
2522 tmake_file="m68k/t-m68kbare t-rtems"
2523 tm_file=m68k/rtems.h
2524 extra_headers=math-68881.h
c8db55b0 2525 float_format=m68k
46f18e7b 2526 ;;
6e5138f0 2527 m68k-*-rtemself*|m68k-*-rtems*)
d1476635
JS
2528 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2529 tm_file=m68k/rtemself.h
2530 extra_headers=math-68881.h
2531 float_format=m68k
2532 ;;
46f18e7b
RK
2533 m88k-dg-dgux*)
2534 case $machine in
2535 m88k-dg-dguxbcs*)
2536 tm_file=m88k/dguxbcs.h
2537 tmake_file=m88k/t-dguxbcs
2538 ;;
2539 *)
2540 tm_file=m88k/dgux.h
2541 tmake_file=m88k/t-dgux
2542 ;;
2543 esac
2544 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
46f18e7b 2545 xmake_file=m88k/x-dgux
75bffa71 2546 if test x$gas = xyes
46f18e7b
RK
2547 then
2548 tmake_file=m88k/t-dgux-gas
2549 fi
46f18e7b
RK
2550 ;;
2551 m88k-dolphin-sysv3*)
2552 tm_file=m88k/dolph.h
2553 extra_parts="crtbegin.o crtend.o"
61536478 2554 xm_file="m88k/xm-sysv3.h ${xm_file}"
46f18e7b 2555 xmake_file=m88k/x-dolph
75bffa71 2556 if test x$gas = xyes
46f18e7b
RK
2557 then
2558 tmake_file=m88k/t-m88k-gas
2559 fi
2560 ;;
2561 m88k-tektronix-sysv3)
2562 tm_file=m88k/tekXD88.h
2563 extra_parts="crtbegin.o crtend.o"
61536478 2564 xm_file="m88k/xm-sysv3.h ${xm_file}"
46f18e7b 2565 xmake_file=m88k/x-tekXD88
75bffa71 2566 if test x$gas = xyes
46f18e7b
RK
2567 then
2568 tmake_file=m88k/t-m88k-gas
2569 fi
2570 ;;
2571 m88k-*-aout*)
2572 tm_file=m88k/m88k-aout.h
2573 ;;
2574 m88k-*-coff*)
2575 tm_file=m88k/m88k-coff.h
2576 tmake_file=m88k/t-bug
2577 ;;
2578 m88k-*-luna*)
2579 tm_file=m88k/luna.h
2580 extra_parts="crtbegin.o crtend.o"
75bffa71 2581 if test x$gas = xyes
46f18e7b
RK
2582 then
2583 tmake_file=m88k/t-luna-gas
2584 else
2585 tmake_file=m88k/t-luna
2586 fi
2587 ;;
1b4a979b
ME
2588 m88k-*-openbsd*)
2589 tmake_file="${tmake_file} m88k/t-luna-gas"
891a3cfe
JL
2590 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2591 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
1b4a979b 2592 ;;
46f18e7b
RK
2593 m88k-*-sysv3*)
2594 tm_file=m88k/sysv3.h
2595 extra_parts="crtbegin.o crtend.o"
61536478 2596 xm_file="m88k/xm-sysv3.h ${xm_file}"
46f18e7b 2597 xmake_file=m88k/x-sysv3
75bffa71 2598 if test x$gas = xyes
46f18e7b
RK
2599 then
2600 tmake_file=m88k/t-m88k-gas
2601 fi
2602 ;;
2603 m88k-*-sysv4*)
2604 tm_file=m88k/sysv4.h
2605 extra_parts="crtbegin.o crtend.o"
2606 xmake_file=m88k/x-sysv4
2607 tmake_file=m88k/t-sysv4
2608 ;;
789a3090
NC
2609 mcore-*-elf)
2610 tm_file=mcore/mcore-elf.h
2611 tmake_file=mcore/t-mcore
2612 ;;
2613 mcore-*-pe*)
2614 tm_file=mcore/mcore-pe.h
2615 tmake_file=mcore/t-mcore-pe
2616 ;;
46f18e7b 2617 mips-sgi-irix6*) # SGI System V.4., IRIX 6
05476613
MM
2618 if test "x$gnu_ld" = xyes
2619 then
2620 tm_file="mips/iris6.h mips/iris6gld.h"
05476613
MM
2621 else
2622 tm_file=mips/iris6.h
05476613 2623 fi
e3f5cc86 2624 tmake_file=mips/t-iris6
46f18e7b 2625 xm_file=mips/xm-iris6.h
46f18e7b 2626 xmake_file=mips/x-iris6
04069e5c 2627# if test x$enable_threads = xyes; then
6e148807 2628# thread_file='irix'
04069e5c 2629# fi
46f18e7b 2630 ;;
98bd9f0f 2631 mips-wrs-vxworks)
7aae67a2 2632 tm_file="mips/elf.h mips/vxworks.h"
98bd9f0f
DB
2633 tmake_file=mips/t-ecoff
2634 gas=yes
2635 gnu_ld=yes
2636 extra_parts="crtbegin.o crtend.o"
e9c0315e 2637 thread_file='vxworks'
98bd9f0f 2638 ;;
46f18e7b 2639 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
61536478 2640 tm_file="mips/iris6.h mips/cross64.h"
74c55ab0
JW
2641 xm_defines=USG
2642 xm_file="mips/xm-iris5.h"
46f18e7b
RK
2643 xmake_file=mips/x-iris
2644 tmake_file=mips/t-cross64
2645 # See comment in mips/iris[56].h files.
2646 use_collect2=yes
04069e5c 2647# if test x$enable_threads = xyes; then
6e148807 2648# thread_file='irix'
04069e5c 2649# fi
46f18e7b
RK
2650 ;;
2651 mips-sni-sysv4)
75bffa71 2652 if test x$gas = xyes
46f18e7b 2653 then
75bffa71 2654 if test x$stabs = xyes
46f18e7b
RK
2655 then
2656 tm_file=mips/iris5gdb.h
2657 else
61536478 2658 tm_file="mips/sni-svr4.h mips/sni-gas.h"
46f18e7b
RK
2659 fi
2660 else
2661 tm_file=mips/sni-svr4.h
2662 fi
61536478 2663 xm_defines=USG
46f18e7b
RK
2664 xmake_file=mips/x-sni-svr4
2665 tmake_file=mips/t-mips-gas
75bffa71 2666 if test x$gnu_ld != xyes
46f18e7b
RK
2667 then
2668 use_collect2=yes
2669 fi
46f18e7b
RK
2670 ;;
2671 mips-sgi-irix5*) # SGI System V.4., IRIX 5
75bffa71 2672 if test x$gas = xyes
46f18e7b 2673 then
61536478 2674 tm_file="mips/iris5.h mips/iris5gas.h"
75bffa71 2675 if test x$stabs = xyes
46f18e7b
RK
2676 then
2677 tm_file="${tm_file} dbx.h"
2678 fi
2679 else
2680 tm_file=mips/iris5.h
2681 fi
74c55ab0
JW
2682 xm_defines=USG
2683 xm_file="mips/xm-iris5.h"
46f18e7b
RK
2684 xmake_file=mips/x-iris
2685 # mips-tfile doesn't work yet
2686 tmake_file=mips/t-mips-gas
2687 # See comment in mips/iris5.h file.
2688 use_collect2=yes
04069e5c 2689# if test x$enable_threads = xyes; then
6e148807 2690# thread_file='irix'
04069e5c 2691# fi
46f18e7b
RK
2692 ;;
2693 mips-sgi-irix4loser*) # Mostly like a MIPS.
61536478 2694 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
75bffa71 2695 if test x$stabs = xyes; then
46f18e7b
RK
2696 tm_file="${tm_file} dbx.h"
2697 fi
61536478 2698 xm_defines=USG
46f18e7b 2699 xmake_file=mips/x-iris
75bffa71 2700 if test x$gas = xyes
46f18e7b
RK
2701 then
2702 tmake_file=mips/t-mips-gas
2703 else
2704 extra_passes="mips-tfile mips-tdump"
2705 fi
75bffa71 2706 if test x$gnu_ld != xyes
46f18e7b
RK
2707 then
2708 use_collect2=yes
2709 fi
04069e5c 2710# if test x$enable_threads = xyes; then
6e148807 2711# thread_file='irix'
04069e5c 2712# fi
46f18e7b
RK
2713 ;;
2714 mips-sgi-irix4*) # Mostly like a MIPS.
61536478 2715 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
75bffa71 2716 if test x$stabs = xyes; then
46f18e7b
RK
2717 tm_file="${tm_file} dbx.h"
2718 fi
61536478 2719 xm_defines=USG
46f18e7b 2720 xmake_file=mips/x-iris
75bffa71 2721 if test x$gas = xyes
46f18e7b
RK
2722 then
2723 tmake_file=mips/t-mips-gas
2724 else
2725 extra_passes="mips-tfile mips-tdump"
2726 fi
75bffa71 2727 if test x$gnu_ld != xyes
46f18e7b
RK
2728 then
2729 use_collect2=yes
2730 fi
04069e5c 2731# if test x$enable_threads = xyes; then
6e148807 2732# thread_file='irix'
04069e5c 2733# fi
46f18e7b
RK
2734 ;;
2735 mips-sgi-*) # Mostly like a MIPS.
61536478 2736 tm_file="mips/iris3.h ${tm_file}"
75bffa71 2737 if test x$stabs = xyes; then
46f18e7b
RK
2738 tm_file="${tm_file} dbx.h"
2739 fi
61536478 2740 xm_defines=USG
46f18e7b 2741 xmake_file=mips/x-iris3
75bffa71 2742 if test x$gas = xyes
46f18e7b
RK
2743 then
2744 tmake_file=mips/t-mips-gas
2745 else
2746 extra_passes="mips-tfile mips-tdump"
2747 fi
75bffa71 2748 if test x$gnu_ld != xyes
46f18e7b
RK
2749 then
2750 use_collect2=yes
2751 fi
2752 ;;
2753 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
61536478 2754 tm_file="mips/osfrose.h ${tm_file}"
46f18e7b
RK
2755 xmake_file=mips/x-osfrose
2756 tmake_file=mips/t-osfrose
2757 extra_objs=halfpic.o
2758 use_collect2=yes
2759 ;;
2760 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2761 tm_file=mips/dec-osf1.h
75bffa71 2762 if test x$stabs = xyes; then
46f18e7b
RK
2763 tm_file="${tm_file} dbx.h"
2764 fi
2765 xmake_file=mips/x-dec-osf1
75bffa71 2766 if test x$gas = xyes
46f18e7b
RK
2767 then
2768 tmake_file=mips/t-mips-gas
2769 else
2770 tmake_file=mips/t-ultrix
2771 extra_passes="mips-tfile mips-tdump"
2772 fi
75bffa71 2773 if test x$gnu_ld != xyes
46f18e7b
RK
2774 then
2775 use_collect2=yes
2776 fi
2777 ;;
2778 mips-dec-bsd*) # Decstation running 4.4 BSD
2779 tm_file=mips/dec-bsd.h
75bffa71 2780 if test x$gas = xyes
46f18e7b
RK
2781 then
2782 tmake_file=mips/t-mips-gas
2783 else
2784 tmake_file=mips/t-ultrix
2785 extra_passes="mips-tfile mips-tdump"
2786 fi
75bffa71 2787 if test x$gnu_ld != xyes
46f18e7b
RK
2788 then
2789 use_collect2=yes
2790 fi
2791 ;;
58600d24 2792 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
46f18e7b 2793 tm_file=mips/netbsd.h
be1ed94f 2794 # On NetBSD, the headers are already okay, except for math.h.
e47f44f4 2795 tmake_file=t-netbsd
46f18e7b 2796 ;;
6ed6b84a 2797 mips*-*-linux*) # Linux MIPS, either endian.
18cae839 2798 xmake_file=x-linux
6ed6b84a
AJ
2799 case $machine in
2800 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2801 *) tm_file="mips/elf.h mips/linux.h" ;;
2802 esac
2803 tmake_file=t-linux
e86e6730 2804 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
18cae839
RL
2805 gnu_ld=yes
2806 gas=yes
6ed6b84a
AJ
2807 if test x$enable_threads = xyes; then
2808 thread_file='posix'
2809 fi
18cae839 2810 ;;
1b4a979b
ME
2811 mips*el-*-openbsd*) # mips little endian
2812 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1b4a979b
ME
2813 ;;
2814 mips*-*-openbsd*) # mips big endian
2815 target_cpu_default="MASK_GAS|MASK_ABICALLS"
9e28024a 2816 tm_file="mips/openbsd-be.h ${tm_file}"
1b4a979b 2817 ;;
46f18e7b 2818 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
61536478 2819 tm_file="mips/news4.h ${tm_file}"
75bffa71 2820 if test x$stabs = xyes; then
46f18e7b
RK
2821 tm_file="${tm_file} dbx.h"
2822 fi
75bffa71 2823 if test x$gas = xyes
46f18e7b
RK
2824 then
2825 tmake_file=mips/t-mips-gas
2826 else
2827 extra_passes="mips-tfile mips-tdump"
2828 fi
75bffa71 2829 if test x$gnu_ld != xyes
46f18e7b
RK
2830 then
2831 use_collect2=yes
2832 fi
2833 xmake_file=mips/x-sony
2834 ;;
2835 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2836 # That is based on svr4.
2837 # t-svr4 is not right because this system doesn't use ELF.
61536478 2838 tm_file="mips/news5.h ${tm_file}"
75bffa71 2839 if test x$stabs = xyes; then
46f18e7b
RK
2840 tm_file="${tm_file} dbx.h"
2841 fi
61536478 2842 xm_defines=USG
75bffa71 2843 if test x$gas = xyes
46f18e7b
RK
2844 then
2845 tmake_file=mips/t-mips-gas
2846 else
2847 extra_passes="mips-tfile mips-tdump"
2848 fi
75bffa71 2849 if test x$gnu_ld != xyes
46f18e7b
RK
2850 then
2851 use_collect2=yes
2852 fi
2853 ;;
2854 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
61536478 2855 tm_file="mips/svr4-5.h mips/svr4-t.h"
75bffa71 2856 if test x$stabs = xyes; then
46f18e7b
RK
2857 tm_file="${tm_file} dbx.h"
2858 fi
61536478 2859 xm_defines=USG
46f18e7b 2860 xmake_file=mips/x-sysv
75bffa71 2861 if test x$gas = xyes
46f18e7b
RK
2862 then
2863 tmake_file=mips/t-mips-gas
2864 extra_parts="crtbegin.o crtend.o"
2865 else
2866 tmake_file=mips/t-mips
2867 extra_passes="mips-tfile mips-tdump"
2868 fi
75bffa71 2869 if test x$gnu_ld != xyes
46f18e7b
RK
2870 then
2871 use_collect2=yes
2872 fi
46f18e7b
RK
2873 ;;
2874 mips-*-ultrix* | mips-dec-mach3) # Decstation.
61536478 2875 tm_file="mips/ultrix.h ${tm_file}"
75bffa71 2876 if test x$stabs = xyes; then
46f18e7b
RK
2877 tm_file="${tm_file} dbx.h"
2878 fi
2879 xmake_file=mips/x-ultrix
75bffa71 2880 if test x$gas = xyes
46f18e7b
RK
2881 then
2882 tmake_file=mips/t-mips-gas
2883 else
2884 tmake_file=mips/t-ultrix
2885 extra_passes="mips-tfile mips-tdump"
2886 fi
75bffa71 2887 if test x$gnu_ld != xyes
46f18e7b
RK
2888 then
2889 use_collect2=yes
2890 fi
2891 ;;
75bffa71
ILT
2892changequote(,)dnl
2893 mips-*-riscos[56789]bsd*)
2894changequote([,])dnl
46f18e7b 2895 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
75bffa71 2896 if test x$stabs = xyes; then
46f18e7b
RK
2897 tm_file="${tm_file} dbx.h"
2898 fi
75bffa71 2899 if test x$gas = xyes
46f18e7b
RK
2900 then
2901 tmake_file=mips/t-bsd-gas
2902 else
2903 tmake_file=mips/t-bsd
2904 extra_passes="mips-tfile mips-tdump"
2905 fi
75bffa71 2906 if test x$gnu_ld != xyes
46f18e7b
RK
2907 then
2908 use_collect2=yes
2909 fi
46f18e7b 2910 ;;
75bffa71
ILT
2911changequote(,)dnl
2912 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2913changequote([,])dnl
61536478 2914 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
75bffa71 2915 if test x$stabs = xyes; then
46f18e7b
RK
2916 tm_file="${tm_file} dbx.h"
2917 fi
75bffa71 2918 if test x$gas = xyes
46f18e7b
RK
2919 then
2920 tmake_file=mips/t-bsd-gas
2921 else
2922 tmake_file=mips/t-bsd
2923 extra_passes="mips-tfile mips-tdump"
2924 fi
75bffa71 2925 if test x$gnu_ld != xyes
46f18e7b
RK
2926 then
2927 use_collect2=yes
2928 fi
46f18e7b 2929 ;;
75bffa71
ILT
2930changequote(,)dnl
2931 mips-*-riscos[56789]sysv4*)
2932changequote([,])dnl
46f18e7b 2933 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
75bffa71 2934 if test x$stabs = xyes; then
46f18e7b
RK
2935 tm_file="${tm_file} dbx.h"
2936 fi
46f18e7b 2937 xmake_file=mips/x-sysv
75bffa71 2938 if test x$gas = xyes
46f18e7b
RK
2939 then
2940 tmake_file=mips/t-svr4-gas
2941 else
2942 tmake_file=mips/t-svr4
2943 extra_passes="mips-tfile mips-tdump"
2944 fi
75bffa71 2945 if test x$gnu_ld != xyes
46f18e7b
RK
2946 then
2947 use_collect2=yes
2948 fi
46f18e7b 2949 ;;
75bffa71
ILT
2950changequote(,)dnl
2951 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2952changequote([,])dnl
61536478 2953 tm_file="mips/svr4-4.h ${tm_file}"
75bffa71 2954 if test x$stabs = xyes; then
46f18e7b
RK
2955 tm_file="${tm_file} dbx.h"
2956 fi
61536478 2957 xm_defines=USG
46f18e7b 2958 xmake_file=mips/x-sysv
75bffa71 2959 if test x$gas = xyes
46f18e7b
RK
2960 then
2961 tmake_file=mips/t-svr4-gas
2962 else
2963 tmake_file=mips/t-svr4
2964 extra_passes="mips-tfile mips-tdump"
2965 fi
75bffa71 2966 if test x$gnu_ld != xyes
46f18e7b
RK
2967 then
2968 use_collect2=yes
2969 fi
46f18e7b 2970 ;;
75bffa71
ILT
2971changequote(,)dnl
2972 mips-*-riscos[56789]sysv*)
2973changequote([,])dnl
46f18e7b 2974 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
75bffa71 2975 if test x$stabs = xyes; then
46f18e7b
RK
2976 tm_file="${tm_file} dbx.h"
2977 fi
61536478 2978 xm_defines=USG
46f18e7b 2979 xmake_file=mips/x-sysv
75bffa71 2980 if test x$gas = xyes
46f18e7b
RK
2981 then
2982 tmake_file=mips/t-svr3-gas
2983 else
2984 tmake_file=mips/t-svr3
2985 extra_passes="mips-tfile mips-tdump"
2986 fi
75bffa71 2987 if test x$gnu_ld != xyes
46f18e7b
RK
2988 then
2989 use_collect2=yes
2990 fi
46f18e7b
RK
2991 ;;
2992 mips-*-sysv* | mips-*-riscos*sysv*)
61536478 2993 tm_file="mips/svr3-4.h ${tm_file}"
75bffa71 2994 if test x$stabs = xyes; then
46f18e7b
RK
2995 tm_file="${tm_file} dbx.h"
2996 fi
61536478 2997 xm_defines=USG
46f18e7b 2998 xmake_file=mips/x-sysv
75bffa71 2999 if test x$gas = xyes
46f18e7b
RK
3000 then
3001 tmake_file=mips/t-svr3-gas
3002 else
3003 tmake_file=mips/t-svr3
3004 extra_passes="mips-tfile mips-tdump"
3005 fi
75bffa71 3006 if test x$gnu_ld != xyes
46f18e7b
RK
3007 then
3008 use_collect2=yes
3009 fi
46f18e7b 3010 ;;
75bffa71
ILT
3011changequote(,)dnl
3012 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3013changequote([,])dnl
46f18e7b 3014 tm_file=mips/mips-5.h
75bffa71 3015 if test x$stabs = xyes; then
46f18e7b
RK
3016 tm_file="${tm_file} dbx.h"
3017 fi
75bffa71 3018 if test x$gas = xyes
46f18e7b
RK
3019 then
3020 tmake_file=mips/t-mips-gas
3021 else
3022 extra_passes="mips-tfile mips-tdump"
3023 fi
75bffa71 3024 if test x$gnu_ld != xyes
46f18e7b
RK
3025 then
3026 use_collect2=yes
3027 fi
46f18e7b
RK
3028 ;;
3029 mips-*-gnu*)
3030 ;;
3031 mipsel-*-ecoff*)
3032 tm_file=mips/ecoffl.h
75bffa71 3033 if test x$stabs = xyes; then
46f18e7b
RK
3034 tm_file="${tm_file} dbx.h"
3035 fi
3036 tmake_file=mips/t-ecoff
3037 ;;
3038 mips-*-ecoff*)
1be12a4a 3039 tm_file="gofast.h mips/ecoff.h"
75bffa71 3040 if test x$stabs = xyes; then
46f18e7b
RK
3041 tm_file="${tm_file} dbx.h"
3042 fi
3043 tmake_file=mips/t-ecoff
46f18e7b
RK
3044 ;;
3045 mipsel-*-elf*)
7aae67a2 3046 tm_file="mips/elfl.h"
d8265d29 3047 tmake_file=mips/t-elf
46f18e7b
RK
3048 ;;
3049 mips-*-elf*)
d8265d29
CM
3050 tm_file="mips/elf.h"
3051 tmake_file=mips/t-elf
46f18e7b
RK
3052 ;;
3053 mips64el-*-elf*)
d8265d29
CM
3054 tm_file="mips/elfl64.h"
3055 tmake_file=mips/t-elf
46f18e7b
RK
3056 ;;
3057 mips64orionel-*-elf*)
7aae67a2 3058 tm_file="mips/elforion.h mips/elfl64.h"
d8265d29 3059 tmake_file=mips/t-elf
46f18e7b
RK
3060 ;;
3061 mips64-*-elf*)
d8265d29
CM
3062 tm_file="mips/elf64.h"
3063 tmake_file=mips/t-elf
46f18e7b
RK
3064 ;;
3065 mips64orion-*-elf*)
7aae67a2 3066 tm_file="mips/elforion.h mips/elf64.h"
d8265d29 3067 tmake_file=mips/t-elf
46f18e7b
RK
3068 ;;
3069 mips64orion-*-rtems*)
6e9856ba 3070 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
d1476635 3071 tmake_file="mips/t-elf t-rtems"
46f18e7b 3072 ;;
e9a25f70 3073 mipstx39el-*-elf*)
d8265d29 3074 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
09e4daf5 3075 tmake_file=mips/t-r3900
e9a25f70
JL
3076 ;;
3077 mipstx39-*-elf*)
d8265d29 3078 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
09e4daf5 3079 tmake_file=mips/t-r3900
e9a25f70 3080 ;;
46f18e7b 3081 mips-*-*) # Default MIPS RISC-OS 4.0.
75bffa71 3082 if test x$stabs = xyes; then
46f18e7b
RK
3083 tm_file="${tm_file} dbx.h"
3084 fi
75bffa71 3085 if test x$gas = xyes
46f18e7b
RK
3086 then
3087 tmake_file=mips/t-mips-gas
3088 else
3089 extra_passes="mips-tfile mips-tdump"
3090 fi
75bffa71 3091 if test x$gnu_ld != xyes
46f18e7b
RK
3092 then
3093 use_collect2=yes
3094 fi
3095 ;;
cef64ec4 3096 mn10200-*-*)
5e3c02a8 3097 float_format=i32
cef64ec4
RK
3098 cpu_type=mn10200
3099 tm_file="mn10200/mn10200.h"
75bffa71 3100 if test x$stabs = xyes
cef64ec4
RK
3101 then
3102 tm_file="${tm_file} dbx.h"
3103 fi
3104 use_collect2=no
3105 ;;
46f18e7b
RK
3106 mn10300-*-*)
3107 cpu_type=mn10300
3108 tm_file="mn10300/mn10300.h"
75bffa71 3109 if test x$stabs = xyes
46f18e7b
RK
3110 then
3111 tm_file="${tm_file} dbx.h"
3112 fi
3113 use_collect2=no
3114 ;;
3115 ns32k-encore-bsd*)
3116 tm_file=ns32k/encore.h
3117 use_collect2=yes
3118 ;;
3119 ns32k-sequent-bsd*)
3120 tm_file=ns32k/sequent.h
3121 use_collect2=yes
3122 ;;
3123 ns32k-tek6100-bsd*)
3124 tm_file=ns32k/tek6100.h
46f18e7b
RK
3125 use_collect2=yes
3126 ;;
3127 ns32k-tek6200-bsd*)
3128 tm_file=ns32k/tek6200.h
46f18e7b
RK
3129 use_collect2=yes
3130 ;;
46f18e7b
RK
3131 ns32k-merlin-*)
3132 tm_file=ns32k/merlin.h
3133 use_collect2=yes
3134 ;;
3135 ns32k-pc532-mach*)
3136 tm_file=ns32k/pc532-mach.h
3137 use_collect2=yes
3138 ;;
3139 ns32k-pc532-minix*)
3140 tm_file=ns32k/pc532-min.h
61536478
JL
3141 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3142 xm_defines=USG
46f18e7b
RK
3143 use_collect2=yes
3144 ;;
58600d24 3145 ns32k-*-netbsd*)
46f18e7b 3146 tm_file=ns32k/netbsd.h
641d4216 3147 xm_file="ns32k/xm-netbsd.h ${xm_file}"
be1ed94f 3148 # On NetBSD, the headers are already okay, except for math.h.
e47f44f4 3149 tmake_file=t-netbsd
ed4acb3b 3150 use_collect2=yes
46f18e7b
RK
3151 ;;
3152 pdp11-*-bsd)
3153 tm_file="${tm_file} pdp11/2bsd.h"
3154 ;;
3155 pdp11-*-*)
3156 ;;
d48120fe
DC
3157 avr-*-*)
3158 ;;
1b4a979b
ME
3159 ns32k-*-openbsd*)
3160 # Nothing special
3161 ;;
1b992148
SC
3162 pj*-linux*)
3163 tm_file="svr4.h pj/linux.h ${tm_file}"
3164 ;;
3165 pj-*)
3166 ;;
3167 pjl-*)
3168 tm_file="svr4.h pj/pjl.h ${tm_file}"
3169 ;;
3170
46f18e7b
RK
3171 romp-*-aos*)
3172 use_collect2=yes
3173 ;;
3174 romp-*-mach*)
3175 xmake_file=romp/x-mach
3176 use_collect2=yes
3177 ;;
1b4a979b
ME
3178 romp-*-openbsd*)
3179 # Nothing special
3180 ;;
3181 powerpc-*-openbsd*)
3182 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
1b4a979b 3183 ;;
c55dcc7d
FF
3184 powerpc-*-beos*)
3185 cpu_type=rs6000
3186 tm_file=rs6000/beos.h
3187 xm_file=rs6000/xm-beos.h
3188 tmake_file=rs6000/t-beos
3189 xmake_file=rs6000/x-beos
3190 ;;
b26e3a82 3191 powerpc-*-sysv*)
46f18e7b 3192 tm_file=rs6000/sysv4.h
2d092ffa 3193 xm_file="rs6000/xm-sysv4.h"
61536478 3194 xm_defines="USG POSIX"
46f18e7b 3195 extra_headers=ppc-asm.h
b26e3a82 3196 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
46f18e7b
RK
3197 xmake_file=rs6000/x-sysv4
3198 ;;
3199 powerpc-*-eabiaix*)
b26e3a82 3200 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
46f18e7b 3201 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
46f18e7b
RK
3202 extra_headers=ppc-asm.h
3203 ;;
3204 powerpc-*-eabisim*)
b26e3a82
GK
3205 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3206 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3207 extra_headers=ppc-asm.h
3208 ;;
3209 powerpc-*-elf*)
3210 tm_file="rs6000/sysv4.h"
46f18e7b 3211 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
46f18e7b
RK
3212 extra_headers=ppc-asm.h
3213 ;;
3214 powerpc-*-eabi*)
b26e3a82
GK
3215 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3216 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
46f18e7b
RK
3217 extra_headers=ppc-asm.h
3218 ;;
dec3e070 3219 powerpc-*-rtems*)
b26e3a82
GK
3220 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3221 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
46f18e7b
RK
3222 extra_headers=ppc-asm.h
3223 ;;
57119aa9 3224 powerpc-*-linux*libc1)
b26e3a82 3225 tm_file="rs6000/sysv4.h rs6000/linux.h"
ce514f57
FS
3226 xm_file=rs6000/xm-sysv4.h
3227 out_file=rs6000/rs6000.c
b26e3a82 3228 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
ce514f57 3229 xmake_file=x-linux
ce514f57 3230 extra_headers=ppc-asm.h
75bffa71 3231 if test x$enable_threads = xyes; then
ce514f57
FS
3232 thread_file='posix'
3233 fi
3234 ;;
57119aa9 3235 powerpc-*-linux*)
b26e3a82 3236 tm_file="rs6000/sysv4.h rs6000/linux.h"
2d092ffa 3237 xm_file="rs6000/xm-sysv4.h"
61536478 3238 xm_defines="USG ${xm_defines}"
dec3e070 3239 out_file=rs6000/rs6000.c
b26e3a82 3240 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
d7308c0c 3241 xmake_file=x-linux
46f18e7b 3242 extra_headers=ppc-asm.h
75bffa71 3243 if test x$enable_threads = xyes; then
d7308c0c
RK
3244 thread_file='posix'
3245 fi
46f18e7b 3246 ;;
7cc34889 3247 powerpc-wrs-vxworks*)
46f18e7b 3248 cpu_type=rs6000
2d092ffa 3249 xm_file="rs6000/xm-sysv4.h"
61536478 3250 xm_defines="USG POSIX"
b26e3a82 3251 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
46f18e7b
RK
3252 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3253 extra_headers=ppc-asm.h
7cc34889 3254 thread_file='vxworks'
46f18e7b 3255 ;;
9ebbca7d
GK
3256 powerpcle-wrs-vxworks*)
3257 cpu_type=rs6000
3258 xm_file="rs6000/xm-sysv4.h"
3259 xm_defines="USG POSIX"
b26e3a82 3260 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
9ebbca7d
GK
3261 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3262 extra_headers=ppc-asm.h
3263 thread_file='vxworks'
3264 ;;
b26e3a82
GK
3265 powerpcle-*-sysv*)
3266 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
2d092ffa 3267 xm_file="rs6000/xm-sysv4.h"
61536478 3268 xm_defines="USG POSIX"
b26e3a82 3269 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
46f18e7b
RK
3270 xmake_file=rs6000/x-sysv4
3271 extra_headers=ppc-asm.h
3272 ;;
b26e3a82
GK
3273 powerpcle-*-elf*)
3274 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3275 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3276 extra_headers=ppc-asm.h
3277 ;;
46f18e7b 3278 powerpcle-*-eabisim*)
b26e3a82 3279 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
46f18e7b 3280 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
46f18e7b
RK
3281 extra_headers=ppc-asm.h
3282 ;;
3283 powerpcle-*-eabi*)
b26e3a82
GK
3284 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3285 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
46f18e7b
RK
3286 extra_headers=ppc-asm.h
3287 ;;
46f18e7b 3288 powerpcle-*-solaris2*)
b26e3a82 3289 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
2d092ffa 3290 xm_file="rs6000/xm-sysv4.h"
61536478 3291 xm_defines="USG POSIX"
b26e3a82 3292 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
46f18e7b 3293 xmake_file=rs6000/x-sysv4
46f18e7b
RK
3294 extra_headers=ppc-asm.h
3295 ;;
75bffa71
ILT
3296changequote(,)dnl
3297 rs6000-ibm-aix3.[01]*)
3298changequote([,])dnl
46f18e7b
RK
3299 tm_file=rs6000/aix31.h
3300 xmake_file=rs6000/x-aix31
45e24d08 3301 float_format=none
46f18e7b
RK
3302 use_collect2=yes
3303 ;;
75bffa71
ILT
3304changequote(,)dnl
3305 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3306changequote([,])dnl
46f18e7b 3307 tm_file=rs6000/aix3newas.h
75bffa71 3308 if test x$host != x$target
46f18e7b
RK
3309 then
3310 tmake_file=rs6000/t-xnewas
3311 else
3312 tmake_file=rs6000/t-newas
3313 fi
45e24d08 3314 float_format=none
46f18e7b
RK
3315 use_collect2=yes
3316 ;;
75bffa71 3317changequote(,)dnl
05cea40f 3318 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
75bffa71 3319changequote([,])dnl
590e30e7 3320 tm_file=rs6000/aix41.h
75bffa71 3321 if test x$host != x$target
46f18e7b
RK
3322 then
3323 tmake_file=rs6000/t-xnewas
ffe51c8a
AO
3324 else
3325 tmake_file=rs6000/t-newas
3326 fi
3327 if test "$gnu_ld" = yes
3328 then
3329 xmake_file=rs6000/x-aix41-gld
d5b7b3ae 3330 else
2abdcaee 3331 tmake_file='rs6000/t-newas'
46f18e7b 3332 fi
9ebbca7d 3333 xmake_file=rs6000/x-aix41
45e24d08 3334 float_format=none
a260abc9
DE
3335 use_collect2=yes
3336 ;;
75bffa71 3337changequote(,)dnl
7747ddb3 3338 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
75bffa71 3339changequote([,])dnl
a260abc9 3340 tm_file=rs6000/aix43.h
9ebbca7d
GK
3341 tmake_file=rs6000/t-aix43
3342 xmake_file=rs6000/x-aix41
45e24d08 3343 float_format=none
a260abc9 3344 use_collect2=yes
a473fe45 3345 thread_file='aix'
a260abc9 3346 ;;
75bffa71
ILT
3347changequote(,)dnl
3348 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3349changequote([,])dnl
a260abc9 3350 tm_file=rs6000/aix43.h
9ebbca7d
GK
3351 tmake_file=rs6000/t-aix43
3352 xmake_file=rs6000/x-aix41
45e24d08 3353 float_format=none
46f18e7b 3354 use_collect2=yes
a473fe45 3355 thread_file='aix'
46f18e7b
RK
3356 ;;
3357 rs6000-ibm-aix*)
45e24d08 3358 float_format=none
46f18e7b
RK
3359 use_collect2=yes
3360 ;;
3361 rs6000-bull-bosx)
45e24d08 3362 float_format=none
46f18e7b
RK
3363 use_collect2=yes
3364 ;;
3365 rs6000-*-mach*)
3366 tm_file=rs6000/mach.h
61536478 3367 xm_file="${xm_file} rs6000/xm-mach.h"
46f18e7b
RK
3368 xmake_file=rs6000/x-mach
3369 use_collect2=yes
3370 ;;
3371 rs6000-*-lynxos*)
3372 tm_file=rs6000/lynx.h
3373 xm_file=rs6000/xm-lynx.h
3374 tmake_file=rs6000/t-rs6000
3375 xmake_file=rs6000/x-lynx
3376 use_collect2=yes
3377 ;;
3378 sh-*-elf*)
1a66cd67 3379 tmake_file="sh/t-sh sh/t-elf"
ffe51c8a 3380 tm_file="sh/sh.h sh/elf.h"
46f18e7b
RK
3381 float_format=sh
3382 ;;
b098f56d 3383 sh-*-rtemself*)
1a66cd67 3384 tmake_file="sh/t-sh sh/t-elf t-rtems"
ffe51c8a 3385 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
b098f56d
JS
3386 float_format=sh
3387 ;;
5d84b57e
JS
3388 sh-*-rtems*)
3389 tmake_file="sh/t-sh t-rtems"
ffe51c8a 3390 tm_file="sh/sh.h sh/rtems.h"
5d84b57e
JS
3391 float_format=sh
3392 ;;
93ca1662
NY
3393 sh-*-linux*)
3394 tm_file="sh/sh.h sh/elf.h sh/linux.h"
3395 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
3396 xmake_file=x-linux
3397 gas=yes gnu_ld=yes
3398 if test x$enable_threads = xyes; then
3399 thread_file='posix'
3400 fi
3401 float_format=sh
3402 ;;
46f18e7b
RK
3403 sh-*-*)
3404 float_format=sh
3405 ;;
3406 sparc-tti-*)
3407 tm_file=sparc/pbd.h
61536478
JL
3408 xm_file="xm-alloca.h ${xm_file}"
3409 xm_defines=USG
46f18e7b
RK
3410 ;;
3411 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3412 tm_file=sparc/vxsparc.h
3413 tmake_file=sparc/t-vxsparc
3414 use_collect2=yes
7cc34889 3415 thread_file='vxworks'
46f18e7b
RK
3416 ;;
3417 sparc-*-aout*)
3418 tmake_file=sparc/t-sparcbare
3419 tm_file="sparc/aout.h libgloss.h"
3420 ;;
3421 sparc-*-netbsd*)
3422 tm_file=sparc/netbsd.h
e47f44f4 3423 tmake_file=t-netbsd
ed4acb3b 3424 use_collect2=yes
46f18e7b 3425 ;;
1b4a979b
ME
3426 sparc-*-openbsd*)
3427 # we need collect2 until our bug is fixed...
3428 use_collect2=yes
3429 ;;
46f18e7b
RK
3430 sparc-*-bsd*)
3431 tm_file=sparc/bsd.h
3432 ;;
ac52b80b
DE
3433 sparc-*-elf*)
3434 tm_file=sparc/elf.h
3435 tmake_file=sparc/t-elf
3436 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3437 #float_format=i128
3438 float_format=i64
3439 ;;
57119aa9 3440 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
61536478 3441 xm_file="${xm_file} sparc/xm-linux.h"
46f18e7b
RK
3442 tm_file=sparc/linux-aout.h
3443 xmake_file=x-linux
46f18e7b 3444 gnu_ld=yes
46f18e7b 3445 ;;
57119aa9 3446 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
61536478 3447 xm_file="${xm_file} sparc/xm-linux.h"
2334126e 3448 xmake_file=x-linux
46f18e7b 3449 tm_file=sparc/linux.h
9d1ebd25 3450 tmake_file="t-linux t-linux-gnulibc1"
9ad03bc1 3451 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
9ad03bc1 3452 gnu_ld=yes
39c440fc 3453 float_format=sparc
9ad03bc1 3454 ;;
57119aa9 3455 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
61536478 3456 xm_file="${xm_file} sparc/xm-linux.h"
2334126e 3457 xmake_file=x-linux
9ad03bc1 3458 tm_file=sparc/linux.h
9d1ebd25 3459 tmake_file="t-linux"
9ad03bc1 3460 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
46f18e7b 3461 gnu_ld=yes
75bffa71 3462 if test x$enable_threads = xyes; then
9ad03bc1
RK
3463 thread_file='posix'
3464 fi
39c440fc 3465 float_format=sparc
46f18e7b
RK
3466 ;;
3467 sparc-*-lynxos*)
75bffa71 3468 if test x$gas = xyes
46f18e7b
RK
3469 then
3470 tm_file=sparc/lynx.h
3471 else
3472 tm_file=sparc/lynx-ng.h
3473 fi
3474 xm_file=sparc/xm-lynx.h
3475 tmake_file=sparc/t-sunos41
3476 xmake_file=x-lynx
3477 ;;
6e5138f0
JS
3478 sparc-*-rtemsaout*)
3479 tmake_file="sparc/t-sparcbare t-rtems"
3480 tm_file=sparc/rtems.h
dae3a2d3 3481 ;;
d1476635
JS
3482 sparc-*-rtems*|sparc-*-rtemself*)
3483 tm_file="sparc/rtemself.h"
3484 tmake_file="sparc/t-elf t-rtems"
3485 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3486 #float_format=i128
3487 float_format=i64
3488 ;;
d559a4db 3489 sparcv9-*-solaris2*)
3b1c302f
AO
3490 if test x$gnu_ld = xyes
3491 then
3492 tm_file=sparc/sol2-64.h
3493 else
3494 tm_file=sparc/sol2-sld-64.h
3495 fi
d559a4db
DM
3496 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3497 xm_defines="USG POSIX"
345a6161 3498 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
aefa45d3
RH
3499 if test x$gnu_ld = xyes; then
3500 tmake_file="$tmake_file sparc/t-slibgcc"
3501 else
3502 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3503 fi
d559a4db
DM
3504 xmake_file=sparc/x-sysv4
3505 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
027ea2a7 3506 float_format=none
d7496fbb 3507 if test x${enable_threads} = x ; then
d559a4db 3508 enable_threads=$have_pthread_h
d7496fbb 3509 if test x${enable_threads} = x ; then
d559a4db
DM
3510 enable_threads=$have_thread_h
3511 fi
3512 fi
d7496fbb
DM
3513 if test x${enable_threads} = xyes ; then
3514 if test x${have_pthread_h} = xyes ; then
d559a4db
DM
3515 thread_file='posix'
3516 else
3517 thread_file='solaris'
3518 fi
3519 fi
3520 ;;
ab87f8c8 3521 sparc-hal-solaris2*)
2d092ffa 3522 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
a5037588 3523 xm_defines="USG POSIX"
ab87f8c8
JL
3524 tm_file="sparc/sol2.h sparc/hal.h"
3525 tmake_file="sparc/t-halos sparc/t-sol2"
aefa45d3
RH
3526 if test x$gnu_ld = xyes; then
3527 tmake_file="$tmake_file sparc/t-slibgcc"
3528 else
3529 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3530 fi
ab87f8c8
JL
3531 xmake_file=sparc/x-sysv4
3532 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
a5037588 3533 case $machine in
e7651ec5 3534changequote(,)dnl
a5037588 3535 *-*-solaris2.[0-4])
e7651ec5 3536changequote([,])dnl
a5037588
CL
3537 float_format=i128
3538 ;;
3539 *)
3540 float_format=none
3541 ;;
3542 esac
3543 thread_file='solaris'
ab87f8c8 3544 ;;
46f18e7b 3545 sparc-*-solaris2*)
75bffa71 3546 if test x$gnu_ld = xyes
0a9bdce3
PE
3547 then
3548 tm_file=sparc/sol2.h
3549 else
3550 tm_file=sparc/sol2-sld.h
3551 fi
2d092ffa 3552 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
22ec3928 3553 xm_defines="USG POSIX"
46f18e7b 3554 tmake_file=sparc/t-sol2
aefa45d3
RH
3555 if test x$gnu_ld = xyes; then
3556 tmake_file="$tmake_file sparc/t-slibgcc"
3557 else
3558 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3559 fi
46f18e7b
RK
3560 xmake_file=sparc/x-sysv4
3561 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
72882e08
KG
3562# At the moment, 32-to-64 cross compilation doesn't work.
3563# case $machine in
3564#changequote(,)dnl
3565# *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3566#changequote([,])dnl
3567# *-*-solaris2*)
3568# if test x$gnu_ld = xyes
3569# then
3570# tm_file=sparc/sol2-64.h
3571# else
3572# tm_file=sparc/sol2-sld-64.h
3573# fi
3574# tmake_file="$tmake_file sparc/t-sol2-64"
3575# ;;
3576# esac
a242e6f5 3577 case $machine in
75bffa71
ILT
3578changequote(,)dnl
3579 *-*-solaris2.[0-4])
3580changequote([,])dnl
027ea2a7
JW
3581 float_format=i128
3582 ;;
61536478 3583 *)
027ea2a7
JW
3584 float_format=none
3585 ;;
61536478 3586 esac
75bffa71 3587 if test x${enable_threads} = x; then
f24af81b 3588 enable_threads=$have_pthread_h
75bffa71 3589 if test x${enable_threads} = x; then
f24af81b
TT
3590 enable_threads=$have_thread_h
3591 fi
3592 fi
75bffa71
ILT
3593 if test x${enable_threads} = xyes; then
3594 if test x${have_pthread_h} = xyes; then
f24af81b
TT
3595 thread_file='posix'
3596 else
0bbb1697 3597 thread_file='solaris'
f24af81b 3598 fi
0bbb1697 3599 fi
46f18e7b
RK
3600 ;;
3601 sparc-*-sunos4.0*)
3602 tm_file=sparc/sunos4.h
3603 tmake_file=sparc/t-sunos40
3604 use_collect2=yes
3605 ;;
3606 sparc-*-sunos4*)
3607 tm_file=sparc/sunos4.h
3608 tmake_file=sparc/t-sunos41
3609 use_collect2=yes
75bffa71 3610 if test x$gas = xyes; then
ca55abae
JM
3611 tm_file="${tm_file} sparc/sun4gas.h"
3612 fi
46f18e7b
RK
3613 ;;
3614 sparc-*-sunos3*)
3615 tm_file=sparc/sun4o3.h
3616 use_collect2=yes
3617 ;;
3618 sparc-*-sysv4*)
3619 tm_file=sparc/sysv4.h
2d092ffa 3620 xm_file="sparc/xm-sysv4.h"
61536478 3621 xm_defines="USG POSIX"
46f18e7b
RK
3622 tmake_file=t-svr4
3623 xmake_file=sparc/x-sysv4
3624 extra_parts="crtbegin.o crtend.o"
3625 ;;
3626 sparc-*-vxsim*)
2d092ffa 3627 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
f5963e61 3628 xm_defines="USG POSIX"
46f18e7b
RK
3629 tm_file=sparc/vxsim.h
3630 tmake_file=sparc/t-vxsparc
3631 xmake_file=sparc/x-sysv4
3632 ;;
3633 sparclet-*-aout*)
3634 tm_file="sparc/splet.h libgloss.h"
3635 tmake_file=sparc/t-splet
3636 ;;
3637 sparclite-*-coff*)
3638 tm_file="sparc/litecoff.h libgloss.h"
3639 tmake_file=sparc/t-sparclite
3640 ;;
3641 sparclite-*-aout*)
3642 tm_file="sparc/lite.h aoutos.h libgloss.h"
3643 tmake_file=sparc/t-sparclite
3644 ;;
28df4168 3645 sparclite-*-elf*)
6eccdc81 3646 tm_file="sparc/liteelf.h"
28df4168
JL
3647 tmake_file=sparc/t-sparclite
3648 extra_parts="crtbegin.o crtend.o"
3649 ;;
3650 sparc86x-*-aout*)
3651 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3652 tmake_file=sparc/t-sp86x
3653 ;;
3654 sparc86x-*-elf*)
6eccdc81 3655 tm_file="sparc/sp86x-elf.h"
28df4168
JL
3656 tmake_file=sparc/t-sp86x
3657 extra_parts="crtbegin.o crtend.o"
3658 ;;
46f18e7b
RK
3659 sparc64-*-aout*)
3660 tmake_file=sparc/t-sp64
3661 tm_file=sparc/sp64-aout.h
3662 ;;
3663 sparc64-*-elf*)
3664 tmake_file=sparc/t-sp64
3665 tm_file=sparc/sp64-elf.h
3666 extra_parts="crtbegin.o crtend.o"
3667 ;;
956d6950 3668 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
345a6161 3669 tmake_file="t-linux sparc/t-linux64"
2334126e
DE
3670 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3671 tm_file=sparc/linux64.h
3672 xmake_file=x-linux
345a6161 3673 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2334126e 3674 gnu_ld=yes
9ce13279
JJ
3675 if test x$enable_threads = xyes; then
3676 thread_file='posix'
3677 fi
39c440fc 3678 float_format=sparc
2334126e 3679 ;;
d5b7b3ae
RE
3680 thumb*-*-*)
3681 AC_MSG_ERROR([
3682*** The Thumb targets have been depreciated. The equivalent
3683*** ARM based toolchain can now generated Thumb instructions
3684*** when the -mthumb switch is given to the compiler.])
cb805c2d 3685 ;;
966f8bfd
JS
3686 v850-*-rtems*)
3687 cpu_type=v850
3688 tm_file="v850/rtems.h"
3689 xm_file="v850/xm-v850.h"
3690 tmake_file="v850/t-v850 t-rtems"
3691 if test x$stabs = xyes
3692 then
3693 tm_file="${tm_file} dbx.h"
3694 fi
3695 use_collect2=no
3696 ;;
f84271d9 3697 v850-*-*)
7a846a6c 3698 target_cpu_default="TARGET_CPU_generic"
f84271d9
JL
3699 cpu_type=v850
3700 tm_file="v850/v850.h"
3701 xm_file="v850/xm-v850.h"
62db76ee 3702 tmake_file=v850/t-v850
75bffa71 3703 if test x$stabs = xyes
f84271d9
JL
3704 then
3705 tm_file="${tm_file} dbx.h"
3706 fi
3707 use_collect2=no
3708 ;;
46f18e7b
RK
3709 vax-*-bsd*) # vaxen running BSD
3710 use_collect2=yes
3711 float_format=vax
3712 ;;
3713 vax-*-sysv*) # vaxen running system V
3714 tm_file="${tm_file} vax/vaxv.h"
61536478 3715 xm_defines=USG
46f18e7b
RK
3716 float_format=vax
3717 ;;
3718 vax-*-netbsd*)
3719 tm_file="${tm_file} netbsd.h vax/netbsd.h"
e47f44f4 3720 tmake_file=t-netbsd
46f18e7b 3721 float_format=vax
ed4acb3b 3722 use_collect2=yes
46f18e7b 3723 ;;
1b4a979b 3724 vax-*-openbsd*)
766518a0 3725 tmake_file="${tmake_file} vax/t-openbsd"
97f2b269
ME
3726 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3727 xm_file="xm-openbsd.h vax/xm-vax.h"
3728 float_format=vax
3729 use_collect2=yes
1b4a979b 3730 ;;
46f18e7b
RK
3731 vax-*-ultrix*) # vaxen running ultrix
3732 tm_file="${tm_file} vax/ultrix.h"
46f18e7b
RK
3733 float_format=vax
3734 ;;
3735 vax-*-vms*) # vaxen running VMS
3736 xm_file=vax/xm-vms.h
3737 tm_file=vax/vms.h
3738 float_format=vax
3739 ;;
3740 vax-*-*) # vax default entry
3741 float_format=vax
3742 ;;
3743 we32k-att-sysv*)
3744 xm_file="${xm_file} xm-svr3"
3745 use_collect2=yes
3746 ;;
3747 *)
3748 echo "Configuration $machine not supported" 1>&2
3749 exit 1
3750 ;;
3751 esac
3752
3753 case $machine in
57119aa9 3754 *-*-linux*)
61536478 3755 ;; # Existing GNU/Linux systems do not use the GNU setup.
46f18e7b
RK
3756 *-*-gnu*)
3757 # On the GNU system, the setup is just about the same on
3758 # each different CPU. The specific machines that GNU
3759 # supports are matched above and just set $cpu_type.
61536478 3760 xm_file="xm-gnu.h ${xm_file}"
46f18e7b 3761 tm_file=${cpu_type}/gnu.h
6b403743 3762 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
46f18e7b
RK
3763 # GNU always uses ELF.
3764 elf=yes
3765 # GNU tools are the only tools.
3766 gnu_ld=yes
3767 gas=yes
46f18e7b
RK
3768 xmake_file=x-linux # These details are the same as Linux.
3769 tmake_file=t-gnu # These are not.
3770 ;;
3771 *-*-sysv4*)
46f18e7b 3772 xmake_try_sysv=x-sysv
46f18e7b
RK
3773 install_headers_dir=install-headers-cpio
3774 ;;
3775 *-*-sysv*)
46f18e7b
RK
3776 install_headers_dir=install-headers-cpio
3777 ;;
3778 esac
3779
61536478 3780 # Distinguish i[34567]86
46f18e7b
RK
3781 # Also, do not run mips-tfile on MIPS if using gas.
3782 # Process --with-cpu= for PowerPC/rs6000
3783 target_cpu_default2=
3784 case $machine in
3785 i486-*-*)
3786 target_cpu_default2=1
3787 ;;
3788 i586-*-*)
83f4345f
PT
3789 case $target_alias in
3790 k6-*)
3791 target_cpu_default2=4
3792 ;;
3793 *)
3794 target_cpu_default2=2
3795 ;;
3796 esac
46f18e7b 3797 ;;
61536478 3798 i686-*-* | i786-*-*)
46f18e7b
RK
3799 target_cpu_default2=3
3800 ;;
08fc0184
RK
3801 alpha*-*-*)
3802 case $machine in
2618c083 3803changequote(,)dnl
d8ee3e20 3804 alphaev6[78]*)
2618c083 3805changequote([,])dnl
d8ee3e20
RH
3806 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3807 ;;
e9a25f70 3808 alphaev6*)
de4abb91 3809 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
e9a25f70
JL
3810 ;;
3811 alphapca56*)
fbb5ed67 3812 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
e9a25f70 3813 ;;
08fc0184 3814 alphaev56*)
e9a25f70 3815 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
08fc0184
RK
3816 ;;
3817 alphaev5*)
3818 target_cpu_default2="MASK_CPU_EV5"
3819 ;;
3820 esac
3821
75bffa71 3822 if test x$gas = xyes
46f18e7b 3823 then
75bffa71 3824 if test "$target_cpu_default2" = ""
08fc0184 3825 then
e71c3bb0 3826 target_cpu_default2="MASK_GAS"
08fc0184 3827 else
e71c3bb0 3828 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
08fc0184 3829 fi
46f18e7b
RK
3830 fi
3831 ;;
956d6950
JL
3832 arm*-*-*)
3833 case "x$with_cpu" in
3834 x)
3835 # The most generic
3836 target_cpu_default2="TARGET_CPU_generic"
3837 ;;
3838
3839 # Distinguish cores, and major variants
3840 # arm7m doesn't exist, but D & I don't affect code
7805bde9 3841changequote(,)dnl
956d6950
JL
3842 xarm[23678] | xarm250 | xarm[67][01]0 \
3843 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3844 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
8f8d3278 3845 | xstrongarm | xstrongarm110 | xstrongarm1100)
7805bde9 3846changequote([,])dnl
956d6950
JL
3847 target_cpu_default2="TARGET_CPU_$with_cpu"
3848 ;;
3849
3850 xyes | xno)
3851 echo "--with-cpu must be passed a value" 1>&2
3852 exit 1
3853 ;;
3854
3855 *)
75bffa71 3856 if test x$pass2done = xyes
956d6950
JL
3857 then
3858 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3859 exit 1
3860 fi
3861 ;;
3862 esac
3863 ;;
3864
46f18e7b 3865 mips*-*-ecoff* | mips*-*-elf*)
75bffa71 3866 if test x$gas = xyes
46f18e7b 3867 then
75bffa71 3868 if test x$gnu_ld = xyes
46f18e7b 3869 then
e7651ec5 3870 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
46f18e7b 3871 else
e7651ec5 3872 target_cpu_default2="MASK_GAS"
46f18e7b
RK
3873 fi
3874 fi
3875 ;;
3876 mips*-*-*)
75bffa71 3877 if test x$gas = xyes
46f18e7b 3878 then
e7651ec5 3879 target_cpu_default2="MASK_GAS"
46f18e7b
RK
3880 fi
3881 ;;
3882 powerpc*-*-* | rs6000-*-*)
3883 case "x$with_cpu" in
3884 x)
3885 ;;
3886
3887 xcommon | xpower | xpower2 | xpowerpc | xrios \
52cddadb
MM
3888 | xrios1 | xrios2 | xrsc | xrsc1 \
3889 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
507ba956 3890 | xec603e | x740 | x750 | x401 \
52cddadb 3891 | x403 | x505 | x801 | x821 | x823 | x860)
f24b370a 3892 target_cpu_default2="\"$with_cpu\""
46f18e7b
RK
3893 ;;
3894
3895 xyes | xno)
3896 echo "--with-cpu must be passed a value" 1>&2
3897 exit 1
3898 ;;
3899
3900 *)
75bffa71 3901 if test x$pass2done = xyes
956d6950
JL
3902 then
3903 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3904 exit 1
3905 fi
46f18e7b
RK
3906 ;;
3907 esac
3908 ;;
3909 sparc*-*-*)
3910 case ".$with_cpu" in
3911 .)
3912 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3913 ;;
8947065c 3914 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
46f18e7b
RK
3915 target_cpu_default2="TARGET_CPU_$with_cpu"
3916 ;;
3917 *)
75bffa71 3918 if test x$pass2done = xyes
956d6950
JL
3919 then
3920 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3921 exit 1
3922 fi
46f18e7b
RK
3923 ;;
3924 esac
3925 ;;
3926 esac
3927
75bffa71 3928 if test "$target_cpu_default2" != ""
46f18e7b 3929 then
75bffa71 3930 if test "$target_cpu_default" != ""
46f18e7b
RK
3931 then
3932 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3933 else
3934 target_cpu_default=$target_cpu_default2
3935 fi
3936 fi
3937
3938 # No need for collect2 if we have the GNU linker.
d460fb3c
JM
3939 # Actually, there is now; GNU ld doesn't handle the EH info or
3940 # collecting for shared libraries.
ca8c3b37
JM
3941 #case x$gnu_ld in
3942 #xyes)
3943 # use_collect2=
3944 # ;;
3945 #esac
46f18e7b
RK
3946
3947# Save data on machine being used to compile GCC in build_xm_file.
3948# Save data on host machine in vars host_xm_file and host_xmake_file.
75bffa71 3949 if test x$pass1done = x
46f18e7b 3950 then
75bffa71 3951 if test x"$xm_file" = x
46f18e7b
RK
3952 then build_xm_file=$cpu_type/xm-$cpu_type.h
3953 else build_xm_file=$xm_file
3954 fi
61536478 3955 build_xm_defines=$xm_defines
46f18e7b
RK
3956 build_install_headers_dir=$install_headers_dir
3957 build_exeext=$exeext
3958 pass1done=yes
3959 else
75bffa71 3960 if test x$pass2done = x
46f18e7b 3961 then
75bffa71 3962 if test x"$xm_file" = x
46f18e7b
RK
3963 then host_xm_file=$cpu_type/xm-$cpu_type.h
3964 else host_xm_file=$xm_file
3965 fi
61536478 3966 host_xm_defines=$xm_defines
75bffa71 3967 if test x"$xmake_file" = x
46f18e7b
RK
3968 then xmake_file=$cpu_type/x-$cpu_type
3969 fi
3970 host_xmake_file="$xmake_file"
3971 host_truncate_target=$truncate_target
3972 host_extra_gcc_objs=$extra_gcc_objs
3973 host_extra_objs=$extra_host_objs
6e26218f 3974 host_exeext=$exeext
46f18e7b
RK
3975 pass2done=yes
3976 fi
3977 fi
3978done
3979
3980extra_objs="${host_extra_objs} ${extra_objs}"
3981
3982# Default the target-machine variables that were not explicitly set.
75bffa71 3983if test x"$tm_file" = x
46f18e7b
RK
3984then tm_file=$cpu_type/$cpu_type.h; fi
3985
75bffa71 3986if test x$extra_headers = x
46f18e7b
RK
3987then extra_headers=; fi
3988
75bffa71 3989if test x"$xm_file" = x
46f18e7b
RK
3990then xm_file=$cpu_type/xm-$cpu_type.h; fi
3991
75bffa71 3992if test x$md_file = x
e98e406f 3993then md_file=$cpu_type/$cpu_type.md; fi
46f18e7b 3994
75bffa71 3995if test x$out_file = x
46f18e7b
RK
3996then out_file=$cpu_type/$cpu_type.c; fi
3997
75bffa71 3998if test x"$tmake_file" = x
46f18e7b
RK
3999then tmake_file=$cpu_type/t-$cpu_type
4000fi
4001
90e6a802 4002if test x"$dwarf2" = xyes
756ee602 4003then tm_file="$tm_file tm-dwarf2.h"
90e6a802
RL
4004fi
4005
75bffa71 4006if test x$float_format = x
46f18e7b
RK
4007then float_format=i64
4008fi
4009
027ea2a7
JW
4010if test $float_format = none
4011then float_h_file=Makefile.in
4012else float_h_file=float-$float_format.h
4013fi
4014
9fc9b82a 4015# Handle cpp installation.
3ecc3258 4016if test x$enable_cpp != xno
9fc9b82a
L
4017then
4018 tmake_file="$tmake_file t-install-cpp"
4019fi
4020
46f18e7b
RK
4021# Say what files are being used for the output code and MD file.
4022echo "Using \`$srcdir/config/$out_file' to output insns."
4023echo "Using \`$srcdir/config/$md_file' as machine description file."
4024
4025count=a
4026for f in $tm_file; do
4027 count=${count}x
4028done
75bffa71 4029if test $count = ax; then
46f18e7b
RK
4030 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4031else
4032 echo "Using the following target machine macro files:"
4033 for f in $tm_file; do
4034 echo " $srcdir/config/$f"
4035 done
4036fi
4037
4038count=a
4039for f in $host_xm_file; do
4040 count=${count}x
4041done
75bffa71 4042if test $count = ax; then
46f18e7b
RK
4043 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4044else
4045 echo "Using the following host machine macro files:"
4046 for f in $host_xm_file; do
4047 echo " $srcdir/config/$f"
4048 done
4049fi
4050
75bffa71 4051if test "$host_xm_file" != "$build_xm_file"; then
46f18e7b
RK
4052 count=a
4053 for f in $build_xm_file; do
4054 count=${count}x
4055 done
75bffa71 4056 if test $count = ax; then
46f18e7b
RK
4057 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4058 else
4059 echo "Using the following build machine macro files:"
4060 for f in $build_xm_file; do
4061 echo " $srcdir/config/$f"
4062 done
4063 fi
4064fi
4065
75bffa71
ILT
4066if test x$thread_file = x; then
4067 if test x$target_thread_file != x; then
a851212a
JW
4068 thread_file=$target_thread_file
4069 else
4070 thread_file='single'
4071 fi
46f18e7b 4072fi
46f18e7b
RK
4073
4074# Set up the header files.
4075# $links is the list of header files to create.
4076# $vars is the list of shell variables with file names to include.
b7cb92ad 4077# auto-host.h is the file containing items generated by autoconf and is
e9a25f70 4078# the first file included by config.h.
61536478 4079null_defines=
64ccbc99 4080host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
db81d74a 4081
b7cb92ad 4082# If host=build, it is correct to have hconfig include auto-host.h
db81d74a
RH
4083# as well. If host!=build, we are in error and need to do more
4084# work to find out the build config parameters.
75bffa71 4085if test x$host = x$build
db81d74a 4086then
64ccbc99 4087 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
b7cb92ad
JL
4088else
4089 # We create a subdir, then run autoconf in the subdir.
4090 # To prevent recursion we set host and build for the new
4091 # invocation of configure to the build for this invocation
4092 # of configure.
4093 tempdir=build.$$
4094 rm -rf $tempdir
4095 mkdir $tempdir
4096 cd $tempdir
4097 case ${srcdir} in
4098 /*) realsrcdir=${srcdir};;
4099 *) realsrcdir=../${srcdir};;
4100 esac
fe81dd69 4101 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
b7cb92ad
JL
4102 --target=$target --host=$build --build=$build
4103
4104 # We just finished tests for the build machine, so rename
4105 # the file auto-build.h in the gcc directory.
4106 mv auto-host.h ../auto-build.h
4107 cd ..
4108 rm -rf $tempdir
64ccbc99 4109 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
db81d74a
RH
4110fi
4111
0056a9b5
KG
4112xm_file="gansidecl.h ${xm_file}"
4113tm_file="gansidecl.h ${tm_file}"
4114
6baf1cc8
BS
4115vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4116links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4117defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
46f18e7b
RK
4118
4119rm -f config.bak
75bffa71 4120if test -f config.status; then mv -f config.status config.bak; fi
46f18e7b
RK
4121
4122# Make the links.
75bffa71 4123while test -n "$vars"
46f18e7b 4124do
46f18e7b
RK
4125 set $vars; var=$1; shift; vars=$*
4126 set $links; link=$1; shift; links=$*
61536478 4127 set $defines; define=$1; shift; defines=$*
46f18e7b
RK
4128
4129 rm -f $link
6baf1cc8
BS
4130 # Make sure the file is created, even if it is empty.
4131 echo >$link
46f18e7b
RK
4132
4133 # Define TARGET_CPU_DEFAULT if the system wants one.
4134 # This substitutes for lots of *.h files.
75bffa71 4135 if test "$target_cpu_default" != "" -a $link = tm.h
46f18e7b 4136 then
8fbf199e 4137 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
46f18e7b
RK
4138 fi
4139
4140 for file in `eval echo '$'$var`; do
ab87f8c8 4141 case $file in
6efa1582 4142 auto-host.h | auto-build.h )
ab87f8c8
JL
4143 ;;
4144 *)
4145 echo '#ifdef IN_GCC' >>$link
4146 ;;
4147 esac
46f18e7b 4148 echo "#include \"$file\"" >>$link
ab87f8c8 4149 case $file in
6efa1582 4150 auto-host.h | auto-build.h )
ab87f8c8
JL
4151 ;;
4152 *)
4153 echo '#endif' >>$link
4154 ;;
4155 esac
46f18e7b 4156 done
61536478
JL
4157
4158 for def in `eval echo '$'$define`; do
4159 echo "#ifndef $def" >>$link
4160 echo "#define $def" >>$link
4161 echo "#endif" >>$link
4162 done
46f18e7b
RK
4163done
4164
4165# Truncate the target if necessary
75bffa71 4166if test x$host_truncate_target != x; then
46f18e7b
RK
4167 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4168fi
4169
f1943b77 4170# Get the version trigger filename from the toplevel
75bffa71 4171if test "${with_gcc_version_trigger+set}" = set; then
f1943b77
MH
4172 gcc_version_trigger=$with_gcc_version_trigger
4173else
4174 gcc_version_trigger=${srcdir}/version.c
4175fi
75bffa71 4176changequote(,)dnl
4746ee26 4177gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
75bffa71 4178changequote([,])dnl
46f18e7b 4179
ab87f8c8
JL
4180# Internationalization
4181PACKAGE=gcc
4182VERSION="$gcc_version"
119d24d1
KG
4183AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4184 [Define to the name of the distribution.])
4185AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4186 [Define to the version of the distribution.])
ab87f8c8
JL
4187AC_SUBST(PACKAGE)
4188AC_SUBST(VERSION)
4189
37aeda9a 4190ALL_LINGUAS="en_GB"
ab87f8c8 4191
dc6746e7 4192# Enable NLS support by default
ab87f8c8 4193AC_ARG_ENABLE(nls,
dc6746e7
PT
4194 [ --enable-nls use Native Language Support (default)],
4195 , enable_nls=yes)
4196
4197# if cross compiling, disable NLS support.
4198# It's not worth the trouble, at least for now.
4199
063a4b85 4200if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
dc6746e7
PT
4201 AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
4202 enable_nls=no
4203fi
ab87f8c8 4204
4adee315
PT
4205# if NLS is enabled, also enable check in po subdir
4206if test $enable_nls = yes; then
4207 CHECK_PO=check-po
4208else
4209 CHECK_PO=""
4210fi
4211
4212AC_SUBST(CHECK_PO)
4213
ab87f8c8
JL
4214AM_GNU_GETTEXT
4215XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4216
f4ab28e3
MK
4217# Windows32 Registry support for specifying GCC installation paths.
4218AC_ARG_ENABLE(win32-registry,
4219[ --disable-win32-registry
4220 Disable lookup of installation paths in the
4221 Registry on Windows hosts.
4222 --enable-win32-registry Enable registry lookup (default).
4223 --enable-win32-registry=KEY
4224 Use KEY instead of GCC version as the last portion
4225 of the registry key.],,)
4226
4227AC_MSG_CHECKING(whether windows registry support is requested)
4228if test x$enable_win32_registry != xno; then
119d24d1
KG
4229 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4230[Define to 1 if installation paths should be looked up in Windows32
91029a29 4231 Registry. Ignored on non windows32 hosts.])
f4ab28e3
MK
4232 AC_MSG_RESULT(yes)
4233else
4234 AC_MSG_RESULT(no)
4235fi
4236
4237# Check if user specified a different registry key.
4238case x${enable_win32_registry} in
4239x | xyes)
4240 # default.
4241 gcc_cv_win32_registry_key="$VERSION"
4242 ;;
4243xno)
4244 # no registry lookup.
4245 gcc_cv_win32_registry_key=''
4246 ;;
4247*)
4248 # user-specified key.
4249 gcc_cv_win32_registry_key="$enable_win32_registry"
4250 ;;
4251esac
4252
4253if test x$enable_win32_registry != xno; then
4254 AC_MSG_CHECKING(registry key on windows hosts)
119d24d1
KG
4255 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4256 [Define to be the last portion of registry key on windows hosts.])
f4ab28e3
MK
4257 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4258fi
4259
7fa10b25
RK
4260# Get an absolute path to the GCC top-level source directory
4261holddir=`pwd`
4262cd $srcdir
4263topdir=`pwd`
4264cd $holddir
4265
af5e4ada 4266# Conditionalize the makefile for this host machine.
94f42018
DE
4267# Make-host contains the concatenation of all host makefile fragments
4268# [there can be more than one]. This file is built by configure.frag.
4269host_overrides=Make-host
af5e4ada 4270dep_host_xmake_file=
94f42018
DE
4271for f in .. ${host_xmake_file}
4272do
75bffa71 4273 if test -f ${srcdir}/config/$f
94f42018
DE
4274 then
4275 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4276 fi
4277done
46f18e7b 4278
af5e4ada 4279# Conditionalize the makefile for this target machine.
94f42018
DE
4280# Make-target contains the concatenation of all host makefile fragments
4281# [there can be more than one]. This file is built by configure.frag.
4282target_overrides=Make-target
af5e4ada 4283dep_tmake_file=
94f42018
DE
4284for f in .. ${tmake_file}
4285do
75bffa71 4286 if test -f ${srcdir}/config/$f
94f42018
DE
4287 then
4288 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4289 fi
4290done
5891b37d 4291
af5e4ada
DE
4292# If the host doesn't support symlinks, modify CC in
4293# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4294# Otherwise, we can use "CC=$(CC)".
4295rm -f symtest.tem
61536478 4296if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
af5e4ada
DE
4297then
4298 cc_set_by_configure="\$(CC)"
5aa82ace 4299 quoted_cc_set_by_configure="\$(CC)"
af5e4ada
DE
4300 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4301else
61536478
JL
4302 rm -f symtest.tem
4303 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4304 then
4305 symbolic_link="cp -p"
4306 else
4307 symbolic_link="cp"
4308 fi
af5e4ada 4309 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5aa82ace 4310 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
af5e4ada
DE
4311 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4312fi
4313rm -f symtest.tem
5891b37d 4314
af5e4ada 4315out_object_file=`basename $out_file .c`.o
5891b37d 4316
af5e4ada
DE
4317tm_file_list=
4318for f in $tm_file; do
64ccbc99
KG
4319 case $f in
4320 gansidecl.h )
4321 tm_file_list="${tm_file_list} $f" ;;
4322 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4323 esac
af5e4ada 4324done
46f18e7b 4325
af5e4ada
DE
4326host_xm_file_list=
4327for f in $host_xm_file; do
64ccbc99
KG
4328 case $f in
4329 auto-host.h | gansidecl.h | hwint.h )
4330 host_xm_file_list="${host_xm_file_list} $f" ;;
4331 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4332 esac
af5e4ada
DE
4333done
4334
4335build_xm_file_list=
4336for f in $build_xm_file; do
64ccbc99
KG
4337 case $f in
4338 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4339 build_xm_file_list="${build_xm_file_list} $f" ;;
4340 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4341 esac
af5e4ada 4342done
46f18e7b 4343
af5e4ada
DE
4344# Define macro CROSS_COMPILE in compilation
4345# if this is a cross-compiler.
4346# Also use all.cross instead of all.internal
4347# and add cross-make to Makefile.
571a8de5 4348cross_overrides="/dev/null"
75bffa71 4349if test x$host != x$target
af5e4ada
DE
4350then
4351 cross_defines="CROSS=-DCROSS_COMPILE"
4352 cross_overrides="${topdir}/cross-make"
4353fi
46f18e7b 4354
b39d221a
EC
4355# If this is a cross-compiler that does not
4356# have its own set of headers then define
4357# inhibit_libc
4358
4359# If this is using newlib, then define inhibit_libc in
4360# LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4361# libgcc.a, but that's OK because newlib should have its own version of
4362# assert.h.
4363inhibit_libc=
4364if [test x$host != x$target] && [test x$with_headers = x]; then
4365 inhibit_libc=-Dinhibit_libc
4366else
4367 if [test x$with_newlib = xyes]; then
4368 inhibit_libc=-Dinhibit_libc
4369 fi
4370fi
4371AC_SUBST(inhibit_libc)
4372
af5e4ada
DE
4373# When building gcc with a cross-compiler, we need to fix a few things.
4374# This must come after cross-make as we want all.build to override
4375# all.cross.
571a8de5 4376build_overrides="/dev/null"
75bffa71 4377if test x$build != x$host
af5e4ada
DE
4378then
4379 build_overrides="${topdir}/build-make"
4380fi
46f18e7b 4381
ae3a15bb
DE
4382# Expand extra_headers to include complete path.
4383# This substitutes for lots of t-* files.
4384extra_headers_list=
75bffa71 4385if test "x$extra_headers" = x
ae3a15bb
DE
4386then true
4387else
4388 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4389 for file in $extra_headers;
4390 do
4391 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4392 done
4393fi
4394
75bffa71 4395if test x$use_collect2 = xno; then
2ce3c6c6
JM
4396 use_collect2=
4397fi
4398
af5e4ada
DE
4399# Add a definition of USE_COLLECT2 if system wants one.
4400# Also tell toplev.c what to do.
4401# This substitutes for lots of t-* files.
75bffa71 4402if test x$use_collect2 = x
af5e4ada
DE
4403then
4404 will_use_collect2=
4405 maybe_use_collect2=
4406else
10da1131 4407 will_use_collect2="collect2"
af5e4ada
DE
4408 maybe_use_collect2="-DUSE_COLLECT2"
4409fi
4410
4411# NEED TO CONVERT
4412# Set MD_DEPS if the real md file is in md.pre-cpp.
4413# Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4414# for line oriented comments, so we must always use a GNU cpp. If
4415# building gcc with a cross compiler, use the cross compiler just
4416# built. Otherwise, we can use the cpp just built.
4417md_file_sub=
75bffa71 4418if test "x$md_cppflags" = x
af5e4ada
DE
4419then
4420 md_file_sub=$srcdir/config/$md_file
4421else
4422 md_file=md
4423fi
4424
4425# If we have gas in the build tree, make a link to it.
75bffa71 4426if test -f ../gas/Makefile; then
6e26218f 4427 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
af5e4ada
DE
4428fi
4429
4b95eb49 4430# If we have nm in the build tree, make a link to it.
75bffa71 4431if test -f ../binutils/Makefile; then
4b95eb49
JL
4432 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4433fi
4434
af5e4ada 4435# If we have ld in the build tree, make a link to it.
75bffa71
ILT
4436if test -f ../ld/Makefile; then
4437# if test x$use_collect2 = x; then
6e26218f 4438# rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
aa32d841 4439# else
6e26218f 4440 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
aa32d841 4441# fi
af5e4ada
DE
4442fi
4443
981d4858
JM
4444# Figure out what assembler we will be using.
4445AC_MSG_CHECKING(what assembler to use)
9e423e6d 4446gcc_cv_as=
981d4858
JM
4447gcc_cv_gas_major_version=
4448gcc_cv_gas_minor_version=
a2f319ea 4449gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3ccc3a56
AO
4450if test -x "$DEFAULT_ASSEMBLER"; then
4451 gcc_cv_as="$DEFAULT_ASSEMBLER"
4452elif test -x "$AS"; then
4453 gcc_cv_as="$AS"
ab339d62 4454elif test -x as$host_exeext; then
9e423e6d
JW
4455 # Build using assembler in the current directory.
4456 gcc_cv_as=./as$host_exeext
5585c1bc 4457elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
9e423e6d 4458 # Single tree build which includes gas.
a2c9d57c 4459 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
9e423e6d 4460 do
75bffa71
ILT
4461changequote(,)dnl
4462 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4463changequote([,])dnl
4464 if test x$gcc_cv_gas_version != x; then
9e423e6d
JW
4465 break
4466 fi
4467 done
75bffa71
ILT
4468changequote(,)dnl
4469 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4470 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4471changequote([,])dnl
981d4858
JM
4472fi
4473
4474if test "x$gcc_cv_as" = x -a x$host = x$target; then
9e423e6d 4475 # Native build.
779243f7
JL
4476 # Search the same directories that the installed compiler will
4477 # search. Else we may find the wrong assembler and lose. If we
4478 # do not find a suitable assembler binary, then try the user's
4479 # path.
4480 #
4481 # Also note we have to check MD_EXEC_PREFIX before checking the
4482 # user's path. Unfortunately, there is no good way to get at the
4483 # value of MD_EXEC_PREFIX here. So we do a brute force search
4484 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4485 # to be fixed as part of the make/configure rewrite too.
4486
4487 if test "x$exec_prefix" = xNONE; then
4488 if test "x$prefix" = xNONE; then
4489 test_prefix=/usr/local
4490 else
4491 test_prefix=$prefix
4492 fi
4493 else
4494 test_prefix=$exec_prefix
4495 fi
4496
4497 # If the loop below does not find an assembler, then use whatever
4498 # one we can find in the users's path.
4499 # user's path.
4500 as=as$host_exeext
4501
4502 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4503 $test_prefix/lib/gcc-lib/$target \
4504 /usr/lib/gcc/$target/$gcc_version \
4505 /usr/lib/gcc/$target \
4506 $test_prefix/$target/bin/$target/$gcc_version \
4507 $test_prefix/$target/bin \
4508 /usr/libexec \
4509 /usr/ccs/gcc \
4510 /usr/ccs/bin \
4511 /udk/usr/ccs/bin \
4512 /bsd43/usr/lib/cmplrs/cc \
4513 /usr/cross64/usr/bin \
4514 /usr/lib/cmplrs/cc \
4515 /sysv/usr/lib/cmplrs/cc \
4516 /svr4/usr/lib/cmplrs/cc \
4517 /usr/bin"
4518
4519 for dir in $test_dirs; do
4520 if test -f $dir/as$host_exeext; then
4521 gcc_cv_as=$dir/as$host_exeext
4522 break;
4523 fi
4524 done
9e423e6d 4525fi
981d4858
JM
4526if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4527 AC_MSG_RESULT("newly built gas")
4528else
4529 AC_MSG_RESULT($gcc_cv_as)
4530fi
4531
4532# Figure out what nm we will be using.
4533AC_MSG_CHECKING(what nm to use)
4534if test -x nm$host_exeext; then
4535 gcc_cv_nm=./nm$host_exeext
4536elif test x$host = x$target; then
4537 # Native build.
4538 gcc_cv_nm=nm$host_exeext
4539fi
4540AC_MSG_RESULT($gcc_cv_nm)
4541
4542# Figure out what assembler alignment features are present.
4543AC_MSG_CHECKING(assembler alignment features)
4544gcc_cv_as_alignment_features=
4545if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4546 # Gas version 2.6 and later support for .balign and .p2align.
4547 # bytes to skip when using .p2align.
4548 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
4549 gcc_cv_as_alignment_features=".balign and .p2align"
4550 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4551 fi
4552 # Gas version 2.8 and later support specifying the maximum
4553 # bytes to skip when using .p2align.
4554 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
4555 gcc_cv_as_alignment_features=".p2align including maximum skip"
4556 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4557 fi
4558elif test x$gcc_cv_as != x; then
00ccc16d
JL
4559 # Check if we have .balign and .p2align
4560 echo ".balign 4" > conftest.s
4561 echo ".p2align 2" >> conftest.s
4562 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4563 gcc_cv_as_alignment_features=".balign and .p2align"
4564 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4565 fi
4566 rm -f conftest.s conftest.o
9e423e6d
JW
4567 # Check if specifying the maximum bytes to skip when
4568 # using .p2align is supported.
4569 echo ".p2align 4,,7" > conftest.s
4570 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4571 gcc_cv_as_alignment_features=".p2align including maximum skip"
4572 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4573 fi
4574 rm -f conftest.s conftest.o
4575fi
4576AC_MSG_RESULT($gcc_cv_as_alignment_features)
4577
d1accaa3
JJ
4578AC_MSG_CHECKING(assembler subsection support)
4579gcc_cv_as_subsections=
981d4858
JM
4580if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4581 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
4582 gcc_cv_as_subsections="working .subsection -1"
4583 fi
4584elif test x$gcc_cv_as != x; then
d1accaa3
JJ
4585 # Check if we have .subsection
4586 echo ".subsection 1" > conftest.s
4587 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4588 gcc_cv_as_subsections=".subsection"
d1accaa3
JJ
4589 if test x$gcc_cv_nm != x; then
4590 cat > conftest.s <<EOF
4591conftest_label1: .word 0
4592.subsection -1
4593conftest_label2: .word 0
4594.previous
4595EOF
4596 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4597 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4598 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
1b015bec
AO
4599 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4600 :
4601 else
d1accaa3 4602 gcc_cv_as_subsections="working .subsection -1"
d1accaa3
JJ
4603 fi
4604 fi
4605 fi
4606 fi
4607 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4608fi
981d4858
JM
4609if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
4610 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4611[Define if your assembler supports .subsection and .subsection -1 starts
4612 emitting at the beginning of your section.])
4613fi
d1accaa3
JJ
4614AC_MSG_RESULT($gcc_cv_as_subsections)
4615
12822146
JL
4616AC_MSG_CHECKING(assembler weak support)
4617gcc_cv_as_weak=
981d4858
JM
4618if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4619 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
4620 gcc_cv_as_weak="yes"
4621 fi
4622elif test x$gcc_cv_as != x; then
12822146
JL
4623 # Check if we have .weak
4624 echo " .weak foobar" > conftest.s
4625 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
12822146
JL
4626 gcc_cv_as_weak="yes"
4627 fi
4628 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4629fi
981d4858
JM
4630if test x"$gcc_cv_as_weak" = xyes; then
4631 AC_DEFINE(HAVE_GAS_WEAK, 1, [Define if your assembler supports .weak.])
4632fi
12822146
JL
4633AC_MSG_RESULT($gcc_cv_as_weak)
4634
6a9c5260
UD
4635AC_MSG_CHECKING(assembler hidden support)
4636gcc_cv_as_hidden=
981d4858
JM
4637if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4638 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
4639 gcc_cv_as_hidden="yes"
4640 fi
4641elif test x$gcc_cv_as != x; then
6a9c5260
UD
4642 # Check if we have .hidden
4643 echo " .hidden foobar" > conftest.s
4644 echo "foobar:" >> conftest.s
4645 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6a9c5260
UD
4646 gcc_cv_as_hidden="yes"
4647 fi
4648 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4649fi
981d4858
JM
4650if test x"$gcc_cv_as_hidden" = xyes; then
4651 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4652 [Define if your assembler supports .hidden.])
4653fi
6a9c5260
UD
4654AC_MSG_RESULT($gcc_cv_as_hidden)
4655
1cb36a98
RH
4656case "$target" in
4657 sparc*-*-*)
5b68c389
AO
4658 AC_CACHE_CHECK([assembler .register pseudo-op support],
4659 gcc_cv_as_register_pseudo_op, [
4660 gcc_cv_as_register_pseudo_op=unknown
4661 if test x$gcc_cv_as != x; then
4662 # Check if we have .register
4663 echo ".register %g2, #scratch" > conftest.s
4664 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
1cb36a98 4665 gcc_cv_as_register_pseudo_op=yes
5b68c389
AO
4666 else
4667 gcc_cv_as_register_pseudo_op=no
4668 fi
4669 rm -f conftest.s conftest.o
1cb36a98 4670 fi
5b68c389
AO
4671 ])
4672 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
119d24d1
KG
4673 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4674 [Define if your assembler supports .register.])
1cb36a98 4675 fi
1cb36a98 4676
e95b1e6a
JJ
4677 AC_CACHE_CHECK([assembler supports -relax],
4678 gcc_cv_as_relax_opt, [
4679 gcc_cv_as_relax_opt=unknown
4680 if test x$gcc_cv_as != x; then
4681 # Check if gas supports -relax
4682 echo ".text" > conftest.s
4683 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
4684 gcc_cv_as_relax_opt=yes
4685 else
4686 gcc_cv_as_relax_opt=no
4687 fi
4688 rm -f conftest.s conftest.o
4689 fi
4690 ])
4691 if test "x$gcc_cv_as_relax_opt" = xyes; then
4692 AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
4693 [Define if your assembler supports -relax option.])
4694 fi
4695
5b68c389
AO
4696 case "$tm_file" in
4697 *64*)
4698 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4699 gcc_cv_as_flags64, [
4700 if test -n "$gcc_cv_as"; then
4701 echo ".xword foo" > conftest.s
4702 gcc_cv_as_flags64=no
8a90b95d 4703 for flag in "-xarch=v9" "-64 -Av9"; do
5b68c389
AO
4704 if $gcc_cv_as $flag -o conftest.o conftest.s \
4705 > /dev/null 2>&1; then
4706 gcc_cv_as_flags64=$flag
4707 break
4708 fi
4709 done
4710 rm -f conftest.s conftest.o
4711 else
4712 if test "$gas" = yes; then
4713 gcc_cv_as_flags64="-64 -Av9"
4714 else
4715 gcc_cv_as_flags64="-xarch=v9"
4716 fi
1cb36a98 4717 fi
5b68c389
AO
4718 ])
4719 if test "x$gcc_cv_as_flags64" = xno; then
4720changequote(, )
4721 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4722 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4723changequote([, ])
4724 else
119d24d1
KG
4725 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4726 [Define if the assembler supports 64bit sparc.])
1cb36a98 4727 fi
5b68c389
AO
4728 ;;
4729 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4730 ;;
4731 esac
4732
4733 if test "x$gcc_cv_as_flags64" != xno; then
4734 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4735 gcc_cv_as_offsetable_lo10, [
4736 gcc_cv_as_offsetable_lo10=unknown
4737 if test "x$gcc_cv_as" != x; then
4738 # Check if assembler has offsetable %lo()
4739 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4740 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4741 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4742 > /dev/null 2>&1 &&
4743 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4744 > /dev/null 2>&1; then
4745 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4746 gcc_cv_as_offsetable_lo10=no
4747 else
4748 gcc_cv_as_offsetable_lo10=yes
4749 fi
4750 else
4751 gcc_cv_as_offsetable_lo10=no
1cb36a98 4752 fi
5b68c389
AO
4753 rm -f conftest.s conftest.o conftest1.s conftest1.o
4754 fi
4755 ])
4756 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
119d24d1
KG
4757 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4758 [Define if your assembler supports offsetable %lo().])
1cb36a98 4759 fi
1cb36a98 4760 fi
1cb36a98
RH
4761 ;;
4762
4763changequote(,)dnl
4764 i[34567]86-*-*)
4765changequote([,])dnl
4766 AC_MSG_CHECKING(assembler instructions)
4767 gcc_cv_as_instructions=
981d4858
JM
4768 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4769 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
4770 gcc_cv_as_instructions="filds fists"
4771 fi
4772 elif test x$gcc_cv_as != x; then
53b5ce19
JW
4773 set "filds fists" "filds mem; fists mem"
4774 while test $# -gt 0
4775 do
4776 echo "$2" > conftest.s
4777 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4778 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
53b5ce19
JW
4779 fi
4780 shift 2
4781 done
4782 rm -f conftest.s conftest.o
1cb36a98 4783 fi
981d4858
JM
4784 if test x"$gcc_cv_as_instructions" != x; then
4785 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$gcc_cv_as_instructions" | tr '[a-z ]' '[A-Z_]'`)
4786 fi
1cb36a98
RH
4787 AC_MSG_RESULT($gcc_cv_as_instructions)
4788 ;;
4789esac
53b5ce19 4790
571a8de5 4791# Figure out what language subdirectories are present.
71205e0b
MH
4792# Look if the user specified --enable-languages="..."; if not, use
4793# the environment variable $LANGUAGES if defined. $LANGUAGES might
4794# go away some day.
4795if test x"${enable_languages+set}" != xset; then
4796 if test x"${LANGUAGES+set}" = xset; then
4797 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4798 else
4799 enable_languages=all
4800 fi
d6c6b553
PE
4801else
4802 if test x"${enable_languages}" = x; then
4803 AC_MSG_ERROR([--enable-languages needs at least one argument])
4804 fi
71205e0b 4805fi
571a8de5
DE
4806subdirs=
4807for lang in ${srcdir}/*/config-lang.in ..
4808do
4809 case $lang in
4810 ..) ;;
4811 # The odd quoting in the next line works around
4812 # an apparent bug in bash 1.12 on linux.
75bffa71
ILT
4813changequote(,)dnl
4814 ${srcdir}/[*]/config-lang.in) ;;
71205e0b
MH
4815 *)
4816 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4817 if test "x$lang_alias" = x
4818 then
4819 echo "$lang doesn't set \$language." 1>&2
4820 exit 1
4821 fi
a7b4171a 4822 if test x"${enable_languages}" = xall && test x"${lang_alias}" != xCHILL; then
71205e0b
MH
4823 add_this_lang=yes
4824 else
4825 case "${enable_languages}" in
4826 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4827 add_this_lang=yes
4828 ;;
4829 * )
4830 add_this_lang=no
4831 ;;
4832 esac
4833 fi
4834 if test x"${add_this_lang}" = xyes; then
4835 case $lang in
4836 ${srcdir}/ada/config-lang.in)
4837 if test x$gnat = xyes ; then
4838 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4839 fi
4840 ;;
4841 *)
4842 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4843 ;;
4844 esac
4845 fi
4846 ;;
75bffa71 4847changequote([,])dnl
571a8de5
DE
4848 esac
4849done
4850
f24af81b
TT
4851# Make gthr-default.h if we have a thread file.
4852gthread_flags=
75bffa71 4853if test $thread_file != single; then
f24af81b 4854 rm -f gthr-default.h
db0d1ed9 4855 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
f24af81b
TT
4856 gthread_flags=-DHAVE_GTHR_DEFAULT
4857fi
4858AC_SUBST(gthread_flags)
4859
81bf3d9e
RH
4860# Find out what GC implementation we want, or may, use.
4861AC_ARG_WITH(gc,
4862[ --with-gc={simple,page} Choose the garbage collection mechanism to use
4863 with the compiler.],
4864[case "$withval" in
4865 simple | page)
4866 GGC=ggc-$withval
4867 ;;
4868 *)
4869 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4870 ;;
4871esac],
4acab94b
AO
4872[if test $ac_cv_func_mmap_anywhere = yes \
4873 || test $ac_cv_func_valloc = yes; then
005537df 4874 GGC=ggc-page
81bf3d9e
RH
4875else
4876 GGC=ggc-simple
4877fi])
4878AC_SUBST(GGC)
4879echo "Using $GGC for garbage collection."
4880
3c809ba4 4881# Use the system's zlib library.
b8dad04b
ZW
4882zlibdir=-L../zlib
4883zlibinc="-I\$(srcdir)/../zlib"
3c809ba4
AG
4884AC_ARG_WITH(system-zlib,
4885[ --with-system-zlib use installed libz],
4886zlibdir=
4887zlibinc=
4888)
4889AC_SUBST(zlibdir)
4890AC_SUBST(zlibinc)
4891
7441a352
NS
4892# Build a new-abi (c++) system
4893AC_ARG_ENABLE(new-gxx-abi,
4894[ --enable-new-gxx-abi
4895 select the new abi for g++. You must select an ABI
4896 at configuration time, so that the correct runtime
4897 support is built. You cannot mix ABIs.],
119d24d1
KG
4898[AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4899 [Define if you want to always select the new-abi for g++.])
7441a352
NS
4900GXX_ABI_FLAG='-fnew-abi'
4901echo "Building a new-abi g++ compiler."
4902])
4903AC_SUBST(GXX_ABI_FLAG)
4904
7822500a
BK
4905# Build a new-libstdc++ system (ie libstdc++-v3)
4906AC_MSG_CHECKING([for libstdc++ to install])
4907AC_ARG_ENABLE(libstdcxx-v3,
4908[ --enable-libstdcxx-v3
4909 enable libstdc++-v3 for building and installation],
d84c5634 4910 [enable_libstdcxx_v3="$enableval"], [enable_libstdcxx_v3=no])
7822500a
BK
4911
4912if test x$enable_libstdcxx_v3 = xyes; then
4913 AC_MSG_RESULT(v3)
be5aeb60 4914 HAVE_LIBSTDCXX_V3=1
119d24d1 4915 ac_esn=1
7822500a
BK
4916else
4917 AC_MSG_RESULT(v2)
be5aeb60 4918 HAVE_LIBSTDCXX_V3=0
119d24d1 4919 ac_esn=0
7822500a 4920fi
119d24d1
KG
4921AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4922 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
be5aeb60 4923AC_SUBST(HAVE_LIBSTDCXX_V3)
7822500a 4924
dc6746e7
PT
4925dnl Very limited version of automake's enable-maintainer-mode
4926
4927AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4928 dnl maintainer-mode is disabled by default
4929 AC_ARG_ENABLE(maintainer-mode,
4930[ --enable-maintainer-mode enable make rules and dependencies not useful
4931 (and sometimes confusing) to the casual installer],
4932 maintainer_mode=$enableval,
4933 maintainer_mode=no)
4934
4935AC_MSG_RESULT($maintainer_mode)
4936
4937if test "$maintainer_mode" = "yes"; then
4938 MAINT=''
4939else
4940 MAINT='#'
4941fi
4942AC_SUBST(MAINT)dnl
4943
571a8de5
DE
4944# Make empty files to contain the specs and options for each language.
4945# Then add #include lines to for a compiler that has specs and/or options.
4946
4947lang_specs_files=
4948lang_options_files=
3103b7db
ML
4949lang_tree_files=
4950rm -f specs.h options.h gencheck.h
4951touch specs.h options.h gencheck.h
571a8de5
DE
4952for subdir in . $subdirs
4953do
75bffa71 4954 if test -f $srcdir/$subdir/lang-specs.h; then
571a8de5
DE
4955 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4956 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4957 fi
75bffa71 4958 if test -f $srcdir/$subdir/lang-options.h; then
571a8de5
DE
4959 echo "#include \"$subdir/lang-options.h\"" >>options.h
4960 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4961 fi
3103b7db
ML
4962 if test -f $srcdir/$subdir/$subdir-tree.def; then
4963 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4964 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4965 fi
571a8de5
DE
4966done
4967
4968# These (without "all_") are set in each config-lang.in.
4969# `language' must be a single word so is spelled singularly.
4970all_languages=
4971all_boot_languages=
4972all_compilers=
4973all_stagestuff=
4974all_diff_excludes=
3ec83fc2 4975all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
571a8de5
DE
4976# List of language makefile fragments.
4977all_lang_makefiles=
4978all_headers=
4979all_lib2funcs=
4980
4981# Add the language fragments.
4982# Languages are added via two mechanisms. Some information must be
4983# recorded in makefile variables, these are defined in config-lang.in.
4984# We accumulate them and plug them into the main Makefile.
4985# The other mechanism is a set of hooks for each of the main targets
4986# like `clean', `install', etc.
4987
4988language_fragments="Make-lang"
4989language_hooks="Make-hooks"
4990
4991for s in .. $subdirs
4992do
75bffa71 4993 if test $s != ".."
571a8de5
DE
4994 then
4995 language=
4996 boot_language=
4997 compilers=
4998 stagestuff=
4999 diff_excludes=
5000 headers=
0280cf84 5001 outputs=
571a8de5
DE
5002 lib2funcs=
5003 . ${srcdir}/$s/config-lang.in
75bffa71 5004 if test "x$language" = x
571a8de5
DE
5005 then
5006 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5007 exit 1
5008 fi
b8dad04b 5009 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in $outputs"
571a8de5 5010 all_languages="$all_languages $language"
75bffa71 5011 if test "x$boot_language" = xyes
571a8de5
DE
5012 then
5013 all_boot_languages="$all_boot_languages $language"
5014 fi
5015 all_compilers="$all_compilers $compilers"
5016 all_stagestuff="$all_stagestuff $stagestuff"
5017 all_diff_excludes="$all_diff_excludes $diff_excludes"
5018 all_headers="$all_headers $headers"
0280cf84 5019 all_outputs="$all_outputs $outputs"
571a8de5
DE
5020 all_lib2funcs="$all_lib2funcs $lib2funcs"
5021 fi
5022done
5023
5024# Since we can't use `::' targets, we link each language in
5025# with a set of hooks, reached indirectly via lang.${target}.
5026
5027rm -f Make-hooks
5028touch Make-hooks
5029target_list="all.build all.cross start.encap rest.encap \
5030 info dvi \
5031 install-normal install-common install-info install-man \
5032 uninstall distdir \
5033 mostlyclean clean distclean extraclean maintainer-clean \
5034 stage1 stage2 stage3 stage4"
5035for t in $target_list
5036do
5037 x=
ab87f8c8 5038 for lang in .. $all_languages
571a8de5 5039 do
ab87f8c8
JL
5040 if test $lang != ".."; then
5041 x="$x $lang.$t"
571a8de5
DE
5042 fi
5043 done
5044 echo "lang.$t: $x" >> Make-hooks
5045done
5046
296e46bd
DE
5047# If we're not building in srcdir, create .gdbinit.
5048
75bffa71 5049if test ! -f Makefile.in; then
296e46bd
DE
5050 echo "dir ." > .gdbinit
5051 echo "dir ${srcdir}" >> .gdbinit
75bffa71 5052 if test x$gdb_needs_out_file_path = xyes
296e46bd
DE
5053 then
5054 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5055 fi
75bffa71 5056 if test "x$subdirs" != x; then
296e46bd
DE
5057 for s in $subdirs
5058 do
5059 echo "dir ${srcdir}/$s" >> .gdbinit
5060 done
5061 fi
5062 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5063fi
5064
88111b26
JL
5065# Define variables host_canonical and build_canonical
5066# because some Cygnus local changes in the Makefile depend on them.
5067build_canonical=${build}
5068host_canonical=${host}
5069target_subdir=
75bffa71 5070if test "${host}" != "${target}" ; then
88111b26
JL
5071 target_subdir=${target}/
5072fi
5073AC_SUBST(build_canonical)
5074AC_SUBST(host_canonical)
5075AC_SUBST(target_subdir)
5076
8f8d3278
NC
5077# If $(exec_prefix) exists and is not the same as $(prefix), then compute an
5078# absolute path for gcc_tooldir based on inserting the number of up-directory
5079# movements required to get from $(exec_prefix) to $(prefix) into the basic
5080# $(libsubdir)/@(unlibsubdir) based path.
82cbf8f7
JL
5081# Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
5082# make and thus we'd get different behavior depending on where we built the
5083# sources.
5949a9fc 5084if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
d062c304
JL
5085 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
5086else
8f8d3278
NC
5087changequote(<<, >>)dnl
5088# An explanation of the sed strings:
5089# -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
5090# -e 's|/$||' match a trailing forward slash and eliminates it
5091# -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
5092# -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
5093#
5094# (*) Note this pattern overwrites the first character of the string
5095# with a forward slash if one is not already present. This is not a
5096# problem because the exact names of the sub-directories concerned is
5097# unimportant, just the number of them matters.
5098#
5099# The practical upshot of these patterns is like this:
5100#
5101# prefix exec_prefix result
5102# ------ ----------- ------
5103# /foo /foo/bar ../
5104# /foo/ /foo/bar ../
5105# /foo /foo/bar/ ../
5106# /foo/ /foo/bar/ ../
5107# /foo /foo/bar/ugg ../../
5108#
4c112cda
NC
5109 dollar='$$'
5110 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8f8d3278 5111changequote([, ])dnl
d062c304
JL
5112fi
5113AC_SUBST(gcc_tooldir)
4c112cda 5114AC_SUBST(dollar)
d062c304 5115
7e717196
JL
5116# Nothing to do for FLOAT_H, float_format already handled.
5117objdir=`pwd`
5118AC_SUBST(objdir)
5119
94f42018
DE
5120# Process the language and host/target makefile fragments.
5121${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
47866ac0 5122
46f18e7b
RK
5123# Substitute configuration variables
5124AC_SUBST(subdirs)
46f18e7b
RK
5125AC_SUBST(all_boot_languages)
5126AC_SUBST(all_compilers)
46f18e7b 5127AC_SUBST(all_diff_excludes)
46f18e7b 5128AC_SUBST(all_headers)
9f3d1bc2
BK
5129AC_SUBST(all_lang_makefiles)
5130AC_SUBST(all_languages)
5131AC_SUBST(all_lib2funcs)
5132AC_SUBST(all_stagestuff)
5133AC_SUBST(build_exeext)
5134AC_SUBST(build_install_headers_dir)
5135AC_SUBST(build_xm_file_list)
5136AC_SUBST(cc_set_by_configure)
5aa82ace 5137AC_SUBST(quoted_cc_set_by_configure)
9f3d1bc2 5138AC_SUBST(cpp_install_dir)
9f3d1bc2
BK
5139AC_SUBST(dep_host_xmake_file)
5140AC_SUBST(dep_tmake_file)
5141AC_SUBST(extra_c_flags)
9f3d1bc2 5142AC_SUBST(extra_headers_list)
46f18e7b 5143AC_SUBST(extra_objs)
9f3d1bc2
BK
5144AC_SUBST(extra_parts)
5145AC_SUBST(extra_passes)
5146AC_SUBST(extra_programs)
9f3d1bc2
BK
5147AC_SUBST(float_h_file)
5148AC_SUBST(gcc_gxx_include_dir)
5149AC_SUBST(gcc_version)
5150AC_SUBST(gcc_version_trigger)
5151AC_SUBST(host_exeext)
46f18e7b 5152AC_SUBST(host_extra_gcc_objs)
46f18e7b 5153AC_SUBST(host_xm_file_list)
9f3d1bc2 5154AC_SUBST(install)
46f18e7b 5155AC_SUBST(lang_options_files)
9f3d1bc2 5156AC_SUBST(lang_specs_files)
3103b7db 5157AC_SUBST(lang_tree_files)
46f18e7b 5158AC_SUBST(local_prefix)
46f18e7b 5159AC_SUBST(maybe_use_collect2)
9f3d1bc2
BK
5160AC_SUBST(md_file)
5161AC_SUBST(objc_boehm_gc)
5162AC_SUBST(out_file)
5163AC_SUBST(out_object_file)
46f18e7b 5164AC_SUBST(stage_prefix_set_by_configure)
e9a25f70 5165AC_SUBST(symbolic_link)
9f3d1bc2
BK
5166AC_SUBST(thread_file)
5167AC_SUBST(tm_file_list)
5168AC_SUBST(will_use_collect2)
9fc9b82a 5169
46f18e7b
RK
5170
5171AC_SUBST_FILE(target_overrides)
5172AC_SUBST_FILE(host_overrides)
5173AC_SUBST(cross_defines)
5174AC_SUBST_FILE(cross_overrides)
5175AC_SUBST_FILE(build_overrides)
5176AC_SUBST_FILE(language_fragments)
5177AC_SUBST_FILE(language_hooks)
5178
5179# Echo that links are built
75bffa71 5180if test x$host = x$target
46f18e7b
RK
5181then
5182 str1="native "
5183else
5184 str1="cross-"
5185 str2=" from $host"
5186fi
5187
75bffa71 5188if test x$host != x$build
46f18e7b
RK
5189then
5190 str3=" on a $build system"
5191fi
5192
75bffa71 5193if test "x$str2" != x || test "x$str3" != x
46f18e7b
RK
5194then
5195 str4=
5196fi
5197
5198echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5199
75bffa71 5200if test "x$str2" != x || test "x$str3" != x
46f18e7b
RK
5201then
5202 echo " ${str2}${str3}." 1>&2
5203fi
5204
61536478 5205# Truncate the target if necessary
75bffa71 5206if test x$host_truncate_target != x; then
61536478
JL
5207 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5208fi
5209
46f18e7b
RK
5210# Configure the subdirectories
5211# AC_CONFIG_SUBDIRS($subdirs)
5212
5213# Create the Makefile
5891b37d 5214# and configure language subdirectories
0280cf84 5215AC_OUTPUT($all_outputs,
cdcc6a01 5216[
cdcc6a01 5217case x$CONFIG_HEADERS in
b7cb92ad 5218xauto-host.h:config.in)
818b66cc 5219echo > cstamp-h ;;
cdcc6a01 5220esac
93cf819d
BK
5221# If the host supports symlinks, point stage[1234] at ../stage[1234] so
5222# bootstrapping and the installation procedure can still use
5223# CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5224# FLAGS_TO_PASS has been modified to solve the problem there.
5225# This is virtually a duplicate of what happens in configure.lang; we do
5226# an extra check to make sure this only happens if ln -s can be used.
75bffa71 5227if test "$symbolic_link" = "ln -s"; then
93cf819d 5228 for d in .. ${subdirs} ; do
75bffa71 5229 if test $d != ..; then
4e8a434e
BK
5230 STARTDIR=`pwd`
5231 cd $d
5232 for t in stage1 stage2 stage3 stage4 include
5233 do
5234 rm -f $t
5235 $symbolic_link ../$t $t 2>/dev/null
5236 done
5237 cd $STARTDIR
93cf819d
BK
5238 fi
5239 done
5240else true ; fi
ab87f8c8
JL
5241# Avoid having to add intl to our include paths.
5242if test -f intl/libintl.h; then
5243 echo creating libintl.h
5244 echo '#include "intl/libintl.h"' >libintl.h
5245fi
cdcc6a01
DE
5246],
5247[
5891b37d
RK
5248host='${host}'
5249build='${build}'
5250target='${target}'
52060267 5251target_alias='${target_alias}'
5891b37d
RK
5252srcdir='${srcdir}'
5253subdirs='${subdirs}'
5254symbolic_link='${symbolic_link}'
5255program_transform_set='${program_transform_set}'
5256program_transform_name='${program_transform_name}'
5891b37d
RK
5257dep_host_xmake_file='${dep_host_xmake_file}'
5258host_xmake_file='${host_xmake_file}'
5259dep_tmake_file='${dep_tmake_file}'
5260tmake_file='${tmake_file}'
0bbb1697 5261thread_file='${thread_file}'
f1943b77
MH
5262gcc_version='${gcc_version}'
5263gcc_version_trigger='${gcc_version_trigger}'
5891b37d 5264local_prefix='${local_prefix}'
5891b37d 5265build_install_headers_dir='${build_install_headers_dir}'
a204adc6 5266build_exeext='${build_exeext}'
6e26218f 5267host_exeext='${host_exeext}'
7ed46111 5268out_file='${out_file}'
5891b37d
RK
5269gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5270SET_MAKE='${SET_MAKE}'
5891b37d 5271target_list='${target_list}'
5891b37d
RK
5272target_overrides='${target_overrides}'
5273host_overrides='${host_overrides}'
5274cross_defines='${cross_defines}'
5275cross_overrides='${cross_overrides}'
5276build_overrides='${build_overrides}'
9fc9b82a 5277cpp_install_dir='${cpp_install_dir}'
cdcc6a01 5278])
This page took 1.25566 seconds and 5 git commands to generate.