OSDN Git Service

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