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
152 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
153 # passed in by the toplevel make and thus we'd get different behavior
154 # depending on where we built the sources.
156 # Specify the g++ header file directory
157 AC_ARG_WITH(gxx-include-dir,
158 [ --with-gxx-include-dir=DIR
159 specifies directory to put g++ header files.],
160 [case "${withval}" in
161 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
163 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
166 if test x${gcc_gxx_include_dir} = x; then
167 if test x${enable_version_specific_runtime_libs} = xyes; then
168 gcc_gxx_include_dir='${libsubdir}/include/g++'
170 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
171 changequote(<<, >>)dnl
172 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
177 # Enable expensive internal checks
178 AC_ARG_ENABLE(checking,
179 [ --enable-checking enable expensive run-time checks.],
180 [case "${enableval}" in
181 yes) AC_DEFINE(ENABLE_CHECKING) ;;
183 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
186 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
188 AC_ARG_ENABLE(cpplib,
189 [ --enable-cpplib use cpplib for the C preprocessor.],
190 if test x$enable_cpplib != xno; then
194 # Link cpplib into the compiler proper, for C/C++/ObjC.
195 AC_ARG_ENABLE(c-cpplib,
196 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
197 (implies --enable-cpplib).],
198 if test x$enable_c_cpplib != xno; then
199 extra_c_objs="${extra_c_objs} libcpp.a"
200 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
201 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
205 # Enable Multibyte Characters for C/C++
206 AC_ARG_ENABLE(c-mbchar,
207 [ --enable-c-mbchar enable multibyte characters for C and C++.],
208 if test x$enable_c_mbchar != xno; then
209 extra_c_flags=-DMULTIBYTE_CHARS=1
212 # Enable Haifa scheduler.
214 [ --enable-haifa use the experimental scheduler.
215 --disable-haifa don't use the experimental scheduler for the
216 targets which normally enable it.])
219 # This is a work in progress...
220 AC_ARG_WITH(fast-fixincludes,
221 [ --with-fast-fixincludes use a faster fixinclude program (experimental)],
222 fast_fixinc="$with_fast_fixincludes",
225 # Enable init_priority.
226 AC_ARG_ENABLE(init-priority,
227 [ --enable-init-priority use attributes to assign initialization order
229 --disable-init-priority conform to ISO C++ rules for ordering static objects
230 (i.e. initialized in order of declaration). ],
231 if test x$enable_init_priority != xno; then
232 extra_c_flags="${extra_c_flags} -DUSE_INIT_PRIORITY"
236 # Pass with no value to take the default
237 # Pass with a value to specify a thread package
238 AC_ARG_ENABLE(threads,
239 [ --enable-threads enable thread usage for target GCC.
240 --enable-threads=LIB use LIB thread package for target GCC.],
241 if test x$enable_threads = xno; then
246 enable_threads_flag=$enable_threads
247 # Check if a valid thread package
248 case x${enable_threads_flag} in
251 target_thread_file='single'
255 target_thread_file=''
257 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
258 xsolaris | xwin32 | xdce | xvxworks)
259 target_thread_file=$enable_threads_flag
262 echo "$enable_threads is an unknown thread package" 1>&2
267 AC_ARG_ENABLE(objc-gc,
268 [ --enable-objc-gc enable the use of Boehm's garbage collector with
269 the GNU Objective-C runtime.],
270 if [[[ x$enable_objc_gc = xno ]]]; then
277 AC_ARG_ENABLE(java-gc,
278 changequote(<<,>>)dnl
279 << --enable-java-gc=TYPE choose garbage collector [boehm]>>,
285 [ --enable-dwarf2 enable DWARF2 debugging as default.],
286 dwarf2="$with_dwarf2",
289 # Determine the host, build, and target systems
292 # Find the native compiler
295 # If the native compiler is GCC, we can enable warnings even in stage1.
296 # That's useful for people building cross-compilers, or just running a
298 if test "x$GCC" = "xyes"; then
299 stage1_warn_cflags='$(WARN_CFLAGS)'
301 stage1_warn_cflags=""
303 AC_SUBST(stage1_warn_cflags)
307 AC_MSG_CHECKING([whether a default assembler was specified])
308 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
309 if test x"$with_gas" = x"no"; then
310 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
312 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
318 AC_MSG_CHECKING([whether a default linker was specified])
319 if test x"${DEFAULT_LINKER+set}" = x"set"; then
320 if test x"$with_gnu_ld" = x"no"; then
321 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
323 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
329 # Find some useful tools
343 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)
345 # Check for thread headers.
346 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
347 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
349 # See if GNAT has been installed
350 AC_CHECK_PROG(gnat, gnatbind, yes, no)
352 # See if the system preprocessor understands the ANSI C preprocessor
353 # stringification operator.
354 AC_MSG_CHECKING(whether cpp understands the stringify operator)
355 AC_CACHE_VAL(gcc_cv_c_have_stringify,
358 char *test = S(foo);],
359 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
360 AC_MSG_RESULT($gcc_cv_c_have_stringify)
361 if test $gcc_cv_c_have_stringify = yes; then
362 AC_DEFINE(HAVE_CPP_STRINGIFY)
365 # Use <inttypes.h> only if it exists,
366 # doesn't clash with <sys/types.h>, and declares intmax_t.
367 AC_MSG_CHECKING(for inttypes.h)
368 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
370 [#include <sys/types.h>
371 #include <inttypes.h>],
373 [gcc_cv_header_inttypes_h=yes],
374 gcc_cv_header_inttypes_h=no)])
375 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
376 if test $gcc_cv_header_inttypes_h = yes; then
377 AC_DEFINE(HAVE_INTTYPES_H)
380 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
381 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
382 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
385 # Make sure wchar_t is available
386 #AC_CHECK_TYPE(wchar_t, unsigned int)
388 GCC_FUNC_VFPRINTF_DOPRNT
392 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
393 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
396 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
397 #include <sys/types.h>
398 #ifdef HAVE_SYS_RESOURCE_H
399 #include <sys/resource.h>
413 build_install_headers_dir=install-headers-tar
418 host_truncate_target=
421 # It is relative to $prefix.
424 # Decode the host machine, then the target machine.
425 # For the host machine, we save the xm_file variable as host_xm_file;
426 # then we decode the target machine and forget everything else
427 # that came from the host machine.
428 for machine in $build $host $target; do
442 # Set this to force installation and use of collect2.
444 # Set this to override the default target model.
446 # Set this to control which fixincludes program to use.
447 if test x$fast_fixinc != xyes; then
448 fixincludes=fixincludes
449 else fixincludes=fixinc.sh ; fi
450 # Set this to control how the header file directory is installed.
451 install_headers_dir=install-headers-tar
452 # Set this to a non-empty list of args to pass to cpp if the target
453 # wants its .md file passed through cpp.
455 # Set this if directory names should be truncated to 14 characters.
457 # Set this if gdb needs a dir command with `dirname $out_file`
458 gdb_needs_out_file_path=
459 # Set this if the build machine requires executables to have a
462 # Set this to control which thread package will be used.
464 # Reinitialize these from the flag values every loop pass, since some
465 # configure entries modify them.
467 gnu_ld="$gnu_ld_flag"
468 enable_threads=$enable_threads_flag
470 # Set default cpu_type, tm_file and xm_file so it can be updated in
471 # each machine entry.
472 cpu_type=`echo $machine | sed 's/-.*$//'`
508 tm_file=${cpu_type}/${cpu_type}.h
509 xm_file=${cpu_type}/xm-${cpu_type}.h
511 # Common parts for linux-gnu and openbsd systems
514 xm_defines="HAVE_ATEXIT POSIX BSTRING"
517 tm_file=${cpu_type}/openbsd.h
518 # On OpenBSD systems, the headers are okay
519 fixincludes=Makefile.in
520 tmake_file="t-libc-ok t-openbsd"
521 # avoid surprises, always provide an xm-openbsd file
522 xm_file=${cpu_type}/xm-openbsd.h
523 if test x$enable_threads = xyes; then
525 tmake_file="${tmake_file} t-openbsd-thread"
531 # Support site-specific machine types.
533 cpu_type=`echo $machine | sed -e 's/-.*//'`
534 rest=`echo $machine | sed -e "s/$cpu_type-//"`
535 xm_file=${cpu_type}/xm-$rest.h
536 tm_file=${cpu_type}/$rest.h
537 if test -f $srcdir/config/${cpu_type}/x-$rest; \
538 then xmake_file=${cpu_type}/x-$rest; \
541 if test -f $srcdir/config/${cpu_type}/t-$rest; \
542 then tmake_file=${cpu_type}/t-$rest; \
548 a29k-*-bsd* | a29k-*-sym1*)
549 tm_file="${tm_file} a29k/unix.h"
551 xmake_file=a29k/x-unix
554 a29k-*-udi | a29k-*-coff)
555 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
556 tmake_file=a29k/t-a29kbare
559 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
560 tmake_file=a29k/t-vx29k
561 extra_parts="crtbegin.o crtend.o"
562 thread_file='vxworks'
564 a29k-*-*) # Default a29k environment.
567 alpha*-*-linux-gnuecoff*)
568 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
569 target_cpu_default="MASK_GAS"
574 alpha*-*-linux-gnulibc1*)
575 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
576 target_cpu_default="MASK_GAS"
577 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
578 extra_parts="crtbegin.o crtend.o"
579 fixincludes=fixinc.wrap
582 if test x$enable_threads = xyes; then
587 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
588 target_cpu_default="MASK_GAS"
589 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
590 extra_parts="crtbegin.o crtend.o"
592 fixincludes=Makefile.in
594 if test x$enable_threads = xyes; then
599 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
600 target_cpu_default="MASK_GAS"
601 tmake_file="alpha/t-crtbe"
602 extra_parts="crtbegin.o crtend.o"
604 fixincludes=fixinc.wrap
609 # default x-alpha is only appropriate for dec-osf.
610 target_cpu_default="MASK_GAS"
615 if test x$stabs = xyes
617 tm_file="${tm_file} dbx.h"
619 if test x$gas != xyes
621 extra_passes="mips-tfile mips-tdump"
626 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
631 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
634 tm_file="${tm_file} alpha/osf.h"
635 # Some versions of OSF4 (specifically X4.0-9 296.7) have
636 # a broken tar, so we use cpio instead.
637 install_headers_dir=install-headers-cpio
642 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
644 target_cpu_default=MASK_SUPPORT_ARCH
649 tm_file="${tm_file} dbx.h alpha/vxworks.h"
652 extra_passes="mips-tfile mips-tdump"
657 tm_file="${tm_file} alpha/win-nt.h"
658 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
660 xmake_file=winnt/x-winnt
661 extra_host_objs=oldnames.o
662 extra_gcc_objs="spawnv.o oldnames.o"
663 fixincludes=fixinc.winnt
664 if test x$gnu_ld != xyes
666 extra_programs=ld.exe
668 if test x$enable_threads = xyes; then
674 xm_file="${xm_file} alpha/xm-vms.h"
675 tmake_file=alpha/t-vms
676 fixincludes=Makefile.in
679 extra_parts="crtinit.o crtfini.o"
681 arm-*-coff* | armel-*-coff*)
683 tmake_file=arm/t-bare
686 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
688 tm_file=arm/riscix1-1.h
691 arm-*-riscix*) # Acorn RISC machine
694 tm_file=arm/rix-gas.h
698 xmake_file=arm/x-riscix
699 tmake_file=arm/t-riscix
702 arm-semi-aout | armel-semi-aout)
704 tmake_file=arm/t-semi
705 fixincludes=Makefile.in # There is nothing to fix
707 arm-semi-aof | armel-semi-aof)
708 tm_file=arm/semiaof.h
709 tmake_file=arm/t-semiaof
710 fixincludes=Makefile.in # There is nothing to fix
714 xm_file="arm/xm-netbsd.h ${xm_file}"
715 tmake_file="t-netbsd arm/t-netbsd"
716 # On NetBSD, the headers are already okay, except for math.h.
717 fixincludes=fixinc.wrap
719 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
722 tm_file=arm/linux-aout.h
723 tmake_file=arm/t-linux
724 fixincludes=Makefile.in
727 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
728 xm_file=arm/xm-linux.h
732 tm_file=arm/linux-elf26.h
735 tm_file=arm/linux-elf.h
738 tmake_file="t-linux arm/t-linux"
739 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
740 fixincludes=Makefile.in # Nothing to fix
745 tmake_file=arm/t-bare
748 tm_file=arm/ecos-elf.h
752 tm_file=arm/unknown-elf.h
753 tmake_file=arm/t-arm-elf
756 tm_file=arm/unknown-elf-oabi.h
757 tmake_file=arm/t-arm-elf
759 c1-convex-*) # Convex C1
762 fixincludes=Makefile.in
764 c2-convex-*) # Convex C2
767 fixincludes=Makefile.in
772 fixincludes=Makefile.in
777 fixincludes=Makefile.in
780 target_cpu_default=16
782 fixincludes=Makefile.in
788 clipper-intergraph-clix*)
789 tm_file="${tm_file} svr3.h clipper/clix.h"
790 xm_file=clipper/xm-clix.h
791 xmake_file=clipper/x-clix
792 extra_headers=va-clipper.h
793 extra_parts="crtbegin.o crtend.o"
794 install_headers_dir=install-headers-cpio
801 # This hasn't been upgraded to GCC 2.
802 # fx80-alliant-*) # Alliant FX/80
808 target_cpu_default="MASK_SNAKE"
809 tmake_file=pa/t-openbsd
812 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
813 xm_file=pa/xm-papro.h
817 target_cpu_default="MASK_SNAKE"
818 tm_file="${tm_file} pa/pa-osf.h"
820 fixincludes=Makefile.in
823 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
824 xm_file=pa/xm-papro.h
828 tm_file="${tm_file} pa/pa-osf.h"
830 fixincludes=Makefile.in
833 target_cpu_default="MASK_SNAKE"
835 fixincludes=Makefile.in
839 fixincludes=Makefile.in
842 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
843 xm_file=pa/xm-pahpux.h
844 xmake_file=pa/x-pa-hpux
847 tm_file="${tm_file} pa/gas.h"
849 install_headers_dir=install-headers-cpio
853 hppa1.0-*-hpux8.0[0-2]*)
855 tm_file="${tm_file} pa/pa-hpux.h"
856 xm_file=pa/xm-pahpux.h
857 xmake_file=pa/x-pa-hpux
860 tm_file="${tm_file} pa/pa-gas.h"
862 tm_file="pa/pa-oldas.h ${tm_file}"
864 install_headers_dir=install-headers-cpio
868 hppa1.1-*-hpux8.0[0-2]*)
870 target_cpu_default="MASK_SNAKE"
871 tm_file="${tm_file} pa/pa-hpux.h"
872 xm_file=pa/xm-pahpux.h
873 xmake_file=pa/x-pa-hpux
876 tm_file="${tm_file} pa/pa-gas.h"
878 tm_file="pa/pa-oldas.h ${tm_file}"
880 install_headers_dir=install-headers-cpio
884 target_cpu_default="MASK_SNAKE"
885 tm_file="${tm_file} pa/pa-hpux.h"
886 xm_file=pa/xm-pahpux.h
887 xmake_file=pa/x-pa-hpux
890 tm_file="${tm_file} pa/pa-gas.h"
892 install_headers_dir=install-headers-cpio
896 tm_file="${tm_file} pa/pa-hpux.h"
897 xm_file=pa/xm-pahpux.h
898 xmake_file=pa/x-pa-hpux
901 tm_file="${tm_file} pa/pa-gas.h"
903 install_headers_dir=install-headers-cpio
906 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
907 target_cpu_default="MASK_SNAKE"
908 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
909 xm_file=pa/xm-pahpux.h
910 xmake_file=pa/x-pa-hpux
914 tm_file="${tm_file} pa/pa-gas.h"
916 if test x$enable_threads = x; then
917 enable_threads=$have_pthread_h
919 if test x$enable_threads = xyes; then
921 tmake_file="${tmake_file} pa/t-dce-thr"
923 install_headers_dir=install-headers-cpio
927 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
928 xm_file=pa/xm-pahpux.h
929 xmake_file=pa/x-pa-hpux
933 tm_file="${tm_file} pa/pa-gas.h"
935 if test x$enable_threads = x; then
936 enable_threads=$have_pthread_h
938 if test x$enable_threads = xyes; then
940 tmake_file="${tmake_file} pa/t-dce-thr"
942 install_headers_dir=install-headers-cpio
945 hppa1.1-*-hpux* | hppa2*-*-hpux*)
946 target_cpu_default="MASK_SNAKE"
947 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
948 xm_file=pa/xm-pahpux.h
949 xmake_file=pa/x-pa-hpux
952 tm_file="${tm_file} pa/pa-gas.h"
954 install_headers_dir=install-headers-cpio
958 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
959 xm_file=pa/xm-pahpux.h
960 xmake_file=pa/x-pa-hpux
963 tm_file="${tm_file} pa/pa-gas.h"
965 install_headers_dir=install-headers-cpio
968 hppa1.1-*-hiux* | hppa2*-*-hiux*)
969 target_cpu_default="MASK_SNAKE"
970 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
971 xm_file=pa/xm-pahpux.h
972 xmake_file=pa/x-pa-hpux
975 tm_file="${tm_file} pa/pa-gas.h"
977 install_headers_dir=install-headers-cpio
981 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
982 xm_file=pa/xm-pahpux.h
983 xmake_file=pa/x-pa-hpux
986 tm_file="${tm_file} pa/pa-gas.h"
988 install_headers_dir=install-headers-cpio
992 target_cpu_default="MASK_SNAKE"
994 fixincludes=Makefile.in
999 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1001 if test x$gas = xyes
1003 tm_file=i386/aix386.h
1004 extra_parts="crtbegin.o crtend.o"
1005 tmake_file=i386/t-crtstuff
1007 tm_file=i386/aix386ng.h
1010 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1012 xmake_file=i386/x-aix
1015 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1017 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1018 xm_defines="USG POSIX SMALL_ARG_MAX"
1019 xmake_file=i386/x-ncr3000
1020 if test x$stabs = xyes -a x$gas = xyes
1022 tm_file=i386/sysv4gdb.h
1024 tm_file=i386/sysv4.h
1026 extra_parts="crtbegin.o crtend.o"
1027 tmake_file=i386/t-crtpic
1033 xm_file=i386/xm-next.h
1034 tmake_file=i386/t-next
1035 xmake_file=i386/x-next
1036 extra_objs=nextstep.o
1037 extra_parts="crtbegin.o crtend.o"
1038 if test x$enable_threads = xyes; then
1043 i[34567]86-sequent-bsd*) # 80386 from Sequent
1046 if test x$gas = xyes
1048 tm_file=i386/seq-gas.h
1050 tm_file=i386/sequent.h
1054 i[34567]86-sequent-ptx1*)
1056 xm_defines="USG SVR3"
1057 xmake_file=i386/x-sysv3
1058 tm_file=i386/seq-sysv3.h
1059 tmake_file=i386/t-crtstuff
1060 fixincludes=fixinc.ptx
1061 extra_parts="crtbegin.o crtend.o"
1062 install_headers_dir=install-headers-cpio
1065 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1067 xm_defines="USG SVR3"
1068 xmake_file=i386/x-sysv3
1069 tm_file=i386/seq2-sysv3.h
1070 tmake_file=i386/t-crtstuff
1071 extra_parts="crtbegin.o crtend.o"
1072 fixincludes=fixinc.ptx
1073 install_headers_dir=install-headers-cpio
1076 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1078 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1079 xm_defines="USG POSIX SMALL_ARG_MAX"
1081 tm_file=i386/ptx4-i.h
1083 extra_parts="crtbegin.o crtend.o"
1084 fixincludes=fixinc.ptx
1085 install_headers_dir=install-headers-cpio
1087 i386-sun-sunos*) # Sun i386 roadrunner
1093 i[34567]86-wrs-vxworks*)
1095 tm_file=i386/vxi386.h
1096 tmake_file=i386/t-i386bare
1101 tm_file=i386/i386-aout.h
1102 tmake_file=i386/t-i386bare
1105 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1107 tm_file=i386/bsd386.h
1108 # tmake_file=t-libc-ok
1113 tm_file=i386/386bsd.h
1114 # tmake_file=t-libc-ok
1115 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1119 i[34567]86-*-freebsdelf*)
1121 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
1122 # On FreeBSD, the headers are already ok, except for math.h.
1123 fixincludes=fixinc.wrap
1124 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1125 tmake_file=i386/t-freebsd
1131 i[34567]86-*-freebsd*)
1133 tm_file=i386/freebsd.h
1134 # On FreeBSD, the headers are already ok, except for math.h.
1135 fixincludes=fixinc.wrap
1136 tmake_file=i386/t-freebsd
1139 i[34567]86-*-netbsd*)
1141 tm_file=i386/netbsd.h
1142 # On NetBSD, the headers are already okay, except for math.h.
1143 fixincludes=fixinc.wrap
1147 i[34567]86-*-openbsd*)
1149 # Remove when the math emulator is fixed
1150 target_cpu_default="MASK_NO_FANCY_MATH_387"
1151 # we need collect2 until our bug is fixed...
1157 tm_file=i386/i386-coff.h
1158 tmake_file=i386/t-i386bare
1161 i[34567]86-*-isc*) # 80386 running ISC system
1163 xm_file="${xm_file} i386/xm-isc.h"
1164 xm_defines="USG SVR3"
1167 i[34567]86-*-isc[34]*)
1169 xmake_file=i386/x-isc3
1172 xmake_file=i386/x-isc
1175 if test x$gas = xyes -a x$stabs = xyes
1177 tm_file=i386/iscdbx.h
1178 tmake_file=i386/t-svr3dbx
1179 extra_parts="svr3.ifile svr3z.ifile"
1181 tm_file=i386/isccoff.h
1182 tmake_file=i386/t-crtstuff
1183 extra_parts="crtbegin.o crtend.o"
1185 install_headers_dir=install-headers-cpio
1188 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1189 changequote([,])dnl # with a.out format using
1191 xmake_file=x-linux-aout
1192 tmake_file="t-linux-aout i386/t-crtstuff"
1193 tm_file=i386/linux-oldld.h
1194 fixincludes=fixinc.x86-linux-gnu
1199 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1200 changequote([,])dnl # with a.out format
1201 xmake_file=x-linux-aout
1202 tmake_file="t-linux-aout i386/t-crtstuff"
1203 tm_file=i386/linux-aout.h
1204 fixincludes=fixinc.x86-linux-gnu
1209 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1210 changequote([,])dnl # with ELF format using the
1211 # GNU/Linux C library 5
1213 tm_file=i386/linux.h
1214 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1215 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1216 fixincludes=fixinc.x86-linux-gnu
1219 if test x$enable_threads = xyes; then
1220 thread_file='single'
1224 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1225 changequote([,])dnl # with ELF format using glibc 2
1226 # aka GNU/Linux C library 6
1228 tm_file=i386/linux.h
1229 tmake_file="t-linux i386/t-crtstuff"
1230 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1231 fixincludes=fixinc.x86-linux-gnu
1234 if test x$enable_threads = xyes; then
1244 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1246 xm_file=i386/xm-go32.h
1248 tmake_file=i386/t-go32
1251 i[34567]86-pc-msdosdjgpp*)
1253 xm_file=i386/xm-go32.h
1255 tmake_file=i386/t-go32
1256 xmake_file=i386/x-go32
1267 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1270 tmake_file=t-libc-ok
1271 fixincludes=Makefile.in
1276 i[34567]86-*-lynxos*)
1278 if test x$gas = xyes
1282 tm_file=i386/lynx-ng.h
1284 xm_file=i386/xm-lynx.h
1285 tmake_file=i386/t-i386bare
1292 # tmake_file=t-libc-ok
1296 i[34567]86-*-osfrose*) # 386 using OSF/rose
1298 if test x$elf = xyes
1300 tm_file=i386/osfelf.h
1303 tm_file=i386/osfrose.h
1306 xm_file="i386/xm-osf.h ${xm_file}"
1307 xmake_file=i386/x-osfrose
1308 tmake_file=i386/t-osf
1309 extra_objs=halfpic.o
1312 i[34567]86-go32-rtems*)
1315 xm_file=i386/xm-go32.h
1316 tm_file=i386/go32-rtems.h
1317 tmake_file="i386/t-go32 t-rtems"
1320 i[34567]86-*-rtemself*)
1323 tm_file=i386/rtemself.h
1324 tmake_file="i386/t-i386bare t-rtems"
1327 i[34567]86-*-rtems*)
1330 tm_file=i386/rtems.h
1331 tmake_file="i386/t-i386bare t-rtems"
1334 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1336 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1337 xm_defines="USG SVR3"
1338 xmake_file=i386/x-sco5
1339 fixincludes=fixinc.sco
1340 install_headers_dir=install-headers-cpio
1342 if test x$gas = xyes
1344 tm_file="i386/sco5gas.h ${tm_file}"
1345 tmake_file=i386/t-sco5gas
1347 tmake_file=i386/t-sco5
1349 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1352 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1354 xm_file="${xm_file} i386/xm-sco.h"
1355 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1356 xmake_file=i386/x-sco4
1357 fixincludes=fixinc.sco
1358 install_headers_dir=install-headers-cpio
1359 if test x$stabs = xyes
1361 tm_file=i386/sco4dbx.h
1362 tmake_file=i386/t-svr3dbx
1363 extra_parts="svr3.ifile svr3z.rfile"
1366 tmake_file=i386/t-crtstuff
1367 extra_parts="crtbegin.o crtend.o"
1372 i[34567]86-*-sco*) # 80386 running SCO system
1374 xm_file=i386/xm-sco.h
1375 xmake_file=i386/x-sco
1376 install_headers_dir=install-headers-cpio
1377 if test x$stabs = xyes
1379 tm_file=i386/scodbx.h
1380 tmake_file=i386/t-svr3dbx
1381 extra_parts="svr3.ifile svr3z.rfile"
1384 extra_parts="crtbegin.o crtend.o"
1385 tmake_file=i386/t-crtstuff
1390 i[34567]86-*-solaris2*)
1392 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1393 xm_defines="USG POSIX SMALL_ARG_MAX"
1394 if test x$stabs = xyes
1396 tm_file=i386/sol2dbg.h
1400 tmake_file=i386/t-sol2
1401 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1407 fixincludes=fixinc.svr4;;
1409 fixincludes=fixinc.wrap;;
1411 if test x$enable_threads = xyes; then
1412 thread_file='solaris'
1416 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1418 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1419 xm_defines="USG POSIX"
1420 tm_file=i386/sysv4.h
1421 if test x$stabs = xyes
1423 tm_file="${tm_file} dbx.h"
1425 tmake_file=i386/t-crtpic
1427 extra_parts="crtbegin.o crtend.o"
1428 fixincludes=fixinc.svr4
1431 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1433 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1434 xm_defines="USG POSIX SMALL_ARG_MAX"
1435 tm_file=i386/sysv4.h
1436 if test x$stabs = xyes
1438 tm_file="${tm_file} dbx.h"
1440 tmake_file=i386/t-crtpic
1442 extra_parts="crtbegin.o crtend.o"
1445 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1447 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1448 xm_defines="USG POSIX"
1450 tmake_file="i386/t-crtpic i386/t-udk"
1452 extra_parts="crtbegin.o crtend.o"
1453 fixincludes="fixinc.svr4"
1456 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1459 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1460 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1461 fixincludes=Makefile.in #Don't do it on OSF/1
1462 if test x$stabs = xyes
1464 tm_file=i386/osf1elfgdb.h
1466 tm_file=i386/osf1elf.h
1468 tmake_file=i386/t-osf1elf
1469 xmake_file=i386/x-osf1elf
1470 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1473 i[34567]86-*-sysv*) # Intel 80386's running system V
1475 xm_defines="USG SVR3"
1476 xmake_file=i386/x-sysv3
1477 if test x$gas = xyes
1479 if test x$stabs = xyes
1481 tm_file=i386/svr3dbx.h
1482 tmake_file=i386/t-svr3dbx
1483 extra_parts="svr3.ifile svr3z.rfile"
1485 tm_file=i386/svr3gas.h
1486 extra_parts="crtbegin.o crtend.o"
1487 tmake_file=i386/t-crtstuff
1490 tm_file=i386/sysv3.h
1491 extra_parts="crtbegin.o crtend.o"
1492 tmake_file=i386/t-crtstuff
1495 i386-*-vsta) # Intel 80386's running VSTa kernel
1496 xm_file="${xm_file} i386/xm-vsta.h"
1498 tmake_file=i386/t-vsta
1499 xmake_file=i386/x-vsta
1504 xm_file="${xm_file} i386/xm-cygwin.h"
1505 tmake_file=i386/t-cygwin
1506 tm_file=i386/win32.h
1507 xmake_file=i386/x-cygwin
1509 fixincludes=Makefile.in
1510 if test x$enable_threads = xyes; then
1516 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1518 xm_file="${xm_file} i386/xm-cygwin.h"
1519 tmake_file=i386/t-cygwin
1520 tm_file=i386/cygwin.h
1521 xmake_file=i386/x-cygwin
1523 fixincludes=Makefile.in
1524 if test x$enable_threads = xyes; then
1530 i[34567]86-*-mingw32*)
1532 tm_file=i386/mingw32.h
1533 xm_file="${xm_file} i386/xm-mingw32.h"
1534 tmake_file="i386/t-cygwin i386/t-mingw32"
1536 xmake_file=i386/x-cygwin
1537 fixincludes=Makefile.in
1538 if test x$enable_threads = xyes; then
1545 *minwg32crt* | *mingw32*)
1546 tm_file="${tm_file} i386/crtdll.h"
1551 i[34567]86-*-winnt3*)
1553 tm_file=i386/win-nt.h
1554 out_file=i386/i386.c
1555 xm_file="xm-winnt.h ${xm_file}"
1556 xmake_file=winnt/x-winnt
1557 tmake_file=i386/t-winnt
1558 extra_host_objs="winnt.o oldnames.o"
1559 extra_gcc_objs="spawnv.o oldnames.o"
1560 fixincludes=fixinc.winnt
1561 if test x$gnu_ld != xyes
1563 extra_programs=ld.exe
1565 if test x$enable_threads = xyes; then
1570 i[34567]86-dg-dgux*)
1572 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1573 xm_defines="USG POSIX"
1574 out_file=i386/dgux.c
1576 tmake_file=i386/t-dgux
1577 xmake_file=i386/x-dgux
1578 fixincludes=fixinc.dgux
1579 install_headers_dir=install-headers-cpio
1581 i860-alliant-*) # Alliant FX/2800
1582 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1583 xm_file="${xm_file}"
1584 xmake_file=i860/x-fx2800
1585 tmake_file=i860/t-fx2800
1586 extra_parts="crtbegin.o crtend.o"
1589 tm_file="${tm_file} i860/bsd.h"
1590 if test x$gas = xyes
1592 tm_file="${tm_file} i860/bsd-gas.h"
1597 tm_file="${tm_file} i860/mach.h"
1598 tmake_file=t-libc-ok
1600 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1601 tm_file="${tm_file} svr3.h i860/paragon.h"
1602 xm_defines="USG SVR3"
1606 tm_file="${tm_file} svr3.h i860/sysv3.h"
1607 xm_defines="USG SVR3"
1608 xmake_file=i860/x-sysv3
1609 extra_parts="crtbegin.o crtend.o"
1612 tm_file="${tm_file} svr4.h i860/sysv4.h"
1613 xm_defines="USG SVR3"
1614 xmake_file=i860/x-sysv4
1616 extra_parts="crtbegin.o crtend.o"
1618 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1619 tm_file="${tm_file} i960/vx960.h"
1620 tmake_file=i960/t-vxworks960
1622 thread_file='vxworks'
1624 i960-wrs-vxworks5* | i960-wrs-vxworks)
1625 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1626 tmake_file=i960/t-vxworks960
1628 thread_file='vxworks'
1631 tm_file="${tm_file} i960/vx960.h"
1632 tmake_file=i960/t-vxworks960
1634 thread_file='vxworks'
1637 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1638 tmake_file=i960/t-960bare
1642 tmake_file="i960/t-960bare t-rtems"
1643 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1646 i960-*-*) # Default i960 environment.
1650 extra_parts="crtinit.o crtfini.o"
1652 m68000-convergent-sysv*)
1654 xm_file="m68k/xm-3b1.h ${xm_file}"
1657 extra_headers=math-68881.h
1659 m68000-hp-bsd*) # HP 9000/200 running BSD
1660 tm_file=m68k/hp2bsd.h
1661 xmake_file=m68k/x-hp2bsd
1663 extra_headers=math-68881.h
1665 m68000-hp-hpux*) # HP 9000 series 300
1666 xm_file="xm_alloca.h ${xm_file}"
1667 xm_defines="USG NO_SYS_SIGLIST"
1668 if test x$gas = xyes
1670 xmake_file=m68k/x-hp320g
1671 tm_file=m68k/hp310g.h
1673 xmake_file=m68k/x-hp320
1674 tm_file=m68k/hp310.h
1676 install_headers_dir=install-headers-cpio
1678 extra_headers=math-68881.h
1683 extra_headers=math-68881.h
1686 tm_file=m68k/sun2o4.h
1688 extra_headers=math-68881.h
1691 xm_file="m68k/xm-3b1.h ${xm_file}"
1693 if test x$gas = xyes
1700 extra_headers=math-68881.h
1702 m68k-apple-aux*) # Apple Macintosh running A/UX
1703 xm_defines="USG AUX"
1704 tmake_file=m68k/t-aux
1705 install_headers_dir=install-headers-cpio
1706 extra_headers=math-68881.h
1707 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1709 if test "$gnu_ld" = yes
1711 tm_file="${tm_file} m68k/auxgld.h"
1713 tm_file="${tm_file} m68k/auxld.h"
1715 if test "$gas" = yes
1717 tm_file="${tm_file} m68k/auxgas.h"
1719 tm_file="${tm_file} m68k/auxas.h"
1721 tm_file="${tm_file} m68k/a-ux.h"
1725 tm_file=m68k/apollo68.h
1726 xmake_file=m68k/x-apollo68
1728 extra_headers=math-68881.h
1731 m68k-altos-sysv*) # Altos 3068
1732 if test x$gas = xyes
1734 tm_file=m68k/altos3068.h
1737 echo "The Altos is supported only with the GNU assembler" 1>&2
1740 extra_headers=math-68881.h
1742 m68k-bull-sysv*) # Bull DPX/2
1743 if test x$gas = xyes
1745 if test x$stabs = xyes
1747 tm_file=m68k/dpx2cdbx.h
1749 tm_file=m68k/dpx2g.h
1754 xm_file="xm-alloca.h ${xm_file}"
1756 xmake_file=m68k/x-dpx2
1758 extra_headers=math-68881.h
1760 m68k-atari-sysv4*) # Atari variant of V.4.
1761 tm_file=m68k/atari.h
1762 xm_file="xm-alloca.h ${xm_file}"
1763 xm_defines="USG FULL_PROTOTYPES"
1765 extra_parts="crtbegin.o crtend.o"
1766 extra_headers=math-68881.h
1769 m68k-motorola-sysv*)
1770 tm_file=m68k/mot3300.h
1771 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1772 xm_defines=NO_SYS_SIGLIST
1773 if test x$gas = xyes
1775 xmake_file=m68k/x-mot3300-gas
1776 if test x$gnu_ld = xyes
1778 tmake_file=m68k/t-mot3300-gald
1780 tmake_file=m68k/t-mot3300-gas
1784 xmake_file=m68k/x-mot3300
1785 if test x$gnu_ld = xyes
1787 tmake_file=m68k/t-mot3300-gld
1789 tmake_file=m68k/t-mot3300
1793 gdb_needs_out_file_path=yes
1794 extra_parts="crt0.o mcrt0.o"
1795 extra_headers=math-68881.h
1798 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1799 tm_file=m68k/tower-as.h
1800 xm_defines="USG SVR3"
1801 xmake_file=m68k/x-tower
1802 extra_parts="crtbegin.o crtend.o"
1803 extra_headers=math-68881.h
1806 tm_file=m68k/plexus.h
1807 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1810 extra_headers=math-68881.h
1814 xm_file="xm-alloca.h ${xm_file}"
1816 extra_headers=math-68881.h
1819 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1820 xm_defines="USG unos"
1821 xmake_file=m68k/x-crds
1824 extra_headers=math-68881.h
1826 m68k-cbm-sysv4*) # Commodore variant of V.4.
1828 xm_file="xm-alloca.h ${xm_file}"
1829 xm_defines="USG FULL_PROTOTYPES"
1830 xmake_file=m68k/x-amix
1832 extra_parts="crtbegin.o crtend.o"
1833 extra_headers=math-68881.h
1837 tm_file=m68k/ccur-GAS.h
1838 xmake_file=m68k/x-ccur
1839 extra_headers=math-68881.h
1843 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1844 tm_file=m68k/hp3bsd44.h
1845 xmake_file=m68k/x-hp3bsd44
1847 extra_headers=math-68881.h
1850 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1851 tm_file=m68k/hp3bsd.h
1853 extra_headers=math-68881.h
1857 if test x$with_fp = xno
1859 tm_file=m68k/isi-nfp.h
1865 extra_headers=math-68881.h
1867 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1868 xm_file="xm_alloca.h ${xm_file}"
1869 xm_defines="USG NO_SYS_SIGLIST"
1870 if test x$gas = xyes
1872 xmake_file=m68k/x-hp320g
1873 tm_file=m68k/hp320g.h
1875 xmake_file=m68k/x-hp320
1876 tm_file=m68k/hpux7.h
1878 install_headers_dir=install-headers-cpio
1880 extra_headers=math-68881.h
1883 m68k-hp-hpux*) # HP 9000 series 300
1884 xm_file="xm_alloca.h ${xm_file}"
1885 xm_defines="USG NO_SYS_SIGLIST"
1886 if test x$gas = xyes
1888 xmake_file=m68k/x-hp320g
1889 tm_file=m68k/hp320g.h
1891 xmake_file=m68k/x-hp320
1892 tm_file=m68k/hp320.h
1894 install_headers_dir=install-headers-cpio
1896 extra_headers=math-68881.h
1900 tm_file=m68k/sun3mach.h
1902 extra_headers=math-68881.h
1906 if test x$gas = xyes
1908 tm_file=m68k/news3gas.h
1910 tm_file=m68k/news3.h
1913 extra_headers=math-68881.h
1916 m68k-sony-bsd* | m68k-sony-newsos*)
1917 if test x$gas = xyes
1919 tm_file=m68k/newsgas.h
1924 extra_headers=math-68881.h
1927 m68k-next-nextstep2*)
1928 tm_file=m68k/next21.h
1929 xm_file="m68k/xm-next.h ${xm_file}"
1930 tmake_file=m68k/t-next
1931 xmake_file=m68k/x-next
1932 extra_objs=nextstep.o
1933 extra_headers=math-68881.h
1937 m68k-next-nextstep3*)
1939 xm_file="m68k/xm-next.h ${xm_file}"
1940 tmake_file=m68k/t-next
1941 xmake_file=m68k/x-next
1942 extra_objs=nextstep.o
1943 extra_parts="crtbegin.o crtend.o"
1944 extra_headers=math-68881.h
1946 if test x$enable_threads = xyes; then
1951 if test x$with_fp = xno
1953 tm_file=m68k/sun3n3.h
1955 tm_file=m68k/sun3o3.h
1959 extra_headers=math-68881.h
1961 m68k-sun-sunos*) # For SunOS 4 (the default).
1962 if test x$with_fp = xno
1964 tm_file=m68k/sun3n.h
1970 extra_headers=math-68881.h
1973 tm_file=m68k/vxm68k.h
1974 tmake_file=m68k/t-vxworks68
1975 extra_headers=math-68881.h
1976 thread_file='vxworks'
1980 tmake_file=m68k/t-m68kbare
1981 tm_file="m68k/m68k-aout.h libgloss.h"
1982 extra_headers=math-68881.h
1986 tmake_file=m68k/t-m68kbare
1987 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1988 extra_headers=math-68881.h
1991 m68020-*-elf* | m68k-*-elf*)
1992 tm_file="m68k/m68020-elf.h libgloss.h"
1993 xm_file=m68k/xm-m68kv.h
1994 tmake_file=m68k/t-m68kelf
1995 header_files=math-68881.h
1998 if test x$gas = xyes
2002 tm_file=m68k/lynx-ng.h
2004 xm_file=m68k/xm-lynx.h
2006 tmake_file=m68k/t-lynx
2007 extra_headers=math-68881.h
2011 tm_file=m68k/netbsd.h
2012 # On NetBSD, the headers are already okay, except for math.h.
2013 fixincludes=fixinc.wrap
2019 # we need collect2 until our bug is fixed...
2022 m68k-*-sysv3*) # Motorola m68k's running system V.3
2023 xm_file="xm-alloca.h ${xm_file}"
2025 xmake_file=m68k/x-m68kv
2026 extra_parts="crtbegin.o crtend.o"
2027 extra_headers=math-68881.h
2030 m68k-*-sysv4*) # Motorola m68k's running system V.4
2031 tm_file=m68k/m68kv4.h
2032 xm_file="xm-alloca.h ${xm_file}"
2035 extra_parts="crtbegin.o crtend.o"
2036 extra_headers=math-68881.h
2039 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
2042 tm_file=m68k/linux-aout.h
2043 tmake_file="t-linux-aout m68k/t-linux-aout"
2044 fixincludes=Makefile.in # The headers are ok already.
2045 extra_headers=math-68881.h
2049 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2050 # with ELF format using the
2051 # GNU/Linux C library 5
2053 tm_file=m68k/linux.h
2054 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2055 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2056 fixincludes=Makefile.in # The headers are ok already.
2057 extra_headers=math-68881.h
2061 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2062 # with ELF format using glibc 2
2063 # aka the GNU/Linux C library 6.
2065 tm_file=m68k/linux.h
2066 tmake_file="t-linux m68k/t-linux"
2067 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2068 fixincludes=Makefile.in # The headers are ok already.
2069 extra_headers=math-68881.h
2072 if test x$enable_threads = xyes; then
2077 tmake_file=m68k/t-m68kbare
2078 tm_file=m68k/m68k-psos.h
2079 extra_headers=math-68881.h
2083 tmake_file="m68k/t-m68kbare t-rtems"
2084 tm_file=m68k/rtems.h
2085 extra_headers=math-68881.h
2092 tm_file=m88k/dguxbcs.h
2093 tmake_file=m88k/t-dguxbcs
2097 tmake_file=m88k/t-dgux
2100 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2101 xmake_file=m88k/x-dgux
2102 if test x$gas = xyes
2104 tmake_file=m88k/t-dgux-gas
2106 fixincludes=fixinc.dgux
2108 m88k-dolphin-sysv3*)
2109 tm_file=m88k/dolph.h
2110 extra_parts="crtbegin.o crtend.o"
2111 xm_file="m88k/xm-sysv3.h ${xm_file}"
2112 xmake_file=m88k/x-dolph
2113 if test x$gas = xyes
2115 tmake_file=m88k/t-m88k-gas
2118 m88k-tektronix-sysv3)
2119 tm_file=m88k/tekXD88.h
2120 extra_parts="crtbegin.o crtend.o"
2121 xm_file="m88k/xm-sysv3.h ${xm_file}"
2122 xmake_file=m88k/x-tekXD88
2123 if test x$gas = xyes
2125 tmake_file=m88k/t-m88k-gas
2129 tm_file=m88k/m88k-aout.h
2132 tm_file=m88k/m88k-coff.h
2133 tmake_file=m88k/t-bug
2137 extra_parts="crtbegin.o crtend.o"
2138 if test x$gas = xyes
2140 tmake_file=m88k/t-luna-gas
2142 tmake_file=m88k/t-luna
2146 tmake_file="${tmake_file} m88k/t-luna-gas"
2149 tm_file=m88k/sysv3.h
2150 extra_parts="crtbegin.o crtend.o"
2151 xm_file="m88k/xm-sysv3.h ${xm_file}"
2152 xmake_file=m88k/x-sysv3
2153 if test x$gas = xyes
2155 tmake_file=m88k/t-m88k-gas
2159 tm_file=m88k/sysv4.h
2160 extra_parts="crtbegin.o crtend.o"
2161 xmake_file=m88k/x-sysv4
2162 tmake_file=m88k/t-sysv4
2164 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2165 tm_file=mips/iris6.h
2166 xm_file=mips/xm-iris6.h
2167 fixincludes=fixinc.irix
2168 xmake_file=mips/x-iris6
2169 tmake_file=mips/t-iris6
2170 # if test x$enable_threads = xyes; then
2171 # thread_file='irix'
2175 tm_file="mips/elf.h libgloss.h"
2176 tmake_file=mips/t-ecoff
2179 extra_parts="crtbegin.o crtend.o"
2180 thread_file='vxworks'
2182 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2183 tm_file="mips/iris6.h mips/cross64.h"
2185 xm_file="mips/xm-iris5.h"
2186 fixincludes=Makefile.in
2187 xmake_file=mips/x-iris
2188 tmake_file=mips/t-cross64
2189 # See comment in mips/iris[56].h files.
2191 # if test x$enable_threads = xyes; then
2192 # thread_file='irix'
2196 if test x$gas = xyes
2198 if test x$stabs = xyes
2200 tm_file=mips/iris5gdb.h
2202 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2205 tm_file=mips/sni-svr4.h
2208 xmake_file=mips/x-sni-svr4
2209 tmake_file=mips/t-mips-gas
2210 if test x$gnu_ld != xyes
2215 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2216 if test x$gas = xyes
2218 tm_file="mips/iris5.h mips/iris5gas.h"
2219 if test x$stabs = xyes
2221 tm_file="${tm_file} dbx.h"
2224 tm_file=mips/iris5.h
2227 xm_file="mips/xm-iris5.h"
2228 fixincludes=fixinc.irix
2229 xmake_file=mips/x-iris
2230 # mips-tfile doesn't work yet
2231 tmake_file=mips/t-mips-gas
2232 # See comment in mips/iris5.h file.
2234 # if test x$enable_threads = xyes; then
2235 # thread_file='irix'
2238 mips-sgi-irix4loser*) # Mostly like a MIPS.
2239 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2240 if test x$stabs = xyes; then
2241 tm_file="${tm_file} dbx.h"
2244 xmake_file=mips/x-iris
2245 if test x$gas = xyes
2247 tmake_file=mips/t-mips-gas
2249 extra_passes="mips-tfile mips-tdump"
2251 if test x$gnu_ld != xyes
2255 # if test x$enable_threads = xyes; then
2256 # thread_file='irix'
2259 mips-sgi-irix4*) # Mostly like a MIPS.
2260 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2261 if test x$stabs = xyes; then
2262 tm_file="${tm_file} dbx.h"
2265 xmake_file=mips/x-iris
2266 if test x$gas = xyes
2268 tmake_file=mips/t-mips-gas
2270 extra_passes="mips-tfile mips-tdump"
2272 if test x$gnu_ld != xyes
2276 # if test x$enable_threads = xyes; then
2277 # thread_file='irix'
2280 mips-sgi-*) # Mostly like a MIPS.
2281 tm_file="mips/iris3.h ${tm_file}"
2282 if test x$stabs = xyes; then
2283 tm_file="${tm_file} dbx.h"
2286 xmake_file=mips/x-iris3
2287 if test x$gas = xyes
2289 tmake_file=mips/t-mips-gas
2291 extra_passes="mips-tfile mips-tdump"
2293 if test x$gnu_ld != xyes
2298 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2299 tm_file="mips/osfrose.h ${tm_file}"
2300 xmake_file=mips/x-osfrose
2301 tmake_file=mips/t-osfrose
2302 extra_objs=halfpic.o
2305 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2306 tm_file=mips/dec-osf1.h
2307 if test x$stabs = xyes; then
2308 tm_file="${tm_file} dbx.h"
2310 xmake_file=mips/x-dec-osf1
2311 if test x$gas = xyes
2313 tmake_file=mips/t-mips-gas
2315 tmake_file=mips/t-ultrix
2316 extra_passes="mips-tfile mips-tdump"
2318 if test x$gnu_ld != xyes
2323 mips-dec-bsd*) # Decstation running 4.4 BSD
2324 tm_file=mips/dec-bsd.h
2326 if test x$gas = xyes
2328 tmake_file=mips/t-mips-gas
2330 tmake_file=mips/t-ultrix
2331 extra_passes="mips-tfile mips-tdump"
2333 if test x$gnu_ld != xyes
2338 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2339 tm_file=mips/netbsd.h
2340 # On NetBSD, the headers are already okay, except for math.h.
2341 fixincludes=fixinc.wrap
2344 mips*-*-linux*) # Linux MIPS, either endian.
2346 xm_file="xm-siglist.h ${xm_file}"
2348 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2349 *) tm_file="mips/elf.h mips/linux.h" ;;
2351 extra_parts="crtbegin.o crtend.o"
2354 fixincludes=Makefile.in
2356 mips*el-*-openbsd*) # mips little endian
2357 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2358 tm_file=mips/openbsd.h
2361 mips*-*-openbsd*) # mips big endian
2362 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2363 tm_file=mips/openbsd-be.h
2366 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2367 tm_file="mips/news4.h ${tm_file}"
2368 if test x$stabs = xyes; then
2369 tm_file="${tm_file} dbx.h"
2371 if test x$gas = xyes
2373 tmake_file=mips/t-mips-gas
2375 extra_passes="mips-tfile mips-tdump"
2377 if test x$gnu_ld != xyes
2381 xmake_file=mips/x-sony
2383 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2384 # That is based on svr4.
2385 # t-svr4 is not right because this system doesn't use ELF.
2386 tm_file="mips/news5.h ${tm_file}"
2387 if test x$stabs = xyes; then
2388 tm_file="${tm_file} dbx.h"
2390 xm_file="xm-siglist.h ${xm_file}"
2392 if test x$gas = xyes
2394 tmake_file=mips/t-mips-gas
2396 extra_passes="mips-tfile mips-tdump"
2398 if test x$gnu_ld != xyes
2403 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2404 tm_file="mips/svr4-5.h mips/svr4-t.h"
2405 if test x$stabs = xyes; then
2406 tm_file="${tm_file} dbx.h"
2408 xm_file="xm-siglist.h ${xm_file}"
2410 xmake_file=mips/x-sysv
2411 if test x$gas = xyes
2413 tmake_file=mips/t-mips-gas
2414 extra_parts="crtbegin.o crtend.o"
2416 tmake_file=mips/t-mips
2417 extra_passes="mips-tfile mips-tdump"
2419 if test x$gnu_ld != xyes
2424 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2425 tm_file="mips/ultrix.h ${tm_file}"
2426 if test x$stabs = xyes; then
2427 tm_file="${tm_file} dbx.h"
2429 xmake_file=mips/x-ultrix
2430 if test x$gas = xyes
2432 tmake_file=mips/t-mips-gas
2434 tmake_file=mips/t-ultrix
2435 extra_passes="mips-tfile mips-tdump"
2437 if test x$gnu_ld != xyes
2443 mips-*-riscos[56789]bsd*)
2445 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2446 if test x$stabs = xyes; then
2447 tm_file="${tm_file} dbx.h"
2449 if test x$gas = xyes
2451 tmake_file=mips/t-bsd-gas
2453 tmake_file=mips/t-bsd
2454 extra_passes="mips-tfile mips-tdump"
2456 if test x$gnu_ld != xyes
2462 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2464 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2465 if test x$stabs = xyes; then
2466 tm_file="${tm_file} dbx.h"
2468 if test x$gas = xyes
2470 tmake_file=mips/t-bsd-gas
2472 tmake_file=mips/t-bsd
2473 extra_passes="mips-tfile mips-tdump"
2475 if test x$gnu_ld != xyes
2481 mips-*-riscos[56789]sysv4*)
2483 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2484 if test x$stabs = xyes; then
2485 tm_file="${tm_file} dbx.h"
2487 xm_file="xm-siglist.h ${xm_file}"
2488 xmake_file=mips/x-sysv
2489 if test x$gas = xyes
2491 tmake_file=mips/t-svr4-gas
2493 tmake_file=mips/t-svr4
2494 extra_passes="mips-tfile mips-tdump"
2496 if test x$gnu_ld != xyes
2502 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2504 tm_file="mips/svr4-4.h ${tm_file}"
2505 if test x$stabs = xyes; then
2506 tm_file="${tm_file} dbx.h"
2509 xmake_file=mips/x-sysv
2510 if test x$gas = xyes
2512 tmake_file=mips/t-svr4-gas
2514 tmake_file=mips/t-svr4
2515 extra_passes="mips-tfile mips-tdump"
2517 if test x$gnu_ld != xyes
2523 mips-*-riscos[56789]sysv*)
2525 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2526 if test x$stabs = xyes; then
2527 tm_file="${tm_file} dbx.h"
2530 xmake_file=mips/x-sysv
2531 if test x$gas = xyes
2533 tmake_file=mips/t-svr3-gas
2535 tmake_file=mips/t-svr3
2536 extra_passes="mips-tfile mips-tdump"
2538 if test x$gnu_ld != xyes
2543 mips-*-sysv* | mips-*-riscos*sysv*)
2544 tm_file="mips/svr3-4.h ${tm_file}"
2545 if test x$stabs = xyes; then
2546 tm_file="${tm_file} dbx.h"
2549 xmake_file=mips/x-sysv
2550 if test x$gas = xyes
2552 tmake_file=mips/t-svr3-gas
2554 tmake_file=mips/t-svr3
2555 extra_passes="mips-tfile mips-tdump"
2557 if test x$gnu_ld != xyes
2563 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2565 tm_file=mips/mips-5.h
2566 if test x$stabs = xyes; then
2567 tm_file="${tm_file} dbx.h"
2569 if test x$gas = xyes
2571 tmake_file=mips/t-mips-gas
2573 extra_passes="mips-tfile mips-tdump"
2575 if test x$gnu_ld != xyes
2583 tm_file=mips/ecoffl.h
2584 if test x$stabs = xyes; then
2585 tm_file="${tm_file} dbx.h"
2587 tmake_file=mips/t-ecoff
2590 tm_file="gofast.h mips/ecoff.h"
2591 if test x$stabs = xyes; then
2592 tm_file="${tm_file} dbx.h"
2594 tmake_file=mips/t-ecoff
2597 tm_file="mips/elfl.h libgloss.h"
2598 tmake_file=mips/t-ecoff
2601 tm_file="mips/elf.h libgloss.h"
2602 tmake_file=mips/t-ecoff
2605 tm_file="mips/elfl64.h libgloss.h"
2606 tmake_file=mips/t-ecoff
2608 mips64orionel-*-elf*)
2609 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2610 tmake_file=mips/t-ecoff
2613 tm_file="mips/elf64.h libgloss.h"
2614 tmake_file=mips/t-ecoff
2617 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2618 tmake_file=mips/t-ecoff
2620 mips64orion-*-rtems*)
2621 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2622 tmake_file="mips/t-ecoff t-rtems"
2625 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2626 tmake_file=mips/t-r3900
2629 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2630 tmake_file=mips/t-r3900
2631 # FIXME mips-elf should be fixed to use crtstuff.
2634 mips-*-*) # Default MIPS RISC-OS 4.0.
2635 if test x$stabs = xyes; then
2636 tm_file="${tm_file} dbx.h"
2638 if test x$gas = xyes
2640 tmake_file=mips/t-mips-gas
2642 extra_passes="mips-tfile mips-tdump"
2644 if test x$gnu_ld != xyes
2651 tm_file="mn10200/mn10200.h"
2652 if test x$stabs = xyes
2654 tm_file="${tm_file} dbx.h"
2660 tm_file="mn10300/mn10300.h"
2661 if test x$stabs = xyes
2663 tm_file="${tm_file} dbx.h"
2668 tm_file=ns32k/encore.h
2672 tm_file=ns32k/sequent.h
2676 tm_file=ns32k/tek6100.h
2680 tm_file=ns32k/tek6200.h
2683 # This has not been updated to GCC 2.
2686 # xmake_file=ns32k/x-genix
2687 # tm_file=ns32k/genix.h
2691 tm_file=ns32k/merlin.h
2695 tm_file=ns32k/pc532-mach.h
2699 tm_file=ns32k/pc532-min.h
2700 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2705 tm_file=ns32k/netbsd.h
2706 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2707 # On NetBSD, the headers are already okay, except for math.h.
2708 fixincludes=fixinc.wrap
2712 tm_file="${tm_file} pdp11/2bsd.h"
2721 xmake_file=pyr/x-pyr
2728 xmake_file=romp/x-mach
2735 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2740 tm_file=rs6000/beos.h
2741 xm_file=rs6000/xm-beos.h
2742 tmake_file=rs6000/t-beos
2743 xmake_file=rs6000/x-beos
2745 powerpc-*-sysv* | powerpc-*-elf*)
2746 tm_file=rs6000/sysv4.h
2747 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2748 xm_defines="USG POSIX"
2749 extra_headers=ppc-asm.h
2750 if test x$gas = xyes
2752 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2754 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2756 xmake_file=rs6000/x-sysv4
2759 tm_file=rs6000/eabiaix.h
2760 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2761 fixincludes=Makefile.in
2762 extra_headers=ppc-asm.h
2765 tm_file=rs6000/eabisim.h
2766 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2767 fixincludes=Makefile.in
2768 extra_headers=ppc-asm.h
2771 tm_file=rs6000/eabi.h
2772 if test x$gas = xyes
2774 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2776 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2778 fixincludes=Makefile.in
2779 extra_headers=ppc-asm.h
2782 tm_file=rs6000/rtems.h
2783 if test x$gas = xyes
2785 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2787 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2789 fixincludes=Makefile.in
2790 extra_headers=ppc-asm.h
2792 powerpc-*-linux-gnulibc1)
2793 tm_file=rs6000/linux.h
2794 xm_file=rs6000/xm-sysv4.h
2795 out_file=rs6000/rs6000.c
2796 if test x$gas = xyes
2798 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2800 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2803 fixincludes=Makefile.in
2804 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2805 extra_headers=ppc-asm.h
2806 if test x$enable_threads = xyes; then
2810 powerpc-*-linux-gnu*)
2811 tm_file=rs6000/linux.h
2812 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2813 xm_defines="USG ${xm_defines}"
2814 out_file=rs6000/rs6000.c
2815 if test x$gas = xyes
2817 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2819 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2822 fixincludes=Makefile.in
2823 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2824 extra_headers=ppc-asm.h
2825 if test x$enable_threads = xyes; then
2829 powerpc-wrs-vxworks*)
2831 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2832 xm_defines="USG POSIX"
2833 tm_file=rs6000/vxppc.h
2834 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2835 extra_headers=ppc-asm.h
2836 thread_file='vxworks'
2838 powerpcle-*-sysv* | powerpcle-*-elf*)
2839 tm_file=rs6000/sysv4le.h
2840 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2841 xm_defines="USG POSIX"
2842 if test x$gas = xyes
2844 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2846 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2848 xmake_file=rs6000/x-sysv4
2849 extra_headers=ppc-asm.h
2851 powerpcle-*-eabisim*)
2852 tm_file=rs6000/eabilesim.h
2853 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2854 fixincludes=Makefile.in
2855 extra_headers=ppc-asm.h
2858 tm_file=rs6000/eabile.h
2859 if test x$gas = xyes
2861 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2863 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2865 fixincludes=Makefile.in
2866 extra_headers=ppc-asm.h
2868 powerpcle-*-winnt* )
2869 tm_file=rs6000/win-nt.h
2870 tmake_file=rs6000/t-winnt
2872 fixincludes=Makefile.in
2873 if test x$enable_threads = xyes; then
2876 extra_headers=ppc-asm.h
2878 powerpcle-*-pe | powerpcle-*-cygwin*)
2879 tm_file=rs6000/cygwin.h
2880 xm_file="rs6000/xm-cygwin.h ${xm_file}"
2881 tmake_file=rs6000/t-winnt
2882 xmake_file=rs6000/x-cygwin
2884 fixincludes=Makefile.in
2885 if test x$enable_threads = xyes; then
2889 extra_headers=ppc-asm.h
2891 powerpcle-*-solaris2*)
2892 tm_file=rs6000/sol2.h
2893 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2894 xm_defines="USG POSIX"
2895 if test x$gas = xyes
2897 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2899 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2901 xmake_file=rs6000/x-sysv4
2906 fixincludes=fixinc.svr4;;
2908 fixincludes=fixinc.wrap;;
2910 extra_headers=ppc-asm.h
2913 rs6000-ibm-aix3.[01]*)
2915 tm_file=rs6000/aix31.h
2916 xmake_file=rs6000/x-aix31
2920 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2922 tm_file=rs6000/aix3newas.h
2923 if test x$host != x$target
2925 tmake_file=rs6000/t-xnewas
2927 tmake_file=rs6000/t-newas
2932 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2934 if test "$gnu_ld" = yes
2936 tm_file=rs6000/aix41-gld.h
2938 tm_file=rs6000/aix41.h
2940 if test x$host != x$target
2942 tmake_file=rs6000/t-xnewas
2944 tmake_file=rs6000/t-newas
2946 xmake_file=rs6000/x-aix41
2950 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2952 tm_file=rs6000/aix43.h
2953 if test x$host != x$target
2955 tmake_file=rs6000/t-xaix43
2957 tmake_file=rs6000/t-aix43
2959 xmake_file=rs6000/x-aix43
2963 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2965 tm_file=rs6000/aix43.h
2966 if test x$host != x$target
2968 tmake_file=rs6000/t-xaix43
2970 tmake_file=rs6000/t-aix43
2972 xmake_file=rs6000/x-aix43
2982 tm_file=rs6000/mach.h
2983 xm_file="${xm_file} rs6000/xm-mach.h"
2984 xmake_file=rs6000/x-mach
2988 tm_file=rs6000/lynx.h
2989 xm_file=rs6000/xm-lynx.h
2990 tmake_file=rs6000/t-rs6000
2991 xmake_file=rs6000/x-lynx
2999 tmake_file="sh/t-sh t-rtems"
3000 tm_file=sh/rtemself.h
3004 tmake_file="sh/t-sh t-rtems"
3013 xm_file="xm-alloca.h ${xm_file}"
3016 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3017 tm_file=sparc/vxsparc.h
3018 tmake_file=sparc/t-vxsparc
3020 thread_file='vxworks'
3023 tmake_file=sparc/t-sparcbare
3024 tm_file="sparc/aout.h libgloss.h"
3027 tm_file=sparc/netbsd.h
3028 # On NetBSD, the headers are already okay, except for math.h.
3029 fixincludes=fixinc.wrap
3033 # we need collect2 until our bug is fixed...
3041 tmake_file=sparc/t-elf
3042 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3046 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
3047 xm_file="${xm_file} sparc/xm-linux.h"
3048 tm_file=sparc/linux-aout.h
3050 fixincludes=Makefile.in #On Linux, the headers are ok already.
3053 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
3054 xm_file="${xm_file} sparc/xm-linux.h"
3056 tm_file=sparc/linux.h
3057 tmake_file="t-linux t-linux-gnulibc1"
3058 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3059 fixincludes=Makefile.in #On Linux, the headers are ok already.
3062 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
3063 xm_file="${xm_file} sparc/xm-linux.h"
3065 tm_file=sparc/linux.h
3066 tmake_file="t-linux"
3067 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3068 fixincludes=Makefile.in #On Linux, the headers are ok already.
3070 if test x$enable_threads = xyes; then
3075 if test x$gas = xyes
3077 tm_file=sparc/lynx.h
3079 tm_file=sparc/lynx-ng.h
3081 xm_file=sparc/xm-lynx.h
3082 tmake_file=sparc/t-sunos41
3086 tmake_file="sparc/t-sparcbare t-rtems"
3087 tm_file=sparc/rtems.h
3089 sparcv9-*-solaris2*)
3090 tm_file=sparc/sol2-sld-64.h
3091 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3092 xm_defines="USG POSIX"
3093 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3094 xmake_file=sparc/x-sysv4
3095 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3096 fixincludes=fixinc.wrap
3098 if test x${enable_threads} = x ; then
3099 enable_threads=$have_pthread_h
3100 if test x${enable_threads} = x ; then
3101 enable_threads=$have_thread_h
3104 if test x${enable_threads} = xyes ; then
3105 if test x${have_pthread_h} = xyes ; then
3108 thread_file='solaris'
3112 sparc-hal-solaris2*)
3113 xm_file=sparc/xm-sol2.h
3114 tm_file="sparc/sol2.h sparc/hal.h"
3115 tmake_file="sparc/t-halos sparc/t-sol2"
3116 xmake_file=sparc/x-sysv4
3117 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3118 fixincludes=fixinc.svr4
3122 if test x$gnu_ld = xyes
3124 tm_file=sparc/sol2.h
3126 tm_file=sparc/sol2-sld.h
3128 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3129 xm_defines="USG POSIX"
3130 tmake_file=sparc/t-sol2
3131 xmake_file=sparc/x-sysv4
3132 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3137 fixincludes=fixinc.svr4
3141 fixincludes=fixinc.wrap
3145 if test x${enable_threads} = x; then
3146 enable_threads=$have_pthread_h
3147 if test x${enable_threads} = x; then
3148 enable_threads=$have_thread_h
3151 if test x${enable_threads} = xyes; then
3152 if test x${have_pthread_h} = xyes; then
3155 thread_file='solaris'
3160 tm_file=sparc/sunos4.h
3161 tmake_file=sparc/t-sunos40
3165 tm_file=sparc/sunos4.h
3166 tmake_file=sparc/t-sunos41
3168 if test x$gas = xyes; then
3169 tm_file="${tm_file} sparc/sun4gas.h"
3173 tm_file=sparc/sun4o3.h
3177 tm_file=sparc/sysv4.h
3178 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3179 xm_defines="USG POSIX"
3181 xmake_file=sparc/x-sysv4
3182 extra_parts="crtbegin.o crtend.o"
3185 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3186 xm_defines="USG POSIX"
3187 tm_file=sparc/vxsim.h
3188 tmake_file=sparc/t-vxsparc
3189 xmake_file=sparc/x-sysv4
3192 tm_file="sparc/splet.h libgloss.h"
3193 tmake_file=sparc/t-splet
3196 tm_file="sparc/litecoff.h libgloss.h"
3197 tmake_file=sparc/t-sparclite
3200 tm_file="sparc/lite.h aoutos.h libgloss.h"
3201 tmake_file=sparc/t-sparclite
3204 tmake_file=sparc/t-sp64
3205 tm_file=sparc/sp64-aout.h
3208 tmake_file=sparc/t-sp64
3209 tm_file=sparc/sp64-elf.h
3210 extra_parts="crtbegin.o crtend.o"
3212 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3213 tmake_file="t-linux sparc/t-linux64"
3214 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3215 tm_file=sparc/linux64.h
3217 fixincludes=Makefile.in # The headers are ok already.
3218 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3221 # This hasn't been upgraded to GCC 2.
3222 # tahoe-harris-*) # Harris tahoe, using COFF.
3223 # tm_file=tahoe/harris.h
3225 # tahoe-*-bsd*) # tahoe running BSD
3227 thumb-*-coff* | thumbel-*-coff*)
3229 out_file=arm/thumb.c
3230 xm_file=arm/xm-thumb.h
3231 md_file=arm/thumb.md
3232 tmake_file=arm/t-thumb
3233 fixincludes=Makefile.in # There is nothing to fix
3235 # This hasn't been upgraded to GCC 2.
3242 tm_file="v850/v850.h"
3243 xm_file="v850/xm-v850.h"
3244 tmake_file=v850/t-v850
3245 if test x$stabs = xyes
3247 tm_file="${tm_file} dbx.h"
3251 vax-*-bsd*) # vaxen running BSD
3255 vax-*-sysv*) # vaxen running system V
3256 tm_file="${tm_file} vax/vaxv.h"
3261 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3262 # On NetBSD, the headers are already okay, except for math.h.
3263 fixincludes=fixinc.wrap
3268 tmake_file="${tm_file} vax/t-openbsd"
3270 vax-*-ultrix*) # vaxen running ultrix
3271 tm_file="${tm_file} vax/ultrix.h"
3275 vax-*-vms*) # vaxen running VMS
3276 xm_file=vax/xm-vms.h
3280 vax-*-*) # vax default entry
3284 xm_file="${xm_file} xm-svr3"
3288 echo "Configuration $machine not supported" 1>&2
3295 ;; # Existing GNU/Linux systems do not use the GNU setup.
3297 # On the GNU system, the setup is just about the same on
3298 # each different CPU. The specific machines that GNU
3299 # supports are matched above and just set $cpu_type.
3300 xm_file="xm-gnu.h ${xm_file}"
3301 tm_file=${cpu_type}/gnu.h
3302 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3303 # GNU always uses ELF.
3305 # GNU tools are the only tools.
3308 # On GNU, the headers are already okay.
3309 fixincludes=Makefile.in
3310 xmake_file=x-linux # These details are the same as Linux.
3311 tmake_file=t-gnu # These are not.
3314 fixincludes=fixinc.svr4
3315 xmake_try_sysv=x-sysv
3316 install_headers_dir=install-headers-cpio
3319 install_headers_dir=install-headers-cpio
3323 # Distinguish i[34567]86
3324 # Also, do not run mips-tfile on MIPS if using gas.
3325 # Process --with-cpu= for PowerPC/rs6000
3326 target_cpu_default2=
3329 target_cpu_default2=1
3332 target_cpu_default2=2
3334 i686-*-* | i786-*-*)
3335 target_cpu_default2=3
3340 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_CIX|MASK_MAX"
3343 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3346 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3349 target_cpu_default2="MASK_CPU_EV5"
3353 if test x$gas = xyes
3355 if test "$target_cpu_default2" = ""
3357 target_cpu_default2="MASK_GAS"
3359 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3364 case "x$with_cpu" in
3367 target_cpu_default2="TARGET_CPU_generic"
3370 # Distinguish cores, and major variants
3371 # arm7m doesn't exist, but D & I don't affect code
3372 xarm[23678] | xarm250 | xarm[67][01]0 \
3373 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3374 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3375 | xstrongarm | xstrongarm110 | xstrongarm1100)
3376 target_cpu_default2="TARGET_CPU_$with_cpu"
3380 echo "--with-cpu must be passed a value" 1>&2
3385 if test x$pass2done = xyes
3387 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3394 mips*-*-ecoff* | mips*-*-elf*)
3395 if test x$gas = xyes
3397 if test x$gnu_ld = xyes
3399 target_cpu_default2=20
3401 target_cpu_default2=16
3406 if test x$gas = xyes
3408 target_cpu_default2=16
3411 powerpc*-*-* | rs6000-*-*)
3412 case "x$with_cpu" in
3416 xcommon | xpower | xpower2 | xpowerpc | xrios \
3417 | xrios1 | xrios2 | xrsc | xrsc1 \
3418 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3419 | xec603e | x740 | x750 | x401 \
3420 | x403 | x505 | x801 | x821 | x823 | x860)
3421 target_cpu_default2="\"$with_cpu\""
3425 echo "--with-cpu must be passed a value" 1>&2
3430 if test x$pass2done = xyes
3432 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3439 case ".$with_cpu" in
3441 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3443 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3444 target_cpu_default2="TARGET_CPU_$with_cpu"
3447 if test x$pass2done = xyes
3449 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3457 if test "$target_cpu_default2" != ""
3459 if test "$target_cpu_default" != ""
3461 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3463 target_cpu_default=$target_cpu_default2
3467 # No need for collect2 if we have the GNU linker.
3468 # Actually, there is now; GNU ld doesn't handle the EH info or
3469 # collecting for shared libraries.
3476 # Save data on machine being used to compile GCC in build_xm_file.
3477 # Save data on host machine in vars host_xm_file and host_xmake_file.
3478 if test x$pass1done = x
3480 if test x"$xm_file" = x
3481 then build_xm_file=$cpu_type/xm-$cpu_type.h
3482 else build_xm_file=$xm_file
3484 build_xm_defines=$xm_defines
3485 build_install_headers_dir=$install_headers_dir
3486 build_exeext=$exeext
3489 if test x$pass2done = x
3491 if test x"$xm_file" = x
3492 then host_xm_file=$cpu_type/xm-$cpu_type.h
3493 else host_xm_file=$xm_file
3495 host_xm_defines=$xm_defines
3496 if test x"$xmake_file" = x
3497 then xmake_file=$cpu_type/x-$cpu_type
3499 host_xmake_file="$xmake_file"
3500 host_truncate_target=$truncate_target
3501 host_extra_gcc_objs=$extra_gcc_objs
3502 host_extra_objs=$extra_host_objs
3509 extra_objs="${host_extra_objs} ${extra_objs}"
3511 # Default the target-machine variables that were not explicitly set.
3512 if test x"$tm_file" = x
3513 then tm_file=$cpu_type/$cpu_type.h; fi
3515 if test x$extra_headers = x
3516 then extra_headers=; fi
3518 if test x"$xm_file" = x
3519 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3521 if test x$md_file = x
3522 then md_file=$cpu_type/$cpu_type.md; fi
3524 if test x$out_file = x
3525 then out_file=$cpu_type/$cpu_type.c; fi
3527 if test x"$tmake_file" = x
3528 then tmake_file=$cpu_type/t-$cpu_type
3531 if test x"$dwarf2" = xyes
3532 then tm_file="tm-dwarf2.h $tm_file"
3535 if test x$float_format = x
3536 then float_format=i64
3539 if test $float_format = none
3540 then float_h_file=Makefile.in
3541 else float_h_file=float-$float_format.h
3544 if test x$enable_haifa = x
3547 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3552 # Handle cpp installation.
3553 if [[ x$enable_cpp != x ]]
3555 tmake_file="$tmake_file t-install-cpp"
3558 # Say what files are being used for the output code and MD file.
3559 echo "Using \`$srcdir/config/$out_file' to output insns."
3560 echo "Using \`$srcdir/config/$md_file' as machine description file."
3563 for f in $tm_file; do
3566 if test $count = ax; then
3567 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3569 echo "Using the following target machine macro files:"
3570 for f in $tm_file; do
3571 echo " $srcdir/config/$f"
3576 for f in $host_xm_file; do
3579 if test $count = ax; then
3580 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3582 echo "Using the following host machine macro files:"
3583 for f in $host_xm_file; do
3584 echo " $srcdir/config/$f"
3588 if test "$host_xm_file" != "$build_xm_file"; then
3590 for f in $build_xm_file; do
3593 if test $count = ax; then
3594 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3596 echo "Using the following build machine macro files:"
3597 for f in $build_xm_file; do
3598 echo " $srcdir/config/$f"
3603 if test x$thread_file = x; then
3604 if test x$target_thread_file != x; then
3605 thread_file=$target_thread_file
3607 thread_file='single'
3611 # Set up the header files.
3612 # $links is the list of header files to create.
3613 # $vars is the list of shell variables with file names to include.
3614 # auto-host.h is the file containing items generated by autoconf and is
3615 # the first file included by config.h.
3617 host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
3619 # If host=build, it is correct to have hconfig include auto-host.h
3620 # as well. If host!=build, we are in error and need to do more
3621 # work to find out the build config parameters.
3622 if test x$host = x$build
3624 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
3626 # We create a subdir, then run autoconf in the subdir.
3627 # To prevent recursion we set host and build for the new
3628 # invocation of configure to the build for this invocation
3635 /*) realsrcdir=${srcdir};;
3636 *) realsrcdir=../${srcdir};;
3638 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3639 --target=$target --host=$build --build=$build
3641 # We just finished tests for the build machine, so rename
3642 # the file auto-build.h in the gcc directory.
3643 mv auto-host.h ../auto-build.h
3646 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
3649 xm_file="gansidecl.h ${xm_file}"
3650 tm_file="gansidecl.h ${tm_file}"
3652 vars="host_xm_file tm_file xm_file build_xm_file"
3653 links="config.h tm.h tconfig.h hconfig.h"
3654 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3657 if test -f config.status; then mv -f config.status config.bak; fi
3660 while test -n "$vars"
3662 set $vars; var=$1; shift; vars=$*
3663 set $links; link=$1; shift; links=$*
3664 set $defines; define=$1; shift; defines=$*
3668 # Define TARGET_CPU_DEFAULT if the system wants one.
3669 # This substitutes for lots of *.h files.
3670 if test "$target_cpu_default" != "" -a $link = tm.h
3672 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3675 for file in `eval echo '$'$var`; do
3680 echo '#ifdef IN_GCC' >>$link
3683 echo "#include \"$file\"" >>$link
3688 echo '#endif' >>$link
3693 for def in `eval echo '$'$define`; do
3694 echo "#ifndef $def" >>$link
3695 echo "#define $def" >>$link
3696 echo "#endif" >>$link
3700 # Truncate the target if necessary
3701 if test x$host_truncate_target != x; then
3702 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3705 # Get the version trigger filename from the toplevel
3706 if test "${with_gcc_version_trigger+set}" = set; then
3707 gcc_version_trigger=$with_gcc_version_trigger
3709 gcc_version_trigger=${srcdir}/version.c
3712 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3715 # Internationalization
3717 VERSION="$gcc_version"
3718 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
3719 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
3725 # NLS support is still experimental, so disable it by default for now.
3727 [ --enable-nls use Native Language Support (disabled by default)],
3731 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
3733 # Get an absolute path to the GCC top-level source directory
3739 # Conditionalize the makefile for this host machine.
3740 # Make-host contains the concatenation of all host makefile fragments
3741 # [there can be more than one]. This file is built by configure.frag.
3742 host_overrides=Make-host
3743 dep_host_xmake_file=
3744 for f in .. ${host_xmake_file}
3746 if test -f ${srcdir}/config/$f
3748 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3752 # Conditionalize the makefile for this target machine.
3753 # Make-target contains the concatenation of all host makefile fragments
3754 # [there can be more than one]. This file is built by configure.frag.
3755 target_overrides=Make-target
3757 for f in .. ${tmake_file}
3759 if test -f ${srcdir}/config/$f
3761 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3765 # If the host doesn't support symlinks, modify CC in
3766 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3767 # Otherwise, we can use "CC=$(CC)".
3769 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3771 cc_set_by_configure="\$(CC)"
3772 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3775 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3777 symbolic_link="cp -p"
3781 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3782 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3786 out_object_file=`basename $out_file .c`.o
3789 for f in $tm_file; do
3790 if test $f != "gansidecl.h" ; then
3791 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3793 tm_file_list="${tm_file_list} $f"
3798 for f in $host_xm_file; do
3799 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3800 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3802 host_xm_file_list="${host_xm_file_list} $f"
3807 for f in $build_xm_file; do
3808 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3809 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3811 build_xm_file_list="${build_xm_file_list} $f"
3815 # Define macro CROSS_COMPILE in compilation
3816 # if this is a cross-compiler.
3817 # Also use all.cross instead of all.internal
3818 # and add cross-make to Makefile.
3819 cross_overrides="/dev/null"
3820 if test x$host != x$target
3822 cross_defines="CROSS=-DCROSS_COMPILE"
3823 cross_overrides="${topdir}/cross-make"
3826 # When building gcc with a cross-compiler, we need to fix a few things.
3827 # This must come after cross-make as we want all.build to override
3829 build_overrides="/dev/null"
3830 if test x$build != x$host
3832 build_overrides="${topdir}/build-make"
3835 # Expand extra_headers to include complete path.
3836 # This substitutes for lots of t-* files.
3838 if test "x$extra_headers" = x
3841 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3842 for file in $extra_headers;
3844 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3848 if test x$use_collect2 = xno; then
3852 # Add a definition of USE_COLLECT2 if system wants one.
3853 # Also tell toplev.c what to do.
3854 # This substitutes for lots of t-* files.
3855 if test x$use_collect2 = x
3860 will_use_collect2="collect2"
3861 maybe_use_collect2="-DUSE_COLLECT2"
3865 # Set MD_DEPS if the real md file is in md.pre-cpp.
3866 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3867 # for line oriented comments, so we must always use a GNU cpp. If
3868 # building gcc with a cross compiler, use the cross compiler just
3869 # built. Otherwise, we can use the cpp just built.
3871 if test "x$md_cppflags" = x
3873 md_file_sub=$srcdir/config/$md_file
3878 # If we have gas in the build tree, make a link to it.
3879 if test -f ../gas/Makefile; then
3880 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3883 # If we have nm in the build tree, make a link to it.
3884 if test -f ../binutils/Makefile; then
3885 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3888 # If we have ld in the build tree, make a link to it.
3889 if test -f ../ld/Makefile; then
3890 # if test x$use_collect2 = x; then
3891 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3893 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3897 # Figure out what assembler alignment features are present.
3898 AC_MSG_CHECKING(assembler alignment features)
3900 gcc_cv_as_alignment_features=
3901 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3902 if test -x "$DEFAULT_ASSEMBLER"; then
3903 gcc_cv_as="$DEFAULT_ASSEMBLER"
3904 elif test -x "$AS"; then
3906 elif test -x as$host_exeext; then
3907 # Build using assembler in the current directory.
3908 gcc_cv_as=./as$host_exeext
3909 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
3910 # Single tree build which includes gas.
3911 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3914 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3916 if test x$gcc_cv_gas_version != x; then
3921 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3922 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3924 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3925 # Gas version 2.6 and later support for .balign and .p2align.
3926 # bytes to skip when using .p2align.
3927 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
3928 gcc_cv_as_alignment_features=".balign and .p2align"
3929 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3931 # Gas version 2.8 and later support specifying the maximum
3932 # bytes to skip when using .p2align.
3933 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
3934 gcc_cv_as_alignment_features=".p2align including maximum skip"
3935 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3938 elif test x$host = x$target; then
3940 gcc_cv_as=as$host_exeext
3942 if test x$gcc_cv_as != x; then
3943 # Check if we have .balign and .p2align
3944 echo ".balign 4" > conftest.s
3945 echo ".p2align 2" >> conftest.s
3946 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3947 gcc_cv_as_alignment_features=".balign and .p2align"
3948 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3950 rm -f conftest.s conftest.o
3951 # Check if specifying the maximum bytes to skip when
3952 # using .p2align is supported.
3953 echo ".p2align 4,,7" > conftest.s
3954 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3955 gcc_cv_as_alignment_features=".p2align including maximum skip"
3956 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3958 rm -f conftest.s conftest.o
3960 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3962 AC_MSG_CHECKING(assembler subsection support)
3963 gcc_cv_as_subsections=
3964 if test x$gcc_cv_as != x; then
3965 # Check if we have .subsection
3966 echo ".subsection 1" > conftest.s
3967 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3968 gcc_cv_as_subsections=".subsection"
3969 if test -x nm$host_exeext; then
3970 gcc_cv_nm=./nm$host_exeext
3971 elif test x$host = x$target; then
3973 gcc_cv_nm=nm$host_exeext
3975 if test x$gcc_cv_nm != x; then
3976 cat > conftest.s <<EOF
3977 conftest_label1: .word 0
3979 conftest_label2: .word 0
3982 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3983 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3984 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3985 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3988 gcc_cv_as_subsections="working .subsection -1"
3989 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3994 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3996 AC_MSG_RESULT($gcc_cv_as_subsections)
3998 # Figure out what language subdirectories are present.
3999 # Look if the user specified --enable-languages="..."; if not, use
4000 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4002 if test x"${enable_languages+set}" != xset; then
4003 if test x"${LANGUAGES+set}" = xset; then
4004 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4006 enable_languages=all
4010 for lang in ${srcdir}/*/config-lang.in ..
4014 # The odd quoting in the next line works around
4015 # an apparent bug in bash 1.12 on linux.
4017 ${srcdir}/[*]/config-lang.in) ;;
4019 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4020 if test "x$lang_alias" = x
4022 echo "$lang doesn't set \$language." 1>&2
4025 if test x"${enable_languages}" = xall; then
4028 case "${enable_languages}" in
4029 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4037 if test x"${add_this_lang}" = xyes; then
4039 ${srcdir}/ada/config-lang.in)
4040 if test x$gnat = xyes ; then
4041 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4045 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4054 # Make gthr-default.h if we have a thread file.
4056 if test $thread_file != single; then
4057 rm -f gthr-default.h
4058 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4059 gthread_flags=-DHAVE_GTHR_DEFAULT
4061 AC_SUBST(gthread_flags)
4063 # Make empty files to contain the specs and options for each language.
4064 # Then add #include lines to for a compiler that has specs and/or options.
4069 rm -f specs.h options.h gencheck.h
4070 touch specs.h options.h gencheck.h
4071 for subdir in . $subdirs
4073 if test -f $srcdir/$subdir/lang-specs.h; then
4074 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4075 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4077 if test -f $srcdir/$subdir/lang-options.h; then
4078 echo "#include \"$subdir/lang-options.h\"" >>options.h
4079 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4081 if test -f $srcdir/$subdir/$subdir-tree.def; then
4082 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4083 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4087 # These (without "all_") are set in each config-lang.in.
4088 # `language' must be a single word so is spelled singularly.
4094 all_outputs='Makefile intl/Makefile po/Makefile.in'
4095 # List of language makefile fragments.
4100 # Add the language fragments.
4101 # Languages are added via two mechanisms. Some information must be
4102 # recorded in makefile variables, these are defined in config-lang.in.
4103 # We accumulate them and plug them into the main Makefile.
4104 # The other mechanism is a set of hooks for each of the main targets
4105 # like `clean', `install', etc.
4107 language_fragments="Make-lang"
4108 language_hooks="Make-hooks"
4111 for s in .. $subdirs
4123 . ${srcdir}/$s/config-lang.in
4124 if test "x$language" = x
4126 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4129 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4130 all_languages="$all_languages $language"
4131 if test "x$boot_language" = xyes
4133 all_boot_languages="$all_boot_languages $language"
4135 all_compilers="$all_compilers $compilers"
4136 all_stagestuff="$all_stagestuff $stagestuff"
4137 all_diff_excludes="$all_diff_excludes $diff_excludes"
4138 all_headers="$all_headers $headers"
4139 all_outputs="$all_outputs $outputs"
4140 if test x$outputs = x
4142 oldstyle_subdirs="$oldstyle_subdirs $s"
4144 all_lib2funcs="$all_lib2funcs $lib2funcs"
4148 # Since we can't use `::' targets, we link each language in
4149 # with a set of hooks, reached indirectly via lang.${target}.
4153 target_list="all.build all.cross start.encap rest.encap \
4155 install-normal install-common install-info install-man \
4157 mostlyclean clean distclean extraclean maintainer-clean \
4158 stage1 stage2 stage3 stage4"
4159 for t in $target_list
4162 for lang in .. $all_languages
4164 if test $lang != ".."; then
4168 echo "lang.$t: $x" >> Make-hooks
4171 # If we're not building in srcdir, create .gdbinit.
4173 if test ! -f Makefile.in; then
4174 echo "dir ." > .gdbinit
4175 echo "dir ${srcdir}" >> .gdbinit
4176 if test x$gdb_needs_out_file_path = xyes
4178 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4180 if test "x$subdirs" != x; then
4183 echo "dir ${srcdir}/$s" >> .gdbinit
4186 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4189 # Define variables host_canonical and build_canonical
4190 # because some Cygnus local changes in the Makefile depend on them.
4191 build_canonical=${build}
4192 host_canonical=${host}
4194 if test "${host}" != "${target}" ; then
4195 target_subdir=${target}/
4197 AC_SUBST(build_canonical)
4198 AC_SUBST(host_canonical)
4199 AC_SUBST(target_subdir)
4201 # If this is using newlib, then define inhibit_libc in
4202 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4203 # libgcc.a, but that's OK because newib should have its own version of
4206 if test x$with_newlib = xyes; then
4207 inhibit_libc=-Dinhibit_libc
4209 AC_SUBST(inhibit_libc)
4211 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4214 if test x$enable_haifa = xyes; then
4215 echo "Using the Haifa scheduler."
4217 sched_cflags=-DHAIFA
4219 AC_SUBST(sched_prefix)
4220 AC_SUBST(sched_cflags)
4221 if test x$enable_haifa != x; then
4222 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4223 for x in genattrtab.o toplev.o *sched.o; do
4231 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4232 # absolute path for gcc_tooldir based on inserting the number of up-directory
4233 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4234 # $(libsubdir)/@(unlibsubdir) based path.
4235 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4236 # make and thus we'd get different behavior depending on where we built the
4238 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4239 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4241 changequote(<<, >>)dnl
4242 # An explanation of the sed strings:
4243 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4244 # -e 's|/$||' match a trailing forward slash and eliminates it
4245 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4246 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4248 # (*) Note this pattern overwrites the first character of the string
4249 # with a forward slash if one is not already present. This is not a
4250 # problem because the exact names of the sub-directories concerned is
4251 # unimportant, just the number of them matters.
4253 # The practical upshot of these patterns is like this:
4255 # prefix exec_prefix result
4256 # ------ ----------- ------
4258 # /foo/ /foo/bar ../
4259 # /foo /foo/bar/ ../
4260 # /foo/ /foo/bar/ ../
4261 # /foo /foo/bar/ugg ../../
4263 gcc_tooldir="$(libsubdir)/$(unlibsubdir)/\`echo \$(exec_prefix) |
4264 sed -e 's|^\$(prefix)||' -e 's|/$||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`$(target_alias)"
4265 changequote([, ])dnl
4267 AC_SUBST(gcc_tooldir)
4269 # Warn if using init_priority.
4270 AC_MSG_CHECKING(whether to enable init_priority by default)
4271 if test x$enable_init_priority != xyes; then
4272 enable_init_priority=no
4274 AC_MSG_RESULT($enable_init_priority)
4276 # Nothing to do for FLOAT_H, float_format already handled.
4280 # Process the language and host/target makefile fragments.
4281 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4283 # Substitute configuration variables
4285 AC_SUBST(all_languages)
4286 AC_SUBST(all_boot_languages)
4287 AC_SUBST(all_compilers)
4288 AC_SUBST(all_lang_makefiles)
4289 AC_SUBST(all_stagestuff)
4290 AC_SUBST(all_diff_excludes)
4291 AC_SUBST(all_lib2funcs)
4292 AC_SUBST(all_headers)
4294 AC_SUBST(extra_passes)
4295 AC_SUBST(extra_programs)
4296 AC_SUBST(extra_parts)
4297 AC_SUBST(extra_c_objs)
4298 AC_SUBST(extra_cxx_objs)
4299 AC_SUBST(extra_cpp_objs)
4300 AC_SUBST(extra_c_flags)
4301 AC_SUBST(extra_objs)
4302 AC_SUBST(host_extra_gcc_objs)
4303 AC_SUBST(extra_headers_list)
4304 AC_SUBST(dep_host_xmake_file)
4305 AC_SUBST(dep_tmake_file)
4307 AC_SUBST(out_object_file)
4309 AC_SUBST(tm_file_list)
4310 AC_SUBST(build_xm_file_list)
4311 AC_SUBST(host_xm_file_list)
4312 AC_SUBST(lang_specs_files)
4313 AC_SUBST(lang_options_files)
4314 AC_SUBST(lang_tree_files)
4315 AC_SUBST(thread_file)
4316 AC_SUBST(objc_boehm_gc)
4318 AC_SUBST(gcc_version)
4319 AC_SUBST(gcc_version_trigger)
4320 AC_SUBST(local_prefix)
4321 AC_SUBST(gcc_gxx_include_dir)
4322 AC_SUBST(fixincludes)
4323 AC_SUBST(build_install_headers_dir)
4324 AC_SUBST(build_exeext)
4325 AC_SUBST(host_exeext)
4326 AC_SUBST(float_h_file)
4327 AC_SUBST(will_use_collect2)
4328 AC_SUBST(maybe_use_collect2)
4329 AC_SUBST(cc_set_by_configure)
4330 AC_SUBST(stage_prefix_set_by_configure)
4332 AC_SUBST(symbolic_link)
4333 AC_SUBST(cpp_install_dir)
4336 AC_SUBST_FILE(target_overrides)
4337 AC_SUBST_FILE(host_overrides)
4338 AC_SUBST(cross_defines)
4339 AC_SUBST_FILE(cross_overrides)
4340 AC_SUBST_FILE(build_overrides)
4341 AC_SUBST_FILE(language_fragments)
4342 AC_SUBST_FILE(language_hooks)
4344 # Echo that links are built
4345 if test x$host = x$target
4353 if test x$host != x$build
4355 str3=" on a $build system"
4358 if test "x$str2" != x || test "x$str3" != x
4363 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4365 if test "x$str2" != x || test "x$str3" != x
4367 echo " ${str2}${str3}." 1>&2
4370 # Truncate the target if necessary
4371 if test x$host_truncate_target != x; then
4372 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4375 # Configure the subdirectories
4376 # AC_CONFIG_SUBDIRS($subdirs)
4378 # Create the Makefile
4379 # and configure language subdirectories
4380 AC_OUTPUT($all_outputs,
4382 . $srcdir/configure.lang
4383 case x$CONFIG_HEADERS in
4384 xauto-host.h:config.in)
4387 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4388 # bootstrapping and the installation procedure can still use
4389 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4390 # FLAGS_TO_PASS has been modified to solve the problem there.
4391 # This is virtually a duplicate of what happens in configure.lang; we do
4392 # an extra check to make sure this only happens if ln -s can be used.
4393 if test "$symbolic_link" = "ln -s"; then
4394 for d in .. ${subdirs} ; do
4395 if test $d != ..; then
4398 for t in stage1 stage2 stage3 stage4 include
4401 $symbolic_link ../$t $t 2>/dev/null
4407 # Avoid having to add intl to our include paths.
4408 if test -f intl/libintl.h; then
4409 echo creating libintl.h
4410 echo '#include "intl/libintl.h"' >libintl.h
4417 target_alias='${target_alias}'
4419 subdirs='${subdirs}'
4420 oldstyle_subdirs='${oldstyle_subdirs}'
4421 symbolic_link='${symbolic_link}'
4422 program_transform_set='${program_transform_set}'
4423 program_transform_name='${program_transform_name}'
4424 dep_host_xmake_file='${dep_host_xmake_file}'
4425 host_xmake_file='${host_xmake_file}'
4426 dep_tmake_file='${dep_tmake_file}'
4427 tmake_file='${tmake_file}'
4428 thread_file='${thread_file}'
4429 gcc_version='${gcc_version}'
4430 gcc_version_trigger='${gcc_version_trigger}'
4431 local_prefix='${local_prefix}'
4432 build_install_headers_dir='${build_install_headers_dir}'
4433 build_exeext='${build_exeext}'
4434 host_exeext='${host_exeext}'
4435 out_file='${out_file}'
4436 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4437 SET_MAKE='${SET_MAKE}'
4438 target_list='${target_list}'
4439 target_overrides='${target_overrides}'
4440 host_overrides='${host_overrides}'
4441 cross_defines='${cross_defines}'
4442 cross_overrides='${cross_overrides}'
4443 build_overrides='${build_overrides}'
4444 cpp_install_dir='${cpp_install_dir}'