OSDN Git Service

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