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 # Pass with no value to take the default
220 # Pass with a value to specify a thread package
221 AC_ARG_ENABLE(threads,
222 [ --enable-threads enable thread usage for target GCC.
223 --enable-threads=LIB use LIB thread package for target GCC.],
224 if test x$enable_threads = xno; then
229 enable_threads_flag=$enable_threads
230 # Check if a valid thread package
231 case x${enable_threads_flag} in
234 target_thread_file='single'
238 target_thread_file=''
240 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
241 xsolaris | xwin32 | xdce | xvxworks)
242 target_thread_file=$enable_threads_flag
245 echo "$enable_threads is an unknown thread package" 1>&2
250 AC_ARG_ENABLE(objc-gc,
251 [ --enable-objc-gc enable the use of Boehm's garbage collector with
252 the GNU Objective-C runtime.],
253 if [[[ x$enable_objc_gc = xno ]]]; then
260 AC_ARG_ENABLE(java-gc,
261 changequote(<<,>>)dnl
262 << --enable-java-gc=TYPE choose garbage collector [boehm]>>,
268 [ --enable-dwarf2 enable DWARF2 debugging as default.],
269 dwarf2="$with_dwarf2",
272 # Determine the host, build, and target systems
275 # Find the native compiler
278 # If the native compiler is GCC, we can enable warnings even in stage1.
279 # That's useful for people building cross-compilers, or just running a
281 if test "x$GCC" = "xyes"; then
282 stage1_warn_cflags='$(WARN_CFLAGS)'
284 stage1_warn_cflags=""
286 AC_SUBST(stage1_warn_cflags)
290 AC_MSG_CHECKING([whether a default assembler was specified])
291 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
292 if test x"$with_gas" = x"no"; then
293 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
295 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
301 AC_MSG_CHECKING([whether a default linker was specified])
302 if test x"${DEFAULT_LINKER+set}" = x"set"; then
303 if test x"$with_gnu_ld" = x"no"; then
304 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
306 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
312 # Find some useful tools
326 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)
328 # Check for thread headers.
329 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
330 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
332 # See if GNAT has been installed
333 AC_CHECK_PROG(gnat, gnatbind, yes, no)
335 # See if the system preprocessor understands the ANSI C preprocessor
336 # stringification operator.
337 AC_MSG_CHECKING(whether cpp understands the stringify operator)
338 AC_CACHE_VAL(gcc_cv_c_have_stringify,
341 char *test = S(foo);],
342 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
343 AC_MSG_RESULT($gcc_cv_c_have_stringify)
344 if test $gcc_cv_c_have_stringify = yes; then
345 AC_DEFINE(HAVE_CPP_STRINGIFY)
348 # Use <inttypes.h> only if it exists,
349 # doesn't clash with <sys/types.h>, and declares intmax_t.
350 AC_MSG_CHECKING(for inttypes.h)
351 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
353 [#include <sys/types.h>
354 #include <inttypes.h>],
356 [gcc_cv_header_inttypes_h=yes],
357 gcc_cv_header_inttypes_h=no)])
358 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
359 if test $gcc_cv_header_inttypes_h = yes; then
360 AC_DEFINE(HAVE_INTTYPES_H)
363 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
364 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
365 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
368 # Make sure wchar_t is available
369 #AC_CHECK_TYPE(wchar_t, unsigned int)
371 GCC_FUNC_VFPRINTF_DOPRNT
376 # Under some versions of uwin, vfork is notoriously buggy and the test
377 # can hang configure; on other versions, vfork exists just as a stub.
378 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
379 ac_cv_func_vfork_works=no
384 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
385 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
388 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
389 #include <sys/types.h>
390 #ifdef HAVE_SYS_RESOURCE_H
391 #include <sys/resource.h>
405 build_install_headers_dir=install-headers-tar
410 host_truncate_target=
413 # It is relative to $prefix.
416 # Decode the host machine, then the target machine.
417 # For the host machine, we save the xm_file variable as host_xm_file;
418 # then we decode the target machine and forget everything else
419 # that came from the host machine.
420 for machine in $build $host $target; do
434 # Set this to force installation and use of collect2.
436 # Set this to override the default target model.
438 # Set this to control how the header file directory is installed.
439 install_headers_dir=install-headers-tar
440 # Set this to a non-empty list of args to pass to cpp if the target
441 # wants its .md file passed through cpp.
443 # Set this if directory names should be truncated to 14 characters.
445 # Set this if gdb needs a dir command with `dirname $out_file`
446 gdb_needs_out_file_path=
447 # Set this if the build machine requires executables to have a
450 # Set this to control which thread package will be used.
452 # Reinitialize these from the flag values every loop pass, since some
453 # configure entries modify them.
455 gnu_ld="$gnu_ld_flag"
456 enable_threads=$enable_threads_flag
458 # Set default cpu_type, tm_file and xm_file so it can be updated in
459 # each machine entry.
460 cpu_type=`echo $machine | sed 's/-.*$//'`
496 tm_file=${cpu_type}/${cpu_type}.h
497 xm_file=${cpu_type}/xm-${cpu_type}.h
499 # Common parts for linux-gnu and openbsd systems
502 xm_defines="HAVE_ATEXIT POSIX BSTRING"
505 tm_file=${cpu_type}/openbsd.h
506 # On OpenBSD systems, the headers are okay
507 fixincludes=Makefile.in
508 tmake_file="t-libc-ok t-openbsd"
509 # avoid surprises, always provide an xm-openbsd file
510 xm_file=${cpu_type}/xm-openbsd.h
511 if test x$enable_threads = xyes; then
513 tmake_file="${tmake_file} t-openbsd-thread"
519 # Support site-specific machine types.
521 cpu_type=`echo $machine | sed -e 's/-.*//'`
522 rest=`echo $machine | sed -e "s/$cpu_type-//"`
523 xm_file=${cpu_type}/xm-$rest.h
524 tm_file=${cpu_type}/$rest.h
525 if test -f $srcdir/config/${cpu_type}/x-$rest; \
526 then xmake_file=${cpu_type}/x-$rest; \
529 if test -f $srcdir/config/${cpu_type}/t-$rest; \
530 then tmake_file=${cpu_type}/t-$rest; \
536 a29k-*-bsd* | a29k-*-sym1*)
537 tm_file="${tm_file} a29k/unix.h"
539 xmake_file=a29k/x-unix
542 a29k-*-udi | a29k-*-coff)
543 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
544 tmake_file=a29k/t-a29kbare
547 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
548 tmake_file=a29k/t-vx29k
549 extra_parts="crtbegin.o crtend.o"
550 thread_file='vxworks'
552 a29k-*-*) # Default a29k environment.
555 alpha*-*-linux-gnuecoff*)
556 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
557 target_cpu_default="MASK_GAS"
562 alpha*-*-linux-gnulibc1*)
563 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
564 target_cpu_default="MASK_GAS"
565 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
566 extra_parts="crtbegin.o crtend.o"
569 if test x$enable_threads = xyes; then
574 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
575 target_cpu_default="MASK_GAS"
576 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
577 extra_parts="crtbegin.o crtend.o"
580 if test x$enable_threads = xyes; then
585 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
586 target_cpu_default="MASK_GAS"
587 tmake_file="alpha/t-crtbe"
588 extra_parts="crtbegin.o crtend.o"
594 # default x-alpha is only appropriate for dec-osf.
595 target_cpu_default="MASK_GAS"
600 if test x$stabs = xyes
602 tm_file="${tm_file} dbx.h"
604 if test x$gas != xyes
606 extra_passes="mips-tfile mips-tdump"
611 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
616 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
619 tm_file="${tm_file} alpha/osf.h"
620 # Some versions of OSF4 (specifically X4.0-9 296.7) have
621 # a broken tar, so we use cpio instead.
622 install_headers_dir=install-headers-cpio
627 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
629 target_cpu_default=MASK_SUPPORT_ARCH
634 tm_file="${tm_file} dbx.h alpha/vxworks.h"
637 extra_passes="mips-tfile mips-tdump"
642 tm_file="${tm_file} alpha/win-nt.h"
643 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
645 xmake_file=winnt/x-winnt
646 extra_host_objs=oldnames.o
647 extra_gcc_objs="spawnv.o oldnames.o"
648 if test x$gnu_ld != xyes
650 extra_programs=ld.exe
652 if test x$enable_threads = xyes; then
658 xm_file="${xm_file} alpha/xm-vms.h"
659 tmake_file=alpha/t-vms
662 extra_parts="crtinit.o crtfini.o"
664 arm-*-coff* | armel-*-coff*)
666 tmake_file=arm/t-bare
669 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
671 tm_file=arm/riscix1-1.h
674 arm-*-riscix*) # Acorn RISC machine
677 tm_file=arm/rix-gas.h
681 xmake_file=arm/x-riscix
682 tmake_file=arm/t-riscix
685 arm-semi-aout | armel-semi-aout)
687 tmake_file=arm/t-semi
689 arm-semi-aof | armel-semi-aof)
690 tm_file=arm/semiaof.h
691 tmake_file=arm/t-semiaof
695 xm_file="arm/xm-netbsd.h ${xm_file}"
696 tmake_file="t-netbsd arm/t-netbsd"
698 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
701 tm_file=arm/linux-aout.h
702 tmake_file=arm/t-linux
705 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
706 xm_file=arm/xm-linux.h
710 tm_file=arm/linux-elf26.h
713 tm_file=arm/linux-elf.h
716 tmake_file="t-linux arm/t-linux"
717 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
722 tmake_file=arm/t-bare
725 tm_file=arm/ecos-elf.h
729 tm_file=arm/unknown-elf.h
730 tmake_file=arm/t-arm-elf
733 tm_file=arm/unknown-elf-oabi.h
734 tmake_file=arm/t-arm-elf
736 c1-convex-*) # Convex C1
740 c2-convex-*) # Convex C2
753 target_cpu_default=16
760 clipper-intergraph-clix*)
761 tm_file="${tm_file} svr3.h clipper/clix.h"
762 xm_file=clipper/xm-clix.h
763 xmake_file=clipper/x-clix
764 extra_headers=va-clipper.h
765 extra_parts="crtbegin.o crtend.o"
766 install_headers_dir=install-headers-cpio
773 # This hasn't been upgraded to GCC 2.
774 # fx80-alliant-*) # Alliant FX/80
780 target_cpu_default="MASK_SNAKE"
781 tmake_file=pa/t-openbsd
784 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
785 xm_file=pa/xm-papro.h
789 target_cpu_default="MASK_SNAKE"
790 tm_file="${tm_file} pa/pa-osf.h"
794 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
795 xm_file=pa/xm-papro.h
799 tm_file="${tm_file} pa/pa-osf.h"
803 target_cpu_default="MASK_SNAKE"
810 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
811 xm_file=pa/xm-pahpux.h
812 xmake_file=pa/x-pa-hpux
815 tm_file="${tm_file} pa/gas.h"
817 install_headers_dir=install-headers-cpio
821 hppa1.0-*-hpux8.0[0-2]*)
823 tm_file="${tm_file} pa/pa-hpux.h"
824 xm_file=pa/xm-pahpux.h
825 xmake_file=pa/x-pa-hpux
828 tm_file="${tm_file} pa/pa-gas.h"
830 tm_file="pa/pa-oldas.h ${tm_file}"
832 install_headers_dir=install-headers-cpio
836 hppa1.1-*-hpux8.0[0-2]*)
838 target_cpu_default="MASK_SNAKE"
839 tm_file="${tm_file} pa/pa-hpux.h"
840 xm_file=pa/xm-pahpux.h
841 xmake_file=pa/x-pa-hpux
844 tm_file="${tm_file} pa/pa-gas.h"
846 tm_file="pa/pa-oldas.h ${tm_file}"
848 install_headers_dir=install-headers-cpio
852 target_cpu_default="MASK_SNAKE"
853 tm_file="${tm_file} pa/pa-hpux.h"
854 xm_file=pa/xm-pahpux.h
855 xmake_file=pa/x-pa-hpux
858 tm_file="${tm_file} pa/pa-gas.h"
860 install_headers_dir=install-headers-cpio
864 tm_file="${tm_file} pa/pa-hpux.h"
865 xm_file=pa/xm-pahpux.h
866 xmake_file=pa/x-pa-hpux
869 tm_file="${tm_file} pa/pa-gas.h"
871 install_headers_dir=install-headers-cpio
874 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
875 target_cpu_default="MASK_SNAKE"
876 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
877 xm_file=pa/xm-pahpux.h
878 xmake_file=pa/x-pa-hpux
882 tm_file="${tm_file} pa/pa-gas.h"
884 if test x$enable_threads = x; then
885 enable_threads=$have_pthread_h
887 if test x$enable_threads = xyes; then
889 tmake_file="${tmake_file} pa/t-dce-thr"
891 install_headers_dir=install-headers-cpio
895 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
896 xm_file=pa/xm-pahpux.h
897 xmake_file=pa/x-pa-hpux
901 tm_file="${tm_file} pa/pa-gas.h"
903 if test x$enable_threads = x; then
904 enable_threads=$have_pthread_h
906 if test x$enable_threads = xyes; then
908 tmake_file="${tmake_file} pa/t-dce-thr"
910 install_headers_dir=install-headers-cpio
913 hppa1.1-*-hpux* | hppa2*-*-hpux*)
914 target_cpu_default="MASK_SNAKE"
915 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
916 xm_file=pa/xm-pahpux.h
917 xmake_file=pa/x-pa-hpux
920 tm_file="${tm_file} pa/pa-gas.h"
922 install_headers_dir=install-headers-cpio
926 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
927 xm_file=pa/xm-pahpux.h
928 xmake_file=pa/x-pa-hpux
931 tm_file="${tm_file} pa/pa-gas.h"
933 install_headers_dir=install-headers-cpio
936 hppa1.1-*-hiux* | hppa2*-*-hiux*)
937 target_cpu_default="MASK_SNAKE"
938 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
939 xm_file=pa/xm-pahpux.h
940 xmake_file=pa/x-pa-hpux
943 tm_file="${tm_file} pa/pa-gas.h"
945 install_headers_dir=install-headers-cpio
949 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
950 xm_file=pa/xm-pahpux.h
951 xmake_file=pa/x-pa-hpux
954 tm_file="${tm_file} pa/pa-gas.h"
956 install_headers_dir=install-headers-cpio
960 target_cpu_default="MASK_SNAKE"
966 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
970 tm_file=i386/aix386.h
971 extra_parts="crtbegin.o crtend.o"
972 tmake_file=i386/t-crtstuff
974 tm_file=i386/aix386ng.h
977 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
979 xmake_file=i386/x-aix
982 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
984 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
985 xm_defines="USG POSIX SMALL_ARG_MAX"
986 xmake_file=i386/x-ncr3000
987 if test x$stabs = xyes -a x$gas = xyes
989 tm_file=i386/sysv4gdb.h
993 extra_parts="crtbegin.o crtend.o"
994 tmake_file=i386/t-crtpic
1000 xm_file=i386/xm-next.h
1001 tmake_file=i386/t-next
1002 xmake_file=i386/x-next
1003 extra_objs=nextstep.o
1004 extra_parts="crtbegin.o crtend.o"
1005 if test x$enable_threads = xyes; then
1010 i[34567]86-sequent-bsd*) # 80386 from Sequent
1013 if test x$gas = xyes
1015 tm_file=i386/seq-gas.h
1017 tm_file=i386/sequent.h
1021 i[34567]86-sequent-ptx1*)
1023 xm_defines="USG SVR3"
1024 xmake_file=i386/x-sysv3
1025 tm_file=i386/seq-sysv3.h
1026 tmake_file=i386/t-crtstuff
1027 extra_parts="crtbegin.o crtend.o"
1028 install_headers_dir=install-headers-cpio
1031 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1033 xm_defines="USG SVR3"
1034 xmake_file=i386/x-sysv3
1035 tm_file=i386/seq2-sysv3.h
1036 tmake_file=i386/t-crtstuff
1037 extra_parts="crtbegin.o crtend.o"
1038 install_headers_dir=install-headers-cpio
1041 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1043 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1044 xm_defines="USG POSIX SMALL_ARG_MAX"
1046 tm_file=i386/ptx4-i.h
1048 extra_parts="crtbegin.o crtend.o"
1049 install_headers_dir=install-headers-cpio
1051 i386-sun-sunos*) # Sun i386 roadrunner
1057 i[34567]86-wrs-vxworks*)
1059 tm_file=i386/vxi386.h
1060 tmake_file=i386/t-i386bare
1065 tm_file=i386/i386-aout.h
1066 tmake_file=i386/t-i386bare
1069 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1071 tm_file=i386/bsd386.h
1072 # tmake_file=t-libc-ok
1077 tm_file=i386/386bsd.h
1078 # tmake_file=t-libc-ok
1079 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1083 i[34567]86-*-freebsdelf*)
1085 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
1086 # On FreeBSD, the headers are already ok, except for math.h.
1087 fixincludes=fixinc.wrap
1088 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1089 tmake_file=i386/t-freebsd
1095 i[34567]86-*-freebsd*)
1097 tm_file=i386/freebsd.h
1098 tmake_file=i386/t-freebsd
1101 i[34567]86-*-netbsd*)
1103 tm_file=i386/netbsd.h
1107 i[34567]86-*-openbsd*)
1109 # Remove when the math emulator is fixed
1110 target_cpu_default="MASK_NO_FANCY_MATH_387"
1111 # we need collect2 until our bug is fixed...
1117 tm_file=i386/i386-coff.h
1118 tmake_file=i386/t-i386bare
1121 i[34567]86-*-isc*) # 80386 running ISC system
1123 xm_file="${xm_file} i386/xm-isc.h"
1124 xm_defines="USG SVR3"
1127 i[34567]86-*-isc[34]*)
1129 xmake_file=i386/x-isc3
1132 xmake_file=i386/x-isc
1135 if test x$gas = xyes -a x$stabs = xyes
1137 tm_file=i386/iscdbx.h
1138 tmake_file=i386/t-svr3dbx
1139 extra_parts="svr3.ifile svr3z.ifile"
1141 tm_file=i386/isccoff.h
1142 tmake_file=i386/t-crtstuff
1143 extra_parts="crtbegin.o crtend.o"
1145 install_headers_dir=install-headers-cpio
1148 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1149 changequote([,])dnl # with a.out format using
1151 xmake_file=x-linux-aout
1152 tmake_file="t-linux-aout i386/t-crtstuff"
1153 tm_file=i386/linux-oldld.h
1158 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1159 changequote([,])dnl # with a.out format
1160 xmake_file=x-linux-aout
1161 tmake_file="t-linux-aout i386/t-crtstuff"
1162 tm_file=i386/linux-aout.h
1167 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1168 changequote([,])dnl # with ELF format using the
1169 # GNU/Linux C library 5
1171 tm_file=i386/linux.h
1172 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1173 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1176 if test x$enable_threads = xyes; then
1177 thread_file='single'
1181 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1182 changequote([,])dnl # with ELF format using glibc 2
1183 # aka GNU/Linux C library 6
1185 tm_file=i386/linux.h
1186 tmake_file="t-linux i386/t-crtstuff"
1187 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1190 if test x$enable_threads = xyes; then
1200 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1202 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1206 i[34567]86-pc-msdosdjgpp*)
1208 xm_file=i386/xm-djgpp.h
1209 tm_file=i386/djgpp.h
1210 tmake_file=i386/t-djgpp
1211 xmake_file=i386/x-djgpp
1215 case $host in *pc-msdosdjgpp*)
1221 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1224 tmake_file=t-libc-ok
1229 i[34567]86-*-lynxos*)
1231 if test x$gas = xyes
1235 tm_file=i386/lynx-ng.h
1237 xm_file=i386/xm-lynx.h
1238 tmake_file=i386/t-i386bare
1245 # tmake_file=t-libc-ok
1249 i[34567]86-*-osfrose*) # 386 using OSF/rose
1251 if test x$elf = xyes
1253 tm_file=i386/osfelf.h
1256 tm_file=i386/osfrose.h
1259 xm_file="i386/xm-osf.h ${xm_file}"
1260 xmake_file=i386/x-osfrose
1261 tmake_file=i386/t-osf
1262 extra_objs=halfpic.o
1265 i[34567]86-go32-rtems*)
1268 xm_file=i386/xm-go32.h
1269 tm_file=i386/go32-rtems.h
1270 tmake_file="i386/t-go32 t-rtems"
1273 i[34567]86-*-rtemself*)
1276 tm_file=i386/rtemself.h
1277 tmake_file="i386/t-i386bare t-rtems"
1280 i[34567]86-*-rtems*)
1283 tm_file=i386/rtems.h
1284 tmake_file="i386/t-i386bare t-rtems"
1287 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1289 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1290 xm_defines="USG SVR3"
1291 xmake_file=i386/x-sco5
1292 install_headers_dir=install-headers-cpio
1294 if test x$gas = xyes
1296 tm_file="i386/sco5gas.h ${tm_file}"
1297 tmake_file=i386/t-sco5gas
1299 tmake_file=i386/t-sco5
1301 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1304 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1306 xm_file="${xm_file} i386/xm-sco.h"
1307 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1308 xmake_file=i386/x-sco4
1309 install_headers_dir=install-headers-cpio
1310 if test x$stabs = xyes
1312 tm_file=i386/sco4dbx.h
1313 tmake_file=i386/t-svr3dbx
1314 extra_parts="svr3.ifile svr3z.rfile"
1317 tmake_file=i386/t-crtstuff
1318 extra_parts="crtbegin.o crtend.o"
1323 i[34567]86-*-sco*) # 80386 running SCO system
1325 xm_file=i386/xm-sco.h
1326 xmake_file=i386/x-sco
1327 install_headers_dir=install-headers-cpio
1328 if test x$stabs = xyes
1330 tm_file=i386/scodbx.h
1331 tmake_file=i386/t-svr3dbx
1332 extra_parts="svr3.ifile svr3z.rfile"
1335 extra_parts="crtbegin.o crtend.o"
1336 tmake_file=i386/t-crtstuff
1341 i[34567]86-*-solaris2*)
1343 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1344 xm_defines="USG POSIX SMALL_ARG_MAX"
1345 if test x$stabs = xyes
1347 tm_file=i386/sol2dbg.h
1351 tmake_file=i386/t-sol2
1352 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1354 if test x$enable_threads = xyes; then
1355 thread_file='solaris'
1359 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1361 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1362 xm_defines="USG POSIX"
1363 tm_file=i386/sysv4.h
1364 if test x$stabs = xyes
1366 tm_file="${tm_file} dbx.h"
1368 tmake_file=i386/t-crtpic
1370 extra_parts="crtbegin.o crtend.o"
1373 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1375 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1376 xm_defines="USG POSIX SMALL_ARG_MAX"
1377 tm_file=i386/sysv4.h
1378 if test x$stabs = xyes
1380 tm_file="${tm_file} dbx.h"
1382 tmake_file=i386/t-crtpic
1384 extra_parts="crtbegin.o crtend.o"
1387 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1389 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1390 xm_defines="USG POSIX"
1392 tmake_file="i386/t-crtpic i386/t-udk"
1394 extra_parts="crtbegin.o crtend.o"
1397 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1400 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1401 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1402 if test x$stabs = xyes
1404 tm_file=i386/osf1elfgdb.h
1406 tm_file=i386/osf1elf.h
1408 tmake_file=i386/t-osf1elf
1409 xmake_file=i386/x-osf1elf
1410 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1413 i[34567]86-*-sysv*) # Intel 80386's running system V
1415 xm_defines="USG SVR3"
1416 xmake_file=i386/x-sysv3
1417 if test x$gas = xyes
1419 if test x$stabs = xyes
1421 tm_file=i386/svr3dbx.h
1422 tmake_file=i386/t-svr3dbx
1423 extra_parts="svr3.ifile svr3z.rfile"
1425 tm_file=i386/svr3gas.h
1426 extra_parts="crtbegin.o crtend.o"
1427 tmake_file=i386/t-crtstuff
1430 tm_file=i386/sysv3.h
1431 extra_parts="crtbegin.o crtend.o"
1432 tmake_file=i386/t-crtstuff
1435 i386-*-vsta) # Intel 80386's running VSTa kernel
1436 xm_file="${xm_file} i386/xm-vsta.h"
1438 tmake_file=i386/t-vsta
1439 xmake_file=i386/x-vsta
1444 xm_file="${xm_file} i386/xm-cygwin.h"
1445 tmake_file=i386/t-cygwin
1446 tm_file=i386/win32.h
1447 xmake_file=i386/x-cygwin
1449 if test x$enable_threads = xyes; then
1455 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1457 xm_file="${xm_file} i386/xm-cygwin.h"
1458 tmake_file=i386/t-cygwin
1459 tm_file=i386/cygwin.h
1460 xmake_file=i386/x-cygwin
1462 if test x$enable_threads = xyes; then
1468 i[34567]86-*-mingw32*)
1470 tm_file=i386/mingw32.h
1471 xm_file="${xm_file} i386/xm-mingw32.h"
1472 tmake_file="i386/t-cygwin i386/t-mingw32"
1474 xmake_file=i386/x-cygwin
1475 if test x$enable_threads = xyes; then
1482 *minwg32crt* | *mingw32*)
1483 tm_file="${tm_file} i386/crtdll.h"
1491 xm_file="${xm_file} i386/xm-uwin.h"
1492 xm_defines="USG NO_STAB_H NO_SYS_SIGLIST"
1493 tmake_file="i386/t-cygwin i386/t-uwin"
1495 xmake_file=i386/x-cygwin
1496 fixincludes=Makefile.in
1497 if test x$enable_threads = xyes; then
1503 i[34567]86-*-winnt3*)
1505 tm_file=i386/win-nt.h
1506 out_file=i386/i386.c
1507 xm_file="xm-winnt.h ${xm_file}"
1508 xmake_file=winnt/x-winnt
1509 tmake_file=i386/t-winnt
1510 extra_host_objs="winnt.o oldnames.o"
1511 extra_gcc_objs="spawnv.o oldnames.o"
1512 if test x$gnu_ld != xyes
1514 extra_programs=ld.exe
1516 if test x$enable_threads = xyes; then
1521 i[34567]86-dg-dgux*)
1523 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1524 xm_defines="USG POSIX"
1525 out_file=i386/dgux.c
1527 tmake_file=i386/t-dgux
1528 xmake_file=i386/x-dgux
1529 install_headers_dir=install-headers-cpio
1531 i860-alliant-*) # Alliant FX/2800
1532 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1533 xm_file="${xm_file}"
1534 xmake_file=i860/x-fx2800
1535 tmake_file=i860/t-fx2800
1536 extra_parts="crtbegin.o crtend.o"
1539 tm_file="${tm_file} i860/bsd.h"
1540 if test x$gas = xyes
1542 tm_file="${tm_file} i860/bsd-gas.h"
1547 tm_file="${tm_file} i860/mach.h"
1548 tmake_file=t-libc-ok
1550 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1551 tm_file="${tm_file} svr3.h i860/paragon.h"
1552 xm_defines="USG SVR3"
1556 tm_file="${tm_file} svr3.h i860/sysv3.h"
1557 xm_defines="USG SVR3"
1558 xmake_file=i860/x-sysv3
1559 extra_parts="crtbegin.o crtend.o"
1562 tm_file="${tm_file} svr4.h i860/sysv4.h"
1563 xm_defines="USG SVR3"
1564 xmake_file=i860/x-sysv4
1566 extra_parts="crtbegin.o crtend.o"
1568 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1569 tm_file="${tm_file} i960/vx960.h"
1570 tmake_file=i960/t-vxworks960
1572 thread_file='vxworks'
1574 i960-wrs-vxworks5* | i960-wrs-vxworks)
1575 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1576 tmake_file=i960/t-vxworks960
1578 thread_file='vxworks'
1581 tm_file="${tm_file} i960/vx960.h"
1582 tmake_file=i960/t-vxworks960
1584 thread_file='vxworks'
1587 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1588 tmake_file=i960/t-960bare
1592 tmake_file="i960/t-960bare t-rtems"
1593 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1596 i960-*-*) # Default i960 environment.
1600 extra_parts="crtinit.o crtfini.o"
1602 m68000-convergent-sysv*)
1604 xm_file="m68k/xm-3b1.h ${xm_file}"
1607 extra_headers=math-68881.h
1609 m68000-hp-bsd*) # HP 9000/200 running BSD
1610 tm_file=m68k/hp2bsd.h
1611 xmake_file=m68k/x-hp2bsd
1613 extra_headers=math-68881.h
1615 m68000-hp-hpux*) # HP 9000 series 300
1616 xm_file="xm_alloca.h ${xm_file}"
1617 xm_defines="USG NO_SYS_SIGLIST"
1618 if test x$gas = xyes
1620 xmake_file=m68k/x-hp320g
1621 tm_file=m68k/hp310g.h
1623 xmake_file=m68k/x-hp320
1624 tm_file=m68k/hp310.h
1626 install_headers_dir=install-headers-cpio
1628 extra_headers=math-68881.h
1633 extra_headers=math-68881.h
1636 tm_file=m68k/sun2o4.h
1638 extra_headers=math-68881.h
1641 xm_file="m68k/xm-3b1.h ${xm_file}"
1643 if test x$gas = xyes
1650 extra_headers=math-68881.h
1652 m68k-apple-aux*) # Apple Macintosh running A/UX
1653 xm_defines="USG AUX"
1654 tmake_file=m68k/t-aux
1655 install_headers_dir=install-headers-cpio
1656 extra_headers=math-68881.h
1657 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1659 if test "$gnu_ld" = yes
1661 tm_file="${tm_file} m68k/auxgld.h"
1663 tm_file="${tm_file} m68k/auxld.h"
1665 if test "$gas" = yes
1667 tm_file="${tm_file} m68k/auxgas.h"
1669 tm_file="${tm_file} m68k/auxas.h"
1671 tm_file="${tm_file} m68k/a-ux.h"
1675 tm_file=m68k/apollo68.h
1676 xmake_file=m68k/x-apollo68
1678 extra_headers=math-68881.h
1681 m68k-altos-sysv*) # Altos 3068
1682 if test x$gas = xyes
1684 tm_file=m68k/altos3068.h
1687 echo "The Altos is supported only with the GNU assembler" 1>&2
1690 extra_headers=math-68881.h
1692 m68k-bull-sysv*) # Bull DPX/2
1693 if test x$gas = xyes
1695 if test x$stabs = xyes
1697 tm_file=m68k/dpx2cdbx.h
1699 tm_file=m68k/dpx2g.h
1704 xm_file="xm-alloca.h ${xm_file}"
1706 xmake_file=m68k/x-dpx2
1708 extra_headers=math-68881.h
1710 m68k-atari-sysv4*) # Atari variant of V.4.
1711 tm_file=m68k/atari.h
1712 xm_file="xm-alloca.h ${xm_file}"
1713 xm_defines="USG FULL_PROTOTYPES"
1715 extra_parts="crtbegin.o crtend.o"
1716 extra_headers=math-68881.h
1719 m68k-motorola-sysv*)
1720 tm_file=m68k/mot3300.h
1721 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1722 xm_defines=NO_SYS_SIGLIST
1723 if test x$gas = xyes
1725 xmake_file=m68k/x-mot3300-gas
1726 if test x$gnu_ld = xyes
1728 tmake_file=m68k/t-mot3300-gald
1730 tmake_file=m68k/t-mot3300-gas
1734 xmake_file=m68k/x-mot3300
1735 if test x$gnu_ld = xyes
1737 tmake_file=m68k/t-mot3300-gld
1739 tmake_file=m68k/t-mot3300
1743 gdb_needs_out_file_path=yes
1744 extra_parts="crt0.o mcrt0.o"
1745 extra_headers=math-68881.h
1748 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1749 tm_file=m68k/tower-as.h
1750 xm_defines="USG SVR3"
1751 xmake_file=m68k/x-tower
1752 extra_parts="crtbegin.o crtend.o"
1753 extra_headers=math-68881.h
1756 tm_file=m68k/plexus.h
1757 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1760 extra_headers=math-68881.h
1764 xm_file="xm-alloca.h ${xm_file}"
1766 extra_headers=math-68881.h
1769 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1770 xm_defines="USG unos"
1771 xmake_file=m68k/x-crds
1774 extra_headers=math-68881.h
1776 m68k-cbm-sysv4*) # Commodore variant of V.4.
1778 xm_file="xm-alloca.h ${xm_file}"
1779 xm_defines="USG FULL_PROTOTYPES"
1780 xmake_file=m68k/x-amix
1782 extra_parts="crtbegin.o crtend.o"
1783 extra_headers=math-68881.h
1787 tm_file=m68k/ccur-GAS.h
1788 xmake_file=m68k/x-ccur
1789 extra_headers=math-68881.h
1793 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1794 tm_file=m68k/hp3bsd44.h
1795 xmake_file=m68k/x-hp3bsd44
1797 extra_headers=math-68881.h
1800 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1801 tm_file=m68k/hp3bsd.h
1803 extra_headers=math-68881.h
1807 if test x$with_fp = xno
1809 tm_file=m68k/isi-nfp.h
1815 extra_headers=math-68881.h
1817 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1818 xm_file="xm_alloca.h ${xm_file}"
1819 xm_defines="USG NO_SYS_SIGLIST"
1820 if test x$gas = xyes
1822 xmake_file=m68k/x-hp320g
1823 tm_file=m68k/hp320g.h
1825 xmake_file=m68k/x-hp320
1826 tm_file=m68k/hpux7.h
1828 install_headers_dir=install-headers-cpio
1830 extra_headers=math-68881.h
1833 m68k-hp-hpux*) # HP 9000 series 300
1834 xm_file="xm_alloca.h ${xm_file}"
1835 xm_defines="USG NO_SYS_SIGLIST"
1836 if test x$gas = xyes
1838 xmake_file=m68k/x-hp320g
1839 tm_file=m68k/hp320g.h
1841 xmake_file=m68k/x-hp320
1842 tm_file=m68k/hp320.h
1844 install_headers_dir=install-headers-cpio
1846 extra_headers=math-68881.h
1850 tm_file=m68k/sun3mach.h
1852 extra_headers=math-68881.h
1856 if test x$gas = xyes
1858 tm_file=m68k/news3gas.h
1860 tm_file=m68k/news3.h
1863 extra_headers=math-68881.h
1866 m68k-sony-bsd* | m68k-sony-newsos*)
1867 if test x$gas = xyes
1869 tm_file=m68k/newsgas.h
1874 extra_headers=math-68881.h
1877 m68k-next-nextstep2*)
1878 tm_file=m68k/next21.h
1879 xm_file="m68k/xm-next.h ${xm_file}"
1880 tmake_file=m68k/t-next
1881 xmake_file=m68k/x-next
1882 extra_objs=nextstep.o
1883 extra_headers=math-68881.h
1887 m68k-next-nextstep3*)
1889 xm_file="m68k/xm-next.h ${xm_file}"
1890 tmake_file=m68k/t-next
1891 xmake_file=m68k/x-next
1892 extra_objs=nextstep.o
1893 extra_parts="crtbegin.o crtend.o"
1894 extra_headers=math-68881.h
1896 if test x$enable_threads = xyes; then
1901 if test x$with_fp = xno
1903 tm_file=m68k/sun3n3.h
1905 tm_file=m68k/sun3o3.h
1909 extra_headers=math-68881.h
1911 m68k-sun-sunos*) # For SunOS 4 (the default).
1912 if test x$with_fp = xno
1914 tm_file=m68k/sun3n.h
1920 extra_headers=math-68881.h
1923 tm_file=m68k/vxm68k.h
1924 tmake_file=m68k/t-vxworks68
1925 extra_headers=math-68881.h
1926 thread_file='vxworks'
1930 tmake_file=m68k/t-m68kbare
1931 tm_file="m68k/m68k-aout.h libgloss.h"
1932 extra_headers=math-68881.h
1936 tmake_file=m68k/t-m68kbare
1937 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1938 extra_headers=math-68881.h
1941 m68020-*-elf* | m68k-*-elf*)
1942 tm_file="m68k/m68020-elf.h libgloss.h"
1943 xm_file=m68k/xm-m68kv.h
1944 tmake_file=m68k/t-m68kelf
1945 header_files=math-68881.h
1948 if test x$gas = xyes
1952 tm_file=m68k/lynx-ng.h
1954 xm_file=m68k/xm-lynx.h
1956 tmake_file=m68k/t-lynx
1957 extra_headers=math-68881.h
1961 tm_file=m68k/netbsd.h
1967 # we need collect2 until our bug is fixed...
1970 m68k-*-sysv3*) # Motorola m68k's running system V.3
1971 xm_file="xm-alloca.h ${xm_file}"
1973 xmake_file=m68k/x-m68kv
1974 extra_parts="crtbegin.o crtend.o"
1975 extra_headers=math-68881.h
1978 m68k-*-sysv4*) # Motorola m68k's running system V.4
1979 tm_file=m68k/m68kv4.h
1980 xm_file="xm-alloca.h ${xm_file}"
1983 extra_parts="crtbegin.o crtend.o"
1984 extra_headers=math-68881.h
1987 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1990 tm_file=m68k/linux-aout.h
1991 tmake_file="t-linux-aout m68k/t-linux-aout"
1992 extra_headers=math-68881.h
1996 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1997 # with ELF format using the
1998 # GNU/Linux C library 5
2000 tm_file=m68k/linux.h
2001 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2002 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2003 extra_headers=math-68881.h
2007 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2008 # with ELF format using glibc 2
2009 # aka the GNU/Linux C library 6.
2011 tm_file=m68k/linux.h
2012 tmake_file="t-linux m68k/t-linux"
2013 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2014 extra_headers=math-68881.h
2017 if test x$enable_threads = xyes; then
2022 tmake_file=m68k/t-m68kbare
2023 tm_file=m68k/m68k-psos.h
2024 extra_headers=math-68881.h
2028 tmake_file="m68k/t-m68kbare t-rtems"
2029 tm_file=m68k/rtems.h
2030 extra_headers=math-68881.h
2037 tm_file=m88k/dguxbcs.h
2038 tmake_file=m88k/t-dguxbcs
2042 tmake_file=m88k/t-dgux
2045 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2046 xmake_file=m88k/x-dgux
2047 if test x$gas = xyes
2049 tmake_file=m88k/t-dgux-gas
2052 m88k-dolphin-sysv3*)
2053 tm_file=m88k/dolph.h
2054 extra_parts="crtbegin.o crtend.o"
2055 xm_file="m88k/xm-sysv3.h ${xm_file}"
2056 xmake_file=m88k/x-dolph
2057 if test x$gas = xyes
2059 tmake_file=m88k/t-m88k-gas
2062 m88k-tektronix-sysv3)
2063 tm_file=m88k/tekXD88.h
2064 extra_parts="crtbegin.o crtend.o"
2065 xm_file="m88k/xm-sysv3.h ${xm_file}"
2066 xmake_file=m88k/x-tekXD88
2067 if test x$gas = xyes
2069 tmake_file=m88k/t-m88k-gas
2073 tm_file=m88k/m88k-aout.h
2076 tm_file=m88k/m88k-coff.h
2077 tmake_file=m88k/t-bug
2081 extra_parts="crtbegin.o crtend.o"
2082 if test x$gas = xyes
2084 tmake_file=m88k/t-luna-gas
2086 tmake_file=m88k/t-luna
2090 tmake_file="${tmake_file} m88k/t-luna-gas"
2093 tm_file=m88k/sysv3.h
2094 extra_parts="crtbegin.o crtend.o"
2095 xm_file="m88k/xm-sysv3.h ${xm_file}"
2096 xmake_file=m88k/x-sysv3
2097 if test x$gas = xyes
2099 tmake_file=m88k/t-m88k-gas
2103 tm_file=m88k/sysv4.h
2104 extra_parts="crtbegin.o crtend.o"
2105 xmake_file=m88k/x-sysv4
2106 tmake_file=m88k/t-sysv4
2108 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2109 tm_file=mips/iris6.h
2110 xm_file=mips/xm-iris6.h
2111 xmake_file=mips/x-iris6
2112 tmake_file=mips/t-iris6
2113 # if test x$enable_threads = xyes; then
2114 # thread_file='irix'
2118 tm_file="mips/elf.h libgloss.h"
2119 tmake_file=mips/t-ecoff
2122 extra_parts="crtbegin.o crtend.o"
2123 thread_file='vxworks'
2125 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2126 tm_file="mips/iris6.h mips/cross64.h"
2128 xm_file="mips/xm-iris5.h"
2129 xmake_file=mips/x-iris
2130 tmake_file=mips/t-cross64
2131 # See comment in mips/iris[56].h files.
2133 # if test x$enable_threads = xyes; then
2134 # thread_file='irix'
2138 if test x$gas = xyes
2140 if test x$stabs = xyes
2142 tm_file=mips/iris5gdb.h
2144 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2147 tm_file=mips/sni-svr4.h
2150 xmake_file=mips/x-sni-svr4
2151 tmake_file=mips/t-mips-gas
2152 if test x$gnu_ld != xyes
2157 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2158 if test x$gas = xyes
2160 tm_file="mips/iris5.h mips/iris5gas.h"
2161 if test x$stabs = xyes
2163 tm_file="${tm_file} dbx.h"
2166 tm_file=mips/iris5.h
2169 xm_file="mips/xm-iris5.h"
2170 xmake_file=mips/x-iris
2171 # mips-tfile doesn't work yet
2172 tmake_file=mips/t-mips-gas
2173 # See comment in mips/iris5.h file.
2175 # if test x$enable_threads = xyes; then
2176 # thread_file='irix'
2179 mips-sgi-irix4loser*) # Mostly like a MIPS.
2180 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2181 if test x$stabs = xyes; then
2182 tm_file="${tm_file} dbx.h"
2185 xmake_file=mips/x-iris
2186 if test x$gas = xyes
2188 tmake_file=mips/t-mips-gas
2190 extra_passes="mips-tfile mips-tdump"
2192 if test x$gnu_ld != xyes
2196 # if test x$enable_threads = xyes; then
2197 # thread_file='irix'
2200 mips-sgi-irix4*) # Mostly like a MIPS.
2201 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2202 if test x$stabs = xyes; then
2203 tm_file="${tm_file} dbx.h"
2206 xmake_file=mips/x-iris
2207 if test x$gas = xyes
2209 tmake_file=mips/t-mips-gas
2211 extra_passes="mips-tfile mips-tdump"
2213 if test x$gnu_ld != xyes
2217 # if test x$enable_threads = xyes; then
2218 # thread_file='irix'
2221 mips-sgi-*) # Mostly like a MIPS.
2222 tm_file="mips/iris3.h ${tm_file}"
2223 if test x$stabs = xyes; then
2224 tm_file="${tm_file} dbx.h"
2227 xmake_file=mips/x-iris3
2228 if test x$gas = xyes
2230 tmake_file=mips/t-mips-gas
2232 extra_passes="mips-tfile mips-tdump"
2234 if test x$gnu_ld != xyes
2239 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2240 tm_file="mips/osfrose.h ${tm_file}"
2241 xmake_file=mips/x-osfrose
2242 tmake_file=mips/t-osfrose
2243 extra_objs=halfpic.o
2246 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2247 tm_file=mips/dec-osf1.h
2248 if test x$stabs = xyes; then
2249 tm_file="${tm_file} dbx.h"
2251 xmake_file=mips/x-dec-osf1
2252 if test x$gas = xyes
2254 tmake_file=mips/t-mips-gas
2256 tmake_file=mips/t-ultrix
2257 extra_passes="mips-tfile mips-tdump"
2259 if test x$gnu_ld != xyes
2264 mips-dec-bsd*) # Decstation running 4.4 BSD
2265 tm_file=mips/dec-bsd.h
2266 if test x$gas = xyes
2268 tmake_file=mips/t-mips-gas
2270 tmake_file=mips/t-ultrix
2271 extra_passes="mips-tfile mips-tdump"
2273 if test x$gnu_ld != xyes
2278 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2279 tm_file=mips/netbsd.h
2280 # On NetBSD, the headers are already okay, except for math.h.
2283 mips*-*-linux*) # Linux MIPS, either endian.
2285 xm_file="xm-siglist.h ${xm_file}"
2287 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2288 *) tm_file="mips/elf.h mips/linux.h" ;;
2290 extra_parts="crtbegin.o crtend.o"
2293 fixincludes=Makefile.in
2295 mips*el-*-openbsd*) # mips little endian
2296 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2297 tm_file=mips/openbsd.h
2300 mips*-*-openbsd*) # mips big endian
2301 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2302 tm_file=mips/openbsd-be.h
2305 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2306 tm_file="mips/news4.h ${tm_file}"
2307 if test x$stabs = xyes; then
2308 tm_file="${tm_file} dbx.h"
2310 if test x$gas = xyes
2312 tmake_file=mips/t-mips-gas
2314 extra_passes="mips-tfile mips-tdump"
2316 if test x$gnu_ld != xyes
2320 xmake_file=mips/x-sony
2322 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2323 # That is based on svr4.
2324 # t-svr4 is not right because this system doesn't use ELF.
2325 tm_file="mips/news5.h ${tm_file}"
2326 if test x$stabs = xyes; then
2327 tm_file="${tm_file} dbx.h"
2329 xm_file="xm-siglist.h ${xm_file}"
2331 if test x$gas = xyes
2333 tmake_file=mips/t-mips-gas
2335 extra_passes="mips-tfile mips-tdump"
2337 if test x$gnu_ld != xyes
2342 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2343 tm_file="mips/svr4-5.h mips/svr4-t.h"
2344 if test x$stabs = xyes; then
2345 tm_file="${tm_file} dbx.h"
2347 xm_file="xm-siglist.h ${xm_file}"
2349 xmake_file=mips/x-sysv
2350 if test x$gas = xyes
2352 tmake_file=mips/t-mips-gas
2353 extra_parts="crtbegin.o crtend.o"
2355 tmake_file=mips/t-mips
2356 extra_passes="mips-tfile mips-tdump"
2358 if test x$gnu_ld != xyes
2363 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2364 tm_file="mips/ultrix.h ${tm_file}"
2365 if test x$stabs = xyes; then
2366 tm_file="${tm_file} dbx.h"
2368 xmake_file=mips/x-ultrix
2369 if test x$gas = xyes
2371 tmake_file=mips/t-mips-gas
2373 tmake_file=mips/t-ultrix
2374 extra_passes="mips-tfile mips-tdump"
2376 if test x$gnu_ld != xyes
2382 mips-*-riscos[56789]bsd*)
2384 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2385 if test x$stabs = xyes; then
2386 tm_file="${tm_file} dbx.h"
2388 if test x$gas = xyes
2390 tmake_file=mips/t-bsd-gas
2392 tmake_file=mips/t-bsd
2393 extra_passes="mips-tfile mips-tdump"
2395 if test x$gnu_ld != xyes
2401 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2403 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2404 if test x$stabs = xyes; then
2405 tm_file="${tm_file} dbx.h"
2407 if test x$gas = xyes
2409 tmake_file=mips/t-bsd-gas
2411 tmake_file=mips/t-bsd
2412 extra_passes="mips-tfile mips-tdump"
2414 if test x$gnu_ld != xyes
2420 mips-*-riscos[56789]sysv4*)
2422 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2423 if test x$stabs = xyes; then
2424 tm_file="${tm_file} dbx.h"
2426 xm_file="xm-siglist.h ${xm_file}"
2427 xmake_file=mips/x-sysv
2428 if test x$gas = xyes
2430 tmake_file=mips/t-svr4-gas
2432 tmake_file=mips/t-svr4
2433 extra_passes="mips-tfile mips-tdump"
2435 if test x$gnu_ld != xyes
2441 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2443 tm_file="mips/svr4-4.h ${tm_file}"
2444 if test x$stabs = xyes; then
2445 tm_file="${tm_file} dbx.h"
2448 xmake_file=mips/x-sysv
2449 if test x$gas = xyes
2451 tmake_file=mips/t-svr4-gas
2453 tmake_file=mips/t-svr4
2454 extra_passes="mips-tfile mips-tdump"
2456 if test x$gnu_ld != xyes
2462 mips-*-riscos[56789]sysv*)
2464 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2465 if test x$stabs = xyes; then
2466 tm_file="${tm_file} dbx.h"
2469 xmake_file=mips/x-sysv
2470 if test x$gas = xyes
2472 tmake_file=mips/t-svr3-gas
2474 tmake_file=mips/t-svr3
2475 extra_passes="mips-tfile mips-tdump"
2477 if test x$gnu_ld != xyes
2482 mips-*-sysv* | mips-*-riscos*sysv*)
2483 tm_file="mips/svr3-4.h ${tm_file}"
2484 if test x$stabs = xyes; then
2485 tm_file="${tm_file} dbx.h"
2488 xmake_file=mips/x-sysv
2489 if test x$gas = xyes
2491 tmake_file=mips/t-svr3-gas
2493 tmake_file=mips/t-svr3
2494 extra_passes="mips-tfile mips-tdump"
2496 if test x$gnu_ld != xyes
2502 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2504 tm_file=mips/mips-5.h
2505 if test x$stabs = xyes; then
2506 tm_file="${tm_file} dbx.h"
2508 if test x$gas = xyes
2510 tmake_file=mips/t-mips-gas
2512 extra_passes="mips-tfile mips-tdump"
2514 if test x$gnu_ld != xyes
2522 tm_file=mips/ecoffl.h
2523 if test x$stabs = xyes; then
2524 tm_file="${tm_file} dbx.h"
2526 tmake_file=mips/t-ecoff
2529 tm_file="gofast.h mips/ecoff.h"
2530 if test x$stabs = xyes; then
2531 tm_file="${tm_file} dbx.h"
2533 tmake_file=mips/t-ecoff
2536 tm_file="mips/elfl.h libgloss.h"
2537 tmake_file=mips/t-ecoff
2540 tm_file="mips/elf.h libgloss.h"
2541 tmake_file=mips/t-ecoff
2544 tm_file="mips/elfl64.h libgloss.h"
2545 tmake_file=mips/t-ecoff
2547 mips64orionel-*-elf*)
2548 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2549 tmake_file=mips/t-ecoff
2552 tm_file="mips/elf64.h libgloss.h"
2553 tmake_file=mips/t-ecoff
2556 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2557 tmake_file=mips/t-ecoff
2559 mips64orion-*-rtems*)
2560 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2561 tmake_file="mips/t-ecoff t-rtems"
2564 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2565 tmake_file=mips/t-r3900
2568 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2569 tmake_file=mips/t-r3900
2570 # FIXME mips-elf should be fixed to use crtstuff.
2573 mips-*-*) # Default MIPS RISC-OS 4.0.
2574 if test x$stabs = xyes; then
2575 tm_file="${tm_file} dbx.h"
2577 if test x$gas = xyes
2579 tmake_file=mips/t-mips-gas
2581 extra_passes="mips-tfile mips-tdump"
2583 if test x$gnu_ld != xyes
2590 tm_file="mn10200/mn10200.h"
2591 if test x$stabs = xyes
2593 tm_file="${tm_file} dbx.h"
2599 tm_file="mn10300/mn10300.h"
2600 if test x$stabs = xyes
2602 tm_file="${tm_file} dbx.h"
2607 tm_file=ns32k/encore.h
2611 tm_file=ns32k/sequent.h
2615 tm_file=ns32k/tek6100.h
2619 tm_file=ns32k/tek6200.h
2622 # This has not been updated to GCC 2.
2625 # xmake_file=ns32k/x-genix
2626 # tm_file=ns32k/genix.h
2630 tm_file=ns32k/merlin.h
2634 tm_file=ns32k/pc532-mach.h
2638 tm_file=ns32k/pc532-min.h
2639 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2644 tm_file=ns32k/netbsd.h
2645 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2646 # On NetBSD, the headers are already okay, except for math.h.
2650 tm_file="${tm_file} pdp11/2bsd.h"
2659 xmake_file=pyr/x-pyr
2666 xmake_file=romp/x-mach
2673 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2678 tm_file=rs6000/beos.h
2679 xm_file=rs6000/xm-beos.h
2680 tmake_file=rs6000/t-beos
2681 xmake_file=rs6000/x-beos
2683 powerpc-*-sysv* | powerpc-*-elf*)
2684 tm_file=rs6000/sysv4.h
2685 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2686 xm_defines="USG POSIX"
2687 extra_headers=ppc-asm.h
2688 if test x$gas = xyes
2690 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2692 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2694 xmake_file=rs6000/x-sysv4
2697 tm_file=rs6000/eabiaix.h
2698 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2699 extra_headers=ppc-asm.h
2702 tm_file=rs6000/eabisim.h
2703 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2704 extra_headers=ppc-asm.h
2707 tm_file=rs6000/eabi.h
2708 if test x$gas = xyes
2710 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2712 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2714 extra_headers=ppc-asm.h
2717 tm_file=rs6000/rtems.h
2718 if test x$gas = xyes
2720 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2722 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2724 extra_headers=ppc-asm.h
2726 powerpc-*-linux-gnulibc1)
2727 tm_file=rs6000/linux.h
2728 xm_file=rs6000/xm-sysv4.h
2729 out_file=rs6000/rs6000.c
2730 if test x$gas = xyes
2732 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2734 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2737 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2738 extra_headers=ppc-asm.h
2739 if test x$enable_threads = xyes; then
2743 powerpc-*-linux-gnu*)
2744 tm_file=rs6000/linux.h
2745 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2746 xm_defines="USG ${xm_defines}"
2747 out_file=rs6000/rs6000.c
2748 if test x$gas = xyes
2750 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2752 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2755 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2756 extra_headers=ppc-asm.h
2757 if test x$enable_threads = xyes; then
2761 powerpc-wrs-vxworks*)
2763 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2764 xm_defines="USG POSIX"
2765 tm_file=rs6000/vxppc.h
2766 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2767 extra_headers=ppc-asm.h
2768 thread_file='vxworks'
2770 powerpcle-*-sysv* | powerpcle-*-elf*)
2771 tm_file=rs6000/sysv4le.h
2772 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2773 xm_defines="USG POSIX"
2774 if test x$gas = xyes
2776 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2778 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2780 xmake_file=rs6000/x-sysv4
2781 extra_headers=ppc-asm.h
2783 powerpcle-*-eabisim*)
2784 tm_file=rs6000/eabilesim.h
2785 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2786 extra_headers=ppc-asm.h
2789 tm_file=rs6000/eabile.h
2790 if test x$gas = xyes
2792 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2794 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2796 extra_headers=ppc-asm.h
2798 powerpcle-*-winnt* )
2799 tm_file=rs6000/win-nt.h
2800 tmake_file=rs6000/t-winnt
2802 if test x$enable_threads = xyes; then
2805 extra_headers=ppc-asm.h
2807 powerpcle-*-pe | powerpcle-*-cygwin*)
2808 tm_file=rs6000/cygwin.h
2809 xm_file="rs6000/xm-cygwin.h ${xm_file}"
2810 tmake_file=rs6000/t-winnt
2811 xmake_file=rs6000/x-cygwin
2813 if test x$enable_threads = xyes; then
2817 extra_headers=ppc-asm.h
2819 powerpcle-*-solaris2*)
2820 tm_file=rs6000/sol2.h
2821 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2822 xm_defines="USG POSIX"
2823 if test x$gas = xyes
2825 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2827 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2829 xmake_file=rs6000/x-sysv4
2830 extra_headers=ppc-asm.h
2833 rs6000-ibm-aix3.[01]*)
2835 tm_file=rs6000/aix31.h
2836 xmake_file=rs6000/x-aix31
2841 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2843 tm_file=rs6000/aix3newas.h
2844 if test x$host != x$target
2846 tmake_file=rs6000/t-xnewas
2848 tmake_file=rs6000/t-newas
2854 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2856 if test "$gnu_ld" = yes
2858 tm_file=rs6000/aix41-gld.h
2860 tm_file=rs6000/aix41.h
2862 if test x$host != x$target
2864 tmake_file=rs6000/t-xnewas
2866 tmake_file=rs6000/t-newas
2868 xmake_file=rs6000/x-aix41
2873 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2875 tm_file=rs6000/aix43.h
2876 if test x$host != x$target
2878 tmake_file=rs6000/t-xaix43
2880 tmake_file=rs6000/t-aix43
2882 xmake_file=rs6000/x-aix43
2887 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2889 tm_file=rs6000/aix43.h
2890 if test x$host != x$target
2892 tmake_file=rs6000/t-xaix43
2894 tmake_file=rs6000/t-aix43
2896 xmake_file=rs6000/x-aix43
2909 tm_file=rs6000/mach.h
2910 xm_file="${xm_file} rs6000/xm-mach.h"
2911 xmake_file=rs6000/x-mach
2915 tm_file=rs6000/lynx.h
2916 xm_file=rs6000/xm-lynx.h
2917 tmake_file=rs6000/t-rs6000
2918 xmake_file=rs6000/x-lynx
2926 tmake_file="sh/t-sh t-rtems"
2927 tm_file=sh/rtemself.h
2931 tmake_file="sh/t-sh t-rtems"
2940 xm_file="xm-alloca.h ${xm_file}"
2943 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2944 tm_file=sparc/vxsparc.h
2945 tmake_file=sparc/t-vxsparc
2947 thread_file='vxworks'
2950 tmake_file=sparc/t-sparcbare
2951 tm_file="sparc/aout.h libgloss.h"
2954 tm_file=sparc/netbsd.h
2958 # we need collect2 until our bug is fixed...
2966 tmake_file=sparc/t-elf
2967 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2971 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2972 xm_file="${xm_file} sparc/xm-linux.h"
2973 tm_file=sparc/linux-aout.h
2977 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2978 xm_file="${xm_file} sparc/xm-linux.h"
2980 tm_file=sparc/linux.h
2981 tmake_file="t-linux t-linux-gnulibc1"
2982 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2985 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2986 xm_file="${xm_file} sparc/xm-linux.h"
2988 tm_file=sparc/linux.h
2989 tmake_file="t-linux"
2990 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2992 if test x$enable_threads = xyes; then
2997 if test x$gas = xyes
2999 tm_file=sparc/lynx.h
3001 tm_file=sparc/lynx-ng.h
3003 xm_file=sparc/xm-lynx.h
3004 tmake_file=sparc/t-sunos41
3008 tmake_file="sparc/t-sparcbare t-rtems"
3009 tm_file=sparc/rtems.h
3011 sparcv9-*-solaris2*)
3012 tm_file=sparc/sol2-sld-64.h
3013 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3014 xm_defines="USG POSIX"
3015 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3016 xmake_file=sparc/x-sysv4
3017 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3019 if test x${enable_threads} = x ; then
3020 enable_threads=$have_pthread_h
3021 if test x${enable_threads} = x ; then
3022 enable_threads=$have_thread_h
3025 if test x${enable_threads} = xyes ; then
3026 if test x${have_pthread_h} = xyes ; then
3029 thread_file='solaris'
3033 sparc-hal-solaris2*)
3034 xm_file=sparc/xm-sol2.h
3035 tm_file="sparc/sol2.h sparc/hal.h"
3036 tmake_file="sparc/t-halos sparc/t-sol2"
3037 xmake_file=sparc/x-sysv4
3038 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3039 fixincludes=fixinc.svr4
3043 if test x$gnu_ld = xyes
3045 tm_file=sparc/sol2.h
3047 tm_file=sparc/sol2-sld.h
3049 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3050 xm_defines="USG POSIX"
3051 tmake_file=sparc/t-sol2
3052 xmake_file=sparc/x-sysv4
3053 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3064 if test x${enable_threads} = x; then
3065 enable_threads=$have_pthread_h
3066 if test x${enable_threads} = x; then
3067 enable_threads=$have_thread_h
3070 if test x${enable_threads} = xyes; then
3071 if test x${have_pthread_h} = xyes; then
3074 thread_file='solaris'
3079 tm_file=sparc/sunos4.h
3080 tmake_file=sparc/t-sunos40
3084 tm_file=sparc/sunos4.h
3085 tmake_file=sparc/t-sunos41
3087 if test x$gas = xyes; then
3088 tm_file="${tm_file} sparc/sun4gas.h"
3092 tm_file=sparc/sun4o3.h
3096 tm_file=sparc/sysv4.h
3097 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3098 xm_defines="USG POSIX"
3100 xmake_file=sparc/x-sysv4
3101 extra_parts="crtbegin.o crtend.o"
3104 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3105 xm_defines="USG POSIX"
3106 tm_file=sparc/vxsim.h
3107 tmake_file=sparc/t-vxsparc
3108 xmake_file=sparc/x-sysv4
3111 tm_file="sparc/splet.h libgloss.h"
3112 tmake_file=sparc/t-splet
3115 tm_file="sparc/litecoff.h libgloss.h"
3116 tmake_file=sparc/t-sparclite
3119 tm_file="sparc/lite.h aoutos.h libgloss.h"
3120 tmake_file=sparc/t-sparclite
3123 tmake_file=sparc/t-sp64
3124 tm_file=sparc/sp64-aout.h
3127 tmake_file=sparc/t-sp64
3128 tm_file=sparc/sp64-elf.h
3129 extra_parts="crtbegin.o crtend.o"
3131 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3132 tmake_file="t-linux sparc/t-linux64"
3133 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3134 tm_file=sparc/linux64.h
3136 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3139 # This hasn't been upgraded to GCC 2.
3140 # tahoe-harris-*) # Harris tahoe, using COFF.
3141 # tm_file=tahoe/harris.h
3143 # tahoe-*-bsd*) # tahoe running BSD
3145 thumb-*-coff* | thumbel-*-coff*)
3147 out_file=arm/thumb.c
3148 xm_file=arm/xm-thumb.h
3149 md_file=arm/thumb.md
3150 tmake_file=arm/t-thumb
3152 # This hasn't been upgraded to GCC 2.
3159 tm_file="v850/v850.h"
3160 xm_file="v850/xm-v850.h"
3161 tmake_file=v850/t-v850
3162 if test x$stabs = xyes
3164 tm_file="${tm_file} dbx.h"
3168 vax-*-bsd*) # vaxen running BSD
3172 vax-*-sysv*) # vaxen running system V
3173 tm_file="${tm_file} vax/vaxv.h"
3178 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3183 tmake_file="${tm_file} vax/t-openbsd"
3185 vax-*-ultrix*) # vaxen running ultrix
3186 tm_file="${tm_file} vax/ultrix.h"
3190 vax-*-vms*) # vaxen running VMS
3191 xm_file=vax/xm-vms.h
3195 vax-*-*) # vax default entry
3199 xm_file="${xm_file} xm-svr3"
3203 echo "Configuration $machine not supported" 1>&2
3210 ;; # Existing GNU/Linux systems do not use the GNU setup.
3212 # On the GNU system, the setup is just about the same on
3213 # each different CPU. The specific machines that GNU
3214 # supports are matched above and just set $cpu_type.
3215 xm_file="xm-gnu.h ${xm_file}"
3216 tm_file=${cpu_type}/gnu.h
3217 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3218 # GNU always uses ELF.
3220 # GNU tools are the only tools.
3223 xmake_file=x-linux # These details are the same as Linux.
3224 tmake_file=t-gnu # These are not.
3227 xmake_try_sysv=x-sysv
3228 install_headers_dir=install-headers-cpio
3231 install_headers_dir=install-headers-cpio
3235 # Distinguish i[34567]86
3236 # Also, do not run mips-tfile on MIPS if using gas.
3237 # Process --with-cpu= for PowerPC/rs6000
3238 target_cpu_default2=
3241 target_cpu_default2=1
3244 target_cpu_default2=2
3246 i686-*-* | i786-*-*)
3247 target_cpu_default2=3
3252 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_CIX|MASK_MAX"
3255 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3258 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3261 target_cpu_default2="MASK_CPU_EV5"
3265 if test x$gas = xyes
3267 if test "$target_cpu_default2" = ""
3269 target_cpu_default2="MASK_GAS"
3271 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3276 case "x$with_cpu" in
3279 target_cpu_default2="TARGET_CPU_generic"
3282 # Distinguish cores, and major variants
3283 # arm7m doesn't exist, but D & I don't affect code
3284 xarm[23678] | xarm250 | xarm[67][01]0 \
3285 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3286 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3287 | xstrongarm | xstrongarm110 | xstrongarm1100)
3288 target_cpu_default2="TARGET_CPU_$with_cpu"
3292 echo "--with-cpu must be passed a value" 1>&2
3297 if test x$pass2done = xyes
3299 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3306 mips*-*-ecoff* | mips*-*-elf*)
3307 if test x$gas = xyes
3309 if test x$gnu_ld = xyes
3311 target_cpu_default2=20
3313 target_cpu_default2=16
3318 if test x$gas = xyes
3320 target_cpu_default2=16
3323 powerpc*-*-* | rs6000-*-*)
3324 case "x$with_cpu" in
3328 xcommon | xpower | xpower2 | xpowerpc | xrios \
3329 | xrios1 | xrios2 | xrsc | xrsc1 \
3330 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3331 | xec603e | x740 | x750 | x401 \
3332 | x403 | x505 | x801 | x821 | x823 | x860)
3333 target_cpu_default2="\"$with_cpu\""
3337 echo "--with-cpu must be passed a value" 1>&2
3342 if test x$pass2done = xyes
3344 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3351 case ".$with_cpu" in
3353 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3355 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3356 target_cpu_default2="TARGET_CPU_$with_cpu"
3359 if test x$pass2done = xyes
3361 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3369 if test "$target_cpu_default2" != ""
3371 if test "$target_cpu_default" != ""
3373 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3375 target_cpu_default=$target_cpu_default2
3379 # No need for collect2 if we have the GNU linker.
3380 # Actually, there is now; GNU ld doesn't handle the EH info or
3381 # collecting for shared libraries.
3388 # Save data on machine being used to compile GCC in build_xm_file.
3389 # Save data on host machine in vars host_xm_file and host_xmake_file.
3390 if test x$pass1done = x
3392 if test x"$xm_file" = x
3393 then build_xm_file=$cpu_type/xm-$cpu_type.h
3394 else build_xm_file=$xm_file
3396 build_xm_defines=$xm_defines
3397 build_install_headers_dir=$install_headers_dir
3398 build_exeext=$exeext
3401 if test x$pass2done = x
3403 if test x"$xm_file" = x
3404 then host_xm_file=$cpu_type/xm-$cpu_type.h
3405 else host_xm_file=$xm_file
3407 host_xm_defines=$xm_defines
3408 if test x"$xmake_file" = x
3409 then xmake_file=$cpu_type/x-$cpu_type
3411 host_xmake_file="$xmake_file"
3412 host_truncate_target=$truncate_target
3413 host_extra_gcc_objs=$extra_gcc_objs
3414 host_extra_objs=$extra_host_objs
3421 extra_objs="${host_extra_objs} ${extra_objs}"
3423 # Default the target-machine variables that were not explicitly set.
3424 if test x"$tm_file" = x
3425 then tm_file=$cpu_type/$cpu_type.h; fi
3427 if test x$extra_headers = x
3428 then extra_headers=; fi
3430 if test x"$xm_file" = x
3431 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3433 if test x$md_file = x
3434 then md_file=$cpu_type/$cpu_type.md; fi
3436 if test x$out_file = x
3437 then out_file=$cpu_type/$cpu_type.c; fi
3439 if test x"$tmake_file" = x
3440 then tmake_file=$cpu_type/t-$cpu_type
3443 if test x"$dwarf2" = xyes
3444 then tm_file="tm-dwarf2.h $tm_file"
3447 if test x$float_format = x
3448 then float_format=i64
3451 if test $float_format = none
3452 then float_h_file=Makefile.in
3453 else float_h_file=float-$float_format.h
3456 if test x$enable_haifa = x
3459 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3464 # Handle cpp installation.
3465 if [[ x$enable_cpp != x ]]
3467 tmake_file="$tmake_file t-install-cpp"
3470 # Say what files are being used for the output code and MD file.
3471 echo "Using \`$srcdir/config/$out_file' to output insns."
3472 echo "Using \`$srcdir/config/$md_file' as machine description file."
3475 for f in $tm_file; do
3478 if test $count = ax; then
3479 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3481 echo "Using the following target machine macro files:"
3482 for f in $tm_file; do
3483 echo " $srcdir/config/$f"
3488 for f in $host_xm_file; do
3491 if test $count = ax; then
3492 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3494 echo "Using the following host machine macro files:"
3495 for f in $host_xm_file; do
3496 echo " $srcdir/config/$f"
3500 if test "$host_xm_file" != "$build_xm_file"; then
3502 for f in $build_xm_file; do
3505 if test $count = ax; then
3506 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3508 echo "Using the following build machine macro files:"
3509 for f in $build_xm_file; do
3510 echo " $srcdir/config/$f"
3515 if test x$thread_file = x; then
3516 if test x$target_thread_file != x; then
3517 thread_file=$target_thread_file
3519 thread_file='single'
3523 # Set up the header files.
3524 # $links is the list of header files to create.
3525 # $vars is the list of shell variables with file names to include.
3526 # auto-host.h is the file containing items generated by autoconf and is
3527 # the first file included by config.h.
3529 host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
3531 # If host=build, it is correct to have hconfig include auto-host.h
3532 # as well. If host!=build, we are in error and need to do more
3533 # work to find out the build config parameters.
3534 if test x$host = x$build
3536 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
3538 # We create a subdir, then run autoconf in the subdir.
3539 # To prevent recursion we set host and build for the new
3540 # invocation of configure to the build for this invocation
3547 /*) realsrcdir=${srcdir};;
3548 *) realsrcdir=../${srcdir};;
3550 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3551 --target=$target --host=$build --build=$build
3553 # We just finished tests for the build machine, so rename
3554 # the file auto-build.h in the gcc directory.
3555 mv auto-host.h ../auto-build.h
3558 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
3561 xm_file="gansidecl.h ${xm_file}"
3562 tm_file="gansidecl.h ${tm_file}"
3564 vars="host_xm_file tm_file xm_file build_xm_file"
3565 links="config.h tm.h tconfig.h hconfig.h"
3566 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3569 if test -f config.status; then mv -f config.status config.bak; fi
3572 while test -n "$vars"
3574 set $vars; var=$1; shift; vars=$*
3575 set $links; link=$1; shift; links=$*
3576 set $defines; define=$1; shift; defines=$*
3580 # Define TARGET_CPU_DEFAULT if the system wants one.
3581 # This substitutes for lots of *.h files.
3582 if test "$target_cpu_default" != "" -a $link = tm.h
3584 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3587 for file in `eval echo '$'$var`; do
3592 echo '#ifdef IN_GCC' >>$link
3595 echo "#include \"$file\"" >>$link
3600 echo '#endif' >>$link
3605 for def in `eval echo '$'$define`; do
3606 echo "#ifndef $def" >>$link
3607 echo "#define $def" >>$link
3608 echo "#endif" >>$link
3612 # Truncate the target if necessary
3613 if test x$host_truncate_target != x; then
3614 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3617 # Get the version trigger filename from the toplevel
3618 if test "${with_gcc_version_trigger+set}" = set; then
3619 gcc_version_trigger=$with_gcc_version_trigger
3621 gcc_version_trigger=${srcdir}/version.c
3624 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3627 # Internationalization
3629 VERSION="$gcc_version"
3630 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
3631 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
3637 # NLS support is still experimental, so disable it by default for now.
3639 [ --enable-nls use Native Language Support (disabled by default)],
3643 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
3645 # Get an absolute path to the GCC top-level source directory
3651 # Conditionalize the makefile for this host machine.
3652 # Make-host contains the concatenation of all host makefile fragments
3653 # [there can be more than one]. This file is built by configure.frag.
3654 host_overrides=Make-host
3655 dep_host_xmake_file=
3656 for f in .. ${host_xmake_file}
3658 if test -f ${srcdir}/config/$f
3660 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3664 # Conditionalize the makefile for this target machine.
3665 # Make-target contains the concatenation of all host makefile fragments
3666 # [there can be more than one]. This file is built by configure.frag.
3667 target_overrides=Make-target
3669 for f in .. ${tmake_file}
3671 if test -f ${srcdir}/config/$f
3673 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3677 # If the host doesn't support symlinks, modify CC in
3678 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3679 # Otherwise, we can use "CC=$(CC)".
3681 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3683 cc_set_by_configure="\$(CC)"
3684 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3687 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3689 symbolic_link="cp -p"
3693 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3694 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3698 out_object_file=`basename $out_file .c`.o
3701 for f in $tm_file; do
3702 if test $f != "gansidecl.h" ; then
3703 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3705 tm_file_list="${tm_file_list} $f"
3710 for f in $host_xm_file; do
3711 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3712 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3714 host_xm_file_list="${host_xm_file_list} $f"
3719 for f in $build_xm_file; do
3720 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3721 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3723 build_xm_file_list="${build_xm_file_list} $f"
3727 # Define macro CROSS_COMPILE in compilation
3728 # if this is a cross-compiler.
3729 # Also use all.cross instead of all.internal
3730 # and add cross-make to Makefile.
3731 cross_overrides="/dev/null"
3732 if test x$host != x$target
3734 cross_defines="CROSS=-DCROSS_COMPILE"
3735 cross_overrides="${topdir}/cross-make"
3738 # When building gcc with a cross-compiler, we need to fix a few things.
3739 # This must come after cross-make as we want all.build to override
3741 build_overrides="/dev/null"
3742 if test x$build != x$host
3744 build_overrides="${topdir}/build-make"
3747 # Expand extra_headers to include complete path.
3748 # This substitutes for lots of t-* files.
3750 if test "x$extra_headers" = x
3753 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3754 for file in $extra_headers;
3756 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3760 if test x$use_collect2 = xno; then
3764 # Add a definition of USE_COLLECT2 if system wants one.
3765 # Also tell toplev.c what to do.
3766 # This substitutes for lots of t-* files.
3767 if test x$use_collect2 = x
3772 will_use_collect2="collect2"
3773 maybe_use_collect2="-DUSE_COLLECT2"
3777 # Set MD_DEPS if the real md file is in md.pre-cpp.
3778 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3779 # for line oriented comments, so we must always use a GNU cpp. If
3780 # building gcc with a cross compiler, use the cross compiler just
3781 # built. Otherwise, we can use the cpp just built.
3783 if test "x$md_cppflags" = x
3785 md_file_sub=$srcdir/config/$md_file
3790 # If we have gas in the build tree, make a link to it.
3791 if test -f ../gas/Makefile; then
3792 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3795 # If we have nm in the build tree, make a link to it.
3796 if test -f ../binutils/Makefile; then
3797 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3800 # If we have ld in the build tree, make a link to it.
3801 if test -f ../ld/Makefile; then
3802 # if test x$use_collect2 = x; then
3803 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3805 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3809 # Figure out what assembler alignment features are present.
3810 AC_MSG_CHECKING(assembler alignment features)
3812 gcc_cv_as_alignment_features=
3813 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3814 if test -x "$DEFAULT_ASSEMBLER"; then
3815 gcc_cv_as="$DEFAULT_ASSEMBLER"
3816 elif test -x "$AS"; then
3818 elif test -x as$host_exeext; then
3819 # Build using assembler in the current directory.
3820 gcc_cv_as=./as$host_exeext
3821 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
3822 # Single tree build which includes gas.
3823 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3826 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3828 if test x$gcc_cv_gas_version != x; then
3833 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3834 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3836 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3837 # Gas version 2.6 and later support for .balign and .p2align.
3838 # bytes to skip when using .p2align.
3839 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
3840 gcc_cv_as_alignment_features=".balign and .p2align"
3841 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3843 # Gas version 2.8 and later support specifying the maximum
3844 # bytes to skip when using .p2align.
3845 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
3846 gcc_cv_as_alignment_features=".p2align including maximum skip"
3847 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3850 elif test x$host = x$target; then
3852 gcc_cv_as=as$host_exeext
3854 if test x$gcc_cv_as != x; then
3855 # Check if we have .balign and .p2align
3856 echo ".balign 4" > conftest.s
3857 echo ".p2align 2" >> conftest.s
3858 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3859 gcc_cv_as_alignment_features=".balign and .p2align"
3860 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3862 rm -f conftest.s conftest.o
3863 # Check if specifying the maximum bytes to skip when
3864 # using .p2align is supported.
3865 echo ".p2align 4,,7" > conftest.s
3866 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3867 gcc_cv_as_alignment_features=".p2align including maximum skip"
3868 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3870 rm -f conftest.s conftest.o
3872 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3874 AC_MSG_CHECKING(assembler subsection support)
3875 gcc_cv_as_subsections=
3876 if test x$gcc_cv_as != x; then
3877 # Check if we have .subsection
3878 echo ".subsection 1" > conftest.s
3879 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3880 gcc_cv_as_subsections=".subsection"
3881 if test -x nm$host_exeext; then
3882 gcc_cv_nm=./nm$host_exeext
3883 elif test x$host = x$target; then
3885 gcc_cv_nm=nm$host_exeext
3887 if test x$gcc_cv_nm != x; then
3888 cat > conftest.s <<EOF
3889 conftest_label1: .word 0
3891 conftest_label2: .word 0
3894 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3895 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3896 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3897 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3900 gcc_cv_as_subsections="working .subsection -1"
3901 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3906 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3908 AC_MSG_RESULT($gcc_cv_as_subsections)
3910 # Figure out what language subdirectories are present.
3911 # Look if the user specified --enable-languages="..."; if not, use
3912 # the environment variable $LANGUAGES if defined. $LANGUAGES might
3914 if test x"${enable_languages+set}" != xset; then
3915 if test x"${LANGUAGES+set}" = xset; then
3916 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
3918 enable_languages=all
3922 for lang in ${srcdir}/*/config-lang.in ..
3926 # The odd quoting in the next line works around
3927 # an apparent bug in bash 1.12 on linux.
3929 ${srcdir}/[*]/config-lang.in) ;;
3931 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
3932 if test "x$lang_alias" = x
3934 echo "$lang doesn't set \$language." 1>&2
3937 if test x"${enable_languages}" = xall; then
3940 case "${enable_languages}" in
3941 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
3949 if test x"${add_this_lang}" = xyes; then
3951 ${srcdir}/ada/config-lang.in)
3952 if test x$gnat = xyes ; then
3953 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3957 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3966 # Make gthr-default.h if we have a thread file.
3968 if test $thread_file != single; then
3969 rm -f gthr-default.h
3970 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3971 gthread_flags=-DHAVE_GTHR_DEFAULT
3973 AC_SUBST(gthread_flags)
3975 # Make empty files to contain the specs and options for each language.
3976 # Then add #include lines to for a compiler that has specs and/or options.
3981 rm -f specs.h options.h gencheck.h
3982 touch specs.h options.h gencheck.h
3983 for subdir in . $subdirs
3985 if test -f $srcdir/$subdir/lang-specs.h; then
3986 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3987 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3989 if test -f $srcdir/$subdir/lang-options.h; then
3990 echo "#include \"$subdir/lang-options.h\"" >>options.h
3991 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3993 if test -f $srcdir/$subdir/$subdir-tree.def; then
3994 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3995 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3999 # These (without "all_") are set in each config-lang.in.
4000 # `language' must be a single word so is spelled singularly.
4006 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
4007 # List of language makefile fragments.
4012 # Add the language fragments.
4013 # Languages are added via two mechanisms. Some information must be
4014 # recorded in makefile variables, these are defined in config-lang.in.
4015 # We accumulate them and plug them into the main Makefile.
4016 # The other mechanism is a set of hooks for each of the main targets
4017 # like `clean', `install', etc.
4019 language_fragments="Make-lang"
4020 language_hooks="Make-hooks"
4023 for s in .. $subdirs
4035 . ${srcdir}/$s/config-lang.in
4036 if test "x$language" = x
4038 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4041 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4042 all_languages="$all_languages $language"
4043 if test "x$boot_language" = xyes
4045 all_boot_languages="$all_boot_languages $language"
4047 all_compilers="$all_compilers $compilers"
4048 all_stagestuff="$all_stagestuff $stagestuff"
4049 all_diff_excludes="$all_diff_excludes $diff_excludes"
4050 all_headers="$all_headers $headers"
4051 all_outputs="$all_outputs $outputs"
4052 if test x$outputs = x
4054 oldstyle_subdirs="$oldstyle_subdirs $s"
4056 all_lib2funcs="$all_lib2funcs $lib2funcs"
4060 # Since we can't use `::' targets, we link each language in
4061 # with a set of hooks, reached indirectly via lang.${target}.
4065 target_list="all.build all.cross start.encap rest.encap \
4067 install-normal install-common install-info install-man \
4069 mostlyclean clean distclean extraclean maintainer-clean \
4070 stage1 stage2 stage3 stage4"
4071 for t in $target_list
4074 for lang in .. $all_languages
4076 if test $lang != ".."; then
4080 echo "lang.$t: $x" >> Make-hooks
4083 # If we're not building in srcdir, create .gdbinit.
4085 if test ! -f Makefile.in; then
4086 echo "dir ." > .gdbinit
4087 echo "dir ${srcdir}" >> .gdbinit
4088 if test x$gdb_needs_out_file_path = xyes
4090 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4092 if test "x$subdirs" != x; then
4095 echo "dir ${srcdir}/$s" >> .gdbinit
4098 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4101 # Define variables host_canonical and build_canonical
4102 # because some Cygnus local changes in the Makefile depend on them.
4103 build_canonical=${build}
4104 host_canonical=${host}
4106 if test "${host}" != "${target}" ; then
4107 target_subdir=${target}/
4109 AC_SUBST(build_canonical)
4110 AC_SUBST(host_canonical)
4111 AC_SUBST(target_subdir)
4113 # If this is using newlib, then define inhibit_libc in
4114 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4115 # libgcc.a, but that's OK because newib should have its own version of
4118 if test x$with_newlib = xyes; then
4119 inhibit_libc=-Dinhibit_libc
4121 AC_SUBST(inhibit_libc)
4123 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4126 if test x$enable_haifa = xyes; then
4127 echo "Using the Haifa scheduler."
4129 sched_cflags=-DHAIFA
4131 AC_SUBST(sched_prefix)
4132 AC_SUBST(sched_cflags)
4133 if test x$enable_haifa != x; then
4134 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4135 for x in genattrtab.o toplev.o *sched.o; do
4143 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4144 # absolute path for gcc_tooldir based on inserting the number of up-directory
4145 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4146 # $(libsubdir)/@(unlibsubdir) based path.
4147 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4148 # make and thus we'd get different behavior depending on where we built the
4150 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4151 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4153 changequote(<<, >>)dnl
4154 # An explanation of the sed strings:
4155 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4156 # -e 's|/$||' match a trailing forward slash and eliminates it
4157 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4158 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4160 # (*) Note this pattern overwrites the first character of the string
4161 # with a forward slash if one is not already present. This is not a
4162 # problem because the exact names of the sub-directories concerned is
4163 # unimportant, just the number of them matters.
4165 # The practical upshot of these patterns is like this:
4167 # prefix exec_prefix result
4168 # ------ ----------- ------
4170 # /foo/ /foo/bar ../
4171 # /foo /foo/bar/ ../
4172 # /foo/ /foo/bar/ ../
4173 # /foo /foo/bar/ugg ../../
4176 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
4177 changequote([, ])dnl
4179 AC_SUBST(gcc_tooldir)
4182 # Nothing to do for FLOAT_H, float_format already handled.
4186 # Process the language and host/target makefile fragments.
4187 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4189 # Substitute configuration variables
4191 AC_SUBST(all_boot_languages)
4192 AC_SUBST(all_compilers)
4193 AC_SUBST(all_diff_excludes)
4194 AC_SUBST(all_headers)
4195 AC_SUBST(all_lang_makefiles)
4196 AC_SUBST(all_languages)
4197 AC_SUBST(all_lib2funcs)
4198 AC_SUBST(all_stagestuff)
4199 AC_SUBST(build_exeext)
4200 AC_SUBST(build_install_headers_dir)
4201 AC_SUBST(build_xm_file_list)
4202 AC_SUBST(cc_set_by_configure)
4203 AC_SUBST(cpp_install_dir)
4205 AC_SUBST(dep_host_xmake_file)
4206 AC_SUBST(dep_tmake_file)
4207 AC_SUBST(extra_c_flags)
4208 AC_SUBST(extra_c_objs)
4209 AC_SUBST(extra_cpp_objs)
4210 AC_SUBST(extra_cxx_objs)
4211 AC_SUBST(extra_headers_list)
4212 AC_SUBST(extra_objs)
4213 AC_SUBST(extra_parts)
4214 AC_SUBST(extra_passes)
4215 AC_SUBST(extra_programs)
4216 AC_SUBST(fixinc_defs)
4217 AC_SUBST(float_h_file)
4218 AC_SUBST(gcc_gxx_include_dir)
4219 AC_SUBST(gcc_version)
4220 AC_SUBST(gcc_version_trigger)
4221 AC_SUBST(host_exeext)
4222 AC_SUBST(host_extra_gcc_objs)
4223 AC_SUBST(host_xm_file_list)
4226 AC_SUBST(lang_options_files)
4227 AC_SUBST(lang_specs_files)
4228 AC_SUBST(lang_tree_files)
4229 AC_SUBST(local_prefix)
4230 AC_SUBST(maybe_use_collect2)
4232 AC_SUBST(objc_boehm_gc)
4234 AC_SUBST(out_object_file)
4235 AC_SUBST(stage_prefix_set_by_configure)
4236 AC_SUBST(symbolic_link)
4237 AC_SUBST(thread_file)
4238 AC_SUBST(tm_file_list)
4239 AC_SUBST(will_use_collect2)
4242 AC_SUBST_FILE(target_overrides)
4243 AC_SUBST_FILE(host_overrides)
4244 AC_SUBST(cross_defines)
4245 AC_SUBST_FILE(cross_overrides)
4246 AC_SUBST_FILE(build_overrides)
4247 AC_SUBST_FILE(language_fragments)
4248 AC_SUBST_FILE(language_hooks)
4250 # Echo that links are built
4251 if test x$host = x$target
4259 if test x$host != x$build
4261 str3=" on a $build system"
4264 if test "x$str2" != x || test "x$str3" != x
4269 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4271 if test "x$str2" != x || test "x$str3" != x
4273 echo " ${str2}${str3}." 1>&2
4276 # Truncate the target if necessary
4277 if test x$host_truncate_target != x; then
4278 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4281 # Configure the subdirectories
4282 # AC_CONFIG_SUBDIRS($subdirs)
4284 # Create the Makefile
4285 # and configure language subdirectories
4286 AC_OUTPUT($all_outputs,
4288 . $srcdir/configure.lang
4289 case x$CONFIG_HEADERS in
4290 xauto-host.h:config.in)
4293 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4294 # bootstrapping and the installation procedure can still use
4295 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4296 # FLAGS_TO_PASS has been modified to solve the problem there.
4297 # This is virtually a duplicate of what happens in configure.lang; we do
4298 # an extra check to make sure this only happens if ln -s can be used.
4299 if test "$symbolic_link" = "ln -s"; then
4300 for d in .. ${subdirs} ; do
4301 if test $d != ..; then
4304 for t in stage1 stage2 stage3 stage4 include
4307 $symbolic_link ../$t $t 2>/dev/null
4313 # Avoid having to add intl to our include paths.
4314 if test -f intl/libintl.h; then
4315 echo creating libintl.h
4316 echo '#include "intl/libintl.h"' >libintl.h
4323 target_alias='${target_alias}'
4325 subdirs='${subdirs}'
4326 oldstyle_subdirs='${oldstyle_subdirs}'
4327 symbolic_link='${symbolic_link}'
4328 program_transform_set='${program_transform_set}'
4329 program_transform_name='${program_transform_name}'
4330 dep_host_xmake_file='${dep_host_xmake_file}'
4331 host_xmake_file='${host_xmake_file}'
4332 dep_tmake_file='${dep_tmake_file}'
4333 tmake_file='${tmake_file}'
4334 thread_file='${thread_file}'
4335 gcc_version='${gcc_version}'
4336 gcc_version_trigger='${gcc_version_trigger}'
4337 local_prefix='${local_prefix}'
4338 build_install_headers_dir='${build_install_headers_dir}'
4339 build_exeext='${build_exeext}'
4340 host_exeext='${host_exeext}'
4341 out_file='${out_file}'
4342 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4343 SET_MAKE='${SET_MAKE}'
4344 target_list='${target_list}'
4345 target_overrides='${target_overrides}'
4346 host_overrides='${host_overrides}'
4347 cross_defines='${cross_defines}'
4348 cross_overrides='${cross_overrides}'
4349 build_overrides='${build_overrides}'
4350 cpp_install_dir='${cpp_install_dir}'