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