1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998 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 egcs. 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 egcs. 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 test "GNU" = `$DEFAULT_LINKER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
104 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER")
109 [ --with-gnu-as arrange to work with GNU as.],
110 gas_flag="$with_gnu_as",
114 [ --with-as arrange to use the specified as (full pathname).],
115 DEFAULT_ASSEMBLER="$with_as")
116 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
117 if test ! -x "$DEFAULT_ASSEMBLER"; then
118 AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
119 elif test "GNU" = `$DEFAULT_ASSEMBLER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
122 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER")
127 [ --with-stabs arrange to use stabs instead of host debug format.],
133 [ --with-elf arrange to use ELF instead of host debug format.],
137 # Specify the local prefix
139 AC_ARG_WITH(local-prefix,
140 [ --with-local-prefix=DIR specifies directory to put local include.],
141 [case "${withval}" in
142 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
144 *) local_prefix=$with_local_prefix ;;
147 # Default local prefix if it is empty
148 if test x$local_prefix = x; then
149 local_prefix=/usr/local
153 # Specify the g++ header file directory
154 AC_ARG_WITH(gxx-include-dir,
155 [ --with-gxx-include-dir=DIR
156 specifies directory to put g++ header files.],
157 [case "${withval}" in
158 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
160 *) gxx_include_dir=$with_gxx_include_dir ;;
163 if test x${gxx_include_dir} = x; then
164 if test x${enable_version_specific_runtime_libs} = xyes; then
165 gxx_include_dir='${libsubdir}/include/g++'
167 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
168 changequote(<<, >>)dnl
169 gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
174 # Enable expensive internal checks
175 AC_ARG_ENABLE(checking,
176 [ --enable-checking enable expensive run-time checks.],
177 [case "${enableval}" in
178 yes) AC_DEFINE(ENABLE_CHECKING) ;;
180 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
183 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
185 AC_ARG_ENABLE(cpplib,
186 [ --enable-cpplib use cpplib for the C preprocessor.],
187 if test x$enable_cpplib != xno; then
191 # Link cpplib into the compiler proper, for C/C++/ObjC.
192 AC_ARG_ENABLE(c-cpplib,
193 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
194 (implies --enable-cpplib).],
195 if test x$enable_c_cpplib != xno; then
196 extra_c_objs="${extra_c_objs} libcpp.a"
197 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
198 extra_c_flags=-DUSE_CPPLIB=1
202 # Enable Multibyte Characters for C/C++
203 AC_ARG_ENABLE(c-mbchar,
204 [ --enable-c-mbchar enable multibyte characters for C and C++.],
205 if test x$enable_c_mbchar != xno; then
206 extra_c_flags=-DMULTIBYTE_CHARS=1
209 # Enable Haifa scheduler.
211 [ --enable-haifa use the experimental scheduler.
212 --disable-haifa don't use the experimental scheduler for the
213 targets which normally enable it.])
216 # This is a work in progress...
217 AC_ARG_WITH(fast-fixincludes,
218 [ --with-fast-fixincludes use a faster fixinclude program (experimental)],
219 fast_fixinc="$with_fast_fixincludes",
222 # Enable init_priority.
223 AC_ARG_ENABLE(init-priority,
224 [ --enable-init-priority use attributes to assign initialization order
226 --disable-init-priority conform to ISO C++ rules for ordering static objects
227 (i.e. initialized in order of declaration). ],
228 if test x$enable_init_priority != xno; then
229 extra_c_flags=-DUSE_INIT_PRIORITY
233 # Pass with no value to take the default
234 # Pass with a value to specify a thread package
235 AC_ARG_ENABLE(threads,
236 [ --enable-threads enable thread usage for target GCC.
237 --enable-threads=LIB use LIB thread package for target GCC.],
238 if test x$enable_threads = xno; then
243 enable_threads_flag=$enable_threads
244 # Check if a valid thread package
245 case x${enable_threads_flag} in
248 target_thread_file='single'
252 target_thread_file=''
254 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
255 xsolaris | xwin32 | xdce | xvxworks)
256 target_thread_file=$enable_threads_flag
259 echo "$enable_threads is an unknown thread package" 1>&2
264 AC_ARG_ENABLE(objc-gc,
265 [ --enable-objc-gc enable the use of Boehm's garbage collector with
266 the GNU Objective-C runtime.],
267 if [[[ x$enable_objc_gc = xno ]]]; then
274 AC_ARG_ENABLE(java-gc,
275 changequote(<<,>>)dnl
276 << --enable-java-gc=TYPE choose garbage collector [boehm]>>,
281 # Determine the host, build, and target systems
284 # Find the native compiler
287 # If the native compiler is GCC, we can enable warnings even in stage1.
288 # That's useful for people building cross-compilers, or just running a
290 if test "x$GCC" = "xyes"; then
291 stage1_warn_cflags='$(WARN_CFLAGS)'
293 stage1_warn_cflags=""
295 AC_SUBST(stage1_warn_cflags)
299 AC_MSG_CHECKING([whether a default assembler was specified])
300 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
301 if test x"$with_gas" = x"no"; then
302 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
304 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
310 AC_MSG_CHECKING([whether a default linker was specified])
311 if test x"${DEFAULT_LINKER+set}" = x"set"; then
312 if test x"$with_gnu_ld" = x"no"; then
313 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
315 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
321 # Find some useful tools
335 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h sys/stat.h)
337 # Check for thread headers.
338 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
339 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
341 # See if GNAT has been installed
342 AC_CHECK_PROG(gnat, gnatbind, yes, no)
344 # See if the system preprocessor understands the ANSI C preprocessor
345 # stringification operator.
346 AC_MSG_CHECKING(whether cpp understands the stringify operator)
347 AC_CACHE_VAL(gcc_cv_c_have_stringify,
350 char *test = S(foo);],
351 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
352 AC_MSG_RESULT($gcc_cv_c_have_stringify)
353 if test $gcc_cv_c_have_stringify = yes; then
354 AC_DEFINE(HAVE_CPP_STRINGIFY)
357 # Use <inttypes.h> only if it exists,
358 # doesn't clash with <sys/types.h>, and declares intmax_t.
359 AC_MSG_CHECKING(for inttypes.h)
360 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
362 [#include <sys/types.h>
363 #include <inttypes.h>],
365 [gcc_cv_header_inttypes_h=yes],
366 gcc_cv_header_inttypes_h=no)])
367 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
368 if test $gcc_cv_header_inttypes_h = yes; then
369 AC_DEFINE(HAVE_INTTYPES_H)
372 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
373 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
374 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
377 # Make sure wchar_t is available
378 #AC_CHECK_TYPE(wchar_t, unsigned int)
380 GCC_FUNC_VFPRINTF_DOPRNT
384 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
385 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
388 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
389 #include <sys/types.h>
390 #ifdef HAVE_SYS_RESOURCE_H
391 #include <sys/resource.h>
405 build_install_headers_dir=install-headers-tar
410 host_truncate_target=
413 # Decode the host machine, then the target machine.
414 # For the host machine, we save the xm_file variable as host_xm_file;
415 # then we decode the target machine and forget everything else
416 # that came from the host machine.
417 for machine in $build $host $target; do
431 # Set this to force installation and use of collect2.
433 # Set this to override the default target model.
435 # Set this to control which fixincludes program to use.
436 if test x$fast_fixinc != xyes; then
437 fixincludes=fixincludes
438 else fixincludes=fixinc.sh ; fi
439 # Set this to control how the header file directory is installed.
440 install_headers_dir=install-headers-tar
441 # Set this to a non-empty list of args to pass to cpp if the target
442 # wants its .md file passed through cpp.
444 # Set this if directory names should be truncated to 14 characters.
446 # Set this if gdb needs a dir command with `dirname $out_file`
447 gdb_needs_out_file_path=
448 # Set this if the build machine requires executables to have a
451 # Set this to control which thread package will be used.
453 # Reinitialize these from the flag values every loop pass, since some
454 # configure entries modify them.
456 gnu_ld="$gnu_ld_flag"
457 enable_threads=$enable_threads_flag
459 # Set default cpu_type, tm_file and xm_file so it can be updated in
460 # each machine entry.
461 cpu_type=`echo $machine | sed 's/-.*$//'`
497 tm_file=${cpu_type}/${cpu_type}.h
498 xm_file=${cpu_type}/xm-${cpu_type}.h
500 # Set the default macros to define for GNU/Linux systems.
503 xm_defines="HAVE_ATEXIT POSIX BSTRING"
508 # Support site-specific machine types.
510 cpu_type=`echo $machine | sed -e 's/-.*//'`
511 rest=`echo $machine | sed -e "s/$cpu_type-//"`
512 xm_file=${cpu_type}/xm-$rest.h
513 tm_file=${cpu_type}/$rest.h
514 if test -f $srcdir/config/${cpu_type}/x-$rest; \
515 then xmake_file=${cpu_type}/x-$rest; \
518 if test -f $srcdir/config/${cpu_type}/t-$rest; \
519 then tmake_file=${cpu_type}/t-$rest; \
525 a29k-*-bsd* | a29k-*-sym1*)
526 tm_file="${tm_file} a29k/unix.h"
528 xmake_file=a29k/x-unix
531 a29k-*-udi | a29k-*-coff)
532 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
533 tmake_file=a29k/t-a29kbare
536 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
537 tmake_file=a29k/t-vx29k
538 extra_parts="crtbegin.o crtend.o"
539 thread_file='vxworks'
541 a29k-*-*) # Default a29k environment.
544 alpha*-*-linux-gnuecoff*)
545 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
546 target_cpu_default="MASK_GAS"
551 alpha*-*-linux-gnulibc1*)
552 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
553 target_cpu_default="MASK_GAS"
554 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
555 extra_parts="crtbegin.o crtend.o"
556 fixincludes=fixinc.wrap
559 if test x$enable_threads = xyes; then
564 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
565 target_cpu_default="MASK_GAS"
566 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
567 extra_parts="crtbegin.o crtend.o"
569 fixincludes=Makefile.in
571 if test x$enable_threads = xyes; then
576 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
577 target_cpu_default="MASK_GAS"
578 tmake_file="alpha/t-crtbe"
579 extra_parts="crtbegin.o crtend.o"
581 fixincludes=fixinc.wrap
586 if test x$stabs = xyes
588 tm_file="${tm_file} dbx.h"
590 if test x$gas != xyes
592 extra_passes="mips-tfile mips-tdump"
597 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
602 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
605 tm_file="${tm_file} alpha/osf.h"
606 # Some versions of OSF4 (specifically X4.0-9 296.7) have
607 # a broken tar, so we use cpio instead.
608 install_headers_dir=install-headers-cpio
613 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
615 target_cpu_default=MASK_SUPPORT_ARCH
620 tm_file="${tm_file} dbx.h alpha/vxworks.h"
623 extra_passes="mips-tfile mips-tdump"
628 tm_file="${tm_file} alpha/win-nt.h"
629 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
631 xmake_file=winnt/x-winnt
632 extra_host_objs=oldnames.o
633 extra_gcc_objs="spawnv.o oldnames.o"
634 fixincludes=fixinc.winnt
635 if test x$gnu_ld != xyes
637 extra_programs=ld.exe
639 if test x$enable_threads = xyes; then
645 xm_file="${xm_file} alpha/xm-vms.h"
646 tmake_file=alpha/t-vms
647 fixincludes=Makefile.in
650 extra_parts="crtinit.o crtfini.o"
652 arm-*-coff* | armel-*-coff*)
654 tmake_file=arm/t-bare
657 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
659 tm_file=arm/riscix1-1.h
662 arm-*-riscix*) # Acorn RISC machine
665 tm_file=arm/rix-gas.h
669 xmake_file=arm/x-riscix
670 tmake_file=arm/t-riscix
673 arm-semi-aout | armel-semi-aout)
675 tmake_file=arm/t-semi
676 fixincludes=Makefile.in # There is nothing to fix
678 arm-semi-aof | armel-semi-aof)
679 tm_file=arm/semiaof.h
680 tmake_file=arm/t-semiaof
681 fixincludes=Makefile.in # There is nothing to fix
685 xm_file="arm/xm-netbsd.h ${xm_file}"
686 tmake_file="t-netbsd arm/t-netbsd"
687 # On NetBSD, the headers are already okay, except for math.h.
688 fixincludes=fixinc.wrap
690 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
693 tm_file=arm/linux-aout.h
694 tmake_file=arm/t-linux
695 fixincludes=Makefile.in
698 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
699 xm_file=arm/xm-linux.h
703 tm_file=arm/linux-elf26.h
706 tm_file=arm/linux-elf.h
709 tmake_file="t-linux arm/t-linux"
710 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
711 fixincludes=Makefile.in # Nothing to fix
716 tmake_file=arm/t-bare
719 tm_file=arm/ecos-elf.h
723 tm_file=arm/unknown-elf.h
724 tmake_file=arm/t-arm-elf
726 c1-convex-*) # Convex C1
729 fixincludes=Makefile.in
731 c2-convex-*) # Convex C2
734 fixincludes=Makefile.in
739 fixincludes=Makefile.in
744 fixincludes=Makefile.in
747 target_cpu_default=16
749 fixincludes=Makefile.in
755 clipper-intergraph-clix*)
756 tm_file="${tm_file} svr3.h clipper/clix.h"
757 xm_file=clipper/xm-clix.h
758 xmake_file=clipper/x-clix
759 extra_headers=va-clipper.h
760 extra_parts="crtbegin.o crtend.o"
761 install_headers_dir=install-headers-cpio
768 # This hasn't been upgraded to GCC 2.
769 # fx80-alliant-*) # Alliant FX/80
775 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
776 xm_file=pa/xm-papro.h
781 tm_file="${tm_file} pa/pa-osf.h"
783 fixincludes=Makefile.in
786 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
787 xm_file=pa/xm-papro.h
791 tm_file="${tm_file} pa/pa-osf.h"
793 fixincludes=Makefile.in
798 fixincludes=Makefile.in
802 fixincludes=Makefile.in
805 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
806 xm_file=pa/xm-pahpux.h
807 xmake_file=pa/x-pa-hpux
810 tm_file="${tm_file} pa/gas.h"
812 install_headers_dir=install-headers-cpio
816 hppa1.0-*-hpux8.0[0-2]*)
818 tm_file="${tm_file} pa/pa-hpux.h"
819 xm_file=pa/xm-pahpux.h
820 xmake_file=pa/x-pa-hpux
823 tm_file="${tm_file} pa/pa-gas.h"
825 tm_file="pa/pa-oldas.h ${tm_file}"
827 install_headers_dir=install-headers-cpio
831 hppa1.1-*-hpux8.0[0-2]*)
834 tm_file="${tm_file} pa/pa-hpux.h"
835 xm_file=pa/xm-pahpux.h
836 xmake_file=pa/x-pa-hpux
839 tm_file="${tm_file} pa/pa-gas.h"
841 tm_file="pa/pa-oldas.h ${tm_file}"
843 install_headers_dir=install-headers-cpio
848 tm_file="${tm_file} pa/pa-hpux.h"
849 xm_file=pa/xm-pahpux.h
850 xmake_file=pa/x-pa-hpux
853 tm_file="${tm_file} pa/pa-gas.h"
855 install_headers_dir=install-headers-cpio
859 tm_file="${tm_file} pa/pa-hpux.h"
860 xm_file=pa/xm-pahpux.h
861 xmake_file=pa/x-pa-hpux
864 tm_file="${tm_file} pa/pa-gas.h"
866 install_headers_dir=install-headers-cpio
869 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
871 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
872 xm_file=pa/xm-pahpux.h
873 xmake_file=pa/x-pa-hpux
877 tm_file="${tm_file} pa/pa-gas.h"
879 if test x$enable_threads = x; then
880 enable_threads=$have_pthread_h
882 if test x$enable_threads = xyes; then
884 tmake_file="${tmake_file} pa/t-dce-thr"
886 install_headers_dir=install-headers-cpio
890 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
891 xm_file=pa/xm-pahpux.h
892 xmake_file=pa/x-pa-hpux
895 tm_file="${tm_file} pa/pa-gas.h"
897 if test x$enable_threads = x; then
898 enable_threads=$have_pthread_h
900 if test x$enable_threads = xyes; then
902 tmake_file="${tmake_file} pa/t-dce-thr"
904 install_headers_dir=install-headers-cpio
907 hppa1.1-*-hpux* | hppa2*-*-hpux*)
909 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
910 xm_file=pa/xm-pahpux.h
911 xmake_file=pa/x-pa-hpux
914 tm_file="${tm_file} pa/pa-gas.h"
916 install_headers_dir=install-headers-cpio
920 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
921 xm_file=pa/xm-pahpux.h
922 xmake_file=pa/x-pa-hpux
925 tm_file="${tm_file} pa/pa-gas.h"
927 install_headers_dir=install-headers-cpio
930 hppa1.1-*-hiux* | hppa2*-*-hiux*)
932 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
933 xm_file=pa/xm-pahpux.h
934 xmake_file=pa/x-pa-hpux
937 tm_file="${tm_file} pa/pa-gas.h"
939 install_headers_dir=install-headers-cpio
943 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
944 xm_file=pa/xm-pahpux.h
945 xmake_file=pa/x-pa-hpux
948 tm_file="${tm_file} pa/pa-gas.h"
950 install_headers_dir=install-headers-cpio
956 fixincludes=Makefile.in
961 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
965 tm_file=i386/aix386.h
966 extra_parts="crtbegin.o crtend.o"
967 tmake_file=i386/t-crtstuff
969 tm_file=i386/aix386ng.h
972 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
974 xmake_file=i386/x-aix
977 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
979 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
980 xm_defines="USG POSIX SMALL_ARG_MAX"
981 xmake_file=i386/x-ncr3000
982 if test x$stabs = xyes -a x$gas = xyes
984 tm_file=i386/sysv4gdb.h
988 extra_parts="crtbegin.o crtend.o"
989 tmake_file=i386/t-crtpic
995 xm_file=i386/xm-next.h
996 tmake_file=i386/t-next
997 xmake_file=i386/x-next
998 extra_objs=nextstep.o
999 extra_parts="crtbegin.o crtend.o"
1000 if test x$enable_threads = xyes; then
1005 i[34567]86-sequent-bsd*) # 80386 from Sequent
1008 if test x$gas = xyes
1010 tm_file=i386/seq-gas.h
1012 tm_file=i386/sequent.h
1016 i[34567]86-sequent-ptx1*)
1018 xm_defines="USG SVR3"
1019 xmake_file=i386/x-sysv3
1020 tm_file=i386/seq-sysv3.h
1021 tmake_file=i386/t-crtstuff
1022 fixincludes=fixinc.ptx
1023 extra_parts="crtbegin.o crtend.o"
1024 install_headers_dir=install-headers-cpio
1027 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1029 xm_defines="USG SVR3"
1030 xmake_file=i386/x-sysv3
1031 tm_file=i386/seq2-sysv3.h
1032 tmake_file=i386/t-crtstuff
1033 extra_parts="crtbegin.o crtend.o"
1034 fixincludes=fixinc.ptx
1035 install_headers_dir=install-headers-cpio
1038 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1040 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1041 xm_defines="USG POSIX SMALL_ARG_MAX"
1043 tm_file=i386/ptx4-i.h
1045 extra_parts="crtbegin.o crtend.o"
1046 fixincludes=fixinc.ptx
1047 install_headers_dir=install-headers-cpio
1049 i386-sun-sunos*) # Sun i386 roadrunner
1055 i[34567]86-wrs-vxworks*)
1057 tm_file=i386/vxi386.h
1058 tmake_file=i386/t-i386bare
1063 tm_file=i386/i386-aout.h
1064 tmake_file=i386/t-i386bare
1067 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1069 tm_file=i386/bsd386.h
1070 # tmake_file=t-libc-ok
1075 tm_file=i386/386bsd.h
1076 # tmake_file=t-libc-ok
1077 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1081 i[34567]86-*-freebsdelf*)
1083 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
1084 # On FreeBSD, the headers are already ok, except for math.h.
1085 fixincludes=fixinc.wrap
1086 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1087 tmake_file=i386/t-freebsd
1093 i[34567]86-*-freebsd*)
1095 tm_file=i386/freebsd.h
1096 # On FreeBSD, the headers are already ok, except for math.h.
1097 fixincludes=fixinc.wrap
1098 tmake_file=i386/t-freebsd
1100 # We are hoping OpenBSD is still close enough to NetBSD that we can
1101 # share the configurations.
1103 i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
1105 tm_file=i386/netbsd.h
1106 # On NetBSD, the headers are already okay, except for math.h.
1107 fixincludes=fixinc.wrap
1113 tm_file=i386/i386-coff.h
1114 tmake_file=i386/t-i386bare
1117 i[34567]86-*-isc*) # 80386 running ISC system
1119 xm_file="${xm_file} i386/xm-isc.h"
1120 xm_defines="USG SVR3"
1123 i[34567]86-*-isc[34]*)
1125 xmake_file=i386/x-isc3
1128 xmake_file=i386/x-isc
1131 if test x$gas = xyes -a x$stabs = xyes
1133 tm_file=i386/iscdbx.h
1134 tmake_file=i386/t-svr3dbx
1135 extra_parts="svr3.ifile svr3z.ifile"
1137 tm_file=i386/isccoff.h
1138 tmake_file=i386/t-crtstuff
1139 extra_parts="crtbegin.o crtend.o"
1141 install_headers_dir=install-headers-cpio
1144 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1145 changequote([,])dnl # with a.out format using
1147 xmake_file=x-linux-aout
1148 tmake_file="t-linux-aout i386/t-crtstuff"
1149 tm_file=i386/linux-oldld.h
1150 fixincludes=Makefile.in #On Linux, the headers are ok already.
1155 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1156 changequote([,])dnl # with a.out format
1157 xmake_file=x-linux-aout
1158 tmake_file="t-linux-aout i386/t-crtstuff"
1159 tm_file=i386/linux-aout.h
1160 fixincludes=Makefile.in #On Linux, the headers are ok already.
1165 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1166 changequote([,])dnl # with ELF format using the
1167 # GNU/Linux C library 5
1169 tm_file=i386/linux.h
1170 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1171 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1172 fixincludes=Makefile.in #On Linux, the headers are ok already.
1175 if test x$enable_threads = xyes; then
1176 thread_file='single'
1180 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1181 changequote([,])dnl # with ELF format using glibc 2
1182 # aka GNU/Linux C library 6
1184 tm_file=i386/linux.h
1185 tmake_file="t-linux i386/t-crtstuff"
1186 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1187 fixincludes=Makefile.in #On Linux, the headers are ok already.
1190 if test x$enable_threads = xyes; then
1199 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1201 xm_file=i386/xm-go32.h
1203 tmake_file=i386/t-go32
1206 i[34567]86-pc-msdosdjgpp*)
1208 xm_file=i386/xm-go32.h
1210 tmake_file=i386/t-go32
1221 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1224 tmake_file=t-libc-ok
1225 fixincludes=Makefile.in
1230 i[34567]86-*-lynxos*)
1232 if test x$gas = xyes
1236 tm_file=i386/lynx-ng.h
1238 xm_file=i386/xm-lynx.h
1239 tmake_file=i386/t-i386bare
1246 # tmake_file=t-libc-ok
1250 i[34567]86-*-osfrose*) # 386 using OSF/rose
1252 if test x$elf = xyes
1254 tm_file=i386/osfelf.h
1257 tm_file=i386/osfrose.h
1260 xm_file="i386/xm-osf.h ${xm_file}"
1261 xmake_file=i386/x-osfrose
1262 tmake_file=i386/t-osf
1263 extra_objs=halfpic.o
1266 i[34567]86-go32-rtems*)
1269 xm_file=i386/xm-go32.h
1270 tm_file=i386/go32-rtems.h
1271 tmake_file="i386/t-go32 t-rtems"
1274 i[34567]86-*-rtemself*)
1277 tm_file=i386/rtemself.h
1278 tmake_file="i386/t-i386bare t-rtems"
1281 i[34567]86-*-rtems*)
1284 tm_file=i386/rtems.h
1285 tmake_file="i386/t-i386bare t-rtems"
1288 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1290 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1291 xm_defines="USG SVR3"
1292 xmake_file=i386/x-sco5
1293 fixincludes=fixinc.sco
1294 install_headers_dir=install-headers-cpio
1296 if test x$gas = xyes
1298 tm_file="i386/sco5gas.h ${tm_file}"
1299 tmake_file=i386/t-sco5gas
1301 tmake_file=i386/t-sco5
1303 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1306 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1308 xm_file="${xm_file} i386/xm-sco.h"
1309 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1310 xmake_file=i386/x-sco4
1311 fixincludes=fixinc.sco
1312 install_headers_dir=install-headers-cpio
1313 if test x$stabs = xyes
1315 tm_file=i386/sco4dbx.h
1316 tmake_file=i386/t-svr3dbx
1317 extra_parts="svr3.ifile svr3z.rfile"
1320 tmake_file=i386/t-crtstuff
1321 extra_parts="crtbegin.o crtend.o"
1326 i[34567]86-*-sco*) # 80386 running SCO system
1328 xm_file=i386/xm-sco.h
1329 xmake_file=i386/x-sco
1330 install_headers_dir=install-headers-cpio
1331 if test x$stabs = xyes
1333 tm_file=i386/scodbx.h
1334 tmake_file=i386/t-svr3dbx
1335 extra_parts="svr3.ifile svr3z.rfile"
1338 extra_parts="crtbegin.o crtend.o"
1339 tmake_file=i386/t-crtstuff
1344 i[34567]86-*-solaris2*)
1346 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1347 xm_defines="USG POSIX SMALL_ARG_MAX"
1348 if test x$stabs = xyes
1350 tm_file=i386/sol2dbg.h
1354 tmake_file=i386/t-sol2
1355 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1361 fixincludes=fixinc.svr4;;
1363 fixincludes=fixinc.wrap;;
1365 if test x$enable_threads = xyes; then
1366 thread_file='solaris'
1370 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1372 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1373 xm_defines="USG POSIX"
1374 tm_file=i386/sysv4.h
1375 if test x$stabs = xyes
1377 tm_file="${tm_file} dbx.h"
1379 tmake_file=i386/t-crtpic
1381 extra_parts="crtbegin.o crtend.o"
1382 fixincludes=fixinc.svr4
1385 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1387 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1388 xm_defines="USG POSIX SMALL_ARG_MAX"
1389 tm_file=i386/sysv4.h
1390 if test x$stabs = xyes
1392 tm_file="${tm_file} dbx.h"
1394 tmake_file=i386/t-crtpic
1396 extra_parts="crtbegin.o crtend.o"
1399 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1401 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1402 xm_defines="USG POSIX"
1404 tmake_file="i386/t-crtpic i386/t-udk"
1406 extra_parts="crtbegin.o crtend.o"
1407 fixincludes="fixinc.svr4"
1410 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1413 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1414 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1415 fixincludes=Makefile.in #Don't do it on OSF/1
1416 if test x$stabs = xyes
1418 tm_file=i386/osf1elfgdb.h
1420 tm_file=i386/osf1elf.h
1422 tmake_file=i386/t-osf1elf
1423 xmake_file=i386/x-osf1elf
1424 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1427 i[34567]86-*-sysv*) # Intel 80386's running system V
1429 xm_defines="USG SVR3"
1430 xmake_file=i386/x-sysv3
1431 if test x$gas = xyes
1433 if test x$stabs = xyes
1435 tm_file=i386/svr3dbx.h
1436 tmake_file=i386/t-svr3dbx
1437 extra_parts="svr3.ifile svr3z.rfile"
1439 tm_file=i386/svr3gas.h
1440 extra_parts="crtbegin.o crtend.o"
1441 tmake_file=i386/t-crtstuff
1444 tm_file=i386/sysv3.h
1445 extra_parts="crtbegin.o crtend.o"
1446 tmake_file=i386/t-crtstuff
1449 i386-*-vsta) # Intel 80386's running VSTa kernel
1450 xm_file="${xm_file} i386/xm-vsta.h"
1452 tmake_file=i386/t-vsta
1453 xmake_file=i386/x-vsta
1458 xm_file="${xm_file} i386/xm-cygwin.h"
1459 tmake_file=i386/t-cygwin
1460 tm_file=i386/win32.h
1461 xmake_file=i386/x-cygwin
1463 fixincludes=Makefile.in
1464 if test x$enable_threads = xyes; then
1470 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1472 xm_file="${xm_file} i386/xm-cygwin.h"
1473 tmake_file=i386/t-cygwin
1474 tm_file=i386/cygwin.h
1475 xmake_file=i386/x-cygwin
1477 fixincludes=Makefile.in
1478 if test x$enable_threads = xyes; then
1484 i[34567]86-*-mingw32*)
1486 tm_file=i386/mingw32.h
1487 xm_file="${xm_file} i386/xm-mingw32.h"
1488 tmake_file="i386/t-cygwin i386/t-mingw32"
1490 xmake_file=i386/x-cygwin
1491 fixincludes=Makefile.in
1492 if test x$enable_threads = xyes; then
1499 *minwg32crt* | *mingw32*)
1500 tm_file="${tm_file} i386/crtdll.h"
1505 i[34567]86-*-winnt3*)
1507 tm_file=i386/win-nt.h
1508 out_file=i386/i386.c
1509 xm_file="xm-winnt.h ${xm_file}"
1510 xmake_file=winnt/x-winnt
1511 tmake_file=i386/t-winnt
1512 extra_host_objs="winnt.o oldnames.o"
1513 extra_gcc_objs="spawnv.o oldnames.o"
1514 fixincludes=fixinc.winnt
1515 if test x$gnu_ld != xyes
1517 extra_programs=ld.exe
1519 if test x$enable_threads = xyes; then
1524 i[34567]86-dg-dgux*)
1526 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1527 xm_defines="USG POSIX"
1528 out_file=i386/dgux.c
1530 tmake_file=i386/t-dgux
1531 xmake_file=i386/x-dgux
1532 fixincludes=fixinc.dgux
1533 install_headers_dir=install-headers-cpio
1535 i860-alliant-*) # Alliant FX/2800
1536 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1537 xm_file="${xm_file}"
1538 xmake_file=i860/x-fx2800
1539 tmake_file=i860/t-fx2800
1540 extra_parts="crtbegin.o crtend.o"
1543 tm_file="${tm_file} i860/bsd.h"
1544 if test x$gas = xyes
1546 tm_file="${tm_file} i860/bsd-gas.h"
1551 tm_file="${tm_file} i860/mach.h"
1552 tmake_file=t-libc-ok
1554 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1555 tm_file="${tm_file} svr3.h i860/paragon.h"
1556 xm_defines="USG SVR3"
1560 tm_file="${tm_file} svr3.h i860/sysv3.h"
1561 xm_defines="USG SVR3"
1562 xmake_file=i860/x-sysv3
1563 extra_parts="crtbegin.o crtend.o"
1566 tm_file="${tm_file} svr4.h i860/sysv4.h"
1567 xm_defines="USG SVR3"
1568 xmake_file=i860/x-sysv4
1570 extra_parts="crtbegin.o crtend.o"
1572 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1573 tm_file="${tm_file} i960/vx960.h"
1574 tmake_file=i960/t-vxworks960
1576 thread_file='vxworks'
1578 i960-wrs-vxworks5* | i960-wrs-vxworks)
1579 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1580 tmake_file=i960/t-vxworks960
1582 thread_file='vxworks'
1585 tm_file="${tm_file} i960/vx960.h"
1586 tmake_file=i960/t-vxworks960
1588 thread_file='vxworks'
1591 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1592 tmake_file=i960/t-960bare
1596 tmake_file="i960/t-960bare t-rtems"
1597 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1600 i960-*-*) # Default i960 environment.
1604 extra_parts="crtinit.o crtfini.o"
1606 m68000-convergent-sysv*)
1608 xm_file="m68k/xm-3b1.h ${xm_file}"
1611 extra_headers=math-68881.h
1613 m68000-hp-bsd*) # HP 9000/200 running BSD
1614 tm_file=m68k/hp2bsd.h
1615 xmake_file=m68k/x-hp2bsd
1617 extra_headers=math-68881.h
1619 m68000-hp-hpux*) # HP 9000 series 300
1620 xm_file="xm_alloca.h ${xm_file}"
1621 xm_defines="USG NO_SYS_SIGLIST"
1622 if test x$gas = xyes
1624 xmake_file=m68k/x-hp320g
1625 tm_file=m68k/hp310g.h
1627 xmake_file=m68k/x-hp320
1628 tm_file=m68k/hp310.h
1630 install_headers_dir=install-headers-cpio
1632 extra_headers=math-68881.h
1637 extra_headers=math-68881.h
1640 tm_file=m68k/sun2o4.h
1642 extra_headers=math-68881.h
1645 xm_file="m68k/xm-3b1.h ${xm_file}"
1647 if test x$gas = xyes
1654 extra_headers=math-68881.h
1656 m68k-apple-aux*) # Apple Macintosh running A/UX
1657 xm_defines="USG AUX"
1658 tmake_file=m68k/t-aux
1659 install_headers_dir=install-headers-cpio
1660 extra_headers=math-68881.h
1661 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1663 if test "$gnu_ld" = yes
1665 tm_file="${tm_file} m68k/auxgld.h"
1667 tm_file="${tm_file} m68k/auxld.h"
1669 if test "$gas" = yes
1671 tm_file="${tm_file} m68k/auxgas.h"
1673 tm_file="${tm_file} m68k/auxas.h"
1675 tm_file="${tm_file} m68k/a-ux.h"
1679 tm_file=m68k/apollo68.h
1680 xmake_file=m68k/x-apollo68
1682 extra_headers=math-68881.h
1685 m68k-altos-sysv*) # Altos 3068
1686 if test x$gas = xyes
1688 tm_file=m68k/altos3068.h
1691 echo "The Altos is supported only with the GNU assembler" 1>&2
1694 extra_headers=math-68881.h
1696 m68k-bull-sysv*) # Bull DPX/2
1697 if test x$gas = xyes
1699 if test x$stabs = xyes
1701 tm_file=m68k/dpx2cdbx.h
1703 tm_file=m68k/dpx2g.h
1708 xm_file="xm-alloca.h ${xm_file}"
1710 xmake_file=m68k/x-dpx2
1712 extra_headers=math-68881.h
1714 m68k-atari-sysv4*) # Atari variant of V.4.
1715 tm_file=m68k/atari.h
1716 xm_file="xm-alloca.h ${xm_file}"
1717 xm_defines="USG FULL_PROTOTYPES"
1719 extra_parts="crtbegin.o crtend.o"
1720 extra_headers=math-68881.h
1723 m68k-motorola-sysv*)
1724 tm_file=m68k/mot3300.h
1725 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1726 xm_defines=NO_SYS_SIGLIST
1727 if test x$gas = xyes
1729 xmake_file=m68k/x-mot3300-gas
1730 if test x$gnu_ld = xyes
1732 tmake_file=m68k/t-mot3300-gald
1734 tmake_file=m68k/t-mot3300-gas
1738 xmake_file=m68k/x-mot3300
1739 if test x$gnu_ld = xyes
1741 tmake_file=m68k/t-mot3300-gld
1743 tmake_file=m68k/t-mot3300
1747 gdb_needs_out_file_path=yes
1748 extra_parts="crt0.o mcrt0.o"
1749 extra_headers=math-68881.h
1752 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1753 tm_file=m68k/tower-as.h
1754 xm_defines="USG SVR3"
1755 xmake_file=m68k/x-tower
1756 extra_parts="crtbegin.o crtend.o"
1757 extra_headers=math-68881.h
1760 tm_file=m68k/plexus.h
1761 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1764 extra_headers=math-68881.h
1768 xm_file="xm-alloca.h ${xm_file}"
1770 extra_headers=math-68881.h
1773 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1774 xm_defines="USG unos"
1775 xmake_file=m68k/x-crds
1778 extra_headers=math-68881.h
1780 m68k-cbm-sysv4*) # Commodore variant of V.4.
1782 xm_file="xm-alloca.h ${xm_file}"
1783 xm_defines="USG FULL_PROTOTYPES"
1784 xmake_file=m68k/x-amix
1786 extra_parts="crtbegin.o crtend.o"
1787 extra_headers=math-68881.h
1791 tm_file=m68k/ccur-GAS.h
1792 xmake_file=m68k/x-ccur
1793 extra_headers=math-68881.h
1797 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1798 tm_file=m68k/hp3bsd44.h
1799 xmake_file=m68k/x-hp3bsd44
1801 extra_headers=math-68881.h
1804 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1805 tm_file=m68k/hp3bsd.h
1807 extra_headers=math-68881.h
1811 if test x$with_fp = xno
1813 tm_file=m68k/isi-nfp.h
1819 extra_headers=math-68881.h
1821 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1822 xm_file="xm_alloca.h ${xm_file}"
1823 xm_defines="USG NO_SYS_SIGLIST"
1824 if test x$gas = xyes
1826 xmake_file=m68k/x-hp320g
1827 tm_file=m68k/hp320g.h
1829 xmake_file=m68k/x-hp320
1830 tm_file=m68k/hpux7.h
1832 install_headers_dir=install-headers-cpio
1834 extra_headers=math-68881.h
1837 m68k-hp-hpux*) # HP 9000 series 300
1838 xm_file="xm_alloca.h ${xm_file}"
1839 xm_defines="USG NO_SYS_SIGLIST"
1840 if test x$gas = xyes
1842 xmake_file=m68k/x-hp320g
1843 tm_file=m68k/hp320g.h
1845 xmake_file=m68k/x-hp320
1846 tm_file=m68k/hp320.h
1848 install_headers_dir=install-headers-cpio
1850 extra_headers=math-68881.h
1854 tm_file=m68k/sun3mach.h
1856 extra_headers=math-68881.h
1860 if test x$gas = xyes
1862 tm_file=m68k/news3gas.h
1864 tm_file=m68k/news3.h
1867 extra_headers=math-68881.h
1870 m68k-sony-bsd* | m68k-sony-newsos*)
1871 if test x$gas = xyes
1873 tm_file=m68k/newsgas.h
1878 extra_headers=math-68881.h
1881 m68k-next-nextstep2*)
1882 tm_file=m68k/next21.h
1883 xm_file="m68k/xm-next.h ${xm_file}"
1884 tmake_file=m68k/t-next
1885 xmake_file=m68k/x-next
1886 extra_objs=nextstep.o
1887 extra_headers=math-68881.h
1891 m68k-next-nextstep3*)
1893 xm_file="m68k/xm-next.h ${xm_file}"
1894 tmake_file=m68k/t-next
1895 xmake_file=m68k/x-next
1896 extra_objs=nextstep.o
1897 extra_parts="crtbegin.o crtend.o"
1898 extra_headers=math-68881.h
1900 if test x$enable_threads = xyes; then
1905 if test x$with_fp = xno
1907 tm_file=m68k/sun3n3.h
1909 tm_file=m68k/sun3o3.h
1913 extra_headers=math-68881.h
1915 m68k-sun-sunos*) # For SunOS 4 (the default).
1916 if test x$with_fp = xno
1918 tm_file=m68k/sun3n.h
1924 extra_headers=math-68881.h
1927 tm_file=m68k/vxm68k.h
1928 tmake_file=m68k/t-vxworks68
1929 extra_headers=math-68881.h
1930 thread_file='vxworks'
1934 tmake_file=m68k/t-m68kbare
1935 tm_file="m68k/m68k-aout.h libgloss.h"
1936 extra_headers=math-68881.h
1940 tmake_file=m68k/t-m68kbare
1941 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1942 extra_headers=math-68881.h
1945 m68020-*-elf* | m68k-*-elf*)
1946 tm_file="m68k/m68020-elf.h libgloss.h"
1947 xm_file=m68k/xm-m68kv.h
1948 tmake_file=m68k/t-m68kelf
1949 header_files=math-68881.h
1952 if test x$gas = xyes
1956 tm_file=m68k/lynx-ng.h
1958 xm_file=m68k/xm-lynx.h
1960 tmake_file=m68k/t-lynx
1961 extra_headers=math-68881.h
1965 tm_file=m68k/netbsd.h
1966 # On NetBSD, the headers are already okay, except for math.h.
1967 fixincludes=fixinc.wrap
1971 m68k-*-sysv3*) # Motorola m68k's running system V.3
1972 xm_file="xm-alloca.h ${xm_file}"
1974 xmake_file=m68k/x-m68kv
1975 extra_parts="crtbegin.o crtend.o"
1976 extra_headers=math-68881.h
1979 m68k-*-sysv4*) # Motorola m68k's running system V.4
1980 tm_file=m68k/m68kv4.h
1981 xm_file="xm-alloca.h ${xm_file}"
1984 extra_parts="crtbegin.o crtend.o"
1985 extra_headers=math-68881.h
1988 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1991 tm_file=m68k/linux-aout.h
1992 tmake_file="t-linux-aout m68k/t-linux-aout"
1993 fixincludes=Makefile.in # The headers are ok already.
1994 extra_headers=math-68881.h
1998 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1999 # with ELF format using the
2000 # GNU/Linux C library 5
2002 tm_file=m68k/linux.h
2003 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2004 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2005 fixincludes=Makefile.in # The headers are ok already.
2006 extra_headers=math-68881.h
2010 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2011 # with ELF format using glibc 2
2012 # aka the GNU/Linux C library 6.
2014 tm_file=m68k/linux.h
2015 tmake_file="t-linux m68k/t-linux"
2016 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2017 fixincludes=Makefile.in # The headers are ok already.
2018 extra_headers=math-68881.h
2021 if test x$enable_threads = xyes; then
2026 tmake_file=m68k/t-m68kbare
2027 tm_file=m68k/m68k-psos.h
2028 extra_headers=math-68881.h
2032 tmake_file="m68k/t-m68kbare t-rtems"
2033 tm_file=m68k/rtems.h
2034 extra_headers=math-68881.h
2041 tm_file=m88k/dguxbcs.h
2042 tmake_file=m88k/t-dguxbcs
2046 tmake_file=m88k/t-dgux
2049 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2050 xmake_file=m88k/x-dgux
2051 if test x$gas = xyes
2053 tmake_file=m88k/t-dgux-gas
2055 fixincludes=fixinc.dgux
2057 m88k-dolphin-sysv3*)
2058 tm_file=m88k/dolph.h
2059 extra_parts="crtbegin.o crtend.o"
2060 xm_file="m88k/xm-sysv3.h ${xm_file}"
2061 xmake_file=m88k/x-dolph
2062 if test x$gas = xyes
2064 tmake_file=m88k/t-m88k-gas
2067 m88k-tektronix-sysv3)
2068 tm_file=m88k/tekXD88.h
2069 extra_parts="crtbegin.o crtend.o"
2070 xm_file="m88k/xm-sysv3.h ${xm_file}"
2071 xmake_file=m88k/x-tekXD88
2072 if test x$gas = xyes
2074 tmake_file=m88k/t-m88k-gas
2078 tm_file=m88k/m88k-aout.h
2081 tm_file=m88k/m88k-coff.h
2082 tmake_file=m88k/t-bug
2086 extra_parts="crtbegin.o crtend.o"
2087 if test x$gas = xyes
2089 tmake_file=m88k/t-luna-gas
2091 tmake_file=m88k/t-luna
2095 tm_file=m88k/sysv3.h
2096 extra_parts="crtbegin.o crtend.o"
2097 xm_file="m88k/xm-sysv3.h ${xm_file}"
2098 xmake_file=m88k/x-sysv3
2099 if test x$gas = xyes
2101 tmake_file=m88k/t-m88k-gas
2105 tm_file=m88k/sysv4.h
2106 extra_parts="crtbegin.o crtend.o"
2107 xmake_file=m88k/x-sysv4
2108 tmake_file=m88k/t-sysv4
2110 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2111 tm_file=mips/iris6.h
2112 xm_file=mips/xm-iris6.h
2113 fixincludes=fixinc.irix
2114 xmake_file=mips/x-iris6
2115 tmake_file=mips/t-iris6
2116 # if test x$enable_threads = xyes; then
2117 # thread_file='irix'
2121 tm_file="mips/elf.h libgloss.h"
2122 tmake_file=mips/t-ecoff
2125 extra_parts="crtbegin.o crtend.o"
2126 # thread_file='vxworks'
2128 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2129 tm_file="mips/iris6.h mips/cross64.h"
2131 xm_file="mips/xm-iris5.h"
2132 fixincludes=Makefile.in
2133 xmake_file=mips/x-iris
2134 tmake_file=mips/t-cross64
2135 # See comment in mips/iris[56].h files.
2137 # if test x$enable_threads = xyes; then
2138 # thread_file='irix'
2142 if test x$gas = xyes
2144 if test x$stabs = xyes
2146 tm_file=mips/iris5gdb.h
2148 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2151 tm_file=mips/sni-svr4.h
2154 xmake_file=mips/x-sni-svr4
2155 tmake_file=mips/t-mips-gas
2156 if test x$gnu_ld != xyes
2161 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2162 if test x$gas = xyes
2164 tm_file="mips/iris5.h mips/iris5gas.h"
2165 if test x$stabs = xyes
2167 tm_file="${tm_file} dbx.h"
2170 tm_file=mips/iris5.h
2173 xm_file="mips/xm-iris5.h"
2174 fixincludes=fixinc.irix
2175 xmake_file=mips/x-iris
2176 # mips-tfile doesn't work yet
2177 tmake_file=mips/t-mips-gas
2178 # See comment in mips/iris5.h file.
2180 # if test x$enable_threads = xyes; then
2181 # thread_file='irix'
2184 mips-sgi-irix4loser*) # Mostly like a MIPS.
2185 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2186 if test x$stabs = xyes; then
2187 tm_file="${tm_file} dbx.h"
2190 xmake_file=mips/x-iris
2191 if test x$gas = xyes
2193 tmake_file=mips/t-mips-gas
2195 extra_passes="mips-tfile mips-tdump"
2197 if test x$gnu_ld != xyes
2201 # if test x$enable_threads = xyes; then
2202 # thread_file='irix'
2205 mips-sgi-irix4*) # Mostly like a MIPS.
2206 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2207 if test x$stabs = xyes; then
2208 tm_file="${tm_file} dbx.h"
2211 xmake_file=mips/x-iris
2212 if test x$gas = xyes
2214 tmake_file=mips/t-mips-gas
2216 extra_passes="mips-tfile mips-tdump"
2218 if test x$gnu_ld != xyes
2222 # if test x$enable_threads = xyes; then
2223 # thread_file='irix'
2226 mips-sgi-*) # Mostly like a MIPS.
2227 tm_file="mips/iris3.h ${tm_file}"
2228 if test x$stabs = xyes; then
2229 tm_file="${tm_file} dbx.h"
2232 xmake_file=mips/x-iris3
2233 if test x$gas = xyes
2235 tmake_file=mips/t-mips-gas
2237 extra_passes="mips-tfile mips-tdump"
2239 if test x$gnu_ld != xyes
2244 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2245 tm_file="mips/osfrose.h ${tm_file}"
2246 xmake_file=mips/x-osfrose
2247 tmake_file=mips/t-osfrose
2248 extra_objs=halfpic.o
2251 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2252 tm_file=mips/dec-osf1.h
2253 if test x$stabs = xyes; then
2254 tm_file="${tm_file} dbx.h"
2256 xmake_file=mips/x-dec-osf1
2257 if test x$gas = xyes
2259 tmake_file=mips/t-mips-gas
2261 tmake_file=mips/t-ultrix
2262 extra_passes="mips-tfile mips-tdump"
2264 if test x$gnu_ld != xyes
2269 mips-dec-bsd*) # Decstation running 4.4 BSD
2270 tm_file=mips/dec-bsd.h
2272 if test x$gas = xyes
2274 tmake_file=mips/t-mips-gas
2276 tmake_file=mips/t-ultrix
2277 extra_passes="mips-tfile mips-tdump"
2279 if test x$gnu_ld != xyes
2284 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2285 tm_file=mips/netbsd.h
2286 # On NetBSD, the headers are already okay, except for math.h.
2287 fixincludes=fixinc.wrap
2290 mips*-*-linux*) # Linux MIPS, either endian.
2292 xm_file="xm-siglist.h ${xm_file}"
2294 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2295 *) tm_file="mips/elf.h mips/linux.h" ;;
2297 extra_parts="crtbegin.o crtend.o"
2300 fixincludes=Makefile.in
2302 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2303 tm_file="mips/news4.h ${tm_file}"
2304 if test x$stabs = xyes; then
2305 tm_file="${tm_file} dbx.h"
2307 if test x$gas = xyes
2309 tmake_file=mips/t-mips-gas
2311 extra_passes="mips-tfile mips-tdump"
2313 if test x$gnu_ld != xyes
2317 xmake_file=mips/x-sony
2319 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2320 # That is based on svr4.
2321 # t-svr4 is not right because this system doesn't use ELF.
2322 tm_file="mips/news5.h ${tm_file}"
2323 if test x$stabs = xyes; then
2324 tm_file="${tm_file} dbx.h"
2326 xm_file="xm-siglist.h ${xm_file}"
2328 if test x$gas = xyes
2330 tmake_file=mips/t-mips-gas
2332 extra_passes="mips-tfile mips-tdump"
2334 if test x$gnu_ld != xyes
2339 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2340 tm_file="mips/svr4-5.h mips/svr4-t.h"
2341 if test x$stabs = xyes; then
2342 tm_file="${tm_file} dbx.h"
2344 xm_file="xm-siglist.h ${xm_file}"
2346 xmake_file=mips/x-sysv
2347 if test x$gas = xyes
2349 tmake_file=mips/t-mips-gas
2350 extra_parts="crtbegin.o crtend.o"
2352 tmake_file=mips/t-mips
2353 extra_passes="mips-tfile mips-tdump"
2355 if test x$gnu_ld != xyes
2360 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2361 tm_file="mips/ultrix.h ${tm_file}"
2362 if test x$stabs = xyes; then
2363 tm_file="${tm_file} dbx.h"
2365 xmake_file=mips/x-ultrix
2366 if test x$gas = xyes
2368 tmake_file=mips/t-mips-gas
2370 tmake_file=mips/t-ultrix
2371 extra_passes="mips-tfile mips-tdump"
2373 if test x$gnu_ld != xyes
2379 mips-*-riscos[56789]bsd*)
2381 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2382 if test x$stabs = xyes; then
2383 tm_file="${tm_file} dbx.h"
2385 if test x$gas = xyes
2387 tmake_file=mips/t-bsd-gas
2389 tmake_file=mips/t-bsd
2390 extra_passes="mips-tfile mips-tdump"
2392 if test x$gnu_ld != xyes
2398 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2400 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2401 if test x$stabs = xyes; then
2402 tm_file="${tm_file} dbx.h"
2404 if test x$gas = xyes
2406 tmake_file=mips/t-bsd-gas
2408 tmake_file=mips/t-bsd
2409 extra_passes="mips-tfile mips-tdump"
2411 if test x$gnu_ld != xyes
2417 mips-*-riscos[56789]sysv4*)
2419 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2420 if test x$stabs = xyes; then
2421 tm_file="${tm_file} dbx.h"
2423 xm_file="xm-siglist.h ${xm_file}"
2424 xmake_file=mips/x-sysv
2425 if test x$gas = xyes
2427 tmake_file=mips/t-svr4-gas
2429 tmake_file=mips/t-svr4
2430 extra_passes="mips-tfile mips-tdump"
2432 if test x$gnu_ld != xyes
2438 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2440 tm_file="mips/svr4-4.h ${tm_file}"
2441 if test x$stabs = xyes; then
2442 tm_file="${tm_file} dbx.h"
2445 xmake_file=mips/x-sysv
2446 if test x$gas = xyes
2448 tmake_file=mips/t-svr4-gas
2450 tmake_file=mips/t-svr4
2451 extra_passes="mips-tfile mips-tdump"
2453 if test x$gnu_ld != xyes
2459 mips-*-riscos[56789]sysv*)
2461 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2462 if test x$stabs = xyes; then
2463 tm_file="${tm_file} dbx.h"
2466 xmake_file=mips/x-sysv
2467 if test x$gas = xyes
2469 tmake_file=mips/t-svr3-gas
2471 tmake_file=mips/t-svr3
2472 extra_passes="mips-tfile mips-tdump"
2474 if test x$gnu_ld != xyes
2479 mips-*-sysv* | mips-*-riscos*sysv*)
2480 tm_file="mips/svr3-4.h ${tm_file}"
2481 if test x$stabs = xyes; then
2482 tm_file="${tm_file} dbx.h"
2485 xmake_file=mips/x-sysv
2486 if test x$gas = xyes
2488 tmake_file=mips/t-svr3-gas
2490 tmake_file=mips/t-svr3
2491 extra_passes="mips-tfile mips-tdump"
2493 if test x$gnu_ld != xyes
2499 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2501 tm_file=mips/mips-5.h
2502 if test x$stabs = xyes; then
2503 tm_file="${tm_file} dbx.h"
2505 if test x$gas = xyes
2507 tmake_file=mips/t-mips-gas
2509 extra_passes="mips-tfile mips-tdump"
2511 if test x$gnu_ld != xyes
2519 tm_file=mips/ecoffl.h
2520 if test x$stabs = xyes; then
2521 tm_file="${tm_file} dbx.h"
2523 tmake_file=mips/t-ecoff
2526 tm_file="gofast.h mips/ecoff.h"
2527 if test x$stabs = xyes; then
2528 tm_file="${tm_file} dbx.h"
2530 tmake_file=mips/t-ecoff
2533 tm_file="mips/elfl.h libgloss.h"
2534 tmake_file=mips/t-ecoff
2537 tm_file="mips/elf.h libgloss.h"
2538 tmake_file=mips/t-ecoff
2541 tm_file="mips/elfl64.h libgloss.h"
2542 tmake_file=mips/t-ecoff
2544 mips64orionel-*-elf*)
2545 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2546 tmake_file=mips/t-ecoff
2549 tm_file="mips/elf64.h libgloss.h"
2550 tmake_file=mips/t-ecoff
2553 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2554 tmake_file=mips/t-ecoff
2556 mips64orion-*-rtems*)
2557 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2558 tmake_file="mips/t-ecoff t-rtems"
2561 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2562 tmake_file=mips/t-r3900
2565 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2566 tmake_file=mips/t-r3900
2567 # FIXME mips-elf should be fixed to use crtstuff.
2570 mips-*-*) # Default MIPS RISC-OS 4.0.
2571 if test x$stabs = xyes; then
2572 tm_file="${tm_file} dbx.h"
2574 if test x$gas = xyes
2576 tmake_file=mips/t-mips-gas
2578 extra_passes="mips-tfile mips-tdump"
2580 if test x$gnu_ld != xyes
2587 tm_file="mn10200/mn10200.h"
2588 if test x$stabs = xyes
2590 tm_file="${tm_file} dbx.h"
2596 tm_file="mn10300/mn10300.h"
2597 if test x$stabs = xyes
2599 tm_file="${tm_file} dbx.h"
2604 tm_file=ns32k/encore.h
2608 tm_file=ns32k/sequent.h
2612 tm_file=ns32k/tek6100.h
2616 tm_file=ns32k/tek6200.h
2619 # This has not been updated to GCC 2.
2622 # xmake_file=ns32k/x-genix
2623 # tm_file=ns32k/genix.h
2627 tm_file=ns32k/merlin.h
2631 tm_file=ns32k/pc532-mach.h
2635 tm_file=ns32k/pc532-min.h
2636 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2641 tm_file=ns32k/netbsd.h
2642 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2643 # On NetBSD, the headers are already okay, except for math.h.
2644 fixincludes=fixinc.wrap
2648 tm_file="${tm_file} pdp11/2bsd.h"
2654 xmake_file=pyr/x-pyr
2661 xmake_file=romp/x-mach
2666 tm_file=rs6000/beos.h
2667 xm_file=rs6000/xm-beos.h
2668 tmake_file=rs6000/t-beos
2669 xmake_file=rs6000/x-beos
2671 powerpc-*-sysv* | powerpc-*-elf*)
2672 tm_file=rs6000/sysv4.h
2673 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2674 xm_defines="USG POSIX"
2675 extra_headers=ppc-asm.h
2676 if test x$gas = xyes
2678 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2680 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2682 xmake_file=rs6000/x-sysv4
2685 tm_file=rs6000/eabiaix.h
2686 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2687 fixincludes=Makefile.in
2688 extra_headers=ppc-asm.h
2691 tm_file=rs6000/eabisim.h
2692 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2693 fixincludes=Makefile.in
2694 extra_headers=ppc-asm.h
2697 tm_file=rs6000/eabi.h
2698 if test x$gas = xyes
2700 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2702 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2704 fixincludes=Makefile.in
2705 extra_headers=ppc-asm.h
2708 tm_file=rs6000/rtems.h
2709 if test x$gas = xyes
2711 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2713 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2715 fixincludes=Makefile.in
2716 extra_headers=ppc-asm.h
2718 powerpc-*-linux-gnulibc1)
2719 tm_file=rs6000/linux.h
2720 xm_file=rs6000/xm-sysv4.h
2721 out_file=rs6000/rs6000.c
2722 if test x$gas = xyes
2724 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2726 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2729 fixincludes=Makefile.in
2730 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2731 extra_headers=ppc-asm.h
2732 if test x$enable_threads = xyes; then
2736 powerpc-*-linux-gnu*)
2737 tm_file=rs6000/linux.h
2738 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2739 xm_defines="USG ${xm_defines}"
2740 out_file=rs6000/rs6000.c
2741 if test x$gas = xyes
2743 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2745 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2748 fixincludes=Makefile.in
2749 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2750 extra_headers=ppc-asm.h
2751 if test x$enable_threads = xyes; then
2755 powerpc-wrs-vxworks*)
2757 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2758 xm_defines="USG POSIX"
2759 tm_file=rs6000/vxppc.h
2760 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2761 extra_headers=ppc-asm.h
2762 thread_file='vxworks'
2764 powerpcle-*-sysv* | powerpcle-*-elf*)
2765 tm_file=rs6000/sysv4le.h
2766 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2767 xm_defines="USG POSIX"
2768 if test x$gas = xyes
2770 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2772 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2774 xmake_file=rs6000/x-sysv4
2775 extra_headers=ppc-asm.h
2777 powerpcle-*-eabisim*)
2778 tm_file=rs6000/eabilesim.h
2779 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2780 fixincludes=Makefile.in
2781 extra_headers=ppc-asm.h
2784 tm_file=rs6000/eabile.h
2785 if test x$gas = xyes
2787 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2789 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2791 fixincludes=Makefile.in
2792 extra_headers=ppc-asm.h
2794 powerpcle-*-winnt* )
2795 tm_file=rs6000/win-nt.h
2796 tmake_file=rs6000/t-winnt
2798 fixincludes=Makefile.in
2799 if test x$enable_threads = xyes; then
2802 extra_headers=ppc-asm.h
2804 powerpcle-*-pe | powerpcle-*-cygwin*)
2805 tm_file=rs6000/cygwin.h
2806 xm_file="rs6000/xm-cygwin.h ${xm_file}"
2807 tmake_file=rs6000/t-winnt
2808 xmake_file=rs6000/x-cygwin
2810 fixincludes=Makefile.in
2811 if test x$enable_threads = xyes; then
2815 extra_headers=ppc-asm.h
2817 powerpcle-*-solaris2*)
2818 tm_file=rs6000/sol2.h
2819 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2820 xm_defines="USG POSIX"
2821 if test x$gas = xyes
2823 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2825 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2827 xmake_file=rs6000/x-sysv4
2832 fixincludes=fixinc.svr4;;
2834 fixincludes=fixinc.wrap;;
2836 extra_headers=ppc-asm.h
2839 rs6000-ibm-aix3.[01]*)
2841 tm_file=rs6000/aix31.h
2842 xmake_file=rs6000/x-aix31
2846 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2848 tm_file=rs6000/aix3newas.h
2849 if test x$host != x$target
2851 tmake_file=rs6000/t-xnewas
2853 tmake_file=rs6000/t-newas
2858 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2860 tm_file=rs6000/aix41.h
2861 if test x$host != x$target
2863 tmake_file=rs6000/t-xnewas
2865 tmake_file=rs6000/t-newas
2867 xmake_file=rs6000/x-aix41
2871 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2873 tm_file=rs6000/aix43.h
2874 if test x$host != x$target
2876 tmake_file=rs6000/t-xaix43
2878 tmake_file=rs6000/t-aix43
2880 xmake_file=rs6000/x-aix43
2884 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2886 tm_file=rs6000/aix43.h
2887 if test x$host != x$target
2889 tmake_file=rs6000/t-xaix43
2891 tmake_file=rs6000/t-aix43
2893 xmake_file=rs6000/x-aix43
2903 tm_file=rs6000/mach.h
2904 xm_file="${xm_file} rs6000/xm-mach.h"
2905 xmake_file=rs6000/x-mach
2909 tm_file=rs6000/lynx.h
2910 xm_file=rs6000/xm-lynx.h
2911 tmake_file=rs6000/t-rs6000
2912 xmake_file=rs6000/x-lynx
2920 tmake_file="sh/t-sh t-rtems"
2921 tm_file=sh/rtemself.h
2925 tmake_file="sh/t-sh t-rtems"
2934 xm_file="xm-alloca.h ${xm_file}"
2937 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2938 tm_file=sparc/vxsparc.h
2939 tmake_file=sparc/t-vxsparc
2941 thread_file='vxworks'
2944 tmake_file=sparc/t-sparcbare
2945 tm_file="sparc/aout.h libgloss.h"
2948 tm_file=sparc/netbsd.h
2949 # On NetBSD, the headers are already okay, except for math.h.
2950 fixincludes=fixinc.wrap
2958 tmake_file=sparc/t-elf
2959 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2963 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2964 xm_file="${xm_file} sparc/xm-linux.h"
2965 tm_file=sparc/linux-aout.h
2967 fixincludes=Makefile.in #On Linux, the headers are ok already.
2970 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2971 xm_file="${xm_file} sparc/xm-linux.h"
2973 tm_file=sparc/linux.h
2974 tmake_file="t-linux t-linux-gnulibc1"
2975 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2976 fixincludes=Makefile.in #On Linux, the headers are ok already.
2979 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2980 xm_file="${xm_file} sparc/xm-linux.h"
2982 tm_file=sparc/linux.h
2983 tmake_file="t-linux"
2984 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2985 fixincludes=Makefile.in #On Linux, the headers are ok already.
2987 if test x$enable_threads = xyes; then
2992 if test x$gas = xyes
2994 tm_file=sparc/lynx.h
2996 tm_file=sparc/lynx-ng.h
2998 xm_file=sparc/xm-lynx.h
2999 tmake_file=sparc/t-sunos41
3003 tmake_file="sparc/t-sparcbare t-rtems"
3004 tm_file=sparc/rtems.h
3006 sparcv9-*-solaris2*)
3007 tm_file=sparc/sol2-sld-64.h
3008 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3009 xm_defines="USG POSIX"
3010 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3011 xmake_file=sparc/x-sysv4
3012 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3013 fixincludes=fixinc.wrap
3015 if test x${enable_threads} = x ; then
3016 enable_threads=$have_pthread_h
3017 if test x${enable_threads} = x ; then
3018 enable_threads=$have_thread_h
3021 if test x${enable_threads} = xyes ; then
3022 if test x${have_pthread_h} = xyes ; then
3025 thread_file='solaris'
3030 if test x$gnu_ld = xyes
3032 tm_file=sparc/sol2.h
3034 tm_file=sparc/sol2-sld.h
3036 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3037 xm_defines="USG POSIX"
3038 tmake_file=sparc/t-sol2
3039 xmake_file=sparc/x-sysv4
3040 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3045 fixincludes=fixinc.svr4;;
3047 fixincludes=fixinc.wrap;;
3050 if test x${enable_threads} = x; then
3051 enable_threads=$have_pthread_h
3052 if test x${enable_threads} = x; then
3053 enable_threads=$have_thread_h
3056 if test x${enable_threads} = xyes; then
3057 if test x${have_pthread_h} = xyes; then
3060 thread_file='solaris'
3065 tm_file=sparc/sunos4.h
3066 tmake_file=sparc/t-sunos40
3070 tm_file=sparc/sunos4.h
3071 tmake_file=sparc/t-sunos41
3073 if test x$gas = xyes; then
3074 tm_file="${tm_file} sparc/sun4gas.h"
3078 tm_file=sparc/sun4o3.h
3082 tm_file=sparc/sysv4.h
3083 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3084 xm_defines="USG POSIX"
3086 xmake_file=sparc/x-sysv4
3087 extra_parts="crtbegin.o crtend.o"
3090 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3091 xm_defines="USG POSIX"
3092 tm_file=sparc/vxsim.h
3093 tmake_file=sparc/t-vxsparc
3094 xmake_file=sparc/x-sysv4
3097 tm_file="sparc/splet.h libgloss.h"
3098 tmake_file=sparc/t-splet
3101 tm_file="sparc/litecoff.h libgloss.h"
3102 tmake_file=sparc/t-sparclite
3105 tm_file="sparc/lite.h aoutos.h libgloss.h"
3106 tmake_file=sparc/t-sparclite
3109 tmake_file=sparc/t-sp64
3110 tm_file=sparc/sp64-aout.h
3113 tmake_file=sparc/t-sp64
3114 tm_file=sparc/sp64-elf.h
3115 extra_parts="crtbegin.o crtend.o"
3117 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3118 tmake_file="t-linux sparc/t-linux64"
3119 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3120 tm_file=sparc/linux64.h
3122 fixincludes=Makefile.in # The headers are ok already.
3123 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3126 # This hasn't been upgraded to GCC 2.
3127 # tahoe-harris-*) # Harris tahoe, using COFF.
3128 # tm_file=tahoe/harris.h
3130 # tahoe-*-bsd*) # tahoe running BSD
3132 thumb-*-coff* | thumbel-*-coff*)
3134 out_file=arm/thumb.c
3135 xm_file=arm/xm-thumb.h
3136 md_file=arm/thumb.md
3137 tmake_file=arm/t-thumb
3138 fixincludes=Makefile.in # There is nothing to fix
3140 # This hasn't been upgraded to GCC 2.
3147 tm_file="v850/v850.h"
3148 xm_file="v850/xm-v850.h"
3149 tmake_file=v850/t-v850
3150 if test x$stabs = xyes
3152 tm_file="${tm_file} dbx.h"
3156 vax-*-bsd*) # vaxen running BSD
3160 vax-*-sysv*) # vaxen running system V
3161 tm_file="${tm_file} vax/vaxv.h"
3166 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3167 # On NetBSD, the headers are already okay, except for math.h.
3168 fixincludes=fixinc.wrap
3172 vax-*-ultrix*) # vaxen running ultrix
3173 tm_file="${tm_file} vax/ultrix.h"
3177 vax-*-vms*) # vaxen running VMS
3178 xm_file=vax/xm-vms.h
3182 vax-*-*) # vax default entry
3186 xm_file="${xm_file} xm-svr3"
3190 echo "Configuration $machine not supported" 1>&2
3197 ;; # Existing GNU/Linux systems do not use the GNU setup.
3199 # On the GNU system, the setup is just about the same on
3200 # each different CPU. The specific machines that GNU
3201 # supports are matched above and just set $cpu_type.
3202 xm_file="xm-gnu.h ${xm_file}"
3203 tm_file=${cpu_type}/gnu.h
3204 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3205 # GNU always uses ELF.
3207 # GNU tools are the only tools.
3210 # On GNU, the headers are already okay.
3211 fixincludes=Makefile.in
3212 xmake_file=x-linux # These details are the same as Linux.
3213 tmake_file=t-gnu # These are not.
3216 fixincludes=fixinc.svr4
3217 xmake_try_sysv=x-sysv
3218 install_headers_dir=install-headers-cpio
3221 install_headers_dir=install-headers-cpio
3225 # Distinguish i[34567]86
3226 # Also, do not run mips-tfile on MIPS if using gas.
3227 # Process --with-cpu= for PowerPC/rs6000
3228 target_cpu_default2=
3231 target_cpu_default2=1
3234 target_cpu_default2=2
3236 i686-*-* | i786-*-*)
3237 target_cpu_default2=3
3242 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3245 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3248 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3251 target_cpu_default2="MASK_CPU_EV5"
3255 if test x$gas = xyes
3257 if test "$target_cpu_default2" = ""
3259 target_cpu_default2="MASK_GAS"
3261 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3266 case "x$with_cpu" in
3269 target_cpu_default2="TARGET_CPU_generic"
3272 # Distinguish cores, and major variants
3273 # arm7m doesn't exist, but D & I don't affect code
3274 xarm[23678] | xarm250 | xarm[67][01]0 \
3275 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3276 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3277 | xstrongarm | xstrongarm110)
3278 target_cpu_default2="TARGET_CPU_$with_cpu"
3282 echo "--with-cpu must be passed a value" 1>&2
3287 if test x$pass2done = xyes
3289 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3296 mips*-*-ecoff* | mips*-*-elf*)
3297 if test x$gas = xyes
3299 if test x$gnu_ld = xyes
3301 target_cpu_default2=20
3303 target_cpu_default2=16
3308 if test x$gas = xyes
3310 target_cpu_default2=16
3313 powerpc*-*-* | rs6000-*-*)
3314 case "x$with_cpu" in
3318 xcommon | xpower | xpower2 | xpowerpc | xrios \
3319 | xrios1 | xrios2 | xrsc | xrsc1 \
3320 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3321 | x403 | x505 | x801 | x821 | x823 | x860)
3322 target_cpu_default2="\"$with_cpu\""
3326 echo "--with-cpu must be passed a value" 1>&2
3331 if test x$pass2done = xyes
3333 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3340 case ".$with_cpu" in
3342 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3344 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3345 target_cpu_default2="TARGET_CPU_$with_cpu"
3348 if test x$pass2done = xyes
3350 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3358 if test "$target_cpu_default2" != ""
3360 if test "$target_cpu_default" != ""
3362 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3364 target_cpu_default=$target_cpu_default2
3368 # No need for collect2 if we have the GNU linker.
3369 # Actually, there is now; GNU ld doesn't handle the EH info or
3370 # collecting for shared libraries.
3377 # Save data on machine being used to compile GCC in build_xm_file.
3378 # Save data on host machine in vars host_xm_file and host_xmake_file.
3379 if test x$pass1done = x
3381 if test x"$xm_file" = x
3382 then build_xm_file=$cpu_type/xm-$cpu_type.h
3383 else build_xm_file=$xm_file
3385 build_xm_defines=$xm_defines
3386 build_install_headers_dir=$install_headers_dir
3387 build_exeext=$exeext
3390 if test x$pass2done = x
3392 if test x"$xm_file" = x
3393 then host_xm_file=$cpu_type/xm-$cpu_type.h
3394 else host_xm_file=$xm_file
3396 host_xm_defines=$xm_defines
3397 if test x"$xmake_file" = x
3398 then xmake_file=$cpu_type/x-$cpu_type
3400 host_xmake_file="$xmake_file"
3401 host_truncate_target=$truncate_target
3402 host_extra_gcc_objs=$extra_gcc_objs
3403 host_extra_objs=$extra_host_objs
3410 extra_objs="${host_extra_objs} ${extra_objs}"
3412 # Default the target-machine variables that were not explicitly set.
3413 if test x"$tm_file" = x
3414 then tm_file=$cpu_type/$cpu_type.h; fi
3416 if test x$extra_headers = x
3417 then extra_headers=; fi
3419 if test x"$xm_file" = x
3420 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3422 if test x$md_file = x
3423 then md_file=$cpu_type/$cpu_type.md; fi
3425 if test x$out_file = x
3426 then out_file=$cpu_type/$cpu_type.c; fi
3428 if test x"$tmake_file" = x
3429 then tmake_file=$cpu_type/t-$cpu_type
3432 if test x$float_format = x
3433 then float_format=i64
3436 if test x$enable_haifa = x
3439 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3444 # Say what files are being used for the output code and MD file.
3445 echo "Using \`$srcdir/config/$out_file' to output insns."
3446 echo "Using \`$srcdir/config/$md_file' as machine description file."
3449 for f in $tm_file; do
3452 if test $count = ax; then
3453 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3455 echo "Using the following target machine macro files:"
3456 for f in $tm_file; do
3457 echo " $srcdir/config/$f"
3462 for f in $host_xm_file; do
3465 if test $count = ax; then
3466 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3468 echo "Using the following host machine macro files:"
3469 for f in $host_xm_file; do
3470 echo " $srcdir/config/$f"
3474 if test "$host_xm_file" != "$build_xm_file"; then
3476 for f in $build_xm_file; do
3479 if test $count = ax; then
3480 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3482 echo "Using the following build machine macro files:"
3483 for f in $build_xm_file; do
3484 echo " $srcdir/config/$f"
3489 if test x$thread_file = x; then
3490 if test x$target_thread_file != x; then
3491 thread_file=$target_thread_file
3493 thread_file='single'
3497 # Set up the header files.
3498 # $links is the list of header files to create.
3499 # $vars is the list of shell variables with file names to include.
3500 # auto-host.h is the file containing items generated by autoconf and is
3501 # the first file included by config.h.
3503 host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
3505 # If host=build, it is correct to have hconfig include auto-host.h
3506 # as well. If host!=build, we are in error and need to do more
3507 # work to find out the build config parameters.
3508 if test x$host = x$build
3510 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
3512 # We create a subdir, then run autoconf in the subdir.
3513 # To prevent recursion we set host and build for the new
3514 # invocation of configure to the build for this invocation
3521 /*) realsrcdir=${srcdir};;
3522 *) realsrcdir=../${srcdir};;
3524 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3525 --target=$target --host=$build --build=$build
3527 # We just finished tests for the build machine, so rename
3528 # the file auto-build.h in the gcc directory.
3529 mv auto-host.h ../auto-build.h
3532 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
3535 xm_file="gansidecl.h ${xm_file}"
3536 tm_file="gansidecl.h ${tm_file}"
3538 vars="host_xm_file tm_file xm_file build_xm_file"
3539 links="config.h tm.h tconfig.h hconfig.h"
3540 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3543 if test -f config.status; then mv -f config.status config.bak; fi
3546 while test -n "$vars"
3548 set $vars; var=$1; shift; vars=$*
3549 set $links; link=$1; shift; links=$*
3550 set $defines; define=$1; shift; defines=$*
3554 # Define TARGET_CPU_DEFAULT if the system wants one.
3555 # This substitutes for lots of *.h files.
3556 if test "$target_cpu_default" != "" -a $link = tm.h
3558 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3561 for file in `eval echo '$'$var`; do
3562 echo "#include \"$file\"" >>$link
3565 for def in `eval echo '$'$define`; do
3566 echo "#ifndef $def" >>$link
3567 echo "#define $def" >>$link
3568 echo "#endif" >>$link
3572 # Truncate the target if necessary
3573 if test x$host_truncate_target != x; then
3574 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3577 # Get the version trigger filename from the toplevel
3578 if test "${with_gcc_version_trigger+set}" = set; then
3579 gcc_version_trigger=$with_gcc_version_trigger
3581 gcc_version_trigger=${srcdir}/version.c
3584 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3587 # Get an absolute path to the GCC top-level source directory
3593 # Conditionalize the makefile for this host machine.
3594 # Make-host contains the concatenation of all host makefile fragments
3595 # [there can be more than one]. This file is built by configure.frag.
3596 host_overrides=Make-host
3597 dep_host_xmake_file=
3598 for f in .. ${host_xmake_file}
3600 if test -f ${srcdir}/config/$f
3602 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3606 # Conditionalize the makefile for this target machine.
3607 # Make-target contains the concatenation of all host makefile fragments
3608 # [there can be more than one]. This file is built by configure.frag.
3609 target_overrides=Make-target
3611 for f in .. ${tmake_file}
3613 if test -f ${srcdir}/config/$f
3615 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3619 # If the host doesn't support symlinks, modify CC in
3620 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3621 # Otherwise, we can use "CC=$(CC)".
3623 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3625 cc_set_by_configure="\$(CC)"
3626 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3629 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3631 symbolic_link="cp -p"
3635 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3636 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3640 out_object_file=`basename $out_file .c`.o
3643 for f in $tm_file; do
3644 if test $f != "gansidecl.h" ; then
3645 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3647 tm_file_list="${tm_file_list} $f"
3652 for f in $host_xm_file; do
3653 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3654 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3656 host_xm_file_list="${host_xm_file_list} $f"
3661 for f in $build_xm_file; do
3662 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3663 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3665 build_xm_file_list="${build_xm_file_list} $f"
3669 # Define macro CROSS_COMPILE in compilation
3670 # if this is a cross-compiler.
3671 # Also use all.cross instead of all.internal
3672 # and add cross-make to Makefile.
3673 cross_overrides="/dev/null"
3674 if test x$host != x$target
3676 cross_defines="CROSS=-DCROSS_COMPILE"
3677 cross_overrides="${topdir}/cross-make"
3680 # When building gcc with a cross-compiler, we need to fix a few things.
3681 # This must come after cross-make as we want all.build to override
3683 build_overrides="/dev/null"
3684 if test x$build != x$host
3686 build_overrides="${topdir}/build-make"
3689 # Expand extra_headers to include complete path.
3690 # This substitutes for lots of t-* files.
3692 if test "x$extra_headers" = x
3695 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3696 for file in $extra_headers;
3698 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3702 if test x$use_collect2 = xno; then
3706 # Add a definition of USE_COLLECT2 if system wants one.
3707 # Also tell toplev.c what to do.
3708 # This substitutes for lots of t-* files.
3709 if test x$use_collect2 = x
3714 will_use_collect2="collect2"
3715 maybe_use_collect2="-DUSE_COLLECT2"
3719 # Set MD_DEPS if the real md file is in md.pre-cpp.
3720 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3721 # for line oriented comments, so we must always use a GNU cpp. If
3722 # building gcc with a cross compiler, use the cross compiler just
3723 # built. Otherwise, we can use the cpp just built.
3725 if test "x$md_cppflags" = x
3727 md_file_sub=$srcdir/config/$md_file
3732 # If we have gas in the build tree, make a link to it.
3733 if test -f ../gas/Makefile; then
3734 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3737 # If we have nm in the build tree, make a link to it.
3738 if test -f ../binutils/Makefile; then
3739 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3742 # If we have ld in the build tree, make a link to it.
3743 if test -f ../ld/Makefile; then
3744 # if test x$use_collect2 = x; then
3745 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3747 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3751 # Figure out what assembler alignment features are present.
3752 AC_MSG_CHECKING(assembler alignment features)
3754 gcc_cv_as_alignment_features=
3755 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3756 if test -x "$DEFAULT_ASSEMBLER"; then
3757 gcc_cv_as="$DEFAULT_ASSEMBLER"
3758 elif test -x "$AS"; then
3760 elif test -x as$host_exeext; then
3761 # Build using assembler in the current directory.
3762 gcc_cv_as=./as$host_exeext
3763 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
3764 # Single tree build which includes gas.
3765 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3768 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3770 if test x$gcc_cv_gas_version != x; then
3775 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3776 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3778 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3779 # Gas version 2.6 and later support for .balign and .p2align.
3780 # bytes to skip when using .p2align.
3781 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
3782 gcc_cv_as_alignment_features=".balign and .p2align"
3783 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3785 # Gas version 2.8 and later support specifying the maximum
3786 # bytes to skip when using .p2align.
3787 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
3788 gcc_cv_as_alignment_features=".p2align including maximum skip"
3789 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3792 elif test x$host = x$target; then
3794 gcc_cv_as=as$host_exeext
3796 if test x$gcc_cv_as != x; then
3797 # Check if we have .balign and .p2align
3798 echo ".balign 4" > conftest.s
3799 echo ".p2align 2" >> conftest.s
3800 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3801 gcc_cv_as_alignment_features=".balign and .p2align"
3802 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3804 rm -f conftest.s conftest.o
3805 # Check if specifying the maximum bytes to skip when
3806 # using .p2align is supported.
3807 echo ".p2align 4,,7" > conftest.s
3808 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3809 gcc_cv_as_alignment_features=".p2align including maximum skip"
3810 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3812 rm -f conftest.s conftest.o
3814 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3816 AC_MSG_CHECKING(assembler subsection support)
3817 gcc_cv_as_subsections=
3818 if test x$gcc_cv_as != x; then
3819 # Check if we have .subsection
3820 echo ".subsection 1" > conftest.s
3821 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3822 gcc_cv_as_subsections=".subsection"
3823 if test -x nm$host_exeext; then
3824 gcc_cv_nm=./nm$host_exeext
3825 elif test x$host = x$target; then
3827 gcc_cv_nm=nm$host_exeext
3829 if test x$gcc_cv_nm != x; then
3830 cat > conftest.s <<EOF
3831 conftest_label1: .word 0
3833 conftest_label2: .word 0
3836 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3837 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3838 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3839 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3842 gcc_cv_as_subsections="working .subsection -1"
3843 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3848 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3850 AC_MSG_RESULT($gcc_cv_as_subsections)
3852 # Figure out what language subdirectories are present.
3853 # Look if the user specified --enable-languages="..."; if not, use
3854 # the environment variable $LANGUAGES if defined. $LANGUAGES might
3856 if test x"${enable_languages+set}" != xset; then
3857 if test x"${LANGUAGES+set}" = xset; then
3858 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
3860 enable_languages=all
3864 for lang in ${srcdir}/*/config-lang.in ..
3868 # The odd quoting in the next line works around
3869 # an apparent bug in bash 1.12 on linux.
3871 ${srcdir}/[*]/config-lang.in) ;;
3873 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
3874 if test "x$lang_alias" = x
3876 echo "$lang doesn't set \$language." 1>&2
3879 if test x"${enable_languages}" = xall; then
3882 case "${enable_languages}" in
3883 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
3891 if test x"${add_this_lang}" = xyes; then
3893 ${srcdir}/ada/config-lang.in)
3894 if test x$gnat = xyes ; then
3895 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3899 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3908 # Make gthr-default.h if we have a thread file.
3910 if test $thread_file != single; then
3911 rm -f gthr-default.h
3912 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3913 gthread_flags=-DHAVE_GTHR_DEFAULT
3915 AC_SUBST(gthread_flags)
3917 # Make empty files to contain the specs and options for each language.
3918 # Then add #include lines to for a compiler that has specs and/or options.
3923 rm -f specs.h options.h gencheck.h
3924 touch specs.h options.h gencheck.h
3925 for subdir in . $subdirs
3927 if test -f $srcdir/$subdir/lang-specs.h; then
3928 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3929 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3931 if test -f $srcdir/$subdir/lang-options.h; then
3932 echo "#include \"$subdir/lang-options.h\"" >>options.h
3933 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3935 if test -f $srcdir/$subdir/$subdir-tree.def; then
3936 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3937 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3941 # These (without "all_") are set in each config-lang.in.
3942 # `language' must be a single word so is spelled singularly.
3948 all_outputs=Makefile
3949 # List of language makefile fragments.
3954 # Add the language fragments.
3955 # Languages are added via two mechanisms. Some information must be
3956 # recorded in makefile variables, these are defined in config-lang.in.
3957 # We accumulate them and plug them into the main Makefile.
3958 # The other mechanism is a set of hooks for each of the main targets
3959 # like `clean', `install', etc.
3961 language_fragments="Make-lang"
3962 language_hooks="Make-hooks"
3965 for s in .. $subdirs
3977 . ${srcdir}/$s/config-lang.in
3978 if test "x$language" = x
3980 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3983 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3984 all_languages="$all_languages $language"
3985 if test "x$boot_language" = xyes
3987 all_boot_languages="$all_boot_languages $language"
3989 all_compilers="$all_compilers $compilers"
3990 all_stagestuff="$all_stagestuff $stagestuff"
3991 all_diff_excludes="$all_diff_excludes $diff_excludes"
3992 all_headers="$all_headers $headers"
3993 all_outputs="$all_outputs $outputs"
3994 if test x$outputs = x
3996 oldstyle_subdirs="$oldstyle_subdirs $s"
3998 all_lib2funcs="$all_lib2funcs $lib2funcs"
4002 # Since we can't use `::' targets, we link each language in
4003 # with a set of hooks, reached indirectly via lang.${target}.
4007 target_list="all.build all.cross start.encap rest.encap \
4009 install-normal install-common install-info install-man \
4011 mostlyclean clean distclean extraclean maintainer-clean \
4012 stage1 stage2 stage3 stage4"
4013 for t in $target_list
4016 for l in .. $all_languages
4018 if test $l != ".."; then
4022 echo "lang.$t: $x" >> Make-hooks
4025 # If we're not building in srcdir, create .gdbinit.
4027 if test ! -f Makefile.in; then
4028 echo "dir ." > .gdbinit
4029 echo "dir ${srcdir}" >> .gdbinit
4030 if test x$gdb_needs_out_file_path = xyes
4032 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4034 if test "x$subdirs" != x; then
4037 echo "dir ${srcdir}/$s" >> .gdbinit
4040 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4043 # Define variables host_canonical and build_canonical
4044 # because some Cygnus local changes in the Makefile depend on them.
4045 build_canonical=${build}
4046 host_canonical=${host}
4048 if test "${host}" != "${target}" ; then
4049 target_subdir=${target}/
4051 AC_SUBST(build_canonical)
4052 AC_SUBST(host_canonical)
4053 AC_SUBST(target_subdir)
4055 # If this is using newlib, then define inhibit_libc in
4056 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4057 # libgcc.a, but that's OK because newib should have its own version of
4060 if test x$with_newlib = xyes; then
4061 inhibit_libc=-Dinhibit_libc
4063 AC_SUBST(inhibit_libc)
4065 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4068 if test x$enable_haifa = xyes; then
4069 echo "Using the Haifa scheduler."
4071 sched_cflags=-DHAIFA
4073 AC_SUBST(sched_prefix)
4074 AC_SUBST(sched_cflags)
4075 if test x$enable_haifa != x; then
4076 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4077 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
4085 # Warn if using init_priority.
4086 AC_MSG_CHECKING(whether to enable init_priority by default)
4087 if test x$enable_init_priority != xyes; then
4088 enable_init_priority=no
4090 AC_MSG_RESULT($enable_init_priority)
4092 # Nothing to do for FLOAT_H, float_format already handled.
4096 # Process the language and host/target makefile fragments.
4097 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4099 # Substitute configuration variables
4101 AC_SUBST(all_languages)
4102 AC_SUBST(all_boot_languages)
4103 AC_SUBST(all_compilers)
4104 AC_SUBST(all_lang_makefiles)
4105 AC_SUBST(all_stagestuff)
4106 AC_SUBST(all_diff_excludes)
4107 AC_SUBST(all_lib2funcs)
4108 AC_SUBST(all_headers)
4110 AC_SUBST(extra_passes)
4111 AC_SUBST(extra_programs)
4112 AC_SUBST(extra_parts)
4113 AC_SUBST(extra_c_objs)
4114 AC_SUBST(extra_cxx_objs)
4115 AC_SUBST(extra_cpp_objs)
4116 AC_SUBST(extra_c_flags)
4117 AC_SUBST(extra_objs)
4118 AC_SUBST(host_extra_gcc_objs)
4119 AC_SUBST(extra_headers_list)
4120 AC_SUBST(dep_host_xmake_file)
4121 AC_SUBST(dep_tmake_file)
4123 AC_SUBST(out_object_file)
4125 AC_SUBST(tm_file_list)
4126 AC_SUBST(build_xm_file_list)
4127 AC_SUBST(host_xm_file_list)
4128 AC_SUBST(lang_specs_files)
4129 AC_SUBST(lang_options_files)
4130 AC_SUBST(lang_tree_files)
4131 AC_SUBST(thread_file)
4132 AC_SUBST(objc_boehm_gc)
4134 AC_SUBST(gcc_version)
4135 AC_SUBST(gcc_version_trigger)
4136 AC_SUBST(local_prefix)
4137 AC_SUBST(gxx_include_dir)
4138 AC_SUBST(fixincludes)
4139 AC_SUBST(build_install_headers_dir)
4140 AC_SUBST(build_exeext)
4141 AC_SUBST(host_exeext)
4142 AC_SUBST(float_format)
4143 AC_SUBST(will_use_collect2)
4144 AC_SUBST(maybe_use_collect2)
4145 AC_SUBST(cc_set_by_configure)
4146 AC_SUBST(stage_prefix_set_by_configure)
4148 AC_SUBST(symbolic_link)
4150 AC_SUBST_FILE(target_overrides)
4151 AC_SUBST_FILE(host_overrides)
4152 AC_SUBST(cross_defines)
4153 AC_SUBST_FILE(cross_overrides)
4154 AC_SUBST_FILE(build_overrides)
4155 AC_SUBST_FILE(language_fragments)
4156 AC_SUBST_FILE(language_hooks)
4158 # Echo that links are built
4159 if test x$host = x$target
4167 if test x$host != x$build
4169 str3=" on a $build system"
4172 if test "x$str2" != x || test "x$str3" != x
4177 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4179 if test "x$str2" != x || test "x$str3" != x
4181 echo " ${str2}${str3}." 1>&2
4184 # Truncate the target if necessary
4185 if test x$host_truncate_target != x; then
4186 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4189 # Configure the subdirectories
4190 # AC_CONFIG_SUBDIRS($subdirs)
4192 # Create the Makefile
4193 # and configure language subdirectories
4194 AC_OUTPUT($all_outputs,
4196 . $srcdir/configure.lang
4197 case x$CONFIG_HEADERS in
4198 xauto-host.h:config.in)
4201 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4202 # bootstrapping and the installation procedure can still use
4203 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4204 # FLAGS_TO_PASS has been modified to solve the problem there.
4205 # This is virtually a duplicate of what happens in configure.lang; we do
4206 # an extra check to make sure this only happens if ln -s can be used.
4207 if test "$symbolic_link" = "ln -s"; then
4208 for d in .. ${subdirs} ; do
4209 if test $d != ..; then
4212 for t in stage1 stage2 stage3 stage4 include
4215 $symbolic_link ../$t $t 2>/dev/null
4226 target_alias='${target_alias}'
4228 subdirs='${subdirs}'
4229 oldstyle_subdirs='${oldstyle_subdirs}'
4230 symbolic_link='${symbolic_link}'
4231 program_transform_set='${program_transform_set}'
4232 program_transform_name='${program_transform_name}'
4233 dep_host_xmake_file='${dep_host_xmake_file}'
4234 host_xmake_file='${host_xmake_file}'
4235 dep_tmake_file='${dep_tmake_file}'
4236 tmake_file='${tmake_file}'
4237 thread_file='${thread_file}'
4238 gcc_version='${gcc_version}'
4239 gcc_version_trigger='${gcc_version_trigger}'
4240 local_prefix='${local_prefix}'
4241 build_install_headers_dir='${build_install_headers_dir}'
4242 build_exeext='${build_exeext}'
4243 host_exeext='${host_exeext}'
4244 out_file='${out_file}'
4245 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4246 SET_MAKE='${SET_MAKE}'
4247 target_list='${target_list}'
4248 target_overrides='${target_overrides}'
4249 host_overrides='${host_overrides}'
4250 cross_defines='${cross_defines}'
4251 cross_overrides='${cross_overrides}'
4252 build_overrides='${build_overrides}'