OSDN Git Service

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