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)
212 build_install_headers_dir=install-headers-tar
217 host_truncate_target=
220 # Decode the host machine, then the target machine.
221 # For the host machine, we save the xm_file variable as host_xm_file;
222 # then we decode the target machine and forget everything else
223 # that came from the host machine.
224 for machine in $build $host $target; do
238 # Set this to force installation and use of collect2.
240 # Set this to override the default target model.
242 # Set this to control which fixincludes program to use.
243 if [[ x$fast_fixinc != xyes ]] ; then
244 fixincludes=fixincludes
245 else fixincludes=fixinc.sh ; fi
246 # Set this to control how the header file directory is installed.
247 install_headers_dir=install-headers-tar
248 # Set this to a non-empty list of args to pass to cpp if the target
249 # wants its .md file passed through cpp.
251 # Set this if directory names should be truncated to 14 characters.
253 # Set this if gdb needs a dir command with `dirname $out_file`
254 gdb_needs_out_file_path=
255 # Set this if the build machine requires executables to have a
258 # Set this to control which thread package will be used.
260 # Reinitialize these from the flag values every loop pass, since some
261 # configure entries modify them.
263 gnu_ld="$gnu_ld_flag"
264 enable_threads=$enable_threads_flag
266 # Set default cpu_type, tm_file and xm_file so it can be updated in
267 # each machine entry.
268 cpu_type=`echo $machine | sed 's/-.*$//'`
302 tm_file=${cpu_type}/${cpu_type}.h
303 xm_file=${cpu_type}/xm-${cpu_type}.h
305 # Set the default macros to define for GNU/Linux systems.
308 xm_defines="HAVE_ATEXIT POSIX BSTRING"
313 # Support site-specific machine types.
315 cpu_type=`echo $machine | sed -e 's/-.*//'`
316 rest=`echo $machine | sed -e "s/$cpu_type-//"`
317 xm_file=${cpu_type}/xm-$rest.h
318 tm_file=${cpu_type}/$rest.h
319 if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \
320 then xmake_file=${cpu_type}/x-$rest; \
323 if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \
324 then tmake_file=${cpu_type}/t-$rest; \
330 a29k-*-bsd* | a29k-*-sym1*)
331 tm_file="${tm_file} a29k/unix.h"
333 xmake_file=a29k/x-unix
336 a29k-*-udi | a29k-*-coff)
337 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
338 tmake_file=a29k/t-a29kbare
341 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
342 tmake_file=a29k/t-vx29k
343 extra_parts="crtbegin.o crtend.o"
344 thread_file='vxworks'
346 a29k-*-*) # Default a29k environment.
349 alpha*-*-linux-gnuecoff*)
350 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
351 target_cpu_default="MASK_GAS"
356 alpha*-*-linux-gnulibc1*)
357 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
358 target_cpu_default="MASK_GAS"
359 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
360 extra_parts="crtbegin.o crtend.o"
361 fixincludes=fixinc.wrap
364 if [[ x$enable_threads = xyes ]]; then
369 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
370 target_cpu_default="MASK_GAS"
371 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
372 extra_parts="crtbegin.o crtend.o"
374 fixincludes=Makefile.in
376 if [[ x$enable_threads = xyes ]]; then
381 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
382 target_cpu_default="MASK_GAS"
383 tmake_file="alpha/t-crtbe"
384 extra_parts="crtbegin.o crtend.o"
386 fixincludes=fixinc.wrap
391 if [[ x$stabs = xyes ]]
393 tm_file="${tm_file} dbx.h"
395 if [[ x$gas != xyes ]]
397 extra_passes="mips-tfile mips-tdump"
402 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
405 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
408 tm_file="${tm_file} alpha/osf.h"
409 # Some versions of OSF4 (specifically X4.0-9 296.7) have
410 # a broken tar, so we use cpio instead.
411 install_headers_dir=install-headers-cpio
415 *-*-osf4.0[[b-z]] | *-*-osf4.[[1-9]]*)
416 target_cpu_default=MASK_SUPPORT_ARCH
421 tm_file="${tm_file} dbx.h alpha/vxworks.h"
424 extra_passes="mips-tfile mips-tdump"
429 tm_file="${tm_file} alpha/win-nt.h"
430 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
432 xmake_file=winnt/x-winnt
433 extra_host_objs=oldnames.o
434 extra_gcc_objs="spawnv.o oldnames.o"
435 fixincludes=fixinc.winnt
436 if [[ x$gnu_ld != xyes ]]
438 extra_programs=ld.exe
440 if [[ x$enable_threads = xyes ]]; then
446 xm_file="${xm_file} alpha/xm-vms.h"
447 tmake_file=alpha/t-vms
448 fixincludes=Makefile.in
451 extra_parts="crtinit.o crtfini.o"
453 arm-*-coff* | armel-*-coff*)
455 tmake_file=arm/t-bare
457 arm-*-riscix1.[[01]]*) # Acorn RISC machine (early versions)
458 tm_file=arm/riscix1-1.h
461 arm-*-riscix*) # Acorn RISC machine
462 if [[ x$gas = xyes ]]
464 tm_file=arm/rix-gas.h
468 xmake_file=arm/x-riscix
469 tmake_file=arm/t-riscix
472 arm-semi-aout | armel-semi-aout)
474 tmake_file=arm/t-semi
475 fixincludes=Makefile.in # There is nothing to fix
477 arm-semi-aof | armel-semi-aof)
478 tm_file=arm/semiaof.h
479 tmake_file=arm/t-semiaof
480 fixincludes=Makefile.in # There is nothing to fix
484 xm_file="xm-siglist.h ${xm_file}"
485 tmake_file="t-netbsd arm/t-netbsd"
486 # On NetBSD, the headers are already okay, except for math.h.
487 fixincludes=fixinc.wrap
489 arm-*-linux-gnuaout*) # ARM GNU/Linux
492 tm_file=arm/linux-gas.h
493 tmake_file=arm/t-linux
494 fixincludes=Makefile.in
499 tmake_file=arm/t-bare
501 c1-convex-*) # Convex C1
504 fixincludes=Makefile.in
506 c2-convex-*) # Convex C2
509 fixincludes=Makefile.in
514 fixincludes=Makefile.in
519 fixincludes=Makefile.in
522 target_cpu_default=16
524 fixincludes=Makefile.in
526 clipper-intergraph-clix*)
527 tm_file="${tm_file} svr3.h clipper/clix.h"
528 xm_file=clipper/xm-clix.h
529 xmake_file=clipper/x-clix
530 extra_headers=va-clipper.h
531 extra_parts="crtbegin.o crtend.o"
532 install_headers_dir=install-headers-cpio
539 # This hasn't been upgraded to GCC 2.
540 # fx80-alliant-*) # Alliant FX/80
546 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
547 xm_file=pa/xm-papro.h
552 tm_file="${tm_file} pa/pa-osf.h"
554 fixincludes=Makefile.in
557 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
558 xm_file=pa/xm-papro.h
562 tm_file="${tm_file} pa/pa-osf.h"
564 fixincludes=Makefile.in
569 fixincludes=Makefile.in
573 fixincludes=Makefile.in
576 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
577 xm_file=pa/xm-pahpux.h
578 xmake_file=pa/x-pa-hpux
579 if [[ x$gas = xyes ]]
581 tm_file="${tm_file} pa/gas.h"
583 install_headers_dir=install-headers-cpio
586 hppa1.0-*-hpux8.0[[0-2]]*)
587 tm_file="${tm_file} pa/pa-hpux.h"
588 xm_file=pa/xm-pahpux.h
589 xmake_file=pa/x-pa-hpux
590 if [[ x$gas = xyes ]]
592 tm_file="${tm_file} pa/pa-gas.h"
594 tm_file="pa/pa-oldas.h ${tm_file}"
596 install_headers_dir=install-headers-cpio
599 hppa1.1-*-hpux8.0[[0-2]]*)
601 tm_file="${tm_file} pa/pa-hpux.h"
602 xm_file=pa/xm-pahpux.h
603 xmake_file=pa/x-pa-hpux
604 if [[ x$gas = xyes ]]
606 tm_file="${tm_file} pa/pa-gas.h"
608 tm_file="pa/pa-oldas.h ${tm_file}"
610 install_headers_dir=install-headers-cpio
615 tm_file="${tm_file} pa/pa-hpux.h"
616 xm_file=pa/xm-pahpux.h
617 xmake_file=pa/x-pa-hpux
618 if [[ x$gas = xyes ]]
620 tm_file="${tm_file} pa/pa-gas.h"
622 install_headers_dir=install-headers-cpio
626 tm_file="${tm_file} pa/pa-hpux.h"
627 xm_file=pa/xm-pahpux.h
628 xmake_file=pa/x-pa-hpux
629 if [[ x$gas = xyes ]]
631 tm_file="${tm_file} pa/pa-gas.h"
633 install_headers_dir=install-headers-cpio
638 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
639 xm_file=pa/xm-pahpux.h
640 xmake_file=pa/x-pa-hpux
642 if [[ x$gas = xyes ]]
644 tm_file="${tm_file} pa/pa-gas.h"
646 if [[ x$enable_threads = x ]]; then
647 enable_threads=$have_pthread_h
649 if [[ x$enable_threads = xyes ]]; then
651 tmake_file="${tmake_file} pa/t-dce-thr"
653 install_headers_dir=install-headers-cpio
657 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
658 xm_file=pa/xm-pahpux.h
659 xmake_file=pa/x-pa-hpux
660 if [[ x$gas = xyes ]]
662 tm_file="${tm_file} pa/pa-gas.h"
664 if [[ x$enable_threads = x ]]; then
665 enable_threads=$have_pthread_h
667 if [[ x$enable_threads = xyes ]]; then
669 tmake_file="${tmake_file} pa/t-dce-thr"
671 install_headers_dir=install-headers-cpio
676 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
677 xm_file=pa/xm-pahpux.h
678 xmake_file=pa/x-pa-hpux
679 if [[ x$gas = xyes ]]
681 tm_file="${tm_file} pa/pa-gas.h"
683 install_headers_dir=install-headers-cpio
687 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
688 xm_file=pa/xm-pahpux.h
689 xmake_file=pa/x-pa-hpux
690 if [[ x$gas = xyes ]]
692 tm_file="${tm_file} pa/pa-gas.h"
694 install_headers_dir=install-headers-cpio
699 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
700 xm_file=pa/xm-pahpux.h
701 xmake_file=pa/x-pa-hpux
702 if [[ x$gas = xyes ]]
704 tm_file="${tm_file} pa/pa-gas.h"
706 install_headers_dir=install-headers-cpio
710 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
711 xm_file=pa/xm-pahpux.h
712 xmake_file=pa/x-pa-hpux
713 if [[ x$gas = xyes ]]
715 tm_file="${tm_file} pa/pa-gas.h"
717 install_headers_dir=install-headers-cpio
723 fixincludes=Makefile.in
727 i[[34567]]86-ibm-aix*) # IBM PS/2 running AIX
728 if [[ x$gas = xyes ]]
730 tm_file=i386/aix386.h
731 extra_parts="crtbegin.o crtend.o"
732 tmake_file=i386/t-crtstuff
734 tm_file=i386/aix386ng.h
737 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
739 xmake_file=i386/x-aix
741 i[[34567]]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
742 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
743 xm_defines="USG POSIX SMALL_ARG_MAX"
744 xmake_file=i386/x-ncr3000
745 if [[ x$stabs = xyes -a x$gas = xyes ]]
747 tm_file=i386/sysv4gdb.h
751 extra_parts="crtbegin.o crtend.o"
752 tmake_file=i386/t-crtpic
756 xm_file=i386/xm-next.h
757 tmake_file=i386/t-next
758 xmake_file=i386/x-next
759 extra_objs=nextstep.o
760 if [[ x$enable_threads = xyes ]]; then
764 i[[34567]]86-sequent-bsd*) # 80386 from Sequent
766 if [[ x$gas = xyes ]]
768 tm_file=i386/seq-gas.h
770 tm_file=i386/sequent.h
773 i[[34567]]86-sequent-ptx1*)
774 xm_defines="USG SVR3"
775 xmake_file=i386/x-sysv3
776 tm_file=i386/seq-sysv3.h
777 tmake_file=i386/t-crtstuff
778 fixincludes=fixinc.ptx
779 extra_parts="crtbegin.o crtend.o"
780 install_headers_dir=install-headers-cpio
782 i[[34567]]86-sequent-ptx2* | i[[34567]]86-sequent-sysv3*)
783 xm_defines="USG SVR3"
784 xmake_file=i386/x-sysv3
785 tm_file=i386/seq2-sysv3.h
786 tmake_file=i386/t-crtstuff
787 extra_parts="crtbegin.o crtend.o"
788 fixincludes=fixinc.ptx
789 install_headers_dir=install-headers-cpio
791 i[[34567]]86-sequent-ptx4* | i[[34567]]86-sequent-sysv4*)
792 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
793 xm_defines="USG POSIX SMALL_ARG_MAX"
795 tm_file=i386/ptx4-i.h
797 extra_parts="crtbegin.o crtend.o"
798 fixincludes=fixinc.ptx
799 install_headers_dir=install-headers-cpio
801 i386-sun-sunos*) # Sun i386 roadrunner
806 i[[34567]]86-wrs-vxworks*)
807 tm_file=i386/vxi386.h
808 tmake_file=i386/t-i386bare
810 i[[34567]]86-*-aout*)
811 tm_file=i386/i386-aout.h
812 tmake_file=i386/t-i386bare
814 i[[34567]]86-*-bsdi* | i[[34567]]86-*-bsd386*)
815 tm_file=i386/bsd386.h
816 # tmake_file=t-libc-ok
819 tm_file=i386/386bsd.h
820 # tmake_file=t-libc-ok
821 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
824 i[[34567]]86-*-freebsdelf*)
825 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
826 # On FreeBSD, the headers are already ok, except for math.h.
827 fixincludes=fixinc.wrap
828 tmake_file=i386/t-freebsd
833 i[[34567]]86-*-freebsd*)
834 tm_file=i386/freebsd.h
835 # On FreeBSD, the headers are already ok, except for math.h.
836 fixincludes=fixinc.wrap
837 tmake_file=i386/t-freebsd
839 i[[34567]]86-*-netbsd*)
840 tm_file=i386/netbsd.h
841 # On NetBSD, the headers are already okay, except for math.h.
842 fixincludes=fixinc.wrap
845 i[[34567]]86-*-coff*)
846 tm_file=i386/i386-coff.h
847 tmake_file=i386/t-i386bare
849 i[[34567]]86-*-isc*) # 80386 running ISC system
850 xm_file="${xm_file} i386/xm-isc.h"
851 xm_defines="USG SVR3"
853 i[[34567]]86-*-isc[[34]]*)
854 xmake_file=i386/x-isc3
857 xmake_file=i386/x-isc
860 if [[ x$gas = xyes -a x$stabs = xyes ]]
862 tm_file=i386/iscdbx.h
863 tmake_file=i386/t-svr3dbx
864 extra_parts="svr3.ifile svr3z.ifile"
866 tm_file=i386/isccoff.h
867 tmake_file=i386/t-crtstuff
868 extra_parts="crtbegin.o crtend.o"
870 install_headers_dir=install-headers-cpio
872 i[[34567]]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
873 # with a.out format using
875 xmake_file=x-linux-aout
876 tmake_file="t-linux-aout i386/t-crtstuff"
877 tm_file=i386/linux-oldld.h
878 fixincludes=Makefile.in #On Linux, the headers are ok already.
882 i[[34567]]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
884 xmake_file=x-linux-aout
885 tmake_file="t-linux-aout i386/t-crtstuff"
886 tm_file=i386/linux-aout.h
887 fixincludes=Makefile.in #On Linux, the headers are ok already.
891 i[[34567]]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
892 # with ELF format using the
893 # GNU/Linux C library 5
896 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
897 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
898 fixincludes=Makefile.in #On Linux, the headers are ok already.
901 if [[ x$enable_threads = xyes ]]; then
905 i[[34567]]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
906 # with ELF format using glibc 2
907 # aka GNU/Linux C library 6
910 tmake_file="t-linux i386/t-crtstuff"
911 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
912 fixincludes=Makefile.in #On Linux, the headers are ok already.
915 if [[ x$enable_threads = xyes ]]; then
921 i[[34567]]86-go32-msdos | i[[34567]]86-*-go32*)
922 xm_file=i386/xm-go32.h
924 tmake_file=i386/t-go32
926 i[[34567]]86-pc-msdosdjgpp*)
927 xm_file=i386/xm-go32.h
929 tmake_file=i386/t-go32
933 i[[34567]]86-moss-msdos* | i[[34567]]86-*-moss*)
936 fixincludes=Makefile.in
940 i[[34567]]86-*-lynxos*)
941 if [[ x$gas = xyes ]]
945 tm_file=i386/lynx-ng.h
947 xm_file=i386/xm-lynx.h
948 tmake_file=i386/t-i386bare
951 i[[34567]]86-*-mach*)
953 # tmake_file=t-libc-ok
956 i[[34567]]86-*-osfrose*) # 386 using OSF/rose
957 if [[ x$elf = xyes ]]
959 tm_file=i386/osfelf.h
962 tm_file=i386/osfrose.h
965 xm_file="i386/xm-osf.h ${xm_file}"
966 xmake_file=i386/x-osfrose
967 tmake_file=i386/t-osf
970 i[[34567]]86-go32-rtems*)
972 xm_file=i386/xm-go32.h
973 tm_file=i386/go32-rtems.h
974 tmake_file="i386/t-go32 t-rtems"
976 i[[34567]]86-*-rtemself*)
978 tm_file=i386/rtemself.h
979 tmake_file="i386/t-i386bare t-rtems"
981 i[[34567]]86-*-rtems*)
984 tmake_file="i386/t-i386bare t-rtems"
986 i[[34567]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
987 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
988 xm_defines="USG SVR3"
989 xmake_file=i386/x-sco5
990 fixincludes=fixinc.sco
991 install_headers_dir=install-headers-cpio
993 tmake_file=i386/t-sco5
994 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
996 i[[34567]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
997 xm_file="${xm_file} i386/xm-sco.h"
998 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
999 xmake_file=i386/x-sco4
1000 fixincludes=fixinc.sco
1001 install_headers_dir=install-headers-cpio
1002 if [[ x$stabs = xyes ]]
1004 tm_file=i386/sco4dbx.h
1005 tmake_file=i386/t-svr3dbx
1006 extra_parts="svr3.ifile svr3z.rfile"
1009 tmake_file=i386/t-crtstuff
1010 extra_parts="crtbegin.o crtend.o"
1014 i[[34567]]86-*-sco*) # 80386 running SCO system
1015 xm_file=i386/xm-sco.h
1016 xmake_file=i386/x-sco
1017 install_headers_dir=install-headers-cpio
1018 if [[ x$stabs = xyes ]]
1020 tm_file=i386/scodbx.h
1021 tmake_file=i386/t-svr3dbx
1022 extra_parts="svr3.ifile svr3z.rfile"
1025 extra_parts="crtbegin.o crtend.o"
1026 tmake_file=i386/t-crtstuff
1030 i[[34567]]86-*-solaris2*)
1031 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1032 xm_defines="USG POSIX SMALL_ARG_MAX"
1033 if [[ x$stabs = xyes ]]
1035 tm_file=i386/sol2dbg.h
1039 tmake_file=i386/t-sol2
1040 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1043 *-*-solaris2.[[0-4]])
1044 fixincludes=fixinc.svr4;;
1046 fixincludes=fixinc.wrap;;
1048 if [[ x$enable_threads = xyes ]]; then
1049 thread_file='solaris'
1052 i[[34567]]86-*-sysv5*) # Intel x86 on System V Release 5
1053 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1054 xm_defines="USG POSIX"
1055 tm_file=i386/sysv4.h
1056 if [[ x$stabs = xyes ]]
1058 tm_file="${tm_file} dbx.h"
1060 tmake_file=i386/t-crtpic
1062 extra_parts="crtbegin.o crtend.o"
1063 fixincludes=Makefile.in # The headers are just fine, thank you.
1065 i[[34567]]86-*-sysv4*) # Intel 80386's running system V.4
1066 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1067 xm_defines="USG POSIX SMALL_ARG_MAX"
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"
1077 i[[34567]]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1079 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1080 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1081 fixincludes=Makefile.in #Don't do it on OSF/1
1082 if [[ x$stabs = xyes ]]
1084 tm_file=i386/osf1elfgdb.h
1086 tm_file=i386/osf1elf.h
1088 tmake_file=i386/t-osf1elf
1089 xmake_file=i386/x-osf1elf
1090 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1092 i[[34567]]86-*-sysv*) # Intel 80386's running system V
1093 xm_defines="USG SVR3"
1094 xmake_file=i386/x-sysv3
1095 if [[ x$gas = xyes ]]
1097 if [[ x$stabs = xyes ]]
1099 tm_file=i386/svr3dbx.h
1100 tmake_file=i386/t-svr3dbx
1101 extra_parts="svr3.ifile svr3z.rfile"
1103 tm_file=i386/svr3gas.h
1104 extra_parts="crtbegin.o crtend.o"
1105 tmake_file=i386/t-crtstuff
1108 tm_file=i386/sysv3.h
1109 extra_parts="crtbegin.o crtend.o"
1110 tmake_file=i386/t-crtstuff
1113 i386-*-vsta) # Intel 80386's running VSTa kernel
1114 xm_file="${xm_file} i386/xm-vsta.h"
1116 tmake_file=i386/t-vsta
1117 xmake_file=i386/x-vsta
1119 i[[34567]]86-*-pe | i[[34567]]86-*-cygwin32)
1120 xm_file="${xm_file} i386/xm-cygwin32.h"
1121 tmake_file=i386/t-cygwin32
1122 tm_file=i386/cygwin32.h
1123 xmake_file=i386/x-cygwin32
1125 fixincludes=Makefile.in
1126 if [[ x$enable_threads = xyes ]]; then
1131 i[[34567]]86-*-mingw32*)
1132 tm_file=i386/mingw32.h
1133 xm_file="${xm_file} i386/xm-mingw32.h"
1134 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1136 xmake_file=i386/x-cygwin32
1137 fixincludes=Makefile.in
1138 if [[ x$enable_threads = xyes ]]; then
1145 *minwg32crt* | *mingw32*)
1146 tm_file="${tm_file} i386/crtdll.h"
1150 i[[34567]]86-*-winnt3*)
1151 tm_file=i386/win-nt.h
1152 out_file=i386/i386.c
1153 xm_file="xm-winnt.h ${xm_file}"
1154 xmake_file=winnt/x-winnt
1155 tmake_file=i386/t-winnt
1156 extra_host_objs="winnt.o oldnames.o"
1157 extra_gcc_objs="spawnv.o oldnames.o"
1158 fixincludes=fixinc.winnt
1159 if [[ x$gnu_ld != xyes ]]
1161 extra_programs=ld.exe
1163 if [[ x$enable_threads = xyes ]]; then
1167 i[[34567]]86-dg-dgux*)
1168 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1169 xm_defines="USG POSIX"
1170 out_file=i386/dgux.c
1172 tmake_file=i386/t-dgux
1173 xmake_file=i386/x-dgux
1174 fixincludes=fixinc.dgux
1175 install_headers_dir=install-headers-cpio
1177 i860-alliant-*) # Alliant FX/2800
1178 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1179 xm_file="${xm_file}"
1180 xmake_file=i860/x-fx2800
1181 tmake_file=i860/t-fx2800
1182 extra_parts="crtbegin.o crtend.o"
1185 tm_file="${tm_file} i860/bsd.h"
1186 if [[ x$gas = xyes ]]
1188 tm_file="${tm_file} i860/bsd-gas.h"
1193 tm_file="${tm_file} i860/mach.h"
1194 tmake_file=t-libc-ok
1196 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1197 tm_file="${tm_file} svr3.h i860/paragon.h"
1198 xm_defines="USG SVR3"
1202 tm_file="${tm_file} svr3.h i860/sysv3.h"
1203 xm_defines="USG SVR3"
1204 xmake_file=i860/x-sysv3
1205 extra_parts="crtbegin.o crtend.o"
1208 tm_file="${tm_file} svr4.h i860/sysv4.h"
1209 xm_defines="USG SVR3"
1210 xmake_file=i860/x-sysv4
1212 extra_parts="crtbegin.o crtend.o"
1214 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1215 tm_file="${tm_file} i960/vx960.h"
1216 tmake_file=i960/t-vxworks960
1218 thread_file='vxworks'
1220 i960-wrs-vxworks5* | i960-wrs-vxworks)
1221 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1222 tmake_file=i960/t-vxworks960
1224 thread_file='vxworks'
1227 tm_file="${tm_file} i960/vx960.h"
1228 tmake_file=i960/t-vxworks960
1230 thread_file='vxworks'
1233 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1234 tmake_file=i960/t-960bare
1238 tmake_file="i960/t-960bare t-rtems"
1239 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1242 i960-*-*) # Default i960 environment.
1246 extra_parts="crtinit.o crtfini.o"
1248 m68000-convergent-sysv*)
1250 xm_file="m68k/xm-3b1.h ${xm_file}"
1253 extra_headers=math-68881.h
1255 m68000-hp-bsd*) # HP 9000/200 running BSD
1256 tm_file=m68k/hp2bsd.h
1257 xmake_file=m68k/x-hp2bsd
1259 extra_headers=math-68881.h
1261 m68000-hp-hpux*) # HP 9000 series 300
1262 xm_file="xm_alloca.h ${xm_file}"
1263 xm_defines="USG NO_SYS_SIGLIST"
1264 if [[ x$gas = xyes ]]
1266 xmake_file=m68k/x-hp320g
1267 tm_file=m68k/hp310g.h
1269 xmake_file=m68k/x-hp320
1270 tm_file=m68k/hp310.h
1272 install_headers_dir=install-headers-cpio
1274 extra_headers=math-68881.h
1279 extra_headers=math-68881.h
1282 tm_file=m68k/sun2o4.h
1284 extra_headers=math-68881.h
1287 xm_file="m68k/xm-3b1.h ${xm_file}"
1289 if [[ x$gas = xyes ]]
1296 extra_headers=math-68881.h
1298 m68k-apple-aux*) # Apple Macintosh running A/UX
1299 xm_defines="USG AUX"
1300 tmake_file=m68k/t-aux
1301 install_headers_dir=install-headers-cpio
1302 extra_headers=math-68881.h
1303 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1305 if [[ "$gnu_ld" = yes ]]
1307 tm_file="${tm_file} m68k/auxgld.h"
1309 tm_file="${tm_file} m68k/auxld.h"
1311 if [[ "$gas" = yes ]]
1313 tm_file="${tm_file} m68k/auxgas.h"
1315 tm_file="${tm_file} m68k/auxas.h"
1317 tm_file="${tm_file} m68k/a-ux.h"
1321 tm_file=m68k/apollo68.h
1322 xmake_file=m68k/x-apollo68
1324 extra_headers=math-68881.h
1327 m68k-altos-sysv*) # Altos 3068
1328 if [[ x$gas = xyes ]]
1330 tm_file=m68k/altos3068.h
1333 echo "The Altos is supported only with the GNU assembler" 1>&2
1336 extra_headers=math-68881.h
1338 m68k-bull-sysv*) # Bull DPX/2
1339 if [[ x$gas = xyes ]]
1341 if [[ x$stabs = xyes ]]
1343 tm_file=m68k/dpx2cdbx.h
1345 tm_file=m68k/dpx2g.h
1350 xm_file="xm-alloca.h ${xm_file}"
1352 xmake_file=m68k/x-dpx2
1354 extra_headers=math-68881.h
1356 m68k-atari-sysv4*) # Atari variant of V.4.
1357 tm_file=m68k/atari.h
1358 xm_file="xm-alloca.h ${xm_file}"
1359 xm_defines="USG FULL_PROTOTYPES"
1361 extra_parts="crtbegin.o crtend.o"
1362 extra_headers=math-68881.h
1365 m68k-motorola-sysv*)
1366 tm_file=m68k/mot3300.h
1367 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1368 xm_defines=NO_SYS_SIGLIST
1369 if [[ x$gas = xyes ]]
1371 xmake_file=m68k/x-mot3300-gas
1372 if [[ x$gnu_ld = xyes ]]
1374 tmake_file=m68k/t-mot3300-gald
1376 tmake_file=m68k/t-mot3300-gas
1380 xmake_file=m68k/x-mot3300
1381 if [[ x$gnu_ld = xyes ]]
1383 tmake_file=m68k/t-mot3300-gld
1385 tmake_file=m68k/t-mot3300
1389 gdb_needs_out_file_path=yes
1390 extra_parts="crt0.o mcrt0.o"
1391 extra_headers=math-68881.h
1394 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1395 tm_file=m68k/tower-as.h
1396 xm_defines="USG SVR3"
1397 xmake_file=m68k/x-tower
1398 extra_parts="crtbegin.o crtend.o"
1399 extra_headers=math-68881.h
1402 tm_file=m68k/plexus.h
1403 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1406 extra_headers=math-68881.h
1410 xm_file="xm-alloca.h ${xm_file}"
1412 extra_headers=math-68881.h
1415 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1416 xm_defines="USG unos"
1417 xmake_file=m68k/x-crds
1420 extra_headers=math-68881.h
1422 m68k-cbm-sysv4*) # Commodore variant of V.4.
1424 xm_file="xm-alloca.h ${xm_file}"
1425 xm_defines="USG FULL_PROTOTYPES"
1426 xmake_file=m68k/x-amix
1428 extra_parts="crtbegin.o crtend.o"
1429 extra_headers=math-68881.h
1433 tm_file=m68k/ccur-GAS.h
1434 xmake_file=m68k/x-ccur
1435 extra_headers=math-68881.h
1439 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1440 tm_file=m68k/hp3bsd44.h
1441 xmake_file=m68k/x-hp3bsd44
1443 extra_headers=math-68881.h
1446 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1447 tm_file=m68k/hp3bsd.h
1449 extra_headers=math-68881.h
1453 if [[ x$with_fp = xno ]]
1455 tm_file=m68k/isi-nfp.h
1461 extra_headers=math-68881.h
1463 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1464 xm_file="xm_alloca.h ${xm_file}"
1465 xm_defines="USG NO_SYS_SIGLIST"
1466 if [[ x$gas = xyes ]]
1468 xmake_file=m68k/x-hp320g
1469 tm_file=m68k/hp320g.h
1471 xmake_file=m68k/x-hp320
1472 tm_file=m68k/hpux7.h
1474 install_headers_dir=install-headers-cpio
1476 extra_headers=math-68881.h
1479 m68k-hp-hpux*) # HP 9000 series 300
1480 xm_file="xm_alloca.h ${xm_file}"
1481 xm_defines="USG NO_SYS_SIGLIST"
1482 if [[ x$gas = xyes ]]
1484 xmake_file=m68k/x-hp320g
1485 tm_file=m68k/hp320g.h
1487 xmake_file=m68k/x-hp320
1488 tm_file=m68k/hp320.h
1490 install_headers_dir=install-headers-cpio
1492 extra_headers=math-68881.h
1496 tm_file=m68k/sun3mach.h
1498 extra_headers=math-68881.h
1502 if [[ x$gas = xyes ]]
1504 tm_file=m68k/news3gas.h
1506 tm_file=m68k/news3.h
1509 extra_headers=math-68881.h
1512 m68k-sony-bsd* | m68k-sony-newsos*)
1513 if [[ x$gas = xyes ]]
1515 tm_file=m68k/newsgas.h
1520 extra_headers=math-68881.h
1523 m68k-next-nextstep2*)
1524 tm_file=m68k/next21.h
1525 xm_file="m68k/xm-next.h ${xm_file}"
1526 tmake_file=m68k/t-next
1527 xmake_file=m68k/x-next
1528 extra_objs=nextstep.o
1529 extra_headers=math-68881.h
1533 m68k-next-nextstep3*)
1535 xm_file="m68k/xm-next.h ${xm_file}"
1536 tmake_file=m68k/t-next
1537 xmake_file=m68k/x-next
1538 extra_objs=nextstep.o
1539 extra_headers=math-68881.h
1541 if [[ x$enable_threads = xyes ]]; then
1546 if [[ x$with_fp = xno ]]
1548 tm_file=m68k/sun3n3.h
1550 tm_file=m68k/sun3o3.h
1554 extra_headers=math-68881.h
1556 m68k-sun-sunos*) # For SunOS 4 (the default).
1557 if [[ x$with_fp = xno ]]
1559 tm_file=m68k/sun3n.h
1565 extra_headers=math-68881.h
1568 tm_file=m68k/vxm68k.h
1569 tmake_file=m68k/t-vxworks68
1570 extra_headers=math-68881.h
1571 thread_file='vxworks'
1575 tmake_file=m68k/t-m68kbare
1576 tm_file="m68k/m68k-aout.h libgloss.h"
1577 extra_headers=math-68881.h
1581 tmake_file=m68k/t-m68kbare
1582 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1583 extra_headers=math-68881.h
1587 if [[ x$gas = xyes ]]
1591 tm_file=m68k/lynx-ng.h
1593 xm_file=m68k/xm-lynx.h
1595 tmake_file=m68k/t-lynx
1596 extra_headers=math-68881.h
1600 tm_file=m68k/netbsd.h
1601 # On NetBSD, the headers are already okay, except for math.h.
1602 fixincludes=fixinc.wrap
1606 m68k-*-sysv3*) # Motorola m68k's running system V.3
1607 xm_file="xm-alloca.h ${xm_file}"
1609 xmake_file=m68k/x-m68kv
1610 extra_parts="crtbegin.o crtend.o"
1611 extra_headers=math-68881.h
1614 m68k-*-sysv4*) # Motorola m68k's running system V.4
1615 tm_file=m68k/m68kv4.h
1616 xm_file="xm-alloca.h ${xm_file}"
1619 extra_parts="crtbegin.o crtend.o"
1620 extra_headers=math-68881.h
1623 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1626 tm_file=m68k/linux-aout.h
1627 tmake_file="t-linux-aout m68k/t-linux-aout"
1628 fixincludes=Makefile.in # The headers are ok already.
1629 extra_headers=math-68881.h
1633 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1634 # with ELF format using the
1635 # GNU/Linux C library 5
1637 tm_file=m68k/linux.h
1638 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1639 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1640 fixincludes=Makefile.in # The headers are ok already.
1641 extra_headers=math-68881.h
1645 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1646 # with ELF format using glibc 2
1647 # aka the GNU/Linux C library 6.
1649 tm_file=m68k/linux.h
1650 tmake_file="t-linux m68k/t-linux"
1651 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1652 fixincludes=Makefile.in # The headers are ok already.
1653 extra_headers=math-68881.h
1656 if [[ x$enable_threads = xyes ]]; then
1661 tmake_file=m68k/t-m68kbare
1662 tm_file=m68k/m68k-psos.h
1663 extra_headers=math-68881.h
1667 tmake_file="m68k/t-m68kbare t-rtems"
1668 tm_file=m68k/rtems.h
1669 extra_headers=math-68881.h
1676 tm_file=m88k/dguxbcs.h
1677 tmake_file=m88k/t-dguxbcs
1681 tmake_file=m88k/t-dgux
1684 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1685 xmake_file=m88k/x-dgux
1686 if [[ x$gas = xyes ]]
1688 tmake_file=m88k/t-dgux-gas
1690 fixincludes=fixinc.dgux
1692 m88k-dolphin-sysv3*)
1693 tm_file=m88k/dolph.h
1694 extra_parts="crtbegin.o crtend.o"
1695 xm_file="m88k/xm-sysv3.h ${xm_file}"
1696 xmake_file=m88k/x-dolph
1697 if [[ x$gas = xyes ]]
1699 tmake_file=m88k/t-m88k-gas
1702 m88k-tektronix-sysv3)
1703 tm_file=m88k/tekXD88.h
1704 extra_parts="crtbegin.o crtend.o"
1705 xm_file="m88k/xm-sysv3.h ${xm_file}"
1706 xmake_file=m88k/x-tekXD88
1707 if [[ x$gas = xyes ]]
1709 tmake_file=m88k/t-m88k-gas
1713 tm_file=m88k/m88k-aout.h
1716 tm_file=m88k/m88k-coff.h
1717 tmake_file=m88k/t-bug
1721 extra_parts="crtbegin.o crtend.o"
1722 if [[ x$gas = xyes ]]
1724 tmake_file=m88k/t-luna-gas
1726 tmake_file=m88k/t-luna
1730 tm_file=m88k/sysv3.h
1731 extra_parts="crtbegin.o crtend.o"
1732 xm_file="m88k/xm-sysv3.h ${xm_file}"
1733 xmake_file=m88k/x-sysv3
1734 if [[ x$gas = xyes ]]
1736 tmake_file=m88k/t-m88k-gas
1740 tm_file=m88k/sysv4.h
1741 extra_parts="crtbegin.o crtend.o"
1742 xmake_file=m88k/x-sysv4
1743 tmake_file=m88k/t-sysv4
1745 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1746 tm_file=mips/iris6.h
1747 xm_file=mips/xm-iris6.h
1748 fixincludes=fixinc.irix
1749 xmake_file=mips/x-iris6
1750 tmake_file=mips/t-iris6
1751 if [[ x$enable_threads = xyes ]]; then
1756 tm_file="mips/elf.h libgloss.h"
1757 tmake_file=mips/t-ecoff
1760 extra_parts="crtbegin.o crtend.o"
1761 # thread_file='vxworks'
1763 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1764 tm_file="mips/iris6.h mips/cross64.h"
1765 xm_defines="USG HAVE_INTTYPES_H"
1766 fixincludes=Makefile.in
1767 xmake_file=mips/x-iris
1768 tmake_file=mips/t-cross64
1769 # See comment in mips/iris[56].h files.
1771 if [[ x$enable_threads = xyes ]]; then
1776 if [[ x$gas = xyes ]]
1778 if [[ x$stabs = xyes ]]
1780 tm_file=mips/iris5gdb.h
1782 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1785 tm_file=mips/sni-svr4.h
1788 xmake_file=mips/x-sni-svr4
1789 tmake_file=mips/t-mips-gas
1790 if [[ x$gnu_ld != xyes ]]
1795 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1796 if [[ x$gas = xyes ]]
1798 tm_file="mips/iris5.h mips/iris5gas.h"
1799 if [[ x$stabs = xyes ]]
1801 tm_file="${tm_file} dbx.h"
1804 tm_file=mips/iris5.h
1806 xm_defines="USG HAVE_INTTYPES_H"
1807 fixincludes=fixinc.irix
1808 xmake_file=mips/x-iris
1809 # mips-tfile doesn't work yet
1810 tmake_file=mips/t-mips-gas
1811 # See comment in mips/iris5.h file.
1813 if [[ x$enable_threads = xyes ]]; then
1817 mips-sgi-irix4loser*) # Mostly like a MIPS.
1818 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
1819 if [[ x$stabs = xyes ]]; then
1820 tm_file="${tm_file} dbx.h"
1823 xmake_file=mips/x-iris
1824 if [[ x$gas = xyes ]]
1826 tmake_file=mips/t-mips-gas
1828 extra_passes="mips-tfile mips-tdump"
1830 if [[ x$gnu_ld != xyes ]]
1834 if [[ x$enable_threads = xyes ]]; then
1838 mips-sgi-irix4*) # Mostly like a MIPS.
1839 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
1840 if [[ x$stabs = xyes ]]; then
1841 tm_file="${tm_file} dbx.h"
1844 xmake_file=mips/x-iris
1845 if [[ x$gas = xyes ]]
1847 tmake_file=mips/t-mips-gas
1849 extra_passes="mips-tfile mips-tdump"
1851 if [[ x$gnu_ld != xyes ]]
1855 if [[ x$enable_threads = xyes ]]; then
1859 mips-sgi-*) # Mostly like a MIPS.
1860 tm_file="mips/iris3.h ${tm_file}"
1861 if [[ x$stabs = xyes ]]; then
1862 tm_file="${tm_file} dbx.h"
1865 xmake_file=mips/x-iris3
1866 if [[ x$gas = xyes ]]
1868 tmake_file=mips/t-mips-gas
1870 extra_passes="mips-tfile mips-tdump"
1872 if [[ x$gnu_ld != xyes ]]
1877 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
1878 tm_file="mips/osfrose.h ${tm_file}"
1879 xmake_file=mips/x-osfrose
1880 tmake_file=mips/t-osfrose
1881 extra_objs=halfpic.o
1884 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
1885 tm_file=mips/dec-osf1.h
1886 if [[ x$stabs = xyes ]]; then
1887 tm_file="${tm_file} dbx.h"
1889 xmake_file=mips/x-dec-osf1
1890 if [[ x$gas = xyes ]]
1892 tmake_file=mips/t-mips-gas
1894 tmake_file=mips/t-ultrix
1895 extra_passes="mips-tfile mips-tdump"
1897 if [[ x$gnu_ld != xyes ]]
1902 mips-dec-bsd*) # Decstation running 4.4 BSD
1903 tm_file=mips/dec-bsd.h
1905 if [[ x$gas = xyes ]]
1907 tmake_file=mips/t-mips-gas
1909 tmake_file=mips/t-ultrix
1910 extra_passes="mips-tfile mips-tdump"
1912 if [[ x$gnu_ld != xyes ]]
1917 mips-dec-netbsd*) # Decstation running NetBSD
1918 tm_file=mips/netbsd.h
1919 # On NetBSD, the headers are already okay, except for math.h.
1920 fixincludes=fixinc.wrap
1923 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
1924 tm_file="mips/news4.h ${tm_file}"
1925 if [[ x$stabs = xyes ]]; then
1926 tm_file="${tm_file} dbx.h"
1928 if [[ x$gas = xyes ]]
1930 tmake_file=mips/t-mips-gas
1932 extra_passes="mips-tfile mips-tdump"
1934 if [[ x$gnu_ld != xyes ]]
1938 xmake_file=mips/x-sony
1940 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
1941 # That is based on svr4.
1942 # t-svr4 is not right because this system doesn't use ELF.
1943 tm_file="mips/news5.h ${tm_file}"
1944 if [[ x$stabs = xyes ]]; then
1945 tm_file="${tm_file} dbx.h"
1947 xm_file="xm-siglist.h ${xm_file}"
1949 if [[ x$gas = xyes ]]
1951 tmake_file=mips/t-mips-gas
1953 extra_passes="mips-tfile mips-tdump"
1955 if [[ x$gnu_ld != xyes ]]
1960 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
1961 tm_file="mips/svr4-5.h mips/svr4-t.h"
1962 if [[ x$stabs = xyes ]]; then
1963 tm_file="${tm_file} dbx.h"
1965 xm_file="xm-siglist.h ${xm_file}"
1967 xmake_file=mips/x-sysv
1968 if [[ x$gas = xyes ]]
1970 tmake_file=mips/t-mips-gas
1971 extra_parts="crtbegin.o crtend.o"
1973 tmake_file=mips/t-mips
1974 extra_passes="mips-tfile mips-tdump"
1976 if [[ x$gnu_ld != xyes ]]
1981 mips-*-ultrix* | mips-dec-mach3) # Decstation.
1982 tm_file="mips/ultrix.h ${tm_file}"
1983 if [[ x$stabs = xyes ]]; then
1984 tm_file="${tm_file} dbx.h"
1986 xmake_file=mips/x-ultrix
1987 if [[ x$gas = xyes ]]
1989 tmake_file=mips/t-mips-gas
1991 tmake_file=mips/t-ultrix
1992 extra_passes="mips-tfile mips-tdump"
1994 if [[ x$gnu_ld != xyes ]]
1999 mips-*-riscos[[56789]]bsd*)
2000 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2001 if [[ x$stabs = xyes ]]; then
2002 tm_file="${tm_file} dbx.h"
2004 if [[ x$gas = xyes ]]
2006 tmake_file=mips/t-bsd-gas
2008 tmake_file=mips/t-bsd
2009 extra_passes="mips-tfile mips-tdump"
2011 if [[ x$gnu_ld != xyes ]]
2016 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
2017 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2018 if [[ x$stabs = xyes ]]; then
2019 tm_file="${tm_file} dbx.h"
2021 if [[ x$gas = xyes ]]
2023 tmake_file=mips/t-bsd-gas
2025 tmake_file=mips/t-bsd
2026 extra_passes="mips-tfile mips-tdump"
2028 if [[ x$gnu_ld != xyes ]]
2033 mips-*-riscos[[56789]]sysv4*)
2034 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2035 if [[ x$stabs = xyes ]]; then
2036 tm_file="${tm_file} dbx.h"
2038 xm_file="xm-siglist.h ${xm_file}"
2039 xmake_file=mips/x-sysv
2040 if [[ x$gas = xyes ]]
2042 tmake_file=mips/t-svr4-gas
2044 tmake_file=mips/t-svr4
2045 extra_passes="mips-tfile mips-tdump"
2047 if [[ x$gnu_ld != xyes ]]
2052 mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
2053 tm_file="mips/svr4-4.h ${tm_file}"
2054 if [[ x$stabs = xyes ]]; then
2055 tm_file="${tm_file} dbx.h"
2058 xmake_file=mips/x-sysv
2059 if [[ x$gas = xyes ]]
2061 tmake_file=mips/t-svr4-gas
2063 tmake_file=mips/t-svr4
2064 extra_passes="mips-tfile mips-tdump"
2066 if [[ x$gnu_ld != xyes ]]
2071 mips-*-riscos[[56789]]sysv*)
2072 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2073 if [[ x$stabs = xyes ]]; then
2074 tm_file="${tm_file} dbx.h"
2077 xmake_file=mips/x-sysv
2078 if [[ x$gas = xyes ]]
2080 tmake_file=mips/t-svr3-gas
2082 tmake_file=mips/t-svr3
2083 extra_passes="mips-tfile mips-tdump"
2085 if [[ x$gnu_ld != xyes ]]
2090 mips-*-sysv* | mips-*-riscos*sysv*)
2091 tm_file="mips/svr3-4.h ${tm_file}"
2092 if [[ x$stabs = xyes ]]; then
2093 tm_file="${tm_file} dbx.h"
2096 xmake_file=mips/x-sysv
2097 if [[ x$gas = xyes ]]
2099 tmake_file=mips/t-svr3-gas
2101 tmake_file=mips/t-svr3
2102 extra_passes="mips-tfile mips-tdump"
2104 if [[ x$gnu_ld != xyes ]]
2109 mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0.
2110 tm_file=mips/mips-5.h
2111 if [[ x$stabs = xyes ]]; then
2112 tm_file="${tm_file} dbx.h"
2114 if [[ x$gas = xyes ]]
2116 tmake_file=mips/t-mips-gas
2118 extra_passes="mips-tfile mips-tdump"
2120 if [[ x$gnu_ld != xyes ]]
2128 tm_file=mips/ecoffl.h
2129 if [[ x$stabs = xyes ]]; then
2130 tm_file="${tm_file} dbx.h"
2132 tmake_file=mips/t-ecoff
2135 tm_file="gofast.h mips/ecoff.h"
2136 if [[ x$stabs = xyes ]]; then
2137 tm_file="${tm_file} dbx.h"
2139 tmake_file=mips/t-ecoff
2142 tm_file="mips/elfl.h libgloss.h"
2143 tmake_file=mips/t-ecoff
2146 tm_file="mips/elf.h libgloss.h"
2147 tmake_file=mips/t-ecoff
2150 tm_file="mips/elfl64.h libgloss.h"
2151 tmake_file=mips/t-ecoff
2153 mips64orionel-*-elf*)
2154 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2155 tmake_file=mips/t-ecoff
2158 tm_file="mips/elf64.h libgloss.h"
2159 tmake_file=mips/t-ecoff
2162 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2163 tmake_file=mips/t-ecoff
2165 mips64orion-*-rtems*)
2166 tm_file="mips/elforion.h mips/elfl64.h mips/rtems64.h"
2167 tmake_file="mips/t-ecoff t-rtems"
2170 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2171 tmake_file=mips/t-r3900
2174 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2175 tmake_file=mips/t-r3900
2177 mips-*-*) # Default MIPS RISC-OS 4.0.
2178 if [[ x$stabs = xyes ]]; then
2179 tm_file="${tm_file} dbx.h"
2181 if [[ x$gas = xyes ]]
2183 tmake_file=mips/t-mips-gas
2185 extra_passes="mips-tfile mips-tdump"
2187 if [[ x$gnu_ld != xyes ]]
2194 tm_file="mn10200/mn10200.h"
2195 if [[ x$stabs = xyes ]]
2197 tm_file="${tm_file} dbx.h"
2203 tm_file="mn10300/mn10300.h"
2204 if [[ x$stabs = xyes ]]
2206 tm_file="${tm_file} dbx.h"
2211 tm_file=ns32k/encore.h
2215 tm_file=ns32k/sequent.h
2219 tm_file=ns32k/tek6100.h
2223 tm_file=ns32k/tek6200.h
2226 # This has not been updated to GCC 2.
2229 # xmake_file=ns32k/x-genix
2230 # tm_file=ns32k/genix.h
2234 tm_file=ns32k/merlin.h
2238 tm_file=ns32k/pc532-mach.h
2242 tm_file=ns32k/pc532-min.h
2243 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2247 ns32k-pc532-netbsd*)
2248 tm_file=ns32k/netbsd.h
2249 # On NetBSD, the headers are already okay, except for math.h.
2250 fixincludes=fixinc.wrap
2254 tm_file="${tm_file} pdp11/2bsd.h"
2260 xmake_file=pyr/x-pyr
2267 xmake_file=romp/x-mach
2272 tm_file=rs6000/beos.h
2273 xm_file=rs6000/xm-beos.h
2274 tmake_file=rs6000/t-beos
2275 xmake_file=rs6000/x-beos
2277 powerpc-*-sysv* | powerpc-*-elf*)
2278 tm_file=rs6000/sysv4.h
2279 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2280 xm_defines="USG POSIX"
2281 extra_headers=ppc-asm.h
2282 if [[ x$gas = xyes ]]
2284 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2286 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2288 xmake_file=rs6000/x-sysv4
2291 tm_file=rs6000/eabiaix.h
2292 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2293 fixincludes=Makefile.in
2294 extra_headers=ppc-asm.h
2297 tm_file=rs6000/eabisim.h
2298 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2299 fixincludes=Makefile.in
2300 extra_headers=ppc-asm.h
2303 tm_file=rs6000/eabi.h
2304 if [[ x$gas = xyes ]]
2306 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2308 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2310 fixincludes=Makefile.in
2311 extra_headers=ppc-asm.h
2314 tm_file=rs6000/rtems.h
2315 if [[ x$gas = xyes ]]
2317 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2319 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2321 fixincludes=Makefile.in
2322 extra_headers=ppc-asm.h
2324 powerpc-*-linux-gnulibc1)
2325 tm_file=rs6000/linux.h
2326 xm_file=rs6000/xm-sysv4.h
2327 out_file=rs6000/rs6000.c
2328 if [[ x$gas = xyes ]]
2330 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2332 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2335 fixincludes=Makefile.in
2336 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2337 extra_headers=ppc-asm.h
2338 if [[ x$enable_threads = xyes ]]; then
2342 powerpc-*-linux-gnu*)
2343 tm_file=rs6000/linux.h
2344 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2345 xm_defines="USG ${xm_defines}"
2346 out_file=rs6000/rs6000.c
2347 if [[ x$gas = xyes ]]
2349 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2351 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2354 fixincludes=Makefile.in
2355 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2356 extra_headers=ppc-asm.h
2357 if [[ x$enable_threads = xyes ]]; then
2361 powerpc-wrs-vxworks*)
2363 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2364 xm_defines="USG POSIX"
2365 tm_file=rs6000/vxppc.h
2366 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2367 extra_headers=ppc-asm.h
2368 thread_file='vxworks'
2370 powerpcle-*-sysv* | powerpcle-*-elf*)
2371 tm_file=rs6000/sysv4le.h
2372 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2373 xm_defines="USG POSIX"
2374 if [[ x$gas = xyes ]]
2376 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2378 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2380 xmake_file=rs6000/x-sysv4
2381 extra_headers=ppc-asm.h
2383 powerpcle-*-eabisim*)
2384 tm_file=rs6000/eabilesim.h
2385 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2386 fixincludes=Makefile.in
2387 extra_headers=ppc-asm.h
2390 tm_file=rs6000/eabile.h
2391 if [[ x$gas = xyes ]]
2393 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2395 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2397 fixincludes=Makefile.in
2398 extra_headers=ppc-asm.h
2400 powerpcle-*-winnt* )
2401 tm_file=rs6000/win-nt.h
2402 tmake_file=rs6000/t-winnt
2404 fixincludes=Makefile.in
2405 if [[ x$enable_threads = xyes ]]; then
2408 extra_headers=ppc-asm.h
2410 powerpcle-*-pe | powerpcle-*-cygwin32)
2411 tm_file=rs6000/cygwin32.h
2412 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2413 tmake_file=rs6000/t-winnt
2414 xmake_file=rs6000/x-cygwin32
2416 fixincludes=Makefile.in
2417 if [[ x$enable_threads = xyes ]]; then
2421 extra_headers=ppc-asm.h
2423 powerpcle-*-solaris2*)
2424 tm_file=rs6000/sol2.h
2425 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2426 xm_defines="USG POSIX"
2427 if [[ x$gas = xyes ]]
2429 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2431 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2433 xmake_file=rs6000/x-sysv4
2435 *-*-solaris2.[[0-4]])
2436 fixincludes=fixinc.svr4;;
2438 fixincludes=fixinc.wrap;;
2440 extra_headers=ppc-asm.h
2442 rs6000-ibm-aix3.[[01]]*)
2443 tm_file=rs6000/aix31.h
2444 xmake_file=rs6000/x-aix31
2447 rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*)
2448 tm_file=rs6000/aix3newas.h
2449 if [[ x$host != x$target ]]
2451 tmake_file=rs6000/t-xnewas
2453 tmake_file=rs6000/t-newas
2457 rs6000-ibm-aix4.[[12]].* | powerpc-ibm-aix4.[[12]].*)
2458 tm_file=rs6000/aix41.h
2459 if [[ x$host != x$target ]]
2461 tmake_file=rs6000/t-xnewas
2463 tmake_file=rs6000/t-newas
2465 xmake_file=rs6000/x-aix41
2468 rs6000-ibm-aix4.[[3456789]].* | powerpc-ibm-aix4.[[3456789]].*)
2469 tm_file=rs6000/aix43.h
2470 if [[ x$host != x$target ]]
2472 tmake_file=rs6000/t-xaix43
2474 tmake_file=rs6000/t-aix43
2476 xmake_file=rs6000/x-aix43
2479 rs6000-ibm-aix[[56789]].* | powerpc-ibm-aix[[56789]].*)
2480 tm_file=rs6000/aix43.h
2481 if [[ x$host != x$target ]]
2483 tmake_file=rs6000/t-xaix43
2485 tmake_file=rs6000/t-aix43
2487 xmake_file=rs6000/x-aix43
2497 tm_file=rs6000/mach.h
2498 xm_file="${xm_file} rs6000/xm-mach.h"
2499 xmake_file=rs6000/x-mach
2503 tm_file=rs6000/lynx.h
2504 xm_file=rs6000/xm-lynx.h
2505 tmake_file=rs6000/t-rs6000
2506 xmake_file=rs6000/x-lynx
2514 tmake_file="sh/t-sh t-rtems"
2523 xm_file="xm-alloca.h ${xm_file}"
2526 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2527 tm_file=sparc/vxsparc.h
2528 tmake_file=sparc/t-vxsparc
2530 thread_file='vxworks'
2533 tmake_file=sparc/t-sparcbare
2534 tm_file="sparc/aout.h libgloss.h"
2537 tm_file=sparc/netbsd.h
2538 # On NetBSD, the headers are already okay, except for math.h.
2539 fixincludes=fixinc.wrap
2547 tmake_file=sparc/t-elf
2548 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2552 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2553 xm_file="${xm_file} sparc/xm-linux.h"
2554 tm_file=sparc/linux-aout.h
2556 fixincludes=Makefile.in #On Linux, the headers are ok already.
2559 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2560 xm_file="${xm_file} sparc/xm-linux.h"
2562 tm_file=sparc/linux.h
2563 tmake_file="t-linux t-linux-gnulibc1"
2564 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2565 fixincludes=Makefile.in #On Linux, the headers are ok already.
2568 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2569 xm_file="${xm_file} sparc/xm-linux.h"
2571 tm_file=sparc/linux.h
2572 tmake_file="t-linux"
2573 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2574 fixincludes=Makefile.in #On Linux, the headers are ok already.
2576 if [[ x$enable_threads = xyes ]]; then
2581 if [[ x$gas = xyes ]]
2583 tm_file=sparc/lynx.h
2585 tm_file=sparc/lynx-ng.h
2587 xm_file=sparc/xm-lynx.h
2588 tmake_file=sparc/t-sunos41
2592 tmake_file="sparc/t-sparcbare t-rtems"
2593 tm_file=sparc/rtems.h
2596 if [[ x$gnu_ld = xyes ]]
2598 tm_file=sparc/sol2.h
2600 tm_file=sparc/sol2-sld.h
2602 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2603 xm_defines="USG POSIX"
2604 tmake_file=sparc/t-sol2
2605 xmake_file=sparc/x-sysv4
2606 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2608 *-*-solaris2.[[0-4]])
2609 fixincludes=fixinc.svr4;;
2611 fixincludes=fixinc.wrap;;
2614 if [[ x${enable_threads} = x ]]; then
2615 enable_threads=$have_pthread_h
2616 if [[ x${enable_threads} = x ]]; then
2617 enable_threads=$have_thread_h
2620 if [[ x${enable_threads} = xyes ]]; then
2621 if [[ x${have_pthread_h} = xyes ]]; then
2624 thread_file='solaris'
2629 tm_file=sparc/sunos4.h
2630 tmake_file=sparc/t-sunos40
2634 tm_file=sparc/sunos4.h
2635 tmake_file=sparc/t-sunos41
2637 if [[ x$gas = xyes ]]; then
2638 tm_file="${tm_file} sparc/sun4gas.h"
2642 tm_file=sparc/sun4o3.h
2646 tm_file=sparc/sysv4.h
2647 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2648 xm_defines="USG POSIX"
2650 xmake_file=sparc/x-sysv4
2651 extra_parts="crtbegin.o crtend.o"
2654 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2655 xm_defines="USG POSIX"
2656 tm_file=sparc/vxsim.h
2657 tmake_file=sparc/t-vxsparc
2658 xmake_file=sparc/x-sysv4
2661 tm_file="sparc/splet.h libgloss.h"
2662 tmake_file=sparc/t-splet
2665 tm_file="sparc/litecoff.h libgloss.h"
2666 tmake_file=sparc/t-sparclite
2669 tm_file="sparc/lite.h aoutos.h libgloss.h"
2670 tmake_file=sparc/t-sparclite
2673 tmake_file=sparc/t-sp64
2674 tm_file=sparc/sp64-aout.h
2677 tmake_file=sparc/t-sp64
2678 tm_file=sparc/sp64-elf.h
2679 extra_parts="crtbegin.o crtend.o"
2681 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2682 tmake_file=sparc/t-sp64
2683 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2684 tm_file=sparc/linux64.h
2686 fixincludes=Makefile.in # The headers are ok already.
2689 # This hasn't been upgraded to GCC 2.
2690 # tahoe-harris-*) # Harris tahoe, using COFF.
2691 # tm_file=tahoe/harris.h
2693 # tahoe-*-bsd*) # tahoe running BSD
2695 thumb-*-coff* | thumbel-*-coff*)
2697 out_file=arm/thumb.c
2698 xm_file=arm/xm-thumb.h
2699 md_file=arm/thumb.md
2700 tmake_file=arm/t-thumb
2702 # This hasn't been upgraded to GCC 2.
2709 tm_file="v850/v850.h"
2710 xm_file="v850/xm-v850.h"
2711 tmake_file=v850/t-v850
2712 if [[ x$stabs = xyes ]]
2714 tm_file="${tm_file} dbx.h"
2718 vax-*-bsd*) # vaxen running BSD
2722 vax-*-sysv*) # vaxen running system V
2723 tm_file="${tm_file} vax/vaxv.h"
2728 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2729 # On NetBSD, the headers are already okay, except for math.h.
2730 fixincludes=fixinc.wrap
2734 vax-*-ultrix*) # vaxen running ultrix
2735 tm_file="${tm_file} vax/ultrix.h"
2739 vax-*-vms*) # vaxen running VMS
2740 xm_file=vax/xm-vms.h
2744 vax-*-*) # vax default entry
2748 xm_file="${xm_file} xm-svr3"
2752 echo "Configuration $machine not supported" 1>&2
2759 ;; # Existing GNU/Linux systems do not use the GNU setup.
2761 # On the GNU system, the setup is just about the same on
2762 # each different CPU. The specific machines that GNU
2763 # supports are matched above and just set $cpu_type.
2764 xm_file="xm-gnu.h ${xm_file}"
2765 tm_file=${cpu_type}/gnu.h
2766 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2767 # GNU always uses ELF.
2769 # GNU tools are the only tools.
2772 # On GNU, the headers are already okay.
2773 fixincludes=Makefile.in
2774 xmake_file=x-linux # These details are the same as Linux.
2775 tmake_file=t-gnu # These are not.
2778 fixincludes=fixinc.svr4
2779 xmake_try_sysv=x-sysv
2780 install_headers_dir=install-headers-cpio
2783 install_headers_dir=install-headers-cpio
2787 # Distinguish i[34567]86
2788 # Also, do not run mips-tfile on MIPS if using gas.
2789 # Process --with-cpu= for PowerPC/rs6000
2790 target_cpu_default2=
2793 target_cpu_default2=1
2796 target_cpu_default2=2
2798 i686-*-* | i786-*-*)
2799 target_cpu_default2=3
2804 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
2807 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2810 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2813 target_cpu_default2="MASK_CPU_EV5"
2817 if [[ x$gas = xyes ]]
2819 if [[ "$target_cpu_default2" = "" ]]
2821 target_cpu_default2="MASK_GAS"
2823 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2828 case "x$with_cpu" in
2831 target_cpu_default2="TARGET_CPU_generic"
2834 # Distinguish cores, and major variants
2835 # arm7m doesn't exist, but D & I don't affect code
2836 xarm[23678] | xarm250 | xarm[67][01]0 \
2837 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
2838 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2839 | xstrongarm | xstrongarm110)
2840 target_cpu_default2="TARGET_CPU_$with_cpu"
2844 echo "--with-cpu must be passed a value" 1>&2
2849 if [[ x$pass2done = xyes ]]
2851 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2858 mips*-*-ecoff* | mips*-*-elf*)
2859 if [[ x$gas = xyes ]]
2861 if [[ x$gnu_ld = xyes ]]
2863 target_cpu_default2=20
2865 target_cpu_default2=16
2870 if [[ x$gas = xyes ]]
2872 target_cpu_default2=16
2875 powerpc*-*-* | rs6000-*-*)
2876 case "x$with_cpu" in
2880 xcommon | xpower | xpower2 | xpowerpc | xrios \
2881 | xrios1 | xrios2 | xrsc | xrsc1 \
2882 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2883 | x403 | x505 | x801 | x821 | x823 | x860)
2884 target_cpu_default2="\"$with_cpu\""
2888 echo "--with-cpu must be passed a value" 1>&2
2893 if [[ x$pass2done = xyes ]]
2895 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2902 case ".$with_cpu" in
2904 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2906 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
2907 target_cpu_default2="TARGET_CPU_$with_cpu"
2910 if [[ x$pass2done = xyes ]]
2912 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2920 if [[ "$target_cpu_default2" != "" ]]
2922 if [[ "$target_cpu_default" != "" ]]
2924 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2926 target_cpu_default=$target_cpu_default2
2930 # No need for collect2 if we have the GNU linker.
2931 # Actually, there is now; GNU ld doesn't handle the EH info or
2932 # collecting for shared libraries.
2939 # Save data on machine being used to compile GCC in build_xm_file.
2940 # Save data on host machine in vars host_xm_file and host_xmake_file.
2941 if [[ x$pass1done = x ]]
2943 if [[ x"$xm_file" = x ]]
2944 then build_xm_file=$cpu_type/xm-$cpu_type.h
2945 else build_xm_file=$xm_file
2947 build_xm_defines=$xm_defines
2948 build_install_headers_dir=$install_headers_dir
2949 build_exeext=$exeext
2952 if [[ x$pass2done = x ]]
2954 if [[ x"$xm_file" = x ]]
2955 then host_xm_file=$cpu_type/xm-$cpu_type.h
2956 else host_xm_file=$xm_file
2958 host_xm_defines=$xm_defines
2959 if [[ x"$xmake_file" = x ]]
2960 then xmake_file=$cpu_type/x-$cpu_type
2962 host_xmake_file="$xmake_file"
2963 host_truncate_target=$truncate_target
2964 host_extra_gcc_objs=$extra_gcc_objs
2965 host_extra_objs=$extra_host_objs
2972 extra_objs="${host_extra_objs} ${extra_objs}"
2974 # Default the target-machine variables that were not explicitly set.
2975 if [[ x"$tm_file" = x ]]
2976 then tm_file=$cpu_type/$cpu_type.h; fi
2978 if [[ x$extra_headers = x ]]
2979 then extra_headers=; fi
2981 if [[ x"$xm_file" = x ]]
2982 then xm_file=$cpu_type/xm-$cpu_type.h; fi
2984 if [[ x$md_file = x ]]
2985 then md_file=$cpu_type/$cpu_type.md; fi
2987 if [[ x$out_file = x ]]
2988 then out_file=$cpu_type/$cpu_type.c; fi
2990 if [[ x"$tmake_file" = x ]]
2991 then tmake_file=$cpu_type/t-$cpu_type
2994 if [[ x$float_format = x ]]
2995 then float_format=i64
2998 if [[ x$enable_haifa = x ]]
3001 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-* | m32r*-*)
3006 # Say what files are being used for the output code and MD file.
3007 echo "Using \`$srcdir/config/$out_file' to output insns."
3008 echo "Using \`$srcdir/config/$md_file' as machine description file."
3011 for f in $tm_file; do
3014 if [[ $count = ax ]]; then
3015 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3017 echo "Using the following target machine macro files:"
3018 for f in $tm_file; do
3019 echo " $srcdir/config/$f"
3024 for f in $host_xm_file; do
3027 if [[ $count = ax ]]; then
3028 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3030 echo "Using the following host machine macro files:"
3031 for f in $host_xm_file; do
3032 echo " $srcdir/config/$f"
3036 if [[ "$host_xm_file" != "$build_xm_file" ]]; then
3038 for f in $build_xm_file; do
3041 if [[ $count = ax ]]; then
3042 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3044 echo "Using the following build machine macro files:"
3045 for f in $build_xm_file; do
3046 echo " $srcdir/config/$f"
3051 if [[ x$thread_file = x ]]; then
3052 if [[ x$target_thread_file != x ]]; then
3053 thread_file=$target_thread_file
3055 thread_file='single'
3059 # Set up the header files.
3060 # $links is the list of header files to create.
3061 # $vars is the list of shell variables with file names to include.
3062 # auto-host.h is the file containing items generated by autoconf and is
3063 # the first file included by config.h.
3065 host_xm_file="auto-host.h ${host_xm_file}"
3067 # If host=build, it is correct to have hconfig include auto-host.h
3068 # as well. If host!=build, we are in error and need to do more
3069 # work to find out the build config parameters.
3070 if [[ x$host = x$build ]]
3072 build_xm_file="auto-host.h ${build_xm_file}"
3074 # We create a subdir, then run autoconf in the subdir.
3075 # To prevent recursion we set host and build for the new
3076 # invocation of configure to the build for this invocation
3083 /*) realsrcdir=${srcdir};;
3084 *) realsrcdir=../${srcdir};;
3086 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3087 --target=$target --host=$build --build=$build
3089 # We just finished tests for the build machine, so rename
3090 # the file auto-build.h in the gcc directory.
3091 mv auto-host.h ../auto-build.h
3094 build_xm_file="auto-build.h ${build_xm_file}"
3097 vars="host_xm_file tm_file xm_file build_xm_file"
3098 links="config.h tm.h tconfig.h hconfig.h"
3099 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3102 if [[ -f config.status ]]; then mv -f config.status config.bak; fi
3105 while [[ -n "$vars" ]]
3107 set $vars; var=$1; shift; vars=$*
3108 set $links; link=$1; shift; links=$*
3109 set $defines; define=$1; shift; defines=$*
3113 # Define TARGET_CPU_DEFAULT if the system wants one.
3114 # This substitutes for lots of *.h files.
3115 if [[ "$target_cpu_default" != "" -a $link = tm.h ]]
3117 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3120 for file in `eval echo '$'$var`; do
3121 echo "#include \"$file\"" >>$link
3124 for def in `eval echo '$'$define`; do
3125 echo "#ifndef $def" >>$link
3126 echo "#define $def" >>$link
3127 echo "#endif" >>$link
3131 # Truncate the target if necessary
3132 if [[ x$host_truncate_target != x ]]; then
3133 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3136 # Get the version trigger filename from the toplevel
3137 if [[ "${with_gcc_version_trigger+set}" = set ]]; then
3138 gcc_version_trigger=$with_gcc_version_trigger
3140 gcc_version_trigger=${srcdir}/version.c
3142 gcc_version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${gcc_version_trigger}`
3144 # Get an absolute path to the GCC top-level source directory
3150 # Conditionalize the makefile for this host machine.
3151 # Make-host contains the concatenation of all host makefile fragments
3152 # [there can be more than one]. This file is built by configure.frag.
3153 host_overrides=Make-host
3154 dep_host_xmake_file=
3155 for f in .. ${host_xmake_file}
3157 if [[ -f ${srcdir}/config/$f ]]
3159 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3163 # Conditionalize the makefile for this target machine.
3164 # Make-target contains the concatenation of all host makefile fragments
3165 # [there can be more than one]. This file is built by configure.frag.
3166 target_overrides=Make-target
3168 for f in .. ${tmake_file}
3170 if [[ -f ${srcdir}/config/$f ]]
3172 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3176 # If the host doesn't support symlinks, modify CC in
3177 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3178 # Otherwise, we can use "CC=$(CC)".
3180 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3182 cc_set_by_configure="\$(CC)"
3183 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3186 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3188 symbolic_link="cp -p"
3192 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3193 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3197 out_object_file=`basename $out_file .c`.o
3200 for f in $tm_file; do
3201 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3205 for f in $host_xm_file; do
3206 if test $f != "auto-host.h"; then
3207 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3209 host_xm_file_list="${host_xm_file_list} auto-host.h"
3214 for f in $build_xm_file; do
3215 if test $f != "auto-build.h"; then
3216 if test $f != "auto-host.h"; then
3217 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3219 build_xm_file_list="${build_xm_file_list} auto-host.h"
3222 build_xm_file_list="${build_xm_file_list} auto-build.h"
3226 # Define macro CROSS_COMPILE in compilation
3227 # if this is a cross-compiler.
3228 # Also use all.cross instead of all.internal
3229 # and add cross-make to Makefile.
3230 cross_overrides="/dev/null"
3231 if [[ x$host != x$target ]]
3233 cross_defines="CROSS=-DCROSS_COMPILE"
3234 cross_overrides="${topdir}/cross-make"
3237 # When building gcc with a cross-compiler, we need to fix a few things.
3238 # This must come after cross-make as we want all.build to override
3240 build_overrides="/dev/null"
3241 if [[ x$build != x$host ]]
3243 build_overrides="${topdir}/build-make"
3246 # Expand extra_headers to include complete path.
3247 # This substitutes for lots of t-* files.
3249 if [[ "x$extra_headers" = x ]]
3252 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3253 for file in $extra_headers;
3255 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3259 # Add a definition of USE_COLLECT2 if system wants one.
3260 # Also tell toplev.c what to do.
3261 # This substitutes for lots of t-* files.
3262 if [[ x$use_collect2 = x ]]
3267 will_use_collect2="collect2"
3268 maybe_use_collect2="-DUSE_COLLECT2"
3272 # Set MD_DEPS if the real md file is in md.pre-cpp.
3273 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3274 # for line oriented comments, so we must always use a GNU cpp. If
3275 # building gcc with a cross compiler, use the cross compiler just
3276 # built. Otherwise, we can use the cpp just built.
3278 if [[ "x$md_cppflags" = x ]]
3280 md_file_sub=$srcdir/config/$md_file
3285 # If we have gas in the build tree, make a link to it.
3286 if [[ -f ../gas/Makefile ]]; then
3287 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3290 # If we have nm in the build tree, make a link to it.
3291 if [[ -f ../binutils/Makefile ]]; then
3292 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3295 # If we have ld in the build tree, make a link to it.
3296 if [[ -f ../ld/Makefile ]]; then
3297 # if [[ x$use_collect2 = x ]]; then
3298 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3300 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3304 # Figure out what assembler alignment features are present.
3305 AC_MSG_CHECKING(assembler alignment features)
3307 gcc_cv_as_alignment_features=
3308 if [[ -x as$host_exeext ]]; then
3309 # Build using assembler in the current directory.
3310 gcc_cv_as=./as$host_exeext
3311 elif [[ -f $srcdir/../gas/configure.in ]]; then
3312 # Single tree build which includes gas.
3313 for f in $srcdir/../gas/configure.in $srcdir/../gas/Makefile.in
3315 gcc_cv_gas_version=`grep '^VERSION=[[0-9]]*\.[[0-9]]*' $f`
3316 if [[ x$gcc_cv_gas_version != x ]]; then
3320 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([[0-9]]*\)"`
3321 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[[0-9]]*\.\([[0-9]]*\)"`
3322 # Gas version 2.8 and later support specifying the maximum
3323 # bytes to skip when using .p2align.
3324 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
3325 gcc_cv_as_alignment_features=".p2align including maximum skip"
3326 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3328 elif [[ x$host = x$target ]]; then
3330 gcc_cv_as=as$host_exeext
3332 if [[ x$gcc_cv_as != x ]]; then
3333 # Check if specifying the maximum bytes to skip when
3334 # using .p2align is supported.
3335 echo ".p2align 4,,7" > conftest.s
3336 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3337 gcc_cv_as_alignment_features=".p2align including maximum skip"
3338 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3340 rm -f conftest.s conftest.o
3342 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3344 # Figure out what language subdirectories are present.
3346 for lang in ${srcdir}/*/config-lang.in ..
3350 # The odd quoting in the next line works around
3351 # an apparent bug in bash 1.12 on linux.
3352 ${srcdir}/[[*]]/config-lang.in) ;;
3353 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
3357 # Make gthr-default.h if we have a thread file.
3359 if [[ $thread_file != single ]]; then
3360 rm -f gthr-default.h
3361 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3362 gthread_flags=-DHAVE_GTHR_DEFAULT
3364 AC_SUBST(gthread_flags)
3366 # Make empty files to contain the specs and options for each language.
3367 # Then add #include lines to for a compiler that has specs and/or options.
3371 rm -f specs.h options.h
3372 touch specs.h options.h
3373 for subdir in . $subdirs
3375 if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
3376 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3377 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3379 if [[ -f $srcdir/$subdir/lang-options.h ]]; then
3380 echo "#include \"$subdir/lang-options.h\"" >>options.h
3381 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3385 # These (without "all_") are set in each config-lang.in.
3386 # `language' must be a single word so is spelled singularly.
3392 all_outputs=Makefile
3393 # List of language makefile fragments.
3398 # Add the language fragments.
3399 # Languages are added via two mechanisms. Some information must be
3400 # recorded in makefile variables, these are defined in config-lang.in.
3401 # We accumulate them and plug them into the main Makefile.
3402 # The other mechanism is a set of hooks for each of the main targets
3403 # like `clean', `install', etc.
3405 language_fragments="Make-lang"
3406 language_hooks="Make-hooks"
3409 for s in .. $subdirs
3421 . ${srcdir}/$s/config-lang.in
3422 if [[ "x$language" = x ]]
3424 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3427 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3428 all_languages="$all_languages $language"
3429 if [[ "x$boot_language" = xyes ]]
3431 all_boot_languages="$all_boot_languages $language"
3433 all_compilers="$all_compilers $compilers"
3434 all_stagestuff="$all_stagestuff $stagestuff"
3435 all_diff_excludes="$all_diff_excludes $diff_excludes"
3436 all_headers="$all_headers $headers"
3437 all_outputs="$all_outputs $outputs"
3438 if [[ x$outputs = x ]]
3440 oldstyle_subdirs="$oldstyle_subdirs $s"
3442 all_lib2funcs="$all_lib2funcs $lib2funcs"
3446 # Since we can't use `::' targets, we link each language in
3447 # with a set of hooks, reached indirectly via lang.${target}.
3451 target_list="all.build all.cross start.encap rest.encap \
3453 install-normal install-common install-info install-man \
3455 mostlyclean clean distclean extraclean maintainer-clean \
3456 stage1 stage2 stage3 stage4"
3457 for t in $target_list
3460 for l in .. $all_languages
3462 if [[ $l != ".." ]]; then
3466 echo "lang.$t: $x" >> Make-hooks
3469 # If we're not building in srcdir, create .gdbinit.
3471 if [[ ! -f Makefile.in ]]; then
3472 echo "dir ." > .gdbinit
3473 echo "dir ${srcdir}" >> .gdbinit
3474 if [[ x$gdb_needs_out_file_path = xyes ]]
3476 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3478 if [[ "x$subdirs" != x ]]; then
3481 echo "dir ${srcdir}/$s" >> .gdbinit
3484 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3487 # Define variables host_canonical and build_canonical
3488 # because some Cygnus local changes in the Makefile depend on them.
3489 build_canonical=${build}
3490 host_canonical=${host}
3492 if [[ "${host}" != "${target}" ]] ; then
3493 target_subdir=${target}/
3495 AC_SUBST(build_canonical)
3496 AC_SUBST(host_canonical)
3497 AC_SUBST(target_subdir)
3499 # If this is using newlib, then define inhibit_libc in
3500 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3501 # libgcc.a, but that's OK because newib should have its own version of
3504 if [[ x$with_newlib = xyes ]]; then
3505 inhibit_libc=-Dinhibit_libc
3507 AC_SUBST(inhibit_libc)
3509 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3512 if [[ x$enable_haifa = xyes ]]; then
3513 echo "Using the Haifa scheduler."
3515 sched_cflags=-DHAIFA
3517 AC_SUBST(sched_prefix)
3518 AC_SUBST(sched_cflags)
3519 if [[ x$enable_haifa != x ]]; then
3520 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3521 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3522 if [[ -f $x ]]; then
3529 # Nothing to do for FLOAT_H, float_format already handled.
3533 # Process the language and host/target makefile fragments.
3534 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3536 # Substitute configuration variables
3538 AC_SUBST(all_languages)
3539 AC_SUBST(all_boot_languages)
3540 AC_SUBST(all_compilers)
3541 AC_SUBST(all_lang_makefiles)
3542 AC_SUBST(all_stagestuff)
3543 AC_SUBST(all_diff_excludes)
3544 AC_SUBST(all_lib2funcs)
3545 AC_SUBST(all_headers)
3547 AC_SUBST(extra_passes)
3548 AC_SUBST(extra_programs)
3549 AC_SUBST(extra_parts)
3550 AC_SUBST(extra_c_objs)
3551 AC_SUBST(extra_cxx_objs)
3552 AC_SUBST(extra_c_flags)
3553 AC_SUBST(extra_objs)
3554 AC_SUBST(host_extra_gcc_objs)
3555 AC_SUBST(extra_headers_list)
3556 AC_SUBST(dep_host_xmake_file)
3557 AC_SUBST(dep_tmake_file)
3559 AC_SUBST(out_object_file)
3561 AC_SUBST(tm_file_list)
3562 AC_SUBST(build_xm_file_list)
3563 AC_SUBST(host_xm_file_list)
3564 AC_SUBST(lang_specs_files)
3565 AC_SUBST(lang_options_files)
3566 AC_SUBST(thread_file)
3567 AC_SUBST(gcc_version)
3568 AC_SUBST(gcc_version_trigger)
3569 AC_SUBST(local_prefix)
3570 AC_SUBST(gxx_include_dir)
3571 AC_SUBST(fixincludes)
3572 AC_SUBST(build_install_headers_dir)
3573 AC_SUBST(build_exeext)
3574 AC_SUBST(host_exeext)
3575 AC_SUBST(float_format)
3576 AC_SUBST(will_use_collect2)
3577 AC_SUBST(maybe_use_collect2)
3578 AC_SUBST(cc_set_by_configure)
3579 AC_SUBST(stage_prefix_set_by_configure)
3581 AC_SUBST(symbolic_link)
3583 AC_SUBST_FILE(target_overrides)
3584 AC_SUBST_FILE(host_overrides)
3585 AC_SUBST(cross_defines)
3586 AC_SUBST_FILE(cross_overrides)
3587 AC_SUBST_FILE(build_overrides)
3588 AC_SUBST_FILE(language_fragments)
3589 AC_SUBST_FILE(language_hooks)
3591 # Echo that links are built
3592 if [[ x$host = x$target ]]
3600 if [[ x$host != x$build ]]
3602 str3=" on a $build system"
3605 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3610 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3612 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3614 echo " ${str2}${str3}." 1>&2
3617 # Truncate the target if necessary
3618 if [[ x$host_truncate_target != x ]]; then
3619 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3622 # Configure the subdirectories
3623 # AC_CONFIG_SUBDIRS($subdirs)
3625 # Create the Makefile
3626 # and configure language subdirectories
3627 AC_OUTPUT($all_outputs,
3629 . $srcdir/configure.lang
3630 case x$CONFIG_HEADERS in
3631 xauto-host.h:config.in)
3634 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3635 # bootstrapping and the installation procedure can still use
3636 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3637 # FLAGS_TO_PASS has been modified to solve the problem there.
3638 # This is virtually a duplicate of what happens in configure.lang; we do
3639 # an extra check to make sure this only happens if ln -s can be used.
3640 if [[ "$symbolic_link" = "ln -s" ]]; then
3641 for d in .. ${subdirs} ; do
3642 if [[ $d != .. ]]; then
3645 for t in stage1 stage2 stage3 stage4 include
3648 $symbolic_link ../$t $t 2>/dev/null
3659 target_alias='${target_alias}'
3661 subdirs='${subdirs}'
3662 oldstyle_subdirs='${oldstyle_subdirs}'
3663 symbolic_link='${symbolic_link}'
3664 program_transform_set='${program_transform_set}'
3665 program_transform_name='${program_transform_name}'
3666 dep_host_xmake_file='${dep_host_xmake_file}'
3667 host_xmake_file='${host_xmake_file}'
3668 dep_tmake_file='${dep_tmake_file}'
3669 tmake_file='${tmake_file}'
3670 thread_file='${thread_file}'
3671 gcc_version='${gcc_version}'
3672 gcc_version_trigger='${gcc_version_trigger}'
3673 local_prefix='${local_prefix}'
3674 build_install_headers_dir='${build_install_headers_dir}'
3675 build_exeext='${build_exeext}'
3676 host_exeext='${host_exeext}'
3677 out_file='${out_file}'
3678 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3679 SET_MAKE='${SET_MAKE}'
3680 target_list='${target_list}'
3681 target_overrides='${target_overrides}'
3682 host_overrides='${host_overrides}'
3683 cross_defines='${cross_defines}'
3684 cross_overrides='${cross_overrides}'
3685 build_overrides='${build_overrides}'