1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998, 1999 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]>>,
282 [ --enable-dwarf2 enable DWARF2 debugging as default.],
283 dwarf2="$with_dwarf2",
286 # Determine the host, build, and target systems
289 # Find the native compiler
292 # If the native compiler is GCC, we can enable warnings even in stage1.
293 # That's useful for people building cross-compilers, or just running a
295 if test "x$GCC" = "xyes"; then
296 stage1_warn_cflags='$(WARN_CFLAGS)'
298 stage1_warn_cflags=""
300 AC_SUBST(stage1_warn_cflags)
304 AC_MSG_CHECKING([whether a default assembler was specified])
305 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
306 if test x"$with_gas" = x"no"; then
307 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
309 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
315 AC_MSG_CHECKING([whether a default linker was specified])
316 if test x"${DEFAULT_LINKER+set}" = x"set"; then
317 if test x"$with_gnu_ld" = x"no"; then
318 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
320 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
326 # Find some useful tools
340 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)
342 # Check for thread headers.
343 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
344 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
346 # See if GNAT has been installed
347 AC_CHECK_PROG(gnat, gnatbind, yes, no)
349 # See if the system preprocessor understands the ANSI C preprocessor
350 # stringification operator.
351 AC_MSG_CHECKING(whether cpp understands the stringify operator)
352 AC_CACHE_VAL(gcc_cv_c_have_stringify,
355 char *test = S(foo);],
356 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
357 AC_MSG_RESULT($gcc_cv_c_have_stringify)
358 if test $gcc_cv_c_have_stringify = yes; then
359 AC_DEFINE(HAVE_CPP_STRINGIFY)
362 # Use <inttypes.h> only if it exists,
363 # doesn't clash with <sys/types.h>, and declares intmax_t.
364 AC_MSG_CHECKING(for inttypes.h)
365 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
367 [#include <sys/types.h>
368 #include <inttypes.h>],
370 [gcc_cv_header_inttypes_h=yes],
371 gcc_cv_header_inttypes_h=no)])
372 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
373 if test $gcc_cv_header_inttypes_h = yes; then
374 AC_DEFINE(HAVE_INTTYPES_H)
377 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
378 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
379 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
382 # Make sure wchar_t is available
383 #AC_CHECK_TYPE(wchar_t, unsigned int)
385 GCC_FUNC_VFPRINTF_DOPRNT
389 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
390 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
393 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
394 #include <sys/types.h>
395 #ifdef HAVE_SYS_RESOURCE_H
396 #include <sys/resource.h>
410 build_install_headers_dir=install-headers-tar
415 host_truncate_target=
418 # Decode the host machine, then the target machine.
419 # For the host machine, we save the xm_file variable as host_xm_file;
420 # then we decode the target machine and forget everything else
421 # that came from the host machine.
422 for machine in $build $host $target; do
436 # Set this to force installation and use of collect2.
438 # Set this to override the default target model.
440 # Set this to control which fixincludes program to use.
441 if test x$fast_fixinc != xyes; then
442 fixincludes=fixincludes
443 else fixincludes=fixinc.sh ; fi
444 # Set this to control how the header file directory is installed.
445 install_headers_dir=install-headers-tar
446 # Set this to a non-empty list of args to pass to cpp if the target
447 # wants its .md file passed through cpp.
449 # Set this if directory names should be truncated to 14 characters.
451 # Set this if gdb needs a dir command with `dirname $out_file`
452 gdb_needs_out_file_path=
453 # Set this if the build machine requires executables to have a
456 # Set this to control which thread package will be used.
458 # Reinitialize these from the flag values every loop pass, since some
459 # configure entries modify them.
461 gnu_ld="$gnu_ld_flag"
462 enable_threads=$enable_threads_flag
464 # Set default cpu_type, tm_file and xm_file so it can be updated in
465 # each machine entry.
466 cpu_type=`echo $machine | sed 's/-.*$//'`
502 tm_file=${cpu_type}/${cpu_type}.h
503 xm_file=${cpu_type}/xm-${cpu_type}.h
505 # Set the default macros to define for GNU/Linux systems.
508 xm_defines="HAVE_ATEXIT POSIX BSTRING"
513 # Support site-specific machine types.
515 cpu_type=`echo $machine | sed -e 's/-.*//'`
516 rest=`echo $machine | sed -e "s/$cpu_type-//"`
517 xm_file=${cpu_type}/xm-$rest.h
518 tm_file=${cpu_type}/$rest.h
519 if test -f $srcdir/config/${cpu_type}/x-$rest; \
520 then xmake_file=${cpu_type}/x-$rest; \
523 if test -f $srcdir/config/${cpu_type}/t-$rest; \
524 then tmake_file=${cpu_type}/t-$rest; \
530 a29k-*-bsd* | a29k-*-sym1*)
531 tm_file="${tm_file} a29k/unix.h"
533 xmake_file=a29k/x-unix
536 a29k-*-udi | a29k-*-coff)
537 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
538 tmake_file=a29k/t-a29kbare
541 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
542 tmake_file=a29k/t-vx29k
543 extra_parts="crtbegin.o crtend.o"
544 thread_file='vxworks'
546 a29k-*-*) # Default a29k environment.
549 alpha*-*-linux-gnuecoff*)
550 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
551 target_cpu_default="MASK_GAS"
556 alpha*-*-linux-gnulibc1*)
557 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
558 target_cpu_default="MASK_GAS"
559 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
560 extra_parts="crtbegin.o crtend.o"
561 fixincludes=fixinc.wrap
564 if test x$enable_threads = xyes; then
569 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
570 target_cpu_default="MASK_GAS"
571 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
572 extra_parts="crtbegin.o crtend.o"
574 fixincludes=Makefile.in
576 if test x$enable_threads = xyes; then
581 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
582 target_cpu_default="MASK_GAS"
583 tmake_file="alpha/t-crtbe"
584 extra_parts="crtbegin.o crtend.o"
586 fixincludes=fixinc.wrap
591 if test x$stabs = xyes
593 tm_file="${tm_file} dbx.h"
595 if test x$gas != xyes
597 extra_passes="mips-tfile mips-tdump"
602 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
607 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
610 tm_file="${tm_file} alpha/osf.h"
611 # Some versions of OSF4 (specifically X4.0-9 296.7) have
612 # a broken tar, so we use cpio instead.
613 install_headers_dir=install-headers-cpio
618 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
620 target_cpu_default=MASK_SUPPORT_ARCH
625 tm_file="${tm_file} dbx.h alpha/vxworks.h"
628 extra_passes="mips-tfile mips-tdump"
633 tm_file="${tm_file} alpha/win-nt.h"
634 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
636 xmake_file=winnt/x-winnt
637 extra_host_objs=oldnames.o
638 extra_gcc_objs="spawnv.o oldnames.o"
639 fixincludes=fixinc.winnt
640 if test x$gnu_ld != xyes
642 extra_programs=ld.exe
644 if test x$enable_threads = xyes; then
650 xm_file="${xm_file} alpha/xm-vms.h"
651 tmake_file=alpha/t-vms
652 fixincludes=Makefile.in
655 extra_parts="crtinit.o crtfini.o"
657 arm-*-coff* | armel-*-coff*)
659 tmake_file=arm/t-bare
662 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
664 tm_file=arm/riscix1-1.h
667 arm-*-riscix*) # Acorn RISC machine
670 tm_file=arm/rix-gas.h
674 xmake_file=arm/x-riscix
675 tmake_file=arm/t-riscix
678 arm-semi-aout | armel-semi-aout)
680 tmake_file=arm/t-semi
681 fixincludes=Makefile.in # There is nothing to fix
683 arm-semi-aof | armel-semi-aof)
684 tm_file=arm/semiaof.h
685 tmake_file=arm/t-semiaof
686 fixincludes=Makefile.in # There is nothing to fix
690 xm_file="arm/xm-netbsd.h ${xm_file}"
691 tmake_file="t-netbsd arm/t-netbsd"
692 # On NetBSD, the headers are already okay, except for math.h.
693 fixincludes=fixinc.wrap
695 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
698 tm_file=arm/linux-aout.h
699 tmake_file=arm/t-linux
700 fixincludes=Makefile.in
703 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
704 xm_file=arm/xm-linux.h
708 tm_file=arm/linux-elf26.h
711 tm_file=arm/linux-elf.h
714 tmake_file="t-linux arm/t-linux"
715 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
716 fixincludes=Makefile.in # Nothing to fix
721 tmake_file=arm/t-bare
724 tm_file=arm/ecos-elf.h
728 tm_file=arm/unknown-elf.h
729 tmake_file=arm/t-arm-elf
731 c1-convex-*) # Convex C1
734 fixincludes=Makefile.in
736 c2-convex-*) # Convex C2
739 fixincludes=Makefile.in
744 fixincludes=Makefile.in
749 fixincludes=Makefile.in
752 target_cpu_default=16
754 fixincludes=Makefile.in
760 clipper-intergraph-clix*)
761 tm_file="${tm_file} svr3.h clipper/clix.h"
762 xm_file=clipper/xm-clix.h
763 xmake_file=clipper/x-clix
764 extra_headers=va-clipper.h
765 extra_parts="crtbegin.o crtend.o"
766 install_headers_dir=install-headers-cpio
773 # This hasn't been upgraded to GCC 2.
774 # fx80-alliant-*) # Alliant FX/80
780 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
781 xm_file=pa/xm-papro.h
786 tm_file="${tm_file} pa/pa-osf.h"
788 fixincludes=Makefile.in
791 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
792 xm_file=pa/xm-papro.h
796 tm_file="${tm_file} pa/pa-osf.h"
798 fixincludes=Makefile.in
803 fixincludes=Makefile.in
807 fixincludes=Makefile.in
810 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
811 xm_file=pa/xm-pahpux.h
812 xmake_file=pa/x-pa-hpux
815 tm_file="${tm_file} pa/gas.h"
817 install_headers_dir=install-headers-cpio
821 hppa1.0-*-hpux8.0[0-2]*)
823 tm_file="${tm_file} pa/pa-hpux.h"
824 xm_file=pa/xm-pahpux.h
825 xmake_file=pa/x-pa-hpux
828 tm_file="${tm_file} pa/pa-gas.h"
830 tm_file="pa/pa-oldas.h ${tm_file}"
832 install_headers_dir=install-headers-cpio
836 hppa1.1-*-hpux8.0[0-2]*)
839 tm_file="${tm_file} pa/pa-hpux.h"
840 xm_file=pa/xm-pahpux.h
841 xmake_file=pa/x-pa-hpux
844 tm_file="${tm_file} pa/pa-gas.h"
846 tm_file="pa/pa-oldas.h ${tm_file}"
848 install_headers_dir=install-headers-cpio
853 tm_file="${tm_file} pa/pa-hpux.h"
854 xm_file=pa/xm-pahpux.h
855 xmake_file=pa/x-pa-hpux
858 tm_file="${tm_file} pa/pa-gas.h"
860 install_headers_dir=install-headers-cpio
864 tm_file="${tm_file} pa/pa-hpux.h"
865 xm_file=pa/xm-pahpux.h
866 xmake_file=pa/x-pa-hpux
869 tm_file="${tm_file} pa/pa-gas.h"
871 install_headers_dir=install-headers-cpio
874 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
876 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
877 xm_file=pa/xm-pahpux.h
878 xmake_file=pa/x-pa-hpux
882 tm_file="${tm_file} pa/pa-gas.h"
884 if test x$enable_threads = x; then
885 enable_threads=$have_pthread_h
887 if test x$enable_threads = xyes; then
889 tmake_file="${tmake_file} pa/t-dce-thr"
891 install_headers_dir=install-headers-cpio
895 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
896 xm_file=pa/xm-pahpux.h
897 xmake_file=pa/x-pa-hpux
900 tm_file="${tm_file} pa/pa-gas.h"
902 if test x$enable_threads = x; then
903 enable_threads=$have_pthread_h
905 if test x$enable_threads = xyes; then
907 tmake_file="${tmake_file} pa/t-dce-thr"
909 install_headers_dir=install-headers-cpio
912 hppa1.1-*-hpux* | hppa2*-*-hpux*)
914 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
915 xm_file=pa/xm-pahpux.h
916 xmake_file=pa/x-pa-hpux
919 tm_file="${tm_file} pa/pa-gas.h"
921 install_headers_dir=install-headers-cpio
925 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
926 xm_file=pa/xm-pahpux.h
927 xmake_file=pa/x-pa-hpux
930 tm_file="${tm_file} pa/pa-gas.h"
932 install_headers_dir=install-headers-cpio
935 hppa1.1-*-hiux* | hppa2*-*-hiux*)
937 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
938 xm_file=pa/xm-pahpux.h
939 xmake_file=pa/x-pa-hpux
942 tm_file="${tm_file} pa/pa-gas.h"
944 install_headers_dir=install-headers-cpio
948 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
949 xm_file=pa/xm-pahpux.h
950 xmake_file=pa/x-pa-hpux
953 tm_file="${tm_file} pa/pa-gas.h"
955 install_headers_dir=install-headers-cpio
961 fixincludes=Makefile.in
966 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
970 tm_file=i386/aix386.h
971 extra_parts="crtbegin.o crtend.o"
972 tmake_file=i386/t-crtstuff
974 tm_file=i386/aix386ng.h
977 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
979 xmake_file=i386/x-aix
982 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
984 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
985 xm_defines="USG POSIX SMALL_ARG_MAX"
986 xmake_file=i386/x-ncr3000
987 if test x$stabs = xyes -a x$gas = xyes
989 tm_file=i386/sysv4gdb.h
993 extra_parts="crtbegin.o crtend.o"
994 tmake_file=i386/t-crtpic
1000 xm_file=i386/xm-next.h
1001 tmake_file=i386/t-next
1002 xmake_file=i386/x-next
1003 extra_objs=nextstep.o
1004 extra_parts="crtbegin.o crtend.o"
1005 if test x$enable_threads = xyes; then
1010 i[34567]86-sequent-bsd*) # 80386 from Sequent
1013 if test x$gas = xyes
1015 tm_file=i386/seq-gas.h
1017 tm_file=i386/sequent.h
1021 i[34567]86-sequent-ptx1*)
1023 xm_defines="USG SVR3"
1024 xmake_file=i386/x-sysv3
1025 tm_file=i386/seq-sysv3.h
1026 tmake_file=i386/t-crtstuff
1027 fixincludes=fixinc.ptx
1028 extra_parts="crtbegin.o crtend.o"
1029 install_headers_dir=install-headers-cpio
1032 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1034 xm_defines="USG SVR3"
1035 xmake_file=i386/x-sysv3
1036 tm_file=i386/seq2-sysv3.h
1037 tmake_file=i386/t-crtstuff
1038 extra_parts="crtbegin.o crtend.o"
1039 fixincludes=fixinc.ptx
1040 install_headers_dir=install-headers-cpio
1043 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1045 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1046 xm_defines="USG POSIX SMALL_ARG_MAX"
1048 tm_file=i386/ptx4-i.h
1050 extra_parts="crtbegin.o crtend.o"
1051 fixincludes=fixinc.ptx
1052 install_headers_dir=install-headers-cpio
1054 i386-sun-sunos*) # Sun i386 roadrunner
1060 i[34567]86-wrs-vxworks*)
1062 tm_file=i386/vxi386.h
1063 tmake_file=i386/t-i386bare
1068 tm_file=i386/i386-aout.h
1069 tmake_file=i386/t-i386bare
1072 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1074 tm_file=i386/bsd386.h
1075 # tmake_file=t-libc-ok
1080 tm_file=i386/386bsd.h
1081 # tmake_file=t-libc-ok
1082 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1086 i[34567]86-*-freebsdelf*)
1088 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
1089 # On FreeBSD, the headers are already ok, except for math.h.
1090 fixincludes=fixinc.wrap
1091 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1092 tmake_file=i386/t-freebsd
1098 i[34567]86-*-freebsd*)
1100 tm_file=i386/freebsd.h
1101 # On FreeBSD, the headers are already ok, except for math.h.
1102 fixincludes=fixinc.wrap
1103 tmake_file=i386/t-freebsd
1105 # We are hoping OpenBSD is still close enough to NetBSD that we can
1106 # share the configurations.
1108 i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
1110 tm_file=i386/netbsd.h
1111 # On NetBSD, the headers are already okay, except for math.h.
1112 fixincludes=fixinc.wrap
1118 tm_file=i386/i386-coff.h
1119 tmake_file=i386/t-i386bare
1122 i[34567]86-*-isc*) # 80386 running ISC system
1124 xm_file="${xm_file} i386/xm-isc.h"
1125 xm_defines="USG SVR3"
1128 i[34567]86-*-isc[34]*)
1130 xmake_file=i386/x-isc3
1133 xmake_file=i386/x-isc
1136 if test x$gas = xyes -a x$stabs = xyes
1138 tm_file=i386/iscdbx.h
1139 tmake_file=i386/t-svr3dbx
1140 extra_parts="svr3.ifile svr3z.ifile"
1142 tm_file=i386/isccoff.h
1143 tmake_file=i386/t-crtstuff
1144 extra_parts="crtbegin.o crtend.o"
1146 install_headers_dir=install-headers-cpio
1149 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1150 changequote([,])dnl # with a.out format using
1152 xmake_file=x-linux-aout
1153 tmake_file="t-linux-aout i386/t-crtstuff"
1154 tm_file=i386/linux-oldld.h
1155 fixincludes=Makefile.in #On Linux, the headers are ok already.
1160 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1161 changequote([,])dnl # with a.out format
1162 xmake_file=x-linux-aout
1163 tmake_file="t-linux-aout i386/t-crtstuff"
1164 tm_file=i386/linux-aout.h
1165 fixincludes=Makefile.in #On Linux, the headers are ok already.
1170 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1171 changequote([,])dnl # with ELF format using the
1172 # GNU/Linux C library 5
1174 tm_file=i386/linux.h
1175 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1176 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1177 fixincludes=Makefile.in #On Linux, the headers are ok already.
1180 if test x$enable_threads = xyes; then
1181 thread_file='single'
1185 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1186 changequote([,])dnl # with ELF format using glibc 2
1187 # aka GNU/Linux C library 6
1189 tm_file=i386/linux.h
1190 tmake_file="t-linux i386/t-crtstuff"
1191 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1192 fixincludes=Makefile.in #On Linux, the headers are ok already.
1195 if test x$enable_threads = xyes; then
1204 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1206 xm_file=i386/xm-go32.h
1208 tmake_file=i386/t-go32
1211 i[34567]86-pc-msdosdjgpp*)
1213 xm_file=i386/xm-go32.h
1215 tmake_file=i386/t-go32
1216 xmake_file=i386/x-go32
1227 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1230 tmake_file=t-libc-ok
1231 fixincludes=Makefile.in
1236 i[34567]86-*-lynxos*)
1238 if test x$gas = xyes
1242 tm_file=i386/lynx-ng.h
1244 xm_file=i386/xm-lynx.h
1245 tmake_file=i386/t-i386bare
1252 # tmake_file=t-libc-ok
1256 i[34567]86-*-osfrose*) # 386 using OSF/rose
1258 if test x$elf = xyes
1260 tm_file=i386/osfelf.h
1263 tm_file=i386/osfrose.h
1266 xm_file="i386/xm-osf.h ${xm_file}"
1267 xmake_file=i386/x-osfrose
1268 tmake_file=i386/t-osf
1269 extra_objs=halfpic.o
1272 i[34567]86-go32-rtems*)
1275 xm_file=i386/xm-go32.h
1276 tm_file=i386/go32-rtems.h
1277 tmake_file="i386/t-go32 t-rtems"
1280 i[34567]86-*-rtemself*)
1283 tm_file=i386/rtemself.h
1284 tmake_file="i386/t-i386bare t-rtems"
1287 i[34567]86-*-rtems*)
1290 tm_file=i386/rtems.h
1291 tmake_file="i386/t-i386bare t-rtems"
1294 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1296 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1297 xm_defines="USG SVR3"
1298 xmake_file=i386/x-sco5
1299 fixincludes=fixinc.sco
1300 install_headers_dir=install-headers-cpio
1302 if test x$gas = xyes
1304 tm_file="i386/sco5gas.h ${tm_file}"
1305 tmake_file=i386/t-sco5gas
1307 tmake_file=i386/t-sco5
1309 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1312 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1314 xm_file="${xm_file} i386/xm-sco.h"
1315 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1316 xmake_file=i386/x-sco4
1317 fixincludes=fixinc.sco
1318 install_headers_dir=install-headers-cpio
1319 if test x$stabs = xyes
1321 tm_file=i386/sco4dbx.h
1322 tmake_file=i386/t-svr3dbx
1323 extra_parts="svr3.ifile svr3z.rfile"
1326 tmake_file=i386/t-crtstuff
1327 extra_parts="crtbegin.o crtend.o"
1332 i[34567]86-*-sco*) # 80386 running SCO system
1334 xm_file=i386/xm-sco.h
1335 xmake_file=i386/x-sco
1336 install_headers_dir=install-headers-cpio
1337 if test x$stabs = xyes
1339 tm_file=i386/scodbx.h
1340 tmake_file=i386/t-svr3dbx
1341 extra_parts="svr3.ifile svr3z.rfile"
1344 extra_parts="crtbegin.o crtend.o"
1345 tmake_file=i386/t-crtstuff
1350 i[34567]86-*-solaris2*)
1352 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1353 xm_defines="USG POSIX SMALL_ARG_MAX"
1354 if test x$stabs = xyes
1356 tm_file=i386/sol2dbg.h
1360 tmake_file=i386/t-sol2
1361 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1367 fixincludes=fixinc.svr4;;
1369 fixincludes=fixinc.wrap;;
1371 if test x$enable_threads = xyes; then
1372 thread_file='solaris'
1376 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1378 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1379 xm_defines="USG POSIX"
1380 tm_file=i386/sysv4.h
1381 if test x$stabs = xyes
1383 tm_file="${tm_file} dbx.h"
1385 tmake_file=i386/t-crtpic
1387 extra_parts="crtbegin.o crtend.o"
1388 fixincludes=fixinc.svr4
1391 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1393 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1394 xm_defines="USG POSIX SMALL_ARG_MAX"
1395 tm_file=i386/sysv4.h
1396 if test x$stabs = xyes
1398 tm_file="${tm_file} dbx.h"
1400 tmake_file=i386/t-crtpic
1402 extra_parts="crtbegin.o crtend.o"
1405 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1407 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1408 xm_defines="USG POSIX"
1410 tmake_file="i386/t-crtpic i386/t-udk"
1412 extra_parts="crtbegin.o crtend.o"
1413 fixincludes="fixinc.svr4"
1416 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1419 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1420 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1421 fixincludes=Makefile.in #Don't do it on OSF/1
1422 if test x$stabs = xyes
1424 tm_file=i386/osf1elfgdb.h
1426 tm_file=i386/osf1elf.h
1428 tmake_file=i386/t-osf1elf
1429 xmake_file=i386/x-osf1elf
1430 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1433 i[34567]86-*-sysv*) # Intel 80386's running system V
1435 xm_defines="USG SVR3"
1436 xmake_file=i386/x-sysv3
1437 if test x$gas = xyes
1439 if test x$stabs = xyes
1441 tm_file=i386/svr3dbx.h
1442 tmake_file=i386/t-svr3dbx
1443 extra_parts="svr3.ifile svr3z.rfile"
1445 tm_file=i386/svr3gas.h
1446 extra_parts="crtbegin.o crtend.o"
1447 tmake_file=i386/t-crtstuff
1450 tm_file=i386/sysv3.h
1451 extra_parts="crtbegin.o crtend.o"
1452 tmake_file=i386/t-crtstuff
1455 i386-*-vsta) # Intel 80386's running VSTa kernel
1456 xm_file="${xm_file} i386/xm-vsta.h"
1458 tmake_file=i386/t-vsta
1459 xmake_file=i386/x-vsta
1464 xm_file="${xm_file} i386/xm-cygwin.h"
1465 tmake_file=i386/t-cygwin
1466 tm_file=i386/win32.h
1467 xmake_file=i386/x-cygwin
1469 fixincludes=Makefile.in
1470 if test x$enable_threads = xyes; then
1476 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1478 xm_file="${xm_file} i386/xm-cygwin.h"
1479 tmake_file=i386/t-cygwin
1480 tm_file=i386/cygwin.h
1481 xmake_file=i386/x-cygwin
1483 fixincludes=Makefile.in
1484 if test x$enable_threads = xyes; then
1490 i[34567]86-*-mingw32*)
1492 tm_file=i386/mingw32.h
1493 xm_file="${xm_file} i386/xm-mingw32.h"
1494 tmake_file="i386/t-cygwin i386/t-mingw32"
1496 xmake_file=i386/x-cygwin
1497 fixincludes=Makefile.in
1498 if test x$enable_threads = xyes; then
1505 *minwg32crt* | *mingw32*)
1506 tm_file="${tm_file} i386/crtdll.h"
1511 i[34567]86-*-winnt3*)
1513 tm_file=i386/win-nt.h
1514 out_file=i386/i386.c
1515 xm_file="xm-winnt.h ${xm_file}"
1516 xmake_file=winnt/x-winnt
1517 tmake_file=i386/t-winnt
1518 extra_host_objs="winnt.o oldnames.o"
1519 extra_gcc_objs="spawnv.o oldnames.o"
1520 fixincludes=fixinc.winnt
1521 if test x$gnu_ld != xyes
1523 extra_programs=ld.exe
1525 if test x$enable_threads = xyes; then
1530 i[34567]86-dg-dgux*)
1532 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1533 xm_defines="USG POSIX"
1534 out_file=i386/dgux.c
1536 tmake_file=i386/t-dgux
1537 xmake_file=i386/x-dgux
1538 fixincludes=fixinc.dgux
1539 install_headers_dir=install-headers-cpio
1541 i860-alliant-*) # Alliant FX/2800
1542 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1543 xm_file="${xm_file}"
1544 xmake_file=i860/x-fx2800
1545 tmake_file=i860/t-fx2800
1546 extra_parts="crtbegin.o crtend.o"
1549 tm_file="${tm_file} i860/bsd.h"
1550 if test x$gas = xyes
1552 tm_file="${tm_file} i860/bsd-gas.h"
1557 tm_file="${tm_file} i860/mach.h"
1558 tmake_file=t-libc-ok
1560 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1561 tm_file="${tm_file} svr3.h i860/paragon.h"
1562 xm_defines="USG SVR3"
1566 tm_file="${tm_file} svr3.h i860/sysv3.h"
1567 xm_defines="USG SVR3"
1568 xmake_file=i860/x-sysv3
1569 extra_parts="crtbegin.o crtend.o"
1572 tm_file="${tm_file} svr4.h i860/sysv4.h"
1573 xm_defines="USG SVR3"
1574 xmake_file=i860/x-sysv4
1576 extra_parts="crtbegin.o crtend.o"
1578 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1579 tm_file="${tm_file} i960/vx960.h"
1580 tmake_file=i960/t-vxworks960
1582 thread_file='vxworks'
1584 i960-wrs-vxworks5* | i960-wrs-vxworks)
1585 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1586 tmake_file=i960/t-vxworks960
1588 thread_file='vxworks'
1591 tm_file="${tm_file} i960/vx960.h"
1592 tmake_file=i960/t-vxworks960
1594 thread_file='vxworks'
1597 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1598 tmake_file=i960/t-960bare
1602 tmake_file="i960/t-960bare t-rtems"
1603 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1606 i960-*-*) # Default i960 environment.
1610 extra_parts="crtinit.o crtfini.o"
1612 m68000-convergent-sysv*)
1614 xm_file="m68k/xm-3b1.h ${xm_file}"
1617 extra_headers=math-68881.h
1619 m68000-hp-bsd*) # HP 9000/200 running BSD
1620 tm_file=m68k/hp2bsd.h
1621 xmake_file=m68k/x-hp2bsd
1623 extra_headers=math-68881.h
1625 m68000-hp-hpux*) # HP 9000 series 300
1626 xm_file="xm_alloca.h ${xm_file}"
1627 xm_defines="USG NO_SYS_SIGLIST"
1628 if test x$gas = xyes
1630 xmake_file=m68k/x-hp320g
1631 tm_file=m68k/hp310g.h
1633 xmake_file=m68k/x-hp320
1634 tm_file=m68k/hp310.h
1636 install_headers_dir=install-headers-cpio
1638 extra_headers=math-68881.h
1643 extra_headers=math-68881.h
1646 tm_file=m68k/sun2o4.h
1648 extra_headers=math-68881.h
1651 xm_file="m68k/xm-3b1.h ${xm_file}"
1653 if test x$gas = xyes
1660 extra_headers=math-68881.h
1662 m68k-apple-aux*) # Apple Macintosh running A/UX
1663 xm_defines="USG AUX"
1664 tmake_file=m68k/t-aux
1665 install_headers_dir=install-headers-cpio
1666 extra_headers=math-68881.h
1667 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1669 if test "$gnu_ld" = yes
1671 tm_file="${tm_file} m68k/auxgld.h"
1673 tm_file="${tm_file} m68k/auxld.h"
1675 if test "$gas" = yes
1677 tm_file="${tm_file} m68k/auxgas.h"
1679 tm_file="${tm_file} m68k/auxas.h"
1681 tm_file="${tm_file} m68k/a-ux.h"
1685 tm_file=m68k/apollo68.h
1686 xmake_file=m68k/x-apollo68
1688 extra_headers=math-68881.h
1691 m68k-altos-sysv*) # Altos 3068
1692 if test x$gas = xyes
1694 tm_file=m68k/altos3068.h
1697 echo "The Altos is supported only with the GNU assembler" 1>&2
1700 extra_headers=math-68881.h
1702 m68k-bull-sysv*) # Bull DPX/2
1703 if test x$gas = xyes
1705 if test x$stabs = xyes
1707 tm_file=m68k/dpx2cdbx.h
1709 tm_file=m68k/dpx2g.h
1714 xm_file="xm-alloca.h ${xm_file}"
1716 xmake_file=m68k/x-dpx2
1718 extra_headers=math-68881.h
1720 m68k-atari-sysv4*) # Atari variant of V.4.
1721 tm_file=m68k/atari.h
1722 xm_file="xm-alloca.h ${xm_file}"
1723 xm_defines="USG FULL_PROTOTYPES"
1725 extra_parts="crtbegin.o crtend.o"
1726 extra_headers=math-68881.h
1729 m68k-motorola-sysv*)
1730 tm_file=m68k/mot3300.h
1731 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1732 xm_defines=NO_SYS_SIGLIST
1733 if test x$gas = xyes
1735 xmake_file=m68k/x-mot3300-gas
1736 if test x$gnu_ld = xyes
1738 tmake_file=m68k/t-mot3300-gald
1740 tmake_file=m68k/t-mot3300-gas
1744 xmake_file=m68k/x-mot3300
1745 if test x$gnu_ld = xyes
1747 tmake_file=m68k/t-mot3300-gld
1749 tmake_file=m68k/t-mot3300
1753 gdb_needs_out_file_path=yes
1754 extra_parts="crt0.o mcrt0.o"
1755 extra_headers=math-68881.h
1758 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1759 tm_file=m68k/tower-as.h
1760 xm_defines="USG SVR3"
1761 xmake_file=m68k/x-tower
1762 extra_parts="crtbegin.o crtend.o"
1763 extra_headers=math-68881.h
1766 tm_file=m68k/plexus.h
1767 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1770 extra_headers=math-68881.h
1774 xm_file="xm-alloca.h ${xm_file}"
1776 extra_headers=math-68881.h
1779 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1780 xm_defines="USG unos"
1781 xmake_file=m68k/x-crds
1784 extra_headers=math-68881.h
1786 m68k-cbm-sysv4*) # Commodore variant of V.4.
1788 xm_file="xm-alloca.h ${xm_file}"
1789 xm_defines="USG FULL_PROTOTYPES"
1790 xmake_file=m68k/x-amix
1792 extra_parts="crtbegin.o crtend.o"
1793 extra_headers=math-68881.h
1797 tm_file=m68k/ccur-GAS.h
1798 xmake_file=m68k/x-ccur
1799 extra_headers=math-68881.h
1803 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1804 tm_file=m68k/hp3bsd44.h
1805 xmake_file=m68k/x-hp3bsd44
1807 extra_headers=math-68881.h
1810 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1811 tm_file=m68k/hp3bsd.h
1813 extra_headers=math-68881.h
1817 if test x$with_fp = xno
1819 tm_file=m68k/isi-nfp.h
1825 extra_headers=math-68881.h
1827 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1828 xm_file="xm_alloca.h ${xm_file}"
1829 xm_defines="USG NO_SYS_SIGLIST"
1830 if test x$gas = xyes
1832 xmake_file=m68k/x-hp320g
1833 tm_file=m68k/hp320g.h
1835 xmake_file=m68k/x-hp320
1836 tm_file=m68k/hpux7.h
1838 install_headers_dir=install-headers-cpio
1840 extra_headers=math-68881.h
1843 m68k-hp-hpux*) # HP 9000 series 300
1844 xm_file="xm_alloca.h ${xm_file}"
1845 xm_defines="USG NO_SYS_SIGLIST"
1846 if test x$gas = xyes
1848 xmake_file=m68k/x-hp320g
1849 tm_file=m68k/hp320g.h
1851 xmake_file=m68k/x-hp320
1852 tm_file=m68k/hp320.h
1854 install_headers_dir=install-headers-cpio
1856 extra_headers=math-68881.h
1860 tm_file=m68k/sun3mach.h
1862 extra_headers=math-68881.h
1866 if test x$gas = xyes
1868 tm_file=m68k/news3gas.h
1870 tm_file=m68k/news3.h
1873 extra_headers=math-68881.h
1876 m68k-sony-bsd* | m68k-sony-newsos*)
1877 if test x$gas = xyes
1879 tm_file=m68k/newsgas.h
1884 extra_headers=math-68881.h
1887 m68k-next-nextstep2*)
1888 tm_file=m68k/next21.h
1889 xm_file="m68k/xm-next.h ${xm_file}"
1890 tmake_file=m68k/t-next
1891 xmake_file=m68k/x-next
1892 extra_objs=nextstep.o
1893 extra_headers=math-68881.h
1897 m68k-next-nextstep3*)
1899 xm_file="m68k/xm-next.h ${xm_file}"
1900 tmake_file=m68k/t-next
1901 xmake_file=m68k/x-next
1902 extra_objs=nextstep.o
1903 extra_parts="crtbegin.o crtend.o"
1904 extra_headers=math-68881.h
1906 if test x$enable_threads = xyes; then
1911 if test x$with_fp = xno
1913 tm_file=m68k/sun3n3.h
1915 tm_file=m68k/sun3o3.h
1919 extra_headers=math-68881.h
1921 m68k-sun-sunos*) # For SunOS 4 (the default).
1922 if test x$with_fp = xno
1924 tm_file=m68k/sun3n.h
1930 extra_headers=math-68881.h
1933 tm_file=m68k/vxm68k.h
1934 tmake_file=m68k/t-vxworks68
1935 extra_headers=math-68881.h
1936 thread_file='vxworks'
1940 tmake_file=m68k/t-m68kbare
1941 tm_file="m68k/m68k-aout.h libgloss.h"
1942 extra_headers=math-68881.h
1946 tmake_file=m68k/t-m68kbare
1947 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1948 extra_headers=math-68881.h
1951 m68020-*-elf* | m68k-*-elf*)
1952 tm_file="m68k/m68020-elf.h libgloss.h"
1953 xm_file=m68k/xm-m68kv.h
1954 tmake_file=m68k/t-m68kelf
1955 header_files=math-68881.h
1958 if test x$gas = xyes
1962 tm_file=m68k/lynx-ng.h
1964 xm_file=m68k/xm-lynx.h
1966 tmake_file=m68k/t-lynx
1967 extra_headers=math-68881.h
1971 tm_file=m68k/netbsd.h
1972 # On NetBSD, the headers are already okay, except for math.h.
1973 fixincludes=fixinc.wrap
1977 m68k-*-sysv3*) # Motorola m68k's running system V.3
1978 xm_file="xm-alloca.h ${xm_file}"
1980 xmake_file=m68k/x-m68kv
1981 extra_parts="crtbegin.o crtend.o"
1982 extra_headers=math-68881.h
1985 m68k-*-sysv4*) # Motorola m68k's running system V.4
1986 tm_file=m68k/m68kv4.h
1987 xm_file="xm-alloca.h ${xm_file}"
1990 extra_parts="crtbegin.o crtend.o"
1991 extra_headers=math-68881.h
1994 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1997 tm_file=m68k/linux-aout.h
1998 tmake_file="t-linux-aout m68k/t-linux-aout"
1999 fixincludes=Makefile.in # The headers are ok already.
2000 extra_headers=math-68881.h
2004 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2005 # with ELF format using the
2006 # GNU/Linux C library 5
2008 tm_file=m68k/linux.h
2009 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2010 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2011 fixincludes=Makefile.in # The headers are ok already.
2012 extra_headers=math-68881.h
2016 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2017 # with ELF format using glibc 2
2018 # aka the GNU/Linux C library 6.
2020 tm_file=m68k/linux.h
2021 tmake_file="t-linux m68k/t-linux"
2022 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2023 fixincludes=Makefile.in # The headers are ok already.
2024 extra_headers=math-68881.h
2027 if test x$enable_threads = xyes; then
2032 tmake_file=m68k/t-m68kbare
2033 tm_file=m68k/m68k-psos.h
2034 extra_headers=math-68881.h
2038 tmake_file="m68k/t-m68kbare t-rtems"
2039 tm_file=m68k/rtems.h
2040 extra_headers=math-68881.h
2047 tm_file=m88k/dguxbcs.h
2048 tmake_file=m88k/t-dguxbcs
2052 tmake_file=m88k/t-dgux
2055 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2056 xmake_file=m88k/x-dgux
2057 if test x$gas = xyes
2059 tmake_file=m88k/t-dgux-gas
2061 fixincludes=fixinc.dgux
2063 m88k-dolphin-sysv3*)
2064 tm_file=m88k/dolph.h
2065 extra_parts="crtbegin.o crtend.o"
2066 xm_file="m88k/xm-sysv3.h ${xm_file}"
2067 xmake_file=m88k/x-dolph
2068 if test x$gas = xyes
2070 tmake_file=m88k/t-m88k-gas
2073 m88k-tektronix-sysv3)
2074 tm_file=m88k/tekXD88.h
2075 extra_parts="crtbegin.o crtend.o"
2076 xm_file="m88k/xm-sysv3.h ${xm_file}"
2077 xmake_file=m88k/x-tekXD88
2078 if test x$gas = xyes
2080 tmake_file=m88k/t-m88k-gas
2084 tm_file=m88k/m88k-aout.h
2087 tm_file=m88k/m88k-coff.h
2088 tmake_file=m88k/t-bug
2092 extra_parts="crtbegin.o crtend.o"
2093 if test x$gas = xyes
2095 tmake_file=m88k/t-luna-gas
2097 tmake_file=m88k/t-luna
2101 tm_file=m88k/sysv3.h
2102 extra_parts="crtbegin.o crtend.o"
2103 xm_file="m88k/xm-sysv3.h ${xm_file}"
2104 xmake_file=m88k/x-sysv3
2105 if test x$gas = xyes
2107 tmake_file=m88k/t-m88k-gas
2111 tm_file=m88k/sysv4.h
2112 extra_parts="crtbegin.o crtend.o"
2113 xmake_file=m88k/x-sysv4
2114 tmake_file=m88k/t-sysv4
2116 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2117 tm_file=mips/iris6.h
2118 xm_file=mips/xm-iris6.h
2119 fixincludes=fixinc.irix
2120 xmake_file=mips/x-iris6
2121 tmake_file=mips/t-iris6
2122 # if test x$enable_threads = xyes; then
2123 # thread_file='irix'
2127 tm_file="mips/elf.h libgloss.h"
2128 tmake_file=mips/t-ecoff
2131 extra_parts="crtbegin.o crtend.o"
2132 # thread_file='vxworks'
2134 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2135 tm_file="mips/iris6.h mips/cross64.h"
2137 xm_file="mips/xm-iris5.h"
2138 fixincludes=Makefile.in
2139 xmake_file=mips/x-iris
2140 tmake_file=mips/t-cross64
2141 # See comment in mips/iris[56].h files.
2143 # if test x$enable_threads = xyes; then
2144 # thread_file='irix'
2148 if test x$gas = xyes
2150 if test x$stabs = xyes
2152 tm_file=mips/iris5gdb.h
2154 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2157 tm_file=mips/sni-svr4.h
2160 xmake_file=mips/x-sni-svr4
2161 tmake_file=mips/t-mips-gas
2162 if test x$gnu_ld != xyes
2167 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2168 if test x$gas = xyes
2170 tm_file="mips/iris5.h mips/iris5gas.h"
2171 if test x$stabs = xyes
2173 tm_file="${tm_file} dbx.h"
2176 tm_file=mips/iris5.h
2179 xm_file="mips/xm-iris5.h"
2180 fixincludes=fixinc.irix
2181 xmake_file=mips/x-iris
2182 # mips-tfile doesn't work yet
2183 tmake_file=mips/t-mips-gas
2184 # See comment in mips/iris5.h file.
2186 # if test x$enable_threads = xyes; then
2187 # thread_file='irix'
2190 mips-sgi-irix4loser*) # Mostly like a MIPS.
2191 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2192 if test x$stabs = xyes; then
2193 tm_file="${tm_file} dbx.h"
2196 xmake_file=mips/x-iris
2197 if test x$gas = xyes
2199 tmake_file=mips/t-mips-gas
2201 extra_passes="mips-tfile mips-tdump"
2203 if test x$gnu_ld != xyes
2207 # if test x$enable_threads = xyes; then
2208 # thread_file='irix'
2211 mips-sgi-irix4*) # Mostly like a MIPS.
2212 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2213 if test x$stabs = xyes; then
2214 tm_file="${tm_file} dbx.h"
2217 xmake_file=mips/x-iris
2218 if test x$gas = xyes
2220 tmake_file=mips/t-mips-gas
2222 extra_passes="mips-tfile mips-tdump"
2224 if test x$gnu_ld != xyes
2228 # if test x$enable_threads = xyes; then
2229 # thread_file='irix'
2232 mips-sgi-*) # Mostly like a MIPS.
2233 tm_file="mips/iris3.h ${tm_file}"
2234 if test x$stabs = xyes; then
2235 tm_file="${tm_file} dbx.h"
2238 xmake_file=mips/x-iris3
2239 if test x$gas = xyes
2241 tmake_file=mips/t-mips-gas
2243 extra_passes="mips-tfile mips-tdump"
2245 if test x$gnu_ld != xyes
2250 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2251 tm_file="mips/osfrose.h ${tm_file}"
2252 xmake_file=mips/x-osfrose
2253 tmake_file=mips/t-osfrose
2254 extra_objs=halfpic.o
2257 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2258 tm_file=mips/dec-osf1.h
2259 if test x$stabs = xyes; then
2260 tm_file="${tm_file} dbx.h"
2262 xmake_file=mips/x-dec-osf1
2263 if test x$gas = xyes
2265 tmake_file=mips/t-mips-gas
2267 tmake_file=mips/t-ultrix
2268 extra_passes="mips-tfile mips-tdump"
2270 if test x$gnu_ld != xyes
2275 mips-dec-bsd*) # Decstation running 4.4 BSD
2276 tm_file=mips/dec-bsd.h
2278 if test x$gas = xyes
2280 tmake_file=mips/t-mips-gas
2282 tmake_file=mips/t-ultrix
2283 extra_passes="mips-tfile mips-tdump"
2285 if test x$gnu_ld != xyes
2290 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2291 tm_file=mips/netbsd.h
2292 # On NetBSD, the headers are already okay, except for math.h.
2293 fixincludes=fixinc.wrap
2296 mips*-*-linux*) # Linux MIPS, either endian.
2298 xm_file="xm-siglist.h ${xm_file}"
2300 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2301 *) tm_file="mips/elf.h mips/linux.h" ;;
2303 extra_parts="crtbegin.o crtend.o"
2306 fixincludes=Makefile.in
2308 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2309 tm_file="mips/news4.h ${tm_file}"
2310 if test x$stabs = xyes; then
2311 tm_file="${tm_file} dbx.h"
2313 if test x$gas = xyes
2315 tmake_file=mips/t-mips-gas
2317 extra_passes="mips-tfile mips-tdump"
2319 if test x$gnu_ld != xyes
2323 xmake_file=mips/x-sony
2325 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2326 # That is based on svr4.
2327 # t-svr4 is not right because this system doesn't use ELF.
2328 tm_file="mips/news5.h ${tm_file}"
2329 if test x$stabs = xyes; then
2330 tm_file="${tm_file} dbx.h"
2332 xm_file="xm-siglist.h ${xm_file}"
2334 if test x$gas = xyes
2336 tmake_file=mips/t-mips-gas
2338 extra_passes="mips-tfile mips-tdump"
2340 if test x$gnu_ld != xyes
2345 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2346 tm_file="mips/svr4-5.h mips/svr4-t.h"
2347 if test x$stabs = xyes; then
2348 tm_file="${tm_file} dbx.h"
2350 xm_file="xm-siglist.h ${xm_file}"
2352 xmake_file=mips/x-sysv
2353 if test x$gas = xyes
2355 tmake_file=mips/t-mips-gas
2356 extra_parts="crtbegin.o crtend.o"
2358 tmake_file=mips/t-mips
2359 extra_passes="mips-tfile mips-tdump"
2361 if test x$gnu_ld != xyes
2366 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2367 tm_file="mips/ultrix.h ${tm_file}"
2368 if test x$stabs = xyes; then
2369 tm_file="${tm_file} dbx.h"
2371 xmake_file=mips/x-ultrix
2372 if test x$gas = xyes
2374 tmake_file=mips/t-mips-gas
2376 tmake_file=mips/t-ultrix
2377 extra_passes="mips-tfile mips-tdump"
2379 if test x$gnu_ld != xyes
2385 mips-*-riscos[56789]bsd*)
2387 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2388 if test x$stabs = xyes; then
2389 tm_file="${tm_file} dbx.h"
2391 if test x$gas = xyes
2393 tmake_file=mips/t-bsd-gas
2395 tmake_file=mips/t-bsd
2396 extra_passes="mips-tfile mips-tdump"
2398 if test x$gnu_ld != xyes
2404 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2406 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2407 if test x$stabs = xyes; then
2408 tm_file="${tm_file} dbx.h"
2410 if test x$gas = xyes
2412 tmake_file=mips/t-bsd-gas
2414 tmake_file=mips/t-bsd
2415 extra_passes="mips-tfile mips-tdump"
2417 if test x$gnu_ld != xyes
2423 mips-*-riscos[56789]sysv4*)
2425 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2426 if test x$stabs = xyes; then
2427 tm_file="${tm_file} dbx.h"
2429 xm_file="xm-siglist.h ${xm_file}"
2430 xmake_file=mips/x-sysv
2431 if test x$gas = xyes
2433 tmake_file=mips/t-svr4-gas
2435 tmake_file=mips/t-svr4
2436 extra_passes="mips-tfile mips-tdump"
2438 if test x$gnu_ld != xyes
2444 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2446 tm_file="mips/svr4-4.h ${tm_file}"
2447 if test x$stabs = xyes; then
2448 tm_file="${tm_file} dbx.h"
2451 xmake_file=mips/x-sysv
2452 if test x$gas = xyes
2454 tmake_file=mips/t-svr4-gas
2456 tmake_file=mips/t-svr4
2457 extra_passes="mips-tfile mips-tdump"
2459 if test x$gnu_ld != xyes
2465 mips-*-riscos[56789]sysv*)
2467 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2468 if test x$stabs = xyes; then
2469 tm_file="${tm_file} dbx.h"
2472 xmake_file=mips/x-sysv
2473 if test x$gas = xyes
2475 tmake_file=mips/t-svr3-gas
2477 tmake_file=mips/t-svr3
2478 extra_passes="mips-tfile mips-tdump"
2480 if test x$gnu_ld != xyes
2485 mips-*-sysv* | mips-*-riscos*sysv*)
2486 tm_file="mips/svr3-4.h ${tm_file}"
2487 if test x$stabs = xyes; then
2488 tm_file="${tm_file} dbx.h"
2491 xmake_file=mips/x-sysv
2492 if test x$gas = xyes
2494 tmake_file=mips/t-svr3-gas
2496 tmake_file=mips/t-svr3
2497 extra_passes="mips-tfile mips-tdump"
2499 if test x$gnu_ld != xyes
2505 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2507 tm_file=mips/mips-5.h
2508 if test x$stabs = xyes; then
2509 tm_file="${tm_file} dbx.h"
2511 if test x$gas = xyes
2513 tmake_file=mips/t-mips-gas
2515 extra_passes="mips-tfile mips-tdump"
2517 if test x$gnu_ld != xyes
2525 tm_file=mips/ecoffl.h
2526 if test x$stabs = xyes; then
2527 tm_file="${tm_file} dbx.h"
2529 tmake_file=mips/t-ecoff
2532 tm_file="gofast.h mips/ecoff.h"
2533 if test x$stabs = xyes; then
2534 tm_file="${tm_file} dbx.h"
2536 tmake_file=mips/t-ecoff
2539 tm_file="mips/elfl.h libgloss.h"
2540 tmake_file=mips/t-ecoff
2543 tm_file="mips/elf.h libgloss.h"
2544 tmake_file=mips/t-ecoff
2547 tm_file="mips/elfl64.h libgloss.h"
2548 tmake_file=mips/t-ecoff
2550 mips64orionel-*-elf*)
2551 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2552 tmake_file=mips/t-ecoff
2555 tm_file="mips/elf64.h libgloss.h"
2556 tmake_file=mips/t-ecoff
2559 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2560 tmake_file=mips/t-ecoff
2562 mips64orion-*-rtems*)
2563 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2564 tmake_file="mips/t-ecoff t-rtems"
2567 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2568 tmake_file=mips/t-r3900
2571 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2572 tmake_file=mips/t-r3900
2573 # FIXME mips-elf should be fixed to use crtstuff.
2576 mips-*-*) # Default MIPS RISC-OS 4.0.
2577 if test x$stabs = xyes; then
2578 tm_file="${tm_file} dbx.h"
2580 if test x$gas = xyes
2582 tmake_file=mips/t-mips-gas
2584 extra_passes="mips-tfile mips-tdump"
2586 if test x$gnu_ld != xyes
2593 tm_file="mn10200/mn10200.h"
2594 if test x$stabs = xyes
2596 tm_file="${tm_file} dbx.h"
2602 tm_file="mn10300/mn10300.h"
2603 if test x$stabs = xyes
2605 tm_file="${tm_file} dbx.h"
2610 tm_file=ns32k/encore.h
2614 tm_file=ns32k/sequent.h
2618 tm_file=ns32k/tek6100.h
2622 tm_file=ns32k/tek6200.h
2625 # This has not been updated to GCC 2.
2628 # xmake_file=ns32k/x-genix
2629 # tm_file=ns32k/genix.h
2633 tm_file=ns32k/merlin.h
2637 tm_file=ns32k/pc532-mach.h
2641 tm_file=ns32k/pc532-min.h
2642 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2647 tm_file=ns32k/netbsd.h
2648 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2649 # On NetBSD, the headers are already okay, except for math.h.
2650 fixincludes=fixinc.wrap
2654 tm_file="${tm_file} pdp11/2bsd.h"
2660 xmake_file=pyr/x-pyr
2667 xmake_file=romp/x-mach
2672 tm_file=rs6000/beos.h
2673 xm_file=rs6000/xm-beos.h
2674 tmake_file=rs6000/t-beos
2675 xmake_file=rs6000/x-beos
2677 powerpc-*-sysv* | powerpc-*-elf*)
2678 tm_file=rs6000/sysv4.h
2679 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2680 xm_defines="USG POSIX"
2681 extra_headers=ppc-asm.h
2682 if test x$gas = xyes
2684 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2686 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2688 xmake_file=rs6000/x-sysv4
2691 tm_file=rs6000/eabiaix.h
2692 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2693 fixincludes=Makefile.in
2694 extra_headers=ppc-asm.h
2697 tm_file=rs6000/eabisim.h
2698 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2699 fixincludes=Makefile.in
2700 extra_headers=ppc-asm.h
2703 tm_file=rs6000/eabi.h
2704 if test x$gas = xyes
2706 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2708 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2710 fixincludes=Makefile.in
2711 extra_headers=ppc-asm.h
2714 tm_file=rs6000/rtems.h
2715 if test x$gas = xyes
2717 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2719 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2721 fixincludes=Makefile.in
2722 extra_headers=ppc-asm.h
2724 powerpc-*-linux-gnulibc1)
2725 tm_file=rs6000/linux.h
2726 xm_file=rs6000/xm-sysv4.h
2727 out_file=rs6000/rs6000.c
2728 if test x$gas = xyes
2730 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2732 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2735 fixincludes=Makefile.in
2736 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2737 extra_headers=ppc-asm.h
2738 if test x$enable_threads = xyes; then
2742 powerpc-*-linux-gnu*)
2743 tm_file=rs6000/linux.h
2744 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2745 xm_defines="USG ${xm_defines}"
2746 out_file=rs6000/rs6000.c
2747 if test x$gas = xyes
2749 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2751 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2754 fixincludes=Makefile.in
2755 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2756 extra_headers=ppc-asm.h
2757 if test x$enable_threads = xyes; then
2761 powerpc-wrs-vxworks*)
2763 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2764 xm_defines="USG POSIX"
2765 tm_file=rs6000/vxppc.h
2766 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2767 extra_headers=ppc-asm.h
2768 thread_file='vxworks'
2770 powerpcle-*-sysv* | powerpcle-*-elf*)
2771 tm_file=rs6000/sysv4le.h
2772 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2773 xm_defines="USG POSIX"
2774 if test x$gas = xyes
2776 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2778 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2780 xmake_file=rs6000/x-sysv4
2781 extra_headers=ppc-asm.h
2783 powerpcle-*-eabisim*)
2784 tm_file=rs6000/eabilesim.h
2785 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2786 fixincludes=Makefile.in
2787 extra_headers=ppc-asm.h
2790 tm_file=rs6000/eabile.h
2791 if test x$gas = xyes
2793 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2795 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2797 fixincludes=Makefile.in
2798 extra_headers=ppc-asm.h
2800 powerpcle-*-winnt* )
2801 tm_file=rs6000/win-nt.h
2802 tmake_file=rs6000/t-winnt
2804 fixincludes=Makefile.in
2805 if test x$enable_threads = xyes; then
2808 extra_headers=ppc-asm.h
2810 powerpcle-*-pe | powerpcle-*-cygwin*)
2811 tm_file=rs6000/cygwin.h
2812 xm_file="rs6000/xm-cygwin.h ${xm_file}"
2813 tmake_file=rs6000/t-winnt
2814 xmake_file=rs6000/x-cygwin
2816 fixincludes=Makefile.in
2817 if test x$enable_threads = xyes; then
2821 extra_headers=ppc-asm.h
2823 powerpcle-*-solaris2*)
2824 tm_file=rs6000/sol2.h
2825 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2826 xm_defines="USG POSIX"
2827 if test x$gas = xyes
2829 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2831 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2833 xmake_file=rs6000/x-sysv4
2838 fixincludes=fixinc.svr4;;
2840 fixincludes=fixinc.wrap;;
2842 extra_headers=ppc-asm.h
2845 rs6000-ibm-aix3.[01]*)
2847 tm_file=rs6000/aix31.h
2848 xmake_file=rs6000/x-aix31
2852 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2854 tm_file=rs6000/aix3newas.h
2855 if test x$host != x$target
2857 tmake_file=rs6000/t-xnewas
2859 tmake_file=rs6000/t-newas
2864 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2866 if test "$gnu_ld" = yes
2868 tm_file=rs6000/aix41-gld.h
2870 tm_file=rs6000/aix41.h
2872 if test x$host != x$target
2874 tmake_file=rs6000/t-xnewas
2876 tmake_file=rs6000/t-newas
2878 xmake_file=rs6000/x-aix41
2882 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2884 tm_file=rs6000/aix43.h
2885 if test x$host != x$target
2887 tmake_file=rs6000/t-xaix43
2889 tmake_file=rs6000/t-aix43
2891 xmake_file=rs6000/x-aix43
2895 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2897 tm_file=rs6000/aix43.h
2898 if test x$host != x$target
2900 tmake_file=rs6000/t-xaix43
2902 tmake_file=rs6000/t-aix43
2904 xmake_file=rs6000/x-aix43
2914 tm_file=rs6000/mach.h
2915 xm_file="${xm_file} rs6000/xm-mach.h"
2916 xmake_file=rs6000/x-mach
2920 tm_file=rs6000/lynx.h
2921 xm_file=rs6000/xm-lynx.h
2922 tmake_file=rs6000/t-rs6000
2923 xmake_file=rs6000/x-lynx
2931 tmake_file="sh/t-sh t-rtems"
2932 tm_file=sh/rtemself.h
2936 tmake_file="sh/t-sh t-rtems"
2945 xm_file="xm-alloca.h ${xm_file}"
2948 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2949 tm_file=sparc/vxsparc.h
2950 tmake_file=sparc/t-vxsparc
2952 thread_file='vxworks'
2955 tmake_file=sparc/t-sparcbare
2956 tm_file="sparc/aout.h libgloss.h"
2959 tm_file=sparc/netbsd.h
2960 # On NetBSD, the headers are already okay, except for math.h.
2961 fixincludes=fixinc.wrap
2969 tmake_file=sparc/t-elf
2970 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2974 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2975 xm_file="${xm_file} sparc/xm-linux.h"
2976 tm_file=sparc/linux-aout.h
2978 fixincludes=Makefile.in #On Linux, the headers are ok already.
2981 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2982 xm_file="${xm_file} sparc/xm-linux.h"
2984 tm_file=sparc/linux.h
2985 tmake_file="t-linux t-linux-gnulibc1"
2986 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2987 fixincludes=Makefile.in #On Linux, the headers are ok already.
2990 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2991 xm_file="${xm_file} sparc/xm-linux.h"
2993 tm_file=sparc/linux.h
2994 tmake_file="t-linux"
2995 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2996 fixincludes=Makefile.in #On Linux, the headers are ok already.
2998 if test x$enable_threads = xyes; then
3003 if test x$gas = xyes
3005 tm_file=sparc/lynx.h
3007 tm_file=sparc/lynx-ng.h
3009 xm_file=sparc/xm-lynx.h
3010 tmake_file=sparc/t-sunos41
3014 tmake_file="sparc/t-sparcbare t-rtems"
3015 tm_file=sparc/rtems.h
3017 sparcv9-*-solaris2*)
3018 tm_file=sparc/sol2-sld-64.h
3019 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3020 xm_defines="USG POSIX"
3021 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3022 xmake_file=sparc/x-sysv4
3023 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3024 fixincludes=fixinc.wrap
3026 if test x${enable_threads} = x ; then
3027 enable_threads=$have_pthread_h
3028 if test x${enable_threads} = x ; then
3029 enable_threads=$have_thread_h
3032 if test x${enable_threads} = xyes ; then
3033 if test x${have_pthread_h} = xyes ; then
3036 thread_file='solaris'
3041 if test x$gnu_ld = xyes
3043 tm_file=sparc/sol2.h
3045 tm_file=sparc/sol2-sld.h
3047 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3048 xm_defines="USG POSIX"
3049 tmake_file=sparc/t-sol2
3050 xmake_file=sparc/x-sysv4
3051 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3056 fixincludes=fixinc.svr4;;
3058 fixincludes=fixinc.wrap;;
3061 if test x${enable_threads} = x; then
3062 enable_threads=$have_pthread_h
3063 if test x${enable_threads} = x; then
3064 enable_threads=$have_thread_h
3067 if test x${enable_threads} = xyes; then
3068 if test x${have_pthread_h} = xyes; then
3071 thread_file='solaris'
3076 tm_file=sparc/sunos4.h
3077 tmake_file=sparc/t-sunos40
3081 tm_file=sparc/sunos4.h
3082 tmake_file=sparc/t-sunos41
3084 if test x$gas = xyes; then
3085 tm_file="${tm_file} sparc/sun4gas.h"
3089 tm_file=sparc/sun4o3.h
3093 tm_file=sparc/sysv4.h
3094 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3095 xm_defines="USG POSIX"
3097 xmake_file=sparc/x-sysv4
3098 extra_parts="crtbegin.o crtend.o"
3101 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3102 xm_defines="USG POSIX"
3103 tm_file=sparc/vxsim.h
3104 tmake_file=sparc/t-vxsparc
3105 xmake_file=sparc/x-sysv4
3108 tm_file="sparc/splet.h libgloss.h"
3109 tmake_file=sparc/t-splet
3112 tm_file="sparc/litecoff.h libgloss.h"
3113 tmake_file=sparc/t-sparclite
3116 tm_file="sparc/lite.h aoutos.h libgloss.h"
3117 tmake_file=sparc/t-sparclite
3120 tmake_file=sparc/t-sp64
3121 tm_file=sparc/sp64-aout.h
3124 tmake_file=sparc/t-sp64
3125 tm_file=sparc/sp64-elf.h
3126 extra_parts="crtbegin.o crtend.o"
3128 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3129 tmake_file="t-linux sparc/t-linux64"
3130 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3131 tm_file=sparc/linux64.h
3133 fixincludes=Makefile.in # The headers are ok already.
3134 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3137 # This hasn't been upgraded to GCC 2.
3138 # tahoe-harris-*) # Harris tahoe, using COFF.
3139 # tm_file=tahoe/harris.h
3141 # tahoe-*-bsd*) # tahoe running BSD
3143 thumb-*-coff* | thumbel-*-coff*)
3145 out_file=arm/thumb.c
3146 xm_file=arm/xm-thumb.h
3147 md_file=arm/thumb.md
3148 tmake_file=arm/t-thumb
3149 fixincludes=Makefile.in # There is nothing to fix
3151 # This hasn't been upgraded to GCC 2.
3158 tm_file="v850/v850.h"
3159 xm_file="v850/xm-v850.h"
3160 tmake_file=v850/t-v850
3161 if test x$stabs = xyes
3163 tm_file="${tm_file} dbx.h"
3167 vax-*-bsd*) # vaxen running BSD
3171 vax-*-sysv*) # vaxen running system V
3172 tm_file="${tm_file} vax/vaxv.h"
3177 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3178 # On NetBSD, the headers are already okay, except for math.h.
3179 fixincludes=fixinc.wrap
3183 vax-*-ultrix*) # vaxen running ultrix
3184 tm_file="${tm_file} vax/ultrix.h"
3188 vax-*-vms*) # vaxen running VMS
3189 xm_file=vax/xm-vms.h
3193 vax-*-*) # vax default entry
3197 xm_file="${xm_file} xm-svr3"
3201 echo "Configuration $machine not supported" 1>&2
3208 ;; # Existing GNU/Linux systems do not use the GNU setup.
3210 # On the GNU system, the setup is just about the same on
3211 # each different CPU. The specific machines that GNU
3212 # supports are matched above and just set $cpu_type.
3213 xm_file="xm-gnu.h ${xm_file}"
3214 tm_file=${cpu_type}/gnu.h
3215 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3216 # GNU always uses ELF.
3218 # GNU tools are the only tools.
3221 # On GNU, the headers are already okay.
3222 fixincludes=Makefile.in
3223 xmake_file=x-linux # These details are the same as Linux.
3224 tmake_file=t-gnu # These are not.
3227 fixincludes=fixinc.svr4
3228 xmake_try_sysv=x-sysv
3229 install_headers_dir=install-headers-cpio
3232 install_headers_dir=install-headers-cpio
3236 # Distinguish i[34567]86
3237 # Also, do not run mips-tfile on MIPS if using gas.
3238 # Process --with-cpu= for PowerPC/rs6000
3239 target_cpu_default2=
3242 target_cpu_default2=1
3245 target_cpu_default2=2
3247 i686-*-* | i786-*-*)
3248 target_cpu_default2=3
3253 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3256 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3259 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3262 target_cpu_default2="MASK_CPU_EV5"
3266 if test x$gas = xyes
3268 if test "$target_cpu_default2" = ""
3270 target_cpu_default2="MASK_GAS"
3272 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3277 case "x$with_cpu" in
3280 target_cpu_default2="TARGET_CPU_generic"
3283 # Distinguish cores, and major variants
3284 # arm7m doesn't exist, but D & I don't affect code
3285 xarm[23678] | xarm250 | xarm[67][01]0 \
3286 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3287 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3288 | xstrongarm | xstrongarm110)
3289 target_cpu_default2="TARGET_CPU_$with_cpu"
3293 echo "--with-cpu must be passed a value" 1>&2
3298 if test x$pass2done = xyes
3300 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3307 mips*-*-ecoff* | mips*-*-elf*)
3308 if test x$gas = xyes
3310 if test x$gnu_ld = xyes
3312 target_cpu_default2=20
3314 target_cpu_default2=16
3319 if test x$gas = xyes
3321 target_cpu_default2=16
3324 powerpc*-*-* | rs6000-*-*)
3325 case "x$with_cpu" in
3329 xcommon | xpower | xpower2 | xpowerpc | xrios \
3330 | xrios1 | xrios2 | xrsc | xrsc1 \
3331 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3332 | x403 | x505 | x801 | x821 | x823 | x860)
3333 target_cpu_default2="\"$with_cpu\""
3337 echo "--with-cpu must be passed a value" 1>&2
3342 if test x$pass2done = xyes
3344 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3351 case ".$with_cpu" in
3353 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3355 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3356 target_cpu_default2="TARGET_CPU_$with_cpu"
3359 if test x$pass2done = xyes
3361 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3369 if test "$target_cpu_default2" != ""
3371 if test "$target_cpu_default" != ""
3373 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3375 target_cpu_default=$target_cpu_default2
3379 # No need for collect2 if we have the GNU linker.
3380 # Actually, there is now; GNU ld doesn't handle the EH info or
3381 # collecting for shared libraries.
3388 # Save data on machine being used to compile GCC in build_xm_file.
3389 # Save data on host machine in vars host_xm_file and host_xmake_file.
3390 if test x$pass1done = x
3392 if test x"$xm_file" = x
3393 then build_xm_file=$cpu_type/xm-$cpu_type.h
3394 else build_xm_file=$xm_file
3396 build_xm_defines=$xm_defines
3397 build_install_headers_dir=$install_headers_dir
3398 build_exeext=$exeext
3401 if test x$pass2done = x
3403 if test x"$xm_file" = x
3404 then host_xm_file=$cpu_type/xm-$cpu_type.h
3405 else host_xm_file=$xm_file
3407 host_xm_defines=$xm_defines
3408 if test x"$xmake_file" = x
3409 then xmake_file=$cpu_type/x-$cpu_type
3411 host_xmake_file="$xmake_file"
3412 host_truncate_target=$truncate_target
3413 host_extra_gcc_objs=$extra_gcc_objs
3414 host_extra_objs=$extra_host_objs
3421 extra_objs="${host_extra_objs} ${extra_objs}"
3423 # Default the target-machine variables that were not explicitly set.
3424 if test x"$tm_file" = x
3425 then tm_file=$cpu_type/$cpu_type.h; fi
3427 if test x$extra_headers = x
3428 then extra_headers=; fi
3430 if test x"$xm_file" = x
3431 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3433 if test x$md_file = x
3434 then md_file=$cpu_type/$cpu_type.md; fi
3436 if test x$out_file = x
3437 then out_file=$cpu_type/$cpu_type.c; fi
3439 if test x"$tmake_file" = x
3440 then tmake_file=$cpu_type/t-$cpu_type
3443 if test x"$dwarf2" = xyes
3444 then tm_file="tm-dwarf2.h $tm_file"
3447 if test x$float_format = x
3448 then float_format=i64
3451 if test x$enable_haifa = x
3454 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3459 # Say what files are being used for the output code and MD file.
3460 echo "Using \`$srcdir/config/$out_file' to output insns."
3461 echo "Using \`$srcdir/config/$md_file' as machine description file."
3464 for f in $tm_file; do
3467 if test $count = ax; then
3468 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3470 echo "Using the following target machine macro files:"
3471 for f in $tm_file; do
3472 echo " $srcdir/config/$f"
3477 for f in $host_xm_file; do
3480 if test $count = ax; then
3481 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3483 echo "Using the following host machine macro files:"
3484 for f in $host_xm_file; do
3485 echo " $srcdir/config/$f"
3489 if test "$host_xm_file" != "$build_xm_file"; then
3491 for f in $build_xm_file; do
3494 if test $count = ax; then
3495 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3497 echo "Using the following build machine macro files:"
3498 for f in $build_xm_file; do
3499 echo " $srcdir/config/$f"
3504 if test x$thread_file = x; then
3505 if test x$target_thread_file != x; then
3506 thread_file=$target_thread_file
3508 thread_file='single'
3512 # Set up the header files.
3513 # $links is the list of header files to create.
3514 # $vars is the list of shell variables with file names to include.
3515 # auto-host.h is the file containing items generated by autoconf and is
3516 # the first file included by config.h.
3518 host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
3520 # If host=build, it is correct to have hconfig include auto-host.h
3521 # as well. If host!=build, we are in error and need to do more
3522 # work to find out the build config parameters.
3523 if test x$host = x$build
3525 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
3527 # We create a subdir, then run autoconf in the subdir.
3528 # To prevent recursion we set host and build for the new
3529 # invocation of configure to the build for this invocation
3536 /*) realsrcdir=${srcdir};;
3537 *) realsrcdir=../${srcdir};;
3539 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3540 --target=$target --host=$build --build=$build
3542 # We just finished tests for the build machine, so rename
3543 # the file auto-build.h in the gcc directory.
3544 mv auto-host.h ../auto-build.h
3547 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
3550 xm_file="gansidecl.h ${xm_file}"
3551 tm_file="gansidecl.h ${tm_file}"
3553 vars="host_xm_file tm_file xm_file build_xm_file"
3554 links="config.h tm.h tconfig.h hconfig.h"
3555 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3558 if test -f config.status; then mv -f config.status config.bak; fi
3561 while test -n "$vars"
3563 set $vars; var=$1; shift; vars=$*
3564 set $links; link=$1; shift; links=$*
3565 set $defines; define=$1; shift; defines=$*
3569 # Define TARGET_CPU_DEFAULT if the system wants one.
3570 # This substitutes for lots of *.h files.
3571 if test "$target_cpu_default" != "" -a $link = tm.h
3573 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3576 for file in `eval echo '$'$var`; do
3577 echo "#include \"$file\"" >>$link
3580 for def in `eval echo '$'$define`; do
3581 echo "#ifndef $def" >>$link
3582 echo "#define $def" >>$link
3583 echo "#endif" >>$link
3587 # Truncate the target if necessary
3588 if test x$host_truncate_target != x; then
3589 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3592 # Get the version trigger filename from the toplevel
3593 if test "${with_gcc_version_trigger+set}" = set; then
3594 gcc_version_trigger=$with_gcc_version_trigger
3596 gcc_version_trigger=${srcdir}/version.c
3599 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3602 # Get an absolute path to the GCC top-level source directory
3608 # Conditionalize the makefile for this host machine.
3609 # Make-host contains the concatenation of all host makefile fragments
3610 # [there can be more than one]. This file is built by configure.frag.
3611 host_overrides=Make-host
3612 dep_host_xmake_file=
3613 for f in .. ${host_xmake_file}
3615 if test -f ${srcdir}/config/$f
3617 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3621 # Conditionalize the makefile for this target machine.
3622 # Make-target contains the concatenation of all host makefile fragments
3623 # [there can be more than one]. This file is built by configure.frag.
3624 target_overrides=Make-target
3626 for f in .. ${tmake_file}
3628 if test -f ${srcdir}/config/$f
3630 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3634 # If the host doesn't support symlinks, modify CC in
3635 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3636 # Otherwise, we can use "CC=$(CC)".
3638 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3640 cc_set_by_configure="\$(CC)"
3641 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3644 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3646 symbolic_link="cp -p"
3650 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3651 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3655 out_object_file=`basename $out_file .c`.o
3658 for f in $tm_file; do
3659 if test $f != "gansidecl.h" ; then
3660 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3662 tm_file_list="${tm_file_list} $f"
3667 for f in $host_xm_file; do
3668 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3669 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3671 host_xm_file_list="${host_xm_file_list} $f"
3676 for f in $build_xm_file; do
3677 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3678 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3680 build_xm_file_list="${build_xm_file_list} $f"
3684 # Define macro CROSS_COMPILE in compilation
3685 # if this is a cross-compiler.
3686 # Also use all.cross instead of all.internal
3687 # and add cross-make to Makefile.
3688 cross_overrides="/dev/null"
3689 if test x$host != x$target
3691 cross_defines="CROSS=-DCROSS_COMPILE"
3692 cross_overrides="${topdir}/cross-make"
3695 # When building gcc with a cross-compiler, we need to fix a few things.
3696 # This must come after cross-make as we want all.build to override
3698 build_overrides="/dev/null"
3699 if test x$build != x$host
3701 build_overrides="${topdir}/build-make"
3704 # Expand extra_headers to include complete path.
3705 # This substitutes for lots of t-* files.
3707 if test "x$extra_headers" = x
3710 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3711 for file in $extra_headers;
3713 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3717 if test x$use_collect2 = xno; then
3721 # Add a definition of USE_COLLECT2 if system wants one.
3722 # Also tell toplev.c what to do.
3723 # This substitutes for lots of t-* files.
3724 if test x$use_collect2 = x
3729 will_use_collect2="collect2"
3730 maybe_use_collect2="-DUSE_COLLECT2"
3734 # Set MD_DEPS if the real md file is in md.pre-cpp.
3735 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3736 # for line oriented comments, so we must always use a GNU cpp. If
3737 # building gcc with a cross compiler, use the cross compiler just
3738 # built. Otherwise, we can use the cpp just built.
3740 if test "x$md_cppflags" = x
3742 md_file_sub=$srcdir/config/$md_file
3747 # If we have gas in the build tree, make a link to it.
3748 if test -f ../gas/Makefile; then
3749 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3752 # If we have nm in the build tree, make a link to it.
3753 if test -f ../binutils/Makefile; then
3754 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3757 # If we have ld in the build tree, make a link to it.
3758 if test -f ../ld/Makefile; then
3759 # if test x$use_collect2 = x; then
3760 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3762 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3766 # Figure out what assembler alignment features are present.
3767 AC_MSG_CHECKING(assembler alignment features)
3769 gcc_cv_as_alignment_features=
3770 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3771 if test -x "$DEFAULT_ASSEMBLER"; then
3772 gcc_cv_as="$DEFAULT_ASSEMBLER"
3773 elif test -x "$AS"; then
3775 elif test -x as$host_exeext; then
3776 # Build using assembler in the current directory.
3777 gcc_cv_as=./as$host_exeext
3778 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
3779 # Single tree build which includes gas.
3780 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3783 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3785 if test x$gcc_cv_gas_version != x; then
3790 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3791 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3793 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3794 # Gas version 2.6 and later support for .balign and .p2align.
3795 # bytes to skip when using .p2align.
3796 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
3797 gcc_cv_as_alignment_features=".balign and .p2align"
3798 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3800 # Gas version 2.8 and later support specifying the maximum
3801 # bytes to skip when using .p2align.
3802 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
3803 gcc_cv_as_alignment_features=".p2align including maximum skip"
3804 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3807 elif test x$host = x$target; then
3809 gcc_cv_as=as$host_exeext
3811 if test x$gcc_cv_as != x; then
3812 # Check if we have .balign and .p2align
3813 echo ".balign 4" > conftest.s
3814 echo ".p2align 2" >> conftest.s
3815 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3816 gcc_cv_as_alignment_features=".balign and .p2align"
3817 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3819 rm -f conftest.s conftest.o
3820 # Check if specifying the maximum bytes to skip when
3821 # using .p2align is supported.
3822 echo ".p2align 4,,7" > conftest.s
3823 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3824 gcc_cv_as_alignment_features=".p2align including maximum skip"
3825 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3827 rm -f conftest.s conftest.o
3829 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3831 AC_MSG_CHECKING(assembler subsection support)
3832 gcc_cv_as_subsections=
3833 if test x$gcc_cv_as != x; then
3834 # Check if we have .subsection
3835 echo ".subsection 1" > conftest.s
3836 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3837 gcc_cv_as_subsections=".subsection"
3838 if test -x nm$host_exeext; then
3839 gcc_cv_nm=./nm$host_exeext
3840 elif test x$host = x$target; then
3842 gcc_cv_nm=nm$host_exeext
3844 if test x$gcc_cv_nm != x; then
3845 cat > conftest.s <<EOF
3846 conftest_label1: .word 0
3848 conftest_label2: .word 0
3851 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3852 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3853 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3854 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3857 gcc_cv_as_subsections="working .subsection -1"
3858 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3863 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3865 AC_MSG_RESULT($gcc_cv_as_subsections)
3867 # Figure out what language subdirectories are present.
3868 # Look if the user specified --enable-languages="..."; if not, use
3869 # the environment variable $LANGUAGES if defined. $LANGUAGES might
3871 if test x"${enable_languages+set}" != xset; then
3872 if test x"${LANGUAGES+set}" = xset; then
3873 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
3875 enable_languages=all
3879 for lang in ${srcdir}/*/config-lang.in ..
3883 # The odd quoting in the next line works around
3884 # an apparent bug in bash 1.12 on linux.
3886 ${srcdir}/[*]/config-lang.in) ;;
3888 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
3889 if test "x$lang_alias" = x
3891 echo "$lang doesn't set \$language." 1>&2
3894 if test x"${enable_languages}" = xall; then
3897 case "${enable_languages}" in
3898 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
3906 if test x"${add_this_lang}" = xyes; then
3908 ${srcdir}/ada/config-lang.in)
3909 if test x$gnat = xyes ; then
3910 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3914 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3923 # Make gthr-default.h if we have a thread file.
3925 if test $thread_file != single; then
3926 rm -f gthr-default.h
3927 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3928 gthread_flags=-DHAVE_GTHR_DEFAULT
3930 AC_SUBST(gthread_flags)
3932 # Make empty files to contain the specs and options for each language.
3933 # Then add #include lines to for a compiler that has specs and/or options.
3938 rm -f specs.h options.h gencheck.h
3939 touch specs.h options.h gencheck.h
3940 for subdir in . $subdirs
3942 if test -f $srcdir/$subdir/lang-specs.h; then
3943 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3944 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3946 if test -f $srcdir/$subdir/lang-options.h; then
3947 echo "#include \"$subdir/lang-options.h\"" >>options.h
3948 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3950 if test -f $srcdir/$subdir/$subdir-tree.def; then
3951 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3952 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3956 # These (without "all_") are set in each config-lang.in.
3957 # `language' must be a single word so is spelled singularly.
3963 all_outputs=Makefile
3964 # List of language makefile fragments.
3969 # Add the language fragments.
3970 # Languages are added via two mechanisms. Some information must be
3971 # recorded in makefile variables, these are defined in config-lang.in.
3972 # We accumulate them and plug them into the main Makefile.
3973 # The other mechanism is a set of hooks for each of the main targets
3974 # like `clean', `install', etc.
3976 language_fragments="Make-lang"
3977 language_hooks="Make-hooks"
3980 for s in .. $subdirs
3992 . ${srcdir}/$s/config-lang.in
3993 if test "x$language" = x
3995 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3998 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3999 all_languages="$all_languages $language"
4000 if test "x$boot_language" = xyes
4002 all_boot_languages="$all_boot_languages $language"
4004 all_compilers="$all_compilers $compilers"
4005 all_stagestuff="$all_stagestuff $stagestuff"
4006 all_diff_excludes="$all_diff_excludes $diff_excludes"
4007 all_headers="$all_headers $headers"
4008 all_outputs="$all_outputs $outputs"
4009 if test x$outputs = x
4011 oldstyle_subdirs="$oldstyle_subdirs $s"
4013 all_lib2funcs="$all_lib2funcs $lib2funcs"
4017 # Since we can't use `::' targets, we link each language in
4018 # with a set of hooks, reached indirectly via lang.${target}.
4022 target_list="all.build all.cross start.encap rest.encap \
4024 install-normal install-common install-info install-man \
4026 mostlyclean clean distclean extraclean maintainer-clean \
4027 stage1 stage2 stage3 stage4"
4028 for t in $target_list
4031 for l in .. $all_languages
4033 if test $l != ".."; then
4037 echo "lang.$t: $x" >> Make-hooks
4040 # If we're not building in srcdir, create .gdbinit.
4042 if test ! -f Makefile.in; then
4043 echo "dir ." > .gdbinit
4044 echo "dir ${srcdir}" >> .gdbinit
4045 if test x$gdb_needs_out_file_path = xyes
4047 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4049 if test "x$subdirs" != x; then
4052 echo "dir ${srcdir}/$s" >> .gdbinit
4055 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4058 # Define variables host_canonical and build_canonical
4059 # because some Cygnus local changes in the Makefile depend on them.
4060 build_canonical=${build}
4061 host_canonical=${host}
4063 if test "${host}" != "${target}" ; then
4064 target_subdir=${target}/
4066 AC_SUBST(build_canonical)
4067 AC_SUBST(host_canonical)
4068 AC_SUBST(target_subdir)
4070 # If this is using newlib, then define inhibit_libc in
4071 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4072 # libgcc.a, but that's OK because newib should have its own version of
4075 if test x$with_newlib = xyes; then
4076 inhibit_libc=-Dinhibit_libc
4078 AC_SUBST(inhibit_libc)
4080 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4083 if test x$enable_haifa = xyes; then
4084 echo "Using the Haifa scheduler."
4086 sched_cflags=-DHAIFA
4088 AC_SUBST(sched_prefix)
4089 AC_SUBST(sched_cflags)
4090 if test x$enable_haifa != x; then
4091 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4092 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
4100 # if $(exec_prefix) is not the same as $(prefix), then do not use a relative
4101 # directory to get to $gcc_tooldir.
4102 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4103 # make and thus we'd get different behavior depending on where we built the
4105 if test x$exec_prefix = x$prefix; then
4106 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4108 gcc_tooldir='$(exec_prefix)'/${target_alias}
4110 AC_SUBST(gcc_tooldir)
4112 # Warn if using init_priority.
4113 AC_MSG_CHECKING(whether to enable init_priority by default)
4114 if test x$enable_init_priority != xyes; then
4115 enable_init_priority=no
4117 AC_MSG_RESULT($enable_init_priority)
4119 # Nothing to do for FLOAT_H, float_format already handled.
4123 # Process the language and host/target makefile fragments.
4124 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4126 # Substitute configuration variables
4128 AC_SUBST(all_languages)
4129 AC_SUBST(all_boot_languages)
4130 AC_SUBST(all_compilers)
4131 AC_SUBST(all_lang_makefiles)
4132 AC_SUBST(all_stagestuff)
4133 AC_SUBST(all_diff_excludes)
4134 AC_SUBST(all_lib2funcs)
4135 AC_SUBST(all_headers)
4137 AC_SUBST(extra_passes)
4138 AC_SUBST(extra_programs)
4139 AC_SUBST(extra_parts)
4140 AC_SUBST(extra_c_objs)
4141 AC_SUBST(extra_cxx_objs)
4142 AC_SUBST(extra_cpp_objs)
4143 AC_SUBST(extra_c_flags)
4144 AC_SUBST(extra_objs)
4145 AC_SUBST(host_extra_gcc_objs)
4146 AC_SUBST(extra_headers_list)
4147 AC_SUBST(dep_host_xmake_file)
4148 AC_SUBST(dep_tmake_file)
4150 AC_SUBST(out_object_file)
4152 AC_SUBST(tm_file_list)
4153 AC_SUBST(build_xm_file_list)
4154 AC_SUBST(host_xm_file_list)
4155 AC_SUBST(lang_specs_files)
4156 AC_SUBST(lang_options_files)
4157 AC_SUBST(lang_tree_files)
4158 AC_SUBST(thread_file)
4159 AC_SUBST(objc_boehm_gc)
4161 AC_SUBST(gcc_version)
4162 AC_SUBST(gcc_version_trigger)
4163 AC_SUBST(local_prefix)
4164 AC_SUBST(gxx_include_dir)
4165 AC_SUBST(fixincludes)
4166 AC_SUBST(build_install_headers_dir)
4167 AC_SUBST(build_exeext)
4168 AC_SUBST(host_exeext)
4169 AC_SUBST(float_format)
4170 AC_SUBST(will_use_collect2)
4171 AC_SUBST(maybe_use_collect2)
4172 AC_SUBST(cc_set_by_configure)
4173 AC_SUBST(stage_prefix_set_by_configure)
4175 AC_SUBST(symbolic_link)
4177 AC_SUBST_FILE(target_overrides)
4178 AC_SUBST_FILE(host_overrides)
4179 AC_SUBST(cross_defines)
4180 AC_SUBST_FILE(cross_overrides)
4181 AC_SUBST_FILE(build_overrides)
4182 AC_SUBST_FILE(language_fragments)
4183 AC_SUBST_FILE(language_hooks)
4185 # Echo that links are built
4186 if test x$host = x$target
4194 if test x$host != x$build
4196 str3=" on a $build system"
4199 if test "x$str2" != x || test "x$str3" != x
4204 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4206 if test "x$str2" != x || test "x$str3" != x
4208 echo " ${str2}${str3}." 1>&2
4211 # Truncate the target if necessary
4212 if test x$host_truncate_target != x; then
4213 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4216 # Configure the subdirectories
4217 # AC_CONFIG_SUBDIRS($subdirs)
4219 # Create the Makefile
4220 # and configure language subdirectories
4221 AC_OUTPUT($all_outputs,
4223 . $srcdir/configure.lang
4224 case x$CONFIG_HEADERS in
4225 xauto-host.h:config.in)
4228 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4229 # bootstrapping and the installation procedure can still use
4230 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4231 # FLAGS_TO_PASS has been modified to solve the problem there.
4232 # This is virtually a duplicate of what happens in configure.lang; we do
4233 # an extra check to make sure this only happens if ln -s can be used.
4234 if test "$symbolic_link" = "ln -s"; then
4235 for d in .. ${subdirs} ; do
4236 if test $d != ..; then
4239 for t in stage1 stage2 stage3 stage4 include
4242 $symbolic_link ../$t $t 2>/dev/null
4253 target_alias='${target_alias}'
4255 subdirs='${subdirs}'
4256 oldstyle_subdirs='${oldstyle_subdirs}'
4257 symbolic_link='${symbolic_link}'
4258 program_transform_set='${program_transform_set}'
4259 program_transform_name='${program_transform_name}'
4260 dep_host_xmake_file='${dep_host_xmake_file}'
4261 host_xmake_file='${host_xmake_file}'
4262 dep_tmake_file='${dep_tmake_file}'
4263 tmake_file='${tmake_file}'
4264 thread_file='${thread_file}'
4265 gcc_version='${gcc_version}'
4266 gcc_version_trigger='${gcc_version_trigger}'
4267 local_prefix='${local_prefix}'
4268 build_install_headers_dir='${build_install_headers_dir}'
4269 build_exeext='${build_exeext}'
4270 host_exeext='${host_exeext}'
4271 out_file='${out_file}'
4272 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4273 SET_MAKE='${SET_MAKE}'
4274 target_list='${target_list}'
4275 target_overrides='${target_overrides}'
4276 host_overrides='${host_overrides}'
4277 cross_defines='${cross_defines}'
4278 cross_overrides='${cross_overrides}'
4279 build_overrides='${build_overrides}'