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_rtl_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) ;;
210 if test x$ac_checking != x ; then
211 AC_DEFINE(ENABLE_CHECKING, 1,
212 [Define if you want more run-time sanity checks. This one gets a grab
213 bag of miscellaneous but relatively cheap checks.])
215 if test x$ac_tree_checking != x ; then
216 AC_DEFINE(ENABLE_TREE_CHECKING, 1,
217 [Define if you want all operations on trees (the basic data
218 structure of the front ends) to be checked for dynamic type safety
219 at runtime. This is moderately expensive.])
221 if test x$ac_rtl_checking != x ; then
222 AC_DEFINE(ENABLE_RTL_CHECKING, 1,
223 [Define if you want all operations on RTL (the basic data structure
224 of the optimizer and back end) to be checked for dynamic type safety
225 at runtime. This is quite expensive.])
227 if test x$ac_gc_checking != x ; then
228 AC_DEFINE(ENABLE_GC_CHECKING, 1,
229 [Define if you want the garbage collector to do object poisoning and
230 other memory allocation checks. This is quite expensive.])
232 if test x$ac_gc_always_collect != x ; then
233 AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT, 1,
234 [Define if you want the garbage collector to operate in maximally
235 paranoid mode, validating the entire heap and collecting garbage at
236 every opportunity. This is extremely expensive.])
241 [ --disable-cpp don't provide a user-visible C preprocessor.],
242 [], [enable_cpp=yes])
244 AC_ARG_WITH(cpp_install_dir,
245 [ --with-cpp-install-dir=DIR
246 install the user visible C preprocessor in DIR
247 (relative to PREFIX) as well as PREFIX/bin.],
248 [if test x$withval = xyes; then
249 AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
250 elif test x$withval != xno; then
251 cpp_install_dir=$withval
254 dnl Disable this for the moment; the library interface is changing.
255 dnl # Link cpplib into the compiler proper, for C/C++/ObjC.
256 dnl AC_ARG_ENABLE(c-cpplib,
257 dnl [ --enable-c-cpplib link cpplib directly into C and C++ compilers
258 dnl (EXPERIMENTAL) (implies --enable-cpplib).],
259 dnl if test x$enable_c_cpplib != xno; then
260 dnl extra_c_objs="${extra_c_objs} libcpp.a"
261 dnl extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
262 dnl extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
265 # Enable Multibyte Characters for C/C++
266 AC_ARG_ENABLE(c-mbchar,
267 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
268 if test x$enable_c_mbchar != xno; then
269 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
273 # Pass with no value to take the default
274 # Pass with a value to specify a thread package
275 AC_ARG_ENABLE(threads,
276 [ --enable-threads enable thread usage for target GCC.
277 --enable-threads=LIB use LIB thread package for target GCC.],
278 if test x$enable_threads = xno; then
283 enable_threads_flag=$enable_threads
284 # Check if a valid thread package
285 case x${enable_threads_flag} in
288 target_thread_file='single'
292 target_thread_file=''
294 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
295 xsolaris | xwin32 | xdce | xvxworks)
296 target_thread_file=$enable_threads_flag
299 echo "$enable_threads is an unknown thread package" 1>&2
304 AC_ARG_ENABLE(objc-gc,
305 [ --enable-objc-gc enable the use of Boehm's garbage collector with
306 the GNU Objective-C runtime.],
307 if test x$enable_objc_gc = xno; then
315 [ --with-dwarf2 force the default debug format to be DWARF2.],
316 dwarf2="$with_dwarf2",
319 # Determine the host, build, and target systems
322 # Find the native compiler
325 if test $ac_cv_prog_cc_${ac_cc}_c_o = no; then
326 NO_MINUS_C_MINUS_O=yes
328 AC_SUBST(NO_MINUS_C_MINUS_O)
332 # If the native compiler is GCC, we can enable warnings even in stage1.
333 # That's useful for people building cross-compilers, or just running a
335 if test "x$GCC" = "xyes"; then
336 stage1_warn_cflags='$(WARN_CFLAGS)'
338 stage1_warn_cflags=""
340 AC_SUBST(stage1_warn_cflags)
344 AC_MSG_CHECKING([whether a default assembler was specified])
345 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
346 if test x"$gas_flag" = x"no"; then
347 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
349 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
355 AC_MSG_CHECKING([whether a default linker was specified])
356 if test x"${DEFAULT_LINKER+set}" = x"set"; then
357 if test x"$gnu_ld_flag" = x"no"; then
358 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
360 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
366 # Find some useful tools
380 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
381 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
382 sys/resource.h sys/param.h sys/times.h sys/stat.h \
385 # Check for thread headers.
386 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
387 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
389 # See if GNAT has been installed
390 AC_CHECK_PROG(gnat, gnatbind, yes, no)
392 # Do we have a single-tree copy of texinfo?
393 if test -f $srcdir/../texinfo/Makefile.in; then
394 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
395 gcc_cv_prog_makeinfo_modern=yes
396 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
398 # See if makeinfo has been installed and is modern enough
399 # that we can use it.
400 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
401 [GNU texinfo.* \([0-9][0-9.]*\)],
402 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
405 if test $gcc_cv_prog_makeinfo_modern = no; then
407 *** Makeinfo is missing or too old.
408 *** Info documentation will not be built or installed.])
412 BUILD_INFO=info AC_SUBST(BUILD_INFO)
413 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
416 # See if the stage1 system preprocessor understands the ANSI C
417 # preprocessor stringification operator.
420 # Use <inttypes.h> only if it exists,
421 # doesn't clash with <sys/types.h>, and declares intmax_t.
422 AC_MSG_CHECKING(for inttypes.h)
423 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
425 [#include <sys/types.h>
426 #include <inttypes.h>],
428 [gcc_cv_header_inttypes_h=yes],
429 gcc_cv_header_inttypes_h=no)])
430 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
431 if test $gcc_cv_header_inttypes_h = yes; then
432 AC_DEFINE(HAVE_INTTYPES_H, 1,
433 [Define if you have a working <inttypes.h> header file.])
437 # Determine if enumerated bitfields are unsigned. ISO C says they can
438 # be either signed or unsigned.
440 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
441 [AC_TRY_RUN(#include <stdlib.h>
442 enum t { BLAH = 128 } ;
443 struct s_t { enum t member : 8; } s ;
447 if (s.member < 0) exit(1);
450 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
451 if test $gcc_cv_enum_bf_unsigned = yes; then
452 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
453 [Define if enumerated bitfields are treated as unsigned values.])
456 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
457 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
458 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
459 fputs_unlocked getrusage valloc)
461 # Make sure wchar_t is available
462 #AC_CHECK_TYPE(wchar_t, unsigned int)
464 gcc_AC_FUNC_VFPRINTF_DOPRNT
465 gcc_AC_FUNC_PRINTF_PTR
469 # Under some versions of uwin, vfork is notoriously buggy and the test
470 # can hang configure; on other versions, vfork exists just as a stub.
471 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
472 ac_cv_func_vfork_works=no
476 AC_FUNC_MMAP_ANYWHERE
479 # We will need to find libiberty.h and ansidecl.h
480 saved_CFLAGS="$CFLAGS"
481 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
482 gcc_AC_NEED_DECLARATIONS(bcopy bzero bcmp \
483 index rindex getenv atol sbrk abort atof getcwd getwd \
484 strsignal putc_unlocked fputs_unlocked strstr environ \
485 malloc realloc calloc free, [
486 #include "gansidecl.h"
487 #include "system.h"])
489 gcc_AC_NEED_DECLARATIONS(getrlimit setrlimit getrusage, [
490 #include "gansidecl.h"
492 #ifdef HAVE_SYS_RESOURCE_H
493 #include <sys/resource.h>
497 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
498 CFLAGS="$saved_CFLAGS"
500 # mkdir takes a single argument on some systems.
501 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
511 build_install_headers_dir=install-headers-tar
516 host_truncate_target=
519 # Decode the host machine, then the target machine.
520 # For the host machine, we save the xm_file variable as host_xm_file;
521 # then we decode the target machine and forget everything else
522 # that came from the host machine.
523 for machine in $build $host $target; do
537 # Set this to force installation and use of collect2.
539 # Set this to override the default target model.
541 # Set this to control how the header file directory is installed.
542 install_headers_dir=install-headers-tar
543 # Set this to a non-empty list of args to pass to cpp if the target
544 # wants its .md file passed through cpp.
546 # Set this if directory names should be truncated to 14 characters.
548 # Set this if gdb needs a dir command with `dirname $out_file`
549 gdb_needs_out_file_path=
550 # Set this if the build machine requires executables to have a
553 # Set this to control which thread package will be used.
555 # Reinitialize these from the flag values every loop pass, since some
556 # configure entries modify them.
558 gnu_ld="$gnu_ld_flag"
559 enable_threads=$enable_threads_flag
561 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
562 # updated in each machine entry.
564 cpu_type=`echo $machine | sed 's/-.*$//'`
603 tm_file=${cpu_type}/${cpu_type}.h
604 xm_file=${cpu_type}/xm-${cpu_type}.h
605 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
607 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
609 # On a.out targets, we need to use collect2.
616 # Common parts for linux-gnu and openbsd systems
619 xm_defines="HAVE_ATEXIT POSIX BSTRING"
622 tm_file=${cpu_type}/openbsd.h
623 tmake_file="t-libc-ok t-openbsd"
624 # avoid surprises, always provide an xm-openbsd file
625 xm_file=${cpu_type}/xm-openbsd.h
626 # don't depend on processor x-fragments as well
628 if test x$enable_threads = xyes; then
630 tmake_file="${tmake_file} t-openbsd-thread"
636 # Support site-specific machine types.
638 cpu_type=`echo $machine | sed -e 's/-.*//'`
639 rest=`echo $machine | sed -e "s/$cpu_type-//"`
640 xm_file=${cpu_type}/xm-$rest.h
641 tm_file=${cpu_type}/$rest.h
642 if test -f $srcdir/config/${cpu_type}/x-$rest; \
643 then xmake_file=${cpu_type}/x-$rest; \
646 if test -f $srcdir/config/${cpu_type}/t-$rest; \
647 then tmake_file=${cpu_type}/t-$rest; \
653 a29k-*-bsd* | a29k-*-sym1*)
654 tm_file="${tm_file} a29k/unix.h"
656 xmake_file=a29k/x-unix
659 a29k-*-udi | a29k-*-coff)
660 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
661 tmake_file=a29k/t-a29kbare
664 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
665 tmake_file=a29k/t-vx29k
666 extra_parts="crtbegin.o crtend.o"
667 thread_file='vxworks'
669 a29k-*-*) # Default a29k environment.
673 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
675 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
676 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
678 # GAS + IEEE_CONFORMANT
679 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
681 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
682 xmake_file="x-interix alpha/t-pe"
683 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
684 if test x$enable_threads = xyes ; then
687 if test x$stabs = xyes ; then
688 tm_file="${tm_file} dbxcoff.h"
690 #prefix='$$INTERIX_ROOT'/usr/contrib
691 #local_prefix='$$INTERIX_ROOT'/usr/contrib
693 alpha*-*-linux-gnuecoff*)
694 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
695 target_cpu_default="MASK_GAS"
696 tmake_file="alpha/t-alpha alpha/t-ieee"
701 alpha*-*-linux-gnulibc1*)
702 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
703 target_cpu_default="MASK_GAS"
704 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
705 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
708 if test x$enable_threads = xyes; then
713 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
714 target_cpu_default="MASK_GAS"
715 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
716 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
719 if test x$enable_threads = xyes; then
724 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
725 target_cpu_default="MASK_GAS"
726 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
727 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
733 # default x-alpha is only appropriate for dec-osf.
734 target_cpu_default="MASK_GAS"
735 tmake_file="alpha/t-alpha alpha/t-ieee"
739 if test x$stabs = xyes
741 tm_file="${tm_file} dbx.h"
743 if test x$gas != xyes
745 extra_passes="mips-tfile mips-tdump"
748 tmake_file="alpha/t-alpha alpha/t-ieee"
751 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
756 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
759 tm_file="${tm_file} alpha/osf.h"
760 # Some versions of OSF4 (specifically X4.0-9 296.7) have
761 # a broken tar, so we use cpio instead.
762 install_headers_dir=install-headers-cpio
765 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
770 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
772 target_cpu_default=MASK_SUPPORT_ARCH
777 tm_file="${tm_file} dbx.h alpha/vxworks.h"
778 tmake_file="alpha/t-alpha alpha/t-ieee"
781 extra_passes="mips-tfile mips-tdump"
784 thread_file='vxworks'
787 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
788 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
789 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
790 xmake_file=winnt/x-winnt
791 extra_host_objs=oldnames.o
792 extra_gcc_objs="spawnv.o oldnames.o"
793 if test x$gnu_ld != xyes
795 extra_programs=ld.exe
797 if test x$enable_threads = xyes; then
803 xm_file="${xm_file} alpha/xm-vms.h"
804 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
807 extra_parts="crtinit.o crtfini.o"
809 arm-*-coff* | armel-*-coff*)
811 tmake_file=arm/t-arm-coff
815 tmake_file=arm/t-arm-coff
816 thread_file='vxworks'
819 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
821 tm_file=arm/riscix1-1.h
824 arm-*-riscix*) # Acorn RISC machine
827 tm_file=arm/rix-gas.h
831 xmake_file=arm/x-riscix
832 tmake_file=arm/t-riscix
835 arm-semi-aout | armel-semi-aout)
837 tmake_file=arm/t-semi
839 arm-semi-aof | armel-semi-aof)
840 tm_file=arm/semiaof.h
841 tmake_file=arm/t-semiaof
845 tmake_file="t-netbsd arm/t-netbsd"
848 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
851 tm_file=arm/linux-aout.h
852 tmake_file=arm/t-linux
855 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
856 xm_file=arm/xm-linux.h
858 tm_file="arm/linux-oldld.h arm/linux-elf.h"
861 tm_file="arm/linux-elf26.h $tm_file"
864 tmake_file="t-linux arm/t-linux"
865 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
867 case x${enable_threads} in
868 x | xyes | xpthreads | xposix)
873 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
874 xm_file=arm/xm-linux.h
876 tm_file="arm/linux-elf.h"
879 tm_file="arm/linux-elf26.h $tm_file"
882 tmake_file="t-linux arm/t-linux"
883 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
885 case x${enable_threads} in
886 x | xyes | xpthreads | xposix)
891 arm*-*-uclinux*) # ARM ucLinux
892 tm_file=arm/uclinux-elf.h
893 tmake_file=arm/t-arm-elf
897 tmake_file=arm/t-arm-aout
900 tm_file=arm/ecos-elf.h
901 tmake_file=arm/t-arm-elf
904 tm_file=arm/unknown-elf.h
905 tmake_file=arm/t-arm-elf
908 tm_file=arm/conix-elf.h
909 tmake_file=arm/t-arm-elf
912 tm_file=arm/unknown-elf-oabi.h
913 tmake_file=arm/t-arm-elf
922 c1-convex-*) # Convex C1
926 c2-convex-*) # Convex C2
939 target_cpu_default=16
946 clipper-intergraph-clix*)
947 tm_file="${tm_file} svr3.h clipper/clix.h"
948 xm_file=clipper/xm-clix.h
949 xmake_file=clipper/x-clix
950 extra_headers=va-clipper.h
951 extra_parts="crtbegin.o crtend.o"
952 install_headers_dir=install-headers-cpio
963 tm_file="fr30/fr30.h"
964 tmake_file=fr30/t-fr30
965 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
967 # This hasn't been upgraded to GCC 2.
968 # fx80-alliant-*) # Alliant FX/80
974 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
975 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
976 tmake_file="t-linux pa/t-linux"
977 extra_parts="crtbegin.o crtend.o"
980 if test x$enable_threads = xyes; then
985 target_cpu_default="MASK_PA_11"
986 tmake_file=pa/t-openbsd
989 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
990 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
991 xm_file=pa/xm-papro.h
995 target_cpu_default="MASK_PA_11"
996 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1000 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1001 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
1002 xm_file=pa/xm-papro.h
1006 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1010 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1011 target_cpu_default="MASK_PA_11"
1015 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1019 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
1020 xm_file=pa/xm-pahpux.h
1021 xmake_file=pa/x-pa-hpux
1022 if test x$gas = xyes
1024 tm_file="${tm_file} pa/gas.h"
1026 install_headers_dir=install-headers-cpio
1030 hppa1.0-*-hpux8.0[0-2]*)
1032 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1033 xm_file=pa/xm-pahpux.h
1034 xmake_file=pa/x-pa-hpux
1035 if test x$gas = xyes
1037 tm_file="${tm_file} pa/pa-gas.h"
1039 tm_file="pa/pa-oldas.h ${tm_file}"
1041 install_headers_dir=install-headers-cpio
1045 hppa1.1-*-hpux8.0[0-2]*)
1047 target_cpu_default="MASK_PA_11"
1048 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1049 xm_file=pa/xm-pahpux.h
1050 xmake_file=pa/x-pa-hpux
1051 if test x$gas = xyes
1053 tm_file="${tm_file} pa/pa-gas.h"
1055 tm_file="pa/pa-oldas.h ${tm_file}"
1057 install_headers_dir=install-headers-cpio
1061 target_cpu_default="MASK_PA_11"
1062 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.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/pa-gas.h"
1069 install_headers_dir=install-headers-cpio
1073 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1074 xm_file=pa/xm-pahpux.h
1075 xmake_file=pa/x-pa-hpux
1076 if test x$gas = xyes
1078 tm_file="${tm_file} pa/pa-gas.h"
1080 install_headers_dir=install-headers-cpio
1083 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1084 target_cpu_default="MASK_PA_11"
1085 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1087 xm_file=pa/xm-pahpux.h
1088 xmake_file=pa/x-pa-hpux
1090 if test x$gas = xyes
1092 tm_file="${tm_file} pa/pa-gas.h"
1094 if test x$enable_threads = x; then
1095 enable_threads=$have_pthread_h
1097 if test x$enable_threads = xyes; then
1099 tmake_file="${tmake_file} pa/t-dce-thr"
1101 install_headers_dir=install-headers-cpio
1105 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1107 xm_file=pa/xm-pahpux.h
1108 xmake_file=pa/x-pa-hpux
1110 if test x$gas = xyes
1112 tm_file="${tm_file} pa/pa-gas.h"
1114 if test x$enable_threads = x; then
1115 enable_threads=$have_pthread_h
1117 if test x$enable_threads = xyes; then
1119 tmake_file="${tmake_file} pa/t-dce-thr"
1121 install_headers_dir=install-headers-cpio
1125 target_cpu_default="MASK_PA_11"
1126 xm_file=pa/xm-pa64hpux.h
1127 xmake_file=pa/x-pa-hpux
1129 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"
1131 tmake_file=pa/t-pa64
1132 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1134 if [[ x$gas = xyes ]]
1136 tm_file="${tm_file} pa/pa-gas.h"
1138 # if [[ x$enable_threads = x ]]; then
1139 # enable_threads=$have_pthread_h
1141 # if [[ x$enable_threads = xyes ]]; then
1143 # tmake_file="${tmake_file} pa/t-dce-thr"
1145 install_headers_dir=install-headers-cpio
1148 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1149 target_cpu_default="MASK_PA_11"
1150 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1152 xm_file=pa/xm-pahpux.h
1153 xmake_file=pa/x-pa-hpux
1155 if test x$gas = xyes
1157 tm_file="${tm_file} pa/pa-gas.h"
1159 # if test x$enable_threads = x; then
1160 # enable_threads=$have_pthread_h
1162 # if test x$enable_threads = xyes; then
1164 # tmake_file="${tmake_file} pa/t-dce-thr"
1166 install_headers_dir=install-headers-cpio
1170 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1172 xm_file=pa/xm-pahpux.h
1173 xmake_file=pa/x-pa-hpux
1174 if test x$gas = xyes
1176 tm_file="${tm_file} pa/pa-gas.h"
1178 # if test x$enable_threads = x; then
1179 # enable_threads=$have_pthread_h
1181 # if test x$enable_threads = xyes; then
1183 # tmake_file="${tmake_file} pa/t-dce-thr"
1185 install_headers_dir=install-headers-cpio
1188 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1189 target_cpu_default="MASK_PA_11"
1190 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1191 xm_file=pa/xm-pahpux.h
1192 xmake_file=pa/x-pa-hpux
1193 if test x$gas = xyes
1195 tm_file="${tm_file} pa/pa-gas.h"
1197 install_headers_dir=install-headers-cpio
1201 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1202 xm_file=pa/xm-pahpux.h
1203 xmake_file=pa/x-pa-hpux
1204 if test x$gas = xyes
1206 tm_file="${tm_file} pa/pa-gas.h"
1208 install_headers_dir=install-headers-cpio
1211 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1212 target_cpu_default="MASK_PA_11"
1213 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1214 xm_file=pa/xm-pahpux.h
1215 xmake_file=pa/x-pa-hpux
1216 if test x$gas = xyes
1218 tm_file="${tm_file} pa/pa-gas.h"
1220 install_headers_dir=install-headers-cpio
1224 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1225 xm_file=pa/xm-pahpux.h
1226 xmake_file=pa/x-pa-hpux
1227 if test x$gas = xyes
1229 tm_file="${tm_file} pa/pa-gas.h"
1231 install_headers_dir=install-headers-cpio
1235 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1236 target_cpu_default="MASK_PA_11"
1240 tm_file="${tm_file} pa/pa-mpeix.h"
1241 xm_file=pa/xm-pampeix.h
1242 xmake_file=pa/x-pa-mpeix
1243 echo "You must use gas. Assuming it is already installed."
1244 install_headers_dir=install-headers-tar
1247 i370-*-opened*) # IBM 360/370/390 Architecture
1248 xm_file=i370/xm-oe.h
1250 xmake_file=i370/x-oe
1251 tmake_file=i370/t-oe
1254 xm_file=i370/xm-mvs.h
1256 tmake_file=i370/t-mvs
1259 xm_file="xm-linux.h i370/xm-linux.h"
1261 tm_file="i370/linux.h ${tm_file}"
1262 tmake_file="t-linux i370/t-linux"
1263 # broken_install=yes
1264 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1265 # extra_parts="crtbegin.o crtend.o"
1269 if test x$enable_threads = xyes; then
1276 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1277 tm_file=i386/i386elf.h
1278 tmake_file=i386/t-i386elf
1282 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1284 if test x$gas = xyes
1286 tm_file=i386/aix386.h
1287 extra_parts="crtbegin.o crtend.o"
1288 tmake_file=i386/t-crtstuff
1290 tm_file=i386/aix386ng.h
1293 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1295 xmake_file=i386/x-aix
1298 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1300 xm_file="xm-alloca.h ${xm_file}"
1301 xm_defines="USG POSIX SMALL_ARG_MAX"
1302 xmake_file=i386/x-ncr3000
1303 if test x$stabs = xyes -a x$gas = xyes
1305 tm_file=i386/sysv4gdb.h
1307 tm_file=i386/sysv4.h
1309 extra_parts="crtbegin.o crtend.o"
1310 tmake_file=i386/t-crtpic
1316 xm_file=i386/xm-next.h
1317 tmake_file=i386/t-next
1318 xmake_file=i386/x-next
1319 extra_objs=nextstep.o
1320 extra_parts="crtbegin.o crtend.o"
1321 if test x$enable_threads = xyes; then
1326 i[34567]86-sequent-bsd*) # 80386 from Sequent
1329 if test x$gas = xyes
1331 tm_file=i386/seq-gas.h
1333 tm_file=i386/sequent.h
1337 i[34567]86-sequent-ptx1*)
1339 xm_defines="USG SVR3"
1340 xmake_file=i386/x-sysv3
1341 tm_file=i386/seq-sysv3.h
1342 tmake_file=i386/t-crtstuff
1343 extra_parts="crtbegin.o crtend.o"
1344 install_headers_dir=install-headers-cpio
1347 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1349 xm_defines="USG SVR3"
1350 xmake_file=i386/x-sysv3
1351 tm_file=i386/seq2-sysv3.h
1352 tmake_file=i386/t-crtstuff
1353 extra_parts="crtbegin.o crtend.o"
1354 install_headers_dir=install-headers-cpio
1357 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1359 xm_file="xm-alloca.h ${xm_file}"
1360 xm_defines="USG POSIX SMALL_ARG_MAX"
1362 tm_file=i386/ptx4-i.h
1364 extra_parts="crtbegin.o crtend.o"
1365 install_headers_dir=install-headers-cpio
1367 i386-sun-sunos*) # Sun i386 roadrunner
1373 i[34567]86-wrs-vxworks*)
1375 tm_file=i386/vxi386.h
1376 tmake_file=i386/t-i386bare
1377 thread_file='vxworks'
1382 tm_file=i386/i386-aout.h
1383 tmake_file=i386/t-i386bare
1386 i[34567]86-*-beospe*)
1388 xm_file=i386/xm-beos.h
1389 xm_defines="USE_C_ALLOCA"
1390 tmake_file=i386/t-beos
1391 tm_file=i386/beos-pe.h
1392 xmake_file=i386/x-beos
1396 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1398 xm_file=i386/xm-beos.h
1399 tmake_file='i386/t-beos i386/t-crtpic'
1400 tm_file=i386/beos-elf.h
1401 xmake_file=i386/x-beos
1403 extra_parts='crtbegin.o crtend.o'
1406 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1408 tm_file=i386/bsd386.h
1409 # tmake_file=t-libc-ok
1414 tm_file=i386/386bsd.h
1415 # tmake_file=t-libc-ok
1416 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1420 i[34567]86-*-freebsdelf*)
1422 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1423 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1424 tmake_file=t-freebsd
1428 case x${enable_threads} in
1429 xyes | xpthreads | xposix)
1431 tmake_file="${tmake_file} t-freebsd-thread"
1436 i[34567]86-*-freebsd*)
1438 tm_file="i386/freebsd.h i386/perform.h"
1439 tmake_file=t-freebsd
1442 i[34567]86-*-netbsd*)
1444 tm_file=i386/netbsd.h
1449 i[34567]86-*-openbsd*)
1451 # we need collect2 until our bug is fixed...
1457 tm_file=i386/i386-coff.h
1458 tmake_file=i386/t-i386bare
1461 i[34567]86-*-isc*) # 80386 running ISC system
1463 xm_file="${xm_file} i386/xm-isc.h"
1464 xm_defines="USG SVR3"
1467 i[34567]86-*-isc[34]*)
1469 xmake_file=i386/x-isc3
1472 xmake_file=i386/x-isc
1475 if test x$gas = xyes -a x$stabs = xyes
1477 tm_file=i386/iscdbx.h
1478 tmake_file=i386/t-svr3dbx
1479 extra_parts="svr3.ifile svr3z.ifile"
1481 tm_file=i386/isccoff.h
1482 tmake_file=i386/t-crtstuff
1483 extra_parts="crtbegin.o crtend.o"
1485 tmake_file="$tmake_file i386/t-i386bare"
1486 install_headers_dir=install-headers-cpio
1489 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1490 changequote([,])dnl # with a.out format using
1492 xmake_file=x-linux-aout
1493 tmake_file="t-linux-aout i386/t-crtstuff"
1494 tm_file=i386/linux-oldld.h
1499 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1500 changequote([,])dnl # with a.out format
1501 xmake_file=x-linux-aout
1502 tmake_file="t-linux-aout i386/t-crtstuff"
1503 tm_file=i386/linux-aout.h
1508 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1509 changequote([,])dnl # with ELF format using the
1510 # GNU/Linux C library 5
1512 tm_file=i386/linux.h
1513 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1514 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1517 if test x$enable_threads = xyes; then
1518 thread_file='single'
1522 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1523 changequote([,])dnl # with ELF format using glibc 2
1524 # aka GNU/Linux C library 6
1526 tm_file=i386/linux.h
1527 tmake_file="t-linux i386/t-crtstuff"
1528 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1531 if test x$enable_threads = xyes; then
1541 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1543 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1547 i[34567]86-pc-msdosdjgpp*)
1549 xm_file=i386/xm-djgpp.h
1550 tm_file=i386/djgpp.h
1551 tmake_file=i386/t-djgpp
1552 xmake_file=i386/x-djgpp
1557 case $host in *pc-msdosdjgpp*)
1563 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1566 tmake_file=t-libc-ok
1571 i[34567]86-*-lynxos*)
1573 if test x$gas = xyes
1577 tm_file=i386/lynx-ng.h
1579 xm_file=i386/xm-lynx.h
1580 tmake_file=i386/t-i386bare
1587 # tmake_file=t-libc-ok
1591 i[34567]86-*-osfrose*) # 386 using OSF/rose
1593 if test x$elf = xyes
1595 tm_file=i386/osfelf.h
1598 tm_file=i386/osfrose.h
1601 xm_file="i386/xm-osf.h ${xm_file}"
1602 xmake_file=i386/x-osfrose
1603 tmake_file=i386/t-osf
1604 extra_objs=halfpic.o
1607 i[34567]86-go32-rtems*)
1610 xm_file=i386/xm-go32.h
1611 tm_file=i386/go32-rtems.h
1612 tmake_file="i386/t-go32 t-rtems"
1615 i[34567]86-*-rtemscoff*)
1618 tm_file=i386/rtems.h
1619 tmake_file="i386/t-i386bare t-rtems"
1622 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1625 tm_file=i386/rtemself.h
1626 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1627 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1630 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1632 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1633 xm_defines="USG SVR3"
1634 xmake_file=i386/x-sco5
1635 install_headers_dir=install-headers-cpio
1637 if test x$gas = xyes
1639 tm_file="i386/sco5gas.h ${tm_file}"
1640 tmake_file=i386/t-sco5gas
1642 tmake_file=i386/t-sco5
1644 tmake_file="$tmake_file i386/t-i386bare"
1645 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1648 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1650 xm_file="${xm_file} i386/xm-sco.h"
1651 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1652 xmake_file=i386/x-sco4
1653 install_headers_dir=install-headers-cpio
1654 if test x$stabs = xyes
1656 tm_file=i386/sco4dbx.h
1657 tmake_file=i386/t-svr3dbx
1658 extra_parts="svr3.ifile svr3z.rfile"
1661 tmake_file=i386/t-crtstuff
1662 extra_parts="crtbegin.o crtend.o"
1664 tmake_file="$tmake_file i386/t-i386bare"
1665 # The default EAFS filesystem supports long file names.
1666 # Truncating the target makes $host != $target which
1667 # makes gcc think it is doing a cross-compile.
1668 # truncate_target=yes
1671 i[34567]86-*-sco*) # 80386 running SCO system
1673 xm_file=i386/xm-sco.h
1674 xmake_file=i386/x-sco
1675 install_headers_dir=install-headers-cpio
1676 if test x$stabs = xyes
1678 tm_file=i386/scodbx.h
1679 tmake_file=i386/t-svr3dbx
1680 extra_parts="svr3.ifile svr3z.rfile"
1683 extra_parts="crtbegin.o crtend.o"
1684 tmake_file=i386/t-crtstuff
1686 tmake_file="$tmake_file i386/t-i386bare"
1690 i[34567]86-*-solaris2*)
1692 xm_file="xm-alloca.h ${xm_file}"
1693 xm_defines="USG POSIX SMALL_ARG_MAX"
1695 if test x$gas = xyes; then
1696 # Only needed if gas does not support -s
1697 tm_file="i386/sol2gas.h ${tm_file}"
1699 tmake_file="i386/t-i386bare i386/t-sol2"
1700 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1702 if test x${enable_threads} = x; then
1703 enable_threads=$have_pthread_h
1704 if test x${enable_threads} = x; then
1705 enable_threads=$have_thread_h
1708 if test x${enable_threads} = xyes; then
1709 if test x${have_pthread_h} = xyes; then
1712 thread_file='solaris'
1717 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1719 xm_file="xm-alloca.h ${xm_file}"
1720 xm_defines="USG POSIX"
1721 tm_file=i386/sysv5.h
1722 if test x$stabs = xyes
1724 tm_file="${tm_file} dbx.h"
1726 tmake_file="i386/t-i386bare i386/t-crtpic"
1728 extra_parts="crtbegin.o crtend.o"
1729 if test x$enable_threads = xyes; then
1734 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1736 xm_file="xm-alloca.h ${xm_file}"
1737 xm_defines="USG POSIX SMALL_ARG_MAX"
1738 tm_file=i386/sysv4.h
1739 if test x$stabs = xyes
1741 tm_file="${tm_file} dbx.h"
1743 tmake_file="i386/t-i386bare i386/t-crtpic"
1745 extra_parts="crtbegin.o crtend.o"
1748 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1750 xm_file="xm-alloca.h ${xm_file}"
1751 xm_defines="USG POSIX"
1753 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1755 extra_parts="crtbegin.o crtend.o"
1756 install_headers_dir=install-headers-cpio
1759 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1762 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1763 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1764 if test x$stabs = xyes
1766 tm_file=i386/osf1elfgdb.h
1768 tm_file=i386/osf1elf.h
1770 tmake_file=i386/t-osf1elf
1771 xmake_file=i386/x-osf1elf
1772 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1775 i[34567]86-*-sysv*) # Intel 80386's running system V
1777 xm_defines="USG SVR3"
1778 xmake_file=i386/x-sysv3
1779 if test x$gas = xyes
1781 if test x$stabs = xyes
1783 tm_file=i386/svr3dbx.h
1784 tmake_file=i386/t-svr3dbx
1785 extra_parts="svr3.ifile svr3z.rfile"
1787 tm_file=i386/svr3gas.h
1788 extra_parts="crtbegin.o crtend.o"
1789 tmake_file=i386/t-crtstuff
1792 tm_file=i386/sysv3.h
1793 extra_parts="crtbegin.o crtend.o"
1794 tmake_file=i386/t-crtstuff
1796 tmake_file="$tmake_file i386/t-crtpic"
1798 i386-*-vsta) # Intel 80386's running VSTa kernel
1799 xm_file="${xm_file} i386/xm-vsta.h"
1801 tmake_file=i386/t-vsta
1802 xmake_file=i386/x-vsta
1807 xm_file="${xm_file} i386/xm-cygwin.h"
1808 tmake_file=i386/t-cygwin
1809 tm_file=i386/win32.h
1810 xmake_file=i386/x-cygwin
1812 if test x$enable_threads = xyes; then
1818 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1820 xm_file="${xm_file} i386/xm-cygwin.h"
1821 tmake_file=i386/t-cygwin
1822 tm_file=i386/cygwin.h
1823 xmake_file=i386/x-cygwin
1825 if test x$enable_threads = xyes; then
1831 i[34567]86-*-mingw32*)
1833 tm_file=i386/mingw32.h
1834 xm_file="${xm_file} i386/xm-mingw32.h"
1835 tmake_file="i386/t-cygwin i386/t-mingw32"
1837 xmake_file=i386/x-cygwin
1838 if test x$enable_threads = xyes; then
1845 *minwg32crt* | *mingw32*)
1846 tm_file="${tm_file} i386/crtdll.h"
1854 xm_file="${xm_file} i386/xm-uwin.h"
1855 xm_defines="USG NO_STAB_H"
1856 tmake_file="i386/t-cygwin i386/t-uwin"
1858 xmake_file=i386/x-cygwin
1859 if test x$enable_threads = xyes; then
1865 i[34567]86-*-interix*)
1867 tm_file="i386/i386-interix.h interix.h"
1868 xm_file="i386/xm-i386-interix.h xm-interix.h"
1870 tmake_file="i386/t-interix"
1871 extra_objs=interix.o
1872 xmake_file=x-interix
1873 if test x$enable_threads = xyes ; then
1876 if test x$stabs = xyes ; then
1877 tm_file="${tm_file} dbxcoff.h"
1881 i[34567]86-*-winnt3*)
1883 tm_file=i386/win-nt.h
1884 out_file=i386/i386.c
1885 xm_file="xm-winnt.h ${xm_file}"
1886 xmake_file=winnt/x-winnt
1887 tmake_file=i386/t-winnt
1888 extra_host_objs="winnt.o oldnames.o"
1889 extra_gcc_objs="spawnv.o oldnames.o"
1890 if test x$gnu_ld != xyes
1892 extra_programs=ld.exe
1894 if test x$enable_threads = xyes; then
1899 i[34567]86-dg-dgux*)
1901 xm_file="xm-alloca.h ${xm_file}"
1902 xm_defines="USG POSIX"
1903 out_file=i386/dgux.c
1905 tmake_file=i386/t-dgux
1906 xmake_file=i386/x-dgux
1907 install_headers_dir=install-headers-cpio
1909 i860-alliant-*) # Alliant FX/2800
1910 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1911 xm_file="${xm_file}"
1912 xmake_file=i860/x-fx2800
1913 tmake_file=i860/t-fx2800
1914 extra_parts="crtbegin.o crtend.o"
1917 tm_file="${tm_file} i860/bsd.h"
1918 if test x$gas = xyes
1920 tm_file="${tm_file} i860/bsd-gas.h"
1925 tm_file="${tm_file} i860/mach.h"
1926 tmake_file=t-libc-ok
1928 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1929 tm_file="${tm_file} svr3.h i860/paragon.h"
1930 xm_defines="USG SVR3"
1934 tm_file="${tm_file} svr3.h i860/sysv3.h"
1935 xm_defines="USG SVR3"
1936 xmake_file=i860/x-sysv3
1937 extra_parts="crtbegin.o crtend.o"
1940 tm_file="${tm_file} svr4.h i860/sysv4.h"
1941 xm_defines="USG SVR3"
1942 xmake_file=i860/x-sysv4
1944 extra_parts="crtbegin.o crtend.o"
1946 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1947 tm_file="${tm_file} i960/vx960.h"
1948 tmake_file=i960/t-vxworks960
1950 thread_file='vxworks'
1952 i960-wrs-vxworks5* | i960-wrs-vxworks)
1953 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1954 tmake_file=i960/t-vxworks960
1956 thread_file='vxworks'
1959 tm_file="${tm_file} i960/vx960.h"
1960 tmake_file=i960/t-vxworks960
1962 thread_file='vxworks'
1965 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1966 tmake_file=i960/t-960bare
1970 tmake_file="i960/t-960bare t-rtems"
1971 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1974 i960-*-*) # Default i960 environment.
1979 tmake_file="ia64/t-ia64"
1980 target_cpu_default="0"
1981 if test x$gas = xyes
1983 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1985 if test x$gnu_ld = xyes
1987 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1991 tm_file=ia64/linux.h
1992 tmake_file="t-linux ia64/t-ia64"
1993 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1994 if test x$enable_threads = xyes; then
1999 extra_parts="crtinit.o crtfini.o"
2001 m68000-convergent-sysv*)
2003 xm_file="m68k/xm-3b1.h ${xm_file}"
2006 extra_headers=math-68881.h
2008 m68000-hp-bsd*) # HP 9000/200 running BSD
2009 tm_file=m68k/hp2bsd.h
2010 xmake_file=m68k/x-hp2bsd
2012 extra_headers=math-68881.h
2014 m68000-hp-hpux*) # HP 9000 series 300
2015 xm_file="xm-alloca.h ${xm_file}"
2017 if test x$gas = xyes
2019 xmake_file=m68k/x-hp320g
2020 tm_file=m68k/hp310g.h
2022 xmake_file=m68k/x-hp320
2023 tm_file=m68k/hp310.h
2025 install_headers_dir=install-headers-cpio
2027 extra_headers=math-68881.h
2032 extra_headers=math-68881.h
2035 tm_file=m68k/sun2o4.h
2037 extra_headers=math-68881.h
2040 xm_file="m68k/xm-3b1.h ${xm_file}"
2042 if test x$gas = xyes
2049 extra_headers=math-68881.h
2051 m68k-apple-aux*) # Apple Macintosh running A/UX
2052 xm_defines="USG AUX"
2053 tmake_file=m68k/t-aux
2054 install_headers_dir=install-headers-cpio
2055 extra_headers=math-68881.h
2056 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2058 if test "$gnu_ld" = yes
2060 tm_file="${tm_file} m68k/auxgld.h"
2062 tm_file="${tm_file} m68k/auxld.h"
2064 if test "$gas" = yes
2066 tm_file="${tm_file} m68k/auxgas.h"
2068 tm_file="${tm_file} m68k/auxas.h"
2070 tm_file="${tm_file} m68k/a-ux.h"
2074 tm_file=m68k/apollo68.h
2075 xmake_file=m68k/x-apollo68
2077 extra_headers=math-68881.h
2080 m68k-altos-sysv*) # Altos 3068
2081 if test x$gas = xyes
2083 tm_file=m68k/altos3068.h
2086 echo "The Altos is supported only with the GNU assembler" 1>&2
2089 extra_headers=math-68881.h
2091 m68k-bull-sysv*) # Bull DPX/2
2092 if test x$gas = xyes
2094 if test x$stabs = xyes
2096 tm_file=m68k/dpx2cdbx.h
2098 tm_file=m68k/dpx2g.h
2103 xm_file="xm-alloca.h ${xm_file}"
2105 xmake_file=m68k/x-dpx2
2107 extra_headers=math-68881.h
2109 m68k-atari-sysv4*) # Atari variant of V.4.
2110 tm_file=m68k/atari.h
2111 xm_file="xm-alloca.h ${xm_file}"
2112 xm_defines="USG FULL_PROTOTYPES"
2114 extra_parts="crtbegin.o crtend.o"
2115 extra_headers=math-68881.h
2118 m68k-motorola-sysv*)
2119 tm_file=m68k/mot3300.h
2120 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2121 if test x$gas = xyes
2123 xmake_file=m68k/x-mot3300-gas
2124 if test x$gnu_ld = xyes
2126 tmake_file=m68k/t-mot3300-gald
2128 tmake_file=m68k/t-mot3300-gas
2132 xmake_file=m68k/x-mot3300
2133 if test x$gnu_ld = xyes
2135 tmake_file=m68k/t-mot3300-gld
2137 tmake_file=m68k/t-mot3300
2141 gdb_needs_out_file_path=yes
2142 extra_parts="crt0.o mcrt0.o"
2143 extra_headers=math-68881.h
2146 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2147 tm_file=m68k/tower-as.h
2148 xm_defines="USG SVR3"
2149 xmake_file=m68k/x-tower
2150 extra_parts="crtbegin.o crtend.o"
2151 extra_headers=math-68881.h
2154 tm_file=m68k/plexus.h
2155 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2158 extra_headers=math-68881.h
2162 xm_file="xm-alloca.h ${xm_file}"
2164 extra_headers=math-68881.h
2167 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2168 xm_defines="USG unos"
2169 xmake_file=m68k/x-crds
2172 extra_headers=math-68881.h
2174 m68k-cbm-sysv4*) # Commodore variant of V.4.
2176 xm_file="xm-alloca.h ${xm_file}"
2177 xm_defines="USG FULL_PROTOTYPES"
2178 xmake_file=m68k/x-amix
2180 extra_parts="crtbegin.o crtend.o"
2181 extra_headers=math-68881.h
2185 tm_file=m68k/ccur-GAS.h
2186 xmake_file=m68k/x-ccur
2187 extra_headers=math-68881.h
2191 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2192 tm_file=m68k/hp3bsd44.h
2193 xmake_file=m68k/x-hp3bsd44
2195 extra_headers=math-68881.h
2198 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2199 tm_file=m68k/hp3bsd.h
2201 extra_headers=math-68881.h
2205 if test x$with_fp = xno
2207 tm_file=m68k/isi-nfp.h
2213 extra_headers=math-68881.h
2215 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2216 xm_file="xm-alloca.h ${xm_file}"
2218 if test x$gas = xyes
2220 xmake_file=m68k/x-hp320g
2221 tm_file=m68k/hp320g.h
2223 xmake_file=m68k/x-hp320
2224 tm_file=m68k/hpux7.h
2226 install_headers_dir=install-headers-cpio
2228 extra_headers=math-68881.h
2231 m68k-hp-hpux*) # HP 9000 series 300
2232 xm_file="xm-alloca.h ${xm_file}"
2234 if test x$gas = xyes
2236 xmake_file=m68k/x-hp320g
2237 tm_file=m68k/hp320g.h
2239 xmake_file=m68k/x-hp320
2240 tm_file=m68k/hp320.h
2242 install_headers_dir=install-headers-cpio
2244 extra_headers=math-68881.h
2248 tm_file=m68k/sun3mach.h
2250 extra_headers=math-68881.h
2254 if test x$gas = xyes
2256 tm_file=m68k/news3gas.h
2258 tm_file=m68k/news3.h
2261 extra_headers=math-68881.h
2264 m68k-sony-bsd* | m68k-sony-newsos*)
2265 if test x$gas = xyes
2267 tm_file=m68k/newsgas.h
2272 extra_headers=math-68881.h
2275 m68k-next-nextstep2*)
2276 tm_file=m68k/next21.h
2277 xm_file="m68k/xm-next.h ${xm_file}"
2278 tmake_file=m68k/t-next
2279 xmake_file=m68k/x-next
2280 extra_objs=nextstep.o
2281 extra_headers=math-68881.h
2286 m68k-next-nextstep[34]*)
2289 xm_file="m68k/xm-next.h ${xm_file}"
2290 tmake_file=m68k/t-next
2291 xmake_file=m68k/x-next
2292 extra_objs=nextstep.o
2293 extra_parts="crtbegin.o crtend.o"
2294 extra_headers=math-68881.h
2296 if test x$enable_threads = xyes; then
2301 if test x$with_fp = xno
2303 tm_file=m68k/sun3n3.h
2305 tm_file=m68k/sun3o3.h
2309 extra_headers=math-68881.h
2311 m68k-sun-sunos*) # For SunOS 4 (the default).
2312 if test x$with_fp = xno
2314 tm_file=m68k/sun3n.h
2320 extra_headers=math-68881.h
2323 tm_file=m68k/vxm68k.h
2324 tmake_file=m68k/t-vxworks68
2325 extra_headers=math-68881.h
2326 thread_file='vxworks'
2330 tmake_file=m68k/t-m68kbare
2331 tm_file="m68k/m68k-aout.h libgloss.h"
2332 extra_headers=math-68881.h
2336 tmake_file=m68k/t-m68kbare
2337 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2338 extra_headers=math-68881.h
2341 m68020-*-elf* | m68k-*-elf*)
2342 tm_file="m68k/m68020-elf.h"
2343 xm_file=m68k/xm-m68kv.h
2344 tmake_file=m68k/t-m68kelf
2345 header_files=math-68881.h
2348 if test x$gas = xyes
2352 tm_file=m68k/lynx-ng.h
2354 xm_file=m68k/xm-lynx.h
2356 tmake_file=m68k/t-lynx
2357 extra_headers=math-68881.h
2361 tm_file=m68k/netbsd.h
2368 # we need collect2 until our bug is fixed...
2371 m68k-*-sysv3*) # Motorola m68k's running system V.3
2372 xm_file="xm-alloca.h ${xm_file}"
2374 xmake_file=m68k/x-m68kv
2375 extra_parts="crtbegin.o crtend.o"
2376 extra_headers=math-68881.h
2379 m68k-*-sysv4*) # Motorola m68k's running system V.4
2380 tm_file=m68k/m68kv4.h
2381 xm_file="xm-alloca.h ${xm_file}"
2384 extra_parts="crtbegin.o crtend.o"
2385 extra_headers=math-68881.h
2388 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
2391 tm_file=m68k/linux-aout.h
2392 tmake_file="t-linux-aout m68k/t-linux-aout"
2393 extra_headers=math-68881.h
2397 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2398 # with ELF format using the
2399 # GNU/Linux C library 5
2401 tm_file=m68k/linux.h
2402 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2403 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2404 extra_headers=math-68881.h
2408 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2409 # with ELF format using glibc 2
2410 # aka the GNU/Linux C library 6.
2412 tm_file=m68k/linux.h
2413 tmake_file="t-linux m68k/t-linux"
2414 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2415 extra_headers=math-68881.h
2418 if test x$enable_threads = xyes; then
2423 tmake_file=m68k/t-m68kbare
2424 tm_file=m68k/m68k-psos.h
2425 extra_headers=math-68881.h
2429 tmake_file="m68k/t-m68kbare t-rtems"
2430 tm_file=m68k/rtems.h
2431 extra_headers=math-68881.h
2434 m68k-*-rtemself*|m68k-*-rtems*)
2435 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2436 tm_file=m68k/rtemself.h
2437 extra_headers=math-68881.h
2443 tm_file=m88k/dguxbcs.h
2444 tmake_file=m88k/t-dguxbcs
2448 tmake_file=m88k/t-dgux
2451 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2452 xmake_file=m88k/x-dgux
2453 if test x$gas = xyes
2455 tmake_file=m88k/t-dgux-gas
2458 m88k-dolphin-sysv3*)
2459 tm_file=m88k/dolph.h
2460 extra_parts="crtbegin.o crtend.o"
2461 xm_file="m88k/xm-sysv3.h ${xm_file}"
2462 xmake_file=m88k/x-dolph
2463 if test x$gas = xyes
2465 tmake_file=m88k/t-m88k-gas
2468 m88k-tektronix-sysv3)
2469 tm_file=m88k/tekXD88.h
2470 extra_parts="crtbegin.o crtend.o"
2471 xm_file="m88k/xm-sysv3.h ${xm_file}"
2472 xmake_file=m88k/x-tekXD88
2473 if test x$gas = xyes
2475 tmake_file=m88k/t-m88k-gas
2479 tm_file=m88k/m88k-aout.h
2482 tm_file=m88k/m88k-coff.h
2483 tmake_file=m88k/t-bug
2487 extra_parts="crtbegin.o crtend.o"
2488 if test x$gas = xyes
2490 tmake_file=m88k/t-luna-gas
2492 tmake_file=m88k/t-luna
2496 tmake_file="${tmake_file} m88k/t-luna-gas"
2499 tm_file=m88k/sysv3.h
2500 extra_parts="crtbegin.o crtend.o"
2501 xm_file="m88k/xm-sysv3.h ${xm_file}"
2502 xmake_file=m88k/x-sysv3
2503 if test x$gas = xyes
2505 tmake_file=m88k/t-m88k-gas
2509 tm_file=m88k/sysv4.h
2510 extra_parts="crtbegin.o crtend.o"
2511 xmake_file=m88k/x-sysv4
2512 tmake_file=m88k/t-sysv4
2515 tm_file=mcore/mcore-elf.h
2516 tmake_file=mcore/t-mcore
2519 tm_file=mcore/mcore-pe.h
2520 tmake_file=mcore/t-mcore-pe
2522 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2523 if test "x$gnu_ld" = xyes
2525 tm_file="mips/iris6.h mips/iris6gld.h"
2527 tm_file=mips/iris6.h
2529 tmake_file=mips/t-iris6
2530 xm_file=mips/xm-iris6.h
2531 xmake_file=mips/x-iris6
2532 # if test x$enable_threads = xyes; then
2533 # thread_file='irix'
2537 tm_file="mips/elf.h mips/vxworks.h"
2538 tmake_file=mips/t-ecoff
2541 extra_parts="crtbegin.o crtend.o"
2542 thread_file='vxworks'
2544 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2545 tm_file="mips/iris6.h mips/cross64.h"
2547 xm_file="mips/xm-iris5.h"
2548 xmake_file=mips/x-iris
2549 tmake_file=mips/t-cross64
2550 # See comment in mips/iris[56].h files.
2552 # if test x$enable_threads = xyes; then
2553 # thread_file='irix'
2557 if test x$gas = xyes
2559 if test x$stabs = xyes
2561 tm_file=mips/iris5gdb.h
2563 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2566 tm_file=mips/sni-svr4.h
2569 xmake_file=mips/x-sni-svr4
2570 tmake_file=mips/t-mips-gas
2571 if test x$gnu_ld != xyes
2576 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2577 if test x$gas = xyes
2579 tm_file="mips/iris5.h mips/iris5gas.h"
2580 if test x$stabs = xyes
2582 tm_file="${tm_file} dbx.h"
2585 tm_file=mips/iris5.h
2588 xm_file="mips/xm-iris5.h"
2589 xmake_file=mips/x-iris
2590 # mips-tfile doesn't work yet
2591 tmake_file=mips/t-mips-gas
2592 # See comment in mips/iris5.h file.
2594 # if test x$enable_threads = xyes; then
2595 # thread_file='irix'
2598 mips-sgi-irix4loser*) # Mostly like a MIPS.
2599 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2600 if test x$stabs = xyes; then
2601 tm_file="${tm_file} dbx.h"
2604 xmake_file=mips/x-iris
2605 if test x$gas = xyes
2607 tmake_file=mips/t-mips-gas
2609 extra_passes="mips-tfile mips-tdump"
2611 if test x$gnu_ld != xyes
2615 # if test x$enable_threads = xyes; then
2616 # thread_file='irix'
2619 mips-sgi-irix4*) # Mostly like a MIPS.
2620 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2621 if test x$stabs = xyes; then
2622 tm_file="${tm_file} dbx.h"
2625 xmake_file=mips/x-iris
2626 if test x$gas = xyes
2628 tmake_file=mips/t-mips-gas
2630 extra_passes="mips-tfile mips-tdump"
2632 if test x$gnu_ld != xyes
2636 # if test x$enable_threads = xyes; then
2637 # thread_file='irix'
2640 mips-sgi-*) # Mostly like a MIPS.
2641 tm_file="mips/iris3.h ${tm_file}"
2642 if test x$stabs = xyes; then
2643 tm_file="${tm_file} dbx.h"
2646 xmake_file=mips/x-iris3
2647 if test x$gas = xyes
2649 tmake_file=mips/t-mips-gas
2651 extra_passes="mips-tfile mips-tdump"
2653 if test x$gnu_ld != xyes
2658 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2659 tm_file="mips/osfrose.h ${tm_file}"
2660 xmake_file=mips/x-osfrose
2661 tmake_file=mips/t-osfrose
2662 extra_objs=halfpic.o
2665 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2666 tm_file=mips/dec-osf1.h
2667 if test x$stabs = xyes; then
2668 tm_file="${tm_file} dbx.h"
2670 xmake_file=mips/x-dec-osf1
2671 if test x$gas = xyes
2673 tmake_file=mips/t-mips-gas
2675 tmake_file=mips/t-ultrix
2676 extra_passes="mips-tfile mips-tdump"
2678 if test x$gnu_ld != xyes
2683 mips-dec-bsd*) # Decstation running 4.4 BSD
2684 tm_file=mips/dec-bsd.h
2685 if test x$gas = xyes
2687 tmake_file=mips/t-mips-gas
2689 tmake_file=mips/t-ultrix
2690 extra_passes="mips-tfile mips-tdump"
2692 if test x$gnu_ld != xyes
2697 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2698 tm_file=mips/netbsd.h
2699 # On NetBSD, the headers are already okay, except for math.h.
2702 mips*-*-linux*) # Linux MIPS, either endian.
2705 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2706 *) tm_file="mips/elf.h mips/linux.h" ;;
2708 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2711 if test x$enable_threads = xyes; then
2715 mips*el-*-openbsd*) # mips little endian
2716 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2718 mips*-*-openbsd*) # mips big endian
2719 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2720 tm_file="mips/openbsd-be.h ${tm_file}"
2722 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2723 tm_file="mips/news4.h ${tm_file}"
2724 if test x$stabs = xyes; then
2725 tm_file="${tm_file} dbx.h"
2727 if test x$gas = xyes
2729 tmake_file=mips/t-mips-gas
2731 extra_passes="mips-tfile mips-tdump"
2733 if test x$gnu_ld != xyes
2737 xmake_file=mips/x-sony
2739 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2740 # That is based on svr4.
2741 # t-svr4 is not right because this system doesn't use ELF.
2742 tm_file="mips/news5.h ${tm_file}"
2743 if test x$stabs = xyes; then
2744 tm_file="${tm_file} dbx.h"
2747 if test x$gas = xyes
2749 tmake_file=mips/t-mips-gas
2751 extra_passes="mips-tfile mips-tdump"
2753 if test x$gnu_ld != xyes
2758 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2759 tm_file="mips/svr4-5.h mips/svr4-t.h"
2760 if test x$stabs = xyes; then
2761 tm_file="${tm_file} dbx.h"
2764 xmake_file=mips/x-sysv
2765 if test x$gas = xyes
2767 tmake_file=mips/t-mips-gas
2768 extra_parts="crtbegin.o crtend.o"
2770 tmake_file=mips/t-mips
2771 extra_passes="mips-tfile mips-tdump"
2773 if test x$gnu_ld != xyes
2778 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2779 tm_file="mips/ultrix.h ${tm_file}"
2780 if test x$stabs = xyes; then
2781 tm_file="${tm_file} dbx.h"
2783 xmake_file=mips/x-ultrix
2784 if test x$gas = xyes
2786 tmake_file=mips/t-mips-gas
2788 tmake_file=mips/t-ultrix
2789 extra_passes="mips-tfile mips-tdump"
2791 if test x$gnu_ld != xyes
2797 mips-*-riscos[56789]bsd*)
2799 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2800 if test x$stabs = xyes; then
2801 tm_file="${tm_file} dbx.h"
2803 if test x$gas = xyes
2805 tmake_file=mips/t-bsd-gas
2807 tmake_file=mips/t-bsd
2808 extra_passes="mips-tfile mips-tdump"
2810 if test x$gnu_ld != xyes
2816 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2818 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2819 if test x$stabs = xyes; then
2820 tm_file="${tm_file} dbx.h"
2822 if test x$gas = xyes
2824 tmake_file=mips/t-bsd-gas
2826 tmake_file=mips/t-bsd
2827 extra_passes="mips-tfile mips-tdump"
2829 if test x$gnu_ld != xyes
2835 mips-*-riscos[56789]sysv4*)
2837 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2838 if test x$stabs = xyes; then
2839 tm_file="${tm_file} dbx.h"
2841 xmake_file=mips/x-sysv
2842 if test x$gas = xyes
2844 tmake_file=mips/t-svr4-gas
2846 tmake_file=mips/t-svr4
2847 extra_passes="mips-tfile mips-tdump"
2849 if test x$gnu_ld != xyes
2855 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2857 tm_file="mips/svr4-4.h ${tm_file}"
2858 if test x$stabs = xyes; then
2859 tm_file="${tm_file} dbx.h"
2862 xmake_file=mips/x-sysv
2863 if test x$gas = xyes
2865 tmake_file=mips/t-svr4-gas
2867 tmake_file=mips/t-svr4
2868 extra_passes="mips-tfile mips-tdump"
2870 if test x$gnu_ld != xyes
2876 mips-*-riscos[56789]sysv*)
2878 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2879 if test x$stabs = xyes; then
2880 tm_file="${tm_file} dbx.h"
2883 xmake_file=mips/x-sysv
2884 if test x$gas = xyes
2886 tmake_file=mips/t-svr3-gas
2888 tmake_file=mips/t-svr3
2889 extra_passes="mips-tfile mips-tdump"
2891 if test x$gnu_ld != xyes
2896 mips-*-sysv* | mips-*-riscos*sysv*)
2897 tm_file="mips/svr3-4.h ${tm_file}"
2898 if test x$stabs = xyes; then
2899 tm_file="${tm_file} dbx.h"
2902 xmake_file=mips/x-sysv
2903 if test x$gas = xyes
2905 tmake_file=mips/t-svr3-gas
2907 tmake_file=mips/t-svr3
2908 extra_passes="mips-tfile mips-tdump"
2910 if test x$gnu_ld != xyes
2916 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2918 tm_file=mips/mips-5.h
2919 if test x$stabs = xyes; then
2920 tm_file="${tm_file} dbx.h"
2922 if test x$gas = xyes
2924 tmake_file=mips/t-mips-gas
2926 extra_passes="mips-tfile mips-tdump"
2928 if test x$gnu_ld != xyes
2936 tm_file=mips/ecoffl.h
2937 if test x$stabs = xyes; then
2938 tm_file="${tm_file} dbx.h"
2940 tmake_file=mips/t-ecoff
2943 tm_file="gofast.h mips/ecoff.h"
2944 if test x$stabs = xyes; then
2945 tm_file="${tm_file} dbx.h"
2947 tmake_file=mips/t-ecoff
2950 tm_file="mips/elfl.h"
2951 tmake_file=mips/t-elf
2954 tm_file="mips/elf.h"
2955 tmake_file=mips/t-elf
2958 tm_file="mips/elfl64.h"
2959 tmake_file=mips/t-elf
2961 mips64orionel-*-elf*)
2962 tm_file="mips/elforion.h mips/elfl64.h"
2963 tmake_file=mips/t-elf
2966 tm_file="mips/elf64.h"
2967 tmake_file=mips/t-elf
2970 tm_file="mips/elforion.h mips/elf64.h"
2971 tmake_file=mips/t-elf
2973 mips64orion-*-rtems*)
2974 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2975 tmake_file="mips/t-elf t-rtems"
2978 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2979 tmake_file=mips/t-r3900
2982 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2983 tmake_file=mips/t-r3900
2985 mips-*-*) # Default MIPS RISC-OS 4.0.
2986 if test x$stabs = xyes; then
2987 tm_file="${tm_file} dbx.h"
2989 if test x$gas = xyes
2991 tmake_file=mips/t-mips-gas
2993 extra_passes="mips-tfile mips-tdump"
2995 if test x$gnu_ld != xyes
3003 tm_file="mn10200/mn10200.h"
3004 if test x$stabs = xyes
3006 tm_file="${tm_file} dbx.h"
3012 tm_file="mn10300/mn10300.h"
3013 if test x$stabs = xyes
3015 tm_file="${tm_file} dbx.h"
3020 tm_file=ns32k/encore.h
3024 tm_file=ns32k/sequent.h
3028 tm_file=ns32k/tek6100.h
3032 tm_file=ns32k/tek6200.h
3035 # This has not been updated to GCC 2.
3038 # xmake_file=ns32k/x-genix
3039 # tm_file=ns32k/genix.h
3043 tm_file=ns32k/merlin.h
3047 tm_file=ns32k/pc532-mach.h
3051 tm_file=ns32k/pc532-min.h
3052 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3057 tm_file=ns32k/netbsd.h
3058 xm_file="ns32k/xm-netbsd.h ${xm_file}"
3059 # On NetBSD, the headers are already okay, except for math.h.
3064 tm_file="${tm_file} pdp11/2bsd.h"
3073 # This has not been updated to GCC 2.
3076 # xmake_file=pyr/x-pyr
3081 tm_file="svr4.h pj/linux.h ${tm_file}"
3086 tm_file="svr4.h pj/pjl.h ${tm_file}"
3093 xmake_file=romp/x-mach
3100 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3104 tm_file=rs6000/beos.h
3105 xm_file=rs6000/xm-beos.h
3106 tmake_file=rs6000/t-beos
3107 xmake_file=rs6000/x-beos
3110 tm_file=rs6000/sysv4.h
3111 xm_file="rs6000/xm-sysv4.h"
3112 xm_defines="USG POSIX"
3113 extra_headers=ppc-asm.h
3114 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3115 xmake_file=rs6000/x-sysv4
3118 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3119 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3120 extra_headers=ppc-asm.h
3123 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3124 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3125 extra_headers=ppc-asm.h
3128 tm_file="rs6000/sysv4.h"
3129 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3130 extra_headers=ppc-asm.h
3133 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3134 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3135 extra_headers=ppc-asm.h
3138 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3139 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3140 extra_headers=ppc-asm.h
3142 powerpc-*-linux-gnulibc1)
3143 tm_file="rs6000/sysv4.h rs6000/linux.h"
3144 xm_file=rs6000/xm-sysv4.h
3145 out_file=rs6000/rs6000.c
3146 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3148 extra_headers=ppc-asm.h
3149 if test x$enable_threads = xyes; then
3153 powerpc-*-linux-gnu*)
3154 tm_file="rs6000/sysv4.h rs6000/linux.h"
3155 xm_file="rs6000/xm-sysv4.h"
3156 xm_defines="USG ${xm_defines}"
3157 out_file=rs6000/rs6000.c
3158 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3160 extra_headers=ppc-asm.h
3161 if test x$enable_threads = xyes; then
3165 powerpc-wrs-vxworks*)
3167 xm_file="rs6000/xm-sysv4.h"
3168 xm_defines="USG POSIX"
3169 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3170 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3171 extra_headers=ppc-asm.h
3172 thread_file='vxworks'
3174 powerpcle-wrs-vxworks*)
3176 xm_file="rs6000/xm-sysv4.h"
3177 xm_defines="USG POSIX"
3178 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3179 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3180 extra_headers=ppc-asm.h
3181 thread_file='vxworks'
3184 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3185 xm_file="rs6000/xm-sysv4.h"
3186 xm_defines="USG POSIX"
3187 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3188 xmake_file=rs6000/x-sysv4
3189 extra_headers=ppc-asm.h
3192 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3193 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3194 extra_headers=ppc-asm.h
3196 powerpcle-*-eabisim*)
3197 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3198 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3199 extra_headers=ppc-asm.h
3202 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3203 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3204 extra_headers=ppc-asm.h
3206 powerpcle-*-solaris2*)
3207 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3208 xm_file="rs6000/xm-sysv4.h"
3209 xm_defines="USG POSIX"
3210 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3211 xmake_file=rs6000/x-sysv4
3212 extra_headers=ppc-asm.h
3215 rs6000-ibm-aix3.[01]*)
3217 tm_file=rs6000/aix31.h
3218 xmake_file=rs6000/x-aix31
3223 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3225 tm_file=rs6000/aix3newas.h
3226 if test x$host != x$target
3228 tmake_file=rs6000/t-xnewas
3230 tmake_file=rs6000/t-newas
3236 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3238 tm_file=rs6000/aix41.h
3239 if test x$host != x$target
3241 tmake_file=rs6000/t-xnewas
3243 tmake_file=rs6000/t-newas
3245 if test "$gnu_ld" = yes
3247 xmake_file=rs6000/x-aix41-gld
3249 tmake_file="rs6000/t-newas rs6000/t-aix41"
3251 xmake_file=rs6000/x-aix41
3256 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3258 tm_file=rs6000/aix43.h
3259 tmake_file=rs6000/t-aix43
3260 xmake_file=rs6000/x-aix41
3265 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3267 tm_file=rs6000/aix43.h
3268 tmake_file=rs6000/t-aix43
3269 xmake_file=rs6000/x-aix41
3282 tm_file=rs6000/mach.h
3283 xm_file="${xm_file} rs6000/xm-mach.h"
3284 xmake_file=rs6000/x-mach
3288 tm_file=rs6000/lynx.h
3289 xm_file=rs6000/xm-lynx.h
3290 tmake_file=rs6000/t-rs6000
3291 xmake_file=rs6000/x-lynx
3299 tmake_file="sh/t-sh t-rtems"
3300 tm_file=sh/rtemself.h
3304 tmake_file="sh/t-sh t-rtems"
3313 xm_file="xm-alloca.h ${xm_file}"
3316 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3317 tm_file=sparc/vxsparc.h
3318 tmake_file=sparc/t-vxsparc
3320 thread_file='vxworks'
3323 tmake_file=sparc/t-sparcbare
3324 tm_file="sparc/aout.h libgloss.h"
3327 tm_file=sparc/netbsd.h
3332 # we need collect2 until our bug is fixed...
3340 tmake_file=sparc/t-elf
3341 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3345 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
3346 xm_file="${xm_file} sparc/xm-linux.h"
3347 tm_file=sparc/linux-aout.h
3351 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
3352 xm_file="${xm_file} sparc/xm-linux.h"
3354 tm_file=sparc/linux.h
3355 tmake_file="t-linux t-linux-gnulibc1"
3356 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3360 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
3361 xm_file="${xm_file} sparc/xm-linux.h"
3363 tm_file=sparc/linux.h
3364 tmake_file="t-linux"
3365 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3367 if test x$enable_threads = xyes; then
3373 if test x$gas = xyes
3375 tm_file=sparc/lynx.h
3377 tm_file=sparc/lynx-ng.h
3379 xm_file=sparc/xm-lynx.h
3380 tmake_file=sparc/t-sunos41
3384 tmake_file="sparc/t-sparcbare t-rtems"
3385 tm_file=sparc/rtems.h
3387 sparc-*-rtems*|sparc-*-rtemself*)
3388 tm_file="sparc/rtemself.h"
3389 tmake_file="sparc/t-elf t-rtems"
3390 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3394 sparcv9-*-solaris2*)
3395 if test x$gnu_ld = xyes
3397 tm_file=sparc/sol2-64.h
3399 tm_file=sparc/sol2-sld-64.h
3401 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3402 xm_defines="USG POSIX"
3403 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3404 xmake_file=sparc/x-sysv4
3405 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3407 if test x${enable_threads} = x ; then
3408 enable_threads=$have_pthread_h
3409 if test x${enable_threads} = x ; then
3410 enable_threads=$have_thread_h
3413 if test x${enable_threads} = xyes ; then
3414 if test x${have_pthread_h} = xyes ; then
3417 thread_file='solaris'
3421 sparc-hal-solaris2*)
3422 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3423 xm_defines="USG POSIX"
3424 tm_file="sparc/sol2.h sparc/hal.h"
3425 tmake_file="sparc/t-halos sparc/t-sol2"
3426 xmake_file=sparc/x-sysv4
3427 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3438 thread_file='solaris'
3441 if test x$gnu_ld = xyes
3443 tm_file=sparc/sol2.h
3445 tm_file=sparc/sol2-sld.h
3447 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3448 xm_defines="USG POSIX"
3449 tmake_file=sparc/t-sol2
3450 xmake_file=sparc/x-sysv4
3451 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3454 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3457 if test x$gnu_ld = xyes
3459 tm_file=sparc/sol2-64.h
3461 tm_file=sparc/sol2-sld-64.h
3463 tmake_file="$tmake_file sparc/t-sol2-64"
3476 if test x${enable_threads} = x; then
3477 enable_threads=$have_pthread_h
3478 if test x${enable_threads} = x; then
3479 enable_threads=$have_thread_h
3482 if test x${enable_threads} = xyes; then
3483 if test x${have_pthread_h} = xyes; then
3486 thread_file='solaris'
3491 tm_file=sparc/sunos4.h
3492 tmake_file=sparc/t-sunos40
3496 tm_file=sparc/sunos4.h
3497 tmake_file=sparc/t-sunos41
3499 if test x$gas = xyes; then
3500 tm_file="${tm_file} sparc/sun4gas.h"
3504 tm_file=sparc/sun4o3.h
3508 tm_file=sparc/sysv4.h
3509 xm_file="sparc/xm-sysv4.h"
3510 xm_defines="USG POSIX"
3512 xmake_file=sparc/x-sysv4
3513 extra_parts="crtbegin.o crtend.o"
3516 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3517 xm_defines="USG POSIX"
3518 tm_file=sparc/vxsim.h
3519 tmake_file=sparc/t-vxsparc
3520 xmake_file=sparc/x-sysv4
3523 tm_file="sparc/splet.h libgloss.h"
3524 tmake_file=sparc/t-splet
3527 tm_file="sparc/litecoff.h libgloss.h"
3528 tmake_file=sparc/t-sparclite
3531 tm_file="sparc/lite.h aoutos.h libgloss.h"
3532 tmake_file=sparc/t-sparclite
3535 tm_file="sparc/liteelf.h"
3536 tmake_file=sparc/t-sparclite
3537 extra_parts="crtbegin.o crtend.o"
3540 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3541 tmake_file=sparc/t-sp86x
3544 tm_file="sparc/sp86x-elf.h"
3545 tmake_file=sparc/t-sp86x
3546 extra_parts="crtbegin.o crtend.o"
3549 tmake_file=sparc/t-sp64
3550 tm_file=sparc/sp64-aout.h
3553 tmake_file=sparc/t-sp64
3554 tm_file=sparc/sp64-elf.h
3555 extra_parts="crtbegin.o crtend.o"
3557 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3558 tmake_file="t-linux sparc/t-linux64"
3559 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3560 tm_file=sparc/linux64.h
3562 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3564 if test x$enable_threads = xyes; then
3569 # This hasn't been upgraded to GCC 2.
3570 # tahoe-harris-*) # Harris tahoe, using COFF.
3571 # tm_file=tahoe/harris.h
3573 # tahoe-*-bsd*) # tahoe running BSD
3578 *** The Thumb targets have been depreciated. The equivalent
3579 *** ARM based toolchain can now generated Thumb instructions
3580 *** when the -mthumb switch is given to the compiler.])
3582 # This hasn't been upgraded to GCC 2.
3589 tm_file="v850/rtems.h"
3590 xm_file="v850/xm-v850.h"
3591 tmake_file="v850/t-v850 t-rtems"
3592 if test x$stabs = xyes
3594 tm_file="${tm_file} dbx.h"
3599 target_cpu_default="TARGET_CPU_generic"
3601 tm_file="v850/v850.h"
3602 xm_file="v850/xm-v850.h"
3603 tmake_file=v850/t-v850
3604 if test x$stabs = xyes
3606 tm_file="${tm_file} dbx.h"
3610 vax-*-bsd*) # vaxen running BSD
3614 vax-*-sysv*) # vaxen running system V
3615 tm_file="${tm_file} vax/vaxv.h"
3620 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3626 tmake_file="${tmake_file} vax/t-openbsd"
3628 vax-*-ultrix*) # vaxen running ultrix
3629 tm_file="${tm_file} vax/ultrix.h"
3633 vax-*-vms*) # vaxen running VMS
3634 xm_file=vax/xm-vms.h
3638 vax-*-*) # vax default entry
3642 xm_file="${xm_file} xm-svr3"
3646 echo "Configuration $machine not supported" 1>&2
3653 ;; # Existing GNU/Linux systems do not use the GNU setup.
3655 # On the GNU system, the setup is just about the same on
3656 # each different CPU. The specific machines that GNU
3657 # supports are matched above and just set $cpu_type.
3658 xm_file="xm-gnu.h ${xm_file}"
3659 tm_file=${cpu_type}/gnu.h
3660 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3661 # GNU always uses ELF.
3663 # GNU tools are the only tools.
3666 xmake_file=x-linux # These details are the same as Linux.
3667 tmake_file=t-gnu # These are not.
3670 xmake_try_sysv=x-sysv
3671 install_headers_dir=install-headers-cpio
3674 install_headers_dir=install-headers-cpio
3678 # Distinguish i[34567]86
3679 # Also, do not run mips-tfile on MIPS if using gas.
3680 # Process --with-cpu= for PowerPC/rs6000
3681 target_cpu_default2=
3684 target_cpu_default2=1
3687 case $target_alias in
3689 target_cpu_default2=4
3692 target_cpu_default2=2
3696 i686-*-* | i786-*-*)
3697 target_cpu_default2=3
3704 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3707 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3710 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3713 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3716 target_cpu_default2="MASK_CPU_EV5"
3720 if test x$gas = xyes
3722 if test "$target_cpu_default2" = ""
3724 target_cpu_default2="MASK_GAS"
3726 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3731 case "x$with_cpu" in
3734 target_cpu_default2="TARGET_CPU_generic"
3737 # Distinguish cores, and major variants
3738 # arm7m doesn't exist, but D & I don't affect code
3740 xarm[23678] | xarm250 | xarm[67][01]0 \
3741 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3742 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3743 | xstrongarm | xstrongarm110 | xstrongarm1100)
3745 target_cpu_default2="TARGET_CPU_$with_cpu"
3749 echo "--with-cpu must be passed a value" 1>&2
3754 if test x$pass2done = xyes
3756 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3763 mips*-*-ecoff* | mips*-*-elf*)
3764 if test x$gas = xyes
3766 if test x$gnu_ld = xyes
3768 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3770 target_cpu_default2="MASK_GAS"
3775 if test x$gas = xyes
3777 target_cpu_default2="MASK_GAS"
3780 powerpc*-*-* | rs6000-*-*)
3781 case "x$with_cpu" in
3785 xcommon | xpower | xpower2 | xpowerpc | xrios \
3786 | xrios1 | xrios2 | xrsc | xrsc1 \
3787 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3788 | xec603e | x740 | x750 | x401 \
3789 | x403 | x505 | x801 | x821 | x823 | x860)
3790 target_cpu_default2="\"$with_cpu\""
3794 echo "--with-cpu must be passed a value" 1>&2
3799 if test x$pass2done = xyes
3801 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3808 case ".$with_cpu" in
3810 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3812 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3813 target_cpu_default2="TARGET_CPU_$with_cpu"
3816 if test x$pass2done = xyes
3818 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3826 if test "$target_cpu_default2" != ""
3828 if test "$target_cpu_default" != ""
3830 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3832 target_cpu_default=$target_cpu_default2
3836 # No need for collect2 if we have the GNU linker.
3837 # Actually, there is now; GNU ld doesn't handle the EH info or
3838 # collecting for shared libraries.
3845 # Save data on machine being used to compile GCC in build_xm_file.
3846 # Save data on host machine in vars host_xm_file and host_xmake_file.
3847 if test x$pass1done = x
3849 if test x"$xm_file" = x
3850 then build_xm_file=$cpu_type/xm-$cpu_type.h
3851 else build_xm_file=$xm_file
3853 build_xm_defines=$xm_defines
3854 build_install_headers_dir=$install_headers_dir
3855 build_exeext=$exeext
3858 if test x$pass2done = x
3860 if test x"$xm_file" = x
3861 then host_xm_file=$cpu_type/xm-$cpu_type.h
3862 else host_xm_file=$xm_file
3864 host_xm_defines=$xm_defines
3865 if test x"$xmake_file" = x
3866 then xmake_file=$cpu_type/x-$cpu_type
3868 host_xmake_file="$xmake_file"
3869 host_truncate_target=$truncate_target
3870 host_extra_gcc_objs=$extra_gcc_objs
3871 host_extra_objs=$extra_host_objs
3878 extra_objs="${host_extra_objs} ${extra_objs}"
3880 # Default the target-machine variables that were not explicitly set.
3881 if test x"$tm_file" = x
3882 then tm_file=$cpu_type/$cpu_type.h; fi
3884 if test x$extra_headers = x
3885 then extra_headers=; fi
3887 if test x"$xm_file" = x
3888 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3890 if test x$md_file = x
3891 then md_file=$cpu_type/$cpu_type.md; fi
3893 if test x$out_file = x
3894 then out_file=$cpu_type/$cpu_type.c; fi
3896 if test x"$tmake_file" = x
3897 then tmake_file=$cpu_type/t-$cpu_type
3900 if test x"$dwarf2" = xyes
3901 then tm_file="$tm_file tm-dwarf2.h"
3904 if test x$float_format = x
3905 then float_format=i64
3908 if test $float_format = none
3909 then float_h_file=Makefile.in
3910 else float_h_file=float-$float_format.h
3913 # Handle cpp installation.
3914 if test x$enable_cpp != xno
3916 tmake_file="$tmake_file t-install-cpp"
3919 # Say what files are being used for the output code and MD file.
3920 echo "Using \`$srcdir/config/$out_file' to output insns."
3921 echo "Using \`$srcdir/config/$md_file' as machine description file."
3924 for f in $tm_file; do
3927 if test $count = ax; then
3928 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3930 echo "Using the following target machine macro files:"
3931 for f in $tm_file; do
3932 echo " $srcdir/config/$f"
3937 for f in $host_xm_file; do
3940 if test $count = ax; then
3941 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3943 echo "Using the following host machine macro files:"
3944 for f in $host_xm_file; do
3945 echo " $srcdir/config/$f"
3949 if test "$host_xm_file" != "$build_xm_file"; then
3951 for f in $build_xm_file; do
3954 if test $count = ax; then
3955 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3957 echo "Using the following build machine macro files:"
3958 for f in $build_xm_file; do
3959 echo " $srcdir/config/$f"
3964 if test x$thread_file = x; then
3965 if test x$target_thread_file != x; then
3966 thread_file=$target_thread_file
3968 thread_file='single'
3972 # Set up the header files.
3973 # $links is the list of header files to create.
3974 # $vars is the list of shell variables with file names to include.
3975 # auto-host.h is the file containing items generated by autoconf and is
3976 # the first file included by config.h.
3978 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
3980 # If host=build, it is correct to have hconfig include auto-host.h
3981 # as well. If host!=build, we are in error and need to do more
3982 # work to find out the build config parameters.
3983 if test x$host = x$build
3985 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
3987 # We create a subdir, then run autoconf in the subdir.
3988 # To prevent recursion we set host and build for the new
3989 # invocation of configure to the build for this invocation
3996 /*) realsrcdir=${srcdir};;
3997 *) realsrcdir=../${srcdir};;
3999 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4000 --target=$target --host=$build --build=$build
4002 # We just finished tests for the build machine, so rename
4003 # the file auto-build.h in the gcc directory.
4004 mv auto-host.h ../auto-build.h
4007 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4010 xm_file="gansidecl.h ${xm_file}"
4011 tm_file="gansidecl.h ${tm_file}"
4013 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4014 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4015 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4018 if test -f config.status; then mv -f config.status config.bak; fi
4021 while test -n "$vars"
4023 set $vars; var=$1; shift; vars=$*
4024 set $links; link=$1; shift; links=$*
4025 set $defines; define=$1; shift; defines=$*
4028 # Make sure the file is created, even if it is empty.
4031 # Define TARGET_CPU_DEFAULT if the system wants one.
4032 # This substitutes for lots of *.h files.
4033 if test "$target_cpu_default" != "" -a $link = tm.h
4035 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4038 for file in `eval echo '$'$var`; do
4043 echo '#ifdef IN_GCC' >>$link
4046 echo "#include \"$file\"" >>$link
4051 echo '#endif' >>$link
4056 for def in `eval echo '$'$define`; do
4057 echo "#ifndef $def" >>$link
4058 echo "#define $def" >>$link
4059 echo "#endif" >>$link
4063 # Truncate the target if necessary
4064 if test x$host_truncate_target != x; then
4065 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4068 # Get the version trigger filename from the toplevel
4069 if test "${with_gcc_version_trigger+set}" = set; then
4070 gcc_version_trigger=$with_gcc_version_trigger
4072 gcc_version_trigger=${srcdir}/version.c
4075 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
4078 # Internationalization
4080 VERSION="$gcc_version"
4081 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4082 [Define to the name of the distribution.])
4083 AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4084 [Define to the version of the distribution.])
4090 # NLS support is still experimental, so disable it by default for now.
4092 [ --enable-nls use Native Language Support (disabled by default)],
4096 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4098 # Windows32 Registry support for specifying GCC installation paths.
4099 AC_ARG_ENABLE(win32-registry,
4100 [ --disable-win32-registry
4101 Disable lookup of installation paths in the
4102 Registry on Windows hosts.
4103 --enable-win32-registry Enable registry lookup (default).
4104 --enable-win32-registry=KEY
4105 Use KEY instead of GCC version as the last portion
4106 of the registry key.],,)
4108 AC_MSG_CHECKING(whether windows registry support is requested)
4109 if test x$enable_win32_registry != xno; then
4110 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4111 [Define to 1 if installation paths should be looked up in Windows32
4112 Registry. Ignored on non windows32 hosts.])
4118 # Check if user specified a different registry key.
4119 case x${enable_win32_registry} in
4122 gcc_cv_win32_registry_key="$VERSION"
4125 # no registry lookup.
4126 gcc_cv_win32_registry_key=''
4129 # user-specified key.
4130 gcc_cv_win32_registry_key="$enable_win32_registry"
4134 if test x$enable_win32_registry != xno; then
4135 AC_MSG_CHECKING(registry key on windows hosts)
4136 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4137 [Define to be the last portion of registry key on windows hosts.])
4138 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4141 # Get an absolute path to the GCC top-level source directory
4147 # Conditionalize the makefile for this host machine.
4148 # Make-host contains the concatenation of all host makefile fragments
4149 # [there can be more than one]. This file is built by configure.frag.
4150 host_overrides=Make-host
4151 dep_host_xmake_file=
4152 for f in .. ${host_xmake_file}
4154 if test -f ${srcdir}/config/$f
4156 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4160 # Conditionalize the makefile for this target machine.
4161 # Make-target contains the concatenation of all host makefile fragments
4162 # [there can be more than one]. This file is built by configure.frag.
4163 target_overrides=Make-target
4165 for f in .. ${tmake_file}
4167 if test -f ${srcdir}/config/$f
4169 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4173 # If the host doesn't support symlinks, modify CC in
4174 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4175 # Otherwise, we can use "CC=$(CC)".
4177 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4179 cc_set_by_configure="\$(CC)"
4180 quoted_cc_set_by_configure="\$(CC)"
4181 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4184 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4186 symbolic_link="cp -p"
4190 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4191 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4192 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4196 out_object_file=`basename $out_file .c`.o
4199 for f in $tm_file; do
4202 tm_file_list="${tm_file_list} $f" ;;
4203 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4208 for f in $host_xm_file; do
4210 auto-host.h | gansidecl.h | hwint.h )
4211 host_xm_file_list="${host_xm_file_list} $f" ;;
4212 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4217 for f in $build_xm_file; do
4219 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4220 build_xm_file_list="${build_xm_file_list} $f" ;;
4221 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4225 # Define macro CROSS_COMPILE in compilation
4226 # if this is a cross-compiler.
4227 # Also use all.cross instead of all.internal
4228 # and add cross-make to Makefile.
4229 cross_overrides="/dev/null"
4230 if test x$host != x$target
4232 cross_defines="CROSS=-DCROSS_COMPILE"
4233 cross_overrides="${topdir}/cross-make"
4236 # When building gcc with a cross-compiler, we need to fix a few things.
4237 # This must come after cross-make as we want all.build to override
4239 build_overrides="/dev/null"
4240 if test x$build != x$host
4242 build_overrides="${topdir}/build-make"
4245 # Expand extra_headers to include complete path.
4246 # This substitutes for lots of t-* files.
4248 if test "x$extra_headers" = x
4251 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4252 for file in $extra_headers;
4254 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4258 if test x$use_collect2 = xno; then
4262 # Add a definition of USE_COLLECT2 if system wants one.
4263 # Also tell toplev.c what to do.
4264 # This substitutes for lots of t-* files.
4265 if test x$use_collect2 = x
4270 will_use_collect2="collect2"
4271 maybe_use_collect2="-DUSE_COLLECT2"
4275 # Set MD_DEPS if the real md file is in md.pre-cpp.
4276 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4277 # for line oriented comments, so we must always use a GNU cpp. If
4278 # building gcc with a cross compiler, use the cross compiler just
4279 # built. Otherwise, we can use the cpp just built.
4281 if test "x$md_cppflags" = x
4283 md_file_sub=$srcdir/config/$md_file
4288 # If we have gas in the build tree, make a link to it.
4289 if test -f ../gas/Makefile; then
4290 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4293 # If we have nm in the build tree, make a link to it.
4294 if test -f ../binutils/Makefile; then
4295 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4298 # If we have ld in the build tree, make a link to it.
4299 if test -f ../ld/Makefile; then
4300 # if test x$use_collect2 = x; then
4301 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4303 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4307 # Figure out what assembler alignment features are present.
4308 AC_MSG_CHECKING(assembler alignment features)
4310 gcc_cv_as_alignment_features=
4311 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4312 if test -x "$DEFAULT_ASSEMBLER"; then
4313 gcc_cv_as="$DEFAULT_ASSEMBLER"
4314 elif test -x "$AS"; then
4316 elif test -x as$host_exeext; then
4317 # Build using assembler in the current directory.
4318 gcc_cv_as=./as$host_exeext
4319 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4320 # Single tree build which includes gas.
4321 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4324 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4326 if test x$gcc_cv_gas_version != x; then
4331 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4332 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4334 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4335 # Gas version 2.6 and later support for .balign and .p2align.
4336 # bytes to skip when using .p2align.
4337 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
4338 gcc_cv_as_alignment_features=".balign and .p2align"
4339 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4341 # Gas version 2.8 and later support specifying the maximum
4342 # bytes to skip when using .p2align.
4343 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
4344 gcc_cv_as_alignment_features=".p2align including maximum skip"
4345 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4348 elif test x$host = x$target; then
4350 # Search the same directories that the installed compiler will
4351 # search. Else we may find the wrong assembler and lose. If we
4352 # do not find a suitable assembler binary, then try the user's
4355 # Also note we have to check MD_EXEC_PREFIX before checking the
4356 # user's path. Unfortunately, there is no good way to get at the
4357 # value of MD_EXEC_PREFIX here. So we do a brute force search
4358 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4359 # to be fixed as part of the make/configure rewrite too.
4361 if test "x$exec_prefix" = xNONE; then
4362 if test "x$prefix" = xNONE; then
4363 test_prefix=/usr/local
4368 test_prefix=$exec_prefix
4371 # If the loop below does not find an assembler, then use whatever
4372 # one we can find in the users's path.
4376 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4377 $test_prefix/lib/gcc-lib/$target \
4378 /usr/lib/gcc/$target/$gcc_version \
4379 /usr/lib/gcc/$target \
4380 $test_prefix/$target/bin/$target/$gcc_version \
4381 $test_prefix/$target/bin \
4386 /bsd43/usr/lib/cmplrs/cc \
4387 /usr/cross64/usr/bin \
4388 /usr/lib/cmplrs/cc \
4389 /sysv/usr/lib/cmplrs/cc \
4390 /svr4/usr/lib/cmplrs/cc \
4393 for dir in $test_dirs; do
4394 if test -f $dir/as$host_exeext; then
4395 gcc_cv_as=$dir/as$host_exeext
4400 if test x$gcc_cv_as != x; then
4401 # Check if we have .balign and .p2align
4402 echo ".balign 4" > conftest.s
4403 echo ".p2align 2" >> conftest.s
4404 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4405 gcc_cv_as_alignment_features=".balign and .p2align"
4406 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4408 rm -f conftest.s conftest.o
4409 # Check if specifying the maximum bytes to skip when
4410 # using .p2align is supported.
4411 echo ".p2align 4,,7" > conftest.s
4412 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4413 gcc_cv_as_alignment_features=".p2align including maximum skip"
4414 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4416 rm -f conftest.s conftest.o
4418 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4420 AC_MSG_CHECKING(assembler subsection support)
4421 gcc_cv_as_subsections=
4422 if test x$gcc_cv_as != x; then
4423 # Check if we have .subsection
4424 echo ".subsection 1" > conftest.s
4425 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4426 gcc_cv_as_subsections=".subsection"
4427 if test -x nm$host_exeext; then
4428 gcc_cv_nm=./nm$host_exeext
4429 elif test x$host = x$target; then
4431 gcc_cv_nm=nm$host_exeext
4433 if test x$gcc_cv_nm != x; then
4434 cat > conftest.s <<EOF
4435 conftest_label1: .word 0
4437 conftest_label2: .word 0
4440 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4441 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4442 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4443 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4446 gcc_cv_as_subsections="working .subsection -1"
4447 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4448 [Define if your assembler supports .subsection and .subsection -1 starts
4449 emitting at the beginning of your section.])
4454 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4456 AC_MSG_RESULT($gcc_cv_as_subsections)
4458 AC_MSG_CHECKING(assembler weak support)
4460 if test x$gcc_cv_as != x; then
4461 # Check if we have .weak
4462 echo " .weak foobar" > conftest.s
4463 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4464 AC_DEFINE(HAVE_GAS_WEAK, 1,
4465 [Define if your assembler supports .weak.])
4466 gcc_cv_as_weak="yes"
4468 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4470 AC_MSG_RESULT($gcc_cv_as_weak)
4472 AC_MSG_CHECKING(assembler hidden support)
4474 if test x$gcc_cv_as != x; then
4475 # Check if we have .hidden
4476 echo " .hidden foobar" > conftest.s
4477 echo "foobar:" >> conftest.s
4478 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4479 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4480 [Define if your assembler supports .hidden.])
4481 gcc_cv_as_hidden="yes"
4483 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4485 AC_MSG_RESULT($gcc_cv_as_hidden)
4489 AC_CACHE_CHECK([assembler .register pseudo-op support],
4490 gcc_cv_as_register_pseudo_op, [
4491 gcc_cv_as_register_pseudo_op=unknown
4492 if test x$gcc_cv_as != x; then
4493 # Check if we have .register
4494 echo ".register %g2, #scratch" > conftest.s
4495 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4496 gcc_cv_as_register_pseudo_op=yes
4498 gcc_cv_as_register_pseudo_op=no
4500 rm -f conftest.s conftest.o
4503 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4504 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4505 [Define if your assembler supports .register.])
4510 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4511 gcc_cv_as_flags64, [
4512 if test -n "$gcc_cv_as"; then
4513 echo ".xword foo" > conftest.s
4514 gcc_cv_as_flags64=no
4515 for flag in "-xarch=v9" "-64 -Av9"; do
4516 if $gcc_cv_as $flag -o conftest.o conftest.s \
4517 > /dev/null 2>&1; then
4518 gcc_cv_as_flags64=$flag
4522 rm -f conftest.s conftest.o
4524 if test "$gas" = yes; then
4525 gcc_cv_as_flags64="-64 -Av9"
4527 gcc_cv_as_flags64="-xarch=v9"
4531 if test "x$gcc_cv_as_flags64" = xno; then
4533 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4534 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4537 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4538 [Define if the assembler supports 64bit sparc.])
4541 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4545 if test "x$gcc_cv_as_flags64" != xno; then
4546 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4547 gcc_cv_as_offsetable_lo10, [
4548 gcc_cv_as_offsetable_lo10=unknown
4549 if test "x$gcc_cv_as" != x; then
4550 # Check if assembler has offsetable %lo()
4551 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4552 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4553 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4555 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4556 > /dev/null 2>&1; then
4557 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4558 gcc_cv_as_offsetable_lo10=no
4560 gcc_cv_as_offsetable_lo10=yes
4563 gcc_cv_as_offsetable_lo10=no
4565 rm -f conftest.s conftest.o conftest1.s conftest1.o
4568 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4569 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4570 [Define if your assembler supports offsetable %lo().])
4578 AC_MSG_CHECKING(assembler instructions)
4579 gcc_cv_as_instructions=
4580 if test x$gcc_cv_as != x; then
4581 set "filds fists" "filds mem; fists mem"
4584 echo "$2" > conftest.s
4585 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4586 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4587 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
4591 rm -f conftest.s conftest.o
4593 AC_MSG_RESULT($gcc_cv_as_instructions)
4597 # Figure out what language subdirectories are present.
4598 # Look if the user specified --enable-languages="..."; if not, use
4599 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4601 if test x"${enable_languages+set}" != xset; then
4602 if test x"${LANGUAGES+set}" = xset; then
4603 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4605 enable_languages=all
4609 for lang in ${srcdir}/*/config-lang.in ..
4613 # The odd quoting in the next line works around
4614 # an apparent bug in bash 1.12 on linux.
4616 ${srcdir}/[*]/config-lang.in) ;;
4618 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4619 if test "x$lang_alias" = x
4621 echo "$lang doesn't set \$language." 1>&2
4624 if test x"${enable_languages}" = xall; then
4627 case "${enable_languages}" in
4628 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4636 if test x"${add_this_lang}" = xyes; then
4638 ${srcdir}/ada/config-lang.in)
4639 if test x$gnat = xyes ; then
4640 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4644 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4653 # Make gthr-default.h if we have a thread file.
4655 if test $thread_file != single; then
4656 rm -f gthr-default.h
4657 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4658 gthread_flags=-DHAVE_GTHR_DEFAULT
4660 AC_SUBST(gthread_flags)
4662 # Find out what GC implementation we want, or may, use.
4664 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4665 with the compiler.],
4671 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4674 [if test $ac_cv_func_mmap_anywhere = yes \
4675 || test $ac_cv_func_valloc = yes; then
4681 echo "Using $GGC for garbage collection."
4683 # Build a new-abi (c++) system
4684 AC_ARG_ENABLE(new-gxx-abi,
4685 [ --enable-new-gxx-abi
4686 select the new abi for g++. You must select an ABI
4687 at configuration time, so that the correct runtime
4688 support is built. You cannot mix ABIs.],
4689 [AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4690 [Define if you want to always select the new-abi for g++.])
4691 GXX_ABI_FLAG='-fnew-abi'
4692 echo "Building a new-abi g++ compiler."
4694 AC_SUBST(GXX_ABI_FLAG)
4696 # Build a new-libstdc++ system (ie libstdc++-v3)
4697 AC_MSG_CHECKING([for libstdc++ to install])
4698 AC_ARG_ENABLE(libstdcxx-v3,
4699 [ --enable-libstdcxx-v3
4700 enable libstdc++-v3 for building and installation],
4701 [enable_libstdcxx_v3=yes], [enable_libstdcxx_v3=no])
4703 if test x$enable_libstdcxx_v3 = xyes; then
4710 AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4711 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
4713 # Make empty files to contain the specs and options for each language.
4714 # Then add #include lines to for a compiler that has specs and/or options.
4719 rm -f specs.h options.h gencheck.h
4720 touch specs.h options.h gencheck.h
4721 for subdir in . $subdirs
4723 if test -f $srcdir/$subdir/lang-specs.h; then
4724 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4725 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4727 if test -f $srcdir/$subdir/lang-options.h; then
4728 echo "#include \"$subdir/lang-options.h\"" >>options.h
4729 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4731 if test -f $srcdir/$subdir/$subdir-tree.def; then
4732 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4733 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4737 # These (without "all_") are set in each config-lang.in.
4738 # `language' must be a single word so is spelled singularly.
4744 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
4745 # List of language makefile fragments.
4750 # Add the language fragments.
4751 # Languages are added via two mechanisms. Some information must be
4752 # recorded in makefile variables, these are defined in config-lang.in.
4753 # We accumulate them and plug them into the main Makefile.
4754 # The other mechanism is a set of hooks for each of the main targets
4755 # like `clean', `install', etc.
4757 language_fragments="Make-lang"
4758 language_hooks="Make-hooks"
4761 for s in .. $subdirs
4773 . ${srcdir}/$s/config-lang.in
4774 if test "x$language" = x
4776 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4779 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4780 all_languages="$all_languages $language"
4781 if test "x$boot_language" = xyes
4783 all_boot_languages="$all_boot_languages $language"
4785 all_compilers="$all_compilers $compilers"
4786 all_stagestuff="$all_stagestuff $stagestuff"
4787 all_diff_excludes="$all_diff_excludes $diff_excludes"
4788 all_headers="$all_headers $headers"
4789 all_outputs="$all_outputs $outputs"
4790 if test x$outputs = x
4792 oldstyle_subdirs="$oldstyle_subdirs $s"
4794 all_lib2funcs="$all_lib2funcs $lib2funcs"
4798 # Since we can't use `::' targets, we link each language in
4799 # with a set of hooks, reached indirectly via lang.${target}.
4803 target_list="all.build all.cross start.encap rest.encap \
4805 install-normal install-common install-info install-man \
4807 mostlyclean clean distclean extraclean maintainer-clean \
4808 stage1 stage2 stage3 stage4"
4809 for t in $target_list
4812 for lang in .. $all_languages
4814 if test $lang != ".."; then
4818 echo "lang.$t: $x" >> Make-hooks
4821 # If we're not building in srcdir, create .gdbinit.
4823 if test ! -f Makefile.in; then
4824 echo "dir ." > .gdbinit
4825 echo "dir ${srcdir}" >> .gdbinit
4826 if test x$gdb_needs_out_file_path = xyes
4828 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4830 if test "x$subdirs" != x; then
4833 echo "dir ${srcdir}/$s" >> .gdbinit
4836 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4839 # Define variables host_canonical and build_canonical
4840 # because some Cygnus local changes in the Makefile depend on them.
4841 build_canonical=${build}
4842 host_canonical=${host}
4844 if test "${host}" != "${target}" ; then
4845 target_subdir=${target}/
4847 AC_SUBST(build_canonical)
4848 AC_SUBST(host_canonical)
4849 AC_SUBST(target_subdir)
4851 # If this is using newlib, then define inhibit_libc in
4852 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4853 # libgcc.a, but that's OK because newib should have its own version of
4856 if test x$with_newlib = xyes; then
4857 inhibit_libc=-Dinhibit_libc
4859 AC_SUBST(inhibit_libc)
4861 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4862 # absolute path for gcc_tooldir based on inserting the number of up-directory
4863 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4864 # $(libsubdir)/@(unlibsubdir) based path.
4865 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4866 # make and thus we'd get different behavior depending on where we built the
4868 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4869 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4871 changequote(<<, >>)dnl
4872 # An explanation of the sed strings:
4873 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4874 # -e 's|/$||' match a trailing forward slash and eliminates it
4875 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4876 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4878 # (*) Note this pattern overwrites the first character of the string
4879 # with a forward slash if one is not already present. This is not a
4880 # problem because the exact names of the sub-directories concerned is
4881 # unimportant, just the number of them matters.
4883 # The practical upshot of these patterns is like this:
4885 # prefix exec_prefix result
4886 # ------ ----------- ------
4888 # /foo/ /foo/bar ../
4889 # /foo /foo/bar/ ../
4890 # /foo/ /foo/bar/ ../
4891 # /foo /foo/bar/ugg ../../
4894 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
4895 changequote([, ])dnl
4897 AC_SUBST(gcc_tooldir)
4900 # Nothing to do for FLOAT_H, float_format already handled.
4904 # Process the language and host/target makefile fragments.
4905 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4907 # Substitute configuration variables
4909 AC_SUBST(all_boot_languages)
4910 AC_SUBST(all_compilers)
4911 AC_SUBST(all_diff_excludes)
4912 AC_SUBST(all_headers)
4913 AC_SUBST(all_lang_makefiles)
4914 AC_SUBST(all_languages)
4915 AC_SUBST(all_lib2funcs)
4916 AC_SUBST(all_stagestuff)
4917 AC_SUBST(build_exeext)
4918 AC_SUBST(build_install_headers_dir)
4919 AC_SUBST(build_xm_file_list)
4920 AC_SUBST(cc_set_by_configure)
4921 AC_SUBST(quoted_cc_set_by_configure)
4922 AC_SUBST(cpp_install_dir)
4923 AC_SUBST(dep_host_xmake_file)
4924 AC_SUBST(dep_tmake_file)
4925 AC_SUBST(extra_c_flags)
4926 AC_SUBST(extra_c_objs)
4927 AC_SUBST(extra_cpp_objs)
4928 AC_SUBST(extra_cxx_objs)
4929 AC_SUBST(extra_headers_list)
4930 AC_SUBST(extra_objs)
4931 AC_SUBST(extra_parts)
4932 AC_SUBST(extra_passes)
4933 AC_SUBST(extra_programs)
4934 AC_SUBST(float_h_file)
4935 AC_SUBST(gcc_gxx_include_dir)
4936 AC_SUBST(gcc_version)
4937 AC_SUBST(gcc_version_trigger)
4938 AC_SUBST(host_exeext)
4939 AC_SUBST(host_extra_gcc_objs)
4940 AC_SUBST(host_xm_file_list)
4942 AC_SUBST(lang_options_files)
4943 AC_SUBST(lang_specs_files)
4944 AC_SUBST(lang_tree_files)
4945 AC_SUBST(local_prefix)
4946 AC_SUBST(maybe_use_collect2)
4948 AC_SUBST(objc_boehm_gc)
4950 AC_SUBST(out_object_file)
4951 AC_SUBST(stage_prefix_set_by_configure)
4952 AC_SUBST(symbolic_link)
4953 AC_SUBST(thread_file)
4954 AC_SUBST(tm_file_list)
4955 AC_SUBST(will_use_collect2)
4958 AC_SUBST_FILE(target_overrides)
4959 AC_SUBST_FILE(host_overrides)
4960 AC_SUBST(cross_defines)
4961 AC_SUBST_FILE(cross_overrides)
4962 AC_SUBST_FILE(build_overrides)
4963 AC_SUBST_FILE(language_fragments)
4964 AC_SUBST_FILE(language_hooks)
4966 # Echo that links are built
4967 if test x$host = x$target
4975 if test x$host != x$build
4977 str3=" on a $build system"
4980 if test "x$str2" != x || test "x$str3" != x
4985 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4987 if test "x$str2" != x || test "x$str3" != x
4989 echo " ${str2}${str3}." 1>&2
4992 # Truncate the target if necessary
4993 if test x$host_truncate_target != x; then
4994 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4997 # Configure the subdirectories
4998 # AC_CONFIG_SUBDIRS($subdirs)
5000 # Create the Makefile
5001 # and configure language subdirectories
5002 AC_OUTPUT($all_outputs,
5004 . $srcdir/configure.lang
5005 case x$CONFIG_HEADERS in
5006 xauto-host.h:config.in)
5009 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5010 # bootstrapping and the installation procedure can still use
5011 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5012 # FLAGS_TO_PASS has been modified to solve the problem there.
5013 # This is virtually a duplicate of what happens in configure.lang; we do
5014 # an extra check to make sure this only happens if ln -s can be used.
5015 if test "$symbolic_link" = "ln -s"; then
5016 for d in .. ${subdirs} ; do
5017 if test $d != ..; then
5020 for t in stage1 stage2 stage3 stage4 include
5023 $symbolic_link ../$t $t 2>/dev/null
5029 # Avoid having to add intl to our include paths.
5030 if test -f intl/libintl.h; then
5031 echo creating libintl.h
5032 echo '#include "intl/libintl.h"' >libintl.h
5039 target_alias='${target_alias}'
5041 subdirs='${subdirs}'
5042 oldstyle_subdirs='${oldstyle_subdirs}'
5043 symbolic_link='${symbolic_link}'
5044 program_transform_set='${program_transform_set}'
5045 program_transform_name='${program_transform_name}'
5046 dep_host_xmake_file='${dep_host_xmake_file}'
5047 host_xmake_file='${host_xmake_file}'
5048 dep_tmake_file='${dep_tmake_file}'
5049 tmake_file='${tmake_file}'
5050 thread_file='${thread_file}'
5051 gcc_version='${gcc_version}'
5052 gcc_version_trigger='${gcc_version_trigger}'
5053 local_prefix='${local_prefix}'
5054 build_install_headers_dir='${build_install_headers_dir}'
5055 build_exeext='${build_exeext}'
5056 host_exeext='${host_exeext}'
5057 out_file='${out_file}'
5058 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5059 SET_MAKE='${SET_MAKE}'
5060 target_list='${target_list}'
5061 target_overrides='${target_overrides}'
5062 host_overrides='${host_overrides}'
5063 cross_defines='${cross_defines}'
5064 cross_overrides='${cross_overrides}'
5065 build_overrides='${build_overrides}'
5066 cpp_install_dir='${cpp_install_dir}'