OSDN Git Service

07b16ba42f1100ce59e89cf76644c0f6e6d490c5
[pf3gnuchains/gcc-fork.git] / gcc / configure.in
1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
3
4 # Copyright (C) 1997, 1998, 1999, 2000 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.13)
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 gcc. 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 gcc. Please change the environment variable
83 *** and run configure again.])
84 fi
85
86 # Check for additional parameters
87
88 # With GNU ld
89 AC_ARG_WITH(gnu-ld,
90 [  --with-gnu-ld           arrange to work with GNU ld.],
91 gnu_ld_flag="$with_gnu_ld",
92 gnu_ld_flag=no)
93
94 # With pre-defined ld
95 AC_ARG_WITH(ld,
96 [  --with-ld               arrange to use the specified ld (full pathname).],
97 DEFAULT_LINKER="$with_ld")
98 if test x"${DEFAULT_LINKER+set}" = x"set"; then
99   if test ! -x "$DEFAULT_LINKER"; then
100     AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
101   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
102     gnu_ld_flag=yes
103   fi
104   AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER",
105         [Define to enable the use of a default linker.])
106 fi
107
108 # With GNU as
109 AC_ARG_WITH(gnu-as,
110 [  --with-gnu-as           arrange to work with GNU as.],
111 gas_flag="$with_gnu_as",
112 gas_flag=no)
113
114 AC_ARG_WITH(as,
115 [  --with-as               arrange to use the specified as (full pathname).],
116 DEFAULT_ASSEMBLER="$with_as")
117 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
118   if test ! -x "$DEFAULT_ASSEMBLER"; then
119     AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
120   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
121     gas_flag=yes
122   fi
123   AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER",
124         [Define to enable the use of a default assembler.])
125 fi
126
127 # With stabs
128 AC_ARG_WITH(stabs,
129 [  --with-stabs            arrange to use stabs instead of host debug format.],
130 stabs="$with_stabs",
131 stabs=no)
132
133 # With ELF
134 AC_ARG_WITH(elf,
135 [  --with-elf              arrange to use ELF instead of host debug format.],
136 elf="$with_elf",
137 elf=no)
138
139 # Specify the local prefix
140 local_prefix=
141 AC_ARG_WITH(local-prefix,
142 [  --with-local-prefix=DIR specifies directory to put local include.],
143 [case "${withval}" in
144 yes)    AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
145 no)     ;;
146 *)      local_prefix=$with_local_prefix ;;
147 esac])
148
149 # Default local prefix if it is empty
150 if test x$local_prefix = x; then
151         local_prefix=/usr/local
152 fi
153
154 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
155 # passed in by the toplevel make and thus we'd get different behavior
156 # depending on where we built the sources.
157 gcc_gxx_include_dir=
158 # Specify the g++ header file directory
159 AC_ARG_WITH(gxx-include-dir,
160 [  --with-gxx-include-dir=DIR
161                           specifies directory to put g++ header files.],
162 [case "${withval}" in
163 yes)    AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
164 no)     ;;
165 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
166 esac])
167
168 if test x${gcc_gxx_include_dir} = x; then
169   if test x${enable_version_specific_runtime_libs} = xyes; then
170     gcc_gxx_include_dir='${libsubdir}/include/g++'
171   else
172     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
173 changequote(<<, >>)dnl
174     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
175 changequote([, ])dnl
176   fi
177 fi
178
179 # Enable expensive internal checks
180 AC_ARG_ENABLE(checking,
181 [  --enable-checking[=LIST]
182                           enable expensive run-time checks.  With LIST,
183                           enable only specific categories of checks.
184                           Categories are: misc,tree,rtl,gc,gcac; default
185                           is misc,tree,rtl],
186 [ac_checking=
187 ac_tree_checking=
188 ac_rtl_checking=
189 ac_gc_checking=
190 ac_gc_always_collect=
191 case "${enableval}" in
192 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_rtl_checking=1 ;;
193 no)     ;;
194 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS" IFS="$IFS,"
195         set fnord $enableval; shift
196         IFS="$ac_save_IFS"
197         for check
198         do
199                 case $check in
200                 misc)   ac_checking=1 ;;
201                 tree)   ac_tree_checking=1 ;;
202                 rtl)    ac_rtl_checking=1 ;;
203                 gc)     ac_gc_checking=1 ;;
204                 gcac)   ac_gc_always_collect=1 ;;
205                 *)      AC_MSG_ERROR(unknown check category $check) ;;
206                 esac
207         done
208         ;;
209 esac
210 if test x$ac_checking != x ; then
211   AC_DEFINE(ENABLE_CHECKING, 1,
212 [Define if you want more run-time sanity checks.  This one gets a grab
213    bag of miscellaneous but relatively cheap checks.])
214 fi
215 if test x$ac_tree_checking != x ; then
216   AC_DEFINE(ENABLE_TREE_CHECKING, 1,
217 [Define if you want all operations on trees (the basic data
218    structure of the front ends) to be checked for dynamic type safety
219    at runtime.  This is moderately expensive.])
220 fi
221 if test x$ac_rtl_checking != x ; then
222   AC_DEFINE(ENABLE_RTL_CHECKING, 1,
223 [Define if you want all operations on RTL (the basic data structure
224    of the optimizer and back end) to be checked for dynamic type safety
225    at runtime.  This is quite expensive.])
226 fi
227 if test x$ac_gc_checking != x ; then
228   AC_DEFINE(ENABLE_GC_CHECKING, 1,
229 [Define if you want the garbage collector to do object poisoning and
230    other memory allocation checks.  This is quite expensive.])
231 fi
232 if test x$ac_gc_always_collect != x ; then
233   AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT, 1,
234 [Define if you want the garbage collector to operate in maximally
235    paranoid mode, validating the entire heap and collecting garbage at
236    every opportunity.  This is extremely expensive.])
237 fi
238 ])
239
240 AC_ARG_ENABLE(cpp,
241 [  --disable-cpp           don't provide a user-visible C preprocessor.],
242 [], [enable_cpp=yes])
243
244 AC_ARG_WITH(cpp_install_dir,
245 [  --with-cpp-install-dir=DIR
246                           install the user visible C preprocessor in DIR
247                           (relative to PREFIX) as well as PREFIX/bin.],
248 [if test x$withval = xyes; then
249   AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
250 elif test x$withval != xno; then
251   cpp_install_dir=$withval
252 fi])
253
254 dnl Disable this for the moment; the library interface is changing.
255 dnl # Link cpplib into the compiler proper, for C/C++/ObjC.
256 dnl AC_ARG_ENABLE(c-cpplib,
257 dnl [  --enable-c-cpplib       link cpplib directly into C and C++ compilers
258 dnl                           (EXPERIMENTAL) (implies --enable-cpplib).],
259 dnl if test x$enable_c_cpplib != xno; then
260 dnl  extra_c_objs="${extra_c_objs} libcpp.a"
261 dnl  extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
262 dnl  extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
263 dnl fi)
264
265 # Enable Multibyte Characters for C/C++
266 AC_ARG_ENABLE(c-mbchar,
267 [  --enable-c-mbchar       Enable multibyte characters for C and C++.],
268 if test x$enable_c_mbchar != xno; then
269   extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
270 fi)
271   
272 # Enable threads
273 # Pass with no value to take the default
274 # Pass with a value to specify a thread package
275 AC_ARG_ENABLE(threads,
276 [  --enable-threads        enable thread usage for target GCC.
277   --enable-threads=LIB    use LIB thread package for target GCC.],
278 if test x$enable_threads = xno; then
279         enable_threads=''
280 fi,
281 enable_threads='')
282
283 enable_threads_flag=$enable_threads
284 # Check if a valid thread package
285 case x${enable_threads_flag} in
286         x | xno)
287                 # No threads
288                 target_thread_file='single'
289                 ;;
290         xyes)
291                 # default
292                 target_thread_file=''
293                 ;;
294         xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
295         xsolaris | xwin32 | xdce | xvxworks)
296                 target_thread_file=$enable_threads_flag
297                 ;;
298         *)
299                 echo "$enable_threads is an unknown thread package" 1>&2
300                 exit 1
301                 ;;
302 esac
303
304 AC_ARG_ENABLE(objc-gc,
305 [  --enable-objc-gc       enable the use of Boehm's garbage collector with
306                           the GNU Objective-C runtime.],
307 if test x$enable_objc_gc = xno; then
308         objc_boehm_gc=''
309 else
310         objc_boehm_gc=1
311 fi,
312 objc_boehm_gc='')
313
314 AC_ARG_WITH(dwarf2,
315 [  --with-dwarf2          force the default debug format to be DWARF2.],
316 dwarf2="$with_dwarf2",
317 dwarf2=no)
318
319 # Determine the host, build, and target systems
320 AC_CANONICAL_SYSTEM
321
322 # Find the native compiler
323 AC_PROG_CC
324 gcc_AC_C_LONG_DOUBLE
325
326 # If the native compiler is GCC, we can enable warnings even in stage1.  
327 # That's useful for people building cross-compilers, or just running a
328 # quick `make'.
329 if test "x$GCC" = "xyes"; then 
330   stage1_warn_cflags='$(WARN_CFLAGS)'
331 else
332   stage1_warn_cflags=""
333 fi
334 AC_SUBST(stage1_warn_cflags)
335
336 AC_PROG_MAKE_SET
337
338 AC_MSG_CHECKING([whether a default assembler was specified])
339 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
340     if test x"$gas_flag" = x"no"; then
341         AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
342     else
343         AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
344     fi
345 else
346     AC_MSG_RESULT(no)
347 fi
348
349 AC_MSG_CHECKING([whether a default linker was specified])
350 if test x"${DEFAULT_LINKER+set}" = x"set"; then
351     if test x"$gnu_ld_flag" = x"no"; then
352         AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
353     else
354         AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
355     fi
356 else
357     AC_MSG_RESULT(no)
358 fi
359
360 # Find some useful tools
361 AC_PROG_AWK
362 AC_PROG_LEX
363 gcc_AC_PROG_LN
364 gcc_AC_PROG_LN_S
365 gcc_AC_C_VOLATILE
366 AC_PROG_RANLIB
367 AC_PROG_YACC
368 gcc_AC_PROG_INSTALL
369
370 AC_HEADER_STDC
371 AC_HEADER_TIME
372 gcc_AC_HEADER_STRING
373 AC_HEADER_SYS_WAIT
374 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
375                  fcntl.h unistd.h stab.h sys/file.h sys/time.h \
376                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
377                  direct.h malloc.h)
378
379 # Check for thread headers.
380 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
381 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
382
383 # See if GNAT has been installed
384 AC_CHECK_PROG(gnat, gnatbind, yes, no)
385
386 # See if the stage1 system preprocessor understands the ANSI C
387 # preprocessor stringification operator.
388 AC_C_STRINGIZE
389
390 # Use <inttypes.h> only if it exists,
391 # doesn't clash with <sys/types.h>, and declares intmax_t.
392 AC_MSG_CHECKING(for inttypes.h)
393 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
394 [AC_TRY_COMPILE(
395   [#include <sys/types.h>
396 #include <inttypes.h>],
397   [intmax_t i = -1;],
398   [gcc_cv_header_inttypes_h=yes],
399   gcc_cv_header_inttypes_h=no)])
400 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
401 if test $gcc_cv_header_inttypes_h = yes; then
402   AC_DEFINE(HAVE_INTTYPES_H, 1,
403         [Define if you have a working <inttypes.h> header file.])
404 fi
405
406 #
407 # Determine if enumerated bitfields are unsigned.   ISO C says they can 
408 # be either signed or unsigned.
409 #
410 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
411 [AC_TRY_RUN(#include <stdlib.h>
412 enum t { BLAH = 128 } ;
413 struct s_t { enum t member : 8; } s ;
414 int main(void)
415 {            
416         s.member = BLAH;
417         if (s.member < 0) exit(1);
418         exit(0);
419
420 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
421 if test $gcc_cv_enum_bf_unsigned = yes; then
422   AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
423     [Define if enumerated bitfields are treated as unsigned values.])
424 fi
425
426 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
427         index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
428         sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
429         fputs_unlocked getrusage valloc)
430
431 # Make sure wchar_t is available
432 #AC_CHECK_TYPE(wchar_t, unsigned int)
433
434 gcc_AC_FUNC_VFPRINTF_DOPRNT
435 gcc_AC_FUNC_PRINTF_PTR
436
437 case "${host}" in
438 *-*-uwin*)
439   # Under some versions of uwin, vfork is notoriously buggy and the test 
440   # can hang configure; on other versions, vfork exists just as a stub.
441   # FIXME: This should be removed once vfork in uwin's runtime is fixed.
442   ac_cv_func_vfork_works=no
443   ;;
444 esac
445 AC_FUNC_VFORK
446 AC_FUNC_MMAP_ANYWHERE
447 AC_FUNC_MMAP_FILE
448
449 # We will need to find libiberty.h and ansidecl.h
450 saved_CFLAGS="$CFLAGS"
451 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
452 gcc_AC_NEED_DECLARATIONS(bcopy bzero bcmp \
453         index rindex getenv atol sbrk abort atof getcwd getwd \
454         strsignal putc_unlocked fputs_unlocked strstr environ \
455         malloc realloc calloc free, [
456 #include "gansidecl.h"
457 #include "system.h"])
458
459 gcc_AC_NEED_DECLARATIONS(getrlimit setrlimit getrusage, [
460 #include "gansidecl.h"
461 #include "system.h"
462 #ifdef HAVE_SYS_RESOURCE_H
463 #include <sys/resource.h>
464 #endif
465 ])
466
467 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
468 CFLAGS="$saved_CFLAGS"
469
470 # mkdir takes a single argument on some systems. 
471 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
472
473 # File extensions
474 manext='.1'
475 objext='.o'
476 AC_SUBST(manext)
477 AC_SUBST(objext)
478
479 build_xm_file=
480 build_xm_defines=
481 build_install_headers_dir=install-headers-tar
482 build_exeext=
483 host_xm_file=
484 host_xm_defines=
485 host_xmake_file=
486 host_truncate_target=
487 host_exeext=
488
489 # Decode the host machine, then the target machine.
490 # For the host machine, we save the xm_file variable as host_xm_file;
491 # then we decode the target machine and forget everything else
492 # that came from the host machine.
493 for machine in $build $host $target; do
494
495         out_file=
496         xmake_file=
497         tmake_file=
498         extra_headers=
499         extra_passes=
500         extra_parts=
501         extra_programs=
502         extra_objs=
503         extra_host_objs=
504         extra_gcc_objs=
505         xm_defines=
506         float_format=
507         # Set this to force installation and use of collect2.
508         use_collect2=
509         # Set this to override the default target model.
510         target_cpu_default=
511         # Set this to control how the header file directory is installed.
512         install_headers_dir=install-headers-tar
513         # Set this to a non-empty list of args to pass to cpp if the target
514         # wants its .md file passed through cpp.
515         md_cppflags=
516         # Set this if directory names should be truncated to 14 characters.
517         truncate_target=
518         # Set this if gdb needs a dir command with `dirname $out_file`
519         gdb_needs_out_file_path=
520         # Set this if the build machine requires executables to have a
521         # file name suffix.
522         exeext=
523         # Set this to control which thread package will be used.
524         thread_file=
525         # Reinitialize these from the flag values every loop pass, since some
526         # configure entries modify them.
527         gas="$gas_flag"
528         gnu_ld="$gnu_ld_flag"
529         enable_threads=$enable_threads_flag
530
531         # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
532         # updated in each machine entry.
533         tm_p_file=
534         cpu_type=`echo $machine | sed 's/-.*$//'`
535         case $machine in
536         alpha*-*-*)
537                 cpu_type=alpha
538                 ;;
539         arm*-*-*)
540                 cpu_type=arm
541                 ;;
542         c*-convex-*)
543                 cpu_type=convex
544                 ;;
545 changequote(,)dnl
546         i[34567]86-*-*)
547 changequote([,])dnl
548                 cpu_type=i386
549                 ;;
550         hppa*-*-*)
551                 cpu_type=pa
552                 ;;
553         m68000-*-*)
554                 cpu_type=m68k
555                 ;;
556         mips*-*-*)
557                 cpu_type=mips
558                 ;;
559         pj*-*-*)
560                 cpu_type=pj
561                 ;;
562         powerpc*-*-*)
563                 cpu_type=rs6000
564                 ;;
565         pyramid-*-*)
566                 cpu_type=pyr
567                 ;;
568         sparc*-*-*)
569                 cpu_type=sparc
570                 ;;
571         esac
572
573         tm_file=${cpu_type}/${cpu_type}.h
574         xm_file=${cpu_type}/xm-${cpu_type}.h
575         if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
576         then
577                 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
578         fi
579         # On a.out targets, we need to use collect2.
580         case $machine in
581         *-*-*aout*)
582                 use_collect2=yes
583                 ;;
584         esac    
585
586         # Common parts for linux-gnu and openbsd systems
587         case $machine in
588         *-*-linux-gnu*)
589                 xm_defines="HAVE_ATEXIT POSIX BSTRING"
590                 ;;
591         *-*-openbsd*)
592                 tm_file=${cpu_type}/openbsd.h
593                 tmake_file="t-libc-ok t-openbsd"
594                 # avoid surprises, always provide an xm-openbsd file 
595                 xm_file=${cpu_type}/xm-openbsd.h
596                 # don't depend on processor x-fragments as well
597                 xmake_file=none
598                 if test x$enable_threads = xyes; then
599                         thread_file='posix'
600                         tmake_file="${tmake_file} t-openbsd-thread"
601                 fi
602                 ;;
603         esac
604
605         case $machine in
606         # Support site-specific machine types.
607         *local*)
608                 cpu_type=`echo $machine | sed -e 's/-.*//'`
609                 rest=`echo $machine | sed -e "s/$cpu_type-//"`
610                 xm_file=${cpu_type}/xm-$rest.h
611                 tm_file=${cpu_type}/$rest.h
612                 if test -f $srcdir/config/${cpu_type}/x-$rest; \
613                 then xmake_file=${cpu_type}/x-$rest; \
614                 else true; \
615                 fi
616                 if test -f $srcdir/config/${cpu_type}/t-$rest; \
617                 then tmake_file=${cpu_type}/t-$rest; \
618                 else true; \
619                 fi
620                 ;;
621         1750a-*-*)
622                 ;;
623         a29k-*-bsd* | a29k-*-sym1*)
624                 tm_file="${tm_file} a29k/unix.h"
625                 xm_defines=USG
626                 xmake_file=a29k/x-unix
627                 use_collect2=yes
628                 ;;
629         a29k-*-udi | a29k-*-coff)
630                 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
631                 tmake_file=a29k/t-a29kbare
632                 ;;
633         a29k-wrs-vxworks*)
634                 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
635                 tmake_file=a29k/t-vx29k
636                 extra_parts="crtbegin.o crtend.o"
637                 thread_file='vxworks'
638                 ;;
639         a29k-*-*)                       # Default a29k environment.
640                 use_collect2=yes
641                 ;;
642         alpha-*-interix)
643                 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
644
645                 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
646                 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
647
648                 # GAS + IEEE_CONFORMANT
649                 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
650
651                 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
652                 xmake_file="x-interix alpha/t-pe"
653                 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
654                 if test x$enable_threads = xyes ; then
655                         thread_file='posix'
656                 fi
657                 if test x$stabs = xyes ; then
658                         tm_file="${tm_file} dbxcoff.h"
659                 fi
660                 #prefix='$$INTERIX_ROOT'/usr/contrib
661                 #local_prefix='$$INTERIX_ROOT'/usr/contrib
662                 ;;
663         alpha*-*-linux-gnuecoff*)
664                 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
665                 target_cpu_default="MASK_GAS"
666                 tmake_file="alpha/t-alpha alpha/t-ieee"
667                 gas=no
668                 xmake_file=none
669                 gas=yes gnu_ld=yes
670                 ;;
671         alpha*-*-linux-gnulibc1*)
672                 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
673                 target_cpu_default="MASK_GAS"
674                 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-linux alpha/t-crtbe alpha/t-ieee"
675                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
676                 xmake_file=none
677                 gas=yes gnu_ld=yes
678                 if test x$enable_threads = xyes; then
679                         thread_file='posix'
680                 fi
681                 ;;
682         alpha*-*-linux-gnu*)
683                 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
684                 target_cpu_default="MASK_GAS"
685                 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
686                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
687                 xmake_file=none
688                 gas=yes gnu_ld=yes
689                 if test x$enable_threads = xyes; then
690                         thread_file='posix'
691                 fi
692                 ;;
693         alpha*-*-netbsd*)
694                 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
695                 target_cpu_default="MASK_GAS"
696                 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
697                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
698                 xmake_file=none
699                 gas=yes gnu_ld=yes
700                 ;;
701
702         alpha*-*-openbsd*)
703                 # default x-alpha is only appropriate for dec-osf.
704                 target_cpu_default="MASK_GAS"
705                 tmake_file="alpha/t-alpha alpha/t-ieee"
706                 ;;
707                 
708         alpha*-dec-osf*)
709                 if test x$stabs = xyes
710                 then
711                         tm_file="${tm_file} dbx.h"
712                 fi
713                 if test x$gas != xyes
714                 then
715                         extra_passes="mips-tfile mips-tdump"
716                 fi
717                 use_collect2=yes
718                 tmake_file="alpha/t-alpha alpha/t-ieee"
719                 case $machine in
720                   *-*-osf1*)
721                     tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
722                     ;;
723 changequote(,)dnl
724                   *-*-osf[23]*)
725 changequote([,])dnl
726                     tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
727                     ;;
728                   *-*-osf4*)
729                     tm_file="${tm_file} alpha/osf.h"
730                     # Some versions of OSF4 (specifically X4.0-9 296.7) have
731                     # a broken tar, so we use cpio instead.
732                     install_headers_dir=install-headers-cpio
733                     ;;
734                   *-*-osf5*)
735                     tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
736                     ;;
737                 esac
738                 case $machine in
739 changequote(,)dnl
740                   *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
741 changequote([,])dnl
742                     target_cpu_default=MASK_SUPPORT_ARCH
743                     ;;
744                 esac
745                 ;;
746         alpha*-*-vxworks*)
747                 tm_file="${tm_file} dbx.h alpha/vxworks.h"
748                 tmake_file="alpha/t-alpha alpha/t-ieee"
749                 if [ x$gas != xyes ]
750                 then
751                         extra_passes="mips-tfile mips-tdump"
752                 fi
753                 use_collect2=yes
754                 thread_file='vxworks'
755                 ;;
756         alpha*-*-winnt*)
757                 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
758                 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
759                 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
760                 xmake_file=winnt/x-winnt
761                 extra_host_objs=oldnames.o
762                 extra_gcc_objs="spawnv.o oldnames.o"
763                 if test x$gnu_ld != xyes
764                 then
765                         extra_programs=ld.exe
766                 fi
767                 if test x$enable_threads = xyes; then
768                         thread_file='win32'
769                 fi
770                 ;;
771         alpha*-dec-vms*)
772                 tm_file=alpha/vms.h
773                 xm_file="${xm_file} alpha/xm-vms.h"
774                 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
775                 ;;
776         arc-*-elf*)
777                 extra_parts="crtinit.o crtfini.o"
778                 ;;
779         arm-*-coff* | armel-*-coff*)
780                 tm_file=arm/coff.h
781                 tmake_file=arm/t-arm-coff
782                 ;;
783         arm-*-vxworks*)
784                 tm_file=arm/vxarm.h
785                 tmake_file=arm/t-arm-coff
786                 thread_file='vxworks'
787                 ;;
788 changequote(,)dnl
789         arm-*-riscix1.[01]*)            # Acorn RISC machine (early versions)
790 changequote([,])dnl
791                 tm_file=arm/riscix1-1.h
792                 use_collect2=yes
793                 ;;
794         arm-*-riscix*)                  # Acorn RISC machine
795                 if test x$gas = xyes
796                 then
797                     tm_file=arm/rix-gas.h
798                 else
799                     tm_file=arm/riscix.h
800                 fi
801                 xmake_file=arm/x-riscix
802                 tmake_file=arm/t-riscix
803                 use_collect2=yes
804                 ;;
805         arm-semi-aout | armel-semi-aout)
806                 tm_file=arm/semi.h
807                 tmake_file=arm/t-semi
808                 ;;
809         arm-semi-aof | armel-semi-aof)
810                 tm_file=arm/semiaof.h
811                 tmake_file=arm/t-semiaof
812                 ;;
813         arm*-*-netbsd*)
814                 tm_file=arm/netbsd.h
815                 tmake_file="t-netbsd arm/t-netbsd"
816                 use_collect2=yes
817                 ;;
818         arm*-*-linux-gnuaout*)          # ARM GNU/Linux with a.out
819                 cpu_type=arm
820                 xmake_file=x-linux
821                 tm_file=arm/linux-aout.h
822                 tmake_file=arm/t-linux
823                 gnu_ld=yes
824                 ;;
825         arm*-*-linux-gnuoldld*)         # ARM GNU/Linux with old ELF linker
826                 xm_file=arm/xm-linux.h
827                 xmake_file=x-linux
828                 tm_file="arm/linux-oldld.h arm/linux-elf.h"
829                 case $machine in
830                 armv2*-*-*)
831                         tm_file="arm/linux-elf26.h $tm_file"
832                         ;;
833                 esac
834                 tmake_file="t-linux arm/t-linux"
835                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
836                 gnu_ld=yes
837                 case x${enable_threads} in
838                 x | xyes | xpthreads | xposix)
839                         thread_file='posix'
840                         ;;
841                 esac
842                 ;;
843         arm*-*-linux-gnu*)              # ARM GNU/Linux with ELF
844                 xm_file=arm/xm-linux.h
845                 xmake_file=x-linux
846                 tm_file="arm/linux-elf.h"
847                 case $machine in
848                 armv2*-*-*)
849                         tm_file="arm/linux-elf26.h $tm_file"
850                         ;;
851                 esac
852                 tmake_file="t-linux arm/t-linux"
853                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
854                 gnu_ld=yes
855                 case x${enable_threads} in
856                 x | xyes | xpthreads | xposix)
857                         thread_file='posix'
858                         ;;
859                 esac
860                 ;;
861         arm*-*-uclinux*)                # ARM ucLinux
862                 tm_file=arm/uclinux-elf.h
863                 tmake_file=arm/t-arm-elf
864                 ;;
865         arm*-*-aout)
866                 tm_file=arm/aout.h
867                 tmake_file=arm/t-arm-aout
868                 ;;
869         arm*-*-ecos-elf)
870                 tm_file=arm/ecos-elf.h
871                 tmake_file=arm/t-arm-elf
872                 ;; 
873         arm*-*-elf)
874                 tm_file=arm/unknown-elf.h
875                 tmake_file=arm/t-arm-elf
876                 ;;
877         arm*-*-conix*)
878                 tm_file=arm/conix-elf.h
879                 tmake_file=arm/t-arm-elf
880                 ;;
881         arm*-*-oabi)
882                 tm_file=arm/unknown-elf-oabi.h
883                 tmake_file=arm/t-arm-elf
884                 ;;
885         arm-*-pe*)
886                 tm_file=arm/pe.h
887                 tmake_file=arm/t-pe
888                 extra_objs="pe.o"
889                 ;;
890         avr-*-*)
891                 ;;
892         c1-convex-*)                    # Convex C1
893                 target_cpu_default=1
894                 use_collect2=yes
895                 ;;
896         c2-convex-*)                    # Convex C2
897                 target_cpu_default=2
898                 use_collect2=yes
899                 ;;
900         c32-convex-*)
901                 target_cpu_default=4
902                 use_collect2=yes
903                 ;;
904         c34-convex-*)
905                 target_cpu_default=8
906                 use_collect2=yes
907                 ;;
908         c38-convex-*)
909                 target_cpu_default=16           
910                 use_collect2=yes
911                 ;;
912         c4x-*)
913                 cpu_type=c4x
914                 tmake_file=c4x/t-c4x
915                 ;;
916         clipper-intergraph-clix*)
917                 tm_file="${tm_file} svr3.h clipper/clix.h"
918                 xm_file=clipper/xm-clix.h
919                 xmake_file=clipper/x-clix
920                 extra_headers=va-clipper.h
921                 extra_parts="crtbegin.o crtend.o"
922                 install_headers_dir=install-headers-cpio
923                 ;;
924         d30v-*)
925                 float_format=i64
926                 ;;
927         dsp16xx-*)
928                 ;;
929         elxsi-elxsi-*)
930                 use_collect2=yes
931                 ;;
932         fr30-*-elf)
933                 tm_file="fr30/fr30.h"
934                 tmake_file=fr30/t-fr30
935                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
936                 ;;
937 # This hasn't been upgraded to GCC 2.
938 #       fx80-alliant-*)                 # Alliant FX/80
939 #               ;;
940         h8300-*-*)
941                 float_format=i32
942                 ;;
943         hppa*-*-linux*)
944                 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
945                 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
946                 tmake_file="t-linux pa/t-linux"
947                 extra_parts="crtbegin.o crtend.o"
948                 xmake_file=none
949                 gas=yes gnu_ld=yes
950                 if test x$enable_threads = xyes; then
951                         thread_file='posix'
952                 fi
953                 ;;
954         hppa*-*-openbsd*)
955                 target_cpu_default="MASK_PA_11"
956                 tmake_file=pa/t-openbsd
957                 ;;
958         hppa1.1-*-pro*)
959                 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
960                 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
961                 xm_file=pa/xm-papro.h
962                 tmake_file=pa/t-pro
963                 ;;
964         hppa1.1-*-osf*)
965                 target_cpu_default="MASK_PA_11"
966                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
967                 use_collect2=yes
968                 ;;
969         hppa1.1-*-rtems*)
970                 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
971                 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
972                 xm_file=pa/xm-papro.h
973                 tmake_file=pa/t-pro
974                 ;;
975         hppa1.0-*-osf*)
976                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
977                 use_collect2=yes
978                 ;;
979         hppa1.1-*-bsd*)
980                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
981                 target_cpu_default="MASK_PA_11"
982                 use_collect2=yes
983                 ;;
984         hppa1.0-*-bsd*)
985                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
986                 use_collect2=yes
987                 ;;
988         hppa1.0-*-hpux7*)
989                 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
990                 xm_file=pa/xm-pahpux.h
991                 xmake_file=pa/x-pa-hpux
992                 if test x$gas = xyes
993                 then
994                         tm_file="${tm_file} pa/gas.h"
995                 fi
996                 install_headers_dir=install-headers-cpio
997                 use_collect2=yes
998                 ;;
999 changequote(,)dnl
1000         hppa1.0-*-hpux8.0[0-2]*)
1001 changequote([,])dnl
1002                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1003                 xm_file=pa/xm-pahpux.h
1004                 xmake_file=pa/x-pa-hpux
1005                 if test x$gas = xyes
1006                 then
1007                         tm_file="${tm_file} pa/pa-gas.h"
1008                 else
1009                         tm_file="pa/pa-oldas.h ${tm_file}"
1010                 fi
1011                 install_headers_dir=install-headers-cpio
1012                 use_collect2=yes
1013                 ;;
1014 changequote(,)dnl
1015         hppa1.1-*-hpux8.0[0-2]*)
1016 changequote([,])dnl
1017                 target_cpu_default="MASK_PA_11"
1018                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1019                 xm_file=pa/xm-pahpux.h
1020                 xmake_file=pa/x-pa-hpux
1021                 if test x$gas = xyes
1022                 then
1023                         tm_file="${tm_file} pa/pa-gas.h"
1024                 else
1025                         tm_file="pa/pa-oldas.h ${tm_file}"
1026                 fi
1027                 install_headers_dir=install-headers-cpio
1028                 use_collect2=yes
1029                 ;;
1030         hppa1.1-*-hpux8*)
1031                 target_cpu_default="MASK_PA_11"
1032                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1033                 xm_file=pa/xm-pahpux.h
1034                 xmake_file=pa/x-pa-hpux
1035                 if test x$gas = xyes
1036                 then
1037                         tm_file="${tm_file} pa/pa-gas.h"
1038                 fi
1039                 install_headers_dir=install-headers-cpio
1040                 use_collect2=yes
1041                 ;;
1042         hppa1.0-*-hpux8*)
1043                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1044                 xm_file=pa/xm-pahpux.h
1045                 xmake_file=pa/x-pa-hpux
1046                 if test x$gas = xyes
1047                 then
1048                         tm_file="${tm_file} pa/pa-gas.h"
1049                 fi
1050                 install_headers_dir=install-headers-cpio
1051                 use_collect2=yes
1052                 ;;
1053         hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1054                 target_cpu_default="MASK_PA_11"
1055                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1056                 float_format=i128
1057                 xm_file=pa/xm-pahpux.h
1058                 xmake_file=pa/x-pa-hpux
1059                 tmake_file=pa/t-pa
1060                 if test x$gas = xyes
1061                 then
1062                         tm_file="${tm_file} pa/pa-gas.h"
1063                 fi
1064                 if test x$enable_threads = x; then
1065                     enable_threads=$have_pthread_h
1066                 fi
1067                 if test x$enable_threads = xyes; then
1068                         thread_file='dce'
1069                         tmake_file="${tmake_file} pa/t-dce-thr"
1070                 fi
1071                 install_headers_dir=install-headers-cpio
1072                 use_collect2=yes
1073                 ;;
1074         hppa1.0-*-hpux10*)
1075                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1076                 float_format=i128
1077                 xm_file=pa/xm-pahpux.h
1078                 xmake_file=pa/x-pa-hpux
1079                 tmake_file=pa/t-pa
1080                 if test x$gas = xyes
1081                 then
1082                         tm_file="${tm_file} pa/pa-gas.h"
1083                 fi
1084                 if test x$enable_threads = x; then
1085                     enable_threads=$have_pthread_h
1086                 fi
1087                 if test x$enable_threads = xyes; then
1088                         thread_file='dce'
1089                         tmake_file="${tmake_file} pa/t-dce-thr"
1090                 fi
1091                 install_headers_dir=install-headers-cpio
1092                 use_collect2=yes
1093                 ;;
1094         hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1095                 target_cpu_default="MASK_PA_11"
1096                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1097                 float_format=i128
1098                 xm_file=pa/xm-pahpux.h
1099                 xmake_file=pa/x-pa-hpux
1100                 tmake_file=pa/t-pa
1101                 if test x$gas = xyes
1102                 then
1103                         tm_file="${tm_file} pa/pa-gas.h"
1104                 fi
1105 #               if test x$enable_threads = x; then
1106 #                   enable_threads=$have_pthread_h
1107 #               fi
1108 #               if test x$enable_threads = xyes; then
1109 #                       thread_file='dce'
1110 #                       tmake_file="${tmake_file} pa/t-dce-thr"
1111 #               fi
1112                 install_headers_dir=install-headers-cpio
1113                 use_collect2=yes
1114                 ;;
1115         hppa1.0-*-hpux11*)
1116                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1117                 float_format=i128
1118                 xm_file=pa/xm-pahpux.h
1119                 xmake_file=pa/x-pa-hpux
1120                 if test x$gas = xyes
1121                 then
1122                         tm_file="${tm_file} pa/pa-gas.h"
1123                 fi
1124 #               if test x$enable_threads = x; then
1125 #                   enable_threads=$have_pthread_h
1126 #               fi
1127 #               if test x$enable_threads = xyes; then
1128 #                       thread_file='dce'
1129 #                       tmake_file="${tmake_file} pa/t-dce-thr"
1130 #               fi
1131                 install_headers_dir=install-headers-cpio
1132                 use_collect2=yes
1133                 ;;
1134         hppa1.1-*-hpux* | hppa2*-*-hpux*)
1135                 target_cpu_default="MASK_PA_11"
1136                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1137                 xm_file=pa/xm-pahpux.h
1138                 xmake_file=pa/x-pa-hpux
1139                 if test x$gas = xyes
1140                 then
1141                         tm_file="${tm_file} pa/pa-gas.h"
1142                 fi
1143                 install_headers_dir=install-headers-cpio
1144                 use_collect2=yes
1145                 ;;
1146         hppa1.0-*-hpux*)
1147                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1148                 xm_file=pa/xm-pahpux.h
1149                 xmake_file=pa/x-pa-hpux
1150                 if test x$gas = xyes
1151                 then
1152                         tm_file="${tm_file} pa/pa-gas.h"
1153                 fi
1154                 install_headers_dir=install-headers-cpio
1155                 use_collect2=yes
1156                 ;;
1157         hppa1.1-*-hiux* | hppa2*-*-hiux*)
1158                 target_cpu_default="MASK_PA_11"
1159                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1160                 xm_file=pa/xm-pahpux.h
1161                 xmake_file=pa/x-pa-hpux
1162                 if test x$gas = xyes
1163                 then
1164                         tm_file="${tm_file} pa/pa-gas.h"
1165                 fi
1166                 install_headers_dir=install-headers-cpio
1167                 use_collect2=yes
1168                 ;;
1169         hppa1.0-*-hiux*)
1170                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1171                 xm_file=pa/xm-pahpux.h
1172                 xmake_file=pa/x-pa-hpux
1173                 if test x$gas = xyes
1174                 then
1175                         tm_file="${tm_file} pa/pa-gas.h"
1176                 fi
1177                 install_headers_dir=install-headers-cpio
1178                 use_collect2=yes
1179                 ;;
1180         hppa*-*-lites*)
1181                 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1182                 target_cpu_default="MASK_PA_11"
1183                 use_collect2=yes
1184                 ;;
1185         hppa*-*-mpeix*)
1186                 tm_file="${tm_file} pa/pa-mpeix.h"
1187                 xm_file=pa/xm-pampeix.h 
1188                 xmake_file=pa/x-pa-mpeix 
1189                 echo "You must use gas. Assuming it is already installed." 
1190                 install_headers_dir=install-headers-tar
1191                 use_collect2=yes 
1192                 ;; 
1193         i370-*-opened*)                  # IBM 360/370/390 Architecture
1194                 xm_file=i370/xm-oe.h
1195                 tm_file=i370/oe.h
1196                 xmake_file=i370/x-oe
1197                 tmake_file=i370/t-oe
1198                 ;;
1199         i370-*-mvs*)
1200                 xm_file=i370/xm-mvs.h
1201                 tm_file=i370/mvs.h
1202                 tmake_file=i370/t-mvs
1203                 ;;
1204         i370-*-linux*)
1205                 xm_file="xm-linux.h i370/xm-linux.h"
1206                 xmake_file=x-linux
1207                 tm_file="i370/linux.h ${tm_file}"
1208                 tmake_file="t-linux i370/t-linux"
1209                 # broken_install=yes
1210                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1211                 # extra_parts="crtbegin.o crtend.o"
1212                 gnu_ld=yes
1213                 gas=yes
1214                 elf=yes
1215                 if test x$enable_threads = xyes; then
1216                         thread_file='posix'
1217                 fi
1218                 ;;
1219 changequote(,)dnl
1220         i[34567]86-*-elf*)
1221 changequote([,])dnl
1222                 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1223                 tm_file=i386/i386elf.h
1224                 tmake_file=i386/t-i386elf
1225                 xmake_file=x-svr4
1226                 ;;
1227 changequote(,)dnl
1228         i[34567]86-ibm-aix*)            # IBM PS/2 running AIX
1229 changequote([,])dnl
1230                 if test x$gas = xyes
1231                 then
1232                         tm_file=i386/aix386.h
1233                         extra_parts="crtbegin.o crtend.o"
1234                         tmake_file=i386/t-crtstuff
1235                 else
1236                         tm_file=i386/aix386ng.h
1237                         use_collect2=yes
1238                 fi
1239                 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1240                 xm_defines=USG
1241                 xmake_file=i386/x-aix
1242                 ;;
1243 changequote(,)dnl
1244         i[34567]86-ncr-sysv4*)          # NCR 3000 - ix86 running system V.4
1245 changequote([,])dnl
1246                 xm_file="xm-alloca.h ${xm_file}"
1247                 xm_defines="USG POSIX SMALL_ARG_MAX"
1248                 xmake_file=i386/x-ncr3000
1249                 if test x$stabs = xyes -a x$gas = xyes
1250                 then
1251                         tm_file=i386/sysv4gdb.h
1252                 else
1253                         tm_file=i386/sysv4.h
1254                 fi
1255                 extra_parts="crtbegin.o crtend.o"
1256                 tmake_file=i386/t-crtpic
1257                 ;;
1258 changequote(,)dnl
1259         i[34567]86-next-*)
1260 changequote([,])dnl
1261                 tm_file=i386/next.h
1262                 xm_file=i386/xm-next.h
1263                 tmake_file=i386/t-next
1264                 xmake_file=i386/x-next
1265                 extra_objs=nextstep.o
1266                 extra_parts="crtbegin.o crtend.o"
1267                 if test x$enable_threads = xyes; then
1268                         thread_file='mach'
1269                 fi
1270                 ;;
1271 changequote(,)dnl
1272         i[34567]86-sequent-bsd*)                # 80386 from Sequent
1273 changequote([,])dnl
1274                 use_collect2=yes
1275                 if test x$gas = xyes
1276                 then
1277                         tm_file=i386/seq-gas.h
1278                 else
1279                         tm_file=i386/sequent.h
1280                 fi
1281                 ;;
1282 changequote(,)dnl
1283         i[34567]86-sequent-ptx1*)
1284 changequote([,])dnl
1285                 xm_defines="USG SVR3"
1286                 xmake_file=i386/x-sysv3
1287                 tm_file=i386/seq-sysv3.h
1288                 tmake_file=i386/t-crtstuff
1289                 extra_parts="crtbegin.o crtend.o"
1290                 install_headers_dir=install-headers-cpio
1291                 ;;
1292 changequote(,)dnl
1293         i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1294 changequote([,])dnl
1295                 xm_defines="USG SVR3"
1296                 xmake_file=i386/x-sysv3
1297                 tm_file=i386/seq2-sysv3.h
1298                 tmake_file=i386/t-crtstuff
1299                 extra_parts="crtbegin.o crtend.o"
1300                 install_headers_dir=install-headers-cpio
1301                 ;;
1302 changequote(,)dnl
1303         i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1304 changequote([,])dnl
1305                 xm_file="xm-alloca.h ${xm_file}"
1306                 xm_defines="USG POSIX SMALL_ARG_MAX"
1307                 xmake_file=x-svr4
1308                 tm_file=i386/ptx4-i.h
1309                 tmake_file=t-svr4
1310                 extra_parts="crtbegin.o crtend.o"
1311                 install_headers_dir=install-headers-cpio
1312                 ;;
1313         i386-sun-sunos*)                # Sun i386 roadrunner
1314                 xm_defines=USG
1315                 tm_file=i386/sun.h
1316                 use_collect2=yes
1317                 ;;
1318 changequote(,)dnl
1319         i[34567]86-wrs-vxworks*)
1320 changequote([,])dnl
1321                 tm_file=i386/vxi386.h
1322                 tmake_file=i386/t-i386bare
1323                 thread_file='vxworks'
1324                 ;;
1325 changequote(,)dnl
1326         i[34567]86-*-aout*)
1327 changequote([,])dnl
1328                 tm_file=i386/i386-aout.h
1329                 tmake_file=i386/t-i386bare
1330                 ;;
1331 changequote(,)dnl
1332         i[34567]86-*-beospe*)
1333 changequote([,])dnl
1334                 xm_file=i386/xm-beos.h
1335                 xm_defines="USE_C_ALLOCA"
1336                 tmake_file=i386/t-beos
1337                 tm_file=i386/beos-pe.h
1338                 xmake_file=i386/x-beos
1339                 extra_objs=winnt.o
1340                 ;;
1341 changequote(,)dnl
1342         i[34567]86-*-beoself* | i[34567]86-*-beos*)
1343 changequote([,])dnl
1344                 xm_file=i386/xm-beos.h
1345                 tmake_file='i386/t-beos i386/t-crtpic'
1346                 tm_file=i386/beos-elf.h
1347                 xmake_file=i386/x-beos
1348                 extra_objs=winnt.o
1349                 extra_parts='crtbegin.o crtend.o'
1350                 ;;
1351 changequote(,)dnl
1352         i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1353 changequote([,])dnl
1354                 tm_file=i386/bsd386.h
1355 #               tmake_file=t-libc-ok
1356                 ;;
1357 changequote(,)dnl
1358         i[34567]86-*-bsd*)
1359 changequote([,])dnl
1360                 tm_file=i386/386bsd.h
1361 #               tmake_file=t-libc-ok
1362 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1363 #               use_collect2=yes
1364                 ;;
1365 changequote(,)dnl
1366         i[34567]86-*-freebsdelf*)
1367 changequote([,])dnl
1368                 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1369                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1370                 tmake_file=t-freebsd
1371                 gas=yes
1372                 gnu_ld=yes
1373                 stabs=yes
1374                 case x${enable_threads} in
1375                 xyes | xpthreads | xposix)
1376                         thread_file='posix'
1377                         tmake_file="${tmake_file} t-freebsd-thread"
1378                         ;;
1379                 esac
1380                 ;;
1381 changequote(,)dnl
1382         i[34567]86-*-freebsd*)
1383 changequote([,])dnl
1384                 tm_file="i386/freebsd.h i386/perform.h"
1385                 tmake_file=t-freebsd
1386                 ;;
1387 changequote(,)dnl
1388         i[34567]86-*-netbsd*)
1389 changequote([,])dnl
1390                 tm_file=i386/netbsd.h
1391                 tmake_file=t-netbsd
1392                 use_collect2=yes
1393                 ;;
1394 changequote(,)dnl
1395         i[34567]86-*-openbsd*)
1396 changequote([,])dnl
1397                 # we need collect2 until our bug is fixed...
1398                 use_collect2=yes
1399                 ;;
1400 changequote(,)dnl
1401         i[34567]86-*-coff*)
1402 changequote([,])dnl
1403                 tm_file=i386/i386-coff.h
1404                 tmake_file=i386/t-i386bare
1405                 ;;
1406 changequote(,)dnl
1407         i[34567]86-*-isc*)              # 80386 running ISC system
1408 changequote([,])dnl
1409                 xm_file="${xm_file} i386/xm-isc.h"
1410                 xm_defines="USG SVR3"
1411                 case $machine in
1412 changequote(,)dnl
1413                   i[34567]86-*-isc[34]*)
1414 changequote([,])dnl
1415                     xmake_file=i386/x-isc3
1416                     ;;
1417                   *)
1418                     xmake_file=i386/x-isc
1419                     ;;
1420                 esac
1421                 if test x$gas = xyes -a x$stabs = xyes
1422                 then
1423                         tm_file=i386/iscdbx.h
1424                         tmake_file=i386/t-svr3dbx
1425                         extra_parts="svr3.ifile svr3z.ifile"
1426                 else
1427                         tm_file=i386/isccoff.h
1428                         tmake_file=i386/t-crtstuff
1429                         extra_parts="crtbegin.o crtend.o"
1430                 fi
1431                 install_headers_dir=install-headers-cpio
1432                 ;;
1433 changequote(,)dnl
1434         i[34567]86-*-linux-gnuoldld*)   # Intel 80386's running GNU/Linux
1435 changequote([,])dnl                     # with a.out format using
1436                                         # pre BFD linkers
1437                 xmake_file=x-linux-aout
1438                 tmake_file="t-linux-aout i386/t-crtstuff"
1439                 tm_file=i386/linux-oldld.h
1440                 gnu_ld=yes
1441                 float_format=i386
1442                 ;;
1443 changequote(,)dnl
1444         i[34567]86-*-linux-gnuaout*)    # Intel 80386's running GNU/Linux
1445 changequote([,])dnl                     # with a.out format
1446                 xmake_file=x-linux-aout
1447                 tmake_file="t-linux-aout i386/t-crtstuff"
1448                 tm_file=i386/linux-aout.h
1449                 gnu_ld=yes
1450                 float_format=i386
1451                 ;;
1452 changequote(,)dnl
1453         i[34567]86-*-linux-gnulibc1)    # Intel 80386's running GNU/Linux
1454 changequote([,])dnl                     # with ELF format using the
1455                                         # GNU/Linux C library 5
1456                 xmake_file=x-linux      
1457                 tm_file=i386/linux.h    
1458                 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1459                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1460                 gnu_ld=yes
1461                 float_format=i386
1462                 if test x$enable_threads = xyes; then
1463                         thread_file='single'
1464                 fi
1465                 ;;
1466 changequote(,)dnl
1467         i[34567]86-*-linux-gnu*)        # Intel 80386's running GNU/Linux
1468 changequote([,])dnl                     # with ELF format using glibc 2
1469                                         # aka GNU/Linux C library 6
1470                 xmake_file=x-linux
1471                 tm_file=i386/linux.h
1472                 tmake_file="t-linux i386/t-crtstuff"
1473                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1474                 gnu_ld=yes
1475                 float_format=i386
1476                 if test x$enable_threads = xyes; then
1477                         thread_file='posix'
1478                 fi
1479                 ;;
1480 changequote(,)dnl
1481         i[34567]86-*-gnu*)
1482                 float_format=i386
1483 changequote([,])dnl
1484                 ;;
1485 changequote(,)dnl
1486         i[34567]86-go32-msdos | i[34567]86-*-go32*)
1487 changequote([,])dnl
1488                 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1489                 exit 1
1490                 ;;
1491 changequote(,)dnl
1492         i[34567]86-pc-msdosdjgpp*)
1493 changequote([,])dnl
1494                 xm_file=i386/xm-djgpp.h
1495                 tm_file=i386/djgpp.h
1496                 tmake_file=i386/t-djgpp
1497                 xmake_file=i386/x-djgpp
1498                 gnu_ld=yes
1499                 gas=yes
1500                 exeext=.exe
1501                 case $host in *pc-msdosdjgpp*)
1502                         target_alias=djgpp
1503                         ;;
1504                 esac
1505                 ;;
1506 changequote(,)dnl
1507         i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1508 changequote([,])dnl
1509                 tm_file=i386/moss.h
1510                 tmake_file=t-libc-ok
1511                 gnu_ld=yes
1512                 gas=yes
1513                 ;;
1514 changequote(,)dnl
1515         i[34567]86-*-lynxos*)
1516 changequote([,])dnl
1517                 if test x$gas = xyes
1518                 then
1519                         tm_file=i386/lynx.h
1520                 else
1521                         tm_file=i386/lynx-ng.h
1522                 fi
1523                 xm_file=i386/xm-lynx.h
1524                 tmake_file=i386/t-i386bare
1525                 xmake_file=x-lynx
1526                 ;;
1527 changequote(,)dnl
1528         i[34567]86-*-mach*)
1529 changequote([,])dnl
1530                 tm_file=i386/mach.h
1531 #               tmake_file=t-libc-ok
1532                 use_collect2=yes
1533                 ;;
1534 changequote(,)dnl
1535         i[34567]86-*-osfrose*)          # 386 using OSF/rose
1536 changequote([,])dnl
1537                 if test x$elf = xyes
1538                 then
1539                         tm_file=i386/osfelf.h
1540                         use_collect2=
1541                 else
1542                         tm_file=i386/osfrose.h
1543                         use_collect2=yes
1544                 fi
1545                 xm_file="i386/xm-osf.h ${xm_file}"
1546                 xmake_file=i386/x-osfrose
1547                 tmake_file=i386/t-osf
1548                 extra_objs=halfpic.o
1549                 ;;
1550 changequote(,)dnl
1551         i[34567]86-go32-rtems*)
1552 changequote([,])dnl
1553                 cpu_type=i386
1554                 xm_file=i386/xm-go32.h
1555                 tm_file=i386/go32-rtems.h
1556                 tmake_file="i386/t-go32 t-rtems"
1557                 ;;
1558 changequote(,)dnl
1559         i[34567]86-*-rtemscoff*)
1560 changequote([,])dnl
1561                 cpu_type=i386
1562                 tm_file=i386/rtems.h
1563                 tmake_file="i386/t-i386bare t-rtems"
1564                 ;;
1565 changequote(,)dnl
1566         i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1567 changequote([,])dnl
1568                 cpu_type=i386
1569                 tm_file=i386/rtemself.h
1570                 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1571                 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1572                 ;;
1573 changequote(,)dnl
1574         i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1575 changequote([,])dnl
1576                 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1577                 xm_defines="USG SVR3"
1578                 xmake_file=i386/x-sco5
1579                 install_headers_dir=install-headers-cpio
1580                 tm_file=i386/sco5.h
1581                 if test x$gas = xyes
1582                 then
1583                         tm_file="i386/sco5gas.h ${tm_file}"
1584                         tmake_file=i386/t-sco5gas
1585                 else
1586                         tmake_file=i386/t-sco5
1587                 fi
1588                 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1589                 ;;
1590 changequote(,)dnl
1591         i[34567]86-*-sco3.2v4*)         # 80386 running SCO 3.2v4 system
1592 changequote([,])dnl
1593                 xm_file="${xm_file} i386/xm-sco.h"
1594                 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1595                 xmake_file=i386/x-sco4
1596                 install_headers_dir=install-headers-cpio
1597                 if test x$stabs = xyes
1598                 then
1599                         tm_file=i386/sco4dbx.h
1600                         tmake_file=i386/t-svr3dbx
1601                         extra_parts="svr3.ifile svr3z.rfile"
1602                 else
1603                         tm_file=i386/sco4.h
1604                         tmake_file=i386/t-crtstuff
1605                         extra_parts="crtbegin.o crtend.o"
1606                 fi
1607                 # The default EAFS filesystem supports long file names.
1608                 # Truncating the target makes $host != $target which
1609                 # makes gcc think it is doing a cross-compile.
1610                 # truncate_target=yes
1611                 ;;
1612 changequote(,)dnl
1613         i[34567]86-*-sco*)              # 80386 running SCO system
1614 changequote([,])dnl
1615                 xm_file=i386/xm-sco.h
1616                 xmake_file=i386/x-sco
1617                 install_headers_dir=install-headers-cpio
1618                 if test x$stabs = xyes
1619                 then
1620                         tm_file=i386/scodbx.h
1621                         tmake_file=i386/t-svr3dbx
1622                         extra_parts="svr3.ifile svr3z.rfile"
1623                 else
1624                         tm_file=i386/sco.h
1625                         extra_parts="crtbegin.o crtend.o"
1626                         tmake_file=i386/t-crtstuff
1627                 fi
1628                 truncate_target=yes
1629                 ;;
1630 changequote(,)dnl
1631         i[34567]86-*-solaris2*)
1632 changequote([,])dnl
1633                 xm_file="xm-alloca.h ${xm_file}"
1634                 xm_defines="USG POSIX SMALL_ARG_MAX"
1635                 tm_file=i386/sol2.h
1636                 if test x$gas = xyes; then
1637                         # Only needed if gas does not support -s
1638                         tm_file="i386/sol2gas.h ${tm_file}"
1639                 fi
1640                 tmake_file=i386/t-sol2
1641                 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1642                 xmake_file=x-svr4
1643                 if test x${enable_threads} = x; then
1644                     enable_threads=$have_pthread_h
1645                     if test x${enable_threads} = x; then
1646                         enable_threads=$have_thread_h
1647                     fi
1648                 fi
1649                 if test x${enable_threads} = xyes; then
1650                     if test x${have_pthread_h} = xyes; then
1651                         thread_file='posix'
1652                     else
1653                         thread_file='solaris'
1654                     fi
1655                 fi
1656                 ;;
1657 changequote(,)dnl
1658        i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
1659 changequote([,])dnl
1660                xm_file="xm-alloca.h ${xm_file}"
1661                xm_defines="USG POSIX"
1662                tm_file=i386/sysv5.h
1663                if test x$stabs = xyes
1664                then
1665                        tm_file="${tm_file} dbx.h"
1666                fi
1667                tmake_file=i386/t-crtpic
1668                xmake_file=x-svr4
1669                extra_parts="crtbegin.o crtend.o"
1670                if test x$enable_threads = xyes; then
1671                        thread_file='posix'
1672                fi
1673                ;;
1674 changequote(,)dnl
1675         i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
1676 changequote([,])dnl
1677                 xm_file="xm-alloca.h ${xm_file}"
1678                 xm_defines="USG POSIX SMALL_ARG_MAX"
1679                 tm_file=i386/sysv4.h
1680                 if test x$stabs = xyes
1681                 then
1682                         tm_file="${tm_file} dbx.h"
1683                 fi
1684                 tmake_file=i386/t-crtpic
1685                 xmake_file=x-svr4
1686                 extra_parts="crtbegin.o crtend.o"
1687                 ;;
1688 changequote(,)dnl
1689         i[34567]86-*-udk*)      # Intel x86 on SCO UW/OSR5 Dev Kit
1690 changequote([,])dnl
1691                 xm_file="xm-alloca.h ${xm_file}"
1692                 xm_defines="USG POSIX"
1693                 tm_file=i386/udk.h
1694                 tmake_file="i386/t-crtpic i386/t-udk"
1695                 xmake_file=x-svr4
1696                 extra_parts="crtbegin.o crtend.o"
1697                 install_headers_dir=install-headers-cpio
1698                 ;;
1699 changequote(,)dnl
1700         i[34567]86-*-osf1*)             # Intel 80386's running OSF/1 1.3+
1701 changequote([,])dnl
1702                 cpu_type=i386
1703                 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1704                 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1705                 if test x$stabs = xyes
1706                 then
1707                         tm_file=i386/osf1elfgdb.h
1708                 else
1709                         tm_file=i386/osf1elf.h
1710                 fi
1711                 tmake_file=i386/t-osf1elf
1712                 xmake_file=i386/x-osf1elf
1713                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1714                 ;;
1715 changequote(,)dnl
1716         i[34567]86-*-sysv*)             # Intel 80386's running system V
1717 changequote([,])dnl
1718                 xm_defines="USG SVR3"
1719                 xmake_file=i386/x-sysv3
1720                 if test x$gas = xyes
1721                 then
1722                         if test x$stabs = xyes
1723                         then
1724                                 tm_file=i386/svr3dbx.h
1725                                 tmake_file=i386/t-svr3dbx
1726                                 extra_parts="svr3.ifile svr3z.rfile"
1727                         else
1728                                 tm_file=i386/svr3gas.h
1729                                 extra_parts="crtbegin.o crtend.o"
1730                                 tmake_file=i386/t-crtstuff
1731                         fi
1732                 else
1733                         tm_file=i386/sysv3.h
1734                         extra_parts="crtbegin.o crtend.o"
1735                         tmake_file=i386/t-crtstuff
1736                 fi
1737                 ;;
1738         i386-*-vsta)                    # Intel 80386's running VSTa kernel
1739                 xm_file="${xm_file} i386/xm-vsta.h"
1740                 tm_file=i386/vsta.h
1741                 tmake_file=i386/t-vsta
1742                 xmake_file=i386/x-vsta
1743                 ;;
1744 changequote(,)dnl
1745         i[34567]86-*-win32)
1746 changequote([,])dnl
1747                 xm_file="${xm_file} i386/xm-cygwin.h"
1748                 tmake_file=i386/t-cygwin
1749                 tm_file=i386/win32.h
1750                 xmake_file=i386/x-cygwin
1751                 extra_objs=winnt.o
1752                 if test x$enable_threads = xyes; then
1753                         thread_file='win32'
1754                 fi
1755                 exeext=.exe
1756                 ;;
1757 changequote(,)dnl
1758         i[34567]86-*-pe | i[34567]86-*-cygwin*)
1759 changequote([,])dnl
1760                 xm_file="${xm_file} i386/xm-cygwin.h"
1761                 tmake_file=i386/t-cygwin
1762                 tm_file=i386/cygwin.h
1763                 xmake_file=i386/x-cygwin
1764                 extra_objs=winnt.o
1765                 if test x$enable_threads = xyes; then
1766                         thread_file='win32'
1767                 fi
1768                 exeext=.exe
1769                 ;;
1770 changequote(,)dnl
1771         i[34567]86-*-mingw32*)
1772 changequote([,])dnl
1773                 tm_file=i386/mingw32.h
1774                 xm_file="${xm_file} i386/xm-mingw32.h"
1775                 tmake_file="i386/t-cygwin i386/t-mingw32"
1776                 extra_objs=winnt.o
1777                 xmake_file=i386/x-cygwin
1778                 if test x$enable_threads = xyes; then
1779                         thread_file='win32'
1780                 fi
1781                 exeext=.exe
1782                 case $machine in
1783                         *mingw32msv*)
1784                                 ;;
1785                         *minwg32crt* | *mingw32*)
1786                                 tm_file="${tm_file} i386/crtdll.h"
1787                                 ;;
1788                 esac
1789                 ;;
1790 changequote(,)dnl
1791         i[34567]86-*-uwin*)
1792 changequote([,])dnl
1793                 tm_file=i386/uwin.h
1794                 xm_file="${xm_file} i386/xm-uwin.h"
1795                 xm_defines="USG NO_STAB_H"
1796                 tmake_file="i386/t-cygwin i386/t-uwin"
1797                 extra_objs=winnt.o
1798                 xmake_file=i386/x-cygwin
1799                 if test x$enable_threads = xyes; then
1800                         thread_file='win32'
1801                 fi
1802                 exeext=.exe
1803                 ;;
1804 changequote(,)dnl
1805         i[34567]86-*-interix*)
1806 changequote([,])dnl
1807                 tm_file="i386/i386-interix.h interix.h"
1808                 xm_file="i386/xm-i386-interix.h xm-interix.h"
1809                 xm_defines="USG"
1810                 tmake_file="i386/t-interix"
1811                 extra_objs=interix.o
1812                 xmake_file=x-interix
1813                 if test x$enable_threads = xyes ; then
1814                         thread_file='posix'
1815                 fi
1816                 if test x$stabs = xyes ; then
1817                         tm_file="${tm_file} dbxcoff.h"
1818                 fi
1819                 ;;
1820 changequote(,)dnl
1821         i[34567]86-*-winnt3*)
1822 changequote([,])dnl
1823                 tm_file=i386/win-nt.h
1824                 out_file=i386/i386.c
1825                 xm_file="xm-winnt.h ${xm_file}"
1826                 xmake_file=winnt/x-winnt
1827                 tmake_file=i386/t-winnt
1828                 extra_host_objs="winnt.o oldnames.o"
1829                 extra_gcc_objs="spawnv.o oldnames.o"
1830                 if test x$gnu_ld != xyes
1831                 then
1832                         extra_programs=ld.exe
1833                 fi
1834                 if test x$enable_threads = xyes; then
1835                         thread_file='win32'
1836                 fi
1837                 ;;
1838 changequote(,)dnl
1839         i[34567]86-dg-dgux*)
1840 changequote([,])dnl
1841                 xm_file="xm-alloca.h ${xm_file}"
1842                 xm_defines="USG POSIX"
1843                 out_file=i386/dgux.c
1844                 tm_file=i386/dgux.h
1845                 tmake_file=i386/t-dgux
1846                 xmake_file=i386/x-dgux
1847                 install_headers_dir=install-headers-cpio
1848               ;;
1849         i860-alliant-*)         # Alliant FX/2800
1850                 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1851                 xm_file="${xm_file}"
1852                 xmake_file=i860/x-fx2800
1853                 tmake_file=i860/t-fx2800
1854                 extra_parts="crtbegin.o crtend.o"
1855                 ;;
1856         i860-*-bsd*)
1857                 tm_file="${tm_file} i860/bsd.h"
1858                 if test x$gas = xyes
1859                 then
1860                         tm_file="${tm_file} i860/bsd-gas.h"
1861                 fi
1862                 use_collect2=yes
1863                 ;;
1864         i860-*-mach*)
1865                 tm_file="${tm_file} i860/mach.h"
1866                 tmake_file=t-libc-ok
1867                 ;;
1868         i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
1869                 tm_file="${tm_file} svr3.h i860/paragon.h"
1870                 xm_defines="USG SVR3"
1871                 tmake_file=t-osf
1872                 ;;
1873         i860-*-sysv3*)
1874                 tm_file="${tm_file} svr3.h i860/sysv3.h"
1875                 xm_defines="USG SVR3"
1876                 xmake_file=i860/x-sysv3
1877                 extra_parts="crtbegin.o crtend.o"
1878                 ;;
1879         i860-*-sysv4*)
1880                 tm_file="${tm_file} svr4.h i860/sysv4.h"
1881                 xm_defines="USG SVR3"
1882                 xmake_file=i860/x-sysv4
1883                 tmake_file=t-svr4
1884                 extra_parts="crtbegin.o crtend.o"
1885                 ;;
1886         i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1887                 tm_file="${tm_file} i960/vx960.h"
1888                 tmake_file=i960/t-vxworks960
1889                 use_collect2=yes
1890                 thread_file='vxworks'
1891                 ;;
1892         i960-wrs-vxworks5* | i960-wrs-vxworks)
1893                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1894                 tmake_file=i960/t-vxworks960
1895                 use_collect2=yes
1896                 thread_file='vxworks'
1897                 ;;
1898         i960-wrs-vxworks*)
1899                 tm_file="${tm_file} i960/vx960.h"
1900                 tmake_file=i960/t-vxworks960
1901                 use_collect2=yes
1902                 thread_file='vxworks'
1903                 ;;
1904         i960-*-coff*)
1905                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1906                 tmake_file=i960/t-960bare
1907                 use_collect2=yes
1908                 ;;
1909         i960-*-rtems)
1910                 tmake_file="i960/t-960bare t-rtems"
1911                 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1912                 use_collect2=yes
1913                 ;;
1914         i960-*-*)                       # Default i960 environment.
1915                 use_collect2=yes
1916                 ;;
1917         ia64*-*-elf*)
1918                 tm_file=ia64/elf.h
1919                 tmake_file="ia64/t-ia64"
1920                 target_cpu_default="0"
1921                 if test x$gas = xyes
1922                 then
1923                         target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1924                 fi
1925                 if test x$gnu_ld = xyes
1926                 then
1927                         target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1928                 fi
1929                 ;;
1930         ia64*-*-linux*)
1931                 tm_file=ia64/linux.h
1932                 tmake_file="t-linux ia64/t-ia64"
1933                 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1934                 if test x$enable_threads = xyes; then
1935                         thread_file='posix'
1936                 fi
1937                 ;;
1938         m32r-*-elf*)
1939                 extra_parts="crtinit.o crtfini.o"
1940                 ;;
1941         m68000-convergent-sysv*)
1942                 tm_file=m68k/ctix.h
1943                 xm_file="m68k/xm-3b1.h ${xm_file}"
1944                 xm_defines=USG
1945                 use_collect2=yes
1946                 extra_headers=math-68881.h
1947                 ;;
1948         m68000-hp-bsd*)                 # HP 9000/200 running BSD
1949                 tm_file=m68k/hp2bsd.h
1950                 xmake_file=m68k/x-hp2bsd
1951                 use_collect2=yes
1952                 extra_headers=math-68881.h
1953                 ;;
1954         m68000-hp-hpux*)                # HP 9000 series 300
1955                 xm_file="xm-alloca.h ${xm_file}"
1956                 xm_defines="USG"
1957                 if test x$gas = xyes
1958                 then
1959                         xmake_file=m68k/x-hp320g
1960                         tm_file=m68k/hp310g.h
1961                 else
1962                         xmake_file=m68k/x-hp320
1963                         tm_file=m68k/hp310.h
1964                 fi
1965                 install_headers_dir=install-headers-cpio
1966                 use_collect2=yes
1967                 extra_headers=math-68881.h
1968                 ;;
1969         m68000-sun-sunos3*)
1970                 tm_file=m68k/sun2.h
1971                 use_collect2=yes
1972                 extra_headers=math-68881.h
1973                 ;;
1974         m68000-sun-sunos4*)
1975                 tm_file=m68k/sun2o4.h
1976                 use_collect2=yes
1977                 extra_headers=math-68881.h
1978                 ;;
1979         m68000-att-sysv*)
1980                 xm_file="m68k/xm-3b1.h ${xm_file}"
1981                 xm_defines=USG
1982                 if test x$gas = xyes
1983                 then
1984                         tm_file=m68k/3b1g.h
1985                 else
1986                         tm_file=m68k/3b1.h
1987                 fi
1988                 use_collect2=yes
1989                 extra_headers=math-68881.h
1990                 ;;
1991         m68k-apple-aux*)                # Apple Macintosh running A/UX
1992                 xm_defines="USG AUX"
1993                 tmake_file=m68k/t-aux
1994                 install_headers_dir=install-headers-cpio
1995                 extra_headers=math-68881.h
1996                 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1997                 tm_file=
1998                 if test "$gnu_ld" = yes
1999                 then
2000                         tm_file="${tm_file} m68k/auxgld.h"
2001                 else
2002                         tm_file="${tm_file} m68k/auxld.h"
2003                 fi
2004                 if test "$gas" = yes
2005                 then
2006                         tm_file="${tm_file} m68k/auxgas.h"
2007                 else
2008                         tm_file="${tm_file} m68k/auxas.h"
2009                 fi
2010                 tm_file="${tm_file} m68k/a-ux.h"
2011                 float_format=m68k
2012                 ;;
2013         m68k-apollo-*)
2014                 tm_file=m68k/apollo68.h
2015                 xmake_file=m68k/x-apollo68
2016                 use_collect2=yes
2017                 extra_headers=math-68881.h
2018                 float_format=m68k
2019                 ;;
2020         m68k-altos-sysv*)                  # Altos 3068
2021                 if test x$gas = xyes
2022                 then
2023                         tm_file=m68k/altos3068.h
2024                         xm_defines=USG
2025                 else
2026                         echo "The Altos is supported only with the GNU assembler" 1>&2
2027                         exit 1
2028                 fi
2029                 extra_headers=math-68881.h
2030                 ;;
2031         m68k-bull-sysv*)                # Bull DPX/2
2032                 if test x$gas = xyes
2033                 then
2034                         if test x$stabs = xyes
2035                         then
2036                                 tm_file=m68k/dpx2cdbx.h
2037                         else
2038                                 tm_file=m68k/dpx2g.h
2039                         fi
2040                 else
2041                         tm_file=m68k/dpx2.h
2042                 fi
2043                 xm_file="xm-alloca.h ${xm_file}"
2044                 xm_defines=USG
2045                 xmake_file=m68k/x-dpx2
2046                 use_collect2=yes
2047                 extra_headers=math-68881.h
2048                 ;;
2049         m68k-atari-sysv4*)              # Atari variant of V.4.
2050                 tm_file=m68k/atari.h
2051                 xm_file="xm-alloca.h ${xm_file}"
2052                 xm_defines="USG FULL_PROTOTYPES"
2053                 tmake_file=t-svr4
2054                 extra_parts="crtbegin.o crtend.o"
2055                 extra_headers=math-68881.h
2056                 float_format=m68k
2057                 ;;
2058         m68k-motorola-sysv*)
2059                 tm_file=m68k/mot3300.h
2060                 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2061                 if test x$gas = xyes
2062                 then
2063                         xmake_file=m68k/x-mot3300-gas
2064                         if test x$gnu_ld = xyes
2065                         then
2066                                 tmake_file=m68k/t-mot3300-gald
2067                         else
2068                                 tmake_file=m68k/t-mot3300-gas
2069                                 use_collect2=yes
2070                         fi
2071                 else
2072                         xmake_file=m68k/x-mot3300
2073                         if test x$gnu_ld = xyes
2074                         then
2075                                 tmake_file=m68k/t-mot3300-gld
2076                         else
2077                                 tmake_file=m68k/t-mot3300
2078                                 use_collect2=yes
2079                         fi
2080                 fi
2081                 gdb_needs_out_file_path=yes
2082                 extra_parts="crt0.o mcrt0.o"
2083                 extra_headers=math-68881.h
2084                 float_format=m68k
2085                 ;;
2086         m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
2087                 tm_file=m68k/tower-as.h
2088                 xm_defines="USG SVR3"
2089                 xmake_file=m68k/x-tower
2090                 extra_parts="crtbegin.o crtend.o"
2091                 extra_headers=math-68881.h
2092                 ;;
2093         m68k-plexus-sysv*)
2094                 tm_file=m68k/plexus.h
2095                 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2096                 xm_defines=USG
2097                 use_collect2=yes
2098                 extra_headers=math-68881.h
2099                 ;;
2100         m68k-tti-*)
2101                 tm_file=m68k/pbb.h
2102                 xm_file="xm-alloca.h ${xm_file}"
2103                 xm_defines=USG
2104                 extra_headers=math-68881.h
2105                 ;;
2106         m68k-crds-unos*)
2107                 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2108                 xm_defines="USG unos"
2109                 xmake_file=m68k/x-crds
2110                 tm_file=m68k/crds.h
2111                 use_collect2=yes
2112                 extra_headers=math-68881.h
2113                 ;;
2114         m68k-cbm-sysv4*)                # Commodore variant of V.4.
2115                 tm_file=m68k/amix.h
2116                 xm_file="xm-alloca.h ${xm_file}"
2117                 xm_defines="USG FULL_PROTOTYPES"
2118                 xmake_file=m68k/x-amix
2119                 tmake_file=t-svr4
2120                 extra_parts="crtbegin.o crtend.o"
2121                 extra_headers=math-68881.h
2122                 float_format=m68k
2123                 ;;
2124         m68k-ccur-rtu)
2125                 tm_file=m68k/ccur-GAS.h
2126                 xmake_file=m68k/x-ccur
2127                 extra_headers=math-68881.h
2128                 use_collect2=yes
2129                 float_format=m68k
2130                 ;;
2131         m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
2132                 tm_file=m68k/hp3bsd44.h
2133                 xmake_file=m68k/x-hp3bsd44
2134                 use_collect2=yes
2135                 extra_headers=math-68881.h
2136                 float_format=m68k
2137                 ;;
2138         m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
2139                 tm_file=m68k/hp3bsd.h
2140                 use_collect2=yes
2141                 extra_headers=math-68881.h
2142                 float_format=m68k
2143                 ;;
2144         m68k-isi-bsd*)
2145                 if test x$with_fp = xno
2146                 then
2147                         tm_file=m68k/isi-nfp.h
2148                 else
2149                         tm_file=m68k/isi.h
2150                         float_format=m68k
2151                 fi
2152                 use_collect2=yes
2153                 extra_headers=math-68881.h
2154                 ;;
2155         m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2156                 xm_file="xm-alloca.h ${xm_file}"
2157                 xm_defines="USG"
2158                 if test x$gas = xyes
2159                 then
2160                         xmake_file=m68k/x-hp320g
2161                         tm_file=m68k/hp320g.h
2162                 else
2163                         xmake_file=m68k/x-hp320
2164                         tm_file=m68k/hpux7.h
2165                 fi
2166                 install_headers_dir=install-headers-cpio
2167                 use_collect2=yes
2168                 extra_headers=math-68881.h
2169                 float_format=m68k
2170                 ;;
2171         m68k-hp-hpux*)  # HP 9000 series 300
2172                 xm_file="xm-alloca.h ${xm_file}"
2173                 xm_defines="USG"
2174                 if test x$gas = xyes
2175                 then
2176                         xmake_file=m68k/x-hp320g
2177                         tm_file=m68k/hp320g.h
2178                 else
2179                         xmake_file=m68k/x-hp320
2180                         tm_file=m68k/hp320.h
2181                 fi
2182                 install_headers_dir=install-headers-cpio
2183                 use_collect2=yes
2184                 extra_headers=math-68881.h
2185                 float_format=m68k
2186                 ;;
2187         m68k-sun-mach*)
2188                 tm_file=m68k/sun3mach.h
2189                 use_collect2=yes
2190                 extra_headers=math-68881.h
2191                 float_format=m68k
2192                 ;;
2193         m68k-sony-newsos3*)
2194                 if test x$gas = xyes
2195                 then
2196                         tm_file=m68k/news3gas.h
2197                 else
2198                         tm_file=m68k/news3.h
2199                 fi
2200                 use_collect2=yes
2201                 extra_headers=math-68881.h
2202                 float_format=m68k
2203                 ;;
2204         m68k-sony-bsd* | m68k-sony-newsos*)
2205                 if test x$gas = xyes
2206                 then
2207                         tm_file=m68k/newsgas.h
2208                 else
2209                         tm_file=m68k/news.h
2210                 fi
2211                 use_collect2=yes
2212                 extra_headers=math-68881.h
2213                 float_format=m68k
2214                 ;;
2215         m68k-next-nextstep2*)
2216                 tm_file=m68k/next21.h
2217                 xm_file="m68k/xm-next.h ${xm_file}"
2218                 tmake_file=m68k/t-next
2219                 xmake_file=m68k/x-next
2220                 extra_objs=nextstep.o
2221                 extra_headers=math-68881.h
2222                 use_collect2=yes
2223                 float_format=m68k
2224                 ;;
2225 changequote(,)dnl
2226         m68k-next-nextstep[34]*)
2227 changequote([,])dnl
2228                 tm_file=m68k/next.h
2229                 xm_file="m68k/xm-next.h ${xm_file}"
2230                 tmake_file=m68k/t-next
2231                 xmake_file=m68k/x-next
2232                 extra_objs=nextstep.o
2233                 extra_parts="crtbegin.o crtend.o"
2234                 extra_headers=math-68881.h
2235                 float_format=m68k
2236                 if test x$enable_threads = xyes; then
2237                         thread_file='mach'
2238                 fi
2239                 ;;
2240         m68k-sun-sunos3*)
2241                 if test x$with_fp = xno
2242                 then
2243                         tm_file=m68k/sun3n3.h
2244                 else
2245                         tm_file=m68k/sun3o3.h
2246                         float_format=m68k
2247                 fi
2248                 use_collect2=yes
2249                 extra_headers=math-68881.h
2250                 ;;
2251         m68k-sun-sunos*)                        # For SunOS 4 (the default).
2252                 if test x$with_fp = xno
2253                 then
2254                         tm_file=m68k/sun3n.h
2255                 else
2256                         tm_file=m68k/sun3.h
2257                         float_format=m68k
2258                 fi
2259                 use_collect2=yes
2260                 extra_headers=math-68881.h
2261                 ;;
2262         m68k-wrs-vxworks*)
2263                 tm_file=m68k/vxm68k.h
2264                 tmake_file=m68k/t-vxworks68
2265                 extra_headers=math-68881.h
2266                 thread_file='vxworks'
2267                 float_format=m68k
2268                 ;;
2269         m68k-*-aout*)
2270                 tmake_file=m68k/t-m68kbare
2271                 tm_file="m68k/m68k-aout.h libgloss.h"
2272                 extra_headers=math-68881.h
2273                 float_format=m68k
2274                 ;;
2275         m68k-*-coff*)
2276                 tmake_file=m68k/t-m68kbare
2277                 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2278                 extra_headers=math-68881.h
2279                 float_format=m68k
2280                 ;;
2281         m68020-*-elf* | m68k-*-elf*)
2282                 tm_file="m68k/m68020-elf.h"
2283                 xm_file=m68k/xm-m68kv.h
2284                 tmake_file=m68k/t-m68kelf
2285                 header_files=math-68881.h
2286                 ;;
2287         m68k-*-lynxos*)
2288                 if test x$gas = xyes
2289                 then
2290                         tm_file=m68k/lynx.h
2291                 else
2292                         tm_file=m68k/lynx-ng.h
2293                 fi
2294                 xm_file=m68k/xm-lynx.h
2295                 xmake_file=x-lynx
2296                 tmake_file=m68k/t-lynx
2297                 extra_headers=math-68881.h
2298                 float_format=m68k
2299                 ;;
2300         m68k*-*-netbsd*)
2301                 tm_file=m68k/netbsd.h
2302                 tmake_file=t-netbsd
2303                 float_format=m68k
2304                 use_collect2=yes
2305                 ;;
2306         m68k*-*-openbsd*)
2307                 float_format=m68k
2308                 # we need collect2 until our bug is fixed...
2309                 use_collect2=yes
2310                 ;;
2311         m68k-*-sysv3*)                  # Motorola m68k's running system V.3
2312                 xm_file="xm-alloca.h ${xm_file}"
2313                 xm_defines=USG
2314                 xmake_file=m68k/x-m68kv
2315                 extra_parts="crtbegin.o crtend.o"
2316                 extra_headers=math-68881.h
2317                 float_format=m68k
2318                 ;;
2319         m68k-*-sysv4*)                  # Motorola m68k's running system V.4
2320                 tm_file=m68k/m68kv4.h
2321                 xm_file="xm-alloca.h ${xm_file}"
2322                 xm_defines=USG
2323                 tmake_file=t-svr4
2324                 extra_parts="crtbegin.o crtend.o"
2325                 extra_headers=math-68881.h
2326                 float_format=m68k
2327                 ;;
2328         m68k-*-linux-gnuaout*)          # Motorola m68k's running GNU/Linux
2329                                         # with a.out format
2330                 xmake_file=x-linux
2331                 tm_file=m68k/linux-aout.h
2332                 tmake_file="t-linux-aout m68k/t-linux-aout"
2333                 extra_headers=math-68881.h
2334                 float_format=m68k
2335                 gnu_ld=yes
2336                 ;;
2337         m68k-*-linux-gnulibc1)          # Motorola m68k's running GNU/Linux
2338                                         # with ELF format using the
2339                                         # GNU/Linux C library 5
2340                 xmake_file=x-linux
2341                 tm_file=m68k/linux.h
2342                 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2343                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2344                 extra_headers=math-68881.h
2345                 float_format=m68k
2346                 gnu_ld=yes
2347                 ;;
2348         m68k-*-linux-gnu*)              # Motorola m68k's running GNU/Linux
2349                                         # with ELF format using glibc 2
2350                                         # aka the GNU/Linux C library 6.
2351                 xmake_file=x-linux
2352                 tm_file=m68k/linux.h
2353                 tmake_file="t-linux m68k/t-linux"
2354                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2355                 extra_headers=math-68881.h
2356                 float_format=m68k
2357                 gnu_ld=yes
2358                 if test x$enable_threads = xyes; then
2359                         thread_file='posix'
2360                 fi
2361                 ;;
2362         m68k-*-psos*)
2363                 tmake_file=m68k/t-m68kbare
2364                 tm_file=m68k/m68k-psos.h
2365                 extra_headers=math-68881.h
2366                 float_format=m68k
2367                 ;;
2368         m68k-*-rtemscoff*)
2369                 tmake_file="m68k/t-m68kbare t-rtems"
2370                 tm_file=m68k/rtems.h
2371                 extra_headers=math-68881.h
2372                 float_format=m68k
2373                 ;;
2374         m68k-*-rtemself*|m68k-*-rtems*)
2375                 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2376                 tm_file=m68k/rtemself.h
2377                 extra_headers=math-68881.h
2378                 float_format=m68k
2379                 ;;
2380         m88k-dg-dgux*)
2381                 case $machine in
2382                   m88k-dg-dguxbcs*)
2383                     tm_file=m88k/dguxbcs.h
2384                     tmake_file=m88k/t-dguxbcs
2385                     ;;
2386                   *)
2387                     tm_file=m88k/dgux.h
2388                     tmake_file=m88k/t-dgux
2389                     ;;
2390                 esac
2391                 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2392                 xmake_file=m88k/x-dgux
2393                 if test x$gas = xyes
2394                 then
2395                         tmake_file=m88k/t-dgux-gas
2396                 fi
2397                 ;;
2398         m88k-dolphin-sysv3*)
2399                 tm_file=m88k/dolph.h
2400                 extra_parts="crtbegin.o crtend.o"
2401                 xm_file="m88k/xm-sysv3.h ${xm_file}"
2402                 xmake_file=m88k/x-dolph
2403                 if test x$gas = xyes
2404                 then
2405                         tmake_file=m88k/t-m88k-gas
2406                 fi
2407                 ;;
2408         m88k-tektronix-sysv3)
2409                 tm_file=m88k/tekXD88.h
2410                 extra_parts="crtbegin.o crtend.o"
2411                 xm_file="m88k/xm-sysv3.h ${xm_file}"
2412                 xmake_file=m88k/x-tekXD88
2413                 if test x$gas = xyes
2414                 then
2415                         tmake_file=m88k/t-m88k-gas
2416                 fi
2417                 ;;
2418         m88k-*-aout*)
2419                 tm_file=m88k/m88k-aout.h
2420                 ;;
2421         m88k-*-coff*)
2422                 tm_file=m88k/m88k-coff.h
2423                 tmake_file=m88k/t-bug
2424                 ;;
2425         m88k-*-luna*)
2426                 tm_file=m88k/luna.h
2427                 extra_parts="crtbegin.o crtend.o"
2428                 if test x$gas = xyes
2429                 then
2430                         tmake_file=m88k/t-luna-gas
2431                 else
2432                         tmake_file=m88k/t-luna
2433                 fi
2434                 ;;
2435         m88k-*-openbsd*)
2436                 tmake_file="${tmake_file} m88k/t-luna-gas"
2437                 ;;
2438         m88k-*-sysv3*)
2439                 tm_file=m88k/sysv3.h
2440                 extra_parts="crtbegin.o crtend.o"
2441                 xm_file="m88k/xm-sysv3.h ${xm_file}"
2442                 xmake_file=m88k/x-sysv3
2443                 if test x$gas = xyes
2444                 then
2445                         tmake_file=m88k/t-m88k-gas
2446                 fi
2447                 ;;
2448         m88k-*-sysv4*)
2449                 tm_file=m88k/sysv4.h
2450                 extra_parts="crtbegin.o crtend.o"
2451                 xmake_file=m88k/x-sysv4
2452                 tmake_file=m88k/t-sysv4
2453                 ;;
2454         mcore-*-elf)
2455                 tm_file=mcore/mcore-elf.h
2456                 tmake_file=mcore/t-mcore
2457                 ;;
2458         mcore-*-pe*)
2459                 tm_file=mcore/mcore-pe.h
2460                 tmake_file=mcore/t-mcore-pe
2461                 ;;
2462         mips-sgi-irix6*)                # SGI System V.4., IRIX 6
2463                 if test "x$gnu_ld" = xyes
2464                 then
2465                         tm_file="mips/iris6.h mips/iris6gld.h"
2466                 else
2467                         tm_file=mips/iris6.h
2468                 fi
2469                 tmake_file=mips/t-iris6
2470                 xm_file=mips/xm-iris6.h
2471                 xmake_file=mips/x-iris6
2472 #               if test x$enable_threads = xyes; then
2473 #                       thread_file='irix'
2474 #               fi
2475                 ;;
2476         mips-wrs-vxworks)
2477                 tm_file="mips/elf.h mips/vxworks.h"
2478                 tmake_file=mips/t-ecoff
2479                 gas=yes
2480                 gnu_ld=yes
2481                 extra_parts="crtbegin.o crtend.o"
2482                 thread_file='vxworks'
2483                 ;;
2484         mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
2485                 tm_file="mips/iris6.h mips/cross64.h"
2486                 xm_defines=USG
2487                 xm_file="mips/xm-iris5.h"
2488                 xmake_file=mips/x-iris
2489                 tmake_file=mips/t-cross64
2490                 # See comment in mips/iris[56].h files.
2491                 use_collect2=yes
2492 #               if test x$enable_threads = xyes; then
2493 #                       thread_file='irix'
2494 #               fi
2495                 ;;
2496         mips-sni-sysv4)
2497                 if test x$gas = xyes
2498                 then
2499                         if test x$stabs = xyes
2500                         then
2501                                 tm_file=mips/iris5gdb.h
2502                         else
2503                                 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2504                         fi
2505                 else
2506                         tm_file=mips/sni-svr4.h
2507                 fi
2508                 xm_defines=USG
2509                 xmake_file=mips/x-sni-svr4
2510                 tmake_file=mips/t-mips-gas
2511                 if test x$gnu_ld != xyes
2512                 then
2513                         use_collect2=yes
2514                 fi
2515                 ;;
2516         mips-sgi-irix5*)                # SGI System V.4., IRIX 5
2517                 if test x$gas = xyes
2518                 then
2519                         tm_file="mips/iris5.h mips/iris5gas.h"
2520                         if test x$stabs = xyes
2521                         then
2522                                 tm_file="${tm_file} dbx.h"
2523                         fi
2524                 else
2525                         tm_file=mips/iris5.h
2526                 fi
2527                 xm_defines=USG
2528                 xm_file="mips/xm-iris5.h"
2529                 xmake_file=mips/x-iris
2530                 # mips-tfile doesn't work yet
2531                 tmake_file=mips/t-mips-gas
2532                 # See comment in mips/iris5.h file.
2533                 use_collect2=yes
2534 #               if test x$enable_threads = xyes; then
2535 #                       thread_file='irix'
2536 #               fi
2537                 ;;
2538         mips-sgi-irix4loser*)           # Mostly like a MIPS.
2539                 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2540                 if test x$stabs = xyes; then
2541                         tm_file="${tm_file} dbx.h"
2542                 fi
2543                 xm_defines=USG
2544                 xmake_file=mips/x-iris
2545                 if test x$gas = xyes
2546                 then
2547                         tmake_file=mips/t-mips-gas
2548                 else
2549                         extra_passes="mips-tfile mips-tdump"
2550                 fi
2551                 if test x$gnu_ld != xyes
2552                 then
2553                         use_collect2=yes
2554                 fi
2555 #               if test x$enable_threads = xyes; then
2556 #                       thread_file='irix'
2557 #               fi
2558                 ;;
2559         mips-sgi-irix4*)                # Mostly like a MIPS.
2560                 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2561                 if test x$stabs = xyes; then
2562                         tm_file="${tm_file} dbx.h"
2563                 fi
2564                 xm_defines=USG
2565                 xmake_file=mips/x-iris
2566                 if test x$gas = xyes
2567                 then
2568                         tmake_file=mips/t-mips-gas
2569                 else
2570                         extra_passes="mips-tfile mips-tdump"
2571                 fi
2572                 if test x$gnu_ld != xyes
2573                 then
2574                         use_collect2=yes
2575                 fi
2576 #               if test x$enable_threads = xyes; then
2577 #                       thread_file='irix'
2578 #               fi
2579                 ;;
2580         mips-sgi-*)                     # Mostly like a MIPS.
2581                 tm_file="mips/iris3.h ${tm_file}"
2582                 if test x$stabs = xyes; then
2583                         tm_file="${tm_file} dbx.h"
2584                 fi
2585                 xm_defines=USG
2586                 xmake_file=mips/x-iris3
2587                 if test x$gas = xyes
2588                 then
2589                         tmake_file=mips/t-mips-gas
2590                 else
2591                         extra_passes="mips-tfile mips-tdump"
2592                 fi
2593                 if test x$gnu_ld != xyes
2594                 then
2595                         use_collect2=yes
2596                 fi
2597                 ;;
2598         mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
2599                 tm_file="mips/osfrose.h ${tm_file}"
2600                 xmake_file=mips/x-osfrose
2601                 tmake_file=mips/t-osfrose
2602                 extra_objs=halfpic.o
2603                 use_collect2=yes
2604                 ;;
2605         mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
2606                 tm_file=mips/dec-osf1.h
2607                 if test x$stabs = xyes; then
2608                         tm_file="${tm_file} dbx.h"
2609                 fi
2610                 xmake_file=mips/x-dec-osf1
2611                 if test x$gas = xyes
2612                 then
2613                         tmake_file=mips/t-mips-gas
2614                 else
2615                         tmake_file=mips/t-ultrix
2616                         extra_passes="mips-tfile mips-tdump"
2617                 fi
2618                 if test x$gnu_ld != xyes
2619                 then
2620                         use_collect2=yes
2621                 fi
2622                 ;;
2623         mips-dec-bsd*)                  # Decstation running 4.4 BSD
2624               tm_file=mips/dec-bsd.h
2625               if test x$gas = xyes
2626               then
2627                         tmake_file=mips/t-mips-gas
2628               else
2629                         tmake_file=mips/t-ultrix
2630                         extra_passes="mips-tfile mips-tdump"
2631               fi
2632               if test x$gnu_ld != xyes
2633               then
2634                         use_collect2=yes
2635               fi
2636               ;;
2637         mipsel-*-netbsd* | mips-dec-netbsd*)    # Decstation running NetBSD
2638                 tm_file=mips/netbsd.h
2639                 # On NetBSD, the headers are already okay, except for math.h.
2640                 tmake_file=t-netbsd
2641                 ;;
2642        mips*-*-linux*)                         # Linux MIPS, either endian.
2643                 xmake_file=x-linux
2644                case $machine in
2645                        mipsel-*)  tm_file="mips/elfl.h mips/linux.h" ;;
2646                        *)         tm_file="mips/elf.h mips/linux.h" ;;
2647                esac
2648                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2649                 gnu_ld=yes
2650                 gas=yes
2651                 if test x$enable_threads = xyes; then
2652                         thread_file='posix'
2653                 fi
2654                 ;;
2655         mips*el-*-openbsd*)     # mips little endian
2656                 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2657                 ;;
2658         mips*-*-openbsd*)               # mips big endian
2659                 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2660                 tm_file="mips/openbsd-be.h ${tm_file}"
2661                 ;;
2662         mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
2663                 tm_file="mips/news4.h ${tm_file}"
2664                 if test x$stabs = xyes; then
2665                         tm_file="${tm_file} dbx.h"
2666                 fi
2667                 if test x$gas = xyes
2668                 then
2669                         tmake_file=mips/t-mips-gas
2670                 else
2671                         extra_passes="mips-tfile mips-tdump"
2672                 fi
2673                 if test x$gnu_ld != xyes
2674                 then
2675                         use_collect2=yes
2676                 fi
2677                 xmake_file=mips/x-sony
2678                 ;;
2679         mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
2680                                         # That is based on svr4.
2681                 # t-svr4 is not right because this system doesn't use ELF.
2682                 tm_file="mips/news5.h ${tm_file}"
2683                 if test x$stabs = xyes; then
2684                         tm_file="${tm_file} dbx.h"
2685                 fi
2686                 xm_defines=USG
2687                 if test x$gas = xyes
2688                 then
2689                         tmake_file=mips/t-mips-gas
2690                 else
2691                         extra_passes="mips-tfile mips-tdump"
2692                 fi
2693                 if test x$gnu_ld != xyes
2694                 then
2695                         use_collect2=yes
2696                 fi
2697                 ;;
2698         mips-tandem-sysv4*)             # Tandem S2 running NonStop UX
2699                 tm_file="mips/svr4-5.h mips/svr4-t.h"
2700                 if test x$stabs = xyes; then
2701                         tm_file="${tm_file} dbx.h"
2702                 fi
2703                 xm_defines=USG
2704                 xmake_file=mips/x-sysv
2705                 if test x$gas = xyes
2706                 then
2707                         tmake_file=mips/t-mips-gas
2708                         extra_parts="crtbegin.o crtend.o"
2709                 else
2710                         tmake_file=mips/t-mips
2711                         extra_passes="mips-tfile mips-tdump"
2712                 fi
2713                 if test x$gnu_ld != xyes
2714                 then
2715                         use_collect2=yes
2716                 fi
2717                 ;;
2718         mips-*-ultrix* | mips-dec-mach3)        # Decstation.
2719                 tm_file="mips/ultrix.h ${tm_file}"
2720                 if test x$stabs = xyes; then
2721                         tm_file="${tm_file} dbx.h"
2722                 fi
2723                 xmake_file=mips/x-ultrix
2724                 if test x$gas = xyes
2725                 then
2726                         tmake_file=mips/t-mips-gas
2727                 else
2728                         tmake_file=mips/t-ultrix
2729                         extra_passes="mips-tfile mips-tdump"
2730                 fi
2731                 if test x$gnu_ld != xyes
2732                 then
2733                         use_collect2=yes
2734                 fi
2735                 ;;
2736 changequote(,)dnl
2737         mips-*-riscos[56789]bsd*)
2738 changequote([,])dnl
2739                 tm_file=mips/bsd-5.h    # MIPS BSD 4.3, RISC-OS 5.0
2740                 if test x$stabs = xyes; then
2741                         tm_file="${tm_file} dbx.h"
2742                 fi
2743                 if test x$gas = xyes
2744                 then
2745                         tmake_file=mips/t-bsd-gas
2746                 else
2747                         tmake_file=mips/t-bsd
2748                         extra_passes="mips-tfile mips-tdump"
2749                 fi
2750                 if test x$gnu_ld != xyes
2751                 then
2752                         use_collect2=yes
2753                 fi
2754                 ;;
2755 changequote(,)dnl
2756         mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2757 changequote([,])dnl
2758                 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2759                 if test x$stabs = xyes; then
2760                         tm_file="${tm_file} dbx.h"
2761                 fi
2762                 if test x$gas = xyes
2763                 then
2764                         tmake_file=mips/t-bsd-gas
2765                 else
2766                         tmake_file=mips/t-bsd
2767                         extra_passes="mips-tfile mips-tdump"
2768                 fi
2769                 if test x$gnu_ld != xyes
2770                 then
2771                         use_collect2=yes
2772                 fi
2773                 ;;
2774 changequote(,)dnl
2775         mips-*-riscos[56789]sysv4*)
2776 changequote([,])dnl
2777                 tm_file=mips/svr4-5.h   # MIPS System V.4., RISC-OS 5.0
2778                 if test x$stabs = xyes; then
2779                         tm_file="${tm_file} dbx.h"
2780                 fi
2781                 xmake_file=mips/x-sysv
2782                 if test x$gas = xyes
2783                 then
2784                         tmake_file=mips/t-svr4-gas
2785                 else
2786                         tmake_file=mips/t-svr4
2787                         extra_passes="mips-tfile mips-tdump"
2788                 fi
2789                 if test x$gnu_ld != xyes
2790                 then
2791                         use_collect2=yes
2792                 fi
2793                 ;;
2794 changequote(,)dnl
2795         mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2796 changequote([,])dnl
2797                 tm_file="mips/svr4-4.h ${tm_file}"
2798                 if test x$stabs = xyes; then
2799                         tm_file="${tm_file} dbx.h"
2800                 fi
2801                 xm_defines=USG
2802                 xmake_file=mips/x-sysv
2803                 if test x$gas = xyes
2804                 then
2805                         tmake_file=mips/t-svr4-gas
2806                 else
2807                         tmake_file=mips/t-svr4
2808                         extra_passes="mips-tfile mips-tdump"
2809                 fi
2810                 if test x$gnu_ld != xyes
2811                 then
2812                         use_collect2=yes
2813                 fi
2814                 ;;
2815 changequote(,)dnl
2816         mips-*-riscos[56789]sysv*)
2817 changequote([,])dnl
2818                 tm_file=mips/svr3-5.h   # MIPS System V.3, RISC-OS 5.0
2819                 if test x$stabs = xyes; then
2820                         tm_file="${tm_file} dbx.h"
2821                 fi
2822                 xm_defines=USG
2823                 xmake_file=mips/x-sysv
2824                 if test x$gas = xyes
2825                 then
2826                         tmake_file=mips/t-svr3-gas
2827                 else
2828                         tmake_file=mips/t-svr3
2829                         extra_passes="mips-tfile mips-tdump"
2830                 fi
2831                 if test x$gnu_ld != xyes
2832                 then
2833                         use_collect2=yes
2834                 fi
2835                 ;;
2836         mips-*-sysv* | mips-*-riscos*sysv*)
2837                 tm_file="mips/svr3-4.h ${tm_file}"
2838                 if test x$stabs = xyes; then
2839                         tm_file="${tm_file} dbx.h"
2840                 fi
2841                 xm_defines=USG
2842                 xmake_file=mips/x-sysv
2843                 if test x$gas = xyes
2844                 then
2845                         tmake_file=mips/t-svr3-gas
2846                 else
2847                         tmake_file=mips/t-svr3
2848                         extra_passes="mips-tfile mips-tdump"
2849                 fi
2850                 if test x$gnu_ld != xyes
2851                 then
2852                         use_collect2=yes
2853                 fi
2854                 ;;
2855 changequote(,)dnl
2856         mips-*-riscos[56789]*)          # Default MIPS RISC-OS 5.0.
2857 changequote([,])dnl
2858                 tm_file=mips/mips-5.h
2859                 if test x$stabs = xyes; then
2860                         tm_file="${tm_file} dbx.h"
2861                 fi
2862                 if test x$gas = xyes
2863                 then
2864                         tmake_file=mips/t-mips-gas
2865                 else
2866                         extra_passes="mips-tfile mips-tdump"
2867                 fi
2868                 if test x$gnu_ld != xyes
2869                 then
2870                         use_collect2=yes
2871                 fi
2872                 ;;
2873         mips-*-gnu*)
2874                 ;;
2875         mipsel-*-ecoff*)
2876                 tm_file=mips/ecoffl.h
2877                 if test x$stabs = xyes; then
2878                         tm_file="${tm_file} dbx.h"
2879                 fi
2880                 tmake_file=mips/t-ecoff
2881                 ;;
2882         mips-*-ecoff*)
2883                 tm_file="gofast.h mips/ecoff.h"
2884                 if test x$stabs = xyes; then
2885                         tm_file="${tm_file} dbx.h"
2886                 fi
2887                 tmake_file=mips/t-ecoff
2888                 ;;
2889         mipsel-*-elf*)
2890                 tm_file="mips/elfl.h"
2891                 tmake_file=mips/t-elf
2892                 ;;
2893         mips-*-elf*)
2894                 tm_file="mips/elf.h"
2895                 tmake_file=mips/t-elf
2896                 ;;
2897         mips64el-*-elf*)
2898                 tm_file="mips/elfl64.h"
2899                 tmake_file=mips/t-elf
2900                 ;;
2901         mips64orionel-*-elf*)
2902                 tm_file="mips/elforion.h mips/elfl64.h"
2903                 tmake_file=mips/t-elf
2904                 ;;
2905         mips64-*-elf*)
2906                 tm_file="mips/elf64.h"
2907                 tmake_file=mips/t-elf
2908                 ;;
2909         mips64orion-*-elf*)
2910                 tm_file="mips/elforion.h mips/elf64.h"
2911                 tmake_file=mips/t-elf
2912                 ;;
2913         mips64orion-*-rtems*)
2914                 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2915                 tmake_file="mips/t-elf t-rtems"
2916                 ;;
2917         mipstx39el-*-elf*)
2918                 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2919                 tmake_file=mips/t-r3900
2920                 ;;
2921         mipstx39-*-elf*)
2922                 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2923                 tmake_file=mips/t-r3900
2924                 ;;
2925         mips-*-*)                               # Default MIPS RISC-OS 4.0.
2926                 if test x$stabs = xyes; then
2927                         tm_file="${tm_file} dbx.h"
2928                 fi
2929                 if test x$gas = xyes
2930                 then
2931                         tmake_file=mips/t-mips-gas
2932                 else
2933                         extra_passes="mips-tfile mips-tdump"
2934                 fi
2935                 if test x$gnu_ld != xyes
2936                 then
2937                         use_collect2=yes
2938                 fi
2939                 ;;
2940         mn10200-*-*)
2941                 float_format=i32
2942                 cpu_type=mn10200
2943                 tm_file="mn10200/mn10200.h"
2944                 if test x$stabs = xyes
2945                 then
2946                         tm_file="${tm_file} dbx.h"
2947                 fi
2948                 use_collect2=no
2949                 ;;
2950         mn10300-*-*)
2951                 cpu_type=mn10300
2952                 tm_file="mn10300/mn10300.h"
2953                 if test x$stabs = xyes
2954                 then
2955                         tm_file="${tm_file} dbx.h"
2956                 fi
2957                 use_collect2=no
2958                 ;;
2959         ns32k-encore-bsd*)
2960                 tm_file=ns32k/encore.h
2961                 use_collect2=yes
2962                 ;;
2963         ns32k-sequent-bsd*)
2964                 tm_file=ns32k/sequent.h
2965                 use_collect2=yes
2966                 ;;
2967         ns32k-tek6100-bsd*)
2968                 tm_file=ns32k/tek6100.h
2969                 use_collect2=yes
2970                 ;;
2971         ns32k-tek6200-bsd*)
2972                 tm_file=ns32k/tek6200.h
2973                 use_collect2=yes
2974                 ;;
2975 # This has not been updated to GCC 2.
2976 #       ns32k-ns-genix*)
2977 #               xm_defines=USG
2978 #               xmake_file=ns32k/x-genix
2979 #               tm_file=ns32k/genix.h
2980 #               use_collect2=yes
2981 #               ;;
2982         ns32k-merlin-*)
2983                 tm_file=ns32k/merlin.h
2984                 use_collect2=yes
2985                 ;;
2986         ns32k-pc532-mach*)
2987                 tm_file=ns32k/pc532-mach.h
2988                 use_collect2=yes
2989                 ;;
2990         ns32k-pc532-minix*)
2991                 tm_file=ns32k/pc532-min.h
2992                 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2993                 xm_defines=USG
2994                 use_collect2=yes
2995                 ;;
2996         ns32k-*-netbsd*)
2997                 tm_file=ns32k/netbsd.h
2998                 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2999                 # On NetBSD, the headers are already okay, except for math.h.
3000                 tmake_file=t-netbsd
3001                 use_collect2=yes
3002                 ;;
3003         pdp11-*-bsd)
3004                 tm_file="${tm_file} pdp11/2bsd.h"
3005                 ;;
3006         pdp11-*-*)
3007                 ;;
3008         avr-*-*)
3009                 ;;
3010         ns32k-*-openbsd*)
3011                 # Nothing special
3012                 ;;
3013 # This has not been updated to GCC 2.
3014 #       pyramid-*-*)
3015 #               cpu_type=pyr
3016 #               xmake_file=pyr/x-pyr
3017 #               use_collect2=yes
3018 #               ;;
3019
3020         pj*-linux*)
3021                 tm_file="svr4.h pj/linux.h ${tm_file}"
3022                 ;;
3023         pj-*)
3024                 ;;
3025         pjl-*)
3026                 tm_file="svr4.h pj/pjl.h ${tm_file}"
3027                 ;;
3028
3029         romp-*-aos*)
3030                 use_collect2=yes
3031                 ;;
3032         romp-*-mach*)
3033                 xmake_file=romp/x-mach
3034                 use_collect2=yes
3035                 ;;
3036         romp-*-openbsd*)
3037                 # Nothing special
3038                 ;;
3039         powerpc-*-openbsd*)
3040                 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3041                 ;;
3042         powerpc-*-beos*)
3043                 cpu_type=rs6000
3044                 tm_file=rs6000/beos.h
3045                 xm_file=rs6000/xm-beos.h
3046                 tmake_file=rs6000/t-beos
3047                 xmake_file=rs6000/x-beos
3048                 ;;
3049         powerpc-*-sysv*)
3050                 tm_file=rs6000/sysv4.h
3051                 xm_file="rs6000/xm-sysv4.h"
3052                 xm_defines="USG POSIX"
3053                 extra_headers=ppc-asm.h
3054                 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3055                 xmake_file=rs6000/x-sysv4
3056                 ;;
3057         powerpc-*-eabiaix*)
3058                 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3059                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3060                 extra_headers=ppc-asm.h
3061                 ;;
3062         powerpc-*-eabisim*)
3063                 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3064                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3065                 extra_headers=ppc-asm.h
3066                 ;;
3067         powerpc-*-elf*)
3068                 tm_file="rs6000/sysv4.h"
3069                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3070                 extra_headers=ppc-asm.h
3071                 ;;
3072         powerpc-*-eabi*)
3073                 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3074                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3075                 extra_headers=ppc-asm.h
3076                 ;;
3077         powerpc-*-rtems*)
3078                 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3079                 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3080                 extra_headers=ppc-asm.h
3081                 ;;
3082         powerpc-*-linux-gnulibc1)
3083                 tm_file="rs6000/sysv4.h rs6000/linux.h"
3084                 xm_file=rs6000/xm-sysv4.h
3085                 out_file=rs6000/rs6000.c
3086                 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3087                 xmake_file=x-linux
3088                 extra_headers=ppc-asm.h
3089                 if test x$enable_threads = xyes; then
3090                         thread_file='posix'
3091                 fi
3092                 ;;
3093         powerpc-*-linux-gnu*)
3094                 tm_file="rs6000/sysv4.h rs6000/linux.h"
3095                 xm_file="rs6000/xm-sysv4.h"
3096                 xm_defines="USG ${xm_defines}"
3097                 out_file=rs6000/rs6000.c
3098                 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3099                 xmake_file=x-linux
3100                 extra_headers=ppc-asm.h
3101                 if test x$enable_threads = xyes; then
3102                         thread_file='posix'
3103                 fi
3104                 ;;
3105         powerpc-wrs-vxworks*)
3106                 cpu_type=rs6000
3107                 xm_file="rs6000/xm-sysv4.h"
3108                 xm_defines="USG POSIX"
3109                 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3110                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3111                 extra_headers=ppc-asm.h
3112                 thread_file='vxworks'
3113                 ;;
3114         powerpcle-wrs-vxworks*)
3115                 cpu_type=rs6000
3116                 xm_file="rs6000/xm-sysv4.h"
3117                 xm_defines="USG POSIX"
3118                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3119                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3120                 extra_headers=ppc-asm.h
3121                 thread_file='vxworks'
3122                 ;;
3123         powerpcle-*-sysv*)
3124                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3125                 xm_file="rs6000/xm-sysv4.h"
3126                 xm_defines="USG POSIX"
3127                 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3128                 xmake_file=rs6000/x-sysv4
3129                 extra_headers=ppc-asm.h
3130                 ;;
3131         powerpcle-*-elf*)
3132                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3133                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3134                 extra_headers=ppc-asm.h
3135                 ;;
3136         powerpcle-*-eabisim*)
3137                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3138                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3139                 extra_headers=ppc-asm.h
3140                 ;;
3141         powerpcle-*-eabi*)
3142                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3143                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3144                 extra_headers=ppc-asm.h
3145                 ;;
3146         powerpcle-*-solaris2*)
3147                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3148                 xm_file="rs6000/xm-sysv4.h"
3149                 xm_defines="USG POSIX"
3150                 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3151                 xmake_file=rs6000/x-sysv4
3152                 extra_headers=ppc-asm.h
3153                 ;;
3154 changequote(,)dnl
3155         rs6000-ibm-aix3.[01]*)
3156 changequote([,])dnl
3157                 tm_file=rs6000/aix31.h
3158                 xmake_file=rs6000/x-aix31
3159                 float_format=none
3160                 use_collect2=yes
3161                 ;;
3162 changequote(,)dnl
3163         rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3164 changequote([,])dnl
3165                 tm_file=rs6000/aix3newas.h
3166                 if test x$host != x$target
3167                 then
3168                         tmake_file=rs6000/t-xnewas
3169                 else
3170                         tmake_file=rs6000/t-newas
3171                 fi
3172                 float_format=none
3173                 use_collect2=yes
3174                 ;;
3175 changequote(,)dnl
3176         rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3177 changequote([,])dnl
3178                 tm_file=rs6000/aix41.h
3179                 if test x$host != x$target
3180                 then
3181                         tmake_file=rs6000/t-xnewas
3182                 else
3183                         tmake_file=rs6000/t-newas
3184                 fi
3185                 if test "$gnu_ld" = yes
3186                 then
3187                         xmake_file=rs6000/x-aix41-gld
3188                 else
3189                         tmake_file="rs6000/t-newas rs6000/t-aix41"
3190                 fi
3191                 xmake_file=rs6000/x-aix41
3192                 float_format=none
3193                 use_collect2=yes
3194                 ;;
3195 changequote(,)dnl
3196         rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3197 changequote([,])dnl
3198                 tm_file=rs6000/aix43.h
3199                 tmake_file=rs6000/t-aix43
3200                 xmake_file=rs6000/x-aix41
3201                 float_format=none
3202                 use_collect2=yes
3203                 ;;
3204 changequote(,)dnl
3205         rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3206 changequote([,])dnl
3207                 tm_file=rs6000/aix43.h
3208                 tmake_file=rs6000/t-aix43
3209                 xmake_file=rs6000/x-aix41
3210                 float_format=none
3211                 use_collect2=yes
3212                 ;;
3213         rs6000-ibm-aix*)
3214                 float_format=none
3215                 use_collect2=yes
3216                 ;;
3217         rs6000-bull-bosx)
3218                 float_format=none
3219                 use_collect2=yes
3220                 ;;
3221         rs6000-*-mach*)
3222                 tm_file=rs6000/mach.h
3223                 xm_file="${xm_file} rs6000/xm-mach.h"
3224                 xmake_file=rs6000/x-mach
3225                 use_collect2=yes
3226                 ;;
3227         rs6000-*-lynxos*)
3228                 tm_file=rs6000/lynx.h
3229                 xm_file=rs6000/xm-lynx.h
3230                 tmake_file=rs6000/t-rs6000
3231                 xmake_file=rs6000/x-lynx
3232                 use_collect2=yes
3233                 ;;
3234         sh-*-elf*)
3235                 tm_file=sh/elf.h
3236                 float_format=sh
3237                 ;;
3238         sh-*-rtemself*)
3239                 tmake_file="sh/t-sh t-rtems"
3240                 tm_file=sh/rtemself.h
3241                 float_format=sh
3242                 ;;
3243         sh-*-rtems*)
3244                 tmake_file="sh/t-sh t-rtems"
3245                 tm_file=sh/rtems.h
3246                 float_format=sh
3247                 ;;
3248         sh-*-*)
3249                 float_format=sh
3250                 ;;
3251         sparc-tti-*)
3252                 tm_file=sparc/pbd.h
3253                 xm_file="xm-alloca.h ${xm_file}"
3254                 xm_defines=USG
3255                 ;;
3256         sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3257                 tm_file=sparc/vxsparc.h
3258                 tmake_file=sparc/t-vxsparc
3259                 use_collect2=yes
3260                 thread_file='vxworks'
3261                 ;;
3262         sparc-*-aout*)
3263                 tmake_file=sparc/t-sparcbare
3264                 tm_file="sparc/aout.h libgloss.h"
3265                 ;;
3266         sparc-*-netbsd*)
3267                 tm_file=sparc/netbsd.h
3268                 tmake_file=t-netbsd
3269                 use_collect2=yes
3270                 ;;
3271         sparc-*-openbsd*)
3272                 # we need collect2 until our bug is fixed...
3273                 use_collect2=yes
3274                 ;;
3275         sparc-*-bsd*)
3276                 tm_file=sparc/bsd.h
3277                 ;;
3278         sparc-*-elf*)
3279                 tm_file=sparc/elf.h
3280                 tmake_file=sparc/t-elf
3281                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3282                 #float_format=i128
3283                 float_format=i64
3284                 ;;
3285         sparc-*-linux-gnuaout*)         # Sparc's running GNU/Linux, a.out
3286                 xm_file="${xm_file} sparc/xm-linux.h"
3287                 tm_file=sparc/linux-aout.h
3288                 xmake_file=x-linux
3289                 gnu_ld=yes
3290                 ;;
3291         sparc-*-linux-gnulibc1*)        # Sparc's running GNU/Linux, libc5
3292                 xm_file="${xm_file} sparc/xm-linux.h"
3293                 xmake_file=x-linux
3294                 tm_file=sparc/linux.h
3295                 tmake_file="t-linux t-linux-gnulibc1"
3296                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3297                 gnu_ld=yes
3298                 float_format=sparc
3299                 ;;
3300         sparc-*-linux-gnu*)             # Sparc's running GNU/Linux, libc6
3301                 xm_file="${xm_file} sparc/xm-linux.h"
3302                 xmake_file=x-linux
3303                 tm_file=sparc/linux.h
3304                 tmake_file="t-linux"
3305                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3306                 gnu_ld=yes
3307                 if test x$enable_threads = xyes; then
3308                         thread_file='posix'
3309                 fi
3310                 float_format=sparc
3311                 ;;
3312         sparc-*-lynxos*)
3313                 if test x$gas = xyes
3314                 then
3315                         tm_file=sparc/lynx.h
3316                 else
3317                         tm_file=sparc/lynx-ng.h
3318                 fi
3319                 xm_file=sparc/xm-lynx.h
3320                 tmake_file=sparc/t-sunos41
3321                 xmake_file=x-lynx
3322                 ;;
3323         sparc-*-rtemsaout*)
3324                 tmake_file="sparc/t-sparcbare t-rtems"
3325                 tm_file=sparc/rtems.h
3326                 ;;
3327         sparc-*-rtems*|sparc-*-rtemself*)
3328                 tm_file="sparc/rtemself.h"
3329                 tmake_file="sparc/t-elf t-rtems"
3330                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3331                 #float_format=i128
3332                 float_format=i64
3333                 ;;
3334         sparcv9-*-solaris2*)
3335                 if test x$gnu_ld = xyes
3336                 then
3337                         tm_file=sparc/sol2-64.h
3338                 else
3339                         tm_file=sparc/sol2-sld-64.h
3340                 fi
3341                 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3342                 xm_defines="USG POSIX"
3343                 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3344                 xmake_file=sparc/x-sysv4
3345                 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3346                 float_format=none
3347                 if test x${enable_threads} = x ; then
3348                     enable_threads=$have_pthread_h
3349                     if test x${enable_threads} = x ; then
3350                         enable_threads=$have_thread_h
3351                     fi
3352                 fi
3353                 if test x${enable_threads} = xyes ; then
3354                     if test x${have_pthread_h} = xyes ; then
3355                         thread_file='posix'
3356                     else
3357                         thread_file='solaris'
3358                     fi
3359                 fi
3360                 ;;
3361         sparc-hal-solaris2*)
3362                 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3363                 xm_defines="USG POSIX"
3364                 tm_file="sparc/sol2.h sparc/hal.h"
3365                 tmake_file="sparc/t-halos sparc/t-sol2"
3366                 xmake_file=sparc/x-sysv4
3367                 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3368                 case $machine in
3369 changequote(,)dnl
3370                 *-*-solaris2.[0-4])
3371 changequote([,])dnl
3372                         float_format=i128
3373                 ;;
3374                 *)
3375                         float_format=none
3376                         ;;
3377                 esac
3378                 thread_file='solaris'
3379                 ;;
3380         sparc-*-solaris2*)
3381                 if test x$gnu_ld = xyes
3382                 then
3383                         tm_file=sparc/sol2.h
3384                 else
3385                         tm_file=sparc/sol2-sld.h
3386                 fi
3387                 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3388                 xm_defines="USG POSIX"
3389                 tmake_file=sparc/t-sol2
3390                 xmake_file=sparc/x-sysv4
3391                 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3392                 case $machine in
3393 changequote(,)dnl
3394                 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3395 changequote([,])dnl
3396                 *-*-solaris2*)
3397                         if test x$gnu_ld = xyes
3398                         then
3399                                 tm_file=sparc/sol2-64.h
3400                         else
3401                                 tm_file=sparc/sol2-sld-64.h
3402                         fi
3403                         tmake_file="$tmake_file sparc/t-sol2-64"
3404                         ;;
3405                 esac
3406                 case $machine in
3407 changequote(,)dnl
3408                 *-*-solaris2.[0-4])
3409 changequote([,])dnl
3410                         float_format=i128
3411                         ;;
3412                 *)
3413                         float_format=none
3414                         ;;
3415                 esac
3416                 if test x${enable_threads} = x; then
3417                     enable_threads=$have_pthread_h
3418                     if test x${enable_threads} = x; then
3419                         enable_threads=$have_thread_h
3420                     fi
3421                 fi
3422                 if test x${enable_threads} = xyes; then
3423                     if test x${have_pthread_h} = xyes; then
3424                         thread_file='posix'
3425                     else
3426                         thread_file='solaris'
3427                     fi
3428                 fi
3429                 ;;
3430         sparc-*-sunos4.0*)
3431                 tm_file=sparc/sunos4.h
3432                 tmake_file=sparc/t-sunos40
3433                 use_collect2=yes
3434                 ;;
3435         sparc-*-sunos4*)
3436                 tm_file=sparc/sunos4.h
3437                 tmake_file=sparc/t-sunos41
3438                 use_collect2=yes
3439                 if test x$gas = xyes; then
3440                         tm_file="${tm_file} sparc/sun4gas.h"
3441                 fi
3442                 ;;
3443         sparc-*-sunos3*)
3444                 tm_file=sparc/sun4o3.h
3445                 use_collect2=yes
3446                 ;;
3447         sparc-*-sysv4*)
3448                 tm_file=sparc/sysv4.h
3449                 xm_file="sparc/xm-sysv4.h"
3450                 xm_defines="USG POSIX"
3451                 tmake_file=t-svr4
3452                 xmake_file=sparc/x-sysv4
3453                 extra_parts="crtbegin.o crtend.o"
3454                 ;;
3455         sparc-*-vxsim*)
3456                 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3457                 xm_defines="USG POSIX"
3458                 tm_file=sparc/vxsim.h
3459                 tmake_file=sparc/t-vxsparc
3460                 xmake_file=sparc/x-sysv4
3461                 ;;
3462         sparclet-*-aout*)
3463                 tm_file="sparc/splet.h libgloss.h"
3464                 tmake_file=sparc/t-splet
3465                 ;;
3466         sparclite-*-coff*)
3467                 tm_file="sparc/litecoff.h libgloss.h"
3468                 tmake_file=sparc/t-sparclite
3469                 ;;
3470         sparclite-*-aout*)
3471                 tm_file="sparc/lite.h aoutos.h libgloss.h"
3472                 tmake_file=sparc/t-sparclite
3473                 ;;
3474         sparclite-*-elf*)
3475                 tm_file="sparc/liteelf.h"
3476                 tmake_file=sparc/t-sparclite
3477                 extra_parts="crtbegin.o crtend.o"
3478                 ;;
3479         sparc86x-*-aout*)
3480                 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3481                 tmake_file=sparc/t-sp86x
3482                 ;;
3483         sparc86x-*-elf*)        
3484                 tm_file="sparc/sp86x-elf.h"
3485                 tmake_file=sparc/t-sp86x
3486                 extra_parts="crtbegin.o crtend.o"
3487                 ;;
3488         sparc64-*-aout*)
3489                 tmake_file=sparc/t-sp64
3490                 tm_file=sparc/sp64-aout.h
3491                 ;;
3492         sparc64-*-elf*)
3493                 tmake_file=sparc/t-sp64
3494                 tm_file=sparc/sp64-elf.h
3495                 extra_parts="crtbegin.o crtend.o"
3496                 ;;
3497         sparc64-*-linux*)               # 64-bit Sparc's running GNU/Linux
3498                 tmake_file="t-linux sparc/t-linux64"
3499                 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3500                 tm_file=sparc/linux64.h
3501                 xmake_file=x-linux
3502                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3503                 gnu_ld=yes
3504                 if test x$enable_threads = xyes; then
3505                         thread_file='posix'
3506                 fi
3507                 float_format=sparc
3508                 ;;
3509 # This hasn't been upgraded to GCC 2.
3510 #       tahoe-harris-*)                 # Harris tahoe, using COFF.
3511 #               tm_file=tahoe/harris.h
3512 #               ;;
3513 #       tahoe-*-bsd*)                   # tahoe running BSD
3514 #               ;;
3515
3516         thumb*-*-*)
3517                 AC_MSG_ERROR([
3518 *** The Thumb targets have been depreciated.  The equivalent
3519 *** ARM based toolchain can now generated Thumb instructions
3520 *** when the -mthumb switch is given to the compiler.])
3521                 ;;
3522 # This hasn't been upgraded to GCC 2.
3523 #       tron-*-*)
3524 #               cpu_type=gmicro
3525 #               use_collect2=yes
3526 #               ;;
3527         v850-*-rtems*)
3528                 cpu_type=v850
3529                 tm_file="v850/rtems.h"
3530                 xm_file="v850/xm-v850.h"
3531                 tmake_file="v850/t-v850 t-rtems"
3532                 if test x$stabs = xyes
3533                 then
3534                         tm_file="${tm_file} dbx.h"
3535                 fi
3536                 use_collect2=no
3537                 ;;
3538         v850-*-*)
3539                 target_cpu_default="TARGET_CPU_generic"
3540                 cpu_type=v850
3541                 tm_file="v850/v850.h"
3542                 xm_file="v850/xm-v850.h"
3543                 tmake_file=v850/t-v850
3544                 if test x$stabs = xyes
3545                 then
3546                         tm_file="${tm_file} dbx.h"
3547                 fi
3548                 use_collect2=no
3549                 ;;
3550         vax-*-bsd*)                     # vaxen running BSD
3551                 use_collect2=yes
3552                 float_format=vax
3553                 ;;
3554         vax-*-sysv*)                    # vaxen running system V
3555                 tm_file="${tm_file} vax/vaxv.h"
3556                 xm_defines=USG
3557                 float_format=vax
3558                 ;;
3559         vax-*-netbsd*)
3560                 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3561                 tmake_file=t-netbsd
3562                 float_format=vax
3563                 use_collect2=yes
3564                 ;;
3565         vax-*-openbsd*)
3566                 tmake_file="${tmake_file} vax/t-openbsd"
3567                 ;;
3568         vax-*-ultrix*)                  # vaxen running ultrix
3569                 tm_file="${tm_file} vax/ultrix.h"
3570                 use_collect2=yes
3571                 float_format=vax
3572                 ;;
3573         vax-*-vms*)                     # vaxen running VMS
3574                 xm_file=vax/xm-vms.h
3575                 tm_file=vax/vms.h
3576                 float_format=vax
3577                 ;;
3578         vax-*-*)                        # vax default entry
3579                 float_format=vax
3580                 ;;
3581         we32k-att-sysv*)
3582                 xm_file="${xm_file} xm-svr3"
3583                 use_collect2=yes
3584                 ;;
3585         *)
3586                 echo "Configuration $machine not supported" 1>&2
3587                 exit 1
3588                 ;;
3589         esac
3590
3591         case $machine in
3592         *-*-linux-gnu*)
3593                 ;; # Existing GNU/Linux systems do not use the GNU setup.
3594         *-*-gnu*)
3595                 # On the GNU system, the setup is just about the same on
3596                 # each different CPU.  The specific machines that GNU
3597                 # supports are matched above and just set $cpu_type.
3598                 xm_file="xm-gnu.h ${xm_file}"
3599                 tm_file=${cpu_type}/gnu.h
3600                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3601                 # GNU always uses ELF.
3602                 elf=yes
3603                 # GNU tools are the only tools.
3604                 gnu_ld=yes
3605                 gas=yes
3606                 xmake_file=x-linux      # These details are the same as Linux.
3607                 tmake_file=t-gnu        # These are not.
3608                 ;;
3609         *-*-sysv4*)
3610                 xmake_try_sysv=x-sysv
3611                 install_headers_dir=install-headers-cpio
3612                 ;;
3613         *-*-sysv*)
3614                 install_headers_dir=install-headers-cpio
3615                 ;;
3616         esac
3617
3618         # Distinguish i[34567]86
3619         # Also, do not run mips-tfile on MIPS if using gas.