OSDN Git Service

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