1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998 Free Software Foundation, Inc.
6 #This file is part of GNU CC.
8 #GNU CC is free software; you can redistribute it and/or modify
9 #it under the terms of the GNU General Public License as published by
10 #the Free Software Foundation; either version 2, or (at your option)
13 #GNU CC is distributed in the hope that it will be useful,
14 #but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 #GNU General Public License for more details.
18 #You should have received a copy of the GNU General Public License
19 #along with GNU CC; see the file COPYING. If not, write to
20 #the Free Software Foundation, 59 Temple Place - Suite 330,
21 #Boston, MA 02111-1307, USA.
23 # Initialization and defaults
25 AC_CONFIG_HEADER(auto-host.h:config.in)
32 # Check for bogus environment variables.
33 # Test if LIBRARY_PATH contains the notation for the current directory
34 # since this would lead to problems installing/building glibc.
35 # LIBRARY_PATH contains the current directory if one of the following
37 # - one of the terminals (":" and ";") is the first or last sign
38 # - two terminals occur directly after each other
39 # - the path contains an element with a dot in it
40 AC_MSG_CHECKING(LIBRARY_PATH variable)
42 case ${LIBRARY_PATH} in
43 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
44 library_path_setting="contains current directory"
47 library_path_setting="ok"
51 AC_MSG_RESULT($library_path_setting)
52 if test "$library_path_setting" != "ok"; then
54 *** LIBRARY_PATH shouldn't contain the current directory when
55 *** building egcs. Please change the environment variable
56 *** and run configure again.])
59 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
60 # since this would lead to problems installing/building glibc.
61 # GCC_EXEC_PREFIX contains the current directory if one of the following
63 # - one of the terminals (":" and ";") is the first or last sign
64 # - two terminals occur directly after each other
65 # - the path contains an element with a dot in it
66 AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
68 case ${GCC_EXEC_PREFIX} in
69 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
70 gcc_exec_prefix_setting="contains current directory"
73 gcc_exec_prefix_setting="ok"
77 AC_MSG_RESULT($gcc_exec_prefix_setting)
78 if test "$gcc_exec_prefix_setting" != "ok"; then
80 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
81 *** building egcs. Please change the environment variable
82 *** and run configure again.])
85 # Check for additional parameters
89 [ --with-gnu-ld arrange to work with GNU ld.],
90 gnu_ld_flag="$with_gnu_ld",
95 [ --with-ld arrange to use the specified ld (full pathname).],
97 if test x"${LD+set}" = x"set"; then
98 if test ! -x "$LD"; then
99 AC_MSG_WARN([cannot execute: $LD: check --with-ld or env. var. LD])
100 elif test "GNU" = `$LD -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
103 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$LD")
108 [ --with-gnu-as arrange to work with GNU as.],
109 gas_flag="$with_gnu_as",
113 [ --with-as arrange to use the specified as (full pathname).],
115 if test x"${AS+set}" = x"set"; then
116 if test ! -x "$AS"; then
117 AC_MSG_WARN([cannot execute: $AS: check --with-as or env. var. AS])
118 elif test "GNU" = `$AS -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
121 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$AS")
126 [ --with-stabs arrange to use stabs instead of host debug format.],
132 [ --with-elf arrange to use ELF instead of host debug format.],
136 # Specify the local prefix
138 AC_ARG_WITH(local-prefix,
139 [ --with-local-prefix=DIR specifies directory to put local include.],
140 [case "${withval}" in
141 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
143 *) local_prefix=$with_local_prefix ;;
146 # Default local prefix if it is empty
147 if test x$local_prefix = x; then
148 local_prefix=/usr/local
152 # Specify the g++ header file directory
153 AC_ARG_WITH(gxx-include-dir,
154 [ --with-gxx-include-dir=DIR
155 specifies directory to put g++ header files.],
156 [case "${withval}" in
157 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
159 *) gxx_include_dir=$with_gxx_include_dir ;;
162 if test x${gxx_include_dir} = x; then
163 if test x${enable_version_specific_runtime_libs} = xyes; then
164 gxx_include_dir='${libsubdir}/include/g++'
166 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
167 gxx_include_dir='${prefix}/include/g++'-${libstdcxx_interface}
171 # Enable expensive internal checks
172 AC_ARG_ENABLE(checking,
173 [ --enable-checking enable expensive run-time checks.],
174 [case "${enableval}" in
175 yes) AC_DEFINE(ENABLE_CHECKING) ;;
177 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
180 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
182 AC_ARG_ENABLE(cpplib,
183 [ --enable-cpplib use cpplib for the C preprocessor.],
184 if test x$enable_cpplib != xno; then
188 # Link cpplib into the compiler proper, for C/C++/ObjC.
189 AC_ARG_ENABLE(c-cpplib,
190 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
191 (implies --enable-cpplib).],
192 if test x$enable_c_cpplib != xno; then
193 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
194 extra_c_objs="${extra_c_objs} prefix.o"
195 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
196 extra_c_flags=-DUSE_CPPLIB=1
200 # Enable Multibyte Characters for C/C++
201 AC_ARG_ENABLE(c-mbchar,
202 [ --enable-c-mbchar enable multibyte characters for C and C++.],
203 if test x$enable_c_mbchar != xno; then
204 extra_c_flags=-DMULTIBYTE_CHARS=1
207 # Enable Haifa scheduler.
209 [ --enable-haifa use the experimental scheduler.
210 --disable-haifa don't use the experimental scheduler for the
211 targets which normally enable it.])
214 # This is a work in progress...
215 AC_ARG_WITH(fast-fixincludes,
216 [ --with-fast-fixincludes use a faster fixinclude program (experimental)],
217 fast_fixinc="$with_fast_fixincludes",
220 # Enable init_priority.
221 AC_ARG_ENABLE(init-priority,
222 [ --enable-init-priority use attributes to assign initialization order
224 --disable-init-priority conform to ISO C++ rules for ordering static objects
225 (i.e. initialized in order of declaration). ],
226 if test x$enable_init_priority != xno; then
227 extra_c_flags=-DUSE_INIT_PRIORITY
231 # Pass with no value to take the default
232 # Pass with a value to specify a thread package
233 AC_ARG_ENABLE(threads,
234 [ --enable-threads enable thread usage for target GCC.
235 --enable-threads=LIB use LIB thread package for target GCC.],
236 if test x$enable_threads = xno; then
241 enable_threads_flag=$enable_threads
242 # Check if a valid thread package
243 case x${enable_threads_flag} in
246 target_thread_file='single'
250 target_thread_file=''
252 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
253 xsolaris | xwin32 | xdce | xvxworks)
254 target_thread_file=$enable_threads_flag
257 echo "$enable_threads is an unknown thread package" 1>&2
262 AC_ARG_ENABLE(objc-gc,
263 [ --enable-objc-gc enable the use of Boehm's garbage collector with
264 the GNU Objective-C runtime.],
265 if [[[ x$enable_objc_gc = xno ]]]; then
272 # Determine the host, build, and target systems
275 # Find the native compiler
278 # If the native compiler is GCC, we can enable warnings even in stage1.
279 # That's useful for people building cross-compilers, or just running a
281 if test "x$GCC" = "xyes"; then
282 stage1_warn_cflags='$(WARN_CFLAGS)'
284 stage1_warn_cflags=""
286 AC_SUBST(stage1_warn_cflags)
290 AC_MSG_CHECKING([whether a default assembler was specified])
291 if test x"${AS+set}" = x"set"; then
292 if test x"$with_gas" = x"no"; then
293 AC_MSG_RESULT([yes ($AS)])
295 AC_MSG_RESULT([yes ($AS - GNU as)])
301 AC_MSG_CHECKING([whether a default linker was specified])
302 if test x"${LD+set}" = x"set"; then
303 if test x"$with_gnu_ld" = x"no"; then
304 AC_MSG_RESULT([yes ($LD)])
306 AC_MSG_RESULT([yes ($LD - GNU ld)])
312 # Find some useful tools
325 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h wait.h sys/wait.h)
327 # Check for thread headers.
328 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
329 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
331 # See if GNAT has been installed
332 AC_CHECK_PROG(gnat, gnatbind, yes, no)
334 # See if the system preprocessor understands the ANSI C preprocessor
335 # stringification operator.
336 AC_MSG_CHECKING(whether cpp understands the stringify operator)
337 AC_CACHE_VAL(gcc_cv_c_have_stringify,
340 char *test = S(foo);],
341 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
342 AC_MSG_RESULT($gcc_cv_c_have_stringify)
343 if test $gcc_cv_c_have_stringify = yes; then
344 AC_DEFINE(HAVE_CPP_STRINGIFY)
347 # Use <inttypes.h> only if it exists,
348 # doesn't clash with <sys/types.h>, and declares intmax_t.
349 AC_MSG_CHECKING(for inttypes.h)
350 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
352 [#include <sys/types.h>
353 #include <inttypes.h>],
355 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
356 gcc_cv_header_inttypes_h=yes],
357 gcc_cv_header_inttypes_h=no)])
358 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
360 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
361 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
362 sysconf isascii gettimeofday strsignal)
364 # Make sure wchar_t is available
365 #AC_CHECK_TYPE(wchar_t, unsigned int)
367 GCC_FUNC_VFPRINTF_DOPRNT
370 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
371 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
374 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
375 #include <sys/types.h>
376 #ifdef HAVE_SYS_RESOURCE_H
377 #include <sys/resource.h>
391 build_install_headers_dir=install-headers-tar
396 host_truncate_target=
399 # Decode the host machine, then the target machine.
400 # For the host machine, we save the xm_file variable as host_xm_file;
401 # then we decode the target machine and forget everything else
402 # that came from the host machine.
403 for machine in $build $host $target; do
417 # Set this to force installation and use of collect2.
419 # Set this to override the default target model.
421 # Set this to control which fixincludes program to use.
422 if test x$fast_fixinc != xyes; then
423 fixincludes=fixincludes
424 else fixincludes=fixinc.sh ; fi
425 # Set this to control how the header file directory is installed.
426 install_headers_dir=install-headers-tar
427 # Set this to a non-empty list of args to pass to cpp if the target
428 # wants its .md file passed through cpp.
430 # Set this if directory names should be truncated to 14 characters.
432 # Set this if gdb needs a dir command with `dirname $out_file`
433 gdb_needs_out_file_path=
434 # Set this if the build machine requires executables to have a
437 # Set this to control which thread package will be used.
439 # Reinitialize these from the flag values every loop pass, since some
440 # configure entries modify them.
442 gnu_ld="$gnu_ld_flag"
443 enable_threads=$enable_threads_flag
445 # Set default cpu_type, tm_file and xm_file so it can be updated in
446 # each machine entry.
447 cpu_type=`echo $machine | sed 's/-.*$//'`
483 tm_file=${cpu_type}/${cpu_type}.h
484 xm_file=${cpu_type}/xm-${cpu_type}.h
486 # Set the default macros to define for GNU/Linux systems.
489 xm_defines="HAVE_ATEXIT POSIX BSTRING"
494 # Support site-specific machine types.
496 cpu_type=`echo $machine | sed -e 's/-.*//'`
497 rest=`echo $machine | sed -e "s/$cpu_type-//"`
498 xm_file=${cpu_type}/xm-$rest.h
499 tm_file=${cpu_type}/$rest.h
500 if test -f $srcdir/config/${cpu_type}/x-$rest; \
501 then xmake_file=${cpu_type}/x-$rest; \
504 if test -f $srcdir/config/${cpu_type}/t-$rest; \
505 then tmake_file=${cpu_type}/t-$rest; \
511 a29k-*-bsd* | a29k-*-sym1*)
512 tm_file="${tm_file} a29k/unix.h"
514 xmake_file=a29k/x-unix
517 a29k-*-udi | a29k-*-coff)
518 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
519 tmake_file=a29k/t-a29kbare
522 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
523 tmake_file=a29k/t-vx29k
524 extra_parts="crtbegin.o crtend.o"
525 thread_file='vxworks'
527 a29k-*-*) # Default a29k environment.
530 alpha*-*-linux-gnuecoff*)
531 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
532 target_cpu_default="MASK_GAS"
537 alpha*-*-linux-gnulibc1*)
538 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
539 target_cpu_default="MASK_GAS"
540 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
541 extra_parts="crtbegin.o crtend.o"
542 fixincludes=fixinc.wrap
545 if test x$enable_threads = xyes; then
550 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
551 target_cpu_default="MASK_GAS"
552 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
553 extra_parts="crtbegin.o crtend.o"
555 fixincludes=Makefile.in
557 if test x$enable_threads = xyes; then
562 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
563 target_cpu_default="MASK_GAS"
564 tmake_file="alpha/t-crtbe"
565 extra_parts="crtbegin.o crtend.o"
567 fixincludes=fixinc.wrap
572 if test x$stabs = xyes
574 tm_file="${tm_file} dbx.h"
576 if test x$gas != xyes
578 extra_passes="mips-tfile mips-tdump"
583 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
588 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
591 tm_file="${tm_file} alpha/osf.h"
592 # Some versions of OSF4 (specifically X4.0-9 296.7) have
593 # a broken tar, so we use cpio instead.
594 install_headers_dir=install-headers-cpio
599 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
601 target_cpu_default=MASK_SUPPORT_ARCH
606 tm_file="${tm_file} dbx.h alpha/vxworks.h"
609 extra_passes="mips-tfile mips-tdump"
614 tm_file="${tm_file} alpha/win-nt.h"
615 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
617 xmake_file=winnt/x-winnt
618 extra_host_objs=oldnames.o
619 extra_gcc_objs="spawnv.o oldnames.o"
620 fixincludes=fixinc.winnt
621 if test x$gnu_ld != xyes
623 extra_programs=ld.exe
625 if test x$enable_threads = xyes; then
631 xm_file="${xm_file} alpha/xm-vms.h"
632 tmake_file=alpha/t-vms
633 fixincludes=Makefile.in
636 extra_parts="crtinit.o crtfini.o"
638 arm-*-coff* | armel-*-coff*)
640 tmake_file=arm/t-bare
643 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
645 tm_file=arm/riscix1-1.h
648 arm-*-riscix*) # Acorn RISC machine
651 tm_file=arm/rix-gas.h
655 xmake_file=arm/x-riscix
656 tmake_file=arm/t-riscix
659 arm-semi-aout | armel-semi-aout)
661 tmake_file=arm/t-semi
662 fixincludes=Makefile.in # There is nothing to fix
664 arm-semi-aof | armel-semi-aof)
665 tm_file=arm/semiaof.h
666 tmake_file=arm/t-semiaof
667 fixincludes=Makefile.in # There is nothing to fix
671 xm_file="arm/xm-netbsd.h ${xm_file}"
672 tmake_file="t-netbsd arm/t-netbsd"
673 # On NetBSD, the headers are already okay, except for math.h.
674 fixincludes=fixinc.wrap
676 arm-*-linux-gnuaout*) # ARM GNU/Linux
679 tm_file=arm/linux-gas.h
680 tmake_file=arm/t-linux
681 fixincludes=Makefile.in
686 tmake_file=arm/t-bare
688 c1-convex-*) # Convex C1
691 fixincludes=Makefile.in
693 c2-convex-*) # Convex C2
696 fixincludes=Makefile.in
701 fixincludes=Makefile.in
706 fixincludes=Makefile.in
709 target_cpu_default=16
711 fixincludes=Makefile.in
717 clipper-intergraph-clix*)
718 tm_file="${tm_file} svr3.h clipper/clix.h"
719 xm_file=clipper/xm-clix.h
720 xmake_file=clipper/x-clix
721 extra_headers=va-clipper.h
722 extra_parts="crtbegin.o crtend.o"
723 install_headers_dir=install-headers-cpio
730 # This hasn't been upgraded to GCC 2.
731 # fx80-alliant-*) # Alliant FX/80
737 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
738 xm_file=pa/xm-papro.h
743 tm_file="${tm_file} pa/pa-osf.h"
745 fixincludes=Makefile.in
748 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
749 xm_file=pa/xm-papro.h
753 tm_file="${tm_file} pa/pa-osf.h"
755 fixincludes=Makefile.in
760 fixincludes=Makefile.in
764 fixincludes=Makefile.in
767 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
768 xm_file=pa/xm-pahpux.h
769 xmake_file=pa/x-pa-hpux
772 tm_file="${tm_file} pa/gas.h"
774 install_headers_dir=install-headers-cpio
778 hppa1.0-*-hpux8.0[0-2]*)
780 tm_file="${tm_file} pa/pa-hpux.h"
781 xm_file=pa/xm-pahpux.h
782 xmake_file=pa/x-pa-hpux
785 tm_file="${tm_file} pa/pa-gas.h"
787 tm_file="pa/pa-oldas.h ${tm_file}"
789 install_headers_dir=install-headers-cpio
793 hppa1.1-*-hpux8.0[0-2]*)
796 tm_file="${tm_file} pa/pa-hpux.h"
797 xm_file=pa/xm-pahpux.h
798 xmake_file=pa/x-pa-hpux
801 tm_file="${tm_file} pa/pa-gas.h"
803 tm_file="pa/pa-oldas.h ${tm_file}"
805 install_headers_dir=install-headers-cpio
810 tm_file="${tm_file} pa/pa-hpux.h"
811 xm_file=pa/xm-pahpux.h
812 xmake_file=pa/x-pa-hpux
815 tm_file="${tm_file} pa/pa-gas.h"
817 install_headers_dir=install-headers-cpio
821 tm_file="${tm_file} pa/pa-hpux.h"
822 xm_file=pa/xm-pahpux.h
823 xmake_file=pa/x-pa-hpux
826 tm_file="${tm_file} pa/pa-gas.h"
828 install_headers_dir=install-headers-cpio
833 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
834 xm_file=pa/xm-pahpux.h
835 xmake_file=pa/x-pa-hpux
839 tm_file="${tm_file} pa/pa-gas.h"
841 if test x$enable_threads = x; then
842 enable_threads=$have_pthread_h
844 if test x$enable_threads = xyes; then
846 tmake_file="${tmake_file} pa/t-dce-thr"
848 install_headers_dir=install-headers-cpio
852 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
853 xm_file=pa/xm-pahpux.h
854 xmake_file=pa/x-pa-hpux
857 tm_file="${tm_file} pa/pa-gas.h"
859 if test x$enable_threads = x; then
860 enable_threads=$have_pthread_h
862 if test x$enable_threads = xyes; then
864 tmake_file="${tmake_file} pa/t-dce-thr"
866 install_headers_dir=install-headers-cpio
871 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
872 xm_file=pa/xm-pahpux.h
873 xmake_file=pa/x-pa-hpux
876 tm_file="${tm_file} pa/pa-gas.h"
878 install_headers_dir=install-headers-cpio
882 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
883 xm_file=pa/xm-pahpux.h
884 xmake_file=pa/x-pa-hpux
887 tm_file="${tm_file} pa/pa-gas.h"
889 install_headers_dir=install-headers-cpio
894 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
895 xm_file=pa/xm-pahpux.h
896 xmake_file=pa/x-pa-hpux
899 tm_file="${tm_file} pa/pa-gas.h"
901 install_headers_dir=install-headers-cpio
905 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
906 xm_file=pa/xm-pahpux.h
907 xmake_file=pa/x-pa-hpux
910 tm_file="${tm_file} pa/pa-gas.h"
912 install_headers_dir=install-headers-cpio
918 fixincludes=Makefile.in
923 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
927 tm_file=i386/aix386.h
928 extra_parts="crtbegin.o crtend.o"
929 tmake_file=i386/t-crtstuff
931 tm_file=i386/aix386ng.h
934 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
936 xmake_file=i386/x-aix
939 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
941 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
942 xm_defines="USG POSIX SMALL_ARG_MAX"
943 xmake_file=i386/x-ncr3000
944 if test x$stabs = xyes -a x$gas = xyes
946 tm_file=i386/sysv4gdb.h
950 extra_parts="crtbegin.o crtend.o"
951 tmake_file=i386/t-crtpic
957 xm_file=i386/xm-next.h
958 tmake_file=i386/t-next
959 xmake_file=i386/x-next
960 extra_objs=nextstep.o
961 extra_parts="crtbegin.o crtend.o"
962 if test x$enable_threads = xyes; then
967 i[34567]86-sequent-bsd*) # 80386 from Sequent
972 tm_file=i386/seq-gas.h
974 tm_file=i386/sequent.h
978 i[34567]86-sequent-ptx1*)
980 xm_defines="USG SVR3"
981 xmake_file=i386/x-sysv3
982 tm_file=i386/seq-sysv3.h
983 tmake_file=i386/t-crtstuff
984 fixincludes=fixinc.ptx
985 extra_parts="crtbegin.o crtend.o"
986 install_headers_dir=install-headers-cpio
989 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
991 xm_defines="USG SVR3"
992 xmake_file=i386/x-sysv3
993 tm_file=i386/seq2-sysv3.h
994 tmake_file=i386/t-crtstuff
995 extra_parts="crtbegin.o crtend.o"
996 fixincludes=fixinc.ptx
997 install_headers_dir=install-headers-cpio
1000 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1002 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1003 xm_defines="USG POSIX SMALL_ARG_MAX"
1005 tm_file=i386/ptx4-i.h
1007 extra_parts="crtbegin.o crtend.o"
1008 fixincludes=fixinc.ptx
1009 install_headers_dir=install-headers-cpio
1011 i386-sun-sunos*) # Sun i386 roadrunner
1017 i[34567]86-wrs-vxworks*)
1019 tm_file=i386/vxi386.h
1020 tmake_file=i386/t-i386bare
1025 tm_file=i386/i386-aout.h
1026 tmake_file=i386/t-i386bare
1029 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1031 tm_file=i386/bsd386.h
1032 # tmake_file=t-libc-ok
1037 tm_file=i386/386bsd.h
1038 # tmake_file=t-libc-ok
1039 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1043 i[34567]86-*-freebsdelf*)
1045 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
1046 # On FreeBSD, the headers are already ok, except for math.h.
1047 fixincludes=fixinc.wrap
1048 tmake_file=i386/t-freebsd
1054 i[34567]86-*-freebsd*)
1056 tm_file=i386/freebsd.h
1057 # On FreeBSD, the headers are already ok, except for math.h.
1058 fixincludes=fixinc.wrap
1059 tmake_file=i386/t-freebsd
1061 # We are hoping OpenBSD is still close enough to NetBSD that we can
1062 # share the configurations.
1064 i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
1066 tm_file=i386/netbsd.h
1067 # On NetBSD, the headers are already okay, except for math.h.
1068 fixincludes=fixinc.wrap
1074 tm_file=i386/i386-coff.h
1075 tmake_file=i386/t-i386bare
1078 i[34567]86-*-isc*) # 80386 running ISC system
1080 xm_file="${xm_file} i386/xm-isc.h"
1081 xm_defines="USG SVR3"
1084 i[34567]86-*-isc[34]*)
1086 xmake_file=i386/x-isc3
1089 xmake_file=i386/x-isc
1092 if test x$gas = xyes -a x$stabs = xyes
1094 tm_file=i386/iscdbx.h
1095 tmake_file=i386/t-svr3dbx
1096 extra_parts="svr3.ifile svr3z.ifile"
1098 tm_file=i386/isccoff.h
1099 tmake_file=i386/t-crtstuff
1100 extra_parts="crtbegin.o crtend.o"
1102 install_headers_dir=install-headers-cpio
1105 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1106 changequote([,])dnl # with a.out format using
1108 xmake_file=x-linux-aout
1109 tmake_file="t-linux-aout i386/t-crtstuff"
1110 tm_file=i386/linux-oldld.h
1111 fixincludes=Makefile.in #On Linux, the headers are ok already.
1116 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1117 changequote([,])dnl # with a.out format
1118 xmake_file=x-linux-aout
1119 tmake_file="t-linux-aout i386/t-crtstuff"
1120 tm_file=i386/linux-aout.h
1121 fixincludes=Makefile.in #On Linux, the headers are ok already.
1126 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1127 changequote([,])dnl # with ELF format using the
1128 # GNU/Linux C library 5
1130 tm_file=i386/linux.h
1131 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1132 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1133 fixincludes=Makefile.in #On Linux, the headers are ok already.
1136 if test x$enable_threads = xyes; then
1137 thread_file='single'
1141 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1142 changequote([,])dnl # with ELF format using glibc 2
1143 # aka GNU/Linux C library 6
1145 tm_file=i386/linux.h
1146 tmake_file="t-linux i386/t-crtstuff"
1147 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1148 fixincludes=Makefile.in #On Linux, the headers are ok already.
1151 if test x$enable_threads = xyes; then
1160 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1162 xm_file=i386/xm-go32.h
1164 tmake_file=i386/t-go32
1167 i[34567]86-pc-msdosdjgpp*)
1169 xm_file=i386/xm-go32.h
1171 tmake_file=i386/t-go32
1176 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1179 tmake_file=t-libc-ok
1180 fixincludes=Makefile.in
1185 i[34567]86-*-lynxos*)
1187 if test x$gas = xyes
1191 tm_file=i386/lynx-ng.h
1193 xm_file=i386/xm-lynx.h
1194 tmake_file=i386/t-i386bare
1201 # tmake_file=t-libc-ok
1205 i[34567]86-*-osfrose*) # 386 using OSF/rose
1207 if test x$elf = xyes
1209 tm_file=i386/osfelf.h
1212 tm_file=i386/osfrose.h
1215 xm_file="i386/xm-osf.h ${xm_file}"
1216 xmake_file=i386/x-osfrose
1217 tmake_file=i386/t-osf
1218 extra_objs=halfpic.o
1221 i[34567]86-go32-rtems*)
1224 xm_file=i386/xm-go32.h
1225 tm_file=i386/go32-rtems.h
1226 tmake_file="i386/t-go32 t-rtems"
1229 i[34567]86-*-rtemself*)
1232 tm_file=i386/rtemself.h
1233 tmake_file="i386/t-i386bare t-rtems"
1236 i[34567]86-*-rtems*)
1239 tm_file=i386/rtems.h
1240 tmake_file="i386/t-i386bare t-rtems"
1243 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1245 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1246 xm_defines="USG SVR3"
1247 xmake_file=i386/x-sco5
1248 fixincludes=fixinc.sco
1249 install_headers_dir=install-headers-cpio
1251 if test x$gas = xyes
1253 tm_file="i386/sco5gas.h ${tm_file}"
1254 tmake_file=i386/t-sco5gas
1256 tmake_file=i386/t-sco5
1258 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1261 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1263 xm_file="${xm_file} i386/xm-sco.h"
1264 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1265 xmake_file=i386/x-sco4
1266 fixincludes=fixinc.sco
1267 install_headers_dir=install-headers-cpio
1268 if test x$stabs = xyes
1270 tm_file=i386/sco4dbx.h
1271 tmake_file=i386/t-svr3dbx
1272 extra_parts="svr3.ifile svr3z.rfile"
1275 tmake_file=i386/t-crtstuff
1276 extra_parts="crtbegin.o crtend.o"
1281 i[34567]86-*-sco*) # 80386 running SCO system
1283 xm_file=i386/xm-sco.h
1284 xmake_file=i386/x-sco
1285 install_headers_dir=install-headers-cpio
1286 if test x$stabs = xyes
1288 tm_file=i386/scodbx.h
1289 tmake_file=i386/t-svr3dbx
1290 extra_parts="svr3.ifile svr3z.rfile"
1293 extra_parts="crtbegin.o crtend.o"
1294 tmake_file=i386/t-crtstuff
1299 i[34567]86-*-solaris2*)
1301 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1302 xm_defines="USG POSIX SMALL_ARG_MAX"
1303 if test x$stabs = xyes
1305 tm_file=i386/sol2dbg.h
1309 tmake_file=i386/t-sol2
1310 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1316 fixincludes=fixinc.svr4;;
1318 fixincludes=fixinc.wrap;;
1320 if test x$enable_threads = xyes; then
1321 thread_file='solaris'
1325 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1327 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1328 xm_defines="USG POSIX"
1329 tm_file=i386/sysv4.h
1330 if test x$stabs = xyes
1332 tm_file="${tm_file} dbx.h"
1334 tmake_file=i386/t-crtpic
1336 extra_parts="crtbegin.o crtend.o"
1337 fixincludes=fixinc.svr4
1340 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1342 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1343 xm_defines="USG POSIX SMALL_ARG_MAX"
1344 tm_file=i386/sysv4.h
1345 if test x$stabs = xyes
1347 tm_file="${tm_file} dbx.h"
1349 tmake_file=i386/t-crtpic
1351 extra_parts="crtbegin.o crtend.o"
1354 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1357 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1358 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1359 fixincludes=Makefile.in #Don't do it on OSF/1
1360 if test x$stabs = xyes
1362 tm_file=i386/osf1elfgdb.h
1364 tm_file=i386/osf1elf.h
1366 tmake_file=i386/t-osf1elf
1367 xmake_file=i386/x-osf1elf
1368 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1371 i[34567]86-*-sysv*) # Intel 80386's running system V
1373 xm_defines="USG SVR3"
1374 xmake_file=i386/x-sysv3
1375 if test x$gas = xyes
1377 if test x$stabs = xyes
1379 tm_file=i386/svr3dbx.h
1380 tmake_file=i386/t-svr3dbx
1381 extra_parts="svr3.ifile svr3z.rfile"
1383 tm_file=i386/svr3gas.h
1384 extra_parts="crtbegin.o crtend.o"
1385 tmake_file=i386/t-crtstuff
1388 tm_file=i386/sysv3.h
1389 extra_parts="crtbegin.o crtend.o"
1390 tmake_file=i386/t-crtstuff
1393 i386-*-vsta) # Intel 80386's running VSTa kernel
1394 xm_file="${xm_file} i386/xm-vsta.h"
1396 tmake_file=i386/t-vsta
1397 xmake_file=i386/x-vsta
1402 xm_file="${xm_file} i386/xm-cygwin32.h"
1403 tmake_file=i386/t-cygwin32
1404 tm_file=i386/win32.h
1405 xmake_file=i386/x-cygwin32
1407 fixincludes=Makefile.in
1408 if test x$enable_threads = xyes; then
1414 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1416 xm_file="${xm_file} i386/xm-cygwin32.h"
1417 tmake_file=i386/t-cygwin32
1418 tm_file=i386/cygwin32.h
1419 xmake_file=i386/x-cygwin32
1421 fixincludes=Makefile.in
1422 if test x$enable_threads = xyes; then
1428 i[34567]86-*-mingw32*)
1430 tm_file=i386/mingw32.h
1431 xm_file="${xm_file} i386/xm-mingw32.h"
1432 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1434 xmake_file=i386/x-cygwin32
1435 fixincludes=Makefile.in
1436 if test x$enable_threads = xyes; then
1443 *minwg32crt* | *mingw32*)
1444 tm_file="${tm_file} i386/crtdll.h"
1449 i[34567]86-*-winnt3*)
1451 tm_file=i386/win-nt.h
1452 out_file=i386/i386.c
1453 xm_file="xm-winnt.h ${xm_file}"
1454 xmake_file=winnt/x-winnt
1455 tmake_file=i386/t-winnt
1456 extra_host_objs="winnt.o oldnames.o"
1457 extra_gcc_objs="spawnv.o oldnames.o"
1458 fixincludes=fixinc.winnt
1459 if test x$gnu_ld != xyes
1461 extra_programs=ld.exe
1463 if test x$enable_threads = xyes; then
1468 i[34567]86-dg-dgux*)
1470 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1471 xm_defines="USG POSIX"
1472 out_file=i386/dgux.c
1474 tmake_file=i386/t-dgux
1475 xmake_file=i386/x-dgux
1476 fixincludes=fixinc.dgux
1477 install_headers_dir=install-headers-cpio
1479 i860-alliant-*) # Alliant FX/2800
1480 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1481 xm_file="${xm_file}"
1482 xmake_file=i860/x-fx2800
1483 tmake_file=i860/t-fx2800
1484 extra_parts="crtbegin.o crtend.o"
1487 tm_file="${tm_file} i860/bsd.h"
1488 if test x$gas = xyes
1490 tm_file="${tm_file} i860/bsd-gas.h"
1495 tm_file="${tm_file} i860/mach.h"
1496 tmake_file=t-libc-ok
1498 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1499 tm_file="${tm_file} svr3.h i860/paragon.h"
1500 xm_defines="USG SVR3"
1504 tm_file="${tm_file} svr3.h i860/sysv3.h"
1505 xm_defines="USG SVR3"
1506 xmake_file=i860/x-sysv3
1507 extra_parts="crtbegin.o crtend.o"
1510 tm_file="${tm_file} svr4.h i860/sysv4.h"
1511 xm_defines="USG SVR3"
1512 xmake_file=i860/x-sysv4
1514 extra_parts="crtbegin.o crtend.o"
1516 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1517 tm_file="${tm_file} i960/vx960.h"
1518 tmake_file=i960/t-vxworks960
1520 thread_file='vxworks'
1522 i960-wrs-vxworks5* | i960-wrs-vxworks)
1523 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1524 tmake_file=i960/t-vxworks960
1526 thread_file='vxworks'
1529 tm_file="${tm_file} i960/vx960.h"
1530 tmake_file=i960/t-vxworks960
1532 thread_file='vxworks'
1535 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1536 tmake_file=i960/t-960bare
1540 tmake_file="i960/t-960bare t-rtems"
1541 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1544 i960-*-*) # Default i960 environment.
1548 extra_parts="crtinit.o crtfini.o"
1550 m68000-convergent-sysv*)
1552 xm_file="m68k/xm-3b1.h ${xm_file}"
1555 extra_headers=math-68881.h
1557 m68000-hp-bsd*) # HP 9000/200 running BSD
1558 tm_file=m68k/hp2bsd.h
1559 xmake_file=m68k/x-hp2bsd
1561 extra_headers=math-68881.h
1563 m68000-hp-hpux*) # HP 9000 series 300
1564 xm_file="xm_alloca.h ${xm_file}"
1565 xm_defines="USG NO_SYS_SIGLIST"
1566 if test x$gas = xyes
1568 xmake_file=m68k/x-hp320g
1569 tm_file=m68k/hp310g.h
1571 xmake_file=m68k/x-hp320
1572 tm_file=m68k/hp310.h
1574 install_headers_dir=install-headers-cpio
1576 extra_headers=math-68881.h
1581 extra_headers=math-68881.h
1584 tm_file=m68k/sun2o4.h
1586 extra_headers=math-68881.h
1589 xm_file="m68k/xm-3b1.h ${xm_file}"
1591 if test x$gas = xyes
1598 extra_headers=math-68881.h
1600 m68k-apple-aux*) # Apple Macintosh running A/UX
1601 xm_defines="USG AUX"
1602 tmake_file=m68k/t-aux
1603 install_headers_dir=install-headers-cpio
1604 extra_headers=math-68881.h
1605 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1607 if test "$gnu_ld" = yes
1609 tm_file="${tm_file} m68k/auxgld.h"
1611 tm_file="${tm_file} m68k/auxld.h"
1613 if test "$gas" = yes
1615 tm_file="${tm_file} m68k/auxgas.h"
1617 tm_file="${tm_file} m68k/auxas.h"
1619 tm_file="${tm_file} m68k/a-ux.h"
1623 tm_file=m68k/apollo68.h
1624 xmake_file=m68k/x-apollo68
1626 extra_headers=math-68881.h
1629 m68k-altos-sysv*) # Altos 3068
1630 if test x$gas = xyes
1632 tm_file=m68k/altos3068.h
1635 echo "The Altos is supported only with the GNU assembler" 1>&2
1638 extra_headers=math-68881.h
1640 m68k-bull-sysv*) # Bull DPX/2
1641 if test x$gas = xyes
1643 if test x$stabs = xyes
1645 tm_file=m68k/dpx2cdbx.h
1647 tm_file=m68k/dpx2g.h
1652 xm_file="xm-alloca.h ${xm_file}"
1654 xmake_file=m68k/x-dpx2
1656 extra_headers=math-68881.h
1658 m68k-atari-sysv4*) # Atari variant of V.4.
1659 tm_file=m68k/atari.h
1660 xm_file="xm-alloca.h ${xm_file}"
1661 xm_defines="USG FULL_PROTOTYPES"
1663 extra_parts="crtbegin.o crtend.o"
1664 extra_headers=math-68881.h
1667 m68k-motorola-sysv*)
1668 tm_file=m68k/mot3300.h
1669 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1670 xm_defines=NO_SYS_SIGLIST
1671 if test x$gas = xyes
1673 xmake_file=m68k/x-mot3300-gas
1674 if test x$gnu_ld = xyes
1676 tmake_file=m68k/t-mot3300-gald
1678 tmake_file=m68k/t-mot3300-gas
1682 xmake_file=m68k/x-mot3300
1683 if test x$gnu_ld = xyes
1685 tmake_file=m68k/t-mot3300-gld
1687 tmake_file=m68k/t-mot3300
1691 gdb_needs_out_file_path=yes
1692 extra_parts="crt0.o mcrt0.o"
1693 extra_headers=math-68881.h
1696 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1697 tm_file=m68k/tower-as.h
1698 xm_defines="USG SVR3"
1699 xmake_file=m68k/x-tower
1700 extra_parts="crtbegin.o crtend.o"
1701 extra_headers=math-68881.h
1704 tm_file=m68k/plexus.h
1705 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1708 extra_headers=math-68881.h
1712 xm_file="xm-alloca.h ${xm_file}"
1714 extra_headers=math-68881.h
1717 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1718 xm_defines="USG unos"
1719 xmake_file=m68k/x-crds
1722 extra_headers=math-68881.h
1724 m68k-cbm-sysv4*) # Commodore variant of V.4.
1726 xm_file="xm-alloca.h ${xm_file}"
1727 xm_defines="USG FULL_PROTOTYPES"
1728 xmake_file=m68k/x-amix
1730 extra_parts="crtbegin.o crtend.o"
1731 extra_headers=math-68881.h
1735 tm_file=m68k/ccur-GAS.h
1736 xmake_file=m68k/x-ccur
1737 extra_headers=math-68881.h
1741 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1742 tm_file=m68k/hp3bsd44.h
1743 xmake_file=m68k/x-hp3bsd44
1745 extra_headers=math-68881.h
1748 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1749 tm_file=m68k/hp3bsd.h
1751 extra_headers=math-68881.h
1755 if test x$with_fp = xno
1757 tm_file=m68k/isi-nfp.h
1763 extra_headers=math-68881.h
1765 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1766 xm_file="xm_alloca.h ${xm_file}"
1767 xm_defines="USG NO_SYS_SIGLIST"
1768 if test x$gas = xyes
1770 xmake_file=m68k/x-hp320g
1771 tm_file=m68k/hp320g.h
1773 xmake_file=m68k/x-hp320
1774 tm_file=m68k/hpux7.h
1776 install_headers_dir=install-headers-cpio
1778 extra_headers=math-68881.h
1781 m68k-hp-hpux*) # HP 9000 series 300
1782 xm_file="xm_alloca.h ${xm_file}"
1783 xm_defines="USG NO_SYS_SIGLIST"
1784 if test x$gas = xyes
1786 xmake_file=m68k/x-hp320g
1787 tm_file=m68k/hp320g.h
1789 xmake_file=m68k/x-hp320
1790 tm_file=m68k/hp320.h
1792 install_headers_dir=install-headers-cpio
1794 extra_headers=math-68881.h
1798 tm_file=m68k/sun3mach.h
1800 extra_headers=math-68881.h
1804 if test x$gas = xyes
1806 tm_file=m68k/news3gas.h
1808 tm_file=m68k/news3.h
1811 extra_headers=math-68881.h
1814 m68k-sony-bsd* | m68k-sony-newsos*)
1815 if test x$gas = xyes
1817 tm_file=m68k/newsgas.h
1822 extra_headers=math-68881.h
1825 m68k-next-nextstep2*)
1826 tm_file=m68k/next21.h
1827 xm_file="m68k/xm-next.h ${xm_file}"
1828 tmake_file=m68k/t-next
1829 xmake_file=m68k/x-next
1830 extra_objs=nextstep.o
1831 extra_headers=math-68881.h
1835 m68k-next-nextstep3*)
1837 xm_file="m68k/xm-next.h ${xm_file}"
1838 tmake_file=m68k/t-next
1839 xmake_file=m68k/x-next
1840 extra_objs=nextstep.o
1841 extra_parts="crtbegin.o crtend.o"
1842 extra_headers=math-68881.h
1844 if test x$enable_threads = xyes; then
1849 if test x$with_fp = xno
1851 tm_file=m68k/sun3n3.h
1853 tm_file=m68k/sun3o3.h
1857 extra_headers=math-68881.h
1859 m68k-sun-sunos*) # For SunOS 4 (the default).
1860 if test x$with_fp = xno
1862 tm_file=m68k/sun3n.h
1868 extra_headers=math-68881.h
1871 tm_file=m68k/vxm68k.h
1872 tmake_file=m68k/t-vxworks68
1873 extra_headers=math-68881.h
1874 thread_file='vxworks'
1878 tmake_file=m68k/t-m68kbare
1879 tm_file="m68k/m68k-aout.h libgloss.h"
1880 extra_headers=math-68881.h
1884 tmake_file=m68k/t-m68kbare
1885 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1886 extra_headers=math-68881.h
1890 if test x$gas = xyes
1894 tm_file=m68k/lynx-ng.h
1896 xm_file=m68k/xm-lynx.h
1898 tmake_file=m68k/t-lynx
1899 extra_headers=math-68881.h
1903 tm_file=m68k/netbsd.h
1904 # On NetBSD, the headers are already okay, except for math.h.
1905 fixincludes=fixinc.wrap
1909 m68k-*-sysv3*) # Motorola m68k's running system V.3
1910 xm_file="xm-alloca.h ${xm_file}"
1912 xmake_file=m68k/x-m68kv
1913 extra_parts="crtbegin.o crtend.o"
1914 extra_headers=math-68881.h
1917 m68k-*-sysv4*) # Motorola m68k's running system V.4
1918 tm_file=m68k/m68kv4.h
1919 xm_file="xm-alloca.h ${xm_file}"
1922 extra_parts="crtbegin.o crtend.o"
1923 extra_headers=math-68881.h
1926 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1929 tm_file=m68k/linux-aout.h
1930 tmake_file="t-linux-aout m68k/t-linux-aout"
1931 fixincludes=Makefile.in # The headers are ok already.
1932 extra_headers=math-68881.h
1936 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1937 # with ELF format using the
1938 # GNU/Linux C library 5
1940 tm_file=m68k/linux.h
1941 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1942 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1943 fixincludes=Makefile.in # The headers are ok already.
1944 extra_headers=math-68881.h
1948 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1949 # with ELF format using glibc 2
1950 # aka the GNU/Linux C library 6.
1952 tm_file=m68k/linux.h
1953 tmake_file="t-linux m68k/t-linux"
1954 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1955 fixincludes=Makefile.in # The headers are ok already.
1956 extra_headers=math-68881.h
1959 if test x$enable_threads = xyes; then
1964 tmake_file=m68k/t-m68kbare
1965 tm_file=m68k/m68k-psos.h
1966 extra_headers=math-68881.h
1970 tmake_file="m68k/t-m68kbare t-rtems"
1971 tm_file=m68k/rtems.h
1972 extra_headers=math-68881.h
1979 tm_file=m88k/dguxbcs.h
1980 tmake_file=m88k/t-dguxbcs
1984 tmake_file=m88k/t-dgux
1987 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1988 xmake_file=m88k/x-dgux
1989 if test x$gas = xyes
1991 tmake_file=m88k/t-dgux-gas
1993 fixincludes=fixinc.dgux
1995 m88k-dolphin-sysv3*)
1996 tm_file=m88k/dolph.h
1997 extra_parts="crtbegin.o crtend.o"
1998 xm_file="m88k/xm-sysv3.h ${xm_file}"
1999 xmake_file=m88k/x-dolph
2000 if test x$gas = xyes
2002 tmake_file=m88k/t-m88k-gas
2005 m88k-tektronix-sysv3)
2006 tm_file=m88k/tekXD88.h
2007 extra_parts="crtbegin.o crtend.o"
2008 xm_file="m88k/xm-sysv3.h ${xm_file}"
2009 xmake_file=m88k/x-tekXD88
2010 if test x$gas = xyes
2012 tmake_file=m88k/t-m88k-gas
2016 tm_file=m88k/m88k-aout.h
2019 tm_file=m88k/m88k-coff.h
2020 tmake_file=m88k/t-bug
2024 extra_parts="crtbegin.o crtend.o"
2025 if test x$gas = xyes
2027 tmake_file=m88k/t-luna-gas
2029 tmake_file=m88k/t-luna
2033 tm_file=m88k/sysv3.h
2034 extra_parts="crtbegin.o crtend.o"
2035 xm_file="m88k/xm-sysv3.h ${xm_file}"
2036 xmake_file=m88k/x-sysv3
2037 if test x$gas = xyes
2039 tmake_file=m88k/t-m88k-gas
2043 tm_file=m88k/sysv4.h
2044 extra_parts="crtbegin.o crtend.o"
2045 xmake_file=m88k/x-sysv4
2046 tmake_file=m88k/t-sysv4
2048 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2049 tm_file=mips/iris6.h
2050 xm_file=mips/xm-iris6.h
2051 fixincludes=fixinc.irix
2052 xmake_file=mips/x-iris6
2053 tmake_file=mips/t-iris6
2054 # if test x$enable_threads = xyes; then
2055 # thread_file='irix'
2059 tm_file="mips/elf.h libgloss.h"
2060 tmake_file=mips/t-ecoff
2063 extra_parts="crtbegin.o crtend.o"
2064 # thread_file='vxworks'
2066 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2067 tm_file="mips/iris6.h mips/cross64.h"
2069 xm_file="mips/xm-iris5.h"
2070 fixincludes=Makefile.in
2071 xmake_file=mips/x-iris
2072 tmake_file=mips/t-cross64
2073 # See comment in mips/iris[56].h files.
2075 # if test x$enable_threads = xyes; then
2076 # thread_file='irix'
2080 if test x$gas = xyes
2082 if test x$stabs = xyes
2084 tm_file=mips/iris5gdb.h
2086 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2089 tm_file=mips/sni-svr4.h
2092 xmake_file=mips/x-sni-svr4
2093 tmake_file=mips/t-mips-gas
2094 if test x$gnu_ld != xyes
2099 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2100 if test x$gas = xyes
2102 tm_file="mips/iris5.h mips/iris5gas.h"
2103 if test x$stabs = xyes
2105 tm_file="${tm_file} dbx.h"
2108 tm_file=mips/iris5.h
2111 xm_file="mips/xm-iris5.h"
2112 fixincludes=fixinc.irix
2113 xmake_file=mips/x-iris
2114 # mips-tfile doesn't work yet
2115 tmake_file=mips/t-mips-gas
2116 # See comment in mips/iris5.h file.
2118 # if test x$enable_threads = xyes; then
2119 # thread_file='irix'
2122 mips-sgi-irix4loser*) # Mostly like a MIPS.
2123 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2124 if test x$stabs = xyes; then
2125 tm_file="${tm_file} dbx.h"
2128 xmake_file=mips/x-iris
2129 if test x$gas = xyes
2131 tmake_file=mips/t-mips-gas
2133 extra_passes="mips-tfile mips-tdump"
2135 if test x$gnu_ld != xyes
2139 # if test x$enable_threads = xyes; then
2140 # thread_file='irix'
2143 mips-sgi-irix4*) # Mostly like a MIPS.
2144 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2145 if test x$stabs = xyes; then
2146 tm_file="${tm_file} dbx.h"
2149 xmake_file=mips/x-iris
2150 if test x$gas = xyes
2152 tmake_file=mips/t-mips-gas
2154 extra_passes="mips-tfile mips-tdump"
2156 if test x$gnu_ld != xyes
2160 # if test x$enable_threads = xyes; then
2161 # thread_file='irix'
2164 mips-sgi-*) # Mostly like a MIPS.
2165 tm_file="mips/iris3.h ${tm_file}"
2166 if test x$stabs = xyes; then
2167 tm_file="${tm_file} dbx.h"
2170 xmake_file=mips/x-iris3
2171 if test x$gas = xyes
2173 tmake_file=mips/t-mips-gas
2175 extra_passes="mips-tfile mips-tdump"
2177 if test x$gnu_ld != xyes
2182 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2183 tm_file="mips/osfrose.h ${tm_file}"
2184 xmake_file=mips/x-osfrose
2185 tmake_file=mips/t-osfrose
2186 extra_objs=halfpic.o
2189 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2190 tm_file=mips/dec-osf1.h
2191 if test x$stabs = xyes; then
2192 tm_file="${tm_file} dbx.h"
2194 xmake_file=mips/x-dec-osf1
2195 if test x$gas = xyes
2197 tmake_file=mips/t-mips-gas
2199 tmake_file=mips/t-ultrix
2200 extra_passes="mips-tfile mips-tdump"
2202 if test x$gnu_ld != xyes
2207 mips-dec-bsd*) # Decstation running 4.4 BSD
2208 tm_file=mips/dec-bsd.h
2210 if test x$gas = xyes
2212 tmake_file=mips/t-mips-gas
2214 tmake_file=mips/t-ultrix
2215 extra_passes="mips-tfile mips-tdump"
2217 if test x$gnu_ld != xyes
2222 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2223 tm_file=mips/netbsd.h
2224 # On NetBSD, the headers are already okay, except for math.h.
2225 fixincludes=fixinc.wrap
2228 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2229 tm_file="mips/news4.h ${tm_file}"
2230 if test x$stabs = xyes; then
2231 tm_file="${tm_file} dbx.h"
2233 if test x$gas = xyes
2235 tmake_file=mips/t-mips-gas
2237 extra_passes="mips-tfile mips-tdump"
2239 if test x$gnu_ld != xyes
2243 xmake_file=mips/x-sony
2245 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2246 # That is based on svr4.
2247 # t-svr4 is not right because this system doesn't use ELF.
2248 tm_file="mips/news5.h ${tm_file}"
2249 if test x$stabs = xyes; then
2250 tm_file="${tm_file} dbx.h"
2252 xm_file="xm-siglist.h ${xm_file}"
2254 if test x$gas = xyes
2256 tmake_file=mips/t-mips-gas
2258 extra_passes="mips-tfile mips-tdump"
2260 if test x$gnu_ld != xyes
2265 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2266 tm_file="mips/svr4-5.h mips/svr4-t.h"
2267 if test x$stabs = xyes; then
2268 tm_file="${tm_file} dbx.h"
2270 xm_file="xm-siglist.h ${xm_file}"
2272 xmake_file=mips/x-sysv
2273 if test x$gas = xyes
2275 tmake_file=mips/t-mips-gas
2276 extra_parts="crtbegin.o crtend.o"
2278 tmake_file=mips/t-mips
2279 extra_passes="mips-tfile mips-tdump"
2281 if test x$gnu_ld != xyes
2286 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2287 tm_file="mips/ultrix.h ${tm_file}"
2288 if test x$stabs = xyes; then
2289 tm_file="${tm_file} dbx.h"
2291 xmake_file=mips/x-ultrix
2292 if test x$gas = xyes
2294 tmake_file=mips/t-mips-gas
2296 tmake_file=mips/t-ultrix
2297 extra_passes="mips-tfile mips-tdump"
2299 if test x$gnu_ld != xyes
2305 mips-*-riscos[56789]bsd*)
2307 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2308 if test x$stabs = xyes; then
2309 tm_file="${tm_file} dbx.h"
2311 if test x$gas = xyes
2313 tmake_file=mips/t-bsd-gas
2315 tmake_file=mips/t-bsd
2316 extra_passes="mips-tfile mips-tdump"
2318 if test x$gnu_ld != xyes
2324 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2326 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2327 if test x$stabs = xyes; then
2328 tm_file="${tm_file} dbx.h"
2330 if test x$gas = xyes
2332 tmake_file=mips/t-bsd-gas
2334 tmake_file=mips/t-bsd
2335 extra_passes="mips-tfile mips-tdump"
2337 if test x$gnu_ld != xyes
2343 mips-*-riscos[56789]sysv4*)
2345 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2346 if test x$stabs = xyes; then
2347 tm_file="${tm_file} dbx.h"
2349 xm_file="xm-siglist.h ${xm_file}"
2350 xmake_file=mips/x-sysv
2351 if test x$gas = xyes
2353 tmake_file=mips/t-svr4-gas
2355 tmake_file=mips/t-svr4
2356 extra_passes="mips-tfile mips-tdump"
2358 if test x$gnu_ld != xyes
2364 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2366 tm_file="mips/svr4-4.h ${tm_file}"
2367 if test x$stabs = xyes; then
2368 tm_file="${tm_file} dbx.h"
2371 xmake_file=mips/x-sysv
2372 if test x$gas = xyes
2374 tmake_file=mips/t-svr4-gas
2376 tmake_file=mips/t-svr4
2377 extra_passes="mips-tfile mips-tdump"
2379 if test x$gnu_ld != xyes
2385 mips-*-riscos[56789]sysv*)
2387 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2388 if test x$stabs = xyes; then
2389 tm_file="${tm_file} dbx.h"
2392 xmake_file=mips/x-sysv
2393 if test x$gas = xyes
2395 tmake_file=mips/t-svr3-gas
2397 tmake_file=mips/t-svr3
2398 extra_passes="mips-tfile mips-tdump"
2400 if test x$gnu_ld != xyes
2405 mips-*-sysv* | mips-*-riscos*sysv*)
2406 tm_file="mips/svr3-4.h ${tm_file}"
2407 if test x$stabs = xyes; then
2408 tm_file="${tm_file} dbx.h"
2411 xmake_file=mips/x-sysv
2412 if test x$gas = xyes
2414 tmake_file=mips/t-svr3-gas
2416 tmake_file=mips/t-svr3
2417 extra_passes="mips-tfile mips-tdump"
2419 if test x$gnu_ld != xyes
2425 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2427 tm_file=mips/mips-5.h
2428 if test x$stabs = xyes; then
2429 tm_file="${tm_file} dbx.h"
2431 if test x$gas = xyes
2433 tmake_file=mips/t-mips-gas
2435 extra_passes="mips-tfile mips-tdump"
2437 if test x$gnu_ld != xyes
2445 tm_file=mips/ecoffl.h
2446 if test x$stabs = xyes; then
2447 tm_file="${tm_file} dbx.h"
2449 tmake_file=mips/t-ecoff
2452 tm_file="gofast.h mips/ecoff.h"
2453 if test x$stabs = xyes; then
2454 tm_file="${tm_file} dbx.h"
2456 tmake_file=mips/t-ecoff
2459 tm_file="mips/elfl.h libgloss.h"
2460 tmake_file=mips/t-ecoff
2463 tm_file="mips/elf.h libgloss.h"
2464 tmake_file=mips/t-ecoff
2467 tm_file="mips/elfl64.h libgloss.h"
2468 tmake_file=mips/t-ecoff
2470 mips64orionel-*-elf*)
2471 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2472 tmake_file=mips/t-ecoff
2475 tm_file="mips/elf64.h libgloss.h"
2476 tmake_file=mips/t-ecoff
2479 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2480 tmake_file=mips/t-ecoff
2482 mips64orion-*-rtems*)
2483 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2484 tmake_file="mips/t-ecoff t-rtems"
2487 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2488 tmake_file=mips/t-r3900
2491 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2492 tmake_file=mips/t-r3900
2493 # FIXME mips-elf should be fixed to use crtstuff.
2496 mips-*-*) # Default MIPS RISC-OS 4.0.
2497 if test x$stabs = xyes; then
2498 tm_file="${tm_file} dbx.h"
2500 if test x$gas = xyes
2502 tmake_file=mips/t-mips-gas
2504 extra_passes="mips-tfile mips-tdump"
2506 if test x$gnu_ld != xyes
2513 tm_file="mn10200/mn10200.h"
2514 if test x$stabs = xyes
2516 tm_file="${tm_file} dbx.h"
2522 tm_file="mn10300/mn10300.h"
2523 if test x$stabs = xyes
2525 tm_file="${tm_file} dbx.h"
2530 tm_file=ns32k/encore.h
2534 tm_file=ns32k/sequent.h
2538 tm_file=ns32k/tek6100.h
2542 tm_file=ns32k/tek6200.h
2545 # This has not been updated to GCC 2.
2548 # xmake_file=ns32k/x-genix
2549 # tm_file=ns32k/genix.h
2553 tm_file=ns32k/merlin.h
2557 tm_file=ns32k/pc532-mach.h
2561 tm_file=ns32k/pc532-min.h
2562 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2567 tm_file=ns32k/netbsd.h
2568 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2569 # On NetBSD, the headers are already okay, except for math.h.
2570 fixincludes=fixinc.wrap
2574 tm_file="${tm_file} pdp11/2bsd.h"
2580 xmake_file=pyr/x-pyr
2587 xmake_file=romp/x-mach
2592 tm_file=rs6000/beos.h
2593 xm_file=rs6000/xm-beos.h
2594 tmake_file=rs6000/t-beos
2595 xmake_file=rs6000/x-beos
2597 powerpc-*-sysv* | powerpc-*-elf*)
2598 tm_file=rs6000/sysv4.h
2599 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2600 xm_defines="USG POSIX"
2601 extra_headers=ppc-asm.h
2602 if test x$gas = xyes
2604 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2606 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2608 xmake_file=rs6000/x-sysv4
2611 tm_file=rs6000/eabiaix.h
2612 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2613 fixincludes=Makefile.in
2614 extra_headers=ppc-asm.h
2617 tm_file=rs6000/eabisim.h
2618 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2619 fixincludes=Makefile.in
2620 extra_headers=ppc-asm.h
2623 tm_file=rs6000/eabi.h
2624 if test x$gas = xyes
2626 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2628 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2630 fixincludes=Makefile.in
2631 extra_headers=ppc-asm.h
2634 tm_file=rs6000/rtems.h
2635 if test x$gas = xyes
2637 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2639 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2641 fixincludes=Makefile.in
2642 extra_headers=ppc-asm.h
2644 powerpc-*-linux-gnulibc1)
2645 tm_file=rs6000/linux.h
2646 xm_file=rs6000/xm-sysv4.h
2647 out_file=rs6000/rs6000.c
2648 if test x$gas = xyes
2650 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2652 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2655 fixincludes=Makefile.in
2656 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2657 extra_headers=ppc-asm.h
2658 if test x$enable_threads = xyes; then
2662 powerpc-*-linux-gnu*)
2663 tm_file=rs6000/linux.h
2664 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2665 xm_defines="USG ${xm_defines}"
2666 out_file=rs6000/rs6000.c
2667 if test x$gas = xyes
2669 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2671 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2674 fixincludes=Makefile.in
2675 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2676 extra_headers=ppc-asm.h
2677 if test x$enable_threads = xyes; then
2681 powerpc-wrs-vxworks*)
2683 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2684 xm_defines="USG POSIX"
2685 tm_file=rs6000/vxppc.h
2686 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2687 extra_headers=ppc-asm.h
2688 thread_file='vxworks'
2690 powerpcle-*-sysv* | powerpcle-*-elf*)
2691 tm_file=rs6000/sysv4le.h
2692 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2693 xm_defines="USG POSIX"
2694 if test x$gas = xyes
2696 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2698 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2700 xmake_file=rs6000/x-sysv4
2701 extra_headers=ppc-asm.h
2703 powerpcle-*-eabisim*)
2704 tm_file=rs6000/eabilesim.h
2705 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2706 fixincludes=Makefile.in
2707 extra_headers=ppc-asm.h
2710 tm_file=rs6000/eabile.h
2711 if test x$gas = xyes
2713 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2715 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2717 fixincludes=Makefile.in
2718 extra_headers=ppc-asm.h
2720 powerpcle-*-winnt* )
2721 tm_file=rs6000/win-nt.h
2722 tmake_file=rs6000/t-winnt
2724 fixincludes=Makefile.in
2725 if test x$enable_threads = xyes; then
2728 extra_headers=ppc-asm.h
2730 powerpcle-*-pe | powerpcle-*-cygwin32)
2731 tm_file=rs6000/cygwin32.h
2732 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2733 tmake_file=rs6000/t-winnt
2734 xmake_file=rs6000/x-cygwin32
2736 fixincludes=Makefile.in
2737 if test x$enable_threads = xyes; then
2741 extra_headers=ppc-asm.h
2743 powerpcle-*-solaris2*)
2744 tm_file=rs6000/sol2.h
2745 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2746 xm_defines="USG POSIX"
2747 if test x$gas = xyes
2749 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2751 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2753 xmake_file=rs6000/x-sysv4
2758 fixincludes=fixinc.svr4;;
2760 fixincludes=fixinc.wrap;;
2762 extra_headers=ppc-asm.h
2765 rs6000-ibm-aix3.[01]*)
2767 tm_file=rs6000/aix31.h
2768 xmake_file=rs6000/x-aix31
2772 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2774 tm_file=rs6000/aix3newas.h
2775 if test x$host != x$target
2777 tmake_file=rs6000/t-xnewas
2779 tmake_file=rs6000/t-newas
2784 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2786 tm_file=rs6000/aix41.h
2787 if test x$host != x$target
2789 tmake_file=rs6000/t-xnewas
2791 tmake_file=rs6000/t-newas
2793 xmake_file=rs6000/x-aix41
2797 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2799 tm_file=rs6000/aix43.h
2800 if test x$host != x$target
2802 tmake_file=rs6000/t-xaix43
2804 tmake_file=rs6000/t-aix43
2806 xmake_file=rs6000/x-aix43
2810 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2812 tm_file=rs6000/aix43.h
2813 if test x$host != x$target
2815 tmake_file=rs6000/t-xaix43
2817 tmake_file=rs6000/t-aix43
2819 xmake_file=rs6000/x-aix43
2829 tm_file=rs6000/mach.h
2830 xm_file="${xm_file} rs6000/xm-mach.h"
2831 xmake_file=rs6000/x-mach
2835 tm_file=rs6000/lynx.h
2836 xm_file=rs6000/xm-lynx.h
2837 tmake_file=rs6000/t-rs6000
2838 xmake_file=rs6000/x-lynx
2846 tmake_file="sh/t-sh t-rtems"
2847 tm_file=sh/rtemself.h
2851 tmake_file="sh/t-sh t-rtems"
2860 xm_file="xm-alloca.h ${xm_file}"
2863 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2864 tm_file=sparc/vxsparc.h
2865 tmake_file=sparc/t-vxsparc
2867 thread_file='vxworks'
2870 tmake_file=sparc/t-sparcbare
2871 tm_file="sparc/aout.h libgloss.h"
2874 tm_file=sparc/netbsd.h
2875 # On NetBSD, the headers are already okay, except for math.h.
2876 fixincludes=fixinc.wrap
2884 tmake_file=sparc/t-elf
2885 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2889 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2890 xm_file="${xm_file} sparc/xm-linux.h"
2891 tm_file=sparc/linux-aout.h
2893 fixincludes=Makefile.in #On Linux, the headers are ok already.
2896 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2897 xm_file="${xm_file} sparc/xm-linux.h"
2899 tm_file=sparc/linux.h
2900 tmake_file="t-linux t-linux-gnulibc1"
2901 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2902 fixincludes=Makefile.in #On Linux, the headers are ok already.
2905 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2906 xm_file="${xm_file} sparc/xm-linux.h"
2908 tm_file=sparc/linux.h
2909 tmake_file="t-linux"
2910 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2911 fixincludes=Makefile.in #On Linux, the headers are ok already.
2913 if test x$enable_threads = xyes; then
2918 if test x$gas = xyes
2920 tm_file=sparc/lynx.h
2922 tm_file=sparc/lynx-ng.h
2924 xm_file=sparc/xm-lynx.h
2925 tmake_file=sparc/t-sunos41
2929 tmake_file="sparc/t-sparcbare t-rtems"
2930 tm_file=sparc/rtems.h
2932 sparcv9-*-solaris2*)
2933 tm_file=sparc/sol2-sld-64.h
2934 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
2935 xm_defines="USG POSIX"
2936 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2937 xmake_file=sparc/x-sysv4
2938 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2939 fixincludes=fixinc.wrap
2941 if test x${enable_threads} = x ; then
2942 enable_threads=$have_pthread_h
2943 if test x${enable_threads} = x ; then
2944 enable_threads=$have_thread_h
2947 if test x${enable_threads} = xyes ; then
2948 if test x${have_pthread_h} = xyes ; then
2951 thread_file='solaris'
2956 if test x$gnu_ld = xyes
2958 tm_file=sparc/sol2.h
2960 tm_file=sparc/sol2-sld.h
2962 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2963 xm_defines="USG POSIX"
2964 tmake_file=sparc/t-sol2
2965 xmake_file=sparc/x-sysv4
2966 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2971 fixincludes=fixinc.svr4;;
2973 fixincludes=fixinc.wrap;;
2976 if test x${enable_threads} = x; then
2977 enable_threads=$have_pthread_h
2978 if test x${enable_threads} = x; then
2979 enable_threads=$have_thread_h
2982 if test x${enable_threads} = xyes; then
2983 if test x${have_pthread_h} = xyes; then
2986 thread_file='solaris'
2991 tm_file=sparc/sunos4.h
2992 tmake_file=sparc/t-sunos40
2996 tm_file=sparc/sunos4.h
2997 tmake_file=sparc/t-sunos41
2999 if test x$gas = xyes; then
3000 tm_file="${tm_file} sparc/sun4gas.h"
3004 tm_file=sparc/sun4o3.h
3008 tm_file=sparc/sysv4.h
3009 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3010 xm_defines="USG POSIX"
3012 xmake_file=sparc/x-sysv4
3013 extra_parts="crtbegin.o crtend.o"
3016 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3017 xm_defines="USG POSIX"
3018 tm_file=sparc/vxsim.h
3019 tmake_file=sparc/t-vxsparc
3020 xmake_file=sparc/x-sysv4
3023 tm_file="sparc/splet.h libgloss.h"
3024 tmake_file=sparc/t-splet
3027 tm_file="sparc/litecoff.h libgloss.h"
3028 tmake_file=sparc/t-sparclite
3031 tm_file="sparc/lite.h aoutos.h libgloss.h"
3032 tmake_file=sparc/t-sparclite
3035 tmake_file=sparc/t-sp64
3036 tm_file=sparc/sp64-aout.h
3039 tmake_file=sparc/t-sp64
3040 tm_file=sparc/sp64-elf.h
3041 extra_parts="crtbegin.o crtend.o"
3043 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3044 tmake_file="t-linux sparc/t-linux64"
3045 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3046 tm_file=sparc/linux64.h
3048 fixincludes=Makefile.in # The headers are ok already.
3049 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3052 # This hasn't been upgraded to GCC 2.
3053 # tahoe-harris-*) # Harris tahoe, using COFF.
3054 # tm_file=tahoe/harris.h
3056 # tahoe-*-bsd*) # tahoe running BSD
3058 thumb-*-coff* | thumbel-*-coff*)
3060 out_file=arm/thumb.c
3061 xm_file=arm/xm-thumb.h
3062 md_file=arm/thumb.md
3063 tmake_file=arm/t-thumb
3064 fixincludes=Makefile.in # There is nothing to fix
3066 # This hasn't been upgraded to GCC 2.
3073 tm_file="v850/v850.h"
3074 xm_file="v850/xm-v850.h"
3075 tmake_file=v850/t-v850
3076 if test x$stabs = xyes
3078 tm_file="${tm_file} dbx.h"
3082 vax-*-bsd*) # vaxen running BSD
3086 vax-*-sysv*) # vaxen running system V
3087 tm_file="${tm_file} vax/vaxv.h"
3092 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3093 # On NetBSD, the headers are already okay, except for math.h.
3094 fixincludes=fixinc.wrap
3098 vax-*-ultrix*) # vaxen running ultrix
3099 tm_file="${tm_file} vax/ultrix.h"
3103 vax-*-vms*) # vaxen running VMS
3104 xm_file=vax/xm-vms.h
3108 vax-*-*) # vax default entry
3112 xm_file="${xm_file} xm-svr3"
3116 echo "Configuration $machine not supported" 1>&2
3123 ;; # Existing GNU/Linux systems do not use the GNU setup.
3125 # On the GNU system, the setup is just about the same on
3126 # each different CPU. The specific machines that GNU
3127 # supports are matched above and just set $cpu_type.
3128 xm_file="xm-gnu.h ${xm_file}"
3129 tm_file=${cpu_type}/gnu.h
3130 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3131 # GNU always uses ELF.
3133 # GNU tools are the only tools.
3136 # On GNU, the headers are already okay.
3137 fixincludes=Makefile.in
3138 xmake_file=x-linux # These details are the same as Linux.
3139 tmake_file=t-gnu # These are not.
3142 fixincludes=fixinc.svr4
3143 xmake_try_sysv=x-sysv
3144 install_headers_dir=install-headers-cpio
3147 install_headers_dir=install-headers-cpio
3151 # Distinguish i[34567]86
3152 # Also, do not run mips-tfile on MIPS if using gas.
3153 # Process --with-cpu= for PowerPC/rs6000
3154 target_cpu_default2=
3157 target_cpu_default2=1
3160 target_cpu_default2=2
3162 i686-*-* | i786-*-*)
3163 target_cpu_default2=3
3168 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3171 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3174 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3177 target_cpu_default2="MASK_CPU_EV5"
3181 if test x$gas = xyes
3183 if test "$target_cpu_default2" = ""
3185 target_cpu_default2="MASK_GAS"
3187 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3192 case "x$with_cpu" in
3195 target_cpu_default2="TARGET_CPU_generic"
3198 # Distinguish cores, and major variants
3199 # arm7m doesn't exist, but D & I don't affect code
3200 xarm[23678] | xarm250 | xarm[67][01]0 \
3201 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3202 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3203 | xstrongarm | xstrongarm110)
3204 target_cpu_default2="TARGET_CPU_$with_cpu"
3208 echo "--with-cpu must be passed a value" 1>&2
3213 if test x$pass2done = xyes
3215 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3222 mips*-*-ecoff* | mips*-*-elf*)
3223 if test x$gas = xyes
3225 if test x$gnu_ld = xyes
3227 target_cpu_default2=20
3229 target_cpu_default2=16
3234 if test x$gas = xyes
3236 target_cpu_default2=16
3239 powerpc*-*-* | rs6000-*-*)
3240 case "x$with_cpu" in
3244 xcommon | xpower | xpower2 | xpowerpc | xrios \
3245 | xrios1 | xrios2 | xrsc | xrsc1 \
3246 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3247 | x403 | x505 | x801 | x821 | x823 | x860)
3248 target_cpu_default2="\"$with_cpu\""
3252 echo "--with-cpu must be passed a value" 1>&2
3257 if test x$pass2done = xyes
3259 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3266 case ".$with_cpu" in
3268 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3270 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3271 target_cpu_default2="TARGET_CPU_$with_cpu"
3274 if test x$pass2done = xyes
3276 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3284 if test "$target_cpu_default2" != ""
3286 if test "$target_cpu_default" != ""
3288 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3290 target_cpu_default=$target_cpu_default2
3294 # No need for collect2 if we have the GNU linker.
3295 # Actually, there is now; GNU ld doesn't handle the EH info or
3296 # collecting for shared libraries.
3303 # Save data on machine being used to compile GCC in build_xm_file.
3304 # Save data on host machine in vars host_xm_file and host_xmake_file.
3305 if test x$pass1done = x
3307 if test x"$xm_file" = x
3308 then build_xm_file=$cpu_type/xm-$cpu_type.h
3309 else build_xm_file=$xm_file
3311 build_xm_defines=$xm_defines
3312 build_install_headers_dir=$install_headers_dir
3313 build_exeext=$exeext
3316 if test x$pass2done = x
3318 if test x"$xm_file" = x
3319 then host_xm_file=$cpu_type/xm-$cpu_type.h
3320 else host_xm_file=$xm_file
3322 host_xm_defines=$xm_defines
3323 if test x"$xmake_file" = x
3324 then xmake_file=$cpu_type/x-$cpu_type
3326 host_xmake_file="$xmake_file"
3327 host_truncate_target=$truncate_target
3328 host_extra_gcc_objs=$extra_gcc_objs
3329 host_extra_objs=$extra_host_objs
3336 extra_objs="${host_extra_objs} ${extra_objs}"
3338 # Default the target-machine variables that were not explicitly set.
3339 if test x"$tm_file" = x
3340 then tm_file=$cpu_type/$cpu_type.h; fi
3342 if test x$extra_headers = x
3343 then extra_headers=; fi
3345 if test x"$xm_file" = x
3346 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3348 if test x$md_file = x
3349 then md_file=$cpu_type/$cpu_type.md; fi
3351 if test x$out_file = x
3352 then out_file=$cpu_type/$cpu_type.c; fi
3354 if test x"$tmake_file" = x
3355 then tmake_file=$cpu_type/t-$cpu_type
3358 if test x$float_format = x
3359 then float_format=i64
3362 if test x$enable_haifa = x
3365 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3370 # Say what files are being used for the output code and MD file.
3371 echo "Using \`$srcdir/config/$out_file' to output insns."
3372 echo "Using \`$srcdir/config/$md_file' as machine description file."
3375 for f in $tm_file; do
3378 if test $count = ax; then
3379 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3381 echo "Using the following target machine macro files:"
3382 for f in $tm_file; do
3383 echo " $srcdir/config/$f"
3388 for f in $host_xm_file; do
3391 if test $count = ax; then
3392 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3394 echo "Using the following host machine macro files:"
3395 for f in $host_xm_file; do
3396 echo " $srcdir/config/$f"
3400 if test "$host_xm_file" != "$build_xm_file"; then
3402 for f in $build_xm_file; do
3405 if test $count = ax; then
3406 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3408 echo "Using the following build machine macro files:"
3409 for f in $build_xm_file; do
3410 echo " $srcdir/config/$f"
3415 if test x$thread_file = x; then
3416 if test x$target_thread_file != x; then
3417 thread_file=$target_thread_file
3419 thread_file='single'
3423 # Set up the header files.
3424 # $links is the list of header files to create.
3425 # $vars is the list of shell variables with file names to include.
3426 # auto-host.h is the file containing items generated by autoconf and is
3427 # the first file included by config.h.
3429 host_xm_file="auto-host.h ${host_xm_file}"
3431 # If host=build, it is correct to have hconfig include auto-host.h
3432 # as well. If host!=build, we are in error and need to do more
3433 # work to find out the build config parameters.
3434 if test x$host = x$build
3436 build_xm_file="auto-host.h ${build_xm_file}"
3438 # We create a subdir, then run autoconf in the subdir.
3439 # To prevent recursion we set host and build for the new
3440 # invocation of configure to the build for this invocation
3447 /*) realsrcdir=${srcdir};;
3448 *) realsrcdir=../${srcdir};;
3450 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3451 --target=$target --host=$build --build=$build
3453 # We just finished tests for the build machine, so rename
3454 # the file auto-build.h in the gcc directory.
3455 mv auto-host.h ../auto-build.h
3458 build_xm_file="auto-build.h ${build_xm_file}"
3461 vars="host_xm_file tm_file xm_file build_xm_file"
3462 links="config.h tm.h tconfig.h hconfig.h"
3463 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3466 if test -f config.status; then mv -f config.status config.bak; fi
3469 while test -n "$vars"
3471 set $vars; var=$1; shift; vars=$*
3472 set $links; link=$1; shift; links=$*
3473 set $defines; define=$1; shift; defines=$*
3477 # Define TARGET_CPU_DEFAULT if the system wants one.
3478 # This substitutes for lots of *.h files.
3479 if test "$target_cpu_default" != "" -a $link = tm.h
3481 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3484 for file in `eval echo '$'$var`; do
3485 echo "#include \"$file\"" >>$link
3488 for def in `eval echo '$'$define`; do
3489 echo "#ifndef $def" >>$link
3490 echo "#define $def" >>$link
3491 echo "#endif" >>$link
3495 # Truncate the target if necessary
3496 if test x$host_truncate_target != x; then
3497 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3500 # Get the version trigger filename from the toplevel
3501 if test "${with_gcc_version_trigger+set}" = set; then
3502 gcc_version_trigger=$with_gcc_version_trigger
3504 gcc_version_trigger=${srcdir}/version.c
3507 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3510 # Get an absolute path to the GCC top-level source directory
3516 # Conditionalize the makefile for this host machine.
3517 # Make-host contains the concatenation of all host makefile fragments
3518 # [there can be more than one]. This file is built by configure.frag.
3519 host_overrides=Make-host
3520 dep_host_xmake_file=
3521 for f in .. ${host_xmake_file}
3523 if test -f ${srcdir}/config/$f
3525 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3529 # Conditionalize the makefile for this target machine.
3530 # Make-target contains the concatenation of all host makefile fragments
3531 # [there can be more than one]. This file is built by configure.frag.
3532 target_overrides=Make-target
3534 for f in .. ${tmake_file}
3536 if test -f ${srcdir}/config/$f
3538 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3542 # If the host doesn't support symlinks, modify CC in
3543 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3544 # Otherwise, we can use "CC=$(CC)".
3546 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3548 cc_set_by_configure="\$(CC)"
3549 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3552 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3554 symbolic_link="cp -p"
3558 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3559 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3563 out_object_file=`basename $out_file .c`.o
3566 for f in $tm_file; do
3567 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3571 for f in $host_xm_file; do
3572 if test $f != "auto-host.h"; then
3573 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3575 host_xm_file_list="${host_xm_file_list} auto-host.h"
3580 for f in $build_xm_file; do
3581 if test $f != "auto-build.h"; then
3582 if test $f != "auto-host.h"; then
3583 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3585 build_xm_file_list="${build_xm_file_list} auto-host.h"
3588 build_xm_file_list="${build_xm_file_list} auto-build.h"
3592 # Define macro CROSS_COMPILE in compilation
3593 # if this is a cross-compiler.
3594 # Also use all.cross instead of all.internal
3595 # and add cross-make to Makefile.
3596 cross_overrides="/dev/null"
3597 if test x$host != x$target
3599 cross_defines="CROSS=-DCROSS_COMPILE"
3600 cross_overrides="${topdir}/cross-make"
3603 # When building gcc with a cross-compiler, we need to fix a few things.
3604 # This must come after cross-make as we want all.build to override
3606 build_overrides="/dev/null"
3607 if test x$build != x$host
3609 build_overrides="${topdir}/build-make"
3612 # Expand extra_headers to include complete path.
3613 # This substitutes for lots of t-* files.
3615 if test "x$extra_headers" = x
3618 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3619 for file in $extra_headers;
3621 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3625 if test x$use_collect2 = xno; then
3629 # Add a definition of USE_COLLECT2 if system wants one.
3630 # Also tell toplev.c what to do.
3631 # This substitutes for lots of t-* files.
3632 if test x$use_collect2 = x
3637 will_use_collect2="collect2"
3638 maybe_use_collect2="-DUSE_COLLECT2"
3642 # Set MD_DEPS if the real md file is in md.pre-cpp.
3643 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3644 # for line oriented comments, so we must always use a GNU cpp. If
3645 # building gcc with a cross compiler, use the cross compiler just
3646 # built. Otherwise, we can use the cpp just built.
3648 if test "x$md_cppflags" = x
3650 md_file_sub=$srcdir/config/$md_file
3655 # If we have gas in the build tree, make a link to it.
3656 if test -f ../gas/Makefile; then
3657 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3660 # If we have nm in the build tree, make a link to it.
3661 if test -f ../binutils/Makefile; then
3662 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3665 # If we have ld in the build tree, make a link to it.
3666 if test -f ../ld/Makefile; then
3667 # if test x$use_collect2 = x; then
3668 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3670 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3674 # Figure out what assembler alignment features are present.
3675 AC_MSG_CHECKING(assembler alignment features)
3677 gcc_cv_as_alignment_features=
3678 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3679 if test -x "$AS"; then
3681 elif test -x as$host_exeext; then
3682 # Build using assembler in the current directory.
3683 gcc_cv_as=./as$host_exeext
3684 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3685 # Single tree build which includes gas.
3686 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3689 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3691 if test x$gcc_cv_gas_version != x; then
3696 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3697 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3699 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3700 # Gas version 2.6 and later support for .balign and .p2align.
3701 # bytes to skip when using .p2align.
3702 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
3703 gcc_cv_as_alignment_features=".balign and .p2align"
3704 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3706 # Gas version 2.8 and later support specifying the maximum
3707 # bytes to skip when using .p2align.
3708 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
3709 gcc_cv_as_alignment_features=".p2align including maximum skip"
3710 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3713 elif test x$host = x$target; then
3715 gcc_cv_as=as$host_exeext
3717 if test x$gcc_cv_as != x; then
3718 # Check if we have .balign and .p2align
3719 echo ".balign 4" > conftest.s
3720 echo ".p2align 2" >> conftest.s
3721 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3722 gcc_cv_as_alignment_features=".balign and .p2align"
3723 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3725 rm -f conftest.s conftest.o
3726 # Check if specifying the maximum bytes to skip when
3727 # using .p2align is supported.
3728 echo ".p2align 4,,7" > conftest.s
3729 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3730 gcc_cv_as_alignment_features=".p2align including maximum skip"
3731 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3733 rm -f conftest.s conftest.o
3735 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3737 AC_MSG_CHECKING(assembler subsection support)
3738 gcc_cv_as_subsections=
3739 if test x$gcc_cv_as != x; then
3740 # Check if we have .subsection
3741 echo ".subsection 1" > conftest.s
3742 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3743 gcc_cv_as_subsections=".subsection"
3744 if test -x nm$host_exeext; then
3745 gcc_cv_nm=./nm$host_exeext
3746 elif test x$host = x$target; then
3748 gcc_cv_nm=nm$host_exeext
3750 if test x$gcc_cv_nm != x; then
3751 cat > conftest.s <<EOF
3752 conftest_label1: .word 0
3754 conftest_label2: .word 0
3757 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3758 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3759 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3760 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3763 gcc_cv_as_subsections="working .subsection -1"
3764 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3769 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3771 AC_MSG_RESULT($gcc_cv_as_subsections)
3773 # Figure out what language subdirectories are present.
3775 for lang in ${srcdir}/*/config-lang.in ..
3779 # The odd quoting in the next line works around
3780 # an apparent bug in bash 1.12 on linux.
3782 ${srcdir}/ada/config-lang.in)
3783 if test x$gnat = xyes ; then
3784 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3787 ${srcdir}/[*]/config-lang.in) ;;
3788 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3793 # Make gthr-default.h if we have a thread file.
3795 if test $thread_file != single; then
3796 rm -f gthr-default.h
3797 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3798 gthread_flags=-DHAVE_GTHR_DEFAULT
3800 AC_SUBST(gthread_flags)
3802 # Make empty files to contain the specs and options for each language.
3803 # Then add #include lines to for a compiler that has specs and/or options.
3808 rm -f specs.h options.h gencheck.h
3809 touch specs.h options.h gencheck.h
3810 for subdir in . $subdirs
3812 if test -f $srcdir/$subdir/lang-specs.h; then
3813 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3814 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3816 if test -f $srcdir/$subdir/lang-options.h; then
3817 echo "#include \"$subdir/lang-options.h\"" >>options.h
3818 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3820 if test -f $srcdir/$subdir/$subdir-tree.def; then
3821 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3822 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3826 # These (without "all_") are set in each config-lang.in.
3827 # `language' must be a single word so is spelled singularly.
3833 all_outputs=Makefile
3834 # List of language makefile fragments.
3839 # Add the language fragments.
3840 # Languages are added via two mechanisms. Some information must be
3841 # recorded in makefile variables, these are defined in config-lang.in.
3842 # We accumulate them and plug them into the main Makefile.
3843 # The other mechanism is a set of hooks for each of the main targets
3844 # like `clean', `install', etc.
3846 language_fragments="Make-lang"
3847 language_hooks="Make-hooks"
3850 for s in .. $subdirs
3862 . ${srcdir}/$s/config-lang.in
3863 if test "x$language" = x
3865 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3868 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3869 all_languages="$all_languages $language"
3870 if test "x$boot_language" = xyes
3872 all_boot_languages="$all_boot_languages $language"
3874 all_compilers="$all_compilers $compilers"
3875 all_stagestuff="$all_stagestuff $stagestuff"
3876 all_diff_excludes="$all_diff_excludes $diff_excludes"
3877 all_headers="$all_headers $headers"
3878 all_outputs="$all_outputs $outputs"
3879 if test x$outputs = x
3881 oldstyle_subdirs="$oldstyle_subdirs $s"
3883 all_lib2funcs="$all_lib2funcs $lib2funcs"
3887 # Since we can't use `::' targets, we link each language in
3888 # with a set of hooks, reached indirectly via lang.${target}.
3892 target_list="all.build all.cross start.encap rest.encap \
3894 install-normal install-common install-info install-man \
3896 mostlyclean clean distclean extraclean maintainer-clean \
3897 stage1 stage2 stage3 stage4"
3898 for t in $target_list
3901 for l in .. $all_languages
3903 if test $l != ".."; then
3907 echo "lang.$t: $x" >> Make-hooks
3910 # If we're not building in srcdir, create .gdbinit.
3912 if test ! -f Makefile.in; then
3913 echo "dir ." > .gdbinit
3914 echo "dir ${srcdir}" >> .gdbinit
3915 if test x$gdb_needs_out_file_path = xyes
3917 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3919 if test "x$subdirs" != x; then
3922 echo "dir ${srcdir}/$s" >> .gdbinit
3925 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3928 # Define variables host_canonical and build_canonical
3929 # because some Cygnus local changes in the Makefile depend on them.
3930 build_canonical=${build}
3931 host_canonical=${host}
3933 if test "${host}" != "${target}" ; then
3934 target_subdir=${target}/
3936 AC_SUBST(build_canonical)
3937 AC_SUBST(host_canonical)
3938 AC_SUBST(target_subdir)
3940 # If this is using newlib, then define inhibit_libc in
3941 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3942 # libgcc.a, but that's OK because newib should have its own version of
3945 if test x$with_newlib = xyes; then
3946 inhibit_libc=-Dinhibit_libc
3948 AC_SUBST(inhibit_libc)
3950 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3953 if test x$enable_haifa = xyes; then
3954 echo "Using the Haifa scheduler."
3956 sched_cflags=-DHAIFA
3958 AC_SUBST(sched_prefix)
3959 AC_SUBST(sched_cflags)
3960 if test x$enable_haifa != x; then
3961 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3962 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3970 # Warn if using init_priority.
3971 AC_MSG_CHECKING(whether to enable init_priority by default)
3972 if test x$enable_init_priority != xyes; then
3973 enable_init_priority=no
3975 AC_MSG_RESULT($enable_init_priority)
3977 # Nothing to do for FLOAT_H, float_format already handled.
3981 # Process the language and host/target makefile fragments.
3982 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3984 # Substitute configuration variables
3986 AC_SUBST(all_languages)
3987 AC_SUBST(all_boot_languages)
3988 AC_SUBST(all_compilers)
3989 AC_SUBST(all_lang_makefiles)
3990 AC_SUBST(all_stagestuff)
3991 AC_SUBST(all_diff_excludes)
3992 AC_SUBST(all_lib2funcs)
3993 AC_SUBST(all_headers)
3995 AC_SUBST(extra_passes)
3996 AC_SUBST(extra_programs)
3997 AC_SUBST(extra_parts)
3998 AC_SUBST(extra_c_objs)
3999 AC_SUBST(extra_cxx_objs)
4000 AC_SUBST(extra_cpp_objs)
4001 AC_SUBST(extra_c_flags)
4002 AC_SUBST(extra_objs)
4003 AC_SUBST(host_extra_gcc_objs)
4004 AC_SUBST(extra_headers_list)
4005 AC_SUBST(dep_host_xmake_file)
4006 AC_SUBST(dep_tmake_file)
4008 AC_SUBST(out_object_file)
4010 AC_SUBST(tm_file_list)
4011 AC_SUBST(build_xm_file_list)
4012 AC_SUBST(host_xm_file_list)
4013 AC_SUBST(lang_specs_files)
4014 AC_SUBST(lang_options_files)
4015 AC_SUBST(lang_tree_files)
4016 AC_SUBST(thread_file)
4017 AC_SUBST(objc_boehm_gc)
4018 AC_SUBST(gcc_version)
4019 AC_SUBST(gcc_version_trigger)
4020 AC_SUBST(local_prefix)
4021 AC_SUBST(gxx_include_dir)
4022 AC_SUBST(fixincludes)
4023 AC_SUBST(build_install_headers_dir)
4024 AC_SUBST(build_exeext)
4025 AC_SUBST(host_exeext)
4026 AC_SUBST(float_format)
4027 AC_SUBST(will_use_collect2)
4028 AC_SUBST(maybe_use_collect2)
4029 AC_SUBST(cc_set_by_configure)
4030 AC_SUBST(stage_prefix_set_by_configure)
4032 AC_SUBST(symbolic_link)
4034 AC_SUBST_FILE(target_overrides)
4035 AC_SUBST_FILE(host_overrides)
4036 AC_SUBST(cross_defines)
4037 AC_SUBST_FILE(cross_overrides)
4038 AC_SUBST_FILE(build_overrides)
4039 AC_SUBST_FILE(language_fragments)
4040 AC_SUBST_FILE(language_hooks)
4042 # Echo that links are built
4043 if test x$host = x$target
4051 if test x$host != x$build
4053 str3=" on a $build system"
4056 if test "x$str2" != x || test "x$str3" != x
4061 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4063 if test "x$str2" != x || test "x$str3" != x
4065 echo " ${str2}${str3}." 1>&2
4068 # Truncate the target if necessary
4069 if test x$host_truncate_target != x; then
4070 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4073 # Configure the subdirectories
4074 # AC_CONFIG_SUBDIRS($subdirs)
4076 # Create the Makefile
4077 # and configure language subdirectories
4078 AC_OUTPUT($all_outputs,
4080 . $srcdir/configure.lang
4081 case x$CONFIG_HEADERS in
4082 xauto-host.h:config.in)
4085 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4086 # bootstrapping and the installation procedure can still use
4087 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4088 # FLAGS_TO_PASS has been modified to solve the problem there.
4089 # This is virtually a duplicate of what happens in configure.lang; we do
4090 # an extra check to make sure this only happens if ln -s can be used.
4091 if test "$symbolic_link" = "ln -s"; then
4092 for d in .. ${subdirs} ; do
4093 if test $d != ..; then
4096 for t in stage1 stage2 stage3 stage4 include
4099 $symbolic_link ../$t $t 2>/dev/null
4110 target_alias='${target_alias}'
4112 subdirs='${subdirs}'
4113 oldstyle_subdirs='${oldstyle_subdirs}'
4114 symbolic_link='${symbolic_link}'
4115 program_transform_set='${program_transform_set}'
4116 program_transform_name='${program_transform_name}'
4117 dep_host_xmake_file='${dep_host_xmake_file}'
4118 host_xmake_file='${host_xmake_file}'
4119 dep_tmake_file='${dep_tmake_file}'
4120 tmake_file='${tmake_file}'
4121 thread_file='${thread_file}'
4122 gcc_version='${gcc_version}'
4123 gcc_version_trigger='${gcc_version_trigger}'
4124 local_prefix='${local_prefix}'
4125 build_install_headers_dir='${build_install_headers_dir}'
4126 build_exeext='${build_exeext}'
4127 host_exeext='${host_exeext}'
4128 out_file='${out_file}'
4129 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4130 SET_MAKE='${SET_MAKE}'
4131 target_list='${target_list}'
4132 target_overrides='${target_overrides}'
4133 host_overrides='${host_overrides}'
4134 cross_defines='${cross_defines}'
4135 cross_overrides='${cross_overrides}'
4136 build_overrides='${build_overrides}'