]>
Commit | Line | Data |
---|---|---|
46f18e7b RK |
1 | # configure.in for GNU CC |
2 | # Process this file with autoconf to generate a configuration script. | |
3 | ||
4283012f | 4 | # Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. |
46f18e7b RK |
5 | |
6 | #This file is part of GNU CC. | |
7 | ||
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) | |
11 | #any later version. | |
12 | ||
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. | |
17 | ||
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. | |
22 | ||
23 | # Initialization and defaults | |
c9a3de16 | 24 | AC_PREREQ(2.12.1) |
46f18e7b | 25 | AC_INIT(tree.c) |
b7cb92ad | 26 | AC_CONFIG_HEADER(auto-host.h:config.in) |
cdcc6a01 | 27 | |
46f18e7b RK |
28 | remove=rm |
29 | hard_link=ln | |
30 | symbolic_link='ln -s' | |
31 | copy=cp | |
32 | ||
75a39864 JL |
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 | |
37 | # is true: | |
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) | |
42 | changequote(,)dnl | |
43 | case ${LIBRARY_PATH} in | |
44 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
45 | library_path_setting="contains current directory" | |
46 | ;; | |
47 | *) | |
48 | library_path_setting="ok" | |
49 | ;; | |
50 | esac | |
51 | changequote([,])dnl | |
52 | AC_MSG_RESULT($library_path_setting) | |
53 | if test "$library_path_setting" != "ok"; then | |
54 | AC_MSG_ERROR([ | |
55 | *** LIBRARY_PATH shouldn't contain the current directory when | |
56 | *** building egcs. Please change the environment variable | |
57 | *** and run configure again.]) | |
58 | fi | |
59 | ||
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 | |
63 | # is true: | |
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) | |
68 | changequote(,)dnl | |
69 | case ${GCC_EXEC_PREFIX} in | |
70 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
71 | gcc_exec_prefix_setting="contains current directory" | |
72 | ;; | |
73 | *) | |
74 | gcc_exec_prefix_setting="ok" | |
75 | ;; | |
76 | esac | |
77 | changequote([,])dnl | |
78 | AC_MSG_RESULT($gcc_exec_prefix_setting) | |
79 | if test "$gcc_exec_prefix_setting" != "ok"; then | |
80 | AC_MSG_ERROR([ | |
81 | *** GCC_EXEC_PREFIX shouldn't contain the current directory when | |
82 | *** building egcs. Please change the environment variable | |
83 | *** and run configure again.]) | |
84 | fi | |
85 | ||
46f18e7b RK |
86 | # Check for additional parameters |
87 | ||
88 | # With GNU ld | |
89 | AC_ARG_WITH(gnu-ld, | |
90 | [ --with-gnu-ld arrange to work with GNU ld.], | |
df6faf79 JW |
91 | gnu_ld_flag="$with_gnu_ld", |
92 | gnu_ld_flag=no) | |
46f18e7b | 93 | |
ab339d62 AO |
94 | # With pre-defined ld |
95 | AC_ARG_WITH(ld, | |
96 | [ --with-ld arrange to use the specified ld (full pathname).], | |
3ccc3a56 AO |
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 | |
ab339d62 AO |
102 | gnu_ld_flag=yes |
103 | fi | |
3ccc3a56 | 104 | AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER") |
ab339d62 AO |
105 | fi |
106 | ||
46f18e7b RK |
107 | # With GNU as |
108 | AC_ARG_WITH(gnu-as, | |
4d8392b7 | 109 | [ --with-gnu-as arrange to work with GNU as.], |
df6faf79 JW |
110 | gas_flag="$with_gnu_as", |
111 | gas_flag=no) | |
46f18e7b | 112 | |
ab339d62 AO |
113 | AC_ARG_WITH(as, |
114 | [ --with-as arrange to use the specified as (full pathname).], | |
3ccc3a56 AO |
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 | |
ab339d62 AO |
120 | gas_flag=yes |
121 | fi | |
3ccc3a56 AO |
122 | AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER") |
123 | fi | |
ab339d62 | 124 | |
46f18e7b RK |
125 | # With stabs |
126 | AC_ARG_WITH(stabs, | |
127 | [ --with-stabs arrange to use stabs instead of host debug format.], | |
535b86ce | 128 | stabs="$with_stabs", |
46f18e7b RK |
129 | stabs=no) |
130 | ||
131 | # With ELF | |
132 | AC_ARG_WITH(elf, | |
133 | [ --with-elf arrange to use ELF instead of host debug format.], | |
535b86ce | 134 | elf="$with_elf", |
46f18e7b RK |
135 | elf=no) |
136 | ||
4d8392b7 | 137 | # Specify the local prefix |
4e88d51b | 138 | local_prefix= |
4d8392b7 RK |
139 | AC_ARG_WITH(local-prefix, |
140 | [ --with-local-prefix=DIR specifies directory to put local include.], | |
4e88d51b JM |
141 | [case "${withval}" in |
142 | yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;; | |
143 | no) ;; | |
144 | *) local_prefix=$with_local_prefix ;; | |
145 | esac]) | |
4d8392b7 RK |
146 | |
147 | # Default local prefix if it is empty | |
75bffa71 | 148 | if test x$local_prefix = x; then |
4d8392b7 RK |
149 | local_prefix=/usr/local |
150 | fi | |
151 | ||
8f8d3278 NC |
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. | |
155 | gcc_gxx_include_dir= | |
9514f0d1 RK |
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.], | |
4e88d51b JM |
160 | [case "${withval}" in |
161 | yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;; | |
162 | no) ;; | |
8f8d3278 | 163 | *) gcc_gxx_include_dir=$with_gxx_include_dir ;; |
4e88d51b JM |
164 | esac]) |
165 | ||
8f8d3278 | 166 | if test x${gcc_gxx_include_dir} = x; then |
4e88d51b | 167 | if test x${enable_version_specific_runtime_libs} = xyes; then |
8f8d3278 | 168 | gcc_gxx_include_dir='${libsubdir}/include/g++' |
4e88d51b | 169 | else |
a270b446 | 170 | topsrcdir=${srcdir}/.. . ${srcdir}/../config.if |
de82584d | 171 | changequote(<<, >>)dnl |
8f8d3278 | 172 | gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface} |
de82584d | 173 | changequote([, ])dnl |
4e88d51b JM |
174 | fi |
175 | fi | |
46f18e7b | 176 | |
a494747c MM |
177 | # Enable expensive internal checks |
178 | AC_ARG_ENABLE(checking, | |
179 | [ --enable-checking enable expensive run-time checks.], | |
4e88d51b JM |
180 | [case "${enableval}" in |
181 | yes) AC_DEFINE(ENABLE_CHECKING) ;; | |
182 | no) ;; | |
183 | *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;; | |
184 | esac]) | |
a494747c | 185 | |
f81a440f | 186 | # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler. |
e061d1ce | 187 | cpp_main=cccp |
f81a440f ZW |
188 | AC_ARG_ENABLE(cpplib, |
189 | [ --enable-cpplib use cpplib for the C preprocessor.], | |
190 | if test x$enable_cpplib != xno; then | |
191 | cpp_main=cppmain | |
192 | fi) | |
193 | ||
194 | # Link cpplib into the compiler proper, for C/C++/ObjC. | |
b4294351 | 195 | AC_ARG_ENABLE(c-cpplib, |
f81a440f ZW |
196 | [ --enable-c-cpplib link cpplib directly into C and C++ compilers |
197 | (implies --enable-cpplib).], | |
75bffa71 | 198 | if test x$enable_c_cpplib != xno; then |
19283265 RH |
199 | extra_c_objs="${extra_c_objs} libcpp.a" |
200 | extra_cxx_objs="${extra_cxx_objs} ../libcpp.a" | |
8f8d3278 | 201 | extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1" |
e061d1ce | 202 | cpp_main=cppmain |
b4294351 | 203 | fi) |
f81a440f | 204 | |
56f48ce9 DB |
205 | # Enable Multibyte Characters for C/C++ |
206 | AC_ARG_ENABLE(c-mbchar, | |
f81a440f | 207 | [ --enable-c-mbchar enable multibyte characters for C and C++.], |
75bffa71 | 208 | if test x$enable_c_mbchar != xno; then |
56f48ce9 DB |
209 | extra_c_flags=-DMULTIBYTE_CHARS=1 |
210 | fi) | |
211 | ||
9101297d DL |
212 | # Enable Haifa scheduler. |
213 | AC_ARG_ENABLE(haifa, | |
f81a440f ZW |
214 | [ --enable-haifa use the experimental scheduler. |
215 | --disable-haifa don't use the experimental scheduler for the | |
9101297d | 216 | targets which normally enable it.]) |
b4294351 | 217 | |
0bbb1697 RK |
218 | # Enable threads |
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.], | |
75bffa71 | 224 | if test x$enable_threads = xno; then |
0bbb1697 RK |
225 | enable_threads='' |
226 | fi, | |
227 | enable_threads='') | |
228 | ||
e445171e | 229 | enable_threads_flag=$enable_threads |
0bbb1697 | 230 | # Check if a valid thread package |
e445171e | 231 | case x${enable_threads_flag} in |
0bbb1697 RK |
232 | x | xno) |
233 | # No threads | |
a851212a | 234 | target_thread_file='single' |
0bbb1697 RK |
235 | ;; |
236 | xyes) | |
237 | # default | |
a851212a | 238 | target_thread_file='' |
0bbb1697 RK |
239 | ;; |
240 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
7cc34889 | 241 | xsolaris | xwin32 | xdce | xvxworks) |
e445171e | 242 | target_thread_file=$enable_threads_flag |
0bbb1697 RK |
243 | ;; |
244 | *) | |
245 | echo "$enable_threads is an unknown thread package" 1>&2 | |
246 | exit 1 | |
247 | ;; | |
248 | esac | |
249 | ||
d8bb17c8 OP |
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 | |
254 | objc_boehm_gc='' | |
255 | else | |
256 | objc_boehm_gc=1 | |
257 | fi, | |
258 | objc_boehm_gc='') | |
259 | ||
df37e3db TT |
260 | AC_ARG_ENABLE(java-gc, |
261 | changequote(<<,>>)dnl | |
262 | << --enable-java-gc=TYPE choose garbage collector [boehm]>>, | |
263 | changequote([,]) | |
264 | JAVAGC=$enableval, | |
265 | JAVAGC=boehm) | |
266 | ||
90e6a802 RL |
267 | AC_ARG_WITH(dwarf2, |
268 | [ --enable-dwarf2 enable DWARF2 debugging as default.], | |
269 | dwarf2="$with_dwarf2", | |
270 | dwarf2=no) | |
271 | ||
46f18e7b RK |
272 | # Determine the host, build, and target systems |
273 | AC_CANONICAL_SYSTEM | |
274 | ||
e9a25f70 JL |
275 | # Find the native compiler |
276 | AC_PROG_CC | |
61842080 MM |
277 | |
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 | |
280 | # quick `make'. | |
281 | if test "x$GCC" = "xyes"; then | |
282 | stage1_warn_cflags='$(WARN_CFLAGS)' | |
283 | else | |
284 | stage1_warn_cflags="" | |
285 | fi | |
286 | AC_SUBST(stage1_warn_cflags) | |
287 | ||
e9a25f70 JL |
288 | AC_PROG_MAKE_SET |
289 | ||
ab339d62 | 290 | AC_MSG_CHECKING([whether a default assembler was specified]) |
3ccc3a56 | 291 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
ab339d62 | 292 | if test x"$with_gas" = x"no"; then |
3ccc3a56 | 293 | AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)]) |
ab339d62 | 294 | else |
3ccc3a56 | 295 | AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)]) |
ab339d62 AO |
296 | fi |
297 | else | |
298 | AC_MSG_RESULT(no) | |
299 | fi | |
300 | ||
301 | AC_MSG_CHECKING([whether a default linker was specified]) | |
3ccc3a56 | 302 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
ab339d62 | 303 | if test x"$with_gnu_ld" = x"no"; then |
3ccc3a56 | 304 | AC_MSG_RESULT([yes ($DEFAULT_LINKER)]) |
ab339d62 | 305 | else |
3ccc3a56 | 306 | AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)]) |
ab339d62 AO |
307 | fi |
308 | else | |
309 | AC_MSG_RESULT(no) | |
310 | fi | |
311 | ||
46f18e7b RK |
312 | # Find some useful tools |
313 | AC_PROG_AWK | |
314 | AC_PROG_LEX | |
ac64120e JW |
315 | GCC_PROG_LN |
316 | GCC_PROG_LN_S | |
e9b4fabf | 317 | GCC_C_VOLATILE |
46f18e7b RK |
318 | AC_PROG_RANLIB |
319 | AC_PROG_YACC | |
76143254 | 320 | EGCS_PROG_INSTALL |
46f18e7b | 321 | |
956d6950 JL |
322 | AC_HEADER_STDC |
323 | AC_HEADER_TIME | |
ccc7d11a | 324 | GCC_HEADER_STRING |
e9831ca0 | 325 | AC_HEADER_SYS_WAIT |
a05e22b8 | 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) |
7636d567 | 327 | |
f24af81b TT |
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=]) | |
331 | ||
bcf12124 JL |
332 | # See if GNAT has been installed |
333 | AC_CHECK_PROG(gnat, gnatbind, yes, no) | |
334 | ||
76844337 RH |
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, | |
339 | [AC_TRY_COMPILE(, | |
340 | [#define S(x) #x | |
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) | |
346 | fi | |
347 | ||
7636d567 JW |
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, | |
352 | [AC_TRY_COMPILE( | |
353 | [#include <sys/types.h> | |
354 | #include <inttypes.h>], | |
355 | [intmax_t i = -1;], | |
9da0e39b | 356 | [gcc_cv_header_inttypes_h=yes], |
7636d567 JW |
357 | gcc_cv_header_inttypes_h=no)]) |
358 | AC_MSG_RESULT($gcc_cv_header_inttypes_h) | |
9da0e39b AS |
359 | if test $gcc_cv_header_inttypes_h = yes; then |
360 | AC_DEFINE(HAVE_INTTYPES_H) | |
361 | fi | |
cdcc6a01 | 362 | |
76b4b31e | 363 | AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \ |
8f81384f | 364 | index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ |
54953b66 UD |
365 | sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \ |
366 | fputs_unlocked) | |
a81fb89e | 367 | |
56f48ce9 DB |
368 | # Make sure wchar_t is available |
369 | #AC_CHECK_TYPE(wchar_t, unsigned int) | |
370 | ||
76b4b31e | 371 | GCC_FUNC_VFPRINTF_DOPRNT |
f1b54f9b | 372 | GCC_FUNC_PRINTF_PTR |
b27d2bd5 MK |
373 | |
374 | case "${host}" in | |
375 | *-*-uwin*) | |
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 | |
380 | ;; | |
381 | esac | |
c375c43b | 382 | AC_FUNC_VFORK |
f1b54f9b | 383 | |
a81fb89e | 384 | GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \ |
007e8d2a | 385 | index rindex getenv atol sbrk abort atof strerror getcwd getwd \ |
9c30c0e7 | 386 | strsignal putc_unlocked fputs_unlocked) |
cdcc6a01 | 387 | |
d2cabf16 KG |
388 | GCC_NEED_DECLARATIONS(getrlimit setrlimit, [ |
389 | #include <sys/types.h> | |
390 | #ifdef HAVE_SYS_RESOURCE_H | |
391 | #include <sys/resource.h> | |
392 | #endif | |
393 | ]) | |
394 | ||
e3512ac2 JL |
395 | AC_DECL_SYS_SIGLIST |
396 | ||
46f18e7b RK |
397 | # File extensions |
398 | manext='.1' | |
399 | objext='.o' | |
46f18e7b RK |
400 | AC_SUBST(manext) |
401 | AC_SUBST(objext) | |
46f18e7b RK |
402 | |
403 | build_xm_file= | |
61536478 | 404 | build_xm_defines= |
46f18e7b RK |
405 | build_install_headers_dir=install-headers-tar |
406 | build_exeext= | |
407 | host_xm_file= | |
61536478 | 408 | host_xm_defines= |
46f18e7b RK |
409 | host_xmake_file= |
410 | host_truncate_target= | |
6e26218f | 411 | host_exeext= |
46f18e7b | 412 | |
9fc9b82a L |
413 | # It is relative to $prefix. |
414 | cpp_install_dir= | |
415 | ||
46f18e7b RK |
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 | |
421 | ||
422 | out_file= | |
423 | xmake_file= | |
424 | tmake_file= | |
425 | extra_headers= | |
426 | extra_passes= | |
427 | extra_parts= | |
428 | extra_programs= | |
429 | extra_objs= | |
430 | extra_host_objs= | |
431 | extra_gcc_objs= | |
61536478 | 432 | xm_defines= |
46f18e7b RK |
433 | float_format= |
434 | # Set this to force installation and use of collect2. | |
435 | use_collect2= | |
436 | # Set this to override the default target model. | |
437 | target_cpu_default= | |
46f18e7b RK |
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. | |
442 | md_cppflags= | |
443 | # Set this if directory names should be truncated to 14 characters. | |
444 | truncate_target= | |
445 | # Set this if gdb needs a dir command with `dirname $out_file` | |
446 | gdb_needs_out_file_path= | |
46f18e7b RK |
447 | # Set this if the build machine requires executables to have a |
448 | # file name suffix. | |
449 | exeext= | |
a851212a JW |
450 | # Set this to control which thread package will be used. |
451 | thread_file= | |
df6faf79 JW |
452 | # Reinitialize these from the flag values every loop pass, since some |
453 | # configure entries modify them. | |
454 | gas="$gas_flag" | |
455 | gnu_ld="$gnu_ld_flag" | |
e445171e | 456 | enable_threads=$enable_threads_flag |
46f18e7b RK |
457 | |
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/-.*$//'` | |
461 | case $machine in | |
08fc0184 RK |
462 | alpha*-*-*) |
463 | cpu_type=alpha | |
464 | ;; | |
46f18e7b RK |
465 | arm*-*-*) |
466 | cpu_type=arm | |
467 | ;; | |
468 | c*-convex-*) | |
469 | cpu_type=convex | |
470 | ;; | |
75bffa71 ILT |
471 | changequote(,)dnl |
472 | i[34567]86-*-*) | |
473 | changequote([,])dnl | |
46f18e7b RK |
474 | cpu_type=i386 |
475 | ;; | |
476 | hppa*-*-*) | |
477 | cpu_type=pa | |
478 | ;; | |
479 | m68000-*-*) | |
480 | cpu_type=m68k | |
481 | ;; | |
482 | mips*-*-*) | |
483 | cpu_type=mips | |
484 | ;; | |
485 | powerpc*-*-*) | |
486 | cpu_type=rs6000 | |
487 | ;; | |
488 | pyramid-*-*) | |
489 | cpu_type=pyr | |
490 | ;; | |
491 | sparc*-*-*) | |
492 | cpu_type=sparc | |
493 | ;; | |
494 | esac | |
495 | ||
496 | tm_file=${cpu_type}/${cpu_type}.h | |
497 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
498 | ||
1b4a979b | 499 | # Common parts for linux-gnu and openbsd systems |
61536478 JL |
500 | case $machine in |
501 | *-*-linux-gnu*) | |
c7391272 | 502 | xm_defines="HAVE_ATEXIT POSIX BSTRING" |
61536478 | 503 | ;; |
1b4a979b ME |
504 | *-*-openbsd*) |
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 | |
512 | thread_file='posix' | |
513 | tmake_file="${tmake_file} t-openbsd-thread" | |
514 | fi | |
515 | ;; | |
61536478 JL |
516 | esac |
517 | ||
46f18e7b RK |
518 | case $machine in |
519 | # Support site-specific machine types. | |
520 | *local*) | |
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 | |
75bffa71 | 525 | if test -f $srcdir/config/${cpu_type}/x-$rest; \ |
46f18e7b RK |
526 | then xmake_file=${cpu_type}/x-$rest; \ |
527 | else true; \ | |
528 | fi | |
75bffa71 | 529 | if test -f $srcdir/config/${cpu_type}/t-$rest; \ |
46f18e7b RK |
530 | then tmake_file=${cpu_type}/t-$rest; \ |
531 | else true; \ | |
532 | fi | |
533 | ;; | |
534 | 1750a-*-*) | |
535 | ;; | |
536 | a29k-*-bsd* | a29k-*-sym1*) | |
537 | tm_file="${tm_file} a29k/unix.h" | |
61536478 | 538 | xm_defines=USG |
46f18e7b RK |
539 | xmake_file=a29k/x-unix |
540 | use_collect2=yes | |
541 | ;; | |
542 | a29k-*-udi | a29k-*-coff) | |
543 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
544 | tmake_file=a29k/t-a29kbare | |
545 | ;; | |
7cc34889 | 546 | a29k-wrs-vxworks*) |
46f18e7b RK |
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" | |
7cc34889 | 550 | thread_file='vxworks' |
46f18e7b RK |
551 | ;; |
552 | a29k-*-*) # Default a29k environment. | |
553 | use_collect2=yes | |
554 | ;; | |
08fc0184 | 555 | alpha*-*-linux-gnuecoff*) |
8983c716 | 556 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
61536478 | 557 | target_cpu_default="MASK_GAS" |
e71c3bb0 | 558 | gas=no |
46f18e7b | 559 | xmake_file=none |
46f18e7b RK |
560 | gas=yes gnu_ld=yes |
561 | ;; | |
704a6306 | 562 | alpha*-*-linux-gnulibc1*) |
9d654bba | 563 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
61536478 | 564 | target_cpu_default="MASK_GAS" |
574badbc RH |
565 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe" |
566 | extra_parts="crtbegin.o crtend.o" | |
704a6306 | 567 | xmake_file=none |
704a6306 | 568 | gas=yes gnu_ld=yes |
75bffa71 | 569 | if test x$enable_threads = xyes; then |
704a6306 RH |
570 | thread_file='posix' |
571 | fi | |
572 | ;; | |
08fc0184 | 573 | alpha*-*-linux-gnu*) |
9d654bba | 574 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
61536478 | 575 | target_cpu_default="MASK_GAS" |
574badbc RH |
576 | tmake_file="t-linux alpha/t-linux alpha/t-crtbe" |
577 | extra_parts="crtbegin.o crtend.o" | |
46f18e7b | 578 | xmake_file=none |
46f18e7b | 579 | gas=yes gnu_ld=yes |
75bffa71 | 580 | if test x$enable_threads = xyes; then |
c811d261 RK |
581 | thread_file='posix' |
582 | fi | |
46f18e7b | 583 | ;; |
9d654bba | 584 | alpha*-*-netbsd*) |
66953094 | 585 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" |
9d654bba RH |
586 | target_cpu_default="MASK_GAS" |
587 | tmake_file="alpha/t-crtbe" | |
588 | extra_parts="crtbegin.o crtend.o" | |
589 | xmake_file=none | |
9d654bba RH |
590 | gas=yes gnu_ld=yes |
591 | ;; | |
1b4a979b ME |
592 | |
593 | alpha*-*-openbsd*) | |
594 | # default x-alpha is only appropriate for dec-osf. | |
595 | target_cpu_default="MASK_GAS" | |
596 | xmake_file=none | |
597 | ;; | |
9d654bba | 598 | |
e9a25f70 | 599 | alpha*-dec-osf*) |
75bffa71 | 600 | if test x$stabs = xyes |
dec3e070 JW |
601 | then |
602 | tm_file="${tm_file} dbx.h" | |
603 | fi | |
75bffa71 | 604 | if test x$gas != xyes |
dec3e070 JW |
605 | then |
606 | extra_passes="mips-tfile mips-tdump" | |
607 | fi | |
dec3e070 | 608 | use_collect2=yes |
dec3e070 | 609 | case $machine in |
6ecd4e53 | 610 | *-*-osf1*) |
b0435cf4 | 611 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 | 612 | ;; |
75bffa71 ILT |
613 | changequote(,)dnl |
614 | *-*-osf[23]*) | |
615 | changequote([,])dnl | |
b0435cf4 | 616 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
617 | ;; |
618 | *-*-osf4*) | |
b0435cf4 | 619 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
620 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
621 | # a broken tar, so we use cpio instead. | |
dec3e070 JW |
622 | install_headers_dir=install-headers-cpio |
623 | ;; | |
624 | esac | |
e9a25f70 | 625 | case $machine in |
75bffa71 ILT |
626 | changequote(,)dnl |
627 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]*) | |
628 | changequote([,])dnl | |
e9a25f70 JL |
629 | target_cpu_default=MASK_SUPPORT_ARCH |
630 | ;; | |
631 | esac | |
46f18e7b | 632 | ;; |
9ec36da5 JL |
633 | alpha*-*-vxworks*) |
634 | tm_file="${tm_file} dbx.h alpha/vxworks.h" | |
635 | if [ x$gas != xyes ] | |
636 | then | |
637 | extra_passes="mips-tfile mips-tdump" | |
638 | fi | |
639 | use_collect2=yes | |
640 | ;; | |
b0435cf4 | 641 | alpha*-*-winnt*) |
46f18e7b | 642 | tm_file="${tm_file} alpha/win-nt.h" |
46f18e7b RK |
643 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
644 | tmake_file=t-libc-ok | |
645 | xmake_file=winnt/x-winnt | |
646 | extra_host_objs=oldnames.o | |
647 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 648 | if test x$gnu_ld != xyes |
46f18e7b RK |
649 | then |
650 | extra_programs=ld.exe | |
651 | fi | |
75bffa71 | 652 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
653 | thread_file='win32' |
654 | fi | |
46f18e7b | 655 | ;; |
08fc0184 | 656 | alpha*-dec-vms*) |
46f18e7b RK |
657 | tm_file=alpha/vms.h |
658 | xm_file="${xm_file} alpha/xm-vms.h" | |
659 | tmake_file=alpha/t-vms | |
46f18e7b | 660 | ;; |
66ed0683 JL |
661 | arc-*-elf*) |
662 | extra_parts="crtinit.o crtfini.o" | |
663 | ;; | |
46f18e7b RK |
664 | arm-*-coff* | armel-*-coff*) |
665 | tm_file=arm/coff.h | |
666 | tmake_file=arm/t-bare | |
667 | ;; | |
2aa0c933 MS |
668 | arm-*-vxworks*) |
669 | tm_file="arm/coff.h arm/vxarm.h" | |
670 | tmake_file=arm/t-bare | |
671 | ;; | |
75bffa71 ILT |
672 | changequote(,)dnl |
673 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) | |
674 | changequote([,])dnl | |
46f18e7b RK |
675 | tm_file=arm/riscix1-1.h |
676 | use_collect2=yes | |
677 | ;; | |
678 | arm-*-riscix*) # Acorn RISC machine | |
75bffa71 | 679 | if test x$gas = xyes |
46f18e7b RK |
680 | then |
681 | tm_file=arm/rix-gas.h | |
682 | else | |
683 | tm_file=arm/riscix.h | |
684 | fi | |
685 | xmake_file=arm/x-riscix | |
686 | tmake_file=arm/t-riscix | |
687 | use_collect2=yes | |
688 | ;; | |
689 | arm-semi-aout | armel-semi-aout) | |
690 | tm_file=arm/semi.h | |
691 | tmake_file=arm/t-semi | |
46f18e7b RK |
692 | ;; |
693 | arm-semi-aof | armel-semi-aof) | |
694 | tm_file=arm/semiaof.h | |
695 | tmake_file=arm/t-semiaof | |
46f18e7b | 696 | ;; |
58600d24 | 697 | arm*-*-netbsd*) |
d23f4158 | 698 | tm_file=arm/netbsd.h |
641d4216 | 699 | xm_file="arm/xm-netbsd.h ${xm_file}" |
e9a25f70 | 700 | tmake_file="t-netbsd arm/t-netbsd" |
d23f4158 | 701 | ;; |
b355a481 | 702 | arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out |
618d2e70 | 703 | cpu_type=arm |
618d2e70 | 704 | xmake_file=x-linux |
b355a481 | 705 | tm_file=arm/linux-aout.h |
618d2e70 | 706 | tmake_file=arm/t-linux |
618d2e70 RK |
707 | gnu_ld=yes |
708 | ;; | |
b355a481 NC |
709 | arm*-*-linux-gnu*) # ARM GNU/Linux with ELF |
710 | xm_file=arm/xm-linux.h | |
711 | xmake_file=x-linux | |
712 | case $machine in | |
713 | armv2*-*-*) | |
714 | tm_file=arm/linux-elf26.h | |
715 | ;; | |
716 | *) | |
717 | tm_file=arm/linux-elf.h | |
718 | ;; | |
719 | esac | |
720 | tmake_file="t-linux arm/t-linux" | |
721 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
b355a481 | 722 | gnu_ld=yes |
65120c40 SB |
723 | case x${enable_threads} in |
724 | x | xyes | xpthreads | xposix) | |
725 | thread_file='posix' | |
726 | ;; | |
727 | esac | |
b355a481 NC |
728 | ;; |
729 | arm*-*-aout) | |
f5967c59 | 730 | tm_file=arm/aout.h |
e9a25f70 | 731 | tmake_file=arm/t-bare |
46f18e7b | 732 | ;; |
e6592fff CM |
733 | arm*-*-ecos-elf) |
734 | tm_file=arm/ecos-elf.h | |
735 | tmake_file=arm/t-elf | |
736 | ;; | |
b355a481 NC |
737 | arm*-*-elf) |
738 | tm_file=arm/unknown-elf.h | |
739 | tmake_file=arm/t-arm-elf | |
740 | ;; | |
cbca921c CM |
741 | arm*-*-oabi) |
742 | tm_file=arm/unknown-elf-oabi.h | |
743 | tmake_file=arm/t-arm-elf | |
744 | ;; | |
46f18e7b RK |
745 | c1-convex-*) # Convex C1 |
746 | target_cpu_default=1 | |
747 | use_collect2=yes | |
46f18e7b RK |
748 | ;; |
749 | c2-convex-*) # Convex C2 | |
750 | target_cpu_default=2 | |
751 | use_collect2=yes | |
46f18e7b RK |
752 | ;; |
753 | c32-convex-*) | |
754 | target_cpu_default=4 | |
755 | use_collect2=yes | |
46f18e7b RK |
756 | ;; |
757 | c34-convex-*) | |
758 | target_cpu_default=8 | |
759 | use_collect2=yes | |
46f18e7b RK |
760 | ;; |
761 | c38-convex-*) | |
762 | target_cpu_default=16 | |
763 | use_collect2=yes | |
46f18e7b | 764 | ;; |
62616695 MH |
765 | c4x-*) |
766 | cpu_type=c4x | |
767 | tmake_file=c4x/t-c4x | |
768 | ;; | |
46f18e7b RK |
769 | clipper-intergraph-clix*) |
770 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
771 | xm_file=clipper/xm-clix.h | |
772 | xmake_file=clipper/x-clix | |
773 | extra_headers=va-clipper.h | |
774 | extra_parts="crtbegin.o crtend.o" | |
775 | install_headers_dir=install-headers-cpio | |
46f18e7b RK |
776 | ;; |
777 | dsp16xx-*) | |
778 | ;; | |
779 | elxsi-elxsi-*) | |
780 | use_collect2=yes | |
781 | ;; | |
782 | # This hasn't been upgraded to GCC 2. | |
783 | # fx80-alliant-*) # Alliant FX/80 | |
784 | # ;; | |
785 | h8300-*-*) | |
786 | float_format=i32 | |
787 | ;; | |
1b4a979b ME |
788 | hppa*-*-openbsd*) |
789 | target_cpu_default="MASK_SNAKE" | |
8f8d3278 | 790 | tmake_file=pa/t-openbsd |
1b4a979b | 791 | ;; |
46f18e7b RK |
792 | hppa1.1-*-pro*) |
793 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h" | |
794 | xm_file=pa/xm-papro.h | |
795 | tmake_file=pa/t-pro | |
796 | ;; | |
797 | hppa1.1-*-osf*) | |
3723cad9 | 798 | target_cpu_default="MASK_SNAKE" |
46f18e7b RK |
799 | tm_file="${tm_file} pa/pa-osf.h" |
800 | use_collect2=yes | |
46f18e7b | 801 | ;; |
dec3e070 JW |
802 | hppa1.1-*-rtems*) |
803 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
804 | xm_file=pa/xm-papro.h | |
805 | tmake_file=pa/t-pro | |
806 | ;; | |
46f18e7b RK |
807 | hppa1.0-*-osf*) |
808 | tm_file="${tm_file} pa/pa-osf.h" | |
809 | use_collect2=yes | |
46f18e7b RK |
810 | ;; |
811 | hppa1.1-*-bsd*) | |
3723cad9 | 812 | target_cpu_default="MASK_SNAKE" |
46f18e7b | 813 | use_collect2=yes |
46f18e7b RK |
814 | ;; |
815 | hppa1.0-*-bsd*) | |
816 | use_collect2=yes | |
46f18e7b RK |
817 | ;; |
818 | hppa1.0-*-hpux7*) | |
819 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h" | |
820 | xm_file=pa/xm-pahpux.h | |
821 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 822 | if test x$gas = xyes |
46f18e7b RK |
823 | then |
824 | tm_file="${tm_file} pa/gas.h" | |
825 | fi | |
46f18e7b RK |
826 | install_headers_dir=install-headers-cpio |
827 | use_collect2=yes | |
828 | ;; | |
75bffa71 ILT |
829 | changequote(,)dnl |
830 | hppa1.0-*-hpux8.0[0-2]*) | |
831 | changequote([,])dnl | |
46f18e7b RK |
832 | tm_file="${tm_file} pa/pa-hpux.h" |
833 | xm_file=pa/xm-pahpux.h | |
834 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 835 | if test x$gas = xyes |
46f18e7b RK |
836 | then |
837 | tm_file="${tm_file} pa/pa-gas.h" | |
838 | else | |
839 | tm_file="pa/pa-oldas.h ${tm_file}" | |
840 | fi | |
46f18e7b RK |
841 | install_headers_dir=install-headers-cpio |
842 | use_collect2=yes | |
843 | ;; | |
75bffa71 ILT |
844 | changequote(,)dnl |
845 | hppa1.1-*-hpux8.0[0-2]*) | |
846 | changequote([,])dnl | |
3723cad9 | 847 | target_cpu_default="MASK_SNAKE" |
46f18e7b RK |
848 | tm_file="${tm_file} pa/pa-hpux.h" |
849 | xm_file=pa/xm-pahpux.h | |
850 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 851 | if test x$gas = xyes |
46f18e7b RK |
852 | then |
853 | tm_file="${tm_file} pa/pa-gas.h" | |
854 | else | |
855 | tm_file="pa/pa-oldas.h ${tm_file}" | |
856 | fi | |
46f18e7b RK |
857 | install_headers_dir=install-headers-cpio |
858 | use_collect2=yes | |
859 | ;; | |
860 | hppa1.1-*-hpux8*) | |
3723cad9 | 861 | target_cpu_default="MASK_SNAKE" |
46f18e7b RK |
862 | tm_file="${tm_file} pa/pa-hpux.h" |
863 | xm_file=pa/xm-pahpux.h | |
864 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 865 | if test x$gas = xyes |
46f18e7b RK |
866 | then |
867 | tm_file="${tm_file} pa/pa-gas.h" | |
868 | fi | |
46f18e7b RK |
869 | install_headers_dir=install-headers-cpio |
870 | use_collect2=yes | |
871 | ;; | |
872 | hppa1.0-*-hpux8*) | |
873 | tm_file="${tm_file} pa/pa-hpux.h" | |
874 | xm_file=pa/xm-pahpux.h | |
875 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 876 | if test x$gas = xyes |
46f18e7b RK |
877 | then |
878 | tm_file="${tm_file} pa/pa-gas.h" | |
879 | fi | |
46f18e7b RK |
880 | install_headers_dir=install-headers-cpio |
881 | use_collect2=yes | |
882 | ;; | |
18cae839 | 883 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) |
3723cad9 | 884 | target_cpu_default="MASK_SNAKE" |
46f18e7b RK |
885 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" |
886 | xm_file=pa/xm-pahpux.h | |
887 | xmake_file=pa/x-pa-hpux | |
f24af81b | 888 | tmake_file=pa/t-pa |
75bffa71 | 889 | if test x$gas = xyes |
46f18e7b RK |
890 | then |
891 | tm_file="${tm_file} pa/pa-gas.h" | |
892 | fi | |
75bffa71 | 893 | if test x$enable_threads = x; then |
f24af81b TT |
894 | enable_threads=$have_pthread_h |
895 | fi | |
75bffa71 | 896 | if test x$enable_threads = xyes; then |
f24af81b TT |
897 | thread_file='dce' |
898 | tmake_file="${tmake_file} pa/t-dce-thr" | |
899 | fi | |
46f18e7b RK |
900 | install_headers_dir=install-headers-cpio |
901 | use_collect2=yes | |
902 | ;; | |
903 | hppa1.0-*-hpux10*) | |
904 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
905 | xm_file=pa/xm-pahpux.h | |
906 | xmake_file=pa/x-pa-hpux | |
661c7909 | 907 | tmake_file=pa/t-pa |
75bffa71 | 908 | if test x$gas = xyes |
46f18e7b RK |
909 | then |
910 | tm_file="${tm_file} pa/pa-gas.h" | |
911 | fi | |
75bffa71 | 912 | if test x$enable_threads = x; then |
d005a5a4 JL |
913 | enable_threads=$have_pthread_h |
914 | fi | |
75bffa71 | 915 | if test x$enable_threads = xyes; then |
d005a5a4 JL |
916 | thread_file='dce' |
917 | tmake_file="${tmake_file} pa/t-dce-thr" | |
918 | fi | |
46f18e7b RK |
919 | install_headers_dir=install-headers-cpio |
920 | use_collect2=yes | |
921 | ;; | |
18cae839 | 922 | hppa1.1-*-hpux* | hppa2*-*-hpux*) |
3723cad9 | 923 | target_cpu_default="MASK_SNAKE" |
46f18e7b RK |
924 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" |
925 | xm_file=pa/xm-pahpux.h | |
926 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 927 | if test x$gas = xyes |
46f18e7b RK |
928 | then |
929 | tm_file="${tm_file} pa/pa-gas.h" | |
930 | fi | |
46f18e7b RK |
931 | install_headers_dir=install-headers-cpio |
932 | use_collect2=yes | |
933 | ;; | |
934 | hppa1.0-*-hpux*) | |
935 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
936 | xm_file=pa/xm-pahpux.h | |
937 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 938 | if test x$gas = xyes |
46f18e7b RK |
939 | then |
940 | tm_file="${tm_file} pa/pa-gas.h" | |
941 | fi | |
46f18e7b RK |
942 | install_headers_dir=install-headers-cpio |
943 | use_collect2=yes | |
944 | ;; | |
18cae839 | 945 | hppa1.1-*-hiux* | hppa2*-*-hiux*) |
3723cad9 | 946 | target_cpu_default="MASK_SNAKE" |
46f18e7b RK |
947 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" |
948 | xm_file=pa/xm-pahpux.h | |
949 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 950 | if test x$gas = xyes |
46f18e7b RK |
951 | then |
952 | tm_file="${tm_file} pa/pa-gas.h" | |
953 | fi | |
46f18e7b RK |
954 | install_headers_dir=install-headers-cpio |
955 | use_collect2=yes | |
956 | ;; | |
957 | hppa1.0-*-hiux*) | |
958 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
959 | xm_file=pa/xm-pahpux.h | |
960 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 961 | if test x$gas = xyes |
46f18e7b RK |
962 | then |
963 | tm_file="${tm_file} pa/pa-gas.h" | |
964 | fi | |
46f18e7b RK |
965 | install_headers_dir=install-headers-cpio |
966 | use_collect2=yes | |
967 | ;; | |
968 | hppa*-*-lites*) | |
3723cad9 | 969 | target_cpu_default="MASK_SNAKE" |
46f18e7b | 970 | use_collect2=yes |
46f18e7b RK |
971 | ;; |
972 | i370-*-mvs*) | |
973 | ;; | |
75bffa71 ILT |
974 | changequote(,)dnl |
975 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX | |
976 | changequote([,])dnl | |
977 | if test x$gas = xyes | |
46f18e7b RK |
978 | then |
979 | tm_file=i386/aix386.h | |
980 | extra_parts="crtbegin.o crtend.o" | |
981 | tmake_file=i386/t-crtstuff | |
982 | else | |
983 | tm_file=i386/aix386ng.h | |
984 | use_collect2=yes | |
985 | fi | |
61536478 JL |
986 | xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" |
987 | xm_defines=USG | |
46f18e7b | 988 | xmake_file=i386/x-aix |
46f18e7b | 989 | ;; |
75bffa71 ILT |
990 | changequote(,)dnl |
991 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 | |
992 | changequote([,])dnl | |
61536478 JL |
993 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" |
994 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
46f18e7b | 995 | xmake_file=i386/x-ncr3000 |
75bffa71 | 996 | if test x$stabs = xyes -a x$gas = xyes |
46f18e7b RK |
997 | then |
998 | tm_file=i386/sysv4gdb.h | |
999 | else | |
1000 | tm_file=i386/sysv4.h | |
1001 | fi | |
1002 | extra_parts="crtbegin.o crtend.o" | |
1003 | tmake_file=i386/t-crtpic | |
1004 | ;; | |
75bffa71 ILT |
1005 | changequote(,)dnl |
1006 | i[34567]86-next-*) | |
1007 | changequote([,])dnl | |
46f18e7b RK |
1008 | tm_file=i386/next.h |
1009 | xm_file=i386/xm-next.h | |
1010 | tmake_file=i386/t-next | |
1011 | xmake_file=i386/x-next | |
1012 | extra_objs=nextstep.o | |
750930c1 | 1013 | extra_parts="crtbegin.o crtend.o" |
75bffa71 | 1014 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
1015 | thread_file='mach' |
1016 | fi | |
46f18e7b | 1017 | ;; |
75bffa71 ILT |
1018 | changequote(,)dnl |
1019 | i[34567]86-sequent-bsd*) # 80386 from Sequent | |
1020 | changequote([,])dnl | |
46f18e7b | 1021 | use_collect2=yes |
75bffa71 | 1022 | if test x$gas = xyes |
46f18e7b RK |
1023 | then |
1024 | tm_file=i386/seq-gas.h | |
1025 | else | |
1026 | tm_file=i386/sequent.h | |
1027 | fi | |
1028 | ;; | |
75bffa71 ILT |
1029 | changequote(,)dnl |
1030 | i[34567]86-sequent-ptx1*) | |
1031 | changequote([,])dnl | |
61536478 | 1032 | xm_defines="USG SVR3" |
46f18e7b RK |
1033 | xmake_file=i386/x-sysv3 |
1034 | tm_file=i386/seq-sysv3.h | |
1035 | tmake_file=i386/t-crtstuff | |
46f18e7b RK |
1036 | extra_parts="crtbegin.o crtend.o" |
1037 | install_headers_dir=install-headers-cpio | |
46f18e7b | 1038 | ;; |
75bffa71 ILT |
1039 | changequote(,)dnl |
1040 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) | |
1041 | changequote([,])dnl | |
61536478 | 1042 | xm_defines="USG SVR3" |
46f18e7b RK |
1043 | xmake_file=i386/x-sysv3 |
1044 | tm_file=i386/seq2-sysv3.h | |
1045 | tmake_file=i386/t-crtstuff | |
1046 | extra_parts="crtbegin.o crtend.o" | |
46f18e7b | 1047 | install_headers_dir=install-headers-cpio |
46f18e7b | 1048 | ;; |
75bffa71 ILT |
1049 | changequote(,)dnl |
1050 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) | |
1051 | changequote([,])dnl | |
61536478 JL |
1052 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" |
1053 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
46f18e7b RK |
1054 | xmake_file=x-svr4 |
1055 | tm_file=i386/ptx4-i.h | |
1056 | tmake_file=t-svr4 | |
1057 | extra_parts="crtbegin.o crtend.o" | |
46f18e7b | 1058 | install_headers_dir=install-headers-cpio |
46f18e7b RK |
1059 | ;; |
1060 | i386-sun-sunos*) # Sun i386 roadrunner | |
61536478 | 1061 | xm_defines=USG |
46f18e7b RK |
1062 | tm_file=i386/sun.h |
1063 | use_collect2=yes | |
1064 | ;; | |
75bffa71 ILT |
1065 | changequote(,)dnl |
1066 | i[34567]86-wrs-vxworks*) | |
1067 | changequote([,])dnl | |
9e89df50 MS |
1068 | tm_file=i386/vxi386.h |
1069 | tmake_file=i386/t-i386bare | |
1070 | ;; | |
75bffa71 ILT |
1071 | changequote(,)dnl |
1072 | i[34567]86-*-aout*) | |
1073 | changequote([,])dnl | |
46f18e7b RK |
1074 | tm_file=i386/i386-aout.h |
1075 | tmake_file=i386/t-i386bare | |
1076 | ;; | |
75bffa71 ILT |
1077 | changequote(,)dnl |
1078 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) | |
1079 | changequote([,])dnl | |
46f18e7b | 1080 | tm_file=i386/bsd386.h |
46f18e7b RK |
1081 | # tmake_file=t-libc-ok |
1082 | ;; | |
75bffa71 ILT |
1083 | changequote(,)dnl |
1084 | i[34567]86-*-bsd*) | |
1085 | changequote([,])dnl | |
46f18e7b | 1086 | tm_file=i386/386bsd.h |
46f18e7b RK |
1087 | # tmake_file=t-libc-ok |
1088 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
1089 | # use_collect2=yes | |
1090 | ;; | |
75bffa71 ILT |
1091 | changequote(,)dnl |
1092 | i[34567]86-*-freebsdelf*) | |
1093 | changequote([,])dnl | |
46f18e7b | 1094 | tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h" |
be1ed94f | 1095 | # On FreeBSD, the headers are already ok, except for math.h. |
32f65aa0 | 1096 | fixincludes=fixinc.wrap |
56830143 | 1097 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
46f18e7b RK |
1098 | tmake_file=i386/t-freebsd |
1099 | gas=yes | |
1100 | gnu_ld=yes | |
1101 | stabs=yes | |
1102 | ;; | |
75bffa71 ILT |
1103 | changequote(,)dnl |
1104 | i[34567]86-*-freebsd*) | |
1105 | changequote([,])dnl | |
46f18e7b | 1106 | tm_file=i386/freebsd.h |
46f18e7b RK |
1107 | tmake_file=i386/t-freebsd |
1108 | ;; | |
75bffa71 | 1109 | changequote(,)dnl |
1b4a979b | 1110 | i[34567]86-*-netbsd*) |
75bffa71 | 1111 | changequote([,])dnl |
46f18e7b | 1112 | tm_file=i386/netbsd.h |
e47f44f4 | 1113 | tmake_file=t-netbsd |
46f18e7b | 1114 | ;; |
1b4a979b ME |
1115 | changequote(,)dnl |
1116 | i[34567]86-*-openbsd*) | |
1117 | changequote([,])dnl | |
1118 | # Remove when the math emulator is fixed | |
1b4a979b ME |
1119 | # we need collect2 until our bug is fixed... |
1120 | use_collect2=yes | |
1121 | ;; | |
75bffa71 ILT |
1122 | changequote(,)dnl |
1123 | i[34567]86-*-coff*) | |
1124 | changequote([,])dnl | |
46f18e7b RK |
1125 | tm_file=i386/i386-coff.h |
1126 | tmake_file=i386/t-i386bare | |
1127 | ;; | |
75bffa71 ILT |
1128 | changequote(,)dnl |
1129 | i[34567]86-*-isc*) # 80386 running ISC system | |
1130 | changequote([,])dnl | |
61536478 JL |
1131 | xm_file="${xm_file} i386/xm-isc.h" |
1132 | xm_defines="USG SVR3" | |
46f18e7b | 1133 | case $machine in |
75bffa71 ILT |
1134 | changequote(,)dnl |
1135 | i[34567]86-*-isc[34]*) | |
1136 | changequote([,])dnl | |
46f18e7b RK |
1137 | xmake_file=i386/x-isc3 |
1138 | ;; | |
1139 | *) | |
1140 | xmake_file=i386/x-isc | |
1141 | ;; | |
1142 | esac | |
75bffa71 | 1143 | if test x$gas = xyes -a x$stabs = xyes |
46f18e7b RK |
1144 | then |
1145 | tm_file=i386/iscdbx.h | |
1146 | tmake_file=i386/t-svr3dbx | |
1147 | extra_parts="svr3.ifile svr3z.ifile" | |
1148 | else | |
1149 | tm_file=i386/isccoff.h | |
1150 | tmake_file=i386/t-crtstuff | |
1151 | extra_parts="crtbegin.o crtend.o" | |
1152 | fi | |
1153 | install_headers_dir=install-headers-cpio | |
46f18e7b | 1154 | ;; |
75bffa71 ILT |
1155 | changequote(,)dnl |
1156 | i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux | |
1157 | changequote([,])dnl # with a.out format using | |
61536478 | 1158 | # pre BFD linkers |
46f18e7b RK |
1159 | xmake_file=x-linux-aout |
1160 | tmake_file="t-linux-aout i386/t-crtstuff" | |
1161 | tm_file=i386/linux-oldld.h | |
46f18e7b | 1162 | gnu_ld=yes |
f906a0f0 | 1163 | float_format=i386 |
46f18e7b | 1164 | ;; |
75bffa71 ILT |
1165 | changequote(,)dnl |
1166 | i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux | |
1167 | changequote([,])dnl # with a.out format | |
46f18e7b RK |
1168 | xmake_file=x-linux-aout |
1169 | tmake_file="t-linux-aout i386/t-crtstuff" | |
1170 | tm_file=i386/linux-aout.h | |
46f18e7b | 1171 | gnu_ld=yes |
f906a0f0 | 1172 | float_format=i386 |
46f18e7b | 1173 | ;; |
75bffa71 ILT |
1174 | changequote(,)dnl |
1175 | i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux | |
1176 | changequote([,])dnl # with ELF format using the | |
61536478 JL |
1177 | # GNU/Linux C library 5 |
1178 | xmake_file=x-linux | |
1179 | tm_file=i386/linux.h | |
78b9f8df RK |
1180 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
1181 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
78b9f8df | 1182 | gnu_ld=yes |
f906a0f0 | 1183 | float_format=i386 |
75bffa71 | 1184 | if test x$enable_threads = xyes; then |
78b9f8df RK |
1185 | thread_file='single' |
1186 | fi | |
1187 | ;; | |
75bffa71 ILT |
1188 | changequote(,)dnl |
1189 | i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux | |
1190 | changequote([,])dnl # with ELF format using glibc 2 | |
61536478 JL |
1191 | # aka GNU/Linux C library 6 |
1192 | xmake_file=x-linux | |
46f18e7b RK |
1193 | tm_file=i386/linux.h |
1194 | tmake_file="t-linux i386/t-crtstuff" | |
1195 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
46f18e7b | 1196 | gnu_ld=yes |
f906a0f0 | 1197 | float_format=i386 |
75bffa71 | 1198 | if test x$enable_threads = xyes; then |
78b9f8df RK |
1199 | thread_file='posix' |
1200 | fi | |
46f18e7b | 1201 | ;; |
75bffa71 ILT |
1202 | changequote(,)dnl |
1203 | i[34567]86-*-gnu*) | |
cd9e5e7c | 1204 | float_format=i386 |
75bffa71 | 1205 | changequote([,])dnl |
61536478 | 1206 | ;; |
75bffa71 ILT |
1207 | changequote(,)dnl |
1208 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
1209 | changequote([,])dnl | |
77d787fa | 1210 | echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead." |
866fb7cc | 1211 | exit 1 |
46f18e7b | 1212 | ;; |
75bffa71 ILT |
1213 | changequote(,)dnl |
1214 | i[34567]86-pc-msdosdjgpp*) | |
1215 | changequote([,])dnl | |
77d787fa ME |
1216 | xm_file=i386/xm-djgpp.h |
1217 | tm_file=i386/djgpp.h | |
1218 | tmake_file=i386/t-djgpp | |
1219 | xmake_file=i386/x-djgpp | |
61536478 JL |
1220 | gnu_ld=yes |
1221 | gas=yes | |
dedcc399 | 1222 | exeext=.exe |
77d787fa | 1223 | case $host in *pc-msdosdjgpp*) |
dedcc399 ME |
1224 | target_alias=djgpp |
1225 | ;; | |
1226 | esac | |
46f18e7b | 1227 | ;; |
75bffa71 ILT |
1228 | changequote(,)dnl |
1229 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) | |
1230 | changequote([,])dnl | |
46f18e7b RK |
1231 | tm_file=i386/moss.h |
1232 | tmake_file=t-libc-ok | |
46f18e7b RK |
1233 | gnu_ld=yes |
1234 | gas=yes | |
1235 | ;; | |
75bffa71 ILT |
1236 | changequote(,)dnl |
1237 | i[34567]86-*-lynxos*) | |
1238 | changequote([,])dnl | |
1239 | if test x$gas = xyes | |
46f18e7b RK |
1240 | then |
1241 | tm_file=i386/lynx.h | |
1242 | else | |
1243 | tm_file=i386/lynx-ng.h | |
1244 | fi | |
1245 | xm_file=i386/xm-lynx.h | |
1246 | tmake_file=i386/t-i386bare | |
1247 | xmake_file=x-lynx | |
1248 | ;; | |
75bffa71 ILT |
1249 | changequote(,)dnl |
1250 | i[34567]86-*-mach*) | |
1251 | changequote([,])dnl | |
46f18e7b RK |
1252 | tm_file=i386/mach.h |
1253 | # tmake_file=t-libc-ok | |
1254 | use_collect2=yes | |
1255 | ;; | |
75bffa71 ILT |
1256 | changequote(,)dnl |
1257 | i[34567]86-*-osfrose*) # 386 using OSF/rose | |
1258 | changequote([,])dnl | |
1259 | if test x$elf = xyes | |
46f18e7b RK |
1260 | then |
1261 | tm_file=i386/osfelf.h | |
1262 | use_collect2= | |
1263 | else | |
1264 | tm_file=i386/osfrose.h | |
1265 | use_collect2=yes | |
1266 | fi | |
61536478 | 1267 | xm_file="i386/xm-osf.h ${xm_file}" |
46f18e7b RK |
1268 | xmake_file=i386/x-osfrose |
1269 | tmake_file=i386/t-osf | |
1270 | extra_objs=halfpic.o | |
1271 | ;; | |
75bffa71 ILT |
1272 | changequote(,)dnl |
1273 | i[34567]86-go32-rtems*) | |
1274 | changequote([,])dnl | |
46f18e7b RK |
1275 | cpu_type=i386 |
1276 | xm_file=i386/xm-go32.h | |
1277 | tm_file=i386/go32-rtems.h | |
1278 | tmake_file="i386/t-go32 t-rtems" | |
1279 | ;; | |
75bffa71 ILT |
1280 | changequote(,)dnl |
1281 | i[34567]86-*-rtemself*) | |
1282 | changequote([,])dnl | |
f5963e61 JL |
1283 | cpu_type=i386 |
1284 | tm_file=i386/rtemself.h | |
1285 | tmake_file="i386/t-i386bare t-rtems" | |
1286 | ;; | |
75bffa71 ILT |
1287 | changequote(,)dnl |
1288 | i[34567]86-*-rtems*) | |
1289 | changequote([,])dnl | |
46f18e7b RK |
1290 | cpu_type=i386 |
1291 | tm_file=i386/rtems.h | |
1292 | tmake_file="i386/t-i386bare t-rtems" | |
1293 | ;; | |
75bffa71 ILT |
1294 | changequote(,)dnl |
1295 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 | |
1296 | changequote([,])dnl | |
61536478 JL |
1297 | xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h" |
1298 | xm_defines="USG SVR3" | |
46f18e7b | 1299 | xmake_file=i386/x-sco5 |
f6857708 | 1300 | install_headers_dir=install-headers-cpio |
46f18e7b | 1301 | tm_file=i386/sco5.h |
75bffa71 | 1302 | if test x$gas = xyes |
f7c9c2bb RL |
1303 | then |
1304 | tm_file="i386/sco5gas.h ${tm_file}" | |
1305 | tmake_file=i386/t-sco5gas | |
1306 | else | |
1307 | tmake_file=i386/t-sco5 | |
1308 | fi | |
42902a72 | 1309 | extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" |
46f18e7b | 1310 | ;; |
75bffa71 ILT |
1311 | changequote(,)dnl |
1312 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system | |
1313 | changequote([,])dnl | |
61536478 JL |
1314 | xm_file="${xm_file} i386/xm-sco.h" |
1315 | xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST" | |
46f18e7b | 1316 | xmake_file=i386/x-sco4 |
46f18e7b | 1317 | install_headers_dir=install-headers-cpio |
75bffa71 | 1318 | if test x$stabs = xyes |
46f18e7b RK |
1319 | then |
1320 | tm_file=i386/sco4dbx.h | |
1321 | tmake_file=i386/t-svr3dbx | |
1322 | extra_parts="svr3.ifile svr3z.rfile" | |
1323 | else | |
1324 | tm_file=i386/sco4.h | |
1325 | tmake_file=i386/t-crtstuff | |
1326 | extra_parts="crtbegin.o crtend.o" | |
1327 | fi | |
1328 | truncate_target=yes | |
1329 | ;; | |
75bffa71 ILT |
1330 | changequote(,)dnl |
1331 | i[34567]86-*-sco*) # 80386 running SCO system | |
1332 | changequote([,])dnl | |
46f18e7b RK |
1333 | xm_file=i386/xm-sco.h |
1334 | xmake_file=i386/x-sco | |
46f18e7b | 1335 | install_headers_dir=install-headers-cpio |
75bffa71 | 1336 | if test x$stabs = xyes |
46f18e7b RK |
1337 | then |
1338 | tm_file=i386/scodbx.h | |
1339 | tmake_file=i386/t-svr3dbx | |
1340 | extra_parts="svr3.ifile svr3z.rfile" | |
1341 | else | |
1342 | tm_file=i386/sco.h | |
1343 | extra_parts="crtbegin.o crtend.o" | |
1344 | tmake_file=i386/t-crtstuff | |
1345 | fi | |
1346 | truncate_target=yes | |
1347 | ;; | |
75bffa71 ILT |
1348 | changequote(,)dnl |
1349 | i[34567]86-*-solaris2*) | |
1350 | changequote([,])dnl | |
61536478 JL |
1351 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" |
1352 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
75bffa71 | 1353 | if test x$stabs = xyes |
46f18e7b | 1354 | then |
dec3e070 | 1355 | tm_file=i386/sol2dbg.h |
46f18e7b RK |
1356 | else |
1357 | tm_file=i386/sol2.h | |
1358 | fi | |
1359 | tmake_file=i386/t-sol2 | |
61536478 | 1360 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
46f18e7b | 1361 | xmake_file=x-svr4 |
75bffa71 | 1362 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
1363 | thread_file='solaris' |
1364 | fi | |
46f18e7b | 1365 | ;; |
75bffa71 ILT |
1366 | changequote(,)dnl |
1367 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 | |
1368 | changequote([,])dnl | |
a4cbe801 RL |
1369 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" |
1370 | xm_defines="USG POSIX" | |
fe07d4c1 | 1371 | tm_file=i386/sysv4.h |
75bffa71 | 1372 | if test x$stabs = xyes |
fe07d4c1 RL |
1373 | then |
1374 | tm_file="${tm_file} dbx.h" | |
1375 | fi | |
1376 | tmake_file=i386/t-crtpic | |
1377 | xmake_file=x-svr4 | |
1378 | extra_parts="crtbegin.o crtend.o" | |
fe07d4c1 | 1379 | ;; |
75bffa71 ILT |
1380 | changequote(,)dnl |
1381 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 | |
1382 | changequote([,])dnl | |
61536478 JL |
1383 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" |
1384 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
46f18e7b | 1385 | tm_file=i386/sysv4.h |
75bffa71 | 1386 | if test x$stabs = xyes |
46f18e7b RK |
1387 | then |
1388 | tm_file="${tm_file} dbx.h" | |
1389 | fi | |
1390 | tmake_file=i386/t-crtpic | |
1391 | xmake_file=x-svr4 | |
1392 | extra_parts="crtbegin.o crtend.o" | |
1393 | ;; | |
5aaf0123 RL |
1394 | changequote(,)dnl |
1395 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit | |
1396 | changequote([,])dnl | |
1397 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
1398 | xm_defines="USG POSIX" | |
1399 | tm_file=i386/udk.h | |
1400 | tmake_file="i386/t-crtpic i386/t-udk" | |
1401 | xmake_file=x-svr4 | |
1402 | extra_parts="crtbegin.o crtend.o" | |
5aaf0123 | 1403 | ;; |
75bffa71 ILT |
1404 | changequote(,)dnl |
1405 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ | |
1406 | changequote([,])dnl | |
f5963e61 JL |
1407 | cpu_type=i386 |
1408 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" | |
1409 | xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" | |
75bffa71 | 1410 | if test x$stabs = xyes |
f5963e61 JL |
1411 | then |
1412 | tm_file=i386/osf1elfgdb.h | |
1413 | else | |
1414 | tm_file=i386/osf1elf.h | |
1415 | fi | |
1416 | tmake_file=i386/t-osf1elf | |
1417 | xmake_file=i386/x-osf1elf | |
1418 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
1419 | ;; | |
75bffa71 ILT |
1420 | changequote(,)dnl |
1421 | i[34567]86-*-sysv*) # Intel 80386's running system V | |
1422 | changequote([,])dnl | |
61536478 | 1423 | xm_defines="USG SVR3" |
46f18e7b | 1424 | xmake_file=i386/x-sysv3 |
75bffa71 | 1425 | if test x$gas = xyes |
46f18e7b | 1426 | then |
75bffa71 | 1427 | if test x$stabs = xyes |
46f18e7b RK |
1428 | then |
1429 | tm_file=i386/svr3dbx.h | |
1430 | tmake_file=i386/t-svr3dbx | |
1431 | extra_parts="svr3.ifile svr3z.rfile" | |
1432 | else | |
1433 | tm_file=i386/svr3gas.h | |
1434 | extra_parts="crtbegin.o crtend.o" | |
1435 | tmake_file=i386/t-crtstuff | |
1436 | fi | |
1437 | else | |
1438 | tm_file=i386/sysv3.h | |
1439 | extra_parts="crtbegin.o crtend.o" | |
1440 | tmake_file=i386/t-crtstuff | |
1441 | fi | |
1442 | ;; | |
1443 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
f5963e61 | 1444 | xm_file="${xm_file} i386/xm-vsta.h" |
46f18e7b RK |
1445 | tm_file=i386/vsta.h |
1446 | tmake_file=i386/t-vsta | |
1447 | xmake_file=i386/x-vsta | |
1448 | ;; | |
75bffa71 ILT |
1449 | changequote(,)dnl |
1450 | i[34567]86-*-win32) | |
1451 | changequote([,])dnl | |
cae21ae8 GN |
1452 | xm_file="${xm_file} i386/xm-cygwin.h" |
1453 | tmake_file=i386/t-cygwin | |
84530511 | 1454 | tm_file=i386/win32.h |
cae21ae8 | 1455 | xmake_file=i386/x-cygwin |
84530511 | 1456 | extra_objs=winnt.o |
75bffa71 | 1457 | if test x$enable_threads = xyes; then |
84530511 SC |
1458 | thread_file='win32' |
1459 | fi | |
1460 | exeext=.exe | |
1461 | ;; | |
75bffa71 | 1462 | changequote(,)dnl |
cae21ae8 | 1463 | i[34567]86-*-pe | i[34567]86-*-cygwin*) |
75bffa71 | 1464 | changequote([,])dnl |
cae21ae8 GN |
1465 | xm_file="${xm_file} i386/xm-cygwin.h" |
1466 | tmake_file=i386/t-cygwin | |
1467 | tm_file=i386/cygwin.h | |
1468 | xmake_file=i386/x-cygwin | |
46f18e7b | 1469 | extra_objs=winnt.o |
75bffa71 | 1470 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
1471 | thread_file='win32' |
1472 | fi | |
46f18e7b RK |
1473 | exeext=.exe |
1474 | ;; | |
75bffa71 ILT |
1475 | changequote(,)dnl |
1476 | i[34567]86-*-mingw32*) | |
1477 | changequote([,])dnl | |
5dfe8508 RK |
1478 | tm_file=i386/mingw32.h |
1479 | xm_file="${xm_file} i386/xm-mingw32.h" | |
cae21ae8 | 1480 | tmake_file="i386/t-cygwin i386/t-mingw32" |
5dfe8508 | 1481 | extra_objs=winnt.o |
cae21ae8 | 1482 | xmake_file=i386/x-cygwin |
75bffa71 | 1483 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
1484 | thread_file='win32' |
1485 | fi | |
5dfe8508 | 1486 | exeext=.exe |
61536478 JL |
1487 | case $machine in |
1488 | *mingw32msv*) | |
1489 | ;; | |
1490 | *minwg32crt* | *mingw32*) | |
1491 | tm_file="${tm_file} i386/crtdll.h" | |
1492 | ;; | |
1493 | esac | |
5dfe8508 | 1494 | ;; |
b27d2bd5 MK |
1495 | changequote(,)dnl |
1496 | i[34567]86-*-uwin*) | |
1497 | changequote([,])dnl | |
1498 | tm_file=i386/uwin.h | |
1499 | xm_file="${xm_file} i386/xm-uwin.h" | |
1500 | xm_defines="USG NO_STAB_H NO_SYS_SIGLIST" | |
1501 | tmake_file="i386/t-cygwin i386/t-uwin" | |
1502 | extra_objs=winnt.o | |
1503 | xmake_file=i386/x-cygwin | |
1504 | fixincludes=Makefile.in | |
1505 | if test x$enable_threads = xyes; then | |
1506 | thread_file='win32' | |
1507 | fi | |
1508 | exeext=.exe | |
1509 | ;; | |
052dbd9e MK |
1510 | changequote(,)dnl |
1511 | i[34567]86-*-interix*) | |
1512 | changequote([,])dnl | |
1513 | tm_file=i386/interix.h | |
1514 | xm_file="${xm_file} xm-interix.h" | |
1515 | xm_defines="USG NO_SYS_SIGLIST" | |
1516 | tmake_file="i386/t-interix" | |
1517 | extra_objs=interix.o | |
1518 | xmake_file=x-interix | |
1519 | fixincludes=fixinc.interix | |
1520 | if [[ x$enable_threads = xyes ]]; then | |
1521 | thread_file='posix' | |
1522 | fi | |
1523 | if [[ x$stabs = xyes ]]; then | |
1524 | tm_file="${tm_file} dbxcoff.h" | |
1525 | fi | |
1526 | ;; | |
75bffa71 ILT |
1527 | changequote(,)dnl |
1528 | i[34567]86-*-winnt3*) | |
1529 | changequote([,])dnl | |
46f18e7b RK |
1530 | tm_file=i386/win-nt.h |
1531 | out_file=i386/i386.c | |
61536478 | 1532 | xm_file="xm-winnt.h ${xm_file}" |
46f18e7b RK |
1533 | xmake_file=winnt/x-winnt |
1534 | tmake_file=i386/t-winnt | |
1535 | extra_host_objs="winnt.o oldnames.o" | |
1536 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 1537 | if test x$gnu_ld != xyes |
46f18e7b RK |
1538 | then |
1539 | extra_programs=ld.exe | |
1540 | fi | |
75bffa71 | 1541 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
1542 | thread_file='win32' |
1543 | fi | |
46f18e7b | 1544 | ;; |
75bffa71 ILT |
1545 | changequote(,)dnl |
1546 | i[34567]86-dg-dgux*) | |
1547 | changequote([,])dnl | |
61536478 JL |
1548 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" |
1549 | xm_defines="USG POSIX" | |
46f18e7b RK |
1550 | out_file=i386/dgux.c |
1551 | tm_file=i386/dgux.h | |
1552 | tmake_file=i386/t-dgux | |
1553 | xmake_file=i386/x-dgux | |
46f18e7b RK |
1554 | install_headers_dir=install-headers-cpio |
1555 | ;; | |
1556 | i860-alliant-*) # Alliant FX/2800 | |
1557 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 1558 | xm_file="${xm_file}" |
46f18e7b RK |
1559 | xmake_file=i860/x-fx2800 |
1560 | tmake_file=i860/t-fx2800 | |
1561 | extra_parts="crtbegin.o crtend.o" | |
1562 | ;; | |
1563 | i860-*-bsd*) | |
1564 | tm_file="${tm_file} i860/bsd.h" | |
75bffa71 | 1565 | if test x$gas = xyes |
46f18e7b RK |
1566 | then |
1567 | tm_file="${tm_file} i860/bsd-gas.h" | |
1568 | fi | |
1569 | use_collect2=yes | |
1570 | ;; | |
1571 | i860-*-mach*) | |
1572 | tm_file="${tm_file} i860/mach.h" | |
1573 | tmake_file=t-libc-ok | |
1574 | ;; | |
1575 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
1576 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
61536478 | 1577 | xm_defines="USG SVR3" |
46f18e7b | 1578 | tmake_file=t-osf |
46f18e7b RK |
1579 | ;; |
1580 | i860-*-sysv3*) | |
1581 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
61536478 | 1582 | xm_defines="USG SVR3" |
46f18e7b RK |
1583 | xmake_file=i860/x-sysv3 |
1584 | extra_parts="crtbegin.o crtend.o" | |
1585 | ;; | |
1586 | i860-*-sysv4*) | |
1587 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
61536478 | 1588 | xm_defines="USG SVR3" |
46f18e7b RK |
1589 | xmake_file=i860/x-sysv4 |
1590 | tmake_file=t-svr4 | |
1591 | extra_parts="crtbegin.o crtend.o" | |
1592 | ;; | |
1593 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
1594 | tm_file="${tm_file} i960/vx960.h" | |
1595 | tmake_file=i960/t-vxworks960 | |
1596 | use_collect2=yes | |
7cc34889 | 1597 | thread_file='vxworks' |
46f18e7b | 1598 | ;; |
a0372c94 | 1599 | i960-wrs-vxworks5* | i960-wrs-vxworks) |
46f18e7b RK |
1600 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" |
1601 | tmake_file=i960/t-vxworks960 | |
1602 | use_collect2=yes | |
7cc34889 | 1603 | thread_file='vxworks' |
46f18e7b RK |
1604 | ;; |
1605 | i960-wrs-vxworks*) | |
1606 | tm_file="${tm_file} i960/vx960.h" | |
1607 | tmake_file=i960/t-vxworks960 | |
1608 | use_collect2=yes | |
7cc34889 | 1609 | thread_file='vxworks' |
46f18e7b RK |
1610 | ;; |
1611 | i960-*-coff*) | |
1612 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
1613 | tmake_file=i960/t-960bare | |
1614 | use_collect2=yes | |
1615 | ;; | |
1616 | i960-*-rtems) | |
1617 | tmake_file="i960/t-960bare t-rtems" | |
1618 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
1619 | use_collect2=yes | |
1620 | ;; | |
1621 | i960-*-*) # Default i960 environment. | |
1622 | use_collect2=yes | |
1623 | ;; | |
dec3e070 JW |
1624 | m32r-*-elf*) |
1625 | extra_parts="crtinit.o crtfini.o" | |
1626 | ;; | |
46f18e7b RK |
1627 | m68000-convergent-sysv*) |
1628 | tm_file=m68k/ctix.h | |
61536478 JL |
1629 | xm_file="m68k/xm-3b1.h ${xm_file}" |
1630 | xm_defines=USG | |
46f18e7b RK |
1631 | use_collect2=yes |
1632 | extra_headers=math-68881.h | |
1633 | ;; | |
1634 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
1635 | tm_file=m68k/hp2bsd.h | |
1636 | xmake_file=m68k/x-hp2bsd | |
1637 | use_collect2=yes | |
1638 | extra_headers=math-68881.h | |
1639 | ;; | |
1640 | m68000-hp-hpux*) # HP 9000 series 300 | |
61536478 JL |
1641 | xm_file="xm_alloca.h ${xm_file}" |
1642 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 1643 | if test x$gas = xyes |
46f18e7b RK |
1644 | then |
1645 | xmake_file=m68k/x-hp320g | |
1646 | tm_file=m68k/hp310g.h | |
1647 | else | |
1648 | xmake_file=m68k/x-hp320 | |
1649 | tm_file=m68k/hp310.h | |
1650 | fi | |
46f18e7b RK |
1651 | install_headers_dir=install-headers-cpio |
1652 | use_collect2=yes | |
1653 | extra_headers=math-68881.h | |
1654 | ;; | |
1655 | m68000-sun-sunos3*) | |
1656 | tm_file=m68k/sun2.h | |
1657 | use_collect2=yes | |
1658 | extra_headers=math-68881.h | |
1659 | ;; | |
1660 | m68000-sun-sunos4*) | |
1661 | tm_file=m68k/sun2o4.h | |
1662 | use_collect2=yes | |
1663 | extra_headers=math-68881.h | |
1664 | ;; | |
1665 | m68000-att-sysv*) | |
61536478 JL |
1666 | xm_file="m68k/xm-3b1.h ${xm_file}" |
1667 | xm_defines=USG | |
75bffa71 | 1668 | if test x$gas = xyes |
46f18e7b RK |
1669 | then |
1670 | tm_file=m68k/3b1g.h | |
1671 | else | |
1672 | tm_file=m68k/3b1.h | |
1673 | fi | |
1674 | use_collect2=yes | |
1675 | extra_headers=math-68881.h | |
1676 | ;; | |
1677 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
61536478 | 1678 | xm_defines="USG AUX" |
46f18e7b | 1679 | tmake_file=m68k/t-aux |
46f18e7b RK |
1680 | install_headers_dir=install-headers-cpio |
1681 | extra_headers=math-68881.h | |
1682 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
1683 | tm_file= | |
75bffa71 | 1684 | if test "$gnu_ld" = yes |
46f18e7b RK |
1685 | then |
1686 | tm_file="${tm_file} m68k/auxgld.h" | |
1687 | else | |
1688 | tm_file="${tm_file} m68k/auxld.h" | |
1689 | fi | |
75bffa71 | 1690 | if test "$gas" = yes |
46f18e7b RK |
1691 | then |
1692 | tm_file="${tm_file} m68k/auxgas.h" | |
1693 | else | |
1694 | tm_file="${tm_file} m68k/auxas.h" | |
1695 | fi | |
1696 | tm_file="${tm_file} m68k/a-ux.h" | |
c8db55b0 | 1697 | float_format=m68k |
46f18e7b RK |
1698 | ;; |
1699 | m68k-apollo-*) | |
1700 | tm_file=m68k/apollo68.h | |
1701 | xmake_file=m68k/x-apollo68 | |
1702 | use_collect2=yes | |
1703 | extra_headers=math-68881.h | |
c8db55b0 | 1704 | float_format=m68k |
46f18e7b RK |
1705 | ;; |
1706 | m68k-altos-sysv*) # Altos 3068 | |
75bffa71 | 1707 | if test x$gas = xyes |
46f18e7b RK |
1708 | then |
1709 | tm_file=m68k/altos3068.h | |
61536478 | 1710 | xm_defines=USG |
46f18e7b RK |
1711 | else |
1712 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
1713 | exit 1 | |
1714 | fi | |
1715 | extra_headers=math-68881.h | |
1716 | ;; | |
1717 | m68k-bull-sysv*) # Bull DPX/2 | |
75bffa71 | 1718 | if test x$gas = xyes |
46f18e7b | 1719 | then |
75bffa71 | 1720 | if test x$stabs = xyes |
46f18e7b RK |
1721 | then |
1722 | tm_file=m68k/dpx2cdbx.h | |
1723 | else | |
1724 | tm_file=m68k/dpx2g.h | |
1725 | fi | |
1726 | else | |
1727 | tm_file=m68k/dpx2.h | |
1728 | fi | |
61536478 JL |
1729 | xm_file="xm-alloca.h ${xm_file}" |
1730 | xm_defines=USG | |
46f18e7b RK |
1731 | xmake_file=m68k/x-dpx2 |
1732 | use_collect2=yes | |
1733 | extra_headers=math-68881.h | |
1734 | ;; | |
1735 | m68k-atari-sysv4*) # Atari variant of V.4. | |
1736 | tm_file=m68k/atari.h | |
61536478 JL |
1737 | xm_file="xm-alloca.h ${xm_file}" |
1738 | xm_defines="USG FULL_PROTOTYPES" | |
46f18e7b RK |
1739 | tmake_file=t-svr4 |
1740 | extra_parts="crtbegin.o crtend.o" | |
1741 | extra_headers=math-68881.h | |
c8db55b0 | 1742 | float_format=m68k |
46f18e7b RK |
1743 | ;; |
1744 | m68k-motorola-sysv*) | |
1745 | tm_file=m68k/mot3300.h | |
61536478 JL |
1746 | xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" |
1747 | xm_defines=NO_SYS_SIGLIST | |
75bffa71 | 1748 | if test x$gas = xyes |
46f18e7b RK |
1749 | then |
1750 | xmake_file=m68k/x-mot3300-gas | |
75bffa71 | 1751 | if test x$gnu_ld = xyes |
46f18e7b RK |
1752 | then |
1753 | tmake_file=m68k/t-mot3300-gald | |
1754 | else | |
1755 | tmake_file=m68k/t-mot3300-gas | |
1756 | use_collect2=yes | |
1757 | fi | |
1758 | else | |
1759 | xmake_file=m68k/x-mot3300 | |
75bffa71 | 1760 | if test x$gnu_ld = xyes |
46f18e7b RK |
1761 | then |
1762 | tmake_file=m68k/t-mot3300-gld | |
1763 | else | |
1764 | tmake_file=m68k/t-mot3300 | |
1765 | use_collect2=yes | |
1766 | fi | |
1767 | fi | |
1768 | gdb_needs_out_file_path=yes | |
1769 | extra_parts="crt0.o mcrt0.o" | |
1770 | extra_headers=math-68881.h | |
c8db55b0 | 1771 | float_format=m68k |
46f18e7b RK |
1772 | ;; |
1773 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
1774 | tm_file=m68k/tower-as.h | |
61536478 | 1775 | xm_defines="USG SVR3" |
46f18e7b RK |
1776 | xmake_file=m68k/x-tower |
1777 | extra_parts="crtbegin.o crtend.o" | |
1778 | extra_headers=math-68881.h | |
1779 | ;; | |
1780 | m68k-plexus-sysv*) | |
1781 | tm_file=m68k/plexus.h | |
61536478 JL |
1782 | xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" |
1783 | xm_defines=USG | |
46f18e7b RK |
1784 | use_collect2=yes |
1785 | extra_headers=math-68881.h | |
1786 | ;; | |
1787 | m68k-tti-*) | |
1788 | tm_file=m68k/pbb.h | |
61536478 JL |
1789 | xm_file="xm-alloca.h ${xm_file}" |
1790 | xm_defines=USG | |
46f18e7b RK |
1791 | extra_headers=math-68881.h |
1792 | ;; | |
1793 | m68k-crds-unos*) | |
61536478 JL |
1794 | xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" |
1795 | xm_defines="USG unos" | |
46f18e7b RK |
1796 | xmake_file=m68k/x-crds |
1797 | tm_file=m68k/crds.h | |
46f18e7b RK |
1798 | use_collect2=yes |
1799 | extra_headers=math-68881.h | |
1800 | ;; | |
1801 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
1802 | tm_file=m68k/amix.h | |
61536478 JL |
1803 | xm_file="xm-alloca.h ${xm_file}" |
1804 | xm_defines="USG FULL_PROTOTYPES" | |
46f18e7b RK |
1805 | xmake_file=m68k/x-amix |
1806 | tmake_file=t-svr4 | |
1807 | extra_parts="crtbegin.o crtend.o" | |
1808 | extra_headers=math-68881.h | |
c8db55b0 | 1809 | float_format=m68k |
46f18e7b RK |
1810 | ;; |
1811 | m68k-ccur-rtu) | |
1812 | tm_file=m68k/ccur-GAS.h | |
1813 | xmake_file=m68k/x-ccur | |
1814 | extra_headers=math-68881.h | |
1815 | use_collect2=yes | |
c8db55b0 | 1816 | float_format=m68k |
46f18e7b RK |
1817 | ;; |
1818 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
1819 | tm_file=m68k/hp3bsd44.h | |
1820 | xmake_file=m68k/x-hp3bsd44 | |
1821 | use_collect2=yes | |
1822 | extra_headers=math-68881.h | |
c8db55b0 | 1823 | float_format=m68k |
46f18e7b RK |
1824 | ;; |
1825 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
1826 | tm_file=m68k/hp3bsd.h | |
1827 | use_collect2=yes | |
1828 | extra_headers=math-68881.h | |
c8db55b0 | 1829 | float_format=m68k |
46f18e7b RK |
1830 | ;; |
1831 | m68k-isi-bsd*) | |
75bffa71 | 1832 | if test x$with_fp = xno |
46f18e7b RK |
1833 | then |
1834 | tm_file=m68k/isi-nfp.h | |
1835 | else | |
1836 | tm_file=m68k/isi.h | |
c8db55b0 | 1837 | float_format=m68k |
46f18e7b RK |
1838 | fi |
1839 | use_collect2=yes | |
1840 | extra_headers=math-68881.h | |
1841 | ;; | |
1842 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
61536478 JL |
1843 | xm_file="xm_alloca.h ${xm_file}" |
1844 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 1845 | if test x$gas = xyes |
46f18e7b RK |
1846 | then |
1847 | xmake_file=m68k/x-hp320g | |
1848 | tm_file=m68k/hp320g.h | |
1849 | else | |
1850 | xmake_file=m68k/x-hp320 | |
1851 | tm_file=m68k/hpux7.h | |
1852 | fi | |
46f18e7b RK |
1853 | install_headers_dir=install-headers-cpio |
1854 | use_collect2=yes | |
1855 | extra_headers=math-68881.h | |
c8db55b0 | 1856 | float_format=m68k |
46f18e7b RK |
1857 | ;; |
1858 | m68k-hp-hpux*) # HP 9000 series 300 | |
61536478 JL |
1859 | xm_file="xm_alloca.h ${xm_file}" |
1860 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 1861 | if test x$gas = xyes |
46f18e7b RK |
1862 | then |
1863 | xmake_file=m68k/x-hp320g | |
1864 | tm_file=m68k/hp320g.h | |
1865 | else | |
1866 | xmake_file=m68k/x-hp320 | |
1867 | tm_file=m68k/hp320.h | |
1868 | fi | |
46f18e7b RK |
1869 | install_headers_dir=install-headers-cpio |
1870 | use_collect2=yes | |
1871 | extra_headers=math-68881.h | |
c8db55b0 | 1872 | float_format=m68k |
46f18e7b RK |
1873 | ;; |
1874 | m68k-sun-mach*) | |
1875 | tm_file=m68k/sun3mach.h | |
1876 | use_collect2=yes | |
1877 | extra_headers=math-68881.h | |
c8db55b0 | 1878 | float_format=m68k |
46f18e7b RK |
1879 | ;; |
1880 | m68k-sony-newsos3*) | |
75bffa71 | 1881 | if test x$gas = xyes |
46f18e7b RK |
1882 | then |
1883 | tm_file=m68k/news3gas.h | |
1884 | else | |
1885 | tm_file=m68k/news3.h | |
1886 | fi | |
1887 | use_collect2=yes | |
1888 | extra_headers=math-68881.h | |
c8db55b0 | 1889 | float_format=m68k |
46f18e7b RK |
1890 | ;; |
1891 | m68k-sony-bsd* | m68k-sony-newsos*) | |
75bffa71 | 1892 | if test x$gas = xyes |
46f18e7b RK |
1893 | then |
1894 | tm_file=m68k/newsgas.h | |
1895 | else | |
1896 | tm_file=m68k/news.h | |
1897 | fi | |
1898 | use_collect2=yes | |
1899 | extra_headers=math-68881.h | |
c8db55b0 | 1900 | float_format=m68k |
46f18e7b RK |
1901 | ;; |
1902 | m68k-next-nextstep2*) | |
1903 | tm_file=m68k/next21.h | |
61536478 | 1904 | xm_file="m68k/xm-next.h ${xm_file}" |
46f18e7b RK |
1905 | tmake_file=m68k/t-next |
1906 | xmake_file=m68k/x-next | |
1907 | extra_objs=nextstep.o | |
1908 | extra_headers=math-68881.h | |
1909 | use_collect2=yes | |
c8db55b0 | 1910 | float_format=m68k |
46f18e7b RK |
1911 | ;; |
1912 | m68k-next-nextstep3*) | |
1913 | tm_file=m68k/next.h | |
61536478 | 1914 | xm_file="m68k/xm-next.h ${xm_file}" |
46f18e7b RK |
1915 | tmake_file=m68k/t-next |
1916 | xmake_file=m68k/x-next | |
1917 | extra_objs=nextstep.o | |
750930c1 | 1918 | extra_parts="crtbegin.o crtend.o" |
46f18e7b | 1919 | extra_headers=math-68881.h |
c8db55b0 | 1920 | float_format=m68k |
75bffa71 | 1921 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
1922 | thread_file='mach' |
1923 | fi | |
46f18e7b RK |
1924 | ;; |
1925 | m68k-sun-sunos3*) | |
75bffa71 | 1926 | if test x$with_fp = xno |
46f18e7b RK |
1927 | then |
1928 | tm_file=m68k/sun3n3.h | |
1929 | else | |
1930 | tm_file=m68k/sun3o3.h | |
c8db55b0 | 1931 | float_format=m68k |
46f18e7b RK |
1932 | fi |
1933 | use_collect2=yes | |
1934 | extra_headers=math-68881.h | |
1935 | ;; | |
1936 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
75bffa71 | 1937 | if test x$with_fp = xno |
46f18e7b RK |
1938 | then |
1939 | tm_file=m68k/sun3n.h | |
1940 | else | |
1941 | tm_file=m68k/sun3.h | |
c8db55b0 | 1942 | float_format=m68k |
46f18e7b | 1943 | fi |
46f18e7b RK |
1944 | use_collect2=yes |
1945 | extra_headers=math-68881.h | |
1946 | ;; | |
1947 | m68k-wrs-vxworks*) | |
1948 | tm_file=m68k/vxm68k.h | |
1949 | tmake_file=m68k/t-vxworks68 | |
1950 | extra_headers=math-68881.h | |
7cc34889 | 1951 | thread_file='vxworks' |
c8db55b0 | 1952 | float_format=m68k |
46f18e7b RK |
1953 | ;; |
1954 | m68k-*-aout*) | |
1955 | tmake_file=m68k/t-m68kbare | |
1956 | tm_file="m68k/m68k-aout.h libgloss.h" | |
1957 | extra_headers=math-68881.h | |
c8db55b0 | 1958 | float_format=m68k |
46f18e7b RK |
1959 | ;; |
1960 | m68k-*-coff*) | |
1961 | tmake_file=m68k/t-m68kbare | |
1962 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
1963 | extra_headers=math-68881.h | |
c8db55b0 | 1964 | float_format=m68k |
46f18e7b | 1965 | ;; |
d1be3be3 JW |
1966 | m68020-*-elf* | m68k-*-elf*) |
1967 | tm_file="m68k/m68020-elf.h libgloss.h" | |
1968 | xm_file=m68k/xm-m68kv.h | |
1969 | tmake_file=m68k/t-m68kelf | |
1970 | header_files=math-68881.h | |
1971 | ;; | |
46f18e7b | 1972 | m68k-*-lynxos*) |
75bffa71 | 1973 | if test x$gas = xyes |
46f18e7b RK |
1974 | then |
1975 | tm_file=m68k/lynx.h | |
1976 | else | |
1977 | tm_file=m68k/lynx-ng.h | |
1978 | fi | |
1979 | xm_file=m68k/xm-lynx.h | |
1980 | xmake_file=x-lynx | |
1981 | tmake_file=m68k/t-lynx | |
1982 | extra_headers=math-68881.h | |
c8db55b0 | 1983 | float_format=m68k |
46f18e7b | 1984 | ;; |
58600d24 | 1985 | m68k*-*-netbsd*) |
46f18e7b | 1986 | tm_file=m68k/netbsd.h |
e47f44f4 | 1987 | tmake_file=t-netbsd |
c8db55b0 | 1988 | float_format=m68k |
46f18e7b | 1989 | ;; |
1b4a979b ME |
1990 | m68k*-*-openbsd*) |
1991 | float_format=m68k | |
1992 | # we need collect2 until our bug is fixed... | |
1993 | use_collect2=yes | |
1994 | ;; | |
46f18e7b | 1995 | m68k-*-sysv3*) # Motorola m68k's running system V.3 |
61536478 JL |
1996 | xm_file="xm-alloca.h ${xm_file}" |
1997 | xm_defines=USG | |
46f18e7b RK |
1998 | xmake_file=m68k/x-m68kv |
1999 | extra_parts="crtbegin.o crtend.o" | |
2000 | extra_headers=math-68881.h | |
c8db55b0 | 2001 | float_format=m68k |
46f18e7b RK |
2002 | ;; |
2003 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
2004 | tm_file=m68k/m68kv4.h | |
61536478 JL |
2005 | xm_file="xm-alloca.h ${xm_file}" |
2006 | xm_defines=USG | |
46f18e7b RK |
2007 | tmake_file=t-svr4 |
2008 | extra_parts="crtbegin.o crtend.o" | |
2009 | extra_headers=math-68881.h | |
c8db55b0 | 2010 | float_format=m68k |
46f18e7b | 2011 | ;; |
956d6950 | 2012 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
61536478 | 2013 | # with a.out format |
46f18e7b RK |
2014 | xmake_file=x-linux |
2015 | tm_file=m68k/linux-aout.h | |
2016 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
46f18e7b | 2017 | extra_headers=math-68881.h |
c8db55b0 | 2018 | float_format=m68k |
46f18e7b | 2019 | gnu_ld=yes |
46f18e7b | 2020 | ;; |
956d6950 | 2021 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
61536478 JL |
2022 | # with ELF format using the |
2023 | # GNU/Linux C library 5 | |
2024 | xmake_file=x-linux | |
95fd3981 RK |
2025 | tm_file=m68k/linux.h |
2026 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
2027 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
95fd3981 | 2028 | extra_headers=math-68881.h |
c8db55b0 | 2029 | float_format=m68k |
95fd3981 RK |
2030 | gnu_ld=yes |
2031 | ;; | |
956d6950 | 2032 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
61536478 JL |
2033 | # with ELF format using glibc 2 |
2034 | # aka the GNU/Linux C library 6. | |
2035 | xmake_file=x-linux | |
46f18e7b RK |
2036 | tm_file=m68k/linux.h |
2037 | tmake_file="t-linux m68k/t-linux" | |
2038 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
46f18e7b | 2039 | extra_headers=math-68881.h |
c8db55b0 | 2040 | float_format=m68k |
46f18e7b | 2041 | gnu_ld=yes |
75bffa71 | 2042 | if test x$enable_threads = xyes; then |
95fd3981 RK |
2043 | thread_file='posix' |
2044 | fi | |
46f18e7b RK |
2045 | ;; |
2046 | m68k-*-psos*) | |
2047 | tmake_file=m68k/t-m68kbare | |
2048 | tm_file=m68k/m68k-psos.h | |
2049 | extra_headers=math-68881.h | |
c8db55b0 | 2050 | float_format=m68k |
46f18e7b RK |
2051 | ;; |
2052 | m68k-*-rtems*) | |
2053 | tmake_file="m68k/t-m68kbare t-rtems" | |
2054 | tm_file=m68k/rtems.h | |
2055 | extra_headers=math-68881.h | |
c8db55b0 | 2056 | float_format=m68k |
46f18e7b RK |
2057 | ;; |
2058 | ||
2059 | m88k-dg-dgux*) | |
2060 | case $machine in | |
2061 | m88k-dg-dguxbcs*) | |
2062 | tm_file=m88k/dguxbcs.h | |
2063 | tmake_file=m88k/t-dguxbcs | |
2064 | ;; | |
2065 | *) | |
2066 | tm_file=m88k/dgux.h | |
2067 | tmake_file=m88k/t-dgux | |
2068 | ;; | |
2069 | esac | |
2070 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
46f18e7b | 2071 | xmake_file=m88k/x-dgux |
75bffa71 | 2072 | if test x$gas = xyes |
46f18e7b RK |
2073 | then |
2074 | tmake_file=m88k/t-dgux-gas | |
2075 | fi | |
46f18e7b RK |
2076 | ;; |
2077 | m88k-dolphin-sysv3*) | |
2078 | tm_file=m88k/dolph.h | |
2079 | extra_parts="crtbegin.o crtend.o" | |
61536478 | 2080 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
46f18e7b | 2081 | xmake_file=m88k/x-dolph |
75bffa71 | 2082 | if test x$gas = xyes |
46f18e7b RK |
2083 | then |
2084 | tmake_file=m88k/t-m88k-gas | |
2085 | fi | |
2086 | ;; | |
2087 | m88k-tektronix-sysv3) | |
2088 | tm_file=m88k/tekXD88.h | |
2089 | extra_parts="crtbegin.o crtend.o" | |
61536478 | 2090 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
46f18e7b | 2091 | xmake_file=m88k/x-tekXD88 |
75bffa71 | 2092 | if test x$gas = xyes |
46f18e7b RK |
2093 | then |
2094 | tmake_file=m88k/t-m88k-gas | |
2095 | fi | |
2096 | ;; | |
2097 | m88k-*-aout*) | |
2098 | tm_file=m88k/m88k-aout.h | |
2099 | ;; | |
2100 | m88k-*-coff*) | |
2101 | tm_file=m88k/m88k-coff.h | |
2102 | tmake_file=m88k/t-bug | |
2103 | ;; | |
2104 | m88k-*-luna*) | |
2105 | tm_file=m88k/luna.h | |
2106 | extra_parts="crtbegin.o crtend.o" | |
75bffa71 | 2107 | if test x$gas = xyes |
46f18e7b RK |
2108 | then |
2109 | tmake_file=m88k/t-luna-gas | |
2110 | else | |
2111 | tmake_file=m88k/t-luna | |
2112 | fi | |
2113 | ;; | |
1b4a979b ME |
2114 | m88k-*-openbsd*) |
2115 | tmake_file="${tmake_file} m88k/t-luna-gas" | |
2116 | ;; | |
46f18e7b RK |
2117 | m88k-*-sysv3*) |
2118 | tm_file=m88k/sysv3.h | |
2119 | extra_parts="crtbegin.o crtend.o" | |
61536478 | 2120 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
46f18e7b | 2121 | xmake_file=m88k/x-sysv3 |
75bffa71 | 2122 | if test x$gas = xyes |
46f18e7b RK |
2123 | then |
2124 | tmake_file=m88k/t-m88k-gas | |
2125 | fi | |
2126 | ;; | |
2127 | m88k-*-sysv4*) | |
2128 | tm_file=m88k/sysv4.h | |
2129 | extra_parts="crtbegin.o crtend.o" | |
2130 | xmake_file=m88k/x-sysv4 | |
2131 | tmake_file=m88k/t-sysv4 | |
2132 | ;; | |
2133 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
2134 | tm_file=mips/iris6.h | |
2135 | xm_file=mips/xm-iris6.h | |
46f18e7b RK |
2136 | xmake_file=mips/x-iris6 |
2137 | tmake_file=mips/t-iris6 | |
04069e5c | 2138 | # if test x$enable_threads = xyes; then |
6e148807 | 2139 | # thread_file='irix' |
04069e5c | 2140 | # fi |
46f18e7b | 2141 | ;; |
98bd9f0f DB |
2142 | mips-wrs-vxworks) |
2143 | tm_file="mips/elf.h libgloss.h" | |
2144 | tmake_file=mips/t-ecoff | |
2145 | gas=yes | |
2146 | gnu_ld=yes | |
2147 | extra_parts="crtbegin.o crtend.o" | |
e9c0315e | 2148 | thread_file='vxworks' |
98bd9f0f | 2149 | ;; |
46f18e7b | 2150 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
61536478 | 2151 | tm_file="mips/iris6.h mips/cross64.h" |
74c55ab0 JW |
2152 | xm_defines=USG |
2153 | xm_file="mips/xm-iris5.h" | |
46f18e7b RK |
2154 | xmake_file=mips/x-iris |
2155 | tmake_file=mips/t-cross64 | |
2156 | # See comment in mips/iris[56].h files. | |
2157 | use_collect2=yes | |
04069e5c | 2158 | # if test x$enable_threads = xyes; then |
6e148807 | 2159 | # thread_file='irix' |
04069e5c | 2160 | # fi |
46f18e7b RK |
2161 | ;; |
2162 | mips-sni-sysv4) | |
75bffa71 | 2163 | if test x$gas = xyes |
46f18e7b | 2164 | then |
75bffa71 | 2165 | if test x$stabs = xyes |
46f18e7b RK |
2166 | then |
2167 | tm_file=mips/iris5gdb.h | |
2168 | else | |
61536478 | 2169 | tm_file="mips/sni-svr4.h mips/sni-gas.h" |
46f18e7b RK |
2170 | fi |
2171 | else | |
2172 | tm_file=mips/sni-svr4.h | |
2173 | fi | |
61536478 | 2174 | xm_defines=USG |
46f18e7b RK |
2175 | xmake_file=mips/x-sni-svr4 |
2176 | tmake_file=mips/t-mips-gas | |
75bffa71 | 2177 | if test x$gnu_ld != xyes |
46f18e7b RK |
2178 | then |
2179 | use_collect2=yes | |
2180 | fi | |
46f18e7b RK |
2181 | ;; |
2182 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
75bffa71 | 2183 | if test x$gas = xyes |
46f18e7b | 2184 | then |
61536478 | 2185 | tm_file="mips/iris5.h mips/iris5gas.h" |
75bffa71 | 2186 | if test x$stabs = xyes |
46f18e7b RK |
2187 | then |
2188 | tm_file="${tm_file} dbx.h" | |
2189 | fi | |
2190 | else | |
2191 | tm_file=mips/iris5.h | |
2192 | fi | |
74c55ab0 JW |
2193 | xm_defines=USG |
2194 | xm_file="mips/xm-iris5.h" | |
46f18e7b RK |
2195 | xmake_file=mips/x-iris |
2196 | # mips-tfile doesn't work yet | |
2197 | tmake_file=mips/t-mips-gas | |
2198 | # See comment in mips/iris5.h file. | |
2199 | use_collect2=yes | |
04069e5c | 2200 | # if test x$enable_threads = xyes; then |
6e148807 | 2201 | # thread_file='irix' |
04069e5c | 2202 | # fi |
46f18e7b RK |
2203 | ;; |
2204 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
61536478 | 2205 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 2206 | if test x$stabs = xyes; then |
46f18e7b RK |
2207 | tm_file="${tm_file} dbx.h" |
2208 | fi | |
61536478 | 2209 | xm_defines=USG |
46f18e7b | 2210 | xmake_file=mips/x-iris |
75bffa71 | 2211 | if test x$gas = xyes |
46f18e7b RK |
2212 | then |
2213 | tmake_file=mips/t-mips-gas | |
2214 | else | |
2215 | extra_passes="mips-tfile mips-tdump" | |
2216 | fi | |
75bffa71 | 2217 | if test x$gnu_ld != xyes |
46f18e7b RK |
2218 | then |
2219 | use_collect2=yes | |
2220 | fi | |
04069e5c | 2221 | # if test x$enable_threads = xyes; then |
6e148807 | 2222 | # thread_file='irix' |
04069e5c | 2223 | # fi |
46f18e7b RK |
2224 | ;; |
2225 | mips-sgi-irix4*) # Mostly like a MIPS. | |
61536478 | 2226 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 2227 | if test x$stabs = xyes; then |
46f18e7b RK |
2228 | tm_file="${tm_file} dbx.h" |
2229 | fi | |
61536478 | 2230 | xm_defines=USG |
46f18e7b | 2231 | xmake_file=mips/x-iris |
75bffa71 | 2232 | if test x$gas = xyes |
46f18e7b RK |
2233 | then |
2234 | tmake_file=mips/t-mips-gas | |
2235 | else | |
2236 | extra_passes="mips-tfile mips-tdump" | |
2237 | fi | |
75bffa71 | 2238 | if test x$gnu_ld != xyes |
46f18e7b RK |
2239 | then |
2240 | use_collect2=yes | |
2241 | fi | |
04069e5c | 2242 | # if test x$enable_threads = xyes; then |
6e148807 | 2243 | # thread_file='irix' |
04069e5c | 2244 | # fi |
46f18e7b RK |
2245 | ;; |
2246 | mips-sgi-*) # Mostly like a MIPS. | |
61536478 | 2247 | tm_file="mips/iris3.h ${tm_file}" |
75bffa71 | 2248 | if test x$stabs = xyes; then |
46f18e7b RK |
2249 | tm_file="${tm_file} dbx.h" |
2250 | fi | |
61536478 | 2251 | xm_defines=USG |
46f18e7b | 2252 | xmake_file=mips/x-iris3 |
75bffa71 | 2253 | if test x$gas = xyes |
46f18e7b RK |
2254 | then |
2255 | tmake_file=mips/t-mips-gas | |
2256 | else | |
2257 | extra_passes="mips-tfile mips-tdump" | |
2258 | fi | |
75bffa71 | 2259 | if test x$gnu_ld != xyes |
46f18e7b RK |
2260 | then |
2261 | use_collect2=yes | |
2262 | fi | |
2263 | ;; | |
2264 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
61536478 | 2265 | tm_file="mips/osfrose.h ${tm_file}" |
46f18e7b RK |
2266 | xmake_file=mips/x-osfrose |
2267 | tmake_file=mips/t-osfrose | |
2268 | extra_objs=halfpic.o | |
2269 | use_collect2=yes | |
2270 | ;; | |
2271 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
2272 | tm_file=mips/dec-osf1.h | |
75bffa71 | 2273 | if test x$stabs = xyes; then |
46f18e7b RK |
2274 | tm_file="${tm_file} dbx.h" |
2275 | fi | |
2276 | xmake_file=mips/x-dec-osf1 | |
75bffa71 | 2277 | if test x$gas = xyes |
46f18e7b RK |
2278 | then |
2279 | tmake_file=mips/t-mips-gas | |
2280 | else | |
2281 | tmake_file=mips/t-ultrix | |
2282 | extra_passes="mips-tfile mips-tdump" | |
2283 | fi | |
75bffa71 | 2284 | if test x$gnu_ld != xyes |
46f18e7b RK |
2285 | then |
2286 | use_collect2=yes | |
2287 | fi | |
2288 | ;; | |
2289 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
2290 | tm_file=mips/dec-bsd.h | |
75bffa71 | 2291 | if test x$gas = xyes |
46f18e7b RK |
2292 | then |
2293 | tmake_file=mips/t-mips-gas | |
2294 | else | |
2295 | tmake_file=mips/t-ultrix | |
2296 | extra_passes="mips-tfile mips-tdump" | |
2297 | fi | |
75bffa71 | 2298 | if test x$gnu_ld != xyes |
46f18e7b RK |
2299 | then |
2300 | use_collect2=yes | |
2301 | fi | |
2302 | ;; | |
58600d24 | 2303 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD |
46f18e7b | 2304 | tm_file=mips/netbsd.h |
be1ed94f | 2305 | # On NetBSD, the headers are already okay, except for math.h. |
e47f44f4 | 2306 | tmake_file=t-netbsd |
46f18e7b | 2307 | ;; |
11fa8909 | 2308 | mips*-*-linux*) # Linux MIPS, either endian. |
18cae839 RL |
2309 | xmake_file=x-linux |
2310 | xm_file="xm-siglist.h ${xm_file}" | |
11fa8909 RL |
2311 | case $machine in |
2312 | mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;; | |
2313 | *) tm_file="mips/elf.h mips/linux.h" ;; | |
2314 | esac | |
18cae839 RL |
2315 | extra_parts="crtbegin.o crtend.o" |
2316 | gnu_ld=yes | |
2317 | gas=yes | |
2318 | fixincludes=Makefile.in | |
2319 | ;; | |
1b4a979b ME |
2320 | mips*el-*-openbsd*) # mips little endian |
2321 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
2322 | tm_file=mips/openbsd.h | |
2323 | xmake_file=none | |
2324 | ;; | |
2325 | mips*-*-openbsd*) # mips big endian | |
2326 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
2327 | tm_file=mips/openbsd-be.h | |
2328 | xmake_file=none | |
2329 | ;; | |
46f18e7b | 2330 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. |
61536478 | 2331 | tm_file="mips/news4.h ${tm_file}" |
75bffa71 | 2332 | if test x$stabs = xyes; then |
46f18e7b RK |
2333 | tm_file="${tm_file} dbx.h" |
2334 | fi | |
75bffa71 | 2335 | if test x$gas = xyes |
46f18e7b RK |
2336 | then |
2337 | tmake_file=mips/t-mips-gas | |
2338 | else | |
2339 | extra_passes="mips-tfile mips-tdump" | |
2340 | fi | |
75bffa71 | 2341 | if test x$gnu_ld != xyes |
46f18e7b RK |
2342 | then |
2343 | use_collect2=yes | |
2344 | fi | |
2345 | xmake_file=mips/x-sony | |
2346 | ;; | |
2347 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
2348 | # That is based on svr4. | |
2349 | # t-svr4 is not right because this system doesn't use ELF. | |
61536478 | 2350 | tm_file="mips/news5.h ${tm_file}" |
75bffa71 | 2351 | if test x$stabs = xyes; then |
46f18e7b RK |
2352 | tm_file="${tm_file} dbx.h" |
2353 | fi | |
61536478 JL |
2354 | xm_file="xm-siglist.h ${xm_file}" |
2355 | xm_defines=USG | |
75bffa71 | 2356 | if test x$gas = xyes |
46f18e7b RK |
2357 | then |
2358 | tmake_file=mips/t-mips-gas | |
2359 | else | |
2360 | extra_passes="mips-tfile mips-tdump" | |
2361 | fi | |
75bffa71 | 2362 | if test x$gnu_ld != xyes |
46f18e7b RK |
2363 | then |
2364 | use_collect2=yes | |
2365 | fi | |
2366 | ;; | |
2367 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
61536478 | 2368 | tm_file="mips/svr4-5.h mips/svr4-t.h" |
75bffa71 | 2369 | if test x$stabs = xyes; then |
46f18e7b RK |
2370 | tm_file="${tm_file} dbx.h" |
2371 | fi | |
61536478 JL |
2372 | xm_file="xm-siglist.h ${xm_file}" |
2373 | xm_defines=USG | |
46f18e7b | 2374 | xmake_file=mips/x-sysv |
75bffa71 | 2375 | if test x$gas = xyes |
46f18e7b RK |
2376 | then |
2377 | tmake_file=mips/t-mips-gas | |
2378 | extra_parts="crtbegin.o crtend.o" | |
2379 | else | |
2380 | tmake_file=mips/t-mips | |
2381 | extra_passes="mips-tfile mips-tdump" | |
2382 | fi | |
75bffa71 | 2383 | if test x$gnu_ld != xyes |
46f18e7b RK |
2384 | then |
2385 | use_collect2=yes | |
2386 | fi | |
46f18e7b RK |
2387 | ;; |
2388 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
61536478 | 2389 | tm_file="mips/ultrix.h ${tm_file}" |
75bffa71 | 2390 | if test x$stabs = xyes; then |
46f18e7b RK |
2391 | tm_file="${tm_file} dbx.h" |
2392 | fi | |
2393 | xmake_file=mips/x-ultrix | |
75bffa71 | 2394 | if test x$gas = xyes |
46f18e7b RK |
2395 | then |
2396 | tmake_file=mips/t-mips-gas | |
2397 | else | |
2398 | tmake_file=mips/t-ultrix | |
2399 | extra_passes="mips-tfile mips-tdump" | |
2400 | fi | |
75bffa71 | 2401 | if test x$gnu_ld != xyes |
46f18e7b RK |
2402 | then |
2403 | use_collect2=yes | |
2404 | fi | |
2405 | ;; | |
75bffa71 ILT |
2406 | changequote(,)dnl |
2407 | mips-*-riscos[56789]bsd*) | |
2408 | changequote([,])dnl | |
46f18e7b | 2409 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 |
75bffa71 | 2410 | if test x$stabs = xyes; then |
46f18e7b RK |
2411 | tm_file="${tm_file} dbx.h" |
2412 | fi | |
75bffa71 | 2413 | if test x$gas = xyes |
46f18e7b RK |
2414 | then |
2415 | tmake_file=mips/t-bsd-gas | |
2416 | else | |
2417 | tmake_file=mips/t-bsd | |
2418 | extra_passes="mips-tfile mips-tdump" | |
2419 | fi | |
75bffa71 | 2420 | if test x$gnu_ld != xyes |
46f18e7b RK |
2421 | then |
2422 | use_collect2=yes | |
2423 | fi | |
46f18e7b | 2424 | ;; |
75bffa71 ILT |
2425 | changequote(,)dnl |
2426 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
2427 | changequote([,])dnl | |
61536478 | 2428 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 |
75bffa71 | 2429 | if test x$stabs = xyes; then |
46f18e7b RK |
2430 | tm_file="${tm_file} dbx.h" |
2431 | fi | |
75bffa71 | 2432 | if test x$gas = xyes |
46f18e7b RK |
2433 | then |
2434 | tmake_file=mips/t-bsd-gas | |
2435 | else | |
2436 | tmake_file=mips/t-bsd | |
2437 | extra_passes="mips-tfile mips-tdump" | |
2438 | fi | |
75bffa71 | 2439 | if test x$gnu_ld != xyes |
46f18e7b RK |
2440 | then |
2441 | use_collect2=yes | |
2442 | fi | |
46f18e7b | 2443 | ;; |
75bffa71 ILT |
2444 | changequote(,)dnl |
2445 | mips-*-riscos[56789]sysv4*) | |
2446 | changequote([,])dnl | |
46f18e7b | 2447 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 |
75bffa71 | 2448 | if test x$stabs = xyes; then |
46f18e7b RK |
2449 | tm_file="${tm_file} dbx.h" |
2450 | fi | |
61536478 | 2451 | xm_file="xm-siglist.h ${xm_file}" |
46f18e7b | 2452 | xmake_file=mips/x-sysv |
75bffa71 | 2453 | if test x$gas = xyes |
46f18e7b RK |
2454 | then |
2455 | tmake_file=mips/t-svr4-gas | |
2456 | else | |
2457 | tmake_file=mips/t-svr4 | |
2458 | extra_passes="mips-tfile mips-tdump" | |
2459 | fi | |
75bffa71 | 2460 | if test x$gnu_ld != xyes |
46f18e7b RK |
2461 | then |
2462 | use_collect2=yes | |
2463 | fi | |
46f18e7b | 2464 | ;; |
75bffa71 ILT |
2465 | changequote(,)dnl |
2466 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
2467 | changequote([,])dnl | |
61536478 | 2468 | tm_file="mips/svr4-4.h ${tm_file}" |
75bffa71 | 2469 | if test x$stabs = xyes; then |
46f18e7b RK |
2470 | tm_file="${tm_file} dbx.h" |
2471 | fi | |
61536478 | 2472 | xm_defines=USG |
46f18e7b | 2473 | xmake_file=mips/x-sysv |
75bffa71 | 2474 | if test x$gas = xyes |
46f18e7b RK |
2475 | then |
2476 | tmake_file=mips/t-svr4-gas | |
2477 | else | |
2478 | tmake_file=mips/t-svr4 | |
2479 | extra_passes="mips-tfile mips-tdump" | |
2480 | fi | |
75bffa71 | 2481 | if test x$gnu_ld != xyes |
46f18e7b RK |
2482 | then |
2483 | use_collect2=yes | |
2484 | fi | |
46f18e7b | 2485 | ;; |
75bffa71 ILT |
2486 | changequote(,)dnl |
2487 | mips-*-riscos[56789]sysv*) | |
2488 | changequote([,])dnl | |
46f18e7b | 2489 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 |
75bffa71 | 2490 | if test x$stabs = xyes; then |
46f18e7b RK |
2491 | tm_file="${tm_file} dbx.h" |
2492 | fi | |
61536478 | 2493 | xm_defines=USG |
46f18e7b | 2494 | xmake_file=mips/x-sysv |
75bffa71 | 2495 | if test x$gas = xyes |
46f18e7b RK |
2496 | then |
2497 | tmake_file=mips/t-svr3-gas | |
2498 | else | |
2499 | tmake_file=mips/t-svr3 | |
2500 | extra_passes="mips-tfile mips-tdump" | |
2501 | fi | |
75bffa71 | 2502 | if test x$gnu_ld != xyes |
46f18e7b RK |
2503 | then |
2504 | use_collect2=yes | |
2505 | fi | |
46f18e7b RK |
2506 | ;; |
2507 | mips-*-sysv* | mips-*-riscos*sysv*) | |
61536478 | 2508 | tm_file="mips/svr3-4.h ${tm_file}" |
75bffa71 | 2509 | if test x$stabs = xyes; then |
46f18e7b RK |
2510 | tm_file="${tm_file} dbx.h" |
2511 | fi | |
61536478 | 2512 | xm_defines=USG |
46f18e7b | 2513 | xmake_file=mips/x-sysv |
75bffa71 | 2514 | if test x$gas = xyes |
46f18e7b RK |
2515 | then |
2516 | tmake_file=mips/t-svr3-gas | |
2517 | else | |
2518 | tmake_file=mips/t-svr3 | |
2519 | extra_passes="mips-tfile mips-tdump" | |
2520 | fi | |
75bffa71 | 2521 | if test x$gnu_ld != xyes |
46f18e7b RK |
2522 | then |
2523 | use_collect2=yes | |
2524 | fi | |
46f18e7b | 2525 | ;; |
75bffa71 ILT |
2526 | changequote(,)dnl |
2527 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
2528 | changequote([,])dnl | |
46f18e7b | 2529 | tm_file=mips/mips-5.h |
75bffa71 | 2530 | if test x$stabs = xyes; then |
46f18e7b RK |
2531 | tm_file="${tm_file} dbx.h" |
2532 | fi | |
75bffa71 | 2533 | if test x$gas = xyes |
46f18e7b RK |
2534 | then |
2535 | tmake_file=mips/t-mips-gas | |
2536 | else | |
2537 | extra_passes="mips-tfile mips-tdump" | |
2538 | fi | |
75bffa71 | 2539 | if test x$gnu_ld != xyes |
46f18e7b RK |
2540 | then |
2541 | use_collect2=yes | |
2542 | fi | |
46f18e7b RK |
2543 | ;; |
2544 | mips-*-gnu*) | |
2545 | ;; | |
2546 | mipsel-*-ecoff*) | |
2547 | tm_file=mips/ecoffl.h | |
75bffa71 | 2548 | if test x$stabs = xyes; then |
46f18e7b RK |
2549 | tm_file="${tm_file} dbx.h" |
2550 | fi | |
2551 | tmake_file=mips/t-ecoff | |
2552 | ;; | |
2553 | mips-*-ecoff*) | |
1be12a4a | 2554 | tm_file="gofast.h mips/ecoff.h" |
75bffa71 | 2555 | if test x$stabs = xyes; then |
46f18e7b RK |
2556 | tm_file="${tm_file} dbx.h" |
2557 | fi | |
2558 | tmake_file=mips/t-ecoff | |
46f18e7b RK |
2559 | ;; |
2560 | mipsel-*-elf*) | |
2561 | tm_file="mips/elfl.h libgloss.h" | |
2562 | tmake_file=mips/t-ecoff | |
2563 | ;; | |
2564 | mips-*-elf*) | |
2565 | tm_file="mips/elf.h libgloss.h" | |
2566 | tmake_file=mips/t-ecoff | |
2567 | ;; | |
2568 | mips64el-*-elf*) | |
2569 | tm_file="mips/elfl64.h libgloss.h" | |
2570 | tmake_file=mips/t-ecoff | |
2571 | ;; | |
2572 | mips64orionel-*-elf*) | |
61536478 | 2573 | tm_file="mips/elforion.h mips/elfl64.h libgloss.h" |
46f18e7b RK |
2574 | tmake_file=mips/t-ecoff |
2575 | ;; | |
2576 | mips64-*-elf*) | |
2577 | tm_file="mips/elf64.h libgloss.h" | |
2578 | tmake_file=mips/t-ecoff | |
2579 | ;; | |
2580 | mips64orion-*-elf*) | |
61536478 | 2581 | tm_file="mips/elforion.h mips/elf64.h libgloss.h" |
46f18e7b RK |
2582 | tmake_file=mips/t-ecoff |
2583 | ;; | |
2584 | mips64orion-*-rtems*) | |
6e9856ba | 2585 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" |
46f18e7b RK |
2586 | tmake_file="mips/t-ecoff t-rtems" |
2587 | ;; | |
e9a25f70 JL |
2588 | mipstx39el-*-elf*) |
2589 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h" | |
09e4daf5 | 2590 | tmake_file=mips/t-r3900 |
e9a25f70 JL |
2591 | ;; |
2592 | mipstx39-*-elf*) | |
2593 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h" | |
09e4daf5 | 2594 | tmake_file=mips/t-r3900 |
2ce3c6c6 JM |
2595 | # FIXME mips-elf should be fixed to use crtstuff. |
2596 | use_collect2=yes | |
e9a25f70 | 2597 | ;; |
46f18e7b | 2598 | mips-*-*) # Default MIPS RISC-OS 4.0. |
75bffa71 | 2599 | if test x$stabs = xyes; then |
46f18e7b RK |
2600 | tm_file="${tm_file} dbx.h" |
2601 | fi | |
75bffa71 | 2602 | if test x$gas = xyes |
46f18e7b RK |
2603 | then |
2604 | tmake_file=mips/t-mips-gas | |
2605 | else | |
2606 | extra_passes="mips-tfile mips-tdump" | |
2607 | fi | |
75bffa71 | 2608 | if test x$gnu_ld != xyes |
46f18e7b RK |
2609 | then |
2610 | use_collect2=yes | |
2611 | fi | |
2612 | ;; | |
cef64ec4 RK |
2613 | mn10200-*-*) |
2614 | cpu_type=mn10200 | |
2615 | tm_file="mn10200/mn10200.h" | |
75bffa71 | 2616 | if test x$stabs = xyes |
cef64ec4 RK |
2617 | then |
2618 | tm_file="${tm_file} dbx.h" | |
2619 | fi | |
2620 | use_collect2=no | |
2621 | ;; | |
46f18e7b RK |
2622 | mn10300-*-*) |
2623 | cpu_type=mn10300 | |
2624 | tm_file="mn10300/mn10300.h" | |
75bffa71 | 2625 | if test x$stabs = xyes |
46f18e7b RK |
2626 | then |
2627 | tm_file="${tm_file} dbx.h" | |
2628 | fi | |
2629 | use_collect2=no | |
2630 | ;; | |
2631 | ns32k-encore-bsd*) | |
2632 | tm_file=ns32k/encore.h | |
2633 | use_collect2=yes | |
2634 | ;; | |
2635 | ns32k-sequent-bsd*) | |
2636 | tm_file=ns32k/sequent.h | |
2637 | use_collect2=yes | |
2638 | ;; | |
2639 | ns32k-tek6100-bsd*) | |
2640 | tm_file=ns32k/tek6100.h | |
46f18e7b RK |
2641 | use_collect2=yes |
2642 | ;; | |
2643 | ns32k-tek6200-bsd*) | |
2644 | tm_file=ns32k/tek6200.h | |
46f18e7b RK |
2645 | use_collect2=yes |
2646 | ;; | |
2647 | # This has not been updated to GCC 2. | |
2648 | # ns32k-ns-genix*) | |
61536478 | 2649 | # xm_defines=USG |
46f18e7b RK |
2650 | # xmake_file=ns32k/x-genix |
2651 | # tm_file=ns32k/genix.h | |
46f18e7b RK |
2652 | # use_collect2=yes |
2653 | # ;; | |
2654 | ns32k-merlin-*) | |
2655 | tm_file=ns32k/merlin.h | |
2656 | use_collect2=yes | |
2657 | ;; | |
2658 | ns32k-pc532-mach*) | |
2659 | tm_file=ns32k/pc532-mach.h | |
2660 | use_collect2=yes | |
2661 | ;; | |
2662 | ns32k-pc532-minix*) | |
2663 | tm_file=ns32k/pc532-min.h | |
61536478 JL |
2664 | xm_file="ns32k/xm-pc532-min.h ${xm-file}" |
2665 | xm_defines=USG | |
46f18e7b RK |
2666 | use_collect2=yes |
2667 | ;; | |
58600d24 | 2668 | ns32k-*-netbsd*) |
46f18e7b | 2669 | tm_file=ns32k/netbsd.h |
641d4216 | 2670 | xm_file="ns32k/xm-netbsd.h ${xm_file}" |
be1ed94f | 2671 | # On NetBSD, the headers are already okay, except for math.h. |
e47f44f4 | 2672 | tmake_file=t-netbsd |
46f18e7b RK |
2673 | ;; |
2674 | pdp11-*-bsd) | |
2675 | tm_file="${tm_file} pdp11/2bsd.h" | |
2676 | ;; | |
2677 | pdp11-*-*) | |
2678 | ;; | |
1b4a979b ME |
2679 | ns32k-*-openbsd*) |
2680 | # Nothing special | |
2681 | ;; | |
46f18e7b RK |
2682 | pyramid-*-*) |
2683 | cpu_type=pyr | |
2684 | xmake_file=pyr/x-pyr | |
2685 | use_collect2=yes | |
2686 | ;; | |
2687 | romp-*-aos*) | |
2688 | use_collect2=yes | |
2689 | ;; | |
2690 | romp-*-mach*) | |
2691 | xmake_file=romp/x-mach | |
2692 | use_collect2=yes | |
2693 | ;; | |
1b4a979b ME |
2694 | romp-*-openbsd*) |
2695 | # Nothing special | |
2696 | ;; | |
2697 | powerpc-*-openbsd*) | |
2698 | tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" | |
2699 | xmake_file=none | |
2700 | ;; | |
c55dcc7d FF |
2701 | powerpc-*-beos*) |
2702 | cpu_type=rs6000 | |
2703 | tm_file=rs6000/beos.h | |
2704 | xm_file=rs6000/xm-beos.h | |
2705 | tmake_file=rs6000/t-beos | |
2706 | xmake_file=rs6000/x-beos | |
2707 | ;; | |
46f18e7b RK |
2708 | powerpc-*-sysv* | powerpc-*-elf*) |
2709 | tm_file=rs6000/sysv4.h | |
61536478 JL |
2710 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
2711 | xm_defines="USG POSIX" | |
46f18e7b | 2712 | extra_headers=ppc-asm.h |
75bffa71 | 2713 | if test x$gas = xyes |
46f18e7b RK |
2714 | then |
2715 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2716 | else | |
2717 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2718 | fi | |
2719 | xmake_file=rs6000/x-sysv4 | |
2720 | ;; | |
2721 | powerpc-*-eabiaix*) | |
2722 | tm_file=rs6000/eabiaix.h | |
2723 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
46f18e7b RK |
2724 | extra_headers=ppc-asm.h |
2725 | ;; | |
2726 | powerpc-*-eabisim*) | |
2727 | tm_file=rs6000/eabisim.h | |
2728 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
46f18e7b RK |
2729 | extra_headers=ppc-asm.h |
2730 | ;; | |
2731 | powerpc-*-eabi*) | |
2732 | tm_file=rs6000/eabi.h | |
75bffa71 | 2733 | if test x$gas = xyes |
46f18e7b RK |
2734 | then |
2735 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2736 | else | |
2737 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2738 | fi | |
46f18e7b RK |
2739 | extra_headers=ppc-asm.h |
2740 | ;; | |
dec3e070 JW |
2741 | powerpc-*-rtems*) |
2742 | tm_file=rs6000/rtems.h | |
75bffa71 | 2743 | if test x$gas = xyes |
46f18e7b | 2744 | then |
dec3e070 | 2745 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" |
46f18e7b | 2746 | else |
dec3e070 | 2747 | tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" |
46f18e7b | 2748 | fi |
46f18e7b RK |
2749 | extra_headers=ppc-asm.h |
2750 | ;; | |
ce514f57 FS |
2751 | powerpc-*-linux-gnulibc1) |
2752 | tm_file=rs6000/linux.h | |
2753 | xm_file=rs6000/xm-sysv4.h | |
2754 | out_file=rs6000/rs6000.c | |
75bffa71 | 2755 | if test x$gas = xyes |
ce514f57 FS |
2756 | then |
2757 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
2758 | else | |
2759 | tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
2760 | fi | |
2761 | xmake_file=x-linux | |
ce514f57 FS |
2762 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
2763 | extra_headers=ppc-asm.h | |
75bffa71 | 2764 | if test x$enable_threads = xyes; then |
ce514f57 FS |
2765 | thread_file='posix' |
2766 | fi | |
2767 | ;; | |
844dadc7 | 2768 | powerpc-*-linux-gnu*) |
dec3e070 | 2769 | tm_file=rs6000/linux.h |
61536478 JL |
2770 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
2771 | xm_defines="USG ${xm_defines}" | |
dec3e070 | 2772 | out_file=rs6000/rs6000.c |
75bffa71 | 2773 | if test x$gas = xyes |
46f18e7b | 2774 | then |
dec3e070 | 2775 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" |
46f18e7b | 2776 | else |
dec3e070 | 2777 | tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" |
46f18e7b | 2778 | fi |
d7308c0c | 2779 | xmake_file=x-linux |
d7308c0c | 2780 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
46f18e7b | 2781 | extra_headers=ppc-asm.h |
75bffa71 | 2782 | if test x$enable_threads = xyes; then |
d7308c0c RK |
2783 | thread_file='posix' |
2784 | fi | |
46f18e7b | 2785 | ;; |
7cc34889 | 2786 | powerpc-wrs-vxworks*) |
46f18e7b | 2787 | cpu_type=rs6000 |
61536478 JL |
2788 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
2789 | xm_defines="USG POSIX" | |
46f18e7b RK |
2790 | tm_file=rs6000/vxppc.h |
2791 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2792 | extra_headers=ppc-asm.h | |
7cc34889 | 2793 | thread_file='vxworks' |
46f18e7b RK |
2794 | ;; |
2795 | powerpcle-*-sysv* | powerpcle-*-elf*) | |
2796 | tm_file=rs6000/sysv4le.h | |
61536478 JL |
2797 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
2798 | xm_defines="USG POSIX" | |
75bffa71 | 2799 | if test x$gas = xyes |
46f18e7b RK |
2800 | then |
2801 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2802 | else | |
2803 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2804 | fi | |
2805 | xmake_file=rs6000/x-sysv4 | |
2806 | extra_headers=ppc-asm.h | |
2807 | ;; | |
2808 | powerpcle-*-eabisim*) | |
2809 | tm_file=rs6000/eabilesim.h | |
2810 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
46f18e7b RK |
2811 | extra_headers=ppc-asm.h |
2812 | ;; | |
2813 | powerpcle-*-eabi*) | |
2814 | tm_file=rs6000/eabile.h | |
75bffa71 | 2815 | if test x$gas = xyes |
46f18e7b RK |
2816 | then |
2817 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2818 | else | |
2819 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2820 | fi | |
46f18e7b RK |
2821 | extra_headers=ppc-asm.h |
2822 | ;; | |
2823 | powerpcle-*-winnt* ) | |
2824 | tm_file=rs6000/win-nt.h | |
2825 | tmake_file=rs6000/t-winnt | |
2826 | # extra_objs=pe.o | |
75bffa71 | 2827 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
2828 | thread_file='win32' |
2829 | fi | |
46f18e7b RK |
2830 | extra_headers=ppc-asm.h |
2831 | ;; | |
cae21ae8 GN |
2832 | powerpcle-*-pe | powerpcle-*-cygwin*) |
2833 | tm_file=rs6000/cygwin.h | |
2834 | xm_file="rs6000/xm-cygwin.h ${xm_file}" | |
46f18e7b | 2835 | tmake_file=rs6000/t-winnt |
cae21ae8 | 2836 | xmake_file=rs6000/x-cygwin |
46f18e7b | 2837 | # extra_objs=pe.o |
75bffa71 | 2838 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
2839 | thread_file='win32' |
2840 | fi | |
46f18e7b RK |
2841 | exeext=.exe |
2842 | extra_headers=ppc-asm.h | |
2843 | ;; | |
2844 | powerpcle-*-solaris2*) | |
2845 | tm_file=rs6000/sol2.h | |
61536478 JL |
2846 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
2847 | xm_defines="USG POSIX" | |
75bffa71 | 2848 | if test x$gas = xyes |
46f18e7b RK |
2849 | then |
2850 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2851 | else | |
2852 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2853 | fi | |
2854 | xmake_file=rs6000/x-sysv4 | |
46f18e7b RK |
2855 | extra_headers=ppc-asm.h |
2856 | ;; | |
75bffa71 ILT |
2857 | changequote(,)dnl |
2858 | rs6000-ibm-aix3.[01]*) | |
2859 | changequote([,])dnl | |
46f18e7b RK |
2860 | tm_file=rs6000/aix31.h |
2861 | xmake_file=rs6000/x-aix31 | |
45e24d08 | 2862 | float_format=none |
46f18e7b RK |
2863 | use_collect2=yes |
2864 | ;; | |
75bffa71 ILT |
2865 | changequote(,)dnl |
2866 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
2867 | changequote([,])dnl | |
46f18e7b | 2868 | tm_file=rs6000/aix3newas.h |
75bffa71 | 2869 | if test x$host != x$target |
46f18e7b RK |
2870 | then |
2871 | tmake_file=rs6000/t-xnewas | |
2872 | else | |
2873 | tmake_file=rs6000/t-newas | |
2874 | fi | |
45e24d08 | 2875 | float_format=none |
46f18e7b RK |
2876 | use_collect2=yes |
2877 | ;; | |
75bffa71 | 2878 | changequote(,)dnl |
05cea40f | 2879 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) |
75bffa71 | 2880 | changequote([,])dnl |
20fced2c | 2881 | if test "$gnu_ld" = yes |
d202e8aa | 2882 | then |
20fced2c MM |
2883 | tm_file=rs6000/aix41-gld.h |
2884 | else | |
2885 | tm_file=rs6000/aix41.h | |
2886 | fi | |
75bffa71 | 2887 | if test x$host != x$target |
46f18e7b RK |
2888 | then |
2889 | tmake_file=rs6000/t-xnewas | |
2890 | else | |
2891 | tmake_file=rs6000/t-newas | |
2892 | fi | |
a260abc9 | 2893 | xmake_file=rs6000/x-aix41 |
45e24d08 | 2894 | float_format=none |
a260abc9 DE |
2895 | use_collect2=yes |
2896 | ;; | |
75bffa71 ILT |
2897 | changequote(,)dnl |
2898 | rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*) | |
2899 | changequote([,])dnl | |
a260abc9 | 2900 | tm_file=rs6000/aix43.h |
75bffa71 | 2901 | if test x$host != x$target |
a260abc9 DE |
2902 | then |
2903 | tmake_file=rs6000/t-xaix43 | |
2904 | else | |
2905 | tmake_file=rs6000/t-aix43 | |
2906 | fi | |
2907 | xmake_file=rs6000/x-aix43 | |
45e24d08 | 2908 | float_format=none |
a260abc9 DE |
2909 | use_collect2=yes |
2910 | ;; | |
75bffa71 ILT |
2911 | changequote(,)dnl |
2912 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
2913 | changequote([,])dnl | |
a260abc9 | 2914 | tm_file=rs6000/aix43.h |
75bffa71 | 2915 | if test x$host != x$target |
a260abc9 DE |
2916 | then |
2917 | tmake_file=rs6000/t-xaix43 | |
2918 | else | |
2919 | tmake_file=rs6000/t-aix43 | |
2920 | fi | |
2921 | xmake_file=rs6000/x-aix43 | |
45e24d08 | 2922 | float_format=none |
46f18e7b RK |
2923 | use_collect2=yes |
2924 | ;; | |
2925 | rs6000-ibm-aix*) | |
45e24d08 | 2926 | float_format=none |
46f18e7b RK |
2927 | use_collect2=yes |
2928 | ;; | |
2929 | rs6000-bull-bosx) | |
45e24d08 | 2930 | float_format=none |
46f18e7b RK |
2931 | use_collect2=yes |
2932 | ;; | |
2933 | rs6000-*-mach*) | |
2934 | tm_file=rs6000/mach.h | |
61536478 | 2935 | xm_file="${xm_file} rs6000/xm-mach.h" |
46f18e7b RK |
2936 | xmake_file=rs6000/x-mach |
2937 | use_collect2=yes | |
2938 | ;; | |
2939 | rs6000-*-lynxos*) | |
2940 | tm_file=rs6000/lynx.h | |
2941 | xm_file=rs6000/xm-lynx.h | |
2942 | tmake_file=rs6000/t-rs6000 | |
2943 | xmake_file=rs6000/x-lynx | |
2944 | use_collect2=yes | |
2945 | ;; | |
2946 | sh-*-elf*) | |
2947 | tm_file=sh/elf.h | |
2948 | float_format=sh | |
2949 | ;; | |
b098f56d JS |
2950 | sh-*-rtemself*) |
2951 | tmake_file="sh/t-sh t-rtems" | |
2952 | tm_file=sh/rtemself.h | |
2953 | float_format=sh | |
2954 | ;; | |
5d84b57e JS |
2955 | sh-*-rtems*) |
2956 | tmake_file="sh/t-sh t-rtems" | |
2957 | tm_file=sh/rtems.h | |
2958 | float_format=sh | |
2959 | ;; | |
46f18e7b RK |
2960 | sh-*-*) |
2961 | float_format=sh | |
2962 | ;; | |
2963 | sparc-tti-*) | |
2964 | tm_file=sparc/pbd.h | |
61536478 JL |
2965 | xm_file="xm-alloca.h ${xm_file}" |
2966 | xm_defines=USG | |
46f18e7b RK |
2967 | ;; |
2968 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
2969 | tm_file=sparc/vxsparc.h | |
2970 | tmake_file=sparc/t-vxsparc | |
2971 | use_collect2=yes | |
7cc34889 | 2972 | thread_file='vxworks' |
46f18e7b RK |
2973 | ;; |
2974 | sparc-*-aout*) | |
2975 | tmake_file=sparc/t-sparcbare | |
2976 | tm_file="sparc/aout.h libgloss.h" | |
2977 | ;; | |
2978 | sparc-*-netbsd*) | |
2979 | tm_file=sparc/netbsd.h | |
e47f44f4 | 2980 | tmake_file=t-netbsd |
46f18e7b | 2981 | ;; |
1b4a979b ME |
2982 | sparc-*-openbsd*) |
2983 | # we need collect2 until our bug is fixed... | |
2984 | use_collect2=yes | |
2985 | ;; | |
46f18e7b RK |
2986 | sparc-*-bsd*) |
2987 | tm_file=sparc/bsd.h | |
2988 | ;; | |
ac52b80b DE |
2989 | sparc-*-elf*) |
2990 | tm_file=sparc/elf.h | |
2991 | tmake_file=sparc/t-elf | |
2992 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
2993 | #float_format=i128 | |
2994 | float_format=i64 | |
2995 | ;; | |
956d6950 | 2996 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
61536478 | 2997 | xm_file="${xm_file} sparc/xm-linux.h" |
46f18e7b RK |
2998 | tm_file=sparc/linux-aout.h |
2999 | xmake_file=x-linux | |
46f18e7b | 3000 | gnu_ld=yes |
46f18e7b | 3001 | ;; |
956d6950 | 3002 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
61536478 | 3003 | xm_file="${xm_file} sparc/xm-linux.h" |
2334126e | 3004 | xmake_file=x-linux |
46f18e7b | 3005 | tm_file=sparc/linux.h |
9d1ebd25 | 3006 | tmake_file="t-linux t-linux-gnulibc1" |
9ad03bc1 | 3007 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
9ad03bc1 RK |
3008 | gnu_ld=yes |
3009 | ;; | |
956d6950 | 3010 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
61536478 | 3011 | xm_file="${xm_file} sparc/xm-linux.h" |
2334126e | 3012 | xmake_file=x-linux |
9ad03bc1 | 3013 | tm_file=sparc/linux.h |
9d1ebd25 | 3014 | tmake_file="t-linux" |
9ad03bc1 | 3015 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
46f18e7b | 3016 | gnu_ld=yes |
75bffa71 | 3017 | if test x$enable_threads = xyes; then |
9ad03bc1 RK |
3018 | thread_file='posix' |
3019 | fi | |
46f18e7b RK |
3020 | ;; |
3021 | sparc-*-lynxos*) | |
75bffa71 | 3022 | if test x$gas = xyes |
46f18e7b RK |
3023 | then |
3024 | tm_file=sparc/lynx.h | |
3025 | else | |
3026 | tm_file=sparc/lynx-ng.h | |
3027 | fi | |
3028 | xm_file=sparc/xm-lynx.h | |
3029 | tmake_file=sparc/t-sunos41 | |
3030 | xmake_file=x-lynx | |
3031 | ;; | |
3032 | sparc-*-rtems*) | |
3033 | tmake_file="sparc/t-sparcbare t-rtems" | |
3034 | tm_file=sparc/rtems.h | |
3035 | ;; | |
d559a4db DM |
3036 | sparcv9-*-solaris2*) |
3037 | tm_file=sparc/sol2-sld-64.h | |
3038 | xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h" | |
3039 | xm_defines="USG POSIX" | |
345a6161 | 3040 | tmake_file="sparc/t-sol2 sparc/t-sol2-64" |
d559a4db DM |
3041 | xmake_file=sparc/x-sysv4 |
3042 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" | |
027ea2a7 | 3043 | float_format=none |
d7496fbb | 3044 | if test x${enable_threads} = x ; then |
d559a4db | 3045 | enable_threads=$have_pthread_h |
d7496fbb | 3046 | if test x${enable_threads} = x ; then |
d559a4db DM |
3047 | enable_threads=$have_thread_h |
3048 | fi | |
3049 | fi | |
d7496fbb DM |
3050 | if test x${enable_threads} = xyes ; then |
3051 | if test x${have_pthread_h} = xyes ; then | |
d559a4db DM |
3052 | thread_file='posix' |
3053 | else | |
3054 | thread_file='solaris' | |
3055 | fi | |
3056 | fi | |
3057 | ;; | |
ab87f8c8 JL |
3058 | sparc-hal-solaris2*) |
3059 | xm_file=sparc/xm-sol2.h | |
3060 | tm_file="sparc/sol2.h sparc/hal.h" | |
3061 | tmake_file="sparc/t-halos sparc/t-sol2" | |
3062 | xmake_file=sparc/x-sysv4 | |
3063 | extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" | |
3064 | fixincludes=fixinc.svr4 | |
3065 | broken_install=yes | |
3066 | ;; | |
46f18e7b | 3067 | sparc-*-solaris2*) |
75bffa71 | 3068 | if test x$gnu_ld = xyes |
0a9bdce3 PE |
3069 | then |
3070 | tm_file=sparc/sol2.h | |
3071 | else | |
3072 | tm_file=sparc/sol2-sld.h | |
3073 | fi | |
22ec3928 RE |
3074 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
3075 | xm_defines="USG POSIX" | |
46f18e7b RK |
3076 | tmake_file=sparc/t-sol2 |
3077 | xmake_file=sparc/x-sysv4 | |
3078 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
61536478 | 3079 | case $machine in |
75bffa71 ILT |
3080 | changequote(,)dnl |
3081 | *-*-solaris2.[0-4]) | |
3082 | changequote([,])dnl | |
027ea2a7 JW |
3083 | float_format=i128 |
3084 | ;; | |
61536478 | 3085 | *) |
027ea2a7 JW |
3086 | float_format=none |
3087 | ;; | |
61536478 | 3088 | esac |
75bffa71 | 3089 | if test x${enable_threads} = x; then |
f24af81b | 3090 | enable_threads=$have_pthread_h |
75bffa71 | 3091 | if test x${enable_threads} = x; then |
f24af81b TT |
3092 | enable_threads=$have_thread_h |
3093 | fi | |
3094 | fi | |
75bffa71 ILT |
3095 | if test x${enable_threads} = xyes; then |
3096 | if test x${have_pthread_h} = xyes; then | |
f24af81b TT |
3097 | thread_file='posix' |
3098 | else | |
0bbb1697 | 3099 | thread_file='solaris' |
f24af81b | 3100 | fi |
0bbb1697 | 3101 | fi |
46f18e7b RK |
3102 | ;; |
3103 | sparc-*-sunos4.0*) | |
3104 | tm_file=sparc/sunos4.h | |
3105 | tmake_file=sparc/t-sunos40 | |
3106 | use_collect2=yes | |
3107 | ;; | |
3108 | sparc-*-sunos4*) | |
3109 | tm_file=sparc/sunos4.h | |
3110 | tmake_file=sparc/t-sunos41 | |
3111 | use_collect2=yes | |
75bffa71 | 3112 | if test x$gas = xyes; then |
ca55abae JM |
3113 | tm_file="${tm_file} sparc/sun4gas.h" |
3114 | fi | |
46f18e7b RK |
3115 | ;; |
3116 | sparc-*-sunos3*) | |
3117 | tm_file=sparc/sun4o3.h | |
3118 | use_collect2=yes | |
3119 | ;; | |
3120 | sparc-*-sysv4*) | |
3121 | tm_file=sparc/sysv4.h | |
61536478 JL |
3122 | xm_file="xm-siglist.h sparc/xm-sysv4.h" |
3123 | xm_defines="USG POSIX" | |
46f18e7b RK |
3124 | tmake_file=t-svr4 |
3125 | xmake_file=sparc/x-sysv4 | |
3126 | extra_parts="crtbegin.o crtend.o" | |
3127 | ;; | |
3128 | sparc-*-vxsim*) | |
f5963e61 JL |
3129 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
3130 | xm_defines="USG POSIX" | |
46f18e7b RK |
3131 | tm_file=sparc/vxsim.h |
3132 | tmake_file=sparc/t-vxsparc | |
3133 | xmake_file=sparc/x-sysv4 | |
3134 | ;; | |
3135 | sparclet-*-aout*) | |
3136 | tm_file="sparc/splet.h libgloss.h" | |
3137 | tmake_file=sparc/t-splet | |
3138 | ;; | |
3139 | sparclite-*-coff*) | |
3140 | tm_file="sparc/litecoff.h libgloss.h" | |
3141 | tmake_file=sparc/t-sparclite | |
3142 | ;; | |
3143 | sparclite-*-aout*) | |
3144 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
3145 | tmake_file=sparc/t-sparclite | |
3146 | ;; | |
3147 | sparc64-*-aout*) | |
3148 | tmake_file=sparc/t-sp64 | |
3149 | tm_file=sparc/sp64-aout.h | |
3150 | ;; | |
3151 | sparc64-*-elf*) | |
3152 | tmake_file=sparc/t-sp64 | |
3153 | tm_file=sparc/sp64-elf.h | |
3154 | extra_parts="crtbegin.o crtend.o" | |
3155 | ;; | |
956d6950 | 3156 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
345a6161 | 3157 | tmake_file="t-linux sparc/t-linux64" |
2334126e DE |
3158 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" |
3159 | tm_file=sparc/linux64.h | |
3160 | xmake_file=x-linux | |
345a6161 | 3161 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
2334126e DE |
3162 | gnu_ld=yes |
3163 | ;; | |
46f18e7b RK |
3164 | # This hasn't been upgraded to GCC 2. |
3165 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
3166 | # tm_file=tahoe/harris.h | |
3167 | # ;; | |
3168 | # tahoe-*-bsd*) # tahoe running BSD | |
3169 | # ;; | |
e98e406f NC |
3170 | thumb-*-coff* | thumbel-*-coff*) |
3171 | tm_file=arm/tcoff.h | |
3172 | out_file=arm/thumb.c | |
3173 | xm_file=arm/xm-thumb.h | |
3174 | md_file=arm/thumb.md | |
3175 | tmake_file=arm/t-thumb | |
3176 | ;; | |
46f18e7b RK |
3177 | # This hasn't been upgraded to GCC 2. |
3178 | # tron-*-*) | |
3179 | # cpu_type=gmicro | |
3180 | # use_collect2=yes | |
3181 | # ;; | |
f84271d9 JL |
3182 | v850-*-*) |
3183 | cpu_type=v850 | |
3184 | tm_file="v850/v850.h" | |
3185 | xm_file="v850/xm-v850.h" | |
62db76ee | 3186 | tmake_file=v850/t-v850 |
75bffa71 | 3187 | if test x$stabs = xyes |
f84271d9 JL |
3188 | then |
3189 | tm_file="${tm_file} dbx.h" | |
3190 | fi | |
3191 | use_collect2=no | |
3192 | ;; | |
46f18e7b RK |
3193 | vax-*-bsd*) # vaxen running BSD |
3194 | use_collect2=yes | |
3195 | float_format=vax | |
3196 | ;; | |
3197 | vax-*-sysv*) # vaxen running system V | |
3198 | tm_file="${tm_file} vax/vaxv.h" | |
61536478 | 3199 | xm_defines=USG |
46f18e7b RK |
3200 | float_format=vax |
3201 | ;; | |
3202 | vax-*-netbsd*) | |
3203 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
e47f44f4 | 3204 | tmake_file=t-netbsd |
46f18e7b RK |
3205 | float_format=vax |
3206 | ;; | |
1b4a979b ME |
3207 | vax-*-openbsd*) |
3208 | tmake_file="${tm_file} vax/t-openbsd" | |
3209 | ;; | |
46f18e7b RK |
3210 | vax-*-ultrix*) # vaxen running ultrix |
3211 | tm_file="${tm_file} vax/ultrix.h" | |
3212 | use_collect2=yes | |
3213 | float_format=vax | |
3214 | ;; | |
3215 | vax-*-vms*) # vaxen running VMS | |
3216 | xm_file=vax/xm-vms.h | |
3217 | tm_file=vax/vms.h | |
3218 | float_format=vax | |
3219 | ;; | |
3220 | vax-*-*) # vax default entry | |
3221 | float_format=vax | |
3222 | ;; | |
3223 | we32k-att-sysv*) | |
3224 | xm_file="${xm_file} xm-svr3" | |
3225 | use_collect2=yes | |
3226 | ;; | |
3227 | *) | |
3228 | echo "Configuration $machine not supported" 1>&2 | |
3229 | exit 1 | |
3230 | ;; | |
3231 | esac | |
3232 | ||
3233 | case $machine in | |
3234 | *-*-linux-gnu*) | |
61536478 | 3235 | ;; # Existing GNU/Linux systems do not use the GNU setup. |
46f18e7b RK |
3236 | *-*-gnu*) |
3237 | # On the GNU system, the setup is just about the same on | |
3238 | # each different CPU. The specific machines that GNU | |
3239 | # supports are matched above and just set $cpu_type. | |
61536478 | 3240 | xm_file="xm-gnu.h ${xm_file}" |
46f18e7b | 3241 | tm_file=${cpu_type}/gnu.h |
6b403743 | 3242 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
46f18e7b RK |
3243 | # GNU always uses ELF. |
3244 | elf=yes | |
3245 | # GNU tools are the only tools. | |
3246 | gnu_ld=yes | |
3247 | gas=yes | |
46f18e7b RK |
3248 | xmake_file=x-linux # These details are the same as Linux. |
3249 | tmake_file=t-gnu # These are not. | |
3250 | ;; | |
3251 | *-*-sysv4*) | |
46f18e7b | 3252 | xmake_try_sysv=x-sysv |
46f18e7b RK |
3253 | install_headers_dir=install-headers-cpio |
3254 | ;; | |
3255 | *-*-sysv*) | |
46f18e7b RK |
3256 | install_headers_dir=install-headers-cpio |
3257 | ;; | |
3258 | esac | |
3259 | ||
61536478 | 3260 | # Distinguish i[34567]86 |
46f18e7b RK |
3261 | # Also, do not run mips-tfile on MIPS if using gas. |
3262 | # Process --with-cpu= for PowerPC/rs6000 | |
3263 | target_cpu_default2= | |
3264 | case $machine in | |
3265 | i486-*-*) | |
3266 | target_cpu_default2=1 | |
3267 | ;; | |
3268 | i586-*-*) | |
3269 | target_cpu_default2=2 | |
3270 | ;; | |
61536478 | 3271 | i686-*-* | i786-*-*) |
46f18e7b RK |
3272 | target_cpu_default2=3 |
3273 | ;; | |
08fc0184 RK |
3274 | alpha*-*-*) |
3275 | case $machine in | |
e9a25f70 | 3276 | alphaev6*) |
44e95b19 | 3277 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_CIX|MASK_MAX" |
e9a25f70 JL |
3278 | ;; |
3279 | alphapca56*) | |
fbb5ed67 | 3280 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" |
e9a25f70 | 3281 | ;; |
08fc0184 | 3282 | alphaev56*) |
e9a25f70 | 3283 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
08fc0184 RK |
3284 | ;; |
3285 | alphaev5*) | |
3286 | target_cpu_default2="MASK_CPU_EV5" | |
3287 | ;; | |
3288 | esac | |
3289 | ||
75bffa71 | 3290 | if test x$gas = xyes |
46f18e7b | 3291 | then |
75bffa71 | 3292 | if test "$target_cpu_default2" = "" |
08fc0184 | 3293 | then |
e71c3bb0 | 3294 | target_cpu_default2="MASK_GAS" |
08fc0184 | 3295 | else |
e71c3bb0 | 3296 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" |
08fc0184 | 3297 | fi |
46f18e7b RK |
3298 | fi |
3299 | ;; | |
956d6950 JL |
3300 | arm*-*-*) |
3301 | case "x$with_cpu" in | |
3302 | x) | |
3303 | # The most generic | |
3304 | target_cpu_default2="TARGET_CPU_generic" | |
3305 | ;; | |
3306 | ||
3307 | # Distinguish cores, and major variants | |
3308 | # arm7m doesn't exist, but D & I don't affect code | |
3309 | xarm[23678] | xarm250 | xarm[67][01]0 \ | |
3310 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ | |
3311 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
8f8d3278 | 3312 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
956d6950 JL |
3313 | target_cpu_default2="TARGET_CPU_$with_cpu" |
3314 | ;; | |
3315 | ||
3316 | xyes | xno) | |
3317 | echo "--with-cpu must be passed a value" 1>&2 | |
3318 | exit 1 | |
3319 | ;; | |
3320 | ||
3321 | *) | |
75bffa71 | 3322 | if test x$pass2done = xyes |
956d6950 JL |
3323 | then |
3324 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
3325 | exit 1 | |
3326 | fi | |
3327 | ;; | |
3328 | esac | |
3329 | ;; | |
3330 | ||
46f18e7b | 3331 | mips*-*-ecoff* | mips*-*-elf*) |
75bffa71 | 3332 | if test x$gas = xyes |
46f18e7b | 3333 | then |
75bffa71 | 3334 | if test x$gnu_ld = xyes |
46f18e7b RK |
3335 | then |
3336 | target_cpu_default2=20 | |
3337 | else | |
3338 | target_cpu_default2=16 | |
3339 | fi | |
3340 | fi | |
3341 | ;; | |
3342 | mips*-*-*) | |
75bffa71 | 3343 | if test x$gas = xyes |
46f18e7b RK |
3344 | then |
3345 | target_cpu_default2=16 | |
3346 | fi | |
3347 | ;; | |
3348 | powerpc*-*-* | rs6000-*-*) | |
3349 | case "x$with_cpu" in | |
3350 | x) | |
3351 | ;; | |
3352 | ||
3353 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
52cddadb MM |
3354 | | xrios1 | xrios2 | xrsc | xrsc1 \ |
3355 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
507ba956 | 3356 | | xec603e | x740 | x750 | x401 \ |
52cddadb | 3357 | | x403 | x505 | x801 | x821 | x823 | x860) |
f24b370a | 3358 | target_cpu_default2="\"$with_cpu\"" |
46f18e7b RK |
3359 | ;; |
3360 | ||
3361 | xyes | xno) | |
3362 | echo "--with-cpu must be passed a value" 1>&2 | |
3363 | exit 1 | |
3364 | ;; | |
3365 | ||
3366 | *) | |
75bffa71 | 3367 | if test x$pass2done = xyes |
956d6950 JL |
3368 | then |
3369 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
3370 | exit 1 | |
3371 | fi | |
46f18e7b RK |
3372 | ;; |
3373 | esac | |
3374 | ;; | |
3375 | sparc*-*-*) | |
3376 | case ".$with_cpu" in | |
3377 | .) | |
3378 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
3379 | ;; | |
8947065c | 3380 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) |
46f18e7b RK |
3381 | target_cpu_default2="TARGET_CPU_$with_cpu" |
3382 | ;; | |
3383 | *) | |
75bffa71 | 3384 | if test x$pass2done = xyes |
956d6950 JL |
3385 | then |
3386 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
3387 | exit 1 | |
3388 | fi | |
46f18e7b RK |
3389 | ;; |
3390 | esac | |
3391 | ;; | |
3392 | esac | |
3393 | ||
75bffa71 | 3394 | if test "$target_cpu_default2" != "" |
46f18e7b | 3395 | then |
75bffa71 | 3396 | if test "$target_cpu_default" != "" |
46f18e7b RK |
3397 | then |
3398 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
3399 | else | |
3400 | target_cpu_default=$target_cpu_default2 | |
3401 | fi | |
3402 | fi | |
3403 | ||
3404 | # No need for collect2 if we have the GNU linker. | |
d460fb3c JM |
3405 | # Actually, there is now; GNU ld doesn't handle the EH info or |
3406 | # collecting for shared libraries. | |
ca8c3b37 JM |
3407 | #case x$gnu_ld in |
3408 | #xyes) | |
3409 | # use_collect2= | |
3410 | # ;; | |
3411 | #esac | |
46f18e7b RK |
3412 | |
3413 | # Save data on machine being used to compile GCC in build_xm_file. | |
3414 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
75bffa71 | 3415 | if test x$pass1done = x |
46f18e7b | 3416 | then |
75bffa71 | 3417 | if test x"$xm_file" = x |
46f18e7b RK |
3418 | then build_xm_file=$cpu_type/xm-$cpu_type.h |
3419 | else build_xm_file=$xm_file | |
3420 | fi | |
61536478 | 3421 | build_xm_defines=$xm_defines |
46f18e7b RK |
3422 | build_install_headers_dir=$install_headers_dir |
3423 | build_exeext=$exeext | |
3424 | pass1done=yes | |
3425 | else | |
75bffa71 | 3426 | if test x$pass2done = x |
46f18e7b | 3427 | then |
75bffa71 | 3428 | if test x"$xm_file" = x |
46f18e7b RK |
3429 | then host_xm_file=$cpu_type/xm-$cpu_type.h |
3430 | else host_xm_file=$xm_file | |
3431 | fi | |
61536478 | 3432 | host_xm_defines=$xm_defines |
75bffa71 | 3433 | if test x"$xmake_file" = x |
46f18e7b RK |
3434 | then xmake_file=$cpu_type/x-$cpu_type |
3435 | fi | |
3436 | host_xmake_file="$xmake_file" | |
3437 | host_truncate_target=$truncate_target | |
3438 | host_extra_gcc_objs=$extra_gcc_objs | |
3439 | host_extra_objs=$extra_host_objs | |
6e26218f | 3440 | host_exeext=$exeext |
46f18e7b RK |
3441 | pass2done=yes |
3442 | fi | |
3443 | fi | |
3444 | done | |
3445 | ||
3446 | extra_objs="${host_extra_objs} ${extra_objs}" | |
3447 | ||
3448 | # Default the target-machine variables that were not explicitly set. | |
75bffa71 | 3449 | if test x"$tm_file" = x |
46f18e7b RK |
3450 | then tm_file=$cpu_type/$cpu_type.h; fi |
3451 | ||
75bffa71 | 3452 | if test x$extra_headers = x |
46f18e7b RK |
3453 | then extra_headers=; fi |
3454 | ||
75bffa71 | 3455 | if test x"$xm_file" = x |
46f18e7b RK |
3456 | then xm_file=$cpu_type/xm-$cpu_type.h; fi |
3457 | ||
75bffa71 | 3458 | if test x$md_file = x |
e98e406f | 3459 | then md_file=$cpu_type/$cpu_type.md; fi |
46f18e7b | 3460 | |
75bffa71 | 3461 | if test x$out_file = x |
46f18e7b RK |
3462 | then out_file=$cpu_type/$cpu_type.c; fi |
3463 | ||
75bffa71 | 3464 | if test x"$tmake_file" = x |
46f18e7b RK |
3465 | then tmake_file=$cpu_type/t-$cpu_type |
3466 | fi | |
3467 | ||
90e6a802 RL |
3468 | if test x"$dwarf2" = xyes |
3469 | then tm_file="tm-dwarf2.h $tm_file" | |
3470 | fi | |
3471 | ||
75bffa71 | 3472 | if test x$float_format = x |
46f18e7b RK |
3473 | then float_format=i64 |
3474 | fi | |
3475 | ||
027ea2a7 JW |
3476 | if test $float_format = none |
3477 | then float_h_file=Makefile.in | |
3478 | else float_h_file=float-$float_format.h | |
3479 | fi | |
3480 | ||
75bffa71 | 3481 | if test x$enable_haifa = x |
128f7968 RH |
3482 | then |
3483 | case $target in | |
18cae839 | 3484 | alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*) |
128f7968 RH |
3485 | enable_haifa=yes;; |
3486 | esac | |
3487 | fi | |
3488 | ||
9fc9b82a L |
3489 | # Handle cpp installation. |
3490 | if [[ x$enable_cpp != x ]] | |
3491 | then | |
3492 | tmake_file="$tmake_file t-install-cpp" | |
3493 | fi | |
3494 | ||
46f18e7b RK |
3495 | # Say what files are being used for the output code and MD file. |
3496 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
3497 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
3498 | ||
3499 | count=a | |
3500 | for f in $tm_file; do | |
3501 | count=${count}x | |
3502 | done | |
75bffa71 | 3503 | if test $count = ax; then |
46f18e7b RK |
3504 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." |
3505 | else | |
3506 | echo "Using the following target machine macro files:" | |
3507 | for f in $tm_file; do | |
3508 | echo " $srcdir/config/$f" | |
3509 | done | |
3510 | fi | |
3511 | ||
3512 | count=a | |
3513 | for f in $host_xm_file; do | |
3514 | count=${count}x | |
3515 | done | |
75bffa71 | 3516 | if test $count = ax; then |
46f18e7b RK |
3517 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." |
3518 | else | |
3519 | echo "Using the following host machine macro files:" | |
3520 | for f in $host_xm_file; do | |
3521 | echo " $srcdir/config/$f" | |
3522 | done | |
3523 | fi | |
3524 | ||
75bffa71 | 3525 | if test "$host_xm_file" != "$build_xm_file"; then |
46f18e7b RK |
3526 | count=a |
3527 | for f in $build_xm_file; do | |
3528 | count=${count}x | |
3529 | done | |
75bffa71 | 3530 | if test $count = ax; then |
46f18e7b RK |
3531 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." |
3532 | else | |
3533 | echo "Using the following build machine macro files:" | |
3534 | for f in $build_xm_file; do | |
3535 | echo " $srcdir/config/$f" | |
3536 | done | |
3537 | fi | |
3538 | fi | |
3539 | ||
75bffa71 ILT |
3540 | if test x$thread_file = x; then |
3541 | if test x$target_thread_file != x; then | |
a851212a JW |
3542 | thread_file=$target_thread_file |
3543 | else | |
3544 | thread_file='single' | |
3545 | fi | |
46f18e7b | 3546 | fi |
46f18e7b RK |
3547 | |
3548 | # Set up the header files. | |
3549 | # $links is the list of header files to create. | |
3550 | # $vars is the list of shell variables with file names to include. | |
b7cb92ad | 3551 | # auto-host.h is the file containing items generated by autoconf and is |
e9a25f70 | 3552 | # the first file included by config.h. |
61536478 | 3553 | null_defines= |
0056a9b5 | 3554 | host_xm_file="auto-host.h gansidecl.h ${host_xm_file}" |
db81d74a | 3555 | |
b7cb92ad | 3556 | # If host=build, it is correct to have hconfig include auto-host.h |
db81d74a RH |
3557 | # as well. If host!=build, we are in error and need to do more |
3558 | # work to find out the build config parameters. | |
75bffa71 | 3559 | if test x$host = x$build |
db81d74a | 3560 | then |
0056a9b5 | 3561 | build_xm_file="auto-host.h gansidecl.h ${build_xm_file}" |
b7cb92ad JL |
3562 | else |
3563 | # We create a subdir, then run autoconf in the subdir. | |
3564 | # To prevent recursion we set host and build for the new | |
3565 | # invocation of configure to the build for this invocation | |
3566 | # of configure. | |
3567 | tempdir=build.$$ | |
3568 | rm -rf $tempdir | |
3569 | mkdir $tempdir | |
3570 | cd $tempdir | |
3571 | case ${srcdir} in | |
3572 | /*) realsrcdir=${srcdir};; | |
3573 | *) realsrcdir=../${srcdir};; | |
3574 | esac | |
fe81dd69 | 3575 | CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ |
b7cb92ad JL |
3576 | --target=$target --host=$build --build=$build |
3577 | ||
3578 | # We just finished tests for the build machine, so rename | |
3579 | # the file auto-build.h in the gcc directory. | |
3580 | mv auto-host.h ../auto-build.h | |
3581 | cd .. | |
3582 | rm -rf $tempdir | |
0056a9b5 | 3583 | build_xm_file="auto-build.h gansidecl.h ${build_xm_file}" |
db81d74a RH |
3584 | fi |
3585 | ||
0056a9b5 KG |
3586 | xm_file="gansidecl.h ${xm_file}" |
3587 | tm_file="gansidecl.h ${tm_file}" | |
3588 | ||
46f18e7b | 3589 | vars="host_xm_file tm_file xm_file build_xm_file" |
e9a25f70 | 3590 | links="config.h tm.h tconfig.h hconfig.h" |
61536478 | 3591 | defines="host_xm_defines null_defines xm_defines build_xm_defines" |
46f18e7b RK |
3592 | |
3593 | rm -f config.bak | |
75bffa71 | 3594 | if test -f config.status; then mv -f config.status config.bak; fi |
46f18e7b RK |
3595 | |
3596 | # Make the links. | |
75bffa71 | 3597 | while test -n "$vars" |
46f18e7b | 3598 | do |
46f18e7b RK |
3599 | set $vars; var=$1; shift; vars=$* |
3600 | set $links; link=$1; shift; links=$* | |
61536478 | 3601 | set $defines; define=$1; shift; defines=$* |
46f18e7b RK |
3602 | |
3603 | rm -f $link | |
3604 | ||
3605 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
3606 | # This substitutes for lots of *.h files. | |
75bffa71 | 3607 | if test "$target_cpu_default" != "" -a $link = tm.h |
46f18e7b | 3608 | then |
8fbf199e | 3609 | echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link |
46f18e7b RK |
3610 | fi |
3611 | ||
3612 | for file in `eval echo '$'$var`; do | |
ab87f8c8 JL |
3613 | case $file in |
3614 | auto-config.h) | |
3615 | ;; | |
3616 | *) | |
3617 | echo '#ifdef IN_GCC' >>$link | |
3618 | ;; | |
3619 | esac | |
46f18e7b | 3620 | echo "#include \"$file\"" >>$link |
ab87f8c8 JL |
3621 | case $file in |
3622 | auto-config.h) | |
3623 | ;; | |
3624 | *) | |
3625 | echo '#endif' >>$link | |
3626 | ;; | |
3627 | esac | |
46f18e7b | 3628 | done |
61536478 JL |
3629 | |
3630 | for def in `eval echo '$'$define`; do | |
3631 | echo "#ifndef $def" >>$link | |
3632 | echo "#define $def" >>$link | |
3633 | echo "#endif" >>$link | |
3634 | done | |
46f18e7b RK |
3635 | done |
3636 | ||
3637 | # Truncate the target if necessary | |
75bffa71 | 3638 | if test x$host_truncate_target != x; then |
46f18e7b RK |
3639 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
3640 | fi | |
3641 | ||
f1943b77 | 3642 | # Get the version trigger filename from the toplevel |
75bffa71 | 3643 | if test "${with_gcc_version_trigger+set}" = set; then |
f1943b77 MH |
3644 | gcc_version_trigger=$with_gcc_version_trigger |
3645 | else | |
3646 | gcc_version_trigger=${srcdir}/version.c | |
3647 | fi | |
75bffa71 ILT |
3648 | changequote(,)dnl |
3649 | gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}` | |
3650 | changequote([,])dnl | |
46f18e7b | 3651 | |
ab87f8c8 JL |
3652 | # Internationalization |
3653 | PACKAGE=gcc | |
3654 | VERSION="$gcc_version" | |
3655 | AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") | |
3656 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION") | |
3657 | AC_SUBST(PACKAGE) | |
3658 | AC_SUBST(VERSION) | |
3659 | ||
3660 | ALL_LINGUAS="en_UK" | |
3661 | ||
3662 | # NLS support is still experimental, so disable it by default for now. | |
3663 | AC_ARG_ENABLE(nls, | |
3664 | [ --enable-nls use Native Language Support (disabled by default)], | |
3665 | , enable_nls=no) | |
3666 | ||
3667 | AM_GNU_GETTEXT | |
3668 | XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT" | |
3669 | ||
7fa10b25 RK |
3670 | # Get an absolute path to the GCC top-level source directory |
3671 | holddir=`pwd` | |
3672 | cd $srcdir | |
3673 | topdir=`pwd` | |
3674 | cd $holddir | |
3675 | ||
af5e4ada | 3676 | # Conditionalize the makefile for this host machine. |
94f42018 DE |
3677 | # Make-host contains the concatenation of all host makefile fragments |
3678 | # [there can be more than one]. This file is built by configure.frag. | |
3679 | host_overrides=Make-host | |
af5e4ada | 3680 | dep_host_xmake_file= |
94f42018 DE |
3681 | for f in .. ${host_xmake_file} |
3682 | do | |
75bffa71 | 3683 | if test -f ${srcdir}/config/$f |
94f42018 DE |
3684 | then |
3685 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
3686 | fi | |
3687 | done | |
46f18e7b | 3688 | |
af5e4ada | 3689 | # Conditionalize the makefile for this target machine. |
94f42018 DE |
3690 | # Make-target contains the concatenation of all host makefile fragments |
3691 | # [there can be more than one]. This file is built by configure.frag. | |
3692 | target_overrides=Make-target | |
af5e4ada | 3693 | dep_tmake_file= |
94f42018 DE |
3694 | for f in .. ${tmake_file} |
3695 | do | |
75bffa71 | 3696 | if test -f ${srcdir}/config/$f |
94f42018 DE |
3697 | then |
3698 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
3699 | fi | |
3700 | done | |
5891b37d | 3701 | |
af5e4ada DE |
3702 | # If the host doesn't support symlinks, modify CC in |
3703 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
3704 | # Otherwise, we can use "CC=$(CC)". | |
3705 | rm -f symtest.tem | |
61536478 | 3706 | if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null |
af5e4ada DE |
3707 | then |
3708 | cc_set_by_configure="\$(CC)" | |
3709 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" | |
3710 | else | |
61536478 JL |
3711 | rm -f symtest.tem |
3712 | if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null | |
3713 | then | |
3714 | symbolic_link="cp -p" | |
3715 | else | |
3716 | symbolic_link="cp" | |
3717 | fi | |
af5e4ada DE |
3718 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" |
3719 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" | |
3720 | fi | |
3721 | rm -f symtest.tem | |
5891b37d | 3722 | |
af5e4ada | 3723 | out_object_file=`basename $out_file .c`.o |
5891b37d | 3724 | |
af5e4ada DE |
3725 | tm_file_list= |
3726 | for f in $tm_file; do | |
0056a9b5 KG |
3727 | if test $f != "gansidecl.h" ; then |
3728 | tm_file_list="${tm_file_list} \$(srcdir)/config/$f" | |
3729 | else | |
3730 | tm_file_list="${tm_file_list} $f" | |
3731 | fi | |
af5e4ada | 3732 | done |
46f18e7b | 3733 | |
af5e4ada DE |
3734 | host_xm_file_list= |
3735 | for f in $host_xm_file; do | |
0056a9b5 | 3736 | if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then |
db81d74a RH |
3737 | host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" |
3738 | else | |
0056a9b5 | 3739 | host_xm_file_list="${host_xm_file_list} $f" |
db81d74a | 3740 | fi |
af5e4ada DE |
3741 | done |
3742 | ||
3743 | build_xm_file_list= | |
3744 | for f in $build_xm_file; do | |
0056a9b5 KG |
3745 | if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then |
3746 | build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" | |
db81d74a | 3747 | else |
0056a9b5 | 3748 | build_xm_file_list="${build_xm_file_list} $f" |
db81d74a | 3749 | fi |
af5e4ada | 3750 | done |
46f18e7b | 3751 | |
af5e4ada DE |
3752 | # Define macro CROSS_COMPILE in compilation |
3753 | # if this is a cross-compiler. | |
3754 | # Also use all.cross instead of all.internal | |
3755 | # and add cross-make to Makefile. | |
571a8de5 | 3756 | cross_overrides="/dev/null" |
75bffa71 | 3757 | if test x$host != x$target |
af5e4ada DE |
3758 | then |
3759 | cross_defines="CROSS=-DCROSS_COMPILE" | |
3760 | cross_overrides="${topdir}/cross-make" | |
3761 | fi | |
46f18e7b | 3762 | |
af5e4ada DE |
3763 | # When building gcc with a cross-compiler, we need to fix a few things. |
3764 | # This must come after cross-make as we want all.build to override | |
3765 | # all.cross. | |
571a8de5 | 3766 | build_overrides="/dev/null" |
75bffa71 | 3767 | if test x$build != x$host |
af5e4ada DE |
3768 | then |
3769 | build_overrides="${topdir}/build-make" | |
3770 | fi | |
46f18e7b | 3771 | |
ae3a15bb DE |
3772 | # Expand extra_headers to include complete path. |
3773 | # This substitutes for lots of t-* files. | |
3774 | extra_headers_list= | |
75bffa71 | 3775 | if test "x$extra_headers" = x |
ae3a15bb DE |
3776 | then true |
3777 | else | |
3778 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
3779 | for file in $extra_headers; | |
3780 | do | |
3781 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
3782 | done | |
3783 | fi | |
3784 | ||
75bffa71 | 3785 | if test x$use_collect2 = xno; then |
2ce3c6c6 JM |
3786 | use_collect2= |
3787 | fi | |
3788 | ||
af5e4ada DE |
3789 | # Add a definition of USE_COLLECT2 if system wants one. |
3790 | # Also tell toplev.c what to do. | |
3791 | # This substitutes for lots of t-* files. | |
75bffa71 | 3792 | if test x$use_collect2 = x |
af5e4ada DE |
3793 | then |
3794 | will_use_collect2= | |
3795 | maybe_use_collect2= | |
3796 | else | |
10da1131 | 3797 | will_use_collect2="collect2" |
af5e4ada DE |
3798 | maybe_use_collect2="-DUSE_COLLECT2" |
3799 | fi | |
3800 | ||
3801 | # NEED TO CONVERT | |
3802 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
3803 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
3804 | # for line oriented comments, so we must always use a GNU cpp. If | |
3805 | # building gcc with a cross compiler, use the cross compiler just | |
3806 | # built. Otherwise, we can use the cpp just built. | |
3807 | md_file_sub= | |
75bffa71 | 3808 | if test "x$md_cppflags" = x |
af5e4ada DE |
3809 | then |
3810 | md_file_sub=$srcdir/config/$md_file | |
3811 | else | |
3812 | md_file=md | |
3813 | fi | |
3814 | ||
3815 | # If we have gas in the build tree, make a link to it. | |
75bffa71 | 3816 | if test -f ../gas/Makefile; then |
6e26218f | 3817 | rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null |
af5e4ada DE |
3818 | fi |
3819 | ||
4b95eb49 | 3820 | # If we have nm in the build tree, make a link to it. |
75bffa71 | 3821 | if test -f ../binutils/Makefile; then |
4b95eb49 JL |
3822 | rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null |
3823 | fi | |
3824 | ||
af5e4ada | 3825 | # If we have ld in the build tree, make a link to it. |
75bffa71 ILT |
3826 | if test -f ../ld/Makefile; then |
3827 | # if test x$use_collect2 = x; then | |
6e26218f | 3828 | # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null |
aa32d841 | 3829 | # else |
6e26218f | 3830 | rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null |
aa32d841 | 3831 | # fi |
af5e4ada DE |
3832 | fi |
3833 | ||
9e423e6d JW |
3834 | # Figure out what assembler alignment features are present. |
3835 | AC_MSG_CHECKING(assembler alignment features) | |
3836 | gcc_cv_as= | |
3837 | gcc_cv_as_alignment_features= | |
a2f319ea | 3838 | gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas |
3ccc3a56 AO |
3839 | if test -x "$DEFAULT_ASSEMBLER"; then |
3840 | gcc_cv_as="$DEFAULT_ASSEMBLER" | |
3841 | elif test -x "$AS"; then | |
3842 | gcc_cv_as="$AS" | |
ab339d62 | 3843 | elif test -x as$host_exeext; then |
9e423e6d JW |
3844 | # Build using assembler in the current directory. |
3845 | gcc_cv_as=./as$host_exeext | |
5585c1bc | 3846 | elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then |
9e423e6d | 3847 | # Single tree build which includes gas. |
a2c9d57c | 3848 | for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in |
9e423e6d | 3849 | do |
75bffa71 ILT |
3850 | changequote(,)dnl |
3851 | gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` | |
3852 | changequote([,])dnl | |
3853 | if test x$gcc_cv_gas_version != x; then | |
9e423e6d JW |
3854 | break |
3855 | fi | |
3856 | done | |
75bffa71 ILT |
3857 | changequote(,)dnl |
3858 | gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` | |
3859 | gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` | |
3860 | changequote([,])dnl | |
3861 | if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then | |
0b9d02c6 JL |
3862 | # Gas version 2.6 and later support for .balign and .p2align. |
3863 | # bytes to skip when using .p2align. | |
75bffa71 | 3864 | 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 |
0b9d02c6 JL |
3865 | gcc_cv_as_alignment_features=".balign and .p2align" |
3866 | AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN) | |
3867 | fi | |
3868 | # Gas version 2.8 and later support specifying the maximum | |
3869 | # bytes to skip when using .p2align. | |
75bffa71 | 3870 | 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 |
0b9d02c6 JL |
3871 | gcc_cv_as_alignment_features=".p2align including maximum skip" |
3872 | AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN) | |
3873 | fi | |
9e423e6d | 3874 | fi |
75bffa71 | 3875 | elif test x$host = x$target; then |
9e423e6d JW |
3876 | # Native build. |
3877 | gcc_cv_as=as$host_exeext | |
3878 | fi | |
75bffa71 | 3879 | if test x$gcc_cv_as != x; then |
00ccc16d JL |
3880 | # Check if we have .balign and .p2align |
3881 | echo ".balign 4" > conftest.s | |
3882 | echo ".p2align 2" >> conftest.s | |
3883 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
3884 | gcc_cv_as_alignment_features=".balign and .p2align" | |
3885 | AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN) | |
3886 | fi | |
3887 | rm -f conftest.s conftest.o | |
9e423e6d JW |
3888 | # Check if specifying the maximum bytes to skip when |
3889 | # using .p2align is supported. | |
3890 | echo ".p2align 4,,7" > conftest.s | |
3891 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
3892 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
3893 | AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN) | |
3894 | fi | |
3895 | rm -f conftest.s conftest.o | |
3896 | fi | |
3897 | AC_MSG_RESULT($gcc_cv_as_alignment_features) | |
3898 | ||
d1accaa3 JJ |
3899 | AC_MSG_CHECKING(assembler subsection support) |
3900 | gcc_cv_as_subsections= | |
3901 | if test x$gcc_cv_as != x; then | |
3902 | # Check if we have .subsection | |
3903 | echo ".subsection 1" > conftest.s | |
3904 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
3905 | gcc_cv_as_subsections=".subsection" | |
3906 | if test -x nm$host_exeext; then | |
3907 | gcc_cv_nm=./nm$host_exeext | |
3908 | elif test x$host = x$target; then | |
3909 | # Native build. | |
3910 | gcc_cv_nm=nm$host_exeext | |
3911 | fi | |
3912 | if test x$gcc_cv_nm != x; then | |
3913 | cat > conftest.s <<EOF | |
3914 | conftest_label1: .word 0 | |
3915 | .subsection -1 | |
3916 | conftest_label2: .word 0 | |
3917 | .previous | |
3918 | EOF | |
3919 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
3920 | $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 | |
3921 | $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 | |
1b015bec AO |
3922 | if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then |
3923 | : | |
3924 | else | |
d1accaa3 JJ |
3925 | gcc_cv_as_subsections="working .subsection -1" |
3926 | AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING) | |
3927 | fi | |
3928 | fi | |
3929 | fi | |
3930 | fi | |
3931 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
3932 | fi | |
3933 | AC_MSG_RESULT($gcc_cv_as_subsections) | |
3934 | ||
571a8de5 | 3935 | # Figure out what language subdirectories are present. |
71205e0b MH |
3936 | # Look if the user specified --enable-languages="..."; if not, use |
3937 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
3938 | # go away some day. | |
3939 | if test x"${enable_languages+set}" != xset; then | |
3940 | if test x"${LANGUAGES+set}" = xset; then | |
3941 | enable_languages="`echo ${LANGUAGES} | tr ' ' ','`" | |
3942 | else | |
3943 | enable_languages=all | |
3944 | fi | |
3945 | fi | |
571a8de5 DE |
3946 | subdirs= |
3947 | for lang in ${srcdir}/*/config-lang.in .. | |
3948 | do | |
3949 | case $lang in | |
3950 | ..) ;; | |
3951 | # The odd quoting in the next line works around | |
3952 | # an apparent bug in bash 1.12 on linux. | |
75bffa71 ILT |
3953 | changequote(,)dnl |
3954 | ${srcdir}/[*]/config-lang.in) ;; | |
71205e0b MH |
3955 | *) |
3956 | lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` | |
3957 | if test "x$lang_alias" = x | |
3958 | then | |
3959 | echo "$lang doesn't set \$language." 1>&2 | |
3960 | exit 1 | |
3961 | fi | |
3962 | if test x"${enable_languages}" = xall; then | |
3963 | add_this_lang=yes | |
3964 | else | |
3965 | case "${enable_languages}" in | |
3966 | ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" ) | |
3967 | add_this_lang=yes | |
3968 | ;; | |
3969 | * ) | |
3970 | add_this_lang=no | |
3971 | ;; | |
3972 | esac | |
3973 | fi | |
3974 | if test x"${add_this_lang}" = xyes; then | |
3975 | case $lang in | |
3976 | ${srcdir}/ada/config-lang.in) | |
3977 | if test x$gnat = xyes ; then | |
3978 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
3979 | fi | |
3980 | ;; | |
3981 | *) | |
3982 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
3983 | ;; | |
3984 | esac | |
3985 | fi | |
3986 | ;; | |
75bffa71 | 3987 | changequote([,])dnl |
571a8de5 DE |
3988 | esac |
3989 | done | |
3990 | ||
f24af81b TT |
3991 | # Make gthr-default.h if we have a thread file. |
3992 | gthread_flags= | |
75bffa71 | 3993 | if test $thread_file != single; then |
f24af81b | 3994 | rm -f gthr-default.h |
db0d1ed9 | 3995 | echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h |
f24af81b TT |
3996 | gthread_flags=-DHAVE_GTHR_DEFAULT |
3997 | fi | |
3998 | AC_SUBST(gthread_flags) | |
3999 | ||
571a8de5 DE |
4000 | # Make empty files to contain the specs and options for each language. |
4001 | # Then add #include lines to for a compiler that has specs and/or options. | |
4002 | ||
4003 | lang_specs_files= | |
4004 | lang_options_files= | |
3103b7db ML |
4005 | lang_tree_files= |
4006 | rm -f specs.h options.h gencheck.h | |
4007 | touch specs.h options.h gencheck.h | |
571a8de5 DE |
4008 | for subdir in . $subdirs |
4009 | do | |
75bffa71 | 4010 | if test -f $srcdir/$subdir/lang-specs.h; then |
571a8de5 DE |
4011 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h |
4012 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
4013 | fi | |
75bffa71 | 4014 | if test -f $srcdir/$subdir/lang-options.h; then |
571a8de5 DE |
4015 | echo "#include \"$subdir/lang-options.h\"" >>options.h |
4016 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
4017 | fi | |
3103b7db ML |
4018 | if test -f $srcdir/$subdir/$subdir-tree.def; then |
4019 | echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h | |
4020 | lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" | |
4021 | fi | |
571a8de5 DE |
4022 | done |
4023 | ||
4024 | # These (without "all_") are set in each config-lang.in. | |
4025 | # `language' must be a single word so is spelled singularly. | |
4026 | all_languages= | |
4027 | all_boot_languages= | |
4028 | all_compilers= | |
4029 | all_stagestuff= | |
4030 | all_diff_excludes= | |
9f3d1bc2 | 4031 | all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile' |
571a8de5 DE |
4032 | # List of language makefile fragments. |
4033 | all_lang_makefiles= | |
4034 | all_headers= | |
4035 | all_lib2funcs= | |
4036 | ||
4037 | # Add the language fragments. | |
4038 | # Languages are added via two mechanisms. Some information must be | |
4039 | # recorded in makefile variables, these are defined in config-lang.in. | |
4040 | # We accumulate them and plug them into the main Makefile. | |
4041 | # The other mechanism is a set of hooks for each of the main targets | |
4042 | # like `clean', `install', etc. | |
4043 | ||
4044 | language_fragments="Make-lang" | |
4045 | language_hooks="Make-hooks" | |
0280cf84 | 4046 | oldstyle_subdirs= |
571a8de5 DE |
4047 | |
4048 | for s in .. $subdirs | |
4049 | do | |
75bffa71 | 4050 | if test $s != ".." |
571a8de5 DE |
4051 | then |
4052 | language= | |
4053 | boot_language= | |
4054 | compilers= | |
4055 | stagestuff= | |
4056 | diff_excludes= | |
4057 | headers= | |
0280cf84 | 4058 | outputs= |
571a8de5 DE |
4059 | lib2funcs= |
4060 | . ${srcdir}/$s/config-lang.in | |
75bffa71 | 4061 | if test "x$language" = x |
571a8de5 DE |
4062 | then |
4063 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
4064 | exit 1 | |
4065 | fi | |
4066 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
4067 | all_languages="$all_languages $language" | |
75bffa71 | 4068 | if test "x$boot_language" = xyes |
571a8de5 DE |
4069 | then |
4070 | all_boot_languages="$all_boot_languages $language" | |
4071 | fi | |
4072 | all_compilers="$all_compilers $compilers" | |
4073 | all_stagestuff="$all_stagestuff $stagestuff" | |
4074 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
4075 | all_headers="$all_headers $headers" | |
0280cf84 | 4076 | all_outputs="$all_outputs $outputs" |
75bffa71 | 4077 | if test x$outputs = x |
0280cf84 PB |
4078 | then |
4079 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
4080 | fi | |
571a8de5 DE |
4081 | all_lib2funcs="$all_lib2funcs $lib2funcs" |
4082 | fi | |
4083 | done | |
4084 | ||
4085 | # Since we can't use `::' targets, we link each language in | |
4086 | # with a set of hooks, reached indirectly via lang.${target}. | |
4087 | ||
4088 | rm -f Make-hooks | |
4089 | touch Make-hooks | |
4090 | target_list="all.build all.cross start.encap rest.encap \ | |
4091 | info dvi \ | |
4092 | install-normal install-common install-info install-man \ | |
4093 | uninstall distdir \ | |
4094 | mostlyclean clean distclean extraclean maintainer-clean \ | |
4095 | stage1 stage2 stage3 stage4" | |
4096 | for t in $target_list | |
4097 | do | |
4098 | x= | |
ab87f8c8 | 4099 | for lang in .. $all_languages |
571a8de5 | 4100 | do |
ab87f8c8 JL |
4101 | if test $lang != ".."; then |
4102 | x="$x $lang.$t" | |
571a8de5 DE |
4103 | fi |
4104 | done | |
4105 | echo "lang.$t: $x" >> Make-hooks | |
4106 | done | |
4107 | ||
296e46bd DE |
4108 | # If we're not building in srcdir, create .gdbinit. |
4109 | ||
75bffa71 | 4110 | if test ! -f Makefile.in; then |
296e46bd DE |
4111 | echo "dir ." > .gdbinit |
4112 | echo "dir ${srcdir}" >> .gdbinit | |
75bffa71 | 4113 | if test x$gdb_needs_out_file_path = xyes |
296e46bd DE |
4114 | then |
4115 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
4116 | fi | |
75bffa71 | 4117 | if test "x$subdirs" != x; then |
296e46bd DE |
4118 | for s in $subdirs |
4119 | do | |
4120 | echo "dir ${srcdir}/$s" >> .gdbinit | |
4121 | done | |
4122 | fi | |
4123 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
4124 | fi | |
4125 | ||
88111b26 JL |
4126 | # Define variables host_canonical and build_canonical |
4127 | # because some Cygnus local changes in the Makefile depend on them. | |
4128 | build_canonical=${build} | |
4129 | host_canonical=${host} | |
4130 | target_subdir= | |
75bffa71 | 4131 | if test "${host}" != "${target}" ; then |
88111b26 JL |
4132 | target_subdir=${target}/ |
4133 | fi | |
4134 | AC_SUBST(build_canonical) | |
4135 | AC_SUBST(host_canonical) | |
4136 | AC_SUBST(target_subdir) | |
4137 | ||
dec88383 DE |
4138 | # If this is using newlib, then define inhibit_libc in |
4139 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
4140 | # libgcc.a, but that's OK because newib should have its own version of | |
4141 | # assert.h. | |
4142 | inhibit_libc= | |
75bffa71 | 4143 | if test x$with_newlib = xyes; then |
dec88383 DE |
4144 | inhibit_libc=-Dinhibit_libc |
4145 | fi | |
4146 | AC_SUBST(inhibit_libc) | |
4147 | ||
8c660648 JL |
4148 | # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler. |
4149 | sched_prefix= | |
4150 | sched_cflags= | |
75bffa71 | 4151 | if test x$enable_haifa = xyes; then |
8c660648 JL |
4152 | echo "Using the Haifa scheduler." |
4153 | sched_prefix=haifa- | |
4154 | sched_cflags=-DHAIFA | |
4155 | fi | |
4156 | AC_SUBST(sched_prefix) | |
4157 | AC_SUBST(sched_cflags) | |
75bffa71 | 4158 | if test x$enable_haifa != x; then |
8c660648 | 4159 | # Explicitly remove files that need to be recompiled for the Haifa scheduler. |
81814e35 | 4160 | for x in genattrtab.o toplev.o *sched.o; do |
75bffa71 | 4161 | if test -f $x; then |
8c660648 JL |
4162 | echo "Removing $x" |
4163 | rm -f $x | |
4164 | fi | |
4165 | done | |
4166 | fi | |
4167 | ||
8f8d3278 NC |
4168 | # If $(exec_prefix) exists and is not the same as $(prefix), then compute an |
4169 | # absolute path for gcc_tooldir based on inserting the number of up-directory | |
4170 | # movements required to get from $(exec_prefix) to $(prefix) into the basic | |
4171 | # $(libsubdir)/@(unlibsubdir) based path. | |
82cbf8f7 JL |
4172 | # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel |
4173 | # make and thus we'd get different behavior depending on where we built the | |
4174 | # sources. | |
5949a9fc | 4175 | if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then |
d062c304 JL |
4176 | gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)' |
4177 | else | |
8f8d3278 NC |
4178 | changequote(<<, >>)dnl |
4179 | # An explanation of the sed strings: | |
4180 | # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix' | |
4181 | # -e 's|/$||' match a trailing forward slash and eliminates it | |
4182 | # -e 's|^[^/]|/|' forces the string to start with a forward slash (*) | |
4183 | # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../ | |
4184 | # | |
4185 | # (*) Note this pattern overwrites the first character of the string | |
4186 | # with a forward slash if one is not already present. This is not a | |
4187 | # problem because the exact names of the sub-directories concerned is | |
4188 | # unimportant, just the number of them matters. | |
4189 | # | |
4190 | # The practical upshot of these patterns is like this: | |
4191 | # | |
4192 | # prefix exec_prefix result | |
4193 | # ------ ----------- ------ | |
4194 | # /foo /foo/bar ../ | |
4195 | # /foo/ /foo/bar ../ | |
4196 | # /foo /foo/bar/ ../ | |
4197 | # /foo/ /foo/bar/ ../ | |
4198 | # /foo /foo/bar/ugg ../../ | |
4199 | # | |
4c112cda NC |
4200 | dollar='$$' |
4201 | gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)" | |
8f8d3278 | 4202 | changequote([, ])dnl |
d062c304 JL |
4203 | fi |
4204 | AC_SUBST(gcc_tooldir) | |
4c112cda | 4205 | AC_SUBST(dollar) |
d062c304 | 4206 | |
7e717196 JL |
4207 | # Nothing to do for FLOAT_H, float_format already handled. |
4208 | objdir=`pwd` | |
4209 | AC_SUBST(objdir) | |
4210 | ||
94f42018 DE |
4211 | # Process the language and host/target makefile fragments. |
4212 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
47866ac0 | 4213 | |
46f18e7b RK |
4214 | # Substitute configuration variables |
4215 | AC_SUBST(subdirs) | |
46f18e7b RK |
4216 | AC_SUBST(all_boot_languages) |
4217 | AC_SUBST(all_compilers) | |
46f18e7b | 4218 | AC_SUBST(all_diff_excludes) |
46f18e7b | 4219 | AC_SUBST(all_headers) |
9f3d1bc2 BK |
4220 | AC_SUBST(all_lang_makefiles) |
4221 | AC_SUBST(all_languages) | |
4222 | AC_SUBST(all_lib2funcs) | |
4223 | AC_SUBST(all_stagestuff) | |
4224 | AC_SUBST(build_exeext) | |
4225 | AC_SUBST(build_install_headers_dir) | |
4226 | AC_SUBST(build_xm_file_list) | |
4227 | AC_SUBST(cc_set_by_configure) | |
4228 | AC_SUBST(cpp_install_dir) | |
e061d1ce | 4229 | AC_SUBST(cpp_main) |
9f3d1bc2 BK |
4230 | AC_SUBST(dep_host_xmake_file) |
4231 | AC_SUBST(dep_tmake_file) | |
4232 | AC_SUBST(extra_c_flags) | |
b4294351 | 4233 | AC_SUBST(extra_c_objs) |
56f48ce9 | 4234 | AC_SUBST(extra_cpp_objs) |
9f3d1bc2 BK |
4235 | AC_SUBST(extra_cxx_objs) |
4236 | AC_SUBST(extra_headers_list) | |
46f18e7b | 4237 | AC_SUBST(extra_objs) |
9f3d1bc2 BK |
4238 | AC_SUBST(extra_parts) |
4239 | AC_SUBST(extra_passes) | |
4240 | AC_SUBST(extra_programs) | |
4241 | AC_SUBST(fixinc_defs) | |
4242 | AC_SUBST(float_h_file) | |
4243 | AC_SUBST(gcc_gxx_include_dir) | |
4244 | AC_SUBST(gcc_version) | |
4245 | AC_SUBST(gcc_version_trigger) | |
4246 | AC_SUBST(host_exeext) | |
46f18e7b | 4247 | AC_SUBST(host_extra_gcc_objs) |
46f18e7b | 4248 | AC_SUBST(host_xm_file_list) |
9f3d1bc2 BK |
4249 | AC_SUBST(install) |
4250 | AC_SUBST(JAVAGC) | |
46f18e7b | 4251 | AC_SUBST(lang_options_files) |
9f3d1bc2 | 4252 | AC_SUBST(lang_specs_files) |
3103b7db | 4253 | AC_SUBST(lang_tree_files) |
46f18e7b | 4254 | AC_SUBST(local_prefix) |
46f18e7b | 4255 | AC_SUBST(maybe_use_collect2) |
9f3d1bc2 BK |
4256 | AC_SUBST(md_file) |
4257 | AC_SUBST(objc_boehm_gc) | |
4258 | AC_SUBST(out_file) | |
4259 | AC_SUBST(out_object_file) | |
46f18e7b | 4260 | AC_SUBST(stage_prefix_set_by_configure) |
e9a25f70 | 4261 | AC_SUBST(symbolic_link) |
9f3d1bc2 BK |
4262 | AC_SUBST(thread_file) |
4263 | AC_SUBST(tm_file_list) | |
4264 | AC_SUBST(will_use_collect2) | |
9fc9b82a | 4265 | |
46f18e7b RK |
4266 | |
4267 | AC_SUBST_FILE(target_overrides) | |
4268 | AC_SUBST_FILE(host_overrides) | |
4269 | AC_SUBST(cross_defines) | |
4270 | AC_SUBST_FILE(cross_overrides) | |
4271 | AC_SUBST_FILE(build_overrides) | |
4272 | AC_SUBST_FILE(language_fragments) | |
4273 | AC_SUBST_FILE(language_hooks) | |
4274 | ||
4275 | # Echo that links are built | |
75bffa71 | 4276 | if test x$host = x$target |
46f18e7b RK |
4277 | then |
4278 | str1="native " | |
4279 | else | |
4280 | str1="cross-" | |
4281 | str2=" from $host" | |
4282 | fi | |
4283 | ||
75bffa71 | 4284 | if test x$host != x$build |
46f18e7b RK |
4285 | then |
4286 | str3=" on a $build system" | |
4287 | fi | |
4288 | ||
75bffa71 | 4289 | if test "x$str2" != x || test "x$str3" != x |
46f18e7b RK |
4290 | then |
4291 | str4= | |
4292 | fi | |
4293 | ||
4294 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
4295 | ||
75bffa71 | 4296 | if test "x$str2" != x || test "x$str3" != x |
46f18e7b RK |
4297 | then |
4298 | echo " ${str2}${str3}." 1>&2 | |
4299 | fi | |
4300 | ||
61536478 | 4301 | # Truncate the target if necessary |
75bffa71 | 4302 | if test x$host_truncate_target != x; then |
61536478 JL |
4303 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
4304 | fi | |
4305 | ||
46f18e7b RK |
4306 | # Configure the subdirectories |
4307 | # AC_CONFIG_SUBDIRS($subdirs) | |
4308 | ||
4309 | # Create the Makefile | |
5891b37d | 4310 | # and configure language subdirectories |
0280cf84 | 4311 | AC_OUTPUT($all_outputs, |
cdcc6a01 DE |
4312 | [ |
4313 | . $srcdir/configure.lang | |
4314 | case x$CONFIG_HEADERS in | |
b7cb92ad | 4315 | xauto-host.h:config.in) |
818b66cc | 4316 | echo > cstamp-h ;; |
cdcc6a01 | 4317 | esac |
93cf819d BK |
4318 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
4319 | # bootstrapping and the installation procedure can still use | |
4320 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
4321 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
4322 | # This is virtually a duplicate of what happens in configure.lang; we do | |
4323 | # an extra check to make sure this only happens if ln -s can be used. | |
75bffa71 | 4324 | if test "$symbolic_link" = "ln -s"; then |
93cf819d | 4325 | for d in .. ${subdirs} ; do |
75bffa71 | 4326 | if test $d != ..; then |
4e8a434e BK |
4327 | STARTDIR=`pwd` |
4328 | cd $d | |
4329 | for t in stage1 stage2 stage3 stage4 include | |
4330 | do | |
4331 | rm -f $t | |
4332 | $symbolic_link ../$t $t 2>/dev/null | |
4333 | done | |
4334 | cd $STARTDIR | |
93cf819d BK |
4335 | fi |
4336 | done | |
4337 | else true ; fi | |
ab87f8c8 JL |
4338 | # Avoid having to add intl to our include paths. |
4339 | if test -f intl/libintl.h; then | |
4340 | echo creating libintl.h | |
4341 | echo '#include "intl/libintl.h"' >libintl.h | |
4342 | fi | |
cdcc6a01 DE |
4343 | ], |
4344 | [ | |
5891b37d RK |
4345 | host='${host}' |
4346 | build='${build}' | |
4347 | target='${target}' | |
52060267 | 4348 | target_alias='${target_alias}' |
5891b37d RK |
4349 | srcdir='${srcdir}' |
4350 | subdirs='${subdirs}' | |
296e46bd | 4351 | oldstyle_subdirs='${oldstyle_subdirs}' |
5891b37d RK |
4352 | symbolic_link='${symbolic_link}' |
4353 | program_transform_set='${program_transform_set}' | |
4354 | program_transform_name='${program_transform_name}' | |
5891b37d RK |
4355 | dep_host_xmake_file='${dep_host_xmake_file}' |
4356 | host_xmake_file='${host_xmake_file}' | |
4357 | dep_tmake_file='${dep_tmake_file}' | |
4358 | tmake_file='${tmake_file}' | |
0bbb1697 | 4359 | thread_file='${thread_file}' |
f1943b77 MH |
4360 | gcc_version='${gcc_version}' |
4361 | gcc_version_trigger='${gcc_version_trigger}' | |
5891b37d | 4362 | local_prefix='${local_prefix}' |
5891b37d | 4363 | build_install_headers_dir='${build_install_headers_dir}' |
a204adc6 | 4364 | build_exeext='${build_exeext}' |
6e26218f | 4365 | host_exeext='${host_exeext}' |
7ed46111 | 4366 | out_file='${out_file}' |
5891b37d RK |
4367 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
4368 | SET_MAKE='${SET_MAKE}' | |
5891b37d | 4369 | target_list='${target_list}' |
5891b37d RK |
4370 | target_overrides='${target_overrides}' |
4371 | host_overrides='${host_overrides}' | |
4372 | cross_defines='${cross_defines}' | |
4373 | cross_overrides='${cross_overrides}' | |
4374 | build_overrides='${build_overrides}' | |
9fc9b82a | 4375 | cpp_install_dir='${cpp_install_dir}' |
cdcc6a01 | 4376 | ]) |