OSDN Git Service

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