OSDN Git Service

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