OSDN Git Service

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