1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
6 #This file is part of GNU CC.
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)
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.
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.
23 # Initialization and defaults
26 AC_CONFIG_HEADER(auto-host.h:config.in)
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
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)
43 case ${LIBRARY_PATH} in
44 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
45 library_path_setting="contains current directory"
48 library_path_setting="ok"
52 AC_MSG_RESULT($library_path_setting)
53 if test "$library_path_setting" != "ok"; then
55 *** LIBRARY_PATH shouldn't contain the current directory when
56 *** building gcc. Please change the environment variable
57 *** and run configure again.])
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
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)
69 case ${GCC_EXEC_PREFIX} in
70 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
71 gcc_exec_prefix_setting="contains current directory"
74 gcc_exec_prefix_setting="ok"
78 AC_MSG_RESULT($gcc_exec_prefix_setting)
79 if test "$gcc_exec_prefix_setting" != "ok"; then
81 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
82 *** building gcc. Please change the environment variable
83 *** and run configure again.])
86 # Check for additional parameters
90 [ --with-gnu-ld arrange to work with GNU ld.],
91 gnu_ld_flag="$with_gnu_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
104 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER",
105 [Define to enable the use of a default linker.])
110 [ --with-gnu-as arrange to work with GNU as.],
111 gas_flag="$with_gnu_as",
115 [ --with-as arrange to use the specified as (full pathname).],
116 DEFAULT_ASSEMBLER="$with_as")
117 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
118 if test ! -x "$DEFAULT_ASSEMBLER"; then
119 AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
120 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
123 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER",
124 [Define to enable the use of a default assembler.])
129 [ --with-stabs arrange to use stabs instead of host debug format.],
135 [ --with-elf arrange to use ELF instead of host debug format.],
139 # Specify the local prefix
141 AC_ARG_WITH(local-prefix,
142 [ --with-local-prefix=DIR specifies directory to put local include.],
143 [case "${withval}" in
144 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
146 *) local_prefix=$with_local_prefix ;;
149 # Default local prefix if it is empty
150 if test x$local_prefix = x; then
151 local_prefix=/usr/local
154 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
155 # passed in by the toplevel make and thus we'd get different behavior
156 # depending on where we built the sources.
158 # Specify the g++ header file directory
159 AC_ARG_WITH(gxx-include-dir,
160 [ --with-gxx-include-dir=DIR
161 specifies directory to put g++ header files.],
162 [case "${withval}" in
163 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
165 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
168 if test x${gcc_gxx_include_dir} = x; then
169 if test x${enable_version_specific_runtime_libs} = xyes; then
170 gcc_gxx_include_dir='${libsubdir}/include/g++'
172 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
173 changequote(<<, >>)dnl
174 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
179 # Enable expensive internal checks
180 AC_ARG_ENABLE(checking,
181 [ --enable-checking[=LIST]
182 enable expensive run-time checks. With LIST,
183 enable only specific categories of checks.
184 Categories are: misc,tree,rtl,gc,gcac; default
190 ac_gc_always_collect=
191 case "${enableval}" in
192 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
194 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
195 set fnord $enableval; shift
200 misc) ac_checking=1 ;;
201 tree) ac_tree_checking=1 ;;
202 rtl) ac_rtl_checking=1 ;;
203 gc) ac_gc_checking=1 ;;
204 gcac) ac_gc_always_collect=1 ;;
205 *) AC_MSG_ERROR(unknown check category $check) ;;
211 # Enable some checks by default for development versions of GCC
212 [ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;])
213 if test x$ac_checking != x ; then
214 AC_DEFINE(ENABLE_CHECKING, 1,
215 [Define if you want more run-time sanity checks. This one gets a grab
216 bag of miscellaneous but relatively cheap checks.])
218 if test x$ac_tree_checking != x ; then
219 AC_DEFINE(ENABLE_TREE_CHECKING, 1,
220 [Define if you want all operations on trees (the basic data
221 structure of the front ends) to be checked for dynamic type safety
222 at runtime. This is moderately expensive.])
224 if test x$ac_rtl_checking != x ; then
225 AC_DEFINE(ENABLE_RTL_CHECKING, 1,
226 [Define if you want all operations on RTL (the basic data structure
227 of the optimizer and back end) to be checked for dynamic type safety
228 at runtime. This is quite expensive.])
230 if test x$ac_gc_checking != x ; then
231 AC_DEFINE(ENABLE_GC_CHECKING, 1,
232 [Define if you want the garbage collector to do object poisoning and
233 other memory allocation checks. This is quite expensive.])
235 if test x$ac_gc_always_collect != x ; then
236 AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT, 1,
237 [Define if you want the garbage collector to operate in maximally
238 paranoid mode, validating the entire heap and collecting garbage at
239 every opportunity. This is extremely expensive.])
244 [ --disable-cpp don't provide a user-visible C preprocessor.],
245 [], [enable_cpp=yes])
247 AC_ARG_WITH(cpp_install_dir,
248 [ --with-cpp-install-dir=DIR
249 install the user visible C preprocessor in DIR
250 (relative to PREFIX) as well as PREFIX/bin.],
251 [if test x$withval = xyes; then
252 AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
253 elif test x$withval != xno; then
254 cpp_install_dir=$withval
257 dnl Disable this for the moment; the library interface is changing.
258 dnl # Link cpplib into the compiler proper, for C/C++/ObjC.
259 dnl AC_ARG_ENABLE(c-cpplib,
260 dnl [ --enable-c-cpplib link cpplib directly into C and C++ compilers
261 dnl (EXPERIMENTAL) (implies --enable-cpplib).],
262 dnl if test x$enable_c_cpplib != xno; then
263 dnl extra_c_objs="${extra_c_objs} libcpp.a"
264 dnl extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
265 dnl extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
268 # Enable Multibyte Characters for C/C++
269 AC_ARG_ENABLE(c-mbchar,
270 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
271 if test x$enable_c_mbchar != xno; then
272 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
276 # Pass with no value to take the default
277 # Pass with a value to specify a thread package
278 AC_ARG_ENABLE(threads,
279 [ --enable-threads enable thread usage for target GCC.
280 --enable-threads=LIB use LIB thread package for target GCC.],
281 if test x$enable_threads = xno; then
286 enable_threads_flag=$enable_threads
287 # Check if a valid thread package
288 case x${enable_threads_flag} in
291 target_thread_file='single'
295 target_thread_file=''
297 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
298 xsolaris | xwin32 | xdce | xvxworks)
299 target_thread_file=$enable_threads_flag
302 echo "$enable_threads is an unknown thread package" 1>&2
307 AC_ARG_ENABLE(objc-gc,
308 [ --enable-objc-gc enable the use of Boehm's garbage collector with
309 the GNU Objective-C runtime.],
310 if test x$enable_objc_gc = xno; then
318 [ --with-dwarf2 force the default debug format to be DWARF2.],
319 dwarf2="$with_dwarf2",
322 # Determine the host, build, and target systems
325 # Find the native compiler
328 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
329 NO_MINUS_C_MINUS_O=yes
331 AC_SUBST(NO_MINUS_C_MINUS_O)
335 AC_MSG_CHECKING(whether ${CC-cc} accepts -Wno-long-long)
336 echo 'void f(){}' > conftest.c
337 if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
338 ac_cv_prog_cc_no_long_long=yes
340 ac_cv_prog_cc_no_long_long=no
343 echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
345 # If the native compiler is GCC, we can enable warnings even in stage1.
346 # That's useful for people building cross-compilers, or just running a
348 stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
349 stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
350 if test "x$GCC" = "xyes"; then
351 if test $ac_cv_prog_cc_no_long_long = yes; then
352 stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
355 stage1_warn_cflags=""
357 AC_SUBST(stage1_warn_cflags)
358 AC_SUBST(stage2_warn_cflags)
362 AC_MSG_CHECKING([whether a default assembler was specified])
363 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
364 if test x"$gas_flag" = x"no"; then
365 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
367 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
373 AC_MSG_CHECKING([whether a default linker was specified])
374 if test x"${DEFAULT_LINKER+set}" = x"set"; then
375 if test x"$gnu_ld_flag" = x"no"; then
376 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
378 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
386 # Find some useful tools
400 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
401 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
402 sys/resource.h sys/param.h sys/times.h sys/stat.h \
405 # Check for thread headers.
406 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
407 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
409 # See if GNAT has been installed
410 AC_CHECK_PROG(gnat, gnatbind, yes, no)
412 # Do we have a single-tree copy of texinfo?
413 if test -f $srcdir/../texinfo/Makefile.in; then
414 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
415 gcc_cv_prog_makeinfo_modern=yes
416 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
418 # See if makeinfo has been installed and is modern enough
419 # that we can use it.
420 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
421 [GNU texinfo.* \([0-9][0-9.]*\)],
422 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
425 if test $gcc_cv_prog_makeinfo_modern = no; then
427 *** Makeinfo is missing or too old.
428 *** Info documentation will not be built or installed.])
432 BUILD_INFO=info AC_SUBST(BUILD_INFO)
433 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
436 # See if the stage1 system preprocessor understands the ANSI C
437 # preprocessor stringification operator.
440 # Use <inttypes.h> only if it exists,
441 # doesn't clash with <sys/types.h>, and declares intmax_t.
442 AC_MSG_CHECKING(for inttypes.h)
443 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
445 [#include <sys/types.h>
446 #include <inttypes.h>],
448 [gcc_cv_header_inttypes_h=yes],
449 gcc_cv_header_inttypes_h=no)])
450 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
451 if test $gcc_cv_header_inttypes_h = yes; then
452 AC_DEFINE(HAVE_INTTYPES_H, 1,
453 [Define if you have a working <inttypes.h> header file.])
457 # Determine if enumerated bitfields are unsigned. ISO C says they can
458 # be either signed or unsigned.
460 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
461 [AC_TRY_RUN(#include <stdlib.h>
462 enum t { BLAH = 128 } ;
463 struct s_t { enum t member : 8; } s ;
467 if (s.member < 0) exit(1);
470 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
471 if test $gcc_cv_enum_bf_unsigned = yes; then
472 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
473 [Define if enumerated bitfields are treated as unsigned values.])
476 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
477 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
478 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
479 fputs_unlocked getrusage valloc)
481 AC_CHECK_TYPE(ssize_t, int)
483 # Try to determine the array type of the second argument of getgroups
484 # for the target system (int or gid_t).
486 if test "${target}" = "${build}"; then
487 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
490 # This condition may need some tweaking. It should include all
491 # targets where the array type of the second argument of getgroups
492 # is int and the type of gid_t is not equivalent to int.
493 *-*-sunos* | *-*-ultrix*)
494 TARGET_GETGROUPS_T=int
497 TARGET_GETGROUPS_T=gid_t
501 AC_SUBST(TARGET_GETGROUPS_T)
503 gcc_AC_FUNC_VFPRINTF_DOPRNT
504 gcc_AC_FUNC_PRINTF_PTR
508 # Under some versions of uwin, vfork is notoriously buggy and the test
509 # can hang configure; on other versions, vfork exists just as a stub.
510 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
511 ac_cv_func_vfork_works=no
515 AC_FUNC_MMAP_ANYWHERE
518 # We will need to find libiberty.h and ansidecl.h
519 saved_CFLAGS="$CFLAGS"
520 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
521 gcc_AC_CHECK_DECLS(bcopy bzero bcmp \
522 index rindex getenv atol sbrk abort atof getcwd getwd \
523 strsignal putc_unlocked fputs_unlocked strstr environ \
524 malloc realloc calloc free basename getopt, , ,[
525 #include "gansidecl.h"
526 #include "system.h"])
528 gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
529 #include "gansidecl.h"
531 #ifdef HAVE_SYS_RESOURCE_H
532 #include <sys/resource.h>
536 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
537 CFLAGS="$saved_CFLAGS"
539 # mkdir takes a single argument on some systems.
540 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
550 build_install_headers_dir=install-headers-tar
555 host_truncate_target=
558 # Decode the host machine, then the target machine.
559 # For the host machine, we save the xm_file variable as host_xm_file;
560 # then we decode the target machine and forget everything else
561 # that came from the host machine.
562 for machine in $build $host $target; do
576 # Set this to force installation and use of collect2.
578 # Set this to override the default target model.
580 # Set this to control how the header file directory is installed.
581 install_headers_dir=install-headers-tar
582 # Set this to a non-empty list of args to pass to cpp if the target
583 # wants its .md file passed through cpp.
585 # Set this if directory names should be truncated to 14 characters.
587 # Set this if gdb needs a dir command with `dirname $out_file`
588 gdb_needs_out_file_path=
589 # Set this if the build machine requires executables to have a
592 # Set this to control which thread package will be used.
594 # Reinitialize these from the flag values every loop pass, since some
595 # configure entries modify them.
597 gnu_ld="$gnu_ld_flag"
598 enable_threads=$enable_threads_flag
600 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
601 # updated in each machine entry.
603 cpu_type=`echo $machine | sed 's/-.*$//'`
645 tm_file=${cpu_type}/${cpu_type}.h
646 xm_file=${cpu_type}/xm-${cpu_type}.h
647 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
649 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
651 # On a.out targets, we need to use collect2.
658 # Common parts for linux-gnu and openbsd systems
661 xm_defines="HAVE_ATEXIT POSIX BSTRING"
664 tm_file=${cpu_type}/openbsd.h
665 tmake_file="t-libc-ok t-openbsd"
666 # avoid surprises, always provide an xm-openbsd file
667 xm_file=${cpu_type}/xm-openbsd.h
668 # don't depend on processor x-fragments as well
670 if test x$enable_threads = xyes; then
672 tmake_file="${tmake_file} t-openbsd-thread"
678 # Support site-specific machine types.
680 cpu_type=`echo $machine | sed -e 's/-.*//'`
681 rest=`echo $machine | sed -e "s/$cpu_type-//"`
682 xm_file=${cpu_type}/xm-$rest.h
683 tm_file=${cpu_type}/$rest.h
684 if test -f $srcdir/config/${cpu_type}/x-$rest; \
685 then xmake_file=${cpu_type}/x-$rest; \
688 if test -f $srcdir/config/${cpu_type}/t-$rest; \
689 then tmake_file=${cpu_type}/t-$rest; \
695 a29k-*-bsd* | a29k-*-sym1*)
696 tm_file="${tm_file} a29k/unix.h"
698 xmake_file=a29k/x-unix
701 a29k-*-udi | a29k-*-coff)
702 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
703 tmake_file=a29k/t-a29kbare
706 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
707 tmake_file=a29k/t-vx29k
708 extra_parts="crtbegin.o crtend.o"
709 thread_file='vxworks'
711 a29k-*-*) # Default a29k environment.
715 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
717 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
718 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
720 # GAS + IEEE_CONFORMANT
721 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
723 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
724 xmake_file="x-interix alpha/t-pe"
725 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
726 if test x$enable_threads = xyes ; then
729 if test x$stabs = xyes ; then
730 tm_file="${tm_file} dbxcoff.h"
732 #prefix='$$INTERIX_ROOT'/usr/contrib
733 #local_prefix='$$INTERIX_ROOT'/usr/contrib
735 alpha*-*-linux-gnuecoff*)
736 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
737 target_cpu_default="MASK_GAS"
738 tmake_file="alpha/t-alpha alpha/t-ieee"
743 alpha*-*-linux-gnulibc1*)
744 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
745 target_cpu_default="MASK_GAS"
746 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
747 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
750 if test x$enable_threads = xyes; then
755 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
756 target_cpu_default="MASK_GAS"
757 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
758 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
761 if test x$enable_threads = xyes; then
766 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
767 target_cpu_default="MASK_GAS"
768 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
769 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
775 # default x-alpha is only appropriate for dec-osf.
776 target_cpu_default="MASK_GAS"
777 tmake_file="alpha/t-alpha alpha/t-ieee"
781 if test x$stabs = xyes
783 tm_file="${tm_file} dbx.h"
785 if test x$gas != xyes
787 extra_passes="mips-tfile mips-tdump"
790 tmake_file="alpha/t-alpha alpha/t-ieee"
793 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
798 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
801 tm_file="${tm_file} alpha/osf.h"
802 # Some versions of OSF4 (specifically X4.0-9 296.7) have
803 # a broken tar, so we use cpio instead.
804 install_headers_dir=install-headers-cpio
807 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
812 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
814 target_cpu_default=MASK_SUPPORT_ARCH
819 tm_file="${tm_file} dbx.h alpha/vxworks.h"
820 tmake_file="alpha/t-alpha alpha/t-ieee"
823 extra_passes="mips-tfile mips-tdump"
826 thread_file='vxworks'
829 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
830 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
831 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
832 xmake_file=winnt/x-winnt
833 extra_host_objs=oldnames.o
834 extra_gcc_objs="spawnv.o oldnames.o"
835 if test x$gnu_ld != xyes
837 extra_programs=ld.exe
839 if test x$enable_threads = xyes; then
845 xm_file="${xm_file} alpha/xm-vms.h"
846 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
849 extra_parts="crtinit.o crtfini.o"
851 arm-*-coff* | armel-*-coff*)
853 tmake_file=arm/t-arm-coff
857 tmake_file=arm/t-arm-coff
858 thread_file='vxworks'
861 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
863 tm_file=arm/riscix1-1.h
866 arm-*-riscix*) # Acorn RISC machine
869 tm_file=arm/rix-gas.h
873 xmake_file=arm/x-riscix
874 tmake_file=arm/t-riscix
877 arm-semi-aout | armel-semi-aout)
879 tmake_file=arm/t-semi
881 arm-semi-aof | armel-semi-aof)
882 tm_file=arm/semiaof.h
883 tmake_file=arm/t-semiaof
887 tmake_file="t-netbsd arm/t-netbsd"
890 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
893 tm_file=arm/linux-aout.h
894 tmake_file=arm/t-linux
897 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
898 xm_file=arm/xm-linux.h
900 tm_file="arm/linux-oldld.h arm/linux-elf.h"
903 tm_file="arm/linux-elf26.h $tm_file"
906 tmake_file="t-linux arm/t-linux"
907 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
909 case x${enable_threads} in
910 x | xyes | xpthreads | xposix)
915 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
916 xm_file=arm/xm-linux.h
918 tm_file="arm/linux-elf.h"
921 tm_file="arm/linux-elf26.h $tm_file"
924 tmake_file="t-linux arm/t-linux"
925 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
927 case x${enable_threads} in
928 x | xyes | xpthreads | xposix)
933 arm*-*-uclinux*) # ARM ucLinux
934 tm_file=arm/uclinux-elf.h
935 tmake_file=arm/t-arm-elf
939 tmake_file=arm/t-arm-aout
942 tm_file=arm/ecos-elf.h
943 tmake_file=arm/t-arm-elf
946 tm_file=arm/unknown-elf.h
947 tmake_file=arm/t-arm-elf
950 tm_file=arm/conix-elf.h
951 tmake_file=arm/t-arm-elf
954 tm_file=arm/unknown-elf-oabi.h
955 tmake_file=arm/t-arm-elf
964 c1-convex-*) # Convex C1
968 c2-convex-*) # Convex C2
981 target_cpu_default=16
988 clipper-intergraph-clix*)
989 tm_file="${tm_file} svr3.h clipper/clix.h"
990 xm_file=clipper/xm-clix.h
991 xmake_file=clipper/x-clix
992 extra_headers=va-clipper.h
993 extra_parts="crtbegin.o crtend.o"
994 install_headers_dir=install-headers-cpio
1005 tm_file="fr30/fr30.h"
1006 tmake_file=fr30/t-fr30
1007 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1009 # This hasn't been upgraded to GCC 2.
1010 # fx80-alliant-*) # Alliant FX/80
1016 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
1017 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
1018 tmake_file="t-linux pa/t-linux"
1019 extra_parts="crtbegin.o crtend.o"
1022 if test x$enable_threads = xyes; then
1027 target_cpu_default="MASK_PA_11"
1028 tmake_file=pa/t-openbsd
1031 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1032 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
1033 xm_file=pa/xm-papro.h
1037 target_cpu_default="MASK_PA_11"
1038 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1042 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1043 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
1044 xm_file=pa/xm-papro.h
1048 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1052 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1053 target_cpu_default="MASK_PA_11"
1057 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1061 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
1062 xm_file=pa/xm-pahpux.h
1063 xmake_file=pa/x-pa-hpux
1064 if test x$gas = xyes
1066 tm_file="${tm_file} pa/gas.h"
1068 install_headers_dir=install-headers-cpio
1072 hppa1.0-*-hpux8.0[0-2]*)
1074 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1075 xm_file=pa/xm-pahpux.h
1076 xmake_file=pa/x-pa-hpux
1077 if test x$gas = xyes
1079 tm_file="${tm_file} pa/pa-gas.h"
1081 tm_file="pa/pa-oldas.h ${tm_file}"
1083 install_headers_dir=install-headers-cpio
1087 hppa1.1-*-hpux8.0[0-2]*)
1089 target_cpu_default="MASK_PA_11"
1090 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1091 xm_file=pa/xm-pahpux.h
1092 xmake_file=pa/x-pa-hpux
1093 if test x$gas = xyes
1095 tm_file="${tm_file} pa/pa-gas.h"
1097 tm_file="pa/pa-oldas.h ${tm_file}"
1099 install_headers_dir=install-headers-cpio
1103 target_cpu_default="MASK_PA_11"
1104 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1105 xm_file=pa/xm-pahpux.h
1106 xmake_file=pa/x-pa-hpux
1107 if test x$gas = xyes
1109 tm_file="${tm_file} pa/pa-gas.h"
1111 install_headers_dir=install-headers-cpio
1115 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1116 xm_file=pa/xm-pahpux.h
1117 xmake_file=pa/x-pa-hpux
1118 if test x$gas = xyes
1120 tm_file="${tm_file} pa/pa-gas.h"
1122 install_headers_dir=install-headers-cpio
1125 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1126 target_cpu_default="MASK_PA_11"
1127 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1129 xm_file=pa/xm-pahpux.h
1130 xmake_file=pa/x-pa-hpux
1132 if test x$gas = xyes
1134 tm_file="${tm_file} pa/pa-gas.h"
1136 if test x$enable_threads = x; then
1137 enable_threads=$have_pthread_h
1139 if test x$enable_threads = xyes; then
1141 tmake_file="${tmake_file} pa/t-dce-thr"
1143 install_headers_dir=install-headers-cpio
1147 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1149 xm_file=pa/xm-pahpux.h
1150 xmake_file=pa/x-pa-hpux
1152 if test x$gas = xyes
1154 tm_file="${tm_file} pa/pa-gas.h"
1156 if test x$enable_threads = x; then
1157 enable_threads=$have_pthread_h
1159 if test x$enable_threads = xyes; then
1161 tmake_file="${tmake_file} pa/t-dce-thr"
1163 install_headers_dir=install-headers-cpio
1167 target_cpu_default="MASK_PA_11"
1168 xm_file=pa/xm-pa64hpux.h
1169 xmake_file=pa/x-pa-hpux
1171 tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
1173 tmake_file=pa/t-pa64
1174 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1176 if [[ x$gas = xyes ]]
1178 tm_file="${tm_file} pa/pa-gas.h"
1180 # if [[ x$enable_threads = x ]]; then
1181 # enable_threads=$have_pthread_h
1183 # if [[ x$enable_threads = xyes ]]; then
1185 # tmake_file="${tmake_file} pa/t-dce-thr"
1187 install_headers_dir=install-headers-cpio
1190 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1191 target_cpu_default="MASK_PA_11"
1192 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1194 xm_file=pa/xm-pahpux.h
1195 xmake_file=pa/x-pa-hpux
1197 if test x$gas = xyes
1199 tm_file="${tm_file} pa/pa-gas.h"
1201 # if test x$enable_threads = x; then
1202 # enable_threads=$have_pthread_h
1204 # if test x$enable_threads = xyes; then
1206 # tmake_file="${tmake_file} pa/t-dce-thr"
1208 install_headers_dir=install-headers-cpio
1212 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1214 xm_file=pa/xm-pahpux.h
1215 xmake_file=pa/x-pa-hpux
1216 if test x$gas = xyes
1218 tm_file="${tm_file} pa/pa-gas.h"
1220 # if test x$enable_threads = x; then
1221 # enable_threads=$have_pthread_h
1223 # if test x$enable_threads = xyes; then
1225 # tmake_file="${tmake_file} pa/t-dce-thr"
1227 install_headers_dir=install-headers-cpio
1230 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1231 target_cpu_default="MASK_PA_11"
1232 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1233 xm_file=pa/xm-pahpux.h
1234 xmake_file=pa/x-pa-hpux
1235 if test x$gas = xyes
1237 tm_file="${tm_file} pa/pa-gas.h"
1239 install_headers_dir=install-headers-cpio
1243 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1244 xm_file=pa/xm-pahpux.h
1245 xmake_file=pa/x-pa-hpux
1246 if test x$gas = xyes
1248 tm_file="${tm_file} pa/pa-gas.h"
1250 install_headers_dir=install-headers-cpio
1253 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1254 target_cpu_default="MASK_PA_11"
1255 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1256 xm_file=pa/xm-pahpux.h
1257 xmake_file=pa/x-pa-hpux
1258 if test x$gas = xyes
1260 tm_file="${tm_file} pa/pa-gas.h"
1262 install_headers_dir=install-headers-cpio
1266 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1267 xm_file=pa/xm-pahpux.h
1268 xmake_file=pa/x-pa-hpux
1269 if test x$gas = xyes
1271 tm_file="${tm_file} pa/pa-gas.h"
1273 install_headers_dir=install-headers-cpio
1277 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1278 target_cpu_default="MASK_PA_11"
1282 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1283 xm_file=pa/xm-pampeix.h
1284 xmake_file=pa/x-pa-mpeix
1285 echo "You must use gas. Assuming it is already installed."
1286 install_headers_dir=install-headers-tar
1289 i370-*-opened*) # IBM 360/370/390 Architecture
1290 xm_file=i370/xm-oe.h
1292 xmake_file=i370/x-oe
1293 tmake_file=i370/t-oe
1296 xm_file=i370/xm-mvs.h
1298 tmake_file=i370/t-mvs
1301 xm_file="xm-linux.h i370/xm-linux.h"
1303 tm_file="i370/linux.h ${tm_file}"
1304 tmake_file="t-linux i370/t-linux"
1305 # broken_install=yes
1306 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1307 # extra_parts="crtbegin.o crtend.o"
1311 if test x$enable_threads = xyes; then
1318 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1319 tm_file=i386/i386elf.h
1320 tmake_file=i386/t-i386elf
1324 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1326 if test x$gas = xyes
1328 tm_file=i386/aix386.h
1329 extra_parts="crtbegin.o crtend.o"
1330 tmake_file=i386/t-crtstuff
1332 tm_file=i386/aix386ng.h
1335 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1337 xmake_file=i386/x-aix
1340 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1342 xm_file="xm-alloca.h ${xm_file}"
1343 xm_defines="USG POSIX SMALL_ARG_MAX"
1344 xmake_file=i386/x-ncr3000
1345 if test x$stabs = xyes -a x$gas = xyes
1347 tm_file=i386/sysv4gdb.h
1349 tm_file=i386/sysv4.h
1351 extra_parts="crtbegin.o crtend.o"
1352 tmake_file=i386/t-crtpic
1358 xm_file=i386/xm-next.h
1359 tmake_file=i386/t-next
1360 xmake_file=i386/x-next
1361 extra_objs=nextstep.o
1362 extra_parts="crtbegin.o crtend.o"
1363 if test x$enable_threads = xyes; then
1368 i[34567]86-sequent-bsd*) # 80386 from Sequent
1371 if test x$gas = xyes
1373 tm_file=i386/seq-gas.h
1375 tm_file=i386/sequent.h
1379 i[34567]86-sequent-ptx1*)
1381 xm_defines="USG SVR3"
1382 xmake_file=i386/x-sysv3
1383 tm_file=i386/seq-sysv3.h
1384 tmake_file=i386/t-crtstuff
1385 extra_parts="crtbegin.o crtend.o"
1386 install_headers_dir=install-headers-cpio
1389 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1391 xm_defines="USG SVR3"
1392 xmake_file=i386/x-sysv3
1393 tm_file=i386/seq2-sysv3.h
1394 tmake_file=i386/t-crtstuff
1395 extra_parts="crtbegin.o crtend.o"
1396 install_headers_dir=install-headers-cpio
1399 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1401 xm_file="xm-alloca.h ${xm_file}"
1402 xm_defines="USG POSIX SMALL_ARG_MAX"
1404 tm_file=i386/ptx4-i.h
1406 extra_parts="crtbegin.o crtend.o"
1407 install_headers_dir=install-headers-cpio
1409 i386-sun-sunos*) # Sun i386 roadrunner
1415 i[34567]86-wrs-vxworks*)
1417 tm_file=i386/vxi386.h
1418 tmake_file=i386/t-i386bare
1419 thread_file='vxworks'
1424 tm_file=i386/i386-aout.h
1425 tmake_file=i386/t-i386bare
1428 i[34567]86-*-beospe*)
1430 xm_file=i386/xm-beos.h
1431 xm_defines="USE_C_ALLOCA"
1432 tmake_file=i386/t-beos
1433 tm_file=i386/beos-pe.h
1434 xmake_file=i386/x-beos
1438 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1440 xm_file=i386/xm-beos.h
1441 tmake_file='i386/t-beos i386/t-crtpic'
1442 tm_file=i386/beos-elf.h
1443 xmake_file=i386/x-beos
1445 extra_parts='crtbegin.o crtend.o'
1448 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1450 tm_file=i386/bsd386.h
1451 # tmake_file=t-libc-ok
1456 tm_file=i386/386bsd.h
1457 # tmake_file=t-libc-ok
1458 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1462 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1464 tm_file="i386/freebsd.h i386/perform.h"
1465 tmake_file=t-freebsd
1468 i[34567]86-*-freebsd*)
1470 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1471 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1472 tmake_file=t-freebsd
1476 case x${enable_threads} in
1477 xyes | xpthreads | xposix)
1479 tmake_file="${tmake_file} t-freebsd-thread"
1484 i[34567]86-*-netbsd*)
1486 tm_file=i386/netbsd.h
1491 i[34567]86-*-openbsd*)
1493 # we need collect2 until our bug is fixed...
1499 tm_file=i386/i386-coff.h
1500 tmake_file=i386/t-i386bare
1503 i[34567]86-*-isc*) # 80386 running ISC system
1505 xm_file="${xm_file} i386/xm-isc.h"
1506 xm_defines="USG SVR3"
1509 i[34567]86-*-isc[34]*)
1511 xmake_file=i386/x-isc3
1514 xmake_file=i386/x-isc
1517 if test x$gas = xyes -a x$stabs = xyes
1519 tm_file=i386/iscdbx.h
1520 tmake_file=i386/t-svr3dbx
1521 extra_parts="svr3.ifile svr3z.ifile"
1523 tm_file=i386/isccoff.h
1524 tmake_file=i386/t-crtstuff
1525 extra_parts="crtbegin.o crtend.o"
1527 tmake_file="$tmake_file i386/t-i386bare"
1528 install_headers_dir=install-headers-cpio
1531 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1532 changequote([,])dnl # with a.out format using
1534 xmake_file=x-linux-aout
1535 tmake_file="t-linux-aout i386/t-crtstuff"
1536 tm_file=i386/linux-oldld.h
1541 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1542 changequote([,])dnl # with a.out format
1543 xmake_file=x-linux-aout
1544 tmake_file="t-linux-aout i386/t-crtstuff"
1545 tm_file=i386/linux-aout.h
1550 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1551 changequote([,])dnl # with ELF format using the
1552 # GNU/Linux C library 5
1554 tm_file=i386/linux.h
1555 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1556 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1559 if test x$enable_threads = xyes; then
1560 thread_file='single'
1564 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1565 changequote([,])dnl # with ELF format using glibc 2
1566 # aka GNU/Linux C library 6
1568 tm_file=i386/linux.h
1569 tmake_file="t-linux i386/t-crtstuff"
1570 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1573 if test x$enable_threads = xyes; then
1583 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1585 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1589 i[34567]86-pc-msdosdjgpp*)
1591 xm_file=i386/xm-djgpp.h
1592 tm_file=i386/djgpp.h
1593 tmake_file=i386/t-djgpp
1594 xmake_file=i386/x-djgpp
1599 case $host in *pc-msdosdjgpp*)
1605 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1608 tmake_file=t-libc-ok
1613 i[34567]86-*-lynxos*)
1615 if test x$gas = xyes
1619 tm_file=i386/lynx-ng.h
1621 xm_file=i386/xm-lynx.h
1622 tmake_file=i386/t-i386bare
1629 # tmake_file=t-libc-ok
1633 i[34567]86-*-osfrose*) # 386 using OSF/rose
1635 if test x$elf = xyes
1637 tm_file=i386/osfelf.h
1640 tm_file=i386/osfrose.h
1643 xm_file="i386/xm-osf.h ${xm_file}"
1644 xmake_file=i386/x-osfrose
1645 tmake_file=i386/t-osf
1646 extra_objs=halfpic.o
1649 i[34567]86-go32-rtems*)
1652 xm_file=i386/xm-go32.h
1653 tm_file=i386/go32-rtems.h
1654 tmake_file="i386/t-go32 t-rtems"
1657 i[34567]86-*-rtemscoff*)
1660 tm_file=i386/rtems.h
1661 tmake_file="i386/t-i386bare t-rtems"
1664 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1667 tm_file=i386/rtemself.h
1668 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1669 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1672 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1674 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1675 xm_defines="USG SVR3"
1676 xmake_file=i386/x-sco5
1677 install_headers_dir=install-headers-cpio
1679 if test x$gas = xyes
1681 tm_file="i386/sco5gas.h ${tm_file}"
1682 tmake_file=i386/t-sco5gas
1684 tmake_file=i386/t-sco5
1686 tmake_file="$tmake_file i386/t-i386bare"
1687 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1690 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1692 xm_file="${xm_file} i386/xm-sco.h"
1693 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1694 xmake_file=i386/x-sco4
1695 install_headers_dir=install-headers-cpio
1696 if test x$stabs = xyes
1698 tm_file=i386/sco4dbx.h
1699 tmake_file=i386/t-svr3dbx
1700 extra_parts="svr3.ifile svr3z.rfile"
1703 tmake_file=i386/t-crtstuff
1704 extra_parts="crtbegin.o crtend.o"
1706 tmake_file="$tmake_file i386/t-i386bare"
1707 # The default EAFS filesystem supports long file names.
1708 # Truncating the target makes $host != $target which
1709 # makes gcc think it is doing a cross-compile.
1710 # truncate_target=yes
1713 i[34567]86-*-sco*) # 80386 running SCO system
1715 xm_file=i386/xm-sco.h
1716 xmake_file=i386/x-sco
1717 install_headers_dir=install-headers-cpio
1718 if test x$stabs = xyes
1720 tm_file=i386/scodbx.h
1721 tmake_file=i386/t-svr3dbx
1722 extra_parts="svr3.ifile svr3z.rfile"
1725 extra_parts="crtbegin.o crtend.o"
1726 tmake_file=i386/t-crtstuff
1728 tmake_file="$tmake_file i386/t-i386bare"
1732 i[34567]86-*-solaris2*)
1734 xm_file="xm-alloca.h ${xm_file}"
1735 xm_defines="USG POSIX SMALL_ARG_MAX"
1737 if test x$gas = xyes; then
1738 # Only needed if gas does not support -s
1739 tm_file="i386/sol2gas.h ${tm_file}"
1741 tmake_file="i386/t-i386bare i386/t-sol2"
1742 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1744 if test x${enable_threads} = x; then
1745 enable_threads=$have_pthread_h
1746 if test x${enable_threads} = x; then
1747 enable_threads=$have_thread_h
1750 if test x${enable_threads} = xyes; then
1751 if test x${have_pthread_h} = xyes; then
1754 thread_file='solaris'
1759 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1761 xm_file="xm-alloca.h ${xm_file}"
1762 xm_defines="USG POSIX"
1763 tm_file=i386/sysv5.h
1764 if test x$stabs = xyes
1766 tm_file="${tm_file} dbx.h"
1768 tmake_file="i386/t-i386bare i386/t-crtpic"
1770 extra_parts="crtbegin.o crtend.o"
1771 if test x$enable_threads = xyes; then
1776 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1778 xm_file="xm-alloca.h ${xm_file}"
1779 xm_defines="USG POSIX SMALL_ARG_MAX"
1780 tm_file=i386/sysv4.h
1781 if test x$stabs = xyes
1783 tm_file="${tm_file} dbx.h"
1785 tmake_file="i386/t-i386bare i386/t-crtpic"
1787 extra_parts="crtbegin.o crtend.o"
1790 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1792 xm_file="xm-alloca.h ${xm_file}"
1793 xm_defines="USG POSIX"
1795 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1797 extra_parts="crtbegin.o crtend.o"
1798 install_headers_dir=install-headers-cpio
1801 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1804 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1805 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1806 if test x$stabs = xyes
1808 tm_file=i386/osf1elfgdb.h
1810 tm_file=i386/osf1elf.h
1812 tmake_file=i386/t-osf1elf
1813 xmake_file=i386/x-osf1elf
1814 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1817 i[34567]86-*-sysv*) # Intel 80386's running system V
1819 xm_defines="USG SVR3"
1820 xmake_file=i386/x-sysv3
1821 if test x$gas = xyes
1823 if test x$stabs = xyes
1825 tm_file=i386/svr3dbx.h
1826 tmake_file=i386/t-svr3dbx
1827 extra_parts="svr3.ifile svr3z.rfile"
1829 tm_file=i386/svr3gas.h
1830 extra_parts="crtbegin.o crtend.o"
1831 tmake_file=i386/t-crtstuff
1834 tm_file=i386/sysv3.h
1835 extra_parts="crtbegin.o crtend.o"
1836 tmake_file=i386/t-crtstuff
1838 tmake_file="$tmake_file i386/t-crtpic"
1840 i386-*-vsta) # Intel 80386's running VSTa kernel
1841 xm_file="${xm_file} i386/xm-vsta.h"
1843 tmake_file=i386/t-vsta
1844 xmake_file=i386/x-vsta
1849 xm_file="${xm_file} i386/xm-cygwin.h"
1850 tmake_file=i386/t-cygwin
1851 tm_file=i386/win32.h
1852 xmake_file=i386/x-cygwin
1854 if test x$enable_threads = xyes; then
1860 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1862 xm_file="${xm_file} i386/xm-cygwin.h"
1863 tmake_file=i386/t-cygwin
1864 tm_file=i386/cygwin.h
1865 xmake_file=i386/x-cygwin
1867 if test x$enable_threads = xyes; then
1873 i[34567]86-*-mingw32*)
1875 tm_file=i386/mingw32.h
1876 xm_file="${xm_file} i386/xm-mingw32.h"
1877 tmake_file="i386/t-cygwin i386/t-mingw32"
1879 xmake_file=i386/x-cygwin
1880 if test x$enable_threads = xyes; then
1887 *minwg32crt* | *mingw32*)
1888 tm_file="${tm_file} i386/crtdll.h"
1896 xm_file="${xm_file} i386/xm-uwin.h"
1897 xm_defines="USG NO_STAB_H"
1898 tmake_file="i386/t-cygwin i386/t-uwin"
1900 xmake_file=i386/x-cygwin
1901 if test x$enable_threads = xyes; then
1907 i[34567]86-*-interix*)
1909 tm_file="i386/i386-interix.h interix.h"
1910 xm_file="i386/xm-i386-interix.h xm-interix.h"
1912 tmake_file="i386/t-interix"
1913 extra_objs=interix.o
1914 xmake_file=x-interix
1915 if test x$enable_threads = xyes ; then
1918 if test x$stabs = xyes ; then
1919 tm_file="${tm_file} dbxcoff.h"
1923 i[34567]86-*-winnt3*)
1925 tm_file=i386/win-nt.h
1926 out_file=i386/i386.c
1927 xm_file="xm-winnt.h ${xm_file}"
1928 xmake_file=winnt/x-winnt
1929 tmake_file=i386/t-winnt
1930 extra_host_objs="winnt.o oldnames.o"
1931 extra_gcc_objs="spawnv.o oldnames.o"
1932 if test x$gnu_ld != xyes
1934 extra_programs=ld.exe
1936 if test x$enable_threads = xyes; then
1941 i[34567]86-dg-dgux*)
1943 xm_file="xm-alloca.h ${xm_file}"
1944 xm_defines="USG POSIX"
1945 out_file=i386/dgux.c
1947 tmake_file=i386/t-dgux
1948 xmake_file=i386/x-dgux
1949 install_headers_dir=install-headers-cpio
1951 i860-alliant-*) # Alliant FX/2800
1952 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1953 xm_file="${xm_file}"
1954 xmake_file=i860/x-fx2800
1955 tmake_file=i860/t-fx2800
1956 extra_parts="crtbegin.o crtend.o"
1959 tm_file="${tm_file} i860/bsd.h"
1960 if test x$gas = xyes
1962 tm_file="${tm_file} i860/bsd-gas.h"
1967 tm_file="${tm_file} i860/mach.h"
1968 tmake_file=t-libc-ok
1970 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1971 tm_file="${tm_file} svr3.h i860/paragon.h"
1972 xm_defines="USG SVR3"
1976 tm_file="${tm_file} svr3.h i860/sysv3.h"
1977 xm_defines="USG SVR3"
1978 xmake_file=i860/x-sysv3
1979 extra_parts="crtbegin.o crtend.o"
1982 tm_file="${tm_file} svr4.h i860/sysv4.h"
1983 xm_defines="USG SVR3"
1984 xmake_file=i860/x-sysv4
1986 extra_parts="crtbegin.o crtend.o"
1988 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1989 tm_file="${tm_file} i960/vx960.h"
1990 tmake_file=i960/t-vxworks960
1992 thread_file='vxworks'
1994 i960-wrs-vxworks5* | i960-wrs-vxworks)
1995 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1996 tmake_file=i960/t-vxworks960
1998 thread_file='vxworks'
2001 tm_file="${tm_file} i960/vx960.h"
2002 tmake_file=i960/t-vxworks960
2004 thread_file='vxworks'
2007 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2008 tmake_file=i960/t-960bare
2012 tmake_file="i960/t-960bare t-rtems"
2013 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2016 i960-*-*) # Default i960 environment.
2021 tmake_file="ia64/t-ia64"
2022 target_cpu_default="0"
2023 if test x$gas = xyes
2025 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
2027 if test x$gnu_ld = xyes
2029 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
2033 tm_file=ia64/linux.h
2034 tmake_file="t-linux ia64/t-ia64"
2035 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
2036 if test x$enable_threads = xyes; then
2041 extra_parts="crtinit.o crtfini.o"
2043 m68000-convergent-sysv*)
2045 xm_file="m68k/xm-3b1.h ${xm_file}"
2048 extra_headers=math-68881.h
2050 m68000-hp-bsd*) # HP 9000/200 running BSD
2051 tm_file=m68k/hp2bsd.h
2052 xmake_file=m68k/x-hp2bsd
2054 extra_headers=math-68881.h
2056 m68000-hp-hpux*) # HP 9000 series 300
2057 xm_file="xm-alloca.h ${xm_file}"
2059 if test x$gas = xyes
2061 xmake_file=m68k/x-hp320g
2062 tm_file=m68k/hp310g.h
2064 xmake_file=m68k/x-hp320
2065 tm_file=m68k/hp310.h
2067 install_headers_dir=install-headers-cpio
2069 extra_headers=math-68881.h
2074 extra_headers=math-68881.h
2077 tm_file=m68k/sun2o4.h
2079 extra_headers=math-68881.h
2082 xm_file="m68k/xm-3b1.h ${xm_file}"
2084 if test x$gas = xyes
2091 extra_headers=math-68881.h
2093 m68k-apple-aux*) # Apple Macintosh running A/UX
2094 xm_defines="USG AUX"
2095 tmake_file=m68k/t-aux
2096 install_headers_dir=install-headers-cpio
2097 extra_headers=math-68881.h
2098 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2100 if test "$gnu_ld" = yes
2102 tm_file="${tm_file} m68k/auxgld.h"
2104 tm_file="${tm_file} m68k/auxld.h"
2106 if test "$gas" = yes
2108 tm_file="${tm_file} m68k/auxgas.h"
2110 tm_file="${tm_file} m68k/auxas.h"
2112 tm_file="${tm_file} m68k/a-ux.h"
2116 tm_file=m68k/apollo68.h
2117 xmake_file=m68k/x-apollo68
2119 extra_headers=math-68881.h
2122 m68k-altos-sysv*) # Altos 3068
2123 if test x$gas = xyes
2125 tm_file=m68k/altos3068.h
2128 echo "The Altos is supported only with the GNU assembler" 1>&2
2131 extra_headers=math-68881.h
2133 m68k-bull-sysv*) # Bull DPX/2
2134 if test x$gas = xyes
2136 if test x$stabs = xyes
2138 tm_file=m68k/dpx2cdbx.h
2140 tm_file=m68k/dpx2g.h
2145 xm_file="xm-alloca.h ${xm_file}"
2147 xmake_file=m68k/x-dpx2
2149 extra_headers=math-68881.h
2151 m68k-atari-sysv4*) # Atari variant of V.4.
2152 tm_file=m68k/atari.h
2153 xm_file="xm-alloca.h ${xm_file}"
2154 xm_defines="USG FULL_PROTOTYPES"
2156 extra_parts="crtbegin.o crtend.o"
2157 extra_headers=math-68881.h
2160 m68k-motorola-sysv*)
2161 tm_file=m68k/mot3300.h
2162 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2163 if test x$gas = xyes
2165 xmake_file=m68k/x-mot3300-gas
2166 if test x$gnu_ld = xyes
2168 tmake_file=m68k/t-mot3300-gald
2170 tmake_file=m68k/t-mot3300-gas
2174 xmake_file=m68k/x-mot3300
2175 if test x$gnu_ld = xyes
2177 tmake_file=m68k/t-mot3300-gld
2179 tmake_file=m68k/t-mot3300
2183 gdb_needs_out_file_path=yes
2184 extra_parts="crt0.o mcrt0.o"
2185 extra_headers=math-68881.h
2188 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2189 tm_file=m68k/tower-as.h
2190 xm_defines="USG SVR3"
2191 xmake_file=m68k/x-tower
2192 extra_parts="crtbegin.o crtend.o"
2193 extra_headers=math-68881.h
2196 tm_file=m68k/plexus.h
2197 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2200 extra_headers=math-68881.h
2204 xm_file="xm-alloca.h ${xm_file}"
2206 extra_headers=math-68881.h
2209 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2210 xm_defines="USG unos"
2211 xmake_file=m68k/x-crds
2214 extra_headers=math-68881.h
2216 m68k-cbm-sysv4*) # Commodore variant of V.4.
2218 xm_file="xm-alloca.h ${xm_file}"
2219 xm_defines="USG FULL_PROTOTYPES"
2220 xmake_file=m68k/x-amix
2222 extra_parts="crtbegin.o crtend.o"
2223 extra_headers=math-68881.h
2227 tm_file=m68k/ccur-GAS.h
2228 xmake_file=m68k/x-ccur
2229 extra_headers=math-68881.h
2233 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2234 tm_file=m68k/hp3bsd44.h
2235 xmake_file=m68k/x-hp3bsd44
2237 extra_headers=math-68881.h
2240 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2241 tm_file=m68k/hp3bsd.h
2243 extra_headers=math-68881.h
2247 if test x$with_fp = xno
2249 tm_file=m68k/isi-nfp.h
2255 extra_headers=math-68881.h
2257 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2258 xm_file="xm-alloca.h ${xm_file}"
2260 if test x$gas = xyes
2262 xmake_file=m68k/x-hp320g
2263 tm_file=m68k/hp320g.h
2265 xmake_file=m68k/x-hp320
2266 tm_file=m68k/hpux7.h
2268 install_headers_dir=install-headers-cpio
2270 extra_headers=math-68881.h
2273 m68k-hp-hpux*) # HP 9000 series 300
2274 xm_file="xm-alloca.h ${xm_file}"
2276 if test x$gas = xyes
2278 xmake_file=m68k/x-hp320g
2279 tm_file=m68k/hp320g.h
2281 xmake_file=m68k/x-hp320
2282 tm_file=m68k/hp320.h
2284 install_headers_dir=install-headers-cpio
2286 extra_headers=math-68881.h
2290 tm_file=m68k/sun3mach.h
2292 extra_headers=math-68881.h
2296 if test x$gas = xyes
2298 tm_file=m68k/news3gas.h
2300 tm_file=m68k/news3.h
2303 extra_headers=math-68881.h
2306 m68k-sony-bsd* | m68k-sony-newsos*)
2307 if test x$gas = xyes
2309 tm_file=m68k/newsgas.h
2314 extra_headers=math-68881.h
2317 m68k-next-nextstep2*)
2318 tm_file=m68k/next21.h
2319 xm_file="m68k/xm-next.h ${xm_file}"
2320 tmake_file=m68k/t-next
2321 xmake_file=m68k/x-next
2322 extra_objs=nextstep.o
2323 extra_headers=math-68881.h
2328 m68k-next-nextstep[34]*)
2331 xm_file="m68k/xm-next.h ${xm_file}"
2332 tmake_file=m68k/t-next
2333 xmake_file=m68k/x-next
2334 extra_objs=nextstep.o
2335 extra_parts="crtbegin.o crtend.o"
2336 extra_headers=math-68881.h
2338 if test x$enable_threads = xyes; then
2343 if test x$with_fp = xno
2345 tm_file=m68k/sun3n3.h
2347 tm_file=m68k/sun3o3.h
2351 extra_headers=math-68881.h
2353 m68k-sun-sunos*) # For SunOS 4 (the default).
2354 if test x$with_fp = xno
2356 tm_file=m68k/sun3n.h
2362 extra_headers=math-68881.h
2365 tm_file=m68k/vxm68k.h
2366 tmake_file=m68k/t-vxworks68
2367 extra_headers=math-68881.h
2368 thread_file='vxworks'
2372 tmake_file=m68k/t-m68kbare
2373 tm_file="m68k/m68k-aout.h libgloss.h"
2374 extra_headers=math-68881.h
2378 tmake_file=m68k/t-m68kbare
2379 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2380 extra_headers=math-68881.h
2383 m68020-*-elf* | m68k-*-elf*)
2384 tm_file="m68k/m68020-elf.h"
2385 xm_file=m68k/xm-m68kv.h
2386 tmake_file=m68k/t-m68kelf
2387 header_files=math-68881.h
2390 if test x$gas = xyes
2394 tm_file=m68k/lynx-ng.h
2396 xm_file=m68k/xm-lynx.h
2398 tmake_file=m68k/t-lynx
2399 extra_headers=math-68881.h
2403 tm_file=m68k/netbsd.h
2410 # we need collect2 until our bug is fixed...
2413 m68k-*-sysv3*) # Motorola m68k's running system V.3
2414 xm_file="xm-alloca.h ${xm_file}"
2416 xmake_file=m68k/x-m68kv
2417 extra_parts="crtbegin.o crtend.o"
2418 extra_headers=math-68881.h
2421 m68k-*-sysv4*) # Motorola m68k's running system V.4
2422 tm_file=m68k/m68kv4.h
2423 xm_file="xm-alloca.h ${xm_file}"
2426 extra_parts="crtbegin.o crtend.o"
2427 extra_headers=math-68881.h
2430 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
2433 tm_file=m68k/linux-aout.h
2434 tmake_file="t-linux-aout m68k/t-linux-aout"
2435 extra_headers=math-68881.h
2439 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2440 # with ELF format using the
2441 # GNU/Linux C library 5
2443 tm_file=m68k/linux.h
2444 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2445 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2446 extra_headers=math-68881.h
2450 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2451 # with ELF format using glibc 2
2452 # aka the GNU/Linux C library 6.
2454 tm_file=m68k/linux.h
2455 tmake_file="t-linux m68k/t-linux"
2456 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2457 extra_headers=math-68881.h
2460 if test x$enable_threads = xyes; then
2465 tmake_file=m68k/t-m68kbare
2466 tm_file=m68k/m68k-psos.h
2467 extra_headers=math-68881.h
2471 tmake_file="m68k/t-m68kbare t-rtems"
2472 tm_file=m68k/rtems.h
2473 extra_headers=math-68881.h
2476 m68k-*-rtemself*|m68k-*-rtems*)
2477 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2478 tm_file=m68k/rtemself.h
2479 extra_headers=math-68881.h
2485 tm_file=m88k/dguxbcs.h
2486 tmake_file=m88k/t-dguxbcs
2490 tmake_file=m88k/t-dgux
2493 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2494 xmake_file=m88k/x-dgux
2495 if test x$gas = xyes
2497 tmake_file=m88k/t-dgux-gas
2500 m88k-dolphin-sysv3*)
2501 tm_file=m88k/dolph.h
2502 extra_parts="crtbegin.o crtend.o"
2503 xm_file="m88k/xm-sysv3.h ${xm_file}"
2504 xmake_file=m88k/x-dolph
2505 if test x$gas = xyes
2507 tmake_file=m88k/t-m88k-gas
2510 m88k-tektronix-sysv3)
2511 tm_file=m88k/tekXD88.h
2512 extra_parts="crtbegin.o crtend.o"
2513 xm_file="m88k/xm-sysv3.h ${xm_file}"
2514 xmake_file=m88k/x-tekXD88
2515 if test x$gas = xyes
2517 tmake_file=m88k/t-m88k-gas
2521 tm_file=m88k/m88k-aout.h
2524 tm_file=m88k/m88k-coff.h
2525 tmake_file=m88k/t-bug
2529 extra_parts="crtbegin.o crtend.o"
2530 if test x$gas = xyes
2532 tmake_file=m88k/t-luna-gas
2534 tmake_file=m88k/t-luna
2538 tmake_file="${tmake_file} m88k/t-luna-gas"
2539 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2540 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2543 tm_file=m88k/sysv3.h
2544 extra_parts="crtbegin.o crtend.o"
2545 xm_file="m88k/xm-sysv3.h ${xm_file}"
2546 xmake_file=m88k/x-sysv3
2547 if test x$gas = xyes
2549 tmake_file=m88k/t-m88k-gas
2553 tm_file=m88k/sysv4.h
2554 extra_parts="crtbegin.o crtend.o"
2555 xmake_file=m88k/x-sysv4
2556 tmake_file=m88k/t-sysv4
2559 tm_file=mcore/mcore-elf.h
2560 tmake_file=mcore/t-mcore
2563 tm_file=mcore/mcore-pe.h
2564 tmake_file=mcore/t-mcore-pe
2566 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2567 if test "x$gnu_ld" = xyes
2569 tm_file="mips/iris6.h mips/iris6gld.h"
2571 tm_file=mips/iris6.h
2573 tmake_file=mips/t-iris6
2574 xm_file=mips/xm-iris6.h
2575 xmake_file=mips/x-iris6
2576 # if test x$enable_threads = xyes; then
2577 # thread_file='irix'
2581 tm_file="mips/elf.h mips/vxworks.h"
2582 tmake_file=mips/t-ecoff
2585 extra_parts="crtbegin.o crtend.o"
2586 thread_file='vxworks'
2588 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2589 tm_file="mips/iris6.h mips/cross64.h"
2591 xm_file="mips/xm-iris5.h"
2592 xmake_file=mips/x-iris
2593 tmake_file=mips/t-cross64
2594 # See comment in mips/iris[56].h files.
2596 # if test x$enable_threads = xyes; then
2597 # thread_file='irix'
2601 if test x$gas = xyes
2603 if test x$stabs = xyes
2605 tm_file=mips/iris5gdb.h
2607 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2610 tm_file=mips/sni-svr4.h
2613 xmake_file=mips/x-sni-svr4
2614 tmake_file=mips/t-mips-gas
2615 if test x$gnu_ld != xyes
2620 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2621 if test x$gas = xyes
2623 tm_file="mips/iris5.h mips/iris5gas.h"
2624 if test x$stabs = xyes
2626 tm_file="${tm_file} dbx.h"
2629 tm_file=mips/iris5.h
2632 xm_file="mips/xm-iris5.h"
2633 xmake_file=mips/x-iris
2634 # mips-tfile doesn't work yet
2635 tmake_file=mips/t-mips-gas
2636 # See comment in mips/iris5.h file.
2638 # if test x$enable_threads = xyes; then
2639 # thread_file='irix'
2642 mips-sgi-irix4loser*) # Mostly like a MIPS.
2643 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2644 if test x$stabs = xyes; then
2645 tm_file="${tm_file} dbx.h"
2648 xmake_file=mips/x-iris
2649 if test x$gas = xyes
2651 tmake_file=mips/t-mips-gas
2653 extra_passes="mips-tfile mips-tdump"
2655 if test x$gnu_ld != xyes
2659 # if test x$enable_threads = xyes; then
2660 # thread_file='irix'
2663 mips-sgi-irix4*) # Mostly like a MIPS.
2664 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2665 if test x$stabs = xyes; then
2666 tm_file="${tm_file} dbx.h"
2669 xmake_file=mips/x-iris
2670 if test x$gas = xyes
2672 tmake_file=mips/t-mips-gas
2674 extra_passes="mips-tfile mips-tdump"
2676 if test x$gnu_ld != xyes
2680 # if test x$enable_threads = xyes; then
2681 # thread_file='irix'
2684 mips-sgi-*) # Mostly like a MIPS.
2685 tm_file="mips/iris3.h ${tm_file}"
2686 if test x$stabs = xyes; then
2687 tm_file="${tm_file} dbx.h"
2690 xmake_file=mips/x-iris3
2691 if test x$gas = xyes
2693 tmake_file=mips/t-mips-gas
2695 extra_passes="mips-tfile mips-tdump"
2697 if test x$gnu_ld != xyes
2702 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2703 tm_file="mips/osfrose.h ${tm_file}"
2704 xmake_file=mips/x-osfrose
2705 tmake_file=mips/t-osfrose
2706 extra_objs=halfpic.o
2709 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2710 tm_file=mips/dec-osf1.h
2711 if test x$stabs = xyes; then
2712 tm_file="${tm_file} dbx.h"
2714 xmake_file=mips/x-dec-osf1
2715 if test x$gas = xyes
2717 tmake_file=mips/t-mips-gas
2719 tmake_file=mips/t-ultrix
2720 extra_passes="mips-tfile mips-tdump"
2722 if test x$gnu_ld != xyes
2727 mips-dec-bsd*) # Decstation running 4.4 BSD
2728 tm_file=mips/dec-bsd.h
2729 if test x$gas = xyes
2731 tmake_file=mips/t-mips-gas
2733 tmake_file=mips/t-ultrix
2734 extra_passes="mips-tfile mips-tdump"
2736 if test x$gnu_ld != xyes
2741 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2742 tm_file=mips/netbsd.h
2743 # On NetBSD, the headers are already okay, except for math.h.
2746 mips*-*-linux*) # Linux MIPS, either endian.
2749 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2750 *) tm_file="mips/elf.h mips/linux.h" ;;
2752 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2755 if test x$enable_threads = xyes; then
2759 mips*el-*-openbsd*) # mips little endian
2760 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2762 mips*-*-openbsd*) # mips big endian
2763 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2764 tm_file="mips/openbsd-be.h ${tm_file}"
2766 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2767 tm_file="mips/news4.h ${tm_file}"
2768 if test x$stabs = xyes; then
2769 tm_file="${tm_file} dbx.h"
2771 if test x$gas = xyes
2773 tmake_file=mips/t-mips-gas
2775 extra_passes="mips-tfile mips-tdump"
2777 if test x$gnu_ld != xyes
2781 xmake_file=mips/x-sony
2783 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2784 # That is based on svr4.
2785 # t-svr4 is not right because this system doesn't use ELF.
2786 tm_file="mips/news5.h ${tm_file}"
2787 if test x$stabs = xyes; then
2788 tm_file="${tm_file} dbx.h"
2791 if test x$gas = xyes
2793 tmake_file=mips/t-mips-gas
2795 extra_passes="mips-tfile mips-tdump"
2797 if test x$gnu_ld != xyes
2802 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2803 tm_file="mips/svr4-5.h mips/svr4-t.h"
2804 if test x$stabs = xyes; then
2805 tm_file="${tm_file} dbx.h"
2808 xmake_file=mips/x-sysv
2809 if test x$gas = xyes
2811 tmake_file=mips/t-mips-gas
2812 extra_parts="crtbegin.o crtend.o"
2814 tmake_file=mips/t-mips
2815 extra_passes="mips-tfile mips-tdump"
2817 if test x$gnu_ld != xyes
2822 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2823 tm_file="mips/ultrix.h ${tm_file}"
2824 if test x$stabs = xyes; then
2825 tm_file="${tm_file} dbx.h"
2827 xmake_file=mips/x-ultrix
2828 if test x$gas = xyes
2830 tmake_file=mips/t-mips-gas
2832 tmake_file=mips/t-ultrix
2833 extra_passes="mips-tfile mips-tdump"
2835 if test x$gnu_ld != xyes
2841 mips-*-riscos[56789]bsd*)
2843 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2844 if test x$stabs = xyes; then
2845 tm_file="${tm_file} dbx.h"
2847 if test x$gas = xyes
2849 tmake_file=mips/t-bsd-gas
2851 tmake_file=mips/t-bsd
2852 extra_passes="mips-tfile mips-tdump"
2854 if test x$gnu_ld != xyes
2860 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2862 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2863 if test x$stabs = xyes; then
2864 tm_file="${tm_file} dbx.h"
2866 if test x$gas = xyes
2868 tmake_file=mips/t-bsd-gas
2870 tmake_file=mips/t-bsd
2871 extra_passes="mips-tfile mips-tdump"
2873 if test x$gnu_ld != xyes
2879 mips-*-riscos[56789]sysv4*)
2881 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2882 if test x$stabs = xyes; then
2883 tm_file="${tm_file} dbx.h"
2885 xmake_file=mips/x-sysv
2886 if test x$gas = xyes
2888 tmake_file=mips/t-svr4-gas
2890 tmake_file=mips/t-svr4
2891 extra_passes="mips-tfile mips-tdump"
2893 if test x$gnu_ld != xyes
2899 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2901 tm_file="mips/svr4-4.h ${tm_file}"
2902 if test x$stabs = xyes; then
2903 tm_file="${tm_file} dbx.h"
2906 xmake_file=mips/x-sysv
2907 if test x$gas = xyes
2909 tmake_file=mips/t-svr4-gas
2911 tmake_file=mips/t-svr4
2912 extra_passes="mips-tfile mips-tdump"
2914 if test x$gnu_ld != xyes
2920 mips-*-riscos[56789]sysv*)
2922 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2923 if test x$stabs = xyes; then
2924 tm_file="${tm_file} dbx.h"
2927 xmake_file=mips/x-sysv
2928 if test x$gas = xyes
2930 tmake_file=mips/t-svr3-gas
2932 tmake_file=mips/t-svr3
2933 extra_passes="mips-tfile mips-tdump"
2935 if test x$gnu_ld != xyes
2940 mips-*-sysv* | mips-*-riscos*sysv*)
2941 tm_file="mips/svr3-4.h ${tm_file}"
2942 if test x$stabs = xyes; then
2943 tm_file="${tm_file} dbx.h"
2946 xmake_file=mips/x-sysv
2947 if test x$gas = xyes
2949 tmake_file=mips/t-svr3-gas
2951 tmake_file=mips/t-svr3
2952 extra_passes="mips-tfile mips-tdump"
2954 if test x$gnu_ld != xyes
2960 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2962 tm_file=mips/mips-5.h
2963 if test x$stabs = xyes; then
2964 tm_file="${tm_file} dbx.h"
2966 if test x$gas = xyes
2968 tmake_file=mips/t-mips-gas
2970 extra_passes="mips-tfile mips-tdump"
2972 if test x$gnu_ld != xyes
2980 tm_file=mips/ecoffl.h
2981 if test x$stabs = xyes; then
2982 tm_file="${tm_file} dbx.h"
2984 tmake_file=mips/t-ecoff
2987 tm_file="gofast.h mips/ecoff.h"
2988 if test x$stabs = xyes; then
2989 tm_file="${tm_file} dbx.h"
2991 tmake_file=mips/t-ecoff
2994 tm_file="mips/elfl.h"
2995 tmake_file=mips/t-elf
2998 tm_file="mips/elf.h"
2999 tmake_file=mips/t-elf
3002 tm_file="mips/elfl64.h"
3003 tmake_file=mips/t-elf
3005 mips64orionel-*-elf*)
3006 tm_file="mips/elforion.h mips/elfl64.h"
3007 tmake_file=mips/t-elf
3010 tm_file="mips/elf64.h"
3011 tmake_file=mips/t-elf
3014 tm_file="mips/elforion.h mips/elf64.h"
3015 tmake_file=mips/t-elf
3017 mips64orion-*-rtems*)
3018 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
3019 tmake_file="mips/t-elf t-rtems"
3022 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
3023 tmake_file=mips/t-r3900
3026 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
3027 tmake_file=mips/t-r3900
3029 mips-*-*) # Default MIPS RISC-OS 4.0.
3030 if test x$stabs = xyes; then
3031 tm_file="${tm_file} dbx.h"
3033 if test x$gas = xyes
3035 tmake_file=mips/t-mips-gas
3037 extra_passes="mips-tfile mips-tdump"
3039 if test x$gnu_ld != xyes
3047 tm_file="mn10200/mn10200.h"
3048 if test x$stabs = xyes
3050 tm_file="${tm_file} dbx.h"
3056 tm_file="mn10300/mn10300.h"
3057 if test x$stabs = xyes
3059 tm_file="${tm_file} dbx.h"
3064 tm_file=ns32k/encore.h
3068 tm_file=ns32k/sequent.h
3072 tm_file=ns32k/tek6100.h
3076 tm_file=ns32k/tek6200.h
3079 # This has not been updated to GCC 2.
3082 # xmake_file=ns32k/x-genix
3083 # tm_file=ns32k/genix.h
3087 tm_file=ns32k/merlin.h
3091 tm_file=ns32k/pc532-mach.h
3095 tm_file=ns32k/pc532-min.h
3096 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3101 tm_file=ns32k/netbsd.h
3102 xm_file="ns32k/xm-netbsd.h ${xm_file}"
3103 # On NetBSD, the headers are already okay, except for math.h.
3108 tm_file="${tm_file} pdp11/2bsd.h"
3117 # This has not been updated to GCC 2.
3120 # xmake_file=pyr/x-pyr
3125 tm_file="svr4.h pj/linux.h ${tm_file}"
3130 tm_file="svr4.h pj/pjl.h ${tm_file}"
3137 xmake_file=romp/x-mach
3144 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3148 tm_file=rs6000/beos.h
3149 xm_file=rs6000/xm-beos.h
3150 tmake_file=rs6000/t-beos
3151 xmake_file=rs6000/x-beos
3154 tm_file=rs6000/sysv4.h
3155 xm_file="rs6000/xm-sysv4.h"
3156 xm_defines="USG POSIX"
3157 extra_headers=ppc-asm.h
3158 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3159 xmake_file=rs6000/x-sysv4
3162 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3163 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3164 extra_headers=ppc-asm.h
3167 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3168 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3169 extra_headers=ppc-asm.h
3172 tm_file="rs6000/sysv4.h"
3173 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3174 extra_headers=ppc-asm.h
3177 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3178 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3179 extra_headers=ppc-asm.h
3182 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3183 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3184 extra_headers=ppc-asm.h
3186 powerpc-*-linux-gnulibc1)
3187 tm_file="rs6000/sysv4.h rs6000/linux.h"
3188 xm_file=rs6000/xm-sysv4.h
3189 out_file=rs6000/rs6000.c
3190 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3192 extra_headers=ppc-asm.h
3193 if test x$enable_threads = xyes; then
3197 powerpc-*-linux-gnu*)
3198 tm_file="rs6000/sysv4.h rs6000/linux.h"
3199 xm_file="rs6000/xm-sysv4.h"
3200 xm_defines="USG ${xm_defines}"
3201 out_file=rs6000/rs6000.c
3202 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3204 extra_headers=ppc-asm.h
3205 if test x$enable_threads = xyes; then
3209 powerpc-wrs-vxworks*)
3211 xm_file="rs6000/xm-sysv4.h"
3212 xm_defines="USG POSIX"
3213 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3214 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3215 extra_headers=ppc-asm.h
3216 thread_file='vxworks'
3218 powerpcle-wrs-vxworks*)
3220 xm_file="rs6000/xm-sysv4.h"
3221 xm_defines="USG POSIX"
3222 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3223 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3224 extra_headers=ppc-asm.h
3225 thread_file='vxworks'
3228 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3229 xm_file="rs6000/xm-sysv4.h"
3230 xm_defines="USG POSIX"
3231 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3232 xmake_file=rs6000/x-sysv4
3233 extra_headers=ppc-asm.h
3236 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3237 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3238 extra_headers=ppc-asm.h
3240 powerpcle-*-eabisim*)
3241 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3242 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3243 extra_headers=ppc-asm.h
3246 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3247 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3248 extra_headers=ppc-asm.h
3250 powerpcle-*-solaris2*)
3251 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3252 xm_file="rs6000/xm-sysv4.h"
3253 xm_defines="USG POSIX"
3254 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3255 xmake_file=rs6000/x-sysv4
3256 extra_headers=ppc-asm.h
3259 rs6000-ibm-aix3.[01]*)
3261 tm_file=rs6000/aix31.h
3262 xmake_file=rs6000/x-aix31
3267 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3269 tm_file=rs6000/aix3newas.h
3270 if test x$host != x$target
3272 tmake_file=rs6000/t-xnewas
3274 tmake_file=rs6000/t-newas
3280 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3282 tm_file=rs6000/aix41.h
3283 if test x$host != x$target
3285 tmake_file=rs6000/t-xnewas
3287 tmake_file=rs6000/t-newas
3289 if test "$gnu_ld" = yes
3291 xmake_file=rs6000/x-aix41-gld
3293 tmake_file="rs6000/t-newas rs6000/t-aix41"
3295 xmake_file=rs6000/x-aix41
3300 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3302 tm_file=rs6000/aix43.h
3303 tmake_file=rs6000/t-aix43
3304 xmake_file=rs6000/x-aix41
3309 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3311 tm_file=rs6000/aix43.h
3312 tmake_file=rs6000/t-aix43
3313 xmake_file=rs6000/x-aix41
3326 tm_file=rs6000/mach.h
3327 xm_file="${xm_file} rs6000/xm-mach.h"
3328 xmake_file=rs6000/x-mach
3332 tm_file=rs6000/lynx.h
3333 xm_file=rs6000/xm-lynx.h
3334 tmake_file=rs6000/t-rs6000
3335 xmake_file=rs6000/x-lynx
3343 tmake_file="sh/t-sh t-rtems"
3344 tm_file=sh/rtemself.h
3348 tmake_file="sh/t-sh t-rtems"
3357 xm_file="xm-alloca.h ${xm_file}"
3360 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3361 tm_file=sparc/vxsparc.h
3362 tmake_file=sparc/t-vxsparc
3364 thread_file='vxworks'
3367 tmake_file=sparc/t-sparcbare
3368 tm_file="sparc/aout.h libgloss.h"
3371 tm_file=sparc/netbsd.h
3376 # we need collect2 until our bug is fixed...
3384 tmake_file=sparc/t-elf
3385 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3389 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
3390 xm_file="${xm_file} sparc/xm-linux.h"
3391 tm_file=sparc/linux-aout.h
3395 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
3396 xm_file="${xm_file} sparc/xm-linux.h"
3398 tm_file=sparc/linux.h
3399 tmake_file="t-linux t-linux-gnulibc1"
3400 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3404 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
3405 xm_file="${xm_file} sparc/xm-linux.h"
3407 tm_file=sparc/linux.h
3408 tmake_file="t-linux"
3409 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3411 if test x$enable_threads = xyes; then
3417 if test x$gas = xyes
3419 tm_file=sparc/lynx.h
3421 tm_file=sparc/lynx-ng.h
3423 xm_file=sparc/xm-lynx.h
3424 tmake_file=sparc/t-sunos41
3428 tmake_file="sparc/t-sparcbare t-rtems"
3429 tm_file=sparc/rtems.h
3431 sparc-*-rtems*|sparc-*-rtemself*)
3432 tm_file="sparc/rtemself.h"
3433 tmake_file="sparc/t-elf t-rtems"
3434 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3438 sparcv9-*-solaris2*)
3439 if test x$gnu_ld = xyes
3441 tm_file=sparc/sol2-64.h
3443 tm_file=sparc/sol2-sld-64.h
3445 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3446 xm_defines="USG POSIX"
3447 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3448 xmake_file=sparc/x-sysv4
3449 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3451 if test x${enable_threads} = x ; then
3452 enable_threads=$have_pthread_h
3453 if test x${enable_threads} = x ; then
3454 enable_threads=$have_thread_h
3457 if test x${enable_threads} = xyes ; then
3458 if test x${have_pthread_h} = xyes ; then
3461 thread_file='solaris'
3465 sparc-hal-solaris2*)
3466 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3467 xm_defines="USG POSIX"
3468 tm_file="sparc/sol2.h sparc/hal.h"
3469 tmake_file="sparc/t-halos sparc/t-sol2"
3470 xmake_file=sparc/x-sysv4
3471 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3482 thread_file='solaris'
3485 if test x$gnu_ld = xyes
3487 tm_file=sparc/sol2.h
3489 tm_file=sparc/sol2-sld.h
3491 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3492 xm_defines="USG POSIX"
3493 tmake_file=sparc/t-sol2
3494 xmake_file=sparc/x-sysv4
3495 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3498 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3501 if test x$gnu_ld = xyes
3503 tm_file=sparc/sol2-64.h
3505 tm_file=sparc/sol2-sld-64.h
3507 tmake_file="$tmake_file sparc/t-sol2-64"
3520 if test x${enable_threads} = x; then
3521 enable_threads=$have_pthread_h
3522 if test x${enable_threads} = x; then
3523 enable_threads=$have_thread_h
3526 if test x${enable_threads} = xyes; then
3527 if test x${have_pthread_h} = xyes; then
3530 thread_file='solaris'
3535 tm_file=sparc/sunos4.h
3536 tmake_file=sparc/t-sunos40
3540 tm_file=sparc/sunos4.h
3541 tmake_file=sparc/t-sunos41
3543 if test x$gas = xyes; then
3544 tm_file="${tm_file} sparc/sun4gas.h"
3548 tm_file=sparc/sun4o3.h
3552 tm_file=sparc/sysv4.h
3553 xm_file="sparc/xm-sysv4.h"
3554 xm_defines="USG POSIX"
3556 xmake_file=sparc/x-sysv4
3557 extra_parts="crtbegin.o crtend.o"
3560 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3561 xm_defines="USG POSIX"
3562 tm_file=sparc/vxsim.h
3563 tmake_file=sparc/t-vxsparc
3564 xmake_file=sparc/x-sysv4
3567 tm_file="sparc/splet.h libgloss.h"
3568 tmake_file=sparc/t-splet
3571 tm_file="sparc/litecoff.h libgloss.h"
3572 tmake_file=sparc/t-sparclite
3575 tm_file="sparc/lite.h aoutos.h libgloss.h"
3576 tmake_file=sparc/t-sparclite
3579 tm_file="sparc/liteelf.h"
3580 tmake_file=sparc/t-sparclite
3581 extra_parts="crtbegin.o crtend.o"
3584 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3585 tmake_file=sparc/t-sp86x
3588 tm_file="sparc/sp86x-elf.h"
3589 tmake_file=sparc/t-sp86x
3590 extra_parts="crtbegin.o crtend.o"
3593 tmake_file=sparc/t-sp64
3594 tm_file=sparc/sp64-aout.h
3597 tmake_file=sparc/t-sp64
3598 tm_file=sparc/sp64-elf.h
3599 extra_parts="crtbegin.o crtend.o"
3601 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3602 tmake_file="t-linux sparc/t-linux64"
3603 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3604 tm_file=sparc/linux64.h
3606 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3608 if test x$enable_threads = xyes; then
3613 # This hasn't been upgraded to GCC 2.
3614 # tahoe-harris-*) # Harris tahoe, using COFF.
3615 # tm_file=tahoe/harris.h
3617 # tahoe-*-bsd*) # tahoe running BSD
3622 *** The Thumb targets have been depreciated. The equivalent
3623 *** ARM based toolchain can now generated Thumb instructions
3624 *** when the -mthumb switch is given to the compiler.])
3626 # This hasn't been upgraded to GCC 2.
3633 tm_file="v850/rtems.h"
3634 xm_file="v850/xm-v850.h"
3635 tmake_file="v850/t-v850 t-rtems"
3636 if test x$stabs = xyes
3638 tm_file="${tm_file} dbx.h"
3643 target_cpu_default="TARGET_CPU_generic"
3645 tm_file="v850/v850.h"
3646 xm_file="v850/xm-v850.h"
3647 tmake_file=v850/t-v850
3648 if test x$stabs = xyes
3650 tm_file="${tm_file} dbx.h"
3654 vax-*-bsd*) # vaxen running BSD
3658 vax-*-sysv*) # vaxen running system V
3659 tm_file="${tm_file} vax/vaxv.h"
3664 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3670 tmake_file="${tmake_file} vax/t-openbsd"
3671 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3672 xm_file="xm-openbsd.h vax/xm-vax.h"
3676 vax-*-ultrix*) # vaxen running ultrix
3677 tm_file="${tm_file} vax/ultrix.h"
3681 vax-*-vms*) # vaxen running VMS
3682 xm_file=vax/xm-vms.h
3686 vax-*-*) # vax default entry
3690 xm_file="${xm_file} xm-svr3"
3694 echo "Configuration $machine not supported" 1>&2
3701 ;; # Existing GNU/Linux systems do not use the GNU setup.
3703 # On the GNU system, the setup is just about the same on
3704 # each different CPU. The specific machines that GNU
3705 # supports are matched above and just set $cpu_type.
3706 xm_file="xm-gnu.h ${xm_file}"
3707 tm_file=${cpu_type}/gnu.h
3708 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3709 # GNU always uses ELF.
3711 # GNU tools are the only tools.
3714 xmake_file=x-linux # These details are the same as Linux.
3715 tmake_file=t-gnu # These are not.
3718 xmake_try_sysv=x-sysv
3719 install_headers_dir=install-headers-cpio
3722 install_headers_dir=install-headers-cpio
3726 # Distinguish i[34567]86
3727 # Also, do not run mips-tfile on MIPS if using gas.
3728 # Process --with-cpu= for PowerPC/rs6000
3729 target_cpu_default2=
3732 target_cpu_default2=1
3735 case $target_alias in
3737 target_cpu_default2=4
3740 target_cpu_default2=2
3744 i686-*-* | i786-*-*)
3745 target_cpu_default2=3
3752 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3755 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3758 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3761 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3764 target_cpu_default2="MASK_CPU_EV5"
3768 if test x$gas = xyes
3770 if test "$target_cpu_default2" = ""
3772 target_cpu_default2="MASK_GAS"
3774 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3779 case "x$with_cpu" in
3782 target_cpu_default2="TARGET_CPU_generic"
3785 # Distinguish cores, and major variants
3786 # arm7m doesn't exist, but D & I don't affect code
3788 xarm[23678] | xarm250 | xarm[67][01]0 \
3789 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3790 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3791 | xstrongarm | xstrongarm110 | xstrongarm1100)
3793 target_cpu_default2="TARGET_CPU_$with_cpu"
3797 echo "--with-cpu must be passed a value" 1>&2
3802 if test x$pass2done = xyes
3804 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3811 mips*-*-ecoff* | mips*-*-elf*)
3812 if test x$gas = xyes
3814 if test x$gnu_ld = xyes
3816 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3818 target_cpu_default2="MASK_GAS"
3823 if test x$gas = xyes
3825 target_cpu_default2="MASK_GAS"
3828 powerpc*-*-* | rs6000-*-*)
3829 case "x$with_cpu" in
3833 xcommon | xpower | xpower2 | xpowerpc | xrios \
3834 | xrios1 | xrios2 | xrsc | xrsc1 \
3835 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3836 | xec603e | x740 | x750 | x401 \
3837 | x403 | x505 | x801 | x821 | x823 | x860)
3838 target_cpu_default2="\"$with_cpu\""
3842 echo "--with-cpu must be passed a value" 1>&2
3847 if test x$pass2done = xyes
3849 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3856 case ".$with_cpu" in
3858 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3860 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3861 target_cpu_default2="TARGET_CPU_$with_cpu"
3864 if test x$pass2done = xyes
3866 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3874 if test "$target_cpu_default2" != ""
3876 if test "$target_cpu_default" != ""
3878 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3880 target_cpu_default=$target_cpu_default2
3884 # No need for collect2 if we have the GNU linker.
3885 # Actually, there is now; GNU ld doesn't handle the EH info or
3886 # collecting for shared libraries.
3893 # Save data on machine being used to compile GCC in build_xm_file.
3894 # Save data on host machine in vars host_xm_file and host_xmake_file.
3895 if test x$pass1done = x
3897 if test x"$xm_file" = x
3898 then build_xm_file=$cpu_type/xm-$cpu_type.h
3899 else build_xm_file=$xm_file
3901 build_xm_defines=$xm_defines
3902 build_install_headers_dir=$install_headers_dir
3903 build_exeext=$exeext
3906 if test x$pass2done = x
3908 if test x"$xm_file" = x
3909 then host_xm_file=$cpu_type/xm-$cpu_type.h
3910 else host_xm_file=$xm_file
3912 host_xm_defines=$xm_defines
3913 if test x"$xmake_file" = x
3914 then xmake_file=$cpu_type/x-$cpu_type
3916 host_xmake_file="$xmake_file"
3917 host_truncate_target=$truncate_target
3918 host_extra_gcc_objs=$extra_gcc_objs
3919 host_extra_objs=$extra_host_objs
3926 extra_objs="${host_extra_objs} ${extra_objs}"
3928 # Default the target-machine variables that were not explicitly set.
3929 if test x"$tm_file" = x
3930 then tm_file=$cpu_type/$cpu_type.h; fi
3932 if test x$extra_headers = x
3933 then extra_headers=; fi
3935 if test x"$xm_file" = x
3936 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3938 if test x$md_file = x
3939 then md_file=$cpu_type/$cpu_type.md; fi
3941 if test x$out_file = x
3942 then out_file=$cpu_type/$cpu_type.c; fi
3944 if test x"$tmake_file" = x
3945 then tmake_file=$cpu_type/t-$cpu_type
3948 if test x"$dwarf2" = xyes
3949 then tm_file="$tm_file tm-dwarf2.h"
3952 if test x$float_format = x
3953 then float_format=i64
3956 if test $float_format = none
3957 then float_h_file=Makefile.in
3958 else float_h_file=float-$float_format.h
3961 # Handle cpp installation.
3962 if test x$enable_cpp != xno
3964 tmake_file="$tmake_file t-install-cpp"
3967 # Say what files are being used for the output code and MD file.
3968 echo "Using \`$srcdir/config/$out_file' to output insns."
3969 echo "Using \`$srcdir/config/$md_file' as machine description file."
3972 for f in $tm_file; do
3975 if test $count = ax; then
3976 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3978 echo "Using the following target machine macro files:"
3979 for f in $tm_file; do
3980 echo " $srcdir/config/$f"
3985 for f in $host_xm_file; do
3988 if test $count = ax; then
3989 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3991 echo "Using the following host machine macro files:"
3992 for f in $host_xm_file; do
3993 echo " $srcdir/config/$f"
3997 if test "$host_xm_file" != "$build_xm_file"; then
3999 for f in $build_xm_file; do
4002 if test $count = ax; then
4003 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4005 echo "Using the following build machine macro files:"
4006 for f in $build_xm_file; do
4007 echo " $srcdir/config/$f"
4012 if test x$thread_file = x; then
4013 if test x$target_thread_file != x; then
4014 thread_file=$target_thread_file
4016 thread_file='single'
4020 # Set up the header files.
4021 # $links is the list of header files to create.
4022 # $vars is the list of shell variables with file names to include.
4023 # auto-host.h is the file containing items generated by autoconf and is
4024 # the first file included by config.h.
4026 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
4028 # If host=build, it is correct to have hconfig include auto-host.h
4029 # as well. If host!=build, we are in error and need to do more
4030 # work to find out the build config parameters.
4031 if test x$host = x$build
4033 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
4035 # We create a subdir, then run autoconf in the subdir.
4036 # To prevent recursion we set host and build for the new
4037 # invocation of configure to the build for this invocation
4044 /*) realsrcdir=${srcdir};;
4045 *) realsrcdir=../${srcdir};;
4047 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4048 --target=$target --host=$build --build=$build
4050 # We just finished tests for the build machine, so rename
4051 # the file auto-build.h in the gcc directory.
4052 mv auto-host.h ../auto-build.h
4055 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4058 xm_file="gansidecl.h ${xm_file}"
4059 tm_file="gansidecl.h ${tm_file}"
4061 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4062 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4063 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4066 if test -f config.status; then mv -f config.status config.bak; fi
4069 while test -n "$vars"
4071 set $vars; var=$1; shift; vars=$*
4072 set $links; link=$1; shift; links=$*
4073 set $defines; define=$1; shift; defines=$*
4076 # Make sure the file is created, even if it is empty.
4079 # Define TARGET_CPU_DEFAULT if the system wants one.
4080 # This substitutes for lots of *.h files.
4081 if test "$target_cpu_default" != "" -a $link = tm.h
4083 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4086 for file in `eval echo '$'$var`; do
4088 auto-host.h | auto-build.h )
4091 echo '#ifdef IN_GCC' >>$link
4094 echo "#include \"$file\"" >>$link
4096 auto-host.h | auto-build.h )
4099 echo '#endif' >>$link
4104 for def in `eval echo '$'$define`; do
4105 echo "#ifndef $def" >>$link
4106 echo "#define $def" >>$link
4107 echo "#endif" >>$link
4111 # Truncate the target if necessary
4112 if test x$host_truncate_target != x; then
4113 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4116 # Get the version trigger filename from the toplevel
4117 if test "${with_gcc_version_trigger+set}" = set; then
4118 gcc_version_trigger=$with_gcc_version_trigger
4120 gcc_version_trigger=${srcdir}/version.c
4123 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
4126 # Internationalization
4128 VERSION="$gcc_version"
4129 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4130 [Define to the name of the distribution.])
4131 AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4132 [Define to the version of the distribution.])
4138 # Enable NLS support by default
4140 [ --enable-nls use Native Language Support (default)],
4143 # if cross compiling, disable NLS support.
4144 # It's not worth the trouble, at least for now.
4146 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4147 AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
4152 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4154 # Windows32 Registry support for specifying GCC installation paths.
4155 AC_ARG_ENABLE(win32-registry,
4156 [ --disable-win32-registry
4157 Disable lookup of installation paths in the
4158 Registry on Windows hosts.
4159 --enable-win32-registry Enable registry lookup (default).
4160 --enable-win32-registry=KEY
4161 Use KEY instead of GCC version as the last portion
4162 of the registry key.],,)
4164 AC_MSG_CHECKING(whether windows registry support is requested)
4165 if test x$enable_win32_registry != xno; then
4166 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4167 [Define to 1 if installation paths should be looked up in Windows32
4168 Registry. Ignored on non windows32 hosts.])
4174 # Check if user specified a different registry key.
4175 case x${enable_win32_registry} in
4178 gcc_cv_win32_registry_key="$VERSION"
4181 # no registry lookup.
4182 gcc_cv_win32_registry_key=''
4185 # user-specified key.
4186 gcc_cv_win32_registry_key="$enable_win32_registry"
4190 if test x$enable_win32_registry != xno; then
4191 AC_MSG_CHECKING(registry key on windows hosts)
4192 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4193 [Define to be the last portion of registry key on windows hosts.])
4194 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4197 # Get an absolute path to the GCC top-level source directory
4203 # Conditionalize the makefile for this host machine.
4204 # Make-host contains the concatenation of all host makefile fragments
4205 # [there can be more than one]. This file is built by configure.frag.
4206 host_overrides=Make-host
4207 dep_host_xmake_file=
4208 for f in .. ${host_xmake_file}
4210 if test -f ${srcdir}/config/$f
4212 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4216 # Conditionalize the makefile for this target machine.
4217 # Make-target contains the concatenation of all host makefile fragments
4218 # [there can be more than one]. This file is built by configure.frag.
4219 target_overrides=Make-target
4221 for f in .. ${tmake_file}
4223 if test -f ${srcdir}/config/$f
4225 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4229 # If the host doesn't support symlinks, modify CC in
4230 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4231 # Otherwise, we can use "CC=$(CC)".
4233 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4235 cc_set_by_configure="\$(CC)"
4236 quoted_cc_set_by_configure="\$(CC)"
4237 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4240 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4242 symbolic_link="cp -p"
4246 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4247 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4248 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4252 out_object_file=`basename $out_file .c`.o
4255 for f in $tm_file; do
4258 tm_file_list="${tm_file_list} $f" ;;
4259 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4264 for f in $host_xm_file; do
4266 auto-host.h | gansidecl.h | hwint.h )
4267 host_xm_file_list="${host_xm_file_list} $f" ;;
4268 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4273 for f in $build_xm_file; do
4275 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4276 build_xm_file_list="${build_xm_file_list} $f" ;;
4277 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4281 # Define macro CROSS_COMPILE in compilation
4282 # if this is a cross-compiler.
4283 # Also use all.cross instead of all.internal
4284 # and add cross-make to Makefile.
4285 cross_overrides="/dev/null"
4286 if test x$host != x$target
4288 cross_defines="CROSS=-DCROSS_COMPILE"
4289 cross_overrides="${topdir}/cross-make"
4292 # If this is a cross-compiler that does not
4293 # have its own set of headers then define
4296 # If this is using newlib, then define inhibit_libc in
4297 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4298 # libgcc.a, but that's OK because newlib should have its own version of
4301 if [test x$host != x$target] && [test x$with_headers = x]; then
4302 inhibit_libc=-Dinhibit_libc
4304 if [test x$with_newlib = xyes]; then
4305 inhibit_libc=-Dinhibit_libc
4308 AC_SUBST(inhibit_libc)
4310 # When building gcc with a cross-compiler, we need to fix a few things.
4311 # This must come after cross-make as we want all.build to override
4313 build_overrides="/dev/null"
4314 if test x$build != x$host
4316 build_overrides="${topdir}/build-make"
4319 # Expand extra_headers to include complete path.
4320 # This substitutes for lots of t-* files.
4322 if test "x$extra_headers" = x
4325 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4326 for file in $extra_headers;
4328 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4332 if test x$use_collect2 = xno; then
4336 # Add a definition of USE_COLLECT2 if system wants one.
4337 # Also tell toplev.c what to do.
4338 # This substitutes for lots of t-* files.
4339 if test x$use_collect2 = x
4344 will_use_collect2="collect2"
4345 maybe_use_collect2="-DUSE_COLLECT2"
4349 # Set MD_DEPS if the real md file is in md.pre-cpp.
4350 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4351 # for line oriented comments, so we must always use a GNU cpp. If
4352 # building gcc with a cross compiler, use the cross compiler just
4353 # built. Otherwise, we can use the cpp just built.
4355 if test "x$md_cppflags" = x
4357 md_file_sub=$srcdir/config/$md_file
4362 # If we have gas in the build tree, make a link to it.
4363 if test -f ../gas/Makefile; then
4364 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4367 # If we have nm in the build tree, make a link to it.
4368 if test -f ../binutils/Makefile; then
4369 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4372 # If we have ld in the build tree, make a link to it.
4373 if test -f ../ld/Makefile; then
4374 # if test x$use_collect2 = x; then
4375 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4377 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4381 # Figure out what assembler alignment features are present.
4382 AC_MSG_CHECKING(assembler alignment features)
4384 gcc_cv_as_alignment_features=
4385 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4386 if test -x "$DEFAULT_ASSEMBLER"; then
4387 gcc_cv_as="$DEFAULT_ASSEMBLER"
4388 elif test -x "$AS"; then
4390 elif test -x as$host_exeext; then
4391 # Build using assembler in the current directory.
4392 gcc_cv_as=./as$host_exeext
4393 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4394 # Single tree build which includes gas.
4395 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4398 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4400 if test x$gcc_cv_gas_version != x; then
4405 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4406 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4408 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4409 # Gas version 2.6 and later support for .balign and .p2align.
4410 # bytes to skip when using .p2align.
4411 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
4412 gcc_cv_as_alignment_features=".balign and .p2align"
4413 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4415 # Gas version 2.8 and later support specifying the maximum
4416 # bytes to skip when using .p2align.
4417 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
4418 gcc_cv_as_alignment_features=".p2align including maximum skip"
4419 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4422 elif test x$host = x$target; then
4424 # Search the same directories that the installed compiler will
4425 # search. Else we may find the wrong assembler and lose. If we
4426 # do not find a suitable assembler binary, then try the user's
4429 # Also note we have to check MD_EXEC_PREFIX before checking the
4430 # user's path. Unfortunately, there is no good way to get at the
4431 # value of MD_EXEC_PREFIX here. So we do a brute force search
4432 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4433 # to be fixed as part of the make/configure rewrite too.
4435 if test "x$exec_prefix" = xNONE; then
4436 if test "x$prefix" = xNONE; then
4437 test_prefix=/usr/local
4442 test_prefix=$exec_prefix
4445 # If the loop below does not find an assembler, then use whatever
4446 # one we can find in the users's path.
4450 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4451 $test_prefix/lib/gcc-lib/$target \
4452 /usr/lib/gcc/$target/$gcc_version \
4453 /usr/lib/gcc/$target \
4454 $test_prefix/$target/bin/$target/$gcc_version \
4455 $test_prefix/$target/bin \
4460 /bsd43/usr/lib/cmplrs/cc \
4461 /usr/cross64/usr/bin \
4462 /usr/lib/cmplrs/cc \
4463 /sysv/usr/lib/cmplrs/cc \
4464 /svr4/usr/lib/cmplrs/cc \
4467 for dir in $test_dirs; do
4468 if test -f $dir/as$host_exeext; then
4469 gcc_cv_as=$dir/as$host_exeext
4474 if test x$gcc_cv_as != x; then
4475 # Check if we have .balign and .p2align
4476 echo ".balign 4" > conftest.s
4477 echo ".p2align 2" >> conftest.s
4478 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4479 gcc_cv_as_alignment_features=".balign and .p2align"
4480 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4482 rm -f conftest.s conftest.o
4483 # Check if specifying the maximum bytes to skip when
4484 # using .p2align is supported.
4485 echo ".p2align 4,,7" > conftest.s
4486 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4487 gcc_cv_as_alignment_features=".p2align including maximum skip"
4488 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4490 rm -f conftest.s conftest.o
4492 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4494 AC_MSG_CHECKING(assembler subsection support)
4495 gcc_cv_as_subsections=
4496 if test x$gcc_cv_as != x; then
4497 # Check if we have .subsection
4498 echo ".subsection 1" > conftest.s
4499 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4500 gcc_cv_as_subsections=".subsection"
4501 if test -x nm$host_exeext; then
4502 gcc_cv_nm=./nm$host_exeext
4503 elif test x$host = x$target; then
4505 gcc_cv_nm=nm$host_exeext
4507 if test x$gcc_cv_nm != x; then
4508 cat > conftest.s <<EOF
4509 conftest_label1: .word 0
4511 conftest_label2: .word 0
4514 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4515 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4516 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4517 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4520 gcc_cv_as_subsections="working .subsection -1"
4521 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4522 [Define if your assembler supports .subsection and .subsection -1 starts
4523 emitting at the beginning of your section.])
4528 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4530 AC_MSG_RESULT($gcc_cv_as_subsections)
4532 AC_MSG_CHECKING(assembler weak support)
4534 if test x$gcc_cv_as != x; then
4535 # Check if we have .weak
4536 echo " .weak foobar" > conftest.s
4537 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4538 AC_DEFINE(HAVE_GAS_WEAK, 1,
4539 [Define if your assembler supports .weak.])
4540 gcc_cv_as_weak="yes"
4542 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4544 AC_MSG_RESULT($gcc_cv_as_weak)
4546 AC_MSG_CHECKING(assembler hidden support)
4548 if test x$gcc_cv_as != x; then
4549 # Check if we have .hidden
4550 echo " .hidden foobar" > conftest.s
4551 echo "foobar:" >> conftest.s
4552 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4553 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4554 [Define if your assembler supports .hidden.])
4555 gcc_cv_as_hidden="yes"
4557 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4559 AC_MSG_RESULT($gcc_cv_as_hidden)
4563 AC_CACHE_CHECK([assembler .register pseudo-op support],
4564 gcc_cv_as_register_pseudo_op, [
4565 gcc_cv_as_register_pseudo_op=unknown
4566 if test x$gcc_cv_as != x; then
4567 # Check if we have .register
4568 echo ".register %g2, #scratch" > conftest.s
4569 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4570 gcc_cv_as_register_pseudo_op=yes
4572 gcc_cv_as_register_pseudo_op=no
4574 rm -f conftest.s conftest.o
4577 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4578 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4579 [Define if your assembler supports .register.])
4582 AC_CACHE_CHECK([assembler supports -relax],
4583 gcc_cv_as_relax_opt, [
4584 gcc_cv_as_relax_opt=unknown
4585 if test x$gcc_cv_as != x; then
4586 # Check if gas supports -relax
4587 echo ".text" > conftest.s
4588 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
4589 gcc_cv_as_relax_opt=yes
4591 gcc_cv_as_relax_opt=no
4593 rm -f conftest.s conftest.o
4596 if test "x$gcc_cv_as_relax_opt" = xyes; then
4597 AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
4598 [Define if your assembler supports -relax option.])
4603 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4604 gcc_cv_as_flags64, [
4605 if test -n "$gcc_cv_as"; then
4606 echo ".xword foo" > conftest.s
4607 gcc_cv_as_flags64=no
4608 for flag in "-xarch=v9" "-64 -Av9"; do
4609 if $gcc_cv_as $flag -o conftest.o conftest.s \
4610 > /dev/null 2>&1; then
4611 gcc_cv_as_flags64=$flag
4615 rm -f conftest.s conftest.o
4617 if test "$gas" = yes; then
4618 gcc_cv_as_flags64="-64 -Av9"
4620 gcc_cv_as_flags64="-xarch=v9"
4624 if test "x$gcc_cv_as_flags64" = xno; then
4626 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4627 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4630 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4631 [Define if the assembler supports 64bit sparc.])
4634 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4638 if test "x$gcc_cv_as_flags64" != xno; then
4639 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4640 gcc_cv_as_offsetable_lo10, [
4641 gcc_cv_as_offsetable_lo10=unknown
4642 if test "x$gcc_cv_as" != x; then
4643 # Check if assembler has offsetable %lo()
4644 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4645 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4646 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4648 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4649 > /dev/null 2>&1; then
4650 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4651 gcc_cv_as_offsetable_lo10=no
4653 gcc_cv_as_offsetable_lo10=yes
4656 gcc_cv_as_offsetable_lo10=no
4658 rm -f conftest.s conftest.o conftest1.s conftest1.o
4661 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4662 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4663 [Define if your assembler supports offsetable %lo().])
4671 AC_MSG_CHECKING(assembler instructions)
4672 gcc_cv_as_instructions=
4673 if test x$gcc_cv_as != x; then
4674 set "filds fists" "filds mem; fists mem"
4677 echo "$2" > conftest.s
4678 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4679 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4680 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
4684 rm -f conftest.s conftest.o
4686 AC_MSG_RESULT($gcc_cv_as_instructions)
4690 # Figure out what language subdirectories are present.
4691 # Look if the user specified --enable-languages="..."; if not, use
4692 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4694 if test x"${enable_languages+set}" != xset; then
4695 if test x"${LANGUAGES+set}" = xset; then
4696 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4698 enable_languages=all
4701 if test x"${enable_languages}" = x; then
4702 AC_MSG_ERROR([--enable-languages needs at least one argument])
4706 for lang in ${srcdir}/*/config-lang.in ..
4710 # The odd quoting in the next line works around
4711 # an apparent bug in bash 1.12 on linux.
4713 ${srcdir}/[*]/config-lang.in) ;;
4715 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4716 if test "x$lang_alias" = x
4718 echo "$lang doesn't set \$language." 1>&2
4721 if test x"${enable_languages}" = xall; then
4724 case "${enable_languages}" in
4725 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4733 if test x"${add_this_lang}" = xyes; then
4735 ${srcdir}/ada/config-lang.in)
4736 if test x$gnat = xyes ; then
4737 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4741 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4750 # Make gthr-default.h if we have a thread file.
4752 if test $thread_file != single; then
4753 rm -f gthr-default.h
4754 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4755 gthread_flags=-DHAVE_GTHR_DEFAULT
4757 AC_SUBST(gthread_flags)
4759 # Find out what GC implementation we want, or may, use.
4761 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4762 with the compiler.],
4768 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4771 [if test $ac_cv_func_mmap_anywhere = yes \
4772 || test $ac_cv_func_valloc = yes; then
4778 echo "Using $GGC for garbage collection."
4780 # Build a new-abi (c++) system
4781 AC_ARG_ENABLE(new-gxx-abi,
4782 [ --enable-new-gxx-abi
4783 select the new abi for g++. You must select an ABI
4784 at configuration time, so that the correct runtime
4785 support is built. You cannot mix ABIs.],
4786 [AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4787 [Define if you want to always select the new-abi for g++.])
4788 GXX_ABI_FLAG='-fnew-abi'
4789 echo "Building a new-abi g++ compiler."
4791 AC_SUBST(GXX_ABI_FLAG)
4793 # Build a new-libstdc++ system (ie libstdc++-v3)
4794 AC_MSG_CHECKING([for libstdc++ to install])
4795 AC_ARG_ENABLE(libstdcxx-v3,
4796 [ --enable-libstdcxx-v3
4797 enable libstdc++-v3 for building and installation],
4798 [enable_libstdcxx_v3=yes], [enable_libstdcxx_v3=no])
4800 if test x$enable_libstdcxx_v3 = xyes; then
4807 AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4808 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
4810 dnl Very limited version of automake's enable-maintainer-mode
4812 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4813 dnl maintainer-mode is disabled by default
4814 AC_ARG_ENABLE(maintainer-mode,
4815 [ --enable-maintainer-mode enable make rules and dependencies not useful
4816 (and sometimes confusing) to the casual installer],
4817 maintainer_mode=$enableval,
4820 AC_MSG_RESULT($maintainer_mode)
4822 if test "$maintainer_mode" = "yes"; then
4829 # Make empty files to contain the specs and options for each language.
4830 # Then add #include lines to for a compiler that has specs and/or options.
4835 rm -f specs.h options.h gencheck.h
4836 touch specs.h options.h gencheck.h
4837 for subdir in . $subdirs
4839 if test -f $srcdir/$subdir/lang-specs.h; then
4840 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4841 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4843 if test -f $srcdir/$subdir/lang-options.h; then
4844 echo "#include \"$subdir/lang-options.h\"" >>options.h
4845 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4847 if test -f $srcdir/$subdir/$subdir-tree.def; then
4848 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4849 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4853 # These (without "all_") are set in each config-lang.in.
4854 # `language' must be a single word so is spelled singularly.
4860 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
4861 # List of language makefile fragments.
4866 # Add the language fragments.
4867 # Languages are added via two mechanisms. Some information must be
4868 # recorded in makefile variables, these are defined in config-lang.in.
4869 # We accumulate them and plug them into the main Makefile.
4870 # The other mechanism is a set of hooks for each of the main targets
4871 # like `clean', `install', etc.
4873 language_fragments="Make-lang"
4874 language_hooks="Make-hooks"
4877 for s in .. $subdirs
4889 . ${srcdir}/$s/config-lang.in
4890 if test "x$language" = x
4892 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4895 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4896 all_languages="$all_languages $language"
4897 if test "x$boot_language" = xyes
4899 all_boot_languages="$all_boot_languages $language"
4901 all_compilers="$all_compilers $compilers"
4902 all_stagestuff="$all_stagestuff $stagestuff"
4903 all_diff_excludes="$all_diff_excludes $diff_excludes"
4904 all_headers="$all_headers $headers"
4905 all_outputs="$all_outputs $outputs"
4906 if test x$outputs = x
4908 oldstyle_subdirs="$oldstyle_subdirs $s"
4910 all_lib2funcs="$all_lib2funcs $lib2funcs"
4914 # Since we can't use `::' targets, we link each language in
4915 # with a set of hooks, reached indirectly via lang.${target}.
4919 target_list="all.build all.cross start.encap rest.encap \
4921 install-normal install-common install-info install-man \
4923 mostlyclean clean distclean extraclean maintainer-clean \
4924 stage1 stage2 stage3 stage4"
4925 for t in $target_list
4928 for lang in .. $all_languages
4930 if test $lang != ".."; then
4934 echo "lang.$t: $x" >> Make-hooks
4937 # If we're not building in srcdir, create .gdbinit.
4939 if test ! -f Makefile.in; then
4940 echo "dir ." > .gdbinit
4941 echo "dir ${srcdir}" >> .gdbinit
4942 if test x$gdb_needs_out_file_path = xyes
4944 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4946 if test "x$subdirs" != x; then
4949 echo "dir ${srcdir}/$s" >> .gdbinit
4952 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4955 # Define variables host_canonical and build_canonical
4956 # because some Cygnus local changes in the Makefile depend on them.
4957 build_canonical=${build}
4958 host_canonical=${host}
4960 if test "${host}" != "${target}" ; then
4961 target_subdir=${target}/
4963 AC_SUBST(build_canonical)
4964 AC_SUBST(host_canonical)
4965 AC_SUBST(target_subdir)
4967 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4968 # absolute path for gcc_tooldir based on inserting the number of up-directory
4969 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4970 # $(libsubdir)/@(unlibsubdir) based path.
4971 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4972 # make and thus we'd get different behavior depending on where we built the
4974 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4975 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4977 changequote(<<, >>)dnl
4978 # An explanation of the sed strings:
4979 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4980 # -e 's|/$||' match a trailing forward slash and eliminates it
4981 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4982 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4984 # (*) Note this pattern overwrites the first character of the string
4985 # with a forward slash if one is not already present. This is not a
4986 # problem because the exact names of the sub-directories concerned is
4987 # unimportant, just the number of them matters.
4989 # The practical upshot of these patterns is like this:
4991 # prefix exec_prefix result
4992 # ------ ----------- ------
4994 # /foo/ /foo/bar ../
4995 # /foo /foo/bar/ ../
4996 # /foo/ /foo/bar/ ../
4997 # /foo /foo/bar/ugg ../../
5000 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
5001 changequote([, ])dnl
5003 AC_SUBST(gcc_tooldir)
5006 # Nothing to do for FLOAT_H, float_format already handled.
5010 # Process the language and host/target makefile fragments.
5011 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5013 # Substitute configuration variables
5015 AC_SUBST(all_boot_languages)
5016 AC_SUBST(all_compilers)
5017 AC_SUBST(all_diff_excludes)
5018 AC_SUBST(all_headers)
5019 AC_SUBST(all_lang_makefiles)
5020 AC_SUBST(all_languages)
5021 AC_SUBST(all_lib2funcs)
5022 AC_SUBST(all_stagestuff)
5023 AC_SUBST(build_exeext)
5024 AC_SUBST(build_install_headers_dir)
5025 AC_SUBST(build_xm_file_list)
5026 AC_SUBST(cc_set_by_configure)
5027 AC_SUBST(quoted_cc_set_by_configure)
5028 AC_SUBST(cpp_install_dir)
5029 AC_SUBST(dep_host_xmake_file)
5030 AC_SUBST(dep_tmake_file)
5031 AC_SUBST(extra_c_flags)
5032 AC_SUBST(extra_c_objs)
5033 AC_SUBST(extra_cpp_objs)
5034 AC_SUBST(extra_cxx_objs)
5035 AC_SUBST(extra_headers_list)
5036 AC_SUBST(extra_objs)
5037 AC_SUBST(extra_parts)
5038 AC_SUBST(extra_passes)
5039 AC_SUBST(extra_programs)
5040 AC_SUBST(float_h_file)
5041 AC_SUBST(gcc_gxx_include_dir)
5042 AC_SUBST(gcc_version)
5043 AC_SUBST(gcc_version_trigger)
5044 AC_SUBST(host_exeext)
5045 AC_SUBST(host_extra_gcc_objs)
5046 AC_SUBST(host_xm_file_list)
5048 AC_SUBST(lang_options_files)
5049 AC_SUBST(lang_specs_files)
5050 AC_SUBST(lang_tree_files)
5051 AC_SUBST(local_prefix)
5052 AC_SUBST(maybe_use_collect2)
5054 AC_SUBST(objc_boehm_gc)
5056 AC_SUBST(out_object_file)
5057 AC_SUBST(stage_prefix_set_by_configure)
5058 AC_SUBST(symbolic_link)
5059 AC_SUBST(thread_file)
5060 AC_SUBST(tm_file_list)
5061 AC_SUBST(will_use_collect2)
5064 AC_SUBST_FILE(target_overrides)
5065 AC_SUBST_FILE(host_overrides)
5066 AC_SUBST(cross_defines)
5067 AC_SUBST_FILE(cross_overrides)
5068 AC_SUBST_FILE(build_overrides)
5069 AC_SUBST_FILE(language_fragments)
5070 AC_SUBST_FILE(language_hooks)
5072 # Echo that links are built
5073 if test x$host = x$target
5081 if test x$host != x$build
5083 str3=" on a $build system"
5086 if test "x$str2" != x || test "x$str3" != x
5091 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5093 if test "x$str2" != x || test "x$str3" != x
5095 echo " ${str2}${str3}." 1>&2
5098 # Truncate the target if necessary
5099 if test x$host_truncate_target != x; then
5100 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5103 # Configure the subdirectories
5104 # AC_CONFIG_SUBDIRS($subdirs)
5106 # Create the Makefile
5107 # and configure language subdirectories
5108 AC_OUTPUT($all_outputs,
5110 . $srcdir/configure.lang
5111 case x$CONFIG_HEADERS in
5112 xauto-host.h:config.in)
5115 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5116 # bootstrapping and the installation procedure can still use
5117 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5118 # FLAGS_TO_PASS has been modified to solve the problem there.
5119 # This is virtually a duplicate of what happens in configure.lang; we do
5120 # an extra check to make sure this only happens if ln -s can be used.
5121 if test "$symbolic_link" = "ln -s"; then
5122 for d in .. ${subdirs} ; do
5123 if test $d != ..; then
5126 for t in stage1 stage2 stage3 stage4 include
5129 $symbolic_link ../$t $t 2>/dev/null
5135 # Avoid having to add intl to our include paths.
5136 if test -f intl/libintl.h; then
5137 echo creating libintl.h
5138 echo '#include "intl/libintl.h"' >libintl.h
5145 target_alias='${target_alias}'
5147 subdirs='${subdirs}'
5148 oldstyle_subdirs='${oldstyle_subdirs}'
5149 symbolic_link='${symbolic_link}'
5150 program_transform_set='${program_transform_set}'
5151 program_transform_name='${program_transform_name}'
5152 dep_host_xmake_file='${dep_host_xmake_file}'
5153 host_xmake_file='${host_xmake_file}'
5154 dep_tmake_file='${dep_tmake_file}'
5155 tmake_file='${tmake_file}'
5156 thread_file='${thread_file}'
5157 gcc_version='${gcc_version}'
5158 gcc_version_trigger='${gcc_version_trigger}'
5159 local_prefix='${local_prefix}'
5160 build_install_headers_dir='${build_install_headers_dir}'
5161 build_exeext='${build_exeext}'
5162 host_exeext='${host_exeext}'
5163 out_file='${out_file}'
5164 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5165 SET_MAKE='${SET_MAKE}'
5166 target_list='${target_list}'
5167 target_overrides='${target_overrides}'
5168 host_overrides='${host_overrides}'
5169 cross_defines='${cross_defines}'
5170 cross_overrides='${cross_overrides}'
5171 build_overrides='${build_overrides}'
5172 cpp_install_dir='${cpp_install_dir}'