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=""
358 AC_SUBST(stage1_warn_cflags)
359 AC_SUBST(stage2_warn_cflags)
363 AC_MSG_CHECKING([whether a default assembler was specified])
364 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
365 if test x"$gas_flag" = x"no"; then
366 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
368 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
374 AC_MSG_CHECKING([whether a default linker was specified])
375 if test x"${DEFAULT_LINKER+set}" = x"set"; then
376 if test x"$gnu_ld_flag" = x"no"; then
377 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
379 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
387 # Find some useful tools
401 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
402 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
403 sys/resource.h sys/param.h sys/times.h sys/stat.h \
406 # Check for thread headers.
407 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
408 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
410 # See if GNAT has been installed
411 AC_CHECK_PROG(gnat, gnatbind, yes, no)
413 # Do we have a single-tree copy of texinfo?
414 if test -f $srcdir/../texinfo/Makefile.in; then
415 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
416 gcc_cv_prog_makeinfo_modern=yes
417 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
419 # See if makeinfo has been installed and is modern enough
420 # that we can use it.
421 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
422 [GNU texinfo.* \([0-9][0-9.]*\)],
423 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
426 if test $gcc_cv_prog_makeinfo_modern = no; then
428 *** Makeinfo is missing or too old.
429 *** Info documentation will not be built or installed.])
433 BUILD_INFO=info AC_SUBST(BUILD_INFO)
434 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
437 # See if the stage1 system preprocessor understands the ANSI C
438 # preprocessor stringification operator.
441 # Use <inttypes.h> only if it exists,
442 # doesn't clash with <sys/types.h>, and declares intmax_t.
443 AC_MSG_CHECKING(for inttypes.h)
444 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
446 [#include <sys/types.h>
447 #include <inttypes.h>],
449 [gcc_cv_header_inttypes_h=yes],
450 gcc_cv_header_inttypes_h=no)])
451 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
452 if test $gcc_cv_header_inttypes_h = yes; then
453 AC_DEFINE(HAVE_INTTYPES_H, 1,
454 [Define if you have a working <inttypes.h> header file.])
458 # Determine if enumerated bitfields are unsigned. ISO C says they can
459 # be either signed or unsigned.
461 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
462 [AC_TRY_RUN(#include <stdlib.h>
463 enum t { BLAH = 128 } ;
464 struct s_t { enum t member : 8; } s ;
468 if (s.member < 0) exit(1);
471 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
472 if test $gcc_cv_enum_bf_unsigned = yes; then
473 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
474 [Define if enumerated bitfields are treated as unsigned values.])
477 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
478 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
479 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
480 fputs_unlocked getrusage valloc)
482 AC_CHECK_TYPE(ssize_t, int)
484 # Try to determine the array type of the second argument of getgroups
485 # for the target system (int or gid_t).
487 if test "${target}" = "${build}"; then
488 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
491 # This condition may need some tweaking. It should include all
492 # targets where the array type of the second argument of getgroups
493 # is int and the type of gid_t is not equivalent to int.
494 *-*-sunos* | *-*-ultrix*)
495 TARGET_GETGROUPS_T=int
498 TARGET_GETGROUPS_T=gid_t
502 AC_SUBST(TARGET_GETGROUPS_T)
504 gcc_AC_FUNC_VFPRINTF_DOPRNT
505 gcc_AC_FUNC_PRINTF_PTR
509 # Under some versions of uwin, vfork is notoriously buggy and the test
510 # can hang configure; on other versions, vfork exists just as a stub.
511 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
512 ac_cv_func_vfork_works=no
516 AC_FUNC_MMAP_ANYWHERE
519 # We will need to find libiberty.h and ansidecl.h
520 saved_CFLAGS="$CFLAGS"
521 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
522 gcc_AC_CHECK_DECLS(bcopy bzero bcmp \
523 index rindex getenv atol sbrk abort atof getcwd getwd \
524 strsignal putc_unlocked fputs_unlocked strstr environ \
525 malloc realloc calloc free basename getopt, , ,[
526 #include "gansidecl.h"
527 #include "system.h"])
529 gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
530 #include "gansidecl.h"
532 #ifdef HAVE_SYS_RESOURCE_H
533 #include <sys/resource.h>
537 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
538 CFLAGS="$saved_CFLAGS"
540 # mkdir takes a single argument on some systems.
541 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
551 build_install_headers_dir=install-headers-tar
556 host_truncate_target=
559 # Decode the host machine, then the target machine.
560 # For the host machine, we save the xm_file variable as host_xm_file;
561 # then we decode the target machine and forget everything else
562 # that came from the host machine.
563 for machine in $build $host $target; do
577 # Set this to force installation and use of collect2.
579 # Set this to override the default target model.
581 # Set this to control how the header file directory is installed.
582 install_headers_dir=install-headers-tar
583 # Set this to a non-empty list of args to pass to cpp if the target
584 # wants its .md file passed through cpp.
586 # Set this if directory names should be truncated to 14 characters.
588 # Set this if gdb needs a dir command with `dirname $out_file`
589 gdb_needs_out_file_path=
590 # Set this if the build machine requires executables to have a
593 # Set this to control which thread package will be used.
595 # Reinitialize these from the flag values every loop pass, since some
596 # configure entries modify them.
598 gnu_ld="$gnu_ld_flag"
599 enable_threads=$enable_threads_flag
601 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
602 # updated in each machine entry.
604 cpu_type=`echo $machine | sed 's/-.*$//'`
646 tm_file=${cpu_type}/${cpu_type}.h
647 xm_file=${cpu_type}/xm-${cpu_type}.h
648 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
650 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
652 # On a.out targets, we need to use collect2.
659 # Common parts for linux and openbsd systems
662 xm_defines="HAVE_ATEXIT POSIX BSTRING"
665 tm_file=${cpu_type}/openbsd.h
666 tmake_file="t-libc-ok t-openbsd"
667 # avoid surprises, always provide an xm-openbsd file
668 xm_file=${cpu_type}/xm-openbsd.h
669 # don't depend on processor x-fragments as well
671 if test x$enable_threads = xyes; then
673 tmake_file="${tmake_file} t-openbsd-thread"
679 # Support site-specific machine types.
681 cpu_type=`echo $machine | sed -e 's/-.*//'`
682 rest=`echo $machine | sed -e "s/$cpu_type-//"`
683 xm_file=${cpu_type}/xm-$rest.h
684 tm_file=${cpu_type}/$rest.h
685 if test -f $srcdir/config/${cpu_type}/x-$rest; \
686 then xmake_file=${cpu_type}/x-$rest; \
689 if test -f $srcdir/config/${cpu_type}/t-$rest; \
690 then tmake_file=${cpu_type}/t-$rest; \
696 a29k-*-bsd* | a29k-*-sym1*)
697 tm_file="${tm_file} a29k/unix.h"
699 xmake_file=a29k/x-unix
702 a29k-*-udi | a29k-*-coff)
703 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
704 tmake_file=a29k/t-a29kbare
707 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
708 tmake_file=a29k/t-vx29k
709 extra_parts="crtbegin.o crtend.o"
710 thread_file='vxworks'
712 a29k-*-*) # Default a29k environment.
716 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
718 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
719 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
721 # GAS + IEEE_CONFORMANT
722 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
724 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
725 xmake_file="x-interix alpha/t-pe"
726 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
727 if test x$enable_threads = xyes ; then
730 if test x$stabs = xyes ; then
731 tm_file="${tm_file} dbxcoff.h"
733 #prefix='$$INTERIX_ROOT'/usr/contrib
734 #local_prefix='$$INTERIX_ROOT'/usr/contrib
736 alpha*-*-linux*ecoff*)
737 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
738 target_cpu_default="MASK_GAS"
739 tmake_file="alpha/t-alpha alpha/t-ieee"
744 alpha*-*-linux*libc1*)
745 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
746 target_cpu_default="MASK_GAS"
747 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
748 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
751 if test x$enable_threads = xyes; then
756 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
757 target_cpu_default="MASK_GAS"
758 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
759 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
762 if test x$enable_threads = xyes; then
767 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
768 target_cpu_default="MASK_GAS"
769 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
770 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
776 # default x-alpha is only appropriate for dec-osf.
777 target_cpu_default="MASK_GAS"
778 tmake_file="alpha/t-alpha alpha/t-ieee"
782 if test x$stabs = xyes
784 tm_file="${tm_file} dbx.h"
786 if test x$gas != xyes
788 extra_passes="mips-tfile mips-tdump"
791 tmake_file="alpha/t-alpha alpha/t-ieee"
794 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
799 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
802 tm_file="${tm_file} alpha/osf.h"
803 # Some versions of OSF4 (specifically X4.0-9 296.7) have
804 # a broken tar, so we use cpio instead.
805 install_headers_dir=install-headers-cpio
808 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
813 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
815 target_cpu_default=MASK_SUPPORT_ARCH
820 tm_file="${tm_file} dbx.h alpha/vxworks.h"
821 tmake_file="alpha/t-alpha alpha/t-ieee"
824 extra_passes="mips-tfile mips-tdump"
827 thread_file='vxworks'
830 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
831 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
832 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
833 xmake_file=winnt/x-winnt
834 extra_host_objs=oldnames.o
835 extra_gcc_objs="spawnv.o oldnames.o"
836 if test x$gnu_ld != xyes
838 extra_programs=ld.exe
840 if test x$enable_threads = xyes; then
846 xm_file="${xm_file} alpha/xm-vms.h"
847 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
850 extra_parts="crtinit.o crtfini.o"
852 arm-*-coff* | armel-*-coff*)
854 tmake_file=arm/t-arm-coff
858 tmake_file=arm/t-arm-coff
859 thread_file='vxworks'
862 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
864 tm_file=arm/riscix1-1.h
867 arm-*-riscix*) # Acorn RISC machine
870 tm_file=arm/rix-gas.h
874 xmake_file=arm/x-riscix
875 tmake_file=arm/t-riscix
878 arm-semi-aout | armel-semi-aout)
880 tmake_file=arm/t-semi
882 arm-semi-aof | armel-semi-aof)
883 tm_file=arm/semiaof.h
884 tmake_file=arm/t-semiaof
888 tmake_file="t-netbsd arm/t-netbsd"
891 arm*-*-linux*aout*) # ARM GNU/Linux with a.out
894 tm_file=arm/linux-aout.h
895 tmake_file=arm/t-linux
898 arm*-*-linux*oldld*) # ARM GNU/Linux with old ELF linker
899 xm_file=arm/xm-linux.h
901 tm_file="arm/linux-oldld.h arm/linux-elf.h"
904 tm_file="arm/linux-elf26.h $tm_file"
907 tmake_file="t-linux arm/t-linux"
908 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
910 case x${enable_threads} in
911 x | xyes | xpthreads | xposix)
916 arm*-*-linux*) # ARM GNU/Linux with ELF
917 xm_file=arm/xm-linux.h
919 tm_file="arm/linux-elf.h"
922 tm_file="arm/linux-elf26.h $tm_file"
925 tmake_file="t-linux arm/t-linux"
926 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
928 case x${enable_threads} in
929 x | xyes | xpthreads | xposix)
934 arm*-*-uclinux*) # ARM ucLinux
935 tm_file=arm/uclinux-elf.h
936 tmake_file=arm/t-arm-elf
940 tmake_file=arm/t-arm-aout
943 tm_file=arm/ecos-elf.h
944 tmake_file=arm/t-arm-elf
947 tm_file=arm/unknown-elf.h
948 tmake_file=arm/t-arm-elf
951 tm_file=arm/conix-elf.h
952 tmake_file=arm/t-arm-elf
955 tm_file=arm/unknown-elf-oabi.h
956 tmake_file=arm/t-arm-elf
965 c1-convex-*) # Convex C1
969 c2-convex-*) # Convex C2
982 target_cpu_default=16
989 clipper-intergraph-clix*)
990 tm_file="${tm_file} svr3.h clipper/clix.h"
991 xm_file=clipper/xm-clix.h
992 xmake_file=clipper/x-clix
993 extra_headers=va-clipper.h
994 extra_parts="crtbegin.o crtend.o"
995 install_headers_dir=install-headers-cpio
1006 tm_file="fr30/fr30.h"
1007 tmake_file=fr30/t-fr30
1008 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1010 # This hasn't been upgraded to GCC 2.
1011 # fx80-alliant-*) # Alliant FX/80
1017 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
1018 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
1019 tmake_file="t-linux pa/t-linux"
1020 extra_parts="crtbegin.o crtend.o"
1023 if test x$enable_threads = xyes; then
1028 target_cpu_default="MASK_PA_11"
1029 tmake_file=pa/t-openbsd
1032 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1033 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
1034 xm_file=pa/xm-papro.h
1038 target_cpu_default="MASK_PA_11"
1039 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1043 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1044 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
1045 xm_file=pa/xm-papro.h
1049 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1053 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1054 target_cpu_default="MASK_PA_11"
1058 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1062 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
1063 xm_file=pa/xm-pahpux.h
1064 xmake_file=pa/x-pa-hpux
1065 if test x$gas = xyes
1067 tm_file="${tm_file} pa/gas.h"
1069 install_headers_dir=install-headers-cpio
1073 hppa1.0-*-hpux8.0[0-2]*)
1075 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.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/pa-gas.h"
1082 tm_file="pa/pa-oldas.h ${tm_file}"
1084 install_headers_dir=install-headers-cpio
1088 hppa1.1-*-hpux8.0[0-2]*)
1090 target_cpu_default="MASK_PA_11"
1091 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1092 xm_file=pa/xm-pahpux.h
1093 xmake_file=pa/x-pa-hpux
1094 if test x$gas = xyes
1096 tm_file="${tm_file} pa/pa-gas.h"
1098 tm_file="pa/pa-oldas.h ${tm_file}"
1100 install_headers_dir=install-headers-cpio
1104 target_cpu_default="MASK_PA_11"
1105 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1106 xm_file=pa/xm-pahpux.h
1107 xmake_file=pa/x-pa-hpux
1108 if test x$gas = xyes
1110 tm_file="${tm_file} pa/pa-gas.h"
1112 install_headers_dir=install-headers-cpio
1116 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1117 xm_file=pa/xm-pahpux.h
1118 xmake_file=pa/x-pa-hpux
1119 if test x$gas = xyes
1121 tm_file="${tm_file} pa/pa-gas.h"
1123 install_headers_dir=install-headers-cpio
1126 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1127 target_cpu_default="MASK_PA_11"
1128 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1130 xm_file=pa/xm-pahpux.h
1131 xmake_file=pa/x-pa-hpux
1133 if test x$gas = xyes
1135 tm_file="${tm_file} pa/pa-gas.h"
1137 if test x$enable_threads = x; then
1138 enable_threads=$have_pthread_h
1140 case x${enable_threads} in
1142 tmake_file="${tmake_file} pa/t-dce-thr"
1145 install_headers_dir=install-headers-cpio
1149 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1151 xm_file=pa/xm-pahpux.h
1152 xmake_file=pa/x-pa-hpux
1154 if test x$gas = xyes
1156 tm_file="${tm_file} pa/pa-gas.h"
1158 if test x$enable_threads = x; then
1159 enable_threads=$have_pthread_h
1161 case x${enable_threads} in
1163 tmake_file="${tmake_file} pa/t-dce-thr"
1166 install_headers_dir=install-headers-cpio
1170 target_cpu_default="MASK_PA_11"
1171 xm_file=pa/xm-pa64hpux.h
1172 xmake_file=pa/x-pa-hpux
1174 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"
1176 tmake_file=pa/t-pa64
1177 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1179 if [[ x$gas = xyes ]]
1181 tm_file="${tm_file} pa/pa-gas.h"
1183 # if [[ x$enable_threads = x ]]; then
1184 # enable_threads=$have_pthread_h
1186 # if [[ x$enable_threads = xyes ]]; then
1188 # tmake_file="${tmake_file} pa/t-dce-thr"
1190 install_headers_dir=install-headers-cpio
1193 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1194 target_cpu_default="MASK_PA_11"
1195 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1197 xm_file=pa/xm-pahpux.h
1198 xmake_file=pa/x-pa-hpux
1200 if test x$gas = xyes
1202 tm_file="${tm_file} pa/pa-gas.h"
1204 # if test x$enable_threads = x; then
1205 # enable_threads=$have_pthread_h
1207 # if test x$enable_threads = xyes; then
1209 # tmake_file="${tmake_file} pa/t-dce-thr"
1211 install_headers_dir=install-headers-cpio
1215 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1217 xm_file=pa/xm-pahpux.h
1218 xmake_file=pa/x-pa-hpux
1219 if test x$gas = xyes
1221 tm_file="${tm_file} pa/pa-gas.h"
1223 # if test x$enable_threads = x; then
1224 # enable_threads=$have_pthread_h
1226 # if test x$enable_threads = xyes; then
1228 # tmake_file="${tmake_file} pa/t-dce-thr"
1230 install_headers_dir=install-headers-cpio
1233 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1234 target_cpu_default="MASK_PA_11"
1235 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1236 xm_file=pa/xm-pahpux.h
1237 xmake_file=pa/x-pa-hpux
1238 if test x$gas = xyes
1240 tm_file="${tm_file} pa/pa-gas.h"
1242 install_headers_dir=install-headers-cpio
1246 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1247 xm_file=pa/xm-pahpux.h
1248 xmake_file=pa/x-pa-hpux
1249 if test x$gas = xyes
1251 tm_file="${tm_file} pa/pa-gas.h"
1253 install_headers_dir=install-headers-cpio
1256 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1257 target_cpu_default="MASK_PA_11"
1258 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1259 xm_file=pa/xm-pahpux.h
1260 xmake_file=pa/x-pa-hpux
1261 if test x$gas = xyes
1263 tm_file="${tm_file} pa/pa-gas.h"
1265 install_headers_dir=install-headers-cpio
1269 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1270 xm_file=pa/xm-pahpux.h
1271 xmake_file=pa/x-pa-hpux
1272 if test x$gas = xyes
1274 tm_file="${tm_file} pa/pa-gas.h"
1276 install_headers_dir=install-headers-cpio
1280 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1281 target_cpu_default="MASK_PA_11"
1285 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1286 xm_file=pa/xm-pampeix.h
1287 xmake_file=pa/x-pa-mpeix
1288 echo "You must use gas. Assuming it is already installed."
1289 install_headers_dir=install-headers-tar
1292 i370-*-opened*) # IBM 360/370/390 Architecture
1293 xm_file=i370/xm-oe.h
1295 xmake_file=i370/x-oe
1296 tmake_file=i370/t-oe
1299 xm_file=i370/xm-mvs.h
1301 tmake_file=i370/t-mvs
1304 xm_file="xm-linux.h i370/xm-linux.h"
1306 tm_file="i370/linux.h ${tm_file}"
1307 tmake_file="t-linux i370/t-linux"
1308 # broken_install=yes
1309 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1310 # extra_parts="crtbegin.o crtend.o"
1314 if test x$enable_threads = xyes; then
1321 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1322 tm_file=i386/i386elf.h
1323 tmake_file=i386/t-i386elf
1327 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1329 if test x$gas = xyes
1331 tm_file=i386/aix386.h
1332 extra_parts="crtbegin.o crtend.o"
1333 tmake_file=i386/t-crtstuff
1335 tm_file=i386/aix386ng.h
1338 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1340 xmake_file=i386/x-aix
1343 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1345 xm_file="xm-alloca.h ${xm_file}"
1346 xm_defines="USG POSIX SMALL_ARG_MAX"
1347 xmake_file=i386/x-ncr3000
1348 if test x$stabs = xyes -a x$gas = xyes
1350 tm_file=i386/sysv4gdb.h
1352 tm_file=i386/sysv4.h
1354 extra_parts="crtbegin.o crtend.o"
1355 tmake_file=i386/t-crtpic
1361 xm_file=i386/xm-next.h
1362 tmake_file=i386/t-next
1363 xmake_file=i386/x-next
1364 extra_objs=nextstep.o
1365 extra_parts="crtbegin.o crtend.o"
1366 if test x$enable_threads = xyes; then
1371 i[34567]86-sequent-bsd*) # 80386 from Sequent
1374 if test x$gas = xyes
1376 tm_file=i386/seq-gas.h
1378 tm_file=i386/sequent.h
1382 i[34567]86-sequent-ptx1*)
1384 xm_defines="USG SVR3"
1385 xmake_file=i386/x-sysv3
1386 tm_file=i386/seq-sysv3.h
1387 tmake_file=i386/t-crtstuff
1388 extra_parts="crtbegin.o crtend.o"
1389 install_headers_dir=install-headers-cpio
1392 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1394 xm_defines="USG SVR3"
1395 xmake_file=i386/x-sysv3
1396 tm_file=i386/seq2-sysv3.h
1397 tmake_file=i386/t-crtstuff
1398 extra_parts="crtbegin.o crtend.o"
1399 install_headers_dir=install-headers-cpio
1402 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1404 xm_file="xm-alloca.h ${xm_file}"
1405 xm_defines="USG POSIX SMALL_ARG_MAX"
1407 tm_file=i386/ptx4-i.h
1409 extra_parts="crtbegin.o crtend.o"
1410 install_headers_dir=install-headers-cpio
1412 i386-sun-sunos*) # Sun i386 roadrunner
1418 i[34567]86-wrs-vxworks*)
1420 tm_file=i386/vxi386.h
1421 tmake_file=i386/t-i386bare
1422 thread_file='vxworks'
1427 tm_file=i386/i386-aout.h
1428 tmake_file=i386/t-i386bare
1431 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1433 xm_file=i386/xm-beos.h
1434 tmake_file='i386/t-beos i386/t-crtpic'
1435 tm_file=i386/beos-elf.h
1436 xmake_file=i386/x-beos
1437 extra_parts='crtbegin.o crtend.o'
1440 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1442 tm_file=i386/bsd386.h
1443 # tmake_file=t-libc-ok
1448 tm_file=i386/386bsd.h
1449 # tmake_file=t-libc-ok
1450 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1454 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1456 tm_file="i386/freebsd.h i386/perform.h"
1457 tmake_file=t-freebsd
1460 i[34567]86-*-freebsd*)
1462 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1463 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1464 tmake_file=t-freebsd
1468 case x${enable_threads} in
1469 xyes | xpthreads | xposix)
1471 tmake_file="${tmake_file} t-freebsd-thread"
1476 i[34567]86-*-netbsd*)
1478 tm_file=i386/netbsd.h
1483 i[34567]86-*-openbsd*)
1485 # we need collect2 until our bug is fixed...
1491 tm_file=i386/i386-coff.h
1492 tmake_file=i386/t-i386bare
1495 i[34567]86-*-isc*) # 80386 running ISC system
1497 xm_file="${xm_file} i386/xm-isc.h"
1498 xm_defines="USG SVR3"
1501 i[34567]86-*-isc[34]*)
1503 xmake_file=i386/x-isc3
1506 xmake_file=i386/x-isc
1509 if test x$gas = xyes -a x$stabs = xyes
1511 tm_file=i386/iscdbx.h
1512 tmake_file=i386/t-svr3dbx
1513 extra_parts="svr3.ifile svr3z.ifile"
1515 tm_file=i386/isccoff.h
1516 tmake_file=i386/t-crtstuff
1517 extra_parts="crtbegin.o crtend.o"
1519 tmake_file="$tmake_file i386/t-i386bare"
1520 install_headers_dir=install-headers-cpio
1523 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1524 changequote([,])dnl # with a.out format using
1526 xmake_file=x-linux-aout
1527 tmake_file="t-linux-aout i386/t-crtstuff"
1528 tm_file=i386/linux-oldld.h
1533 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1534 changequote([,])dnl # with a.out format
1535 xmake_file=x-linux-aout
1536 tmake_file="t-linux-aout i386/t-crtstuff"
1537 tm_file=i386/linux-aout.h
1542 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1543 changequote([,])dnl # with ELF format using the
1544 # GNU/Linux C library 5
1546 tm_file=i386/linux.h
1547 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1548 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1551 if test x$enable_threads = xyes; then
1552 thread_file='single'
1556 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1557 changequote([,])dnl # with ELF format using glibc 2
1558 # aka GNU/Linux C library 6
1560 tm_file=i386/linux.h
1561 tmake_file="t-linux i386/t-crtstuff"
1562 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1565 if test x$enable_threads = xyes; then
1575 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1577 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1581 i[34567]86-pc-msdosdjgpp*)
1583 xm_file=i386/xm-djgpp.h
1584 tm_file=i386/djgpp.h
1585 tmake_file=i386/t-djgpp
1586 xmake_file=i386/x-djgpp
1591 case $host in *pc-msdosdjgpp*)
1597 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1600 tmake_file=t-libc-ok
1605 i[34567]86-*-lynxos*)
1607 if test x$gas = xyes
1611 tm_file=i386/lynx-ng.h
1613 xm_file=i386/xm-lynx.h
1614 tmake_file=i386/t-i386bare
1621 # tmake_file=t-libc-ok
1625 i[34567]86-*-osfrose*) # 386 using OSF/rose
1627 if test x$elf = xyes
1629 tm_file=i386/osfelf.h
1632 tm_file=i386/osfrose.h
1635 xm_file="i386/xm-osf.h ${xm_file}"
1636 xmake_file=i386/x-osfrose
1637 tmake_file=i386/t-osf
1638 extra_objs=halfpic.o
1641 i[34567]86-go32-rtems*)
1644 xm_file=i386/xm-go32.h
1645 tm_file=i386/go32-rtems.h
1646 tmake_file="i386/t-go32 t-rtems"
1649 i[34567]86-*-rtemscoff*)
1652 tm_file=i386/rtems.h
1653 tmake_file="i386/t-i386bare t-rtems"
1656 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1659 tm_file=i386/rtemself.h
1660 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1661 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1664 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1666 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1667 xm_defines="USG SVR3"
1668 xmake_file=i386/x-sco5
1669 install_headers_dir=install-headers-cpio
1671 if test x$gas = xyes
1673 tm_file="i386/sco5gas.h ${tm_file}"
1674 tmake_file=i386/t-sco5gas
1676 tmake_file=i386/t-sco5
1678 tmake_file="$tmake_file i386/t-i386bare"
1679 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1682 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1684 xm_file="${xm_file} i386/xm-sco.h"
1685 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1686 xmake_file=i386/x-sco4
1687 install_headers_dir=install-headers-cpio
1688 if test x$stabs = xyes
1690 tm_file=i386/sco4dbx.h
1691 tmake_file=i386/t-svr3dbx
1692 extra_parts="svr3.ifile svr3z.rfile"
1695 tmake_file=i386/t-crtstuff
1696 extra_parts="crtbegin.o crtend.o"
1698 tmake_file="$tmake_file i386/t-i386bare"
1699 # The default EAFS filesystem supports long file names.
1700 # Truncating the target makes $host != $target which
1701 # makes gcc think it is doing a cross-compile.
1702 # truncate_target=yes
1705 i[34567]86-*-sco*) # 80386 running SCO system
1707 xm_file=i386/xm-sco.h
1708 xmake_file=i386/x-sco
1709 install_headers_dir=install-headers-cpio
1710 if test x$stabs = xyes
1712 tm_file=i386/scodbx.h
1713 tmake_file=i386/t-svr3dbx
1714 extra_parts="svr3.ifile svr3z.rfile"
1717 extra_parts="crtbegin.o crtend.o"
1718 tmake_file=i386/t-crtstuff
1720 tmake_file="$tmake_file i386/t-i386bare"
1724 i[34567]86-*-solaris2*)
1726 xm_file="xm-alloca.h ${xm_file}"
1727 xm_defines="USG POSIX SMALL_ARG_MAX"
1729 if test x$gas = xyes; then
1730 # Only needed if gas does not support -s
1731 tm_file="i386/sol2gas.h ${tm_file}"
1733 tmake_file="i386/t-i386bare i386/t-sol2"
1734 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1736 if test x${enable_threads} = x; then
1737 enable_threads=$have_pthread_h
1738 if test x${enable_threads} = x; then
1739 enable_threads=$have_thread_h
1742 if test x${enable_threads} = xyes; then
1743 if test x${have_pthread_h} = xyes; then
1746 thread_file='solaris'
1751 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1753 xm_file="xm-alloca.h ${xm_file}"
1754 xm_defines="USG POSIX"
1755 tm_file=i386/sysv5.h
1756 if test x$stabs = xyes
1758 tm_file="${tm_file} dbx.h"
1760 tmake_file="i386/t-i386bare i386/t-crtpic"
1762 extra_parts="crtbegin.o crtend.o"
1763 if test x$enable_threads = xyes; then
1768 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1770 xm_file="xm-alloca.h ${xm_file}"
1771 xm_defines="USG POSIX SMALL_ARG_MAX"
1772 tm_file=i386/sysv4.h
1773 if test x$stabs = xyes
1775 tm_file="${tm_file} dbx.h"
1777 tmake_file="i386/t-i386bare i386/t-crtpic"
1779 extra_parts="crtbegin.o crtend.o"
1782 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1784 xm_file="xm-alloca.h ${xm_file}"
1785 xm_defines="USG POSIX"
1787 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1789 extra_parts="crtbegin.o crtend.o"
1790 install_headers_dir=install-headers-cpio
1793 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1796 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1797 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1798 if test x$stabs = xyes
1800 tm_file=i386/osf1elfgdb.h
1802 tm_file=i386/osf1elf.h
1804 tmake_file=i386/t-osf1elf
1805 xmake_file=i386/x-osf1elf
1806 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1809 i[34567]86-*-sysv*) # Intel 80386's running system V
1811 xm_defines="USG SVR3"
1812 xmake_file=i386/x-sysv3
1813 if test x$gas = xyes
1815 if test x$stabs = xyes
1817 tm_file=i386/svr3dbx.h
1818 tmake_file=i386/t-svr3dbx
1819 extra_parts="svr3.ifile svr3z.rfile"
1821 tm_file=i386/svr3gas.h
1822 extra_parts="crtbegin.o crtend.o"
1823 tmake_file=i386/t-crtstuff
1826 tm_file=i386/sysv3.h
1827 extra_parts="crtbegin.o crtend.o"
1828 tmake_file=i386/t-crtstuff
1830 tmake_file="$tmake_file i386/t-crtpic"
1832 i386-*-vsta) # Intel 80386's running VSTa kernel
1833 xm_file="${xm_file} i386/xm-vsta.h"
1835 tmake_file=i386/t-vsta
1836 xmake_file=i386/x-vsta
1841 xm_file="${xm_file} i386/xm-cygwin.h"
1842 tmake_file=i386/t-cygwin
1843 tm_file=i386/win32.h
1844 xmake_file=i386/x-cygwin
1846 if test x$enable_threads = xyes; then
1852 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1854 xm_file="${xm_file} i386/xm-cygwin.h"
1855 tmake_file=i386/t-cygwin
1856 tm_file=i386/cygwin.h
1857 xmake_file=i386/x-cygwin
1859 if test x$enable_threads = xyes; then
1865 i[34567]86-*-mingw32*)
1867 tm_file=i386/mingw32.h
1868 xm_file="${xm_file} i386/xm-mingw32.h"
1869 tmake_file="i386/t-cygwin i386/t-mingw32"
1871 xmake_file=i386/x-cygwin
1872 if test x$enable_threads = xyes; then
1879 *minwg32crt* | *mingw32*)
1880 tm_file="${tm_file} i386/crtdll.h"
1888 xm_file="${xm_file} i386/xm-uwin.h"
1889 xm_defines="USG NO_STAB_H"
1890 tmake_file="i386/t-cygwin i386/t-uwin"
1892 xmake_file=i386/x-cygwin
1893 if test x$enable_threads = xyes; then
1899 i[34567]86-*-interix*)
1901 tm_file="i386/i386-interix.h interix.h"
1902 xm_file="i386/xm-i386-interix.h xm-interix.h"
1904 tmake_file="i386/t-interix"
1905 extra_objs=interix.o
1906 xmake_file=x-interix
1907 if test x$enable_threads = xyes ; then
1910 if test x$stabs = xyes ; then
1911 tm_file="${tm_file} dbxcoff.h"
1915 i[34567]86-*-winnt3*)
1917 tm_file=i386/win-nt.h
1918 out_file=i386/i386.c
1919 xm_file="xm-winnt.h ${xm_file}"
1920 xmake_file=winnt/x-winnt
1921 tmake_file=i386/t-winnt
1922 extra_host_objs="winnt.o oldnames.o"
1923 extra_gcc_objs="spawnv.o oldnames.o"
1924 if test x$gnu_ld != xyes
1926 extra_programs=ld.exe
1928 if test x$enable_threads = xyes; then
1933 i[34567]86-dg-dgux*)
1935 xm_file="xm-alloca.h ${xm_file}"
1936 xm_defines="USG POSIX"
1937 out_file=i386/dgux.c
1939 tmake_file=i386/t-dgux
1940 xmake_file=i386/x-dgux
1941 install_headers_dir=install-headers-cpio
1943 i860-alliant-*) # Alliant FX/2800
1944 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1945 xm_file="${xm_file}"
1946 xmake_file=i860/x-fx2800
1947 tmake_file=i860/t-fx2800
1948 extra_parts="crtbegin.o crtend.o"
1951 tm_file="${tm_file} i860/bsd.h"
1952 if test x$gas = xyes
1954 tm_file="${tm_file} i860/bsd-gas.h"
1959 tm_file="${tm_file} i860/mach.h"
1960 tmake_file=t-libc-ok
1962 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1963 tm_file="${tm_file} svr3.h i860/paragon.h"
1964 xm_defines="USG SVR3"
1968 tm_file="${tm_file} svr3.h i860/sysv3.h"
1969 xm_defines="USG SVR3"
1970 xmake_file=i860/x-sysv3
1971 extra_parts="crtbegin.o crtend.o"
1974 tm_file="${tm_file} svr4.h i860/sysv4.h"
1975 xm_defines="USG SVR3"
1976 xmake_file=i860/x-sysv4
1978 extra_parts="crtbegin.o crtend.o"
1980 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1981 tm_file="${tm_file} i960/vx960.h"
1982 tmake_file=i960/t-vxworks960
1984 thread_file='vxworks'
1986 i960-wrs-vxworks5* | i960-wrs-vxworks)
1987 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1988 tmake_file=i960/t-vxworks960
1990 thread_file='vxworks'
1993 tm_file="${tm_file} i960/vx960.h"
1994 tmake_file=i960/t-vxworks960
1996 thread_file='vxworks'
1999 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2000 tmake_file=i960/t-960bare
2004 tmake_file="i960/t-960bare t-rtems"
2005 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2008 i960-*-*) # Default i960 environment.
2013 tmake_file="ia64/t-ia64"
2014 target_cpu_default="0"
2015 if test x$gas = xyes
2017 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
2019 if test x$gnu_ld = xyes
2021 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
2025 tm_file=ia64/linux.h
2026 tmake_file="t-linux ia64/t-ia64"
2027 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
2028 if test x$enable_threads = xyes; then
2033 extra_parts="crtinit.o crtfini.o"
2035 m68000-convergent-sysv*)
2037 xm_file="m68k/xm-3b1.h ${xm_file}"
2040 extra_headers=math-68881.h
2042 m68000-hp-bsd*) # HP 9000/200 running BSD
2043 tm_file=m68k/hp2bsd.h
2044 xmake_file=m68k/x-hp2bsd
2046 extra_headers=math-68881.h
2048 m68000-hp-hpux*) # HP 9000 series 300
2049 xm_file="xm-alloca.h ${xm_file}"
2051 if test x$gas = xyes
2053 xmake_file=m68k/x-hp320g
2054 tm_file=m68k/hp310g.h
2056 xmake_file=m68k/x-hp320
2057 tm_file=m68k/hp310.h
2059 install_headers_dir=install-headers-cpio
2061 extra_headers=math-68881.h
2066 extra_headers=math-68881.h
2069 tm_file=m68k/sun2o4.h
2071 extra_headers=math-68881.h
2074 xm_file="m68k/xm-3b1.h ${xm_file}"
2076 if test x$gas = xyes
2083 extra_headers=math-68881.h
2085 m68k-apple-aux*) # Apple Macintosh running A/UX
2086 xm_defines="USG AUX"
2087 tmake_file=m68k/t-aux
2088 install_headers_dir=install-headers-cpio
2089 extra_headers=math-68881.h
2090 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2092 if test "$gnu_ld" = yes
2094 tm_file="${tm_file} m68k/auxgld.h"
2096 tm_file="${tm_file} m68k/auxld.h"
2098 if test "$gas" = yes
2100 tm_file="${tm_file} m68k/auxgas.h"
2102 tm_file="${tm_file} m68k/auxas.h"
2104 tm_file="${tm_file} m68k/a-ux.h"
2108 tm_file=m68k/apollo68.h
2109 xmake_file=m68k/x-apollo68
2111 extra_headers=math-68881.h
2114 m68k-altos-sysv*) # Altos 3068
2115 if test x$gas = xyes
2117 tm_file=m68k/altos3068.h
2120 echo "The Altos is supported only with the GNU assembler" 1>&2
2123 extra_headers=math-68881.h
2125 m68k-bull-sysv*) # Bull DPX/2
2126 if test x$gas = xyes
2128 if test x$stabs = xyes
2130 tm_file=m68k/dpx2cdbx.h
2132 tm_file=m68k/dpx2g.h
2137 xm_file="xm-alloca.h ${xm_file}"
2139 xmake_file=m68k/x-dpx2
2141 extra_headers=math-68881.h
2143 m68k-atari-sysv4*) # Atari variant of V.4.
2144 tm_file=m68k/atari.h
2145 xm_file="xm-alloca.h ${xm_file}"
2146 xm_defines="USG FULL_PROTOTYPES"
2148 extra_parts="crtbegin.o crtend.o"
2149 extra_headers=math-68881.h
2152 m68k-motorola-sysv*)
2153 tm_file=m68k/mot3300.h
2154 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2155 if test x$gas = xyes
2157 xmake_file=m68k/x-mot3300-gas
2158 if test x$gnu_ld = xyes
2160 tmake_file=m68k/t-mot3300-gald
2162 tmake_file=m68k/t-mot3300-gas
2166 xmake_file=m68k/x-mot3300
2167 if test x$gnu_ld = xyes
2169 tmake_file=m68k/t-mot3300-gld
2171 tmake_file=m68k/t-mot3300
2175 gdb_needs_out_file_path=yes
2176 extra_parts="crt0.o mcrt0.o"
2177 extra_headers=math-68881.h
2180 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2181 tm_file=m68k/tower-as.h
2182 xm_defines="USG SVR3"
2183 xmake_file=m68k/x-tower
2184 extra_parts="crtbegin.o crtend.o"
2185 extra_headers=math-68881.h
2188 tm_file=m68k/plexus.h
2189 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2192 extra_headers=math-68881.h
2196 xm_file="xm-alloca.h ${xm_file}"
2198 extra_headers=math-68881.h
2201 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2202 xm_defines="USG unos"
2203 xmake_file=m68k/x-crds
2206 extra_headers=math-68881.h
2208 m68k-cbm-sysv4*) # Commodore variant of V.4.
2210 xm_file="xm-alloca.h ${xm_file}"
2211 xm_defines="USG FULL_PROTOTYPES"
2212 xmake_file=m68k/x-amix
2214 extra_parts="crtbegin.o crtend.o"
2215 extra_headers=math-68881.h
2219 tm_file=m68k/ccur-GAS.h
2220 xmake_file=m68k/x-ccur
2221 extra_headers=math-68881.h
2225 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2226 tm_file=m68k/hp3bsd44.h
2227 xmake_file=m68k/x-hp3bsd44
2229 extra_headers=math-68881.h
2232 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2233 tm_file=m68k/hp3bsd.h
2235 extra_headers=math-68881.h
2239 if test x$with_fp = xno
2241 tm_file=m68k/isi-nfp.h
2247 extra_headers=math-68881.h
2249 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2250 xm_file="xm-alloca.h ${xm_file}"
2252 if test x$gas = xyes
2254 xmake_file=m68k/x-hp320g
2255 tm_file=m68k/hp320g.h
2257 xmake_file=m68k/x-hp320
2258 tm_file=m68k/hpux7.h
2260 install_headers_dir=install-headers-cpio
2262 extra_headers=math-68881.h
2265 m68k-hp-hpux*) # HP 9000 series 300
2266 xm_file="xm-alloca.h ${xm_file}"
2268 if test x$gas = xyes
2270 xmake_file=m68k/x-hp320g
2271 tm_file=m68k/hp320g.h
2273 xmake_file=m68k/x-hp320
2274 tm_file=m68k/hp320.h
2276 install_headers_dir=install-headers-cpio
2278 extra_headers=math-68881.h
2282 tm_file=m68k/sun3mach.h
2284 extra_headers=math-68881.h
2288 if test x$gas = xyes
2290 tm_file=m68k/news3gas.h
2292 tm_file=m68k/news3.h
2295 extra_headers=math-68881.h
2298 m68k-sony-bsd* | m68k-sony-newsos*)
2299 if test x$gas = xyes
2301 tm_file=m68k/newsgas.h
2306 extra_headers=math-68881.h
2309 m68k-next-nextstep2*)
2310 tm_file=m68k/next21.h
2311 xm_file="m68k/xm-next.h ${xm_file}"
2312 tmake_file=m68k/t-next
2313 xmake_file=m68k/x-next
2314 extra_objs=nextstep.o
2315 extra_headers=math-68881.h
2320 m68k-next-nextstep[34]*)
2323 xm_file="m68k/xm-next.h ${xm_file}"
2324 tmake_file=m68k/t-next
2325 xmake_file=m68k/x-next
2326 extra_objs=nextstep.o
2327 extra_parts="crtbegin.o crtend.o"
2328 extra_headers=math-68881.h
2330 if test x$enable_threads = xyes; then
2335 if test x$with_fp = xno
2337 tm_file=m68k/sun3n3.h
2339 tm_file=m68k/sun3o3.h
2343 extra_headers=math-68881.h
2345 m68k-sun-sunos*) # For SunOS 4 (the default).
2346 if test x$with_fp = xno
2348 tm_file=m68k/sun3n.h
2354 extra_headers=math-68881.h
2357 tm_file=m68k/vxm68k.h
2358 tmake_file=m68k/t-vxworks68
2359 extra_headers=math-68881.h
2360 thread_file='vxworks'
2364 tmake_file=m68k/t-m68kbare
2365 tm_file="m68k/m68k-aout.h libgloss.h"
2366 extra_headers=math-68881.h
2370 tmake_file=m68k/t-m68kbare
2371 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2372 extra_headers=math-68881.h
2375 m68020-*-elf* | m68k-*-elf*)
2376 tm_file="m68k/m68020-elf.h"
2377 xm_file=m68k/xm-m68kv.h
2378 tmake_file=m68k/t-m68kelf
2379 header_files=math-68881.h
2382 if test x$gas = xyes
2386 tm_file=m68k/lynx-ng.h
2388 xm_file=m68k/xm-lynx.h
2390 tmake_file=m68k/t-lynx
2391 extra_headers=math-68881.h
2395 tm_file=m68k/netbsd.h
2402 # we need collect2 until our bug is fixed...
2405 m68k-*-sysv3*) # Motorola m68k's running system V.3
2406 xm_file="xm-alloca.h ${xm_file}"
2408 xmake_file=m68k/x-m68kv
2409 extra_parts="crtbegin.o crtend.o"
2410 extra_headers=math-68881.h
2413 m68k-*-sysv4*) # Motorola m68k's running system V.4
2414 tm_file=m68k/m68kv4.h
2415 xm_file="xm-alloca.h ${xm_file}"
2418 extra_parts="crtbegin.o crtend.o"
2419 extra_headers=math-68881.h
2422 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2425 tm_file=m68k/linux-aout.h
2426 tmake_file="t-linux-aout m68k/t-linux-aout"
2427 extra_headers=math-68881.h
2431 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2432 # with ELF format using the
2433 # GNU/Linux C library 5
2435 tm_file=m68k/linux.h
2436 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2437 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2438 extra_headers=math-68881.h
2442 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2443 # with ELF format using glibc 2
2444 # aka the GNU/Linux C library 6.
2446 tm_file=m68k/linux.h
2447 tmake_file="t-linux m68k/t-linux"
2448 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2449 extra_headers=math-68881.h
2452 if test x$enable_threads = xyes; then
2457 tmake_file=m68k/t-m68kbare
2458 tm_file=m68k/m68k-psos.h
2459 extra_headers=math-68881.h
2463 tmake_file="m68k/t-m68kbare t-rtems"
2464 tm_file=m68k/rtems.h
2465 extra_headers=math-68881.h
2468 m68k-*-rtemself*|m68k-*-rtems*)
2469 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2470 tm_file=m68k/rtemself.h
2471 extra_headers=math-68881.h
2477 tm_file=m88k/dguxbcs.h
2478 tmake_file=m88k/t-dguxbcs
2482 tmake_file=m88k/t-dgux
2485 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2486 xmake_file=m88k/x-dgux
2487 if test x$gas = xyes
2489 tmake_file=m88k/t-dgux-gas
2492 m88k-dolphin-sysv3*)
2493 tm_file=m88k/dolph.h
2494 extra_parts="crtbegin.o crtend.o"
2495 xm_file="m88k/xm-sysv3.h ${xm_file}"
2496 xmake_file=m88k/x-dolph
2497 if test x$gas = xyes
2499 tmake_file=m88k/t-m88k-gas
2502 m88k-tektronix-sysv3)
2503 tm_file=m88k/tekXD88.h
2504 extra_parts="crtbegin.o crtend.o"
2505 xm_file="m88k/xm-sysv3.h ${xm_file}"
2506 xmake_file=m88k/x-tekXD88
2507 if test x$gas = xyes
2509 tmake_file=m88k/t-m88k-gas
2513 tm_file=m88k/m88k-aout.h
2516 tm_file=m88k/m88k-coff.h
2517 tmake_file=m88k/t-bug
2521 extra_parts="crtbegin.o crtend.o"
2522 if test x$gas = xyes
2524 tmake_file=m88k/t-luna-gas
2526 tmake_file=m88k/t-luna
2530 tmake_file="${tmake_file} m88k/t-luna-gas"
2531 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2532 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2535 tm_file=m88k/sysv3.h
2536 extra_parts="crtbegin.o crtend.o"
2537 xm_file="m88k/xm-sysv3.h ${xm_file}"
2538 xmake_file=m88k/x-sysv3
2539 if test x$gas = xyes
2541 tmake_file=m88k/t-m88k-gas
2545 tm_file=m88k/sysv4.h
2546 extra_parts="crtbegin.o crtend.o"
2547 xmake_file=m88k/x-sysv4
2548 tmake_file=m88k/t-sysv4
2551 tm_file=mcore/mcore-elf.h
2552 tmake_file=mcore/t-mcore
2555 tm_file=mcore/mcore-pe.h
2556 tmake_file=mcore/t-mcore-pe
2558 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2559 if test "x$gnu_ld" = xyes
2561 tm_file="mips/iris6.h mips/iris6gld.h"
2563 tm_file=mips/iris6.h
2565 tmake_file=mips/t-iris6
2566 xm_file=mips/xm-iris6.h
2567 xmake_file=mips/x-iris6
2568 # if test x$enable_threads = xyes; then
2569 # thread_file='irix'
2573 tm_file="mips/elf.h mips/vxworks.h"
2574 tmake_file=mips/t-ecoff
2577 extra_parts="crtbegin.o crtend.o"
2578 thread_file='vxworks'
2580 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2581 tm_file="mips/iris6.h mips/cross64.h"
2583 xm_file="mips/xm-iris5.h"
2584 xmake_file=mips/x-iris
2585 tmake_file=mips/t-cross64
2586 # See comment in mips/iris[56].h files.
2588 # if test x$enable_threads = xyes; then
2589 # thread_file='irix'
2593 if test x$gas = xyes
2595 if test x$stabs = xyes
2597 tm_file=mips/iris5gdb.h
2599 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2602 tm_file=mips/sni-svr4.h
2605 xmake_file=mips/x-sni-svr4
2606 tmake_file=mips/t-mips-gas
2607 if test x$gnu_ld != xyes
2612 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2613 if test x$gas = xyes
2615 tm_file="mips/iris5.h mips/iris5gas.h"
2616 if test x$stabs = xyes
2618 tm_file="${tm_file} dbx.h"
2621 tm_file=mips/iris5.h
2624 xm_file="mips/xm-iris5.h"
2625 xmake_file=mips/x-iris
2626 # mips-tfile doesn't work yet
2627 tmake_file=mips/t-mips-gas
2628 # See comment in mips/iris5.h file.
2630 # if test x$enable_threads = xyes; then
2631 # thread_file='irix'
2634 mips-sgi-irix4loser*) # Mostly like a MIPS.
2635 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2636 if test x$stabs = xyes; then
2637 tm_file="${tm_file} dbx.h"
2640 xmake_file=mips/x-iris
2641 if test x$gas = xyes
2643 tmake_file=mips/t-mips-gas
2645 extra_passes="mips-tfile mips-tdump"
2647 if test x$gnu_ld != xyes
2651 # if test x$enable_threads = xyes; then
2652 # thread_file='irix'
2655 mips-sgi-irix4*) # Mostly like a MIPS.
2656 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2657 if test x$stabs = xyes; then
2658 tm_file="${tm_file} dbx.h"
2661 xmake_file=mips/x-iris
2662 if test x$gas = xyes
2664 tmake_file=mips/t-mips-gas
2666 extra_passes="mips-tfile mips-tdump"
2668 if test x$gnu_ld != xyes
2672 # if test x$enable_threads = xyes; then
2673 # thread_file='irix'
2676 mips-sgi-*) # Mostly like a MIPS.
2677 tm_file="mips/iris3.h ${tm_file}"
2678 if test x$stabs = xyes; then
2679 tm_file="${tm_file} dbx.h"
2682 xmake_file=mips/x-iris3
2683 if test x$gas = xyes
2685 tmake_file=mips/t-mips-gas
2687 extra_passes="mips-tfile mips-tdump"
2689 if test x$gnu_ld != xyes
2694 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2695 tm_file="mips/osfrose.h ${tm_file}"
2696 xmake_file=mips/x-osfrose
2697 tmake_file=mips/t-osfrose
2698 extra_objs=halfpic.o
2701 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2702 tm_file=mips/dec-osf1.h
2703 if test x$stabs = xyes; then
2704 tm_file="${tm_file} dbx.h"
2706 xmake_file=mips/x-dec-osf1
2707 if test x$gas = xyes
2709 tmake_file=mips/t-mips-gas
2711 tmake_file=mips/t-ultrix
2712 extra_passes="mips-tfile mips-tdump"
2714 if test x$gnu_ld != xyes
2719 mips-dec-bsd*) # Decstation running 4.4 BSD
2720 tm_file=mips/dec-bsd.h
2721 if test x$gas = xyes
2723 tmake_file=mips/t-mips-gas
2725 tmake_file=mips/t-ultrix
2726 extra_passes="mips-tfile mips-tdump"
2728 if test x$gnu_ld != xyes
2733 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2734 tm_file=mips/netbsd.h
2735 # On NetBSD, the headers are already okay, except for math.h.
2738 mips*-*-linux*) # Linux MIPS, either endian.
2741 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2742 *) tm_file="mips/elf.h mips/linux.h" ;;
2745 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2748 if test x$enable_threads = xyes; then
2752 mips*el-*-openbsd*) # mips little endian
2753 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2755 mips*-*-openbsd*) # mips big endian
2756 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2757 tm_file="mips/openbsd-be.h ${tm_file}"
2759 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2760 tm_file="mips/news4.h ${tm_file}"
2761 if test x$stabs = xyes; then
2762 tm_file="${tm_file} dbx.h"
2764 if test x$gas = xyes
2766 tmake_file=mips/t-mips-gas
2768 extra_passes="mips-tfile mips-tdump"
2770 if test x$gnu_ld != xyes
2774 xmake_file=mips/x-sony
2776 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2777 # That is based on svr4.
2778 # t-svr4 is not right because this system doesn't use ELF.
2779 tm_file="mips/news5.h ${tm_file}"
2780 if test x$stabs = xyes; then
2781 tm_file="${tm_file} dbx.h"
2784 if test x$gas = xyes
2786 tmake_file=mips/t-mips-gas
2788 extra_passes="mips-tfile mips-tdump"
2790 if test x$gnu_ld != xyes
2795 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2796 tm_file="mips/svr4-5.h mips/svr4-t.h"
2797 if test x$stabs = xyes; then
2798 tm_file="${tm_file} dbx.h"
2801 xmake_file=mips/x-sysv
2802 if test x$gas = xyes
2804 tmake_file=mips/t-mips-gas
2805 extra_parts="crtbegin.o crtend.o"
2807 tmake_file=mips/t-mips
2808 extra_passes="mips-tfile mips-tdump"
2810 if test x$gnu_ld != xyes
2815 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2816 tm_file="mips/ultrix.h ${tm_file}"
2817 if test x$stabs = xyes; then
2818 tm_file="${tm_file} dbx.h"
2820 xmake_file=mips/x-ultrix
2821 if test x$gas = xyes
2823 tmake_file=mips/t-mips-gas
2825 tmake_file=mips/t-ultrix
2826 extra_passes="mips-tfile mips-tdump"
2828 if test x$gnu_ld != xyes
2834 mips-*-riscos[56789]bsd*)
2836 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2837 if test x$stabs = xyes; then
2838 tm_file="${tm_file} dbx.h"
2840 if test x$gas = xyes
2842 tmake_file=mips/t-bsd-gas
2844 tmake_file=mips/t-bsd
2845 extra_passes="mips-tfile mips-tdump"
2847 if test x$gnu_ld != xyes
2853 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2855 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2856 if test x$stabs = xyes; then
2857 tm_file="${tm_file} dbx.h"
2859 if test x$gas = xyes
2861 tmake_file=mips/t-bsd-gas
2863 tmake_file=mips/t-bsd
2864 extra_passes="mips-tfile mips-tdump"
2866 if test x$gnu_ld != xyes
2872 mips-*-riscos[56789]sysv4*)
2874 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2875 if test x$stabs = xyes; then
2876 tm_file="${tm_file} dbx.h"
2878 xmake_file=mips/x-sysv
2879 if test x$gas = xyes
2881 tmake_file=mips/t-svr4-gas
2883 tmake_file=mips/t-svr4
2884 extra_passes="mips-tfile mips-tdump"
2886 if test x$gnu_ld != xyes
2892 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2894 tm_file="mips/svr4-4.h ${tm_file}"
2895 if test x$stabs = xyes; then
2896 tm_file="${tm_file} dbx.h"
2899 xmake_file=mips/x-sysv
2900 if test x$gas = xyes
2902 tmake_file=mips/t-svr4-gas
2904 tmake_file=mips/t-svr4
2905 extra_passes="mips-tfile mips-tdump"
2907 if test x$gnu_ld != xyes
2913 mips-*-riscos[56789]sysv*)
2915 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2916 if test x$stabs = xyes; then
2917 tm_file="${tm_file} dbx.h"
2920 xmake_file=mips/x-sysv
2921 if test x$gas = xyes
2923 tmake_file=mips/t-svr3-gas
2925 tmake_file=mips/t-svr3
2926 extra_passes="mips-tfile mips-tdump"
2928 if test x$gnu_ld != xyes
2933 mips-*-sysv* | mips-*-riscos*sysv*)
2934 tm_file="mips/svr3-4.h ${tm_file}"
2935 if test x$stabs = xyes; then
2936 tm_file="${tm_file} dbx.h"
2939 xmake_file=mips/x-sysv
2940 if test x$gas = xyes
2942 tmake_file=mips/t-svr3-gas
2944 tmake_file=mips/t-svr3
2945 extra_passes="mips-tfile mips-tdump"
2947 if test x$gnu_ld != xyes
2953 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2955 tm_file=mips/mips-5.h
2956 if test x$stabs = xyes; then
2957 tm_file="${tm_file} dbx.h"
2959 if test x$gas = xyes
2961 tmake_file=mips/t-mips-gas
2963 extra_passes="mips-tfile mips-tdump"
2965 if test x$gnu_ld != xyes
2973 tm_file=mips/ecoffl.h
2974 if test x$stabs = xyes; then
2975 tm_file="${tm_file} dbx.h"
2977 tmake_file=mips/t-ecoff
2980 tm_file="gofast.h mips/ecoff.h"
2981 if test x$stabs = xyes; then
2982 tm_file="${tm_file} dbx.h"
2984 tmake_file=mips/t-ecoff
2987 tm_file="mips/elfl.h"
2988 tmake_file=mips/t-elf
2991 tm_file="mips/elf.h"
2992 tmake_file=mips/t-elf
2995 tm_file="mips/elfl64.h"
2996 tmake_file=mips/t-elf
2998 mips64orionel-*-elf*)
2999 tm_file="mips/elforion.h mips/elfl64.h"
3000 tmake_file=mips/t-elf
3003 tm_file="mips/elf64.h"
3004 tmake_file=mips/t-elf
3007 tm_file="mips/elforion.h mips/elf64.h"
3008 tmake_file=mips/t-elf
3010 mips64orion-*-rtems*)
3011 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
3012 tmake_file="mips/t-elf t-rtems"
3015 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
3016 tmake_file=mips/t-r3900
3019 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
3020 tmake_file=mips/t-r3900
3022 mips-*-*) # Default MIPS RISC-OS 4.0.
3023 if test x$stabs = xyes; then
3024 tm_file="${tm_file} dbx.h"
3026 if test x$gas = xyes
3028 tmake_file=mips/t-mips-gas
3030 extra_passes="mips-tfile mips-tdump"
3032 if test x$gnu_ld != xyes
3040 tm_file="mn10200/mn10200.h"
3041 if test x$stabs = xyes
3043 tm_file="${tm_file} dbx.h"
3049 tm_file="mn10300/mn10300.h"
3050 if test x$stabs = xyes
3052 tm_file="${tm_file} dbx.h"
3057 tm_file=ns32k/encore.h
3061 tm_file=ns32k/sequent.h
3065 tm_file=ns32k/tek6100.h
3069 tm_file=ns32k/tek6200.h
3072 # This has not been updated to GCC 2.
3075 # xmake_file=ns32k/x-genix
3076 # tm_file=ns32k/genix.h
3080 tm_file=ns32k/merlin.h
3084 tm_file=ns32k/pc532-mach.h
3088 tm_file=ns32k/pc532-min.h
3089 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3094 tm_file=ns32k/netbsd.h
3095 xm_file="ns32k/xm-netbsd.h ${xm_file}"
3096 # On NetBSD, the headers are already okay, except for math.h.
3101 tm_file="${tm_file} pdp11/2bsd.h"
3110 # This has not been updated to GCC 2.
3113 # xmake_file=pyr/x-pyr
3118 tm_file="svr4.h pj/linux.h ${tm_file}"
3123 tm_file="svr4.h pj/pjl.h ${tm_file}"
3130 xmake_file=romp/x-mach
3137 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3141 tm_file=rs6000/beos.h
3142 xm_file=rs6000/xm-beos.h
3143 tmake_file=rs6000/t-beos
3144 xmake_file=rs6000/x-beos
3147 tm_file=rs6000/sysv4.h
3148 xm_file="rs6000/xm-sysv4.h"
3149 xm_defines="USG POSIX"
3150 extra_headers=ppc-asm.h
3151 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3152 xmake_file=rs6000/x-sysv4
3155 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3156 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3157 extra_headers=ppc-asm.h
3160 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3161 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3162 extra_headers=ppc-asm.h
3165 tm_file="rs6000/sysv4.h"
3166 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3167 extra_headers=ppc-asm.h
3170 tm_file="rs6000/sysv4.h rs6000/eabi.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/rtems.h"
3176 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3177 extra_headers=ppc-asm.h
3179 powerpc-*-linux*libc1)
3180 tm_file="rs6000/sysv4.h rs6000/linux.h"
3181 xm_file=rs6000/xm-sysv4.h
3182 out_file=rs6000/rs6000.c
3183 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3185 extra_headers=ppc-asm.h
3186 if test x$enable_threads = xyes; then
3191 tm_file="rs6000/sysv4.h rs6000/linux.h"
3192 xm_file="rs6000/xm-sysv4.h"
3193 xm_defines="USG ${xm_defines}"
3194 out_file=rs6000/rs6000.c
3195 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3197 extra_headers=ppc-asm.h
3198 if test x$enable_threads = xyes; then
3202 powerpc-wrs-vxworks*)
3204 xm_file="rs6000/xm-sysv4.h"
3205 xm_defines="USG POSIX"
3206 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3207 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3208 extra_headers=ppc-asm.h
3209 thread_file='vxworks'
3211 powerpcle-wrs-vxworks*)
3213 xm_file="rs6000/xm-sysv4.h"
3214 xm_defines="USG POSIX"
3215 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3216 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3217 extra_headers=ppc-asm.h
3218 thread_file='vxworks'
3221 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3222 xm_file="rs6000/xm-sysv4.h"
3223 xm_defines="USG POSIX"
3224 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3225 xmake_file=rs6000/x-sysv4
3226 extra_headers=ppc-asm.h
3229 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3230 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3231 extra_headers=ppc-asm.h
3233 powerpcle-*-eabisim*)
3234 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3235 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3236 extra_headers=ppc-asm.h
3239 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3240 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3241 extra_headers=ppc-asm.h
3243 powerpcle-*-solaris2*)
3244 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3245 xm_file="rs6000/xm-sysv4.h"
3246 xm_defines="USG POSIX"
3247 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3248 xmake_file=rs6000/x-sysv4
3249 extra_headers=ppc-asm.h
3252 rs6000-ibm-aix3.[01]*)
3254 tm_file=rs6000/aix31.h
3255 xmake_file=rs6000/x-aix31
3260 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3262 tm_file=rs6000/aix3newas.h
3263 if test x$host != x$target
3265 tmake_file=rs6000/t-xnewas
3267 tmake_file=rs6000/t-newas
3273 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3275 tm_file=rs6000/aix41.h
3276 if test x$host != x$target
3278 tmake_file=rs6000/t-xnewas
3280 tmake_file=rs6000/t-newas
3282 if test "$gnu_ld" = yes
3284 xmake_file=rs6000/x-aix41-gld
3286 tmake_file="rs6000/t-newas rs6000/t-aix41"
3288 xmake_file=rs6000/x-aix41
3293 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3295 tm_file=rs6000/aix43.h
3296 tmake_file=rs6000/t-aix43
3297 xmake_file=rs6000/x-aix41
3302 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3304 tm_file=rs6000/aix43.h
3305 tmake_file=rs6000/t-aix43
3306 xmake_file=rs6000/x-aix41
3319 tm_file=rs6000/mach.h
3320 xm_file="${xm_file} rs6000/xm-mach.h"
3321 xmake_file=rs6000/x-mach
3325 tm_file=rs6000/lynx.h
3326 xm_file=rs6000/xm-lynx.h
3327 tmake_file=rs6000/t-rs6000
3328 xmake_file=rs6000/x-lynx
3336 tmake_file="sh/t-sh t-rtems"
3337 tm_file=sh/rtemself.h
3341 tmake_file="sh/t-sh t-rtems"
3350 xm_file="xm-alloca.h ${xm_file}"
3353 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3354 tm_file=sparc/vxsparc.h
3355 tmake_file=sparc/t-vxsparc
3357 thread_file='vxworks'
3360 tmake_file=sparc/t-sparcbare
3361 tm_file="sparc/aout.h libgloss.h"
3364 tm_file=sparc/netbsd.h
3369 # we need collect2 until our bug is fixed...
3377 tmake_file=sparc/t-elf
3378 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3382 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
3383 xm_file="${xm_file} sparc/xm-linux.h"
3384 tm_file=sparc/linux-aout.h
3388 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
3389 xm_file="${xm_file} sparc/xm-linux.h"
3391 tm_file=sparc/linux.h
3392 tmake_file="t-linux t-linux-gnulibc1"
3393 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3397 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
3398 xm_file="${xm_file} sparc/xm-linux.h"
3400 tm_file=sparc/linux.h
3401 tmake_file="t-linux"
3402 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3404 if test x$enable_threads = xyes; then
3410 if test x$gas = xyes
3412 tm_file=sparc/lynx.h
3414 tm_file=sparc/lynx-ng.h
3416 xm_file=sparc/xm-lynx.h
3417 tmake_file=sparc/t-sunos41
3421 tmake_file="sparc/t-sparcbare t-rtems"
3422 tm_file=sparc/rtems.h
3424 sparc-*-rtems*|sparc-*-rtemself*)
3425 tm_file="sparc/rtemself.h"
3426 tmake_file="sparc/t-elf t-rtems"
3427 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3431 sparcv9-*-solaris2*)
3432 if test x$gnu_ld = xyes
3434 tm_file=sparc/sol2-64.h
3436 tm_file=sparc/sol2-sld-64.h
3438 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3439 xm_defines="USG POSIX"
3440 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3441 xmake_file=sparc/x-sysv4
3442 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3444 if test x${enable_threads} = x ; then
3445 enable_threads=$have_pthread_h
3446 if test x${enable_threads} = x ; then
3447 enable_threads=$have_thread_h
3450 if test x${enable_threads} = xyes ; then
3451 if test x${have_pthread_h} = xyes ; then
3454 thread_file='solaris'
3458 sparc-hal-solaris2*)
3459 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3460 xm_defines="USG POSIX"
3461 tm_file="sparc/sol2.h sparc/hal.h"
3462 tmake_file="sparc/t-halos sparc/t-sol2"
3463 xmake_file=sparc/x-sysv4
3464 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3475 thread_file='solaris'
3478 if test x$gnu_ld = xyes
3480 tm_file=sparc/sol2.h
3482 tm_file=sparc/sol2-sld.h
3484 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3485 xm_defines="USG POSIX"
3486 tmake_file=sparc/t-sol2
3487 xmake_file=sparc/x-sysv4
3488 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3491 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3494 if test x$gnu_ld = xyes
3496 tm_file=sparc/sol2-64.h
3498 tm_file=sparc/sol2-sld-64.h
3500 tmake_file="$tmake_file sparc/t-sol2-64"
3513 if test x${enable_threads} = x; then
3514 enable_threads=$have_pthread_h
3515 if test x${enable_threads} = x; then
3516 enable_threads=$have_thread_h
3519 if test x${enable_threads} = xyes; then
3520 if test x${have_pthread_h} = xyes; then
3523 thread_file='solaris'
3528 tm_file=sparc/sunos4.h
3529 tmake_file=sparc/t-sunos40
3533 tm_file=sparc/sunos4.h
3534 tmake_file=sparc/t-sunos41
3536 if test x$gas = xyes; then
3537 tm_file="${tm_file} sparc/sun4gas.h"
3541 tm_file=sparc/sun4o3.h
3545 tm_file=sparc/sysv4.h
3546 xm_file="sparc/xm-sysv4.h"
3547 xm_defines="USG POSIX"
3549 xmake_file=sparc/x-sysv4
3550 extra_parts="crtbegin.o crtend.o"
3553 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3554 xm_defines="USG POSIX"
3555 tm_file=sparc/vxsim.h
3556 tmake_file=sparc/t-vxsparc
3557 xmake_file=sparc/x-sysv4
3560 tm_file="sparc/splet.h libgloss.h"
3561 tmake_file=sparc/t-splet
3564 tm_file="sparc/litecoff.h libgloss.h"
3565 tmake_file=sparc/t-sparclite
3568 tm_file="sparc/lite.h aoutos.h libgloss.h"
3569 tmake_file=sparc/t-sparclite
3572 tm_file="sparc/liteelf.h"
3573 tmake_file=sparc/t-sparclite
3574 extra_parts="crtbegin.o crtend.o"
3577 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3578 tmake_file=sparc/t-sp86x
3581 tm_file="sparc/sp86x-elf.h"
3582 tmake_file=sparc/t-sp86x
3583 extra_parts="crtbegin.o crtend.o"
3586 tmake_file=sparc/t-sp64
3587 tm_file=sparc/sp64-aout.h
3590 tmake_file=sparc/t-sp64
3591 tm_file=sparc/sp64-elf.h
3592 extra_parts="crtbegin.o crtend.o"
3594 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3595 tmake_file="t-linux sparc/t-linux64"
3596 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3597 tm_file=sparc/linux64.h
3599 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3601 if test x$enable_threads = xyes; then
3606 # This hasn't been upgraded to GCC 2.
3607 # tahoe-harris-*) # Harris tahoe, using COFF.
3608 # tm_file=tahoe/harris.h
3610 # tahoe-*-bsd*) # tahoe running BSD
3615 *** The Thumb targets have been depreciated. The equivalent
3616 *** ARM based toolchain can now generated Thumb instructions
3617 *** when the -mthumb switch is given to the compiler.])
3619 # This hasn't been upgraded to GCC 2.
3626 tm_file="v850/rtems.h"
3627 xm_file="v850/xm-v850.h"
3628 tmake_file="v850/t-v850 t-rtems"
3629 if test x$stabs = xyes
3631 tm_file="${tm_file} dbx.h"
3636 target_cpu_default="TARGET_CPU_generic"
3638 tm_file="v850/v850.h"
3639 xm_file="v850/xm-v850.h"
3640 tmake_file=v850/t-v850
3641 if test x$stabs = xyes
3643 tm_file="${tm_file} dbx.h"
3647 vax-*-bsd*) # vaxen running BSD
3651 vax-*-sysv*) # vaxen running system V
3652 tm_file="${tm_file} vax/vaxv.h"
3657 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3663 tmake_file="${tmake_file} vax/t-openbsd"
3664 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3665 xm_file="xm-openbsd.h vax/xm-vax.h"
3669 vax-*-ultrix*) # vaxen running ultrix
3670 tm_file="${tm_file} vax/ultrix.h"
3674 vax-*-vms*) # vaxen running VMS
3675 xm_file=vax/xm-vms.h
3679 vax-*-*) # vax default entry
3683 xm_file="${xm_file} xm-svr3"
3687 echo "Configuration $machine not supported" 1>&2
3694 ;; # Existing GNU/Linux systems do not use the GNU setup.
3696 # On the GNU system, the setup is just about the same on
3697 # each different CPU. The specific machines that GNU
3698 # supports are matched above and just set $cpu_type.
3699 xm_file="xm-gnu.h ${xm_file}"
3700 tm_file=${cpu_type}/gnu.h
3701 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3702 # GNU always uses ELF.
3704 # GNU tools are the only tools.
3707 xmake_file=x-linux # These details are the same as Linux.
3708 tmake_file=t-gnu # These are not.
3711 xmake_try_sysv=x-sysv
3712 install_headers_dir=install-headers-cpio
3715 install_headers_dir=install-headers-cpio
3719 # Distinguish i[34567]86
3720 # Also, do not run mips-tfile on MIPS if using gas.
3721 # Process --with-cpu= for PowerPC/rs6000
3722 target_cpu_default2=
3725 target_cpu_default2=1
3728 case $target_alias in
3730 target_cpu_default2=4
3733 target_cpu_default2=2
3737 i686-*-* | i786-*-*)
3738 target_cpu_default2=3
3745 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3748 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3751 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3754 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3757 target_cpu_default2="MASK_CPU_EV5"
3761 if test x$gas = xyes
3763 if test "$target_cpu_default2" = ""
3765 target_cpu_default2="MASK_GAS"
3767 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3772 case "x$with_cpu" in
3775 target_cpu_default2="TARGET_CPU_generic"
3778 # Distinguish cores, and major variants
3779 # arm7m doesn't exist, but D & I don't affect code
3781 xarm[23678] | xarm250 | xarm[67][01]0 \
3782 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3783 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3784 | xstrongarm | xstrongarm110 | xstrongarm1100)
3786 target_cpu_default2="TARGET_CPU_$with_cpu"
3790 echo "--with-cpu must be passed a value" 1>&2
3795 if test x$pass2done = xyes
3797 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3804 mips*-*-ecoff* | mips*-*-elf*)
3805 if test x$gas = xyes
3807 if test x$gnu_ld = xyes
3809 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3811 target_cpu_default2="MASK_GAS"
3816 if test x$gas = xyes
3818 target_cpu_default2="MASK_GAS"
3821 powerpc*-*-* | rs6000-*-*)
3822 case "x$with_cpu" in
3826 xcommon | xpower | xpower2 | xpowerpc | xrios \
3827 | xrios1 | xrios2 | xrsc | xrsc1 \
3828 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3829 | xec603e | x740 | x750 | x401 \
3830 | x403 | x505 | x801 | x821 | x823 | x860)
3831 target_cpu_default2="\"$with_cpu\""
3835 echo "--with-cpu must be passed a value" 1>&2
3840 if test x$pass2done = xyes
3842 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3849 case ".$with_cpu" in
3851 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3853 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3854 target_cpu_default2="TARGET_CPU_$with_cpu"
3857 if test x$pass2done = xyes
3859 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3867 if test "$target_cpu_default2" != ""
3869 if test "$target_cpu_default" != ""
3871 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3873 target_cpu_default=$target_cpu_default2
3877 # No need for collect2 if we have the GNU linker.
3878 # Actually, there is now; GNU ld doesn't handle the EH info or
3879 # collecting for shared libraries.
3886 # Save data on machine being used to compile GCC in build_xm_file.
3887 # Save data on host machine in vars host_xm_file and host_xmake_file.
3888 if test x$pass1done = x
3890 if test x"$xm_file" = x
3891 then build_xm_file=$cpu_type/xm-$cpu_type.h
3892 else build_xm_file=$xm_file
3894 build_xm_defines=$xm_defines
3895 build_install_headers_dir=$install_headers_dir
3896 build_exeext=$exeext
3899 if test x$pass2done = x
3901 if test x"$xm_file" = x
3902 then host_xm_file=$cpu_type/xm-$cpu_type.h
3903 else host_xm_file=$xm_file
3905 host_xm_defines=$xm_defines
3906 if test x"$xmake_file" = x
3907 then xmake_file=$cpu_type/x-$cpu_type
3909 host_xmake_file="$xmake_file"
3910 host_truncate_target=$truncate_target
3911 host_extra_gcc_objs=$extra_gcc_objs
3912 host_extra_objs=$extra_host_objs
3919 extra_objs="${host_extra_objs} ${extra_objs}"
3921 # Default the target-machine variables that were not explicitly set.
3922 if test x"$tm_file" = x
3923 then tm_file=$cpu_type/$cpu_type.h; fi
3925 if test x$extra_headers = x
3926 then extra_headers=; fi
3928 if test x"$xm_file" = x
3929 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3931 if test x$md_file = x
3932 then md_file=$cpu_type/$cpu_type.md; fi
3934 if test x$out_file = x
3935 then out_file=$cpu_type/$cpu_type.c; fi
3937 if test x"$tmake_file" = x
3938 then tmake_file=$cpu_type/t-$cpu_type
3941 if test x"$dwarf2" = xyes
3942 then tm_file="$tm_file tm-dwarf2.h"
3945 if test x$float_format = x
3946 then float_format=i64
3949 if test $float_format = none
3950 then float_h_file=Makefile.in
3951 else float_h_file=float-$float_format.h
3954 # Handle cpp installation.
3955 if test x$enable_cpp != xno
3957 tmake_file="$tmake_file t-install-cpp"
3960 # Say what files are being used for the output code and MD file.
3961 echo "Using \`$srcdir/config/$out_file' to output insns."
3962 echo "Using \`$srcdir/config/$md_file' as machine description file."
3965 for f in $tm_file; do
3968 if test $count = ax; then
3969 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3971 echo "Using the following target machine macro files:"
3972 for f in $tm_file; do
3973 echo " $srcdir/config/$f"
3978 for f in $host_xm_file; do
3981 if test $count = ax; then
3982 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3984 echo "Using the following host machine macro files:"
3985 for f in $host_xm_file; do
3986 echo " $srcdir/config/$f"
3990 if test "$host_xm_file" != "$build_xm_file"; then
3992 for f in $build_xm_file; do
3995 if test $count = ax; then
3996 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3998 echo "Using the following build machine macro files:"
3999 for f in $build_xm_file; do
4000 echo " $srcdir/config/$f"
4005 if test x$thread_file = x; then
4006 if test x$target_thread_file != x; then
4007 thread_file=$target_thread_file
4009 thread_file='single'
4013 # Set up the header files.
4014 # $links is the list of header files to create.
4015 # $vars is the list of shell variables with file names to include.
4016 # auto-host.h is the file containing items generated by autoconf and is
4017 # the first file included by config.h.
4019 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
4021 # If host=build, it is correct to have hconfig include auto-host.h
4022 # as well. If host!=build, we are in error and need to do more
4023 # work to find out the build config parameters.
4024 if test x$host = x$build
4026 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
4028 # We create a subdir, then run autoconf in the subdir.
4029 # To prevent recursion we set host and build for the new
4030 # invocation of configure to the build for this invocation
4037 /*) realsrcdir=${srcdir};;
4038 *) realsrcdir=../${srcdir};;
4040 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4041 --target=$target --host=$build --build=$build
4043 # We just finished tests for the build machine, so rename
4044 # the file auto-build.h in the gcc directory.
4045 mv auto-host.h ../auto-build.h
4048 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4051 xm_file="gansidecl.h ${xm_file}"
4052 tm_file="gansidecl.h ${tm_file}"
4054 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4055 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4056 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4059 if test -f config.status; then mv -f config.status config.bak; fi
4062 while test -n "$vars"
4064 set $vars; var=$1; shift; vars=$*
4065 set $links; link=$1; shift; links=$*
4066 set $defines; define=$1; shift; defines=$*
4069 # Make sure the file is created, even if it is empty.
4072 # Define TARGET_CPU_DEFAULT if the system wants one.
4073 # This substitutes for lots of *.h files.
4074 if test "$target_cpu_default" != "" -a $link = tm.h
4076 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4079 for file in `eval echo '$'$var`; do
4081 auto-host.h | auto-build.h )
4084 echo '#ifdef IN_GCC' >>$link
4087 echo "#include \"$file\"" >>$link
4089 auto-host.h | auto-build.h )
4092 echo '#endif' >>$link
4097 for def in `eval echo '$'$define`; do
4098 echo "#ifndef $def" >>$link
4099 echo "#define $def" >>$link
4100 echo "#endif" >>$link
4104 # Truncate the target if necessary
4105 if test x$host_truncate_target != x; then
4106 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4109 # Get the version trigger filename from the toplevel
4110 if test "${with_gcc_version_trigger+set}" = set; then
4111 gcc_version_trigger=$with_gcc_version_trigger
4113 gcc_version_trigger=${srcdir}/version.c
4116 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
4119 # Internationalization
4121 VERSION="$gcc_version"
4122 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4123 [Define to the name of the distribution.])
4124 AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4125 [Define to the version of the distribution.])
4131 # Enable NLS support by default
4133 [ --enable-nls use Native Language Support (default)],
4136 # if cross compiling, disable NLS support.
4137 # It's not worth the trouble, at least for now.
4139 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4140 AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
4145 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4147 # Windows32 Registry support for specifying GCC installation paths.
4148 AC_ARG_ENABLE(win32-registry,
4149 [ --disable-win32-registry
4150 Disable lookup of installation paths in the
4151 Registry on Windows hosts.
4152 --enable-win32-registry Enable registry lookup (default).
4153 --enable-win32-registry=KEY
4154 Use KEY instead of GCC version as the last portion
4155 of the registry key.],,)
4157 AC_MSG_CHECKING(whether windows registry support is requested)
4158 if test x$enable_win32_registry != xno; then
4159 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4160 [Define to 1 if installation paths should be looked up in Windows32
4161 Registry. Ignored on non windows32 hosts.])
4167 # Check if user specified a different registry key.
4168 case x${enable_win32_registry} in
4171 gcc_cv_win32_registry_key="$VERSION"
4174 # no registry lookup.
4175 gcc_cv_win32_registry_key=''
4178 # user-specified key.
4179 gcc_cv_win32_registry_key="$enable_win32_registry"
4183 if test x$enable_win32_registry != xno; then
4184 AC_MSG_CHECKING(registry key on windows hosts)
4185 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4186 [Define to be the last portion of registry key on windows hosts.])
4187 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4190 # Get an absolute path to the GCC top-level source directory
4196 # Conditionalize the makefile for this host machine.
4197 # Make-host contains the concatenation of all host makefile fragments
4198 # [there can be more than one]. This file is built by configure.frag.
4199 host_overrides=Make-host
4200 dep_host_xmake_file=
4201 for f in .. ${host_xmake_file}
4203 if test -f ${srcdir}/config/$f
4205 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4209 # Conditionalize the makefile for this target machine.
4210 # Make-target contains the concatenation of all host makefile fragments
4211 # [there can be more than one]. This file is built by configure.frag.
4212 target_overrides=Make-target
4214 for f in .. ${tmake_file}
4216 if test -f ${srcdir}/config/$f
4218 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4222 # If the host doesn't support symlinks, modify CC in
4223 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4224 # Otherwise, we can use "CC=$(CC)".
4226 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4228 cc_set_by_configure="\$(CC)"
4229 quoted_cc_set_by_configure="\$(CC)"
4230 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4233 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4235 symbolic_link="cp -p"
4239 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4240 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4241 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4245 out_object_file=`basename $out_file .c`.o
4248 for f in $tm_file; do
4251 tm_file_list="${tm_file_list} $f" ;;
4252 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4257 for f in $host_xm_file; do
4259 auto-host.h | gansidecl.h | hwint.h )
4260 host_xm_file_list="${host_xm_file_list} $f" ;;
4261 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4266 for f in $build_xm_file; do
4268 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4269 build_xm_file_list="${build_xm_file_list} $f" ;;
4270 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4274 # Define macro CROSS_COMPILE in compilation
4275 # if this is a cross-compiler.
4276 # Also use all.cross instead of all.internal
4277 # and add cross-make to Makefile.
4278 cross_overrides="/dev/null"
4279 if test x$host != x$target
4281 cross_defines="CROSS=-DCROSS_COMPILE"
4282 cross_overrides="${topdir}/cross-make"
4285 # If this is a cross-compiler that does not
4286 # have its own set of headers then define
4289 # If this is using newlib, then define inhibit_libc in
4290 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4291 # libgcc.a, but that's OK because newlib should have its own version of
4294 if [test x$host != x$target] && [test x$with_headers = x]; then
4295 inhibit_libc=-Dinhibit_libc
4297 if [test x$with_newlib = xyes]; then
4298 inhibit_libc=-Dinhibit_libc
4301 AC_SUBST(inhibit_libc)
4303 # When building gcc with a cross-compiler, we need to fix a few things.
4304 # This must come after cross-make as we want all.build to override
4306 build_overrides="/dev/null"
4307 if test x$build != x$host
4309 build_overrides="${topdir}/build-make"
4312 # Expand extra_headers to include complete path.
4313 # This substitutes for lots of t-* files.
4315 if test "x$extra_headers" = x
4318 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4319 for file in $extra_headers;
4321 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4325 if test x$use_collect2 = xno; then
4329 # Add a definition of USE_COLLECT2 if system wants one.
4330 # Also tell toplev.c what to do.
4331 # This substitutes for lots of t-* files.
4332 if test x$use_collect2 = x
4337 will_use_collect2="collect2"
4338 maybe_use_collect2="-DUSE_COLLECT2"
4342 # Set MD_DEPS if the real md file is in md.pre-cpp.
4343 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4344 # for line oriented comments, so we must always use a GNU cpp. If
4345 # building gcc with a cross compiler, use the cross compiler just
4346 # built. Otherwise, we can use the cpp just built.
4348 if test "x$md_cppflags" = x
4350 md_file_sub=$srcdir/config/$md_file
4355 # If we have gas in the build tree, make a link to it.
4356 if test -f ../gas/Makefile; then
4357 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4360 # If we have nm in the build tree, make a link to it.
4361 if test -f ../binutils/Makefile; then
4362 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4365 # If we have ld in the build tree, make a link to it.
4366 if test -f ../ld/Makefile; then
4367 # if test x$use_collect2 = x; then
4368 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4370 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4374 # Figure out what assembler alignment features are present.
4375 AC_MSG_CHECKING(assembler alignment features)
4377 gcc_cv_as_alignment_features=
4378 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4379 if test -x "$DEFAULT_ASSEMBLER"; then
4380 gcc_cv_as="$DEFAULT_ASSEMBLER"
4381 elif test -x "$AS"; then
4383 elif test -x as$host_exeext; then
4384 # Build using assembler in the current directory.
4385 gcc_cv_as=./as$host_exeext
4386 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4387 # Single tree build which includes gas.
4388 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4391 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4393 if test x$gcc_cv_gas_version != x; then
4398 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4399 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4401 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4402 # Gas version 2.6 and later support for .balign and .p2align.
4403 # bytes to skip when using .p2align.
4404 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
4405 gcc_cv_as_alignment_features=".balign and .p2align"
4406 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4408 # Gas version 2.8 and later support specifying the maximum
4409 # bytes to skip when using .p2align.
4410 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
4411 gcc_cv_as_alignment_features=".p2align including maximum skip"
4412 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4415 elif test x$host = x$target; then
4417 # Search the same directories that the installed compiler will
4418 # search. Else we may find the wrong assembler and lose. If we
4419 # do not find a suitable assembler binary, then try the user's
4422 # Also note we have to check MD_EXEC_PREFIX before checking the
4423 # user's path. Unfortunately, there is no good way to get at the
4424 # value of MD_EXEC_PREFIX here. So we do a brute force search
4425 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4426 # to be fixed as part of the make/configure rewrite too.
4428 if test "x$exec_prefix" = xNONE; then
4429 if test "x$prefix" = xNONE; then
4430 test_prefix=/usr/local
4435 test_prefix=$exec_prefix
4438 # If the loop below does not find an assembler, then use whatever
4439 # one we can find in the users's path.
4443 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4444 $test_prefix/lib/gcc-lib/$target \
4445 /usr/lib/gcc/$target/$gcc_version \
4446 /usr/lib/gcc/$target \
4447 $test_prefix/$target/bin/$target/$gcc_version \
4448 $test_prefix/$target/bin \
4453 /bsd43/usr/lib/cmplrs/cc \
4454 /usr/cross64/usr/bin \
4455 /usr/lib/cmplrs/cc \
4456 /sysv/usr/lib/cmplrs/cc \
4457 /svr4/usr/lib/cmplrs/cc \
4460 for dir in $test_dirs; do
4461 if test -f $dir/as$host_exeext; then
4462 gcc_cv_as=$dir/as$host_exeext
4467 if test x$gcc_cv_as != x; then
4468 # Check if we have .balign and .p2align
4469 echo ".balign 4" > conftest.s
4470 echo ".p2align 2" >> conftest.s
4471 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4472 gcc_cv_as_alignment_features=".balign and .p2align"
4473 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4475 rm -f conftest.s conftest.o
4476 # Check if specifying the maximum bytes to skip when
4477 # using .p2align is supported.
4478 echo ".p2align 4,,7" > conftest.s
4479 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4480 gcc_cv_as_alignment_features=".p2align including maximum skip"
4481 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4483 rm -f conftest.s conftest.o
4485 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4487 AC_MSG_CHECKING(assembler subsection support)
4488 gcc_cv_as_subsections=
4489 if test x$gcc_cv_as != x; then
4490 # Check if we have .subsection
4491 echo ".subsection 1" > conftest.s
4492 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4493 gcc_cv_as_subsections=".subsection"
4494 if test -x nm$host_exeext; then
4495 gcc_cv_nm=./nm$host_exeext
4496 elif test x$host = x$target; then
4498 gcc_cv_nm=nm$host_exeext
4500 if test x$gcc_cv_nm != x; then
4501 cat > conftest.s <<EOF
4502 conftest_label1: .word 0
4504 conftest_label2: .word 0
4507 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4508 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4509 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4510 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4513 gcc_cv_as_subsections="working .subsection -1"
4514 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4515 [Define if your assembler supports .subsection and .subsection -1 starts
4516 emitting at the beginning of your section.])
4521 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4523 AC_MSG_RESULT($gcc_cv_as_subsections)
4525 AC_MSG_CHECKING(assembler weak support)
4527 if test x$gcc_cv_as != x; then
4528 # Check if we have .weak
4529 echo " .weak foobar" > conftest.s
4530 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4531 AC_DEFINE(HAVE_GAS_WEAK, 1,
4532 [Define if your assembler supports .weak.])
4533 gcc_cv_as_weak="yes"
4535 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4537 AC_MSG_RESULT($gcc_cv_as_weak)
4539 AC_MSG_CHECKING(assembler hidden support)
4541 if test x$gcc_cv_as != x; then
4542 # Check if we have .hidden
4543 echo " .hidden foobar" > conftest.s
4544 echo "foobar:" >> conftest.s
4545 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4546 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4547 [Define if your assembler supports .hidden.])
4548 gcc_cv_as_hidden="yes"
4550 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4552 AC_MSG_RESULT($gcc_cv_as_hidden)
4556 AC_CACHE_CHECK([assembler .register pseudo-op support],
4557 gcc_cv_as_register_pseudo_op, [
4558 gcc_cv_as_register_pseudo_op=unknown
4559 if test x$gcc_cv_as != x; then
4560 # Check if we have .register
4561 echo ".register %g2, #scratch" > conftest.s
4562 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4563 gcc_cv_as_register_pseudo_op=yes
4565 gcc_cv_as_register_pseudo_op=no
4567 rm -f conftest.s conftest.o
4570 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4571 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4572 [Define if your assembler supports .register.])
4575 AC_CACHE_CHECK([assembler supports -relax],
4576 gcc_cv_as_relax_opt, [
4577 gcc_cv_as_relax_opt=unknown
4578 if test x$gcc_cv_as != x; then
4579 # Check if gas supports -relax
4580 echo ".text" > conftest.s
4581 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
4582 gcc_cv_as_relax_opt=yes
4584 gcc_cv_as_relax_opt=no
4586 rm -f conftest.s conftest.o
4589 if test "x$gcc_cv_as_relax_opt" = xyes; then
4590 AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
4591 [Define if your assembler supports -relax option.])
4596 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4597 gcc_cv_as_flags64, [
4598 if test -n "$gcc_cv_as"; then
4599 echo ".xword foo" > conftest.s
4600 gcc_cv_as_flags64=no
4601 for flag in "-xarch=v9" "-64 -Av9"; do
4602 if $gcc_cv_as $flag -o conftest.o conftest.s \
4603 > /dev/null 2>&1; then
4604 gcc_cv_as_flags64=$flag
4608 rm -f conftest.s conftest.o
4610 if test "$gas" = yes; then
4611 gcc_cv_as_flags64="-64 -Av9"
4613 gcc_cv_as_flags64="-xarch=v9"
4617 if test "x$gcc_cv_as_flags64" = xno; then
4619 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4620 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4623 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4624 [Define if the assembler supports 64bit sparc.])
4627 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4631 if test "x$gcc_cv_as_flags64" != xno; then
4632 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4633 gcc_cv_as_offsetable_lo10, [
4634 gcc_cv_as_offsetable_lo10=unknown
4635 if test "x$gcc_cv_as" != x; then
4636 # Check if assembler has offsetable %lo()
4637 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4638 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4639 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4641 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4642 > /dev/null 2>&1; then
4643 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4644 gcc_cv_as_offsetable_lo10=no
4646 gcc_cv_as_offsetable_lo10=yes
4649 gcc_cv_as_offsetable_lo10=no
4651 rm -f conftest.s conftest.o conftest1.s conftest1.o
4654 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4655 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4656 [Define if your assembler supports offsetable %lo().])
4664 AC_MSG_CHECKING(assembler instructions)
4665 gcc_cv_as_instructions=
4666 if test x$gcc_cv_as != x; then
4667 set "filds fists" "filds mem; fists mem"
4670 echo "$2" > conftest.s
4671 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4672 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4673 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
4677 rm -f conftest.s conftest.o
4679 AC_MSG_RESULT($gcc_cv_as_instructions)
4683 # Figure out what language subdirectories are present.
4684 # Look if the user specified --enable-languages="..."; if not, use
4685 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4687 if test x"${enable_languages+set}" != xset; then
4688 if test x"${LANGUAGES+set}" = xset; then
4689 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4691 enable_languages=all
4694 if test x"${enable_languages}" = x; then
4695 AC_MSG_ERROR([--enable-languages needs at least one argument])
4699 for lang in ${srcdir}/*/config-lang.in ..
4703 # The odd quoting in the next line works around
4704 # an apparent bug in bash 1.12 on linux.
4706 ${srcdir}/[*]/config-lang.in) ;;
4708 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4709 if test "x$lang_alias" = x
4711 echo "$lang doesn't set \$language." 1>&2
4714 if test x"${enable_languages}" = xall; then
4717 case "${enable_languages}" in
4718 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4726 if test x"${add_this_lang}" = xyes; then
4728 ${srcdir}/ada/config-lang.in)
4729 if test x$gnat = xyes ; then
4730 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4734 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4743 # Make gthr-default.h if we have a thread file.
4745 if test $thread_file != single; then
4746 rm -f gthr-default.h
4747 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4748 gthread_flags=-DHAVE_GTHR_DEFAULT
4750 AC_SUBST(gthread_flags)
4752 # Find out what GC implementation we want, or may, use.
4754 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4755 with the compiler.],
4761 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4764 [if test $ac_cv_func_mmap_anywhere = yes \
4765 || test $ac_cv_func_valloc = yes; then
4771 echo "Using $GGC for garbage collection."
4773 # Build a new-abi (c++) system
4774 AC_ARG_ENABLE(new-gxx-abi,
4775 [ --enable-new-gxx-abi
4776 select the new abi for g++. You must select an ABI
4777 at configuration time, so that the correct runtime
4778 support is built. You cannot mix ABIs.],
4779 [AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4780 [Define if you want to always select the new-abi for g++.])
4781 GXX_ABI_FLAG='-fnew-abi'
4782 echo "Building a new-abi g++ compiler."
4784 AC_SUBST(GXX_ABI_FLAG)
4786 # Build a new-libstdc++ system (ie libstdc++-v3)
4787 AC_MSG_CHECKING([for libstdc++ to install])
4788 AC_ARG_ENABLE(libstdcxx-v3,
4789 [ --enable-libstdcxx-v3
4790 enable libstdc++-v3 for building and installation],
4791 [enable_libstdcxx_v3=yes], [enable_libstdcxx_v3=no])
4793 if test x$enable_libstdcxx_v3 = xyes; then
4800 AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4801 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
4803 dnl Very limited version of automake's enable-maintainer-mode
4805 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4806 dnl maintainer-mode is disabled by default
4807 AC_ARG_ENABLE(maintainer-mode,
4808 [ --enable-maintainer-mode enable make rules and dependencies not useful
4809 (and sometimes confusing) to the casual installer],
4810 maintainer_mode=$enableval,
4813 AC_MSG_RESULT($maintainer_mode)
4815 if test "$maintainer_mode" = "yes"; then
4822 # Make empty files to contain the specs and options for each language.
4823 # Then add #include lines to for a compiler that has specs and/or options.
4828 rm -f specs.h options.h gencheck.h
4829 touch specs.h options.h gencheck.h
4830 for subdir in . $subdirs
4832 if test -f $srcdir/$subdir/lang-specs.h; then
4833 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4834 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4836 if test -f $srcdir/$subdir/lang-options.h; then
4837 echo "#include \"$subdir/lang-options.h\"" >>options.h
4838 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4840 if test -f $srcdir/$subdir/$subdir-tree.def; then
4841 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4842 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4846 # These (without "all_") are set in each config-lang.in.
4847 # `language' must be a single word so is spelled singularly.
4853 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
4854 # List of language makefile fragments.
4859 # Add the language fragments.
4860 # Languages are added via two mechanisms. Some information must be
4861 # recorded in makefile variables, these are defined in config-lang.in.
4862 # We accumulate them and plug them into the main Makefile.
4863 # The other mechanism is a set of hooks for each of the main targets
4864 # like `clean', `install', etc.
4866 language_fragments="Make-lang"
4867 language_hooks="Make-hooks"
4870 for s in .. $subdirs
4882 . ${srcdir}/$s/config-lang.in
4883 if test "x$language" = x
4885 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4888 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4889 all_languages="$all_languages $language"
4890 if test "x$boot_language" = xyes
4892 all_boot_languages="$all_boot_languages $language"
4894 all_compilers="$all_compilers $compilers"
4895 all_stagestuff="$all_stagestuff $stagestuff"
4896 all_diff_excludes="$all_diff_excludes $diff_excludes"
4897 all_headers="$all_headers $headers"
4898 all_outputs="$all_outputs $outputs"
4899 if test x$outputs = x
4901 oldstyle_subdirs="$oldstyle_subdirs $s"
4903 all_lib2funcs="$all_lib2funcs $lib2funcs"
4907 # Since we can't use `::' targets, we link each language in
4908 # with a set of hooks, reached indirectly via lang.${target}.
4912 target_list="all.build all.cross start.encap rest.encap \
4914 install-normal install-common install-info install-man \
4916 mostlyclean clean distclean extraclean maintainer-clean \
4917 stage1 stage2 stage3 stage4"
4918 for t in $target_list
4921 for lang in .. $all_languages
4923 if test $lang != ".."; then
4927 echo "lang.$t: $x" >> Make-hooks
4930 # If we're not building in srcdir, create .gdbinit.
4932 if test ! -f Makefile.in; then
4933 echo "dir ." > .gdbinit
4934 echo "dir ${srcdir}" >> .gdbinit
4935 if test x$gdb_needs_out_file_path = xyes
4937 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4939 if test "x$subdirs" != x; then
4942 echo "dir ${srcdir}/$s" >> .gdbinit
4945 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4948 # Define variables host_canonical and build_canonical
4949 # because some Cygnus local changes in the Makefile depend on them.
4950 build_canonical=${build}
4951 host_canonical=${host}
4953 if test "${host}" != "${target}" ; then
4954 target_subdir=${target}/
4956 AC_SUBST(build_canonical)
4957 AC_SUBST(host_canonical)
4958 AC_SUBST(target_subdir)
4960 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4961 # absolute path for gcc_tooldir based on inserting the number of up-directory
4962 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4963 # $(libsubdir)/@(unlibsubdir) based path.
4964 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4965 # make and thus we'd get different behavior depending on where we built the
4967 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4968 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4970 changequote(<<, >>)dnl
4971 # An explanation of the sed strings:
4972 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4973 # -e 's|/$||' match a trailing forward slash and eliminates it
4974 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4975 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4977 # (*) Note this pattern overwrites the first character of the string
4978 # with a forward slash if one is not already present. This is not a
4979 # problem because the exact names of the sub-directories concerned is
4980 # unimportant, just the number of them matters.
4982 # The practical upshot of these patterns is like this:
4984 # prefix exec_prefix result
4985 # ------ ----------- ------
4987 # /foo/ /foo/bar ../
4988 # /foo /foo/bar/ ../
4989 # /foo/ /foo/bar/ ../
4990 # /foo /foo/bar/ugg ../../
4993 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
4994 changequote([, ])dnl
4996 AC_SUBST(gcc_tooldir)
4999 # Nothing to do for FLOAT_H, float_format already handled.
5003 # Process the language and host/target makefile fragments.
5004 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5006 # Substitute configuration variables
5008 AC_SUBST(all_boot_languages)
5009 AC_SUBST(all_compilers)
5010 AC_SUBST(all_diff_excludes)
5011 AC_SUBST(all_headers)
5012 AC_SUBST(all_lang_makefiles)
5013 AC_SUBST(all_languages)
5014 AC_SUBST(all_lib2funcs)
5015 AC_SUBST(all_stagestuff)
5016 AC_SUBST(build_exeext)
5017 AC_SUBST(build_install_headers_dir)
5018 AC_SUBST(build_xm_file_list)
5019 AC_SUBST(cc_set_by_configure)
5020 AC_SUBST(quoted_cc_set_by_configure)
5021 AC_SUBST(cpp_install_dir)
5022 AC_SUBST(dep_host_xmake_file)
5023 AC_SUBST(dep_tmake_file)
5024 AC_SUBST(extra_c_flags)
5025 AC_SUBST(extra_c_objs)
5026 AC_SUBST(extra_cpp_objs)
5027 AC_SUBST(extra_cxx_objs)
5028 AC_SUBST(extra_headers_list)
5029 AC_SUBST(extra_objs)
5030 AC_SUBST(extra_parts)
5031 AC_SUBST(extra_passes)
5032 AC_SUBST(extra_programs)
5033 AC_SUBST(float_h_file)
5034 AC_SUBST(gcc_gxx_include_dir)
5035 AC_SUBST(gcc_version)
5036 AC_SUBST(gcc_version_trigger)
5037 AC_SUBST(host_exeext)
5038 AC_SUBST(host_extra_gcc_objs)
5039 AC_SUBST(host_xm_file_list)
5041 AC_SUBST(lang_options_files)
5042 AC_SUBST(lang_specs_files)
5043 AC_SUBST(lang_tree_files)
5044 AC_SUBST(local_prefix)
5045 AC_SUBST(maybe_use_collect2)
5047 AC_SUBST(objc_boehm_gc)
5049 AC_SUBST(out_object_file)
5050 AC_SUBST(stage_prefix_set_by_configure)
5051 AC_SUBST(symbolic_link)
5052 AC_SUBST(thread_file)
5053 AC_SUBST(tm_file_list)
5054 AC_SUBST(will_use_collect2)
5057 AC_SUBST_FILE(target_overrides)
5058 AC_SUBST_FILE(host_overrides)
5059 AC_SUBST(cross_defines)
5060 AC_SUBST_FILE(cross_overrides)
5061 AC_SUBST_FILE(build_overrides)
5062 AC_SUBST_FILE(language_fragments)
5063 AC_SUBST_FILE(language_hooks)
5065 # Echo that links are built
5066 if test x$host = x$target
5074 if test x$host != x$build
5076 str3=" on a $build system"
5079 if test "x$str2" != x || test "x$str3" != x
5084 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5086 if test "x$str2" != x || test "x$str3" != x
5088 echo " ${str2}${str3}." 1>&2
5091 # Truncate the target if necessary
5092 if test x$host_truncate_target != x; then
5093 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5096 # Configure the subdirectories
5097 # AC_CONFIG_SUBDIRS($subdirs)
5099 # Create the Makefile
5100 # and configure language subdirectories
5101 AC_OUTPUT($all_outputs,
5103 . $srcdir/configure.lang
5104 case x$CONFIG_HEADERS in
5105 xauto-host.h:config.in)
5108 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5109 # bootstrapping and the installation procedure can still use
5110 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5111 # FLAGS_TO_PASS has been modified to solve the problem there.
5112 # This is virtually a duplicate of what happens in configure.lang; we do
5113 # an extra check to make sure this only happens if ln -s can be used.
5114 if test "$symbolic_link" = "ln -s"; then
5115 for d in .. ${subdirs} ; do
5116 if test $d != ..; then
5119 for t in stage1 stage2 stage3 stage4 include
5122 $symbolic_link ../$t $t 2>/dev/null
5128 # Avoid having to add intl to our include paths.
5129 if test -f intl/libintl.h; then
5130 echo creating libintl.h
5131 echo '#include "intl/libintl.h"' >libintl.h
5138 target_alias='${target_alias}'
5140 subdirs='${subdirs}'
5141 oldstyle_subdirs='${oldstyle_subdirs}'
5142 symbolic_link='${symbolic_link}'
5143 program_transform_set='${program_transform_set}'
5144 program_transform_name='${program_transform_name}'
5145 dep_host_xmake_file='${dep_host_xmake_file}'
5146 host_xmake_file='${host_xmake_file}'
5147 dep_tmake_file='${dep_tmake_file}'
5148 tmake_file='${tmake_file}'
5149 thread_file='${thread_file}'
5150 gcc_version='${gcc_version}'
5151 gcc_version_trigger='${gcc_version_trigger}'
5152 local_prefix='${local_prefix}'
5153 build_install_headers_dir='${build_install_headers_dir}'
5154 build_exeext='${build_exeext}'
5155 host_exeext='${host_exeext}'
5156 out_file='${out_file}'
5157 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5158 SET_MAKE='${SET_MAKE}'
5159 target_list='${target_list}'
5160 target_overrides='${target_overrides}'
5161 host_overrides='${host_overrides}'
5162 cross_defines='${cross_defines}'
5163 cross_overrides='${cross_overrides}'
5164 build_overrides='${build_overrides}'
5165 cpp_install_dir='${cpp_install_dir}'