OSDN Git Service

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