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
59 AC_ARG_WITH(local-prefix,
60 [ --with-local-prefix=DIR specifies directory to put local include.],
61 local_prefix=$with_local_prefix,
62 local_prefix=/usr/local)
64 # Default local prefix if it is empty
65 if [[ x$local_prefix = x ]]; then
66 local_prefix=/usr/local
69 # Specify the g++ header file directory
70 AC_ARG_WITH(gxx-include-dir,
71 [ --with-gxx-include-dir=DIR
72 specifies directory to put g++ header files.],
73 gxx_include_dir=$with_gxx_include_dir,
74 if test x${enable_version_specific_runtime_libs} = xyes; then
75 gxx_include_dir='${libsubdir}/include/g++'
76 else gxx_include_dir='${prefix}/include/g++'; fi)
78 # Enable expensive internal checks
79 AC_ARG_ENABLE(checking,
80 [ --enable-checking enable expensive run-time checks.],
81 AC_DEFINE(ENABLE_CHECKING)
84 # Enable use of cpplib for C.
86 AC_ARG_ENABLE(c-cpplib,
87 [ --enable-c-cpplib Use cpplib for C.],
88 if [[[ x$enable_c_cpplib != xno ]]]; then
89 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
90 extra_c_objs="${extra_c_objs} prefix.o"
91 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
92 extra_c_flags=-DUSE_CPPLIB=1
96 # Enable Haifa scheduler.
98 [ --enable-haifa Use the experimental scheduler.
99 --disable-haifa Don't use the experimental scheduler for the
100 targets which normally enable it.])
103 # This is a work in progress...
104 AC_ARG_WITH(fast-fixincludes,
105 [ --with-fast-fixincludes Use a faster fixinclude program. Experimental],
106 fast_fixinc="$with_fast_fixincludes",
110 # Pass with no value to take the default
111 # Pass with a value to specify a thread package
112 AC_ARG_ENABLE(threads,
113 [ --enable-threads enable thread usage for target GCC.
114 --enable-threads=LIB use LIB thread package for target GCC.],
115 if [[[ x$enable_threads = xno ]]]; then
120 enable_threads_flag=$enable_threads
121 # Check if a valid thread package
122 case x${enable_threads_flag} in
125 target_thread_file='single'
129 target_thread_file=''
131 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
132 xsolaris | xwin32 | xdce | xvxworks)
133 target_thread_file=$enable_threads_flag
136 echo "$enable_threads is an unknown thread package" 1>&2
141 # Determine the host, build, and target systems
144 # Find the native compiler
148 # Find some useful tools
160 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)
162 # Check for thread headers.
163 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
164 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
166 # See if the system preprocessor understands the ANSI C preprocessor
167 # stringification operator.
168 AC_MSG_CHECKING(whether cpp understands the stringify operator)
169 AC_CACHE_VAL(gcc_cv_c_have_stringify,
172 char *test = S(foo);],
173 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
174 AC_MSG_RESULT($gcc_cv_c_have_stringify)
175 if test $gcc_cv_c_have_stringify = yes; then
176 AC_DEFINE(HAVE_CPP_STRINGIFY)
179 # Use <inttypes.h> only if it exists,
180 # doesn't clash with <sys/types.h>, and declares intmax_t.
181 AC_MSG_CHECKING(for inttypes.h)
182 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
184 [#include <sys/types.h>
185 #include <inttypes.h>],
187 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
188 gcc_cv_header_inttypes_h=yes],
189 gcc_cv_header_inttypes_h=no)])
190 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
192 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
193 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
194 sysconf isascii gettimeofday)
196 GCC_FUNC_VFPRINTF_DOPRNT
199 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
200 index rindex getenv atol sbrk abort atof strerror getcwd getwd)
202 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
203 #include <sys/types.h>
204 #ifdef HAVE_SYS_RESOURCE_H
205 #include <sys/resource.h>
219 build_install_headers_dir=install-headers-tar
224 host_truncate_target=
227 # Decode the host machine, then the target machine.
228 # For the host machine, we save the xm_file variable as host_xm_file;
229 # then we decode the target machine and forget everything else
230 # that came from the host machine.
231 for machine in $build $host $target; do
245 # Set this to force installation and use of collect2.
247 # Set this to override the default target model.
249 # Set this to control which fixincludes program to use.
250 if [[ x$fast_fixinc != xyes ]] ; then
251 fixincludes=fixincludes
252 else fixincludes=fixinc.sh ; fi
253 # Set this to control how the header file directory is installed.
254 install_headers_dir=install-headers-tar
255 # Set this to a non-empty list of args to pass to cpp if the target
256 # wants its .md file passed through cpp.
258 # Set this if directory names should be truncated to 14 characters.
260 # Set this if gdb needs a dir command with `dirname $out_file`
261 gdb_needs_out_file_path=
262 # Set this if the build machine requires executables to have a
265 # Set this to control which thread package will be used.
267 # Reinitialize these from the flag values every loop pass, since some
268 # configure entries modify them.
270 gnu_ld="$gnu_ld_flag"
271 enable_threads=$enable_threads_flag
273 # Set default cpu_type, tm_file and xm_file so it can be updated in
274 # each machine entry.
275 cpu_type=`echo $machine | sed 's/-.*$//'`
309 tm_file=${cpu_type}/${cpu_type}.h
310 xm_file=${cpu_type}/xm-${cpu_type}.h
312 # Set the default macros to define for GNU/Linux systems.
315 xm_defines="HAVE_ATEXIT POSIX BSTRING"
320 # Support site-specific machine types.
322 cpu_type=`echo $machine | sed -e 's/-.*//'`
323 rest=`echo $machine | sed -e "s/$cpu_type-//"`
324 xm_file=${cpu_type}/xm-$rest.h
325 tm_file=${cpu_type}/$rest.h
326 if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \
327 then xmake_file=${cpu_type}/x-$rest; \
330 if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \
331 then tmake_file=${cpu_type}/t-$rest; \
337 a29k-*-bsd* | a29k-*-sym1*)
338 tm_file="${tm_file} a29k/unix.h"
340 xmake_file=a29k/x-unix
343 a29k-*-udi | a29k-*-coff)
344 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
345 tmake_file=a29k/t-a29kbare
348 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
349 tmake_file=a29k/t-vx29k
350 extra_parts="crtbegin.o crtend.o"
351 thread_file='vxworks'
353 a29k-*-*) # Default a29k environment.
356 alpha*-*-linux-gnuecoff*)
357 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
358 target_cpu_default="MASK_GAS"
363 alpha*-*-linux-gnulibc1*)
364 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
365 target_cpu_default="MASK_GAS"
366 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
367 extra_parts="crtbegin.o crtend.o"
368 fixincludes=fixinc.wrap
371 if [[ x$enable_threads = xyes ]]; then
376 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
377 target_cpu_default="MASK_GAS"
378 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
379 extra_parts="crtbegin.o crtend.o"
381 fixincludes=Makefile.in
383 if [[ x$enable_threads = xyes ]]; then
388 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
389 target_cpu_default="MASK_GAS"
390 tmake_file="alpha/t-crtbe"
391 extra_parts="crtbegin.o crtend.o"
393 fixincludes=fixinc.wrap
398 if [[ x$stabs = xyes ]]
400 tm_file="${tm_file} dbx.h"
402 if [[ x$gas != xyes ]]
404 extra_passes="mips-tfile mips-tdump"
409 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
412 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
415 tm_file="${tm_file} alpha/osf.h"
416 # Some versions of OSF4 (specifically X4.0-9 296.7) have
417 # a broken tar, so we use cpio instead.
418 install_headers_dir=install-headers-cpio
422 *-*-osf4.0[[b-z]] | *-*-osf4.[[1-9]]*)
423 target_cpu_default=MASK_SUPPORT_ARCH
428 tm_file="${tm_file} dbx.h alpha/vxworks.h"
431 extra_passes="mips-tfile mips-tdump"
436 tm_file="${tm_file} alpha/win-nt.h"
437 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
439 xmake_file=winnt/x-winnt
440 extra_host_objs=oldnames.o
441 extra_gcc_objs="spawnv.o oldnames.o"
442 fixincludes=fixinc.winnt
443 if [[ x$gnu_ld != xyes ]]
445 extra_programs=ld.exe
447 if [[ x$enable_threads = xyes ]]; then
453 xm_file="${xm_file} alpha/xm-vms.h"
454 tmake_file=alpha/t-vms
455 fixincludes=Makefile.in
458 extra_parts="crtinit.o crtfini.o"
460 arm-*-coff* | armel-*-coff*)
462 tmake_file=arm/t-bare
464 arm-*-riscix1.[[01]]*) # Acorn RISC machine (early versions)
465 tm_file=arm/riscix1-1.h
468 arm-*-riscix*) # Acorn RISC machine
469 if [[ x$gas = xyes ]]
471 tm_file=arm/rix-gas.h
475 xmake_file=arm/x-riscix
476 tmake_file=arm/t-riscix
479 arm-semi-aout | armel-semi-aout)
481 tmake_file=arm/t-semi
482 fixincludes=Makefile.in # There is nothing to fix
484 arm-semi-aof | armel-semi-aof)
485 tm_file=arm/semiaof.h
486 tmake_file=arm/t-semiaof
487 fixincludes=Makefile.in # There is nothing to fix
491 xm_file="xm-siglist.h ${xm_file}"
492 tmake_file="t-netbsd arm/t-netbsd"
493 # On NetBSD, the headers are already okay, except for math.h.
494 fixincludes=fixinc.wrap
496 arm-*-linux-gnuaout*) # ARM GNU/Linux
499 tm_file=arm/linux-gas.h
500 tmake_file=arm/t-linux
501 fixincludes=Makefile.in
506 tmake_file=arm/t-bare
508 c1-convex-*) # Convex C1
511 fixincludes=Makefile.in
513 c2-convex-*) # Convex C2
516 fixincludes=Makefile.in
521 fixincludes=Makefile.in
526 fixincludes=Makefile.in
529 target_cpu_default=16
531 fixincludes=Makefile.in
533 clipper-intergraph-clix*)
534 tm_file="${tm_file} svr3.h clipper/clix.h"
535 xm_file=clipper/xm-clix.h
536 xmake_file=clipper/x-clix
537 extra_headers=va-clipper.h
538 extra_parts="crtbegin.o crtend.o"
539 install_headers_dir=install-headers-cpio
546 # This hasn't been upgraded to GCC 2.
547 # fx80-alliant-*) # Alliant FX/80
553 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
554 xm_file=pa/xm-papro.h
559 tm_file="${tm_file} pa/pa-osf.h"
561 fixincludes=Makefile.in
564 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
565 xm_file=pa/xm-papro.h
569 tm_file="${tm_file} pa/pa-osf.h"
571 fixincludes=Makefile.in
576 fixincludes=Makefile.in
580 fixincludes=Makefile.in
583 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
584 xm_file=pa/xm-pahpux.h
585 xmake_file=pa/x-pa-hpux
586 if [[ x$gas = xyes ]]
588 tm_file="${tm_file} pa/gas.h"
590 install_headers_dir=install-headers-cpio
593 hppa1.0-*-hpux8.0[[0-2]]*)
594 tm_file="${tm_file} pa/pa-hpux.h"
595 xm_file=pa/xm-pahpux.h
596 xmake_file=pa/x-pa-hpux
597 if [[ x$gas = xyes ]]
599 tm_file="${tm_file} pa/pa-gas.h"
601 tm_file="pa/pa-oldas.h ${tm_file}"
603 install_headers_dir=install-headers-cpio
606 hppa1.1-*-hpux8.0[[0-2]]*)
608 tm_file="${tm_file} pa/pa-hpux.h"
609 xm_file=pa/xm-pahpux.h
610 xmake_file=pa/x-pa-hpux
611 if [[ x$gas = xyes ]]
613 tm_file="${tm_file} pa/pa-gas.h"
615 tm_file="pa/pa-oldas.h ${tm_file}"
617 install_headers_dir=install-headers-cpio
622 tm_file="${tm_file} pa/pa-hpux.h"
623 xm_file=pa/xm-pahpux.h
624 xmake_file=pa/x-pa-hpux
625 if [[ x$gas = xyes ]]
627 tm_file="${tm_file} pa/pa-gas.h"
629 install_headers_dir=install-headers-cpio
633 tm_file="${tm_file} pa/pa-hpux.h"
634 xm_file=pa/xm-pahpux.h
635 xmake_file=pa/x-pa-hpux
636 if [[ x$gas = xyes ]]
638 tm_file="${tm_file} pa/pa-gas.h"
640 install_headers_dir=install-headers-cpio
645 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
646 xm_file=pa/xm-pahpux.h
647 xmake_file=pa/x-pa-hpux
649 if [[ x$gas = xyes ]]
651 tm_file="${tm_file} pa/pa-gas.h"
653 if [[ x$enable_threads = x ]]; then
654 enable_threads=$have_pthread_h
656 if [[ x$enable_threads = xyes ]]; then
658 tmake_file="${tmake_file} pa/t-dce-thr"
660 install_headers_dir=install-headers-cpio
664 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
665 xm_file=pa/xm-pahpux.h
666 xmake_file=pa/x-pa-hpux
667 if [[ x$gas = xyes ]]
669 tm_file="${tm_file} pa/pa-gas.h"
671 if [[ x$enable_threads = x ]]; then
672 enable_threads=$have_pthread_h
674 if [[ x$enable_threads = xyes ]]; then
676 tmake_file="${tmake_file} pa/t-dce-thr"
678 install_headers_dir=install-headers-cpio
683 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
684 xm_file=pa/xm-pahpux.h
685 xmake_file=pa/x-pa-hpux
686 if [[ x$gas = xyes ]]
688 tm_file="${tm_file} pa/pa-gas.h"
690 install_headers_dir=install-headers-cpio
694 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
695 xm_file=pa/xm-pahpux.h
696 xmake_file=pa/x-pa-hpux
697 if [[ x$gas = xyes ]]
699 tm_file="${tm_file} pa/pa-gas.h"
701 install_headers_dir=install-headers-cpio
706 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
707 xm_file=pa/xm-pahpux.h
708 xmake_file=pa/x-pa-hpux
709 if [[ x$gas = xyes ]]
711 tm_file="${tm_file} pa/pa-gas.h"
713 install_headers_dir=install-headers-cpio
717 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
718 xm_file=pa/xm-pahpux.h
719 xmake_file=pa/x-pa-hpux
720 if [[ x$gas = xyes ]]
722 tm_file="${tm_file} pa/pa-gas.h"
724 install_headers_dir=install-headers-cpio
730 fixincludes=Makefile.in
734 i[[34567]]86-ibm-aix*) # IBM PS/2 running AIX
735 if [[ x$gas = xyes ]]
737 tm_file=i386/aix386.h
738 extra_parts="crtbegin.o crtend.o"
739 tmake_file=i386/t-crtstuff
741 tm_file=i386/aix386ng.h
744 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
746 xmake_file=i386/x-aix
748 i[[34567]]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
749 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
750 xm_defines="USG POSIX SMALL_ARG_MAX"
751 xmake_file=i386/x-ncr3000
752 if [[ x$stabs = xyes -a x$gas = xyes ]]
754 tm_file=i386/sysv4gdb.h
758 extra_parts="crtbegin.o crtend.o"
759 tmake_file=i386/t-crtpic
763 xm_file=i386/xm-next.h
764 tmake_file=i386/t-next
765 xmake_file=i386/x-next
766 extra_objs=nextstep.o
767 if [[ x$enable_threads = xyes ]]; then
771 i[[34567]]86-sequent-bsd*) # 80386 from Sequent
773 if [[ x$gas = xyes ]]
775 tm_file=i386/seq-gas.h
777 tm_file=i386/sequent.h
780 i[[34567]]86-sequent-ptx1*)
781 xm_defines="USG SVR3"
782 xmake_file=i386/x-sysv3
783 tm_file=i386/seq-sysv3.h
784 tmake_file=i386/t-crtstuff
785 fixincludes=fixinc.ptx
786 extra_parts="crtbegin.o crtend.o"
787 install_headers_dir=install-headers-cpio
789 i[[34567]]86-sequent-ptx2* | i[[34567]]86-sequent-sysv3*)
790 xm_defines="USG SVR3"
791 xmake_file=i386/x-sysv3
792 tm_file=i386/seq2-sysv3.h
793 tmake_file=i386/t-crtstuff
794 extra_parts="crtbegin.o crtend.o"
795 fixincludes=fixinc.ptx
796 install_headers_dir=install-headers-cpio
798 i[[34567]]86-sequent-ptx4* | i[[34567]]86-sequent-sysv4*)
799 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
800 xm_defines="USG POSIX SMALL_ARG_MAX"
802 tm_file=i386/ptx4-i.h
804 extra_parts="crtbegin.o crtend.o"
805 fixincludes=fixinc.ptx
806 install_headers_dir=install-headers-cpio
808 i386-sun-sunos*) # Sun i386 roadrunner
813 i[[34567]]86-wrs-vxworks*)
814 tm_file=i386/vxi386.h
815 tmake_file=i386/t-i386bare
817 i[[34567]]86-*-aout*)
818 tm_file=i386/i386-aout.h
819 tmake_file=i386/t-i386bare
821 i[[34567]]86-*-bsdi* | i[[34567]]86-*-bsd386*)
822 tm_file=i386/bsd386.h
823 # tmake_file=t-libc-ok
826 tm_file=i386/386bsd.h
827 # tmake_file=t-libc-ok
828 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
831 i[[34567]]86-*-freebsdelf*)
832 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
833 # On FreeBSD, the headers are already ok, except for math.h.
834 fixincludes=fixinc.wrap
835 tmake_file=i386/t-freebsd
840 i[[34567]]86-*-freebsd*)
841 tm_file=i386/freebsd.h
842 # On FreeBSD, the headers are already ok, except for math.h.
843 fixincludes=fixinc.wrap
844 tmake_file=i386/t-freebsd
846 i[[34567]]86-*-netbsd*)
847 tm_file=i386/netbsd.h
848 # On NetBSD, the headers are already okay, except for math.h.
849 fixincludes=fixinc.wrap
852 i[[34567]]86-*-coff*)
853 tm_file=i386/i386-coff.h
854 tmake_file=i386/t-i386bare
856 i[[34567]]86-*-isc*) # 80386 running ISC system
857 xm_file="${xm_file} i386/xm-isc.h"
858 xm_defines="USG SVR3"
860 i[[34567]]86-*-isc[[34]]*)
861 xmake_file=i386/x-isc3
864 xmake_file=i386/x-isc
867 if [[ x$gas = xyes -a x$stabs = xyes ]]
869 tm_file=i386/iscdbx.h
870 tmake_file=i386/t-svr3dbx
871 extra_parts="svr3.ifile svr3z.ifile"
873 tm_file=i386/isccoff.h
874 tmake_file=i386/t-crtstuff
875 extra_parts="crtbegin.o crtend.o"
877 install_headers_dir=install-headers-cpio
879 i[[34567]]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
880 # with a.out format using
882 xmake_file=x-linux-aout
883 tmake_file="t-linux-aout i386/t-crtstuff"
884 tm_file=i386/linux-oldld.h
885 fixincludes=Makefile.in #On Linux, the headers are ok already.
889 i[[34567]]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
891 xmake_file=x-linux-aout
892 tmake_file="t-linux-aout i386/t-crtstuff"
893 tm_file=i386/linux-aout.h
894 fixincludes=Makefile.in #On Linux, the headers are ok already.
898 i[[34567]]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
899 # with ELF format using the
900 # GNU/Linux C library 5
903 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
904 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
905 fixincludes=Makefile.in #On Linux, the headers are ok already.
908 if [[ x$enable_threads = xyes ]]; then
912 i[[34567]]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
913 # with ELF format using glibc 2
914 # aka GNU/Linux C library 6
917 tmake_file="t-linux i386/t-crtstuff"
918 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
919 fixincludes=Makefile.in #On Linux, the headers are ok already.
922 if [[ x$enable_threads = xyes ]]; then
928 i[[34567]]86-go32-msdos | i[[34567]]86-*-go32*)
929 xm_file=i386/xm-go32.h
931 tmake_file=i386/t-go32
933 i[[34567]]86-pc-msdosdjgpp*)
934 xm_file=i386/xm-go32.h
936 tmake_file=i386/t-go32
940 i[[34567]]86-moss-msdos* | i[[34567]]86-*-moss*)
943 fixincludes=Makefile.in
947 i[[34567]]86-*-lynxos*)
948 if [[ x$gas = xyes ]]
952 tm_file=i386/lynx-ng.h
954 xm_file=i386/xm-lynx.h
955 tmake_file=i386/t-i386bare
958 i[[34567]]86-*-mach*)
960 # tmake_file=t-libc-ok
963 i[[34567]]86-*-osfrose*) # 386 using OSF/rose
964 if [[ x$elf = xyes ]]
966 tm_file=i386/osfelf.h
969 tm_file=i386/osfrose.h
972 xm_file="i386/xm-osf.h ${xm_file}"
973 xmake_file=i386/x-osfrose
974 tmake_file=i386/t-osf
977 i[[34567]]86-go32-rtems*)
979 xm_file=i386/xm-go32.h
980 tm_file=i386/go32-rtems.h
981 tmake_file="i386/t-go32 t-rtems"
983 i[[34567]]86-*-rtemself*)
985 tm_file=i386/rtemself.h
986 tmake_file="i386/t-i386bare t-rtems"
988 i[[34567]]86-*-rtems*)
991 tmake_file="i386/t-i386bare t-rtems"
993 i[[34567]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
994 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
995 xm_defines="USG SVR3"
996 xmake_file=i386/x-sco5
997 fixincludes=fixinc.sco
998 install_headers_dir=install-headers-cpio
1000 if [[ x$gas = xyes ]]
1002 tm_file="i386/sco5gas.h ${tm_file}"
1003 tmake_file=i386/t-sco5gas
1005 tmake_file=i386/t-sco5
1007 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1009 i[[34567]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1010 xm_file="${xm_file} i386/xm-sco.h"
1011 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1012 xmake_file=i386/x-sco4
1013 fixincludes=fixinc.sco
1014 install_headers_dir=install-headers-cpio
1015 if [[ x$stabs = xyes ]]
1017 tm_file=i386/sco4dbx.h
1018 tmake_file=i386/t-svr3dbx
1019 extra_parts="svr3.ifile svr3z.rfile"
1022 tmake_file=i386/t-crtstuff
1023 extra_parts="crtbegin.o crtend.o"
1027 i[[34567]]86-*-sco*) # 80386 running SCO system
1028 xm_file=i386/xm-sco.h
1029 xmake_file=i386/x-sco
1030 install_headers_dir=install-headers-cpio
1031 if [[ x$stabs = xyes ]]
1033 tm_file=i386/scodbx.h
1034 tmake_file=i386/t-svr3dbx
1035 extra_parts="svr3.ifile svr3z.rfile"
1038 extra_parts="crtbegin.o crtend.o"
1039 tmake_file=i386/t-crtstuff
1043 i[[34567]]86-*-solaris2*)
1044 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1045 xm_defines="USG POSIX SMALL_ARG_MAX"
1046 if [[ x$stabs = xyes ]]
1048 tm_file=i386/sol2dbg.h
1052 tmake_file=i386/t-sol2
1053 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1056 *-*-solaris2.[[0-4]])
1057 fixincludes=fixinc.svr4;;
1059 fixincludes=fixinc.wrap;;
1061 if [[ x$enable_threads = xyes ]]; then
1062 thread_file='solaris'
1065 i[[34567]]86-*-sysv5*) # Intel x86 on System V Release 5
1066 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1067 xm_defines="USG POSIX"
1068 tm_file=i386/sysv4.h
1069 if [[ x$stabs = xyes ]]
1071 tm_file="${tm_file} dbx.h"
1073 tmake_file=i386/t-crtpic
1075 extra_parts="crtbegin.o crtend.o"
1076 fixincludes=Makefile.in # The headers are just fine, thank you.
1078 i[[34567]]86-*-sysv4*) # Intel 80386's running system V.4
1079 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1080 xm_defines="USG POSIX SMALL_ARG_MAX"
1081 tm_file=i386/sysv4.h
1082 if [[ x$stabs = xyes ]]
1084 tm_file="${tm_file} dbx.h"
1086 tmake_file=i386/t-crtpic
1088 extra_parts="crtbegin.o crtend.o"
1090 i[[34567]]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1092 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1093 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1094 fixincludes=Makefile.in #Don't do it on OSF/1
1095 if [[ x$stabs = xyes ]]
1097 tm_file=i386/osf1elfgdb.h
1099 tm_file=i386/osf1elf.h
1101 tmake_file=i386/t-osf1elf
1102 xmake_file=i386/x-osf1elf
1103 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1105 i[[34567]]86-*-sysv*) # Intel 80386's running system V
1106 xm_defines="USG SVR3"
1107 xmake_file=i386/x-sysv3
1108 if [[ x$gas = xyes ]]
1110 if [[ x$stabs = xyes ]]
1112 tm_file=i386/svr3dbx.h
1113 tmake_file=i386/t-svr3dbx
1114 extra_parts="svr3.ifile svr3z.rfile"
1116 tm_file=i386/svr3gas.h
1117 extra_parts="crtbegin.o crtend.o"
1118 tmake_file=i386/t-crtstuff
1121 tm_file=i386/sysv3.h
1122 extra_parts="crtbegin.o crtend.o"
1123 tmake_file=i386/t-crtstuff
1126 i386-*-vsta) # Intel 80386's running VSTa kernel
1127 xm_file="${xm_file} i386/xm-vsta.h"
1129 tmake_file=i386/t-vsta
1130 xmake_file=i386/x-vsta
1132 i[[34567]]86-*-pe | i[[34567]]86-*-cygwin32)
1133 xm_file="${xm_file} i386/xm-cygwin32.h"
1134 tmake_file=i386/t-cygwin32
1135 tm_file=i386/cygwin32.h
1136 xmake_file=i386/x-cygwin32
1138 fixincludes=Makefile.in
1139 if [[ x$enable_threads = xyes ]]; then
1144 i[[34567]]86-*-mingw32*)
1145 tm_file=i386/mingw32.h
1146 xm_file="${xm_file} i386/xm-mingw32.h"
1147 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1149 xmake_file=i386/x-cygwin32
1150 fixincludes=Makefile.in
1151 if [[ x$enable_threads = xyes ]]; then
1158 *minwg32crt* | *mingw32*)
1159 tm_file="${tm_file} i386/crtdll.h"
1163 i[[34567]]86-*-winnt3*)
1164 tm_file=i386/win-nt.h
1165 out_file=i386/i386.c
1166 xm_file="xm-winnt.h ${xm_file}"
1167 xmake_file=winnt/x-winnt
1168 tmake_file=i386/t-winnt
1169 extra_host_objs="winnt.o oldnames.o"
1170 extra_gcc_objs="spawnv.o oldnames.o"
1171 fixincludes=fixinc.winnt
1172 if [[ x$gnu_ld != xyes ]]
1174 extra_programs=ld.exe
1176 if [[ x$enable_threads = xyes ]]; then
1180 i[[34567]]86-dg-dgux*)
1181 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1182 xm_defines="USG POSIX"
1183 out_file=i386/dgux.c
1185 tmake_file=i386/t-dgux
1186 xmake_file=i386/x-dgux
1187 fixincludes=fixinc.dgux
1188 install_headers_dir=install-headers-cpio
1190 i860-alliant-*) # Alliant FX/2800
1191 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1192 xm_file="${xm_file}"
1193 xmake_file=i860/x-fx2800
1194 tmake_file=i860/t-fx2800
1195 extra_parts="crtbegin.o crtend.o"
1198 tm_file="${tm_file} i860/bsd.h"
1199 if [[ x$gas = xyes ]]
1201 tm_file="${tm_file} i860/bsd-gas.h"
1206 tm_file="${tm_file} i860/mach.h"
1207 tmake_file=t-libc-ok
1209 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1210 tm_file="${tm_file} svr3.h i860/paragon.h"
1211 xm_defines="USG SVR3"
1215 tm_file="${tm_file} svr3.h i860/sysv3.h"
1216 xm_defines="USG SVR3"
1217 xmake_file=i860/x-sysv3
1218 extra_parts="crtbegin.o crtend.o"
1221 tm_file="${tm_file} svr4.h i860/sysv4.h"
1222 xm_defines="USG SVR3"
1223 xmake_file=i860/x-sysv4
1225 extra_parts="crtbegin.o crtend.o"
1227 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1228 tm_file="${tm_file} i960/vx960.h"
1229 tmake_file=i960/t-vxworks960
1231 thread_file='vxworks'
1233 i960-wrs-vxworks5* | i960-wrs-vxworks)
1234 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1235 tmake_file=i960/t-vxworks960
1237 thread_file='vxworks'
1240 tm_file="${tm_file} i960/vx960.h"
1241 tmake_file=i960/t-vxworks960
1243 thread_file='vxworks'
1246 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1247 tmake_file=i960/t-960bare
1251 tmake_file="i960/t-960bare t-rtems"
1252 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1255 i960-*-*) # Default i960 environment.
1259 extra_parts="crtinit.o crtfini.o"
1261 m68000-convergent-sysv*)
1263 xm_file="m68k/xm-3b1.h ${xm_file}"
1266 extra_headers=math-68881.h
1268 m68000-hp-bsd*) # HP 9000/200 running BSD
1269 tm_file=m68k/hp2bsd.h
1270 xmake_file=m68k/x-hp2bsd
1272 extra_headers=math-68881.h
1274 m68000-hp-hpux*) # HP 9000 series 300
1275 xm_file="xm_alloca.h ${xm_file}"
1276 xm_defines="USG NO_SYS_SIGLIST"
1277 if [[ x$gas = xyes ]]
1279 xmake_file=m68k/x-hp320g
1280 tm_file=m68k/hp310g.h
1282 xmake_file=m68k/x-hp320
1283 tm_file=m68k/hp310.h
1285 install_headers_dir=install-headers-cpio
1287 extra_headers=math-68881.h
1292 extra_headers=math-68881.h
1295 tm_file=m68k/sun2o4.h
1297 extra_headers=math-68881.h
1300 xm_file="m68k/xm-3b1.h ${xm_file}"
1302 if [[ x$gas = xyes ]]
1309 extra_headers=math-68881.h
1311 m68k-apple-aux*) # Apple Macintosh running A/UX
1312 xm_defines="USG AUX"
1313 tmake_file=m68k/t-aux
1314 install_headers_dir=install-headers-cpio
1315 extra_headers=math-68881.h
1316 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1318 if [[ "$gnu_ld" = yes ]]
1320 tm_file="${tm_file} m68k/auxgld.h"
1322 tm_file="${tm_file} m68k/auxld.h"
1324 if [[ "$gas" = yes ]]
1326 tm_file="${tm_file} m68k/auxgas.h"
1328 tm_file="${tm_file} m68k/auxas.h"
1330 tm_file="${tm_file} m68k/a-ux.h"
1334 tm_file=m68k/apollo68.h
1335 xmake_file=m68k/x-apollo68
1337 extra_headers=math-68881.h
1340 m68k-altos-sysv*) # Altos 3068
1341 if [[ x$gas = xyes ]]
1343 tm_file=m68k/altos3068.h
1346 echo "The Altos is supported only with the GNU assembler" 1>&2
1349 extra_headers=math-68881.h
1351 m68k-bull-sysv*) # Bull DPX/2
1352 if [[ x$gas = xyes ]]
1354 if [[ x$stabs = xyes ]]
1356 tm_file=m68k/dpx2cdbx.h
1358 tm_file=m68k/dpx2g.h
1363 xm_file="xm-alloca.h ${xm_file}"
1365 xmake_file=m68k/x-dpx2
1367 extra_headers=math-68881.h
1369 m68k-atari-sysv4*) # Atari variant of V.4.
1370 tm_file=m68k/atari.h
1371 xm_file="xm-alloca.h ${xm_file}"
1372 xm_defines="USG FULL_PROTOTYPES"
1374 extra_parts="crtbegin.o crtend.o"
1375 extra_headers=math-68881.h
1378 m68k-motorola-sysv*)
1379 tm_file=m68k/mot3300.h
1380 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1381 xm_defines=NO_SYS_SIGLIST
1382 if [[ x$gas = xyes ]]
1384 xmake_file=m68k/x-mot3300-gas
1385 if [[ x$gnu_ld = xyes ]]
1387 tmake_file=m68k/t-mot3300-gald
1389 tmake_file=m68k/t-mot3300-gas
1393 xmake_file=m68k/x-mot3300
1394 if [[ x$gnu_ld = xyes ]]
1396 tmake_file=m68k/t-mot3300-gld
1398 tmake_file=m68k/t-mot3300
1402 gdb_needs_out_file_path=yes
1403 extra_parts="crt0.o mcrt0.o"
1404 extra_headers=math-68881.h
1407 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1408 tm_file=m68k/tower-as.h
1409 xm_defines="USG SVR3"
1410 xmake_file=m68k/x-tower
1411 extra_parts="crtbegin.o crtend.o"
1412 extra_headers=math-68881.h
1415 tm_file=m68k/plexus.h
1416 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1419 extra_headers=math-68881.h
1423 xm_file="xm-alloca.h ${xm_file}"
1425 extra_headers=math-68881.h
1428 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1429 xm_defines="USG unos"
1430 xmake_file=m68k/x-crds
1433 extra_headers=math-68881.h
1435 m68k-cbm-sysv4*) # Commodore variant of V.4.
1437 xm_file="xm-alloca.h ${xm_file}"
1438 xm_defines="USG FULL_PROTOTYPES"
1439 xmake_file=m68k/x-amix
1441 extra_parts="crtbegin.o crtend.o"
1442 extra_headers=math-68881.h
1446 tm_file=m68k/ccur-GAS.h
1447 xmake_file=m68k/x-ccur
1448 extra_headers=math-68881.h
1452 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1453 tm_file=m68k/hp3bsd44.h
1454 xmake_file=m68k/x-hp3bsd44
1456 extra_headers=math-68881.h
1459 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1460 tm_file=m68k/hp3bsd.h
1462 extra_headers=math-68881.h
1466 if [[ x$with_fp = xno ]]
1468 tm_file=m68k/isi-nfp.h
1474 extra_headers=math-68881.h
1476 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1477 xm_file="xm_alloca.h ${xm_file}"
1478 xm_defines="USG NO_SYS_SIGLIST"
1479 if [[ x$gas = xyes ]]
1481 xmake_file=m68k/x-hp320g
1482 tm_file=m68k/hp320g.h
1484 xmake_file=m68k/x-hp320
1485 tm_file=m68k/hpux7.h
1487 install_headers_dir=install-headers-cpio
1489 extra_headers=math-68881.h
1492 m68k-hp-hpux*) # HP 9000 series 300
1493 xm_file="xm_alloca.h ${xm_file}"
1494 xm_defines="USG NO_SYS_SIGLIST"
1495 if [[ x$gas = xyes ]]
1497 xmake_file=m68k/x-hp320g
1498 tm_file=m68k/hp320g.h
1500 xmake_file=m68k/x-hp320
1501 tm_file=m68k/hp320.h
1503 install_headers_dir=install-headers-cpio
1505 extra_headers=math-68881.h
1509 tm_file=m68k/sun3mach.h
1511 extra_headers=math-68881.h
1515 if [[ x$gas = xyes ]]
1517 tm_file=m68k/news3gas.h
1519 tm_file=m68k/news3.h
1522 extra_headers=math-68881.h
1525 m68k-sony-bsd* | m68k-sony-newsos*)
1526 if [[ x$gas = xyes ]]
1528 tm_file=m68k/newsgas.h
1533 extra_headers=math-68881.h
1536 m68k-next-nextstep2*)
1537 tm_file=m68k/next21.h
1538 xm_file="m68k/xm-next.h ${xm_file}"
1539 tmake_file=m68k/t-next
1540 xmake_file=m68k/x-next
1541 extra_objs=nextstep.o
1542 extra_headers=math-68881.h
1546 m68k-next-nextstep3*)
1548 xm_file="m68k/xm-next.h ${xm_file}"
1549 tmake_file=m68k/t-next
1550 xmake_file=m68k/x-next
1551 extra_objs=nextstep.o
1552 extra_headers=math-68881.h
1554 if [[ x$enable_threads = xyes ]]; then
1559 if [[ x$with_fp = xno ]]
1561 tm_file=m68k/sun3n3.h
1563 tm_file=m68k/sun3o3.h
1567 extra_headers=math-68881.h
1569 m68k-sun-sunos*) # For SunOS 4 (the default).
1570 if [[ x$with_fp = xno ]]
1572 tm_file=m68k/sun3n.h
1578 extra_headers=math-68881.h
1581 tm_file=m68k/vxm68k.h
1582 tmake_file=m68k/t-vxworks68
1583 extra_headers=math-68881.h
1584 thread_file='vxworks'
1588 tmake_file=m68k/t-m68kbare
1589 tm_file="m68k/m68k-aout.h libgloss.h"
1590 extra_headers=math-68881.h
1594 tmake_file=m68k/t-m68kbare
1595 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1596 extra_headers=math-68881.h
1600 if [[ x$gas = xyes ]]
1604 tm_file=m68k/lynx-ng.h
1606 xm_file=m68k/xm-lynx.h
1608 tmake_file=m68k/t-lynx
1609 extra_headers=math-68881.h
1613 tm_file=m68k/netbsd.h
1614 # On NetBSD, the headers are already okay, except for math.h.
1615 fixincludes=fixinc.wrap
1619 m68k-*-sysv3*) # Motorola m68k's running system V.3
1620 xm_file="xm-alloca.h ${xm_file}"
1622 xmake_file=m68k/x-m68kv
1623 extra_parts="crtbegin.o crtend.o"
1624 extra_headers=math-68881.h
1627 m68k-*-sysv4*) # Motorola m68k's running system V.4
1628 tm_file=m68k/m68kv4.h
1629 xm_file="xm-alloca.h ${xm_file}"
1632 extra_parts="crtbegin.o crtend.o"
1633 extra_headers=math-68881.h
1636 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1639 tm_file=m68k/linux-aout.h
1640 tmake_file="t-linux-aout m68k/t-linux-aout"
1641 fixincludes=Makefile.in # The headers are ok already.
1642 extra_headers=math-68881.h
1646 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1647 # with ELF format using the
1648 # GNU/Linux C library 5
1650 tm_file=m68k/linux.h
1651 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1652 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1653 fixincludes=Makefile.in # The headers are ok already.
1654 extra_headers=math-68881.h
1658 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1659 # with ELF format using glibc 2
1660 # aka the GNU/Linux C library 6.
1662 tm_file=m68k/linux.h
1663 tmake_file="t-linux m68k/t-linux"
1664 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1665 fixincludes=Makefile.in # The headers are ok already.
1666 extra_headers=math-68881.h
1669 if [[ x$enable_threads = xyes ]]; then
1674 tmake_file=m68k/t-m68kbare
1675 tm_file=m68k/m68k-psos.h
1676 extra_headers=math-68881.h
1680 tmake_file="m68k/t-m68kbare t-rtems"
1681 tm_file=m68k/rtems.h
1682 extra_headers=math-68881.h
1689 tm_file=m88k/dguxbcs.h
1690 tmake_file=m88k/t-dguxbcs
1694 tmake_file=m88k/t-dgux
1697 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1698 xmake_file=m88k/x-dgux
1699 if [[ x$gas = xyes ]]
1701 tmake_file=m88k/t-dgux-gas
1703 fixincludes=fixinc.dgux
1705 m88k-dolphin-sysv3*)
1706 tm_file=m88k/dolph.h
1707 extra_parts="crtbegin.o crtend.o"
1708 xm_file="m88k/xm-sysv3.h ${xm_file}"
1709 xmake_file=m88k/x-dolph
1710 if [[ x$gas = xyes ]]
1712 tmake_file=m88k/t-m88k-gas
1715 m88k-tektronix-sysv3)
1716 tm_file=m88k/tekXD88.h
1717 extra_parts="crtbegin.o crtend.o"
1718 xm_file="m88k/xm-sysv3.h ${xm_file}"
1719 xmake_file=m88k/x-tekXD88
1720 if [[ x$gas = xyes ]]
1722 tmake_file=m88k/t-m88k-gas
1726 tm_file=m88k/m88k-aout.h
1729 tm_file=m88k/m88k-coff.h
1730 tmake_file=m88k/t-bug
1734 extra_parts="crtbegin.o crtend.o"
1735 if [[ x$gas = xyes ]]
1737 tmake_file=m88k/t-luna-gas
1739 tmake_file=m88k/t-luna
1743 tm_file=m88k/sysv3.h
1744 extra_parts="crtbegin.o crtend.o"
1745 xm_file="m88k/xm-sysv3.h ${xm_file}"
1746 xmake_file=m88k/x-sysv3
1747 if [[ x$gas = xyes ]]
1749 tmake_file=m88k/t-m88k-gas
1753 tm_file=m88k/sysv4.h
1754 extra_parts="crtbegin.o crtend.o"
1755 xmake_file=m88k/x-sysv4
1756 tmake_file=m88k/t-sysv4
1758 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1759 tm_file=mips/iris6.h
1760 xm_file=mips/xm-iris6.h
1761 fixincludes=fixinc.irix
1762 xmake_file=mips/x-iris6
1763 tmake_file=mips/t-iris6
1764 if [[ x$enable_threads = xyes ]]; then
1769 tm_file="mips/elf.h libgloss.h"
1770 tmake_file=mips/t-ecoff
1773 extra_parts="crtbegin.o crtend.o"
1774 # thread_file='vxworks'
1776 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1777 tm_file="mips/iris6.h mips/cross64.h"
1778 xm_defines="USG HAVE_INTTYPES_H"
1779 fixincludes=Makefile.in
1780 xmake_file=mips/x-iris
1781 tmake_file=mips/t-cross64
1782 # See comment in mips/iris[56].h files.
1784 if [[ x$enable_threads = xyes ]]; then
1789 if [[ x$gas = xyes ]]
1791 if [[ x$stabs = xyes ]]
1793 tm_file=mips/iris5gdb.h
1795 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1798 tm_file=mips/sni-svr4.h
1801 xmake_file=mips/x-sni-svr4
1802 tmake_file=mips/t-mips-gas
1803 if [[ x$gnu_ld != xyes ]]
1808 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1809 if [[ x$gas = xyes ]]
1811 tm_file="mips/iris5.h mips/iris5gas.h"
1812 if [[ x$stabs = xyes ]]
1814 tm_file="${tm_file} dbx.h"
1817 tm_file=mips/iris5.h
1819 xm_defines="USG HAVE_INTTYPES_H"
1820 fixincludes=fixinc.irix
1821 xmake_file=mips/x-iris
1822 # mips-tfile doesn't work yet
1823 tmake_file=mips/t-mips-gas
1824 # See comment in mips/iris5.h file.
1826 if [[ x$enable_threads = xyes ]]; then
1830 mips-sgi-irix4loser*) # Mostly like a MIPS.
1831 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
1832 if [[ x$stabs = xyes ]]; then
1833 tm_file="${tm_file} dbx.h"
1836 xmake_file=mips/x-iris
1837 if [[ x$gas = xyes ]]
1839 tmake_file=mips/t-mips-gas
1841 extra_passes="mips-tfile mips-tdump"
1843 if [[ x$gnu_ld != xyes ]]
1847 if [[ x$enable_threads = xyes ]]; then
1851 mips-sgi-irix4*) # Mostly like a MIPS.
1852 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
1853 if [[ x$stabs = xyes ]]; then
1854 tm_file="${tm_file} dbx.h"
1857 xmake_file=mips/x-iris
1858 if [[ x$gas = xyes ]]
1860 tmake_file=mips/t-mips-gas
1862 extra_passes="mips-tfile mips-tdump"
1864 if [[ x$gnu_ld != xyes ]]
1868 if [[ x$enable_threads = xyes ]]; then
1872 mips-sgi-*) # Mostly like a MIPS.
1873 tm_file="mips/iris3.h ${tm_file}"
1874 if [[ x$stabs = xyes ]]; then
1875 tm_file="${tm_file} dbx.h"
1878 xmake_file=mips/x-iris3
1879 if [[ x$gas = xyes ]]
1881 tmake_file=mips/t-mips-gas
1883 extra_passes="mips-tfile mips-tdump"
1885 if [[ x$gnu_ld != xyes ]]
1890 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
1891 tm_file="mips/osfrose.h ${tm_file}"
1892 xmake_file=mips/x-osfrose
1893 tmake_file=mips/t-osfrose
1894 extra_objs=halfpic.o
1897 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
1898 tm_file=mips/dec-osf1.h
1899 if [[ x$stabs = xyes ]]; then
1900 tm_file="${tm_file} dbx.h"
1902 xmake_file=mips/x-dec-osf1
1903 if [[ x$gas = xyes ]]
1905 tmake_file=mips/t-mips-gas
1907 tmake_file=mips/t-ultrix
1908 extra_passes="mips-tfile mips-tdump"
1910 if [[ x$gnu_ld != xyes ]]
1915 mips-dec-bsd*) # Decstation running 4.4 BSD
1916 tm_file=mips/dec-bsd.h
1918 if [[ x$gas = xyes ]]
1920 tmake_file=mips/t-mips-gas
1922 tmake_file=mips/t-ultrix
1923 extra_passes="mips-tfile mips-tdump"
1925 if [[ x$gnu_ld != xyes ]]
1930 mips-dec-netbsd*) # Decstation running NetBSD
1931 tm_file=mips/netbsd.h
1932 # On NetBSD, the headers are already okay, except for math.h.
1933 fixincludes=fixinc.wrap
1936 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
1937 tm_file="mips/news4.h ${tm_file}"
1938 if [[ x$stabs = xyes ]]; then
1939 tm_file="${tm_file} dbx.h"
1941 if [[ x$gas = xyes ]]
1943 tmake_file=mips/t-mips-gas
1945 extra_passes="mips-tfile mips-tdump"
1947 if [[ x$gnu_ld != xyes ]]
1951 xmake_file=mips/x-sony
1953 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
1954 # That is based on svr4.
1955 # t-svr4 is not right because this system doesn't use ELF.
1956 tm_file="mips/news5.h ${tm_file}"
1957 if [[ x$stabs = xyes ]]; then
1958 tm_file="${tm_file} dbx.h"
1960 xm_file="xm-siglist.h ${xm_file}"
1962 if [[ x$gas = xyes ]]
1964 tmake_file=mips/t-mips-gas
1966 extra_passes="mips-tfile mips-tdump"
1968 if [[ x$gnu_ld != xyes ]]
1973 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
1974 tm_file="mips/svr4-5.h mips/svr4-t.h"
1975 if [[ x$stabs = xyes ]]; then
1976 tm_file="${tm_file} dbx.h"
1978 xm_file="xm-siglist.h ${xm_file}"
1980 xmake_file=mips/x-sysv
1981 if [[ x$gas = xyes ]]
1983 tmake_file=mips/t-mips-gas
1984 extra_parts="crtbegin.o crtend.o"
1986 tmake_file=mips/t-mips
1987 extra_passes="mips-tfile mips-tdump"
1989 if [[ x$gnu_ld != xyes ]]
1994 mips-*-ultrix* | mips-dec-mach3) # Decstation.
1995 tm_file="mips/ultrix.h ${tm_file}"
1996 if [[ x$stabs = xyes ]]; then
1997 tm_file="${tm_file} dbx.h"
1999 xmake_file=mips/x-ultrix
2000 if [[ x$gas = xyes ]]
2002 tmake_file=mips/t-mips-gas
2004 tmake_file=mips/t-ultrix
2005 extra_passes="mips-tfile mips-tdump"
2007 if [[ x$gnu_ld != xyes ]]
2012 mips-*-riscos[[56789]]bsd*)
2013 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2014 if [[ x$stabs = xyes ]]; then
2015 tm_file="${tm_file} dbx.h"
2017 if [[ x$gas = xyes ]]
2019 tmake_file=mips/t-bsd-gas
2021 tmake_file=mips/t-bsd
2022 extra_passes="mips-tfile mips-tdump"
2024 if [[ x$gnu_ld != xyes ]]
2029 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
2030 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2031 if [[ x$stabs = xyes ]]; then
2032 tm_file="${tm_file} dbx.h"
2034 if [[ x$gas = xyes ]]
2036 tmake_file=mips/t-bsd-gas
2038 tmake_file=mips/t-bsd
2039 extra_passes="mips-tfile mips-tdump"
2041 if [[ x$gnu_ld != xyes ]]
2046 mips-*-riscos[[56789]]sysv4*)
2047 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2048 if [[ x$stabs = xyes ]]; then
2049 tm_file="${tm_file} dbx.h"
2051 xm_file="xm-siglist.h ${xm_file}"
2052 xmake_file=mips/x-sysv
2053 if [[ x$gas = xyes ]]
2055 tmake_file=mips/t-svr4-gas
2057 tmake_file=mips/t-svr4
2058 extra_passes="mips-tfile mips-tdump"
2060 if [[ x$gnu_ld != xyes ]]
2065 mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
2066 tm_file="mips/svr4-4.h ${tm_file}"
2067 if [[ x$stabs = xyes ]]; then
2068 tm_file="${tm_file} dbx.h"
2071 xmake_file=mips/x-sysv
2072 if [[ x$gas = xyes ]]
2074 tmake_file=mips/t-svr4-gas
2076 tmake_file=mips/t-svr4
2077 extra_passes="mips-tfile mips-tdump"
2079 if [[ x$gnu_ld != xyes ]]
2084 mips-*-riscos[[56789]]sysv*)
2085 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2086 if [[ x$stabs = xyes ]]; then
2087 tm_file="${tm_file} dbx.h"
2090 xmake_file=mips/x-sysv
2091 if [[ x$gas = xyes ]]
2093 tmake_file=mips/t-svr3-gas
2095 tmake_file=mips/t-svr3
2096 extra_passes="mips-tfile mips-tdump"
2098 if [[ x$gnu_ld != xyes ]]
2103 mips-*-sysv* | mips-*-riscos*sysv*)
2104 tm_file="mips/svr3-4.h ${tm_file}"
2105 if [[ x$stabs = xyes ]]; then
2106 tm_file="${tm_file} dbx.h"
2109 xmake_file=mips/x-sysv
2110 if [[ x$gas = xyes ]]
2112 tmake_file=mips/t-svr3-gas
2114 tmake_file=mips/t-svr3
2115 extra_passes="mips-tfile mips-tdump"
2117 if [[ x$gnu_ld != xyes ]]
2122 mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0.
2123 tm_file=mips/mips-5.h
2124 if [[ x$stabs = xyes ]]; then
2125 tm_file="${tm_file} dbx.h"
2127 if [[ x$gas = xyes ]]
2129 tmake_file=mips/t-mips-gas
2131 extra_passes="mips-tfile mips-tdump"
2133 if [[ x$gnu_ld != xyes ]]
2141 tm_file=mips/ecoffl.h
2142 if [[ x$stabs = xyes ]]; then
2143 tm_file="${tm_file} dbx.h"
2145 tmake_file=mips/t-ecoff
2148 tm_file="gofast.h mips/ecoff.h"
2149 if [[ x$stabs = xyes ]]; then
2150 tm_file="${tm_file} dbx.h"
2152 tmake_file=mips/t-ecoff
2155 tm_file="mips/elfl.h libgloss.h"
2156 tmake_file=mips/t-ecoff
2159 tm_file="mips/elf.h libgloss.h"
2160 tmake_file=mips/t-ecoff
2163 tm_file="mips/elfl64.h libgloss.h"
2164 tmake_file=mips/t-ecoff
2166 mips64orionel-*-elf*)
2167 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2168 tmake_file=mips/t-ecoff
2171 tm_file="mips/elf64.h libgloss.h"
2172 tmake_file=mips/t-ecoff
2175 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2176 tmake_file=mips/t-ecoff
2178 mips64orion-*-rtems*)
2179 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2180 tmake_file="mips/t-ecoff t-rtems"
2183 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2184 tmake_file=mips/t-r3900
2187 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2188 tmake_file=mips/t-r3900
2190 mips-*-*) # Default MIPS RISC-OS 4.0.
2191 if [[ x$stabs = xyes ]]; then
2192 tm_file="${tm_file} dbx.h"
2194 if [[ x$gas = xyes ]]
2196 tmake_file=mips/t-mips-gas
2198 extra_passes="mips-tfile mips-tdump"
2200 if [[ x$gnu_ld != xyes ]]
2207 tm_file="mn10200/mn10200.h"
2208 if [[ x$stabs = xyes ]]
2210 tm_file="${tm_file} dbx.h"
2216 tm_file="mn10300/mn10300.h"
2217 if [[ x$stabs = xyes ]]
2219 tm_file="${tm_file} dbx.h"
2224 tm_file=ns32k/encore.h
2228 tm_file=ns32k/sequent.h
2232 tm_file=ns32k/tek6100.h
2236 tm_file=ns32k/tek6200.h
2239 # This has not been updated to GCC 2.
2242 # xmake_file=ns32k/x-genix
2243 # tm_file=ns32k/genix.h
2247 tm_file=ns32k/merlin.h
2251 tm_file=ns32k/pc532-mach.h
2255 tm_file=ns32k/pc532-min.h
2256 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2260 ns32k-pc532-netbsd*)
2261 tm_file=ns32k/netbsd.h
2262 # On NetBSD, the headers are already okay, except for math.h.
2263 fixincludes=fixinc.wrap
2267 tm_file="${tm_file} pdp11/2bsd.h"
2273 xmake_file=pyr/x-pyr
2280 xmake_file=romp/x-mach
2285 tm_file=rs6000/beos.h
2286 xm_file=rs6000/xm-beos.h
2287 tmake_file=rs6000/t-beos
2288 xmake_file=rs6000/x-beos
2290 powerpc-*-sysv* | powerpc-*-elf*)
2291 tm_file=rs6000/sysv4.h
2292 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2293 xm_defines="USG POSIX"
2294 extra_headers=ppc-asm.h
2295 if [[ x$gas = xyes ]]
2297 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2299 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2301 xmake_file=rs6000/x-sysv4
2304 tm_file=rs6000/eabiaix.h
2305 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2306 fixincludes=Makefile.in
2307 extra_headers=ppc-asm.h
2310 tm_file=rs6000/eabisim.h
2311 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2312 fixincludes=Makefile.in
2313 extra_headers=ppc-asm.h
2316 tm_file=rs6000/eabi.h
2317 if [[ x$gas = xyes ]]
2319 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2321 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2323 fixincludes=Makefile.in
2324 extra_headers=ppc-asm.h
2327 tm_file=rs6000/rtems.h
2328 if [[ x$gas = xyes ]]
2330 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2332 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2334 fixincludes=Makefile.in
2335 extra_headers=ppc-asm.h
2337 powerpc-*-linux-gnulibc1)
2338 tm_file=rs6000/linux.h
2339 xm_file=rs6000/xm-sysv4.h
2340 out_file=rs6000/rs6000.c
2341 if [[ x$gas = xyes ]]
2343 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2345 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2348 fixincludes=Makefile.in
2349 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2350 extra_headers=ppc-asm.h
2351 if [[ x$enable_threads = xyes ]]; then
2355 powerpc-*-linux-gnu*)
2356 tm_file=rs6000/linux.h
2357 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2358 xm_defines="USG ${xm_defines}"
2359 out_file=rs6000/rs6000.c
2360 if [[ x$gas = xyes ]]
2362 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2364 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2367 fixincludes=Makefile.in
2368 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2369 extra_headers=ppc-asm.h
2370 if [[ x$enable_threads = xyes ]]; then
2374 powerpc-wrs-vxworks*)
2376 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2377 xm_defines="USG POSIX"
2378 tm_file=rs6000/vxppc.h
2379 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2380 extra_headers=ppc-asm.h
2381 thread_file='vxworks'
2383 powerpcle-*-sysv* | powerpcle-*-elf*)
2384 tm_file=rs6000/sysv4le.h
2385 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2386 xm_defines="USG POSIX"
2387 if [[ x$gas = xyes ]]
2389 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2391 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2393 xmake_file=rs6000/x-sysv4
2394 extra_headers=ppc-asm.h
2396 powerpcle-*-eabisim*)
2397 tm_file=rs6000/eabilesim.h
2398 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2399 fixincludes=Makefile.in
2400 extra_headers=ppc-asm.h
2403 tm_file=rs6000/eabile.h
2404 if [[ x$gas = xyes ]]
2406 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2408 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2410 fixincludes=Makefile.in
2411 extra_headers=ppc-asm.h
2413 powerpcle-*-winnt* )
2414 tm_file=rs6000/win-nt.h
2415 tmake_file=rs6000/t-winnt
2417 fixincludes=Makefile.in
2418 if [[ x$enable_threads = xyes ]]; then
2421 extra_headers=ppc-asm.h
2423 powerpcle-*-pe | powerpcle-*-cygwin32)
2424 tm_file=rs6000/cygwin32.h
2425 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2426 tmake_file=rs6000/t-winnt
2427 xmake_file=rs6000/x-cygwin32
2429 fixincludes=Makefile.in
2430 if [[ x$enable_threads = xyes ]]; then
2434 extra_headers=ppc-asm.h
2436 powerpcle-*-solaris2*)
2437 tm_file=rs6000/sol2.h
2438 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2439 xm_defines="USG POSIX"
2440 if [[ x$gas = xyes ]]
2442 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2444 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2446 xmake_file=rs6000/x-sysv4
2448 *-*-solaris2.[[0-4]])
2449 fixincludes=fixinc.svr4;;
2451 fixincludes=fixinc.wrap;;
2453 extra_headers=ppc-asm.h
2455 rs6000-ibm-aix3.[[01]]*)
2456 tm_file=rs6000/aix31.h
2457 xmake_file=rs6000/x-aix31
2460 rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*)
2461 tm_file=rs6000/aix3newas.h
2462 if [[ x$host != x$target ]]
2464 tmake_file=rs6000/t-xnewas
2466 tmake_file=rs6000/t-newas
2470 rs6000-ibm-aix4.[[12]].* | powerpc-ibm-aix4.[[12]].*)
2471 tm_file=rs6000/aix41.h
2472 if [[ x$host != x$target ]]
2474 tmake_file=rs6000/t-xnewas
2476 tmake_file=rs6000/t-newas
2478 xmake_file=rs6000/x-aix41
2481 rs6000-ibm-aix4.[[3456789]].* | powerpc-ibm-aix4.[[3456789]].*)
2482 tm_file=rs6000/aix43.h
2483 if [[ x$host != x$target ]]
2485 tmake_file=rs6000/t-xaix43
2487 tmake_file=rs6000/t-aix43
2489 xmake_file=rs6000/x-aix43
2492 rs6000-ibm-aix[[56789]].* | powerpc-ibm-aix[[56789]].*)
2493 tm_file=rs6000/aix43.h
2494 if [[ x$host != x$target ]]
2496 tmake_file=rs6000/t-xaix43
2498 tmake_file=rs6000/t-aix43
2500 xmake_file=rs6000/x-aix43
2510 tm_file=rs6000/mach.h
2511 xm_file="${xm_file} rs6000/xm-mach.h"
2512 xmake_file=rs6000/x-mach
2516 tm_file=rs6000/lynx.h
2517 xm_file=rs6000/xm-lynx.h
2518 tmake_file=rs6000/t-rs6000
2519 xmake_file=rs6000/x-lynx
2527 tmake_file="sh/t-sh t-rtems"
2528 tm_file=sh/rtemself.h
2532 tmake_file="sh/t-sh t-rtems"
2541 xm_file="xm-alloca.h ${xm_file}"
2544 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2545 tm_file=sparc/vxsparc.h
2546 tmake_file=sparc/t-vxsparc
2548 thread_file='vxworks'
2551 tmake_file=sparc/t-sparcbare
2552 tm_file="sparc/aout.h libgloss.h"
2555 tm_file=sparc/netbsd.h
2556 # On NetBSD, the headers are already okay, except for math.h.
2557 fixincludes=fixinc.wrap
2565 tmake_file=sparc/t-elf
2566 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2570 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2571 xm_file="${xm_file} sparc/xm-linux.h"
2572 tm_file=sparc/linux-aout.h
2574 fixincludes=Makefile.in #On Linux, the headers are ok already.
2577 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2578 xm_file="${xm_file} sparc/xm-linux.h"
2580 tm_file=sparc/linux.h
2581 tmake_file="t-linux t-linux-gnulibc1"
2582 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2583 fixincludes=Makefile.in #On Linux, the headers are ok already.
2586 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2587 xm_file="${xm_file} sparc/xm-linux.h"
2589 tm_file=sparc/linux.h
2590 tmake_file="t-linux"
2591 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2592 fixincludes=Makefile.in #On Linux, the headers are ok already.
2594 if [[ x$enable_threads = xyes ]]; then
2599 if [[ x$gas = xyes ]]
2601 tm_file=sparc/lynx.h
2603 tm_file=sparc/lynx-ng.h
2605 xm_file=sparc/xm-lynx.h
2606 tmake_file=sparc/t-sunos41
2610 tmake_file="sparc/t-sparcbare t-rtems"
2611 tm_file=sparc/rtems.h
2614 if [[ x$gnu_ld = xyes ]]
2616 tm_file=sparc/sol2.h
2618 tm_file=sparc/sol2-sld.h
2620 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2621 xm_defines="USG POSIX"
2622 tmake_file=sparc/t-sol2
2623 xmake_file=sparc/x-sysv4
2624 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2626 *-*-solaris2.[[0-4]])
2627 fixincludes=fixinc.svr4;;
2629 fixincludes=fixinc.wrap;;
2632 if [[ x${enable_threads} = x ]]; then
2633 enable_threads=$have_pthread_h
2634 if [[ x${enable_threads} = x ]]; then
2635 enable_threads=$have_thread_h
2638 if [[ x${enable_threads} = xyes ]]; then
2639 if [[ x${have_pthread_h} = xyes ]]; then
2642 thread_file='solaris'
2647 tm_file=sparc/sunos4.h
2648 tmake_file=sparc/t-sunos40
2652 tm_file=sparc/sunos4.h
2653 tmake_file=sparc/t-sunos41
2655 if [[ x$gas = xyes ]]; then
2656 tm_file="${tm_file} sparc/sun4gas.h"
2660 tm_file=sparc/sun4o3.h
2664 tm_file=sparc/sysv4.h
2665 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2666 xm_defines="USG POSIX"
2668 xmake_file=sparc/x-sysv4
2669 extra_parts="crtbegin.o crtend.o"
2672 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2673 xm_defines="USG POSIX"
2674 tm_file=sparc/vxsim.h
2675 tmake_file=sparc/t-vxsparc
2676 xmake_file=sparc/x-sysv4
2679 tm_file="sparc/splet.h libgloss.h"
2680 tmake_file=sparc/t-splet
2683 tm_file="sparc/litecoff.h libgloss.h"
2684 tmake_file=sparc/t-sparclite
2687 tm_file="sparc/lite.h aoutos.h libgloss.h"
2688 tmake_file=sparc/t-sparclite
2691 tmake_file=sparc/t-sp64
2692 tm_file=sparc/sp64-aout.h
2695 tmake_file=sparc/t-sp64
2696 tm_file=sparc/sp64-elf.h
2697 extra_parts="crtbegin.o crtend.o"
2699 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2700 tmake_file=sparc/t-sp64
2701 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2702 tm_file=sparc/linux64.h
2704 fixincludes=Makefile.in # The headers are ok already.
2707 # This hasn't been upgraded to GCC 2.
2708 # tahoe-harris-*) # Harris tahoe, using COFF.
2709 # tm_file=tahoe/harris.h
2711 # tahoe-*-bsd*) # tahoe running BSD
2713 thumb-*-coff* | thumbel-*-coff*)
2715 out_file=arm/thumb.c
2716 xm_file=arm/xm-thumb.h
2717 md_file=arm/thumb.md
2718 tmake_file=arm/t-thumb
2719 fixincludes=Makefile.in # There is nothing to fix
2721 # This hasn't been upgraded to GCC 2.
2728 tm_file="v850/v850.h"
2729 xm_file="v850/xm-v850.h"
2730 tmake_file=v850/t-v850
2731 if [[ x$stabs = xyes ]]
2733 tm_file="${tm_file} dbx.h"
2737 vax-*-bsd*) # vaxen running BSD
2741 vax-*-sysv*) # vaxen running system V
2742 tm_file="${tm_file} vax/vaxv.h"
2747 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2748 # On NetBSD, the headers are already okay, except for math.h.
2749 fixincludes=fixinc.wrap
2753 vax-*-ultrix*) # vaxen running ultrix
2754 tm_file="${tm_file} vax/ultrix.h"
2758 vax-*-vms*) # vaxen running VMS
2759 xm_file=vax/xm-vms.h
2763 vax-*-*) # vax default entry
2767 xm_file="${xm_file} xm-svr3"
2771 echo "Configuration $machine not supported" 1>&2
2778 ;; # Existing GNU/Linux systems do not use the GNU setup.
2780 # On the GNU system, the setup is just about the same on
2781 # each different CPU. The specific machines that GNU
2782 # supports are matched above and just set $cpu_type.
2783 xm_file="xm-gnu.h ${xm_file}"
2784 tm_file=${cpu_type}/gnu.h
2785 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2786 # GNU always uses ELF.
2788 # GNU tools are the only tools.
2791 # On GNU, the headers are already okay.
2792 fixincludes=Makefile.in
2793 xmake_file=x-linux # These details are the same as Linux.
2794 tmake_file=t-gnu # These are not.
2797 fixincludes=fixinc.svr4
2798 xmake_try_sysv=x-sysv
2799 install_headers_dir=install-headers-cpio
2802 install_headers_dir=install-headers-cpio
2806 # Distinguish i[34567]86
2807 # Also, do not run mips-tfile on MIPS if using gas.
2808 # Process --with-cpu= for PowerPC/rs6000
2809 target_cpu_default2=
2812 target_cpu_default2=1
2815 target_cpu_default2=2
2817 i686-*-* | i786-*-*)
2818 target_cpu_default2=3
2823 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
2826 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2829 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2832 target_cpu_default2="MASK_CPU_EV5"
2836 if [[ x$gas = xyes ]]
2838 if [[ "$target_cpu_default2" = "" ]]
2840 target_cpu_default2="MASK_GAS"
2842 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2847 case "x$with_cpu" in
2850 target_cpu_default2="TARGET_CPU_generic"
2853 # Distinguish cores, and major variants
2854 # arm7m doesn't exist, but D & I don't affect code
2855 xarm[23678] | xarm250 | xarm[67][01]0 \
2856 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
2857 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2858 | xstrongarm | xstrongarm110)
2859 target_cpu_default2="TARGET_CPU_$with_cpu"
2863 echo "--with-cpu must be passed a value" 1>&2
2868 if [[ x$pass2done = xyes ]]
2870 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2877 mips*-*-ecoff* | mips*-*-elf*)
2878 if [[ x$gas = xyes ]]
2880 if [[ x$gnu_ld = xyes ]]
2882 target_cpu_default2=20
2884 target_cpu_default2=16
2889 if [[ x$gas = xyes ]]
2891 target_cpu_default2=16
2894 powerpc*-*-* | rs6000-*-*)
2895 case "x$with_cpu" in
2899 xcommon | xpower | xpower2 | xpowerpc | xrios \
2900 | xrios1 | xrios2 | xrsc | xrsc1 \
2901 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2902 | x403 | x505 | x801 | x821 | x823 | x860)
2903 target_cpu_default2="\"$with_cpu\""
2907 echo "--with-cpu must be passed a value" 1>&2
2912 if [[ x$pass2done = xyes ]]
2914 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2921 case ".$with_cpu" in
2923 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2925 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
2926 target_cpu_default2="TARGET_CPU_$with_cpu"
2929 if [[ x$pass2done = xyes ]]
2931 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2939 if [[ "$target_cpu_default2" != "" ]]
2941 if [[ "$target_cpu_default" != "" ]]
2943 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2945 target_cpu_default=$target_cpu_default2
2949 # No need for collect2 if we have the GNU linker.
2950 # Actually, there is now; GNU ld doesn't handle the EH info or
2951 # collecting for shared libraries.
2958 # Save data on machine being used to compile GCC in build_xm_file.
2959 # Save data on host machine in vars host_xm_file and host_xmake_file.
2960 if [[ x$pass1done = x ]]
2962 if [[ x"$xm_file" = x ]]
2963 then build_xm_file=$cpu_type/xm-$cpu_type.h
2964 else build_xm_file=$xm_file
2966 build_xm_defines=$xm_defines
2967 build_install_headers_dir=$install_headers_dir
2968 build_exeext=$exeext
2971 if [[ x$pass2done = x ]]
2973 if [[ x"$xm_file" = x ]]
2974 then host_xm_file=$cpu_type/xm-$cpu_type.h
2975 else host_xm_file=$xm_file
2977 host_xm_defines=$xm_defines
2978 if [[ x"$xmake_file" = x ]]
2979 then xmake_file=$cpu_type/x-$cpu_type
2981 host_xmake_file="$xmake_file"
2982 host_truncate_target=$truncate_target
2983 host_extra_gcc_objs=$extra_gcc_objs
2984 host_extra_objs=$extra_host_objs
2991 extra_objs="${host_extra_objs} ${extra_objs}"
2993 # Default the target-machine variables that were not explicitly set.
2994 if [[ x"$tm_file" = x ]]
2995 then tm_file=$cpu_type/$cpu_type.h; fi
2997 if [[ x$extra_headers = x ]]
2998 then extra_headers=; fi
3000 if [[ x"$xm_file" = x ]]
3001 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3003 if [[ x$md_file = x ]]
3004 then md_file=$cpu_type/$cpu_type.md; fi
3006 if [[ x$out_file = x ]]
3007 then out_file=$cpu_type/$cpu_type.c; fi
3009 if [[ x"$tmake_file" = x ]]
3010 then tmake_file=$cpu_type/t-$cpu_type
3013 if [[ x$float_format = x ]]
3014 then float_format=i64
3017 if [[ x$enable_haifa = x ]]
3020 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-* | m32r*-*)
3025 # Say what files are being used for the output code and MD file.
3026 echo "Using \`$srcdir/config/$out_file' to output insns."
3027 echo "Using \`$srcdir/config/$md_file' as machine description file."
3030 for f in $tm_file; do
3033 if [[ $count = ax ]]; then
3034 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3036 echo "Using the following target machine macro files:"
3037 for f in $tm_file; do
3038 echo " $srcdir/config/$f"
3043 for f in $host_xm_file; do
3046 if [[ $count = ax ]]; then
3047 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3049 echo "Using the following host machine macro files:"
3050 for f in $host_xm_file; do
3051 echo " $srcdir/config/$f"
3055 if [[ "$host_xm_file" != "$build_xm_file" ]]; then
3057 for f in $build_xm_file; do
3060 if [[ $count = ax ]]; then
3061 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3063 echo "Using the following build machine macro files:"
3064 for f in $build_xm_file; do
3065 echo " $srcdir/config/$f"
3070 if [[ x$thread_file = x ]]; then
3071 if [[ x$target_thread_file != x ]]; then
3072 thread_file=$target_thread_file
3074 thread_file='single'
3078 # Set up the header files.
3079 # $links is the list of header files to create.
3080 # $vars is the list of shell variables with file names to include.
3081 # auto-host.h is the file containing items generated by autoconf and is
3082 # the first file included by config.h.
3084 host_xm_file="auto-host.h ${host_xm_file}"
3086 # If host=build, it is correct to have hconfig include auto-host.h
3087 # as well. If host!=build, we are in error and need to do more
3088 # work to find out the build config parameters.
3089 if [[ x$host = x$build ]]
3091 build_xm_file="auto-host.h ${build_xm_file}"
3093 # We create a subdir, then run autoconf in the subdir.
3094 # To prevent recursion we set host and build for the new
3095 # invocation of configure to the build for this invocation
3102 /*) realsrcdir=${srcdir};;
3103 *) realsrcdir=../${srcdir};;
3105 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3106 --target=$target --host=$build --build=$build
3108 # We just finished tests for the build machine, so rename
3109 # the file auto-build.h in the gcc directory.
3110 mv auto-host.h ../auto-build.h
3113 build_xm_file="auto-build.h ${build_xm_file}"
3116 vars="host_xm_file tm_file xm_file build_xm_file"
3117 links="config.h tm.h tconfig.h hconfig.h"
3118 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3121 if [[ -f config.status ]]; then mv -f config.status config.bak; fi
3124 while [[ -n "$vars" ]]
3126 set $vars; var=$1; shift; vars=$*
3127 set $links; link=$1; shift; links=$*
3128 set $defines; define=$1; shift; defines=$*
3132 # Define TARGET_CPU_DEFAULT if the system wants one.
3133 # This substitutes for lots of *.h files.
3134 if [[ "$target_cpu_default" != "" -a $link = tm.h ]]
3136 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3139 for file in `eval echo '$'$var`; do
3140 echo "#include \"$file\"" >>$link
3143 for def in `eval echo '$'$define`; do
3144 echo "#ifndef $def" >>$link
3145 echo "#define $def" >>$link
3146 echo "#endif" >>$link
3150 # Truncate the target if necessary
3151 if [[ x$host_truncate_target != x ]]; then
3152 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3155 # Get the version trigger filename from the toplevel
3156 if [[ "${with_gcc_version_trigger+set}" = set ]]; then
3157 gcc_version_trigger=$with_gcc_version_trigger
3159 gcc_version_trigger=${srcdir}/version.c
3161 gcc_version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${gcc_version_trigger}`
3163 # Get an absolute path to the GCC top-level source directory
3169 # Conditionalize the makefile for this host machine.
3170 # Make-host contains the concatenation of all host makefile fragments
3171 # [there can be more than one]. This file is built by configure.frag.
3172 host_overrides=Make-host
3173 dep_host_xmake_file=
3174 for f in .. ${host_xmake_file}
3176 if [[ -f ${srcdir}/config/$f ]]
3178 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3182 # Conditionalize the makefile for this target machine.
3183 # Make-target contains the concatenation of all host makefile fragments
3184 # [there can be more than one]. This file is built by configure.frag.
3185 target_overrides=Make-target
3187 for f in .. ${tmake_file}
3189 if [[ -f ${srcdir}/config/$f ]]
3191 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3195 # If the host doesn't support symlinks, modify CC in
3196 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3197 # Otherwise, we can use "CC=$(CC)".
3199 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3201 cc_set_by_configure="\$(CC)"
3202 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3205 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3207 symbolic_link="cp -p"
3211 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3212 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3216 out_object_file=`basename $out_file .c`.o
3219 for f in $tm_file; do
3220 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3224 for f in $host_xm_file; do
3225 if test $f != "auto-host.h"; then
3226 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3228 host_xm_file_list="${host_xm_file_list} auto-host.h"
3233 for f in $build_xm_file; do
3234 if test $f != "auto-build.h"; then
3235 if test $f != "auto-host.h"; then
3236 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3238 build_xm_file_list="${build_xm_file_list} auto-host.h"
3241 build_xm_file_list="${build_xm_file_list} auto-build.h"
3245 # Define macro CROSS_COMPILE in compilation
3246 # if this is a cross-compiler.
3247 # Also use all.cross instead of all.internal
3248 # and add cross-make to Makefile.
3249 cross_overrides="/dev/null"
3250 if [[ x$host != x$target ]]
3252 cross_defines="CROSS=-DCROSS_COMPILE"
3253 cross_overrides="${topdir}/cross-make"
3256 # When building gcc with a cross-compiler, we need to fix a few things.
3257 # This must come after cross-make as we want all.build to override
3259 build_overrides="/dev/null"
3260 if [[ x$build != x$host ]]
3262 build_overrides="${topdir}/build-make"
3265 # Expand extra_headers to include complete path.
3266 # This substitutes for lots of t-* files.
3268 if [[ "x$extra_headers" = x ]]
3271 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3272 for file in $extra_headers;
3274 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3278 # Add a definition of USE_COLLECT2 if system wants one.
3279 # Also tell toplev.c what to do.
3280 # This substitutes for lots of t-* files.
3281 if [[ x$use_collect2 = x ]]
3286 will_use_collect2="collect2"
3287 maybe_use_collect2="-DUSE_COLLECT2"
3291 # Set MD_DEPS if the real md file is in md.pre-cpp.
3292 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3293 # for line oriented comments, so we must always use a GNU cpp. If
3294 # building gcc with a cross compiler, use the cross compiler just
3295 # built. Otherwise, we can use the cpp just built.
3297 if [[ "x$md_cppflags" = x ]]
3299 md_file_sub=$srcdir/config/$md_file
3304 # If we have gas in the build tree, make a link to it.
3305 if [[ -f ../gas/Makefile ]]; then
3306 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3309 # If we have nm in the build tree, make a link to it.
3310 if [[ -f ../binutils/Makefile ]]; then
3311 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3314 # If we have ld in the build tree, make a link to it.
3315 if [[ -f ../ld/Makefile ]]; then
3316 # if [[ x$use_collect2 = x ]]; then
3317 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3319 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3323 # Figure out what assembler alignment features are present.
3324 AC_MSG_CHECKING(assembler alignment features)
3326 gcc_cv_as_alignment_features=
3327 if [[ -x as$host_exeext ]]; then
3328 # Build using assembler in the current directory.
3329 gcc_cv_as=./as$host_exeext
3330 elif [[ -f $srcdir/../gas/configure.in ]]; then
3331 # Single tree build which includes gas.
3332 for f in $srcdir/../gas/configure $srcdir/../gas/configure.in $srcdir/../gas/Makefile.in
3334 gcc_cv_gas_version=`grep '^VERSION=[[0-9]]*\.[[0-9]]*' $f`
3335 if [[ x$gcc_cv_gas_version != x ]]; then
3339 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([[0-9]]*\)"`
3340 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[[0-9]]*\.\([[0-9]]*\)"`
3341 # Gas version 2.6 and later support for .balign and .p2align.
3342 # bytes to skip when using .p2align.
3343 if [[ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2 ]]; then
3344 gcc_cv_as_alignment_features=".balign and .p2align"
3345 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3347 # Gas version 2.8 and later support specifying the maximum
3348 # bytes to skip when using .p2align.
3349 if [[ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]]; then
3350 gcc_cv_as_alignment_features=".p2align including maximum skip"
3351 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3353 elif [[ x$host = x$target ]]; then
3355 gcc_cv_as=as$host_exeext
3357 if [[ x$gcc_cv_as != x ]]; then
3358 # Check if we have .balign and .p2align
3359 echo ".balign 4" > conftest.s
3360 echo ".p2align 2" >> conftest.s
3361 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3362 gcc_cv_as_alignment_features=".balign and .p2align"
3363 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3365 rm -f conftest.s conftest.o
3366 # Check if specifying the maximum bytes to skip when
3367 # using .p2align is supported.
3368 echo ".p2align 4,,7" > conftest.s
3369 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3370 gcc_cv_as_alignment_features=".p2align including maximum skip"
3371 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3373 rm -f conftest.s conftest.o
3375 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3377 # Figure out what language subdirectories are present.
3379 for lang in ${srcdir}/*/config-lang.in ..
3383 # The odd quoting in the next line works around
3384 # an apparent bug in bash 1.12 on linux.
3385 ${srcdir}/[[*]]/config-lang.in) ;;
3386 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
3390 # Make gthr-default.h if we have a thread file.
3392 if [[ $thread_file != single ]]; then
3393 rm -f gthr-default.h
3394 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3395 gthread_flags=-DHAVE_GTHR_DEFAULT
3397 AC_SUBST(gthread_flags)
3399 # Make empty files to contain the specs and options for each language.
3400 # Then add #include lines to for a compiler that has specs and/or options.
3404 rm -f specs.h options.h
3405 touch specs.h options.h
3406 for subdir in . $subdirs
3408 if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
3409 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3410 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3412 if [[ -f $srcdir/$subdir/lang-options.h ]]; then
3413 echo "#include \"$subdir/lang-options.h\"" >>options.h
3414 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3418 # These (without "all_") are set in each config-lang.in.
3419 # `language' must be a single word so is spelled singularly.
3425 all_outputs=Makefile
3426 # List of language makefile fragments.
3431 # Add the language fragments.
3432 # Languages are added via two mechanisms. Some information must be
3433 # recorded in makefile variables, these are defined in config-lang.in.
3434 # We accumulate them and plug them into the main Makefile.
3435 # The other mechanism is a set of hooks for each of the main targets
3436 # like `clean', `install', etc.
3438 language_fragments="Make-lang"
3439 language_hooks="Make-hooks"
3442 for s in .. $subdirs
3454 . ${srcdir}/$s/config-lang.in
3455 if [[ "x$language" = x ]]
3457 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3460 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3461 all_languages="$all_languages $language"
3462 if [[ "x$boot_language" = xyes ]]
3464 all_boot_languages="$all_boot_languages $language"
3466 all_compilers="$all_compilers $compilers"
3467 all_stagestuff="$all_stagestuff $stagestuff"
3468 all_diff_excludes="$all_diff_excludes $diff_excludes"
3469 all_headers="$all_headers $headers"
3470 all_outputs="$all_outputs $outputs"
3471 if [[ x$outputs = x ]]
3473 oldstyle_subdirs="$oldstyle_subdirs $s"
3475 all_lib2funcs="$all_lib2funcs $lib2funcs"
3479 # Since we can't use `::' targets, we link each language in
3480 # with a set of hooks, reached indirectly via lang.${target}.
3484 target_list="all.build all.cross start.encap rest.encap \
3486 install-normal install-common install-info install-man \
3488 mostlyclean clean distclean extraclean maintainer-clean \
3489 stage1 stage2 stage3 stage4"
3490 for t in $target_list
3493 for l in .. $all_languages
3495 if [[ $l != ".." ]]; then
3499 echo "lang.$t: $x" >> Make-hooks
3502 # If we're not building in srcdir, create .gdbinit.
3504 if [[ ! -f Makefile.in ]]; then
3505 echo "dir ." > .gdbinit
3506 echo "dir ${srcdir}" >> .gdbinit
3507 if [[ x$gdb_needs_out_file_path = xyes ]]
3509 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3511 if [[ "x$subdirs" != x ]]; then
3514 echo "dir ${srcdir}/$s" >> .gdbinit
3517 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3520 # Define variables host_canonical and build_canonical
3521 # because some Cygnus local changes in the Makefile depend on them.
3522 build_canonical=${build}
3523 host_canonical=${host}
3525 if [[ "${host}" != "${target}" ]] ; then
3526 target_subdir=${target}/
3528 AC_SUBST(build_canonical)
3529 AC_SUBST(host_canonical)
3530 AC_SUBST(target_subdir)
3532 # If this is using newlib, then define inhibit_libc in
3533 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3534 # libgcc.a, but that's OK because newib should have its own version of
3537 if [[ x$with_newlib = xyes ]]; then
3538 inhibit_libc=-Dinhibit_libc
3540 AC_SUBST(inhibit_libc)
3542 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3545 if [[ x$enable_haifa = xyes ]]; then
3546 echo "Using the Haifa scheduler."
3548 sched_cflags=-DHAIFA
3550 AC_SUBST(sched_prefix)
3551 AC_SUBST(sched_cflags)
3552 if [[ x$enable_haifa != x ]]; then
3553 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3554 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3555 if [[ -f $x ]]; then
3562 # Nothing to do for FLOAT_H, float_format already handled.
3566 # Process the language and host/target makefile fragments.
3567 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3569 # Substitute configuration variables
3571 AC_SUBST(all_languages)
3572 AC_SUBST(all_boot_languages)
3573 AC_SUBST(all_compilers)
3574 AC_SUBST(all_lang_makefiles)
3575 AC_SUBST(all_stagestuff)
3576 AC_SUBST(all_diff_excludes)
3577 AC_SUBST(all_lib2funcs)
3578 AC_SUBST(all_headers)
3580 AC_SUBST(extra_passes)
3581 AC_SUBST(extra_programs)
3582 AC_SUBST(extra_parts)
3583 AC_SUBST(extra_c_objs)
3584 AC_SUBST(extra_cxx_objs)
3585 AC_SUBST(extra_c_flags)
3586 AC_SUBST(extra_objs)
3587 AC_SUBST(host_extra_gcc_objs)
3588 AC_SUBST(extra_headers_list)
3589 AC_SUBST(dep_host_xmake_file)
3590 AC_SUBST(dep_tmake_file)
3592 AC_SUBST(out_object_file)
3594 AC_SUBST(tm_file_list)
3595 AC_SUBST(build_xm_file_list)
3596 AC_SUBST(host_xm_file_list)
3597 AC_SUBST(lang_specs_files)
3598 AC_SUBST(lang_options_files)
3599 AC_SUBST(thread_file)
3600 AC_SUBST(gcc_version)
3601 AC_SUBST(gcc_version_trigger)
3602 AC_SUBST(local_prefix)
3603 AC_SUBST(gxx_include_dir)
3604 AC_SUBST(fixincludes)
3605 AC_SUBST(build_install_headers_dir)
3606 AC_SUBST(build_exeext)
3607 AC_SUBST(host_exeext)
3608 AC_SUBST(float_format)
3609 AC_SUBST(will_use_collect2)
3610 AC_SUBST(maybe_use_collect2)
3611 AC_SUBST(cc_set_by_configure)
3612 AC_SUBST(stage_prefix_set_by_configure)
3614 AC_SUBST(symbolic_link)
3616 AC_SUBST_FILE(target_overrides)
3617 AC_SUBST_FILE(host_overrides)
3618 AC_SUBST(cross_defines)
3619 AC_SUBST_FILE(cross_overrides)
3620 AC_SUBST_FILE(build_overrides)
3621 AC_SUBST_FILE(language_fragments)
3622 AC_SUBST_FILE(language_hooks)
3624 # Echo that links are built
3625 if [[ x$host = x$target ]]
3633 if [[ x$host != x$build ]]
3635 str3=" on a $build system"
3638 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3643 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3645 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3647 echo " ${str2}${str3}." 1>&2
3650 # Truncate the target if necessary
3651 if [[ x$host_truncate_target != x ]]; then
3652 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3655 # Configure the subdirectories
3656 # AC_CONFIG_SUBDIRS($subdirs)
3658 # Create the Makefile
3659 # and configure language subdirectories
3660 AC_OUTPUT($all_outputs,
3662 . $srcdir/configure.lang
3663 case x$CONFIG_HEADERS in
3664 xauto-host.h:config.in)
3667 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3668 # bootstrapping and the installation procedure can still use
3669 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3670 # FLAGS_TO_PASS has been modified to solve the problem there.
3671 # This is virtually a duplicate of what happens in configure.lang; we do
3672 # an extra check to make sure this only happens if ln -s can be used.
3673 if [[ "$symbolic_link" = "ln -s" ]]; then
3674 for d in .. ${subdirs} ; do
3675 if [[ $d != .. ]]; then
3678 for t in stage1 stage2 stage3 stage4 include
3681 $symbolic_link ../$t $t 2>/dev/null
3692 target_alias='${target_alias}'
3694 subdirs='${subdirs}'
3695 oldstyle_subdirs='${oldstyle_subdirs}'
3696 symbolic_link='${symbolic_link}'
3697 program_transform_set='${program_transform_set}'
3698 program_transform_name='${program_transform_name}'
3699 dep_host_xmake_file='${dep_host_xmake_file}'
3700 host_xmake_file='${host_xmake_file}'
3701 dep_tmake_file='${dep_tmake_file}'
3702 tmake_file='${tmake_file}'
3703 thread_file='${thread_file}'
3704 gcc_version='${gcc_version}'
3705 gcc_version_trigger='${gcc_version_trigger}'
3706 local_prefix='${local_prefix}'
3707 build_install_headers_dir='${build_install_headers_dir}'
3708 build_exeext='${build_exeext}'
3709 host_exeext='${host_exeext}'
3710 out_file='${out_file}'
3711 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3712 SET_MAKE='${SET_MAKE}'
3713 target_list='${target_list}'
3714 target_overrides='${target_overrides}'
3715 host_overrides='${host_overrides}'
3716 cross_defines='${cross_defines}'
3717 cross_overrides='${cross_overrides}'
3718 build_overrides='${build_overrides}'