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
26 AC_CONFIG_HEADER(auto-host.h:config.in)
33 # Check for bogus environment variables.
34 # Test if LIBRARY_PATH contains the notation for the current directory
35 # since this would lead to problems installing/building glibc.
36 # LIBRARY_PATH contains the current directory if one of the following
38 # - one of the terminals (":" and ";") is the first or last sign
39 # - two terminals occur directly after each other
40 # - the path contains an element with a dot in it
41 AC_MSG_CHECKING(LIBRARY_PATH variable)
43 case ${LIBRARY_PATH} in
44 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
45 library_path_setting="contains current directory"
48 library_path_setting="ok"
52 AC_MSG_RESULT($library_path_setting)
53 if test "$library_path_setting" != "ok"; then
55 *** LIBRARY_PATH shouldn't contain the current directory when
56 *** building egcs. Please change the environment variable
57 *** and run configure again.])
60 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
61 # since this would lead to problems installing/building glibc.
62 # GCC_EXEC_PREFIX contains the current directory if one of the following
64 # - one of the terminals (":" and ";") is the first or last sign
65 # - two terminals occur directly after each other
66 # - the path contains an element with a dot in it
67 AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
69 case ${GCC_EXEC_PREFIX} in
70 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
71 gcc_exec_prefix_setting="contains current directory"
74 gcc_exec_prefix_setting="ok"
78 AC_MSG_RESULT($gcc_exec_prefix_setting)
79 if test "$gcc_exec_prefix_setting" != "ok"; then
81 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
82 *** building egcs. Please change the environment variable
83 *** and run configure again.])
86 # Check for additional parameters
90 [ --with-gnu-ld arrange to work with GNU ld.],
91 gnu_ld_flag="$with_gnu_ld",
96 [ --with-ld arrange to use the specified ld (full pathname).],
97 DEFAULT_LINKER="$with_ld")
98 if test x"${DEFAULT_LINKER+set}" = x"set"; then
99 if test ! -x "$DEFAULT_LINKER"; then
100 AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
101 elif test "GNU" = `$DEFAULT_LINKER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
104 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER")
109 [ --with-gnu-as arrange to work with GNU as.],
110 gas_flag="$with_gnu_as",
114 [ --with-as arrange to use the specified as (full pathname).],
115 DEFAULT_ASSEMBLER="$with_as")
116 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
117 if test ! -x "$DEFAULT_ASSEMBLER"; then
118 AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
119 elif test "GNU" = `$DEFAULT_ASSEMBLER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
122 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER")
127 [ --with-stabs arrange to use stabs instead of host debug format.],
133 [ --with-elf arrange to use ELF instead of host debug format.],
137 # Specify the local prefix
139 AC_ARG_WITH(local-prefix,
140 [ --with-local-prefix=DIR specifies directory to put local include.],
141 [case "${withval}" in
142 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
144 *) local_prefix=$with_local_prefix ;;
147 # Default local prefix if it is empty
148 if test x$local_prefix = x; then
149 local_prefix=/usr/local
153 # Specify the g++ header file directory
154 AC_ARG_WITH(gxx-include-dir,
155 [ --with-gxx-include-dir=DIR
156 specifies directory to put g++ header files.],
157 [case "${withval}" in
158 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
160 *) gxx_include_dir=$with_gxx_include_dir ;;
163 if test x${gxx_include_dir} = x; then
164 if test x${enable_version_specific_runtime_libs} = xyes; then
165 gxx_include_dir='${libsubdir}/include/g++'
167 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
168 changequote(<<, >>)dnl
169 gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
174 # Enable expensive internal checks
175 AC_ARG_ENABLE(checking,
176 [ --enable-checking enable expensive run-time checks.],
177 [case "${enableval}" in
178 yes) AC_DEFINE(ENABLE_CHECKING) ;;
180 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
183 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
185 AC_ARG_ENABLE(cpplib,
186 [ --enable-cpplib use cpplib for the C preprocessor.],
187 if test x$enable_cpplib != xno; then
191 # Link cpplib into the compiler proper, for C/C++/ObjC.
192 AC_ARG_ENABLE(c-cpplib,
193 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
194 (implies --enable-cpplib).],
195 if test x$enable_c_cpplib != xno; then
196 extra_c_objs="${extra_c_objs} libcpp.a"
197 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
198 extra_c_flags=-DUSE_CPPLIB=1
202 # Enable Multibyte Characters for C/C++
203 AC_ARG_ENABLE(c-mbchar,
204 [ --enable-c-mbchar enable multibyte characters for C and C++.],
205 if test x$enable_c_mbchar != xno; then
206 extra_c_flags=-DMULTIBYTE_CHARS=1
209 # Enable Haifa scheduler.
211 [ --enable-haifa use the experimental scheduler.
212 --disable-haifa don't use the experimental scheduler for the
213 targets which normally enable it.])
216 # This is a work in progress...
217 AC_ARG_WITH(fast-fixincludes,
218 [ --with-fast-fixincludes use a faster fixinclude program (experimental)],
219 fast_fixinc="$with_fast_fixincludes",
222 # Enable init_priority.
223 AC_ARG_ENABLE(init-priority,
224 [ --enable-init-priority use attributes to assign initialization order
226 --disable-init-priority conform to ISO C++ rules for ordering static objects
227 (i.e. initialized in order of declaration). ],
228 if test x$enable_init_priority != xno; then
229 extra_c_flags=-DUSE_INIT_PRIORITY
233 # Pass with no value to take the default
234 # Pass with a value to specify a thread package
235 AC_ARG_ENABLE(threads,
236 [ --enable-threads enable thread usage for target GCC.
237 --enable-threads=LIB use LIB thread package for target GCC.],
238 if test x$enable_threads = xno; then
243 enable_threads_flag=$enable_threads
244 # Check if a valid thread package
245 case x${enable_threads_flag} in
248 target_thread_file='single'
252 target_thread_file=''
254 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
255 xsolaris | xwin32 | xdce | xvxworks)
256 target_thread_file=$enable_threads_flag
259 echo "$enable_threads is an unknown thread package" 1>&2
264 AC_ARG_ENABLE(objc-gc,
265 [ --enable-objc-gc enable the use of Boehm's garbage collector with
266 the GNU Objective-C runtime.],
267 if [[[ x$enable_objc_gc = xno ]]]; then
274 AC_ARG_ENABLE(java-gc,
275 changequote(<<,>>)dnl
276 << --enable-java-gc=TYPE choose garbage collector [boehm]>>,
281 # Determine the host, build, and target systems
284 # Find the native compiler
287 # If the native compiler is GCC, we can enable warnings even in stage1.
288 # That's useful for people building cross-compilers, or just running a
290 if test "x$GCC" = "xyes"; then
291 stage1_warn_cflags='$(WARN_CFLAGS)'
293 stage1_warn_cflags=""
295 AC_SUBST(stage1_warn_cflags)
299 AC_MSG_CHECKING([whether a default assembler was specified])
300 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
301 if test x"$with_gas" = x"no"; then
302 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
304 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
310 AC_MSG_CHECKING([whether a default linker was specified])
311 if test x"${DEFAULT_LINKER+set}" = x"set"; then
312 if test x"$with_gnu_ld" = x"no"; then
313 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
315 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
321 # Find some useful tools
335 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)
337 # Check for thread headers.
338 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
339 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
341 # See if GNAT has been installed
342 AC_CHECK_PROG(gnat, gnatbind, yes, no)
344 # See if the system preprocessor understands the ANSI C preprocessor
345 # stringification operator.
346 AC_MSG_CHECKING(whether cpp understands the stringify operator)
347 AC_CACHE_VAL(gcc_cv_c_have_stringify,
350 char *test = S(foo);],
351 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
352 AC_MSG_RESULT($gcc_cv_c_have_stringify)
353 if test $gcc_cv_c_have_stringify = yes; then
354 AC_DEFINE(HAVE_CPP_STRINGIFY)
357 # Use <inttypes.h> only if it exists,
358 # doesn't clash with <sys/types.h>, and declares intmax_t.
359 AC_MSG_CHECKING(for inttypes.h)
360 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
362 [#include <sys/types.h>
363 #include <inttypes.h>],
365 [gcc_cv_header_inttypes_h=yes],
366 gcc_cv_header_inttypes_h=no)])
367 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
368 if test $gcc_cv_header_inttypes_h = yes; then
369 AC_DEFINE(HAVE_INTTYPES_H)
372 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
373 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
374 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
377 # Make sure wchar_t is available
378 #AC_CHECK_TYPE(wchar_t, unsigned int)
380 GCC_FUNC_VFPRINTF_DOPRNT
384 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
385 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
388 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
389 #include <sys/types.h>
390 #ifdef HAVE_SYS_RESOURCE_H
391 #include <sys/resource.h>
405 build_install_headers_dir=install-headers-tar
410 host_truncate_target=
413 # Decode the host machine, then the target machine.
414 # For the host machine, we save the xm_file variable as host_xm_file;
415 # then we decode the target machine and forget everything else
416 # that came from the host machine.
417 for machine in $build $host $target; do
431 # Set this to force installation and use of collect2.
433 # Set this to override the default target model.
435 # Set this to control which fixincludes program to use.
436 if test x$fast_fixinc != xyes; then
437 fixincludes=fixincludes
438 else fixincludes=fixinc.sh ; fi
439 # Set this to control how the header file directory is installed.
440 install_headers_dir=install-headers-tar
441 # Set this to a non-empty list of args to pass to cpp if the target
442 # wants its .md file passed through cpp.
444 # Set this if directory names should be truncated to 14 characters.
446 # Set this if gdb needs a dir command with `dirname $out_file`
447 gdb_needs_out_file_path=
448 # Set this if the build machine requires executables to have a
451 # Set this to control which thread package will be used.
453 # Reinitialize these from the flag values every loop pass, since some
454 # configure entries modify them.
456 gnu_ld="$gnu_ld_flag"
457 enable_threads=$enable_threads_flag
459 # Set default cpu_type, tm_file and xm_file so it can be updated in
460 # each machine entry.
461 cpu_type=`echo $machine | sed 's/-.*$//'`
497 tm_file=${cpu_type}/${cpu_type}.h
498 xm_file=${cpu_type}/xm-${cpu_type}.h
500 # Set the default macros to define for GNU/Linux systems.
503 xm_defines="HAVE_ATEXIT POSIX BSTRING"
508 # Support site-specific machine types.
510 cpu_type=`echo $machine | sed -e 's/-.*//'`
511 rest=`echo $machine | sed -e "s/$cpu_type-//"`
512 xm_file=${cpu_type}/xm-$rest.h
513 tm_file=${cpu_type}/$rest.h
514 if test -f $srcdir/config/${cpu_type}/x-$rest; \
515 then xmake_file=${cpu_type}/x-$rest; \
518 if test -f $srcdir/config/${cpu_type}/t-$rest; \
519 then tmake_file=${cpu_type}/t-$rest; \
525 a29k-*-bsd* | a29k-*-sym1*)
526 tm_file="${tm_file} a29k/unix.h"
528 xmake_file=a29k/x-unix
531 a29k-*-udi | a29k-*-coff)
532 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
533 tmake_file=a29k/t-a29kbare
536 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
537 tmake_file=a29k/t-vx29k
538 extra_parts="crtbegin.o crtend.o"
539 thread_file='vxworks'
541 a29k-*-*) # Default a29k environment.
544 alpha*-*-linux-gnuecoff*)
545 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
546 target_cpu_default="MASK_GAS"
551 alpha*-*-linux-gnulibc1*)
552 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
553 target_cpu_default="MASK_GAS"
554 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
555 extra_parts="crtbegin.o crtend.o"
556 fixincludes=fixinc.wrap
559 if test x$enable_threads = xyes; then
564 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
565 target_cpu_default="MASK_GAS"
566 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
567 extra_parts="crtbegin.o crtend.o"
569 fixincludes=Makefile.in
571 if test x$enable_threads = xyes; then
576 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
577 target_cpu_default="MASK_GAS"
578 tmake_file="alpha/t-crtbe"
579 extra_parts="crtbegin.o crtend.o"
581 fixincludes=fixinc.wrap
586 if test x$stabs = xyes
588 tm_file="${tm_file} dbx.h"
590 if test x$gas != xyes
592 extra_passes="mips-tfile mips-tdump"
597 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
602 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
605 tm_file="${tm_file} alpha/osf.h"
606 # Some versions of OSF4 (specifically X4.0-9 296.7) have
607 # a broken tar, so we use cpio instead.
608 install_headers_dir=install-headers-cpio
613 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
615 target_cpu_default=MASK_SUPPORT_ARCH
620 tm_file="${tm_file} dbx.h alpha/vxworks.h"
623 extra_passes="mips-tfile mips-tdump"
628 tm_file="${tm_file} alpha/win-nt.h"
629 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
631 xmake_file=winnt/x-winnt
632 extra_host_objs=oldnames.o
633 extra_gcc_objs="spawnv.o oldnames.o"
634 fixincludes=fixinc.winnt
635 if test x$gnu_ld != xyes
637 extra_programs=ld.exe
639 if test x$enable_threads = xyes; then
645 xm_file="${xm_file} alpha/xm-vms.h"
646 tmake_file=alpha/t-vms
647 fixincludes=Makefile.in
650 extra_parts="crtinit.o crtfini.o"
652 arm-*-coff* | armel-*-coff*)
654 tmake_file=arm/t-bare
657 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
659 tm_file=arm/riscix1-1.h
662 arm-*-riscix*) # Acorn RISC machine
665 tm_file=arm/rix-gas.h
669 xmake_file=arm/x-riscix
670 tmake_file=arm/t-riscix
673 arm-semi-aout | armel-semi-aout)
675 tmake_file=arm/t-semi
676 fixincludes=Makefile.in # There is nothing to fix
678 arm-semi-aof | armel-semi-aof)
679 tm_file=arm/semiaof.h
680 tmake_file=arm/t-semiaof
681 fixincludes=Makefile.in # There is nothing to fix
685 xm_file="arm/xm-netbsd.h ${xm_file}"
686 tmake_file="t-netbsd arm/t-netbsd"
687 # On NetBSD, the headers are already okay, except for math.h.
688 fixincludes=fixinc.wrap
690 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
693 tm_file=arm/linux-aout.h
694 tmake_file=arm/t-linux
695 fixincludes=Makefile.in
698 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
699 xm_file=arm/xm-linux.h
703 tm_file=arm/linux-elf26.h
706 tm_file=arm/linux-elf.h
709 tmake_file="t-linux arm/t-linux"
710 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
711 fixincludes=Makefile.in # Nothing to fix
716 tmake_file=arm/t-bare
719 tm_file=arm/ecos-elf.h
723 tm_file=arm/unknown-elf.h
724 tmake_file=arm/t-arm-elf
726 c1-convex-*) # Convex C1
729 fixincludes=Makefile.in
731 c2-convex-*) # Convex C2
734 fixincludes=Makefile.in
739 fixincludes=Makefile.in
744 fixincludes=Makefile.in
747 target_cpu_default=16
749 fixincludes=Makefile.in
755 clipper-intergraph-clix*)
756 tm_file="${tm_file} svr3.h clipper/clix.h"
757 xm_file=clipper/xm-clix.h
758 xmake_file=clipper/x-clix
759 extra_headers=va-clipper.h
760 extra_parts="crtbegin.o crtend.o"
761 install_headers_dir=install-headers-cpio
768 # This hasn't been upgraded to GCC 2.
769 # fx80-alliant-*) # Alliant FX/80
775 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
776 xm_file=pa/xm-papro.h
781 tm_file="${tm_file} pa/pa-osf.h"
783 fixincludes=Makefile.in
786 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
787 xm_file=pa/xm-papro.h
791 tm_file="${tm_file} pa/pa-osf.h"
793 fixincludes=Makefile.in
798 fixincludes=Makefile.in
802 fixincludes=Makefile.in
805 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
806 xm_file=pa/xm-pahpux.h
807 xmake_file=pa/x-pa-hpux
810 tm_file="${tm_file} pa/gas.h"
812 install_headers_dir=install-headers-cpio
816 hppa1.0-*-hpux8.0[0-2]*)
818 tm_file="${tm_file} pa/pa-hpux.h"
819 xm_file=pa/xm-pahpux.h
820 xmake_file=pa/x-pa-hpux
823 tm_file="${tm_file} pa/pa-gas.h"
825 tm_file="pa/pa-oldas.h ${tm_file}"
827 install_headers_dir=install-headers-cpio
831 hppa1.1-*-hpux8.0[0-2]*)
834 tm_file="${tm_file} pa/pa-hpux.h"
835 xm_file=pa/xm-pahpux.h
836 xmake_file=pa/x-pa-hpux
839 tm_file="${tm_file} pa/pa-gas.h"
841 tm_file="pa/pa-oldas.h ${tm_file}"
843 install_headers_dir=install-headers-cpio
848 tm_file="${tm_file} pa/pa-hpux.h"
849 xm_file=pa/xm-pahpux.h
850 xmake_file=pa/x-pa-hpux
853 tm_file="${tm_file} pa/pa-gas.h"
855 install_headers_dir=install-headers-cpio
859 tm_file="${tm_file} pa/pa-hpux.h"
860 xm_file=pa/xm-pahpux.h
861 xmake_file=pa/x-pa-hpux
864 tm_file="${tm_file} pa/pa-gas.h"
866 install_headers_dir=install-headers-cpio
869 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
871 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
872 xm_file=pa/xm-pahpux.h
873 xmake_file=pa/x-pa-hpux
877 tm_file="${tm_file} pa/pa-gas.h"
879 if test x$enable_threads = x; then
880 enable_threads=$have_pthread_h
882 if test x$enable_threads = xyes; then
884 tmake_file="${tmake_file} pa/t-dce-thr"
886 install_headers_dir=install-headers-cpio
890 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
891 xm_file=pa/xm-pahpux.h
892 xmake_file=pa/x-pa-hpux
895 tm_file="${tm_file} pa/pa-gas.h"
897 if test x$enable_threads = x; then
898 enable_threads=$have_pthread_h
900 if test x$enable_threads = xyes; then
902 tmake_file="${tmake_file} pa/t-dce-thr"
904 install_headers_dir=install-headers-cpio
907 hppa1.1-*-hpux* | hppa2*-*-hpux*)
909 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
910 xm_file=pa/xm-pahpux.h
911 xmake_file=pa/x-pa-hpux
914 tm_file="${tm_file} pa/pa-gas.h"
916 install_headers_dir=install-headers-cpio
920 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
921 xm_file=pa/xm-pahpux.h
922 xmake_file=pa/x-pa-hpux
925 tm_file="${tm_file} pa/pa-gas.h"
927 install_headers_dir=install-headers-cpio
930 hppa1.1-*-hiux* | hppa2*-*-hiux*)
932 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
933 xm_file=pa/xm-pahpux.h
934 xmake_file=pa/x-pa-hpux
937 tm_file="${tm_file} pa/pa-gas.h"
939 install_headers_dir=install-headers-cpio
943 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
944 xm_file=pa/xm-pahpux.h
945 xmake_file=pa/x-pa-hpux
948 tm_file="${tm_file} pa/pa-gas.h"
950 install_headers_dir=install-headers-cpio
956 fixincludes=Makefile.in
961 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
965 tm_file=i386/aix386.h
966 extra_parts="crtbegin.o crtend.o"
967 tmake_file=i386/t-crtstuff
969 tm_file=i386/aix386ng.h
972 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
974 xmake_file=i386/x-aix
977 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
979 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
980 xm_defines="USG POSIX SMALL_ARG_MAX"
981 xmake_file=i386/x-ncr3000
982 if test x$stabs = xyes -a x$gas = xyes
984 tm_file=i386/sysv4gdb.h
988 extra_parts="crtbegin.o crtend.o"
989 tmake_file=i386/t-crtpic
995 xm_file=i386/xm-next.h
996 tmake_file=i386/t-next
997 xmake_file=i386/x-next
998 extra_objs=nextstep.o
999 extra_parts="crtbegin.o crtend.o"
1000 if test x$enable_threads = xyes; then
1005 i[34567]86-sequent-bsd*) # 80386 from Sequent
1008 if test x$gas = xyes
1010 tm_file=i386/seq-gas.h
1012 tm_file=i386/sequent.h
1016 i[34567]86-sequent-ptx1*)
1018 xm_defines="USG SVR3"
1019 xmake_file=i386/x-sysv3
1020 tm_file=i386/seq-sysv3.h
1021 tmake_file=i386/t-crtstuff
1022 fixincludes=fixinc.ptx
1023 extra_parts="crtbegin.o crtend.o"
1024 install_headers_dir=install-headers-cpio
1027 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1029 xm_defines="USG SVR3"
1030 xmake_file=i386/x-sysv3
1031 tm_file=i386/seq2-sysv3.h
1032 tmake_file=i386/t-crtstuff
1033 extra_parts="crtbegin.o crtend.o"
1034 fixincludes=fixinc.ptx
1035 install_headers_dir=install-headers-cpio
1038 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1040 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1041 xm_defines="USG POSIX SMALL_ARG_MAX"
1043 tm_file=i386/ptx4-i.h
1045 extra_parts="crtbegin.o crtend.o"
1046 fixincludes=fixinc.ptx
1047 install_headers_dir=install-headers-cpio
1049 i386-sun-sunos*) # Sun i386 roadrunner
1055 i[34567]86-wrs-vxworks*)
1057 tm_file=i386/vxi386.h
1058 tmake_file=i386/t-i386bare
1063 tm_file=i386/i386-aout.h
1064 tmake_file=i386/t-i386bare
1067 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1069 tm_file=i386/bsd386.h
1070 # tmake_file=t-libc-ok
1075 tm_file=i386/386bsd.h
1076 # tmake_file=t-libc-ok
1077 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1081 i[34567]86-*-freebsdelf*)
1083 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
1084 # On FreeBSD, the headers are already ok, except for math.h.
1085 fixincludes=fixinc.wrap
1086 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1087 tmake_file=i386/t-freebsd
1093 i[34567]86-*-freebsd*)
1095 tm_file=i386/freebsd.h
1096 # On FreeBSD, the headers are already ok, except for math.h.
1097 fixincludes=fixinc.wrap
1098 tmake_file=i386/t-freebsd
1100 # We are hoping OpenBSD is still close enough to NetBSD that we can
1101 # share the configurations.
1103 i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
1105 tm_file=i386/netbsd.h
1106 # On NetBSD, the headers are already okay, except for math.h.
1107 fixincludes=fixinc.wrap
1113 tm_file=i386/i386-coff.h
1114 tmake_file=i386/t-i386bare
1117 i[34567]86-*-isc*) # 80386 running ISC system
1119 xm_file="${xm_file} i386/xm-isc.h"
1120 xm_defines="USG SVR3"
1123 i[34567]86-*-isc[34]*)
1125 xmake_file=i386/x-isc3
1128 xmake_file=i386/x-isc
1131 if test x$gas = xyes -a x$stabs = xyes
1133 tm_file=i386/iscdbx.h
1134 tmake_file=i386/t-svr3dbx
1135 extra_parts="svr3.ifile svr3z.ifile"
1137 tm_file=i386/isccoff.h
1138 tmake_file=i386/t-crtstuff
1139 extra_parts="crtbegin.o crtend.o"
1141 install_headers_dir=install-headers-cpio
1144 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1145 changequote([,])dnl # with a.out format using
1147 xmake_file=x-linux-aout
1148 tmake_file="t-linux-aout i386/t-crtstuff"
1149 tm_file=i386/linux-oldld.h
1150 fixincludes=Makefile.in #On Linux, the headers are ok already.
1155 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1156 changequote([,])dnl # with a.out format
1157 xmake_file=x-linux-aout
1158 tmake_file="t-linux-aout i386/t-crtstuff"
1159 tm_file=i386/linux-aout.h
1160 fixincludes=Makefile.in #On Linux, the headers are ok already.
1165 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1166 changequote([,])dnl # with ELF format using the
1167 # GNU/Linux C library 5
1169 tm_file=i386/linux.h
1170 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1171 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1172 fixincludes=Makefile.in #On Linux, the headers are ok already.
1175 if test x$enable_threads = xyes; then
1176 thread_file='single'
1180 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1181 changequote([,])dnl # with ELF format using glibc 2
1182 # aka GNU/Linux C library 6
1184 tm_file=i386/linux.h
1185 tmake_file="t-linux i386/t-crtstuff"
1186 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1187 fixincludes=Makefile.in #On Linux, the headers are ok already.
1190 if test x$enable_threads = xyes; then
1199 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1201 xm_file=i386/xm-go32.h
1203 tmake_file=i386/t-go32
1206 i[34567]86-pc-msdosdjgpp*)
1208 xm_file=i386/xm-go32.h
1210 tmake_file=i386/t-go32
1211 xmake_file=i386/x-go32
1222 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1225 tmake_file=t-libc-ok
1226 fixincludes=Makefile.in
1231 i[34567]86-*-lynxos*)
1233 if test x$gas = xyes
1237 tm_file=i386/lynx-ng.h
1239 xm_file=i386/xm-lynx.h
1240 tmake_file=i386/t-i386bare
1247 # tmake_file=t-libc-ok
1251 i[34567]86-*-osfrose*) # 386 using OSF/rose
1253 if test x$elf = xyes
1255 tm_file=i386/osfelf.h
1258 tm_file=i386/osfrose.h
1261 xm_file="i386/xm-osf.h ${xm_file}"
1262 xmake_file=i386/x-osfrose
1263 tmake_file=i386/t-osf
1264 extra_objs=halfpic.o
1267 i[34567]86-go32-rtems*)
1270 xm_file=i386/xm-go32.h
1271 tm_file=i386/go32-rtems.h
1272 tmake_file="i386/t-go32 t-rtems"
1275 i[34567]86-*-rtemself*)
1278 tm_file=i386/rtemself.h
1279 tmake_file="i386/t-i386bare t-rtems"
1282 i[34567]86-*-rtems*)
1285 tm_file=i386/rtems.h
1286 tmake_file="i386/t-i386bare t-rtems"
1289 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1291 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1292 xm_defines="USG SVR3"
1293 xmake_file=i386/x-sco5
1294 fixincludes=fixinc.sco
1295 install_headers_dir=install-headers-cpio
1297 if test x$gas = xyes
1299 tm_file="i386/sco5gas.h ${tm_file}"
1300 tmake_file=i386/t-sco5gas
1302 tmake_file=i386/t-sco5
1304 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1307 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1309 xm_file="${xm_file} i386/xm-sco.h"
1310 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1311 xmake_file=i386/x-sco4
1312 fixincludes=fixinc.sco
1313 install_headers_dir=install-headers-cpio
1314 if test x$stabs = xyes
1316 tm_file=i386/sco4dbx.h
1317 tmake_file=i386/t-svr3dbx
1318 extra_parts="svr3.ifile svr3z.rfile"
1321 tmake_file=i386/t-crtstuff
1322 extra_parts="crtbegin.o crtend.o"
1327 i[34567]86-*-sco*) # 80386 running SCO system
1329 xm_file=i386/xm-sco.h
1330 xmake_file=i386/x-sco
1331 install_headers_dir=install-headers-cpio
1332 if test x$stabs = xyes
1334 tm_file=i386/scodbx.h
1335 tmake_file=i386/t-svr3dbx
1336 extra_parts="svr3.ifile svr3z.rfile"
1339 extra_parts="crtbegin.o crtend.o"
1340 tmake_file=i386/t-crtstuff
1345 i[34567]86-*-solaris2*)
1347 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1348 xm_defines="USG POSIX SMALL_ARG_MAX"
1349 if test x$stabs = xyes
1351 tm_file=i386/sol2dbg.h
1355 tmake_file=i386/t-sol2
1356 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1362 fixincludes=fixinc.svr4;;
1364 fixincludes=fixinc.wrap;;
1366 if test x$enable_threads = xyes; then
1367 thread_file='solaris'
1371 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1373 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1374 xm_defines="USG POSIX"
1375 tm_file=i386/sysv4.h
1376 if test x$stabs = xyes
1378 tm_file="${tm_file} dbx.h"
1380 tmake_file=i386/t-crtpic
1382 extra_parts="crtbegin.o crtend.o"
1383 fixincludes=fixinc.svr4
1386 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1388 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1389 xm_defines="USG POSIX SMALL_ARG_MAX"
1390 tm_file=i386/sysv4.h
1391 if test x$stabs = xyes
1393 tm_file="${tm_file} dbx.h"
1395 tmake_file=i386/t-crtpic
1397 extra_parts="crtbegin.o crtend.o"
1400 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1402 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1403 xm_defines="USG POSIX"
1405 tmake_file="i386/t-crtpic i386/t-udk"
1407 extra_parts="crtbegin.o crtend.o"
1408 fixincludes="fixinc.svr4"
1411 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1414 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1415 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1416 fixincludes=Makefile.in #Don't do it on OSF/1
1417 if test x$stabs = xyes
1419 tm_file=i386/osf1elfgdb.h
1421 tm_file=i386/osf1elf.h
1423 tmake_file=i386/t-osf1elf
1424 xmake_file=i386/x-osf1elf
1425 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1428 i[34567]86-*-sysv*) # Intel 80386's running system V
1430 xm_defines="USG SVR3"
1431 xmake_file=i386/x-sysv3
1432 if test x$gas = xyes
1434 if test x$stabs = xyes
1436 tm_file=i386/svr3dbx.h
1437 tmake_file=i386/t-svr3dbx
1438 extra_parts="svr3.ifile svr3z.rfile"
1440 tm_file=i386/svr3gas.h
1441 extra_parts="crtbegin.o crtend.o"
1442 tmake_file=i386/t-crtstuff
1445 tm_file=i386/sysv3.h
1446 extra_parts="crtbegin.o crtend.o"
1447 tmake_file=i386/t-crtstuff
1450 i386-*-vsta) # Intel 80386's running VSTa kernel
1451 xm_file="${xm_file} i386/xm-vsta.h"
1453 tmake_file=i386/t-vsta
1454 xmake_file=i386/x-vsta
1459 xm_file="${xm_file} i386/xm-cygwin.h"
1460 tmake_file=i386/t-cygwin
1461 tm_file=i386/win32.h
1462 xmake_file=i386/x-cygwin
1464 fixincludes=Makefile.in
1465 if test x$enable_threads = xyes; then
1471 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1473 xm_file="${xm_file} i386/xm-cygwin.h"
1474 tmake_file=i386/t-cygwin
1475 tm_file=i386/cygwin.h
1476 xmake_file=i386/x-cygwin
1478 fixincludes=Makefile.in
1479 if test x$enable_threads = xyes; then
1485 i[34567]86-*-mingw32*)
1487 tm_file=i386/mingw32.h
1488 xm_file="${xm_file} i386/xm-mingw32.h"
1489 tmake_file="i386/t-cygwin i386/t-mingw32"
1491 xmake_file=i386/x-cygwin
1492 fixincludes=Makefile.in
1493 if test x$enable_threads = xyes; then
1500 *minwg32crt* | *mingw32*)
1501 tm_file="${tm_file} i386/crtdll.h"
1506 i[34567]86-*-winnt3*)
1508 tm_file=i386/win-nt.h
1509 out_file=i386/i386.c
1510 xm_file="xm-winnt.h ${xm_file}"
1511 xmake_file=winnt/x-winnt
1512 tmake_file=i386/t-winnt
1513 extra_host_objs="winnt.o oldnames.o"
1514 extra_gcc_objs="spawnv.o oldnames.o"
1515 fixincludes=fixinc.winnt
1516 if test x$gnu_ld != xyes
1518 extra_programs=ld.exe
1520 if test x$enable_threads = xyes; then
1525 i[34567]86-dg-dgux*)
1527 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1528 xm_defines="USG POSIX"
1529 out_file=i386/dgux.c
1531 tmake_file=i386/t-dgux
1532 xmake_file=i386/x-dgux
1533 fixincludes=fixinc.dgux
1534 install_headers_dir=install-headers-cpio
1536 i860-alliant-*) # Alliant FX/2800
1537 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1538 xm_file="${xm_file}"
1539 xmake_file=i860/x-fx2800
1540 tmake_file=i860/t-fx2800
1541 extra_parts="crtbegin.o crtend.o"
1544 tm_file="${tm_file} i860/bsd.h"
1545 if test x$gas = xyes
1547 tm_file="${tm_file} i860/bsd-gas.h"
1552 tm_file="${tm_file} i860/mach.h"
1553 tmake_file=t-libc-ok
1555 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1556 tm_file="${tm_file} svr3.h i860/paragon.h"
1557 xm_defines="USG SVR3"
1561 tm_file="${tm_file} svr3.h i860/sysv3.h"
1562 xm_defines="USG SVR3"
1563 xmake_file=i860/x-sysv3
1564 extra_parts="crtbegin.o crtend.o"
1567 tm_file="${tm_file} svr4.h i860/sysv4.h"
1568 xm_defines="USG SVR3"
1569 xmake_file=i860/x-sysv4
1571 extra_parts="crtbegin.o crtend.o"
1573 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1574 tm_file="${tm_file} i960/vx960.h"
1575 tmake_file=i960/t-vxworks960
1577 thread_file='vxworks'
1579 i960-wrs-vxworks5* | i960-wrs-vxworks)
1580 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1581 tmake_file=i960/t-vxworks960
1583 thread_file='vxworks'
1586 tm_file="${tm_file} i960/vx960.h"
1587 tmake_file=i960/t-vxworks960
1589 thread_file='vxworks'
1592 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1593 tmake_file=i960/t-960bare
1597 tmake_file="i960/t-960bare t-rtems"
1598 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1601 i960-*-*) # Default i960 environment.
1605 extra_parts="crtinit.o crtfini.o"
1607 m68000-convergent-sysv*)
1609 xm_file="m68k/xm-3b1.h ${xm_file}"
1612 extra_headers=math-68881.h
1614 m68000-hp-bsd*) # HP 9000/200 running BSD
1615 tm_file=m68k/hp2bsd.h
1616 xmake_file=m68k/x-hp2bsd
1618 extra_headers=math-68881.h
1620 m68000-hp-hpux*) # HP 9000 series 300
1621 xm_file="xm_alloca.h ${xm_file}"
1622 xm_defines="USG NO_SYS_SIGLIST"
1623 if test x$gas = xyes
1625 xmake_file=m68k/x-hp320g
1626 tm_file=m68k/hp310g.h
1628 xmake_file=m68k/x-hp320
1629 tm_file=m68k/hp310.h
1631 install_headers_dir=install-headers-cpio
1633 extra_headers=math-68881.h
1638 extra_headers=math-68881.h
1641 tm_file=m68k/sun2o4.h
1643 extra_headers=math-68881.h
1646 xm_file="m68k/xm-3b1.h ${xm_file}"
1648 if test x$gas = xyes
1655 extra_headers=math-68881.h
1657 m68k-apple-aux*) # Apple Macintosh running A/UX
1658 xm_defines="USG AUX"
1659 tmake_file=m68k/t-aux
1660 install_headers_dir=install-headers-cpio
1661 extra_headers=math-68881.h
1662 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1664 if test "$gnu_ld" = yes
1666 tm_file="${tm_file} m68k/auxgld.h"
1668 tm_file="${tm_file} m68k/auxld.h"
1670 if test "$gas" = yes
1672 tm_file="${tm_file} m68k/auxgas.h"
1674 tm_file="${tm_file} m68k/auxas.h"
1676 tm_file="${tm_file} m68k/a-ux.h"
1680 tm_file=m68k/apollo68.h
1681 xmake_file=m68k/x-apollo68
1683 extra_headers=math-68881.h
1686 m68k-altos-sysv*) # Altos 3068
1687 if test x$gas = xyes
1689 tm_file=m68k/altos3068.h
1692 echo "The Altos is supported only with the GNU assembler" 1>&2
1695 extra_headers=math-68881.h
1697 m68k-bull-sysv*) # Bull DPX/2
1698 if test x$gas = xyes
1700 if test x$stabs = xyes
1702 tm_file=m68k/dpx2cdbx.h
1704 tm_file=m68k/dpx2g.h
1709 xm_file="xm-alloca.h ${xm_file}"
1711 xmake_file=m68k/x-dpx2
1713 extra_headers=math-68881.h
1715 m68k-atari-sysv4*) # Atari variant of V.4.
1716 tm_file=m68k/atari.h
1717 xm_file="xm-alloca.h ${xm_file}"
1718 xm_defines="USG FULL_PROTOTYPES"
1720 extra_parts="crtbegin.o crtend.o"
1721 extra_headers=math-68881.h
1724 m68k-motorola-sysv*)
1725 tm_file=m68k/mot3300.h
1726 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1727 xm_defines=NO_SYS_SIGLIST
1728 if test x$gas = xyes
1730 xmake_file=m68k/x-mot3300-gas
1731 if test x$gnu_ld = xyes
1733 tmake_file=m68k/t-mot3300-gald
1735 tmake_file=m68k/t-mot3300-gas
1739 xmake_file=m68k/x-mot3300
1740 if test x$gnu_ld = xyes
1742 tmake_file=m68k/t-mot3300-gld
1744 tmake_file=m68k/t-mot3300
1748 gdb_needs_out_file_path=yes
1749 extra_parts="crt0.o mcrt0.o"
1750 extra_headers=math-68881.h
1753 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1754 tm_file=m68k/tower-as.h
1755 xm_defines="USG SVR3"
1756 xmake_file=m68k/x-tower
1757 extra_parts="crtbegin.o crtend.o"
1758 extra_headers=math-68881.h
1761 tm_file=m68k/plexus.h
1762 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1765 extra_headers=math-68881.h
1769 xm_file="xm-alloca.h ${xm_file}"
1771 extra_headers=math-68881.h
1774 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1775 xm_defines="USG unos"
1776 xmake_file=m68k/x-crds
1779 extra_headers=math-68881.h
1781 m68k-cbm-sysv4*) # Commodore variant of V.4.
1783 xm_file="xm-alloca.h ${xm_file}"
1784 xm_defines="USG FULL_PROTOTYPES"
1785 xmake_file=m68k/x-amix
1787 extra_parts="crtbegin.o crtend.o"
1788 extra_headers=math-68881.h
1792 tm_file=m68k/ccur-GAS.h
1793 xmake_file=m68k/x-ccur
1794 extra_headers=math-68881.h
1798 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1799 tm_file=m68k/hp3bsd44.h
1800 xmake_file=m68k/x-hp3bsd44
1802 extra_headers=math-68881.h
1805 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1806 tm_file=m68k/hp3bsd.h
1808 extra_headers=math-68881.h
1812 if test x$with_fp = xno
1814 tm_file=m68k/isi-nfp.h
1820 extra_headers=math-68881.h
1822 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1823 xm_file="xm_alloca.h ${xm_file}"
1824 xm_defines="USG NO_SYS_SIGLIST"
1825 if test x$gas = xyes
1827 xmake_file=m68k/x-hp320g
1828 tm_file=m68k/hp320g.h
1830 xmake_file=m68k/x-hp320
1831 tm_file=m68k/hpux7.h
1833 install_headers_dir=install-headers-cpio
1835 extra_headers=math-68881.h
1838 m68k-hp-hpux*) # HP 9000 series 300
1839 xm_file="xm_alloca.h ${xm_file}"
1840 xm_defines="USG NO_SYS_SIGLIST"
1841 if test x$gas = xyes
1843 xmake_file=m68k/x-hp320g
1844 tm_file=m68k/hp320g.h
1846 xmake_file=m68k/x-hp320
1847 tm_file=m68k/hp320.h
1849 install_headers_dir=install-headers-cpio
1851 extra_headers=math-68881.h
1855 tm_file=m68k/sun3mach.h
1857 extra_headers=math-68881.h
1861 if test x$gas = xyes
1863 tm_file=m68k/news3gas.h
1865 tm_file=m68k/news3.h
1868 extra_headers=math-68881.h
1871 m68k-sony-bsd* | m68k-sony-newsos*)
1872 if test x$gas = xyes
1874 tm_file=m68k/newsgas.h
1879 extra_headers=math-68881.h
1882 m68k-next-nextstep2*)
1883 tm_file=m68k/next21.h
1884 xm_file="m68k/xm-next.h ${xm_file}"
1885 tmake_file=m68k/t-next
1886 xmake_file=m68k/x-next
1887 extra_objs=nextstep.o
1888 extra_headers=math-68881.h
1892 m68k-next-nextstep3*)
1894 xm_file="m68k/xm-next.h ${xm_file}"
1895 tmake_file=m68k/t-next
1896 xmake_file=m68k/x-next
1897 extra_objs=nextstep.o
1898 extra_parts="crtbegin.o crtend.o"
1899 extra_headers=math-68881.h
1901 if test x$enable_threads = xyes; then
1906 if test x$with_fp = xno
1908 tm_file=m68k/sun3n3.h
1910 tm_file=m68k/sun3o3.h
1914 extra_headers=math-68881.h
1916 m68k-sun-sunos*) # For SunOS 4 (the default).
1917 if test x$with_fp = xno
1919 tm_file=m68k/sun3n.h
1925 extra_headers=math-68881.h
1928 tm_file=m68k/vxm68k.h
1929 tmake_file=m68k/t-vxworks68
1930 extra_headers=math-68881.h
1931 thread_file='vxworks'
1935 tmake_file=m68k/t-m68kbare
1936 tm_file="m68k/m68k-aout.h libgloss.h"
1937 extra_headers=math-68881.h
1941 tmake_file=m68k/t-m68kbare
1942 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1943 extra_headers=math-68881.h
1946 m68020-*-elf* | m68k-*-elf*)
1947 tm_file="m68k/m68020-elf.h libgloss.h"
1948 xm_file=m68k/xm-m68kv.h
1949 tmake_file=m68k/t-m68kelf
1950 header_files=math-68881.h
1953 if test x$gas = xyes
1957 tm_file=m68k/lynx-ng.h
1959 xm_file=m68k/xm-lynx.h
1961 tmake_file=m68k/t-lynx
1962 extra_headers=math-68881.h
1966 tm_file=m68k/netbsd.h
1967 # On NetBSD, the headers are already okay, except for math.h.
1968 fixincludes=fixinc.wrap
1972 m68k-*-sysv3*) # Motorola m68k's running system V.3
1973 xm_file="xm-alloca.h ${xm_file}"
1975 xmake_file=m68k/x-m68kv
1976 extra_parts="crtbegin.o crtend.o"
1977 extra_headers=math-68881.h
1980 m68k-*-sysv4*) # Motorola m68k's running system V.4
1981 tm_file=m68k/m68kv4.h
1982 xm_file="xm-alloca.h ${xm_file}"
1985 extra_parts="crtbegin.o crtend.o"
1986 extra_headers=math-68881.h
1989 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1992 tm_file=m68k/linux-aout.h
1993 tmake_file="t-linux-aout m68k/t-linux-aout"
1994 fixincludes=Makefile.in # The headers are ok already.
1995 extra_headers=math-68881.h
1999 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2000 # with ELF format using the
2001 # GNU/Linux C library 5
2003 tm_file=m68k/linux.h
2004 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2005 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2006 fixincludes=Makefile.in # The headers are ok already.
2007 extra_headers=math-68881.h
2011 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2012 # with ELF format using glibc 2
2013 # aka the GNU/Linux C library 6.
2015 tm_file=m68k/linux.h
2016 tmake_file="t-linux m68k/t-linux"
2017 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2018 fixincludes=Makefile.in # The headers are ok already.
2019 extra_headers=math-68881.h
2022 if test x$enable_threads = xyes; then
2027 tmake_file=m68k/t-m68kbare
2028 tm_file=m68k/m68k-psos.h
2029 extra_headers=math-68881.h
2033 tmake_file="m68k/t-m68kbare t-rtems"
2034 tm_file=m68k/rtems.h
2035 extra_headers=math-68881.h
2042 tm_file=m88k/dguxbcs.h
2043 tmake_file=m88k/t-dguxbcs
2047 tmake_file=m88k/t-dgux
2050 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2051 xmake_file=m88k/x-dgux
2052 if test x$gas = xyes
2054 tmake_file=m88k/t-dgux-gas
2056 fixincludes=fixinc.dgux
2058 m88k-dolphin-sysv3*)
2059 tm_file=m88k/dolph.h
2060 extra_parts="crtbegin.o crtend.o"
2061 xm_file="m88k/xm-sysv3.h ${xm_file}"
2062 xmake_file=m88k/x-dolph
2063 if test x$gas = xyes
2065 tmake_file=m88k/t-m88k-gas
2068 m88k-tektronix-sysv3)
2069 tm_file=m88k/tekXD88.h
2070 extra_parts="crtbegin.o crtend.o"
2071 xm_file="m88k/xm-sysv3.h ${xm_file}"
2072 xmake_file=m88k/x-tekXD88
2073 if test x$gas = xyes
2075 tmake_file=m88k/t-m88k-gas
2079 tm_file=m88k/m88k-aout.h
2082 tm_file=m88k/m88k-coff.h
2083 tmake_file=m88k/t-bug
2087 extra_parts="crtbegin.o crtend.o"
2088 if test x$gas = xyes
2090 tmake_file=m88k/t-luna-gas
2092 tmake_file=m88k/t-luna
2096 tm_file=m88k/sysv3.h
2097 extra_parts="crtbegin.o crtend.o"
2098 xm_file="m88k/xm-sysv3.h ${xm_file}"
2099 xmake_file=m88k/x-sysv3
2100 if test x$gas = xyes
2102 tmake_file=m88k/t-m88k-gas
2106 tm_file=m88k/sysv4.h
2107 extra_parts="crtbegin.o crtend.o"
2108 xmake_file=m88k/x-sysv4
2109 tmake_file=m88k/t-sysv4
2111 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2112 tm_file=mips/iris6.h
2113 xm_file=mips/xm-iris6.h
2114 fixincludes=fixinc.irix
2115 xmake_file=mips/x-iris6
2116 tmake_file=mips/t-iris6
2117 # if test x$enable_threads = xyes; then
2118 # thread_file='irix'
2122 tm_file="mips/elf.h libgloss.h"
2123 tmake_file=mips/t-ecoff
2126 extra_parts="crtbegin.o crtend.o"
2127 # thread_file='vxworks'
2129 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2130 tm_file="mips/iris6.h mips/cross64.h"
2132 xm_file="mips/xm-iris5.h"
2133 fixincludes=Makefile.in
2134 xmake_file=mips/x-iris
2135 tmake_file=mips/t-cross64
2136 # See comment in mips/iris[56].h files.
2138 # if test x$enable_threads = xyes; then
2139 # thread_file='irix'
2143 if test x$gas = xyes
2145 if test x$stabs = xyes
2147 tm_file=mips/iris5gdb.h
2149 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2152 tm_file=mips/sni-svr4.h
2155 xmake_file=mips/x-sni-svr4
2156 tmake_file=mips/t-mips-gas
2157 if test x$gnu_ld != xyes
2162 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2163 if test x$gas = xyes
2165 tm_file="mips/iris5.h mips/iris5gas.h"
2166 if test x$stabs = xyes
2168 tm_file="${tm_file} dbx.h"
2171 tm_file=mips/iris5.h
2174 xm_file="mips/xm-iris5.h"
2175 fixincludes=fixinc.irix
2176 xmake_file=mips/x-iris
2177 # mips-tfile doesn't work yet
2178 tmake_file=mips/t-mips-gas
2179 # See comment in mips/iris5.h file.
2181 # if test x$enable_threads = xyes; then
2182 # thread_file='irix'
2185 mips-sgi-irix4loser*) # Mostly like a MIPS.
2186 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2187 if test x$stabs = xyes; then
2188 tm_file="${tm_file} dbx.h"
2191 xmake_file=mips/x-iris
2192 if test x$gas = xyes
2194 tmake_file=mips/t-mips-gas
2196 extra_passes="mips-tfile mips-tdump"
2198 if test x$gnu_ld != xyes
2202 # if test x$enable_threads = xyes; then
2203 # thread_file='irix'
2206 mips-sgi-irix4*) # Mostly like a MIPS.
2207 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2208 if test x$stabs = xyes; then
2209 tm_file="${tm_file} dbx.h"
2212 xmake_file=mips/x-iris
2213 if test x$gas = xyes
2215 tmake_file=mips/t-mips-gas
2217 extra_passes="mips-tfile mips-tdump"
2219 if test x$gnu_ld != xyes
2223 # if test x$enable_threads = xyes; then
2224 # thread_file='irix'
2227 mips-sgi-*) # Mostly like a MIPS.
2228 tm_file="mips/iris3.h ${tm_file}"
2229 if test x$stabs = xyes; then
2230 tm_file="${tm_file} dbx.h"
2233 xmake_file=mips/x-iris3
2234 if test x$gas = xyes
2236 tmake_file=mips/t-mips-gas
2238 extra_passes="mips-tfile mips-tdump"
2240 if test x$gnu_ld != xyes
2245 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2246 tm_file="mips/osfrose.h ${tm_file}"
2247 xmake_file=mips/x-osfrose
2248 tmake_file=mips/t-osfrose
2249 extra_objs=halfpic.o
2252 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2253 tm_file=mips/dec-osf1.h
2254 if test x$stabs = xyes; then
2255 tm_file="${tm_file} dbx.h"
2257 xmake_file=mips/x-dec-osf1
2258 if test x$gas = xyes
2260 tmake_file=mips/t-mips-gas
2262 tmake_file=mips/t-ultrix
2263 extra_passes="mips-tfile mips-tdump"
2265 if test x$gnu_ld != xyes
2270 mips-dec-bsd*) # Decstation running 4.4 BSD
2271 tm_file=mips/dec-bsd.h
2273 if test x$gas = xyes
2275 tmake_file=mips/t-mips-gas
2277 tmake_file=mips/t-ultrix
2278 extra_passes="mips-tfile mips-tdump"
2280 if test x$gnu_ld != xyes
2285 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2286 tm_file=mips/netbsd.h
2287 # On NetBSD, the headers are already okay, except for math.h.
2288 fixincludes=fixinc.wrap
2291 mips*-*-linux*) # Linux MIPS, either endian.
2293 xm_file="xm-siglist.h ${xm_file}"
2295 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2296 *) tm_file="mips/elf.h mips/linux.h" ;;
2298 extra_parts="crtbegin.o crtend.o"
2301 fixincludes=Makefile.in
2303 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2304 tm_file="mips/news4.h ${tm_file}"
2305 if test x$stabs = xyes; then
2306 tm_file="${tm_file} dbx.h"
2308 if test x$gas = xyes
2310 tmake_file=mips/t-mips-gas
2312 extra_passes="mips-tfile mips-tdump"
2314 if test x$gnu_ld != xyes
2318 xmake_file=mips/x-sony
2320 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2321 # That is based on svr4.
2322 # t-svr4 is not right because this system doesn't use ELF.
2323 tm_file="mips/news5.h ${tm_file}"
2324 if test x$stabs = xyes; then
2325 tm_file="${tm_file} dbx.h"
2327 xm_file="xm-siglist.h ${xm_file}"
2329 if test x$gas = xyes
2331 tmake_file=mips/t-mips-gas
2333 extra_passes="mips-tfile mips-tdump"
2335 if test x$gnu_ld != xyes
2340 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2341 tm_file="mips/svr4-5.h mips/svr4-t.h"
2342 if test x$stabs = xyes; then
2343 tm_file="${tm_file} dbx.h"
2345 xm_file="xm-siglist.h ${xm_file}"
2347 xmake_file=mips/x-sysv
2348 if test x$gas = xyes
2350 tmake_file=mips/t-mips-gas
2351 extra_parts="crtbegin.o crtend.o"
2353 tmake_file=mips/t-mips
2354 extra_passes="mips-tfile mips-tdump"
2356 if test x$gnu_ld != xyes
2361 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2362 tm_file="mips/ultrix.h ${tm_file}"
2363 if test x$stabs = xyes; then
2364 tm_file="${tm_file} dbx.h"
2366 xmake_file=mips/x-ultrix
2367 if test x$gas = xyes
2369 tmake_file=mips/t-mips-gas
2371 tmake_file=mips/t-ultrix
2372 extra_passes="mips-tfile mips-tdump"
2374 if test x$gnu_ld != xyes
2380 mips-*-riscos[56789]bsd*)
2382 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2383 if test x$stabs = xyes; then
2384 tm_file="${tm_file} dbx.h"
2386 if test x$gas = xyes
2388 tmake_file=mips/t-bsd-gas
2390 tmake_file=mips/t-bsd
2391 extra_passes="mips-tfile mips-tdump"
2393 if test x$gnu_ld != xyes
2399 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2401 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2402 if test x$stabs = xyes; then
2403 tm_file="${tm_file} dbx.h"
2405 if test x$gas = xyes
2407 tmake_file=mips/t-bsd-gas
2409 tmake_file=mips/t-bsd
2410 extra_passes="mips-tfile mips-tdump"
2412 if test x$gnu_ld != xyes
2418 mips-*-riscos[56789]sysv4*)
2420 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2421 if test x$stabs = xyes; then
2422 tm_file="${tm_file} dbx.h"
2424 xm_file="xm-siglist.h ${xm_file}"
2425 xmake_file=mips/x-sysv
2426 if test x$gas = xyes
2428 tmake_file=mips/t-svr4-gas
2430 tmake_file=mips/t-svr4
2431 extra_passes="mips-tfile mips-tdump"
2433 if test x$gnu_ld != xyes
2439 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2441 tm_file="mips/svr4-4.h ${tm_file}"
2442 if test x$stabs = xyes; then
2443 tm_file="${tm_file} dbx.h"
2446 xmake_file=mips/x-sysv
2447 if test x$gas = xyes
2449 tmake_file=mips/t-svr4-gas
2451 tmake_file=mips/t-svr4
2452 extra_passes="mips-tfile mips-tdump"
2454 if test x$gnu_ld != xyes
2460 mips-*-riscos[56789]sysv*)
2462 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2463 if test x$stabs = xyes; then
2464 tm_file="${tm_file} dbx.h"
2467 xmake_file=mips/x-sysv
2468 if test x$gas = xyes
2470 tmake_file=mips/t-svr3-gas
2472 tmake_file=mips/t-svr3
2473 extra_passes="mips-tfile mips-tdump"
2475 if test x$gnu_ld != xyes
2480 mips-*-sysv* | mips-*-riscos*sysv*)
2481 tm_file="mips/svr3-4.h ${tm_file}"
2482 if test x$stabs = xyes; then
2483 tm_file="${tm_file} dbx.h"
2486 xmake_file=mips/x-sysv
2487 if test x$gas = xyes
2489 tmake_file=mips/t-svr3-gas
2491 tmake_file=mips/t-svr3
2492 extra_passes="mips-tfile mips-tdump"
2494 if test x$gnu_ld != xyes
2500 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2502 tm_file=mips/mips-5.h
2503 if test x$stabs = xyes; then
2504 tm_file="${tm_file} dbx.h"
2506 if test x$gas = xyes
2508 tmake_file=mips/t-mips-gas
2510 extra_passes="mips-tfile mips-tdump"
2512 if test x$gnu_ld != xyes
2520 tm_file=mips/ecoffl.h
2521 if test x$stabs = xyes; then
2522 tm_file="${tm_file} dbx.h"
2524 tmake_file=mips/t-ecoff
2527 tm_file="gofast.h mips/ecoff.h"
2528 if test x$stabs = xyes; then
2529 tm_file="${tm_file} dbx.h"
2531 tmake_file=mips/t-ecoff
2534 tm_file="mips/elfl.h libgloss.h"
2535 tmake_file=mips/t-ecoff
2538 tm_file="mips/elf.h libgloss.h"
2539 tmake_file=mips/t-ecoff
2542 tm_file="mips/elfl64.h libgloss.h"
2543 tmake_file=mips/t-ecoff
2545 mips64orionel-*-elf*)
2546 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2547 tmake_file=mips/t-ecoff
2550 tm_file="mips/elf64.h libgloss.h"
2551 tmake_file=mips/t-ecoff
2554 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2555 tmake_file=mips/t-ecoff
2557 mips64orion-*-rtems*)
2558 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2559 tmake_file="mips/t-ecoff t-rtems"
2562 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2563 tmake_file=mips/t-r3900
2566 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2567 tmake_file=mips/t-r3900
2568 # FIXME mips-elf should be fixed to use crtstuff.
2571 mips-*-*) # Default MIPS RISC-OS 4.0.
2572 if test x$stabs = xyes; then
2573 tm_file="${tm_file} dbx.h"
2575 if test x$gas = xyes
2577 tmake_file=mips/t-mips-gas
2579 extra_passes="mips-tfile mips-tdump"
2581 if test x$gnu_ld != xyes
2588 tm_file="mn10200/mn10200.h"
2589 if test x$stabs = xyes
2591 tm_file="${tm_file} dbx.h"
2597 tm_file="mn10300/mn10300.h"
2598 if test x$stabs = xyes
2600 tm_file="${tm_file} dbx.h"
2605 tm_file=ns32k/encore.h
2609 tm_file=ns32k/sequent.h
2613 tm_file=ns32k/tek6100.h
2617 tm_file=ns32k/tek6200.h
2620 # This has not been updated to GCC 2.
2623 # xmake_file=ns32k/x-genix
2624 # tm_file=ns32k/genix.h
2628 tm_file=ns32k/merlin.h
2632 tm_file=ns32k/pc532-mach.h
2636 tm_file=ns32k/pc532-min.h
2637 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2642 tm_file=ns32k/netbsd.h
2643 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2644 # On NetBSD, the headers are already okay, except for math.h.
2645 fixincludes=fixinc.wrap
2649 tm_file="${tm_file} pdp11/2bsd.h"
2655 xmake_file=pyr/x-pyr
2662 xmake_file=romp/x-mach
2667 tm_file=rs6000/beos.h
2668 xm_file=rs6000/xm-beos.h
2669 tmake_file=rs6000/t-beos
2670 xmake_file=rs6000/x-beos
2672 powerpc-*-sysv* | powerpc-*-elf*)
2673 tm_file=rs6000/sysv4.h
2674 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2675 xm_defines="USG POSIX"
2676 extra_headers=ppc-asm.h
2677 if test x$gas = xyes
2679 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2681 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2683 xmake_file=rs6000/x-sysv4
2686 tm_file=rs6000/eabiaix.h
2687 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2688 fixincludes=Makefile.in
2689 extra_headers=ppc-asm.h
2692 tm_file=rs6000/eabisim.h
2693 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2694 fixincludes=Makefile.in
2695 extra_headers=ppc-asm.h
2698 tm_file=rs6000/eabi.h
2699 if test x$gas = xyes
2701 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2703 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2705 fixincludes=Makefile.in
2706 extra_headers=ppc-asm.h
2709 tm_file=rs6000/rtems.h
2710 if test x$gas = xyes
2712 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2714 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2716 fixincludes=Makefile.in
2717 extra_headers=ppc-asm.h
2719 powerpc-*-linux-gnulibc1)
2720 tm_file=rs6000/linux.h
2721 xm_file=rs6000/xm-sysv4.h
2722 out_file=rs6000/rs6000.c
2723 if test x$gas = xyes
2725 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2727 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2730 fixincludes=Makefile.in
2731 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2732 extra_headers=ppc-asm.h
2733 if test x$enable_threads = xyes; then
2737 powerpc-*-linux-gnu*)
2738 tm_file=rs6000/linux.h
2739 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2740 xm_defines="USG ${xm_defines}"
2741 out_file=rs6000/rs6000.c
2742 if test x$gas = xyes
2744 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2746 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2749 fixincludes=Makefile.in
2750 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2751 extra_headers=ppc-asm.h
2752 if test x$enable_threads = xyes; then
2756 powerpc-wrs-vxworks*)
2758 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2759 xm_defines="USG POSIX"
2760 tm_file=rs6000/vxppc.h
2761 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2762 extra_headers=ppc-asm.h
2763 thread_file='vxworks'
2765 powerpcle-*-sysv* | powerpcle-*-elf*)
2766 tm_file=rs6000/sysv4le.h
2767 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2768 xm_defines="USG POSIX"
2769 if test x$gas = xyes
2771 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2773 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2775 xmake_file=rs6000/x-sysv4
2776 extra_headers=ppc-asm.h
2778 powerpcle-*-eabisim*)
2779 tm_file=rs6000/eabilesim.h
2780 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2781 fixincludes=Makefile.in
2782 extra_headers=ppc-asm.h
2785 tm_file=rs6000/eabile.h
2786 if test x$gas = xyes
2788 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2790 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2792 fixincludes=Makefile.in
2793 extra_headers=ppc-asm.h
2795 powerpcle-*-winnt* )
2796 tm_file=rs6000/win-nt.h
2797 tmake_file=rs6000/t-winnt
2799 fixincludes=Makefile.in
2800 if test x$enable_threads = xyes; then
2803 extra_headers=ppc-asm.h
2805 powerpcle-*-pe | powerpcle-*-cygwin*)
2806 tm_file=rs6000/cygwin.h
2807 xm_file="rs6000/xm-cygwin.h ${xm_file}"
2808 tmake_file=rs6000/t-winnt
2809 xmake_file=rs6000/x-cygwin
2811 fixincludes=Makefile.in
2812 if test x$enable_threads = xyes; then
2816 extra_headers=ppc-asm.h
2818 powerpcle-*-solaris2*)
2819 tm_file=rs6000/sol2.h
2820 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2821 xm_defines="USG POSIX"
2822 if test x$gas = xyes
2824 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2826 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2828 xmake_file=rs6000/x-sysv4
2833 fixincludes=fixinc.svr4;;
2835 fixincludes=fixinc.wrap;;
2837 extra_headers=ppc-asm.h
2840 rs6000-ibm-aix3.[01]*)
2842 tm_file=rs6000/aix31.h
2843 xmake_file=rs6000/x-aix31
2847 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2849 tm_file=rs6000/aix3newas.h
2850 if test x$host != x$target
2852 tmake_file=rs6000/t-xnewas
2854 tmake_file=rs6000/t-newas
2859 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2861 tm_file=rs6000/aix41.h
2862 if test x$host != x$target
2864 tmake_file=rs6000/t-xnewas
2866 tmake_file=rs6000/t-newas
2868 xmake_file=rs6000/x-aix41
2872 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2874 tm_file=rs6000/aix43.h
2875 if test x$host != x$target
2877 tmake_file=rs6000/t-xaix43
2879 tmake_file=rs6000/t-aix43
2881 xmake_file=rs6000/x-aix43
2885 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2887 tm_file=rs6000/aix43.h
2888 if test x$host != x$target
2890 tmake_file=rs6000/t-xaix43
2892 tmake_file=rs6000/t-aix43
2894 xmake_file=rs6000/x-aix43
2904 tm_file=rs6000/mach.h
2905 xm_file="${xm_file} rs6000/xm-mach.h"
2906 xmake_file=rs6000/x-mach
2910 tm_file=rs6000/lynx.h
2911 xm_file=rs6000/xm-lynx.h
2912 tmake_file=rs6000/t-rs6000
2913 xmake_file=rs6000/x-lynx
2921 tmake_file="sh/t-sh t-rtems"
2922 tm_file=sh/rtemself.h
2926 tmake_file="sh/t-sh t-rtems"
2935 xm_file="xm-alloca.h ${xm_file}"
2938 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2939 tm_file=sparc/vxsparc.h
2940 tmake_file=sparc/t-vxsparc
2942 thread_file='vxworks'
2945 tmake_file=sparc/t-sparcbare
2946 tm_file="sparc/aout.h libgloss.h"
2949 tm_file=sparc/netbsd.h
2950 # On NetBSD, the headers are already okay, except for math.h.
2951 fixincludes=fixinc.wrap
2959 tmake_file=sparc/t-elf
2960 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2964 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2965 xm_file="${xm_file} sparc/xm-linux.h"
2966 tm_file=sparc/linux-aout.h
2968 fixincludes=Makefile.in #On Linux, the headers are ok already.
2971 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2972 xm_file="${xm_file} sparc/xm-linux.h"
2974 tm_file=sparc/linux.h
2975 tmake_file="t-linux t-linux-gnulibc1"
2976 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2977 fixincludes=Makefile.in #On Linux, the headers are ok already.
2980 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2981 xm_file="${xm_file} sparc/xm-linux.h"
2983 tm_file=sparc/linux.h
2984 tmake_file="t-linux"
2985 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2986 fixincludes=Makefile.in #On Linux, the headers are ok already.
2988 if test x$enable_threads = xyes; then
2993 if test x$gas = xyes
2995 tm_file=sparc/lynx.h
2997 tm_file=sparc/lynx-ng.h
2999 xm_file=sparc/xm-lynx.h
3000 tmake_file=sparc/t-sunos41
3004 tmake_file="sparc/t-sparcbare t-rtems"
3005 tm_file=sparc/rtems.h
3007 sparcv9-*-solaris2*)
3008 tm_file=sparc/sol2-sld-64.h
3009 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3010 xm_defines="USG POSIX"
3011 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3012 xmake_file=sparc/x-sysv4
3013 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3014 fixincludes=fixinc.wrap
3016 if test x${enable_threads} = x ; then
3017 enable_threads=$have_pthread_h
3018 if test x${enable_threads} = x ; then
3019 enable_threads=$have_thread_h
3022 if test x${enable_threads} = xyes ; then
3023 if test x${have_pthread_h} = xyes ; then
3026 thread_file='solaris'
3031 if test x$gnu_ld = xyes
3033 tm_file=sparc/sol2.h
3035 tm_file=sparc/sol2-sld.h
3037 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3038 xm_defines="USG POSIX"
3039 tmake_file=sparc/t-sol2
3040 xmake_file=sparc/x-sysv4
3041 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3046 fixincludes=fixinc.svr4;;
3048 fixincludes=fixinc.wrap;;
3051 if test x${enable_threads} = x; then
3052 enable_threads=$have_pthread_h
3053 if test x${enable_threads} = x; then
3054 enable_threads=$have_thread_h
3057 if test x${enable_threads} = xyes; then
3058 if test x${have_pthread_h} = xyes; then
3061 thread_file='solaris'
3066 tm_file=sparc/sunos4.h
3067 tmake_file=sparc/t-sunos40
3071 tm_file=sparc/sunos4.h
3072 tmake_file=sparc/t-sunos41
3074 if test x$gas = xyes; then
3075 tm_file="${tm_file} sparc/sun4gas.h"
3079 tm_file=sparc/sun4o3.h
3083 tm_file=sparc/sysv4.h
3084 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3085 xm_defines="USG POSIX"
3087 xmake_file=sparc/x-sysv4
3088 extra_parts="crtbegin.o crtend.o"
3091 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3092 xm_defines="USG POSIX"
3093 tm_file=sparc/vxsim.h
3094 tmake_file=sparc/t-vxsparc
3095 xmake_file=sparc/x-sysv4
3098 tm_file="sparc/splet.h libgloss.h"
3099 tmake_file=sparc/t-splet
3102 tm_file="sparc/litecoff.h libgloss.h"
3103 tmake_file=sparc/t-sparclite
3106 tm_file="sparc/lite.h aoutos.h libgloss.h"
3107 tmake_file=sparc/t-sparclite
3110 tmake_file=sparc/t-sp64
3111 tm_file=sparc/sp64-aout.h
3114 tmake_file=sparc/t-sp64
3115 tm_file=sparc/sp64-elf.h
3116 extra_parts="crtbegin.o crtend.o"
3118 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3119 tmake_file="t-linux sparc/t-linux64"
3120 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3121 tm_file=sparc/linux64.h
3123 fixincludes=Makefile.in # The headers are ok already.
3124 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3127 # This hasn't been upgraded to GCC 2.
3128 # tahoe-harris-*) # Harris tahoe, using COFF.
3129 # tm_file=tahoe/harris.h
3131 # tahoe-*-bsd*) # tahoe running BSD
3133 thumb-*-coff* | thumbel-*-coff*)
3135 out_file=arm/thumb.c
3136 xm_file=arm/xm-thumb.h
3137 md_file=arm/thumb.md
3138 tmake_file=arm/t-thumb
3139 fixincludes=Makefile.in # There is nothing to fix
3141 # This hasn't been upgraded to GCC 2.
3148 tm_file="v850/v850.h"
3149 xm_file="v850/xm-v850.h"
3150 tmake_file=v850/t-v850
3151 if test x$stabs = xyes
3153 tm_file="${tm_file} dbx.h"
3157 vax-*-bsd*) # vaxen running BSD
3161 vax-*-sysv*) # vaxen running system V
3162 tm_file="${tm_file} vax/vaxv.h"
3167 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3168 # On NetBSD, the headers are already okay, except for math.h.
3169 fixincludes=fixinc.wrap
3173 vax-*-ultrix*) # vaxen running ultrix
3174 tm_file="${tm_file} vax/ultrix.h"
3178 vax-*-vms*) # vaxen running VMS
3179 xm_file=vax/xm-vms.h
3183 vax-*-*) # vax default entry
3187 xm_file="${xm_file} xm-svr3"
3191 echo "Configuration $machine not supported" 1>&2
3198 ;; # Existing GNU/Linux systems do not use the GNU setup.
3200 # On the GNU system, the setup is just about the same on
3201 # each different CPU. The specific machines that GNU
3202 # supports are matched above and just set $cpu_type.
3203 xm_file="xm-gnu.h ${xm_file}"
3204 tm_file=${cpu_type}/gnu.h
3205 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3206 # GNU always uses ELF.
3208 # GNU tools are the only tools.
3211 # On GNU, the headers are already okay.
3212 fixincludes=Makefile.in
3213 xmake_file=x-linux # These details are the same as Linux.
3214 tmake_file=t-gnu # These are not.
3217 fixincludes=fixinc.svr4
3218 xmake_try_sysv=x-sysv
3219 install_headers_dir=install-headers-cpio
3222 install_headers_dir=install-headers-cpio
3226 # Distinguish i[34567]86
3227 # Also, do not run mips-tfile on MIPS if using gas.
3228 # Process --with-cpu= for PowerPC/rs6000
3229 target_cpu_default2=
3232 target_cpu_default2=1
3235 target_cpu_default2=2
3237 i686-*-* | i786-*-*)
3238 target_cpu_default2=3
3243 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3246 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3249 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3252 target_cpu_default2="MASK_CPU_EV5"
3256 if test x$gas = xyes
3258 if test "$target_cpu_default2" = ""
3260 target_cpu_default2="MASK_GAS"
3262 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3267 case "x$with_cpu" in
3270 target_cpu_default2="TARGET_CPU_generic"
3273 # Distinguish cores, and major variants
3274 # arm7m doesn't exist, but D & I don't affect code
3275 xarm[23678] | xarm250 | xarm[67][01]0 \
3276 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3277 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3278 | xstrongarm | xstrongarm110)
3279 target_cpu_default2="TARGET_CPU_$with_cpu"
3283 echo "--with-cpu must be passed a value" 1>&2
3288 if test x$pass2done = xyes
3290 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3297 mips*-*-ecoff* | mips*-*-elf*)
3298 if test x$gas = xyes
3300 if test x$gnu_ld = xyes
3302 target_cpu_default2=20
3304 target_cpu_default2=16
3309 if test x$gas = xyes
3311 target_cpu_default2=16
3314 powerpc*-*-* | rs6000-*-*)
3315 case "x$with_cpu" in
3319 xcommon | xpower | xpower2 | xpowerpc | xrios \
3320 | xrios1 | xrios2 | xrsc | xrsc1 \
3321 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3322 | x403 | x505 | x801 | x821 | x823 | x860)
3323 target_cpu_default2="\"$with_cpu\""
3327 echo "--with-cpu must be passed a value" 1>&2
3332 if test x$pass2done = xyes
3334 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3341 case ".$with_cpu" in
3343 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3345 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3346 target_cpu_default2="TARGET_CPU_$with_cpu"
3349 if test x$pass2done = xyes
3351 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3359 if test "$target_cpu_default2" != ""
3361 if test "$target_cpu_default" != ""
3363 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3365 target_cpu_default=$target_cpu_default2
3369 # No need for collect2 if we have the GNU linker.
3370 # Actually, there is now; GNU ld doesn't handle the EH info or
3371 # collecting for shared libraries.
3378 # Save data on machine being used to compile GCC in build_xm_file.
3379 # Save data on host machine in vars host_xm_file and host_xmake_file.
3380 if test x$pass1done = x
3382 if test x"$xm_file" = x
3383 then build_xm_file=$cpu_type/xm-$cpu_type.h
3384 else build_xm_file=$xm_file
3386 build_xm_defines=$xm_defines
3387 build_install_headers_dir=$install_headers_dir
3388 build_exeext=$exeext
3391 if test x$pass2done = x
3393 if test x"$xm_file" = x
3394 then host_xm_file=$cpu_type/xm-$cpu_type.h
3395 else host_xm_file=$xm_file
3397 host_xm_defines=$xm_defines
3398 if test x"$xmake_file" = x
3399 then xmake_file=$cpu_type/x-$cpu_type
3401 host_xmake_file="$xmake_file"
3402 host_truncate_target=$truncate_target
3403 host_extra_gcc_objs=$extra_gcc_objs
3404 host_extra_objs=$extra_host_objs
3411 extra_objs="${host_extra_objs} ${extra_objs}"
3413 # Default the target-machine variables that were not explicitly set.
3414 if test x"$tm_file" = x
3415 then tm_file=$cpu_type/$cpu_type.h; fi
3417 if test x$extra_headers = x
3418 then extra_headers=; fi
3420 if test x"$xm_file" = x
3421 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3423 if test x$md_file = x
3424 then md_file=$cpu_type/$cpu_type.md; fi
3426 if test x$out_file = x
3427 then out_file=$cpu_type/$cpu_type.c; fi
3429 if test x"$tmake_file" = x
3430 then tmake_file=$cpu_type/t-$cpu_type
3433 if test x$float_format = x
3434 then float_format=i64
3437 if test x$enable_haifa = x
3440 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3445 # Say what files are being used for the output code and MD file.
3446 echo "Using \`$srcdir/config/$out_file' to output insns."
3447 echo "Using \`$srcdir/config/$md_file' as machine description file."
3450 for f in $tm_file; do
3453 if test $count = ax; then
3454 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3456 echo "Using the following target machine macro files:"
3457 for f in $tm_file; do
3458 echo " $srcdir/config/$f"
3463 for f in $host_xm_file; do
3466 if test $count = ax; then
3467 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3469 echo "Using the following host machine macro files:"
3470 for f in $host_xm_file; do
3471 echo " $srcdir/config/$f"
3475 if test "$host_xm_file" != "$build_xm_file"; then
3477 for f in $build_xm_file; do
3480 if test $count = ax; then
3481 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3483 echo "Using the following build machine macro files:"
3484 for f in $build_xm_file; do
3485 echo " $srcdir/config/$f"
3490 if test x$thread_file = x; then
3491 if test x$target_thread_file != x; then
3492 thread_file=$target_thread_file
3494 thread_file='single'
3498 # Set up the header files.
3499 # $links is the list of header files to create.
3500 # $vars is the list of shell variables with file names to include.
3501 # auto-host.h is the file containing items generated by autoconf and is
3502 # the first file included by config.h.
3504 host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
3506 # If host=build, it is correct to have hconfig include auto-host.h
3507 # as well. If host!=build, we are in error and need to do more
3508 # work to find out the build config parameters.
3509 if test x$host = x$build
3511 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
3513 # We create a subdir, then run autoconf in the subdir.
3514 # To prevent recursion we set host and build for the new
3515 # invocation of configure to the build for this invocation
3522 /*) realsrcdir=${srcdir};;
3523 *) realsrcdir=../${srcdir};;
3525 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3526 --target=$target --host=$build --build=$build
3528 # We just finished tests for the build machine, so rename
3529 # the file auto-build.h in the gcc directory.
3530 mv auto-host.h ../auto-build.h
3533 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
3536 xm_file="gansidecl.h ${xm_file}"
3537 tm_file="gansidecl.h ${tm_file}"
3539 vars="host_xm_file tm_file xm_file build_xm_file"
3540 links="config.h tm.h tconfig.h hconfig.h"
3541 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3544 if test -f config.status; then mv -f config.status config.bak; fi
3547 while test -n "$vars"
3549 set $vars; var=$1; shift; vars=$*
3550 set $links; link=$1; shift; links=$*
3551 set $defines; define=$1; shift; defines=$*
3555 # Define TARGET_CPU_DEFAULT if the system wants one.
3556 # This substitutes for lots of *.h files.
3557 if test "$target_cpu_default" != "" -a $link = tm.h
3559 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3562 for file in `eval echo '$'$var`; do
3563 echo "#include \"$file\"" >>$link
3566 for def in `eval echo '$'$define`; do
3567 echo "#ifndef $def" >>$link
3568 echo "#define $def" >>$link
3569 echo "#endif" >>$link
3573 # Truncate the target if necessary
3574 if test x$host_truncate_target != x; then
3575 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3578 # Get the version trigger filename from the toplevel
3579 if test "${with_gcc_version_trigger+set}" = set; then
3580 gcc_version_trigger=$with_gcc_version_trigger
3582 gcc_version_trigger=${srcdir}/version.c
3585 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3588 # Get an absolute path to the GCC top-level source directory
3594 # Conditionalize the makefile for this host machine.
3595 # Make-host contains the concatenation of all host makefile fragments
3596 # [there can be more than one]. This file is built by configure.frag.
3597 host_overrides=Make-host
3598 dep_host_xmake_file=
3599 for f in .. ${host_xmake_file}
3601 if test -f ${srcdir}/config/$f
3603 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3607 # Conditionalize the makefile for this target machine.
3608 # Make-target contains the concatenation of all host makefile fragments
3609 # [there can be more than one]. This file is built by configure.frag.
3610 target_overrides=Make-target
3612 for f in .. ${tmake_file}
3614 if test -f ${srcdir}/config/$f
3616 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3620 # If the host doesn't support symlinks, modify CC in
3621 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3622 # Otherwise, we can use "CC=$(CC)".
3624 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3626 cc_set_by_configure="\$(CC)"
3627 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3630 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3632 symbolic_link="cp -p"
3636 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3637 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3641 out_object_file=`basename $out_file .c`.o
3644 for f in $tm_file; do
3645 if test $f != "gansidecl.h" ; then
3646 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3648 tm_file_list="${tm_file_list} $f"
3653 for f in $host_xm_file; do
3654 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3655 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3657 host_xm_file_list="${host_xm_file_list} $f"
3662 for f in $build_xm_file; do
3663 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3664 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3666 build_xm_file_list="${build_xm_file_list} $f"
3670 # Define macro CROSS_COMPILE in compilation
3671 # if this is a cross-compiler.
3672 # Also use all.cross instead of all.internal
3673 # and add cross-make to Makefile.
3674 cross_overrides="/dev/null"
3675 if test x$host != x$target
3677 cross_defines="CROSS=-DCROSS_COMPILE"
3678 cross_overrides="${topdir}/cross-make"
3681 # When building gcc with a cross-compiler, we need to fix a few things.
3682 # This must come after cross-make as we want all.build to override
3684 build_overrides="/dev/null"
3685 if test x$build != x$host
3687 build_overrides="${topdir}/build-make"
3690 # Expand extra_headers to include complete path.
3691 # This substitutes for lots of t-* files.
3693 if test "x$extra_headers" = x
3696 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3697 for file in $extra_headers;
3699 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3703 if test x$use_collect2 = xno; then
3707 # Add a definition of USE_COLLECT2 if system wants one.
3708 # Also tell toplev.c what to do.
3709 # This substitutes for lots of t-* files.
3710 if test x$use_collect2 = x
3715 will_use_collect2="collect2"
3716 maybe_use_collect2="-DUSE_COLLECT2"
3720 # Set MD_DEPS if the real md file is in md.pre-cpp.
3721 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3722 # for line oriented comments, so we must always use a GNU cpp. If
3723 # building gcc with a cross compiler, use the cross compiler just
3724 # built. Otherwise, we can use the cpp just built.
3726 if test "x$md_cppflags" = x
3728 md_file_sub=$srcdir/config/$md_file
3733 # If we have gas in the build tree, make a link to it.
3734 if test -f ../gas/Makefile; then
3735 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3738 # If we have nm in the build tree, make a link to it.
3739 if test -f ../binutils/Makefile; then
3740 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3743 # If we have ld in the build tree, make a link to it.
3744 if test -f ../ld/Makefile; then
3745 # if test x$use_collect2 = x; then
3746 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3748 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3752 # Figure out what assembler alignment features are present.
3753 AC_MSG_CHECKING(assembler alignment features)
3755 gcc_cv_as_alignment_features=
3756 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3757 if test -x "$DEFAULT_ASSEMBLER"; then
3758 gcc_cv_as="$DEFAULT_ASSEMBLER"
3759 elif test -x "$AS"; then
3761 elif test -x as$host_exeext; then
3762 # Build using assembler in the current directory.
3763 gcc_cv_as=./as$host_exeext
3764 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
3765 # Single tree build which includes gas.
3766 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3769 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3771 if test x$gcc_cv_gas_version != x; then
3776 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3777 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3779 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3780 # Gas version 2.6 and later support for .balign and .p2align.
3781 # bytes to skip when using .p2align.
3782 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
3783 gcc_cv_as_alignment_features=".balign and .p2align"
3784 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3786 # Gas version 2.8 and later support specifying the maximum
3787 # bytes to skip when using .p2align.
3788 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
3789 gcc_cv_as_alignment_features=".p2align including maximum skip"
3790 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3793 elif test x$host = x$target; then
3795 gcc_cv_as=as$host_exeext
3797 if test x$gcc_cv_as != x; then
3798 # Check if we have .balign and .p2align
3799 echo ".balign 4" > conftest.s
3800 echo ".p2align 2" >> conftest.s
3801 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3802 gcc_cv_as_alignment_features=".balign and .p2align"
3803 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3805 rm -f conftest.s conftest.o
3806 # Check if specifying the maximum bytes to skip when
3807 # using .p2align is supported.
3808 echo ".p2align 4,,7" > conftest.s
3809 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3810 gcc_cv_as_alignment_features=".p2align including maximum skip"
3811 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3813 rm -f conftest.s conftest.o
3815 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3817 AC_MSG_CHECKING(assembler subsection support)
3818 gcc_cv_as_subsections=
3819 if test x$gcc_cv_as != x; then
3820 # Check if we have .subsection
3821 echo ".subsection 1" > conftest.s
3822 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3823 gcc_cv_as_subsections=".subsection"
3824 if test -x nm$host_exeext; then
3825 gcc_cv_nm=./nm$host_exeext
3826 elif test x$host = x$target; then
3828 gcc_cv_nm=nm$host_exeext
3830 if test x$gcc_cv_nm != x; then
3831 cat > conftest.s <<EOF
3832 conftest_label1: .word 0
3834 conftest_label2: .word 0
3837 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3838 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3839 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3840 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3843 gcc_cv_as_subsections="working .subsection -1"
3844 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3849 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3851 AC_MSG_RESULT($gcc_cv_as_subsections)
3853 # Figure out what language subdirectories are present.
3854 # Look if the user specified --enable-languages="..."; if not, use
3855 # the environment variable $LANGUAGES if defined. $LANGUAGES might
3857 if test x"${enable_languages+set}" != xset; then
3858 if test x"${LANGUAGES+set}" = xset; then
3859 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
3861 enable_languages=all
3865 for lang in ${srcdir}/*/config-lang.in ..
3869 # The odd quoting in the next line works around
3870 # an apparent bug in bash 1.12 on linux.
3872 ${srcdir}/[*]/config-lang.in) ;;
3874 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
3875 if test "x$lang_alias" = x
3877 echo "$lang doesn't set \$language." 1>&2
3880 if test x"${enable_languages}" = xall; then
3883 case "${enable_languages}" in
3884 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
3892 if test x"${add_this_lang}" = xyes; then
3894 ${srcdir}/ada/config-lang.in)
3895 if test x$gnat = xyes ; then
3896 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3900 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3909 # Make gthr-default.h if we have a thread file.
3911 if test $thread_file != single; then
3912 rm -f gthr-default.h
3913 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3914 gthread_flags=-DHAVE_GTHR_DEFAULT
3916 AC_SUBST(gthread_flags)
3918 # Make empty files to contain the specs and options for each language.
3919 # Then add #include lines to for a compiler that has specs and/or options.
3924 rm -f specs.h options.h gencheck.h
3925 touch specs.h options.h gencheck.h
3926 for subdir in . $subdirs
3928 if test -f $srcdir/$subdir/lang-specs.h; then
3929 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3930 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3932 if test -f $srcdir/$subdir/lang-options.h; then
3933 echo "#include \"$subdir/lang-options.h\"" >>options.h
3934 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3936 if test -f $srcdir/$subdir/$subdir-tree.def; then
3937 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3938 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3942 # These (without "all_") are set in each config-lang.in.
3943 # `language' must be a single word so is spelled singularly.
3949 all_outputs=Makefile
3950 # List of language makefile fragments.
3955 # Add the language fragments.
3956 # Languages are added via two mechanisms. Some information must be
3957 # recorded in makefile variables, these are defined in config-lang.in.
3958 # We accumulate them and plug them into the main Makefile.
3959 # The other mechanism is a set of hooks for each of the main targets
3960 # like `clean', `install', etc.
3962 language_fragments="Make-lang"
3963 language_hooks="Make-hooks"
3966 for s in .. $subdirs
3978 . ${srcdir}/$s/config-lang.in
3979 if test "x$language" = x
3981 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3984 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3985 all_languages="$all_languages $language"
3986 if test "x$boot_language" = xyes
3988 all_boot_languages="$all_boot_languages $language"
3990 all_compilers="$all_compilers $compilers"
3991 all_stagestuff="$all_stagestuff $stagestuff"
3992 all_diff_excludes="$all_diff_excludes $diff_excludes"
3993 all_headers="$all_headers $headers"
3994 all_outputs="$all_outputs $outputs"
3995 if test x$outputs = x
3997 oldstyle_subdirs="$oldstyle_subdirs $s"
3999 all_lib2funcs="$all_lib2funcs $lib2funcs"
4003 # Since we can't use `::' targets, we link each language in
4004 # with a set of hooks, reached indirectly via lang.${target}.
4008 target_list="all.build all.cross start.encap rest.encap \
4010 install-normal install-common install-info install-man \
4012 mostlyclean clean distclean extraclean maintainer-clean \
4013 stage1 stage2 stage3 stage4"
4014 for t in $target_list
4017 for l in .. $all_languages
4019 if test $l != ".."; then
4023 echo "lang.$t: $x" >> Make-hooks
4026 # If we're not building in srcdir, create .gdbinit.
4028 if test ! -f Makefile.in; then
4029 echo "dir ." > .gdbinit
4030 echo "dir ${srcdir}" >> .gdbinit
4031 if test x$gdb_needs_out_file_path = xyes
4033 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4035 if test "x$subdirs" != x; then
4038 echo "dir ${srcdir}/$s" >> .gdbinit
4041 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4044 # Define variables host_canonical and build_canonical
4045 # because some Cygnus local changes in the Makefile depend on them.
4046 build_canonical=${build}
4047 host_canonical=${host}
4049 if test "${host}" != "${target}" ; then
4050 target_subdir=${target}/
4052 AC_SUBST(build_canonical)
4053 AC_SUBST(host_canonical)
4054 AC_SUBST(target_subdir)
4056 # If this is using newlib, then define inhibit_libc in
4057 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4058 # libgcc.a, but that's OK because newib should have its own version of
4061 if test x$with_newlib = xyes; then
4062 inhibit_libc=-Dinhibit_libc
4064 AC_SUBST(inhibit_libc)
4066 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4069 if test x$enable_haifa = xyes; then
4070 echo "Using the Haifa scheduler."
4072 sched_cflags=-DHAIFA
4074 AC_SUBST(sched_prefix)
4075 AC_SUBST(sched_cflags)
4076 if test x$enable_haifa != x; then
4077 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4078 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
4086 # Warn if using init_priority.
4087 AC_MSG_CHECKING(whether to enable init_priority by default)
4088 if test x$enable_init_priority != xyes; then
4089 enable_init_priority=no
4091 AC_MSG_RESULT($enable_init_priority)
4093 # Nothing to do for FLOAT_H, float_format already handled.
4097 # Process the language and host/target makefile fragments.
4098 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4100 # Substitute configuration variables
4102 AC_SUBST(all_languages)
4103 AC_SUBST(all_boot_languages)
4104 AC_SUBST(all_compilers)
4105 AC_SUBST(all_lang_makefiles)
4106 AC_SUBST(all_stagestuff)
4107 AC_SUBST(all_diff_excludes)
4108 AC_SUBST(all_lib2funcs)
4109 AC_SUBST(all_headers)
4111 AC_SUBST(extra_passes)
4112 AC_SUBST(extra_programs)
4113 AC_SUBST(extra_parts)
4114 AC_SUBST(extra_c_objs)
4115 AC_SUBST(extra_cxx_objs)
4116 AC_SUBST(extra_cpp_objs)
4117 AC_SUBST(extra_c_flags)
4118 AC_SUBST(extra_objs)
4119 AC_SUBST(host_extra_gcc_objs)
4120 AC_SUBST(extra_headers_list)
4121 AC_SUBST(dep_host_xmake_file)
4122 AC_SUBST(dep_tmake_file)
4124 AC_SUBST(out_object_file)
4126 AC_SUBST(tm_file_list)
4127 AC_SUBST(build_xm_file_list)
4128 AC_SUBST(host_xm_file_list)
4129 AC_SUBST(lang_specs_files)
4130 AC_SUBST(lang_options_files)
4131 AC_SUBST(lang_tree_files)
4132 AC_SUBST(thread_file)
4133 AC_SUBST(objc_boehm_gc)
4135 AC_SUBST(gcc_version)
4136 AC_SUBST(gcc_version_trigger)
4137 AC_SUBST(local_prefix)
4138 AC_SUBST(gxx_include_dir)
4139 AC_SUBST(fixincludes)
4140 AC_SUBST(build_install_headers_dir)
4141 AC_SUBST(build_exeext)
4142 AC_SUBST(host_exeext)
4143 AC_SUBST(float_format)
4144 AC_SUBST(will_use_collect2)
4145 AC_SUBST(maybe_use_collect2)
4146 AC_SUBST(cc_set_by_configure)
4147 AC_SUBST(stage_prefix_set_by_configure)
4149 AC_SUBST(symbolic_link)
4151 AC_SUBST_FILE(target_overrides)
4152 AC_SUBST_FILE(host_overrides)
4153 AC_SUBST(cross_defines)
4154 AC_SUBST_FILE(cross_overrides)
4155 AC_SUBST_FILE(build_overrides)
4156 AC_SUBST_FILE(language_fragments)
4157 AC_SUBST_FILE(language_hooks)
4159 # Echo that links are built
4160 if test x$host = x$target
4168 if test x$host != x$build
4170 str3=" on a $build system"
4173 if test "x$str2" != x || test "x$str3" != x
4178 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4180 if test "x$str2" != x || test "x$str3" != x
4182 echo " ${str2}${str3}." 1>&2
4185 # Truncate the target if necessary
4186 if test x$host_truncate_target != x; then
4187 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4190 # Configure the subdirectories
4191 # AC_CONFIG_SUBDIRS($subdirs)
4193 # Create the Makefile
4194 # and configure language subdirectories
4195 AC_OUTPUT($all_outputs,
4197 . $srcdir/configure.lang
4198 case x$CONFIG_HEADERS in
4199 xauto-host.h:config.in)
4202 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4203 # bootstrapping and the installation procedure can still use
4204 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4205 # FLAGS_TO_PASS has been modified to solve the problem there.
4206 # This is virtually a duplicate of what happens in configure.lang; we do
4207 # an extra check to make sure this only happens if ln -s can be used.
4208 if test "$symbolic_link" = "ln -s"; then
4209 for d in .. ${subdirs} ; do
4210 if test $d != ..; then
4213 for t in stage1 stage2 stage3 stage4 include
4216 $symbolic_link ../$t $t 2>/dev/null
4227 target_alias='${target_alias}'
4229 subdirs='${subdirs}'
4230 oldstyle_subdirs='${oldstyle_subdirs}'
4231 symbolic_link='${symbolic_link}'
4232 program_transform_set='${program_transform_set}'
4233 program_transform_name='${program_transform_name}'
4234 dep_host_xmake_file='${dep_host_xmake_file}'
4235 host_xmake_file='${host_xmake_file}'
4236 dep_tmake_file='${dep_tmake_file}'
4237 tmake_file='${tmake_file}'
4238 thread_file='${thread_file}'
4239 gcc_version='${gcc_version}'
4240 gcc_version_trigger='${gcc_version_trigger}'
4241 local_prefix='${local_prefix}'
4242 build_install_headers_dir='${build_install_headers_dir}'
4243 build_exeext='${build_exeext}'
4244 host_exeext='${host_exeext}'
4245 out_file='${out_file}'
4246 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4247 SET_MAKE='${SET_MAKE}'
4248 target_list='${target_list}'
4249 target_overrides='${target_overrides}'
4250 host_overrides='${host_overrides}'
4251 cross_defines='${cross_defines}'
4252 cross_overrides='${cross_overrides}'
4253 build_overrides='${build_overrides}'