1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
6 # $DragonFly: src/contrib/gcc/Attic/configure.in,v 1.2 2003/11/19 00:51:31 dillon Exp $
8 #This file is part of GNU CC.
10 #GNU CC is free software; you can redistribute it and/or modify
11 #it under the terms of the GNU General Public License as published by
12 #the Free Software Foundation; either version 2, or (at your option)
15 #GNU CC is distributed in the hope that it will be useful,
16 #but WITHOUT ANY WARRANTY; without even the implied warranty of
17 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 #GNU General Public License for more details.
20 #You should have received a copy of the GNU General Public License
21 #along with GNU CC; see the file COPYING. If not, write to
22 #the Free Software Foundation, 59 Temple Place - Suite 330,
23 #Boston, MA 02111-1307, USA.
25 # Initialization and defaults
28 AC_CONFIG_HEADER(auto-host.h:config.in)
35 # Check for bogus environment variables.
36 # Test if LIBRARY_PATH contains the notation for the current directory
37 # since this would lead to problems installing/building glibc.
38 # LIBRARY_PATH contains the current directory if one of the following
40 # - one of the terminals (":" and ";") is the first or last sign
41 # - two terminals occur directly after each other
42 # - the path contains an element with a dot in it
43 AC_MSG_CHECKING(LIBRARY_PATH variable)
45 case ${LIBRARY_PATH} in
46 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
47 library_path_setting="contains current directory"
50 library_path_setting="ok"
54 AC_MSG_RESULT($library_path_setting)
55 if test "$library_path_setting" != "ok"; then
57 *** LIBRARY_PATH shouldn't contain the current directory when
58 *** building gcc. Please change the environment variable
59 *** and run configure again.])
62 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
63 # since this would lead to problems installing/building glibc.
64 # GCC_EXEC_PREFIX contains the current directory if one of the following
66 # - one of the terminals (":" and ";") is the first or last sign
67 # - two terminals occur directly after each other
68 # - the path contains an element with a dot in it
69 AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
71 case ${GCC_EXEC_PREFIX} in
72 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
73 gcc_exec_prefix_setting="contains current directory"
76 gcc_exec_prefix_setting="ok"
80 AC_MSG_RESULT($gcc_exec_prefix_setting)
81 if test "$gcc_exec_prefix_setting" != "ok"; then
83 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
84 *** building gcc. Please change the environment variable
85 *** and run configure again.])
88 # Check for additional parameters
92 [ --with-gnu-ld arrange to work with GNU ld.],
93 gnu_ld_flag="$with_gnu_ld",
98 [ --with-ld arrange to use the specified ld (full pathname).],
99 DEFAULT_LINKER="$with_ld")
100 if test x"${DEFAULT_LINKER+set}" = x"set"; then
101 if test ! -x "$DEFAULT_LINKER"; then
102 AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
103 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
106 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER")
111 [ --with-gnu-as arrange to work with GNU as.],
112 gas_flag="$with_gnu_as",
116 [ --with-as arrange to use the specified as (full pathname).],
117 DEFAULT_ASSEMBLER="$with_as")
118 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
119 if test ! -x "$DEFAULT_ASSEMBLER"; then
120 AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
121 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
124 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER")
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
154 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
155 # passed in by the toplevel make and thus we'd get different behavior
156 # depending on where we built the sources.
158 # Specify the g++ header file directory
159 AC_ARG_WITH(gxx-include-dir,
160 [ --with-gxx-include-dir=DIR
161 specifies directory to put g++ header files.],
162 [case "${withval}" in
163 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
165 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
168 if test x${gcc_gxx_include_dir} = x; then
169 if test x${enable_version_specific_runtime_libs} = xyes; then
170 gcc_gxx_include_dir='${libsubdir}/include/g++'
172 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
173 changequote(<<, >>)dnl
174 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
179 # Enable expensive internal checks
180 AC_ARG_ENABLE(checking,
181 [ --enable-checking enable expensive run-time checks.],
182 [case "${enableval}" in
183 yes) AC_DEFINE(ENABLE_CHECKING) ;;
185 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
189 [ --disable-cpp don't provide a user-visible C preprocessor.],
190 [], [enable_cpp=yes])
192 AC_ARG_WITH(cpp_install_dir,
193 [ --with-cpp-install-dir=DIR
194 install the user visible C preprocessor in DIR
195 (relative to PREFIX) as well as PREFIX/bin.],
196 [if test x$withval = xyes; then
197 AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
198 elif test x$withval != xno; then
199 cpp_install_dir=$withval
202 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
204 AC_ARG_ENABLE(cpplib,
205 [ --enable-cpplib use cpplib for the C preprocessor.],
206 if test x$enable_cpplib != xno; then
210 # Link cpplib into the compiler proper, for C/C++/ObjC.
211 AC_ARG_ENABLE(c-cpplib,
212 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
213 (EXPERIMENTAL) (implies --enable-cpplib).],
214 if test x$enable_c_cpplib != xno; then
215 extra_c_objs="${extra_c_objs} libcpp.a"
216 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
217 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
221 # Enable Multibyte Characters for C/C++
222 AC_ARG_ENABLE(c-mbchar,
223 [ --enable-c-mbchar enable multibyte characters for C and C++.],
224 if test x$enable_c_mbchar != xno; then
225 extra_c_flags=-DMULTIBYTE_CHARS=1
228 # Disable fast fixincludes
229 AC_ARG_ENABLE(fast-fixincludes,
230 [ --disable-fast-fixincludes
231 Disable the new fast fixincludes.
232 Run the old fixincludes script unconditionally],
233 if test x$enable_fast_fixincludes = xno ; then
234 cp $srcdir/fixincludes ./fixinc.sh
237 # Enable Haifa scheduler.
239 [ --enable-haifa use the experimental scheduler.
240 --disable-haifa don't use the experimental scheduler for the
241 targets which normally enable it.])
244 # Pass with no value to take the default
245 # Pass with a value to specify a thread package
246 AC_ARG_ENABLE(threads,
247 [ --enable-threads enable thread usage for target GCC.
248 --enable-threads=LIB use LIB thread package for target GCC.],
249 if test x$enable_threads = xno; then
254 enable_threads_flag=$enable_threads
255 # Check if a valid thread package
256 case x${enable_threads_flag} in
259 target_thread_file='single'
263 target_thread_file=''
265 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
266 xsolaris | xwin32 | xdce | xvxworks)
267 target_thread_file=$enable_threads_flag
270 echo "$enable_threads is an unknown thread package" 1>&2
275 AC_ARG_ENABLE(objc-gc,
276 [ --enable-objc-gc enable the use of Boehm's garbage collector with
277 the GNU Objective-C runtime.],
278 if [[[ x$enable_objc_gc = xno ]]]; then
285 AC_ARG_ENABLE(java-gc,
286 changequote(<<,>>)dnl
287 << --enable-java-gc=TYPE choose garbage collector [boehm]>>,
293 [ --enable-dwarf2 enable DWARF2 debugging as default.],
294 dwarf2="$with_dwarf2",
297 # Determine the host, build, and target systems
300 # Find the native compiler
303 # If the native compiler is GCC, we can enable warnings even in stage1.
304 # That's useful for people building cross-compilers, or just running a
306 if test "x$GCC" = "xyes"; then
307 stage1_warn_cflags='$(WARN_CFLAGS)'
309 stage1_warn_cflags=""
311 AC_SUBST(stage1_warn_cflags)
315 AC_MSG_CHECKING([whether a default assembler was specified])
316 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
317 if test x"$gas_flag" = x"no"; then
318 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
320 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
326 AC_MSG_CHECKING([whether a default linker was specified])
327 if test x"${DEFAULT_LINKER+set}" = x"set"; then
328 if test x"$gnu_ld_flag" = x"no"; then
329 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
331 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
337 # Find some useful tools
351 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 sys/stat.h direct.h)
353 # Check for thread headers.
354 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
355 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
357 # See if GNAT has been installed
358 AC_CHECK_PROG(gnat, gnatbind, yes, no)
360 # See if the system preprocessor understands the ANSI C preprocessor
361 # stringification operator.
362 AC_MSG_CHECKING(whether cpp understands the stringify operator)
363 AC_CACHE_VAL(gcc_cv_c_have_stringify,
366 char *test = S(foo);],
367 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
368 AC_MSG_RESULT($gcc_cv_c_have_stringify)
369 if test $gcc_cv_c_have_stringify = yes; then
370 AC_DEFINE(HAVE_CPP_STRINGIFY)
373 # Use <inttypes.h> only if it exists,
374 # doesn't clash with <sys/types.h>, and declares intmax_t.
375 AC_MSG_CHECKING(for inttypes.h)
376 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
378 [#include <sys/types.h>
379 #include <inttypes.h>],
381 [gcc_cv_header_inttypes_h=yes],
382 gcc_cv_header_inttypes_h=no)])
383 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
384 if test $gcc_cv_header_inttypes_h = yes; then
385 AC_DEFINE(HAVE_INTTYPES_H)
388 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
389 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
390 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
393 # Make sure wchar_t is available
394 #AC_CHECK_TYPE(wchar_t, unsigned int)
396 GCC_FUNC_VFPRINTF_DOPRNT
402 *** UWIN may not be used as a host platform because
403 *** linking with posix.dll is not allowed by the GNU GPL])
408 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
409 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
410 strsignal putc_unlocked fputs_unlocked strstr)
412 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
413 #include <sys/types.h>
414 #ifdef HAVE_SYS_RESOURCE_H
415 #include <sys/resource.h>
421 # mkdir takes a single argument on some systems.
422 GCC_FUNC_MKDIR_TAKES_ONE_ARG
432 build_install_headers_dir=install-headers-tar
437 host_truncate_target=
440 # Decode the host machine, then the target machine.
441 # For the host machine, we save the xm_file variable as host_xm_file;
442 # then we decode the target machine and forget everything else
443 # that came from the host machine.
444 for machine in $build $host $target; do
458 # Set this to force installation and use of collect2.
460 # Set this to override the default target model.
462 # Set this to control how the header file directory is installed.
463 install_headers_dir=install-headers-tar
464 # Set this to a non-empty list of args to pass to cpp if the target
465 # wants its .md file passed through cpp.
467 # Set this if directory names should be truncated to 14 characters.
469 # Set this if gdb needs a dir command with `dirname $out_file`
470 gdb_needs_out_file_path=
471 # Set this if the build machine requires executables to have a
474 # Set this to control which thread package will be used.
476 # Reinitialize these from the flag values every loop pass, since some
477 # configure entries modify them.
479 gnu_ld="$gnu_ld_flag"
480 enable_threads=$enable_threads_flag
482 # Set default cpu_type, tm_file and xm_file so it can be updated in
483 # each machine entry.
484 cpu_type=`echo $machine | sed 's/-.*$//'`
520 tm_file=${cpu_type}/${cpu_type}.h
521 xm_file=${cpu_type}/xm-${cpu_type}.h
523 # Common parts for linux-gnu and openbsd systems
526 xm_defines="HAVE_ATEXIT POSIX BSTRING"
529 tm_file=${cpu_type}/openbsd.h
530 tmake_file="t-libc-ok t-openbsd"
531 # avoid surprises, always provide an xm-openbsd file
532 xm_file=${cpu_type}/xm-openbsd.h
533 # don't depend on processor x-fragments as well
535 if test x$enable_threads = xyes; then
537 tmake_file="${tmake_file} t-openbsd-thread"
543 # Support site-specific machine types.
545 cpu_type=`echo $machine | sed -e 's/-.*//'`
546 rest=`echo $machine | sed -e "s/$cpu_type-//"`
547 xm_file=${cpu_type}/xm-$rest.h
548 tm_file=${cpu_type}/$rest.h
549 if test -f $srcdir/config/${cpu_type}/x-$rest; \
550 then xmake_file=${cpu_type}/x-$rest; \
553 if test -f $srcdir/config/${cpu_type}/t-$rest; \
554 then tmake_file=${cpu_type}/t-$rest; \
560 a29k-*-bsd* | a29k-*-sym1*)
561 tm_file="${tm_file} a29k/unix.h"
563 xmake_file=a29k/x-unix
566 a29k-*-udi | a29k-*-coff)
567 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
568 tmake_file=a29k/t-a29kbare
571 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
572 tmake_file=a29k/t-vx29k
573 extra_parts="crtbegin.o crtend.o"
574 thread_file='vxworks'
576 a29k-*-*) # Default a29k environment.
580 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
582 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
583 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
585 # GAS + IEEE_CONFORMANT
586 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
588 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
589 xmake_file="x-interix alpha/t-pe"
590 tmake_file="alpha/t-interix alpha/t-ieee"
591 if test x$enable_threads = xyes ; then
594 if test x$stabs = xyes ; then
595 tm_file="${tm_file} dbxcoff.h"
597 #prefix='$$INTERIX_ROOT'/usr/contrib
598 #local_prefix='$$INTERIX_ROOT'/usr/contrib
600 alpha*-*-linux-gnuecoff*)
601 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
602 target_cpu_default="MASK_GAS"
603 tmake_file="alpha/t-ieee"
608 alpha*-*-linux-gnulibc1*)
609 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
610 target_cpu_default="MASK_GAS"
611 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
612 extra_parts="crtbegin.o crtend.o"
615 if test x$enable_threads = xyes; then
620 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
621 target_cpu_default="MASK_GAS"
622 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
623 extra_parts="crtbegin.o crtend.o"
626 if test x$enable_threads = xyes; then
631 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
632 target_cpu_default="MASK_GAS"
633 tmake_file="alpha/t-crtbe alpha/t-ieee"
634 extra_parts="crtbegin.o crtend.o"
640 # default x-alpha is only appropriate for dec-osf.
641 target_cpu_default="MASK_GAS"
642 tmake_file="alpha/t-ieee"
646 if test x$stabs = xyes
648 tm_file="${tm_file} dbx.h"
650 if test x$gas != xyes
652 extra_passes="mips-tfile mips-tdump"
655 tmake_file="alpha/t-ieee"
658 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
663 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
666 tm_file="${tm_file} alpha/osf.h"
667 # Some versions of OSF4 (specifically X4.0-9 296.7) have
668 # a broken tar, so we use cpio instead.
669 install_headers_dir=install-headers-cpio
674 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
676 target_cpu_default=MASK_SUPPORT_ARCH
681 tm_file="${tm_file} dbx.h alpha/vxworks.h"
682 tmake_file="alpha/t-ieee"
685 extra_passes="mips-tfile mips-tdump"
688 thread_file='vxworks'
691 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
692 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
693 tmake_file="t-libc-ok alpha/t-ieee"
694 xmake_file=winnt/x-winnt
695 extra_host_objs=oldnames.o
696 extra_gcc_objs="spawnv.o oldnames.o"
697 if test x$gnu_ld != xyes
699 extra_programs=ld.exe
701 if test x$enable_threads = xyes; then
707 xm_file="${xm_file} alpha/xm-vms.h"
708 tmake_file="alpha/t-vms alpha/t-ieee"
711 extra_parts="crtinit.o crtfini.o"
713 arm-*-coff* | armel-*-coff*)
715 tmake_file=arm/t-bare
719 tmake_file=arm/t-bare
720 thread_file='vxworks'
723 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
725 tm_file=arm/riscix1-1.h
728 arm-*-riscix*) # Acorn RISC machine
731 tm_file=arm/rix-gas.h
735 xmake_file=arm/x-riscix
736 tmake_file=arm/t-riscix
739 arm-semi-aout | armel-semi-aout)
741 tmake_file=arm/t-semi
743 arm-semi-aof | armel-semi-aof)
744 tm_file=arm/semiaof.h
745 tmake_file=arm/t-semiaof
749 xm_file="arm/xm-netbsd.h ${xm_file}"
750 tmake_file="t-netbsd arm/t-netbsd"
753 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
756 tm_file=arm/linux-aout.h
757 tmake_file=arm/t-linux
760 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
761 xm_file=arm/xm-linux.h
763 tm_file="arm/linux-oldld.h arm/linux-elf.h"
766 tm_file="arm/linux-elf26.h $tm_file"
769 tmake_file="t-linux arm/t-linux"
770 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
772 case x${enable_threads} in
773 x | xyes | xpthreads | xposix)
778 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
779 xm_file=arm/xm-linux.h
781 tm_file="arm/linux-elf.h"
784 tm_file="arm/linux-elf26.h $tm_file"
787 tmake_file="t-linux arm/t-linux"
788 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
790 case x${enable_threads} in
791 x | xyes | xpthreads | xposix)
798 tmake_file=arm/t-bare
801 tm_file=arm/ecos-elf.h
805 tm_file=arm/unknown-elf.h
806 tmake_file=arm/t-arm-elf
809 tm_file=arm/unknown-elf-oabi.h
810 tmake_file=arm/t-arm-elf
812 c1-convex-*) # Convex C1
816 c2-convex-*) # Convex C2
829 target_cpu_default=16
836 clipper-intergraph-clix*)
837 tm_file="${tm_file} svr3.h clipper/clix.h"
838 xm_file=clipper/xm-clix.h
839 xmake_file=clipper/x-clix
840 extra_headers=va-clipper.h
841 extra_parts="crtbegin.o crtend.o"
842 install_headers_dir=install-headers-cpio
849 # This hasn't been upgraded to GCC 2.
850 # fx80-alliant-*) # Alliant FX/80
856 target_cpu_default="MASK_PA_11"
857 tmake_file=pa/t-openbsd
860 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
861 xm_file=pa/xm-papro.h
865 target_cpu_default="MASK_PA_11"
866 tm_file="${tm_file} pa/pa-osf.h"
870 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
871 xm_file=pa/xm-papro.h
875 tm_file="${tm_file} pa/pa-osf.h"
879 target_cpu_default="MASK_PA_11"
886 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
887 xm_file=pa/xm-pahpux.h
888 xmake_file=pa/x-pa-hpux
891 tm_file="${tm_file} pa/gas.h"
893 install_headers_dir=install-headers-cpio
897 hppa1.0-*-hpux8.0[0-2]*)
899 tm_file="${tm_file} pa/pa-hpux.h"
900 xm_file=pa/xm-pahpux.h
901 xmake_file=pa/x-pa-hpux
904 tm_file="${tm_file} pa/pa-gas.h"
906 tm_file="pa/pa-oldas.h ${tm_file}"
908 install_headers_dir=install-headers-cpio
912 hppa1.1-*-hpux8.0[0-2]*)
914 target_cpu_default="MASK_PA_11"
915 tm_file="${tm_file} pa/pa-hpux.h"
916 xm_file=pa/xm-pahpux.h
917 xmake_file=pa/x-pa-hpux
920 tm_file="${tm_file} pa/pa-gas.h"
922 tm_file="pa/pa-oldas.h ${tm_file}"
924 install_headers_dir=install-headers-cpio
928 target_cpu_default="MASK_PA_11"
929 tm_file="${tm_file} pa/pa-hpux.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
940 tm_file="${tm_file} pa/pa-hpux.h"
941 xm_file=pa/xm-pahpux.h
942 xmake_file=pa/x-pa-hpux
945 tm_file="${tm_file} pa/pa-gas.h"
947 install_headers_dir=install-headers-cpio
950 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
951 target_cpu_default="MASK_PA_11"
952 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
953 xm_file=pa/xm-pahpux.h
954 xmake_file=pa/x-pa-hpux
958 tm_file="${tm_file} pa/pa-gas.h"
960 if test x$enable_threads = x; then
961 enable_threads=$have_pthread_h
963 if test x$enable_threads = xyes; then
965 tmake_file="${tmake_file} pa/t-dce-thr"
967 install_headers_dir=install-headers-cpio
971 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
972 xm_file=pa/xm-pahpux.h
973 xmake_file=pa/x-pa-hpux
977 tm_file="${tm_file} pa/pa-gas.h"
979 if test x$enable_threads = x; then
980 enable_threads=$have_pthread_h
982 if test x$enable_threads = xyes; then
984 tmake_file="${tmake_file} pa/t-dce-thr"
986 install_headers_dir=install-headers-cpio
989 hppa1.1-*-hpux* | hppa2*-*-hpux*)
990 target_cpu_default="MASK_PA_11"
991 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
992 xm_file=pa/xm-pahpux.h
993 xmake_file=pa/x-pa-hpux
996 tm_file="${tm_file} pa/pa-gas.h"
998 install_headers_dir=install-headers-cpio
1002 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
1003 xm_file=pa/xm-pahpux.h
1004 xmake_file=pa/x-pa-hpux
1005 if test x$gas = xyes
1007 tm_file="${tm_file} pa/pa-gas.h"
1009 install_headers_dir=install-headers-cpio
1012 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1013 target_cpu_default="MASK_PA_11"
1014 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
1015 xm_file=pa/xm-pahpux.h
1016 xmake_file=pa/x-pa-hpux
1017 if test x$gas = xyes
1019 tm_file="${tm_file} pa/pa-gas.h"
1021 install_headers_dir=install-headers-cpio
1025 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
1026 xm_file=pa/xm-pahpux.h
1027 xmake_file=pa/x-pa-hpux
1028 if test x$gas = xyes
1030 tm_file="${tm_file} pa/pa-gas.h"
1032 install_headers_dir=install-headers-cpio
1036 target_cpu_default="MASK_PA_11"
1042 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1044 if test x$gas = xyes
1046 tm_file=i386/aix386.h
1047 extra_parts="crtbegin.o crtend.o"
1048 tmake_file=i386/t-crtstuff
1050 tm_file=i386/aix386ng.h
1053 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1055 xmake_file=i386/x-aix
1058 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1060 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1061 xm_defines="USG POSIX SMALL_ARG_MAX"
1062 xmake_file=i386/x-ncr3000
1063 if test x$stabs = xyes -a x$gas = xyes
1065 tm_file=i386/sysv4gdb.h
1067 tm_file=i386/sysv4.h
1069 extra_parts="crtbegin.o crtend.o"
1070 tmake_file=i386/t-crtpic
1076 xm_file=i386/xm-next.h
1077 tmake_file=i386/t-next
1078 xmake_file=i386/x-next
1079 extra_objs=nextstep.o
1080 extra_parts="crtbegin.o crtend.o"
1081 if test x$enable_threads = xyes; then
1086 i[34567]86-sequent-bsd*) # 80386 from Sequent
1089 if test x$gas = xyes
1091 tm_file=i386/seq-gas.h
1093 tm_file=i386/sequent.h
1097 i[34567]86-sequent-ptx1*)
1099 xm_defines="USG SVR3"
1100 xmake_file=i386/x-sysv3
1101 tm_file=i386/seq-sysv3.h
1102 tmake_file=i386/t-crtstuff
1103 extra_parts="crtbegin.o crtend.o"
1104 install_headers_dir=install-headers-cpio
1107 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1109 xm_defines="USG SVR3"
1110 xmake_file=i386/x-sysv3
1111 tm_file=i386/seq2-sysv3.h
1112 tmake_file=i386/t-crtstuff
1113 extra_parts="crtbegin.o crtend.o"
1114 install_headers_dir=install-headers-cpio
1117 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1119 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1120 xm_defines="USG POSIX SMALL_ARG_MAX"
1122 tm_file=i386/ptx4-i.h
1124 extra_parts="crtbegin.o crtend.o"
1125 install_headers_dir=install-headers-cpio
1127 i386-sun-sunos*) # Sun i386 roadrunner
1133 i[34567]86-wrs-vxworks*)
1135 tm_file=i386/vxi386.h
1136 tmake_file=i386/t-i386bare
1137 thread_file='vxworks'
1142 tm_file=i386/i386-aout.h
1143 tmake_file=i386/t-i386bare
1146 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1148 tm_file=i386/bsd386.h
1149 # tmake_file=t-libc-ok
1154 tm_file=i386/386bsd.h
1155 # tmake_file=t-libc-ok
1156 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1160 i[34567]86-*-freebsdelf*)
1162 tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h"
1163 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1164 tmake_file=t-freebsd
1170 i[34567]86-*-dragonflyelf*)
1172 tm_file="i386/i386.h i386/att.h svr4.h i386/dragonfly-elf.h i386/perform.h"
1173 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1174 tmake_file=t-dragonfly
1180 i[34567]86-*-freebsd*)
1182 tm_file=i386/freebsd.h
1183 tmake_file=t-freebsd
1186 i[34567]86-*-dragonfly*)
1188 tm_file=i386/dragonfly.h
1189 tmake_file=t-dragonfly
1192 i[34567]86-*-netbsd*)
1194 tm_file=i386/netbsd.h
1199 i[34567]86-*-openbsd*)
1201 # we need collect2 until our bug is fixed...
1207 tm_file=i386/i386-coff.h
1208 tmake_file=i386/t-i386bare
1211 i[34567]86-*-isc*) # 80386 running ISC system
1213 xm_file="${xm_file} i386/xm-isc.h"
1214 xm_defines="USG SVR3"
1217 i[34567]86-*-isc[34]*)
1219 xmake_file=i386/x-isc3
1222 xmake_file=i386/x-isc
1225 if test x$gas = xyes -a x$stabs = xyes
1227 tm_file=i386/iscdbx.h
1228 tmake_file=i386/t-svr3dbx
1229 extra_parts="svr3.ifile svr3z.ifile"
1231 tm_file=i386/isccoff.h
1232 tmake_file=i386/t-crtstuff
1233 extra_parts="crtbegin.o crtend.o"
1235 install_headers_dir=install-headers-cpio
1238 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1239 changequote([,])dnl # with a.out format using
1241 xmake_file=x-linux-aout
1242 tmake_file="t-linux-aout i386/t-crtstuff"
1243 tm_file=i386/linux-oldld.h
1248 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1249 changequote([,])dnl # with a.out format
1250 xmake_file=x-linux-aout
1251 tmake_file="t-linux-aout i386/t-crtstuff"
1252 tm_file=i386/linux-aout.h
1257 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1258 changequote([,])dnl # with ELF format using the
1259 # GNU/Linux C library 5
1261 tm_file=i386/linux.h
1262 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1263 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1266 if test x$enable_threads = xyes; then
1267 thread_file='single'
1271 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1272 changequote([,])dnl # with ELF format using glibc 2
1273 # aka GNU/Linux C library 6
1275 tm_file=i386/linux.h
1276 tmake_file="t-linux i386/t-crtstuff"
1277 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1280 if test x$enable_threads = xyes; then
1290 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1292 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1296 i[34567]86-pc-msdosdjgpp*)
1298 xm_file=i386/xm-djgpp.h
1299 tm_file=i386/djgpp.h
1300 tmake_file=i386/t-djgpp
1301 xmake_file=i386/x-djgpp
1305 case $host in *pc-msdosdjgpp*)
1311 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1314 tmake_file=t-libc-ok
1319 i[34567]86-*-lynxos*)
1321 if test x$gas = xyes
1325 tm_file=i386/lynx-ng.h
1327 xm_file=i386/xm-lynx.h
1328 tmake_file=i386/t-i386bare
1335 # tmake_file=t-libc-ok
1339 i[34567]86-*-osfrose*) # 386 using OSF/rose
1341 if test x$elf = xyes
1343 tm_file=i386/osfelf.h
1346 tm_file=i386/osfrose.h
1349 xm_file="i386/xm-osf.h ${xm_file}"
1350 xmake_file=i386/x-osfrose
1351 tmake_file=i386/t-osf
1352 extra_objs=halfpic.o
1355 i[34567]86-go32-rtems*)
1358 xm_file=i386/xm-go32.h
1359 tm_file=i386/go32-rtems.h
1360 tmake_file="i386/t-go32 t-rtems"
1363 i[34567]86-*-rtemself*)
1366 tm_file=i386/rtemself.h
1367 tmake_file="i386/t-i386bare t-rtems"
1370 i[34567]86-*-rtems*)
1373 tm_file=i386/rtems.h
1374 tmake_file="i386/t-i386bare t-rtems"
1377 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1379 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1380 xm_defines="USG SVR3"
1381 xmake_file=i386/x-sco5
1382 install_headers_dir=install-headers-cpio
1384 if test x$gas = xyes
1386 tm_file="i386/sco5gas.h ${tm_file}"
1387 tmake_file=i386/t-sco5gas
1389 tmake_file=i386/t-sco5
1391 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1394 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1396 xm_file="${xm_file} i386/xm-sco.h"
1397 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1398 xmake_file=i386/x-sco4
1399 install_headers_dir=install-headers-cpio
1400 if test x$stabs = xyes
1402 tm_file=i386/sco4dbx.h
1403 tmake_file=i386/t-svr3dbx
1404 extra_parts="svr3.ifile svr3z.rfile"
1407 tmake_file=i386/t-crtstuff
1408 extra_parts="crtbegin.o crtend.o"
1413 i[34567]86-*-sco*) # 80386 running SCO system
1415 xm_file=i386/xm-sco.h
1416 xmake_file=i386/x-sco
1417 install_headers_dir=install-headers-cpio
1418 if test x$stabs = xyes
1420 tm_file=i386/scodbx.h
1421 tmake_file=i386/t-svr3dbx
1422 extra_parts="svr3.ifile svr3z.rfile"
1425 extra_parts="crtbegin.o crtend.o"
1426 tmake_file=i386/t-crtstuff
1431 i[34567]86-*-solaris2*)
1433 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1434 xm_defines="USG POSIX SMALL_ARG_MAX"
1436 if test x$gas = xyes; then
1437 # Only needed if gas does not support -s
1438 tm_file="i386/sol2gas.h ${tm_file}"
1440 tmake_file=i386/t-sol2
1441 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1443 if test x$enable_threads = xyes; then
1444 thread_file='solaris'
1448 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1450 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1451 xm_defines="USG POSIX"
1452 tm_file=i386/sysv5.h
1453 if test x$stabs = xyes
1455 tm_file="${tm_file} dbx.h"
1457 tmake_file=i386/t-crtpic
1459 extra_parts="crtbegin.o crtend.o"
1460 if test x$enable_threads = xyes; then
1465 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1467 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1468 xm_defines="USG POSIX SMALL_ARG_MAX"
1469 tm_file=i386/sysv4.h
1470 if test x$stabs = xyes
1472 tm_file="${tm_file} dbx.h"
1474 tmake_file=i386/t-crtpic
1476 extra_parts="crtbegin.o crtend.o"
1479 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1481 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1482 xm_defines="USG POSIX"
1484 tmake_file="i386/t-crtpic i386/t-udk"
1486 extra_parts="crtbegin.o crtend.o"
1487 install_headers_dir=install-headers-cpio
1490 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1493 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1494 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1495 if test x$stabs = xyes
1497 tm_file=i386/osf1elfgdb.h
1499 tm_file=i386/osf1elf.h
1501 tmake_file=i386/t-osf1elf
1502 xmake_file=i386/x-osf1elf
1503 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1506 i[34567]86-*-sysv*) # Intel 80386's running system V
1508 xm_defines="USG SVR3"
1509 xmake_file=i386/x-sysv3
1510 if test x$gas = xyes
1512 if test x$stabs = xyes
1514 tm_file=i386/svr3dbx.h
1515 tmake_file=i386/t-svr3dbx
1516 extra_parts="svr3.ifile svr3z.rfile"
1518 tm_file=i386/svr3gas.h
1519 extra_parts="crtbegin.o crtend.o"
1520 tmake_file=i386/t-crtstuff
1523 tm_file=i386/sysv3.h
1524 extra_parts="crtbegin.o crtend.o"
1525 tmake_file=i386/t-crtstuff
1528 i386-*-vsta) # Intel 80386's running VSTa kernel
1529 xm_file="${xm_file} i386/xm-vsta.h"
1531 tmake_file=i386/t-vsta
1532 xmake_file=i386/x-vsta
1537 xm_file="${xm_file} i386/xm-cygwin.h"
1538 tmake_file=i386/t-cygwin
1539 tm_file=i386/win32.h
1540 xmake_file=i386/x-cygwin
1542 if test x$enable_threads = xyes; then
1548 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1550 xm_file="${xm_file} i386/xm-cygwin.h"
1551 tmake_file=i386/t-cygwin
1552 tm_file=i386/cygwin.h
1553 xmake_file=i386/x-cygwin
1555 if test x$enable_threads = xyes; then
1561 i[34567]86-*-mingw32*)
1563 tm_file=i386/mingw32.h
1564 xm_file="${xm_file} i386/xm-mingw32.h"
1565 tmake_file="i386/t-cygwin i386/t-mingw32"
1567 xmake_file=i386/x-cygwin
1568 if test x$enable_threads = xyes; then
1575 *minwg32crt* | *mingw32*)
1576 tm_file="${tm_file} i386/crtdll.h"
1584 tmake_file="i386/t-cygwin i386/t-uwin"
1586 xmake_file=i386/x-cygwin
1587 if test x$enable_threads = xyes; then
1593 i[34567]86-*-interix*)
1595 tm_file="i386/i386-interix.h interix.h"
1596 xm_file="i386/xm-i386-interix.h xm-interix.h"
1597 xm_defines="USG NO_SYS_SIGLIST"
1598 tmake_file="i386/t-interix"
1599 extra_objs=interix.o
1600 xmake_file=x-interix
1601 if test x$enable_threads = xyes ; then
1604 if test x$stabs = xyes ; then
1605 tm_file="${tm_file} dbxcoff.h"
1609 i[34567]86-*-winnt3*)
1611 tm_file=i386/win-nt.h
1612 out_file=i386/i386.c
1613 xm_file="xm-winnt.h ${xm_file}"
1614 xmake_file=winnt/x-winnt
1615 tmake_file=i386/t-winnt
1616 extra_host_objs="winnt.o oldnames.o"
1617 extra_gcc_objs="spawnv.o oldnames.o"
1618 if test x$gnu_ld != xyes
1620 extra_programs=ld.exe
1622 if test x$enable_threads = xyes; then
1627 i[34567]86-dg-dgux*)
1629 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1630 xm_defines="USG POSIX"
1631 out_file=i386/dgux.c
1633 tmake_file=i386/t-dgux
1634 xmake_file=i386/x-dgux
1635 install_headers_dir=install-headers-cpio
1637 i860-alliant-*) # Alliant FX/2800
1638 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1639 xm_file="${xm_file}"
1640 xmake_file=i860/x-fx2800
1641 tmake_file=i860/t-fx2800
1642 extra_parts="crtbegin.o crtend.o"
1645 tm_file="${tm_file} i860/bsd.h"
1646 if test x$gas = xyes
1648 tm_file="${tm_file} i860/bsd-gas.h"
1653 tm_file="${tm_file} i860/mach.h"
1654 tmake_file=t-libc-ok
1656 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1657 tm_file="${tm_file} svr3.h i860/paragon.h"
1658 xm_defines="USG SVR3"
1662 tm_file="${tm_file} svr3.h i860/sysv3.h"
1663 xm_defines="USG SVR3"
1664 xmake_file=i860/x-sysv3
1665 extra_parts="crtbegin.o crtend.o"
1668 tm_file="${tm_file} svr4.h i860/sysv4.h"
1669 xm_defines="USG SVR3"
1670 xmake_file=i860/x-sysv4
1672 extra_parts="crtbegin.o crtend.o"
1674 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1675 tm_file="${tm_file} i960/vx960.h"
1676 tmake_file=i960/t-vxworks960
1678 thread_file='vxworks'
1680 i960-wrs-vxworks5* | i960-wrs-vxworks)
1681 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1682 tmake_file=i960/t-vxworks960
1684 thread_file='vxworks'
1687 tm_file="${tm_file} i960/vx960.h"
1688 tmake_file=i960/t-vxworks960
1690 thread_file='vxworks'
1693 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1694 tmake_file=i960/t-960bare
1698 tmake_file="i960/t-960bare t-rtems"
1699 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1702 i960-*-*) # Default i960 environment.
1706 extra_parts="crtinit.o crtfini.o"
1708 m68000-convergent-sysv*)
1710 xm_file="m68k/xm-3b1.h ${xm_file}"
1713 extra_headers=math-68881.h
1715 m68000-hp-bsd*) # HP 9000/200 running BSD
1716 tm_file=m68k/hp2bsd.h
1717 xmake_file=m68k/x-hp2bsd
1719 extra_headers=math-68881.h
1721 m68000-hp-hpux*) # HP 9000 series 300
1722 xm_file="xm-alloca.h ${xm_file}"
1723 xm_defines="USG NO_SYS_SIGLIST"
1724 if test x$gas = xyes
1726 xmake_file=m68k/x-hp320g
1727 tm_file=m68k/hp310g.h
1729 xmake_file=m68k/x-hp320
1730 tm_file=m68k/hp310.h
1732 install_headers_dir=install-headers-cpio
1734 extra_headers=math-68881.h
1739 extra_headers=math-68881.h
1742 tm_file=m68k/sun2o4.h
1744 extra_headers=math-68881.h
1747 xm_file="m68k/xm-3b1.h ${xm_file}"
1749 if test x$gas = xyes
1756 extra_headers=math-68881.h
1758 m68k-apple-aux*) # Apple Macintosh running A/UX
1759 xm_defines="USG AUX"
1760 tmake_file=m68k/t-aux
1761 install_headers_dir=install-headers-cpio
1762 extra_headers=math-68881.h
1763 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1765 if test "$gnu_ld" = yes
1767 tm_file="${tm_file} m68k/auxgld.h"
1769 tm_file="${tm_file} m68k/auxld.h"
1771 if test "$gas" = yes
1773 tm_file="${tm_file} m68k/auxgas.h"
1775 tm_file="${tm_file} m68k/auxas.h"
1777 tm_file="${tm_file} m68k/a-ux.h"
1781 tm_file=m68k/apollo68.h
1782 xmake_file=m68k/x-apollo68
1784 extra_headers=math-68881.h
1787 m68k-altos-sysv*) # Altos 3068
1788 if test x$gas = xyes
1790 tm_file=m68k/altos3068.h
1793 echo "The Altos is supported only with the GNU assembler" 1>&2
1796 extra_headers=math-68881.h
1798 m68k-bull-sysv*) # Bull DPX/2
1799 if test x$gas = xyes
1801 if test x$stabs = xyes
1803 tm_file=m68k/dpx2cdbx.h
1805 tm_file=m68k/dpx2g.h
1810 xm_file="xm-alloca.h ${xm_file}"
1812 xmake_file=m68k/x-dpx2
1814 extra_headers=math-68881.h
1816 m68k-atari-sysv4*) # Atari variant of V.4.
1817 tm_file=m68k/atari.h
1818 xm_file="xm-alloca.h ${xm_file}"
1819 xm_defines="USG FULL_PROTOTYPES"
1821 extra_parts="crtbegin.o crtend.o"
1822 extra_headers=math-68881.h
1825 m68k-motorola-sysv*)
1826 tm_file=m68k/mot3300.h
1827 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1828 xm_defines=NO_SYS_SIGLIST
1829 if test x$gas = xyes
1831 xmake_file=m68k/x-mot3300-gas
1832 if test x$gnu_ld = xyes
1834 tmake_file=m68k/t-mot3300-gald
1836 tmake_file=m68k/t-mot3300-gas
1840 xmake_file=m68k/x-mot3300
1841 if test x$gnu_ld = xyes
1843 tmake_file=m68k/t-mot3300-gld
1845 tmake_file=m68k/t-mot3300
1849 gdb_needs_out_file_path=yes
1850 extra_parts="crt0.o mcrt0.o"
1851 extra_headers=math-68881.h
1854 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1855 tm_file=m68k/tower-as.h
1856 xm_defines="USG SVR3"
1857 xmake_file=m68k/x-tower
1858 extra_parts="crtbegin.o crtend.o"
1859 extra_headers=math-68881.h
1862 tm_file=m68k/plexus.h
1863 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1866 extra_headers=math-68881.h
1870 xm_file="xm-alloca.h ${xm_file}"
1872 extra_headers=math-68881.h
1875 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1876 xm_defines="USG unos"
1877 xmake_file=m68k/x-crds
1880 extra_headers=math-68881.h
1882 m68k-cbm-sysv4*) # Commodore variant of V.4.
1884 xm_file="xm-alloca.h ${xm_file}"
1885 xm_defines="USG FULL_PROTOTYPES"
1886 xmake_file=m68k/x-amix
1888 extra_parts="crtbegin.o crtend.o"
1889 extra_headers=math-68881.h
1893 tm_file=m68k/ccur-GAS.h
1894 xmake_file=m68k/x-ccur
1895 extra_headers=math-68881.h
1899 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1900 tm_file=m68k/hp3bsd44.h
1902 extra_headers=math-68881.h
1905 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1906 tm_file=m68k/hp3bsd.h
1908 extra_headers=math-68881.h
1912 if test x$with_fp = xno
1914 tm_file=m68k/isi-nfp.h
1920 extra_headers=math-68881.h
1922 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1923 xm_file="xm-alloca.h ${xm_file}"
1924 xm_defines="USG NO_SYS_SIGLIST"
1925 if test x$gas = xyes
1927 xmake_file=m68k/x-hp320g
1928 tm_file=m68k/hp320g.h
1930 xmake_file=m68k/x-hp320
1931 tm_file=m68k/hpux7.h
1933 install_headers_dir=install-headers-cpio
1935 extra_headers=math-68881.h
1938 m68k-hp-hpux*) # HP 9000 series 300
1939 xm_file="xm-alloca.h ${xm_file}"
1940 xm_defines="USG NO_SYS_SIGLIST"
1941 if test x$gas = xyes
1943 xmake_file=m68k/x-hp320g
1944 tm_file=m68k/hp320g.h
1946 xmake_file=m68k/x-hp320
1947 tm_file=m68k/hp320.h
1949 install_headers_dir=install-headers-cpio
1951 extra_headers=math-68881.h
1955 tm_file=m68k/sun3mach.h
1957 extra_headers=math-68881.h
1961 if test x$gas = xyes
1963 tm_file=m68k/news3gas.h
1965 tm_file=m68k/news3.h
1968 extra_headers=math-68881.h
1971 m68k-sony-bsd* | m68k-sony-newsos*)
1972 if test x$gas = xyes
1974 tm_file=m68k/newsgas.h
1979 extra_headers=math-68881.h
1982 m68k-next-nextstep2*)
1983 tm_file=m68k/next21.h
1984 xm_file="m68k/xm-next.h ${xm_file}"
1985 tmake_file=m68k/t-next
1986 xmake_file=m68k/x-next
1987 extra_objs=nextstep.o
1988 extra_headers=math-68881.h
1992 m68k-next-nextstep3*)
1994 xm_file="m68k/xm-next.h ${xm_file}"
1995 tmake_file=m68k/t-next
1996 xmake_file=m68k/x-next
1997 extra_objs=nextstep.o
1998 extra_parts="crtbegin.o crtend.o"
1999 extra_headers=math-68881.h
2001 if test x$enable_threads = xyes; then
2006 if test x$with_fp = xno
2008 tm_file=m68k/sun3n3.h
2010 tm_file=m68k/sun3o3.h
2014 extra_headers=math-68881.h
2016 m68k-sun-sunos*) # For SunOS 4 (the default).
2017 if test x$with_fp = xno
2019 tm_file=m68k/sun3n.h
2025 extra_headers=math-68881.h
2028 tm_file=m68k/vxm68k.h
2029 tmake_file=m68k/t-vxworks68
2030 extra_headers=math-68881.h
2031 thread_file='vxworks'
2035 tmake_file=m68k/t-m68kbare
2036 tm_file="m68k/m68k-aout.h libgloss.h"
2037 extra_headers=math-68881.h
2041 tmake_file=m68k/t-m68kbare
2042 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2043 extra_headers=math-68881.h
2046 m68020-*-elf* | m68k-*-elf*)
2047 tm_file="m68k/m68020-elf.h libgloss.h"
2048 xm_file=m68k/xm-m68kv.h
2049 tmake_file=m68k/t-m68kelf
2050 header_files=math-68881.h
2053 if test x$gas = xyes
2057 tm_file=m68k/lynx-ng.h
2059 xm_file=m68k/xm-lynx.h
2061 tmake_file=m68k/t-lynx
2062 extra_headers=math-68881.h
2066 tm_file=m68k/netbsd.h
2073 # we need collect2 until our bug is fixed...
2076 m68k-*-sysv3*) # Motorola m68k's running system V.3
2077 xm_file="xm-alloca.h ${xm_file}"
2079 xmake_file=m68k/x-m68kv
2080 extra_parts="crtbegin.o crtend.o"
2081 extra_headers=math-68881.h
2084 m68k-*-sysv4*) # Motorola m68k's running system V.4
2085 tm_file=m68k/m68kv4.h
2086 xm_file="xm-alloca.h ${xm_file}"
2089 extra_parts="crtbegin.o crtend.o"
2090 extra_headers=math-68881.h
2093 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
2096 tm_file=m68k/linux-aout.h
2097 tmake_file="t-linux-aout m68k/t-linux-aout"
2098 extra_headers=math-68881.h
2102 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2103 # with ELF format using the
2104 # GNU/Linux C library 5
2106 tm_file=m68k/linux.h
2107 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2108 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2109 extra_headers=math-68881.h
2113 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2114 # with ELF format using glibc 2
2115 # aka the GNU/Linux C library 6.
2117 tm_file=m68k/linux.h
2118 tmake_file="t-linux m68k/t-linux"
2119 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2120 extra_headers=math-68881.h
2123 if test x$enable_threads = xyes; then
2128 tmake_file=m68k/t-m68kbare
2129 tm_file=m68k/m68k-psos.h
2130 extra_headers=math-68881.h
2134 tmake_file="m68k/t-m68kbare t-rtems"
2135 tm_file=m68k/rtems.h
2136 extra_headers=math-68881.h
2143 tm_file=m88k/dguxbcs.h
2144 tmake_file=m88k/t-dguxbcs
2148 tmake_file=m88k/t-dgux
2151 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2152 xmake_file=m88k/x-dgux
2153 if test x$gas = xyes
2155 tmake_file=m88k/t-dgux-gas
2158 m88k-dolphin-sysv3*)
2159 tm_file=m88k/dolph.h
2160 extra_parts="crtbegin.o crtend.o"
2161 xm_file="m88k/xm-sysv3.h ${xm_file}"
2162 xmake_file=m88k/x-dolph
2163 if test x$gas = xyes
2165 tmake_file=m88k/t-m88k-gas
2168 m88k-tektronix-sysv3)
2169 tm_file=m88k/tekXD88.h
2170 extra_parts="crtbegin.o crtend.o"
2171 xm_file="m88k/xm-sysv3.h ${xm_file}"
2172 xmake_file=m88k/x-tekXD88
2173 if test x$gas = xyes
2175 tmake_file=m88k/t-m88k-gas
2179 tm_file=m88k/m88k-aout.h
2182 tm_file=m88k/m88k-coff.h
2183 tmake_file=m88k/t-bug
2187 extra_parts="crtbegin.o crtend.o"
2188 if test x$gas = xyes
2190 tmake_file=m88k/t-luna-gas
2192 tmake_file=m88k/t-luna
2196 tmake_file="${tmake_file} m88k/t-luna-gas"
2199 tm_file=m88k/sysv3.h
2200 extra_parts="crtbegin.o crtend.o"
2201 xm_file="m88k/xm-sysv3.h ${xm_file}"
2202 xmake_file=m88k/x-sysv3
2203 if test x$gas = xyes
2205 tmake_file=m88k/t-m88k-gas
2209 tm_file=m88k/sysv4.h
2210 extra_parts="crtbegin.o crtend.o"
2211 xmake_file=m88k/x-sysv4
2212 tmake_file=m88k/t-sysv4
2214 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2215 tm_file=mips/iris6.h
2216 xm_file=mips/xm-iris6.h
2217 xmake_file=mips/x-iris6
2218 tmake_file=mips/t-iris6
2219 # if test x$enable_threads = xyes; then
2220 # thread_file='irix'
2224 tm_file="mips/elf.h libgloss.h mips/vxworks.h"
2225 tmake_file=mips/t-ecoff
2228 extra_parts="crtbegin.o crtend.o"
2229 thread_file='vxworks'
2231 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2232 tm_file="mips/iris6.h mips/cross64.h"
2234 xm_file="mips/xm-iris5.h"
2235 xmake_file=mips/x-iris
2236 tmake_file=mips/t-cross64
2237 # See comment in mips/iris[56].h files.
2239 # if test x$enable_threads = xyes; then
2240 # thread_file='irix'
2244 if test x$gas = xyes
2246 if test x$stabs = xyes
2248 tm_file=mips/iris5gdb.h
2250 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2253 tm_file=mips/sni-svr4.h
2256 xmake_file=mips/x-sni-svr4
2257 tmake_file=mips/t-mips-gas
2258 if test x$gnu_ld != xyes
2263 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2264 if test x$gas = xyes
2266 tm_file="mips/iris5.h mips/iris5gas.h"
2267 if test x$stabs = xyes
2269 tm_file="${tm_file} dbx.h"
2272 tm_file=mips/iris5.h
2275 xm_file="mips/xm-iris5.h"
2276 xmake_file=mips/x-iris
2277 # mips-tfile doesn't work yet
2278 tmake_file=mips/t-mips-gas
2279 # See comment in mips/iris5.h file.
2281 # if test x$enable_threads = xyes; then
2282 # thread_file='irix'
2285 mips-sgi-irix4loser*) # Mostly like a MIPS.
2286 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2287 if test x$stabs = xyes; then
2288 tm_file="${tm_file} dbx.h"
2291 xmake_file=mips/x-iris
2292 if test x$gas = xyes
2294 tmake_file=mips/t-mips-gas
2296 extra_passes="mips-tfile mips-tdump"
2298 if test x$gnu_ld != xyes
2302 # if test x$enable_threads = xyes; then
2303 # thread_file='irix'
2306 mips-sgi-irix4*) # Mostly like a MIPS.
2307 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2308 if test x$stabs = xyes; then
2309 tm_file="${tm_file} dbx.h"
2312 xmake_file=mips/x-iris
2313 if test x$gas = xyes
2315 tmake_file=mips/t-mips-gas
2317 extra_passes="mips-tfile mips-tdump"
2319 if test x$gnu_ld != xyes
2323 # if test x$enable_threads = xyes; then
2324 # thread_file='irix'
2327 mips-sgi-*) # Mostly like a MIPS.
2328 tm_file="mips/iris3.h ${tm_file}"
2329 if test x$stabs = xyes; then
2330 tm_file="${tm_file} dbx.h"
2333 xmake_file=mips/x-iris3
2334 if test x$gas = xyes
2336 tmake_file=mips/t-mips-gas
2338 extra_passes="mips-tfile mips-tdump"
2340 if test x$gnu_ld != xyes
2345 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2346 tm_file="mips/osfrose.h ${tm_file}"
2347 xmake_file=mips/x-osfrose
2348 tmake_file=mips/t-osfrose
2349 extra_objs=halfpic.o
2352 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2353 tm_file=mips/dec-osf1.h
2354 if test x$stabs = xyes; then
2355 tm_file="${tm_file} dbx.h"
2357 xmake_file=mips/x-dec-osf1
2358 if test x$gas = xyes
2360 tmake_file=mips/t-mips-gas
2362 tmake_file=mips/t-ultrix
2363 extra_passes="mips-tfile mips-tdump"
2365 if test x$gnu_ld != xyes
2370 mips-dec-bsd*) # Decstation running 4.4 BSD
2371 tm_file=mips/dec-bsd.h
2372 if test x$gas = xyes
2374 tmake_file=mips/t-mips-gas
2376 tmake_file=mips/t-ultrix
2377 extra_passes="mips-tfile mips-tdump"
2379 if test x$gnu_ld != xyes
2384 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2385 tm_file=mips/netbsd.h
2386 # On NetBSD, the headers are already okay, except for math.h.
2389 mips*-*-linux*) # Linux MIPS, either endian.
2391 xm_file="xm-siglist.h ${xm_file}"
2393 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2394 *) tm_file="mips/elf.h mips/linux.h" ;;
2396 extra_parts="crtbegin.o crtend.o"
2400 mips*el-*-openbsd*) # mips little endian
2401 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2402 tm_file=mips/openbsd.h
2404 mips*-*-openbsd*) # mips big endian
2405 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2406 tm_file=mips/openbsd-be.h
2408 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2409 tm_file="mips/news4.h ${tm_file}"
2410 if test x$stabs = xyes; then
2411 tm_file="${tm_file} dbx.h"
2413 if test x$gas = xyes
2415 tmake_file=mips/t-mips-gas
2417 extra_passes="mips-tfile mips-tdump"
2419 if test x$gnu_ld != xyes
2423 xmake_file=mips/x-sony
2425 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2426 # That is based on svr4.
2427 # t-svr4 is not right because this system doesn't use ELF.
2428 tm_file="mips/news5.h ${tm_file}"
2429 if test x$stabs = xyes; then
2430 tm_file="${tm_file} dbx.h"
2432 xm_file="xm-siglist.h ${xm_file}"
2434 if test x$gas = xyes
2436 tmake_file=mips/t-mips-gas
2438 extra_passes="mips-tfile mips-tdump"
2440 if test x$gnu_ld != xyes
2445 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2446 tm_file="mips/svr4-5.h mips/svr4-t.h"
2447 if test x$stabs = xyes; then
2448 tm_file="${tm_file} dbx.h"
2450 xm_file="xm-siglist.h ${xm_file}"
2452 xmake_file=mips/x-sysv
2453 if test x$gas = xyes
2455 tmake_file=mips/t-mips-gas
2456 extra_parts="crtbegin.o crtend.o"
2458 tmake_file=mips/t-mips
2459 extra_passes="mips-tfile mips-tdump"
2461 if test x$gnu_ld != xyes
2466 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2467 tm_file="mips/ultrix.h ${tm_file}"
2468 if test x$stabs = xyes; then
2469 tm_file="${tm_file} dbx.h"
2471 xmake_file=mips/x-ultrix
2472 if test x$gas = xyes
2474 tmake_file=mips/t-mips-gas
2476 tmake_file=mips/t-ultrix
2477 extra_passes="mips-tfile mips-tdump"
2479 if test x$gnu_ld != xyes
2485 mips-*-riscos[56789]bsd*)
2487 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2488 if test x$stabs = xyes; then
2489 tm_file="${tm_file} dbx.h"
2491 if test x$gas = xyes
2493 tmake_file=mips/t-bsd-gas
2495 tmake_file=mips/t-bsd
2496 extra_passes="mips-tfile mips-tdump"
2498 if test x$gnu_ld != xyes
2504 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2506 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2507 if test x$stabs = xyes; then
2508 tm_file="${tm_file} dbx.h"
2510 if test x$gas = xyes
2512 tmake_file=mips/t-bsd-gas
2514 tmake_file=mips/t-bsd
2515 extra_passes="mips-tfile mips-tdump"
2517 if test x$gnu_ld != xyes
2523 mips-*-riscos[56789]sysv4*)
2525 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2526 if test x$stabs = xyes; then
2527 tm_file="${tm_file} dbx.h"
2529 xm_file="xm-siglist.h ${xm_file}"
2530 xmake_file=mips/x-sysv
2531 if test x$gas = xyes
2533 tmake_file=mips/t-svr4-gas
2535 tmake_file=mips/t-svr4
2536 extra_passes="mips-tfile mips-tdump"
2538 if test x$gnu_ld != xyes
2544 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2546 tm_file="mips/svr4-4.h ${tm_file}"
2547 if test x$stabs = xyes; then
2548 tm_file="${tm_file} dbx.h"
2551 xmake_file=mips/x-sysv
2552 if test x$gas = xyes
2554 tmake_file=mips/t-svr4-gas
2556 tmake_file=mips/t-svr4
2557 extra_passes="mips-tfile mips-tdump"
2559 if test x$gnu_ld != xyes
2565 mips-*-riscos[56789]sysv*)
2567 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2568 if test x$stabs = xyes; then
2569 tm_file="${tm_file} dbx.h"
2572 xmake_file=mips/x-sysv
2573 if test x$gas = xyes
2575 tmake_file=mips/t-svr3-gas
2577 tmake_file=mips/t-svr3
2578 extra_passes="mips-tfile mips-tdump"
2580 if test x$gnu_ld != xyes
2585 mips-*-sysv* | mips-*-riscos*sysv*)
2586 tm_file="mips/svr3-4.h ${tm_file}"
2587 if test x$stabs = xyes; then
2588 tm_file="${tm_file} dbx.h"
2591 xmake_file=mips/x-sysv
2592 if test x$gas = xyes
2594 tmake_file=mips/t-svr3-gas
2596 tmake_file=mips/t-svr3
2597 extra_passes="mips-tfile mips-tdump"
2599 if test x$gnu_ld != xyes
2605 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2607 tm_file=mips/mips-5.h
2608 if test x$stabs = xyes; then
2609 tm_file="${tm_file} dbx.h"
2611 if test x$gas = xyes
2613 tmake_file=mips/t-mips-gas
2615 extra_passes="mips-tfile mips-tdump"
2617 if test x$gnu_ld != xyes
2625 tm_file=mips/ecoffl.h
2626 if test x$stabs = xyes; then
2627 tm_file="${tm_file} dbx.h"
2629 tmake_file=mips/t-ecoff
2632 tm_file="gofast.h mips/ecoff.h"
2633 if test x$stabs = xyes; then
2634 tm_file="${tm_file} dbx.h"
2636 tmake_file=mips/t-ecoff
2639 tm_file="mips/elfl.h libgloss.h"
2640 tmake_file=mips/t-elf
2643 tm_file="mips/elf.h"
2644 tmake_file=mips/t-elf
2647 tm_file="mips/elfl64.h"
2648 tmake_file=mips/t-elf
2650 mips64orionel-*-elf*)
2651 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2652 tmake_file=mips/t-elf
2655 tm_file="mips/elf64.h"
2656 tmake_file=mips/t-elf
2659 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2660 tmake_file=mips/t-elf
2662 mips64orion-*-rtems*)
2663 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2664 tmake_file="mips/t-ecoff t-rtems"
2667 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2668 tmake_file=mips/t-r3900
2671 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2672 tmake_file=mips/t-r3900
2674 mips-*-*) # Default MIPS RISC-OS 4.0.
2675 if test x$stabs = xyes; then
2676 tm_file="${tm_file} dbx.h"
2678 if test x$gas = xyes
2680 tmake_file=mips/t-mips-gas
2682 extra_passes="mips-tfile mips-tdump"
2684 if test x$gnu_ld != xyes
2691 tm_file="mn10200/mn10200.h"
2692 if test x$stabs = xyes
2694 tm_file="${tm_file} dbx.h"
2700 tm_file="mn10300/mn10300.h"
2701 if test x$stabs = xyes
2703 tm_file="${tm_file} dbx.h"
2708 tm_file=ns32k/encore.h
2712 tm_file=ns32k/sequent.h
2716 tm_file=ns32k/tek6100.h
2720 tm_file=ns32k/tek6200.h
2723 # This has not been updated to GCC 2.
2726 # xmake_file=ns32k/x-genix
2727 # tm_file=ns32k/genix.h
2731 tm_file=ns32k/merlin.h
2735 tm_file=ns32k/pc532-mach.h
2739 tm_file=ns32k/pc532-min.h
2740 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2745 tm_file=ns32k/netbsd.h
2746 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2747 # On NetBSD, the headers are already okay, except for math.h.
2752 tm_file="${tm_file} pdp11/2bsd.h"
2761 xmake_file=pyr/x-pyr
2768 xmake_file=romp/x-mach
2775 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2779 tm_file=rs6000/beos.h
2780 xm_file=rs6000/xm-beos.h
2781 tmake_file=rs6000/t-beos
2782 xmake_file=rs6000/x-beos
2784 powerpc-*-sysv* | powerpc-*-elf*)
2785 tm_file=rs6000/sysv4.h
2786 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2787 xm_defines="USG POSIX"
2788 extra_headers=ppc-asm.h
2789 if test x$gas = xyes
2791 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2793 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2795 xmake_file=rs6000/x-sysv4
2798 tm_file=rs6000/eabiaix.h
2799 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2800 extra_headers=ppc-asm.h
2803 tm_file=rs6000/eabisim.h
2804 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2805 extra_headers=ppc-asm.h
2808 tm_file=rs6000/eabi.h
2809 if test x$gas = xyes
2811 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2813 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2815 extra_headers=ppc-asm.h
2818 tm_file=rs6000/rtems.h
2819 if test x$gas = xyes
2821 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2823 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2825 extra_headers=ppc-asm.h
2827 powerpc-*-linux-gnulibc1)
2828 tm_file=rs6000/linux.h
2829 xm_file=rs6000/xm-sysv4.h
2830 out_file=rs6000/rs6000.c
2831 if test x$gas = xyes
2833 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2835 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2838 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2839 extra_headers=ppc-asm.h
2840 if test x$enable_threads = xyes; then
2844 powerpc-*-linux-gnu*)
2845 tm_file=rs6000/linux.h
2846 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2847 xm_defines="USG ${xm_defines}"
2848 out_file=rs6000/rs6000.c
2849 if test x$gas = xyes
2851 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2853 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2856 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2857 extra_headers=ppc-asm.h
2858 if test x$enable_threads = xyes; then
2862 powerpc-wrs-vxworks*)
2864 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2865 xm_defines="USG POSIX"
2866 tm_file=rs6000/vxppc.h
2867 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2868 extra_headers=ppc-asm.h
2869 thread_file='vxworks'
2871 powerpcle-*-sysv* | powerpcle-*-elf*)
2872 tm_file=rs6000/sysv4le.h
2873 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2874 xm_defines="USG POSIX"
2875 if test x$gas = xyes
2877 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2879 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2881 xmake_file=rs6000/x-sysv4
2882 extra_headers=ppc-asm.h
2884 powerpcle-*-eabisim*)
2885 tm_file=rs6000/eabilesim.h
2886 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2887 extra_headers=ppc-asm.h
2890 tm_file=rs6000/eabile.h
2891 if test x$gas = xyes
2893 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2895 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2897 extra_headers=ppc-asm.h
2899 powerpcle-*-winnt* )
2900 tm_file=rs6000/win-nt.h
2901 tmake_file=rs6000/t-winnt
2903 if test x$enable_threads = xyes; then
2906 extra_headers=ppc-asm.h
2908 powerpcle-*-pe | powerpcle-*-cygwin*)
2909 tm_file=rs6000/cygwin.h
2910 xm_file="rs6000/xm-cygwin.h ${xm_file}"
2911 tmake_file=rs6000/t-winnt
2912 xmake_file=rs6000/x-cygwin
2914 if test x$enable_threads = xyes; then
2918 extra_headers=ppc-asm.h
2920 powerpcle-*-solaris2*)
2921 tm_file=rs6000/sol2.h
2922 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2923 xm_defines="USG POSIX"
2924 if test x$gas = xyes
2926 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2928 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2930 xmake_file=rs6000/x-sysv4
2931 extra_headers=ppc-asm.h
2934 rs6000-ibm-aix3.[01]*)
2936 tm_file=rs6000/aix31.h
2937 xmake_file=rs6000/x-aix31
2942 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2944 tm_file=rs6000/aix3newas.h
2945 if test x$host != x$target
2947 tmake_file=rs6000/t-xnewas
2949 tmake_file=rs6000/t-newas
2955 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2957 tm_file=rs6000/aix41.h
2958 if test x$host != x$target
2960 tmake_file=rs6000/t-xnewas
2962 tmake_file=rs6000/t-newas
2964 if test "$gnu_ld" = yes
2966 xmake_file=rs6000/x-aix41-gld
2968 xmake_file=rs6000/x-aix41
2974 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2976 tm_file=rs6000/aix43.h
2977 if test x$host != x$target
2979 tmake_file=rs6000/t-xaix43
2981 tmake_file=rs6000/t-aix43
2983 xmake_file=rs6000/x-aix43
2988 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2990 tm_file=rs6000/aix43.h
2991 if test x$host != x$target
2993 tmake_file=rs6000/t-xaix43
2995 tmake_file=rs6000/t-aix43
2997 xmake_file=rs6000/x-aix43
3010 tm_file=rs6000/mach.h
3011 xm_file="${xm_file} rs6000/xm-mach.h"
3012 xmake_file=rs6000/x-mach
3016 tm_file=rs6000/lynx.h
3017 xm_file=rs6000/xm-lynx.h
3018 tmake_file=rs6000/t-rs6000
3019 xmake_file=rs6000/x-lynx
3027 tmake_file="sh/t-sh t-rtems"
3028 tm_file=sh/rtemself.h
3032 tmake_file="sh/t-sh t-rtems"
3041 xm_file="xm-alloca.h ${xm_file}"
3044 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3045 tm_file=sparc/vxsparc.h
3046 tmake_file=sparc/t-vxsparc
3048 thread_file='vxworks'
3051 tmake_file=sparc/t-sparcbare
3052 tm_file="sparc/aout.h libgloss.h"
3055 tm_file=sparc/netbsd.h
3060 # we need collect2 until our bug is fixed...
3068 tmake_file=sparc/t-elf
3069 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3073 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
3074 xm_file="${xm_file} sparc/xm-linux.h"
3075 tm_file=sparc/linux-aout.h
3079 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
3080 xm_file="${xm_file} sparc/xm-linux.h"
3082 tm_file=sparc/linux.h
3083 tmake_file="t-linux t-linux-gnulibc1"
3084 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3087 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
3088 xm_file="${xm_file} sparc/xm-linux.h"
3090 tm_file=sparc/linux.h
3091 tmake_file="t-linux"
3092 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3094 if test x$enable_threads = xyes; then
3099 if test x$gas = xyes
3101 tm_file=sparc/lynx.h
3103 tm_file=sparc/lynx-ng.h
3105 xm_file=sparc/xm-lynx.h
3106 tmake_file=sparc/t-sunos41
3110 tmake_file="sparc/t-sparcbare t-rtems"
3111 tm_file=sparc/rtems.h
3113 sparcv9-*-solaris2*)
3114 tm_file=sparc/sol2-sld-64.h
3115 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3116 xm_defines="USG POSIX"
3117 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3118 xmake_file=sparc/x-sysv4
3119 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3121 if test x${enable_threads} = x ; then
3122 enable_threads=$have_pthread_h
3123 if test x${enable_threads} = x ; then
3124 enable_threads=$have_thread_h
3127 if test x${enable_threads} = xyes ; then
3128 if test x${have_pthread_h} = xyes ; then
3131 thread_file='solaris'
3135 sparc-hal-solaris2*)
3136 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3137 xm_defines="USG POSIX"
3138 tm_file="sparc/sol2.h sparc/hal.h"
3139 tmake_file="sparc/t-halos sparc/t-sol2"
3140 xmake_file=sparc/x-sysv4
3141 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3150 thread_file='solaris'
3153 if test x$gnu_ld = xyes
3155 tm_file=sparc/sol2.h
3157 tm_file=sparc/sol2-sld.h
3159 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3160 xm_defines="USG POSIX"
3161 tmake_file=sparc/t-sol2
3162 xmake_file=sparc/x-sysv4
3163 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3174 if test x${enable_threads} = x; then
3175 enable_threads=$have_pthread_h
3176 if test x${enable_threads} = x; then
3177 enable_threads=$have_thread_h
3180 if test x${enable_threads} = xyes; then
3181 if test x${have_pthread_h} = xyes; then
3184 thread_file='solaris'
3189 tm_file=sparc/sunos4.h
3190 tmake_file=sparc/t-sunos40
3194 tm_file=sparc/sunos4.h
3195 tmake_file=sparc/t-sunos41
3197 if test x$gas = xyes; then
3198 tm_file="${tm_file} sparc/sun4gas.h"
3202 tm_file=sparc/sun4o3.h
3206 tm_file=sparc/sysv4.h
3207 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3208 xm_defines="USG POSIX"
3210 xmake_file=sparc/x-sysv4
3211 extra_parts="crtbegin.o crtend.o"
3214 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3215 xm_defines="USG POSIX"
3216 tm_file=sparc/vxsim.h
3217 tmake_file=sparc/t-vxsparc
3218 xmake_file=sparc/x-sysv4
3221 tm_file="sparc/splet.h libgloss.h"
3222 tmake_file=sparc/t-splet
3225 tm_file="sparc/litecoff.h libgloss.h"
3226 tmake_file=sparc/t-sparclite
3229 tm_file="sparc/lite.h aoutos.h libgloss.h"
3230 tmake_file=sparc/t-sparclite
3233 tmake_file=sparc/t-sp64
3234 tm_file=sparc/sp64-aout.h
3237 tmake_file=sparc/t-sp64
3238 tm_file=sparc/sp64-elf.h
3239 extra_parts="crtbegin.o crtend.o"
3241 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3242 tmake_file="t-linux sparc/t-linux64"
3243 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3244 tm_file=sparc/linux64.h
3246 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3249 # This hasn't been upgraded to GCC 2.
3250 # tahoe-harris-*) # Harris tahoe, using COFF.
3251 # tm_file=tahoe/harris.h
3253 # tahoe-*-bsd*) # tahoe running BSD
3255 thumb-*-coff* | thumbel-*-coff*)
3257 out_file=arm/thumb.c
3258 xm_file=arm/xm-thumb.h
3259 md_file=arm/thumb.md
3260 tmake_file=arm/t-thumb
3264 out_file=arm/thumb.c
3265 xm_file=arm/xm-thumb.h
3266 md_file=arm/thumb.md
3267 tmake_file=arm/t-thumb
3268 thread_file='vxworks'
3270 # This hasn't been upgraded to GCC 2.
3277 tm_file="v850/v850.h"
3278 xm_file="v850/xm-v850.h"
3279 tmake_file=v850/t-v850
3280 if test x$stabs = xyes
3282 tm_file="${tm_file} dbx.h"
3286 vax-*-bsd*) # vaxen running BSD
3290 vax-*-sysv*) # vaxen running system V
3291 tm_file="${tm_file} vax/vaxv.h"
3296 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3302 tmake_file="${tmake_file} vax/t-openbsd"
3304 vax-*-ultrix*) # vaxen running ultrix
3305 tm_file="${tm_file} vax/ultrix.h"
3309 vax-*-vms*) # vaxen running VMS
3310 xm_file=vax/xm-vms.h
3314 vax-*-*) # vax default entry
3318 xm_file="${xm_file} xm-svr3"
3322 echo "Configuration $machine not supported" 1>&2
3329 ;; # Existing GNU/Linux systems do not use the GNU setup.
3331 # On the GNU system, the setup is just about the same on
3332 # each different CPU. The specific machines that GNU
3333 # supports are matched above and just set $cpu_type.
3334 xm_file="xm-gnu.h ${xm_file}"
3335 tm_file=${cpu_type}/gnu.h
3336 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3337 # GNU always uses ELF.
3339 # GNU tools are the only tools.
3342 xmake_file=x-linux # These details are the same as Linux.
3343 tmake_file=t-gnu # These are not.
3346 xmake_try_sysv=x-sysv
3347 install_headers_dir=install-headers-cpio
3350 install_headers_dir=install-headers-cpio
3354 # Distinguish i[34567]86
3355 # Also, do not run mips-tfile on MIPS if using gas.
3356 # Process --with-cpu= for PowerPC/rs6000
3357 target_cpu_default2=
3360 target_cpu_default2=1
3363 case $target_alias in
3365 target_cpu_default2=4
3368 target_cpu_default2=2
3372 i686-*-* | i786-*-*)
3373 target_cpu_default2=3
3378 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3381 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3384 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3387 target_cpu_default2="MASK_CPU_EV5"
3391 if test x$gas = xyes
3393 if test "$target_cpu_default2" = ""
3395 target_cpu_default2="MASK_GAS"
3397 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3402 case "x$with_cpu" in
3405 target_cpu_default2="TARGET_CPU_generic"
3408 # Distinguish cores, and major variants
3409 # arm7m doesn't exist, but D & I don't affect code
3410 xarm[23678] | xarm250 | xarm[67][01]0 \
3411 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3412 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3413 | xstrongarm | xstrongarm110 | xstrongarm1100)
3414 target_cpu_default2="TARGET_CPU_$with_cpu"
3418 echo "--with-cpu must be passed a value" 1>&2
3423 if test x$pass2done = xyes
3425 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3432 mips*-*-ecoff* | mips*-*-elf*)
3433 if test x$gas = xyes
3435 if test x$gnu_ld = xyes
3437 target_cpu_default2=20
3439 target_cpu_default2=16
3444 if test x$gas = xyes
3446 target_cpu_default2=16
3449 powerpc*-*-* | rs6000-*-*)
3450 case "x$with_cpu" in
3454 xcommon | xpower | xpower2 | xpowerpc | xrios \
3455 | xrios1 | xrios2 | xrsc | xrsc1 \
3456 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3457 | xec603e | x740 | x750 | x401 \
3458 | x403 | x505 | x801 | x821 | x823 | x860)
3459 target_cpu_default2="\"$with_cpu\""
3463 echo "--with-cpu must be passed a value" 1>&2
3468 if test x$pass2done = xyes
3470 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3477 case ".$with_cpu" in
3479 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3481 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3482 target_cpu_default2="TARGET_CPU_$with_cpu"
3485 if test x$pass2done = xyes
3487 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3495 if test "$target_cpu_default2" != ""
3497 if test "$target_cpu_default" != ""
3499 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3501 target_cpu_default=$target_cpu_default2
3505 # No need for collect2 if we have the GNU linker.
3506 # Actually, there is now; GNU ld doesn't handle the EH info or
3507 # collecting for shared libraries.
3514 # Save data on machine being used to compile GCC in build_xm_file.
3515 # Save data on host machine in vars host_xm_file and host_xmake_file.
3516 if test x$pass1done = x
3518 if test x"$xm_file" = x
3519 then build_xm_file=$cpu_type/xm-$cpu_type.h
3520 else build_xm_file=$xm_file
3522 build_xm_defines=$xm_defines
3523 build_install_headers_dir=$install_headers_dir
3524 build_exeext=$exeext
3527 if test x$pass2done = x
3529 if test x"$xm_file" = x
3530 then host_xm_file=$cpu_type/xm-$cpu_type.h
3531 else host_xm_file=$xm_file
3533 host_xm_defines=$xm_defines
3534 if test x"$xmake_file" = x
3535 then xmake_file=$cpu_type/x-$cpu_type
3537 host_xmake_file="$xmake_file"
3538 host_truncate_target=$truncate_target
3539 host_extra_gcc_objs=$extra_gcc_objs
3540 host_extra_objs=$extra_host_objs
3547 extra_objs="${host_extra_objs} ${extra_objs}"
3549 # Default the target-machine variables that were not explicitly set.
3550 if test x"$tm_file" = x
3551 then tm_file=$cpu_type/$cpu_type.h; fi
3553 if test x$extra_headers = x
3554 then extra_headers=; fi
3556 if test x"$xm_file" = x
3557 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3559 if test x$md_file = x
3560 then md_file=$cpu_type/$cpu_type.md; fi
3562 if test x$out_file = x
3563 then out_file=$cpu_type/$cpu_type.c; fi
3565 if test x"$tmake_file" = x
3566 then tmake_file=$cpu_type/t-$cpu_type
3569 if test x"$dwarf2" = xyes
3570 then tm_file="tm-dwarf2.h $tm_file"
3573 if test x$float_format = x
3574 then float_format=i64
3577 if test $float_format = none
3578 then float_h_file=Makefile.in
3579 else float_h_file=float-$float_format.h
3582 if test x$enable_haifa = x
3585 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3590 # Handle cpp installation.
3591 if test x$enable_cpp != xno
3593 tmake_file="$tmake_file t-install-cpp"
3596 # Say what files are being used for the output code and MD file.
3597 echo "Using \`$srcdir/config/$out_file' to output insns."
3598 echo "Using \`$srcdir/config/$md_file' as machine description file."
3601 for f in $tm_file; do
3604 if test $count = ax; then
3605 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3607 echo "Using the following target machine macro files:"
3608 for f in $tm_file; do
3609 echo " $srcdir/config/$f"
3614 for f in $host_xm_file; do
3617 if test $count = ax; then
3618 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3620 echo "Using the following host machine macro files:"
3621 for f in $host_xm_file; do
3622 echo " $srcdir/config/$f"
3626 if test "$host_xm_file" != "$build_xm_file"; then
3628 for f in $build_xm_file; do
3631 if test $count = ax; then
3632 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3634 echo "Using the following build machine macro files:"
3635 for f in $build_xm_file; do
3636 echo " $srcdir/config/$f"
3641 if test x$thread_file = x; then
3642 if test x$target_thread_file != x; then
3643 thread_file=$target_thread_file
3645 thread_file='single'
3649 # Set up the header files.
3650 # $links is the list of header files to create.
3651 # $vars is the list of shell variables with file names to include.
3652 # auto-host.h is the file containing items generated by autoconf and is
3653 # the first file included by config.h.
3655 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
3657 # If host=build, it is correct to have hconfig include auto-host.h
3658 # as well. If host!=build, we are in error and need to do more
3659 # work to find out the build config parameters.
3660 if test x$host = x$build
3662 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
3664 # We create a subdir, then run autoconf in the subdir.
3665 # To prevent recursion we set host and build for the new
3666 # invocation of configure to the build for this invocation
3673 /*) realsrcdir=${srcdir};;
3674 *) realsrcdir=../${srcdir};;
3676 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3677 --target=$target --host=$build --build=$build
3679 # We just finished tests for the build machine, so rename
3680 # the file auto-build.h in the gcc directory.
3681 mv auto-host.h ../auto-build.h
3684 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
3687 xm_file="gansidecl.h ${xm_file}"
3688 tm_file="gansidecl.h ${tm_file}"
3690 vars="host_xm_file tm_file xm_file build_xm_file"
3691 links="config.h tm.h tconfig.h hconfig.h"
3692 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3695 if test -f config.status; then mv -f config.status config.bak; fi
3698 while test -n "$vars"
3700 set $vars; var=$1; shift; vars=$*
3701 set $links; link=$1; shift; links=$*
3702 set $defines; define=$1; shift; defines=$*
3706 # Define TARGET_CPU_DEFAULT if the system wants one.
3707 # This substitutes for lots of *.h files.
3708 if test "$target_cpu_default" != "" -a $link = tm.h
3710 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3713 for file in `eval echo '$'$var`; do
3718 echo '#ifdef IN_GCC' >>$link
3721 echo "#include \"$file\"" >>$link
3726 echo '#endif' >>$link
3731 for def in `eval echo '$'$define`; do
3732 echo "#ifndef $def" >>$link
3733 echo "#define $def" >>$link
3734 echo "#endif" >>$link
3738 # Truncate the target if necessary
3739 if test x$host_truncate_target != x; then
3740 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3743 # Get the version trigger filename from the toplevel
3744 if test "${with_gcc_version_trigger+set}" = set; then
3745 gcc_version_trigger=$with_gcc_version_trigger
3747 gcc_version_trigger=${srcdir}/version.c
3750 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3753 # Internationalization
3755 VERSION="$gcc_version"
3756 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
3757 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
3763 # NLS support is still experimental, so disable it by default for now.
3765 [ --enable-nls use Native Language Support (disabled by default).
3766 EXPERIMENTAL, see ABOUT-GCC-NLS.],
3770 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
3772 # Get an absolute path to the GCC top-level source directory
3778 # Conditionalize the makefile for this host machine.
3779 # Make-host contains the concatenation of all host makefile fragments
3780 # [there can be more than one]. This file is built by configure.frag.
3781 host_overrides=Make-host
3782 dep_host_xmake_file=
3783 for f in .. ${host_xmake_file}
3785 if test -f ${srcdir}/config/$f
3787 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3791 # Conditionalize the makefile for this target machine.
3792 # Make-target contains the concatenation of all host makefile fragments
3793 # [there can be more than one]. This file is built by configure.frag.
3794 target_overrides=Make-target
3796 for f in .. ${tmake_file}
3798 if test -f ${srcdir}/config/$f
3800 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3804 # If the host doesn't support symlinks, modify CC in
3805 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3806 # Otherwise, we can use "CC=$(CC)".
3808 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3810 cc_set_by_configure="\$(CC)"
3811 quoted_cc_set_by_configure="\$(CC)"
3812 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3815 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3817 symbolic_link="cp -p"
3821 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3822 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
3823 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3827 out_object_file=`basename $out_file .c`.o
3830 for f in $tm_file; do
3833 tm_file_list="${tm_file_list} $f" ;;
3834 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
3839 for f in $host_xm_file; do
3841 auto-host.h | gansidecl.h | hwint.h )
3842 host_xm_file_list="${host_xm_file_list} $f" ;;
3843 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
3848 for f in $build_xm_file; do
3850 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
3851 build_xm_file_list="${build_xm_file_list} $f" ;;
3852 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
3856 # Define macro CROSS_COMPILE in compilation
3857 # if this is a cross-compiler.
3858 # Also use all.cross instead of all.internal
3859 # and add cross-make to Makefile.
3860 cross_overrides="/dev/null"
3861 if test x$host != x$target
3863 cross_defines="CROSS=-DCROSS_COMPILE"
3864 cross_overrides="${topdir}/cross-make"
3867 # When building gcc with a cross-compiler, we need to fix a few things.
3868 # This must come after cross-make as we want all.build to override
3870 build_overrides="/dev/null"
3871 if test x$build != x$host
3873 build_overrides="${topdir}/build-make"
3876 # Expand extra_headers to include complete path.
3877 # This substitutes for lots of t-* files.
3879 if test "x$extra_headers" = x
3882 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3883 for file in $extra_headers;
3885 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3889 if test x$use_collect2 = xno; then
3893 # Add a definition of USE_COLLECT2 if system wants one.
3894 # Also tell toplev.c what to do.
3895 # This substitutes for lots of t-* files.
3896 if test x$use_collect2 = x
3901 will_use_collect2="collect2"
3902 maybe_use_collect2="-DUSE_COLLECT2"
3906 # Set MD_DEPS if the real md file is in md.pre-cpp.
3907 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3908 # for line oriented comments, so we must always use a GNU cpp. If
3909 # building gcc with a cross compiler, use the cross compiler just
3910 # built. Otherwise, we can use the cpp just built.
3912 if test "x$md_cppflags" = x
3914 md_file_sub=$srcdir/config/$md_file
3919 # If we have gas in the build tree, make a link to it.
3920 if test -f ../gas/Makefile; then
3921 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3924 # If we have nm in the build tree, make a link to it.
3925 if test -f ../binutils/Makefile; then
3926 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3929 # If we have ld in the build tree, make a link to it.
3930 if test -f ../ld/Makefile; then
3931 # if test x$use_collect2 = x; then
3932 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3934 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3938 # Figure out what assembler alignment features are present.
3939 AC_MSG_CHECKING(assembler alignment features)
3941 gcc_cv_as_alignment_features=
3942 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3943 if test -x "$DEFAULT_ASSEMBLER"; then
3944 gcc_cv_as="$DEFAULT_ASSEMBLER"
3945 elif test -x "$AS"; then
3947 elif test -x as$host_exeext; then
3948 # Build using assembler in the current directory.
3949 gcc_cv_as=./as$host_exeext
3950 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
3951 # Single tree build which includes gas.
3952 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3955 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3957 if test x$gcc_cv_gas_version != x; then
3962 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3963 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3965 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3966 # Gas version 2.6 and later support for .balign and .p2align.
3967 # bytes to skip when using .p2align.
3968 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
3969 gcc_cv_as_alignment_features=".balign and .p2align"
3970 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3972 # Gas version 2.8 and later support specifying the maximum
3973 # bytes to skip when using .p2align.
3974 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
3975 gcc_cv_as_alignment_features=".p2align including maximum skip"
3976 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3979 elif test x$host = x$target; then
3981 # Search the same directories that the installed compiler will
3982 # search. Else we may find the wrong assembler and lose. If we
3983 # do not find a suitable assembler binary, then try the user's
3986 # Also note we have to check MD_EXEC_PREFIX before checking the
3987 # user's path. Unfortunately, there is no good way to get at the
3988 # value of MD_EXEC_PREFIX here. So we do a brute force search
3989 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
3990 # to be fixed as part of the make/configure rewrite too.
3992 if test "x$exec_prefix" = xNONE; then
3993 if test "x$prefix" = xNONE; then
3994 test_prefix=/usr/local
3999 test_prefix=$exec_prefix
4002 # If the loop below does not find an assembler, then use whatever
4003 # one we can find in the users's path.
4007 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4008 $test_prefix/lib/gcc-lib/$target \
4009 /usr/lib/gcc/$target/$gcc_version \
4010 /usr/lib/gcc/$target \
4011 $test_prefix/$target/bin/$target/$gcc_version \
4012 $test_prefix/$target/bin \
4017 /bsd43/usr/lib/cmplrs/cc \
4018 /usr/cross64/usr/bin \
4019 /usr/lib/cmplrs/cc \
4020 /sysv/usr/lib/cmplrs/cc \
4021 /svr4/usr/lib/cmplrs/cc \
4024 for dir in $test_dirs; do
4025 if test -f $dir/as$host_exeext; then
4026 gcc_cv_as=$dir/as$host_exeext
4031 if test x$gcc_cv_as != x; then
4032 # Check if we have .balign and .p2align
4033 echo ".balign 4" > conftest.s
4034 echo ".p2align 2" >> conftest.s
4035 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4036 gcc_cv_as_alignment_features=".balign and .p2align"
4037 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4039 rm -f conftest.s conftest.o
4040 # Check if specifying the maximum bytes to skip when
4041 # using .p2align is supported.
4042 echo ".p2align 4,,7" > conftest.s
4043 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4044 gcc_cv_as_alignment_features=".p2align including maximum skip"
4045 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4047 rm -f conftest.s conftest.o
4049 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4051 AC_MSG_CHECKING(assembler subsection support)
4052 gcc_cv_as_subsections=
4053 if test x$gcc_cv_as != x; then
4054 # Check if we have .subsection
4055 echo ".subsection 1" > conftest.s
4056 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4057 gcc_cv_as_subsections=".subsection"
4058 if test -x nm$host_exeext; then
4059 gcc_cv_nm=./nm$host_exeext
4060 elif test x$host = x$target; then
4062 gcc_cv_nm=nm$host_exeext
4064 if test x$gcc_cv_nm != x; then
4065 cat > conftest.s <<EOF
4066 conftest_label1: .word 0
4068 conftest_label2: .word 0
4071 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4072 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4073 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4074 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4077 gcc_cv_as_subsections="working .subsection -1"
4078 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
4083 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4085 AC_MSG_RESULT($gcc_cv_as_subsections)
4087 AC_MSG_CHECKING(assembler instructions)
4088 gcc_cv_as_instructions=
4089 if test x$gcc_cv_as != x; then
4090 set "filds fists" "filds mem; fists mem"
4093 echo "$2" > conftest.s
4094 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4095 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4096 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
4100 rm -f conftest.s conftest.o
4102 AC_MSG_RESULT($gcc_cv_as_instructions)
4104 # Figure out what language subdirectories are present.
4105 # Look if the user specified --enable-languages="..."; if not, use
4106 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4108 if test x"${enable_languages+set}" != xset; then
4109 if test x"${LANGUAGES+set}" = xset; then
4110 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4112 enable_languages=all
4116 for lang in ${srcdir}/*/config-lang.in ..
4120 # The odd quoting in the next line works around
4121 # an apparent bug in bash 1.12 on linux.
4123 ${srcdir}/[*]/config-lang.in) ;;
4125 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4126 if test "x$lang_alias" = x
4128 echo "$lang doesn't set \$language." 1>&2
4131 if test x"${enable_languages}" = xall; then
4134 case "${enable_languages}" in
4135 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4143 if test x"${add_this_lang}" = xyes; then
4145 ${srcdir}/ada/config-lang.in)
4146 if test x$gnat = xyes ; then
4147 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4151 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4160 # Make gthr-default.h if we have a thread file.
4162 if test $thread_file != single; then
4163 rm -f gthr-default.h
4164 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4165 gthread_flags=-DHAVE_GTHR_DEFAULT
4167 AC_SUBST(gthread_flags)
4169 # Make empty files to contain the specs and options for each language.
4170 # Then add #include lines to for a compiler that has specs and/or options.
4175 rm -f specs.h options.h gencheck.h
4176 touch specs.h options.h gencheck.h
4177 for subdir in . $subdirs
4179 if test -f $srcdir/$subdir/lang-specs.h; then
4180 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4181 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4183 if test -f $srcdir/$subdir/lang-options.h; then
4184 echo "#include \"$subdir/lang-options.h\"" >>options.h
4185 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4187 if test -f $srcdir/$subdir/$subdir-tree.def; then
4188 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4189 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4193 # These (without "all_") are set in each config-lang.in.
4194 # `language' must be a single word so is spelled singularly.
4200 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
4201 # List of language makefile fragments.
4206 # Add the language fragments.
4207 # Languages are added via two mechanisms. Some information must be
4208 # recorded in makefile variables, these are defined in config-lang.in.
4209 # We accumulate them and plug them into the main Makefile.
4210 # The other mechanism is a set of hooks for each of the main targets
4211 # like `clean', `install', etc.
4213 language_fragments="Make-lang"
4214 language_hooks="Make-hooks"
4217 for s in .. $subdirs
4229 . ${srcdir}/$s/config-lang.in
4230 if test "x$language" = x
4232 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4235 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4236 all_languages="$all_languages $language"
4237 if test "x$boot_language" = xyes
4239 all_boot_languages="$all_boot_languages $language"
4241 all_compilers="$all_compilers $compilers"
4242 all_stagestuff="$all_stagestuff $stagestuff"
4243 all_diff_excludes="$all_diff_excludes $diff_excludes"
4244 all_headers="$all_headers $headers"
4245 all_outputs="$all_outputs $outputs"
4246 if test x$outputs = x
4248 oldstyle_subdirs="$oldstyle_subdirs $s"
4250 all_lib2funcs="$all_lib2funcs $lib2funcs"
4254 # Since we can't use `::' targets, we link each language in
4255 # with a set of hooks, reached indirectly via lang.${target}.
4259 target_list="all.build all.cross start.encap rest.encap \
4261 install-normal install-common install-info install-man \
4263 mostlyclean clean distclean extraclean maintainer-clean \
4264 stage1 stage2 stage3 stage4"
4265 for t in $target_list
4268 for lang in .. $all_languages
4270 if test $lang != ".."; then
4274 echo "lang.$t: $x" >> Make-hooks
4277 # If we're not building in srcdir, create .gdbinit.
4279 if test ! -f Makefile.in; then
4280 echo "dir ." > .gdbinit
4281 echo "dir ${srcdir}" >> .gdbinit
4282 if test x$gdb_needs_out_file_path = xyes
4284 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4286 if test "x$subdirs" != x; then
4289 echo "dir ${srcdir}/$s" >> .gdbinit
4292 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4295 # Define variables host_canonical and build_canonical
4296 # because some Cygnus local changes in the Makefile depend on them.
4297 build_canonical=${build}
4298 host_canonical=${host}
4300 if test "${host}" != "${target}" ; then
4301 target_subdir=${target}/
4303 AC_SUBST(build_canonical)
4304 AC_SUBST(host_canonical)
4305 AC_SUBST(target_subdir)
4307 # If this is using newlib, then define inhibit_libc in
4308 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4309 # libgcc.a, but that's OK because newib should have its own version of
4312 if test x$with_newlib = xyes; then
4313 inhibit_libc=-Dinhibit_libc
4315 AC_SUBST(inhibit_libc)
4317 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4320 if test x$enable_haifa = xyes; then
4321 echo "Using the Haifa scheduler."
4323 sched_cflags=-DHAIFA
4325 AC_SUBST(sched_prefix)
4326 AC_SUBST(sched_cflags)
4327 if test x$enable_haifa != x; then
4328 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4329 for x in genattrtab.o toplev.o *sched.o; do
4337 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4338 # absolute path for gcc_tooldir based on inserting the number of up-directory
4339 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4340 # $(libsubdir)/@(unlibsubdir) based path.
4341 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4342 # make and thus we'd get different behavior depending on where we built the
4344 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4345 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4347 changequote(<<, >>)dnl
4348 # An explanation of the sed strings:
4349 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4350 # -e 's|/$||' match a trailing forward slash and eliminates it
4351 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4352 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4354 # (*) Note this pattern overwrites the first character of the string
4355 # with a forward slash if one is not already present. This is not a
4356 # problem because the exact names of the sub-directories concerned is
4357 # unimportant, just the number of them matters.
4359 # The practical upshot of these patterns is like this:
4361 # prefix exec_prefix result
4362 # ------ ----------- ------
4364 # /foo/ /foo/bar ../
4365 # /foo /foo/bar/ ../
4366 # /foo/ /foo/bar/ ../
4367 # /foo /foo/bar/ugg ../../
4370 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
4371 changequote([, ])dnl
4373 AC_SUBST(gcc_tooldir)
4376 # Nothing to do for FLOAT_H, float_format already handled.
4380 # Process the language and host/target makefile fragments.
4381 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4383 # Substitute configuration variables
4385 AC_SUBST(all_boot_languages)
4386 AC_SUBST(all_compilers)
4387 AC_SUBST(all_diff_excludes)
4388 AC_SUBST(all_headers)
4389 AC_SUBST(all_lang_makefiles)
4390 AC_SUBST(all_languages)
4391 AC_SUBST(all_lib2funcs)
4392 AC_SUBST(all_stagestuff)
4393 AC_SUBST(build_exeext)
4394 AC_SUBST(build_install_headers_dir)
4395 AC_SUBST(build_xm_file_list)
4396 AC_SUBST(cc_set_by_configure)
4397 AC_SUBST(quoted_cc_set_by_configure)
4398 AC_SUBST(cpp_install_dir)
4400 AC_SUBST(dep_host_xmake_file)
4401 AC_SUBST(dep_tmake_file)
4402 AC_SUBST(extra_c_flags)
4403 AC_SUBST(extra_c_objs)
4404 AC_SUBST(extra_cpp_objs)
4405 AC_SUBST(extra_cxx_objs)
4406 AC_SUBST(extra_headers_list)
4407 AC_SUBST(extra_objs)
4408 AC_SUBST(extra_parts)
4409 AC_SUBST(extra_passes)
4410 AC_SUBST(extra_programs)
4411 AC_SUBST(fixinc_defs)
4412 AC_SUBST(float_h_file)
4413 AC_SUBST(gcc_gxx_include_dir)
4414 AC_SUBST(gcc_version)
4415 AC_SUBST(gcc_version_trigger)
4416 AC_SUBST(host_exeext)
4417 AC_SUBST(host_extra_gcc_objs)
4418 AC_SUBST(host_xm_file_list)
4421 AC_SUBST(lang_options_files)
4422 AC_SUBST(lang_specs_files)
4423 AC_SUBST(lang_tree_files)
4424 AC_SUBST(local_prefix)
4425 AC_SUBST(maybe_use_collect2)
4427 AC_SUBST(objc_boehm_gc)
4429 AC_SUBST(out_object_file)
4430 AC_SUBST(stage_prefix_set_by_configure)
4431 AC_SUBST(symbolic_link)
4432 AC_SUBST(thread_file)
4433 AC_SUBST(tm_file_list)
4434 AC_SUBST(will_use_collect2)
4437 AC_SUBST_FILE(target_overrides)
4438 AC_SUBST_FILE(host_overrides)
4439 AC_SUBST(cross_defines)
4440 AC_SUBST_FILE(cross_overrides)
4441 AC_SUBST_FILE(build_overrides)
4442 AC_SUBST_FILE(language_fragments)
4443 AC_SUBST_FILE(language_hooks)
4445 # Echo that links are built
4446 if test x$host = x$target
4454 if test x$host != x$build
4456 str3=" on a $build system"
4459 if test "x$str2" != x || test "x$str3" != x
4464 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4466 if test "x$str2" != x || test "x$str3" != x
4468 echo " ${str2}${str3}." 1>&2
4471 # Truncate the target if necessary
4472 if test x$host_truncate_target != x; then
4473 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4476 # Configure the subdirectories
4477 # AC_CONFIG_SUBDIRS($subdirs)
4479 # Create the Makefile
4480 # and configure language subdirectories
4481 AC_OUTPUT($all_outputs,
4483 . $srcdir/configure.lang
4484 case x$CONFIG_HEADERS in
4485 xauto-host.h:config.in)
4488 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4489 # bootstrapping and the installation procedure can still use
4490 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4491 # FLAGS_TO_PASS has been modified to solve the problem there.
4492 # This is virtually a duplicate of what happens in configure.lang; we do
4493 # an extra check to make sure this only happens if ln -s can be used.
4494 if test "$symbolic_link" = "ln -s"; then
4495 for d in .. ${subdirs} ; do
4496 if test $d != ..; then
4499 for t in stage1 stage2 stage3 stage4 include
4502 $symbolic_link ../$t $t 2>/dev/null
4508 # Avoid having to add intl to our include paths.
4509 if test -f intl/libintl.h; then
4510 echo creating libintl.h
4511 echo '#include "intl/libintl.h"' >libintl.h
4518 target_alias='${target_alias}'
4520 subdirs='${subdirs}'
4521 oldstyle_subdirs='${oldstyle_subdirs}'
4522 symbolic_link='${symbolic_link}'
4523 program_transform_set='${program_transform_set}'
4524 program_transform_name='${program_transform_name}'
4525 dep_host_xmake_file='${dep_host_xmake_file}'
4526 host_xmake_file='${host_xmake_file}'
4527 dep_tmake_file='${dep_tmake_file}'
4528 tmake_file='${tmake_file}'
4529 thread_file='${thread_file}'
4530 gcc_version='${gcc_version}'
4531 gcc_version_trigger='${gcc_version_trigger}'
4532 local_prefix='${local_prefix}'
4533 build_install_headers_dir='${build_install_headers_dir}'
4534 build_exeext='${build_exeext}'
4535 host_exeext='${host_exeext}'
4536 out_file='${out_file}'
4537 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4538 SET_MAKE='${SET_MAKE}'
4539 target_list='${target_list}'
4540 target_overrides='${target_overrides}'
4541 host_overrides='${host_overrides}'
4542 cross_defines='${cross_defines}'
4543 cross_overrides='${cross_overrides}'
4544 build_overrides='${build_overrides}'
4545 cpp_install_dir='${cpp_install_dir}'