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 gxx_include_dir='${prefix}/include/g++')
76 # Default g++ header file directory if it is empty
77 if [[ x$gxx_include_dir = x ]]; then
78 gxx_include_dir='${prefix}/include/g++'
81 # Enable expensive internal checks
82 AC_ARG_ENABLE(checking,
83 [ --enable-checking enable expensive run-time checks.],
84 AC_DEFINE(ENABLE_CHECKING)
87 # Enable use of cpplib for C.
88 AC_ARG_ENABLE(c-cpplib,
89 [ --enable-c-cpplib Use cpplib for C.],
90 if [[[ x$enable_c_cpplib != xno ]]]; then
91 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
92 extra_c_objs="${extra_c_objs} prefix.o"
93 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
94 extra_c_flags=-DUSE_CPPLIB=1
97 # Enable Haifa scheduler.
99 [ --enable-haifa Use the experimental scheduler.
100 --disable-haifa Don't use the experimental scheduler for the
101 targets which normally enable it.])
104 # This is a work in progress...
105 AC_ARG_WITH(fast-fixincludes,
106 [ --with-fast-fixincludes Use a faster fixinclude program. Experimental],
107 fast_fixinc="$with_fast_fixincludes",
111 # Pass with no value to take the default
112 # Pass with a value to specify a thread package
113 AC_ARG_ENABLE(threads,
114 [ --enable-threads enable thread usage for target GCC.
115 --enable-threads=LIB use LIB thread package for target GCC.],
116 if [[[ x$enable_threads = xno ]]]; then
121 enable_threads_flag=$enable_threads
122 # Check if a valid thread package
123 case x${enable_threads_flag} in
126 target_thread_file='single'
130 target_thread_file=''
132 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
133 xsolaris | xwin32 | xdce | xvxworks)
134 target_thread_file=$enable_threads_flag
137 echo "$enable_threads is an unknown thread package" 1>&2
142 # Determine the host, build, and target systems
145 # Find the native compiler
149 # Find some useful tools
161 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)
163 # Check for thread headers.
164 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
165 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
167 # See if the system preprocessor understands the ANSI C preprocessor
168 # stringification operator.
169 AC_MSG_CHECKING(whether cpp understands the stringify operator)
170 AC_CACHE_VAL(gcc_cv_c_have_stringify,
173 char *test = S(foo);],
174 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
175 AC_MSG_RESULT($gcc_cv_c_have_stringify)
176 if test $gcc_cv_c_have_stringify = yes; then
177 AC_DEFINE(HAVE_CPP_STRINGIFY)
180 # Use <inttypes.h> only if it exists,
181 # doesn't clash with <sys/types.h>, and declares intmax_t.
182 AC_MSG_CHECKING(for inttypes.h)
183 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
185 [#include <sys/types.h>
186 #include <inttypes.h>],
188 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
189 gcc_cv_header_inttypes_h=yes],
190 gcc_cv_header_inttypes_h=no)])
191 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
193 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
194 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
197 GCC_FUNC_VFPRINTF_DOPRNT
200 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
201 index rindex getenv atol sbrk abort atof)
213 build_install_headers_dir=install-headers-tar
218 host_truncate_target=
221 # Decode the host machine, then the target machine.
222 # For the host machine, we save the xm_file variable as host_xm_file;
223 # then we decode the target machine and forget everything else
224 # that came from the host machine.
225 for machine in $build $host $target; do
239 # Set this to force installation and use of collect2.
241 # Set this to override the default target model.
243 # Set this to control which fixincludes program to use.
244 if [[ x$fast_fixinc != xyes ]] ; then
245 fixincludes=fixincludes
246 else fixincludes=fixinc.sh ; fi
247 # Set this to control how the header file directory is installed.
248 install_headers_dir=install-headers-tar
249 # Set this to a non-empty list of args to pass to cpp if the target
250 # wants its .md file passed through cpp.
252 # Set this if directory names should be truncated to 14 characters.
254 # Set this if gdb needs a dir command with `dirname $out_file`
255 gdb_needs_out_file_path=
256 # Set this if the build machine requires executables to have a
259 # Set this to control which thread package will be used.
261 # Reinitialize these from the flag values every loop pass, since some
262 # configure entries modify them.
264 gnu_ld="$gnu_ld_flag"
265 enable_threads=$enable_threads_flag
267 # Set default cpu_type, tm_file and xm_file so it can be updated in
268 # each machine entry.
269 cpu_type=`echo $machine | sed 's/-.*$//'`
303 tm_file=${cpu_type}/${cpu_type}.h
304 xm_file=${cpu_type}/xm-${cpu_type}.h
306 # Set the default macros to define for GNU/Linux systems.
309 xm_defines="HAVE_ATEXIT POSIX BSTRING"
314 # Support site-specific machine types.
316 cpu_type=`echo $machine | sed -e 's/-.*//'`
317 rest=`echo $machine | sed -e "s/$cpu_type-//"`
318 xm_file=${cpu_type}/xm-$rest.h
319 tm_file=${cpu_type}/$rest.h
320 if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \
321 then xmake_file=${cpu_type}/x-$rest; \
324 if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \
325 then tmake_file=${cpu_type}/t-$rest; \
331 a29k-*-bsd* | a29k-*-sym1*)
332 tm_file="${tm_file} a29k/unix.h"
334 xmake_file=a29k/x-unix
337 a29k-*-udi | a29k-*-coff)
338 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
339 tmake_file=a29k/t-a29kbare
342 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
343 tmake_file=a29k/t-vx29k
344 extra_parts="crtbegin.o crtend.o"
345 thread_file='vxworks'
347 a29k-*-*) # Default a29k environment.
350 alpha*-*-linux-gnuecoff*)
351 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
352 target_cpu_default="MASK_GAS"
357 alpha*-*-linux-gnulibc1*)
358 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
359 target_cpu_default="MASK_GAS"
360 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
361 extra_parts="crtbegin.o crtend.o"
362 fixincludes=fixinc.wrap
365 if [[ x$enable_threads = xyes ]]; then
370 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
371 target_cpu_default="MASK_GAS"
372 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
373 extra_parts="crtbegin.o crtend.o"
375 fixincludes=Makefile.in
377 if [[ x$enable_threads = xyes ]]; then
382 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
383 target_cpu_default="MASK_GAS"
384 tmake_file="alpha/t-crtbe"
385 extra_parts="crtbegin.o crtend.o"
387 fixincludes=fixinc.wrap
392 if [[ x$stabs = xyes ]]
394 tm_file="${tm_file} dbx.h"
396 if [[ x$gas != xyes ]]
398 extra_passes="mips-tfile mips-tdump"
403 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
406 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
409 tm_file="${tm_file} alpha/osf.h"
410 # Some versions of OSF4 (specifically X4.0-9 296.7) have
411 # a broken tar, so we use cpio instead.
412 install_headers_dir=install-headers-cpio
416 *-*-osf4.0[[b-z]] | *-*-osf4.[[1-9]]*)
417 target_cpu_default=MASK_SUPPORT_ARCH
422 tm_file="${tm_file} alpha/win-nt.h"
423 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
425 xmake_file=winnt/x-winnt
426 extra_host_objs=oldnames.o
427 extra_gcc_objs="spawnv.o oldnames.o"
428 fixincludes=fixinc.winnt
429 if [[ x$gnu_ld != xyes ]]
431 extra_programs=ld.exe
433 if [[ x$enable_threads = xyes ]]; then
439 xm_file="${xm_file} alpha/xm-vms.h"
440 tmake_file=alpha/t-vms
441 fixincludes=Makefile.in
444 extra_parts="crtinit.o crtfini.o"
446 arm-*-coff* | armel-*-coff*)
448 tmake_file=arm/t-bare
450 arm-*-riscix1.[[01]]*) # Acorn RISC machine (early versions)
451 tm_file=arm/riscix1-1.h
454 arm-*-riscix*) # Acorn RISC machine
455 if [[ x$gas = xyes ]]
457 tm_file=arm/rix-gas.h
461 xmake_file=arm/x-riscix
462 tmake_file=arm/t-riscix
465 arm-semi-aout | armel-semi-aout)
467 tmake_file=arm/t-semi
468 fixincludes=Makefile.in # There is nothing to fix
470 arm-semi-aof | armel-semi-aof)
471 tm_file=arm/semiaof.h
472 tmake_file=arm/t-semiaof
473 fixincludes=Makefile.in # There is nothing to fix
477 xm_file="xm-siglist.h ${xm_file}"
478 tmake_file="t-netbsd arm/t-netbsd"
479 # On NetBSD, the headers are already okay, except for math.h.
480 fixincludes=fixinc.wrap
482 arm-*-linux-gnuaout*) # ARM GNU/Linux
485 tm_file=arm/linux-gas.h
486 tmake_file=arm/t-linux
487 fixincludes=Makefile.in
492 tmake_file=arm/t-bare
494 c1-convex-*) # Convex C1
497 fixincludes=Makefile.in
499 c2-convex-*) # Convex C2
502 fixincludes=Makefile.in
507 fixincludes=Makefile.in
512 fixincludes=Makefile.in
515 target_cpu_default=16
517 fixincludes=Makefile.in
519 clipper-intergraph-clix*)
520 tm_file="${tm_file} svr3.h clipper/clix.h"
521 xm_file=clipper/xm-clix.h
522 xmake_file=clipper/x-clix
523 extra_headers=va-clipper.h
524 extra_parts="crtbegin.o crtend.o"
525 install_headers_dir=install-headers-cpio
532 # This hasn't been upgraded to GCC 2.
533 # fx80-alliant-*) # Alliant FX/80
539 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
540 xm_file=pa/xm-papro.h
545 tm_file="${tm_file} pa/pa-osf.h"
547 fixincludes=Makefile.in
550 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
551 xm_file=pa/xm-papro.h
555 tm_file="${tm_file} pa/pa-osf.h"
557 fixincludes=Makefile.in
562 fixincludes=Makefile.in
566 fixincludes=Makefile.in
569 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
570 xm_file=pa/xm-pahpux.h
571 xmake_file=pa/x-pa-hpux
572 if [[ x$gas = xyes ]]
574 tm_file="${tm_file} pa/gas.h"
576 install_headers_dir=install-headers-cpio
579 hppa1.0-*-hpux8.0[[0-2]]*)
580 tm_file="${tm_file} pa/pa-hpux.h"
581 xm_file=pa/xm-pahpux.h
582 xmake_file=pa/x-pa-hpux
583 if [[ x$gas = xyes ]]
585 tm_file="${tm_file} pa/pa-gas.h"
587 tm_file="pa/pa-oldas.h ${tm_file}"
589 install_headers_dir=install-headers-cpio
592 hppa1.1-*-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
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 install_headers_dir=install-headers-cpio
619 tm_file="${tm_file} pa/pa-hpux.h"
620 xm_file=pa/xm-pahpux.h
621 xmake_file=pa/x-pa-hpux
622 if [[ x$gas = xyes ]]
624 tm_file="${tm_file} pa/pa-gas.h"
626 install_headers_dir=install-headers-cpio
631 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
632 xm_file=pa/xm-pahpux.h
633 xmake_file=pa/x-pa-hpux
635 if [[ x$gas = xyes ]]
637 tm_file="${tm_file} pa/pa-gas.h"
639 if [[ x$enable_threads = x ]]; then
640 enable_threads=$have_pthread_h
642 if [[ x$enable_threads = xyes ]]; then
644 tmake_file="${tmake_file} pa/t-dce-thr"
646 install_headers_dir=install-headers-cpio
650 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
651 xm_file=pa/xm-pahpux.h
652 xmake_file=pa/x-pa-hpux
653 if [[ x$gas = xyes ]]
655 tm_file="${tm_file} pa/pa-gas.h"
657 if [[ x$enable_threads = x ]]; then
658 enable_threads=$have_pthread_h
660 if [[ x$enable_threads = xyes ]]; then
662 tmake_file="${tmake_file} pa/t-dce-thr"
664 install_headers_dir=install-headers-cpio
669 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
670 xm_file=pa/xm-pahpux.h
671 xmake_file=pa/x-pa-hpux
672 if [[ x$gas = xyes ]]
674 tm_file="${tm_file} pa/pa-gas.h"
676 install_headers_dir=install-headers-cpio
680 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
681 xm_file=pa/xm-pahpux.h
682 xmake_file=pa/x-pa-hpux
683 if [[ x$gas = xyes ]]
685 tm_file="${tm_file} pa/pa-gas.h"
687 install_headers_dir=install-headers-cpio
692 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
693 xm_file=pa/xm-pahpux.h
694 xmake_file=pa/x-pa-hpux
695 if [[ x$gas = xyes ]]
697 tm_file="${tm_file} pa/pa-gas.h"
699 install_headers_dir=install-headers-cpio
703 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
704 xm_file=pa/xm-pahpux.h
705 xmake_file=pa/x-pa-hpux
706 if [[ x$gas = xyes ]]
708 tm_file="${tm_file} pa/pa-gas.h"
710 install_headers_dir=install-headers-cpio
716 fixincludes=Makefile.in
720 i[[34567]]86-ibm-aix*) # IBM PS/2 running AIX
721 if [[ x$gas = xyes ]]
723 tm_file=i386/aix386.h
724 extra_parts="crtbegin.o crtend.o"
725 tmake_file=i386/t-crtstuff
727 tm_file=i386/aix386ng.h
730 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
732 xmake_file=i386/x-aix
734 i[[34567]]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
735 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
736 xm_defines="USG POSIX SMALL_ARG_MAX"
737 xmake_file=i386/x-ncr3000
738 if [[ x$stabs = xyes -a x$gas = xyes ]]
740 tm_file=i386/sysv4gdb.h
744 extra_parts="crtbegin.o crtend.o"
745 tmake_file=i386/t-crtpic
749 xm_file=i386/xm-next.h
750 tmake_file=i386/t-next
751 xmake_file=i386/x-next
752 extra_objs=nextstep.o
753 if [[ x$enable_threads = xyes ]]; then
757 i[[34567]]86-sequent-bsd*) # 80386 from Sequent
759 if [[ x$gas = xyes ]]
761 tm_file=i386/seq-gas.h
763 tm_file=i386/sequent.h
766 i[[34567]]86-sequent-ptx1*)
767 xm_defines="USG SVR3"
768 xmake_file=i386/x-sysv3
769 tm_file=i386/seq-sysv3.h
770 tmake_file=i386/t-crtstuff
771 fixincludes=fixinc.ptx
772 extra_parts="crtbegin.o crtend.o"
773 install_headers_dir=install-headers-cpio
775 i[[34567]]86-sequent-ptx2* | i[[34567]]86-sequent-sysv3*)
776 xm_defines="USG SVR3"
777 xmake_file=i386/x-sysv3
778 tm_file=i386/seq2-sysv3.h
779 tmake_file=i386/t-crtstuff
780 extra_parts="crtbegin.o crtend.o"
781 fixincludes=fixinc.ptx
782 install_headers_dir=install-headers-cpio
784 i[[34567]]86-sequent-ptx4* | i[[34567]]86-sequent-sysv4*)
785 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
786 xm_defines="USG POSIX SMALL_ARG_MAX"
788 tm_file=i386/ptx4-i.h
790 extra_parts="crtbegin.o crtend.o"
791 fixincludes=fixinc.ptx
792 install_headers_dir=install-headers-cpio
794 i386-sun-sunos*) # Sun i386 roadrunner
799 i[[34567]]86-wrs-vxworks*)
800 tm_file=i386/vxi386.h
801 tmake_file=i386/t-i386bare
803 i[[34567]]86-*-aout*)
804 tm_file=i386/i386-aout.h
805 tmake_file=i386/t-i386bare
807 i[[34567]]86-*-bsdi* | i[[34567]]86-*-bsd386*)
808 tm_file=i386/bsd386.h
809 # tmake_file=t-libc-ok
812 tm_file=i386/386bsd.h
813 # tmake_file=t-libc-ok
814 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
817 i[[34567]]86-*-freebsdelf*)
818 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
819 # On FreeBSD, the headers are already ok, except for math.h.
820 fixincludes=fixinc.wrap
821 tmake_file=i386/t-freebsd
826 i[[34567]]86-*-freebsd*)
827 tm_file=i386/freebsd.h
828 # On FreeBSD, the headers are already ok, except for math.h.
829 fixincludes=fixinc.wrap
830 tmake_file=i386/t-freebsd
832 i[[34567]]86-*-netbsd*)
833 tm_file=i386/netbsd.h
834 # On NetBSD, the headers are already okay, except for math.h.
835 fixincludes=fixinc.wrap
838 i[[34567]]86-*-coff*)
839 tm_file=i386/i386-coff.h
840 tmake_file=i386/t-i386bare
842 i[[34567]]86-*-isc*) # 80386 running ISC system
843 xm_file="${xm_file} i386/xm-isc.h"
844 xm_defines="USG SVR3"
846 i[[34567]]86-*-isc[[34]]*)
847 xmake_file=i386/x-isc3
850 xmake_file=i386/x-isc
853 if [[ x$gas = xyes -a x$stabs = xyes ]]
855 tm_file=i386/iscdbx.h
856 tmake_file=i386/t-svr3dbx
857 extra_parts="svr3.ifile svr3z.ifile"
859 tm_file=i386/isccoff.h
860 tmake_file=i386/t-crtstuff
861 extra_parts="crtbegin.o crtend.o"
863 install_headers_dir=install-headers-cpio
865 i[[34567]]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
866 # with a.out format using
868 xmake_file=x-linux-aout
869 tmake_file="t-linux-aout i386/t-crtstuff"
870 tm_file=i386/linux-oldld.h
871 fixincludes=Makefile.in #On Linux, the headers are ok already.
874 i[[34567]]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
876 xmake_file=x-linux-aout
877 tmake_file="t-linux-aout i386/t-crtstuff"
878 tm_file=i386/linux-aout.h
879 fixincludes=Makefile.in #On Linux, the headers are ok already.
882 i[[34567]]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
883 # with ELF format using the
884 # GNU/Linux C library 5
887 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
888 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
889 fixincludes=Makefile.in #On Linux, the headers are ok already.
891 if [[ x$enable_threads = xyes ]]; then
895 i[[34567]]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
896 # with ELF format using glibc 2
897 # aka GNU/Linux C library 6
900 tmake_file="t-linux i386/t-crtstuff"
901 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
902 fixincludes=Makefile.in #On Linux, the headers are ok already.
904 if [[ x$enable_threads = xyes ]]; then
910 i[[34567]]86-go32-msdos | i[[34567]]86-*-go32*)
911 xm_file=i386/xm-go32.h
913 tmake_file=i386/t-go32
915 i[[34567]]86-pc-msdosdjgpp*)
916 xm_file=i386/xm-go32.h
918 tmake_file=i386/t-go32
922 i[[34567]]86-moss-msdos* | i[[34567]]86-*-moss*)
925 fixincludes=Makefile.in
929 i[[34567]]86-*-lynxos*)
930 if [[ x$gas = xyes ]]
934 tm_file=i386/lynx-ng.h
936 xm_file=i386/xm-lynx.h
937 tmake_file=i386/t-i386bare
940 i[[34567]]86-*-mach*)
942 # tmake_file=t-libc-ok
945 i[[34567]]86-*-osfrose*) # 386 using OSF/rose
946 if [[ x$elf = xyes ]]
948 tm_file=i386/osfelf.h
951 tm_file=i386/osfrose.h
954 xm_file="i386/xm-osf.h ${xm_file}"
955 xmake_file=i386/x-osfrose
956 tmake_file=i386/t-osf
959 i[[34567]]86-go32-rtems*)
961 xm_file=i386/xm-go32.h
962 tm_file=i386/go32-rtems.h
963 tmake_file="i386/t-go32 t-rtems"
965 i[[34567]]86-*-rtemself*)
967 tm_file=i386/rtemself.h
968 tmake_file="i386/t-i386bare t-rtems"
970 i[[34567]]86-*-rtems*)
973 tmake_file="i386/t-i386bare t-rtems"
975 i[[34567]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
976 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
977 xm_defines="USG SVR3"
978 xmake_file=i386/x-sco5
979 fixincludes=fixinc.sco
980 install_headers_dir=install-headers-cpio
982 tmake_file=i386/t-sco5
983 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
985 i[[34567]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
986 xm_file="${xm_file} i386/xm-sco.h"
987 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
988 xmake_file=i386/x-sco4
989 fixincludes=fixinc.sco
990 install_headers_dir=install-headers-cpio
991 if [[ x$stabs = xyes ]]
993 tm_file=i386/sco4dbx.h
994 tmake_file=i386/t-svr3dbx
995 extra_parts="svr3.ifile svr3z.rfile"
998 tmake_file=i386/t-crtstuff
999 extra_parts="crtbegin.o crtend.o"
1003 i[[34567]]86-*-sco*) # 80386 running SCO system
1004 xm_file=i386/xm-sco.h
1005 xmake_file=i386/x-sco
1006 install_headers_dir=install-headers-cpio
1007 if [[ x$stabs = xyes ]]
1009 tm_file=i386/scodbx.h
1010 tmake_file=i386/t-svr3dbx
1011 extra_parts="svr3.ifile svr3z.rfile"
1014 extra_parts="crtbegin.o crtend.o"
1015 tmake_file=i386/t-crtstuff
1019 i[[34567]]86-*-solaris2*)
1020 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1021 xm_defines="USG POSIX SMALL_ARG_MAX"
1022 if [[ x$stabs = xyes ]]
1024 tm_file=i386/sol2dbg.h
1028 tmake_file=i386/t-sol2
1029 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1032 *-*-solaris2.[[0-4]])
1033 fixincludes=fixinc.svr4;;
1035 fixincludes=fixinc.wrap;;
1037 if [[ x$enable_threads = xyes ]]; then
1038 thread_file='solaris'
1041 i[[34567]]86-*-sysv5*) # Intel x86 on System V Release 5
1042 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1043 xm_defines="USG POSIX"
1044 tm_file=i386/sysv4.h
1045 if [[ x$stabs = xyes ]]
1047 tm_file="${tm_file} dbx.h"
1049 tmake_file=i386/t-crtpic
1051 extra_parts="crtbegin.o crtend.o"
1052 fixincludes=Makefile.in # The headers are just fine, thank you.
1054 i[[34567]]86-*-sysv4*) # Intel 80386's running system V.4
1055 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1056 xm_defines="USG POSIX SMALL_ARG_MAX"
1057 tm_file=i386/sysv4.h
1058 if [[ x$stabs = xyes ]]
1060 tm_file="${tm_file} dbx.h"
1062 tmake_file=i386/t-crtpic
1064 extra_parts="crtbegin.o crtend.o"
1066 i[[34567]]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1068 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1069 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1070 fixincludes=Makefile.in #Don't do it on OSF/1
1071 if [[ x$stabs = xyes ]]
1073 tm_file=i386/osf1elfgdb.h
1075 tm_file=i386/osf1elf.h
1077 tmake_file=i386/t-osf1elf
1078 xmake_file=i386/x-osf1elf
1079 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1081 i[[34567]]86-*-sysv*) # Intel 80386's running system V
1082 xm_defines="USG SVR3"
1083 xmake_file=i386/x-sysv3
1084 if [[ x$gas = xyes ]]
1086 if [[ x$stabs = xyes ]]
1088 tm_file=i386/svr3dbx.h
1089 tmake_file=i386/t-svr3dbx
1090 extra_parts="svr3.ifile svr3z.rfile"
1092 tm_file=i386/svr3gas.h
1093 extra_parts="crtbegin.o crtend.o"
1094 tmake_file=i386/t-crtstuff
1097 tm_file=i386/sysv3.h
1098 extra_parts="crtbegin.o crtend.o"
1099 tmake_file=i386/t-crtstuff
1102 i386-*-vsta) # Intel 80386's running VSTa kernel
1103 xm_file="${xm_file} i386/xm-vsta.h"
1105 tmake_file=i386/t-vsta
1106 xmake_file=i386/x-vsta
1108 i[[34567]]86-*-pe | i[[34567]]86-*-cygwin32)
1109 xm_file="${xm_file} i386/xm-cygwin32.h"
1110 tmake_file=i386/t-cygwin32
1111 tm_file=i386/cygwin32.h
1112 xmake_file=i386/x-cygwin32
1114 fixincludes=Makefile.in
1115 if [[ x$enable_threads = xyes ]]; then
1120 i[[34567]]86-*-mingw32*)
1121 tm_file=i386/mingw32.h
1122 xm_file="${xm_file} i386/xm-mingw32.h"
1123 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1125 xmake_file=i386/x-cygwin32
1126 fixincludes=Makefile.in
1127 if [[ x$enable_threads = xyes ]]; then
1134 *minwg32crt* | *mingw32*)
1135 tm_file="${tm_file} i386/crtdll.h"
1139 i[[34567]]86-*-winnt3*)
1140 tm_file=i386/win-nt.h
1141 out_file=i386/i386.c
1142 xm_file="xm-winnt.h ${xm_file}"
1143 xmake_file=winnt/x-winnt
1144 tmake_file=i386/t-winnt
1145 extra_host_objs="winnt.o oldnames.o"
1146 extra_gcc_objs="spawnv.o oldnames.o"
1147 fixincludes=fixinc.winnt
1148 if [[ x$gnu_ld != xyes ]]
1150 extra_programs=ld.exe
1152 if [[ x$enable_threads = xyes ]]; then
1156 i[[34567]]86-dg-dgux*)
1157 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1158 xm_defines="USG POSIX"
1159 out_file=i386/dgux.c
1161 tmake_file=i386/t-dgux
1162 xmake_file=i386/x-dgux
1163 fixincludes=fixinc.dgux
1164 install_headers_dir=install-headers-cpio
1166 i860-alliant-*) # Alliant FX/2800
1167 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1168 xm_file="${xm_file}"
1169 xmake_file=i860/x-fx2800
1170 tmake_file=i860/t-fx2800
1171 extra_parts="crtbegin.o crtend.o"
1174 tm_file="${tm_file} i860/bsd.h"
1175 if [[ x$gas = xyes ]]
1177 tm_file="${tm_file} i860/bsd-gas.h"
1182 tm_file="${tm_file} i860/mach.h"
1183 tmake_file=t-libc-ok
1185 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1186 tm_file="${tm_file} svr3.h i860/paragon.h"
1187 xm_defines="USG SVR3"
1191 tm_file="${tm_file} svr3.h i860/sysv3.h"
1192 xm_defines="USG SVR3"
1193 xmake_file=i860/x-sysv3
1194 extra_parts="crtbegin.o crtend.o"
1197 tm_file="${tm_file} svr4.h i860/sysv4.h"
1198 xm_defines="USG SVR3"
1199 xmake_file=i860/x-sysv4
1201 extra_parts="crtbegin.o crtend.o"
1203 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1204 tm_file="${tm_file} i960/vx960.h"
1205 tmake_file=i960/t-vxworks960
1207 thread_file='vxworks'
1209 i960-wrs-vxworks5* | i960-wrs-vxworks)
1210 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1211 tmake_file=i960/t-vxworks960
1213 thread_file='vxworks'
1216 tm_file="${tm_file} i960/vx960.h"
1217 tmake_file=i960/t-vxworks960
1219 thread_file='vxworks'
1222 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1223 tmake_file=i960/t-960bare
1227 tmake_file="i960/t-960bare t-rtems"
1228 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1231 i960-*-*) # Default i960 environment.
1235 extra_parts="crtinit.o crtfini.o"
1237 m68000-convergent-sysv*)
1239 xm_file="m68k/xm-3b1.h ${xm_file}"
1242 extra_headers=math-68881.h
1244 m68000-hp-bsd*) # HP 9000/200 running BSD
1245 tm_file=m68k/hp2bsd.h
1246 xmake_file=m68k/x-hp2bsd
1248 extra_headers=math-68881.h
1250 m68000-hp-hpux*) # HP 9000 series 300
1251 xm_file="xm_alloca.h ${xm_file}"
1252 xm_defines="USG NO_SYS_SIGLIST"
1253 if [[ x$gas = xyes ]]
1255 xmake_file=m68k/x-hp320g
1256 tm_file=m68k/hp310g.h
1258 xmake_file=m68k/x-hp320
1259 tm_file=m68k/hp310.h
1261 install_headers_dir=install-headers-cpio
1263 extra_headers=math-68881.h
1268 extra_headers=math-68881.h
1271 tm_file=m68k/sun2o4.h
1273 extra_headers=math-68881.h
1276 xm_file="m68k/xm-3b1.h ${xm_file}"
1278 if [[ x$gas = xyes ]]
1285 extra_headers=math-68881.h
1287 m68k-apple-aux*) # Apple Macintosh running A/UX
1288 xm_defines="USG AUX"
1289 tmake_file=m68k/t-aux
1290 install_headers_dir=install-headers-cpio
1291 extra_headers=math-68881.h
1292 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1294 if [[ "$gnu_ld" = yes ]]
1296 tm_file="${tm_file} m68k/auxgld.h"
1298 tm_file="${tm_file} m68k/auxld.h"
1300 if [[ "$gas" = yes ]]
1302 tm_file="${tm_file} m68k/auxgas.h"
1304 tm_file="${tm_file} m68k/auxas.h"
1306 tm_file="${tm_file} m68k/a-ux.h"
1310 tm_file=m68k/apollo68.h
1311 xmake_file=m68k/x-apollo68
1313 extra_headers=math-68881.h
1316 m68k-altos-sysv*) # Altos 3068
1317 if [[ x$gas = xyes ]]
1319 tm_file=m68k/altos3068.h
1322 echo "The Altos is supported only with the GNU assembler" 1>&2
1325 extra_headers=math-68881.h
1327 m68k-bull-sysv*) # Bull DPX/2
1328 if [[ x$gas = xyes ]]
1330 if [[ x$stabs = xyes ]]
1332 tm_file=m68k/dpx2cdbx.h
1334 tm_file=m68k/dpx2g.h
1339 xm_file="xm-alloca.h ${xm_file}"
1341 xmake_file=m68k/x-dpx2
1343 extra_headers=math-68881.h
1345 m68k-atari-sysv4*) # Atari variant of V.4.
1346 tm_file=m68k/atari.h
1347 xm_file="xm-alloca.h ${xm_file}"
1348 xm_defines="USG FULL_PROTOTYPES"
1350 extra_parts="crtbegin.o crtend.o"
1351 extra_headers=math-68881.h
1354 m68k-motorola-sysv*)
1355 tm_file=m68k/mot3300.h
1356 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1357 xm_defines=NO_SYS_SIGLIST
1358 if [[ x$gas = xyes ]]
1360 xmake_file=m68k/x-mot3300-gas
1361 if [[ x$gnu_ld = xyes ]]
1363 tmake_file=m68k/t-mot3300-gald
1365 tmake_file=m68k/t-mot3300-gas
1369 xmake_file=m68k/x-mot3300
1370 if [[ x$gnu_ld = xyes ]]
1372 tmake_file=m68k/t-mot3300-gld
1374 tmake_file=m68k/t-mot3300
1378 gdb_needs_out_file_path=yes
1379 extra_parts="crt0.o mcrt0.o"
1380 extra_headers=math-68881.h
1383 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1384 tm_file=m68k/tower-as.h
1385 xm_defines="USG SVR3"
1386 xmake_file=m68k/x-tower
1387 extra_parts="crtbegin.o crtend.o"
1388 extra_headers=math-68881.h
1391 tm_file=m68k/plexus.h
1392 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1395 extra_headers=math-68881.h
1399 xm_file="xm-alloca.h ${xm_file}"
1401 extra_headers=math-68881.h
1404 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1405 xm_defines="USG unos"
1406 xmake_file=m68k/x-crds
1409 extra_headers=math-68881.h
1411 m68k-cbm-sysv4*) # Commodore variant of V.4.
1413 xm_file="xm-alloca.h ${xm_file}"
1414 xm_defines="USG FULL_PROTOTYPES"
1415 xmake_file=m68k/x-amix
1417 extra_parts="crtbegin.o crtend.o"
1418 extra_headers=math-68881.h
1422 tm_file=m68k/ccur-GAS.h
1423 xmake_file=m68k/x-ccur
1424 extra_headers=math-68881.h
1428 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1429 tm_file=m68k/hp3bsd44.h
1430 xmake_file=m68k/x-hp3bsd44
1432 extra_headers=math-68881.h
1435 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1436 tm_file=m68k/hp3bsd.h
1438 extra_headers=math-68881.h
1442 if [[ x$with_fp = xno ]]
1444 tm_file=m68k/isi-nfp.h
1450 extra_headers=math-68881.h
1452 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1453 xm_file="xm_alloca.h ${xm_file}"
1454 xm_defines="USG NO_SYS_SIGLIST"
1455 if [[ x$gas = xyes ]]
1457 xmake_file=m68k/x-hp320g
1458 tm_file=m68k/hp320g.h
1460 xmake_file=m68k/x-hp320
1461 tm_file=m68k/hpux7.h
1463 install_headers_dir=install-headers-cpio
1465 extra_headers=math-68881.h
1468 m68k-hp-hpux*) # HP 9000 series 300
1469 xm_file="xm_alloca.h ${xm_file}"
1470 xm_defines="USG NO_SYS_SIGLIST"
1471 if [[ x$gas = xyes ]]
1473 xmake_file=m68k/x-hp320g
1474 tm_file=m68k/hp320g.h
1476 xmake_file=m68k/x-hp320
1477 tm_file=m68k/hp320.h
1479 install_headers_dir=install-headers-cpio
1481 extra_headers=math-68881.h
1485 tm_file=m68k/sun3mach.h
1487 extra_headers=math-68881.h
1491 if [[ x$gas = xyes ]]
1493 tm_file=m68k/news3gas.h
1495 tm_file=m68k/news3.h
1498 extra_headers=math-68881.h
1501 m68k-sony-bsd* | m68k-sony-newsos*)
1502 if [[ x$gas = xyes ]]
1504 tm_file=m68k/newsgas.h
1509 extra_headers=math-68881.h
1512 m68k-next-nextstep2*)
1513 tm_file=m68k/next21.h
1514 xm_file="m68k/xm-next.h ${xm_file}"
1515 tmake_file=m68k/t-next
1516 xmake_file=m68k/x-next
1517 extra_objs=nextstep.o
1518 extra_headers=math-68881.h
1522 m68k-next-nextstep3*)
1524 xm_file="m68k/xm-next.h ${xm_file}"
1525 tmake_file=m68k/t-next
1526 xmake_file=m68k/x-next
1527 extra_objs=nextstep.o
1528 extra_headers=math-68881.h
1530 if [[ x$enable_threads = xyes ]]; then
1535 if [[ x$with_fp = xno ]]
1537 tm_file=m68k/sun3n3.h
1539 tm_file=m68k/sun3o3.h
1543 extra_headers=math-68881.h
1545 m68k-sun-sunos*) # For SunOS 4 (the default).
1546 if [[ x$with_fp = xno ]]
1548 tm_file=m68k/sun3n.h
1554 extra_headers=math-68881.h
1557 tm_file=m68k/vxm68k.h
1558 tmake_file=m68k/t-vxworks68
1559 extra_headers=math-68881.h
1560 thread_file='vxworks'
1564 tmake_file=m68k/t-m68kbare
1565 tm_file="m68k/m68k-aout.h libgloss.h"
1566 extra_headers=math-68881.h
1570 tmake_file=m68k/t-m68kbare
1571 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1572 extra_headers=math-68881.h
1576 if [[ x$gas = xyes ]]
1580 tm_file=m68k/lynx-ng.h
1582 xm_file=m68k/xm-lynx.h
1584 tmake_file=m68k/t-lynx
1585 extra_headers=math-68881.h
1589 tm_file=m68k/netbsd.h
1590 # On NetBSD, the headers are already okay, except for math.h.
1591 fixincludes=fixinc.wrap
1595 m68k-*-sysv3*) # Motorola m68k's running system V.3
1596 xm_file="xm-alloca.h ${xm_file}"
1598 xmake_file=m68k/x-m68kv
1599 extra_parts="crtbegin.o crtend.o"
1600 extra_headers=math-68881.h
1603 m68k-*-sysv4*) # Motorola m68k's running system V.4
1604 tm_file=m68k/m68kv4.h
1605 xm_file="xm-alloca.h ${xm_file}"
1608 extra_parts="crtbegin.o crtend.o"
1609 extra_headers=math-68881.h
1612 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1615 tm_file=m68k/linux-aout.h
1616 tmake_file="t-linux-aout m68k/t-linux-aout"
1617 fixincludes=Makefile.in # The headers are ok already.
1618 extra_headers=math-68881.h
1622 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1623 # with ELF format using the
1624 # GNU/Linux C library 5
1626 tm_file=m68k/linux.h
1627 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1628 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1629 fixincludes=Makefile.in # The headers are ok already.
1630 extra_headers=math-68881.h
1634 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1635 # with ELF format using glibc 2
1636 # aka the GNU/Linux C library 6.
1638 tm_file=m68k/linux.h
1639 tmake_file="t-linux m68k/t-linux"
1640 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1641 fixincludes=Makefile.in # The headers are ok already.
1642 extra_headers=math-68881.h
1645 if [[ x$enable_threads = xyes ]]; then
1650 tmake_file=m68k/t-m68kbare
1651 tm_file=m68k/m68k-psos.h
1652 extra_headers=math-68881.h
1656 tmake_file="m68k/t-m68kbare t-rtems"
1657 tm_file=m68k/rtems.h
1658 extra_headers=math-68881.h
1665 tm_file=m88k/dguxbcs.h
1666 tmake_file=m88k/t-dguxbcs
1670 tmake_file=m88k/t-dgux
1673 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1674 xmake_file=m88k/x-dgux
1675 if [[ x$gas = xyes ]]
1677 tmake_file=m88k/t-dgux-gas
1679 fixincludes=fixinc.dgux
1681 m88k-dolphin-sysv3*)
1682 tm_file=m88k/dolph.h
1683 extra_parts="crtbegin.o crtend.o"
1684 xm_file="m88k/xm-sysv3.h ${xm_file}"
1685 xmake_file=m88k/x-dolph
1686 if [[ x$gas = xyes ]]
1688 tmake_file=m88k/t-m88k-gas
1691 m88k-tektronix-sysv3)
1692 tm_file=m88k/tekXD88.h
1693 extra_parts="crtbegin.o crtend.o"
1694 xm_file="m88k/xm-sysv3.h ${xm_file}"
1695 xmake_file=m88k/x-tekXD88
1696 if [[ x$gas = xyes ]]
1698 tmake_file=m88k/t-m88k-gas
1702 tm_file=m88k/m88k-aout.h
1705 tm_file=m88k/m88k-coff.h
1706 tmake_file=m88k/t-bug
1710 extra_parts="crtbegin.o crtend.o"
1711 if [[ x$gas = xyes ]]
1713 tmake_file=m88k/t-luna-gas
1715 tmake_file=m88k/t-luna
1719 tm_file=m88k/sysv3.h
1720 extra_parts="crtbegin.o crtend.o"
1721 xm_file="m88k/xm-sysv3.h ${xm_file}"
1722 xmake_file=m88k/x-sysv3
1723 if [[ x$gas = xyes ]]
1725 tmake_file=m88k/t-m88k-gas
1729 tm_file=m88k/sysv4.h
1730 extra_parts="crtbegin.o crtend.o"
1731 xmake_file=m88k/x-sysv4
1732 tmake_file=m88k/t-sysv4
1734 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1735 tm_file=mips/iris6.h
1736 xm_file=mips/xm-iris6.h
1737 fixincludes=fixinc.irix
1738 xmake_file=mips/x-iris6
1739 tmake_file=mips/t-iris6
1740 if [[ x$enable_threads = xyes ]]; then
1745 tm_file="mips/elf.h libgloss.h"
1746 tmake_file=mips/t-ecoff
1749 extra_parts="crtbegin.o crtend.o"
1750 # thread_file='vxworks'
1752 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1753 tm_file="mips/iris6.h mips/cross64.h"
1754 xm_defines="USG HAVE_INTTYPES_H"
1755 fixincludes=Makefile.in
1756 xmake_file=mips/x-iris
1757 tmake_file=mips/t-cross64
1758 # See comment in mips/iris[56].h files.
1760 if [[ x$enable_threads = xyes ]]; then
1765 if [[ x$gas = xyes ]]
1767 if [[ x$stabs = xyes ]]
1769 tm_file=mips/iris5gdb.h
1771 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1774 tm_file=mips/sni-svr4.h
1777 xmake_file=mips/x-sni-svr4
1778 tmake_file=mips/t-mips-gas
1779 if [[ x$gnu_ld != xyes ]]
1784 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1785 if [[ x$gas = xyes ]]
1787 tm_file="mips/iris5.h mips/iris5gas.h"
1788 if [[ x$stabs = xyes ]]
1790 tm_file="${tm_file} dbx.h"
1793 tm_file=mips/iris5.h
1795 xm_defines="USG HAVE_INTTYPES_H"
1796 fixincludes=fixinc.irix
1797 xmake_file=mips/x-iris
1798 # mips-tfile doesn't work yet
1799 tmake_file=mips/t-mips-gas
1800 # See comment in mips/iris5.h file.
1802 if [[ x$enable_threads = xyes ]]; then
1806 mips-sgi-irix4loser*) # Mostly like a MIPS.
1807 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
1808 if [[ x$stabs = xyes ]]; then
1809 tm_file="${tm_file} dbx.h"
1812 xmake_file=mips/x-iris
1813 if [[ x$gas = xyes ]]
1815 tmake_file=mips/t-mips-gas
1817 extra_passes="mips-tfile mips-tdump"
1819 if [[ x$gnu_ld != xyes ]]
1823 if [[ x$enable_threads = xyes ]]; then
1827 mips-sgi-irix4*) # Mostly like a MIPS.
1828 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
1829 if [[ x$stabs = xyes ]]; then
1830 tm_file="${tm_file} dbx.h"
1833 xmake_file=mips/x-iris
1834 if [[ x$gas = xyes ]]
1836 tmake_file=mips/t-mips-gas
1838 extra_passes="mips-tfile mips-tdump"
1840 if [[ x$gnu_ld != xyes ]]
1844 if [[ x$enable_threads = xyes ]]; then
1848 mips-sgi-*) # Mostly like a MIPS.
1849 tm_file="mips/iris3.h ${tm_file}"
1850 if [[ x$stabs = xyes ]]; then
1851 tm_file="${tm_file} dbx.h"
1854 xmake_file=mips/x-iris3
1855 if [[ x$gas = xyes ]]
1857 tmake_file=mips/t-mips-gas
1859 extra_passes="mips-tfile mips-tdump"
1861 if [[ x$gnu_ld != xyes ]]
1866 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
1867 tm_file="mips/osfrose.h ${tm_file}"
1868 xmake_file=mips/x-osfrose
1869 tmake_file=mips/t-osfrose
1870 extra_objs=halfpic.o
1873 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
1874 tm_file=mips/dec-osf1.h
1875 if [[ x$stabs = xyes ]]; then
1876 tm_file="${tm_file} dbx.h"
1878 xmake_file=mips/x-dec-osf1
1879 if [[ x$gas = xyes ]]
1881 tmake_file=mips/t-mips-gas
1883 tmake_file=mips/t-ultrix
1884 extra_passes="mips-tfile mips-tdump"
1886 if [[ x$gnu_ld != xyes ]]
1891 mips-dec-bsd*) # Decstation running 4.4 BSD
1892 tm_file=mips/dec-bsd.h
1894 if [[ x$gas = xyes ]]
1896 tmake_file=mips/t-mips-gas
1898 tmake_file=mips/t-ultrix
1899 extra_passes="mips-tfile mips-tdump"
1901 if [[ x$gnu_ld != xyes ]]
1906 mips-dec-netbsd*) # Decstation running NetBSD
1907 tm_file=mips/netbsd.h
1908 # On NetBSD, the headers are already okay, except for math.h.
1909 fixincludes=fixinc.wrap
1912 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
1913 tm_file="mips/news4.h ${tm_file}"
1914 if [[ x$stabs = xyes ]]; then
1915 tm_file="${tm_file} dbx.h"
1917 if [[ x$gas = xyes ]]
1919 tmake_file=mips/t-mips-gas
1921 extra_passes="mips-tfile mips-tdump"
1923 if [[ x$gnu_ld != xyes ]]
1927 xmake_file=mips/x-sony
1929 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
1930 # That is based on svr4.
1931 # t-svr4 is not right because this system doesn't use ELF.
1932 tm_file="mips/news5.h ${tm_file}"
1933 if [[ x$stabs = xyes ]]; then
1934 tm_file="${tm_file} dbx.h"
1936 xm_file="xm-siglist.h ${xm_file}"
1938 if [[ x$gas = xyes ]]
1940 tmake_file=mips/t-mips-gas
1942 extra_passes="mips-tfile mips-tdump"
1944 if [[ x$gnu_ld != xyes ]]
1949 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
1950 tm_file="mips/svr4-5.h mips/svr4-t.h"
1951 if [[ x$stabs = xyes ]]; then
1952 tm_file="${tm_file} dbx.h"
1954 xm_file="xm-siglist.h ${xm_file}"
1956 xmake_file=mips/x-sysv
1957 if [[ x$gas = xyes ]]
1959 tmake_file=mips/t-mips-gas
1960 extra_parts="crtbegin.o crtend.o"
1962 tmake_file=mips/t-mips
1963 extra_passes="mips-tfile mips-tdump"
1965 if [[ x$gnu_ld != xyes ]]
1970 mips-*-ultrix* | mips-dec-mach3) # Decstation.
1971 tm_file="mips/ultrix.h ${tm_file}"
1972 if [[ x$stabs = xyes ]]; then
1973 tm_file="${tm_file} dbx.h"
1975 xmake_file=mips/x-ultrix
1976 if [[ x$gas = xyes ]]
1978 tmake_file=mips/t-mips-gas
1980 tmake_file=mips/t-ultrix
1981 extra_passes="mips-tfile mips-tdump"
1983 if [[ x$gnu_ld != xyes ]]
1988 mips-*-riscos[[56789]]bsd*)
1989 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
1990 if [[ x$stabs = xyes ]]; then
1991 tm_file="${tm_file} dbx.h"
1993 if [[ x$gas = xyes ]]
1995 tmake_file=mips/t-bsd-gas
1997 tmake_file=mips/t-bsd
1998 extra_passes="mips-tfile mips-tdump"
2000 if [[ x$gnu_ld != xyes ]]
2005 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
2006 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2007 if [[ x$stabs = xyes ]]; then
2008 tm_file="${tm_file} dbx.h"
2010 if [[ x$gas = xyes ]]
2012 tmake_file=mips/t-bsd-gas
2014 tmake_file=mips/t-bsd
2015 extra_passes="mips-tfile mips-tdump"
2017 if [[ x$gnu_ld != xyes ]]
2022 mips-*-riscos[[56789]]sysv4*)
2023 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2024 if [[ x$stabs = xyes ]]; then
2025 tm_file="${tm_file} dbx.h"
2027 xm_file="xm-siglist.h ${xm_file}"
2028 xmake_file=mips/x-sysv
2029 if [[ x$gas = xyes ]]
2031 tmake_file=mips/t-svr4-gas
2033 tmake_file=mips/t-svr4
2034 extra_passes="mips-tfile mips-tdump"
2036 if [[ x$gnu_ld != xyes ]]
2041 mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
2042 tm_file="mips/svr4-4.h ${tm_file}"
2043 if [[ x$stabs = xyes ]]; then
2044 tm_file="${tm_file} dbx.h"
2047 xmake_file=mips/x-sysv
2048 if [[ x$gas = xyes ]]
2050 tmake_file=mips/t-svr4-gas
2052 tmake_file=mips/t-svr4
2053 extra_passes="mips-tfile mips-tdump"
2055 if [[ x$gnu_ld != xyes ]]
2060 mips-*-riscos[[56789]]sysv*)
2061 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2062 if [[ x$stabs = xyes ]]; then
2063 tm_file="${tm_file} dbx.h"
2066 xmake_file=mips/x-sysv
2067 if [[ x$gas = xyes ]]
2069 tmake_file=mips/t-svr3-gas
2071 tmake_file=mips/t-svr3
2072 extra_passes="mips-tfile mips-tdump"
2074 if [[ x$gnu_ld != xyes ]]
2079 mips-*-sysv* | mips-*-riscos*sysv*)
2080 tm_file="mips/svr3-4.h ${tm_file}"
2081 if [[ x$stabs = xyes ]]; then
2082 tm_file="${tm_file} dbx.h"
2085 xmake_file=mips/x-sysv
2086 if [[ x$gas = xyes ]]
2088 tmake_file=mips/t-svr3-gas
2090 tmake_file=mips/t-svr3
2091 extra_passes="mips-tfile mips-tdump"
2093 if [[ x$gnu_ld != xyes ]]
2098 mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0.
2099 tm_file=mips/mips-5.h
2100 if [[ x$stabs = xyes ]]; then
2101 tm_file="${tm_file} dbx.h"
2103 if [[ x$gas = xyes ]]
2105 tmake_file=mips/t-mips-gas
2107 extra_passes="mips-tfile mips-tdump"
2109 if [[ x$gnu_ld != xyes ]]
2117 tm_file=mips/ecoffl.h
2118 if [[ x$stabs = xyes ]]; then
2119 tm_file="${tm_file} dbx.h"
2121 tmake_file=mips/t-ecoff
2124 tm_file="gofast.h mips/ecoff.h"
2125 if [[ x$stabs = xyes ]]; then
2126 tm_file="${tm_file} dbx.h"
2128 tmake_file=mips/t-ecoff
2131 tm_file="mips/elfl.h libgloss.h"
2132 tmake_file=mips/t-ecoff
2135 tm_file="mips/elf.h libgloss.h"
2136 tmake_file=mips/t-ecoff
2139 tm_file="mips/elfl64.h libgloss.h"
2140 tmake_file=mips/t-ecoff
2142 mips64orionel-*-elf*)
2143 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2144 tmake_file=mips/t-ecoff
2147 tm_file="mips/elf64.h libgloss.h"
2148 tmake_file=mips/t-ecoff
2151 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2152 tmake_file=mips/t-ecoff
2154 mips64orion-*-rtems*)
2155 tm_file="mips/elforion.h mips/elfl64.h mips/rtems64.h"
2156 tmake_file="mips/t-ecoff t-rtems"
2159 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2160 tmake_file=mips/t-r3900
2163 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2164 tmake_file=mips/t-r3900
2166 mips-*-*) # Default MIPS RISC-OS 4.0.
2167 if [[ x$stabs = xyes ]]; then
2168 tm_file="${tm_file} dbx.h"
2170 if [[ x$gas = xyes ]]
2172 tmake_file=mips/t-mips-gas
2174 extra_passes="mips-tfile mips-tdump"
2176 if [[ x$gnu_ld != xyes ]]
2183 tm_file="mn10200/mn10200.h"
2184 if [[ x$stabs = xyes ]]
2186 tm_file="${tm_file} dbx.h"
2192 tm_file="mn10300/mn10300.h"
2193 if [[ x$stabs = xyes ]]
2195 tm_file="${tm_file} dbx.h"
2200 tm_file=ns32k/encore.h
2204 tm_file=ns32k/sequent.h
2208 tm_file=ns32k/tek6100.h
2212 tm_file=ns32k/tek6200.h
2215 # This has not been updated to GCC 2.
2218 # xmake_file=ns32k/x-genix
2219 # tm_file=ns32k/genix.h
2223 tm_file=ns32k/merlin.h
2227 tm_file=ns32k/pc532-mach.h
2231 tm_file=ns32k/pc532-min.h
2232 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2236 ns32k-pc532-netbsd*)
2237 tm_file=ns32k/netbsd.h
2238 # On NetBSD, the headers are already okay, except for math.h.
2239 fixincludes=fixinc.wrap
2243 tm_file="${tm_file} pdp11/2bsd.h"
2249 xmake_file=pyr/x-pyr
2256 xmake_file=romp/x-mach
2261 tm_file=rs6000/beos.h
2262 xm_file=rs6000/xm-beos.h
2263 tmake_file=rs6000/t-beos
2264 xmake_file=rs6000/x-beos
2266 powerpc-*-sysv* | powerpc-*-elf*)
2267 tm_file=rs6000/sysv4.h
2268 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2269 xm_defines="USG POSIX"
2270 extra_headers=ppc-asm.h
2271 if [[ x$gas = xyes ]]
2273 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2275 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2277 xmake_file=rs6000/x-sysv4
2280 tm_file=rs6000/eabiaix.h
2281 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2282 fixincludes=Makefile.in
2283 extra_headers=ppc-asm.h
2286 tm_file=rs6000/eabisim.h
2287 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2288 fixincludes=Makefile.in
2289 extra_headers=ppc-asm.h
2292 tm_file=rs6000/eabi.h
2293 if [[ x$gas = xyes ]]
2295 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2297 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2299 fixincludes=Makefile.in
2300 extra_headers=ppc-asm.h
2303 tm_file=rs6000/rtems.h
2304 if [[ x$gas = xyes ]]
2306 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2308 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2310 fixincludes=Makefile.in
2311 extra_headers=ppc-asm.h
2313 powerpc-*-linux-gnulibc1)
2314 tm_file=rs6000/linux.h
2315 xm_file=rs6000/xm-sysv4.h
2316 out_file=rs6000/rs6000.c
2317 if [[ x$gas = xyes ]]
2319 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2321 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2324 fixincludes=Makefile.in
2325 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2326 extra_headers=ppc-asm.h
2327 if [[ x$enable_threads = xyes ]]; then
2331 powerpc-*-linux-gnu*)
2332 tm_file=rs6000/linux.h
2333 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2334 xm_defines="USG ${xm_defines}"
2335 out_file=rs6000/rs6000.c
2336 if [[ x$gas = xyes ]]
2338 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2340 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2343 fixincludes=Makefile.in
2344 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2345 extra_headers=ppc-asm.h
2346 if [[ x$enable_threads = xyes ]]; then
2350 powerpc-wrs-vxworks*)
2352 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2353 xm_defines="USG POSIX"
2354 tm_file=rs6000/vxppc.h
2355 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2356 extra_headers=ppc-asm.h
2357 thread_file='vxworks'
2359 powerpcle-*-sysv* | powerpcle-*-elf*)
2360 tm_file=rs6000/sysv4le.h
2361 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2362 xm_defines="USG POSIX"
2363 if [[ x$gas = xyes ]]
2365 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2367 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2369 xmake_file=rs6000/x-sysv4
2370 extra_headers=ppc-asm.h
2372 powerpcle-*-eabisim*)
2373 tm_file=rs6000/eabilesim.h
2374 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2375 fixincludes=Makefile.in
2376 extra_headers=ppc-asm.h
2379 tm_file=rs6000/eabile.h
2380 if [[ x$gas = xyes ]]
2382 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2384 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2386 fixincludes=Makefile.in
2387 extra_headers=ppc-asm.h
2389 powerpcle-*-winnt* )
2390 tm_file=rs6000/win-nt.h
2391 tmake_file=rs6000/t-winnt
2393 fixincludes=Makefile.in
2394 if [[ x$enable_threads = xyes ]]; then
2397 extra_headers=ppc-asm.h
2399 powerpcle-*-pe | powerpcle-*-cygwin32)
2400 tm_file=rs6000/cygwin32.h
2401 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2402 tmake_file=rs6000/t-winnt
2403 xmake_file=rs6000/x-cygwin32
2405 fixincludes=Makefile.in
2406 if [[ x$enable_threads = xyes ]]; then
2410 extra_headers=ppc-asm.h
2412 powerpcle-*-solaris2*)
2413 tm_file=rs6000/sol2.h
2414 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2415 xm_defines="USG POSIX"
2416 if [[ x$gas = xyes ]]
2418 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2420 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2422 xmake_file=rs6000/x-sysv4
2424 *-*-solaris2.[[0-4]])
2425 fixincludes=fixinc.svr4;;
2427 fixincludes=fixinc.wrap;;
2429 extra_headers=ppc-asm.h
2431 rs6000-ibm-aix3.[[01]]*)
2432 tm_file=rs6000/aix31.h
2433 xmake_file=rs6000/x-aix31
2436 rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*)
2437 tm_file=rs6000/aix3newas.h
2438 if [[ x$host != x$target ]]
2440 tmake_file=rs6000/t-xnewas
2442 tmake_file=rs6000/t-newas
2446 rs6000-ibm-aix[[456789]].* | powerpc-ibm-aix[[456789]].*)
2447 tm_file=rs6000/aix41.h
2448 if [[ x$host != x$target ]]
2450 tmake_file=rs6000/t-xnewas
2452 tmake_file=rs6000/t-newas
2454 xmake_file=rs6000/x-aix31
2464 tm_file=rs6000/mach.h
2465 xm_file="${xm_file} rs6000/xm-mach.h"
2466 xmake_file=rs6000/x-mach
2470 tm_file=rs6000/lynx.h
2471 xm_file=rs6000/xm-lynx.h
2472 tmake_file=rs6000/t-rs6000
2473 xmake_file=rs6000/x-lynx
2481 tmake_file="sh/t-sh t-rtems"
2490 xm_file="xm-alloca.h ${xm_file}"
2493 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2494 tm_file=sparc/vxsparc.h
2495 tmake_file=sparc/t-vxsparc
2497 thread_file='vxworks'
2500 tmake_file=sparc/t-sparcbare
2501 tm_file="sparc/aout.h libgloss.h"
2504 tm_file=sparc/netbsd.h
2505 # On NetBSD, the headers are already okay, except for math.h.
2506 fixincludes=fixinc.wrap
2514 tmake_file=sparc/t-elf
2515 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2519 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2520 xm_file="${xm_file} sparc/xm-linux.h"
2521 tm_file=sparc/linux-aout.h
2523 fixincludes=Makefile.in #On Linux, the headers are ok already.
2526 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2527 xm_file="${xm_file} sparc/xm-linux.h"
2529 tm_file=sparc/linux.h
2530 tmake_file="t-linux t-linux-gnulibc1"
2531 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2532 fixincludes=Makefile.in #On Linux, the headers are ok already.
2535 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2536 xm_file="${xm_file} sparc/xm-linux.h"
2538 tm_file=sparc/linux.h
2539 tmake_file="t-linux"
2540 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2541 fixincludes=Makefile.in #On Linux, the headers are ok already.
2543 if [[ x$enable_threads = xyes ]]; then
2548 if [[ x$gas = xyes ]]
2550 tm_file=sparc/lynx.h
2552 tm_file=sparc/lynx-ng.h
2554 xm_file=sparc/xm-lynx.h
2555 tmake_file=sparc/t-sunos41
2559 tmake_file="sparc/t-sparcbare t-rtems"
2560 tm_file=sparc/rtems.h
2563 if [[ x$gnu_ld = xyes ]]
2565 tm_file=sparc/sol2.h
2567 tm_file=sparc/sol2-sld.h
2569 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2570 xm_defines="USG POSIX"
2571 tmake_file=sparc/t-sol2
2572 xmake_file=sparc/x-sysv4
2573 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2575 *-*-solaris2.[[0-4]])
2576 fixincludes=fixinc.svr4;;
2578 fixincludes=fixinc.wrap;;
2581 if [[ x${enable_threads} = x ]]; then
2582 enable_threads=$have_pthread_h
2583 if [[ x${enable_threads} = x ]]; then
2584 enable_threads=$have_thread_h
2587 if [[ x${enable_threads} = xyes ]]; then
2588 if [[ x${have_pthread_h} = xyes ]]; then
2591 thread_file='solaris'
2596 tm_file=sparc/sunos4.h
2597 tmake_file=sparc/t-sunos40
2601 tm_file=sparc/sunos4.h
2602 tmake_file=sparc/t-sunos41
2604 if [[ x$gas = xyes ]]; then
2605 tm_file="${tm_file} sparc/sun4gas.h"
2609 tm_file=sparc/sun4o3.h
2613 tm_file=sparc/sysv4.h
2614 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2615 xm_defines="USG POSIX"
2617 xmake_file=sparc/x-sysv4
2618 extra_parts="crtbegin.o crtend.o"
2621 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2622 xm_defines="USG POSIX"
2623 tm_file=sparc/vxsim.h
2624 tmake_file=sparc/t-vxsparc
2625 xmake_file=sparc/x-sysv4
2628 tm_file="sparc/splet.h libgloss.h"
2629 tmake_file=sparc/t-splet
2632 tm_file="sparc/litecoff.h libgloss.h"
2633 tmake_file=sparc/t-sparclite
2636 tm_file="sparc/lite.h aoutos.h libgloss.h"
2637 tmake_file=sparc/t-sparclite
2640 tmake_file=sparc/t-sp64
2641 tm_file=sparc/sp64-aout.h
2644 tmake_file=sparc/t-sp64
2645 tm_file=sparc/sp64-elf.h
2646 extra_parts="crtbegin.o crtend.o"
2648 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2649 tmake_file=sparc/t-sp64
2650 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2651 tm_file=sparc/linux64.h
2653 fixincludes=Makefile.in # The headers are ok already.
2656 # This hasn't been upgraded to GCC 2.
2657 # tahoe-harris-*) # Harris tahoe, using COFF.
2658 # tm_file=tahoe/harris.h
2660 # tahoe-*-bsd*) # tahoe running BSD
2662 thumb-*-coff* | thumbel-*-coff*)
2664 out_file=arm/thumb.c
2665 xm_file=arm/xm-thumb.h
2666 md_file=arm/thumb.md
2667 tmake_file=arm/t-thumb
2669 # This hasn't been upgraded to GCC 2.
2676 tm_file="v850/v850.h"
2677 xm_file="v850/xm-v850.h"
2678 tmake_file=v850/t-v850
2679 if [[ x$stabs = xyes ]]
2681 tm_file="${tm_file} dbx.h"
2685 vax-*-bsd*) # vaxen running BSD
2689 vax-*-sysv*) # vaxen running system V
2690 tm_file="${tm_file} vax/vaxv.h"
2695 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2696 # On NetBSD, the headers are already okay, except for math.h.
2697 fixincludes=fixinc.wrap
2701 vax-*-ultrix*) # vaxen running ultrix
2702 tm_file="${tm_file} vax/ultrix.h"
2706 vax-*-vms*) # vaxen running VMS
2707 xm_file=vax/xm-vms.h
2711 vax-*-*) # vax default entry
2715 xm_file="${xm_file} xm-svr3"
2719 echo "Configuration $machine not supported" 1>&2
2726 ;; # Existing GNU/Linux systems do not use the GNU setup.
2728 # On the GNU system, the setup is just about the same on
2729 # each different CPU. The specific machines that GNU
2730 # supports are matched above and just set $cpu_type.
2731 xm_file="xm-gnu.h ${xm_file}"
2732 tm_file=${cpu_type}/gnu.h
2733 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2734 # GNU always uses ELF.
2736 # GNU tools are the only tools.
2739 # On GNU, the headers are already okay.
2740 fixincludes=Makefile.in
2741 xmake_file=x-linux # These details are the same as Linux.
2742 tmake_file=t-gnu # These are not.
2745 fixincludes=fixinc.svr4
2746 xmake_try_sysv=x-sysv
2747 install_headers_dir=install-headers-cpio
2750 install_headers_dir=install-headers-cpio
2754 # Distinguish i[34567]86
2755 # Also, do not run mips-tfile on MIPS if using gas.
2756 # Process --with-cpu= for PowerPC/rs6000
2757 target_cpu_default2=
2760 target_cpu_default2=1
2763 target_cpu_default2=2
2765 i686-*-* | i786-*-*)
2766 target_cpu_default2=3
2771 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
2774 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2777 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2780 target_cpu_default2="MASK_CPU_EV5"
2784 if [[ x$gas = xyes ]]
2786 if [[ "$target_cpu_default2" = "" ]]
2788 target_cpu_default2="MASK_GAS"
2790 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2795 case "x$with_cpu" in
2798 target_cpu_default2="TARGET_CPU_generic"
2801 # Distinguish cores, and major variants
2802 # arm7m doesn't exist, but D & I don't affect code
2803 xarm[23678] | xarm250 | xarm[67][01]0 \
2804 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
2805 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2806 | xstrongarm | xstrongarm110)
2807 target_cpu_default2="TARGET_CPU_$with_cpu"
2811 echo "--with-cpu must be passed a value" 1>&2
2816 if [[ x$pass2done = xyes ]]
2818 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2825 mips*-*-ecoff* | mips*-*-elf*)
2826 if [[ x$gas = xyes ]]
2828 if [[ x$gnu_ld = xyes ]]
2830 target_cpu_default2=20
2832 target_cpu_default2=16
2837 if [[ x$gas = xyes ]]
2839 target_cpu_default2=16
2842 powerpc*-*-* | rs6000-*-*)
2843 case "x$with_cpu" in
2847 xcommon | xpower | xpower2 | xpowerpc | xrios \
2848 | xrios1 | xrios2 | xrsc | xrsc1 \
2849 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2850 | x403 | x505 | x801 | x821 | x823 | x860)
2851 target_cpu_default2="\"$with_cpu\""
2855 echo "--with-cpu must be passed a value" 1>&2
2860 if [[ x$pass2done = xyes ]]
2862 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2869 case ".$with_cpu" in
2871 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2873 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
2874 target_cpu_default2="TARGET_CPU_$with_cpu"
2877 if [[ x$pass2done = xyes ]]
2879 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2887 if [[ "$target_cpu_default2" != "" ]]
2889 if [[ "$target_cpu_default" != "" ]]
2891 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2893 target_cpu_default=$target_cpu_default2
2897 # No need for collect2 if we have the GNU linker.
2904 # Save data on machine being used to compile GCC in build_xm_file.
2905 # Save data on host machine in vars host_xm_file and host_xmake_file.
2906 if [[ x$pass1done = x ]]
2908 if [[ x"$xm_file" = x ]]
2909 then build_xm_file=$cpu_type/xm-$cpu_type.h
2910 else build_xm_file=$xm_file
2912 build_xm_defines=$xm_defines
2913 build_install_headers_dir=$install_headers_dir
2914 build_exeext=$exeext
2917 if [[ x$pass2done = x ]]
2919 if [[ x"$xm_file" = x ]]
2920 then host_xm_file=$cpu_type/xm-$cpu_type.h
2921 else host_xm_file=$xm_file
2923 host_xm_defines=$xm_defines
2924 if [[ x"$xmake_file" = x ]]
2925 then xmake_file=$cpu_type/x-$cpu_type
2927 host_xmake_file="$xmake_file"
2928 host_truncate_target=$truncate_target
2929 host_extra_gcc_objs=$extra_gcc_objs
2930 host_extra_objs=$extra_host_objs
2937 extra_objs="${host_extra_objs} ${extra_objs}"
2939 # Default the target-machine variables that were not explicitly set.
2940 if [[ x"$tm_file" = x ]]
2941 then tm_file=$cpu_type/$cpu_type.h; fi
2943 if [[ x$extra_headers = x ]]
2944 then extra_headers=; fi
2946 if [[ x"$xm_file" = x ]]
2947 then xm_file=$cpu_type/xm-$cpu_type.h; fi
2949 if [[ x$md_file = x ]]
2950 then md_file=$cpu_type/$cpu_type.md; fi
2952 if [[ x$out_file = x ]]
2953 then out_file=$cpu_type/$cpu_type.c; fi
2955 if [[ x"$tmake_file" = x ]]
2956 then tmake_file=$cpu_type/t-$cpu_type
2959 if [[ x$float_format = x ]]
2960 then float_format=i64
2963 if [[ x$enable_haifa = x ]]
2966 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-* | m32r*-*)
2971 # Say what files are being used for the output code and MD file.
2972 echo "Using \`$srcdir/config/$out_file' to output insns."
2973 echo "Using \`$srcdir/config/$md_file' as machine description file."
2976 for f in $tm_file; do
2979 if [[ $count = ax ]]; then
2980 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
2982 echo "Using the following target machine macro files:"
2983 for f in $tm_file; do
2984 echo " $srcdir/config/$f"
2989 for f in $host_xm_file; do
2992 if [[ $count = ax ]]; then
2993 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
2995 echo "Using the following host machine macro files:"
2996 for f in $host_xm_file; do
2997 echo " $srcdir/config/$f"
3001 if [[ "$host_xm_file" != "$build_xm_file" ]]; then
3003 for f in $build_xm_file; do
3006 if [[ $count = ax ]]; then
3007 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3009 echo "Using the following build machine macro files:"
3010 for f in $build_xm_file; do
3011 echo " $srcdir/config/$f"
3016 if [[ x$thread_file = x ]]; then
3017 if [[ x$target_thread_file != x ]]; then
3018 thread_file=$target_thread_file
3020 thread_file='single'
3024 # Set up the header files.
3025 # $links is the list of header files to create.
3026 # $vars is the list of shell variables with file names to include.
3027 # auto-host.h is the file containing items generated by autoconf and is
3028 # the first file included by config.h.
3030 host_xm_file="auto-host.h ${host_xm_file}"
3032 # If host=build, it is correct to have hconfig include auto-host.h
3033 # as well. If host!=build, we are in error and need to do more
3034 # work to find out the build config parameters.
3035 if [[ x$host = x$build ]]
3037 build_xm_file="auto-host.h ${build_xm_file}"
3039 # We create a subdir, then run autoconf in the subdir.
3040 # To prevent recursion we set host and build for the new
3041 # invocation of configure to the build for this invocation
3048 /*) realsrcdir=${srcdir};;
3049 *) realsrcdir=../${srcdir};;
3051 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3052 --target=$target --host=$build --build=$build
3054 # We just finished tests for the build machine, so rename
3055 # the file auto-build.h in the gcc directory.
3056 mv auto-host.h ../auto-build.h
3059 build_xm_file="auto-build.h ${build_xm_file}"
3062 vars="host_xm_file tm_file xm_file build_xm_file"
3063 links="config.h tm.h tconfig.h hconfig.h"
3064 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3067 if [[ -f config.status ]]; then mv -f config.status config.bak; fi
3070 while [[ -n "$vars" ]]
3072 set $vars; var=$1; shift; vars=$*
3073 set $links; link=$1; shift; links=$*
3074 set $defines; define=$1; shift; defines=$*
3078 # Define TARGET_CPU_DEFAULT if the system wants one.
3079 # This substitutes for lots of *.h files.
3080 if [[ "$target_cpu_default" != "" -a $link = tm.h ]]
3082 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3085 for file in `eval echo '$'$var`; do
3086 echo "#include \"$file\"" >>$link
3089 for def in `eval echo '$'$define`; do
3090 echo "#ifndef $def" >>$link
3091 echo "#define $def" >>$link
3092 echo "#endif" >>$link
3096 # Truncate the target if necessary
3097 if [[ x$host_truncate_target != x ]]; then
3098 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3101 # Get the version number from the toplevel
3102 version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
3104 # Get an absolute path to the GCC top-level source directory
3110 # Conditionalize the makefile for this host machine.
3111 # Make-host contains the concatenation of all host makefile fragments
3112 # [there can be more than one]. This file is built by configure.frag.
3113 host_overrides=Make-host
3114 dep_host_xmake_file=
3115 for f in .. ${host_xmake_file}
3117 if [[ -f ${srcdir}/config/$f ]]
3119 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3123 # Conditionalize the makefile for this target machine.
3124 # Make-target contains the concatenation of all host makefile fragments
3125 # [there can be more than one]. This file is built by configure.frag.
3126 target_overrides=Make-target
3128 for f in .. ${tmake_file}
3130 if [[ -f ${srcdir}/config/$f ]]
3132 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3136 # If the host doesn't support symlinks, modify CC in
3137 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3138 # Otherwise, we can use "CC=$(CC)".
3140 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3142 cc_set_by_configure="\$(CC)"
3143 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3146 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3148 symbolic_link="cp -p"
3152 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3153 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3157 out_object_file=`basename $out_file .c`.o
3160 for f in $tm_file; do
3161 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3165 for f in $host_xm_file; do
3166 if test $f != "auto-host.h"; then
3167 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3169 host_xm_file_list="${host_xm_file_list} auto-host.h"
3174 for f in $build_xm_file; do
3175 if test $f != "auto-build.h"; then
3176 if test $f != "auto-host.h"; then
3177 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3179 build_xm_file_list="${build_xm_file_list} auto-host.h"
3182 build_xm_file_list="${build_xm_file_list} auto-build.h"
3186 # Define macro CROSS_COMPILE in compilation
3187 # if this is a cross-compiler.
3188 # Also use all.cross instead of all.internal
3189 # and add cross-make to Makefile.
3190 cross_overrides="/dev/null"
3191 if [[ x$host != x$target ]]
3193 cross_defines="CROSS=-DCROSS_COMPILE"
3194 cross_overrides="${topdir}/cross-make"
3197 # When building gcc with a cross-compiler, we need to fix a few things.
3198 # This must come after cross-make as we want all.build to override
3200 build_overrides="/dev/null"
3201 if [[ x$build != x$host ]]
3203 build_overrides="${topdir}/build-make"
3206 # Expand extra_headers to include complete path.
3207 # This substitutes for lots of t-* files.
3209 if [[ "x$extra_headers" = x ]]
3212 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3213 for file in $extra_headers;
3215 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3219 # Add a definition of USE_COLLECT2 if system wants one.
3220 # Also tell toplev.c what to do.
3221 # This substitutes for lots of t-* files.
3222 if [[ x$use_collect2 = x ]]
3227 will_use_collect2="collect2"
3228 maybe_use_collect2="-DUSE_COLLECT2"
3232 # Set MD_DEPS if the real md file is in md.pre-cpp.
3233 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3234 # for line oriented comments, so we must always use a GNU cpp. If
3235 # building gcc with a cross compiler, use the cross compiler just
3236 # built. Otherwise, we can use the cpp just built.
3238 if [[ "x$md_cppflags" = x ]]
3240 md_file_sub=$srcdir/config/$md_file
3245 # If we have gas in the build tree, make a link to it.
3246 if [[ -f ../gas/Makefile ]]; then
3247 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3250 # If we have ld in the build tree, make a link to it.
3251 if [[ -f ../ld/Makefile ]]; then
3252 # if [[ x$use_collect2 = x ]]; then
3253 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3255 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3259 # Figure out what assembler alignment features are present.
3260 AC_MSG_CHECKING(assembler alignment features)
3262 gcc_cv_as_alignment_features=
3263 if [[ -x as$host_exeext ]]; then
3264 # Build using assembler in the current directory.
3265 gcc_cv_as=./as$host_exeext
3266 elif [[ -f $srcdir/../gas/configure.in ]]; then
3267 # Single tree build which includes gas.
3268 for f in $srcdir/../gas/configure.in $srcdir/../gas/Makefile.in
3270 gcc_cv_gas_version=`grep '^VERSION=[[0-9]]*\.[[0-9]]*' $f`
3271 if [[ x$gcc_cv_gas_version != x ]]; then
3275 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([[0-9]]*\)"`
3276 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[[0-9]]*\.\([[0-9]]*\)"`
3277 # Gas version 2.8 and later support specifying the maximum
3278 # bytes to skip when using .p2align.
3279 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
3280 gcc_cv_as_alignment_features=".p2align including maximum skip"
3281 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3283 elif [[ x$host = x$target ]]; then
3285 gcc_cv_as=as$host_exeext
3287 if [[ x$gcc_cv_as != x ]]; then
3288 # Check if specifying the maximum bytes to skip when
3289 # using .p2align is supported.
3290 echo ".p2align 4,,7" > conftest.s
3291 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3292 gcc_cv_as_alignment_features=".p2align including maximum skip"
3293 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3295 rm -f conftest.s conftest.o
3297 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3299 # Figure out what language subdirectories are present.
3301 for lang in ${srcdir}/*/config-lang.in ..
3305 # The odd quoting in the next line works around
3306 # an apparent bug in bash 1.12 on linux.
3307 ${srcdir}/[[*]]/config-lang.in) ;;
3308 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
3312 # Make gthr-default.h if we have a thread file.
3314 if [[ $thread_file != single ]]; then
3315 rm -f gthr-default.h
3316 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3317 gthread_flags=-DHAVE_GTHR_DEFAULT
3319 AC_SUBST(gthread_flags)
3321 # Make empty files to contain the specs and options for each language.
3322 # Then add #include lines to for a compiler that has specs and/or options.
3326 rm -f specs.h options.h
3327 touch specs.h options.h
3328 for subdir in . $subdirs
3330 if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
3331 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3332 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3334 if [[ -f $srcdir/$subdir/lang-options.h ]]; then
3335 echo "#include \"$subdir/lang-options.h\"" >>options.h
3336 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3340 # These (without "all_") are set in each config-lang.in.
3341 # `language' must be a single word so is spelled singularly.
3347 all_outputs=Makefile
3348 # List of language makefile fragments.
3353 # Add the language fragments.
3354 # Languages are added via two mechanisms. Some information must be
3355 # recorded in makefile variables, these are defined in config-lang.in.
3356 # We accumulate them and plug them into the main Makefile.
3357 # The other mechanism is a set of hooks for each of the main targets
3358 # like `clean', `install', etc.
3360 language_fragments="Make-lang"
3361 language_hooks="Make-hooks"
3364 for s in .. $subdirs
3376 . ${srcdir}/$s/config-lang.in
3377 if [[ "x$language" = x ]]
3379 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3382 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3383 all_languages="$all_languages $language"
3384 if [[ "x$boot_language" = xyes ]]
3386 all_boot_languages="$all_boot_languages $language"
3388 all_compilers="$all_compilers $compilers"
3389 all_stagestuff="$all_stagestuff $stagestuff"
3390 all_diff_excludes="$all_diff_excludes $diff_excludes"
3391 all_headers="$all_headers $headers"
3392 all_outputs="$all_outputs $outputs"
3393 if [[ x$outputs = x ]]
3395 oldstyle_subdirs="$oldstyle_subdirs $s"
3397 all_lib2funcs="$all_lib2funcs $lib2funcs"
3401 # Since we can't use `::' targets, we link each language in
3402 # with a set of hooks, reached indirectly via lang.${target}.
3406 target_list="all.build all.cross start.encap rest.encap \
3408 install-normal install-common install-info install-man \
3410 mostlyclean clean distclean extraclean maintainer-clean \
3411 stage1 stage2 stage3 stage4"
3412 for t in $target_list
3415 for l in .. $all_languages
3417 if [[ $l != ".." ]]; then
3421 echo "lang.$t: $x" >> Make-hooks
3424 # If we're not building in srcdir, create .gdbinit.
3426 if [[ ! -f Makefile.in ]]; then
3427 echo "dir ." > .gdbinit
3428 echo "dir ${srcdir}" >> .gdbinit
3429 if [[ x$gdb_needs_out_file_path = xyes ]]
3431 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3433 if [[ "x$subdirs" != x ]]; then
3436 echo "dir ${srcdir}/$s" >> .gdbinit
3439 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3442 # Define variables host_canonical and build_canonical
3443 # because some Cygnus local changes in the Makefile depend on them.
3444 build_canonical=${build}
3445 host_canonical=${host}
3447 if [[ "${host}" != "${target}" ]] ; then
3448 target_subdir=${target}/
3450 AC_SUBST(build_canonical)
3451 AC_SUBST(host_canonical)
3452 AC_SUBST(target_subdir)
3454 # If this is using newlib, then define inhibit_libc in
3455 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3456 # libgcc.a, but that's OK because newib should have its own version of
3459 if [[ x$with_newlib = xyes ]]; then
3460 inhibit_libc=-Dinhibit_libc
3462 AC_SUBST(inhibit_libc)
3464 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3467 if [[ x$enable_haifa = xyes ]]; then
3468 echo "Using the Haifa scheduler."
3470 sched_cflags=-DHAIFA
3472 AC_SUBST(sched_prefix)
3473 AC_SUBST(sched_cflags)
3474 if [[ x$enable_haifa != x ]]; then
3475 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3476 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3477 if [[ -f $x ]]; then
3484 # Nothing to do for FLOAT_H, float_format already handled.
3488 # Process the language and host/target makefile fragments.
3489 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3491 # Substitute configuration variables
3493 AC_SUBST(all_languages)
3494 AC_SUBST(all_boot_languages)
3495 AC_SUBST(all_compilers)
3496 AC_SUBST(all_lang_makefiles)
3497 AC_SUBST(all_stagestuff)
3498 AC_SUBST(all_diff_excludes)
3499 AC_SUBST(all_lib2funcs)
3500 AC_SUBST(all_headers)
3501 AC_SUBST(extra_passes)
3502 AC_SUBST(extra_programs)
3503 AC_SUBST(extra_parts)
3504 AC_SUBST(extra_c_objs)
3505 AC_SUBST(extra_cxx_objs)
3506 AC_SUBST(extra_c_flags)
3507 AC_SUBST(extra_objs)
3508 AC_SUBST(host_extra_gcc_objs)
3509 AC_SUBST(extra_headers_list)
3510 AC_SUBST(dep_host_xmake_file)
3511 AC_SUBST(dep_tmake_file)
3513 AC_SUBST(out_object_file)
3515 AC_SUBST(tm_file_list)
3516 AC_SUBST(build_xm_file_list)
3517 AC_SUBST(host_xm_file_list)
3518 AC_SUBST(lang_specs_files)
3519 AC_SUBST(lang_options_files)
3520 AC_SUBST(thread_file)
3522 AC_SUBST(local_prefix)
3523 AC_SUBST(gxx_include_dir)
3524 AC_SUBST(fixincludes)
3525 AC_SUBST(build_install_headers_dir)
3526 AC_SUBST(build_exeext)
3527 AC_SUBST(host_exeext)
3528 AC_SUBST(float_format)
3529 AC_SUBST(will_use_collect2)
3530 AC_SUBST(maybe_use_collect2)
3531 AC_SUBST(cc_set_by_configure)
3532 AC_SUBST(stage_prefix_set_by_configure)
3534 AC_SUBST(symbolic_link)
3536 AC_SUBST_FILE(target_overrides)
3537 AC_SUBST_FILE(host_overrides)
3538 AC_SUBST(cross_defines)
3539 AC_SUBST_FILE(cross_overrides)
3540 AC_SUBST_FILE(build_overrides)
3541 AC_SUBST_FILE(language_fragments)
3542 AC_SUBST_FILE(language_hooks)
3544 # Echo that links are built
3545 if [[ x$host = x$target ]]
3553 if [[ x$host != x$build ]]
3555 str3=" on a $build system"
3558 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3563 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3565 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3567 echo " ${str2}${str3}." 1>&2
3570 # Truncate the target if necessary
3571 if [[ x$host_truncate_target != x ]]; then
3572 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3575 # Configure the subdirectories
3576 # AC_CONFIG_SUBDIRS($subdirs)
3578 # Create the Makefile
3579 # and configure language subdirectories
3580 AC_OUTPUT($all_outputs,
3582 . $srcdir/configure.lang
3583 case x$CONFIG_HEADERS in
3584 xauto-host.h:config.in)
3587 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3588 # bootstrapping and the installation procedure can still use
3589 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3590 # FLAGS_TO_PASS has been modified to solve the problem there.
3591 # This is virtually a duplicate of what happens in configure.lang; we do
3592 # an extra check to make sure this only happens if ln -s can be used.
3593 if [[ "$symbolic_link" = "ln -s" ]]; then
3594 for d in .. ${subdirs} ; do
3595 if [[ $d != .. ]]; then
3598 for t in stage1 stage2 stage3 stage4 include
3601 $symbolic_link ../$t $t 2>/dev/null
3612 target_alias='${target_alias}'
3614 subdirs='${subdirs}'
3615 oldstyle_subdirs='${oldstyle_subdirs}'
3616 symbolic_link='${symbolic_link}'
3617 program_transform_set='${program_transform_set}'
3618 program_transform_name='${program_transform_name}'
3619 dep_host_xmake_file='${dep_host_xmake_file}'
3620 host_xmake_file='${host_xmake_file}'
3621 dep_tmake_file='${dep_tmake_file}'
3622 tmake_file='${tmake_file}'
3623 thread_file='${thread_file}'
3624 version='${version}'
3625 local_prefix='${local_prefix}'
3626 build_install_headers_dir='${build_install_headers_dir}'
3627 build_exeext='${build_exeext}'
3628 host_exeext='${host_exeext}'
3629 out_file='${out_file}'
3630 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3631 SET_MAKE='${SET_MAKE}'
3632 target_list='${target_list}'
3633 target_overrides='${target_overrides}'
3634 host_overrides='${host_overrides}'
3635 cross_defines='${cross_defines}'
3636 cross_overrides='${cross_overrides}'
3637 build_overrides='${build_overrides}'