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 bogus environment variables.
33 # Test if LIBRARY_PATH contains the notation for the current directory
34 # since this would lead to problems installing/building glibc.
35 # LIBRARY_PATH contains the current directory if one of the following
37 # - one of the terminals (":" and ";") is the first or last sign
38 # - two terminals occur directly after each other
39 # - the path contains an element with a dot in it
40 AC_MSG_CHECKING(LIBRARY_PATH variable)
42 case ${LIBRARY_PATH} in
43 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
44 library_path_setting="contains current directory"
47 library_path_setting="ok"
51 AC_MSG_RESULT($library_path_setting)
52 if test "$library_path_setting" != "ok"; then
54 *** LIBRARY_PATH shouldn't contain the current directory when
55 *** building egcs. Please change the environment variable
56 *** and run configure again.])
59 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
60 # since this would lead to problems installing/building glibc.
61 # GCC_EXEC_PREFIX contains the current directory if one of the following
63 # - one of the terminals (":" and ";") is the first or last sign
64 # - two terminals occur directly after each other
65 # - the path contains an element with a dot in it
66 AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
68 case ${GCC_EXEC_PREFIX} in
69 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
70 gcc_exec_prefix_setting="contains current directory"
73 gcc_exec_prefix_setting="ok"
77 AC_MSG_RESULT($gcc_exec_prefix_setting)
78 if test "$gcc_exec_prefix_setting" != "ok"; then
80 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
81 *** building egcs. Please change the environment variable
82 *** and run configure again.])
85 # Check for additional parameters
89 [ --with-gnu-ld arrange to work with GNU ld.],
90 gnu_ld_flag="$with_gnu_ld",
95 [ --with-gnu-as arrange to work with GNU as.],
96 gas_flag="$with_gnu_as",
101 [ --with-stabs arrange to use stabs instead of host debug format.],
107 [ --with-elf arrange to use ELF instead of host debug format.],
111 # Specify the local prefix
113 AC_ARG_WITH(local-prefix,
114 [ --with-local-prefix=DIR specifies directory to put local include.],
115 [case "${withval}" in
116 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
118 *) local_prefix=$with_local_prefix ;;
121 # Default local prefix if it is empty
122 if test x$local_prefix = x; then
123 local_prefix=/usr/local
127 # Specify the g++ header file directory
128 AC_ARG_WITH(gxx-include-dir,
129 [ --with-gxx-include-dir=DIR
130 specifies directory to put g++ header files.],
131 [case "${withval}" in
132 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
134 *) gxx_include_dir=$with_gxx_include_dir ;;
137 if test x${gxx_include_dir} = x; then
138 if test x${enable_version_specific_runtime_libs} = xyes; then
139 gxx_include_dir='${libsubdir}/include/g++'
141 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
142 gxx_include_dir='${prefix}/include/g++'-${libstdcxx_interface}
146 # Enable expensive internal checks
147 AC_ARG_ENABLE(checking,
148 [ --enable-checking enable expensive run-time checks.],
149 [case "${enableval}" in
150 yes) AC_DEFINE(ENABLE_CHECKING) ;;
152 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
155 # Enable use of cpplib for C.
157 AC_ARG_ENABLE(c-cpplib,
158 [ --enable-c-cpplib Use cpplib for C and C++.],
159 if test x$enable_c_cpplib != xno; then
160 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
161 extra_c_objs="${extra_c_objs} prefix.o"
162 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
163 extra_c_flags=-DUSE_CPPLIB=1
167 # Enable Multibyte Characters for C/C++
168 AC_ARG_ENABLE(c-mbchar,
169 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
170 if test x$enable_c_mbchar != xno; then
171 extra_c_flags=-DMULTIBYTE_CHARS=1
174 # Enable Haifa scheduler.
176 [ --enable-haifa Use the experimental scheduler.
177 --disable-haifa Don't use the experimental scheduler for the
178 targets which normally enable it.])
181 # This is a work in progress...
182 AC_ARG_WITH(fast-fixincludes,
183 [ --with-fast-fixincludes Use a faster fixinclude program. Experimental],
184 fast_fixinc="$with_fast_fixincludes",
187 # Enable init_priority.
188 AC_ARG_ENABLE(init-priority,
189 [ --enable-init-priority Use attributes to assign initialization order
191 --disable-init-priority Conform to ISO C++ rules for ordering static objects
192 (i.e. initialized in order of declaration). ],
193 if test x$enable_init_priority != xno; then
194 extra_c_flags=-DUSE_INIT_PRIORITY
198 # Pass with no value to take the default
199 # Pass with a value to specify a thread package
200 AC_ARG_ENABLE(threads,
201 [ --enable-threads enable thread usage for target GCC.
202 --enable-threads=LIB use LIB thread package for target GCC.],
203 if test x$enable_threads = xno; then
208 enable_threads_flag=$enable_threads
209 # Check if a valid thread package
210 case x${enable_threads_flag} in
213 target_thread_file='single'
217 target_thread_file=''
219 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
220 xsolaris | xwin32 | xdce | xvxworks)
221 target_thread_file=$enable_threads_flag
224 echo "$enable_threads is an unknown thread package" 1>&2
229 AC_ARG_ENABLE(objc-gc,
230 [ --enable-objc-gc enable the use of Boehm's garbage collector with
231 the GNU Objective-C runtime.],
232 if [[[ x$enable_objc_gc = xno ]]]; then
239 # Determine the host, build, and target systems
242 # Find the native compiler
245 # If the native compiler is GCC, we can enable warnings even in stage1.
246 # That's useful for people building cross-compilers, or just running a
248 if test "x$GCC" = "xyes"; then
249 stage1_warn_cflags='$(WARN_CFLAGS)'
251 stage1_warn_cflags=""
253 AC_SUBST(stage1_warn_cflags)
257 # Find some useful tools
270 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)
272 # Check for thread headers.
273 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
274 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
276 # See if GNAT has been installed
277 AC_CHECK_PROG(gnat, gnatbind, yes, no)
279 # See if the system preprocessor understands the ANSI C preprocessor
280 # stringification operator.
281 AC_MSG_CHECKING(whether cpp understands the stringify operator)
282 AC_CACHE_VAL(gcc_cv_c_have_stringify,
285 char *test = S(foo);],
286 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
287 AC_MSG_RESULT($gcc_cv_c_have_stringify)
288 if test $gcc_cv_c_have_stringify = yes; then
289 AC_DEFINE(HAVE_CPP_STRINGIFY)
292 # Use <inttypes.h> only if it exists,
293 # doesn't clash with <sys/types.h>, and declares intmax_t.
294 AC_MSG_CHECKING(for inttypes.h)
295 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
297 [#include <sys/types.h>
298 #include <inttypes.h>],
300 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
301 gcc_cv_header_inttypes_h=yes],
302 gcc_cv_header_inttypes_h=no)])
303 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
305 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
306 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
307 sysconf isascii gettimeofday strsignal)
309 # Make sure wchar_t is available
310 #AC_CHECK_TYPE(wchar_t, unsigned int)
312 GCC_FUNC_VFPRINTF_DOPRNT
315 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
316 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
319 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
320 #include <sys/types.h>
321 #ifdef HAVE_SYS_RESOURCE_H
322 #include <sys/resource.h>
336 build_install_headers_dir=install-headers-tar
341 host_truncate_target=
344 # Decode the host machine, then the target machine.
345 # For the host machine, we save the xm_file variable as host_xm_file;
346 # then we decode the target machine and forget everything else
347 # that came from the host machine.
348 for machine in $build $host $target; do
362 # Set this to force installation and use of collect2.
364 # Set this to override the default target model.
366 # Set this to control which fixincludes program to use.
367 if test x$fast_fixinc != xyes; then
368 fixincludes=fixincludes
369 else fixincludes=fixinc.sh ; fi
370 # Set this to control how the header file directory is installed.
371 install_headers_dir=install-headers-tar
372 # Set this to a non-empty list of args to pass to cpp if the target
373 # wants its .md file passed through cpp.
375 # Set this if directory names should be truncated to 14 characters.
377 # Set this if gdb needs a dir command with `dirname $out_file`
378 gdb_needs_out_file_path=
379 # Set this if the build machine requires executables to have a
382 # Set this to control which thread package will be used.
384 # Reinitialize these from the flag values every loop pass, since some
385 # configure entries modify them.
387 gnu_ld="$gnu_ld_flag"
388 enable_threads=$enable_threads_flag
390 # Set default cpu_type, tm_file and xm_file so it can be updated in
391 # each machine entry.
392 cpu_type=`echo $machine | sed 's/-.*$//'`
428 tm_file=${cpu_type}/${cpu_type}.h
429 xm_file=${cpu_type}/xm-${cpu_type}.h
431 # Set the default macros to define for GNU/Linux systems.
434 xm_defines="HAVE_ATEXIT POSIX BSTRING"
439 # Support site-specific machine types.
441 cpu_type=`echo $machine | sed -e 's/-.*//'`
442 rest=`echo $machine | sed -e "s/$cpu_type-//"`
443 xm_file=${cpu_type}/xm-$rest.h
444 tm_file=${cpu_type}/$rest.h
445 if test -f $srcdir/config/${cpu_type}/x-$rest; \
446 then xmake_file=${cpu_type}/x-$rest; \
449 if test -f $srcdir/config/${cpu_type}/t-$rest; \
450 then tmake_file=${cpu_type}/t-$rest; \
456 a29k-*-bsd* | a29k-*-sym1*)
457 tm_file="${tm_file} a29k/unix.h"
459 xmake_file=a29k/x-unix
462 a29k-*-udi | a29k-*-coff)
463 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
464 tmake_file=a29k/t-a29kbare
467 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
468 tmake_file=a29k/t-vx29k
469 extra_parts="crtbegin.o crtend.o"
470 thread_file='vxworks'
472 a29k-*-*) # Default a29k environment.
475 alpha*-*-linux-gnuecoff*)
476 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
477 target_cpu_default="MASK_GAS"
482 alpha*-*-linux-gnulibc1*)
483 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
484 target_cpu_default="MASK_GAS"
485 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
486 extra_parts="crtbegin.o crtend.o"
487 fixincludes=fixinc.wrap
490 if test x$enable_threads = xyes; then
495 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
496 target_cpu_default="MASK_GAS"
497 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
498 extra_parts="crtbegin.o crtend.o"
500 fixincludes=Makefile.in
502 if test x$enable_threads = xyes; then
507 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
508 target_cpu_default="MASK_GAS"
509 tmake_file="alpha/t-crtbe"
510 extra_parts="crtbegin.o crtend.o"
512 fixincludes=fixinc.wrap
517 if test x$stabs = xyes
519 tm_file="${tm_file} dbx.h"
521 if test x$gas != xyes
523 extra_passes="mips-tfile mips-tdump"
528 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
533 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
536 tm_file="${tm_file} alpha/osf.h"
537 # Some versions of OSF4 (specifically X4.0-9 296.7) have
538 # a broken tar, so we use cpio instead.
539 install_headers_dir=install-headers-cpio
544 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
546 target_cpu_default=MASK_SUPPORT_ARCH
551 tm_file="${tm_file} dbx.h alpha/vxworks.h"
554 extra_passes="mips-tfile mips-tdump"
559 tm_file="${tm_file} alpha/win-nt.h"
560 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
562 xmake_file=winnt/x-winnt
563 extra_host_objs=oldnames.o
564 extra_gcc_objs="spawnv.o oldnames.o"
565 fixincludes=fixinc.winnt
566 if test x$gnu_ld != xyes
568 extra_programs=ld.exe
570 if test x$enable_threads = xyes; then
576 xm_file="${xm_file} alpha/xm-vms.h"
577 tmake_file=alpha/t-vms
578 fixincludes=Makefile.in
581 extra_parts="crtinit.o crtfini.o"
583 arm-*-coff* | armel-*-coff*)
585 tmake_file=arm/t-bare
588 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
590 tm_file=arm/riscix1-1.h
593 arm-*-riscix*) # Acorn RISC machine
596 tm_file=arm/rix-gas.h
600 xmake_file=arm/x-riscix
601 tmake_file=arm/t-riscix
604 arm-semi-aout | armel-semi-aout)
606 tmake_file=arm/t-semi
607 fixincludes=Makefile.in # There is nothing to fix
609 arm-semi-aof | armel-semi-aof)
610 tm_file=arm/semiaof.h
611 tmake_file=arm/t-semiaof
612 fixincludes=Makefile.in # There is nothing to fix
616 xm_file="arm/xm-netbsd.h ${xm_file}"
617 tmake_file="t-netbsd arm/t-netbsd"
618 # On NetBSD, the headers are already okay, except for math.h.
619 fixincludes=fixinc.wrap
621 arm-*-linux-gnuaout*) # ARM GNU/Linux
624 tm_file=arm/linux-gas.h
625 tmake_file=arm/t-linux
626 fixincludes=Makefile.in
631 tmake_file=arm/t-bare
633 c1-convex-*) # Convex C1
636 fixincludes=Makefile.in
638 c2-convex-*) # Convex C2
641 fixincludes=Makefile.in
646 fixincludes=Makefile.in
651 fixincludes=Makefile.in
654 target_cpu_default=16
656 fixincludes=Makefile.in
658 clipper-intergraph-clix*)
659 tm_file="${tm_file} svr3.h clipper/clix.h"
660 xm_file=clipper/xm-clix.h
661 xmake_file=clipper/x-clix
662 extra_headers=va-clipper.h
663 extra_parts="crtbegin.o crtend.o"
664 install_headers_dir=install-headers-cpio
671 # This hasn't been upgraded to GCC 2.
672 # fx80-alliant-*) # Alliant FX/80
678 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
679 xm_file=pa/xm-papro.h
684 tm_file="${tm_file} pa/pa-osf.h"
686 fixincludes=Makefile.in
689 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
690 xm_file=pa/xm-papro.h
694 tm_file="${tm_file} pa/pa-osf.h"
696 fixincludes=Makefile.in
701 fixincludes=Makefile.in
705 fixincludes=Makefile.in
708 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
709 xm_file=pa/xm-pahpux.h
710 xmake_file=pa/x-pa-hpux
713 tm_file="${tm_file} pa/gas.h"
715 install_headers_dir=install-headers-cpio
719 hppa1.0-*-hpux8.0[0-2]*)
721 tm_file="${tm_file} pa/pa-hpux.h"
722 xm_file=pa/xm-pahpux.h
723 xmake_file=pa/x-pa-hpux
726 tm_file="${tm_file} pa/pa-gas.h"
728 tm_file="pa/pa-oldas.h ${tm_file}"
730 install_headers_dir=install-headers-cpio
734 hppa1.1-*-hpux8.0[0-2]*)
737 tm_file="${tm_file} pa/pa-hpux.h"
738 xm_file=pa/xm-pahpux.h
739 xmake_file=pa/x-pa-hpux
742 tm_file="${tm_file} pa/pa-gas.h"
744 tm_file="pa/pa-oldas.h ${tm_file}"
746 install_headers_dir=install-headers-cpio
751 tm_file="${tm_file} pa/pa-hpux.h"
752 xm_file=pa/xm-pahpux.h
753 xmake_file=pa/x-pa-hpux
756 tm_file="${tm_file} pa/pa-gas.h"
758 install_headers_dir=install-headers-cpio
762 tm_file="${tm_file} pa/pa-hpux.h"
763 xm_file=pa/xm-pahpux.h
764 xmake_file=pa/x-pa-hpux
767 tm_file="${tm_file} pa/pa-gas.h"
769 install_headers_dir=install-headers-cpio
774 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
775 xm_file=pa/xm-pahpux.h
776 xmake_file=pa/x-pa-hpux
780 tm_file="${tm_file} pa/pa-gas.h"
782 if test x$enable_threads = x; then
783 enable_threads=$have_pthread_h
785 if test x$enable_threads = xyes; then
787 tmake_file="${tmake_file} pa/t-dce-thr"
789 install_headers_dir=install-headers-cpio
793 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
794 xm_file=pa/xm-pahpux.h
795 xmake_file=pa/x-pa-hpux
798 tm_file="${tm_file} pa/pa-gas.h"
800 if test x$enable_threads = x; then
801 enable_threads=$have_pthread_h
803 if test x$enable_threads = xyes; then
805 tmake_file="${tmake_file} pa/t-dce-thr"
807 install_headers_dir=install-headers-cpio
812 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
813 xm_file=pa/xm-pahpux.h
814 xmake_file=pa/x-pa-hpux
817 tm_file="${tm_file} pa/pa-gas.h"
819 install_headers_dir=install-headers-cpio
823 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
824 xm_file=pa/xm-pahpux.h
825 xmake_file=pa/x-pa-hpux
828 tm_file="${tm_file} pa/pa-gas.h"
830 install_headers_dir=install-headers-cpio
835 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
836 xm_file=pa/xm-pahpux.h
837 xmake_file=pa/x-pa-hpux
840 tm_file="${tm_file} pa/pa-gas.h"
842 install_headers_dir=install-headers-cpio
846 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
847 xm_file=pa/xm-pahpux.h
848 xmake_file=pa/x-pa-hpux
851 tm_file="${tm_file} pa/pa-gas.h"
853 install_headers_dir=install-headers-cpio
859 fixincludes=Makefile.in
864 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
868 tm_file=i386/aix386.h
869 extra_parts="crtbegin.o crtend.o"
870 tmake_file=i386/t-crtstuff
872 tm_file=i386/aix386ng.h
875 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
877 xmake_file=i386/x-aix
880 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
882 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
883 xm_defines="USG POSIX SMALL_ARG_MAX"
884 xmake_file=i386/x-ncr3000
885 if test x$stabs = xyes -a x$gas = xyes
887 tm_file=i386/sysv4gdb.h
891 extra_parts="crtbegin.o crtend.o"
892 tmake_file=i386/t-crtpic
898 xm_file=i386/xm-next.h
899 tmake_file=i386/t-next
900 xmake_file=i386/x-next
901 extra_objs=nextstep.o
903 if test x$enable_threads = xyes; then
908 i[34567]86-sequent-bsd*) # 80386 from Sequent
913 tm_file=i386/seq-gas.h
915 tm_file=i386/sequent.h
919 i[34567]86-sequent-ptx1*)
921 xm_defines="USG SVR3"
922 xmake_file=i386/x-sysv3
923 tm_file=i386/seq-sysv3.h
924 tmake_file=i386/t-crtstuff
925 fixincludes=fixinc.ptx
926 extra_parts="crtbegin.o crtend.o"
927 install_headers_dir=install-headers-cpio
930 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
932 xm_defines="USG SVR3"
933 xmake_file=i386/x-sysv3
934 tm_file=i386/seq2-sysv3.h
935 tmake_file=i386/t-crtstuff
936 extra_parts="crtbegin.o crtend.o"
937 fixincludes=fixinc.ptx
938 install_headers_dir=install-headers-cpio
941 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
943 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
944 xm_defines="USG POSIX SMALL_ARG_MAX"
946 tm_file=i386/ptx4-i.h
948 extra_parts="crtbegin.o crtend.o"
949 fixincludes=fixinc.ptx
950 install_headers_dir=install-headers-cpio
952 i386-sun-sunos*) # Sun i386 roadrunner
958 i[34567]86-wrs-vxworks*)
960 tm_file=i386/vxi386.h
961 tmake_file=i386/t-i386bare
966 tm_file=i386/i386-aout.h
967 tmake_file=i386/t-i386bare
970 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
972 tm_file=i386/bsd386.h
973 # tmake_file=t-libc-ok
978 tm_file=i386/386bsd.h
979 # tmake_file=t-libc-ok
980 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
984 i[34567]86-*-freebsdelf*)
986 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
987 # On FreeBSD, the headers are already ok, except for math.h.
988 fixincludes=fixinc.wrap
989 tmake_file=i386/t-freebsd
995 i[34567]86-*-freebsd*)
997 tm_file=i386/freebsd.h
998 # On FreeBSD, the headers are already ok, except for math.h.
999 fixincludes=fixinc.wrap
1000 tmake_file=i386/t-freebsd
1003 i[34567]86-*-netbsd*)
1005 tm_file=i386/netbsd.h
1006 # On NetBSD, the headers are already okay, except for math.h.
1007 fixincludes=fixinc.wrap
1013 tm_file=i386/i386-coff.h
1014 tmake_file=i386/t-i386bare
1017 i[34567]86-*-isc*) # 80386 running ISC system
1019 xm_file="${xm_file} i386/xm-isc.h"
1020 xm_defines="USG SVR3"
1023 i[34567]86-*-isc[34]*)
1025 xmake_file=i386/x-isc3
1028 xmake_file=i386/x-isc
1031 if test x$gas = xyes -a x$stabs = xyes
1033 tm_file=i386/iscdbx.h
1034 tmake_file=i386/t-svr3dbx
1035 extra_parts="svr3.ifile svr3z.ifile"
1037 tm_file=i386/isccoff.h
1038 tmake_file=i386/t-crtstuff
1039 extra_parts="crtbegin.o crtend.o"
1041 install_headers_dir=install-headers-cpio
1044 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1045 changequote([,])dnl # with a.out format using
1047 xmake_file=x-linux-aout
1048 tmake_file="t-linux-aout i386/t-crtstuff"
1049 tm_file=i386/linux-oldld.h
1050 fixincludes=Makefile.in #On Linux, the headers are ok already.
1055 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1056 changequote([,])dnl # with a.out format
1057 xmake_file=x-linux-aout
1058 tmake_file="t-linux-aout i386/t-crtstuff"
1059 tm_file=i386/linux-aout.h
1060 fixincludes=Makefile.in #On Linux, the headers are ok already.
1065 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1066 changequote([,])dnl # with ELF format using the
1067 # GNU/Linux C library 5
1069 tm_file=i386/linux.h
1070 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1071 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1072 fixincludes=Makefile.in #On Linux, the headers are ok already.
1075 if test x$enable_threads = xyes; then
1076 thread_file='single'
1080 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1081 changequote([,])dnl # with ELF format using glibc 2
1082 # aka GNU/Linux C library 6
1084 tm_file=i386/linux.h
1085 tmake_file="t-linux i386/t-crtstuff"
1086 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1087 fixincludes=Makefile.in #On Linux, the headers are ok already.
1090 if test x$enable_threads = xyes; then
1099 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1101 xm_file=i386/xm-go32.h
1103 tmake_file=i386/t-go32
1106 i[34567]86-pc-msdosdjgpp*)
1108 xm_file=i386/xm-go32.h
1110 tmake_file=i386/t-go32
1115 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1118 tmake_file=t-libc-ok
1119 fixincludes=Makefile.in
1124 i[34567]86-*-lynxos*)
1126 if test x$gas = xyes
1130 tm_file=i386/lynx-ng.h
1132 xm_file=i386/xm-lynx.h
1133 tmake_file=i386/t-i386bare
1140 # tmake_file=t-libc-ok
1144 i[34567]86-*-osfrose*) # 386 using OSF/rose
1146 if test x$elf = xyes
1148 tm_file=i386/osfelf.h
1151 tm_file=i386/osfrose.h
1154 xm_file="i386/xm-osf.h ${xm_file}"
1155 xmake_file=i386/x-osfrose
1156 tmake_file=i386/t-osf
1157 extra_objs=halfpic.o
1160 i[34567]86-go32-rtems*)
1163 xm_file=i386/xm-go32.h
1164 tm_file=i386/go32-rtems.h
1165 tmake_file="i386/t-go32 t-rtems"
1168 i[34567]86-*-rtemself*)
1171 tm_file=i386/rtemself.h
1172 tmake_file="i386/t-i386bare t-rtems"
1175 i[34567]86-*-rtems*)
1178 tm_file=i386/rtems.h
1179 tmake_file="i386/t-i386bare t-rtems"
1182 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1184 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1185 xm_defines="USG SVR3"
1186 xmake_file=i386/x-sco5
1187 fixincludes=fixinc.sco
1188 install_headers_dir=install-headers-cpio
1190 if test x$gas = xyes
1192 tm_file="i386/sco5gas.h ${tm_file}"
1193 tmake_file=i386/t-sco5gas
1195 tmake_file=i386/t-sco5
1197 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1200 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1202 xm_file="${xm_file} i386/xm-sco.h"
1203 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1204 xmake_file=i386/x-sco4
1205 fixincludes=fixinc.sco
1206 install_headers_dir=install-headers-cpio
1207 if test x$stabs = xyes
1209 tm_file=i386/sco4dbx.h
1210 tmake_file=i386/t-svr3dbx
1211 extra_parts="svr3.ifile svr3z.rfile"
1214 tmake_file=i386/t-crtstuff
1215 extra_parts="crtbegin.o crtend.o"
1220 i[34567]86-*-sco*) # 80386 running SCO system
1222 xm_file=i386/xm-sco.h
1223 xmake_file=i386/x-sco
1224 install_headers_dir=install-headers-cpio
1225 if test x$stabs = xyes
1227 tm_file=i386/scodbx.h
1228 tmake_file=i386/t-svr3dbx
1229 extra_parts="svr3.ifile svr3z.rfile"
1232 extra_parts="crtbegin.o crtend.o"
1233 tmake_file=i386/t-crtstuff
1238 i[34567]86-*-solaris2*)
1240 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1241 xm_defines="USG POSIX SMALL_ARG_MAX"
1242 if test x$stabs = xyes
1244 tm_file=i386/sol2dbg.h
1248 tmake_file=i386/t-sol2
1249 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1255 fixincludes=fixinc.svr4;;
1257 fixincludes=fixinc.wrap;;
1259 if test x$enable_threads = xyes; then
1260 thread_file='solaris'
1264 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1266 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1267 xm_defines="USG POSIX"
1268 tm_file=i386/sysv4.h
1269 if test x$stabs = xyes
1271 tm_file="${tm_file} dbx.h"
1273 tmake_file=i386/t-crtpic
1275 extra_parts="crtbegin.o crtend.o"
1276 fixincludes=Makefile.in # The headers are just fine, thank you.
1279 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1281 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1282 xm_defines="USG POSIX SMALL_ARG_MAX"
1283 tm_file=i386/sysv4.h
1284 if test x$stabs = xyes
1286 tm_file="${tm_file} dbx.h"
1288 tmake_file=i386/t-crtpic
1290 extra_parts="crtbegin.o crtend.o"
1293 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1296 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1297 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1298 fixincludes=Makefile.in #Don't do it on OSF/1
1299 if test x$stabs = xyes
1301 tm_file=i386/osf1elfgdb.h
1303 tm_file=i386/osf1elf.h
1305 tmake_file=i386/t-osf1elf
1306 xmake_file=i386/x-osf1elf
1307 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1310 i[34567]86-*-sysv*) # Intel 80386's running system V
1312 xm_defines="USG SVR3"
1313 xmake_file=i386/x-sysv3
1314 if test x$gas = xyes
1316 if test x$stabs = xyes
1318 tm_file=i386/svr3dbx.h
1319 tmake_file=i386/t-svr3dbx
1320 extra_parts="svr3.ifile svr3z.rfile"
1322 tm_file=i386/svr3gas.h
1323 extra_parts="crtbegin.o crtend.o"
1324 tmake_file=i386/t-crtstuff
1327 tm_file=i386/sysv3.h
1328 extra_parts="crtbegin.o crtend.o"
1329 tmake_file=i386/t-crtstuff
1332 i386-*-vsta) # Intel 80386's running VSTa kernel
1333 xm_file="${xm_file} i386/xm-vsta.h"
1335 tmake_file=i386/t-vsta
1336 xmake_file=i386/x-vsta
1341 xm_file="${xm_file} i386/xm-cygwin32.h"
1342 tmake_file=i386/t-cygwin32
1343 tm_file=i386/win32.h
1344 xmake_file=i386/x-cygwin32
1346 fixincludes=Makefile.in
1347 if test x$enable_threads = xyes; then
1353 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1355 xm_file="${xm_file} i386/xm-cygwin32.h"
1356 tmake_file=i386/t-cygwin32
1357 tm_file=i386/cygwin32.h
1358 xmake_file=i386/x-cygwin32
1360 fixincludes=Makefile.in
1361 if test x$enable_threads = xyes; then
1367 i[34567]86-*-mingw32*)
1369 tm_file=i386/mingw32.h
1370 xm_file="${xm_file} i386/xm-mingw32.h"
1371 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1373 xmake_file=i386/x-cygwin32
1374 fixincludes=Makefile.in
1375 if test x$enable_threads = xyes; then
1382 *minwg32crt* | *mingw32*)
1383 tm_file="${tm_file} i386/crtdll.h"
1388 i[34567]86-*-winnt3*)
1390 tm_file=i386/win-nt.h
1391 out_file=i386/i386.c
1392 xm_file="xm-winnt.h ${xm_file}"
1393 xmake_file=winnt/x-winnt
1394 tmake_file=i386/t-winnt
1395 extra_host_objs="winnt.o oldnames.o"
1396 extra_gcc_objs="spawnv.o oldnames.o"
1397 fixincludes=fixinc.winnt
1398 if test x$gnu_ld != xyes
1400 extra_programs=ld.exe
1402 if test x$enable_threads = xyes; then
1407 i[34567]86-dg-dgux*)
1409 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1410 xm_defines="USG POSIX"
1411 out_file=i386/dgux.c
1413 tmake_file=i386/t-dgux
1414 xmake_file=i386/x-dgux
1415 fixincludes=fixinc.dgux
1416 install_headers_dir=install-headers-cpio
1418 i860-alliant-*) # Alliant FX/2800
1419 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1420 xm_file="${xm_file}"
1421 xmake_file=i860/x-fx2800
1422 tmake_file=i860/t-fx2800
1423 extra_parts="crtbegin.o crtend.o"
1426 tm_file="${tm_file} i860/bsd.h"
1427 if test x$gas = xyes
1429 tm_file="${tm_file} i860/bsd-gas.h"
1434 tm_file="${tm_file} i860/mach.h"
1435 tmake_file=t-libc-ok
1437 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1438 tm_file="${tm_file} svr3.h i860/paragon.h"
1439 xm_defines="USG SVR3"
1443 tm_file="${tm_file} svr3.h i860/sysv3.h"
1444 xm_defines="USG SVR3"
1445 xmake_file=i860/x-sysv3
1446 extra_parts="crtbegin.o crtend.o"
1449 tm_file="${tm_file} svr4.h i860/sysv4.h"
1450 xm_defines="USG SVR3"
1451 xmake_file=i860/x-sysv4
1453 extra_parts="crtbegin.o crtend.o"
1455 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1456 tm_file="${tm_file} i960/vx960.h"
1457 tmake_file=i960/t-vxworks960
1459 thread_file='vxworks'
1461 i960-wrs-vxworks5* | i960-wrs-vxworks)
1462 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1463 tmake_file=i960/t-vxworks960
1465 thread_file='vxworks'
1468 tm_file="${tm_file} i960/vx960.h"
1469 tmake_file=i960/t-vxworks960
1471 thread_file='vxworks'
1474 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1475 tmake_file=i960/t-960bare
1479 tmake_file="i960/t-960bare t-rtems"
1480 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1483 i960-*-*) # Default i960 environment.
1487 extra_parts="crtinit.o crtfini.o"
1489 m68000-convergent-sysv*)
1491 xm_file="m68k/xm-3b1.h ${xm_file}"
1494 extra_headers=math-68881.h
1496 m68000-hp-bsd*) # HP 9000/200 running BSD
1497 tm_file=m68k/hp2bsd.h
1498 xmake_file=m68k/x-hp2bsd
1500 extra_headers=math-68881.h
1502 m68000-hp-hpux*) # HP 9000 series 300
1503 xm_file="xm_alloca.h ${xm_file}"
1504 xm_defines="USG NO_SYS_SIGLIST"
1505 if test x$gas = xyes
1507 xmake_file=m68k/x-hp320g
1508 tm_file=m68k/hp310g.h
1510 xmake_file=m68k/x-hp320
1511 tm_file=m68k/hp310.h
1513 install_headers_dir=install-headers-cpio
1515 extra_headers=math-68881.h
1520 extra_headers=math-68881.h
1523 tm_file=m68k/sun2o4.h
1525 extra_headers=math-68881.h
1528 xm_file="m68k/xm-3b1.h ${xm_file}"
1530 if test x$gas = xyes
1537 extra_headers=math-68881.h
1539 m68k-apple-aux*) # Apple Macintosh running A/UX
1540 xm_defines="USG AUX"
1541 tmake_file=m68k/t-aux
1542 install_headers_dir=install-headers-cpio
1543 extra_headers=math-68881.h
1544 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1546 if test "$gnu_ld" = yes
1548 tm_file="${tm_file} m68k/auxgld.h"
1550 tm_file="${tm_file} m68k/auxld.h"
1552 if test "$gas" = yes
1554 tm_file="${tm_file} m68k/auxgas.h"
1556 tm_file="${tm_file} m68k/auxas.h"
1558 tm_file="${tm_file} m68k/a-ux.h"
1562 tm_file=m68k/apollo68.h
1563 xmake_file=m68k/x-apollo68
1565 extra_headers=math-68881.h
1568 m68k-altos-sysv*) # Altos 3068
1569 if test x$gas = xyes
1571 tm_file=m68k/altos3068.h
1574 echo "The Altos is supported only with the GNU assembler" 1>&2
1577 extra_headers=math-68881.h
1579 m68k-bull-sysv*) # Bull DPX/2
1580 if test x$gas = xyes
1582 if test x$stabs = xyes
1584 tm_file=m68k/dpx2cdbx.h
1586 tm_file=m68k/dpx2g.h
1591 xm_file="xm-alloca.h ${xm_file}"
1593 xmake_file=m68k/x-dpx2
1595 extra_headers=math-68881.h
1597 m68k-atari-sysv4*) # Atari variant of V.4.
1598 tm_file=m68k/atari.h
1599 xm_file="xm-alloca.h ${xm_file}"
1600 xm_defines="USG FULL_PROTOTYPES"
1602 extra_parts="crtbegin.o crtend.o"
1603 extra_headers=math-68881.h
1606 m68k-motorola-sysv*)
1607 tm_file=m68k/mot3300.h
1608 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1609 xm_defines=NO_SYS_SIGLIST
1610 if test x$gas = xyes
1612 xmake_file=m68k/x-mot3300-gas
1613 if test x$gnu_ld = xyes
1615 tmake_file=m68k/t-mot3300-gald
1617 tmake_file=m68k/t-mot3300-gas
1621 xmake_file=m68k/x-mot3300
1622 if test x$gnu_ld = xyes
1624 tmake_file=m68k/t-mot3300-gld
1626 tmake_file=m68k/t-mot3300
1630 gdb_needs_out_file_path=yes
1631 extra_parts="crt0.o mcrt0.o"
1632 extra_headers=math-68881.h
1635 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1636 tm_file=m68k/tower-as.h
1637 xm_defines="USG SVR3"
1638 xmake_file=m68k/x-tower
1639 extra_parts="crtbegin.o crtend.o"
1640 extra_headers=math-68881.h
1643 tm_file=m68k/plexus.h
1644 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1647 extra_headers=math-68881.h
1651 xm_file="xm-alloca.h ${xm_file}"
1653 extra_headers=math-68881.h
1656 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1657 xm_defines="USG unos"
1658 xmake_file=m68k/x-crds
1661 extra_headers=math-68881.h
1663 m68k-cbm-sysv4*) # Commodore variant of V.4.
1665 xm_file="xm-alloca.h ${xm_file}"
1666 xm_defines="USG FULL_PROTOTYPES"
1667 xmake_file=m68k/x-amix
1669 extra_parts="crtbegin.o crtend.o"
1670 extra_headers=math-68881.h
1674 tm_file=m68k/ccur-GAS.h
1675 xmake_file=m68k/x-ccur
1676 extra_headers=math-68881.h
1680 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1681 tm_file=m68k/hp3bsd44.h
1682 xmake_file=m68k/x-hp3bsd44
1684 extra_headers=math-68881.h
1687 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1688 tm_file=m68k/hp3bsd.h
1690 extra_headers=math-68881.h
1694 if test x$with_fp = xno
1696 tm_file=m68k/isi-nfp.h
1702 extra_headers=math-68881.h
1704 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1705 xm_file="xm_alloca.h ${xm_file}"
1706 xm_defines="USG NO_SYS_SIGLIST"
1707 if test x$gas = xyes
1709 xmake_file=m68k/x-hp320g
1710 tm_file=m68k/hp320g.h
1712 xmake_file=m68k/x-hp320
1713 tm_file=m68k/hpux7.h
1715 install_headers_dir=install-headers-cpio
1717 extra_headers=math-68881.h
1720 m68k-hp-hpux*) # HP 9000 series 300
1721 xm_file="xm_alloca.h ${xm_file}"
1722 xm_defines="USG NO_SYS_SIGLIST"
1723 if test x$gas = xyes
1725 xmake_file=m68k/x-hp320g
1726 tm_file=m68k/hp320g.h
1728 xmake_file=m68k/x-hp320
1729 tm_file=m68k/hp320.h
1731 install_headers_dir=install-headers-cpio
1733 extra_headers=math-68881.h
1737 tm_file=m68k/sun3mach.h
1739 extra_headers=math-68881.h
1743 if test x$gas = xyes
1745 tm_file=m68k/news3gas.h
1747 tm_file=m68k/news3.h
1750 extra_headers=math-68881.h
1753 m68k-sony-bsd* | m68k-sony-newsos*)
1754 if test x$gas = xyes
1756 tm_file=m68k/newsgas.h
1761 extra_headers=math-68881.h
1764 m68k-next-nextstep2*)
1765 tm_file=m68k/next21.h
1766 xm_file="m68k/xm-next.h ${xm_file}"
1767 tmake_file=m68k/t-next
1768 xmake_file=m68k/x-next
1769 extra_objs=nextstep.o
1770 extra_headers=math-68881.h
1774 m68k-next-nextstep3*)
1776 xm_file="m68k/xm-next.h ${xm_file}"
1777 tmake_file=m68k/t-next
1778 xmake_file=m68k/x-next
1779 extra_objs=nextstep.o
1780 extra_headers=math-68881.h
1783 if test x$enable_threads = xyes; then
1788 if test x$with_fp = xno
1790 tm_file=m68k/sun3n3.h
1792 tm_file=m68k/sun3o3.h
1796 extra_headers=math-68881.h
1798 m68k-sun-sunos*) # For SunOS 4 (the default).
1799 if test x$with_fp = xno
1801 tm_file=m68k/sun3n.h
1807 extra_headers=math-68881.h
1810 tm_file=m68k/vxm68k.h
1811 tmake_file=m68k/t-vxworks68
1812 extra_headers=math-68881.h
1813 thread_file='vxworks'
1817 tmake_file=m68k/t-m68kbare
1818 tm_file="m68k/m68k-aout.h libgloss.h"
1819 extra_headers=math-68881.h
1823 tmake_file=m68k/t-m68kbare
1824 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1825 extra_headers=math-68881.h
1829 if test x$gas = xyes
1833 tm_file=m68k/lynx-ng.h
1835 xm_file=m68k/xm-lynx.h
1837 tmake_file=m68k/t-lynx
1838 extra_headers=math-68881.h
1842 tm_file=m68k/netbsd.h
1843 # On NetBSD, the headers are already okay, except for math.h.
1844 fixincludes=fixinc.wrap
1848 m68k-*-sysv3*) # Motorola m68k's running system V.3
1849 xm_file="xm-alloca.h ${xm_file}"
1851 xmake_file=m68k/x-m68kv
1852 extra_parts="crtbegin.o crtend.o"
1853 extra_headers=math-68881.h
1856 m68k-*-sysv4*) # Motorola m68k's running system V.4
1857 tm_file=m68k/m68kv4.h
1858 xm_file="xm-alloca.h ${xm_file}"
1861 extra_parts="crtbegin.o crtend.o"
1862 extra_headers=math-68881.h
1865 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1868 tm_file=m68k/linux-aout.h
1869 tmake_file="t-linux-aout m68k/t-linux-aout"
1870 fixincludes=Makefile.in # The headers are ok already.
1871 extra_headers=math-68881.h
1875 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1876 # with ELF format using the
1877 # GNU/Linux C library 5
1879 tm_file=m68k/linux.h
1880 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1881 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1882 fixincludes=Makefile.in # The headers are ok already.
1883 extra_headers=math-68881.h
1887 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1888 # with ELF format using glibc 2
1889 # aka the GNU/Linux C library 6.
1891 tm_file=m68k/linux.h
1892 tmake_file="t-linux m68k/t-linux"
1893 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1894 fixincludes=Makefile.in # The headers are ok already.
1895 extra_headers=math-68881.h
1898 if test x$enable_threads = xyes; then
1903 tmake_file=m68k/t-m68kbare
1904 tm_file=m68k/m68k-psos.h
1905 extra_headers=math-68881.h
1909 tmake_file="m68k/t-m68kbare t-rtems"
1910 tm_file=m68k/rtems.h
1911 extra_headers=math-68881.h
1918 tm_file=m88k/dguxbcs.h
1919 tmake_file=m88k/t-dguxbcs
1923 tmake_file=m88k/t-dgux
1926 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1927 xmake_file=m88k/x-dgux
1928 if test x$gas = xyes
1930 tmake_file=m88k/t-dgux-gas
1932 fixincludes=fixinc.dgux
1934 m88k-dolphin-sysv3*)
1935 tm_file=m88k/dolph.h
1936 extra_parts="crtbegin.o crtend.o"
1937 xm_file="m88k/xm-sysv3.h ${xm_file}"
1938 xmake_file=m88k/x-dolph
1939 if test x$gas = xyes
1941 tmake_file=m88k/t-m88k-gas
1944 m88k-tektronix-sysv3)
1945 tm_file=m88k/tekXD88.h
1946 extra_parts="crtbegin.o crtend.o"
1947 xm_file="m88k/xm-sysv3.h ${xm_file}"
1948 xmake_file=m88k/x-tekXD88
1949 if test x$gas = xyes
1951 tmake_file=m88k/t-m88k-gas
1955 tm_file=m88k/m88k-aout.h
1958 tm_file=m88k/m88k-coff.h
1959 tmake_file=m88k/t-bug
1963 extra_parts="crtbegin.o crtend.o"
1964 if test x$gas = xyes
1966 tmake_file=m88k/t-luna-gas
1968 tmake_file=m88k/t-luna
1972 tm_file=m88k/sysv3.h
1973 extra_parts="crtbegin.o crtend.o"
1974 xm_file="m88k/xm-sysv3.h ${xm_file}"
1975 xmake_file=m88k/x-sysv3
1976 if test x$gas = xyes
1978 tmake_file=m88k/t-m88k-gas
1982 tm_file=m88k/sysv4.h
1983 extra_parts="crtbegin.o crtend.o"
1984 xmake_file=m88k/x-sysv4
1985 tmake_file=m88k/t-sysv4
1987 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1988 tm_file=mips/iris6.h
1989 xm_file=mips/xm-iris6.h
1990 fixincludes=fixinc.irix
1991 xmake_file=mips/x-iris6
1992 tmake_file=mips/t-iris6
1993 # if test x$enable_threads = xyes; then
1994 # thread_file='irix'
1998 tm_file="mips/elf.h libgloss.h"
1999 tmake_file=mips/t-ecoff
2002 extra_parts="crtbegin.o crtend.o"
2003 # thread_file='vxworks'
2005 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2006 tm_file="mips/iris6.h mips/cross64.h"
2008 xm_file="mips/xm-iris5.h"
2009 fixincludes=Makefile.in
2010 xmake_file=mips/x-iris
2011 tmake_file=mips/t-cross64
2012 # See comment in mips/iris[56].h files.
2014 # if test x$enable_threads = xyes; then
2015 # thread_file='irix'
2019 if test x$gas = xyes
2021 if test x$stabs = xyes
2023 tm_file=mips/iris5gdb.h
2025 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2028 tm_file=mips/sni-svr4.h
2031 xmake_file=mips/x-sni-svr4
2032 tmake_file=mips/t-mips-gas
2033 if test x$gnu_ld != xyes
2038 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2039 if test x$gas = xyes
2041 tm_file="mips/iris5.h mips/iris5gas.h"
2042 if test x$stabs = xyes
2044 tm_file="${tm_file} dbx.h"
2047 tm_file=mips/iris5.h
2050 xm_file="mips/xm-iris5.h"
2051 fixincludes=fixinc.irix
2052 xmake_file=mips/x-iris
2053 # mips-tfile doesn't work yet
2054 tmake_file=mips/t-mips-gas
2055 # See comment in mips/iris5.h file.
2057 # if test x$enable_threads = xyes; then
2058 # thread_file='irix'
2061 mips-sgi-irix4loser*) # Mostly like a MIPS.
2062 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2063 if test x$stabs = xyes; then
2064 tm_file="${tm_file} dbx.h"
2067 xmake_file=mips/x-iris
2068 if test x$gas = xyes
2070 tmake_file=mips/t-mips-gas
2072 extra_passes="mips-tfile mips-tdump"
2074 if test x$gnu_ld != xyes
2078 # if test x$enable_threads = xyes; then
2079 # thread_file='irix'
2082 mips-sgi-irix4*) # Mostly like a MIPS.
2083 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2084 if test x$stabs = xyes; then
2085 tm_file="${tm_file} dbx.h"
2088 xmake_file=mips/x-iris
2089 if test x$gas = xyes
2091 tmake_file=mips/t-mips-gas
2093 extra_passes="mips-tfile mips-tdump"
2095 if test x$gnu_ld != xyes
2099 # if test x$enable_threads = xyes; then
2100 # thread_file='irix'
2103 mips-sgi-*) # Mostly like a MIPS.
2104 tm_file="mips/iris3.h ${tm_file}"
2105 if test x$stabs = xyes; then
2106 tm_file="${tm_file} dbx.h"
2109 xmake_file=mips/x-iris3
2110 if test x$gas = xyes
2112 tmake_file=mips/t-mips-gas
2114 extra_passes="mips-tfile mips-tdump"
2116 if test x$gnu_ld != xyes
2121 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2122 tm_file="mips/osfrose.h ${tm_file}"
2123 xmake_file=mips/x-osfrose
2124 tmake_file=mips/t-osfrose
2125 extra_objs=halfpic.o
2128 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2129 tm_file=mips/dec-osf1.h
2130 if test x$stabs = xyes; then
2131 tm_file="${tm_file} dbx.h"
2133 xmake_file=mips/x-dec-osf1
2134 if test x$gas = xyes
2136 tmake_file=mips/t-mips-gas
2138 tmake_file=mips/t-ultrix
2139 extra_passes="mips-tfile mips-tdump"
2141 if test x$gnu_ld != xyes
2146 mips-dec-bsd*) # Decstation running 4.4 BSD
2147 tm_file=mips/dec-bsd.h
2149 if test x$gas = xyes
2151 tmake_file=mips/t-mips-gas
2153 tmake_file=mips/t-ultrix
2154 extra_passes="mips-tfile mips-tdump"
2156 if test x$gnu_ld != xyes
2161 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2162 tm_file=mips/netbsd.h
2163 # On NetBSD, the headers are already okay, except for math.h.
2164 fixincludes=fixinc.wrap
2167 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2168 tm_file="mips/news4.h ${tm_file}"
2169 if test x$stabs = xyes; then
2170 tm_file="${tm_file} dbx.h"
2172 if test x$gas = xyes
2174 tmake_file=mips/t-mips-gas
2176 extra_passes="mips-tfile mips-tdump"
2178 if test x$gnu_ld != xyes
2182 xmake_file=mips/x-sony
2184 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2185 # That is based on svr4.
2186 # t-svr4 is not right because this system doesn't use ELF.
2187 tm_file="mips/news5.h ${tm_file}"
2188 if test x$stabs = xyes; then
2189 tm_file="${tm_file} dbx.h"
2191 xm_file="xm-siglist.h ${xm_file}"
2193 if test x$gas = xyes
2195 tmake_file=mips/t-mips-gas
2197 extra_passes="mips-tfile mips-tdump"
2199 if test x$gnu_ld != xyes
2204 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2205 tm_file="mips/svr4-5.h mips/svr4-t.h"
2206 if test x$stabs = xyes; then
2207 tm_file="${tm_file} dbx.h"
2209 xm_file="xm-siglist.h ${xm_file}"
2211 xmake_file=mips/x-sysv
2212 if test x$gas = xyes
2214 tmake_file=mips/t-mips-gas
2215 extra_parts="crtbegin.o crtend.o"
2217 tmake_file=mips/t-mips
2218 extra_passes="mips-tfile mips-tdump"
2220 if test x$gnu_ld != xyes
2225 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2226 tm_file="mips/ultrix.h ${tm_file}"
2227 if test x$stabs = xyes; then
2228 tm_file="${tm_file} dbx.h"
2230 xmake_file=mips/x-ultrix
2231 if test x$gas = xyes
2233 tmake_file=mips/t-mips-gas
2235 tmake_file=mips/t-ultrix
2236 extra_passes="mips-tfile mips-tdump"
2238 if test x$gnu_ld != xyes
2244 mips-*-riscos[56789]bsd*)
2246 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2247 if test x$stabs = xyes; then
2248 tm_file="${tm_file} dbx.h"
2250 if test x$gas = xyes
2252 tmake_file=mips/t-bsd-gas
2254 tmake_file=mips/t-bsd
2255 extra_passes="mips-tfile mips-tdump"
2257 if test x$gnu_ld != xyes
2263 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2265 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2266 if test x$stabs = xyes; then
2267 tm_file="${tm_file} dbx.h"
2269 if test x$gas = xyes
2271 tmake_file=mips/t-bsd-gas
2273 tmake_file=mips/t-bsd
2274 extra_passes="mips-tfile mips-tdump"
2276 if test x$gnu_ld != xyes
2282 mips-*-riscos[56789]sysv4*)
2284 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2285 if test x$stabs = xyes; then
2286 tm_file="${tm_file} dbx.h"
2288 xm_file="xm-siglist.h ${xm_file}"
2289 xmake_file=mips/x-sysv
2290 if test x$gas = xyes
2292 tmake_file=mips/t-svr4-gas
2294 tmake_file=mips/t-svr4
2295 extra_passes="mips-tfile mips-tdump"
2297 if test x$gnu_ld != xyes
2303 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2305 tm_file="mips/svr4-4.h ${tm_file}"
2306 if test x$stabs = xyes; then
2307 tm_file="${tm_file} dbx.h"
2310 xmake_file=mips/x-sysv
2311 if test x$gas = xyes
2313 tmake_file=mips/t-svr4-gas
2315 tmake_file=mips/t-svr4
2316 extra_passes="mips-tfile mips-tdump"
2318 if test x$gnu_ld != xyes
2324 mips-*-riscos[56789]sysv*)
2326 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2327 if test x$stabs = xyes; then
2328 tm_file="${tm_file} dbx.h"
2331 xmake_file=mips/x-sysv
2332 if test x$gas = xyes
2334 tmake_file=mips/t-svr3-gas
2336 tmake_file=mips/t-svr3
2337 extra_passes="mips-tfile mips-tdump"
2339 if test x$gnu_ld != xyes
2344 mips-*-sysv* | mips-*-riscos*sysv*)
2345 tm_file="mips/svr3-4.h ${tm_file}"
2346 if test x$stabs = xyes; then
2347 tm_file="${tm_file} dbx.h"
2350 xmake_file=mips/x-sysv
2351 if test x$gas = xyes
2353 tmake_file=mips/t-svr3-gas
2355 tmake_file=mips/t-svr3
2356 extra_passes="mips-tfile mips-tdump"
2358 if test x$gnu_ld != xyes
2364 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2366 tm_file=mips/mips-5.h
2367 if test x$stabs = xyes; then
2368 tm_file="${tm_file} dbx.h"
2370 if test x$gas = xyes
2372 tmake_file=mips/t-mips-gas
2374 extra_passes="mips-tfile mips-tdump"
2376 if test x$gnu_ld != xyes
2384 tm_file=mips/ecoffl.h
2385 if test x$stabs = xyes; then
2386 tm_file="${tm_file} dbx.h"
2388 tmake_file=mips/t-ecoff
2391 tm_file="gofast.h mips/ecoff.h"
2392 if test x$stabs = xyes; then
2393 tm_file="${tm_file} dbx.h"
2395 tmake_file=mips/t-ecoff
2398 tm_file="mips/elfl.h libgloss.h"
2399 tmake_file=mips/t-ecoff
2402 tm_file="mips/elf.h libgloss.h"
2403 tmake_file=mips/t-ecoff
2406 tm_file="mips/elfl64.h libgloss.h"
2407 tmake_file=mips/t-ecoff
2409 mips64orionel-*-elf*)
2410 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2411 tmake_file=mips/t-ecoff
2414 tm_file="mips/elf64.h libgloss.h"
2415 tmake_file=mips/t-ecoff
2418 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2419 tmake_file=mips/t-ecoff
2421 mips64orion-*-rtems*)
2422 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2423 tmake_file="mips/t-ecoff t-rtems"
2426 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2427 tmake_file=mips/t-r3900
2430 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2431 tmake_file=mips/t-r3900
2432 # FIXME mips-elf should be fixed to use crtstuff.
2435 mips-*-*) # Default MIPS RISC-OS 4.0.
2436 if test x$stabs = xyes; then
2437 tm_file="${tm_file} dbx.h"
2439 if test x$gas = xyes
2441 tmake_file=mips/t-mips-gas
2443 extra_passes="mips-tfile mips-tdump"
2445 if test x$gnu_ld != xyes
2452 tm_file="mn10200/mn10200.h"
2453 if test x$stabs = xyes
2455 tm_file="${tm_file} dbx.h"
2461 tm_file="mn10300/mn10300.h"
2462 if test x$stabs = xyes
2464 tm_file="${tm_file} dbx.h"
2469 tm_file=ns32k/encore.h
2473 tm_file=ns32k/sequent.h
2477 tm_file=ns32k/tek6100.h
2481 tm_file=ns32k/tek6200.h
2484 # This has not been updated to GCC 2.
2487 # xmake_file=ns32k/x-genix
2488 # tm_file=ns32k/genix.h
2492 tm_file=ns32k/merlin.h
2496 tm_file=ns32k/pc532-mach.h
2500 tm_file=ns32k/pc532-min.h
2501 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2506 tm_file=ns32k/netbsd.h
2507 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2508 # On NetBSD, the headers are already okay, except for math.h.
2509 fixincludes=fixinc.wrap
2513 tm_file="${tm_file} pdp11/2bsd.h"
2519 xmake_file=pyr/x-pyr
2526 xmake_file=romp/x-mach
2531 tm_file=rs6000/beos.h
2532 xm_file=rs6000/xm-beos.h
2533 tmake_file=rs6000/t-beos
2534 xmake_file=rs6000/x-beos
2536 powerpc-*-sysv* | powerpc-*-elf*)
2537 tm_file=rs6000/sysv4.h
2538 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2539 xm_defines="USG POSIX"
2540 extra_headers=ppc-asm.h
2541 if test x$gas = xyes
2543 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2545 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2547 xmake_file=rs6000/x-sysv4
2550 tm_file=rs6000/eabiaix.h
2551 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2552 fixincludes=Makefile.in
2553 extra_headers=ppc-asm.h
2556 tm_file=rs6000/eabisim.h
2557 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2558 fixincludes=Makefile.in
2559 extra_headers=ppc-asm.h
2562 tm_file=rs6000/eabi.h
2563 if test x$gas = xyes
2565 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2567 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2569 fixincludes=Makefile.in
2570 extra_headers=ppc-asm.h
2573 tm_file=rs6000/rtems.h
2574 if test x$gas = xyes
2576 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2578 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2580 fixincludes=Makefile.in
2581 extra_headers=ppc-asm.h
2583 powerpc-*-linux-gnulibc1)
2584 tm_file=rs6000/linux.h
2585 xm_file=rs6000/xm-sysv4.h
2586 out_file=rs6000/rs6000.c
2587 if test x$gas = xyes
2589 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2591 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2594 fixincludes=Makefile.in
2595 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2596 extra_headers=ppc-asm.h
2597 if test x$enable_threads = xyes; then
2601 powerpc-*-linux-gnu*)
2602 tm_file=rs6000/linux.h
2603 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2604 xm_defines="USG ${xm_defines}"
2605 out_file=rs6000/rs6000.c
2606 if test x$gas = xyes
2608 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2610 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2613 fixincludes=Makefile.in
2614 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2615 extra_headers=ppc-asm.h
2616 if test x$enable_threads = xyes; then
2620 powerpc-wrs-vxworks*)
2622 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2623 xm_defines="USG POSIX"
2624 tm_file=rs6000/vxppc.h
2625 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2626 extra_headers=ppc-asm.h
2627 thread_file='vxworks'
2629 powerpcle-*-sysv* | powerpcle-*-elf*)
2630 tm_file=rs6000/sysv4le.h
2631 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2632 xm_defines="USG POSIX"
2633 if test x$gas = xyes
2635 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2637 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2639 xmake_file=rs6000/x-sysv4
2640 extra_headers=ppc-asm.h
2642 powerpcle-*-eabisim*)
2643 tm_file=rs6000/eabilesim.h
2644 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2645 fixincludes=Makefile.in
2646 extra_headers=ppc-asm.h
2649 tm_file=rs6000/eabile.h
2650 if test x$gas = xyes
2652 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2654 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2656 fixincludes=Makefile.in
2657 extra_headers=ppc-asm.h
2659 powerpcle-*-winnt* )
2660 tm_file=rs6000/win-nt.h
2661 tmake_file=rs6000/t-winnt
2663 fixincludes=Makefile.in
2664 if test x$enable_threads = xyes; then
2667 extra_headers=ppc-asm.h
2669 powerpcle-*-pe | powerpcle-*-cygwin32)
2670 tm_file=rs6000/cygwin32.h
2671 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2672 tmake_file=rs6000/t-winnt
2673 xmake_file=rs6000/x-cygwin32
2675 fixincludes=Makefile.in
2676 if test x$enable_threads = xyes; then
2680 extra_headers=ppc-asm.h
2682 powerpcle-*-solaris2*)
2683 tm_file=rs6000/sol2.h
2684 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2685 xm_defines="USG POSIX"
2686 if test x$gas = xyes
2688 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2690 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2692 xmake_file=rs6000/x-sysv4
2697 fixincludes=fixinc.svr4;;
2699 fixincludes=fixinc.wrap;;
2701 extra_headers=ppc-asm.h
2704 rs6000-ibm-aix3.[01]*)
2706 tm_file=rs6000/aix31.h
2707 xmake_file=rs6000/x-aix31
2711 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2713 tm_file=rs6000/aix3newas.h
2714 if test x$host != x$target
2716 tmake_file=rs6000/t-xnewas
2718 tmake_file=rs6000/t-newas
2723 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2725 tm_file=rs6000/aix41.h
2726 if test x$host != x$target
2728 tmake_file=rs6000/t-xnewas
2730 tmake_file=rs6000/t-newas
2732 xmake_file=rs6000/x-aix41
2736 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2738 tm_file=rs6000/aix43.h
2739 if test x$host != x$target
2741 tmake_file=rs6000/t-xaix43
2743 tmake_file=rs6000/t-aix43
2745 xmake_file=rs6000/x-aix43
2749 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2751 tm_file=rs6000/aix43.h
2752 if test x$host != x$target
2754 tmake_file=rs6000/t-xaix43
2756 tmake_file=rs6000/t-aix43
2758 xmake_file=rs6000/x-aix43
2768 tm_file=rs6000/mach.h
2769 xm_file="${xm_file} rs6000/xm-mach.h"
2770 xmake_file=rs6000/x-mach
2774 tm_file=rs6000/lynx.h
2775 xm_file=rs6000/xm-lynx.h
2776 tmake_file=rs6000/t-rs6000
2777 xmake_file=rs6000/x-lynx
2785 tmake_file="sh/t-sh t-rtems"
2786 tm_file=sh/rtemself.h
2790 tmake_file="sh/t-sh t-rtems"
2799 xm_file="xm-alloca.h ${xm_file}"
2802 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2803 tm_file=sparc/vxsparc.h
2804 tmake_file=sparc/t-vxsparc
2806 thread_file='vxworks'
2809 tmake_file=sparc/t-sparcbare
2810 tm_file="sparc/aout.h libgloss.h"
2813 tm_file=sparc/netbsd.h
2814 # On NetBSD, the headers are already okay, except for math.h.
2815 fixincludes=fixinc.wrap
2823 tmake_file=sparc/t-elf
2824 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2828 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2829 xm_file="${xm_file} sparc/xm-linux.h"
2830 tm_file=sparc/linux-aout.h
2832 fixincludes=Makefile.in #On Linux, the headers are ok already.
2835 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2836 xm_file="${xm_file} sparc/xm-linux.h"
2838 tm_file=sparc/linux.h
2839 tmake_file="t-linux t-linux-gnulibc1"
2840 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2841 fixincludes=Makefile.in #On Linux, the headers are ok already.
2844 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2845 xm_file="${xm_file} sparc/xm-linux.h"
2847 tm_file=sparc/linux.h
2848 tmake_file="t-linux"
2849 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2850 fixincludes=Makefile.in #On Linux, the headers are ok already.
2852 if test x$enable_threads = xyes; then
2857 if test x$gas = xyes
2859 tm_file=sparc/lynx.h
2861 tm_file=sparc/lynx-ng.h
2863 xm_file=sparc/xm-lynx.h
2864 tmake_file=sparc/t-sunos41
2868 tmake_file="sparc/t-sparcbare t-rtems"
2869 tm_file=sparc/rtems.h
2871 sparcv9-*-solaris2*)
2872 tm_file=sparc/sol2-sld-64.h
2873 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
2874 xm_defines="USG POSIX"
2875 tmake_file=sparc/t-sol2
2876 xmake_file=sparc/x-sysv4
2877 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2878 fixincludes=fixinc.wrap
2880 if test x${enable_threads} = x ; then
2881 enable_threads=$have_pthread_h
2882 if test x${enable_threads} = x ; then
2883 enable_threads=$have_thread_h
2886 if test x${enable_threads} = xyes ; then
2887 if test x${have_pthread_h} = xyes ; then
2890 thread_file='solaris'
2895 if test x$gnu_ld = xyes
2897 tm_file=sparc/sol2.h
2899 tm_file=sparc/sol2-sld.h
2901 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2902 xm_defines="USG POSIX"
2903 tmake_file=sparc/t-sol2
2904 xmake_file=sparc/x-sysv4
2905 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2910 fixincludes=fixinc.svr4;;
2912 fixincludes=fixinc.wrap;;
2915 if test x${enable_threads} = x; then
2916 enable_threads=$have_pthread_h
2917 if test x${enable_threads} = x; then
2918 enable_threads=$have_thread_h
2921 if test x${enable_threads} = xyes; then
2922 if test x${have_pthread_h} = xyes; then
2925 thread_file='solaris'
2930 tm_file=sparc/sunos4.h
2931 tmake_file=sparc/t-sunos40
2935 tm_file=sparc/sunos4.h
2936 tmake_file=sparc/t-sunos41
2938 if test x$gas = xyes; then
2939 tm_file="${tm_file} sparc/sun4gas.h"
2943 tm_file=sparc/sun4o3.h
2947 tm_file=sparc/sysv4.h
2948 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2949 xm_defines="USG POSIX"
2951 xmake_file=sparc/x-sysv4
2952 extra_parts="crtbegin.o crtend.o"
2955 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2956 xm_defines="USG POSIX"
2957 tm_file=sparc/vxsim.h
2958 tmake_file=sparc/t-vxsparc
2959 xmake_file=sparc/x-sysv4
2962 tm_file="sparc/splet.h libgloss.h"
2963 tmake_file=sparc/t-splet
2966 tm_file="sparc/litecoff.h libgloss.h"
2967 tmake_file=sparc/t-sparclite
2970 tm_file="sparc/lite.h aoutos.h libgloss.h"
2971 tmake_file=sparc/t-sparclite
2974 tmake_file=sparc/t-sp64
2975 tm_file=sparc/sp64-aout.h
2978 tmake_file=sparc/t-sp64
2979 tm_file=sparc/sp64-elf.h
2980 extra_parts="crtbegin.o crtend.o"
2982 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2983 tmake_file=sparc/t-sp64
2984 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2985 tm_file=sparc/linux64.h
2987 fixincludes=Makefile.in # The headers are ok already.
2990 # This hasn't been upgraded to GCC 2.
2991 # tahoe-harris-*) # Harris tahoe, using COFF.
2992 # tm_file=tahoe/harris.h
2994 # tahoe-*-bsd*) # tahoe running BSD
2996 thumb-*-coff* | thumbel-*-coff*)
2998 out_file=arm/thumb.c
2999 xm_file=arm/xm-thumb.h
3000 md_file=arm/thumb.md
3001 tmake_file=arm/t-thumb
3002 fixincludes=Makefile.in # There is nothing to fix
3004 # This hasn't been upgraded to GCC 2.
3011 tm_file="v850/v850.h"
3012 xm_file="v850/xm-v850.h"
3013 tmake_file=v850/t-v850
3014 if test x$stabs = xyes
3016 tm_file="${tm_file} dbx.h"
3020 vax-*-bsd*) # vaxen running BSD
3024 vax-*-sysv*) # vaxen running system V
3025 tm_file="${tm_file} vax/vaxv.h"
3030 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3031 # On NetBSD, the headers are already okay, except for math.h.
3032 fixincludes=fixinc.wrap
3036 vax-*-ultrix*) # vaxen running ultrix
3037 tm_file="${tm_file} vax/ultrix.h"
3041 vax-*-vms*) # vaxen running VMS
3042 xm_file=vax/xm-vms.h
3046 vax-*-*) # vax default entry
3050 xm_file="${xm_file} xm-svr3"
3054 echo "Configuration $machine not supported" 1>&2
3061 ;; # Existing GNU/Linux systems do not use the GNU setup.
3063 # On the GNU system, the setup is just about the same on
3064 # each different CPU. The specific machines that GNU
3065 # supports are matched above and just set $cpu_type.
3066 xm_file="xm-gnu.h ${xm_file}"
3067 tm_file=${cpu_type}/gnu.h
3068 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3069 # GNU always uses ELF.
3071 # GNU tools are the only tools.
3074 # On GNU, the headers are already okay.
3075 fixincludes=Makefile.in
3076 xmake_file=x-linux # These details are the same as Linux.
3077 tmake_file=t-gnu # These are not.
3080 fixincludes=fixinc.svr4
3081 xmake_try_sysv=x-sysv
3082 install_headers_dir=install-headers-cpio
3085 install_headers_dir=install-headers-cpio
3089 # Distinguish i[34567]86
3090 # Also, do not run mips-tfile on MIPS if using gas.
3091 # Process --with-cpu= for PowerPC/rs6000
3092 target_cpu_default2=
3095 target_cpu_default2=1
3098 target_cpu_default2=2
3100 i686-*-* | i786-*-*)
3101 target_cpu_default2=3
3106 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3109 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3112 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3115 target_cpu_default2="MASK_CPU_EV5"
3119 if test x$gas = xyes
3121 if test "$target_cpu_default2" = ""
3123 target_cpu_default2="MASK_GAS"
3125 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3130 case "x$with_cpu" in
3133 target_cpu_default2="TARGET_CPU_generic"
3136 # Distinguish cores, and major variants
3137 # arm7m doesn't exist, but D & I don't affect code
3138 xarm[23678] | xarm250 | xarm[67][01]0 \
3139 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3140 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3141 | xstrongarm | xstrongarm110)
3142 target_cpu_default2="TARGET_CPU_$with_cpu"
3146 echo "--with-cpu must be passed a value" 1>&2
3151 if test x$pass2done = xyes
3153 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3160 mips*-*-ecoff* | mips*-*-elf*)
3161 if test x$gas = xyes
3163 if test x$gnu_ld = xyes
3165 target_cpu_default2=20
3167 target_cpu_default2=16
3172 if test x$gas = xyes
3174 target_cpu_default2=16
3177 powerpc*-*-* | rs6000-*-*)
3178 case "x$with_cpu" in
3182 xcommon | xpower | xpower2 | xpowerpc | xrios \
3183 | xrios1 | xrios2 | xrsc | xrsc1 \
3184 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3185 | x403 | x505 | x801 | x821 | x823 | x860)
3186 target_cpu_default2="\"$with_cpu\""
3190 echo "--with-cpu must be passed a value" 1>&2
3195 if test x$pass2done = xyes
3197 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3204 case ".$with_cpu" in
3206 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3208 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3209 target_cpu_default2="TARGET_CPU_$with_cpu"
3212 if test x$pass2done = xyes
3214 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3222 if test "$target_cpu_default2" != ""
3224 if test "$target_cpu_default" != ""
3226 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3228 target_cpu_default=$target_cpu_default2
3232 # No need for collect2 if we have the GNU linker.
3233 # Actually, there is now; GNU ld doesn't handle the EH info or
3234 # collecting for shared libraries.
3241 # Save data on machine being used to compile GCC in build_xm_file.
3242 # Save data on host machine in vars host_xm_file and host_xmake_file.
3243 if test x$pass1done = x
3245 if test x"$xm_file" = x
3246 then build_xm_file=$cpu_type/xm-$cpu_type.h
3247 else build_xm_file=$xm_file
3249 build_xm_defines=$xm_defines
3250 build_install_headers_dir=$install_headers_dir
3251 build_exeext=$exeext
3254 if test x$pass2done = x
3256 if test x"$xm_file" = x
3257 then host_xm_file=$cpu_type/xm-$cpu_type.h
3258 else host_xm_file=$xm_file
3260 host_xm_defines=$xm_defines
3261 if test x"$xmake_file" = x
3262 then xmake_file=$cpu_type/x-$cpu_type
3264 host_xmake_file="$xmake_file"
3265 host_truncate_target=$truncate_target
3266 host_extra_gcc_objs=$extra_gcc_objs
3267 host_extra_objs=$extra_host_objs
3274 extra_objs="${host_extra_objs} ${extra_objs}"
3276 # Default the target-machine variables that were not explicitly set.
3277 if test x"$tm_file" = x
3278 then tm_file=$cpu_type/$cpu_type.h; fi
3280 if test x$extra_headers = x
3281 then extra_headers=; fi
3283 if test x"$xm_file" = x
3284 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3286 if test x$md_file = x
3287 then md_file=$cpu_type/$cpu_type.md; fi
3289 if test x$out_file = x
3290 then out_file=$cpu_type/$cpu_type.c; fi
3292 if test x"$tmake_file" = x
3293 then tmake_file=$cpu_type/t-$cpu_type
3296 if test x$float_format = x
3297 then float_format=i64
3300 if test x$enable_haifa = x
3303 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3308 # Say what files are being used for the output code and MD file.
3309 echo "Using \`$srcdir/config/$out_file' to output insns."
3310 echo "Using \`$srcdir/config/$md_file' as machine description file."
3313 for f in $tm_file; do
3316 if test $count = ax; then
3317 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3319 echo "Using the following target machine macro files:"
3320 for f in $tm_file; do
3321 echo " $srcdir/config/$f"
3326 for f in $host_xm_file; do
3329 if test $count = ax; then
3330 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3332 echo "Using the following host machine macro files:"
3333 for f in $host_xm_file; do
3334 echo " $srcdir/config/$f"
3338 if test "$host_xm_file" != "$build_xm_file"; then
3340 for f in $build_xm_file; do
3343 if test $count = ax; then
3344 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3346 echo "Using the following build machine macro files:"
3347 for f in $build_xm_file; do
3348 echo " $srcdir/config/$f"
3353 if test x$thread_file = x; then
3354 if test x$target_thread_file != x; then
3355 thread_file=$target_thread_file
3357 thread_file='single'
3361 # Set up the header files.
3362 # $links is the list of header files to create.
3363 # $vars is the list of shell variables with file names to include.
3364 # auto-host.h is the file containing items generated by autoconf and is
3365 # the first file included by config.h.
3367 host_xm_file="auto-host.h ${host_xm_file}"
3369 # If host=build, it is correct to have hconfig include auto-host.h
3370 # as well. If host!=build, we are in error and need to do more
3371 # work to find out the build config parameters.
3372 if test x$host = x$build
3374 build_xm_file="auto-host.h ${build_xm_file}"
3376 # We create a subdir, then run autoconf in the subdir.
3377 # To prevent recursion we set host and build for the new
3378 # invocation of configure to the build for this invocation
3385 /*) realsrcdir=${srcdir};;
3386 *) realsrcdir=../${srcdir};;
3388 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3389 --target=$target --host=$build --build=$build
3391 # We just finished tests for the build machine, so rename
3392 # the file auto-build.h in the gcc directory.
3393 mv auto-host.h ../auto-build.h
3396 build_xm_file="auto-build.h ${build_xm_file}"
3399 vars="host_xm_file tm_file xm_file build_xm_file"
3400 links="config.h tm.h tconfig.h hconfig.h"
3401 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3404 if test -f config.status; then mv -f config.status config.bak; fi
3407 while test -n "$vars"
3409 set $vars; var=$1; shift; vars=$*
3410 set $links; link=$1; shift; links=$*
3411 set $defines; define=$1; shift; defines=$*
3415 # Define TARGET_CPU_DEFAULT if the system wants one.
3416 # This substitutes for lots of *.h files.
3417 if test "$target_cpu_default" != "" -a $link = tm.h
3419 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3422 for file in `eval echo '$'$var`; do
3423 echo "#include \"$file\"" >>$link
3426 for def in `eval echo '$'$define`; do
3427 echo "#ifndef $def" >>$link
3428 echo "#define $def" >>$link
3429 echo "#endif" >>$link
3433 # Truncate the target if necessary
3434 if test x$host_truncate_target != x; then
3435 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3438 # Get the version trigger filename from the toplevel
3439 if test "${with_gcc_version_trigger+set}" = set; then
3440 gcc_version_trigger=$with_gcc_version_trigger
3442 gcc_version_trigger=${srcdir}/version.c
3445 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3448 # Get an absolute path to the GCC top-level source directory
3454 # Conditionalize the makefile for this host machine.
3455 # Make-host contains the concatenation of all host makefile fragments
3456 # [there can be more than one]. This file is built by configure.frag.
3457 host_overrides=Make-host
3458 dep_host_xmake_file=
3459 for f in .. ${host_xmake_file}
3461 if test -f ${srcdir}/config/$f
3463 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3467 # Conditionalize the makefile for this target machine.
3468 # Make-target contains the concatenation of all host makefile fragments
3469 # [there can be more than one]. This file is built by configure.frag.
3470 target_overrides=Make-target
3472 for f in .. ${tmake_file}
3474 if test -f ${srcdir}/config/$f
3476 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3480 # If the host doesn't support symlinks, modify CC in
3481 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3482 # Otherwise, we can use "CC=$(CC)".
3484 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3486 cc_set_by_configure="\$(CC)"
3487 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3490 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3492 symbolic_link="cp -p"
3496 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3497 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3501 out_object_file=`basename $out_file .c`.o
3504 for f in $tm_file; do
3505 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3509 for f in $host_xm_file; do
3510 if test $f != "auto-host.h"; then
3511 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3513 host_xm_file_list="${host_xm_file_list} auto-host.h"
3518 for f in $build_xm_file; do
3519 if test $f != "auto-build.h"; then
3520 if test $f != "auto-host.h"; then
3521 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3523 build_xm_file_list="${build_xm_file_list} auto-host.h"
3526 build_xm_file_list="${build_xm_file_list} auto-build.h"
3530 # Define macro CROSS_COMPILE in compilation
3531 # if this is a cross-compiler.
3532 # Also use all.cross instead of all.internal
3533 # and add cross-make to Makefile.
3534 cross_overrides="/dev/null"
3535 if test x$host != x$target
3537 cross_defines="CROSS=-DCROSS_COMPILE"
3538 cross_overrides="${topdir}/cross-make"
3541 # When building gcc with a cross-compiler, we need to fix a few things.
3542 # This must come after cross-make as we want all.build to override
3544 build_overrides="/dev/null"
3545 if test x$build != x$host
3547 build_overrides="${topdir}/build-make"
3550 # Expand extra_headers to include complete path.
3551 # This substitutes for lots of t-* files.
3553 if test "x$extra_headers" = x
3556 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3557 for file in $extra_headers;
3559 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3563 if test x$use_collect2 = xno; then
3567 # Add a definition of USE_COLLECT2 if system wants one.
3568 # Also tell toplev.c what to do.
3569 # This substitutes for lots of t-* files.
3570 if test x$use_collect2 = x
3575 will_use_collect2="collect2"
3576 maybe_use_collect2="-DUSE_COLLECT2"
3580 # Set MD_DEPS if the real md file is in md.pre-cpp.
3581 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3582 # for line oriented comments, so we must always use a GNU cpp. If
3583 # building gcc with a cross compiler, use the cross compiler just
3584 # built. Otherwise, we can use the cpp just built.
3586 if test "x$md_cppflags" = x
3588 md_file_sub=$srcdir/config/$md_file
3593 # If we have gas in the build tree, make a link to it.
3594 if test -f ../gas/Makefile; then
3595 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3598 # If we have nm in the build tree, make a link to it.
3599 if test -f ../binutils/Makefile; then
3600 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3603 # If we have ld in the build tree, make a link to it.
3604 if test -f ../ld/Makefile; then
3605 # if test x$use_collect2 = x; then
3606 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3608 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3612 # Figure out what assembler alignment features are present.
3613 AC_MSG_CHECKING(assembler alignment features)
3615 gcc_cv_as_alignment_features=
3616 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3617 if test -x as$host_exeext; then
3618 # Build using assembler in the current directory.
3619 gcc_cv_as=./as$host_exeext
3620 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3621 # Single tree build which includes gas.
3622 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3625 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3627 if test x$gcc_cv_gas_version != x; then
3632 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3633 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3635 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3636 # Gas version 2.6 and later support for .balign and .p2align.
3637 # bytes to skip when using .p2align.
3638 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
3639 gcc_cv_as_alignment_features=".balign and .p2align"
3640 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3642 # Gas version 2.8 and later support specifying the maximum
3643 # bytes to skip when using .p2align.
3644 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
3645 gcc_cv_as_alignment_features=".p2align including maximum skip"
3646 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3649 elif test x$host = x$target; then
3651 gcc_cv_as=as$host_exeext
3653 if test x$gcc_cv_as != x; then
3654 # Check if we have .balign and .p2align
3655 echo ".balign 4" > conftest.s
3656 echo ".p2align 2" >> conftest.s
3657 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3658 gcc_cv_as_alignment_features=".balign and .p2align"
3659 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3661 rm -f conftest.s conftest.o
3662 # Check if specifying the maximum bytes to skip when
3663 # using .p2align is supported.
3664 echo ".p2align 4,,7" > conftest.s
3665 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3666 gcc_cv_as_alignment_features=".p2align including maximum skip"
3667 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3669 rm -f conftest.s conftest.o
3671 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3673 AC_MSG_CHECKING(assembler subsection support)
3674 gcc_cv_as_subsections=
3675 if test x$gcc_cv_as != x; then
3676 # Check if we have .subsection
3677 echo ".subsection 1" > conftest.s
3678 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3679 gcc_cv_as_subsections=".subsection"
3680 if test -x nm$host_exeext; then
3681 gcc_cv_nm=./nm$host_exeext
3682 elif test x$host = x$target; then
3684 gcc_cv_nm=nm$host_exeext
3686 if test x$gcc_cv_nm != x; then
3687 cat > conftest.s <<EOF
3688 conftest_label1: .word 0
3690 conftest_label2: .word 0
3693 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3694 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3695 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3696 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3699 gcc_cv_as_subsections="working .subsection -1"
3700 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3705 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3707 AC_MSG_RESULT($gcc_cv_as_subsections)
3709 # Figure out what language subdirectories are present.
3711 for lang in ${srcdir}/*/config-lang.in ..
3715 # The odd quoting in the next line works around
3716 # an apparent bug in bash 1.12 on linux.
3718 ${srcdir}/ada/config-lang.in)
3719 if test x$gnat = xyes ; then
3720 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3723 ${srcdir}/[*]/config-lang.in) ;;
3724 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3729 # Make gthr-default.h if we have a thread file.
3731 if test $thread_file != single; then
3732 rm -f gthr-default.h
3733 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3734 gthread_flags=-DHAVE_GTHR_DEFAULT
3736 AC_SUBST(gthread_flags)
3738 # Make empty files to contain the specs and options for each language.
3739 # Then add #include lines to for a compiler that has specs and/or options.
3744 rm -f specs.h options.h gencheck.h
3745 touch specs.h options.h gencheck.h
3746 for subdir in . $subdirs
3748 if test -f $srcdir/$subdir/lang-specs.h; then
3749 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3750 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3752 if test -f $srcdir/$subdir/lang-options.h; then
3753 echo "#include \"$subdir/lang-options.h\"" >>options.h
3754 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3756 if test -f $srcdir/$subdir/$subdir-tree.def; then
3757 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3758 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3762 # These (without "all_") are set in each config-lang.in.
3763 # `language' must be a single word so is spelled singularly.
3769 all_outputs=Makefile
3770 # List of language makefile fragments.
3775 # Add the language fragments.
3776 # Languages are added via two mechanisms. Some information must be
3777 # recorded in makefile variables, these are defined in config-lang.in.
3778 # We accumulate them and plug them into the main Makefile.
3779 # The other mechanism is a set of hooks for each of the main targets
3780 # like `clean', `install', etc.
3782 language_fragments="Make-lang"
3783 language_hooks="Make-hooks"
3786 for s in .. $subdirs
3798 . ${srcdir}/$s/config-lang.in
3799 if test "x$language" = x
3801 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3804 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3805 all_languages="$all_languages $language"
3806 if test "x$boot_language" = xyes
3808 all_boot_languages="$all_boot_languages $language"
3810 all_compilers="$all_compilers $compilers"
3811 all_stagestuff="$all_stagestuff $stagestuff"
3812 all_diff_excludes="$all_diff_excludes $diff_excludes"
3813 all_headers="$all_headers $headers"
3814 all_outputs="$all_outputs $outputs"
3815 if test x$outputs = x
3817 oldstyle_subdirs="$oldstyle_subdirs $s"
3819 all_lib2funcs="$all_lib2funcs $lib2funcs"
3823 # Since we can't use `::' targets, we link each language in
3824 # with a set of hooks, reached indirectly via lang.${target}.
3828 target_list="all.build all.cross start.encap rest.encap \
3830 install-normal install-common install-info install-man \
3832 mostlyclean clean distclean extraclean maintainer-clean \
3833 stage1 stage2 stage3 stage4"
3834 for t in $target_list
3837 for l in .. $all_languages
3839 if test $l != ".."; then
3843 echo "lang.$t: $x" >> Make-hooks
3846 # If we're not building in srcdir, create .gdbinit.
3848 if test ! -f Makefile.in; then
3849 echo "dir ." > .gdbinit
3850 echo "dir ${srcdir}" >> .gdbinit
3851 if test x$gdb_needs_out_file_path = xyes
3853 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3855 if test "x$subdirs" != x; then
3858 echo "dir ${srcdir}/$s" >> .gdbinit
3861 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3864 # Define variables host_canonical and build_canonical
3865 # because some Cygnus local changes in the Makefile depend on them.
3866 build_canonical=${build}
3867 host_canonical=${host}
3869 if test "${host}" != "${target}" ; then
3870 target_subdir=${target}/
3872 AC_SUBST(build_canonical)
3873 AC_SUBST(host_canonical)
3874 AC_SUBST(target_subdir)
3876 # If this is using newlib, then define inhibit_libc in
3877 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3878 # libgcc.a, but that's OK because newib should have its own version of
3881 if test x$with_newlib = xyes; then
3882 inhibit_libc=-Dinhibit_libc
3884 AC_SUBST(inhibit_libc)
3886 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3889 if test x$enable_haifa = xyes; then
3890 echo "Using the Haifa scheduler."
3892 sched_cflags=-DHAIFA
3894 AC_SUBST(sched_prefix)
3895 AC_SUBST(sched_cflags)
3896 if test x$enable_haifa != x; then
3897 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3898 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3906 # Warn if using init_priority.
3907 AC_MSG_CHECKING(whether to enable init_priority by default)
3908 if test x$enable_init_priority != xyes; then
3909 enable_init_priority=no
3911 AC_MSG_RESULT($enable_init_priority)
3913 # Nothing to do for FLOAT_H, float_format already handled.
3917 # Process the language and host/target makefile fragments.
3918 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3920 # Substitute configuration variables
3922 AC_SUBST(all_languages)
3923 AC_SUBST(all_boot_languages)
3924 AC_SUBST(all_compilers)
3925 AC_SUBST(all_lang_makefiles)
3926 AC_SUBST(all_stagestuff)
3927 AC_SUBST(all_diff_excludes)
3928 AC_SUBST(all_lib2funcs)
3929 AC_SUBST(all_headers)
3931 AC_SUBST(extra_passes)
3932 AC_SUBST(extra_programs)
3933 AC_SUBST(extra_parts)
3934 AC_SUBST(extra_c_objs)
3935 AC_SUBST(extra_cxx_objs)
3936 AC_SUBST(extra_cpp_objs)
3937 AC_SUBST(extra_c_flags)
3938 AC_SUBST(extra_objs)
3939 AC_SUBST(host_extra_gcc_objs)
3940 AC_SUBST(extra_headers_list)
3941 AC_SUBST(dep_host_xmake_file)
3942 AC_SUBST(dep_tmake_file)
3944 AC_SUBST(out_object_file)
3946 AC_SUBST(tm_file_list)
3947 AC_SUBST(build_xm_file_list)
3948 AC_SUBST(host_xm_file_list)
3949 AC_SUBST(lang_specs_files)
3950 AC_SUBST(lang_options_files)
3951 AC_SUBST(lang_tree_files)
3952 AC_SUBST(thread_file)
3953 AC_SUBST(objc_boehm_gc)
3954 AC_SUBST(gcc_version)
3955 AC_SUBST(gcc_version_trigger)
3956 AC_SUBST(local_prefix)
3957 AC_SUBST(gxx_include_dir)
3958 AC_SUBST(fixincludes)
3959 AC_SUBST(build_install_headers_dir)
3960 AC_SUBST(build_exeext)
3961 AC_SUBST(host_exeext)
3962 AC_SUBST(float_format)
3963 AC_SUBST(will_use_collect2)
3964 AC_SUBST(maybe_use_collect2)
3965 AC_SUBST(cc_set_by_configure)
3966 AC_SUBST(stage_prefix_set_by_configure)
3968 AC_SUBST(symbolic_link)
3970 AC_SUBST_FILE(target_overrides)
3971 AC_SUBST_FILE(host_overrides)
3972 AC_SUBST(cross_defines)
3973 AC_SUBST_FILE(cross_overrides)
3974 AC_SUBST_FILE(build_overrides)
3975 AC_SUBST_FILE(language_fragments)
3976 AC_SUBST_FILE(language_hooks)
3978 # Echo that links are built
3979 if test x$host = x$target
3987 if test x$host != x$build
3989 str3=" on a $build system"
3992 if test "x$str2" != x || test "x$str3" != x
3997 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3999 if test "x$str2" != x || test "x$str3" != x
4001 echo " ${str2}${str3}." 1>&2
4004 # Truncate the target if necessary
4005 if test x$host_truncate_target != x; then
4006 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4009 # Configure the subdirectories
4010 # AC_CONFIG_SUBDIRS($subdirs)
4012 # Create the Makefile
4013 # and configure language subdirectories
4014 AC_OUTPUT($all_outputs,
4016 . $srcdir/configure.lang
4017 case x$CONFIG_HEADERS in
4018 xauto-host.h:config.in)
4021 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4022 # bootstrapping and the installation procedure can still use
4023 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4024 # FLAGS_TO_PASS has been modified to solve the problem there.
4025 # This is virtually a duplicate of what happens in configure.lang; we do
4026 # an extra check to make sure this only happens if ln -s can be used.
4027 if test "$symbolic_link" = "ln -s"; then
4028 for d in .. ${subdirs} ; do
4029 if test $d != ..; then
4032 for t in stage1 stage2 stage3 stage4 include
4035 $symbolic_link ../$t $t 2>/dev/null
4046 target_alias='${target_alias}'
4048 subdirs='${subdirs}'
4049 oldstyle_subdirs='${oldstyle_subdirs}'
4050 symbolic_link='${symbolic_link}'
4051 program_transform_set='${program_transform_set}'
4052 program_transform_name='${program_transform_name}'
4053 dep_host_xmake_file='${dep_host_xmake_file}'
4054 host_xmake_file='${host_xmake_file}'
4055 dep_tmake_file='${dep_tmake_file}'
4056 tmake_file='${tmake_file}'
4057 thread_file='${thread_file}'
4058 gcc_version='${gcc_version}'
4059 gcc_version_trigger='${gcc_version_trigger}'
4060 local_prefix='${local_prefix}'
4061 build_install_headers_dir='${build_install_headers_dir}'
4062 build_exeext='${build_exeext}'
4063 host_exeext='${host_exeext}'
4064 out_file='${out_file}'
4065 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4066 SET_MAKE='${SET_MAKE}'
4067 target_list='${target_list}'
4068 target_overrides='${target_overrides}'
4069 host_overrides='${host_overrides}'
4070 cross_defines='${cross_defines}'
4071 cross_overrides='${cross_overrides}'
4072 build_overrides='${build_overrides}'