OSDN Git Service

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