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-aix4.[[12]].* | powerpc-ibm-aix4.[[12]].*)
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-aix41
2457 rs6000-ibm-aix4.[[3456789]].* | powerpc-ibm-aix4.[[3456789]].*)
2458 tm_file=rs6000/aix43.h
2459 if [[ x$host != x$target ]]
2461 tmake_file=rs6000/t-xaix43
2463 tmake_file=rs6000/t-aix43
2465 xmake_file=rs6000/x-aix43
2468 rs6000-ibm-aix[[56789]].* | powerpc-ibm-aix[[56789]].*)
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
2486 tm_file=rs6000/mach.h
2487 xm_file="${xm_file} rs6000/xm-mach.h"
2488 xmake_file=rs6000/x-mach
2492 tm_file=rs6000/lynx.h
2493 xm_file=rs6000/xm-lynx.h
2494 tmake_file=rs6000/t-rs6000
2495 xmake_file=rs6000/x-lynx
2503 tmake_file="sh/t-sh t-rtems"
2512 xm_file="xm-alloca.h ${xm_file}"
2515 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2516 tm_file=sparc/vxsparc.h
2517 tmake_file=sparc/t-vxsparc
2519 thread_file='vxworks'
2522 tmake_file=sparc/t-sparcbare
2523 tm_file="sparc/aout.h libgloss.h"
2526 tm_file=sparc/netbsd.h
2527 # On NetBSD, the headers are already okay, except for math.h.
2528 fixincludes=fixinc.wrap
2536 tmake_file=sparc/t-elf
2537 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2541 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2542 xm_file="${xm_file} sparc/xm-linux.h"
2543 tm_file=sparc/linux-aout.h
2545 fixincludes=Makefile.in #On Linux, the headers are ok already.
2548 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2549 xm_file="${xm_file} sparc/xm-linux.h"
2551 tm_file=sparc/linux.h
2552 tmake_file="t-linux t-linux-gnulibc1"
2553 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2554 fixincludes=Makefile.in #On Linux, the headers are ok already.
2557 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2558 xm_file="${xm_file} sparc/xm-linux.h"
2560 tm_file=sparc/linux.h
2561 tmake_file="t-linux"
2562 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2563 fixincludes=Makefile.in #On Linux, the headers are ok already.
2565 if [[ x$enable_threads = xyes ]]; then
2570 if [[ x$gas = xyes ]]
2572 tm_file=sparc/lynx.h
2574 tm_file=sparc/lynx-ng.h
2576 xm_file=sparc/xm-lynx.h
2577 tmake_file=sparc/t-sunos41
2581 tmake_file="sparc/t-sparcbare t-rtems"
2582 tm_file=sparc/rtems.h
2585 if [[ x$gnu_ld = xyes ]]
2587 tm_file=sparc/sol2.h
2589 tm_file=sparc/sol2-sld.h
2591 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2592 xm_defines="USG POSIX"
2593 tmake_file=sparc/t-sol2
2594 xmake_file=sparc/x-sysv4
2595 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2597 *-*-solaris2.[[0-4]])
2598 fixincludes=fixinc.svr4;;
2600 fixincludes=fixinc.wrap;;
2603 if [[ x${enable_threads} = x ]]; then
2604 enable_threads=$have_pthread_h
2605 if [[ x${enable_threads} = x ]]; then
2606 enable_threads=$have_thread_h
2609 if [[ x${enable_threads} = xyes ]]; then
2610 if [[ x${have_pthread_h} = xyes ]]; then
2613 thread_file='solaris'
2618 tm_file=sparc/sunos4.h
2619 tmake_file=sparc/t-sunos40
2623 tm_file=sparc/sunos4.h
2624 tmake_file=sparc/t-sunos41
2626 if [[ x$gas = xyes ]]; then
2627 tm_file="${tm_file} sparc/sun4gas.h"
2631 tm_file=sparc/sun4o3.h
2635 tm_file=sparc/sysv4.h
2636 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2637 xm_defines="USG POSIX"
2639 xmake_file=sparc/x-sysv4
2640 extra_parts="crtbegin.o crtend.o"
2643 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2644 xm_defines="USG POSIX"
2645 tm_file=sparc/vxsim.h
2646 tmake_file=sparc/t-vxsparc
2647 xmake_file=sparc/x-sysv4
2650 tm_file="sparc/splet.h libgloss.h"
2651 tmake_file=sparc/t-splet
2654 tm_file="sparc/litecoff.h libgloss.h"
2655 tmake_file=sparc/t-sparclite
2658 tm_file="sparc/lite.h aoutos.h libgloss.h"
2659 tmake_file=sparc/t-sparclite
2662 tmake_file=sparc/t-sp64
2663 tm_file=sparc/sp64-aout.h
2666 tmake_file=sparc/t-sp64
2667 tm_file=sparc/sp64-elf.h
2668 extra_parts="crtbegin.o crtend.o"
2670 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2671 tmake_file=sparc/t-sp64
2672 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2673 tm_file=sparc/linux64.h
2675 fixincludes=Makefile.in # The headers are ok already.
2678 # This hasn't been upgraded to GCC 2.
2679 # tahoe-harris-*) # Harris tahoe, using COFF.
2680 # tm_file=tahoe/harris.h
2682 # tahoe-*-bsd*) # tahoe running BSD
2684 thumb-*-coff* | thumbel-*-coff*)
2686 out_file=arm/thumb.c
2687 xm_file=arm/xm-thumb.h
2688 md_file=arm/thumb.md
2689 tmake_file=arm/t-thumb
2691 # This hasn't been upgraded to GCC 2.
2698 tm_file="v850/v850.h"
2699 xm_file="v850/xm-v850.h"
2700 tmake_file=v850/t-v850
2701 if [[ x$stabs = xyes ]]
2703 tm_file="${tm_file} dbx.h"
2707 vax-*-bsd*) # vaxen running BSD
2711 vax-*-sysv*) # vaxen running system V
2712 tm_file="${tm_file} vax/vaxv.h"
2717 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2718 # On NetBSD, the headers are already okay, except for math.h.
2719 fixincludes=fixinc.wrap
2723 vax-*-ultrix*) # vaxen running ultrix
2724 tm_file="${tm_file} vax/ultrix.h"
2728 vax-*-vms*) # vaxen running VMS
2729 xm_file=vax/xm-vms.h
2733 vax-*-*) # vax default entry
2737 xm_file="${xm_file} xm-svr3"
2741 echo "Configuration $machine not supported" 1>&2
2748 ;; # Existing GNU/Linux systems do not use the GNU setup.
2750 # On the GNU system, the setup is just about the same on
2751 # each different CPU. The specific machines that GNU
2752 # supports are matched above and just set $cpu_type.
2753 xm_file="xm-gnu.h ${xm_file}"
2754 tm_file=${cpu_type}/gnu.h
2755 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2756 # GNU always uses ELF.
2758 # GNU tools are the only tools.
2761 # On GNU, the headers are already okay.
2762 fixincludes=Makefile.in
2763 xmake_file=x-linux # These details are the same as Linux.
2764 tmake_file=t-gnu # These are not.
2767 fixincludes=fixinc.svr4
2768 xmake_try_sysv=x-sysv
2769 install_headers_dir=install-headers-cpio
2772 install_headers_dir=install-headers-cpio
2776 # Distinguish i[34567]86
2777 # Also, do not run mips-tfile on MIPS if using gas.
2778 # Process --with-cpu= for PowerPC/rs6000
2779 target_cpu_default2=
2782 target_cpu_default2=1
2785 target_cpu_default2=2
2787 i686-*-* | i786-*-*)
2788 target_cpu_default2=3
2793 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
2796 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2799 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2802 target_cpu_default2="MASK_CPU_EV5"
2806 if [[ x$gas = xyes ]]
2808 if [[ "$target_cpu_default2" = "" ]]
2810 target_cpu_default2="MASK_GAS"
2812 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2817 case "x$with_cpu" in
2820 target_cpu_default2="TARGET_CPU_generic"
2823 # Distinguish cores, and major variants
2824 # arm7m doesn't exist, but D & I don't affect code
2825 xarm[23678] | xarm250 | xarm[67][01]0 \
2826 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
2827 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2828 | xstrongarm | xstrongarm110)
2829 target_cpu_default2="TARGET_CPU_$with_cpu"
2833 echo "--with-cpu must be passed a value" 1>&2
2838 if [[ x$pass2done = xyes ]]
2840 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2847 mips*-*-ecoff* | mips*-*-elf*)
2848 if [[ x$gas = xyes ]]
2850 if [[ x$gnu_ld = xyes ]]
2852 target_cpu_default2=20
2854 target_cpu_default2=16
2859 if [[ x$gas = xyes ]]
2861 target_cpu_default2=16
2864 powerpc*-*-* | rs6000-*-*)
2865 case "x$with_cpu" in
2869 xcommon | xpower | xpower2 | xpowerpc | xrios \
2870 | xrios1 | xrios2 | xrsc | xrsc1 \
2871 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2872 | x403 | x505 | x801 | x821 | x823 | x860)
2873 target_cpu_default2="\"$with_cpu\""
2877 echo "--with-cpu must be passed a value" 1>&2
2882 if [[ x$pass2done = xyes ]]
2884 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2891 case ".$with_cpu" in
2893 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2895 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
2896 target_cpu_default2="TARGET_CPU_$with_cpu"
2899 if [[ x$pass2done = xyes ]]
2901 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2909 if [[ "$target_cpu_default2" != "" ]]
2911 if [[ "$target_cpu_default" != "" ]]
2913 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2915 target_cpu_default=$target_cpu_default2
2919 # No need for collect2 if we have the GNU linker.
2926 # Save data on machine being used to compile GCC in build_xm_file.
2927 # Save data on host machine in vars host_xm_file and host_xmake_file.
2928 if [[ x$pass1done = x ]]
2930 if [[ x"$xm_file" = x ]]
2931 then build_xm_file=$cpu_type/xm-$cpu_type.h
2932 else build_xm_file=$xm_file
2934 build_xm_defines=$xm_defines
2935 build_install_headers_dir=$install_headers_dir
2936 build_exeext=$exeext
2939 if [[ x$pass2done = x ]]
2941 if [[ x"$xm_file" = x ]]
2942 then host_xm_file=$cpu_type/xm-$cpu_type.h
2943 else host_xm_file=$xm_file
2945 host_xm_defines=$xm_defines
2946 if [[ x"$xmake_file" = x ]]
2947 then xmake_file=$cpu_type/x-$cpu_type
2949 host_xmake_file="$xmake_file"
2950 host_truncate_target=$truncate_target
2951 host_extra_gcc_objs=$extra_gcc_objs
2952 host_extra_objs=$extra_host_objs
2959 extra_objs="${host_extra_objs} ${extra_objs}"
2961 # Default the target-machine variables that were not explicitly set.
2962 if [[ x"$tm_file" = x ]]
2963 then tm_file=$cpu_type/$cpu_type.h; fi
2965 if [[ x$extra_headers = x ]]
2966 then extra_headers=; fi
2968 if [[ x"$xm_file" = x ]]
2969 then xm_file=$cpu_type/xm-$cpu_type.h; fi
2971 if [[ x$md_file = x ]]
2972 then md_file=$cpu_type/$cpu_type.md; fi
2974 if [[ x$out_file = x ]]
2975 then out_file=$cpu_type/$cpu_type.c; fi
2977 if [[ x"$tmake_file" = x ]]
2978 then tmake_file=$cpu_type/t-$cpu_type
2981 if [[ x$float_format = x ]]
2982 then float_format=i64
2985 if [[ x$enable_haifa = x ]]
2988 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-* | m32r*-*)
2993 # Say what files are being used for the output code and MD file.
2994 echo "Using \`$srcdir/config/$out_file' to output insns."
2995 echo "Using \`$srcdir/config/$md_file' as machine description file."
2998 for f in $tm_file; do
3001 if [[ $count = ax ]]; then
3002 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3004 echo "Using the following target machine macro files:"
3005 for f in $tm_file; do
3006 echo " $srcdir/config/$f"
3011 for f in $host_xm_file; do
3014 if [[ $count = ax ]]; then
3015 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3017 echo "Using the following host machine macro files:"
3018 for f in $host_xm_file; do
3019 echo " $srcdir/config/$f"
3023 if [[ "$host_xm_file" != "$build_xm_file" ]]; then
3025 for f in $build_xm_file; do
3028 if [[ $count = ax ]]; then
3029 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3031 echo "Using the following build machine macro files:"
3032 for f in $build_xm_file; do
3033 echo " $srcdir/config/$f"
3038 if [[ x$thread_file = x ]]; then
3039 if [[ x$target_thread_file != x ]]; then
3040 thread_file=$target_thread_file
3042 thread_file='single'
3046 # Set up the header files.
3047 # $links is the list of header files to create.
3048 # $vars is the list of shell variables with file names to include.
3049 # auto-host.h is the file containing items generated by autoconf and is
3050 # the first file included by config.h.
3052 host_xm_file="auto-host.h ${host_xm_file}"
3054 # If host=build, it is correct to have hconfig include auto-host.h
3055 # as well. If host!=build, we are in error and need to do more
3056 # work to find out the build config parameters.
3057 if [[ x$host = x$build ]]
3059 build_xm_file="auto-host.h ${build_xm_file}"
3061 # We create a subdir, then run autoconf in the subdir.
3062 # To prevent recursion we set host and build for the new
3063 # invocation of configure to the build for this invocation
3070 /*) realsrcdir=${srcdir};;
3071 *) realsrcdir=../${srcdir};;
3073 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3074 --target=$target --host=$build --build=$build
3076 # We just finished tests for the build machine, so rename
3077 # the file auto-build.h in the gcc directory.
3078 mv auto-host.h ../auto-build.h
3081 build_xm_file="auto-build.h ${build_xm_file}"
3084 vars="host_xm_file tm_file xm_file build_xm_file"
3085 links="config.h tm.h tconfig.h hconfig.h"
3086 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3089 if [[ -f config.status ]]; then mv -f config.status config.bak; fi
3092 while [[ -n "$vars" ]]
3094 set $vars; var=$1; shift; vars=$*
3095 set $links; link=$1; shift; links=$*
3096 set $defines; define=$1; shift; defines=$*
3100 # Define TARGET_CPU_DEFAULT if the system wants one.
3101 # This substitutes for lots of *.h files.
3102 if [[ "$target_cpu_default" != "" -a $link = tm.h ]]
3104 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3107 for file in `eval echo '$'$var`; do
3108 echo "#include \"$file\"" >>$link
3111 for def in `eval echo '$'$define`; do
3112 echo "#ifndef $def" >>$link
3113 echo "#define $def" >>$link
3114 echo "#endif" >>$link
3118 # Truncate the target if necessary
3119 if [[ x$host_truncate_target != x ]]; then
3120 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3123 # Get the version number from the toplevel
3124 version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
3126 # Get an absolute path to the GCC top-level source directory
3132 # Conditionalize the makefile for this host machine.
3133 # Make-host contains the concatenation of all host makefile fragments
3134 # [there can be more than one]. This file is built by configure.frag.
3135 host_overrides=Make-host
3136 dep_host_xmake_file=
3137 for f in .. ${host_xmake_file}
3139 if [[ -f ${srcdir}/config/$f ]]
3141 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3145 # Conditionalize the makefile for this target machine.
3146 # Make-target contains the concatenation of all host makefile fragments
3147 # [there can be more than one]. This file is built by configure.frag.
3148 target_overrides=Make-target
3150 for f in .. ${tmake_file}
3152 if [[ -f ${srcdir}/config/$f ]]
3154 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3158 # If the host doesn't support symlinks, modify CC in
3159 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3160 # Otherwise, we can use "CC=$(CC)".
3162 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3164 cc_set_by_configure="\$(CC)"
3165 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3168 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3170 symbolic_link="cp -p"
3174 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3175 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3179 out_object_file=`basename $out_file .c`.o
3182 for f in $tm_file; do
3183 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3187 for f in $host_xm_file; do
3188 if test $f != "auto-host.h"; then
3189 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3191 host_xm_file_list="${host_xm_file_list} auto-host.h"
3196 for f in $build_xm_file; do
3197 if test $f != "auto-build.h"; then
3198 if test $f != "auto-host.h"; then
3199 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3201 build_xm_file_list="${build_xm_file_list} auto-host.h"
3204 build_xm_file_list="${build_xm_file_list} auto-build.h"
3208 # Define macro CROSS_COMPILE in compilation
3209 # if this is a cross-compiler.
3210 # Also use all.cross instead of all.internal
3211 # and add cross-make to Makefile.
3212 cross_overrides="/dev/null"
3213 if [[ x$host != x$target ]]
3215 cross_defines="CROSS=-DCROSS_COMPILE"
3216 cross_overrides="${topdir}/cross-make"
3219 # When building gcc with a cross-compiler, we need to fix a few things.
3220 # This must come after cross-make as we want all.build to override
3222 build_overrides="/dev/null"
3223 if [[ x$build != x$host ]]
3225 build_overrides="${topdir}/build-make"
3228 # Expand extra_headers to include complete path.
3229 # This substitutes for lots of t-* files.
3231 if [[ "x$extra_headers" = x ]]
3234 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3235 for file in $extra_headers;
3237 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3241 # Add a definition of USE_COLLECT2 if system wants one.
3242 # Also tell toplev.c what to do.
3243 # This substitutes for lots of t-* files.
3244 if [[ x$use_collect2 = x ]]
3249 will_use_collect2="collect2"
3250 maybe_use_collect2="-DUSE_COLLECT2"
3254 # Set MD_DEPS if the real md file is in md.pre-cpp.
3255 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3256 # for line oriented comments, so we must always use a GNU cpp. If
3257 # building gcc with a cross compiler, use the cross compiler just
3258 # built. Otherwise, we can use the cpp just built.
3260 if [[ "x$md_cppflags" = x ]]
3262 md_file_sub=$srcdir/config/$md_file
3267 # If we have gas in the build tree, make a link to it.
3268 if [[ -f ../gas/Makefile ]]; then
3269 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3272 # If we have ld in the build tree, make a link to it.
3273 if [[ -f ../ld/Makefile ]]; then
3274 # if [[ x$use_collect2 = x ]]; then
3275 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3277 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3281 # Figure out what assembler alignment features are present.
3282 AC_MSG_CHECKING(assembler alignment features)
3284 gcc_cv_as_alignment_features=
3285 if [[ -x as$host_exeext ]]; then
3286 # Build using assembler in the current directory.
3287 gcc_cv_as=./as$host_exeext
3288 elif [[ -f $srcdir/../gas/configure.in ]]; then
3289 # Single tree build which includes gas.
3290 for f in $srcdir/../gas/configure.in $srcdir/../gas/Makefile.in
3292 gcc_cv_gas_version=`grep '^VERSION=[[0-9]]*\.[[0-9]]*' $f`
3293 if [[ x$gcc_cv_gas_version != x ]]; then
3297 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([[0-9]]*\)"`
3298 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[[0-9]]*\.\([[0-9]]*\)"`
3299 # Gas version 2.8 and later support specifying the maximum
3300 # bytes to skip when using .p2align.
3301 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
3302 gcc_cv_as_alignment_features=".p2align including maximum skip"
3303 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3305 elif [[ x$host = x$target ]]; then
3307 gcc_cv_as=as$host_exeext
3309 if [[ x$gcc_cv_as != x ]]; then
3310 # Check if specifying the maximum bytes to skip when
3311 # using .p2align is supported.
3312 echo ".p2align 4,,7" > conftest.s
3313 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3314 gcc_cv_as_alignment_features=".p2align including maximum skip"
3315 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3317 rm -f conftest.s conftest.o
3319 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3321 # Figure out what language subdirectories are present.
3323 for lang in ${srcdir}/*/config-lang.in ..
3327 # The odd quoting in the next line works around
3328 # an apparent bug in bash 1.12 on linux.
3329 ${srcdir}/[[*]]/config-lang.in) ;;
3330 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
3334 # Make gthr-default.h if we have a thread file.
3336 if [[ $thread_file != single ]]; then
3337 rm -f gthr-default.h
3338 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3339 gthread_flags=-DHAVE_GTHR_DEFAULT
3341 AC_SUBST(gthread_flags)
3343 # Make empty files to contain the specs and options for each language.
3344 # Then add #include lines to for a compiler that has specs and/or options.
3348 rm -f specs.h options.h
3349 touch specs.h options.h
3350 for subdir in . $subdirs
3352 if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
3353 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3354 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3356 if [[ -f $srcdir/$subdir/lang-options.h ]]; then
3357 echo "#include \"$subdir/lang-options.h\"" >>options.h
3358 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3362 # These (without "all_") are set in each config-lang.in.
3363 # `language' must be a single word so is spelled singularly.
3369 all_outputs=Makefile
3370 # List of language makefile fragments.
3375 # Add the language fragments.
3376 # Languages are added via two mechanisms. Some information must be
3377 # recorded in makefile variables, these are defined in config-lang.in.
3378 # We accumulate them and plug them into the main Makefile.
3379 # The other mechanism is a set of hooks for each of the main targets
3380 # like `clean', `install', etc.
3382 language_fragments="Make-lang"
3383 language_hooks="Make-hooks"
3386 for s in .. $subdirs
3398 . ${srcdir}/$s/config-lang.in
3399 if [[ "x$language" = x ]]
3401 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3404 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3405 all_languages="$all_languages $language"
3406 if [[ "x$boot_language" = xyes ]]
3408 all_boot_languages="$all_boot_languages $language"
3410 all_compilers="$all_compilers $compilers"
3411 all_stagestuff="$all_stagestuff $stagestuff"
3412 all_diff_excludes="$all_diff_excludes $diff_excludes"
3413 all_headers="$all_headers $headers"
3414 all_outputs="$all_outputs $outputs"
3415 if [[ x$outputs = x ]]
3417 oldstyle_subdirs="$oldstyle_subdirs $s"
3419 all_lib2funcs="$all_lib2funcs $lib2funcs"
3423 # Since we can't use `::' targets, we link each language in
3424 # with a set of hooks, reached indirectly via lang.${target}.
3428 target_list="all.build all.cross start.encap rest.encap \
3430 install-normal install-common install-info install-man \
3432 mostlyclean clean distclean extraclean maintainer-clean \
3433 stage1 stage2 stage3 stage4"
3434 for t in $target_list
3437 for l in .. $all_languages
3439 if [[ $l != ".." ]]; then
3443 echo "lang.$t: $x" >> Make-hooks
3446 # If we're not building in srcdir, create .gdbinit.
3448 if [[ ! -f Makefile.in ]]; then
3449 echo "dir ." > .gdbinit
3450 echo "dir ${srcdir}" >> .gdbinit
3451 if [[ x$gdb_needs_out_file_path = xyes ]]
3453 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3455 if [[ "x$subdirs" != x ]]; then
3458 echo "dir ${srcdir}/$s" >> .gdbinit
3461 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3464 # Define variables host_canonical and build_canonical
3465 # because some Cygnus local changes in the Makefile depend on them.
3466 build_canonical=${build}
3467 host_canonical=${host}
3469 if [[ "${host}" != "${target}" ]] ; then
3470 target_subdir=${target}/
3472 AC_SUBST(build_canonical)
3473 AC_SUBST(host_canonical)
3474 AC_SUBST(target_subdir)
3476 # If this is using newlib, then define inhibit_libc in
3477 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3478 # libgcc.a, but that's OK because newib should have its own version of
3481 if [[ x$with_newlib = xyes ]]; then
3482 inhibit_libc=-Dinhibit_libc
3484 AC_SUBST(inhibit_libc)
3486 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3489 if [[ x$enable_haifa = xyes ]]; then
3490 echo "Using the Haifa scheduler."
3492 sched_cflags=-DHAIFA
3494 AC_SUBST(sched_prefix)
3495 AC_SUBST(sched_cflags)
3496 if [[ x$enable_haifa != x ]]; then
3497 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3498 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3499 if [[ -f $x ]]; then
3506 # Nothing to do for FLOAT_H, float_format already handled.
3510 # Process the language and host/target makefile fragments.
3511 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3513 # Substitute configuration variables
3515 AC_SUBST(all_languages)
3516 AC_SUBST(all_boot_languages)
3517 AC_SUBST(all_compilers)
3518 AC_SUBST(all_lang_makefiles)
3519 AC_SUBST(all_stagestuff)
3520 AC_SUBST(all_diff_excludes)
3521 AC_SUBST(all_lib2funcs)
3522 AC_SUBST(all_headers)
3523 AC_SUBST(extra_passes)
3524 AC_SUBST(extra_programs)
3525 AC_SUBST(extra_parts)
3526 AC_SUBST(extra_c_objs)
3527 AC_SUBST(extra_cxx_objs)
3528 AC_SUBST(extra_c_flags)
3529 AC_SUBST(extra_objs)
3530 AC_SUBST(host_extra_gcc_objs)
3531 AC_SUBST(extra_headers_list)
3532 AC_SUBST(dep_host_xmake_file)
3533 AC_SUBST(dep_tmake_file)
3535 AC_SUBST(out_object_file)
3537 AC_SUBST(tm_file_list)
3538 AC_SUBST(build_xm_file_list)
3539 AC_SUBST(host_xm_file_list)
3540 AC_SUBST(lang_specs_files)
3541 AC_SUBST(lang_options_files)
3542 AC_SUBST(thread_file)
3544 AC_SUBST(local_prefix)
3545 AC_SUBST(gxx_include_dir)
3546 AC_SUBST(fixincludes)
3547 AC_SUBST(build_install_headers_dir)
3548 AC_SUBST(build_exeext)
3549 AC_SUBST(host_exeext)
3550 AC_SUBST(float_format)
3551 AC_SUBST(will_use_collect2)
3552 AC_SUBST(maybe_use_collect2)
3553 AC_SUBST(cc_set_by_configure)
3554 AC_SUBST(stage_prefix_set_by_configure)
3556 AC_SUBST(symbolic_link)
3558 AC_SUBST_FILE(target_overrides)
3559 AC_SUBST_FILE(host_overrides)
3560 AC_SUBST(cross_defines)
3561 AC_SUBST_FILE(cross_overrides)
3562 AC_SUBST_FILE(build_overrides)
3563 AC_SUBST_FILE(language_fragments)
3564 AC_SUBST_FILE(language_hooks)
3566 # Echo that links are built
3567 if [[ x$host = x$target ]]
3575 if [[ x$host != x$build ]]
3577 str3=" on a $build system"
3580 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3585 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3587 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3589 echo " ${str2}${str3}." 1>&2
3592 # Truncate the target if necessary
3593 if [[ x$host_truncate_target != x ]]; then
3594 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3597 # Configure the subdirectories
3598 # AC_CONFIG_SUBDIRS($subdirs)
3600 # Create the Makefile
3601 # and configure language subdirectories
3602 AC_OUTPUT($all_outputs,
3604 . $srcdir/configure.lang
3605 case x$CONFIG_HEADERS in
3606 xauto-host.h:config.in)
3609 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3610 # bootstrapping and the installation procedure can still use
3611 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3612 # FLAGS_TO_PASS has been modified to solve the problem there.
3613 # This is virtually a duplicate of what happens in configure.lang; we do
3614 # an extra check to make sure this only happens if ln -s can be used.
3615 if [[ "$symbolic_link" = "ln -s" ]]; then
3616 for d in .. ${subdirs} ; do
3617 if [[ $d != .. ]]; then
3620 for t in stage1 stage2 stage3 stage4 include
3623 $symbolic_link ../$t $t 2>/dev/null
3634 target_alias='${target_alias}'
3636 subdirs='${subdirs}'
3637 oldstyle_subdirs='${oldstyle_subdirs}'
3638 symbolic_link='${symbolic_link}'
3639 program_transform_set='${program_transform_set}'
3640 program_transform_name='${program_transform_name}'
3641 dep_host_xmake_file='${dep_host_xmake_file}'
3642 host_xmake_file='${host_xmake_file}'
3643 dep_tmake_file='${dep_tmake_file}'
3644 tmake_file='${tmake_file}'
3645 thread_file='${thread_file}'
3646 version='${version}'
3647 local_prefix='${local_prefix}'
3648 build_install_headers_dir='${build_install_headers_dir}'
3649 build_exeext='${build_exeext}'
3650 host_exeext='${host_exeext}'
3651 out_file='${out_file}'
3652 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3653 SET_MAKE='${SET_MAKE}'
3654 target_list='${target_list}'
3655 target_overrides='${target_overrides}'
3656 host_overrides='${host_overrides}'
3657 cross_defines='${cross_defines}'
3658 cross_overrides='${cross_overrides}'
3659 build_overrides='${build_overrides}'