OSDN Git Service

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