OSDN Git Service

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