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