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-ld arrange to use the specified ld (full pathname).],
97 if test x"${LD+set}" = x"set"; then
98 if test ! -x "$LD"; then
99 AC_MSG_WARN([cannot execute: $LD: check --with-ld or env. var. LD])
100 elif test "GNU" = `$LD -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
103 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$LD")
108 [ --with-gnu-as arrange to work with GNU as.],
109 gas_flag="$with_gnu_as",
113 [ --with-as arrange to use the specified as (full pathname).],
115 # Ignore any non-absolute value which comes from ${GCC_FLAGS_TO_PASS}.
118 if test ! -x "$AS"; then
119 AC_MSG_WARN([cannot execute: $AS: check --with-as or env. var. AS])
120 elif test "GNU" = `$AS -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
123 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$AS")
129 [ --with-stabs arrange to use stabs instead of host debug format.],
135 [ --with-elf arrange to use ELF instead of host debug format.],
139 # Specify the local prefix
141 AC_ARG_WITH(local-prefix,
142 [ --with-local-prefix=DIR specifies directory to put local include.],
143 [case "${withval}" in
144 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
146 *) local_prefix=$with_local_prefix ;;
149 # Default local prefix if it is empty
150 if test x$local_prefix = x; then
151 local_prefix=/usr/local
155 # Specify the g++ header file directory
156 AC_ARG_WITH(gxx-include-dir,
157 [ --with-gxx-include-dir=DIR
158 specifies directory to put g++ header files.],
159 [case "${withval}" in
160 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
162 *) gxx_include_dir=$with_gxx_include_dir ;;
165 if test x${gxx_include_dir} = x; then
166 if test x${enable_version_specific_runtime_libs} = xyes; then
167 gxx_include_dir='${libsubdir}/include/g++'
169 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
170 changequote(<<, >>)dnl
171 gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
176 # Enable expensive internal checks
177 AC_ARG_ENABLE(checking,
178 [ --enable-checking enable expensive run-time checks.],
179 [case "${enableval}" in
180 yes) AC_DEFINE(ENABLE_CHECKING) ;;
182 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
185 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
187 AC_ARG_ENABLE(cpplib,
188 [ --enable-cpplib use cpplib for the C preprocessor.],
189 if test x$enable_cpplib != xno; then
193 # Link cpplib into the compiler proper, for C/C++/ObjC.
194 AC_ARG_ENABLE(c-cpplib,
195 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
196 (implies --enable-cpplib).],
197 if test x$enable_c_cpplib != xno; then
198 extra_c_objs="${extra_c_objs} libcpp.a"
199 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
200 extra_c_flags=-DUSE_CPPLIB=1
204 # Enable Multibyte Characters for C/C++
205 AC_ARG_ENABLE(c-mbchar,
206 [ --enable-c-mbchar enable multibyte characters for C and C++.],
207 if test x$enable_c_mbchar != xno; then
208 extra_c_flags=-DMULTIBYTE_CHARS=1
211 # Enable Haifa scheduler.
213 [ --enable-haifa use the experimental scheduler.
214 --disable-haifa don't use the experimental scheduler for the
215 targets which normally enable it.])
218 # This is a work in progress...
219 AC_ARG_WITH(fast-fixincludes,
220 [ --with-fast-fixincludes use a faster fixinclude program (experimental)],
221 fast_fixinc="$with_fast_fixincludes",
224 # Enable init_priority.
225 AC_ARG_ENABLE(init-priority,
226 [ --enable-init-priority use attributes to assign initialization order
228 --disable-init-priority conform to ISO C++ rules for ordering static objects
229 (i.e. initialized in order of declaration). ],
230 if test x$enable_init_priority != xno; then
231 extra_c_flags=-DUSE_INIT_PRIORITY
235 # Pass with no value to take the default
236 # Pass with a value to specify a thread package
237 AC_ARG_ENABLE(threads,
238 [ --enable-threads enable thread usage for target GCC.
239 --enable-threads=LIB use LIB thread package for target GCC.],
240 if test x$enable_threads = xno; then
245 enable_threads_flag=$enable_threads
246 # Check if a valid thread package
247 case x${enable_threads_flag} in
250 target_thread_file='single'
254 target_thread_file=''
256 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
257 xsolaris | xwin32 | xdce | xvxworks)
258 target_thread_file=$enable_threads_flag
261 echo "$enable_threads is an unknown thread package" 1>&2
266 AC_ARG_ENABLE(objc-gc,
267 [ --enable-objc-gc enable the use of Boehm's garbage collector with
268 the GNU Objective-C runtime.],
269 if [[[ x$enable_objc_gc = xno ]]]; then
276 # Determine the host, build, and target systems
279 # Find the native compiler
282 # If the native compiler is GCC, we can enable warnings even in stage1.
283 # That's useful for people building cross-compilers, or just running a
285 if test "x$GCC" = "xyes"; then
286 stage1_warn_cflags='$(WARN_CFLAGS)'
288 stage1_warn_cflags=""
290 AC_SUBST(stage1_warn_cflags)
294 AC_MSG_CHECKING([whether a default assembler was specified])
295 if test x"${AS+set}" = x"set"; then
296 if test x"$with_gas" = x"no"; then
297 AC_MSG_RESULT([yes ($AS)])
299 AC_MSG_RESULT([yes ($AS - GNU as)])
305 AC_MSG_CHECKING([whether a default linker was specified])
306 if test x"${LD+set}" = x"set"; then
307 if test x"$with_gnu_ld" = x"no"; then
308 AC_MSG_RESULT([yes ($LD)])
310 AC_MSG_RESULT([yes ($LD - GNU ld)])
316 # Find some useful tools
329 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)
331 # Check for thread headers.
332 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
333 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
335 # See if GNAT has been installed
336 AC_CHECK_PROG(gnat, gnatbind, yes, no)
338 # See if the system preprocessor understands the ANSI C preprocessor
339 # stringification operator.
340 AC_MSG_CHECKING(whether cpp understands the stringify operator)
341 AC_CACHE_VAL(gcc_cv_c_have_stringify,
344 char *test = S(foo);],
345 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
346 AC_MSG_RESULT($gcc_cv_c_have_stringify)
347 if test $gcc_cv_c_have_stringify = yes; then
348 AC_DEFINE(HAVE_CPP_STRINGIFY)
351 # Use <inttypes.h> only if it exists,
352 # doesn't clash with <sys/types.h>, and declares intmax_t.
353 AC_MSG_CHECKING(for inttypes.h)
354 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
356 [#include <sys/types.h>
357 #include <inttypes.h>],
359 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
360 gcc_cv_header_inttypes_h=yes],
361 gcc_cv_header_inttypes_h=no)])
362 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
364 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
365 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
366 sysconf isascii gettimeofday strsignal)
368 # Make sure wchar_t is available
369 #AC_CHECK_TYPE(wchar_t, unsigned int)
371 GCC_FUNC_VFPRINTF_DOPRNT
374 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
375 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
378 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
379 #include <sys/types.h>
380 #ifdef HAVE_SYS_RESOURCE_H
381 #include <sys/resource.h>
395 build_install_headers_dir=install-headers-tar
400 host_truncate_target=
403 # Decode the host machine, then the target machine.
404 # For the host machine, we save the xm_file variable as host_xm_file;
405 # then we decode the target machine and forget everything else
406 # that came from the host machine.
407 for machine in $build $host $target; do
421 # Set this to force installation and use of collect2.
423 # Set this to override the default target model.
425 # Set this to control which fixincludes program to use.
426 if test x$fast_fixinc != xyes; then
427 fixincludes=fixincludes
428 else fixincludes=fixinc.sh ; fi
429 # Set this to control how the header file directory is installed.
430 install_headers_dir=install-headers-tar
431 # Set this to a non-empty list of args to pass to cpp if the target
432 # wants its .md file passed through cpp.
434 # Set this if directory names should be truncated to 14 characters.
436 # Set this if gdb needs a dir command with `dirname $out_file`
437 gdb_needs_out_file_path=
438 # Set this if the build machine requires executables to have a
441 # Set this to control which thread package will be used.
443 # Reinitialize these from the flag values every loop pass, since some
444 # configure entries modify them.
446 gnu_ld="$gnu_ld_flag"
447 enable_threads=$enable_threads_flag
449 # Set default cpu_type, tm_file and xm_file so it can be updated in
450 # each machine entry.
451 cpu_type=`echo $machine | sed 's/-.*$//'`
487 tm_file=${cpu_type}/${cpu_type}.h
488 xm_file=${cpu_type}/xm-${cpu_type}.h
490 # Set the default macros to define for GNU/Linux systems.
493 xm_defines="HAVE_ATEXIT POSIX BSTRING"
498 # Support site-specific machine types.
500 cpu_type=`echo $machine | sed -e 's/-.*//'`
501 rest=`echo $machine | sed -e "s/$cpu_type-//"`
502 xm_file=${cpu_type}/xm-$rest.h
503 tm_file=${cpu_type}/$rest.h
504 if test -f $srcdir/config/${cpu_type}/x-$rest; \
505 then xmake_file=${cpu_type}/x-$rest; \
508 if test -f $srcdir/config/${cpu_type}/t-$rest; \
509 then tmake_file=${cpu_type}/t-$rest; \
515 a29k-*-bsd* | a29k-*-sym1*)
516 tm_file="${tm_file} a29k/unix.h"
518 xmake_file=a29k/x-unix
521 a29k-*-udi | a29k-*-coff)
522 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
523 tmake_file=a29k/t-a29kbare
526 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
527 tmake_file=a29k/t-vx29k
528 extra_parts="crtbegin.o crtend.o"
529 thread_file='vxworks'
531 a29k-*-*) # Default a29k environment.
534 alpha*-*-linux-gnuecoff*)
535 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
536 target_cpu_default="MASK_GAS"
541 alpha*-*-linux-gnulibc1*)
542 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
543 target_cpu_default="MASK_GAS"
544 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
545 extra_parts="crtbegin.o crtend.o"
546 fixincludes=fixinc.wrap
549 if test x$enable_threads = xyes; then
554 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
555 target_cpu_default="MASK_GAS"
556 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
557 extra_parts="crtbegin.o crtend.o"
559 fixincludes=Makefile.in
561 if test x$enable_threads = xyes; then
566 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
567 target_cpu_default="MASK_GAS"
568 tmake_file="alpha/t-crtbe"
569 extra_parts="crtbegin.o crtend.o"
571 fixincludes=fixinc.wrap
576 if test x$stabs = xyes
578 tm_file="${tm_file} dbx.h"
580 if test x$gas != xyes
582 extra_passes="mips-tfile mips-tdump"
587 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
592 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
595 tm_file="${tm_file} alpha/osf.h"
596 # Some versions of OSF4 (specifically X4.0-9 296.7) have
597 # a broken tar, so we use cpio instead.
598 install_headers_dir=install-headers-cpio
603 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
605 target_cpu_default=MASK_SUPPORT_ARCH
610 tm_file="${tm_file} dbx.h alpha/vxworks.h"
613 extra_passes="mips-tfile mips-tdump"
618 tm_file="${tm_file} alpha/win-nt.h"
619 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
621 xmake_file=winnt/x-winnt
622 extra_host_objs=oldnames.o
623 extra_gcc_objs="spawnv.o oldnames.o"
624 fixincludes=fixinc.winnt
625 if test x$gnu_ld != xyes
627 extra_programs=ld.exe
629 if test x$enable_threads = xyes; then
635 xm_file="${xm_file} alpha/xm-vms.h"
636 tmake_file=alpha/t-vms
637 fixincludes=Makefile.in
640 extra_parts="crtinit.o crtfini.o"
642 arm-*-coff* | armel-*-coff*)
644 tmake_file=arm/t-bare
647 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
649 tm_file=arm/riscix1-1.h
652 arm-*-riscix*) # Acorn RISC machine
655 tm_file=arm/rix-gas.h
659 xmake_file=arm/x-riscix
660 tmake_file=arm/t-riscix
663 arm-semi-aout | armel-semi-aout)
665 tmake_file=arm/t-semi
666 fixincludes=Makefile.in # There is nothing to fix
668 arm-semi-aof | armel-semi-aof)
669 tm_file=arm/semiaof.h
670 tmake_file=arm/t-semiaof
671 fixincludes=Makefile.in # There is nothing to fix
675 xm_file="arm/xm-netbsd.h ${xm_file}"
676 tmake_file="t-netbsd arm/t-netbsd"
677 # On NetBSD, the headers are already okay, except for math.h.
678 fixincludes=fixinc.wrap
680 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
683 tm_file=arm/linux-aout.h
684 tmake_file=arm/t-linux
685 fixincludes=Makefile.in
688 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
689 xm_file=arm/xm-linux.h
693 tm_file=arm/linux-elf26.h
696 tm_file=arm/linux-elf.h
699 tmake_file="t-linux arm/t-linux"
700 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
701 fixincludes=Makefile.in # Nothing to fix
706 tmake_file=arm/t-bare
709 tm_file=arm/unknown-elf.h
710 tmake_file=arm/t-arm-elf
712 c1-convex-*) # Convex C1
715 fixincludes=Makefile.in
717 c2-convex-*) # Convex C2
720 fixincludes=Makefile.in
725 fixincludes=Makefile.in
730 fixincludes=Makefile.in
733 target_cpu_default=16
735 fixincludes=Makefile.in
741 clipper-intergraph-clix*)
742 tm_file="${tm_file} svr3.h clipper/clix.h"
743 xm_file=clipper/xm-clix.h
744 xmake_file=clipper/x-clix
745 extra_headers=va-clipper.h
746 extra_parts="crtbegin.o crtend.o"
747 install_headers_dir=install-headers-cpio
754 # This hasn't been upgraded to GCC 2.
755 # fx80-alliant-*) # Alliant FX/80
761 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
762 xm_file=pa/xm-papro.h
767 tm_file="${tm_file} pa/pa-osf.h"
769 fixincludes=Makefile.in
772 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
773 xm_file=pa/xm-papro.h
777 tm_file="${tm_file} pa/pa-osf.h"
779 fixincludes=Makefile.in
784 fixincludes=Makefile.in
788 fixincludes=Makefile.in
791 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
792 xm_file=pa/xm-pahpux.h
793 xmake_file=pa/x-pa-hpux
796 tm_file="${tm_file} pa/gas.h"
798 install_headers_dir=install-headers-cpio
802 hppa1.0-*-hpux8.0[0-2]*)
804 tm_file="${tm_file} pa/pa-hpux.h"
805 xm_file=pa/xm-pahpux.h
806 xmake_file=pa/x-pa-hpux
809 tm_file="${tm_file} pa/pa-gas.h"
811 tm_file="pa/pa-oldas.h ${tm_file}"
813 install_headers_dir=install-headers-cpio
817 hppa1.1-*-hpux8.0[0-2]*)
820 tm_file="${tm_file} pa/pa-hpux.h"
821 xm_file=pa/xm-pahpux.h
822 xmake_file=pa/x-pa-hpux
825 tm_file="${tm_file} pa/pa-gas.h"
827 tm_file="pa/pa-oldas.h ${tm_file}"
829 install_headers_dir=install-headers-cpio
834 tm_file="${tm_file} pa/pa-hpux.h"
835 xm_file=pa/xm-pahpux.h
836 xmake_file=pa/x-pa-hpux
839 tm_file="${tm_file} pa/pa-gas.h"
841 install_headers_dir=install-headers-cpio
845 tm_file="${tm_file} pa/pa-hpux.h"
846 xm_file=pa/xm-pahpux.h
847 xmake_file=pa/x-pa-hpux
850 tm_file="${tm_file} pa/pa-gas.h"
852 install_headers_dir=install-headers-cpio
857 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
858 xm_file=pa/xm-pahpux.h
859 xmake_file=pa/x-pa-hpux
863 tm_file="${tm_file} pa/pa-gas.h"
865 if test x$enable_threads = x; then
866 enable_threads=$have_pthread_h
868 if test x$enable_threads = xyes; then
870 tmake_file="${tmake_file} pa/t-dce-thr"
872 install_headers_dir=install-headers-cpio
876 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
877 xm_file=pa/xm-pahpux.h
878 xmake_file=pa/x-pa-hpux
881 tm_file="${tm_file} pa/pa-gas.h"
883 if test x$enable_threads = x; then
884 enable_threads=$have_pthread_h
886 if test x$enable_threads = xyes; then
888 tmake_file="${tmake_file} pa/t-dce-thr"
890 install_headers_dir=install-headers-cpio
895 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
896 xm_file=pa/xm-pahpux.h
897 xmake_file=pa/x-pa-hpux
900 tm_file="${tm_file} pa/pa-gas.h"
902 install_headers_dir=install-headers-cpio
906 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
907 xm_file=pa/xm-pahpux.h
908 xmake_file=pa/x-pa-hpux
911 tm_file="${tm_file} pa/pa-gas.h"
913 install_headers_dir=install-headers-cpio
918 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
919 xm_file=pa/xm-pahpux.h
920 xmake_file=pa/x-pa-hpux
923 tm_file="${tm_file} pa/pa-gas.h"
925 install_headers_dir=install-headers-cpio
929 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
930 xm_file=pa/xm-pahpux.h
931 xmake_file=pa/x-pa-hpux
934 tm_file="${tm_file} pa/pa-gas.h"
936 install_headers_dir=install-headers-cpio
942 fixincludes=Makefile.in
947 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
951 tm_file=i386/aix386.h
952 extra_parts="crtbegin.o crtend.o"
953 tmake_file=i386/t-crtstuff
955 tm_file=i386/aix386ng.h
958 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
960 xmake_file=i386/x-aix
963 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
965 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
966 xm_defines="USG POSIX SMALL_ARG_MAX"
967 xmake_file=i386/x-ncr3000
968 if test x$stabs = xyes -a x$gas = xyes
970 tm_file=i386/sysv4gdb.h
974 extra_parts="crtbegin.o crtend.o"
975 tmake_file=i386/t-crtpic
981 xm_file=i386/xm-next.h
982 tmake_file=i386/t-next
983 xmake_file=i386/x-next
984 extra_objs=nextstep.o
985 extra_parts="crtbegin.o crtend.o"
986 if test x$enable_threads = xyes; then
991 i[34567]86-sequent-bsd*) # 80386 from Sequent
996 tm_file=i386/seq-gas.h
998 tm_file=i386/sequent.h
1002 i[34567]86-sequent-ptx1*)
1004 xm_defines="USG SVR3"
1005 xmake_file=i386/x-sysv3
1006 tm_file=i386/seq-sysv3.h
1007 tmake_file=i386/t-crtstuff
1008 fixincludes=fixinc.ptx
1009 extra_parts="crtbegin.o crtend.o"
1010 install_headers_dir=install-headers-cpio
1013 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1015 xm_defines="USG SVR3"
1016 xmake_file=i386/x-sysv3
1017 tm_file=i386/seq2-sysv3.h
1018 tmake_file=i386/t-crtstuff
1019 extra_parts="crtbegin.o crtend.o"
1020 fixincludes=fixinc.ptx
1021 install_headers_dir=install-headers-cpio
1024 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1026 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1027 xm_defines="USG POSIX SMALL_ARG_MAX"
1029 tm_file=i386/ptx4-i.h
1031 extra_parts="crtbegin.o crtend.o"
1032 fixincludes=fixinc.ptx
1033 install_headers_dir=install-headers-cpio
1035 i386-sun-sunos*) # Sun i386 roadrunner
1041 i[34567]86-wrs-vxworks*)
1043 tm_file=i386/vxi386.h
1044 tmake_file=i386/t-i386bare
1049 tm_file=i386/i386-aout.h
1050 tmake_file=i386/t-i386bare
1053 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1055 tm_file=i386/bsd386.h
1056 # tmake_file=t-libc-ok
1061 tm_file=i386/386bsd.h
1062 # tmake_file=t-libc-ok
1063 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1067 i[34567]86-*-freebsdelf*)
1069 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
1070 # On FreeBSD, the headers are already ok, except for math.h.
1071 fixincludes=fixinc.wrap
1072 tmake_file=i386/t-freebsd
1078 i[34567]86-*-freebsd*)
1080 tm_file=i386/freebsd.h
1081 # On FreeBSD, the headers are already ok, except for math.h.
1082 fixincludes=fixinc.wrap
1083 tmake_file=i386/t-freebsd
1085 # We are hoping OpenBSD is still close enough to NetBSD that we can
1086 # share the configurations.
1088 i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
1090 tm_file=i386/netbsd.h
1091 # On NetBSD, the headers are already okay, except for math.h.
1092 fixincludes=fixinc.wrap
1098 tm_file=i386/i386-coff.h
1099 tmake_file=i386/t-i386bare
1102 i[34567]86-*-isc*) # 80386 running ISC system
1104 xm_file="${xm_file} i386/xm-isc.h"
1105 xm_defines="USG SVR3"
1108 i[34567]86-*-isc[34]*)
1110 xmake_file=i386/x-isc3
1113 xmake_file=i386/x-isc
1116 if test x$gas = xyes -a x$stabs = xyes
1118 tm_file=i386/iscdbx.h
1119 tmake_file=i386/t-svr3dbx
1120 extra_parts="svr3.ifile svr3z.ifile"
1122 tm_file=i386/isccoff.h
1123 tmake_file=i386/t-crtstuff
1124 extra_parts="crtbegin.o crtend.o"
1126 install_headers_dir=install-headers-cpio
1129 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1130 changequote([,])dnl # with a.out format using
1132 xmake_file=x-linux-aout
1133 tmake_file="t-linux-aout i386/t-crtstuff"
1134 tm_file=i386/linux-oldld.h
1135 fixincludes=Makefile.in #On Linux, the headers are ok already.
1140 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1141 changequote([,])dnl # with a.out format
1142 xmake_file=x-linux-aout
1143 tmake_file="t-linux-aout i386/t-crtstuff"
1144 tm_file=i386/linux-aout.h
1145 fixincludes=Makefile.in #On Linux, the headers are ok already.
1150 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1151 changequote([,])dnl # with ELF format using the
1152 # GNU/Linux C library 5
1154 tm_file=i386/linux.h
1155 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1156 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1157 fixincludes=Makefile.in #On Linux, the headers are ok already.
1160 if test x$enable_threads = xyes; then
1161 thread_file='single'
1165 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1166 changequote([,])dnl # with ELF format using glibc 2
1167 # aka GNU/Linux C library 6
1169 tm_file=i386/linux.h
1170 tmake_file="t-linux i386/t-crtstuff"
1171 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1172 fixincludes=Makefile.in #On Linux, the headers are ok already.
1175 if test x$enable_threads = xyes; then
1184 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1186 xm_file=i386/xm-go32.h
1188 tmake_file=i386/t-go32
1191 i[34567]86-pc-msdosdjgpp*)
1193 xm_file=i386/xm-go32.h
1195 tmake_file=i386/t-go32
1206 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1209 tmake_file=t-libc-ok
1210 fixincludes=Makefile.in
1215 i[34567]86-*-lynxos*)
1217 if test x$gas = xyes
1221 tm_file=i386/lynx-ng.h
1223 xm_file=i386/xm-lynx.h
1224 tmake_file=i386/t-i386bare
1231 # tmake_file=t-libc-ok
1235 i[34567]86-*-osfrose*) # 386 using OSF/rose
1237 if test x$elf = xyes
1239 tm_file=i386/osfelf.h
1242 tm_file=i386/osfrose.h
1245 xm_file="i386/xm-osf.h ${xm_file}"
1246 xmake_file=i386/x-osfrose
1247 tmake_file=i386/t-osf
1248 extra_objs=halfpic.o
1251 i[34567]86-go32-rtems*)
1254 xm_file=i386/xm-go32.h
1255 tm_file=i386/go32-rtems.h
1256 tmake_file="i386/t-go32 t-rtems"
1259 i[34567]86-*-rtemself*)
1262 tm_file=i386/rtemself.h
1263 tmake_file="i386/t-i386bare t-rtems"
1266 i[34567]86-*-rtems*)
1269 tm_file=i386/rtems.h
1270 tmake_file="i386/t-i386bare t-rtems"
1273 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1275 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1276 xm_defines="USG SVR3"
1277 xmake_file=i386/x-sco5
1278 fixincludes=fixinc.sco
1279 install_headers_dir=install-headers-cpio
1281 if test x$gas = xyes
1283 tm_file="i386/sco5gas.h ${tm_file}"
1284 tmake_file=i386/t-sco5gas
1286 tmake_file=i386/t-sco5
1288 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1291 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1293 xm_file="${xm_file} i386/xm-sco.h"
1294 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1295 xmake_file=i386/x-sco4
1296 fixincludes=fixinc.sco
1297 install_headers_dir=install-headers-cpio
1298 if test x$stabs = xyes
1300 tm_file=i386/sco4dbx.h
1301 tmake_file=i386/t-svr3dbx
1302 extra_parts="svr3.ifile svr3z.rfile"
1305 tmake_file=i386/t-crtstuff
1306 extra_parts="crtbegin.o crtend.o"
1311 i[34567]86-*-sco*) # 80386 running SCO system
1313 xm_file=i386/xm-sco.h
1314 xmake_file=i386/x-sco
1315 install_headers_dir=install-headers-cpio
1316 if test x$stabs = xyes
1318 tm_file=i386/scodbx.h
1319 tmake_file=i386/t-svr3dbx
1320 extra_parts="svr3.ifile svr3z.rfile"
1323 extra_parts="crtbegin.o crtend.o"
1324 tmake_file=i386/t-crtstuff
1329 i[34567]86-*-solaris2*)
1331 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1332 xm_defines="USG POSIX SMALL_ARG_MAX"
1333 if test x$stabs = xyes
1335 tm_file=i386/sol2dbg.h
1339 tmake_file=i386/t-sol2
1340 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1346 fixincludes=fixinc.svr4;;
1348 fixincludes=fixinc.wrap;;
1350 if test x$enable_threads = xyes; then
1351 thread_file='solaris'
1355 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1357 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1358 xm_defines="USG POSIX"
1359 tm_file=i386/sysv4.h
1360 if test x$stabs = xyes
1362 tm_file="${tm_file} dbx.h"
1364 tmake_file=i386/t-crtpic
1366 extra_parts="crtbegin.o crtend.o"
1367 fixincludes=fixinc.svr4
1370 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1372 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1373 xm_defines="USG POSIX SMALL_ARG_MAX"
1374 tm_file=i386/sysv4.h
1375 if test x$stabs = xyes
1377 tm_file="${tm_file} dbx.h"
1379 tmake_file=i386/t-crtpic
1381 extra_parts="crtbegin.o crtend.o"
1384 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1386 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1387 xm_defines="USG POSIX"
1389 tmake_file="i386/t-crtpic i386/t-udk"
1391 extra_parts="crtbegin.o crtend.o"
1392 fixincludes="fixinc.svr4"
1395 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1398 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1399 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1400 fixincludes=Makefile.in #Don't do it on OSF/1
1401 if test x$stabs = xyes
1403 tm_file=i386/osf1elfgdb.h
1405 tm_file=i386/osf1elf.h
1407 tmake_file=i386/t-osf1elf
1408 xmake_file=i386/x-osf1elf
1409 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1412 i[34567]86-*-sysv*) # Intel 80386's running system V
1414 xm_defines="USG SVR3"
1415 xmake_file=i386/x-sysv3
1416 if test x$gas = xyes
1418 if test x$stabs = xyes
1420 tm_file=i386/svr3dbx.h
1421 tmake_file=i386/t-svr3dbx
1422 extra_parts="svr3.ifile svr3z.rfile"
1424 tm_file=i386/svr3gas.h
1425 extra_parts="crtbegin.o crtend.o"
1426 tmake_file=i386/t-crtstuff
1429 tm_file=i386/sysv3.h
1430 extra_parts="crtbegin.o crtend.o"
1431 tmake_file=i386/t-crtstuff
1434 i386-*-vsta) # Intel 80386's running VSTa kernel
1435 xm_file="${xm_file} i386/xm-vsta.h"
1437 tmake_file=i386/t-vsta
1438 xmake_file=i386/x-vsta
1443 xm_file="${xm_file} i386/xm-cygwin32.h"
1444 tmake_file=i386/t-cygwin32
1445 tm_file=i386/win32.h
1446 xmake_file=i386/x-cygwin32
1448 fixincludes=Makefile.in
1449 if test x$enable_threads = xyes; then
1455 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1457 xm_file="${xm_file} i386/xm-cygwin32.h"
1458 tmake_file=i386/t-cygwin32
1459 tm_file=i386/cygwin32.h
1460 xmake_file=i386/x-cygwin32
1462 fixincludes=Makefile.in
1463 if test x$enable_threads = xyes; then
1469 i[34567]86-*-mingw32*)
1471 tm_file=i386/mingw32.h
1472 xm_file="${xm_file} i386/xm-mingw32.h"
1473 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1475 xmake_file=i386/x-cygwin32
1476 fixincludes=Makefile.in
1477 if test x$enable_threads = xyes; then
1484 *minwg32crt* | *mingw32*)
1485 tm_file="${tm_file} i386/crtdll.h"
1490 i[34567]86-*-winnt3*)
1492 tm_file=i386/win-nt.h
1493 out_file=i386/i386.c
1494 xm_file="xm-winnt.h ${xm_file}"
1495 xmake_file=winnt/x-winnt
1496 tmake_file=i386/t-winnt
1497 extra_host_objs="winnt.o oldnames.o"
1498 extra_gcc_objs="spawnv.o oldnames.o"
1499 fixincludes=fixinc.winnt
1500 if test x$gnu_ld != xyes
1502 extra_programs=ld.exe
1504 if test x$enable_threads = xyes; then
1509 i[34567]86-dg-dgux*)
1511 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1512 xm_defines="USG POSIX"
1513 out_file=i386/dgux.c
1515 tmake_file=i386/t-dgux
1516 xmake_file=i386/x-dgux
1517 fixincludes=fixinc.dgux
1518 install_headers_dir=install-headers-cpio
1520 i860-alliant-*) # Alliant FX/2800
1521 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1522 xm_file="${xm_file}"
1523 xmake_file=i860/x-fx2800
1524 tmake_file=i860/t-fx2800
1525 extra_parts="crtbegin.o crtend.o"
1528 tm_file="${tm_file} i860/bsd.h"
1529 if test x$gas = xyes
1531 tm_file="${tm_file} i860/bsd-gas.h"
1536 tm_file="${tm_file} i860/mach.h"
1537 tmake_file=t-libc-ok
1539 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1540 tm_file="${tm_file} svr3.h i860/paragon.h"
1541 xm_defines="USG SVR3"
1545 tm_file="${tm_file} svr3.h i860/sysv3.h"
1546 xm_defines="USG SVR3"
1547 xmake_file=i860/x-sysv3
1548 extra_parts="crtbegin.o crtend.o"
1551 tm_file="${tm_file} svr4.h i860/sysv4.h"
1552 xm_defines="USG SVR3"
1553 xmake_file=i860/x-sysv4
1555 extra_parts="crtbegin.o crtend.o"
1557 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1558 tm_file="${tm_file} i960/vx960.h"
1559 tmake_file=i960/t-vxworks960
1561 thread_file='vxworks'
1563 i960-wrs-vxworks5* | i960-wrs-vxworks)
1564 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1565 tmake_file=i960/t-vxworks960
1567 thread_file='vxworks'
1570 tm_file="${tm_file} i960/vx960.h"
1571 tmake_file=i960/t-vxworks960
1573 thread_file='vxworks'
1576 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1577 tmake_file=i960/t-960bare
1581 tmake_file="i960/t-960bare t-rtems"
1582 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1585 i960-*-*) # Default i960 environment.
1589 extra_parts="crtinit.o crtfini.o"
1591 m68000-convergent-sysv*)
1593 xm_file="m68k/xm-3b1.h ${xm_file}"
1596 extra_headers=math-68881.h
1598 m68000-hp-bsd*) # HP 9000/200 running BSD
1599 tm_file=m68k/hp2bsd.h
1600 xmake_file=m68k/x-hp2bsd
1602 extra_headers=math-68881.h
1604 m68000-hp-hpux*) # HP 9000 series 300
1605 xm_file="xm_alloca.h ${xm_file}"
1606 xm_defines="USG NO_SYS_SIGLIST"
1607 if test x$gas = xyes
1609 xmake_file=m68k/x-hp320g
1610 tm_file=m68k/hp310g.h
1612 xmake_file=m68k/x-hp320
1613 tm_file=m68k/hp310.h
1615 install_headers_dir=install-headers-cpio
1617 extra_headers=math-68881.h
1622 extra_headers=math-68881.h
1625 tm_file=m68k/sun2o4.h
1627 extra_headers=math-68881.h
1630 xm_file="m68k/xm-3b1.h ${xm_file}"
1632 if test x$gas = xyes
1639 extra_headers=math-68881.h
1641 m68k-apple-aux*) # Apple Macintosh running A/UX
1642 xm_defines="USG AUX"
1643 tmake_file=m68k/t-aux
1644 install_headers_dir=install-headers-cpio
1645 extra_headers=math-68881.h
1646 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1648 if test "$gnu_ld" = yes
1650 tm_file="${tm_file} m68k/auxgld.h"
1652 tm_file="${tm_file} m68k/auxld.h"
1654 if test "$gas" = yes
1656 tm_file="${tm_file} m68k/auxgas.h"
1658 tm_file="${tm_file} m68k/auxas.h"
1660 tm_file="${tm_file} m68k/a-ux.h"
1664 tm_file=m68k/apollo68.h
1665 xmake_file=m68k/x-apollo68
1667 extra_headers=math-68881.h
1670 m68k-altos-sysv*) # Altos 3068
1671 if test x$gas = xyes
1673 tm_file=m68k/altos3068.h
1676 echo "The Altos is supported only with the GNU assembler" 1>&2
1679 extra_headers=math-68881.h
1681 m68k-bull-sysv*) # Bull DPX/2
1682 if test x$gas = xyes
1684 if test x$stabs = xyes
1686 tm_file=m68k/dpx2cdbx.h
1688 tm_file=m68k/dpx2g.h
1693 xm_file="xm-alloca.h ${xm_file}"
1695 xmake_file=m68k/x-dpx2
1697 extra_headers=math-68881.h
1699 m68k-atari-sysv4*) # Atari variant of V.4.
1700 tm_file=m68k/atari.h
1701 xm_file="xm-alloca.h ${xm_file}"
1702 xm_defines="USG FULL_PROTOTYPES"
1704 extra_parts="crtbegin.o crtend.o"
1705 extra_headers=math-68881.h
1708 m68k-motorola-sysv*)
1709 tm_file=m68k/mot3300.h
1710 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1711 xm_defines=NO_SYS_SIGLIST
1712 if test x$gas = xyes
1714 xmake_file=m68k/x-mot3300-gas
1715 if test x$gnu_ld = xyes
1717 tmake_file=m68k/t-mot3300-gald
1719 tmake_file=m68k/t-mot3300-gas
1723 xmake_file=m68k/x-mot3300
1724 if test x$gnu_ld = xyes
1726 tmake_file=m68k/t-mot3300-gld
1728 tmake_file=m68k/t-mot3300
1732 gdb_needs_out_file_path=yes
1733 extra_parts="crt0.o mcrt0.o"
1734 extra_headers=math-68881.h
1737 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1738 tm_file=m68k/tower-as.h
1739 xm_defines="USG SVR3"
1740 xmake_file=m68k/x-tower
1741 extra_parts="crtbegin.o crtend.o"
1742 extra_headers=math-68881.h
1745 tm_file=m68k/plexus.h
1746 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1749 extra_headers=math-68881.h
1753 xm_file="xm-alloca.h ${xm_file}"
1755 extra_headers=math-68881.h
1758 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1759 xm_defines="USG unos"
1760 xmake_file=m68k/x-crds
1763 extra_headers=math-68881.h
1765 m68k-cbm-sysv4*) # Commodore variant of V.4.
1767 xm_file="xm-alloca.h ${xm_file}"
1768 xm_defines="USG FULL_PROTOTYPES"
1769 xmake_file=m68k/x-amix
1771 extra_parts="crtbegin.o crtend.o"
1772 extra_headers=math-68881.h
1776 tm_file=m68k/ccur-GAS.h
1777 xmake_file=m68k/x-ccur
1778 extra_headers=math-68881.h
1782 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1783 tm_file=m68k/hp3bsd44.h
1784 xmake_file=m68k/x-hp3bsd44
1786 extra_headers=math-68881.h
1789 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1790 tm_file=m68k/hp3bsd.h
1792 extra_headers=math-68881.h
1796 if test x$with_fp = xno
1798 tm_file=m68k/isi-nfp.h
1804 extra_headers=math-68881.h
1806 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1807 xm_file="xm_alloca.h ${xm_file}"
1808 xm_defines="USG NO_SYS_SIGLIST"
1809 if test x$gas = xyes
1811 xmake_file=m68k/x-hp320g
1812 tm_file=m68k/hp320g.h
1814 xmake_file=m68k/x-hp320
1815 tm_file=m68k/hpux7.h
1817 install_headers_dir=install-headers-cpio
1819 extra_headers=math-68881.h
1822 m68k-hp-hpux*) # HP 9000 series 300
1823 xm_file="xm_alloca.h ${xm_file}"
1824 xm_defines="USG NO_SYS_SIGLIST"
1825 if test x$gas = xyes
1827 xmake_file=m68k/x-hp320g
1828 tm_file=m68k/hp320g.h
1830 xmake_file=m68k/x-hp320
1831 tm_file=m68k/hp320.h
1833 install_headers_dir=install-headers-cpio
1835 extra_headers=math-68881.h
1839 tm_file=m68k/sun3mach.h
1841 extra_headers=math-68881.h
1845 if test x$gas = xyes
1847 tm_file=m68k/news3gas.h
1849 tm_file=m68k/news3.h
1852 extra_headers=math-68881.h
1855 m68k-sony-bsd* | m68k-sony-newsos*)
1856 if test x$gas = xyes
1858 tm_file=m68k/newsgas.h
1863 extra_headers=math-68881.h
1866 m68k-next-nextstep2*)
1867 tm_file=m68k/next21.h
1868 xm_file="m68k/xm-next.h ${xm_file}"
1869 tmake_file=m68k/t-next
1870 xmake_file=m68k/x-next
1871 extra_objs=nextstep.o
1872 extra_headers=math-68881.h
1876 m68k-next-nextstep3*)
1878 xm_file="m68k/xm-next.h ${xm_file}"
1879 tmake_file=m68k/t-next
1880 xmake_file=m68k/x-next
1881 extra_objs=nextstep.o
1882 extra_parts="crtbegin.o crtend.o"
1883 extra_headers=math-68881.h
1885 if test x$enable_threads = xyes; then
1890 if test x$with_fp = xno
1892 tm_file=m68k/sun3n3.h
1894 tm_file=m68k/sun3o3.h
1898 extra_headers=math-68881.h
1900 m68k-sun-sunos*) # For SunOS 4 (the default).
1901 if test x$with_fp = xno
1903 tm_file=m68k/sun3n.h
1909 extra_headers=math-68881.h
1912 tm_file=m68k/vxm68k.h
1913 tmake_file=m68k/t-vxworks68
1914 extra_headers=math-68881.h
1915 thread_file='vxworks'
1919 tmake_file=m68k/t-m68kbare
1920 tm_file="m68k/m68k-aout.h libgloss.h"
1921 extra_headers=math-68881.h
1925 tmake_file=m68k/t-m68kbare
1926 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1927 extra_headers=math-68881.h
1931 if test x$gas = xyes
1935 tm_file=m68k/lynx-ng.h
1937 xm_file=m68k/xm-lynx.h
1939 tmake_file=m68k/t-lynx
1940 extra_headers=math-68881.h
1944 tm_file=m68k/netbsd.h
1945 # On NetBSD, the headers are already okay, except for math.h.
1946 fixincludes=fixinc.wrap
1950 m68k-*-sysv3*) # Motorola m68k's running system V.3
1951 xm_file="xm-alloca.h ${xm_file}"
1953 xmake_file=m68k/x-m68kv
1954 extra_parts="crtbegin.o crtend.o"
1955 extra_headers=math-68881.h
1958 m68k-*-sysv4*) # Motorola m68k's running system V.4
1959 tm_file=m68k/m68kv4.h
1960 xm_file="xm-alloca.h ${xm_file}"
1963 extra_parts="crtbegin.o crtend.o"
1964 extra_headers=math-68881.h
1967 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1970 tm_file=m68k/linux-aout.h
1971 tmake_file="t-linux-aout m68k/t-linux-aout"
1972 fixincludes=Makefile.in # The headers are ok already.
1973 extra_headers=math-68881.h
1977 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1978 # with ELF format using the
1979 # GNU/Linux C library 5
1981 tm_file=m68k/linux.h
1982 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1983 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1984 fixincludes=Makefile.in # The headers are ok already.
1985 extra_headers=math-68881.h
1989 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1990 # with ELF format using glibc 2
1991 # aka the GNU/Linux C library 6.
1993 tm_file=m68k/linux.h
1994 tmake_file="t-linux m68k/t-linux"
1995 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1996 fixincludes=Makefile.in # The headers are ok already.
1997 extra_headers=math-68881.h
2000 if test x$enable_threads = xyes; then
2005 tmake_file=m68k/t-m68kbare
2006 tm_file=m68k/m68k-psos.h
2007 extra_headers=math-68881.h
2011 tmake_file="m68k/t-m68kbare t-rtems"
2012 tm_file=m68k/rtems.h
2013 extra_headers=math-68881.h
2020 tm_file=m88k/dguxbcs.h
2021 tmake_file=m88k/t-dguxbcs
2025 tmake_file=m88k/t-dgux
2028 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2029 xmake_file=m88k/x-dgux
2030 if test x$gas = xyes
2032 tmake_file=m88k/t-dgux-gas
2034 fixincludes=fixinc.dgux
2036 m88k-dolphin-sysv3*)
2037 tm_file=m88k/dolph.h
2038 extra_parts="crtbegin.o crtend.o"
2039 xm_file="m88k/xm-sysv3.h ${xm_file}"
2040 xmake_file=m88k/x-dolph
2041 if test x$gas = xyes
2043 tmake_file=m88k/t-m88k-gas
2046 m88k-tektronix-sysv3)
2047 tm_file=m88k/tekXD88.h
2048 extra_parts="crtbegin.o crtend.o"
2049 xm_file="m88k/xm-sysv3.h ${xm_file}"
2050 xmake_file=m88k/x-tekXD88
2051 if test x$gas = xyes
2053 tmake_file=m88k/t-m88k-gas
2057 tm_file=m88k/m88k-aout.h
2060 tm_file=m88k/m88k-coff.h
2061 tmake_file=m88k/t-bug
2065 extra_parts="crtbegin.o crtend.o"
2066 if test x$gas = xyes
2068 tmake_file=m88k/t-luna-gas
2070 tmake_file=m88k/t-luna
2074 tm_file=m88k/sysv3.h
2075 extra_parts="crtbegin.o crtend.o"
2076 xm_file="m88k/xm-sysv3.h ${xm_file}"
2077 xmake_file=m88k/x-sysv3
2078 if test x$gas = xyes
2080 tmake_file=m88k/t-m88k-gas
2084 tm_file=m88k/sysv4.h
2085 extra_parts="crtbegin.o crtend.o"
2086 xmake_file=m88k/x-sysv4
2087 tmake_file=m88k/t-sysv4
2089 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2090 tm_file=mips/iris6.h
2091 xm_file=mips/xm-iris6.h
2092 fixincludes=fixinc.irix
2093 xmake_file=mips/x-iris6
2094 tmake_file=mips/t-iris6
2095 # if test x$enable_threads = xyes; then
2096 # thread_file='irix'
2100 tm_file="mips/elf.h libgloss.h"
2101 tmake_file=mips/t-ecoff
2104 extra_parts="crtbegin.o crtend.o"
2105 # thread_file='vxworks'
2107 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2108 tm_file="mips/iris6.h mips/cross64.h"
2110 xm_file="mips/xm-iris5.h"
2111 fixincludes=Makefile.in
2112 xmake_file=mips/x-iris
2113 tmake_file=mips/t-cross64
2114 # See comment in mips/iris[56].h files.
2116 # if test x$enable_threads = xyes; then
2117 # thread_file='irix'
2121 if test x$gas = xyes
2123 if test x$stabs = xyes
2125 tm_file=mips/iris5gdb.h
2127 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2130 tm_file=mips/sni-svr4.h
2133 xmake_file=mips/x-sni-svr4
2134 tmake_file=mips/t-mips-gas
2135 if test x$gnu_ld != xyes
2140 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2141 if test x$gas = xyes
2143 tm_file="mips/iris5.h mips/iris5gas.h"
2144 if test x$stabs = xyes
2146 tm_file="${tm_file} dbx.h"
2149 tm_file=mips/iris5.h
2152 xm_file="mips/xm-iris5.h"
2153 fixincludes=fixinc.irix
2154 xmake_file=mips/x-iris
2155 # mips-tfile doesn't work yet
2156 tmake_file=mips/t-mips-gas
2157 # See comment in mips/iris5.h file.
2159 # if test x$enable_threads = xyes; then
2160 # thread_file='irix'
2163 mips-sgi-irix4loser*) # Mostly like a MIPS.
2164 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2165 if test x$stabs = xyes; then
2166 tm_file="${tm_file} dbx.h"
2169 xmake_file=mips/x-iris
2170 if test x$gas = xyes
2172 tmake_file=mips/t-mips-gas
2174 extra_passes="mips-tfile mips-tdump"
2176 if test x$gnu_ld != xyes
2180 # if test x$enable_threads = xyes; then
2181 # thread_file='irix'
2184 mips-sgi-irix4*) # Mostly like a MIPS.
2185 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2186 if test x$stabs = xyes; then
2187 tm_file="${tm_file} dbx.h"
2190 xmake_file=mips/x-iris
2191 if test x$gas = xyes
2193 tmake_file=mips/t-mips-gas
2195 extra_passes="mips-tfile mips-tdump"
2197 if test x$gnu_ld != xyes
2201 # if test x$enable_threads = xyes; then
2202 # thread_file='irix'
2205 mips-sgi-*) # Mostly like a MIPS.
2206 tm_file="mips/iris3.h ${tm_file}"
2207 if test x$stabs = xyes; then
2208 tm_file="${tm_file} dbx.h"
2211 xmake_file=mips/x-iris3
2212 if test x$gas = xyes
2214 tmake_file=mips/t-mips-gas
2216 extra_passes="mips-tfile mips-tdump"
2218 if test x$gnu_ld != xyes
2223 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2224 tm_file="mips/osfrose.h ${tm_file}"
2225 xmake_file=mips/x-osfrose
2226 tmake_file=mips/t-osfrose
2227 extra_objs=halfpic.o
2230 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2231 tm_file=mips/dec-osf1.h
2232 if test x$stabs = xyes; then
2233 tm_file="${tm_file} dbx.h"
2235 xmake_file=mips/x-dec-osf1
2236 if test x$gas = xyes
2238 tmake_file=mips/t-mips-gas
2240 tmake_file=mips/t-ultrix
2241 extra_passes="mips-tfile mips-tdump"
2243 if test x$gnu_ld != xyes
2248 mips-dec-bsd*) # Decstation running 4.4 BSD
2249 tm_file=mips/dec-bsd.h
2251 if test x$gas = xyes
2253 tmake_file=mips/t-mips-gas
2255 tmake_file=mips/t-ultrix
2256 extra_passes="mips-tfile mips-tdump"
2258 if test x$gnu_ld != xyes
2263 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2264 tm_file=mips/netbsd.h
2265 # On NetBSD, the headers are already okay, except for math.h.
2266 fixincludes=fixinc.wrap
2269 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2270 tm_file="mips/news4.h ${tm_file}"
2271 if test x$stabs = xyes; then
2272 tm_file="${tm_file} dbx.h"
2274 if test x$gas = xyes
2276 tmake_file=mips/t-mips-gas
2278 extra_passes="mips-tfile mips-tdump"
2280 if test x$gnu_ld != xyes
2284 xmake_file=mips/x-sony
2286 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2287 # That is based on svr4.
2288 # t-svr4 is not right because this system doesn't use ELF.
2289 tm_file="mips/news5.h ${tm_file}"
2290 if test x$stabs = xyes; then
2291 tm_file="${tm_file} dbx.h"
2293 xm_file="xm-siglist.h ${xm_file}"
2295 if test x$gas = xyes
2297 tmake_file=mips/t-mips-gas
2299 extra_passes="mips-tfile mips-tdump"
2301 if test x$gnu_ld != xyes
2306 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2307 tm_file="mips/svr4-5.h mips/svr4-t.h"
2308 if test x$stabs = xyes; then
2309 tm_file="${tm_file} dbx.h"
2311 xm_file="xm-siglist.h ${xm_file}"
2313 xmake_file=mips/x-sysv
2314 if test x$gas = xyes
2316 tmake_file=mips/t-mips-gas
2317 extra_parts="crtbegin.o crtend.o"
2319 tmake_file=mips/t-mips
2320 extra_passes="mips-tfile mips-tdump"
2322 if test x$gnu_ld != xyes
2327 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2328 tm_file="mips/ultrix.h ${tm_file}"
2329 if test x$stabs = xyes; then
2330 tm_file="${tm_file} dbx.h"
2332 xmake_file=mips/x-ultrix
2333 if test x$gas = xyes
2335 tmake_file=mips/t-mips-gas
2337 tmake_file=mips/t-ultrix
2338 extra_passes="mips-tfile mips-tdump"
2340 if test x$gnu_ld != xyes
2346 mips-*-riscos[56789]bsd*)
2348 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2349 if test x$stabs = xyes; then
2350 tm_file="${tm_file} dbx.h"
2352 if test x$gas = xyes
2354 tmake_file=mips/t-bsd-gas
2356 tmake_file=mips/t-bsd
2357 extra_passes="mips-tfile mips-tdump"
2359 if test x$gnu_ld != xyes
2365 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2367 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2368 if test x$stabs = xyes; then
2369 tm_file="${tm_file} dbx.h"
2371 if test x$gas = xyes
2373 tmake_file=mips/t-bsd-gas
2375 tmake_file=mips/t-bsd
2376 extra_passes="mips-tfile mips-tdump"
2378 if test x$gnu_ld != xyes
2384 mips-*-riscos[56789]sysv4*)
2386 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2387 if test x$stabs = xyes; then
2388 tm_file="${tm_file} dbx.h"
2390 xm_file="xm-siglist.h ${xm_file}"
2391 xmake_file=mips/x-sysv
2392 if test x$gas = xyes
2394 tmake_file=mips/t-svr4-gas
2396 tmake_file=mips/t-svr4
2397 extra_passes="mips-tfile mips-tdump"
2399 if test x$gnu_ld != xyes
2405 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2407 tm_file="mips/svr4-4.h ${tm_file}"
2408 if test x$stabs = xyes; then
2409 tm_file="${tm_file} dbx.h"
2412 xmake_file=mips/x-sysv
2413 if test x$gas = xyes
2415 tmake_file=mips/t-svr4-gas
2417 tmake_file=mips/t-svr4
2418 extra_passes="mips-tfile mips-tdump"
2420 if test x$gnu_ld != xyes
2426 mips-*-riscos[56789]sysv*)
2428 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2429 if test x$stabs = xyes; then
2430 tm_file="${tm_file} dbx.h"
2433 xmake_file=mips/x-sysv
2434 if test x$gas = xyes
2436 tmake_file=mips/t-svr3-gas
2438 tmake_file=mips/t-svr3
2439 extra_passes="mips-tfile mips-tdump"
2441 if test x$gnu_ld != xyes
2446 mips-*-sysv* | mips-*-riscos*sysv*)
2447 tm_file="mips/svr3-4.h ${tm_file}"
2448 if test x$stabs = xyes; then
2449 tm_file="${tm_file} dbx.h"
2452 xmake_file=mips/x-sysv
2453 if test x$gas = xyes
2455 tmake_file=mips/t-svr3-gas
2457 tmake_file=mips/t-svr3
2458 extra_passes="mips-tfile mips-tdump"
2460 if test x$gnu_ld != xyes
2466 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2468 tm_file=mips/mips-5.h
2469 if test x$stabs = xyes; then
2470 tm_file="${tm_file} dbx.h"
2472 if test x$gas = xyes
2474 tmake_file=mips/t-mips-gas
2476 extra_passes="mips-tfile mips-tdump"
2478 if test x$gnu_ld != xyes
2486 tm_file=mips/ecoffl.h
2487 if test x$stabs = xyes; then
2488 tm_file="${tm_file} dbx.h"
2490 tmake_file=mips/t-ecoff
2493 tm_file="gofast.h mips/ecoff.h"
2494 if test x$stabs = xyes; then
2495 tm_file="${tm_file} dbx.h"
2497 tmake_file=mips/t-ecoff
2500 tm_file="mips/elfl.h libgloss.h"
2501 tmake_file=mips/t-ecoff
2504 tm_file="mips/elf.h libgloss.h"
2505 tmake_file=mips/t-ecoff
2508 tm_file="mips/elfl64.h libgloss.h"
2509 tmake_file=mips/t-ecoff
2511 mips64orionel-*-elf*)
2512 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2513 tmake_file=mips/t-ecoff
2516 tm_file="mips/elf64.h libgloss.h"
2517 tmake_file=mips/t-ecoff
2520 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2521 tmake_file=mips/t-ecoff
2523 mips64orion-*-rtems*)
2524 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2525 tmake_file="mips/t-ecoff t-rtems"
2528 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2529 tmake_file=mips/t-r3900
2532 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2533 tmake_file=mips/t-r3900
2534 # FIXME mips-elf should be fixed to use crtstuff.
2537 mips-*-*) # Default MIPS RISC-OS 4.0.
2538 if test x$stabs = xyes; then
2539 tm_file="${tm_file} dbx.h"
2541 if test x$gas = xyes
2543 tmake_file=mips/t-mips-gas
2545 extra_passes="mips-tfile mips-tdump"
2547 if test x$gnu_ld != xyes
2554 tm_file="mn10200/mn10200.h"
2555 if test x$stabs = xyes
2557 tm_file="${tm_file} dbx.h"
2563 tm_file="mn10300/mn10300.h"
2564 if test x$stabs = xyes
2566 tm_file="${tm_file} dbx.h"
2571 tm_file=ns32k/encore.h
2575 tm_file=ns32k/sequent.h
2579 tm_file=ns32k/tek6100.h
2583 tm_file=ns32k/tek6200.h
2586 # This has not been updated to GCC 2.
2589 # xmake_file=ns32k/x-genix
2590 # tm_file=ns32k/genix.h
2594 tm_file=ns32k/merlin.h
2598 tm_file=ns32k/pc532-mach.h
2602 tm_file=ns32k/pc532-min.h
2603 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2608 tm_file=ns32k/netbsd.h
2609 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2610 # On NetBSD, the headers are already okay, except for math.h.
2611 fixincludes=fixinc.wrap
2615 tm_file="${tm_file} pdp11/2bsd.h"
2621 xmake_file=pyr/x-pyr
2628 xmake_file=romp/x-mach
2633 tm_file=rs6000/beos.h
2634 xm_file=rs6000/xm-beos.h
2635 tmake_file=rs6000/t-beos
2636 xmake_file=rs6000/x-beos
2638 powerpc-*-sysv* | powerpc-*-elf*)
2639 tm_file=rs6000/sysv4.h
2640 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2641 xm_defines="USG POSIX"
2642 extra_headers=ppc-asm.h
2643 if test x$gas = xyes
2645 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2647 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2649 xmake_file=rs6000/x-sysv4
2652 tm_file=rs6000/eabiaix.h
2653 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2654 fixincludes=Makefile.in
2655 extra_headers=ppc-asm.h
2658 tm_file=rs6000/eabisim.h
2659 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2660 fixincludes=Makefile.in
2661 extra_headers=ppc-asm.h
2664 tm_file=rs6000/eabi.h
2665 if test x$gas = xyes
2667 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2669 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2671 fixincludes=Makefile.in
2672 extra_headers=ppc-asm.h
2675 tm_file=rs6000/rtems.h
2676 if test x$gas = xyes
2678 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2680 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2682 fixincludes=Makefile.in
2683 extra_headers=ppc-asm.h
2685 powerpc-*-linux-gnulibc1)
2686 tm_file=rs6000/linux.h
2687 xm_file=rs6000/xm-sysv4.h
2688 out_file=rs6000/rs6000.c
2689 if test x$gas = xyes
2691 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2693 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2696 fixincludes=Makefile.in
2697 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2698 extra_headers=ppc-asm.h
2699 if test x$enable_threads = xyes; then
2703 powerpc-*-linux-gnu*)
2704 tm_file=rs6000/linux.h
2705 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2706 xm_defines="USG ${xm_defines}"
2707 out_file=rs6000/rs6000.c
2708 if test x$gas = xyes
2710 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2712 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2715 fixincludes=Makefile.in
2716 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2717 extra_headers=ppc-asm.h
2718 if test x$enable_threads = xyes; then
2722 powerpc-wrs-vxworks*)
2724 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2725 xm_defines="USG POSIX"
2726 tm_file=rs6000/vxppc.h
2727 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2728 extra_headers=ppc-asm.h
2729 thread_file='vxworks'
2731 powerpcle-*-sysv* | powerpcle-*-elf*)
2732 tm_file=rs6000/sysv4le.h
2733 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2734 xm_defines="USG POSIX"
2735 if test x$gas = xyes
2737 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2739 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2741 xmake_file=rs6000/x-sysv4
2742 extra_headers=ppc-asm.h
2744 powerpcle-*-eabisim*)
2745 tm_file=rs6000/eabilesim.h
2746 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2747 fixincludes=Makefile.in
2748 extra_headers=ppc-asm.h
2751 tm_file=rs6000/eabile.h
2752 if test x$gas = xyes
2754 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2756 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2758 fixincludes=Makefile.in
2759 extra_headers=ppc-asm.h
2761 powerpcle-*-winnt* )
2762 tm_file=rs6000/win-nt.h
2763 tmake_file=rs6000/t-winnt
2765 fixincludes=Makefile.in
2766 if test x$enable_threads = xyes; then
2769 extra_headers=ppc-asm.h
2771 powerpcle-*-pe | powerpcle-*-cygwin32)
2772 tm_file=rs6000/cygwin32.h
2773 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2774 tmake_file=rs6000/t-winnt
2775 xmake_file=rs6000/x-cygwin32
2777 fixincludes=Makefile.in
2778 if test x$enable_threads = xyes; then
2782 extra_headers=ppc-asm.h
2784 powerpcle-*-solaris2*)
2785 tm_file=rs6000/sol2.h
2786 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2787 xm_defines="USG POSIX"
2788 if test x$gas = xyes
2790 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2792 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2794 xmake_file=rs6000/x-sysv4
2799 fixincludes=fixinc.svr4;;
2801 fixincludes=fixinc.wrap;;
2803 extra_headers=ppc-asm.h
2806 rs6000-ibm-aix3.[01]*)
2808 tm_file=rs6000/aix31.h
2809 xmake_file=rs6000/x-aix31
2813 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2815 tm_file=rs6000/aix3newas.h
2816 if test x$host != x$target
2818 tmake_file=rs6000/t-xnewas
2820 tmake_file=rs6000/t-newas
2825 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2827 tm_file=rs6000/aix41.h
2828 if test x$host != x$target
2830 tmake_file=rs6000/t-xnewas
2832 tmake_file=rs6000/t-newas
2834 xmake_file=rs6000/x-aix41
2838 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2840 tm_file=rs6000/aix43.h
2841 if test x$host != x$target
2843 tmake_file=rs6000/t-xaix43
2845 tmake_file=rs6000/t-aix43
2847 xmake_file=rs6000/x-aix43
2851 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2853 tm_file=rs6000/aix43.h
2854 if test x$host != x$target
2856 tmake_file=rs6000/t-xaix43
2858 tmake_file=rs6000/t-aix43
2860 xmake_file=rs6000/x-aix43
2870 tm_file=rs6000/mach.h
2871 xm_file="${xm_file} rs6000/xm-mach.h"
2872 xmake_file=rs6000/x-mach
2876 tm_file=rs6000/lynx.h
2877 xm_file=rs6000/xm-lynx.h
2878 tmake_file=rs6000/t-rs6000
2879 xmake_file=rs6000/x-lynx
2887 tmake_file="sh/t-sh t-rtems"
2888 tm_file=sh/rtemself.h
2892 tmake_file="sh/t-sh t-rtems"
2901 xm_file="xm-alloca.h ${xm_file}"
2904 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2905 tm_file=sparc/vxsparc.h
2906 tmake_file=sparc/t-vxsparc
2908 thread_file='vxworks'
2911 tmake_file=sparc/t-sparcbare
2912 tm_file="sparc/aout.h libgloss.h"
2915 tm_file=sparc/netbsd.h
2916 # On NetBSD, the headers are already okay, except for math.h.
2917 fixincludes=fixinc.wrap
2925 tmake_file=sparc/t-elf
2926 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2930 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2931 xm_file="${xm_file} sparc/xm-linux.h"
2932 tm_file=sparc/linux-aout.h
2934 fixincludes=Makefile.in #On Linux, the headers are ok already.
2937 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2938 xm_file="${xm_file} sparc/xm-linux.h"
2940 tm_file=sparc/linux.h
2941 tmake_file="t-linux t-linux-gnulibc1"
2942 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2943 fixincludes=Makefile.in #On Linux, the headers are ok already.
2946 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2947 xm_file="${xm_file} sparc/xm-linux.h"
2949 tm_file=sparc/linux.h
2950 tmake_file="t-linux"
2951 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2952 fixincludes=Makefile.in #On Linux, the headers are ok already.
2954 if test x$enable_threads = xyes; then
2959 if test x$gas = xyes
2961 tm_file=sparc/lynx.h
2963 tm_file=sparc/lynx-ng.h
2965 xm_file=sparc/xm-lynx.h
2966 tmake_file=sparc/t-sunos41
2970 tmake_file="sparc/t-sparcbare t-rtems"
2971 tm_file=sparc/rtems.h
2973 sparcv9-*-solaris2*)
2974 tm_file=sparc/sol2-sld-64.h
2975 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
2976 xm_defines="USG POSIX"
2977 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2978 xmake_file=sparc/x-sysv4
2979 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2980 fixincludes=fixinc.wrap
2982 if test x${enable_threads} = x ; then
2983 enable_threads=$have_pthread_h
2984 if test x${enable_threads} = x ; then
2985 enable_threads=$have_thread_h
2988 if test x${enable_threads} = xyes ; then
2989 if test x${have_pthread_h} = xyes ; then
2992 thread_file='solaris'
2997 if test x$gnu_ld = xyes
2999 tm_file=sparc/sol2.h
3001 tm_file=sparc/sol2-sld.h
3003 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3004 xm_defines="USG POSIX"
3005 tmake_file=sparc/t-sol2
3006 xmake_file=sparc/x-sysv4
3007 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3012 fixincludes=fixinc.svr4;;
3014 fixincludes=fixinc.wrap;;
3017 if test x${enable_threads} = x; then
3018 enable_threads=$have_pthread_h
3019 if test x${enable_threads} = x; then
3020 enable_threads=$have_thread_h
3023 if test x${enable_threads} = xyes; then
3024 if test x${have_pthread_h} = xyes; then
3027 thread_file='solaris'
3032 tm_file=sparc/sunos4.h
3033 tmake_file=sparc/t-sunos40
3037 tm_file=sparc/sunos4.h
3038 tmake_file=sparc/t-sunos41
3040 if test x$gas = xyes; then
3041 tm_file="${tm_file} sparc/sun4gas.h"
3045 tm_file=sparc/sun4o3.h
3049 tm_file=sparc/sysv4.h
3050 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3051 xm_defines="USG POSIX"
3053 xmake_file=sparc/x-sysv4
3054 extra_parts="crtbegin.o crtend.o"
3057 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3058 xm_defines="USG POSIX"
3059 tm_file=sparc/vxsim.h
3060 tmake_file=sparc/t-vxsparc
3061 xmake_file=sparc/x-sysv4
3064 tm_file="sparc/splet.h libgloss.h"
3065 tmake_file=sparc/t-splet
3068 tm_file="sparc/litecoff.h libgloss.h"
3069 tmake_file=sparc/t-sparclite
3072 tm_file="sparc/lite.h aoutos.h libgloss.h"
3073 tmake_file=sparc/t-sparclite
3076 tmake_file=sparc/t-sp64
3077 tm_file=sparc/sp64-aout.h
3080 tmake_file=sparc/t-sp64
3081 tm_file=sparc/sp64-elf.h
3082 extra_parts="crtbegin.o crtend.o"
3084 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3085 tmake_file="t-linux sparc/t-linux64"
3086 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3087 tm_file=sparc/linux64.h
3089 fixincludes=Makefile.in # The headers are ok already.
3090 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3093 # This hasn't been upgraded to GCC 2.
3094 # tahoe-harris-*) # Harris tahoe, using COFF.
3095 # tm_file=tahoe/harris.h
3097 # tahoe-*-bsd*) # tahoe running BSD
3099 thumb-*-coff* | thumbel-*-coff*)
3101 out_file=arm/thumb.c
3102 xm_file=arm/xm-thumb.h
3103 md_file=arm/thumb.md
3104 tmake_file=arm/t-thumb
3105 fixincludes=Makefile.in # There is nothing to fix
3107 # This hasn't been upgraded to GCC 2.
3114 tm_file="v850/v850.h"
3115 xm_file="v850/xm-v850.h"
3116 tmake_file=v850/t-v850
3117 if test x$stabs = xyes
3119 tm_file="${tm_file} dbx.h"
3123 vax-*-bsd*) # vaxen running BSD
3127 vax-*-sysv*) # vaxen running system V
3128 tm_file="${tm_file} vax/vaxv.h"
3133 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3134 # On NetBSD, the headers are already okay, except for math.h.
3135 fixincludes=fixinc.wrap
3139 vax-*-ultrix*) # vaxen running ultrix
3140 tm_file="${tm_file} vax/ultrix.h"
3144 vax-*-vms*) # vaxen running VMS
3145 xm_file=vax/xm-vms.h
3149 vax-*-*) # vax default entry
3153 xm_file="${xm_file} xm-svr3"
3157 echo "Configuration $machine not supported" 1>&2
3164 ;; # Existing GNU/Linux systems do not use the GNU setup.
3166 # On the GNU system, the setup is just about the same on
3167 # each different CPU. The specific machines that GNU
3168 # supports are matched above and just set $cpu_type.
3169 xm_file="xm-gnu.h ${xm_file}"
3170 tm_file=${cpu_type}/gnu.h
3171 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3172 # GNU always uses ELF.
3174 # GNU tools are the only tools.
3177 # On GNU, the headers are already okay.
3178 fixincludes=Makefile.in
3179 xmake_file=x-linux # These details are the same as Linux.
3180 tmake_file=t-gnu # These are not.
3183 fixincludes=fixinc.svr4
3184 xmake_try_sysv=x-sysv
3185 install_headers_dir=install-headers-cpio
3188 install_headers_dir=install-headers-cpio
3192 # Distinguish i[34567]86
3193 # Also, do not run mips-tfile on MIPS if using gas.
3194 # Process --with-cpu= for PowerPC/rs6000
3195 target_cpu_default2=
3198 target_cpu_default2=1
3201 target_cpu_default2=2
3203 i686-*-* | i786-*-*)
3204 target_cpu_default2=3
3209 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3212 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3215 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3218 target_cpu_default2="MASK_CPU_EV5"
3222 if test x$gas = xyes
3224 if test "$target_cpu_default2" = ""
3226 target_cpu_default2="MASK_GAS"
3228 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3233 case "x$with_cpu" in
3236 target_cpu_default2="TARGET_CPU_generic"
3239 # Distinguish cores, and major variants
3240 # arm7m doesn't exist, but D & I don't affect code
3241 xarm[23678] | xarm250 | xarm[67][01]0 \
3242 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3243 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3244 | xstrongarm | xstrongarm110)
3245 target_cpu_default2="TARGET_CPU_$with_cpu"
3249 echo "--with-cpu must be passed a value" 1>&2
3254 if test x$pass2done = xyes
3256 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3263 mips*-*-ecoff* | mips*-*-elf*)
3264 if test x$gas = xyes
3266 if test x$gnu_ld = xyes
3268 target_cpu_default2=20
3270 target_cpu_default2=16
3275 if test x$gas = xyes
3277 target_cpu_default2=16
3280 powerpc*-*-* | rs6000-*-*)
3281 case "x$with_cpu" in
3285 xcommon | xpower | xpower2 | xpowerpc | xrios \
3286 | xrios1 | xrios2 | xrsc | xrsc1 \
3287 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3288 | x403 | x505 | x801 | x821 | x823 | x860)
3289 target_cpu_default2="\"$with_cpu\""
3293 echo "--with-cpu must be passed a value" 1>&2
3298 if test x$pass2done = xyes
3300 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3307 case ".$with_cpu" in
3309 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3311 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3312 target_cpu_default2="TARGET_CPU_$with_cpu"
3315 if test x$pass2done = xyes
3317 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3325 if test "$target_cpu_default2" != ""
3327 if test "$target_cpu_default" != ""
3329 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3331 target_cpu_default=$target_cpu_default2
3335 # No need for collect2 if we have the GNU linker.
3336 # Actually, there is now; GNU ld doesn't handle the EH info or
3337 # collecting for shared libraries.
3344 # Save data on machine being used to compile GCC in build_xm_file.
3345 # Save data on host machine in vars host_xm_file and host_xmake_file.
3346 if test x$pass1done = x
3348 if test x"$xm_file" = x
3349 then build_xm_file=$cpu_type/xm-$cpu_type.h
3350 else build_xm_file=$xm_file
3352 build_xm_defines=$xm_defines
3353 build_install_headers_dir=$install_headers_dir
3354 build_exeext=$exeext
3357 if test x$pass2done = x
3359 if test x"$xm_file" = x
3360 then host_xm_file=$cpu_type/xm-$cpu_type.h
3361 else host_xm_file=$xm_file
3363 host_xm_defines=$xm_defines
3364 if test x"$xmake_file" = x
3365 then xmake_file=$cpu_type/x-$cpu_type
3367 host_xmake_file="$xmake_file"
3368 host_truncate_target=$truncate_target
3369 host_extra_gcc_objs=$extra_gcc_objs
3370 host_extra_objs=$extra_host_objs
3377 extra_objs="${host_extra_objs} ${extra_objs}"
3379 # Default the target-machine variables that were not explicitly set.
3380 if test x"$tm_file" = x
3381 then tm_file=$cpu_type/$cpu_type.h; fi
3383 if test x$extra_headers = x
3384 then extra_headers=; fi
3386 if test x"$xm_file" = x
3387 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3389 if test x$md_file = x
3390 then md_file=$cpu_type/$cpu_type.md; fi
3392 if test x$out_file = x
3393 then out_file=$cpu_type/$cpu_type.c; fi
3395 if test x"$tmake_file" = x
3396 then tmake_file=$cpu_type/t-$cpu_type
3399 if test x$float_format = x
3400 then float_format=i64
3403 if test x$enable_haifa = x
3406 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3411 # Say what files are being used for the output code and MD file.
3412 echo "Using \`$srcdir/config/$out_file' to output insns."
3413 echo "Using \`$srcdir/config/$md_file' as machine description file."
3416 for f in $tm_file; do
3419 if test $count = ax; then
3420 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3422 echo "Using the following target machine macro files:"
3423 for f in $tm_file; do
3424 echo " $srcdir/config/$f"
3429 for f in $host_xm_file; do
3432 if test $count = ax; then
3433 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3435 echo "Using the following host machine macro files:"
3436 for f in $host_xm_file; do
3437 echo " $srcdir/config/$f"
3441 if test "$host_xm_file" != "$build_xm_file"; then
3443 for f in $build_xm_file; do
3446 if test $count = ax; then
3447 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3449 echo "Using the following build machine macro files:"
3450 for f in $build_xm_file; do
3451 echo " $srcdir/config/$f"
3456 if test x$thread_file = x; then
3457 if test x$target_thread_file != x; then
3458 thread_file=$target_thread_file
3460 thread_file='single'
3464 # Set up the header files.
3465 # $links is the list of header files to create.
3466 # $vars is the list of shell variables with file names to include.
3467 # auto-host.h is the file containing items generated by autoconf and is
3468 # the first file included by config.h.
3470 host_xm_file="auto-host.h ${host_xm_file}"
3472 # If host=build, it is correct to have hconfig include auto-host.h
3473 # as well. If host!=build, we are in error and need to do more
3474 # work to find out the build config parameters.
3475 if test x$host = x$build
3477 build_xm_file="auto-host.h ${build_xm_file}"
3479 # We create a subdir, then run autoconf in the subdir.
3480 # To prevent recursion we set host and build for the new
3481 # invocation of configure to the build for this invocation
3488 /*) realsrcdir=${srcdir};;
3489 *) realsrcdir=../${srcdir};;
3491 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3492 --target=$target --host=$build --build=$build
3494 # We just finished tests for the build machine, so rename
3495 # the file auto-build.h in the gcc directory.
3496 mv auto-host.h ../auto-build.h
3499 build_xm_file="auto-build.h ${build_xm_file}"
3502 vars="host_xm_file tm_file xm_file build_xm_file"
3503 links="config.h tm.h tconfig.h hconfig.h"
3504 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3507 if test -f config.status; then mv -f config.status config.bak; fi
3510 while test -n "$vars"
3512 set $vars; var=$1; shift; vars=$*
3513 set $links; link=$1; shift; links=$*
3514 set $defines; define=$1; shift; defines=$*
3518 # Define TARGET_CPU_DEFAULT if the system wants one.
3519 # This substitutes for lots of *.h files.
3520 if test "$target_cpu_default" != "" -a $link = tm.h
3522 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3525 for file in `eval echo '$'$var`; do
3526 echo "#include \"$file\"" >>$link
3529 for def in `eval echo '$'$define`; do
3530 echo "#ifndef $def" >>$link
3531 echo "#define $def" >>$link
3532 echo "#endif" >>$link
3536 # Truncate the target if necessary
3537 if test x$host_truncate_target != x; then
3538 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3541 # Get the version trigger filename from the toplevel
3542 if test "${with_gcc_version_trigger+set}" = set; then
3543 gcc_version_trigger=$with_gcc_version_trigger
3545 gcc_version_trigger=${srcdir}/version.c
3548 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3551 # Get an absolute path to the GCC top-level source directory
3557 # Conditionalize the makefile for this host machine.
3558 # Make-host contains the concatenation of all host makefile fragments
3559 # [there can be more than one]. This file is built by configure.frag.
3560 host_overrides=Make-host
3561 dep_host_xmake_file=
3562 for f in .. ${host_xmake_file}
3564 if test -f ${srcdir}/config/$f
3566 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3570 # Conditionalize the makefile for this target machine.
3571 # Make-target contains the concatenation of all host makefile fragments
3572 # [there can be more than one]. This file is built by configure.frag.
3573 target_overrides=Make-target
3575 for f in .. ${tmake_file}
3577 if test -f ${srcdir}/config/$f
3579 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3583 # If the host doesn't support symlinks, modify CC in
3584 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3585 # Otherwise, we can use "CC=$(CC)".
3587 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3589 cc_set_by_configure="\$(CC)"
3590 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3593 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3595 symbolic_link="cp -p"
3599 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3600 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3604 out_object_file=`basename $out_file .c`.o
3607 for f in $tm_file; do
3608 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3612 for f in $host_xm_file; do
3613 if test $f != "auto-host.h"; then
3614 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3616 host_xm_file_list="${host_xm_file_list} auto-host.h"
3621 for f in $build_xm_file; do
3622 if test $f != "auto-build.h"; then
3623 if test $f != "auto-host.h"; then
3624 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3626 build_xm_file_list="${build_xm_file_list} auto-host.h"
3629 build_xm_file_list="${build_xm_file_list} auto-build.h"
3633 # Define macro CROSS_COMPILE in compilation
3634 # if this is a cross-compiler.
3635 # Also use all.cross instead of all.internal
3636 # and add cross-make to Makefile.
3637 cross_overrides="/dev/null"
3638 if test x$host != x$target
3640 cross_defines="CROSS=-DCROSS_COMPILE"
3641 cross_overrides="${topdir}/cross-make"
3644 # When building gcc with a cross-compiler, we need to fix a few things.
3645 # This must come after cross-make as we want all.build to override
3647 build_overrides="/dev/null"
3648 if test x$build != x$host
3650 build_overrides="${topdir}/build-make"
3653 # Expand extra_headers to include complete path.
3654 # This substitutes for lots of t-* files.
3656 if test "x$extra_headers" = x
3659 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3660 for file in $extra_headers;
3662 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3666 if test x$use_collect2 = xno; then
3670 # Add a definition of USE_COLLECT2 if system wants one.
3671 # Also tell toplev.c what to do.
3672 # This substitutes for lots of t-* files.
3673 if test x$use_collect2 = x
3678 will_use_collect2="collect2"
3679 maybe_use_collect2="-DUSE_COLLECT2"
3683 # Set MD_DEPS if the real md file is in md.pre-cpp.
3684 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3685 # for line oriented comments, so we must always use a GNU cpp. If
3686 # building gcc with a cross compiler, use the cross compiler just
3687 # built. Otherwise, we can use the cpp just built.
3689 if test "x$md_cppflags" = x
3691 md_file_sub=$srcdir/config/$md_file
3696 # If we have gas in the build tree, make a link to it.
3697 if test -f ../gas/Makefile; then
3698 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3701 # If we have nm in the build tree, make a link to it.
3702 if test -f ../binutils/Makefile; then
3703 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3706 # If we have ld in the build tree, make a link to it.
3707 if test -f ../ld/Makefile; then
3708 # if test x$use_collect2 = x; then
3709 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3711 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3715 # Figure out what assembler alignment features are present.
3716 AC_MSG_CHECKING(assembler alignment features)
3718 gcc_cv_as_alignment_features=
3719 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3720 if test -x "$AS"; then
3722 elif test -x as$host_exeext; then
3723 # Build using assembler in the current directory.
3724 gcc_cv_as=./as$host_exeext
3725 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
3726 # Single tree build which includes gas.
3727 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3730 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3732 if test x$gcc_cv_gas_version != x; then
3737 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3738 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3740 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3741 # Gas version 2.6 and later support for .balign and .p2align.
3742 # bytes to skip when using .p2align.
3743 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
3744 gcc_cv_as_alignment_features=".balign and .p2align"
3745 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3747 # Gas version 2.8 and later support specifying the maximum
3748 # bytes to skip when using .p2align.
3749 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
3750 gcc_cv_as_alignment_features=".p2align including maximum skip"
3751 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3754 elif test x$host = x$target; then
3756 gcc_cv_as=as$host_exeext
3758 if test x$gcc_cv_as != x; then
3759 # Check if we have .balign and .p2align
3760 echo ".balign 4" > conftest.s
3761 echo ".p2align 2" >> conftest.s
3762 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3763 gcc_cv_as_alignment_features=".balign and .p2align"
3764 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3766 rm -f conftest.s conftest.o
3767 # Check if specifying the maximum bytes to skip when
3768 # using .p2align is supported.
3769 echo ".p2align 4,,7" > conftest.s
3770 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3771 gcc_cv_as_alignment_features=".p2align including maximum skip"
3772 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3774 rm -f conftest.s conftest.o
3776 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3778 AC_MSG_CHECKING(assembler subsection support)
3779 gcc_cv_as_subsections=
3780 if test x$gcc_cv_as != x; then
3781 # Check if we have .subsection
3782 echo ".subsection 1" > conftest.s
3783 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3784 gcc_cv_as_subsections=".subsection"
3785 if test -x nm$host_exeext; then
3786 gcc_cv_nm=./nm$host_exeext
3787 elif test x$host = x$target; then
3789 gcc_cv_nm=nm$host_exeext
3791 if test x$gcc_cv_nm != x; then
3792 cat > conftest.s <<EOF
3793 conftest_label1: .word 0
3795 conftest_label2: .word 0
3798 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3799 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3800 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3801 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3804 gcc_cv_as_subsections="working .subsection -1"
3805 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3810 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3812 AC_MSG_RESULT($gcc_cv_as_subsections)
3814 # Figure out what language subdirectories are present.
3816 for lang in ${srcdir}/*/config-lang.in ..
3820 # The odd quoting in the next line works around
3821 # an apparent bug in bash 1.12 on linux.
3823 ${srcdir}/ada/config-lang.in)
3824 if test x$gnat = xyes ; then
3825 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3828 ${srcdir}/[*]/config-lang.in) ;;
3829 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3834 # Make gthr-default.h if we have a thread file.
3836 if test $thread_file != single; then
3837 rm -f gthr-default.h
3838 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3839 gthread_flags=-DHAVE_GTHR_DEFAULT
3841 AC_SUBST(gthread_flags)
3843 # Make empty files to contain the specs and options for each language.
3844 # Then add #include lines to for a compiler that has specs and/or options.
3849 rm -f specs.h options.h gencheck.h
3850 touch specs.h options.h gencheck.h
3851 for subdir in . $subdirs
3853 if test -f $srcdir/$subdir/lang-specs.h; then
3854 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3855 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3857 if test -f $srcdir/$subdir/lang-options.h; then
3858 echo "#include \"$subdir/lang-options.h\"" >>options.h
3859 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3861 if test -f $srcdir/$subdir/$subdir-tree.def; then
3862 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3863 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3867 # These (without "all_") are set in each config-lang.in.
3868 # `language' must be a single word so is spelled singularly.
3874 all_outputs=Makefile
3875 # List of language makefile fragments.
3880 # Add the language fragments.
3881 # Languages are added via two mechanisms. Some information must be
3882 # recorded in makefile variables, these are defined in config-lang.in.
3883 # We accumulate them and plug them into the main Makefile.
3884 # The other mechanism is a set of hooks for each of the main targets
3885 # like `clean', `install', etc.
3887 language_fragments="Make-lang"
3888 language_hooks="Make-hooks"
3891 for s in .. $subdirs
3903 . ${srcdir}/$s/config-lang.in
3904 if test "x$language" = x
3906 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3909 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3910 all_languages="$all_languages $language"
3911 if test "x$boot_language" = xyes
3913 all_boot_languages="$all_boot_languages $language"
3915 all_compilers="$all_compilers $compilers"
3916 all_stagestuff="$all_stagestuff $stagestuff"
3917 all_diff_excludes="$all_diff_excludes $diff_excludes"
3918 all_headers="$all_headers $headers"
3919 all_outputs="$all_outputs $outputs"
3920 if test x$outputs = x
3922 oldstyle_subdirs="$oldstyle_subdirs $s"
3924 all_lib2funcs="$all_lib2funcs $lib2funcs"
3928 # Since we can't use `::' targets, we link each language in
3929 # with a set of hooks, reached indirectly via lang.${target}.
3933 target_list="all.build all.cross start.encap rest.encap \
3935 install-normal install-common install-info install-man \
3937 mostlyclean clean distclean extraclean maintainer-clean \
3938 stage1 stage2 stage3 stage4"
3939 for t in $target_list
3942 for l in .. $all_languages
3944 if test $l != ".."; then
3948 echo "lang.$t: $x" >> Make-hooks
3951 # If we're not building in srcdir, create .gdbinit.
3953 if test ! -f Makefile.in; then
3954 echo "dir ." > .gdbinit
3955 echo "dir ${srcdir}" >> .gdbinit
3956 if test x$gdb_needs_out_file_path = xyes
3958 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3960 if test "x$subdirs" != x; then
3963 echo "dir ${srcdir}/$s" >> .gdbinit
3966 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3969 # Define variables host_canonical and build_canonical
3970 # because some Cygnus local changes in the Makefile depend on them.
3971 build_canonical=${build}
3972 host_canonical=${host}
3974 if test "${host}" != "${target}" ; then
3975 target_subdir=${target}/
3977 AC_SUBST(build_canonical)
3978 AC_SUBST(host_canonical)
3979 AC_SUBST(target_subdir)
3981 # If this is using newlib, then define inhibit_libc in
3982 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3983 # libgcc.a, but that's OK because newib should have its own version of
3986 if test x$with_newlib = xyes; then
3987 inhibit_libc=-Dinhibit_libc
3989 AC_SUBST(inhibit_libc)
3991 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3994 if test x$enable_haifa = xyes; then
3995 echo "Using the Haifa scheduler."
3997 sched_cflags=-DHAIFA
3999 AC_SUBST(sched_prefix)
4000 AC_SUBST(sched_cflags)
4001 if test x$enable_haifa != x; then
4002 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4003 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
4011 # Warn if using init_priority.
4012 AC_MSG_CHECKING(whether to enable init_priority by default)
4013 if test x$enable_init_priority != xyes; then
4014 enable_init_priority=no
4016 AC_MSG_RESULT($enable_init_priority)
4018 # Nothing to do for FLOAT_H, float_format already handled.
4022 # Process the language and host/target makefile fragments.
4023 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4025 # Substitute configuration variables
4027 AC_SUBST(all_languages)
4028 AC_SUBST(all_boot_languages)
4029 AC_SUBST(all_compilers)
4030 AC_SUBST(all_lang_makefiles)
4031 AC_SUBST(all_stagestuff)
4032 AC_SUBST(all_diff_excludes)
4033 AC_SUBST(all_lib2funcs)
4034 AC_SUBST(all_headers)
4036 AC_SUBST(extra_passes)
4037 AC_SUBST(extra_programs)
4038 AC_SUBST(extra_parts)
4039 AC_SUBST(extra_c_objs)
4040 AC_SUBST(extra_cxx_objs)
4041 AC_SUBST(extra_cpp_objs)
4042 AC_SUBST(extra_c_flags)
4043 AC_SUBST(extra_objs)
4044 AC_SUBST(host_extra_gcc_objs)
4045 AC_SUBST(extra_headers_list)
4046 AC_SUBST(dep_host_xmake_file)
4047 AC_SUBST(dep_tmake_file)
4049 AC_SUBST(out_object_file)
4051 AC_SUBST(tm_file_list)
4052 AC_SUBST(build_xm_file_list)
4053 AC_SUBST(host_xm_file_list)
4054 AC_SUBST(lang_specs_files)
4055 AC_SUBST(lang_options_files)
4056 AC_SUBST(lang_tree_files)
4057 AC_SUBST(thread_file)
4058 AC_SUBST(objc_boehm_gc)
4059 AC_SUBST(gcc_version)
4060 AC_SUBST(gcc_version_trigger)
4061 AC_SUBST(local_prefix)
4062 AC_SUBST(gxx_include_dir)
4063 AC_SUBST(fixincludes)
4064 AC_SUBST(build_install_headers_dir)
4065 AC_SUBST(build_exeext)
4066 AC_SUBST(host_exeext)
4067 AC_SUBST(float_format)
4068 AC_SUBST(will_use_collect2)
4069 AC_SUBST(maybe_use_collect2)
4070 AC_SUBST(cc_set_by_configure)
4071 AC_SUBST(stage_prefix_set_by_configure)
4073 AC_SUBST(symbolic_link)
4075 AC_SUBST_FILE(target_overrides)
4076 AC_SUBST_FILE(host_overrides)
4077 AC_SUBST(cross_defines)
4078 AC_SUBST_FILE(cross_overrides)
4079 AC_SUBST_FILE(build_overrides)
4080 AC_SUBST_FILE(language_fragments)
4081 AC_SUBST_FILE(language_hooks)
4083 # Echo that links are built
4084 if test x$host = x$target
4092 if test x$host != x$build
4094 str3=" on a $build system"
4097 if test "x$str2" != x || test "x$str3" != x
4102 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4104 if test "x$str2" != x || test "x$str3" != x
4106 echo " ${str2}${str3}." 1>&2
4109 # Truncate the target if necessary
4110 if test x$host_truncate_target != x; then
4111 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4114 # Configure the subdirectories
4115 # AC_CONFIG_SUBDIRS($subdirs)
4117 # Create the Makefile
4118 # and configure language subdirectories
4119 AC_OUTPUT($all_outputs,
4121 . $srcdir/configure.lang
4122 case x$CONFIG_HEADERS in
4123 xauto-host.h:config.in)
4126 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4127 # bootstrapping and the installation procedure can still use
4128 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4129 # FLAGS_TO_PASS has been modified to solve the problem there.
4130 # This is virtually a duplicate of what happens in configure.lang; we do
4131 # an extra check to make sure this only happens if ln -s can be used.
4132 if test "$symbolic_link" = "ln -s"; then
4133 for d in .. ${subdirs} ; do
4134 if test $d != ..; then
4137 for t in stage1 stage2 stage3 stage4 include
4140 $symbolic_link ../$t $t 2>/dev/null
4151 target_alias='${target_alias}'
4153 subdirs='${subdirs}'
4154 oldstyle_subdirs='${oldstyle_subdirs}'
4155 symbolic_link='${symbolic_link}'
4156 program_transform_set='${program_transform_set}'
4157 program_transform_name='${program_transform_name}'
4158 dep_host_xmake_file='${dep_host_xmake_file}'
4159 host_xmake_file='${host_xmake_file}'
4160 dep_tmake_file='${dep_tmake_file}'
4161 tmake_file='${tmake_file}'
4162 thread_file='${thread_file}'
4163 gcc_version='${gcc_version}'
4164 gcc_version_trigger='${gcc_version_trigger}'
4165 local_prefix='${local_prefix}'
4166 build_install_headers_dir='${build_install_headers_dir}'
4167 build_exeext='${build_exeext}'
4168 host_exeext='${host_exeext}'
4169 out_file='${out_file}'
4170 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4171 SET_MAKE='${SET_MAKE}'
4172 target_list='${target_list}'
4173 target_overrides='${target_overrides}'
4174 host_overrides='${host_overrides}'
4175 cross_defines='${cross_defines}'
4176 cross_overrides='${cross_overrides}'
4177 build_overrides='${build_overrides}'