OSDN Git Service

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