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
25 AC_CONFIG_HEADER(auto-host.h:config.in)
32 # Check for additional parameters
36 [ --with-gnu-ld arrange to work with GNU ld.],
37 gnu_ld_flag="$with_gnu_ld",
42 [ --with-gnu-as arrange to work with GNU as.],
43 gas_flag="$with_gnu_as",
48 [ --with-stabs arrange to use stabs instead of host debug format.],
54 [ --with-elf arrange to use ELF instead of host debug format.],
58 # Specify the local prefix
60 AC_ARG_WITH(local-prefix,
61 [ --with-local-prefix=DIR specifies directory to put local include.],
63 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
65 *) local_prefix=$with_local_prefix ;;
68 # Default local prefix if it is empty
69 if test x$local_prefix = x; then
70 local_prefix=/usr/local
74 # Specify the g++ header file directory
75 AC_ARG_WITH(gxx-include-dir,
76 [ --with-gxx-include-dir=DIR
77 specifies directory to put g++ header files.],
79 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
81 *) gxx_include_dir=$with_gxx_include_dir ;;
84 if test x${gxx_include_dir} = x; then
85 if test x${enable_version_specific_runtime_libs} = xyes; then
86 gxx_include_dir='${libsubdir}/include/g++'
88 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
89 gxx_include_dir='${prefix}/include/g++'-${libstdcxx_interface}
93 # Enable expensive internal checks
94 AC_ARG_ENABLE(checking,
95 [ --enable-checking enable expensive run-time checks.],
96 [case "${enableval}" in
97 yes) AC_DEFINE(ENABLE_CHECKING) ;;
99 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
102 # Enable use of cpplib for C.
104 AC_ARG_ENABLE(c-cpplib,
105 [ --enable-c-cpplib Use cpplib for C and C++.],
106 if test x$enable_c_cpplib != xno; then
107 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
108 extra_c_objs="${extra_c_objs} prefix.o"
109 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
110 extra_c_flags=-DUSE_CPPLIB=1
114 # Enable Multibyte Characters for C/C++
115 AC_ARG_ENABLE(c-mbchar,
116 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
117 if test x$enable_c_mbchar != xno; then
118 extra_c_flags=-DMULTIBYTE_CHARS=1
121 # Enable Haifa scheduler.
123 [ --enable-haifa Use the experimental scheduler.
124 --disable-haifa Don't use the experimental scheduler for the
125 targets which normally enable it.])
128 # This is a work in progress...
129 AC_ARG_WITH(fast-fixincludes,
130 [ --with-fast-fixincludes Use a faster fixinclude program. Experimental],
131 fast_fixinc="$with_fast_fixincludes",
134 # Enable init_priority.
135 AC_ARG_ENABLE(init-priority,
136 [ --enable-init-priority Use attributes to assign initialization order
138 --disable-init-priority Conform to ISO C++ rules for ordering static objects
139 (i.e. initialized in order of declaration). ],
140 if test x$enable_init_priority != xno; then
141 extra_c_flags=-DUSE_INIT_PRIORITY
145 # Pass with no value to take the default
146 # Pass with a value to specify a thread package
147 AC_ARG_ENABLE(threads,
148 [ --enable-threads enable thread usage for target GCC.
149 --enable-threads=LIB use LIB thread package for target GCC.],
150 if test x$enable_threads = xno; then
155 enable_threads_flag=$enable_threads
156 # Check if a valid thread package
157 case x${enable_threads_flag} in
160 target_thread_file='single'
164 target_thread_file=''
166 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
167 xsolaris | xwin32 | xdce | xvxworks)
168 target_thread_file=$enable_threads_flag
171 echo "$enable_threads is an unknown thread package" 1>&2
176 AC_ARG_ENABLE(objc-gc,
177 [ --enable-objc-gc enable the use of Boehm's garbage collector with
178 the GNU Objective-C runtime.],
179 if [[[ x$enable_objc_gc = xno ]]]; then
186 # Determine the host, build, and target systems
189 # Find the native compiler
192 # If the native compiler is GCC, we can enable warnings even in stage1.
193 # That's useful for people building cross-compilers, or just running a
195 if test "x$GCC" = "xyes"; then
196 stage1_warn_cflags='$(WARN_CFLAGS)'
198 stage1_warn_cflags=""
200 AC_SUBST(stage1_warn_cflags)
204 # Find some useful tools
217 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 wait.h sys/wait.h)
219 # Check for thread headers.
220 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
221 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
223 # See if the system preprocessor understands the ANSI C preprocessor
224 # stringification operator.
225 AC_MSG_CHECKING(whether cpp understands the stringify operator)
226 AC_CACHE_VAL(gcc_cv_c_have_stringify,
229 char *test = S(foo);],
230 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
231 AC_MSG_RESULT($gcc_cv_c_have_stringify)
232 if test $gcc_cv_c_have_stringify = yes; then
233 AC_DEFINE(HAVE_CPP_STRINGIFY)
236 # Use <inttypes.h> only if it exists,
237 # doesn't clash with <sys/types.h>, and declares intmax_t.
238 AC_MSG_CHECKING(for inttypes.h)
239 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
241 [#include <sys/types.h>
242 #include <inttypes.h>],
244 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
245 gcc_cv_header_inttypes_h=yes],
246 gcc_cv_header_inttypes_h=no)])
247 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
249 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
250 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
251 sysconf isascii gettimeofday)
253 # Make sure wchar_t is available
254 #AC_CHECK_TYPE(wchar_t, unsigned int)
256 GCC_FUNC_VFPRINTF_DOPRNT
259 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
260 index rindex getenv atol sbrk abort atof strerror getcwd getwd)
262 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
263 #include <sys/types.h>
264 #ifdef HAVE_SYS_RESOURCE_H
265 #include <sys/resource.h>
279 build_install_headers_dir=install-headers-tar
284 host_truncate_target=
287 # Decode the host machine, then the target machine.
288 # For the host machine, we save the xm_file variable as host_xm_file;
289 # then we decode the target machine and forget everything else
290 # that came from the host machine.
291 for machine in $build $host $target; do
305 # Set this to force installation and use of collect2.
307 # Set this to override the default target model.
309 # Set this to control which fixincludes program to use.
310 if test x$fast_fixinc != xyes; then
311 fixincludes=fixincludes
312 else fixincludes=fixinc.sh ; fi
313 # Set this to control how the header file directory is installed.
314 install_headers_dir=install-headers-tar
315 # Set this to a non-empty list of args to pass to cpp if the target
316 # wants its .md file passed through cpp.
318 # Set this if directory names should be truncated to 14 characters.
320 # Set this if gdb needs a dir command with `dirname $out_file`
321 gdb_needs_out_file_path=
322 # Set this if the build machine requires executables to have a
325 # Set this to control which thread package will be used.
327 # Reinitialize these from the flag values every loop pass, since some
328 # configure entries modify them.
330 gnu_ld="$gnu_ld_flag"
331 enable_threads=$enable_threads_flag
333 # Set default cpu_type, tm_file and xm_file so it can be updated in
334 # each machine entry.
335 cpu_type=`echo $machine | sed 's/-.*$//'`
371 tm_file=${cpu_type}/${cpu_type}.h
372 xm_file=${cpu_type}/xm-${cpu_type}.h
374 # Set the default macros to define for GNU/Linux systems.
377 xm_defines="HAVE_ATEXIT POSIX BSTRING"
382 # Support site-specific machine types.
384 cpu_type=`echo $machine | sed -e 's/-.*//'`
385 rest=`echo $machine | sed -e "s/$cpu_type-//"`
386 xm_file=${cpu_type}/xm-$rest.h
387 tm_file=${cpu_type}/$rest.h
388 if test -f $srcdir/config/${cpu_type}/x-$rest; \
389 then xmake_file=${cpu_type}/x-$rest; \
392 if test -f $srcdir/config/${cpu_type}/t-$rest; \
393 then tmake_file=${cpu_type}/t-$rest; \
399 a29k-*-bsd* | a29k-*-sym1*)
400 tm_file="${tm_file} a29k/unix.h"
402 xmake_file=a29k/x-unix
405 a29k-*-udi | a29k-*-coff)
406 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
407 tmake_file=a29k/t-a29kbare
410 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
411 tmake_file=a29k/t-vx29k
412 extra_parts="crtbegin.o crtend.o"
413 thread_file='vxworks'
415 a29k-*-*) # Default a29k environment.
418 alpha*-*-linux-gnuecoff*)
419 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
420 target_cpu_default="MASK_GAS"
425 alpha*-*-linux-gnulibc1*)
426 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
427 target_cpu_default="MASK_GAS"
428 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
429 extra_parts="crtbegin.o crtend.o"
430 fixincludes=fixinc.wrap
433 if test x$enable_threads = xyes; then
438 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
439 target_cpu_default="MASK_GAS"
440 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
441 extra_parts="crtbegin.o crtend.o"
443 fixincludes=Makefile.in
445 if test x$enable_threads = xyes; then
450 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
451 xm_file="xm-netbsd.h ${xm_file}"
452 target_cpu_default="MASK_GAS"
453 tmake_file="alpha/t-crtbe"
454 extra_parts="crtbegin.o crtend.o"
456 fixincludes=fixinc.wrap
461 if test x$stabs = xyes
463 tm_file="${tm_file} dbx.h"
465 if test x$gas != xyes
467 extra_passes="mips-tfile mips-tdump"
472 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
477 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
480 tm_file="${tm_file} alpha/osf.h"
481 # Some versions of OSF4 (specifically X4.0-9 296.7) have
482 # a broken tar, so we use cpio instead.
483 install_headers_dir=install-headers-cpio
488 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
490 target_cpu_default=MASK_SUPPORT_ARCH
495 tm_file="${tm_file} dbx.h alpha/vxworks.h"
498 extra_passes="mips-tfile mips-tdump"
503 tm_file="${tm_file} alpha/win-nt.h"
504 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
506 xmake_file=winnt/x-winnt
507 extra_host_objs=oldnames.o
508 extra_gcc_objs="spawnv.o oldnames.o"
509 fixincludes=fixinc.winnt
510 if test x$gnu_ld != xyes
512 extra_programs=ld.exe
514 if test x$enable_threads = xyes; then
520 xm_file="${xm_file} alpha/xm-vms.h"
521 tmake_file=alpha/t-vms
522 fixincludes=Makefile.in
525 extra_parts="crtinit.o crtfini.o"
527 arm-*-coff* | armel-*-coff*)
529 tmake_file=arm/t-bare
532 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
534 tm_file=arm/riscix1-1.h
537 arm-*-riscix*) # Acorn RISC machine
540 tm_file=arm/rix-gas.h
544 xmake_file=arm/x-riscix
545 tmake_file=arm/t-riscix
548 arm-semi-aout | armel-semi-aout)
550 tmake_file=arm/t-semi
551 fixincludes=Makefile.in # There is nothing to fix
553 arm-semi-aof | armel-semi-aof)
554 tm_file=arm/semiaof.h
555 tmake_file=arm/t-semiaof
556 fixincludes=Makefile.in # There is nothing to fix
560 xm_file="xm-netbsd.h ${xm_file}"
561 tmake_file="t-netbsd arm/t-netbsd"
562 # On NetBSD, the headers are already okay, except for math.h.
563 fixincludes=fixinc.wrap
565 arm-*-linux-gnuaout*) # ARM GNU/Linux
568 tm_file=arm/linux-gas.h
569 tmake_file=arm/t-linux
570 fixincludes=Makefile.in
575 tmake_file=arm/t-bare
577 c1-convex-*) # Convex C1
580 fixincludes=Makefile.in
582 c2-convex-*) # Convex C2
585 fixincludes=Makefile.in
590 fixincludes=Makefile.in
595 fixincludes=Makefile.in
598 target_cpu_default=16
600 fixincludes=Makefile.in
602 clipper-intergraph-clix*)
603 tm_file="${tm_file} svr3.h clipper/clix.h"
604 xm_file=clipper/xm-clix.h
605 xmake_file=clipper/x-clix
606 extra_headers=va-clipper.h
607 extra_parts="crtbegin.o crtend.o"
608 install_headers_dir=install-headers-cpio
615 # This hasn't been upgraded to GCC 2.
616 # fx80-alliant-*) # Alliant FX/80
622 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
623 xm_file=pa/xm-papro.h
628 tm_file="${tm_file} pa/pa-osf.h"
630 fixincludes=Makefile.in
633 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
634 xm_file=pa/xm-papro.h
638 tm_file="${tm_file} pa/pa-osf.h"
640 fixincludes=Makefile.in
645 fixincludes=Makefile.in
649 fixincludes=Makefile.in
652 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
653 xm_file=pa/xm-pahpux.h
654 xmake_file=pa/x-pa-hpux
657 tm_file="${tm_file} pa/gas.h"
659 install_headers_dir=install-headers-cpio
663 hppa1.0-*-hpux8.0[0-2]*)
665 tm_file="${tm_file} pa/pa-hpux.h"
666 xm_file=pa/xm-pahpux.h
667 xmake_file=pa/x-pa-hpux
670 tm_file="${tm_file} pa/pa-gas.h"
672 tm_file="pa/pa-oldas.h ${tm_file}"
674 install_headers_dir=install-headers-cpio
678 hppa1.1-*-hpux8.0[0-2]*)
681 tm_file="${tm_file} pa/pa-hpux.h"
682 xm_file=pa/xm-pahpux.h
683 xmake_file=pa/x-pa-hpux
686 tm_file="${tm_file} pa/pa-gas.h"
688 tm_file="pa/pa-oldas.h ${tm_file}"
690 install_headers_dir=install-headers-cpio
695 tm_file="${tm_file} pa/pa-hpux.h"
696 xm_file=pa/xm-pahpux.h
697 xmake_file=pa/x-pa-hpux
700 tm_file="${tm_file} pa/pa-gas.h"
702 install_headers_dir=install-headers-cpio
706 tm_file="${tm_file} pa/pa-hpux.h"
707 xm_file=pa/xm-pahpux.h
708 xmake_file=pa/x-pa-hpux
711 tm_file="${tm_file} pa/pa-gas.h"
713 install_headers_dir=install-headers-cpio
718 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
719 xm_file=pa/xm-pahpux.h
720 xmake_file=pa/x-pa-hpux
724 tm_file="${tm_file} pa/pa-gas.h"
726 if test x$enable_threads = x; then
727 enable_threads=$have_pthread_h
729 if test x$enable_threads = xyes; then
731 tmake_file="${tmake_file} pa/t-dce-thr"
733 install_headers_dir=install-headers-cpio
737 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
738 xm_file=pa/xm-pahpux.h
739 xmake_file=pa/x-pa-hpux
742 tm_file="${tm_file} pa/pa-gas.h"
744 if test x$enable_threads = x; then
745 enable_threads=$have_pthread_h
747 if test x$enable_threads = xyes; then
749 tmake_file="${tmake_file} pa/t-dce-thr"
751 install_headers_dir=install-headers-cpio
756 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
757 xm_file=pa/xm-pahpux.h
758 xmake_file=pa/x-pa-hpux
761 tm_file="${tm_file} pa/pa-gas.h"
763 install_headers_dir=install-headers-cpio
767 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
768 xm_file=pa/xm-pahpux.h
769 xmake_file=pa/x-pa-hpux
772 tm_file="${tm_file} pa/pa-gas.h"
774 install_headers_dir=install-headers-cpio
779 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
780 xm_file=pa/xm-pahpux.h
781 xmake_file=pa/x-pa-hpux
784 tm_file="${tm_file} pa/pa-gas.h"
786 install_headers_dir=install-headers-cpio
790 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
791 xm_file=pa/xm-pahpux.h
792 xmake_file=pa/x-pa-hpux
795 tm_file="${tm_file} pa/pa-gas.h"
797 install_headers_dir=install-headers-cpio
803 fixincludes=Makefile.in
808 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
812 tm_file=i386/aix386.h
813 extra_parts="crtbegin.o crtend.o"
814 tmake_file=i386/t-crtstuff
816 tm_file=i386/aix386ng.h
819 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
821 xmake_file=i386/x-aix
824 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
826 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
827 xm_defines="USG POSIX SMALL_ARG_MAX"
828 xmake_file=i386/x-ncr3000
829 if test x$stabs = xyes -a x$gas = xyes
831 tm_file=i386/sysv4gdb.h
835 extra_parts="crtbegin.o crtend.o"
836 tmake_file=i386/t-crtpic
842 xm_file=i386/xm-next.h
843 tmake_file=i386/t-next
844 xmake_file=i386/x-next
845 extra_objs=nextstep.o
846 if test x$enable_threads = xyes; then
851 i[34567]86-sequent-bsd*) # 80386 from Sequent
856 tm_file=i386/seq-gas.h
858 tm_file=i386/sequent.h
862 i[34567]86-sequent-ptx1*)
864 xm_defines="USG SVR3"
865 xmake_file=i386/x-sysv3
866 tm_file=i386/seq-sysv3.h
867 tmake_file=i386/t-crtstuff
868 fixincludes=fixinc.ptx
869 extra_parts="crtbegin.o crtend.o"
870 install_headers_dir=install-headers-cpio
873 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
875 xm_defines="USG SVR3"
876 xmake_file=i386/x-sysv3
877 tm_file=i386/seq2-sysv3.h
878 tmake_file=i386/t-crtstuff
879 extra_parts="crtbegin.o crtend.o"
880 fixincludes=fixinc.ptx
881 install_headers_dir=install-headers-cpio
884 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
886 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
887 xm_defines="USG POSIX SMALL_ARG_MAX"
889 tm_file=i386/ptx4-i.h
891 extra_parts="crtbegin.o crtend.o"
892 fixincludes=fixinc.ptx
893 install_headers_dir=install-headers-cpio
895 i386-sun-sunos*) # Sun i386 roadrunner
901 i[34567]86-wrs-vxworks*)
903 tm_file=i386/vxi386.h
904 tmake_file=i386/t-i386bare
909 tm_file=i386/i386-aout.h
910 tmake_file=i386/t-i386bare
913 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
915 tm_file=i386/bsd386.h
916 # tmake_file=t-libc-ok
921 tm_file=i386/386bsd.h
922 # tmake_file=t-libc-ok
923 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
927 i[34567]86-*-freebsdelf*)
929 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
930 # On FreeBSD, the headers are already ok, except for math.h.
931 fixincludes=fixinc.wrap
932 tmake_file=i386/t-freebsd
938 i[34567]86-*-freebsd*)
940 tm_file=i386/freebsd.h
941 # On FreeBSD, the headers are already ok, except for math.h.
942 fixincludes=fixinc.wrap
943 tmake_file=i386/t-freebsd
946 i[34567]86-*-netbsd*)
948 tm_file=i386/netbsd.h
949 xm_file="xm-netbsd.h ${xm_file}"
950 # On NetBSD, the headers are already okay, except for math.h.
951 fixincludes=fixinc.wrap
957 tm_file=i386/i386-coff.h
958 tmake_file=i386/t-i386bare
961 i[34567]86-*-isc*) # 80386 running ISC system
963 xm_file="${xm_file} i386/xm-isc.h"
964 xm_defines="USG SVR3"
967 i[34567]86-*-isc[34]*)
969 xmake_file=i386/x-isc3
972 xmake_file=i386/x-isc
975 if test x$gas = xyes -a x$stabs = xyes
977 tm_file=i386/iscdbx.h
978 tmake_file=i386/t-svr3dbx
979 extra_parts="svr3.ifile svr3z.ifile"
981 tm_file=i386/isccoff.h
982 tmake_file=i386/t-crtstuff
983 extra_parts="crtbegin.o crtend.o"
985 install_headers_dir=install-headers-cpio
988 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
989 changequote([,])dnl # with a.out format using
991 xmake_file=x-linux-aout
992 tmake_file="t-linux-aout i386/t-crtstuff"
993 tm_file=i386/linux-oldld.h
994 fixincludes=Makefile.in #On Linux, the headers are ok already.
999 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1000 changequote([,])dnl # with a.out format
1001 xmake_file=x-linux-aout
1002 tmake_file="t-linux-aout i386/t-crtstuff"
1003 tm_file=i386/linux-aout.h
1004 fixincludes=Makefile.in #On Linux, the headers are ok already.
1009 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1010 changequote([,])dnl # with ELF format using the
1011 # GNU/Linux C library 5
1013 tm_file=i386/linux.h
1014 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1015 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1016 fixincludes=Makefile.in #On Linux, the headers are ok already.
1019 if test x$enable_threads = xyes; then
1020 thread_file='single'
1024 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1025 changequote([,])dnl # with ELF format using glibc 2
1026 # aka GNU/Linux C library 6
1028 tm_file=i386/linux.h
1029 tmake_file="t-linux i386/t-crtstuff"
1030 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1031 fixincludes=Makefile.in #On Linux, the headers are ok already.
1034 if test x$enable_threads = xyes; then
1043 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1045 xm_file=i386/xm-go32.h
1047 tmake_file=i386/t-go32
1050 i[34567]86-pc-msdosdjgpp*)
1052 xm_file=i386/xm-go32.h
1054 tmake_file=i386/t-go32
1059 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1062 tmake_file=t-libc-ok
1063 fixincludes=Makefile.in
1068 i[34567]86-*-lynxos*)
1070 if test x$gas = xyes
1074 tm_file=i386/lynx-ng.h
1076 xm_file=i386/xm-lynx.h
1077 tmake_file=i386/t-i386bare
1084 # tmake_file=t-libc-ok
1088 i[34567]86-*-osfrose*) # 386 using OSF/rose
1090 if test x$elf = xyes
1092 tm_file=i386/osfelf.h
1095 tm_file=i386/osfrose.h
1098 xm_file="i386/xm-osf.h ${xm_file}"
1099 xmake_file=i386/x-osfrose
1100 tmake_file=i386/t-osf
1101 extra_objs=halfpic.o
1104 i[34567]86-go32-rtems*)
1107 xm_file=i386/xm-go32.h
1108 tm_file=i386/go32-rtems.h
1109 tmake_file="i386/t-go32 t-rtems"
1112 i[34567]86-*-rtemself*)
1115 tm_file=i386/rtemself.h
1116 tmake_file="i386/t-i386bare t-rtems"
1119 i[34567]86-*-rtems*)
1122 tm_file=i386/rtems.h
1123 tmake_file="i386/t-i386bare t-rtems"
1126 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1128 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1129 xm_defines="USG SVR3"
1130 xmake_file=i386/x-sco5
1131 fixincludes=fixinc.sco
1132 install_headers_dir=install-headers-cpio
1134 if test x$gas = xyes
1136 tm_file="i386/sco5gas.h ${tm_file}"
1137 tmake_file=i386/t-sco5gas
1139 tmake_file=i386/t-sco5
1141 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1144 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1146 xm_file="${xm_file} i386/xm-sco.h"
1147 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1148 xmake_file=i386/x-sco4
1149 fixincludes=fixinc.sco
1150 install_headers_dir=install-headers-cpio
1151 if test x$stabs = xyes
1153 tm_file=i386/sco4dbx.h
1154 tmake_file=i386/t-svr3dbx
1155 extra_parts="svr3.ifile svr3z.rfile"
1158 tmake_file=i386/t-crtstuff
1159 extra_parts="crtbegin.o crtend.o"
1164 i[34567]86-*-sco*) # 80386 running SCO system
1166 xm_file=i386/xm-sco.h
1167 xmake_file=i386/x-sco
1168 install_headers_dir=install-headers-cpio
1169 if test x$stabs = xyes
1171 tm_file=i386/scodbx.h
1172 tmake_file=i386/t-svr3dbx
1173 extra_parts="svr3.ifile svr3z.rfile"
1176 extra_parts="crtbegin.o crtend.o"
1177 tmake_file=i386/t-crtstuff
1182 i[34567]86-*-solaris2*)
1184 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1185 xm_defines="USG POSIX SMALL_ARG_MAX"
1186 if test x$stabs = xyes
1188 tm_file=i386/sol2dbg.h
1192 tmake_file=i386/t-sol2
1193 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1199 fixincludes=fixinc.svr4;;
1201 fixincludes=fixinc.wrap;;
1203 if test x$enable_threads = xyes; then
1204 thread_file='solaris'
1208 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1210 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1211 xm_defines="USG POSIX"
1212 tm_file=i386/sysv4.h
1213 if test x$stabs = xyes
1215 tm_file="${tm_file} dbx.h"
1217 tmake_file=i386/t-crtpic
1219 extra_parts="crtbegin.o crtend.o"
1220 fixincludes=Makefile.in # The headers are just fine, thank you.
1223 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1225 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1226 xm_defines="USG POSIX SMALL_ARG_MAX"
1227 tm_file=i386/sysv4.h
1228 if test x$stabs = xyes
1230 tm_file="${tm_file} dbx.h"
1232 tmake_file=i386/t-crtpic
1234 extra_parts="crtbegin.o crtend.o"
1237 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1240 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1241 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1242 fixincludes=Makefile.in #Don't do it on OSF/1
1243 if test x$stabs = xyes
1245 tm_file=i386/osf1elfgdb.h
1247 tm_file=i386/osf1elf.h
1249 tmake_file=i386/t-osf1elf
1250 xmake_file=i386/x-osf1elf
1251 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1254 i[34567]86-*-sysv*) # Intel 80386's running system V
1256 xm_defines="USG SVR3"
1257 xmake_file=i386/x-sysv3
1258 if test x$gas = xyes
1260 if test x$stabs = xyes
1262 tm_file=i386/svr3dbx.h
1263 tmake_file=i386/t-svr3dbx
1264 extra_parts="svr3.ifile svr3z.rfile"
1266 tm_file=i386/svr3gas.h
1267 extra_parts="crtbegin.o crtend.o"
1268 tmake_file=i386/t-crtstuff
1271 tm_file=i386/sysv3.h
1272 extra_parts="crtbegin.o crtend.o"
1273 tmake_file=i386/t-crtstuff
1276 i386-*-vsta) # Intel 80386's running VSTa kernel
1277 xm_file="${xm_file} i386/xm-vsta.h"
1279 tmake_file=i386/t-vsta
1280 xmake_file=i386/x-vsta
1285 xm_file="${xm_file} i386/xm-cygwin32.h"
1286 tmake_file=i386/t-cygwin32
1287 tm_file=i386/win32.h
1288 xmake_file=i386/x-cygwin32
1290 fixincludes=Makefile.in
1291 if test x$enable_threads = xyes; then
1297 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1299 xm_file="${xm_file} i386/xm-cygwin32.h"
1300 tmake_file=i386/t-cygwin32
1301 tm_file=i386/cygwin32.h
1302 xmake_file=i386/x-cygwin32
1304 fixincludes=Makefile.in
1305 if test x$enable_threads = xyes; then
1311 i[34567]86-*-mingw32*)
1313 tm_file=i386/mingw32.h
1314 xm_file="${xm_file} i386/xm-mingw32.h"
1315 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1317 xmake_file=i386/x-cygwin32
1318 fixincludes=Makefile.in
1319 if test x$enable_threads = xyes; then
1326 *minwg32crt* | *mingw32*)
1327 tm_file="${tm_file} i386/crtdll.h"
1332 i[34567]86-*-winnt3*)
1334 tm_file=i386/win-nt.h
1335 out_file=i386/i386.c
1336 xm_file="xm-winnt.h ${xm_file}"
1337 xmake_file=winnt/x-winnt
1338 tmake_file=i386/t-winnt
1339 extra_host_objs="winnt.o oldnames.o"
1340 extra_gcc_objs="spawnv.o oldnames.o"
1341 fixincludes=fixinc.winnt
1342 if test x$gnu_ld != xyes
1344 extra_programs=ld.exe
1346 if test x$enable_threads = xyes; then
1351 i[34567]86-dg-dgux*)
1353 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1354 xm_defines="USG POSIX"
1355 out_file=i386/dgux.c
1357 tmake_file=i386/t-dgux
1358 xmake_file=i386/x-dgux
1359 fixincludes=fixinc.dgux
1360 install_headers_dir=install-headers-cpio
1362 i860-alliant-*) # Alliant FX/2800
1363 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1364 xm_file="${xm_file}"
1365 xmake_file=i860/x-fx2800
1366 tmake_file=i860/t-fx2800
1367 extra_parts="crtbegin.o crtend.o"
1370 tm_file="${tm_file} i860/bsd.h"
1371 if test x$gas = xyes
1373 tm_file="${tm_file} i860/bsd-gas.h"
1378 tm_file="${tm_file} i860/mach.h"
1379 tmake_file=t-libc-ok
1381 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1382 tm_file="${tm_file} svr3.h i860/paragon.h"
1383 xm_defines="USG SVR3"
1387 tm_file="${tm_file} svr3.h i860/sysv3.h"
1388 xm_defines="USG SVR3"
1389 xmake_file=i860/x-sysv3
1390 extra_parts="crtbegin.o crtend.o"
1393 tm_file="${tm_file} svr4.h i860/sysv4.h"
1394 xm_defines="USG SVR3"
1395 xmake_file=i860/x-sysv4
1397 extra_parts="crtbegin.o crtend.o"
1399 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1400 tm_file="${tm_file} i960/vx960.h"
1401 tmake_file=i960/t-vxworks960
1403 thread_file='vxworks'
1405 i960-wrs-vxworks5* | i960-wrs-vxworks)
1406 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1407 tmake_file=i960/t-vxworks960
1409 thread_file='vxworks'
1412 tm_file="${tm_file} i960/vx960.h"
1413 tmake_file=i960/t-vxworks960
1415 thread_file='vxworks'
1418 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1419 tmake_file=i960/t-960bare
1423 tmake_file="i960/t-960bare t-rtems"
1424 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1427 i960-*-*) # Default i960 environment.
1431 extra_parts="crtinit.o crtfini.o"
1433 m68000-convergent-sysv*)
1435 xm_file="m68k/xm-3b1.h ${xm_file}"
1438 extra_headers=math-68881.h
1440 m68000-hp-bsd*) # HP 9000/200 running BSD
1441 tm_file=m68k/hp2bsd.h
1442 xmake_file=m68k/x-hp2bsd
1444 extra_headers=math-68881.h
1446 m68000-hp-hpux*) # HP 9000 series 300
1447 xm_file="xm_alloca.h ${xm_file}"
1448 xm_defines="USG NO_SYS_SIGLIST"
1449 if test x$gas = xyes
1451 xmake_file=m68k/x-hp320g
1452 tm_file=m68k/hp310g.h
1454 xmake_file=m68k/x-hp320
1455 tm_file=m68k/hp310.h
1457 install_headers_dir=install-headers-cpio
1459 extra_headers=math-68881.h
1464 extra_headers=math-68881.h
1467 tm_file=m68k/sun2o4.h
1469 extra_headers=math-68881.h
1472 xm_file="m68k/xm-3b1.h ${xm_file}"
1474 if test x$gas = xyes
1481 extra_headers=math-68881.h
1483 m68k-apple-aux*) # Apple Macintosh running A/UX
1484 xm_defines="USG AUX"
1485 tmake_file=m68k/t-aux
1486 install_headers_dir=install-headers-cpio
1487 extra_headers=math-68881.h
1488 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1490 if test "$gnu_ld" = yes
1492 tm_file="${tm_file} m68k/auxgld.h"
1494 tm_file="${tm_file} m68k/auxld.h"
1496 if test "$gas" = yes
1498 tm_file="${tm_file} m68k/auxgas.h"
1500 tm_file="${tm_file} m68k/auxas.h"
1502 tm_file="${tm_file} m68k/a-ux.h"
1506 tm_file=m68k/apollo68.h
1507 xmake_file=m68k/x-apollo68
1509 extra_headers=math-68881.h
1512 m68k-altos-sysv*) # Altos 3068
1513 if test x$gas = xyes
1515 tm_file=m68k/altos3068.h
1518 echo "The Altos is supported only with the GNU assembler" 1>&2
1521 extra_headers=math-68881.h
1523 m68k-bull-sysv*) # Bull DPX/2
1524 if test x$gas = xyes
1526 if test x$stabs = xyes
1528 tm_file=m68k/dpx2cdbx.h
1530 tm_file=m68k/dpx2g.h
1535 xm_file="xm-alloca.h ${xm_file}"
1537 xmake_file=m68k/x-dpx2
1539 extra_headers=math-68881.h
1541 m68k-atari-sysv4*) # Atari variant of V.4.
1542 tm_file=m68k/atari.h
1543 xm_file="xm-alloca.h ${xm_file}"
1544 xm_defines="USG FULL_PROTOTYPES"
1546 extra_parts="crtbegin.o crtend.o"
1547 extra_headers=math-68881.h
1550 m68k-motorola-sysv*)
1551 tm_file=m68k/mot3300.h
1552 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1553 xm_defines=NO_SYS_SIGLIST
1554 if test x$gas = xyes
1556 xmake_file=m68k/x-mot3300-gas
1557 if test x$gnu_ld = xyes
1559 tmake_file=m68k/t-mot3300-gald
1561 tmake_file=m68k/t-mot3300-gas
1565 xmake_file=m68k/x-mot3300
1566 if test x$gnu_ld = xyes
1568 tmake_file=m68k/t-mot3300-gld
1570 tmake_file=m68k/t-mot3300
1574 gdb_needs_out_file_path=yes
1575 extra_parts="crt0.o mcrt0.o"
1576 extra_headers=math-68881.h
1579 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1580 tm_file=m68k/tower-as.h
1581 xm_defines="USG SVR3"
1582 xmake_file=m68k/x-tower
1583 extra_parts="crtbegin.o crtend.o"
1584 extra_headers=math-68881.h
1587 tm_file=m68k/plexus.h
1588 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1591 extra_headers=math-68881.h
1595 xm_file="xm-alloca.h ${xm_file}"
1597 extra_headers=math-68881.h
1600 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1601 xm_defines="USG unos"
1602 xmake_file=m68k/x-crds
1605 extra_headers=math-68881.h
1607 m68k-cbm-sysv4*) # Commodore variant of V.4.
1609 xm_file="xm-alloca.h ${xm_file}"
1610 xm_defines="USG FULL_PROTOTYPES"
1611 xmake_file=m68k/x-amix
1613 extra_parts="crtbegin.o crtend.o"
1614 extra_headers=math-68881.h
1618 tm_file=m68k/ccur-GAS.h
1619 xmake_file=m68k/x-ccur
1620 extra_headers=math-68881.h
1624 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1625 tm_file=m68k/hp3bsd44.h
1626 xmake_file=m68k/x-hp3bsd44
1628 extra_headers=math-68881.h
1631 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1632 tm_file=m68k/hp3bsd.h
1634 extra_headers=math-68881.h
1638 if test x$with_fp = xno
1640 tm_file=m68k/isi-nfp.h
1646 extra_headers=math-68881.h
1648 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1649 xm_file="xm_alloca.h ${xm_file}"
1650 xm_defines="USG NO_SYS_SIGLIST"
1651 if test x$gas = xyes
1653 xmake_file=m68k/x-hp320g
1654 tm_file=m68k/hp320g.h
1656 xmake_file=m68k/x-hp320
1657 tm_file=m68k/hpux7.h
1659 install_headers_dir=install-headers-cpio
1661 extra_headers=math-68881.h
1664 m68k-hp-hpux*) # HP 9000 series 300
1665 xm_file="xm_alloca.h ${xm_file}"
1666 xm_defines="USG NO_SYS_SIGLIST"
1667 if test x$gas = xyes
1669 xmake_file=m68k/x-hp320g
1670 tm_file=m68k/hp320g.h
1672 xmake_file=m68k/x-hp320
1673 tm_file=m68k/hp320.h
1675 install_headers_dir=install-headers-cpio
1677 extra_headers=math-68881.h
1681 tm_file=m68k/sun3mach.h
1683 extra_headers=math-68881.h
1687 if test x$gas = xyes
1689 tm_file=m68k/news3gas.h
1691 tm_file=m68k/news3.h
1694 extra_headers=math-68881.h
1697 m68k-sony-bsd* | m68k-sony-newsos*)
1698 if test x$gas = xyes
1700 tm_file=m68k/newsgas.h
1705 extra_headers=math-68881.h
1708 m68k-next-nextstep2*)
1709 tm_file=m68k/next21.h
1710 xm_file="m68k/xm-next.h ${xm_file}"
1711 tmake_file=m68k/t-next
1712 xmake_file=m68k/x-next
1713 extra_objs=nextstep.o
1714 extra_headers=math-68881.h
1718 m68k-next-nextstep3*)
1720 xm_file="m68k/xm-next.h ${xm_file}"
1721 tmake_file=m68k/t-next
1722 xmake_file=m68k/x-next
1723 extra_objs=nextstep.o
1724 extra_headers=math-68881.h
1726 if test x$enable_threads = xyes; then
1731 if test x$with_fp = xno
1733 tm_file=m68k/sun3n3.h
1735 tm_file=m68k/sun3o3.h
1739 extra_headers=math-68881.h
1741 m68k-sun-sunos*) # For SunOS 4 (the default).
1742 if test x$with_fp = xno
1744 tm_file=m68k/sun3n.h
1750 extra_headers=math-68881.h
1753 tm_file=m68k/vxm68k.h
1754 tmake_file=m68k/t-vxworks68
1755 extra_headers=math-68881.h
1756 thread_file='vxworks'
1760 tmake_file=m68k/t-m68kbare
1761 tm_file="m68k/m68k-aout.h libgloss.h"
1762 extra_headers=math-68881.h
1766 tmake_file=m68k/t-m68kbare
1767 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1768 extra_headers=math-68881.h
1772 if test x$gas = xyes
1776 tm_file=m68k/lynx-ng.h
1778 xm_file=m68k/xm-lynx.h
1780 tmake_file=m68k/t-lynx
1781 extra_headers=math-68881.h
1785 tm_file=m68k/netbsd.h
1786 xm_file="xm-netbsd.h ${xm_file}"
1787 # On NetBSD, the headers are already okay, except for math.h.
1788 fixincludes=fixinc.wrap
1792 m68k-*-sysv3*) # Motorola m68k's running system V.3
1793 xm_file="xm-alloca.h ${xm_file}"
1795 xmake_file=m68k/x-m68kv
1796 extra_parts="crtbegin.o crtend.o"
1797 extra_headers=math-68881.h
1800 m68k-*-sysv4*) # Motorola m68k's running system V.4
1801 tm_file=m68k/m68kv4.h
1802 xm_file="xm-alloca.h ${xm_file}"
1805 extra_parts="crtbegin.o crtend.o"
1806 extra_headers=math-68881.h
1809 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1812 tm_file=m68k/linux-aout.h
1813 tmake_file="t-linux-aout m68k/t-linux-aout"
1814 fixincludes=Makefile.in # The headers are ok already.
1815 extra_headers=math-68881.h
1819 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1820 # with ELF format using the
1821 # GNU/Linux C library 5
1823 tm_file=m68k/linux.h
1824 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1825 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1826 fixincludes=Makefile.in # The headers are ok already.
1827 extra_headers=math-68881.h
1831 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1832 # with ELF format using glibc 2
1833 # aka the GNU/Linux C library 6.
1835 tm_file=m68k/linux.h
1836 tmake_file="t-linux m68k/t-linux"
1837 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1838 fixincludes=Makefile.in # The headers are ok already.
1839 extra_headers=math-68881.h
1842 if test x$enable_threads = xyes; then
1847 tmake_file=m68k/t-m68kbare
1848 tm_file=m68k/m68k-psos.h
1849 extra_headers=math-68881.h
1853 tmake_file="m68k/t-m68kbare t-rtems"
1854 tm_file=m68k/rtems.h
1855 extra_headers=math-68881.h
1862 tm_file=m88k/dguxbcs.h
1863 tmake_file=m88k/t-dguxbcs
1867 tmake_file=m88k/t-dgux
1870 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1871 xmake_file=m88k/x-dgux
1872 if test x$gas = xyes
1874 tmake_file=m88k/t-dgux-gas
1876 fixincludes=fixinc.dgux
1878 m88k-dolphin-sysv3*)
1879 tm_file=m88k/dolph.h
1880 extra_parts="crtbegin.o crtend.o"
1881 xm_file="m88k/xm-sysv3.h ${xm_file}"
1882 xmake_file=m88k/x-dolph
1883 if test x$gas = xyes
1885 tmake_file=m88k/t-m88k-gas
1888 m88k-tektronix-sysv3)
1889 tm_file=m88k/tekXD88.h
1890 extra_parts="crtbegin.o crtend.o"
1891 xm_file="m88k/xm-sysv3.h ${xm_file}"
1892 xmake_file=m88k/x-tekXD88
1893 if test x$gas = xyes
1895 tmake_file=m88k/t-m88k-gas
1899 tm_file=m88k/m88k-aout.h
1902 tm_file=m88k/m88k-coff.h
1903 tmake_file=m88k/t-bug
1907 extra_parts="crtbegin.o crtend.o"
1908 if test x$gas = xyes
1910 tmake_file=m88k/t-luna-gas
1912 tmake_file=m88k/t-luna
1916 tm_file=m88k/sysv3.h
1917 extra_parts="crtbegin.o crtend.o"
1918 xm_file="m88k/xm-sysv3.h ${xm_file}"
1919 xmake_file=m88k/x-sysv3
1920 if test x$gas = xyes
1922 tmake_file=m88k/t-m88k-gas
1926 tm_file=m88k/sysv4.h
1927 extra_parts="crtbegin.o crtend.o"
1928 xmake_file=m88k/x-sysv4
1929 tmake_file=m88k/t-sysv4
1931 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1932 tm_file=mips/iris6.h
1933 xm_file=mips/xm-iris6.h
1934 fixincludes=fixinc.irix
1935 xmake_file=mips/x-iris6
1936 tmake_file=mips/t-iris6
1937 # if test x$enable_threads = xyes; then
1938 # thread_file='irix'
1942 tm_file="mips/elf.h libgloss.h"
1943 tmake_file=mips/t-ecoff
1946 extra_parts="crtbegin.o crtend.o"
1947 # thread_file='vxworks'
1949 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1950 tm_file="mips/iris6.h mips/cross64.h"
1952 xm_file="mips/xm-iris5.h"
1953 fixincludes=Makefile.in
1954 xmake_file=mips/x-iris
1955 tmake_file=mips/t-cross64
1956 # See comment in mips/iris[56].h files.
1958 # if test x$enable_threads = xyes; then
1959 # thread_file='irix'
1963 if test x$gas = xyes
1965 if test x$stabs = xyes
1967 tm_file=mips/iris5gdb.h
1969 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1972 tm_file=mips/sni-svr4.h
1975 xmake_file=mips/x-sni-svr4
1976 tmake_file=mips/t-mips-gas
1977 if test x$gnu_ld != xyes
1982 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1983 if test x$gas = xyes
1985 tm_file="mips/iris5.h mips/iris5gas.h"
1986 if test x$stabs = xyes
1988 tm_file="${tm_file} dbx.h"
1991 tm_file=mips/iris5.h
1994 xm_file="mips/xm-iris5.h"
1995 fixincludes=fixinc.irix
1996 xmake_file=mips/x-iris
1997 # mips-tfile doesn't work yet
1998 tmake_file=mips/t-mips-gas
1999 # See comment in mips/iris5.h file.
2001 # if test x$enable_threads = xyes; then
2002 # thread_file='irix'
2005 mips-sgi-irix4loser*) # Mostly like a MIPS.
2006 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2007 if test x$stabs = xyes; then
2008 tm_file="${tm_file} dbx.h"
2011 xmake_file=mips/x-iris
2012 if test x$gas = xyes
2014 tmake_file=mips/t-mips-gas
2016 extra_passes="mips-tfile mips-tdump"
2018 if test x$gnu_ld != xyes
2022 # if test x$enable_threads = xyes; then
2023 # thread_file='irix'
2026 mips-sgi-irix4*) # Mostly like a MIPS.
2027 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2028 if test x$stabs = xyes; then
2029 tm_file="${tm_file} dbx.h"
2032 xmake_file=mips/x-iris
2033 if test x$gas = xyes
2035 tmake_file=mips/t-mips-gas
2037 extra_passes="mips-tfile mips-tdump"
2039 if test x$gnu_ld != xyes
2043 # if test x$enable_threads = xyes; then
2044 # thread_file='irix'
2047 mips-sgi-*) # Mostly like a MIPS.
2048 tm_file="mips/iris3.h ${tm_file}"
2049 if test x$stabs = xyes; then
2050 tm_file="${tm_file} dbx.h"
2053 xmake_file=mips/x-iris3
2054 if test x$gas = xyes
2056 tmake_file=mips/t-mips-gas
2058 extra_passes="mips-tfile mips-tdump"
2060 if test x$gnu_ld != xyes
2065 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2066 tm_file="mips/osfrose.h ${tm_file}"
2067 xmake_file=mips/x-osfrose
2068 tmake_file=mips/t-osfrose
2069 extra_objs=halfpic.o
2072 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2073 tm_file=mips/dec-osf1.h
2074 if test x$stabs = xyes; then
2075 tm_file="${tm_file} dbx.h"
2077 xmake_file=mips/x-dec-osf1
2078 if test x$gas = xyes
2080 tmake_file=mips/t-mips-gas
2082 tmake_file=mips/t-ultrix
2083 extra_passes="mips-tfile mips-tdump"
2085 if test x$gnu_ld != xyes
2090 mips-dec-bsd*) # Decstation running 4.4 BSD
2091 tm_file=mips/dec-bsd.h
2093 if test x$gas = xyes
2095 tmake_file=mips/t-mips-gas
2097 tmake_file=mips/t-ultrix
2098 extra_passes="mips-tfile mips-tdump"
2100 if test x$gnu_ld != xyes
2105 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2106 tm_file=mips/netbsd.h
2107 xm_file="xm-netbsd.h ${xm_file}"
2108 # On NetBSD, the headers are already okay, except for math.h.
2109 fixincludes=fixinc.wrap
2112 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2113 tm_file="mips/news4.h ${tm_file}"
2114 if test x$stabs = xyes; then
2115 tm_file="${tm_file} dbx.h"
2117 if test x$gas = xyes
2119 tmake_file=mips/t-mips-gas
2121 extra_passes="mips-tfile mips-tdump"
2123 if test x$gnu_ld != xyes
2127 xmake_file=mips/x-sony
2129 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2130 # That is based on svr4.
2131 # t-svr4 is not right because this system doesn't use ELF.
2132 tm_file="mips/news5.h ${tm_file}"
2133 if test x$stabs = xyes; then
2134 tm_file="${tm_file} dbx.h"
2136 xm_file="xm-siglist.h ${xm_file}"
2138 if test x$gas = xyes
2140 tmake_file=mips/t-mips-gas
2142 extra_passes="mips-tfile mips-tdump"
2144 if test x$gnu_ld != xyes
2149 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2150 tm_file="mips/svr4-5.h mips/svr4-t.h"
2151 if test x$stabs = xyes; then
2152 tm_file="${tm_file} dbx.h"
2154 xm_file="xm-siglist.h ${xm_file}"
2156 xmake_file=mips/x-sysv
2157 if test x$gas = xyes
2159 tmake_file=mips/t-mips-gas
2160 extra_parts="crtbegin.o crtend.o"
2162 tmake_file=mips/t-mips
2163 extra_passes="mips-tfile mips-tdump"
2165 if test x$gnu_ld != xyes
2170 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2171 tm_file="mips/ultrix.h ${tm_file}"
2172 if test x$stabs = xyes; then
2173 tm_file="${tm_file} dbx.h"
2175 xmake_file=mips/x-ultrix
2176 if test x$gas = xyes
2178 tmake_file=mips/t-mips-gas
2180 tmake_file=mips/t-ultrix
2181 extra_passes="mips-tfile mips-tdump"
2183 if test x$gnu_ld != xyes
2189 mips-*-riscos[56789]bsd*)
2191 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2192 if test x$stabs = xyes; then
2193 tm_file="${tm_file} dbx.h"
2195 if test x$gas = xyes
2197 tmake_file=mips/t-bsd-gas
2199 tmake_file=mips/t-bsd
2200 extra_passes="mips-tfile mips-tdump"
2202 if test x$gnu_ld != xyes
2208 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2210 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2211 if test x$stabs = xyes; then
2212 tm_file="${tm_file} dbx.h"
2214 if test x$gas = xyes
2216 tmake_file=mips/t-bsd-gas
2218 tmake_file=mips/t-bsd
2219 extra_passes="mips-tfile mips-tdump"
2221 if test x$gnu_ld != xyes
2227 mips-*-riscos[56789]sysv4*)
2229 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2230 if test x$stabs = xyes; then
2231 tm_file="${tm_file} dbx.h"
2233 xm_file="xm-siglist.h ${xm_file}"
2234 xmake_file=mips/x-sysv
2235 if test x$gas = xyes
2237 tmake_file=mips/t-svr4-gas
2239 tmake_file=mips/t-svr4
2240 extra_passes="mips-tfile mips-tdump"
2242 if test x$gnu_ld != xyes
2248 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2250 tm_file="mips/svr4-4.h ${tm_file}"
2251 if test x$stabs = xyes; then
2252 tm_file="${tm_file} dbx.h"
2255 xmake_file=mips/x-sysv
2256 if test x$gas = xyes
2258 tmake_file=mips/t-svr4-gas
2260 tmake_file=mips/t-svr4
2261 extra_passes="mips-tfile mips-tdump"
2263 if test x$gnu_ld != xyes
2269 mips-*-riscos[56789]sysv*)
2271 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2272 if test x$stabs = xyes; then
2273 tm_file="${tm_file} dbx.h"
2276 xmake_file=mips/x-sysv
2277 if test x$gas = xyes
2279 tmake_file=mips/t-svr3-gas
2281 tmake_file=mips/t-svr3
2282 extra_passes="mips-tfile mips-tdump"
2284 if test x$gnu_ld != xyes
2289 mips-*-sysv* | mips-*-riscos*sysv*)
2290 tm_file="mips/svr3-4.h ${tm_file}"
2291 if test x$stabs = xyes; then
2292 tm_file="${tm_file} dbx.h"
2295 xmake_file=mips/x-sysv
2296 if test x$gas = xyes
2298 tmake_file=mips/t-svr3-gas
2300 tmake_file=mips/t-svr3
2301 extra_passes="mips-tfile mips-tdump"
2303 if test x$gnu_ld != xyes
2309 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2311 tm_file=mips/mips-5.h
2312 if test x$stabs = xyes; then
2313 tm_file="${tm_file} dbx.h"
2315 if test x$gas = xyes
2317 tmake_file=mips/t-mips-gas
2319 extra_passes="mips-tfile mips-tdump"
2321 if test x$gnu_ld != xyes
2329 tm_file=mips/ecoffl.h
2330 if test x$stabs = xyes; then
2331 tm_file="${tm_file} dbx.h"
2333 tmake_file=mips/t-ecoff
2336 tm_file="gofast.h mips/ecoff.h"
2337 if test x$stabs = xyes; then
2338 tm_file="${tm_file} dbx.h"
2340 tmake_file=mips/t-ecoff
2343 tm_file="mips/elfl.h libgloss.h"
2344 tmake_file=mips/t-ecoff
2347 tm_file="mips/elf.h libgloss.h"
2348 tmake_file=mips/t-ecoff
2351 tm_file="mips/elfl64.h libgloss.h"
2352 tmake_file=mips/t-ecoff
2354 mips64orionel-*-elf*)
2355 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2356 tmake_file=mips/t-ecoff
2359 tm_file="mips/elf64.h libgloss.h"
2360 tmake_file=mips/t-ecoff
2363 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2364 tmake_file=mips/t-ecoff
2366 mips64orion-*-rtems*)
2367 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2368 tmake_file="mips/t-ecoff t-rtems"
2371 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2372 tmake_file=mips/t-r3900
2375 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2376 tmake_file=mips/t-r3900
2377 # FIXME mips-elf should be fixed to use crtstuff.
2380 mips-*-*) # Default MIPS RISC-OS 4.0.
2381 if test x$stabs = xyes; then
2382 tm_file="${tm_file} dbx.h"
2384 if test x$gas = xyes
2386 tmake_file=mips/t-mips-gas
2388 extra_passes="mips-tfile mips-tdump"
2390 if test x$gnu_ld != xyes
2397 tm_file="mn10200/mn10200.h"
2398 if test x$stabs = xyes
2400 tm_file="${tm_file} dbx.h"
2406 tm_file="mn10300/mn10300.h"
2407 if test x$stabs = xyes
2409 tm_file="${tm_file} dbx.h"
2414 tm_file=ns32k/encore.h
2418 tm_file=ns32k/sequent.h
2422 tm_file=ns32k/tek6100.h
2426 tm_file=ns32k/tek6200.h
2429 # This has not been updated to GCC 2.
2432 # xmake_file=ns32k/x-genix
2433 # tm_file=ns32k/genix.h
2437 tm_file=ns32k/merlin.h
2441 tm_file=ns32k/pc532-mach.h
2445 tm_file=ns32k/pc532-min.h
2446 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2451 tm_file=ns32k/netbsd.h
2452 xm_file="xm-netbsd.h ${xm_file}"
2453 # On NetBSD, the headers are already okay, except for math.h.
2454 fixincludes=fixinc.wrap
2458 tm_file="${tm_file} pdp11/2bsd.h"
2464 xmake_file=pyr/x-pyr
2471 xmake_file=romp/x-mach
2476 tm_file=rs6000/beos.h
2477 xm_file=rs6000/xm-beos.h
2478 tmake_file=rs6000/t-beos
2479 xmake_file=rs6000/x-beos
2481 powerpc-*-sysv* | powerpc-*-elf*)
2482 tm_file=rs6000/sysv4.h
2483 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2484 xm_defines="USG POSIX"
2485 extra_headers=ppc-asm.h
2486 if test x$gas = xyes
2488 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2490 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2492 xmake_file=rs6000/x-sysv4
2495 tm_file=rs6000/eabiaix.h
2496 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2497 fixincludes=Makefile.in
2498 extra_headers=ppc-asm.h
2501 tm_file=rs6000/eabisim.h
2502 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2503 fixincludes=Makefile.in
2504 extra_headers=ppc-asm.h
2507 tm_file=rs6000/eabi.h
2508 if test x$gas = xyes
2510 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2512 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2514 fixincludes=Makefile.in
2515 extra_headers=ppc-asm.h
2518 tm_file=rs6000/rtems.h
2519 if test x$gas = xyes
2521 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2523 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2525 fixincludes=Makefile.in
2526 extra_headers=ppc-asm.h
2528 powerpc-*-linux-gnulibc1)
2529 tm_file=rs6000/linux.h
2530 xm_file=rs6000/xm-sysv4.h
2531 out_file=rs6000/rs6000.c
2532 if test x$gas = xyes
2534 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2536 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2539 fixincludes=Makefile.in
2540 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2541 extra_headers=ppc-asm.h
2542 if test x$enable_threads = xyes; then
2546 powerpc-*-linux-gnu*)
2547 tm_file=rs6000/linux.h
2548 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2549 xm_defines="USG ${xm_defines}"
2550 out_file=rs6000/rs6000.c
2551 if test x$gas = xyes
2553 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2555 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2558 fixincludes=Makefile.in
2559 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2560 extra_headers=ppc-asm.h
2561 if test x$enable_threads = xyes; then
2565 powerpc-wrs-vxworks*)
2567 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2568 xm_defines="USG POSIX"
2569 tm_file=rs6000/vxppc.h
2570 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2571 extra_headers=ppc-asm.h
2572 thread_file='vxworks'
2574 powerpcle-*-sysv* | powerpcle-*-elf*)
2575 tm_file=rs6000/sysv4le.h
2576 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2577 xm_defines="USG POSIX"
2578 if test x$gas = xyes
2580 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2582 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2584 xmake_file=rs6000/x-sysv4
2585 extra_headers=ppc-asm.h
2587 powerpcle-*-eabisim*)
2588 tm_file=rs6000/eabilesim.h
2589 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2590 fixincludes=Makefile.in
2591 extra_headers=ppc-asm.h
2594 tm_file=rs6000/eabile.h
2595 if test x$gas = xyes
2597 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2599 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2601 fixincludes=Makefile.in
2602 extra_headers=ppc-asm.h
2604 powerpcle-*-winnt* )
2605 tm_file=rs6000/win-nt.h
2606 tmake_file=rs6000/t-winnt
2608 fixincludes=Makefile.in
2609 if test x$enable_threads = xyes; then
2612 extra_headers=ppc-asm.h
2614 powerpcle-*-pe | powerpcle-*-cygwin32)
2615 tm_file=rs6000/cygwin32.h
2616 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2617 tmake_file=rs6000/t-winnt
2618 xmake_file=rs6000/x-cygwin32
2620 fixincludes=Makefile.in
2621 if test x$enable_threads = xyes; then
2625 extra_headers=ppc-asm.h
2627 powerpcle-*-solaris2*)
2628 tm_file=rs6000/sol2.h
2629 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2630 xm_defines="USG POSIX"
2631 if test x$gas = xyes
2633 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2635 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2637 xmake_file=rs6000/x-sysv4
2642 fixincludes=fixinc.svr4;;
2644 fixincludes=fixinc.wrap;;
2646 extra_headers=ppc-asm.h
2649 rs6000-ibm-aix3.[01]*)
2651 tm_file=rs6000/aix31.h
2652 xmake_file=rs6000/x-aix31
2656 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2658 tm_file=rs6000/aix3newas.h
2659 if test x$host != x$target
2661 tmake_file=rs6000/t-xnewas
2663 tmake_file=rs6000/t-newas
2668 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2670 tm_file=rs6000/aix41.h
2671 if test x$host != x$target
2673 tmake_file=rs6000/t-xnewas
2675 tmake_file=rs6000/t-newas
2677 xmake_file=rs6000/x-aix41
2681 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2683 tm_file=rs6000/aix43.h
2684 if test x$host != x$target
2686 tmake_file=rs6000/t-xaix43
2688 tmake_file=rs6000/t-aix43
2690 xmake_file=rs6000/x-aix43
2694 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2696 tm_file=rs6000/aix43.h
2697 if test x$host != x$target
2699 tmake_file=rs6000/t-xaix43
2701 tmake_file=rs6000/t-aix43
2703 xmake_file=rs6000/x-aix43
2713 tm_file=rs6000/mach.h
2714 xm_file="${xm_file} rs6000/xm-mach.h"
2715 xmake_file=rs6000/x-mach
2719 tm_file=rs6000/lynx.h
2720 xm_file=rs6000/xm-lynx.h
2721 tmake_file=rs6000/t-rs6000
2722 xmake_file=rs6000/x-lynx
2730 tmake_file="sh/t-sh t-rtems"
2731 tm_file=sh/rtemself.h
2735 tmake_file="sh/t-sh t-rtems"
2744 xm_file="xm-alloca.h ${xm_file}"
2747 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2748 tm_file=sparc/vxsparc.h
2749 tmake_file=sparc/t-vxsparc
2751 thread_file='vxworks'
2754 tmake_file=sparc/t-sparcbare
2755 tm_file="sparc/aout.h libgloss.h"
2758 tm_file=sparc/netbsd.h
2759 xm_file="xm-netbsd.h ${xm_file}"
2760 # On NetBSD, the headers are already okay, except for math.h.
2761 fixincludes=fixinc.wrap
2769 tmake_file=sparc/t-elf
2770 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2774 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2775 xm_file="${xm_file} sparc/xm-linux.h"
2776 tm_file=sparc/linux-aout.h
2778 fixincludes=Makefile.in #On Linux, the headers are ok already.
2781 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2782 xm_file="${xm_file} sparc/xm-linux.h"
2784 tm_file=sparc/linux.h
2785 tmake_file="t-linux t-linux-gnulibc1"
2786 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2787 fixincludes=Makefile.in #On Linux, the headers are ok already.
2790 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2791 xm_file="${xm_file} sparc/xm-linux.h"
2793 tm_file=sparc/linux.h
2794 tmake_file="t-linux"
2795 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2796 fixincludes=Makefile.in #On Linux, the headers are ok already.
2798 if test x$enable_threads = xyes; then
2803 if test x$gas = xyes
2805 tm_file=sparc/lynx.h
2807 tm_file=sparc/lynx-ng.h
2809 xm_file=sparc/xm-lynx.h
2810 tmake_file=sparc/t-sunos41
2814 tmake_file="sparc/t-sparcbare t-rtems"
2815 tm_file=sparc/rtems.h
2818 if test x$gnu_ld = xyes
2820 tm_file=sparc/sol2.h
2822 tm_file=sparc/sol2-sld.h
2824 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2825 xm_defines="USG POSIX"
2826 tmake_file=sparc/t-sol2
2827 xmake_file=sparc/x-sysv4
2828 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2833 fixincludes=fixinc.svr4;;
2835 fixincludes=fixinc.wrap;;
2838 if test x${enable_threads} = x; then
2839 enable_threads=$have_pthread_h
2840 if test x${enable_threads} = x; then
2841 enable_threads=$have_thread_h
2844 if test x${enable_threads} = xyes; then
2845 if test x${have_pthread_h} = xyes; then
2848 thread_file='solaris'
2853 tm_file=sparc/sunos4.h
2854 tmake_file=sparc/t-sunos40
2858 tm_file=sparc/sunos4.h
2859 tmake_file=sparc/t-sunos41
2861 if test x$gas = xyes; then
2862 tm_file="${tm_file} sparc/sun4gas.h"
2866 tm_file=sparc/sun4o3.h
2870 tm_file=sparc/sysv4.h
2871 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2872 xm_defines="USG POSIX"
2874 xmake_file=sparc/x-sysv4
2875 extra_parts="crtbegin.o crtend.o"
2878 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2879 xm_defines="USG POSIX"
2880 tm_file=sparc/vxsim.h
2881 tmake_file=sparc/t-vxsparc
2882 xmake_file=sparc/x-sysv4
2885 tm_file="sparc/splet.h libgloss.h"
2886 tmake_file=sparc/t-splet
2889 tm_file="sparc/litecoff.h libgloss.h"
2890 tmake_file=sparc/t-sparclite
2893 tm_file="sparc/lite.h aoutos.h libgloss.h"
2894 tmake_file=sparc/t-sparclite
2897 tmake_file=sparc/t-sp64
2898 tm_file=sparc/sp64-aout.h
2901 tmake_file=sparc/t-sp64
2902 tm_file=sparc/sp64-elf.h
2903 extra_parts="crtbegin.o crtend.o"
2905 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2906 tmake_file=sparc/t-sp64
2907 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2908 tm_file=sparc/linux64.h
2910 fixincludes=Makefile.in # The headers are ok already.
2913 # This hasn't been upgraded to GCC 2.
2914 # tahoe-harris-*) # Harris tahoe, using COFF.
2915 # tm_file=tahoe/harris.h
2917 # tahoe-*-bsd*) # tahoe running BSD
2919 thumb-*-coff* | thumbel-*-coff*)
2921 out_file=arm/thumb.c
2922 xm_file=arm/xm-thumb.h
2923 md_file=arm/thumb.md
2924 tmake_file=arm/t-thumb
2925 fixincludes=Makefile.in # There is nothing to fix
2927 # This hasn't been upgraded to GCC 2.
2934 tm_file="v850/v850.h"
2935 xm_file="v850/xm-v850.h"
2936 tmake_file=v850/t-v850
2937 if test x$stabs = xyes
2939 tm_file="${tm_file} dbx.h"
2943 vax-*-bsd*) # vaxen running BSD
2947 vax-*-sysv*) # vaxen running system V
2948 tm_file="${tm_file} vax/vaxv.h"
2953 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2954 xm_file="xm-netbsd.h ${xm_file}"
2955 # On NetBSD, the headers are already okay, except for math.h.
2956 fixincludes=fixinc.wrap
2960 vax-*-ultrix*) # vaxen running ultrix
2961 tm_file="${tm_file} vax/ultrix.h"
2965 vax-*-vms*) # vaxen running VMS
2966 xm_file=vax/xm-vms.h
2970 vax-*-*) # vax default entry
2974 xm_file="${xm_file} xm-svr3"
2978 echo "Configuration $machine not supported" 1>&2
2985 ;; # Existing GNU/Linux systems do not use the GNU setup.
2987 # On the GNU system, the setup is just about the same on
2988 # each different CPU. The specific machines that GNU
2989 # supports are matched above and just set $cpu_type.
2990 xm_file="xm-gnu.h ${xm_file}"
2991 tm_file=${cpu_type}/gnu.h
2992 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2993 # GNU always uses ELF.
2995 # GNU tools are the only tools.
2998 # On GNU, the headers are already okay.
2999 fixincludes=Makefile.in
3000 xmake_file=x-linux # These details are the same as Linux.
3001 tmake_file=t-gnu # These are not.
3004 fixincludes=fixinc.svr4
3005 xmake_try_sysv=x-sysv
3006 install_headers_dir=install-headers-cpio
3009 install_headers_dir=install-headers-cpio
3013 # Distinguish i[34567]86
3014 # Also, do not run mips-tfile on MIPS if using gas.
3015 # Process --with-cpu= for PowerPC/rs6000
3016 target_cpu_default2=
3019 target_cpu_default2=1
3022 target_cpu_default2=2
3024 i686-*-* | i786-*-*)
3025 target_cpu_default2=3
3030 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3033 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3036 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3039 target_cpu_default2="MASK_CPU_EV5"
3043 if test x$gas = xyes
3045 if test "$target_cpu_default2" = ""
3047 target_cpu_default2="MASK_GAS"
3049 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3054 case "x$with_cpu" in
3057 target_cpu_default2="TARGET_CPU_generic"
3060 # Distinguish cores, and major variants
3061 # arm7m doesn't exist, but D & I don't affect code
3062 xarm[23678] | xarm250 | xarm[67][01]0 \
3063 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3064 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3065 | xstrongarm | xstrongarm110)
3066 target_cpu_default2="TARGET_CPU_$with_cpu"
3070 echo "--with-cpu must be passed a value" 1>&2
3075 if test x$pass2done = xyes
3077 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3084 mips*-*-ecoff* | mips*-*-elf*)
3085 if test x$gas = xyes
3087 if test x$gnu_ld = xyes
3089 target_cpu_default2=20
3091 target_cpu_default2=16
3096 if test x$gas = xyes
3098 target_cpu_default2=16
3101 powerpc*-*-* | rs6000-*-*)
3102 case "x$with_cpu" in
3106 xcommon | xpower | xpower2 | xpowerpc | xrios \
3107 | xrios1 | xrios2 | xrsc | xrsc1 \
3108 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3109 | x403 | x505 | x801 | x821 | x823 | x860)
3110 target_cpu_default2="\"$with_cpu\""
3114 echo "--with-cpu must be passed a value" 1>&2
3119 if test x$pass2done = xyes
3121 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3128 case ".$with_cpu" in
3130 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3132 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3133 target_cpu_default2="TARGET_CPU_$with_cpu"
3136 if test x$pass2done = xyes
3138 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3146 if test "$target_cpu_default2" != ""
3148 if test "$target_cpu_default" != ""
3150 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3152 target_cpu_default=$target_cpu_default2
3156 # No need for collect2 if we have the GNU linker.
3157 # Actually, there is now; GNU ld doesn't handle the EH info or
3158 # collecting for shared libraries.
3165 # Save data on machine being used to compile GCC in build_xm_file.
3166 # Save data on host machine in vars host_xm_file and host_xmake_file.
3167 if test x$pass1done = x
3169 if test x"$xm_file" = x
3170 then build_xm_file=$cpu_type/xm-$cpu_type.h
3171 else build_xm_file=$xm_file
3173 build_xm_defines=$xm_defines
3174 build_install_headers_dir=$install_headers_dir
3175 build_exeext=$exeext
3178 if test x$pass2done = x
3180 if test x"$xm_file" = x
3181 then host_xm_file=$cpu_type/xm-$cpu_type.h
3182 else host_xm_file=$xm_file
3184 host_xm_defines=$xm_defines
3185 if test x"$xmake_file" = x
3186 then xmake_file=$cpu_type/x-$cpu_type
3188 host_xmake_file="$xmake_file"
3189 host_truncate_target=$truncate_target
3190 host_extra_gcc_objs=$extra_gcc_objs
3191 host_extra_objs=$extra_host_objs
3198 extra_objs="${host_extra_objs} ${extra_objs}"
3200 # Default the target-machine variables that were not explicitly set.
3201 if test x"$tm_file" = x
3202 then tm_file=$cpu_type/$cpu_type.h; fi
3204 if test x$extra_headers = x
3205 then extra_headers=; fi
3207 if test x"$xm_file" = x
3208 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3210 if test x$md_file = x
3211 then md_file=$cpu_type/$cpu_type.md; fi
3213 if test x$out_file = x
3214 then out_file=$cpu_type/$cpu_type.c; fi
3216 if test x"$tmake_file" = x
3217 then tmake_file=$cpu_type/t-$cpu_type
3220 if test x$float_format = x
3221 then float_format=i64
3224 if test x$enable_haifa = x
3227 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3232 # Say what files are being used for the output code and MD file.
3233 echo "Using \`$srcdir/config/$out_file' to output insns."
3234 echo "Using \`$srcdir/config/$md_file' as machine description file."
3237 for f in $tm_file; do
3240 if test $count = ax; then
3241 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3243 echo "Using the following target machine macro files:"
3244 for f in $tm_file; do
3245 echo " $srcdir/config/$f"
3250 for f in $host_xm_file; do
3253 if test $count = ax; then
3254 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3256 echo "Using the following host machine macro files:"
3257 for f in $host_xm_file; do
3258 echo " $srcdir/config/$f"
3262 if test "$host_xm_file" != "$build_xm_file"; then
3264 for f in $build_xm_file; do
3267 if test $count = ax; then
3268 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3270 echo "Using the following build machine macro files:"
3271 for f in $build_xm_file; do
3272 echo " $srcdir/config/$f"
3277 if test x$thread_file = x; then
3278 if test x$target_thread_file != x; then
3279 thread_file=$target_thread_file
3281 thread_file='single'
3285 # Set up the header files.
3286 # $links is the list of header files to create.
3287 # $vars is the list of shell variables with file names to include.
3288 # auto-host.h is the file containing items generated by autoconf and is
3289 # the first file included by config.h.
3291 host_xm_file="auto-host.h ${host_xm_file}"
3293 # If host=build, it is correct to have hconfig include auto-host.h
3294 # as well. If host!=build, we are in error and need to do more
3295 # work to find out the build config parameters.
3296 if test x$host = x$build
3298 build_xm_file="auto-host.h ${build_xm_file}"
3300 # We create a subdir, then run autoconf in the subdir.
3301 # To prevent recursion we set host and build for the new
3302 # invocation of configure to the build for this invocation
3309 /*) realsrcdir=${srcdir};;
3310 *) realsrcdir=../${srcdir};;
3312 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3313 --target=$target --host=$build --build=$build
3315 # We just finished tests for the build machine, so rename
3316 # the file auto-build.h in the gcc directory.
3317 mv auto-host.h ../auto-build.h
3320 build_xm_file="auto-build.h ${build_xm_file}"
3323 vars="host_xm_file tm_file xm_file build_xm_file"
3324 links="config.h tm.h tconfig.h hconfig.h"
3325 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3328 if test -f config.status; then mv -f config.status config.bak; fi
3331 while test -n "$vars"
3333 set $vars; var=$1; shift; vars=$*
3334 set $links; link=$1; shift; links=$*
3335 set $defines; define=$1; shift; defines=$*
3339 # Define TARGET_CPU_DEFAULT if the system wants one.
3340 # This substitutes for lots of *.h files.
3341 if test "$target_cpu_default" != "" -a $link = tm.h
3343 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3346 for file in `eval echo '$'$var`; do
3347 echo "#include \"$file\"" >>$link
3350 for def in `eval echo '$'$define`; do
3351 echo "#ifndef $def" >>$link
3352 echo "#define $def" >>$link
3353 echo "#endif" >>$link
3357 # Truncate the target if necessary
3358 if test x$host_truncate_target != x; then
3359 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3362 # Get the version trigger filename from the toplevel
3363 if test "${with_gcc_version_trigger+set}" = set; then
3364 gcc_version_trigger=$with_gcc_version_trigger
3366 gcc_version_trigger=${srcdir}/version.c
3369 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3372 # Get an absolute path to the GCC top-level source directory
3378 # Conditionalize the makefile for this host machine.
3379 # Make-host contains the concatenation of all host makefile fragments
3380 # [there can be more than one]. This file is built by configure.frag.
3381 host_overrides=Make-host
3382 dep_host_xmake_file=
3383 for f in .. ${host_xmake_file}
3385 if test -f ${srcdir}/config/$f
3387 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3391 # Conditionalize the makefile for this target machine.
3392 # Make-target contains the concatenation of all host makefile fragments
3393 # [there can be more than one]. This file is built by configure.frag.
3394 target_overrides=Make-target
3396 for f in .. ${tmake_file}
3398 if test -f ${srcdir}/config/$f
3400 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3404 # If the host doesn't support symlinks, modify CC in
3405 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3406 # Otherwise, we can use "CC=$(CC)".
3408 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3410 cc_set_by_configure="\$(CC)"
3411 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3414 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3416 symbolic_link="cp -p"
3420 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3421 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3425 out_object_file=`basename $out_file .c`.o
3428 for f in $tm_file; do
3429 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3433 for f in $host_xm_file; do
3434 if test $f != "auto-host.h"; then
3435 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3437 host_xm_file_list="${host_xm_file_list} auto-host.h"
3442 for f in $build_xm_file; do
3443 if test $f != "auto-build.h"; then
3444 if test $f != "auto-host.h"; then
3445 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3447 build_xm_file_list="${build_xm_file_list} auto-host.h"
3450 build_xm_file_list="${build_xm_file_list} auto-build.h"
3454 # Define macro CROSS_COMPILE in compilation
3455 # if this is a cross-compiler.
3456 # Also use all.cross instead of all.internal
3457 # and add cross-make to Makefile.
3458 cross_overrides="/dev/null"
3459 if test x$host != x$target
3461 cross_defines="CROSS=-DCROSS_COMPILE"
3462 cross_overrides="${topdir}/cross-make"
3465 # When building gcc with a cross-compiler, we need to fix a few things.
3466 # This must come after cross-make as we want all.build to override
3468 build_overrides="/dev/null"
3469 if test x$build != x$host
3471 build_overrides="${topdir}/build-make"
3474 # Expand extra_headers to include complete path.
3475 # This substitutes for lots of t-* files.
3477 if test "x$extra_headers" = x
3480 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3481 for file in $extra_headers;
3483 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3487 if test x$use_collect2 = xno; then
3491 # Add a definition of USE_COLLECT2 if system wants one.
3492 # Also tell toplev.c what to do.
3493 # This substitutes for lots of t-* files.
3494 if test x$use_collect2 = x
3499 will_use_collect2="collect2"
3500 maybe_use_collect2="-DUSE_COLLECT2"
3504 # Set MD_DEPS if the real md file is in md.pre-cpp.
3505 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3506 # for line oriented comments, so we must always use a GNU cpp. If
3507 # building gcc with a cross compiler, use the cross compiler just
3508 # built. Otherwise, we can use the cpp just built.
3510 if test "x$md_cppflags" = x
3512 md_file_sub=$srcdir/config/$md_file
3517 # If we have gas in the build tree, make a link to it.
3518 if test -f ../gas/Makefile; then
3519 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3522 # If we have nm in the build tree, make a link to it.
3523 if test -f ../binutils/Makefile; then
3524 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3527 # If we have ld in the build tree, make a link to it.
3528 if test -f ../ld/Makefile; then
3529 # if test x$use_collect2 = x; then
3530 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3532 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3536 # Figure out what assembler alignment features are present.
3537 AC_MSG_CHECKING(assembler alignment features)
3539 gcc_cv_as_alignment_features=
3540 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,gcc$,gas,'`
3541 if test -x as$host_exeext; then
3542 # Build using assembler in the current directory.
3543 gcc_cv_as=./as$host_exeext
3544 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3545 # Single tree build which includes gas.
3546 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3549 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3551 if test x$gcc_cv_gas_version != x; then
3556 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3557 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3559 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3560 # Gas version 2.6 and later support for .balign and .p2align.
3561 # bytes to skip when using .p2align.
3562 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
3563 gcc_cv_as_alignment_features=".balign and .p2align"
3564 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3566 # Gas version 2.8 and later support specifying the maximum
3567 # bytes to skip when using .p2align.
3568 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
3569 gcc_cv_as_alignment_features=".p2align including maximum skip"
3570 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3573 elif test x$host = x$target; then
3575 gcc_cv_as=as$host_exeext
3577 if test x$gcc_cv_as != x; then
3578 # Check if we have .balign and .p2align
3579 echo ".balign 4" > conftest.s
3580 echo ".p2align 2" >> conftest.s
3581 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3582 gcc_cv_as_alignment_features=".balign and .p2align"
3583 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3585 rm -f conftest.s conftest.o
3586 # Check if specifying the maximum bytes to skip when
3587 # using .p2align is supported.
3588 echo ".p2align 4,,7" > conftest.s
3589 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3590 gcc_cv_as_alignment_features=".p2align including maximum skip"
3591 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3593 rm -f conftest.s conftest.o
3595 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3597 # Figure out what language subdirectories are present.
3599 for lang in ${srcdir}/*/config-lang.in ..
3603 # The odd quoting in the next line works around
3604 # an apparent bug in bash 1.12 on linux.
3606 ${srcdir}/[*]/config-lang.in) ;;
3607 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3612 # Make gthr-default.h if we have a thread file.
3614 if test $thread_file != single; then
3615 rm -f gthr-default.h
3616 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3617 gthread_flags=-DHAVE_GTHR_DEFAULT
3619 AC_SUBST(gthread_flags)
3621 # Make empty files to contain the specs and options for each language.
3622 # Then add #include lines to for a compiler that has specs and/or options.
3627 rm -f specs.h options.h gencheck.h
3628 touch specs.h options.h gencheck.h
3629 for subdir in . $subdirs
3631 if test -f $srcdir/$subdir/lang-specs.h; then
3632 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3633 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3635 if test -f $srcdir/$subdir/lang-options.h; then
3636 echo "#include \"$subdir/lang-options.h\"" >>options.h
3637 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3639 if test -f $srcdir/$subdir/$subdir-tree.def; then
3640 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3641 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3645 # These (without "all_") are set in each config-lang.in.
3646 # `language' must be a single word so is spelled singularly.
3652 all_outputs=Makefile
3653 # List of language makefile fragments.
3658 # Add the language fragments.
3659 # Languages are added via two mechanisms. Some information must be
3660 # recorded in makefile variables, these are defined in config-lang.in.
3661 # We accumulate them and plug them into the main Makefile.
3662 # The other mechanism is a set of hooks for each of the main targets
3663 # like `clean', `install', etc.
3665 language_fragments="Make-lang"
3666 language_hooks="Make-hooks"
3669 for s in .. $subdirs
3681 . ${srcdir}/$s/config-lang.in
3682 if test "x$language" = x
3684 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3687 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3688 all_languages="$all_languages $language"
3689 if test "x$boot_language" = xyes
3691 all_boot_languages="$all_boot_languages $language"
3693 all_compilers="$all_compilers $compilers"
3694 all_stagestuff="$all_stagestuff $stagestuff"
3695 all_diff_excludes="$all_diff_excludes $diff_excludes"
3696 all_headers="$all_headers $headers"
3697 all_outputs="$all_outputs $outputs"
3698 if test x$outputs = x
3700 oldstyle_subdirs="$oldstyle_subdirs $s"
3702 all_lib2funcs="$all_lib2funcs $lib2funcs"
3706 # Since we can't use `::' targets, we link each language in
3707 # with a set of hooks, reached indirectly via lang.${target}.
3711 target_list="all.build all.cross start.encap rest.encap \
3713 install-normal install-common install-info install-man \
3715 mostlyclean clean distclean extraclean maintainer-clean \
3716 stage1 stage2 stage3 stage4"
3717 for t in $target_list
3720 for l in .. $all_languages
3722 if test $l != ".."; then
3726 echo "lang.$t: $x" >> Make-hooks
3729 # If we're not building in srcdir, create .gdbinit.
3731 if test ! -f Makefile.in; then
3732 echo "dir ." > .gdbinit
3733 echo "dir ${srcdir}" >> .gdbinit
3734 if test x$gdb_needs_out_file_path = xyes
3736 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3738 if test "x$subdirs" != x; then
3741 echo "dir ${srcdir}/$s" >> .gdbinit
3744 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3747 # Define variables host_canonical and build_canonical
3748 # because some Cygnus local changes in the Makefile depend on them.
3749 build_canonical=${build}
3750 host_canonical=${host}
3752 if test "${host}" != "${target}" ; then
3753 target_subdir=${target}/
3755 AC_SUBST(build_canonical)
3756 AC_SUBST(host_canonical)
3757 AC_SUBST(target_subdir)
3759 # If this is using newlib, then define inhibit_libc in
3760 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3761 # libgcc.a, but that's OK because newib should have its own version of
3764 if test x$with_newlib = xyes; then
3765 inhibit_libc=-Dinhibit_libc
3767 AC_SUBST(inhibit_libc)
3769 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3772 if test x$enable_haifa = xyes; then
3773 echo "Using the Haifa scheduler."
3775 sched_cflags=-DHAIFA
3777 AC_SUBST(sched_prefix)
3778 AC_SUBST(sched_cflags)
3779 if test x$enable_haifa != x; then
3780 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3781 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3789 # Warn if using init_priority.
3790 AC_MSG_CHECKING(whether to enable init_priority by default)
3791 if test x$enable_init_priority != xyes; then
3792 enable_init_priority=no
3794 AC_MSG_RESULT($enable_init_priority)
3796 # Nothing to do for FLOAT_H, float_format already handled.
3800 # Process the language and host/target makefile fragments.
3801 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3803 # Substitute configuration variables
3805 AC_SUBST(all_languages)
3806 AC_SUBST(all_boot_languages)
3807 AC_SUBST(all_compilers)
3808 AC_SUBST(all_lang_makefiles)
3809 AC_SUBST(all_stagestuff)
3810 AC_SUBST(all_diff_excludes)
3811 AC_SUBST(all_lib2funcs)
3812 AC_SUBST(all_headers)
3814 AC_SUBST(extra_passes)
3815 AC_SUBST(extra_programs)
3816 AC_SUBST(extra_parts)
3817 AC_SUBST(extra_c_objs)
3818 AC_SUBST(extra_cxx_objs)
3819 AC_SUBST(extra_cpp_objs)
3820 AC_SUBST(extra_c_flags)
3821 AC_SUBST(extra_objs)
3822 AC_SUBST(host_extra_gcc_objs)
3823 AC_SUBST(extra_headers_list)
3824 AC_SUBST(dep_host_xmake_file)
3825 AC_SUBST(dep_tmake_file)
3827 AC_SUBST(out_object_file)
3829 AC_SUBST(tm_file_list)
3830 AC_SUBST(build_xm_file_list)
3831 AC_SUBST(host_xm_file_list)
3832 AC_SUBST(lang_specs_files)
3833 AC_SUBST(lang_options_files)
3834 AC_SUBST(lang_tree_files)
3835 AC_SUBST(thread_file)
3836 AC_SUBST(objc_boehm_gc)
3837 AC_SUBST(gcc_version)
3838 AC_SUBST(gcc_version_trigger)
3839 AC_SUBST(local_prefix)
3840 AC_SUBST(gxx_include_dir)
3841 AC_SUBST(fixincludes)
3842 AC_SUBST(build_install_headers_dir)
3843 AC_SUBST(build_exeext)
3844 AC_SUBST(host_exeext)
3845 AC_SUBST(float_format)
3846 AC_SUBST(will_use_collect2)
3847 AC_SUBST(maybe_use_collect2)
3848 AC_SUBST(cc_set_by_configure)
3849 AC_SUBST(stage_prefix_set_by_configure)
3851 AC_SUBST(symbolic_link)
3853 AC_SUBST_FILE(target_overrides)
3854 AC_SUBST_FILE(host_overrides)
3855 AC_SUBST(cross_defines)
3856 AC_SUBST_FILE(cross_overrides)
3857 AC_SUBST_FILE(build_overrides)
3858 AC_SUBST_FILE(language_fragments)
3859 AC_SUBST_FILE(language_hooks)
3861 # Echo that links are built
3862 if test x$host = x$target
3870 if test x$host != x$build
3872 str3=" on a $build system"
3875 if test "x$str2" != x || test "x$str3" != x
3880 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3882 if test "x$str2" != x || test "x$str3" != x
3884 echo " ${str2}${str3}." 1>&2
3887 # Truncate the target if necessary
3888 if test x$host_truncate_target != x; then
3889 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3892 # Configure the subdirectories
3893 # AC_CONFIG_SUBDIRS($subdirs)
3895 # Create the Makefile
3896 # and configure language subdirectories
3897 AC_OUTPUT($all_outputs,
3899 . $srcdir/configure.lang
3900 case x$CONFIG_HEADERS in
3901 xauto-host.h:config.in)
3904 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3905 # bootstrapping and the installation procedure can still use
3906 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3907 # FLAGS_TO_PASS has been modified to solve the problem there.
3908 # This is virtually a duplicate of what happens in configure.lang; we do
3909 # an extra check to make sure this only happens if ln -s can be used.
3910 if test "$symbolic_link" = "ln -s"; then
3911 for d in .. ${subdirs} ; do
3912 if test $d != ..; then
3915 for t in stage1 stage2 stage3 stage4 include
3918 $symbolic_link ../$t $t 2>/dev/null
3929 target_alias='${target_alias}'
3931 subdirs='${subdirs}'
3932 oldstyle_subdirs='${oldstyle_subdirs}'
3933 symbolic_link='${symbolic_link}'
3934 program_transform_set='${program_transform_set}'
3935 program_transform_name='${program_transform_name}'
3936 dep_host_xmake_file='${dep_host_xmake_file}'
3937 host_xmake_file='${host_xmake_file}'
3938 dep_tmake_file='${dep_tmake_file}'
3939 tmake_file='${tmake_file}'
3940 thread_file='${thread_file}'
3941 gcc_version='${gcc_version}'
3942 gcc_version_trigger='${gcc_version_trigger}'
3943 local_prefix='${local_prefix}'
3944 build_install_headers_dir='${build_install_headers_dir}'
3945 build_exeext='${build_exeext}'
3946 host_exeext='${host_exeext}'
3947 out_file='${out_file}'
3948 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3949 SET_MAKE='${SET_MAKE}'
3950 target_list='${target_list}'
3951 target_overrides='${target_overrides}'
3952 host_overrides='${host_overrides}'
3953 cross_defines='${cross_defines}'
3954 cross_overrides='${cross_overrides}'
3955 build_overrides='${build_overrides}'