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 # Link cpplib into the compiler proper, for C/C++/ObjC.
258 AC_ARG_ENABLE(c-cpplib,
259 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
260 (HIGHLY EXPERIMENTAL).],
261 if test x$enable_c_cpplib != xno; then
262 extra_c_objs="${extra_c_objs} libcpp.a"
263 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
264 AC_DEFINE(USE_CPPLIB, 1,
265 [Define if you want the preprocessor merged into the C and C++ compilers.
266 This mode is not ready for production use.])
269 # Enable Multibyte Characters for C/C++
270 AC_ARG_ENABLE(c-mbchar,
271 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
272 if test x$enable_c_mbchar != xno; then
273 AC_DEFINE(MULTIBYTE_CHARS, 1,
274 [Define if you want the C and C++ compilers to support multibyte
275 character sets for source code.])
279 # Pass with no value to take the default
280 # Pass with a value to specify a thread package
281 AC_ARG_ENABLE(threads,
282 [ --enable-threads enable thread usage for target GCC.
283 --enable-threads=LIB use LIB thread package for target GCC.],
284 if test x$enable_threads = xno; then
289 enable_threads_flag=$enable_threads
290 # Check if a valid thread package
291 case x${enable_threads_flag} in
294 target_thread_file='single'
298 target_thread_file=''
300 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
301 xsolaris | xwin32 | xdce | xvxworks)
302 target_thread_file=$enable_threads_flag
305 echo "$enable_threads is an unknown thread package" 1>&2
310 AC_ARG_ENABLE(objc-gc,
311 [ --enable-objc-gc enable the use of Boehm's garbage collector with
312 the GNU Objective-C runtime.],
313 if test x$enable_objc_gc = xno; then
321 [ --with-dwarf2 force the default debug format to be DWARF2.],
322 dwarf2="$with_dwarf2",
325 # Determine the host, build, and target systems
328 # Find the native compiler
331 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
332 NO_MINUS_C_MINUS_O=yes
334 AC_SUBST(NO_MINUS_C_MINUS_O)
338 AC_CACHE_CHECK(whether ${CC-cc} accepts -Wno-long-long,
339 ac_cv_prog_cc_no_long_long,
340 [save_CFLAGS="$CFLAGS"
341 CFLAGS="-Wno-long-long"
342 AC_TRY_COMPILE(,,ac_cv_prog_cc_no_long_long=yes,
343 ac_cv_prog_cc_no_long_long=no)
344 CFLAGS="$save_CFLAGS"])
346 # If the native compiler is GCC, we can enable warnings even in stage1.
347 # That's useful for people building cross-compilers, or just running a
349 stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
350 stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
351 if test "x$GCC" = "xyes"; then
352 if test $ac_cv_prog_cc_no_long_long = yes; then
353 stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
356 stage1_warn_cflags=""
359 # Stage specific cflags for build.
364 stage1_warn_cflags="$stage1_warn_cflags -Wa,-J"
366 stage1_warn_cflags="$stage1_warn_cflags -J"
371 AC_SUBST(stage1_warn_cflags)
372 AC_SUBST(stage2_warn_cflags)
376 AC_MSG_CHECKING([whether a default assembler was specified])
377 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
378 if test x"$gas_flag" = x"no"; then
379 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
381 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
387 AC_MSG_CHECKING([whether a default linker was specified])
388 if test x"${DEFAULT_LINKER+set}" = x"set"; then
389 if test x"$gnu_ld_flag" = x"no"; then
390 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
392 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
400 # Find some useful tools
414 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
415 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
416 sys/resource.h sys/param.h sys/times.h sys/stat.h \
419 # Check for thread headers.
420 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
421 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
423 # See if GNAT has been installed
424 AC_CHECK_PROG(gnat, gnatbind, yes, no)
426 # Do we have a single-tree copy of texinfo?
427 if test -f $srcdir/../texinfo/Makefile.in; then
428 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
429 gcc_cv_prog_makeinfo_modern=yes
430 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
432 # See if makeinfo has been installed and is modern enough
433 # that we can use it.
434 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
435 [GNU texinfo.* \([0-9][0-9.]*\)],
436 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
439 if test $gcc_cv_prog_makeinfo_modern = no; then
441 *** Makeinfo is missing or too old.
442 *** Info documentation will not be built or installed.])
446 BUILD_INFO=info AC_SUBST(BUILD_INFO)
447 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
450 # See if the stage1 system preprocessor understands the ANSI C
451 # preprocessor stringification operator.
454 # Use <inttypes.h> only if it exists,
455 # doesn't clash with <sys/types.h>, and declares intmax_t.
456 AC_MSG_CHECKING(for inttypes.h)
457 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
459 [#include <sys/types.h>
460 #include <inttypes.h>],
462 [gcc_cv_header_inttypes_h=yes],
463 gcc_cv_header_inttypes_h=no)])
464 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
465 if test $gcc_cv_header_inttypes_h = yes; then
466 AC_DEFINE(HAVE_INTTYPES_H, 1,
467 [Define if you have a working <inttypes.h> header file.])
471 # Determine if enumerated bitfields are unsigned. ISO C says they can
472 # be either signed or unsigned.
474 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
475 [AC_TRY_RUN(#include <stdlib.h>
476 enum t { BLAH = 128 } ;
477 struct s_t { enum t member : 8; } s ;
481 if (s.member < 0) exit(1);
484 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
485 if test $gcc_cv_enum_bf_unsigned = yes; then
486 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
487 [Define if enumerated bitfields are treated as unsigned values.])
490 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
491 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
492 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
493 fputs_unlocked getrusage valloc)
495 AC_CHECK_TYPE(ssize_t, int)
497 # Try to determine the array type of the second argument of getgroups
498 # for the target system (int or gid_t).
500 if test "${target}" = "${build}"; then
501 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
504 # This condition may need some tweaking. It should include all
505 # targets where the array type of the second argument of getgroups
506 # is int and the type of gid_t is not equivalent to int.
507 *-*-sunos* | *-*-ultrix*)
508 TARGET_GETGROUPS_T=int
511 TARGET_GETGROUPS_T=gid_t
515 AC_SUBST(TARGET_GETGROUPS_T)
517 gcc_AC_FUNC_VFPRINTF_DOPRNT
518 gcc_AC_FUNC_PRINTF_PTR
522 # Under some versions of uwin, vfork is notoriously buggy and the test
523 # can hang configure; on other versions, vfork exists just as a stub.
524 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
525 ac_cv_func_vfork_works=no
529 AC_FUNC_MMAP_ANYWHERE
532 # We will need to find libiberty.h and ansidecl.h
533 saved_CFLAGS="$CFLAGS"
534 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
535 gcc_AC_CHECK_DECLS(bcopy bzero bcmp \
536 index rindex getenv atol sbrk abort atof getcwd getwd \
537 strsignal putc_unlocked fputs_unlocked strstr environ \
538 malloc realloc calloc free basename getopt, , ,[
539 #include "gansidecl.h"
540 #include "system.h"])
542 gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
543 #include "gansidecl.h"
545 #ifdef HAVE_SYS_RESOURCE_H
546 #include <sys/resource.h>
550 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
551 CFLAGS="$saved_CFLAGS"
553 # mkdir takes a single argument on some systems.
554 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
564 build_install_headers_dir=install-headers-tar
569 host_truncate_target=
572 # Decode the host machine, then the target machine.
573 # For the host machine, we save the xm_file variable as host_xm_file;
574 # then we decode the target machine and forget everything else
575 # that came from the host machine.
576 for machine in $build $host $target; do
590 # Set this to force installation and use of collect2.
592 # Set this to override the default target model.
594 # Set this to control how the header file directory is installed.
595 install_headers_dir=install-headers-tar
596 # Set this to a non-empty list of args to pass to cpp if the target
597 # wants its .md file passed through cpp.
599 # Set this if directory names should be truncated to 14 characters.
601 # Set this if gdb needs a dir command with `dirname $out_file`
602 gdb_needs_out_file_path=
603 # Set this if the build machine requires executables to have a
606 # Set this to control which thread package will be used.
608 # Reinitialize these from the flag values every loop pass, since some
609 # configure entries modify them.
611 gnu_ld="$gnu_ld_flag"
612 enable_threads=$enable_threads_flag
614 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
615 # updated in each machine entry.
617 cpu_type=`echo $machine | sed 's/-.*$//'`
659 tm_file=${cpu_type}/${cpu_type}.h
660 xm_file=${cpu_type}/xm-${cpu_type}.h
661 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
663 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
665 # On a.out targets, we need to use collect2.
672 # Common parts for linux and openbsd systems
675 xm_defines="HAVE_ATEXIT POSIX BSTRING"
678 tm_file=${cpu_type}/openbsd.h
679 tmake_file="t-libc-ok t-openbsd"
680 # avoid surprises, always provide an xm-openbsd file
681 xm_file=${cpu_type}/xm-openbsd.h
682 # don't depend on processor x-fragments as well
684 if test x$enable_threads = xyes; then
686 tmake_file="${tmake_file} t-openbsd-thread"
692 # Support site-specific machine types.
694 cpu_type=`echo $machine | sed -e 's/-.*//'`
695 rest=`echo $machine | sed -e "s/$cpu_type-//"`
696 xm_file=${cpu_type}/xm-$rest.h
697 tm_file=${cpu_type}/$rest.h
698 if test -f $srcdir/config/${cpu_type}/x-$rest; \
699 then xmake_file=${cpu_type}/x-$rest; \
702 if test -f $srcdir/config/${cpu_type}/t-$rest; \
703 then tmake_file=${cpu_type}/t-$rest; \
709 a29k-*-bsd* | a29k-*-sym1*)
710 tm_file="${tm_file} a29k/unix.h"
712 xmake_file=a29k/x-unix
715 a29k-*-udi | a29k-*-coff)
716 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
717 tmake_file=a29k/t-a29kbare
720 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
721 tmake_file=a29k/t-vx29k
722 extra_parts="crtbegin.o crtend.o"
723 thread_file='vxworks'
725 a29k-*-*) # Default a29k environment.
729 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
731 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
732 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
734 # GAS + IEEE_CONFORMANT
735 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
737 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
738 xmake_file="x-interix alpha/t-pe"
739 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
740 if test x$enable_threads = xyes ; then
743 if test x$stabs = xyes ; then
744 tm_file="${tm_file} dbxcoff.h"
746 #prefix='$$INTERIX_ROOT'/usr/contrib
747 #local_prefix='$$INTERIX_ROOT'/usr/contrib
749 alpha*-*-linux*ecoff*)
750 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
751 target_cpu_default="MASK_GAS"
752 tmake_file="alpha/t-alpha alpha/t-ieee"
757 alpha*-*-linux*libc1*)
758 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
759 target_cpu_default="MASK_GAS"
760 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
761 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
764 if test x$enable_threads = xyes; then
769 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
770 target_cpu_default="MASK_GAS"
771 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
772 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
775 if test x$enable_threads = xyes; then
780 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
781 target_cpu_default="MASK_GAS"
782 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
783 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
789 # default x-alpha is only appropriate for dec-osf.
790 target_cpu_default="MASK_GAS"
791 tmake_file="alpha/t-alpha alpha/t-ieee"
795 if test x$stabs = xyes
797 tm_file="${tm_file} dbx.h"
799 if test x$gas != xyes
801 extra_passes="mips-tfile mips-tdump"
804 tmake_file="alpha/t-alpha alpha/t-ieee"
807 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
812 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
815 tm_file="${tm_file} alpha/osf.h"
816 # Some versions of OSF4 (specifically X4.0-9 296.7) have
817 # a broken tar, so we use cpio instead.
818 install_headers_dir=install-headers-cpio
821 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
826 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
828 target_cpu_default=MASK_SUPPORT_ARCH
833 tm_file="${tm_file} dbx.h alpha/vxworks.h"
834 tmake_file="alpha/t-alpha alpha/t-ieee"
837 extra_passes="mips-tfile mips-tdump"
840 thread_file='vxworks'
843 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
844 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
845 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
846 xmake_file=winnt/x-winnt
847 extra_host_objs=oldnames.o
848 extra_gcc_objs="spawnv.o oldnames.o"
849 if test x$gnu_ld != xyes
851 extra_programs=ld.exe
853 if test x$enable_threads = xyes; then
859 xm_file="${xm_file} alpha/xm-vms.h"
860 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
863 extra_parts="crtinit.o crtfini.o"
865 arm-*-coff* | armel-*-coff*)
867 tmake_file=arm/t-arm-coff
871 tmake_file=arm/t-arm-coff
872 thread_file='vxworks'
875 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
877 tm_file=arm/riscix1-1.h
880 arm-*-riscix*) # Acorn RISC machine
883 tm_file=arm/rix-gas.h
887 xmake_file=arm/x-riscix
888 tmake_file=arm/t-riscix
891 arm-semi-aout | armel-semi-aout)
893 tmake_file=arm/t-semi
895 arm-semi-aof | armel-semi-aof)
896 tm_file=arm/semiaof.h
897 tmake_file=arm/t-semiaof
901 tmake_file="t-netbsd arm/t-netbsd"
904 arm*-*-linux*aout*) # ARM GNU/Linux with a.out
907 tm_file=arm/linux-aout.h
908 tmake_file=arm/t-linux
911 arm*-*-linux*oldld*) # ARM GNU/Linux with old ELF linker
912 xm_file=arm/xm-linux.h
914 tm_file="arm/linux-oldld.h arm/linux-elf.h"
917 tm_file="arm/linux-elf26.h $tm_file"
920 tmake_file="t-linux arm/t-linux"
921 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
923 case x${enable_threads} in
924 x | xyes | xpthreads | xposix)
929 arm*-*-linux*) # ARM GNU/Linux with ELF
930 xm_file=arm/xm-linux.h
932 tm_file="arm/linux-elf.h"
935 tm_file="arm/linux-elf26.h $tm_file"
938 tmake_file="t-linux arm/t-linux"
939 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
941 case x${enable_threads} in
942 x | xyes | xpthreads | xposix)
947 arm*-*-uclinux*) # ARM ucLinux
948 tm_file=arm/uclinux-elf.h
949 tmake_file=arm/t-arm-elf
953 tmake_file=arm/t-arm-aout
956 tm_file=arm/ecos-elf.h
957 tmake_file=arm/t-arm-elf
960 tm_file=arm/unknown-elf.h
961 tmake_file=arm/t-arm-elf
964 tm_file=arm/conix-elf.h
965 tmake_file=arm/t-arm-elf
968 tm_file=arm/unknown-elf-oabi.h
969 tmake_file=arm/t-arm-elf
978 c1-convex-*) # Convex C1
982 c2-convex-*) # Convex C2
995 target_cpu_default=16
1000 tmake_file=c4x/t-c4x
1002 clipper-intergraph-clix*)
1003 tm_file="${tm_file} svr3.h clipper/clix.h"
1004 xm_file=clipper/xm-clix.h
1005 xmake_file=clipper/x-clix
1006 extra_headers=va-clipper.h
1007 extra_parts="crtbegin.o crtend.o"
1008 install_headers_dir=install-headers-cpio
1019 tm_file="fr30/fr30.h"
1020 tmake_file=fr30/t-fr30
1021 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1023 # This hasn't been upgraded to GCC 2.
1024 # fx80-alliant-*) # Alliant FX/80
1030 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
1031 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
1032 tmake_file="t-linux pa/t-linux"
1033 extra_parts="crtbegin.o crtend.o"
1036 if test x$enable_threads = xyes; then
1041 target_cpu_default="MASK_PA_11"
1042 tmake_file=pa/t-openbsd
1045 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1046 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
1047 xm_file=pa/xm-papro.h
1051 target_cpu_default="MASK_PA_11"
1052 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1056 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1057 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
1058 xm_file=pa/xm-papro.h
1062 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1066 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1067 target_cpu_default="MASK_PA_11"
1071 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1075 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
1076 xm_file=pa/xm-pahpux.h
1077 xmake_file=pa/x-pa-hpux
1078 if test x$gas = xyes
1080 tm_file="${tm_file} pa/gas.h"
1082 install_headers_dir=install-headers-cpio
1086 hppa1.0-*-hpux8.0[0-2]*)
1088 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1089 xm_file=pa/xm-pahpux.h
1090 xmake_file=pa/x-pa-hpux
1091 if test x$gas = xyes
1093 tm_file="${tm_file} pa/pa-gas.h"
1095 tm_file="pa/pa-oldas.h ${tm_file}"
1097 install_headers_dir=install-headers-cpio
1101 hppa1.1-*-hpux8.0[0-2]*)
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 tm_file="pa/pa-oldas.h ${tm_file}"
1113 install_headers_dir=install-headers-cpio
1117 target_cpu_default="MASK_PA_11"
1118 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1119 xm_file=pa/xm-pahpux.h
1120 xmake_file=pa/x-pa-hpux
1121 if test x$gas = xyes
1123 tm_file="${tm_file} pa/pa-gas.h"
1125 install_headers_dir=install-headers-cpio
1129 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1130 xm_file=pa/xm-pahpux.h
1131 xmake_file=pa/x-pa-hpux
1132 if test x$gas = xyes
1134 tm_file="${tm_file} pa/pa-gas.h"
1136 install_headers_dir=install-headers-cpio
1139 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1140 target_cpu_default="MASK_PA_11"
1141 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1143 xm_file=pa/xm-pahpux.h
1144 xmake_file=pa/x-pa-hpux
1146 if test x$gas = xyes
1148 tm_file="${tm_file} pa/pa-gas.h"
1150 if test x$enable_threads = x; then
1151 enable_threads=$have_pthread_h
1153 case x${enable_threads} in
1155 tmake_file="${tmake_file} pa/t-dce-thr"
1158 install_headers_dir=install-headers-cpio
1162 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1164 xm_file=pa/xm-pahpux.h
1165 xmake_file=pa/x-pa-hpux
1167 if test x$gas = xyes
1169 tm_file="${tm_file} pa/pa-gas.h"
1171 if test x$enable_threads = x; then
1172 enable_threads=$have_pthread_h
1174 case x${enable_threads} in
1176 tmake_file="${tmake_file} pa/t-dce-thr"
1179 install_headers_dir=install-headers-cpio
1183 target_cpu_default="MASK_PA_11"
1184 xm_file=pa/xm-pa64hpux.h
1185 xmake_file=pa/x-pa-hpux
1187 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"
1189 tmake_file=pa/t-pa64
1190 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1192 if [[ x$gas = xyes ]]
1194 tm_file="${tm_file} pa/pa-gas.h"
1196 # if [[ x$enable_threads = x ]]; then
1197 # enable_threads=$have_pthread_h
1199 # if [[ x$enable_threads = xyes ]]; then
1201 # tmake_file="${tmake_file} pa/t-dce-thr"
1203 install_headers_dir=install-headers-cpio
1206 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1207 target_cpu_default="MASK_PA_11"
1208 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1210 xm_file=pa/xm-pahpux.h
1211 xmake_file=pa/x-pa-hpux
1213 if test x$gas = xyes
1215 tm_file="${tm_file} pa/pa-gas.h"
1217 # if test x$enable_threads = x; then
1218 # enable_threads=$have_pthread_h
1220 # if test x$enable_threads = xyes; then
1222 # tmake_file="${tmake_file} pa/t-dce-thr"
1224 install_headers_dir=install-headers-cpio
1228 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1230 xm_file=pa/xm-pahpux.h
1231 xmake_file=pa/x-pa-hpux
1232 if test x$gas = xyes
1234 tm_file="${tm_file} pa/pa-gas.h"
1236 # if test x$enable_threads = x; then
1237 # enable_threads=$have_pthread_h
1239 # if test x$enable_threads = xyes; then
1241 # tmake_file="${tmake_file} pa/t-dce-thr"
1243 install_headers_dir=install-headers-cpio
1246 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1247 target_cpu_default="MASK_PA_11"
1248 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1249 xm_file=pa/xm-pahpux.h
1250 xmake_file=pa/x-pa-hpux
1251 if test x$gas = xyes
1253 tm_file="${tm_file} pa/pa-gas.h"
1255 install_headers_dir=install-headers-cpio
1259 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1260 xm_file=pa/xm-pahpux.h
1261 xmake_file=pa/x-pa-hpux
1262 if test x$gas = xyes
1264 tm_file="${tm_file} pa/pa-gas.h"
1266 install_headers_dir=install-headers-cpio
1269 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1270 target_cpu_default="MASK_PA_11"
1271 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1272 xm_file=pa/xm-pahpux.h
1273 xmake_file=pa/x-pa-hpux
1274 if test x$gas = xyes
1276 tm_file="${tm_file} pa/pa-gas.h"
1278 install_headers_dir=install-headers-cpio
1282 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1283 xm_file=pa/xm-pahpux.h
1284 xmake_file=pa/x-pa-hpux
1285 if test x$gas = xyes
1287 tm_file="${tm_file} pa/pa-gas.h"
1289 install_headers_dir=install-headers-cpio
1293 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1294 target_cpu_default="MASK_PA_11"
1298 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1299 xm_file=pa/xm-pampeix.h
1300 xmake_file=pa/x-pa-mpeix
1301 echo "You must use gas. Assuming it is already installed."
1302 install_headers_dir=install-headers-tar
1305 i370-*-opened*) # IBM 360/370/390 Architecture
1306 xm_file=i370/xm-oe.h
1308 xmake_file=i370/x-oe
1309 tmake_file=i370/t-oe
1312 xm_file=i370/xm-mvs.h
1314 tmake_file=i370/t-mvs
1317 xm_file="xm-linux.h i370/xm-linux.h"
1319 tm_file="i370/linux.h ${tm_file}"
1320 tmake_file="t-linux i370/t-linux"
1321 # broken_install=yes
1322 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1323 # extra_parts="crtbegin.o crtend.o"
1327 if test x$enable_threads = xyes; then
1334 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1335 tm_file=i386/i386elf.h
1336 tmake_file=i386/t-i386elf
1340 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1342 if test x$gas = xyes
1344 tm_file=i386/aix386.h
1345 extra_parts="crtbegin.o crtend.o"
1346 tmake_file=i386/t-crtstuff
1348 tm_file=i386/aix386ng.h
1351 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1353 xmake_file=i386/x-aix
1356 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1358 xm_file="xm-alloca.h ${xm_file}"
1359 xm_defines="USG POSIX SMALL_ARG_MAX"
1360 xmake_file=i386/x-ncr3000
1361 if test x$stabs = xyes -a x$gas = xyes
1363 tm_file=i386/sysv4gdb.h
1365 tm_file=i386/sysv4.h
1367 extra_parts="crtbegin.o crtend.o"
1368 tmake_file=i386/t-crtpic
1374 xm_file=i386/xm-next.h
1375 tmake_file=i386/t-next
1376 xmake_file=i386/x-next
1377 extra_objs=nextstep.o
1378 extra_parts="crtbegin.o crtend.o"
1379 if test x$enable_threads = xyes; then
1384 i[34567]86-sequent-bsd*) # 80386 from Sequent
1387 if test x$gas = xyes
1389 tm_file=i386/seq-gas.h
1391 tm_file=i386/sequent.h
1395 i[34567]86-sequent-ptx1*)
1397 xm_defines="USG SVR3"
1398 xmake_file=i386/x-sysv3
1399 tm_file=i386/seq-sysv3.h
1400 tmake_file=i386/t-crtstuff
1401 extra_parts="crtbegin.o crtend.o"
1402 install_headers_dir=install-headers-cpio
1405 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1407 xm_defines="USG SVR3"
1408 xmake_file=i386/x-sysv3
1409 tm_file=i386/seq2-sysv3.h
1410 tmake_file=i386/t-crtstuff
1411 extra_parts="crtbegin.o crtend.o"
1412 install_headers_dir=install-headers-cpio
1415 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1417 xm_file="xm-alloca.h ${xm_file}"
1418 xm_defines="USG POSIX SMALL_ARG_MAX"
1420 tm_file=i386/ptx4-i.h
1422 extra_parts="crtbegin.o crtend.o"
1423 install_headers_dir=install-headers-cpio
1425 i386-sun-sunos*) # Sun i386 roadrunner
1431 i[34567]86-wrs-vxworks*)
1433 tm_file=i386/vxi386.h
1434 tmake_file=i386/t-i386bare
1435 thread_file='vxworks'
1440 tm_file=i386/i386-aout.h
1441 tmake_file=i386/t-i386bare
1444 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1446 xm_file=i386/xm-beos.h
1447 tmake_file='i386/t-beos i386/t-crtpic'
1448 tm_file=i386/beos-elf.h
1449 xmake_file=i386/x-beos
1450 extra_parts='crtbegin.o crtend.o'
1453 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1455 tm_file=i386/bsd386.h
1456 # tmake_file=t-libc-ok
1461 tm_file=i386/386bsd.h
1462 # tmake_file=t-libc-ok
1463 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1467 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1469 tm_file="i386/freebsd.h i386/perform.h"
1470 tmake_file=t-freebsd
1473 i[34567]86-*-freebsd*)
1475 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1476 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1477 tmake_file=t-freebsd
1481 case x${enable_threads} in
1482 xyes | xpthreads | xposix)
1484 tmake_file="${tmake_file} t-freebsd-thread"
1489 i[34567]86-*-netbsd*)
1491 tm_file=i386/netbsd.h
1496 i[34567]86-*-openbsd*)
1498 # we need collect2 until our bug is fixed...
1504 tm_file=i386/i386-coff.h
1505 tmake_file=i386/t-i386bare
1508 i[34567]86-*-isc*) # 80386 running ISC system
1510 xm_file="${xm_file} i386/xm-isc.h"
1511 xm_defines="USG SVR3"
1514 i[34567]86-*-isc[34]*)
1516 xmake_file=i386/x-isc3
1519 xmake_file=i386/x-isc
1522 if test x$gas = xyes -a x$stabs = xyes
1524 tm_file=i386/iscdbx.h
1525 tmake_file=i386/t-svr3dbx
1526 extra_parts="svr3.ifile svr3z.ifile"
1528 tm_file=i386/isccoff.h
1529 tmake_file=i386/t-crtstuff
1530 extra_parts="crtbegin.o crtend.o"
1532 tmake_file="$tmake_file i386/t-i386bare"
1533 install_headers_dir=install-headers-cpio
1536 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1537 changequote([,])dnl # with a.out format using
1539 xmake_file=x-linux-aout
1540 tmake_file="t-linux-aout i386/t-crtstuff"
1541 tm_file=i386/linux-oldld.h
1546 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1547 changequote([,])dnl # with a.out format
1548 xmake_file=x-linux-aout
1549 tmake_file="t-linux-aout i386/t-crtstuff"
1550 tm_file=i386/linux-aout.h
1555 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1556 changequote([,])dnl # with ELF format using the
1557 # GNU/Linux C library 5
1559 tm_file=i386/linux.h
1560 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1561 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1564 if test x$enable_threads = xyes; then
1565 thread_file='single'
1569 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1570 changequote([,])dnl # with ELF format using glibc 2
1571 # aka GNU/Linux C library 6
1573 tm_file=i386/linux.h
1574 tmake_file="t-linux i386/t-crtstuff"
1575 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1578 if test x$enable_threads = xyes; then
1588 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1590 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1594 i[34567]86-pc-msdosdjgpp*)
1596 xm_file=i386/xm-djgpp.h
1597 tm_file=i386/djgpp.h
1598 tmake_file=i386/t-djgpp
1599 xmake_file=i386/x-djgpp
1604 case $host in *pc-msdosdjgpp*)
1610 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1613 tmake_file=t-libc-ok
1618 i[34567]86-*-lynxos*)
1620 if test x$gas = xyes
1624 tm_file=i386/lynx-ng.h
1626 xm_file=i386/xm-lynx.h
1627 tmake_file=i386/t-i386bare
1634 # tmake_file=t-libc-ok
1638 i[34567]86-*-osfrose*) # 386 using OSF/rose
1640 if test x$elf = xyes
1642 tm_file=i386/osfelf.h
1645 tm_file=i386/osfrose.h
1648 xm_file="i386/xm-osf.h ${xm_file}"
1649 xmake_file=i386/x-osfrose
1650 tmake_file=i386/t-osf
1651 extra_objs=halfpic.o
1654 i[34567]86-go32-rtems*)
1657 xm_file=i386/xm-go32.h
1658 tm_file=i386/go32-rtems.h
1659 tmake_file="i386/t-go32 t-rtems"
1662 i[34567]86-*-rtemscoff*)
1665 tm_file=i386/rtems.h
1666 tmake_file="i386/t-i386bare t-rtems"
1669 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1672 tm_file=i386/rtemself.h
1673 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1674 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1677 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1679 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1680 xm_defines="USG SVR3"
1681 xmake_file=i386/x-sco5
1682 install_headers_dir=install-headers-cpio
1684 if test x$gas = xyes
1686 tm_file="i386/sco5gas.h ${tm_file}"
1687 tmake_file=i386/t-sco5gas
1689 tmake_file=i386/t-sco5
1691 tmake_file="$tmake_file i386/t-i386bare"
1692 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1695 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1697 xm_file="${xm_file} i386/xm-sco.h"
1698 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1699 xmake_file=i386/x-sco4
1700 install_headers_dir=install-headers-cpio
1701 if test x$stabs = xyes
1703 tm_file=i386/sco4dbx.h
1704 tmake_file=i386/t-svr3dbx
1705 extra_parts="svr3.ifile svr3z.rfile"
1708 tmake_file=i386/t-crtstuff
1709 extra_parts="crtbegin.o crtend.o"
1711 tmake_file="$tmake_file i386/t-i386bare"
1712 # The default EAFS filesystem supports long file names.
1713 # Truncating the target makes $host != $target which
1714 # makes gcc think it is doing a cross-compile.
1715 # truncate_target=yes
1718 i[34567]86-*-sco*) # 80386 running SCO system
1720 xm_file=i386/xm-sco.h
1721 xmake_file=i386/x-sco
1722 install_headers_dir=install-headers-cpio
1723 if test x$stabs = xyes
1725 tm_file=i386/scodbx.h
1726 tmake_file=i386/t-svr3dbx
1727 extra_parts="svr3.ifile svr3z.rfile"
1730 extra_parts="crtbegin.o crtend.o"
1731 tmake_file=i386/t-crtstuff
1733 tmake_file="$tmake_file i386/t-i386bare"
1737 i[34567]86-*-solaris2*)
1739 xm_file="xm-alloca.h ${xm_file}"
1740 xm_defines="USG POSIX SMALL_ARG_MAX"
1742 if test x$gas = xyes; then
1743 # Only needed if gas does not support -s
1744 tm_file="i386/sol2gas.h ${tm_file}"
1746 tmake_file="i386/t-i386bare i386/t-sol2"
1747 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1749 if test x${enable_threads} = x; then
1750 enable_threads=$have_pthread_h
1751 if test x${enable_threads} = x; then
1752 enable_threads=$have_thread_h
1755 if test x${enable_threads} = xyes; then
1756 if test x${have_pthread_h} = xyes; then
1759 thread_file='solaris'
1764 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1766 xm_file="xm-alloca.h ${xm_file}"
1767 xm_defines="USG POSIX"
1768 tm_file=i386/sysv5.h
1769 if test x$stabs = xyes
1771 tm_file="${tm_file} dbx.h"
1773 tmake_file="i386/t-i386bare i386/t-crtpic"
1775 extra_parts="crtbegin.o crtend.o"
1776 if test x$enable_threads = xyes; then
1781 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1783 xm_file="xm-alloca.h ${xm_file}"
1784 xm_defines="USG POSIX SMALL_ARG_MAX"
1785 tm_file=i386/sysv4.h
1786 if test x$stabs = xyes
1788 tm_file="${tm_file} dbx.h"
1790 tmake_file="i386/t-i386bare i386/t-crtpic"
1792 extra_parts="crtbegin.o crtend.o"
1795 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1797 xm_file="xm-alloca.h ${xm_file}"
1798 xm_defines="USG POSIX"
1800 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1802 extra_parts="crtbegin.o crtend.o"
1803 install_headers_dir=install-headers-cpio
1806 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1809 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1810 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1811 if test x$stabs = xyes
1813 tm_file=i386/osf1elfgdb.h
1815 tm_file=i386/osf1elf.h
1817 tmake_file=i386/t-osf1elf
1818 xmake_file=i386/x-osf1elf
1819 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1822 i[34567]86-*-sysv*) # Intel 80386's running system V
1824 xm_defines="USG SVR3"
1825 xmake_file=i386/x-sysv3
1826 if test x$gas = xyes
1828 if test x$stabs = xyes
1830 tm_file=i386/svr3dbx.h
1831 tmake_file=i386/t-svr3dbx
1832 extra_parts="svr3.ifile svr3z.rfile"
1834 tm_file=i386/svr3gas.h
1835 extra_parts="crtbegin.o crtend.o"
1836 tmake_file=i386/t-crtstuff
1839 tm_file=i386/sysv3.h
1840 extra_parts="crtbegin.o crtend.o"
1841 tmake_file=i386/t-crtstuff
1843 tmake_file="$tmake_file i386/t-crtpic"
1845 i386-*-vsta) # Intel 80386's running VSTa kernel
1846 xm_file="${xm_file} i386/xm-vsta.h"
1848 tmake_file=i386/t-vsta
1849 xmake_file=i386/x-vsta
1854 xm_file="${xm_file} i386/xm-cygwin.h"
1855 tmake_file=i386/t-cygwin
1856 tm_file=i386/win32.h
1857 xmake_file=i386/x-cygwin
1859 if test x$enable_threads = xyes; then
1865 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1867 xm_file="${xm_file} i386/xm-cygwin.h"
1868 tmake_file=i386/t-cygwin
1869 tm_file=i386/cygwin.h
1870 xmake_file=i386/x-cygwin
1872 if test x$enable_threads = xyes; then
1878 i[34567]86-*-mingw32*)
1880 tm_file=i386/mingw32.h
1881 xm_file="${xm_file} i386/xm-mingw32.h"
1882 tmake_file="i386/t-cygwin i386/t-mingw32"
1884 xmake_file=i386/x-cygwin
1885 if test x$enable_threads = xyes; then
1892 *minwg32crt* | *mingw32*)
1893 tm_file="${tm_file} i386/crtdll.h"
1901 xm_file="${xm_file} i386/xm-uwin.h"
1902 xm_defines="USG NO_STAB_H"
1903 tmake_file="i386/t-cygwin i386/t-uwin"
1905 xmake_file=i386/x-cygwin
1906 if test x$enable_threads = xyes; then
1912 i[34567]86-*-interix*)
1914 tm_file="i386/i386-interix.h interix.h"
1915 xm_file="i386/xm-i386-interix.h xm-interix.h"
1917 tmake_file="i386/t-interix"
1918 extra_objs=interix.o
1919 xmake_file=x-interix
1920 if test x$enable_threads = xyes ; then
1923 if test x$stabs = xyes ; then
1924 tm_file="${tm_file} dbxcoff.h"
1928 i[34567]86-*-winnt3*)
1930 tm_file=i386/win-nt.h
1931 out_file=i386/i386.c
1932 xm_file="xm-winnt.h ${xm_file}"
1933 xmake_file=winnt/x-winnt
1934 tmake_file=i386/t-winnt
1935 extra_host_objs="winnt.o oldnames.o"
1936 extra_gcc_objs="spawnv.o oldnames.o"
1937 if test x$gnu_ld != xyes
1939 extra_programs=ld.exe
1941 if test x$enable_threads = xyes; then
1946 i[34567]86-dg-dgux*)
1948 xm_file="xm-alloca.h ${xm_file}"
1949 xm_defines="USG POSIX"
1950 out_file=i386/dgux.c
1952 tmake_file=i386/t-dgux
1953 xmake_file=i386/x-dgux
1954 install_headers_dir=install-headers-cpio
1956 i860-alliant-*) # Alliant FX/2800
1957 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1958 xm_file="${xm_file}"
1959 xmake_file=i860/x-fx2800
1960 tmake_file=i860/t-fx2800
1961 extra_parts="crtbegin.o crtend.o"
1964 tm_file="${tm_file} i860/bsd.h"
1965 if test x$gas = xyes
1967 tm_file="${tm_file} i860/bsd-gas.h"
1972 tm_file="${tm_file} i860/mach.h"
1973 tmake_file=t-libc-ok
1975 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1976 tm_file="${tm_file} svr3.h i860/paragon.h"
1977 xm_defines="USG SVR3"
1981 tm_file="${tm_file} svr3.h i860/sysv3.h"
1982 xm_defines="USG SVR3"
1983 xmake_file=i860/x-sysv3
1984 extra_parts="crtbegin.o crtend.o"
1987 tm_file="${tm_file} svr4.h i860/sysv4.h"
1988 xm_defines="USG SVR3"
1989 xmake_file=i860/x-sysv4
1991 extra_parts="crtbegin.o crtend.o"
1993 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1994 tm_file="${tm_file} i960/vx960.h"
1995 tmake_file=i960/t-vxworks960
1997 thread_file='vxworks'
1999 i960-wrs-vxworks5* | i960-wrs-vxworks)
2000 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2001 tmake_file=i960/t-vxworks960
2003 thread_file='vxworks'
2006 tm_file="${tm_file} i960/vx960.h"
2007 tmake_file=i960/t-vxworks960
2009 thread_file='vxworks'
2012 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2013 tmake_file=i960/t-960bare
2017 tmake_file="i960/t-960bare t-rtems"
2018 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2021 i960-*-*) # Default i960 environment.
2026 tmake_file="ia64/t-ia64"
2027 target_cpu_default="0"
2028 if test x$gas = xyes
2030 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
2032 if test x$gnu_ld = xyes
2034 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
2039 tm_file=ia64/linux.h
2040 tmake_file="t-linux ia64/t-ia64"
2041 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
2042 if test x$enable_threads = xyes; then
2048 extra_parts="crtinit.o crtfini.o"
2050 m68000-convergent-sysv*)
2052 xm_file="m68k/xm-3b1.h ${xm_file}"
2055 extra_headers=math-68881.h
2057 m68000-hp-bsd*) # HP 9000/200 running BSD
2058 tm_file=m68k/hp2bsd.h
2059 xmake_file=m68k/x-hp2bsd
2061 extra_headers=math-68881.h
2063 m68000-hp-hpux*) # HP 9000 series 300
2064 xm_file="xm-alloca.h ${xm_file}"
2066 if test x$gas = xyes
2068 xmake_file=m68k/x-hp320g
2069 tm_file=m68k/hp310g.h
2071 xmake_file=m68k/x-hp320
2072 tm_file=m68k/hp310.h
2074 install_headers_dir=install-headers-cpio
2076 extra_headers=math-68881.h
2081 extra_headers=math-68881.h
2084 tm_file=m68k/sun2o4.h
2086 extra_headers=math-68881.h
2089 xm_file="m68k/xm-3b1.h ${xm_file}"
2091 if test x$gas = xyes
2098 extra_headers=math-68881.h
2100 m68k-apple-aux*) # Apple Macintosh running A/UX
2101 xm_defines="USG AUX"
2102 tmake_file=m68k/t-aux
2103 install_headers_dir=install-headers-cpio
2104 extra_headers=math-68881.h
2105 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2107 if test "$gnu_ld" = yes
2109 tm_file="${tm_file} m68k/auxgld.h"
2111 tm_file="${tm_file} m68k/auxld.h"
2113 if test "$gas" = yes
2115 tm_file="${tm_file} m68k/auxgas.h"
2117 tm_file="${tm_file} m68k/auxas.h"
2119 tm_file="${tm_file} m68k/a-ux.h"
2123 tm_file=m68k/apollo68.h
2124 xmake_file=m68k/x-apollo68
2126 extra_headers=math-68881.h
2129 m68k-altos-sysv*) # Altos 3068
2130 if test x$gas = xyes
2132 tm_file=m68k/altos3068.h
2135 echo "The Altos is supported only with the GNU assembler" 1>&2
2138 extra_headers=math-68881.h
2140 m68k-bull-sysv*) # Bull DPX/2
2141 if test x$gas = xyes
2143 if test x$stabs = xyes
2145 tm_file=m68k/dpx2cdbx.h
2147 tm_file=m68k/dpx2g.h
2152 xm_file="xm-alloca.h ${xm_file}"
2154 xmake_file=m68k/x-dpx2
2156 extra_headers=math-68881.h
2158 m68k-atari-sysv4*) # Atari variant of V.4.
2159 tm_file=m68k/atari.h
2160 xm_file="xm-alloca.h ${xm_file}"
2161 xm_defines="USG FULL_PROTOTYPES"
2163 extra_parts="crtbegin.o crtend.o"
2164 extra_headers=math-68881.h
2167 m68k-motorola-sysv*)
2168 tm_file=m68k/mot3300.h
2169 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2170 if test x$gas = xyes
2172 xmake_file=m68k/x-mot3300-gas
2173 if test x$gnu_ld = xyes
2175 tmake_file=m68k/t-mot3300-gald
2177 tmake_file=m68k/t-mot3300-gas
2181 xmake_file=m68k/x-mot3300
2182 if test x$gnu_ld = xyes
2184 tmake_file=m68k/t-mot3300-gld
2186 tmake_file=m68k/t-mot3300
2190 gdb_needs_out_file_path=yes
2191 extra_parts="crt0.o mcrt0.o"
2192 extra_headers=math-68881.h
2195 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2196 tm_file=m68k/tower-as.h
2197 xm_defines="USG SVR3"
2198 xmake_file=m68k/x-tower
2199 extra_parts="crtbegin.o crtend.o"
2200 extra_headers=math-68881.h
2203 tm_file=m68k/plexus.h
2204 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2207 extra_headers=math-68881.h
2211 xm_file="xm-alloca.h ${xm_file}"
2213 extra_headers=math-68881.h
2216 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2217 xm_defines="USG unos"
2218 xmake_file=m68k/x-crds
2221 extra_headers=math-68881.h
2223 m68k-cbm-sysv4*) # Commodore variant of V.4.
2225 xm_file="xm-alloca.h ${xm_file}"
2226 xm_defines="USG FULL_PROTOTYPES"
2227 xmake_file=m68k/x-amix
2229 extra_parts="crtbegin.o crtend.o"
2230 extra_headers=math-68881.h
2234 tm_file=m68k/ccur-GAS.h
2235 xmake_file=m68k/x-ccur
2236 extra_headers=math-68881.h
2240 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2241 tm_file=m68k/hp3bsd44.h
2242 xmake_file=m68k/x-hp3bsd44
2244 extra_headers=math-68881.h
2247 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2248 tm_file=m68k/hp3bsd.h
2250 extra_headers=math-68881.h
2254 if test x$with_fp = xno
2256 tm_file=m68k/isi-nfp.h
2262 extra_headers=math-68881.h
2264 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2265 xm_file="xm-alloca.h ${xm_file}"
2267 if test x$gas = xyes
2269 xmake_file=m68k/x-hp320g
2270 tm_file=m68k/hp320g.h
2272 xmake_file=m68k/x-hp320
2273 tm_file=m68k/hpux7.h
2275 install_headers_dir=install-headers-cpio
2277 extra_headers=math-68881.h
2280 m68k-hp-hpux*) # HP 9000 series 300
2281 xm_file="xm-alloca.h ${xm_file}"
2283 if test x$gas = xyes
2285 xmake_file=m68k/x-hp320g
2286 tm_file=m68k/hp320g.h
2288 xmake_file=m68k/x-hp320
2289 tm_file=m68k/hp320.h
2291 install_headers_dir=install-headers-cpio
2293 extra_headers=math-68881.h
2297 tm_file=m68k/sun3mach.h
2299 extra_headers=math-68881.h
2303 if test x$gas = xyes
2305 tm_file=m68k/news3gas.h
2307 tm_file=m68k/news3.h
2310 extra_headers=math-68881.h
2313 m68k-sony-bsd* | m68k-sony-newsos*)
2314 if test x$gas = xyes
2316 tm_file=m68k/newsgas.h
2321 extra_headers=math-68881.h
2324 m68k-next-nextstep2*)
2325 tm_file=m68k/next21.h
2326 xm_file="m68k/xm-next.h ${xm_file}"
2327 tmake_file=m68k/t-next
2328 xmake_file=m68k/x-next
2329 extra_objs=nextstep.o
2330 extra_headers=math-68881.h
2335 m68k-next-nextstep[34]*)
2338 xm_file="m68k/xm-next.h ${xm_file}"
2339 tmake_file=m68k/t-next
2340 xmake_file=m68k/x-next
2341 extra_objs=nextstep.o
2342 extra_parts="crtbegin.o crtend.o"
2343 extra_headers=math-68881.h
2345 if test x$enable_threads = xyes; then
2350 if test x$with_fp = xno
2352 tm_file=m68k/sun3n3.h
2354 tm_file=m68k/sun3o3.h
2358 extra_headers=math-68881.h
2360 m68k-sun-sunos*) # For SunOS 4 (the default).
2361 if test x$with_fp = xno
2363 tm_file=m68k/sun3n.h
2369 extra_headers=math-68881.h
2372 tm_file=m68k/vxm68k.h
2373 tmake_file=m68k/t-vxworks68
2374 extra_headers=math-68881.h
2375 thread_file='vxworks'
2379 tmake_file=m68k/t-m68kbare
2380 tm_file="m68k/m68k-aout.h libgloss.h"
2381 extra_headers=math-68881.h
2385 tmake_file=m68k/t-m68kbare
2386 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2387 extra_headers=math-68881.h
2390 m68020-*-elf* | m68k-*-elf*)
2391 tm_file="m68k/m68020-elf.h"
2392 xm_file=m68k/xm-m68kv.h
2393 tmake_file=m68k/t-m68kelf
2394 header_files=math-68881.h
2397 if test x$gas = xyes
2401 tm_file=m68k/lynx-ng.h
2403 xm_file=m68k/xm-lynx.h
2405 tmake_file=m68k/t-lynx
2406 extra_headers=math-68881.h
2410 tm_file=m68k/netbsd.h
2417 # we need collect2 until our bug is fixed...
2420 m68k-*-sysv3*) # Motorola m68k's running system V.3
2421 xm_file="xm-alloca.h ${xm_file}"
2423 xmake_file=m68k/x-m68kv
2424 extra_parts="crtbegin.o crtend.o"
2425 extra_headers=math-68881.h
2428 m68k-*-sysv4*) # Motorola m68k's running system V.4
2429 tm_file=m68k/m68kv4.h
2430 xm_file="xm-alloca.h ${xm_file}"
2433 extra_parts="crtbegin.o crtend.o"
2434 extra_headers=math-68881.h
2437 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2440 tm_file=m68k/linux-aout.h
2441 tmake_file="t-linux-aout m68k/t-linux-aout"
2442 extra_headers=math-68881.h
2446 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2447 # with ELF format using the
2448 # GNU/Linux C library 5
2450 tm_file=m68k/linux.h
2451 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2452 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2453 extra_headers=math-68881.h
2457 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2458 # with ELF format using glibc 2
2459 # aka the GNU/Linux C library 6.
2461 tm_file=m68k/linux.h
2462 tmake_file="t-linux m68k/t-linux"
2463 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2464 extra_headers=math-68881.h
2467 if test x$enable_threads = xyes; then
2472 tmake_file=m68k/t-m68kbare
2473 tm_file=m68k/m68k-psos.h
2474 extra_headers=math-68881.h
2478 tmake_file="m68k/t-m68kbare t-rtems"
2479 tm_file=m68k/rtems.h
2480 extra_headers=math-68881.h
2483 m68k-*-rtemself*|m68k-*-rtems*)
2484 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2485 tm_file=m68k/rtemself.h
2486 extra_headers=math-68881.h
2492 tm_file=m88k/dguxbcs.h
2493 tmake_file=m88k/t-dguxbcs
2497 tmake_file=m88k/t-dgux
2500 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2501 xmake_file=m88k/x-dgux
2502 if test x$gas = xyes
2504 tmake_file=m88k/t-dgux-gas
2507 m88k-dolphin-sysv3*)
2508 tm_file=m88k/dolph.h
2509 extra_parts="crtbegin.o crtend.o"
2510 xm_file="m88k/xm-sysv3.h ${xm_file}"
2511 xmake_file=m88k/x-dolph
2512 if test x$gas = xyes
2514 tmake_file=m88k/t-m88k-gas
2517 m88k-tektronix-sysv3)
2518 tm_file=m88k/tekXD88.h
2519 extra_parts="crtbegin.o crtend.o"
2520 xm_file="m88k/xm-sysv3.h ${xm_file}"
2521 xmake_file=m88k/x-tekXD88
2522 if test x$gas = xyes
2524 tmake_file=m88k/t-m88k-gas
2528 tm_file=m88k/m88k-aout.h
2531 tm_file=m88k/m88k-coff.h
2532 tmake_file=m88k/t-bug
2536 extra_parts="crtbegin.o crtend.o"
2537 if test x$gas = xyes
2539 tmake_file=m88k/t-luna-gas
2541 tmake_file=m88k/t-luna
2545 tmake_file="${tmake_file} m88k/t-luna-gas"
2546 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2547 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2550 tm_file=m88k/sysv3.h
2551 extra_parts="crtbegin.o crtend.o"
2552 xm_file="m88k/xm-sysv3.h ${xm_file}"
2553 xmake_file=m88k/x-sysv3
2554 if test x$gas = xyes
2556 tmake_file=m88k/t-m88k-gas
2560 tm_file=m88k/sysv4.h
2561 extra_parts="crtbegin.o crtend.o"
2562 xmake_file=m88k/x-sysv4
2563 tmake_file=m88k/t-sysv4
2566 tm_file=mcore/mcore-elf.h
2567 tmake_file=mcore/t-mcore
2570 tm_file=mcore/mcore-pe.h
2571 tmake_file=mcore/t-mcore-pe
2573 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2574 if test "x$gnu_ld" = xyes
2576 tm_file="mips/iris6.h mips/iris6gld.h"
2578 tm_file=mips/iris6.h
2580 tmake_file=mips/t-iris6
2581 xm_file=mips/xm-iris6.h
2582 xmake_file=mips/x-iris6
2583 # if test x$enable_threads = xyes; then
2584 # thread_file='irix'
2588 tm_file="mips/elf.h mips/vxworks.h"
2589 tmake_file=mips/t-ecoff
2592 extra_parts="crtbegin.o crtend.o"
2593 thread_file='vxworks'
2595 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2596 tm_file="mips/iris6.h mips/cross64.h"
2598 xm_file="mips/xm-iris5.h"
2599 xmake_file=mips/x-iris
2600 tmake_file=mips/t-cross64
2601 # See comment in mips/iris[56].h files.
2603 # if test x$enable_threads = xyes; then
2604 # thread_file='irix'
2608 if test x$gas = xyes
2610 if test x$stabs = xyes
2612 tm_file=mips/iris5gdb.h
2614 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2617 tm_file=mips/sni-svr4.h
2620 xmake_file=mips/x-sni-svr4
2621 tmake_file=mips/t-mips-gas
2622 if test x$gnu_ld != xyes
2627 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2628 if test x$gas = xyes
2630 tm_file="mips/iris5.h mips/iris5gas.h"
2631 if test x$stabs = xyes
2633 tm_file="${tm_file} dbx.h"
2636 tm_file=mips/iris5.h
2639 xm_file="mips/xm-iris5.h"
2640 xmake_file=mips/x-iris
2641 # mips-tfile doesn't work yet
2642 tmake_file=mips/t-mips-gas
2643 # See comment in mips/iris5.h file.
2645 # if test x$enable_threads = xyes; then
2646 # thread_file='irix'
2649 mips-sgi-irix4loser*) # Mostly like a MIPS.
2650 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2651 if test x$stabs = xyes; then
2652 tm_file="${tm_file} dbx.h"
2655 xmake_file=mips/x-iris
2656 if test x$gas = xyes
2658 tmake_file=mips/t-mips-gas
2660 extra_passes="mips-tfile mips-tdump"
2662 if test x$gnu_ld != xyes
2666 # if test x$enable_threads = xyes; then
2667 # thread_file='irix'
2670 mips-sgi-irix4*) # Mostly like a MIPS.
2671 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2672 if test x$stabs = xyes; then
2673 tm_file="${tm_file} dbx.h"
2676 xmake_file=mips/x-iris
2677 if test x$gas = xyes
2679 tmake_file=mips/t-mips-gas
2681 extra_passes="mips-tfile mips-tdump"
2683 if test x$gnu_ld != xyes
2687 # if test x$enable_threads = xyes; then
2688 # thread_file='irix'
2691 mips-sgi-*) # Mostly like a MIPS.
2692 tm_file="mips/iris3.h ${tm_file}"
2693 if test x$stabs = xyes; then
2694 tm_file="${tm_file} dbx.h"
2697 xmake_file=mips/x-iris3
2698 if test x$gas = xyes
2700 tmake_file=mips/t-mips-gas
2702 extra_passes="mips-tfile mips-tdump"
2704 if test x$gnu_ld != xyes
2709 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2710 tm_file="mips/osfrose.h ${tm_file}"
2711 xmake_file=mips/x-osfrose
2712 tmake_file=mips/t-osfrose
2713 extra_objs=halfpic.o
2716 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2717 tm_file=mips/dec-osf1.h
2718 if test x$stabs = xyes; then
2719 tm_file="${tm_file} dbx.h"
2721 xmake_file=mips/x-dec-osf1
2722 if test x$gas = xyes
2724 tmake_file=mips/t-mips-gas
2726 tmake_file=mips/t-ultrix
2727 extra_passes="mips-tfile mips-tdump"
2729 if test x$gnu_ld != xyes
2734 mips-dec-bsd*) # Decstation running 4.4 BSD
2735 tm_file=mips/dec-bsd.h
2736 if test x$gas = xyes
2738 tmake_file=mips/t-mips-gas
2740 tmake_file=mips/t-ultrix
2741 extra_passes="mips-tfile mips-tdump"
2743 if test x$gnu_ld != xyes
2748 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2749 tm_file=mips/netbsd.h
2750 # On NetBSD, the headers are already okay, except for math.h.
2753 mips*-*-linux*) # Linux MIPS, either endian.
2756 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2757 *) tm_file="mips/elf.h mips/linux.h" ;;
2760 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2763 if test x$enable_threads = xyes; then
2767 mips*el-*-openbsd*) # mips little endian
2768 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2770 mips*-*-openbsd*) # mips big endian
2771 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2772 tm_file="mips/openbsd-be.h ${tm_file}"
2774 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2775 tm_file="mips/news4.h ${tm_file}"
2776 if test x$stabs = xyes; then
2777 tm_file="${tm_file} dbx.h"
2779 if test x$gas = xyes
2781 tmake_file=mips/t-mips-gas
2783 extra_passes="mips-tfile mips-tdump"
2785 if test x$gnu_ld != xyes
2789 xmake_file=mips/x-sony
2791 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2792 # That is based on svr4.
2793 # t-svr4 is not right because this system doesn't use ELF.
2794 tm_file="mips/news5.h ${tm_file}"
2795 if test x$stabs = xyes; then
2796 tm_file="${tm_file} dbx.h"
2799 if test x$gas = xyes
2801 tmake_file=mips/t-mips-gas
2803 extra_passes="mips-tfile mips-tdump"
2805 if test x$gnu_ld != xyes
2810 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2811 tm_file="mips/svr4-5.h mips/svr4-t.h"
2812 if test x$stabs = xyes; then
2813 tm_file="${tm_file} dbx.h"
2816 xmake_file=mips/x-sysv
2817 if test x$gas = xyes
2819 tmake_file=mips/t-mips-gas
2820 extra_parts="crtbegin.o crtend.o"
2822 tmake_file=mips/t-mips
2823 extra_passes="mips-tfile mips-tdump"
2825 if test x$gnu_ld != xyes
2830 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2831 tm_file="mips/ultrix.h ${tm_file}"
2832 if test x$stabs = xyes; then
2833 tm_file="${tm_file} dbx.h"
2835 xmake_file=mips/x-ultrix
2836 if test x$gas = xyes
2838 tmake_file=mips/t-mips-gas
2840 tmake_file=mips/t-ultrix
2841 extra_passes="mips-tfile mips-tdump"
2843 if test x$gnu_ld != xyes
2849 mips-*-riscos[56789]bsd*)
2851 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2852 if test x$stabs = xyes; then
2853 tm_file="${tm_file} dbx.h"
2855 if test x$gas = xyes
2857 tmake_file=mips/t-bsd-gas
2859 tmake_file=mips/t-bsd
2860 extra_passes="mips-tfile mips-tdump"
2862 if test x$gnu_ld != xyes
2868 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2870 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2871 if test x$stabs = xyes; then
2872 tm_file="${tm_file} dbx.h"
2874 if test x$gas = xyes
2876 tmake_file=mips/t-bsd-gas
2878 tmake_file=mips/t-bsd
2879 extra_passes="mips-tfile mips-tdump"
2881 if test x$gnu_ld != xyes
2887 mips-*-riscos[56789]sysv4*)
2889 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2890 if test x$stabs = xyes; then
2891 tm_file="${tm_file} dbx.h"
2893 xmake_file=mips/x-sysv
2894 if test x$gas = xyes
2896 tmake_file=mips/t-svr4-gas
2898 tmake_file=mips/t-svr4
2899 extra_passes="mips-tfile mips-tdump"
2901 if test x$gnu_ld != xyes
2907 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2909 tm_file="mips/svr4-4.h ${tm_file}"
2910 if test x$stabs = xyes; then
2911 tm_file="${tm_file} dbx.h"
2914 xmake_file=mips/x-sysv
2915 if test x$gas = xyes
2917 tmake_file=mips/t-svr4-gas
2919 tmake_file=mips/t-svr4
2920 extra_passes="mips-tfile mips-tdump"
2922 if test x$gnu_ld != xyes
2928 mips-*-riscos[56789]sysv*)
2930 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2931 if test x$stabs = xyes; then
2932 tm_file="${tm_file} dbx.h"
2935 xmake_file=mips/x-sysv
2936 if test x$gas = xyes
2938 tmake_file=mips/t-svr3-gas
2940 tmake_file=mips/t-svr3
2941 extra_passes="mips-tfile mips-tdump"
2943 if test x$gnu_ld != xyes
2948 mips-*-sysv* | mips-*-riscos*sysv*)
2949 tm_file="mips/svr3-4.h ${tm_file}"
2950 if test x$stabs = xyes; then
2951 tm_file="${tm_file} dbx.h"
2954 xmake_file=mips/x-sysv
2955 if test x$gas = xyes
2957 tmake_file=mips/t-svr3-gas
2959 tmake_file=mips/t-svr3
2960 extra_passes="mips-tfile mips-tdump"
2962 if test x$gnu_ld != xyes
2968 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2970 tm_file=mips/mips-5.h
2971 if test x$stabs = xyes; then
2972 tm_file="${tm_file} dbx.h"
2974 if test x$gas = xyes
2976 tmake_file=mips/t-mips-gas
2978 extra_passes="mips-tfile mips-tdump"
2980 if test x$gnu_ld != xyes
2988 tm_file=mips/ecoffl.h
2989 if test x$stabs = xyes; then
2990 tm_file="${tm_file} dbx.h"
2992 tmake_file=mips/t-ecoff
2995 tm_file="gofast.h mips/ecoff.h"
2996 if test x$stabs = xyes; then
2997 tm_file="${tm_file} dbx.h"
2999 tmake_file=mips/t-ecoff
3002 tm_file="mips/elfl.h"
3003 tmake_file=mips/t-elf
3006 tm_file="mips/elf.h"
3007 tmake_file=mips/t-elf
3010 tm_file="mips/elfl64.h"
3011 tmake_file=mips/t-elf
3013 mips64orionel-*-elf*)
3014 tm_file="mips/elforion.h mips/elfl64.h"
3015 tmake_file=mips/t-elf
3018 tm_file="mips/elf64.h"
3019 tmake_file=mips/t-elf
3022 tm_file="mips/elforion.h mips/elf64.h"
3023 tmake_file=mips/t-elf
3025 mips64orion-*-rtems*)
3026 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
3027 tmake_file="mips/t-elf t-rtems"
3030 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
3031 tmake_file=mips/t-r3900
3034 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
3035 tmake_file=mips/t-r3900
3037 mips-*-*) # Default MIPS RISC-OS 4.0.
3038 if test x$stabs = xyes; then
3039 tm_file="${tm_file} dbx.h"
3041 if test x$gas = xyes
3043 tmake_file=mips/t-mips-gas
3045 extra_passes="mips-tfile mips-tdump"
3047 if test x$gnu_ld != xyes
3055 tm_file="mn10200/mn10200.h"
3056 if test x$stabs = xyes
3058 tm_file="${tm_file} dbx.h"
3064 tm_file="mn10300/mn10300.h"
3065 if test x$stabs = xyes
3067 tm_file="${tm_file} dbx.h"
3072 tm_file=ns32k/encore.h
3076 tm_file=ns32k/sequent.h
3080 tm_file=ns32k/tek6100.h
3084 tm_file=ns32k/tek6200.h
3087 # This has not been updated to GCC 2.
3090 # xmake_file=ns32k/x-genix
3091 # tm_file=ns32k/genix.h
3095 tm_file=ns32k/merlin.h
3099 tm_file=ns32k/pc532-mach.h
3103 tm_file=ns32k/pc532-min.h
3104 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3109 tm_file=ns32k/netbsd.h
3110 xm_file="ns32k/xm-netbsd.h ${xm_file}"
3111 # On NetBSD, the headers are already okay, except for math.h.
3116 tm_file="${tm_file} pdp11/2bsd.h"
3125 # This has not been updated to GCC 2.
3128 # xmake_file=pyr/x-pyr
3133 tm_file="svr4.h pj/linux.h ${tm_file}"
3138 tm_file="svr4.h pj/pjl.h ${tm_file}"
3145 xmake_file=romp/x-mach
3152 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3156 tm_file=rs6000/beos.h
3157 xm_file=rs6000/xm-beos.h
3158 tmake_file=rs6000/t-beos
3159 xmake_file=rs6000/x-beos
3162 tm_file=rs6000/sysv4.h
3163 xm_file="rs6000/xm-sysv4.h"
3164 xm_defines="USG POSIX"
3165 extra_headers=ppc-asm.h
3166 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3167 xmake_file=rs6000/x-sysv4
3170 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3171 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3172 extra_headers=ppc-asm.h
3175 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3176 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3177 extra_headers=ppc-asm.h
3180 tm_file="rs6000/sysv4.h"
3181 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3182 extra_headers=ppc-asm.h
3185 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3186 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3187 extra_headers=ppc-asm.h
3190 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3191 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3192 extra_headers=ppc-asm.h
3194 powerpc-*-linux*libc1)
3195 tm_file="rs6000/sysv4.h rs6000/linux.h"
3196 xm_file=rs6000/xm-sysv4.h
3197 out_file=rs6000/rs6000.c
3198 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3200 extra_headers=ppc-asm.h
3201 if test x$enable_threads = xyes; then
3206 tm_file="rs6000/sysv4.h rs6000/linux.h"
3207 xm_file="rs6000/xm-sysv4.h"
3208 xm_defines="USG ${xm_defines}"
3209 out_file=rs6000/rs6000.c
3210 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3212 extra_headers=ppc-asm.h
3213 if test x$enable_threads = xyes; then
3217 powerpc-wrs-vxworks*)
3219 xm_file="rs6000/xm-sysv4.h"
3220 xm_defines="USG POSIX"
3221 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3222 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3223 extra_headers=ppc-asm.h
3224 thread_file='vxworks'
3226 powerpcle-wrs-vxworks*)
3228 xm_file="rs6000/xm-sysv4.h"
3229 xm_defines="USG POSIX"
3230 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3231 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3232 extra_headers=ppc-asm.h
3233 thread_file='vxworks'
3236 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3237 xm_file="rs6000/xm-sysv4.h"
3238 xm_defines="USG POSIX"
3239 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3240 xmake_file=rs6000/x-sysv4
3241 extra_headers=ppc-asm.h
3244 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3245 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3246 extra_headers=ppc-asm.h
3248 powerpcle-*-eabisim*)
3249 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3250 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3251 extra_headers=ppc-asm.h
3254 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3255 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3256 extra_headers=ppc-asm.h
3258 powerpcle-*-solaris2*)
3259 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3260 xm_file="rs6000/xm-sysv4.h"
3261 xm_defines="USG POSIX"
3262 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3263 xmake_file=rs6000/x-sysv4
3264 extra_headers=ppc-asm.h
3267 rs6000-ibm-aix3.[01]*)
3269 tm_file=rs6000/aix31.h
3270 xmake_file=rs6000/x-aix31
3275 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3277 tm_file=rs6000/aix3newas.h
3278 if test x$host != x$target
3280 tmake_file=rs6000/t-xnewas
3282 tmake_file=rs6000/t-newas
3288 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3290 tm_file=rs6000/aix41.h
3291 if test x$host != x$target
3293 tmake_file=rs6000/t-xnewas
3295 tmake_file=rs6000/t-newas
3297 if test "$gnu_ld" = yes
3299 xmake_file=rs6000/x-aix41-gld
3301 tmake_file='rs6000/t-newas rs6000/t-aix41'
3303 xmake_file=rs6000/x-aix41
3308 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3310 tm_file=rs6000/aix43.h
3311 tmake_file=rs6000/t-aix43
3312 xmake_file=rs6000/x-aix41
3317 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3319 tm_file=rs6000/aix43.h
3320 tmake_file=rs6000/t-aix43
3321 xmake_file=rs6000/x-aix41
3334 tm_file=rs6000/mach.h
3335 xm_file="${xm_file} rs6000/xm-mach.h"
3336 xmake_file=rs6000/x-mach
3340 tm_file=rs6000/lynx.h
3341 xm_file=rs6000/xm-lynx.h
3342 tmake_file=rs6000/t-rs6000
3343 xmake_file=rs6000/x-lynx
3347 tm_file="sh/sh.h sh/elf.h"
3351 tmake_file="sh/t-sh t-rtems"
3352 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
3356 tmake_file="sh/t-sh t-rtems"
3357 tm_file="sh/sh.h sh/rtems.h"
3365 xm_file="xm-alloca.h ${xm_file}"
3368 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3369 tm_file=sparc/vxsparc.h
3370 tmake_file=sparc/t-vxsparc
3372 thread_file='vxworks'
3375 tmake_file=sparc/t-sparcbare
3376 tm_file="sparc/aout.h libgloss.h"
3379 tm_file=sparc/netbsd.h
3384 # we need collect2 until our bug is fixed...
3392 tmake_file=sparc/t-elf
3393 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3397 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
3398 xm_file="${xm_file} sparc/xm-linux.h"
3399 tm_file=sparc/linux-aout.h
3403 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
3404 xm_file="${xm_file} sparc/xm-linux.h"
3406 tm_file=sparc/linux.h
3407 tmake_file="t-linux t-linux-gnulibc1"
3408 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3412 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
3413 xm_file="${xm_file} sparc/xm-linux.h"
3415 tm_file=sparc/linux.h
3416 tmake_file="t-linux"
3417 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3419 if test x$enable_threads = xyes; then
3425 if test x$gas = xyes
3427 tm_file=sparc/lynx.h
3429 tm_file=sparc/lynx-ng.h
3431 xm_file=sparc/xm-lynx.h
3432 tmake_file=sparc/t-sunos41
3436 tmake_file="sparc/t-sparcbare t-rtems"
3437 tm_file=sparc/rtems.h
3439 sparc-*-rtems*|sparc-*-rtemself*)
3440 tm_file="sparc/rtemself.h"
3441 tmake_file="sparc/t-elf t-rtems"
3442 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3446 sparcv9-*-solaris2*)
3447 if test x$gnu_ld = xyes
3449 tm_file=sparc/sol2-64.h
3451 tm_file=sparc/sol2-sld-64.h
3453 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3454 xm_defines="USG POSIX"
3455 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3456 xmake_file=sparc/x-sysv4
3457 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3459 if test x${enable_threads} = x ; then
3460 enable_threads=$have_pthread_h
3461 if test x${enable_threads} = x ; then
3462 enable_threads=$have_thread_h
3465 if test x${enable_threads} = xyes ; then
3466 if test x${have_pthread_h} = xyes ; then
3469 thread_file='solaris'
3473 sparc-hal-solaris2*)
3474 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3475 xm_defines="USG POSIX"
3476 tm_file="sparc/sol2.h sparc/hal.h"
3477 tmake_file="sparc/t-halos sparc/t-sol2"
3478 xmake_file=sparc/x-sysv4
3479 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3490 thread_file='solaris'
3493 if test x$gnu_ld = xyes
3495 tm_file=sparc/sol2.h
3497 tm_file=sparc/sol2-sld.h
3499 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3500 xm_defines="USG POSIX"
3501 tmake_file=sparc/t-sol2
3502 xmake_file=sparc/x-sysv4
3503 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3506 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3509 if test x$gnu_ld = xyes
3511 tm_file=sparc/sol2-64.h
3513 tm_file=sparc/sol2-sld-64.h
3515 tmake_file="$tmake_file sparc/t-sol2-64"
3528 if test x${enable_threads} = x; then
3529 enable_threads=$have_pthread_h
3530 if test x${enable_threads} = x; then
3531 enable_threads=$have_thread_h
3534 if test x${enable_threads} = xyes; then
3535 if test x${have_pthread_h} = xyes; then
3538 thread_file='solaris'
3543 tm_file=sparc/sunos4.h
3544 tmake_file=sparc/t-sunos40
3548 tm_file=sparc/sunos4.h
3549 tmake_file=sparc/t-sunos41
3551 if test x$gas = xyes; then
3552 tm_file="${tm_file} sparc/sun4gas.h"
3556 tm_file=sparc/sun4o3.h
3560 tm_file=sparc/sysv4.h
3561 xm_file="sparc/xm-sysv4.h"
3562 xm_defines="USG POSIX"
3564 xmake_file=sparc/x-sysv4
3565 extra_parts="crtbegin.o crtend.o"
3568 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3569 xm_defines="USG POSIX"
3570 tm_file=sparc/vxsim.h
3571 tmake_file=sparc/t-vxsparc
3572 xmake_file=sparc/x-sysv4
3575 tm_file="sparc/splet.h libgloss.h"
3576 tmake_file=sparc/t-splet
3579 tm_file="sparc/litecoff.h libgloss.h"
3580 tmake_file=sparc/t-sparclite
3583 tm_file="sparc/lite.h aoutos.h libgloss.h"
3584 tmake_file=sparc/t-sparclite
3587 tm_file="sparc/liteelf.h"
3588 tmake_file=sparc/t-sparclite
3589 extra_parts="crtbegin.o crtend.o"
3592 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3593 tmake_file=sparc/t-sp86x
3596 tm_file="sparc/sp86x-elf.h"
3597 tmake_file=sparc/t-sp86x
3598 extra_parts="crtbegin.o crtend.o"
3601 tmake_file=sparc/t-sp64
3602 tm_file=sparc/sp64-aout.h
3605 tmake_file=sparc/t-sp64
3606 tm_file=sparc/sp64-elf.h
3607 extra_parts="crtbegin.o crtend.o"
3609 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3610 tmake_file="t-linux sparc/t-linux64"
3611 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3612 tm_file=sparc/linux64.h
3614 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3616 if test x$enable_threads = xyes; then
3621 # This hasn't been upgraded to GCC 2.
3622 # tahoe-harris-*) # Harris tahoe, using COFF.
3623 # tm_file=tahoe/harris.h
3625 # tahoe-*-bsd*) # tahoe running BSD
3630 *** The Thumb targets have been depreciated. The equivalent
3631 *** ARM based toolchain can now generated Thumb instructions
3632 *** when the -mthumb switch is given to the compiler.])
3634 # This hasn't been upgraded to GCC 2.
3641 tm_file="v850/rtems.h"
3642 xm_file="v850/xm-v850.h"
3643 tmake_file="v850/t-v850 t-rtems"
3644 if test x$stabs = xyes
3646 tm_file="${tm_file} dbx.h"
3651 target_cpu_default="TARGET_CPU_generic"
3653 tm_file="v850/v850.h"
3654 xm_file="v850/xm-v850.h"
3655 tmake_file=v850/t-v850
3656 if test x$stabs = xyes
3658 tm_file="${tm_file} dbx.h"
3662 vax-*-bsd*) # vaxen running BSD
3666 vax-*-sysv*) # vaxen running system V
3667 tm_file="${tm_file} vax/vaxv.h"
3672 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3678 tmake_file="${tmake_file} vax/t-openbsd"
3679 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3680 xm_file="xm-openbsd.h vax/xm-vax.h"
3684 vax-*-ultrix*) # vaxen running ultrix
3685 tm_file="${tm_file} vax/ultrix.h"
3688 vax-*-vms*) # vaxen running VMS
3689 xm_file=vax/xm-vms.h
3693 vax-*-*) # vax default entry
3697 xm_file="${xm_file} xm-svr3"
3701 echo "Configuration $machine not supported" 1>&2
3708 ;; # Existing GNU/Linux systems do not use the GNU setup.
3710 # On the GNU system, the setup is just about the same on
3711 # each different CPU. The specific machines that GNU
3712 # supports are matched above and just set $cpu_type.
3713 xm_file="xm-gnu.h ${xm_file}"
3714 tm_file=${cpu_type}/gnu.h
3715 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3716 # GNU always uses ELF.
3718 # GNU tools are the only tools.
3721 xmake_file=x-linux # These details are the same as Linux.
3722 tmake_file=t-gnu # These are not.
3725 xmake_try_sysv=x-sysv
3726 install_headers_dir=install-headers-cpio
3729 install_headers_dir=install-headers-cpio
3733 # Distinguish i[34567]86
3734 # Also, do not run mips-tfile on MIPS if using gas.
3735 # Process --with-cpu= for PowerPC/rs6000
3736 target_cpu_default2=
3739 target_cpu_default2=1
3742 case $target_alias in
3744 target_cpu_default2=4
3747 target_cpu_default2=2
3751 i686-*-* | i786-*-*)
3752 target_cpu_default2=3
3759 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3762 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3765 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3768 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3771 target_cpu_default2="MASK_CPU_EV5"
3775 if test x$gas = xyes
3777 if test "$target_cpu_default2" = ""
3779 target_cpu_default2="MASK_GAS"
3781 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3786 case "x$with_cpu" in
3789 target_cpu_default2="TARGET_CPU_generic"
3792 # Distinguish cores, and major variants
3793 # arm7m doesn't exist, but D & I don't affect code
3795 xarm[23678] | xarm250 | xarm[67][01]0 \
3796 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3797 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3798 | xstrongarm | xstrongarm110 | xstrongarm1100)
3800 target_cpu_default2="TARGET_CPU_$with_cpu"
3804 echo "--with-cpu must be passed a value" 1>&2
3809 if test x$pass2done = xyes
3811 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3818 mips*-*-ecoff* | mips*-*-elf*)
3819 if test x$gas = xyes
3821 if test x$gnu_ld = xyes
3823 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3825 target_cpu_default2="MASK_GAS"
3830 if test x$gas = xyes
3832 target_cpu_default2="MASK_GAS"
3835 powerpc*-*-* | rs6000-*-*)
3836 case "x$with_cpu" in
3840 xcommon | xpower | xpower2 | xpowerpc | xrios \
3841 | xrios1 | xrios2 | xrsc | xrsc1 \
3842 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3843 | xec603e | x740 | x750 | x401 \
3844 | x403 | x505 | x801 | x821 | x823 | x860)
3845 target_cpu_default2="\"$with_cpu\""
3849 echo "--with-cpu must be passed a value" 1>&2
3854 if test x$pass2done = xyes
3856 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3863 case ".$with_cpu" in
3865 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3867 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3868 target_cpu_default2="TARGET_CPU_$with_cpu"
3871 if test x$pass2done = xyes
3873 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3881 if test "$target_cpu_default2" != ""
3883 if test "$target_cpu_default" != ""
3885 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3887 target_cpu_default=$target_cpu_default2
3891 # No need for collect2 if we have the GNU linker.
3892 # Actually, there is now; GNU ld doesn't handle the EH info or
3893 # collecting for shared libraries.
3900 # Save data on machine being used to compile GCC in build_xm_file.
3901 # Save data on host machine in vars host_xm_file and host_xmake_file.
3902 if test x$pass1done = x
3904 if test x"$xm_file" = x
3905 then build_xm_file=$cpu_type/xm-$cpu_type.h
3906 else build_xm_file=$xm_file
3908 build_xm_defines=$xm_defines
3909 build_install_headers_dir=$install_headers_dir
3910 build_exeext=$exeext
3913 if test x$pass2done = x
3915 if test x"$xm_file" = x
3916 then host_xm_file=$cpu_type/xm-$cpu_type.h
3917 else host_xm_file=$xm_file
3919 host_xm_defines=$xm_defines
3920 if test x"$xmake_file" = x
3921 then xmake_file=$cpu_type/x-$cpu_type
3923 host_xmake_file="$xmake_file"
3924 host_truncate_target=$truncate_target
3925 host_extra_gcc_objs=$extra_gcc_objs
3926 host_extra_objs=$extra_host_objs
3933 extra_objs="${host_extra_objs} ${extra_objs}"
3935 # Default the target-machine variables that were not explicitly set.
3936 if test x"$tm_file" = x
3937 then tm_file=$cpu_type/$cpu_type.h; fi
3939 if test x$extra_headers = x
3940 then extra_headers=; fi
3942 if test x"$xm_file" = x
3943 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3945 if test x$md_file = x
3946 then md_file=$cpu_type/$cpu_type.md; fi
3948 if test x$out_file = x
3949 then out_file=$cpu_type/$cpu_type.c; fi
3951 if test x"$tmake_file" = x
3952 then tmake_file=$cpu_type/t-$cpu_type
3955 if test x"$dwarf2" = xyes
3956 then tm_file="$tm_file tm-dwarf2.h"
3959 if test x$float_format = x
3960 then float_format=i64
3963 if test $float_format = none
3964 then float_h_file=Makefile.in
3965 else float_h_file=float-$float_format.h
3968 # Handle cpp installation.
3969 if test x$enable_cpp != xno
3971 tmake_file="$tmake_file t-install-cpp"
3974 # Say what files are being used for the output code and MD file.
3975 echo "Using \`$srcdir/config/$out_file' to output insns."
3976 echo "Using \`$srcdir/config/$md_file' as machine description file."
3979 for f in $tm_file; do
3982 if test $count = ax; then
3983 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3985 echo "Using the following target machine macro files:"
3986 for f in $tm_file; do
3987 echo " $srcdir/config/$f"
3992 for f in $host_xm_file; do
3995 if test $count = ax; then
3996 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3998 echo "Using the following host machine macro files:"
3999 for f in $host_xm_file; do
4000 echo " $srcdir/config/$f"
4004 if test "$host_xm_file" != "$build_xm_file"; then
4006 for f in $build_xm_file; do
4009 if test $count = ax; then
4010 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4012 echo "Using the following build machine macro files:"
4013 for f in $build_xm_file; do
4014 echo " $srcdir/config/$f"
4019 if test x$thread_file = x; then
4020 if test x$target_thread_file != x; then
4021 thread_file=$target_thread_file
4023 thread_file='single'
4027 # Set up the header files.
4028 # $links is the list of header files to create.
4029 # $vars is the list of shell variables with file names to include.
4030 # auto-host.h is the file containing items generated by autoconf and is
4031 # the first file included by config.h.
4033 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
4035 # If host=build, it is correct to have hconfig include auto-host.h
4036 # as well. If host!=build, we are in error and need to do more
4037 # work to find out the build config parameters.
4038 if test x$host = x$build
4040 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
4042 # We create a subdir, then run autoconf in the subdir.
4043 # To prevent recursion we set host and build for the new
4044 # invocation of configure to the build for this invocation
4051 /*) realsrcdir=${srcdir};;
4052 *) realsrcdir=../${srcdir};;
4054 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4055 --target=$target --host=$build --build=$build
4057 # We just finished tests for the build machine, so rename
4058 # the file auto-build.h in the gcc directory.
4059 mv auto-host.h ../auto-build.h
4062 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4065 xm_file="gansidecl.h ${xm_file}"
4066 tm_file="gansidecl.h ${tm_file}"
4068 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4069 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4070 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4073 if test -f config.status; then mv -f config.status config.bak; fi
4076 while test -n "$vars"
4078 set $vars; var=$1; shift; vars=$*
4079 set $links; link=$1; shift; links=$*
4080 set $defines; define=$1; shift; defines=$*
4083 # Make sure the file is created, even if it is empty.
4086 # Define TARGET_CPU_DEFAULT if the system wants one.
4087 # This substitutes for lots of *.h files.
4088 if test "$target_cpu_default" != "" -a $link = tm.h
4090 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4093 for file in `eval echo '$'$var`; do
4095 auto-host.h | auto-build.h )
4098 echo '#ifdef IN_GCC' >>$link
4101 echo "#include \"$file\"" >>$link
4103 auto-host.h | auto-build.h )
4106 echo '#endif' >>$link
4111 for def in `eval echo '$'$define`; do
4112 echo "#ifndef $def" >>$link
4113 echo "#define $def" >>$link
4114 echo "#endif" >>$link
4118 # Truncate the target if necessary
4119 if test x$host_truncate_target != x; then
4120 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4123 # Get the version trigger filename from the toplevel
4124 if test "${with_gcc_version_trigger+set}" = set; then
4125 gcc_version_trigger=$with_gcc_version_trigger
4127 gcc_version_trigger=${srcdir}/version.c
4130 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
4133 # Internationalization
4135 VERSION="$gcc_version"
4136 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4137 [Define to the name of the distribution.])
4138 AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4139 [Define to the version of the distribution.])
4145 # Enable NLS support by default
4147 [ --enable-nls use Native Language Support (default)],
4150 # if cross compiling, disable NLS support.
4151 # It's not worth the trouble, at least for now.
4153 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4154 AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
4159 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4161 # Windows32 Registry support for specifying GCC installation paths.
4162 AC_ARG_ENABLE(win32-registry,
4163 [ --disable-win32-registry
4164 Disable lookup of installation paths in the
4165 Registry on Windows hosts.
4166 --enable-win32-registry Enable registry lookup (default).
4167 --enable-win32-registry=KEY
4168 Use KEY instead of GCC version as the last portion
4169 of the registry key.],,)
4171 AC_MSG_CHECKING(whether windows registry support is requested)
4172 if test x$enable_win32_registry != xno; then
4173 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4174 [Define to 1 if installation paths should be looked up in Windows32
4175 Registry. Ignored on non windows32 hosts.])
4181 # Check if user specified a different registry key.
4182 case x${enable_win32_registry} in
4185 gcc_cv_win32_registry_key="$VERSION"
4188 # no registry lookup.
4189 gcc_cv_win32_registry_key=''
4192 # user-specified key.
4193 gcc_cv_win32_registry_key="$enable_win32_registry"
4197 if test x$enable_win32_registry != xno; then
4198 AC_MSG_CHECKING(registry key on windows hosts)
4199 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4200 [Define to be the last portion of registry key on windows hosts.])
4201 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4204 # Get an absolute path to the GCC top-level source directory
4210 # Conditionalize the makefile for this host machine.
4211 # Make-host contains the concatenation of all host makefile fragments
4212 # [there can be more than one]. This file is built by configure.frag.
4213 host_overrides=Make-host
4214 dep_host_xmake_file=
4215 for f in .. ${host_xmake_file}
4217 if test -f ${srcdir}/config/$f
4219 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4223 # Conditionalize the makefile for this target machine.
4224 # Make-target contains the concatenation of all host makefile fragments
4225 # [there can be more than one]. This file is built by configure.frag.
4226 target_overrides=Make-target
4228 for f in .. ${tmake_file}
4230 if test -f ${srcdir}/config/$f
4232 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4236 # If the host doesn't support symlinks, modify CC in
4237 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4238 # Otherwise, we can use "CC=$(CC)".
4240 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4242 cc_set_by_configure="\$(CC)"
4243 quoted_cc_set_by_configure="\$(CC)"
4244 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4247 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4249 symbolic_link="cp -p"
4253 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4254 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4255 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4259 out_object_file=`basename $out_file .c`.o
4262 for f in $tm_file; do
4265 tm_file_list="${tm_file_list} $f" ;;
4266 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4271 for f in $host_xm_file; do
4273 auto-host.h | gansidecl.h | hwint.h )
4274 host_xm_file_list="${host_xm_file_list} $f" ;;
4275 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4280 for f in $build_xm_file; do
4282 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4283 build_xm_file_list="${build_xm_file_list} $f" ;;
4284 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4288 # Define macro CROSS_COMPILE in compilation
4289 # if this is a cross-compiler.
4290 # Also use all.cross instead of all.internal
4291 # and add cross-make to Makefile.
4292 cross_overrides="/dev/null"
4293 if test x$host != x$target
4295 cross_defines="CROSS=-DCROSS_COMPILE"
4296 cross_overrides="${topdir}/cross-make"
4299 # If this is a cross-compiler that does not
4300 # have its own set of headers then define
4303 # If this is using newlib, then define inhibit_libc in
4304 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4305 # libgcc.a, but that's OK because newlib should have its own version of
4308 if [test x$host != x$target] && [test x$with_headers = x]; then
4309 inhibit_libc=-Dinhibit_libc
4311 if [test x$with_newlib = xyes]; then
4312 inhibit_libc=-Dinhibit_libc
4315 AC_SUBST(inhibit_libc)
4317 # When building gcc with a cross-compiler, we need to fix a few things.
4318 # This must come after cross-make as we want all.build to override
4320 build_overrides="/dev/null"
4321 if test x$build != x$host
4323 build_overrides="${topdir}/build-make"
4326 # Expand extra_headers to include complete path.
4327 # This substitutes for lots of t-* files.
4329 if test "x$extra_headers" = x
4332 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4333 for file in $extra_headers;
4335 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4339 if test x$use_collect2 = xno; then
4343 # Add a definition of USE_COLLECT2 if system wants one.
4344 # Also tell toplev.c what to do.
4345 # This substitutes for lots of t-* files.
4346 if test x$use_collect2 = x
4351 will_use_collect2="collect2"
4352 maybe_use_collect2="-DUSE_COLLECT2"
4356 # Set MD_DEPS if the real md file is in md.pre-cpp.
4357 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4358 # for line oriented comments, so we must always use a GNU cpp. If
4359 # building gcc with a cross compiler, use the cross compiler just
4360 # built. Otherwise, we can use the cpp just built.
4362 if test "x$md_cppflags" = x
4364 md_file_sub=$srcdir/config/$md_file
4369 # If we have gas in the build tree, make a link to it.
4370 if test -f ../gas/Makefile; then
4371 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4374 # If we have nm in the build tree, make a link to it.
4375 if test -f ../binutils/Makefile; then
4376 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4379 # If we have ld in the build tree, make a link to it.
4380 if test -f ../ld/Makefile; then
4381 # if test x$use_collect2 = x; then
4382 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4384 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4388 # Figure out what assembler alignment features are present.
4389 AC_MSG_CHECKING(assembler alignment features)
4391 gcc_cv_as_alignment_features=
4392 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4393 if test -x "$DEFAULT_ASSEMBLER"; then
4394 gcc_cv_as="$DEFAULT_ASSEMBLER"
4395 elif test -x "$AS"; then
4397 elif test -x as$host_exeext; then
4398 # Build using assembler in the current directory.
4399 gcc_cv_as=./as$host_exeext
4400 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4401 # Single tree build which includes gas.
4402 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4405 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4407 if test x$gcc_cv_gas_version != x; then
4412 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4413 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4415 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4416 # Gas version 2.6 and later support for .balign and .p2align.
4417 # bytes to skip when using .p2align.
4418 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
4419 gcc_cv_as_alignment_features=".balign and .p2align"
4420 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4422 # Gas version 2.8 and later support specifying the maximum
4423 # bytes to skip when using .p2align.
4424 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
4425 gcc_cv_as_alignment_features=".p2align including maximum skip"
4426 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4429 elif test x$host = x$target; then
4431 # Search the same directories that the installed compiler will
4432 # search. Else we may find the wrong assembler and lose. If we
4433 # do not find a suitable assembler binary, then try the user's
4436 # Also note we have to check MD_EXEC_PREFIX before checking the
4437 # user's path. Unfortunately, there is no good way to get at the
4438 # value of MD_EXEC_PREFIX here. So we do a brute force search
4439 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4440 # to be fixed as part of the make/configure rewrite too.
4442 if test "x$exec_prefix" = xNONE; then
4443 if test "x$prefix" = xNONE; then
4444 test_prefix=/usr/local
4449 test_prefix=$exec_prefix
4452 # If the loop below does not find an assembler, then use whatever
4453 # one we can find in the users's path.
4457 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4458 $test_prefix/lib/gcc-lib/$target \
4459 /usr/lib/gcc/$target/$gcc_version \
4460 /usr/lib/gcc/$target \
4461 $test_prefix/$target/bin/$target/$gcc_version \
4462 $test_prefix/$target/bin \
4467 /bsd43/usr/lib/cmplrs/cc \
4468 /usr/cross64/usr/bin \
4469 /usr/lib/cmplrs/cc \
4470 /sysv/usr/lib/cmplrs/cc \
4471 /svr4/usr/lib/cmplrs/cc \
4474 for dir in $test_dirs; do
4475 if test -f $dir/as$host_exeext; then
4476 gcc_cv_as=$dir/as$host_exeext
4481 if test x$gcc_cv_as != x; then
4482 # Check if we have .balign and .p2align
4483 echo ".balign 4" > conftest.s
4484 echo ".p2align 2" >> conftest.s
4485 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4486 gcc_cv_as_alignment_features=".balign and .p2align"
4487 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4489 rm -f conftest.s conftest.o
4490 # Check if specifying the maximum bytes to skip when
4491 # using .p2align is supported.
4492 echo ".p2align 4,,7" > conftest.s
4493 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4494 gcc_cv_as_alignment_features=".p2align including maximum skip"
4495 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4497 rm -f conftest.s conftest.o
4499 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4501 AC_MSG_CHECKING(assembler subsection support)
4502 gcc_cv_as_subsections=
4503 if test x$gcc_cv_as != x; then
4504 # Check if we have .subsection
4505 echo ".subsection 1" > conftest.s
4506 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4507 gcc_cv_as_subsections=".subsection"
4508 if test -x nm$host_exeext; then
4509 gcc_cv_nm=./nm$host_exeext
4510 elif test x$host = x$target; then
4512 gcc_cv_nm=nm$host_exeext
4514 if test x$gcc_cv_nm != x; then
4515 cat > conftest.s <<EOF
4516 conftest_label1: .word 0
4518 conftest_label2: .word 0
4521 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4522 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4523 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4524 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4527 gcc_cv_as_subsections="working .subsection -1"
4528 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4529 [Define if your assembler supports .subsection and .subsection -1 starts
4530 emitting at the beginning of your section.])
4535 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4537 AC_MSG_RESULT($gcc_cv_as_subsections)
4539 AC_MSG_CHECKING(assembler weak support)
4541 if test x$gcc_cv_as != x; then
4542 # Check if we have .weak
4543 echo " .weak foobar" > conftest.s
4544 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4545 AC_DEFINE(HAVE_GAS_WEAK, 1,
4546 [Define if your assembler supports .weak.])
4547 gcc_cv_as_weak="yes"
4549 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4551 AC_MSG_RESULT($gcc_cv_as_weak)
4553 AC_MSG_CHECKING(assembler hidden support)
4555 if test x$gcc_cv_as != x; then
4556 # Check if we have .hidden
4557 echo " .hidden foobar" > conftest.s
4558 echo "foobar:" >> conftest.s
4559 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4560 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4561 [Define if your assembler supports .hidden.])
4562 gcc_cv_as_hidden="yes"
4564 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4566 AC_MSG_RESULT($gcc_cv_as_hidden)
4570 AC_CACHE_CHECK([assembler .register pseudo-op support],
4571 gcc_cv_as_register_pseudo_op, [
4572 gcc_cv_as_register_pseudo_op=unknown
4573 if test x$gcc_cv_as != x; then
4574 # Check if we have .register
4575 echo ".register %g2, #scratch" > conftest.s
4576 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4577 gcc_cv_as_register_pseudo_op=yes
4579 gcc_cv_as_register_pseudo_op=no
4581 rm -f conftest.s conftest.o
4584 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4585 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4586 [Define if your assembler supports .register.])
4589 AC_CACHE_CHECK([assembler supports -relax],
4590 gcc_cv_as_relax_opt, [
4591 gcc_cv_as_relax_opt=unknown
4592 if test x$gcc_cv_as != x; then
4593 # Check if gas supports -relax
4594 echo ".text" > conftest.s
4595 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
4596 gcc_cv_as_relax_opt=yes
4598 gcc_cv_as_relax_opt=no
4600 rm -f conftest.s conftest.o
4603 if test "x$gcc_cv_as_relax_opt" = xyes; then
4604 AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
4605 [Define if your assembler supports -relax option.])
4610 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4611 gcc_cv_as_flags64, [
4612 if test -n "$gcc_cv_as"; then
4613 echo ".xword foo" > conftest.s
4614 gcc_cv_as_flags64=no
4615 for flag in "-xarch=v9" "-64 -Av9"; do
4616 if $gcc_cv_as $flag -o conftest.o conftest.s \
4617 > /dev/null 2>&1; then
4618 gcc_cv_as_flags64=$flag
4622 rm -f conftest.s conftest.o
4624 if test "$gas" = yes; then
4625 gcc_cv_as_flags64="-64 -Av9"
4627 gcc_cv_as_flags64="-xarch=v9"
4631 if test "x$gcc_cv_as_flags64" = xno; then
4633 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4634 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4637 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4638 [Define if the assembler supports 64bit sparc.])
4641 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4645 if test "x$gcc_cv_as_flags64" != xno; then
4646 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4647 gcc_cv_as_offsetable_lo10, [
4648 gcc_cv_as_offsetable_lo10=unknown
4649 if test "x$gcc_cv_as" != x; then
4650 # Check if assembler has offsetable %lo()
4651 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4652 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4653 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4655 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4656 > /dev/null 2>&1; then
4657 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4658 gcc_cv_as_offsetable_lo10=no
4660 gcc_cv_as_offsetable_lo10=yes
4663 gcc_cv_as_offsetable_lo10=no
4665 rm -f conftest.s conftest.o conftest1.s conftest1.o
4668 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4669 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4670 [Define if your assembler supports offsetable %lo().])
4678 AC_MSG_CHECKING(assembler instructions)
4679 gcc_cv_as_instructions=
4680 if test x$gcc_cv_as != x; then
4681 set "filds fists" "filds mem; fists mem"
4684 echo "$2" > conftest.s
4685 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4686 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4687 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
4691 rm -f conftest.s conftest.o
4693 AC_MSG_RESULT($gcc_cv_as_instructions)
4697 # Figure out what language subdirectories are present.
4698 # Look if the user specified --enable-languages="..."; if not, use
4699 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4701 if test x"${enable_languages+set}" != xset; then
4702 if test x"${LANGUAGES+set}" = xset; then
4703 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4705 enable_languages=all
4708 if test x"${enable_languages}" = x; then
4709 AC_MSG_ERROR([--enable-languages needs at least one argument])
4713 for lang in ${srcdir}/*/config-lang.in ..
4717 # The odd quoting in the next line works around
4718 # an apparent bug in bash 1.12 on linux.
4720 ${srcdir}/[*]/config-lang.in) ;;
4722 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4723 if test "x$lang_alias" = x
4725 echo "$lang doesn't set \$language." 1>&2
4728 if test x"${enable_languages}" = xall; then
4731 case "${enable_languages}" in
4732 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4740 if test x"${add_this_lang}" = xyes; then
4742 ${srcdir}/ada/config-lang.in)
4743 if test x$gnat = xyes ; then
4744 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4748 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4757 # Make gthr-default.h if we have a thread file.
4759 if test $thread_file != single; then
4760 rm -f gthr-default.h
4761 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4762 gthread_flags=-DHAVE_GTHR_DEFAULT
4764 AC_SUBST(gthread_flags)
4766 # Find out what GC implementation we want, or may, use.
4768 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4769 with the compiler.],
4775 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4778 [if test $ac_cv_func_mmap_anywhere = yes \
4779 || test $ac_cv_func_valloc = yes; then
4785 echo "Using $GGC for garbage collection."
4787 # Build a new-abi (c++) system
4788 AC_ARG_ENABLE(new-gxx-abi,
4789 [ --enable-new-gxx-abi
4790 select the new abi for g++. You must select an ABI
4791 at configuration time, so that the correct runtime
4792 support is built. You cannot mix ABIs.],
4793 [AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4794 [Define if you want to always select the new-abi for g++.])
4795 GXX_ABI_FLAG='-fnew-abi'
4796 echo "Building a new-abi g++ compiler."
4798 AC_SUBST(GXX_ABI_FLAG)
4800 # Build a new-libstdc++ system (ie libstdc++-v3)
4801 AC_MSG_CHECKING([for libstdc++ to install])
4802 AC_ARG_ENABLE(libstdcxx-v3,
4803 [ --enable-libstdcxx-v3
4804 enable libstdc++-v3 for building and installation],
4805 [enable_libstdcxx_v3="$enableval"], [enable_libstdcxx_v3=no])
4807 if test x$enable_libstdcxx_v3 = xyes; then
4814 AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4815 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
4817 dnl Very limited version of automake's enable-maintainer-mode
4819 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4820 dnl maintainer-mode is disabled by default
4821 AC_ARG_ENABLE(maintainer-mode,
4822 [ --enable-maintainer-mode enable make rules and dependencies not useful
4823 (and sometimes confusing) to the casual installer],
4824 maintainer_mode=$enableval,
4827 AC_MSG_RESULT($maintainer_mode)
4829 if test "$maintainer_mode" = "yes"; then
4836 # Make empty files to contain the specs and options for each language.
4837 # Then add #include lines to for a compiler that has specs and/or options.
4842 rm -f specs.h options.h gencheck.h
4843 touch specs.h options.h gencheck.h
4844 for subdir in . $subdirs
4846 if test -f $srcdir/$subdir/lang-specs.h; then
4847 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4848 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4850 if test -f $srcdir/$subdir/lang-options.h; then
4851 echo "#include \"$subdir/lang-options.h\"" >>options.h
4852 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4854 if test -f $srcdir/$subdir/$subdir-tree.def; then
4855 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4856 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4860 # These (without "all_") are set in each config-lang.in.
4861 # `language' must be a single word so is spelled singularly.
4867 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
4868 # List of language makefile fragments.
4873 # Add the language fragments.
4874 # Languages are added via two mechanisms. Some information must be
4875 # recorded in makefile variables, these are defined in config-lang.in.
4876 # We accumulate them and plug them into the main Makefile.
4877 # The other mechanism is a set of hooks for each of the main targets
4878 # like `clean', `install', etc.
4880 language_fragments="Make-lang"
4881 language_hooks="Make-hooks"
4884 for s in .. $subdirs
4896 . ${srcdir}/$s/config-lang.in
4897 if test "x$language" = x
4899 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4902 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4903 all_languages="$all_languages $language"
4904 if test "x$boot_language" = xyes
4906 all_boot_languages="$all_boot_languages $language"
4908 all_compilers="$all_compilers $compilers"
4909 all_stagestuff="$all_stagestuff $stagestuff"
4910 all_diff_excludes="$all_diff_excludes $diff_excludes"
4911 all_headers="$all_headers $headers"
4912 all_outputs="$all_outputs $outputs"
4913 if test x$outputs = x
4915 oldstyle_subdirs="$oldstyle_subdirs $s"
4917 all_lib2funcs="$all_lib2funcs $lib2funcs"
4921 # Since we can't use `::' targets, we link each language in
4922 # with a set of hooks, reached indirectly via lang.${target}.
4926 target_list="all.build all.cross start.encap rest.encap \
4928 install-normal install-common install-info install-man \
4930 mostlyclean clean distclean extraclean maintainer-clean \
4931 stage1 stage2 stage3 stage4"
4932 for t in $target_list
4935 for lang in .. $all_languages
4937 if test $lang != ".."; then
4941 echo "lang.$t: $x" >> Make-hooks
4944 # If we're not building in srcdir, create .gdbinit.
4946 if test ! -f Makefile.in; then
4947 echo "dir ." > .gdbinit
4948 echo "dir ${srcdir}" >> .gdbinit
4949 if test x$gdb_needs_out_file_path = xyes
4951 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4953 if test "x$subdirs" != x; then
4956 echo "dir ${srcdir}/$s" >> .gdbinit
4959 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4962 # Define variables host_canonical and build_canonical
4963 # because some Cygnus local changes in the Makefile depend on them.
4964 build_canonical=${build}
4965 host_canonical=${host}
4967 if test "${host}" != "${target}" ; then
4968 target_subdir=${target}/
4970 AC_SUBST(build_canonical)
4971 AC_SUBST(host_canonical)
4972 AC_SUBST(target_subdir)
4974 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4975 # absolute path for gcc_tooldir based on inserting the number of up-directory
4976 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4977 # $(libsubdir)/@(unlibsubdir) based path.
4978 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4979 # make and thus we'd get different behavior depending on where we built the
4981 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4982 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4984 changequote(<<, >>)dnl
4985 # An explanation of the sed strings:
4986 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4987 # -e 's|/$||' match a trailing forward slash and eliminates it
4988 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4989 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4991 # (*) Note this pattern overwrites the first character of the string
4992 # with a forward slash if one is not already present. This is not a
4993 # problem because the exact names of the sub-directories concerned is
4994 # unimportant, just the number of them matters.
4996 # The practical upshot of these patterns is like this:
4998 # prefix exec_prefix result
4999 # ------ ----------- ------
5001 # /foo/ /foo/bar ../
5002 # /foo /foo/bar/ ../
5003 # /foo/ /foo/bar/ ../
5004 # /foo /foo/bar/ugg ../../
5007 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
5008 changequote([, ])dnl
5010 AC_SUBST(gcc_tooldir)
5013 # Nothing to do for FLOAT_H, float_format already handled.
5017 # Process the language and host/target makefile fragments.
5018 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5020 # Substitute configuration variables
5022 AC_SUBST(all_boot_languages)
5023 AC_SUBST(all_compilers)
5024 AC_SUBST(all_diff_excludes)
5025 AC_SUBST(all_headers)
5026 AC_SUBST(all_lang_makefiles)
5027 AC_SUBST(all_languages)
5028 AC_SUBST(all_lib2funcs)
5029 AC_SUBST(all_stagestuff)
5030 AC_SUBST(build_exeext)
5031 AC_SUBST(build_install_headers_dir)
5032 AC_SUBST(build_xm_file_list)
5033 AC_SUBST(cc_set_by_configure)
5034 AC_SUBST(quoted_cc_set_by_configure)
5035 AC_SUBST(cpp_install_dir)
5036 AC_SUBST(dep_host_xmake_file)
5037 AC_SUBST(dep_tmake_file)
5038 AC_SUBST(extra_c_flags)
5039 AC_SUBST(extra_c_objs)
5040 AC_SUBST(extra_cpp_objs)
5041 AC_SUBST(extra_cxx_objs)
5042 AC_SUBST(extra_headers_list)
5043 AC_SUBST(extra_objs)
5044 AC_SUBST(extra_parts)
5045 AC_SUBST(extra_passes)
5046 AC_SUBST(extra_programs)
5047 AC_SUBST(float_h_file)
5048 AC_SUBST(gcc_gxx_include_dir)
5049 AC_SUBST(gcc_version)
5050 AC_SUBST(gcc_version_trigger)
5051 AC_SUBST(host_exeext)
5052 AC_SUBST(host_extra_gcc_objs)
5053 AC_SUBST(host_xm_file_list)
5055 AC_SUBST(lang_options_files)
5056 AC_SUBST(lang_specs_files)
5057 AC_SUBST(lang_tree_files)
5058 AC_SUBST(local_prefix)
5059 AC_SUBST(maybe_use_collect2)
5061 AC_SUBST(objc_boehm_gc)
5063 AC_SUBST(out_object_file)
5064 AC_SUBST(stage_prefix_set_by_configure)
5065 AC_SUBST(symbolic_link)
5066 AC_SUBST(thread_file)
5067 AC_SUBST(tm_file_list)
5068 AC_SUBST(will_use_collect2)
5071 AC_SUBST_FILE(target_overrides)
5072 AC_SUBST_FILE(host_overrides)
5073 AC_SUBST(cross_defines)
5074 AC_SUBST_FILE(cross_overrides)
5075 AC_SUBST_FILE(build_overrides)
5076 AC_SUBST_FILE(language_fragments)
5077 AC_SUBST_FILE(language_hooks)
5079 # Echo that links are built
5080 if test x$host = x$target
5088 if test x$host != x$build
5090 str3=" on a $build system"
5093 if test "x$str2" != x || test "x$str3" != x
5098 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5100 if test "x$str2" != x || test "x$str3" != x
5102 echo " ${str2}${str3}." 1>&2
5105 # Truncate the target if necessary
5106 if test x$host_truncate_target != x; then
5107 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5110 # Configure the subdirectories
5111 # AC_CONFIG_SUBDIRS($subdirs)
5113 # Create the Makefile
5114 # and configure language subdirectories
5115 AC_OUTPUT($all_outputs,
5117 . $srcdir/configure.lang
5118 case x$CONFIG_HEADERS in
5119 xauto-host.h:config.in)
5122 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5123 # bootstrapping and the installation procedure can still use
5124 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5125 # FLAGS_TO_PASS has been modified to solve the problem there.
5126 # This is virtually a duplicate of what happens in configure.lang; we do
5127 # an extra check to make sure this only happens if ln -s can be used.
5128 if test "$symbolic_link" = "ln -s"; then
5129 for d in .. ${subdirs} ; do
5130 if test $d != ..; then
5133 for t in stage1 stage2 stage3 stage4 include
5136 $symbolic_link ../$t $t 2>/dev/null
5142 # Avoid having to add intl to our include paths.
5143 if test -f intl/libintl.h; then
5144 echo creating libintl.h
5145 echo '#include "intl/libintl.h"' >libintl.h
5152 target_alias='${target_alias}'
5154 subdirs='${subdirs}'
5155 oldstyle_subdirs='${oldstyle_subdirs}'
5156 symbolic_link='${symbolic_link}'
5157 program_transform_set='${program_transform_set}'
5158 program_transform_name='${program_transform_name}'
5159 dep_host_xmake_file='${dep_host_xmake_file}'
5160 host_xmake_file='${host_xmake_file}'
5161 dep_tmake_file='${dep_tmake_file}'
5162 tmake_file='${tmake_file}'
5163 thread_file='${thread_file}'
5164 gcc_version='${gcc_version}'
5165 gcc_version_trigger='${gcc_version_trigger}'
5166 local_prefix='${local_prefix}'
5167 build_install_headers_dir='${build_install_headers_dir}'
5168 build_exeext='${build_exeext}'
5169 host_exeext='${host_exeext}'
5170 out_file='${out_file}'
5171 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5172 SET_MAKE='${SET_MAKE}'
5173 target_list='${target_list}'
5174 target_overrides='${target_overrides}'
5175 host_overrides='${host_overrides}'
5176 cross_defines='${cross_defines}'
5177 cross_overrides='${cross_overrides}'
5178 build_overrides='${build_overrides}'
5179 cpp_install_dir='${cpp_install_dir}'