]>
Commit | Line | Data |
---|---|---|
46f18e7b RK |
1 | # configure.in for GNU CC |
2 | # Process this file with autoconf to generate a configuration script. | |
3 | ||
4 | # Copyright (C) 1997 Free Software Foundation, Inc. | |
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) | |
cdcc6a01 DE |
25 | AC_CONFIG_HEADER(config.h:config.in) |
26 | ||
46f18e7b | 27 | native_prefix=/usr |
46f18e7b RK |
28 | remove=rm |
29 | hard_link=ln | |
30 | symbolic_link='ln -s' | |
31 | copy=cp | |
32 | ||
33 | # Check for additional parameters | |
34 | ||
35 | # With GNU ld | |
36 | AC_ARG_WITH(gnu-ld, | |
37 | [ --with-gnu-ld arrange to work with GNU ld.], | |
38 | gnu_ld=yes, | |
39 | gnu_ld=no) | |
40 | ||
41 | # With GNU as | |
42 | AC_ARG_WITH(gnu-as, | |
4d8392b7 | 43 | [ --with-gnu-as arrange to work with GNU as.], |
46f18e7b RK |
44 | gas=yes, |
45 | gas=no) | |
46 | ||
47 | # With stabs | |
48 | AC_ARG_WITH(stabs, | |
49 | [ --with-stabs arrange to use stabs instead of host debug format.], | |
50 | stabs=yes, | |
51 | stabs=no) | |
52 | ||
53 | # With ELF | |
54 | AC_ARG_WITH(elf, | |
55 | [ --with-elf arrange to use ELF instead of host debug format.], | |
56 | elf=yes, | |
57 | elf=no) | |
58 | ||
4d8392b7 RK |
59 | # Specify the local prefix |
60 | AC_ARG_WITH(local-prefix, | |
61 | [ --with-local-prefix=DIR specifies directory to put local include.], | |
62 | local_prefix=$with_local_prefix, | |
63 | local_prefix=/usr/local) | |
64 | ||
65 | # Default local prefix if it is empty | |
66 | if [[ x$local_prefix = x ]]; then | |
67 | local_prefix=/usr/local | |
68 | fi | |
69 | ||
9514f0d1 RK |
70 | # Specify the g++ header file directory |
71 | AC_ARG_WITH(gxx-include-dir, | |
72 | [ --with-gxx-include-dir=DIR | |
73 | specifies directory to put g++ header files.], | |
74 | gxx_include_dir=$with_gxx_include_dir, | |
75 | gxx_include_dir='${prefix}/include/g++') | |
76 | ||
77 | # Default g++ header file directory if it is empty | |
78 | if [[ x$gxx_include_dir = x ]]; then | |
79 | gxx_include_dir='${prefix}/include/g++' | |
80 | fi | |
46f18e7b | 81 | |
b4294351 PB |
82 | # Enable use of cpplib for C. |
83 | AC_ARG_ENABLE(c-cpplib, | |
84 | [ --enable-c-cpplib Use cpplib for C.], | |
85 | if [[[ x$enable_c_cpplib != xno ]]]; then | |
86 | extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o" | |
87 | extra_c_flags=-DUSE_CPPLIB=1 | |
88 | fi) | |
89 | ||
0bbb1697 RK |
90 | # Enable threads |
91 | # Pass with no value to take the default | |
92 | # Pass with a value to specify a thread package | |
93 | AC_ARG_ENABLE(threads, | |
94 | [ --enable-threads enable thread usage for target GCC. | |
95 | --enable-threads=LIB use LIB thread package for target GCC.], | |
96 | if [[[ x$enable_threads = xno ]]]; then | |
97 | enable_threads='' | |
98 | fi, | |
99 | enable_threads='') | |
100 | ||
101 | # Check if a valid thread package | |
102 | case x${enable_threads} in | |
103 | x | xno) | |
104 | # No threads | |
105 | thread_file='single' | |
106 | ;; | |
107 | xyes) | |
108 | # default | |
109 | thread_file='' | |
110 | ;; | |
111 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
112 | xsolaris | xwin32) | |
113 | thread_file=$enable_threads | |
114 | ;; | |
115 | *) | |
116 | echo "$enable_threads is an unknown thread package" 1>&2 | |
117 | exit 1 | |
118 | ;; | |
119 | esac | |
120 | ||
46f18e7b RK |
121 | # Determine the host, build, and target systems |
122 | AC_CANONICAL_SYSTEM | |
123 | ||
124 | # Find some useful tools | |
125 | AC_PROG_AWK | |
126 | AC_PROG_LEX | |
127 | AC_PROG_LN_S | |
128 | AC_PROG_RANLIB | |
129 | AC_PROG_YACC | |
130 | AC_PROG_INSTALL | |
131 | ||
132 | # Find the native compiler | |
133 | AC_PROG_CC | |
134 | AC_PROG_MAKE_SET | |
135 | ||
cdcc6a01 DE |
136 | AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h) |
137 | ||
138 | GCC_NEED_DECLARATION(malloc) | |
139 | GCC_NEED_DECLARATION(realloc) | |
19372aa1 | 140 | GCC_NEED_DECLARATION(calloc) |
cdcc6a01 DE |
141 | GCC_NEED_DECLARATION(free) |
142 | ||
e3512ac2 JL |
143 | AC_DECL_SYS_SIGLIST |
144 | ||
a63d08e6 JL |
145 | AC_CHECK_FUNCS(strerror) |
146 | ||
46f18e7b RK |
147 | # File extensions |
148 | manext='.1' | |
149 | objext='.o' | |
46f18e7b RK |
150 | AC_SUBST(manext) |
151 | AC_SUBST(objext) | |
46f18e7b RK |
152 | |
153 | build_xm_file= | |
46f18e7b RK |
154 | build_install_headers_dir=install-headers-tar |
155 | build_exeext= | |
156 | host_xm_file= | |
157 | host_xmake_file= | |
158 | host_truncate_target= | |
159 | ||
160 | # Decode the host machine, then the target machine. | |
161 | # For the host machine, we save the xm_file variable as host_xm_file; | |
162 | # then we decode the target machine and forget everything else | |
163 | # that came from the host machine. | |
164 | for machine in $build $host $target; do | |
165 | ||
166 | out_file= | |
167 | xmake_file= | |
168 | tmake_file= | |
169 | extra_headers= | |
170 | extra_passes= | |
171 | extra_parts= | |
172 | extra_programs= | |
173 | extra_objs= | |
174 | extra_host_objs= | |
175 | extra_gcc_objs= | |
176 | float_format= | |
177 | # Set this to force installation and use of collect2. | |
178 | use_collect2= | |
179 | # Set this to override the default target model. | |
180 | target_cpu_default= | |
46f18e7b RK |
181 | # Set this to control which fixincludes program to use. |
182 | fixincludes=fixincludes | |
183 | # Set this to control how the header file directory is installed. | |
184 | install_headers_dir=install-headers-tar | |
185 | # Set this to a non-empty list of args to pass to cpp if the target | |
186 | # wants its .md file passed through cpp. | |
187 | md_cppflags= | |
188 | # Set this if directory names should be truncated to 14 characters. | |
189 | truncate_target= | |
190 | # Set this if gdb needs a dir command with `dirname $out_file` | |
191 | gdb_needs_out_file_path= | |
46f18e7b RK |
192 | # Set this if the build machine requires executables to have a |
193 | # file name suffix. | |
194 | exeext= | |
195 | ||
196 | # Set default cpu_type, tm_file and xm_file so it can be updated in | |
197 | # each machine entry. | |
198 | cpu_type=`echo $machine | sed 's/-.*$//'` | |
199 | case $machine in | |
08fc0184 RK |
200 | alpha*-*-*) |
201 | cpu_type=alpha | |
202 | ;; | |
46f18e7b RK |
203 | arm*-*-*) |
204 | cpu_type=arm | |
205 | ;; | |
206 | c*-convex-*) | |
207 | cpu_type=convex | |
208 | ;; | |
209 | i[[3456]]86-*-*) | |
210 | cpu_type=i386 | |
211 | ;; | |
212 | hppa*-*-*) | |
213 | cpu_type=pa | |
214 | ;; | |
215 | m68000-*-*) | |
216 | cpu_type=m68k | |
217 | ;; | |
218 | mips*-*-*) | |
219 | cpu_type=mips | |
220 | ;; | |
221 | powerpc*-*-*) | |
222 | cpu_type=rs6000 | |
223 | ;; | |
224 | pyramid-*-*) | |
225 | cpu_type=pyr | |
226 | ;; | |
227 | sparc*-*-*) | |
228 | cpu_type=sparc | |
229 | ;; | |
230 | esac | |
231 | ||
232 | tm_file=${cpu_type}/${cpu_type}.h | |
233 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
234 | ||
235 | case $machine in | |
236 | # Support site-specific machine types. | |
237 | *local*) | |
238 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
239 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
240 | xm_file=${cpu_type}/xm-$rest.h | |
241 | tm_file=${cpu_type}/$rest.h | |
242 | if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \ | |
243 | then xmake_file=${cpu_type}/x-$rest; \ | |
244 | else true; \ | |
245 | fi | |
246 | if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \ | |
247 | then tmake_file=${cpu_type}/t-$rest; \ | |
248 | else true; \ | |
249 | fi | |
250 | ;; | |
251 | 1750a-*-*) | |
252 | ;; | |
253 | a29k-*-bsd* | a29k-*-sym1*) | |
254 | tm_file="${tm_file} a29k/unix.h" | |
255 | xm_file=a29k/xm-unix.h | |
256 | xmake_file=a29k/x-unix | |
257 | use_collect2=yes | |
258 | ;; | |
259 | a29k-*-udi | a29k-*-coff) | |
260 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
261 | tmake_file=a29k/t-a29kbare | |
262 | ;; | |
263 | a29k-*-vxworks*) | |
264 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" | |
265 | tmake_file=a29k/t-vx29k | |
266 | extra_parts="crtbegin.o crtend.o" | |
267 | ;; | |
268 | a29k-*-*) # Default a29k environment. | |
269 | use_collect2=yes | |
270 | ;; | |
08fc0184 | 271 | alpha*-*-linux-gnuecoff*) |
46f18e7b RK |
272 | tm_file="${tm_file} alpha/linux.h" |
273 | xm_file="${xm_file} alpha/xm-linux.h" | |
e71c3bb0 RK |
274 | target_cpu_default="MASK_GAS" |
275 | gas=no | |
46f18e7b RK |
276 | xmake_file=none |
277 | fixincludes=Makefile.in | |
278 | gas=yes gnu_ld=yes | |
279 | ;; | |
704a6306 RH |
280 | alpha*-*-linux-gnulibc1*) |
281 | tm_file="${tm_file} alpha/linux.h alpha/elf.h" | |
282 | xm_file="${xm_file} alpha/xm-linux.h" | |
283 | target_cpu_default="MASK_GAS" | |
284 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux" | |
285 | xmake_file=none | |
286 | fixincludes=Makefile.in | |
287 | gas=yes gnu_ld=yes | |
288 | if [[ x$enable_threads = xyes ]]; then | |
289 | thread_file='posix' | |
290 | fi | |
291 | ;; | |
08fc0184 | 292 | alpha*-*-linux-gnu*) |
46f18e7b RK |
293 | tm_file="${tm_file} alpha/linux.h alpha/elf.h" |
294 | xm_file="${xm_file} alpha/xm-linux.h" | |
e71c3bb0 | 295 | target_cpu_default="MASK_GAS" |
1c988fb7 | 296 | tmake_file="t-linux alpha/t-linux" |
46f18e7b RK |
297 | xmake_file=none |
298 | fixincludes=Makefile.in | |
46f18e7b | 299 | gas=yes gnu_ld=yes |
d1054723 | 300 | if [[ x$enable_threads = xyes ]]; then |
c811d261 RK |
301 | thread_file='posix' |
302 | fi | |
46f18e7b | 303 | ;; |
08fc0184 | 304 | alpha*-dec-osf[[456789]]*) |
dec3e070 JW |
305 | if [[ x$stabs = xyes ]] |
306 | then | |
307 | tm_file="${tm_file} dbx.h" | |
308 | fi | |
309 | if [[ x$gas != xyes ]] | |
310 | then | |
311 | extra_passes="mips-tfile mips-tdump" | |
312 | fi | |
dec3e070 JW |
313 | use_collect2=yes |
314 | # Some versions of OSF4 (specifically X4.0-9 296.7) have | |
315 | # a broken tar, so we use cpio instead. | |
316 | case $machine in | |
08fc0184 | 317 | alpha*-dec-osf4*) |
dec3e070 JW |
318 | install_headers_dir=install-headers-cpio |
319 | ;; | |
320 | esac | |
321 | ;; | |
08fc0184 | 322 | alpha*-dec-osf[[23]]*) |
dec3e070 | 323 | tm_file="${tm_file} alpha/osf2or3.h" |
46f18e7b RK |
324 | if [[ x$stabs = xyes ]] |
325 | then | |
326 | tm_file="${tm_file} dbx.h" | |
327 | fi | |
328 | if [[ x$gas != xyes ]] | |
329 | then | |
330 | extra_passes="mips-tfile mips-tdump" | |
331 | fi | |
46f18e7b RK |
332 | use_collect2=yes |
333 | ;; | |
08fc0184 | 334 | alpha*-dec-osf1.2) |
46f18e7b RK |
335 | tm_file="${tm_file} alpha/osf12.h" |
336 | if [[ x$stabs = xyes ]] | |
337 | then | |
338 | tm_file="${tm_file} dbx.h" | |
339 | fi | |
340 | if [[ x$gas != xyes ]] | |
341 | then | |
342 | extra_passes="mips-tfile mips-tdump" | |
343 | fi | |
46f18e7b RK |
344 | use_collect2=yes |
345 | ;; | |
08fc0184 | 346 | alpha*-*-osf*) |
46f18e7b RK |
347 | if [[ x$stabs = xyes ]] |
348 | then | |
349 | tm_file="${tm_file} dbx.h" | |
350 | fi | |
351 | if [[ x$gas != xyes ]] | |
352 | then | |
353 | extra_passes="mips-tfile mips-tdump" | |
354 | fi | |
46f18e7b RK |
355 | use_collect2=yes |
356 | ;; | |
08fc0184 | 357 | alpha*-*-winnt3*) |
46f18e7b | 358 | tm_file="${tm_file} alpha/win-nt.h" |
08fc0184 | 359 | target_cpu_default=MASK_WINDOWS_NT |
46f18e7b RK |
360 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
361 | tmake_file=t-libc-ok | |
362 | xmake_file=winnt/x-winnt | |
363 | extra_host_objs=oldnames.o | |
364 | extra_gcc_objs="spawnv.o oldnames.o" | |
365 | fixincludes=fixinc.winnt | |
366 | if [[ x$gnu_ld != xyes ]] | |
367 | then | |
368 | extra_programs=ld.exe | |
369 | fi | |
434332b5 | 370 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
371 | thread_file='win32' |
372 | fi | |
46f18e7b | 373 | ;; |
08fc0184 | 374 | alpha*-dec-vms*) |
46f18e7b RK |
375 | tm_file=alpha/vms.h |
376 | xm_file="${xm_file} alpha/xm-vms.h" | |
377 | tmake_file=alpha/t-vms | |
378 | fixincludes=Makefile.in | |
379 | ;; | |
380 | arm-*-coff* | armel-*-coff*) | |
381 | tm_file=arm/coff.h | |
382 | tmake_file=arm/t-bare | |
383 | ;; | |
384 | arm-*-riscix1.[[01]]*) # Acorn RISC machine (early versions) | |
385 | tm_file=arm/riscix1-1.h | |
386 | use_collect2=yes | |
387 | ;; | |
388 | arm-*-riscix*) # Acorn RISC machine | |
389 | if [[ x$gas = xyes ]] | |
390 | then | |
391 | tm_file=arm/rix-gas.h | |
392 | else | |
393 | tm_file=arm/riscix.h | |
394 | fi | |
395 | xmake_file=arm/x-riscix | |
396 | tmake_file=arm/t-riscix | |
397 | use_collect2=yes | |
398 | ;; | |
399 | arm-semi-aout | armel-semi-aout) | |
400 | tm_file=arm/semi.h | |
401 | tmake_file=arm/t-semi | |
402 | fixincludes=Makefile.in # There is nothing to fix | |
403 | ;; | |
404 | arm-semi-aof | armel-semi-aof) | |
405 | tm_file=arm/semiaof.h | |
406 | tmake_file=arm/t-semiaof | |
407 | fixincludes=Makefile.in # There is nothing to fix | |
408 | ;; | |
d23f4158 RE |
409 | arm-*-netbsd*) |
410 | tm_file=arm/netbsd.h | |
411 | xm_file=arm/xm-netbsd.h | |
e3482774 | 412 | tmake_file=arm/t-netbsd |
d23f4158 RE |
413 | # On NetBSD, the headers are already okay. |
414 | fixincludes=Makefile.in | |
415 | use_collect2=yes | |
416 | ;; | |
844dadc7 | 417 | arm-*-linux-gnuaout*) # ARM Linux |
618d2e70 RK |
418 | cpu_type=arm |
419 | xm_file=arm/xm-linux.h | |
420 | xmake_file=x-linux | |
421 | tm_file=arm/linux-gas.h | |
422 | tmake_file=arm/t-linux | |
423 | fixincludes=Makefile.in | |
618d2e70 RK |
424 | gnu_ld=yes |
425 | ;; | |
f5967c59 RE |
426 | arm-*-aout) |
427 | tm_file=arm/aout.h | |
46f18e7b RK |
428 | ;; |
429 | c1-convex-*) # Convex C1 | |
430 | target_cpu_default=1 | |
431 | use_collect2=yes | |
432 | fixincludes=Makefile.in | |
433 | ;; | |
434 | c2-convex-*) # Convex C2 | |
435 | target_cpu_default=2 | |
436 | use_collect2=yes | |
437 | fixincludes=Makefile.in | |
438 | ;; | |
439 | c32-convex-*) | |
440 | target_cpu_default=4 | |
441 | use_collect2=yes | |
442 | fixincludes=Makefile.in | |
443 | ;; | |
444 | c34-convex-*) | |
445 | target_cpu_default=8 | |
446 | use_collect2=yes | |
447 | fixincludes=Makefile.in | |
448 | ;; | |
449 | c38-convex-*) | |
450 | target_cpu_default=16 | |
451 | use_collect2=yes | |
452 | fixincludes=Makefile.in | |
453 | ;; | |
454 | clipper-intergraph-clix*) | |
455 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
456 | xm_file=clipper/xm-clix.h | |
457 | xmake_file=clipper/x-clix | |
458 | extra_headers=va-clipper.h | |
459 | extra_parts="crtbegin.o crtend.o" | |
460 | install_headers_dir=install-headers-cpio | |
46f18e7b RK |
461 | ;; |
462 | dsp16xx-*) | |
463 | ;; | |
464 | elxsi-elxsi-*) | |
465 | use_collect2=yes | |
466 | ;; | |
467 | # This hasn't been upgraded to GCC 2. | |
468 | # fx80-alliant-*) # Alliant FX/80 | |
469 | # ;; | |
470 | h8300-*-*) | |
471 | float_format=i32 | |
472 | ;; | |
473 | hppa1.1-*-pro*) | |
2da05a5b JL |
474 | if [[ x$enable_haifa != xno ]]; then |
475 | enable_haifa=yes | |
476 | fi | |
46f18e7b RK |
477 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h" |
478 | xm_file=pa/xm-papro.h | |
479 | tmake_file=pa/t-pro | |
480 | ;; | |
481 | hppa1.1-*-osf*) | |
2da05a5b JL |
482 | if [[ x$enable_haifa != xno ]]; then |
483 | enable_haifa=yes | |
484 | fi | |
46f18e7b RK |
485 | target_cpu_default=1 |
486 | tm_file="${tm_file} pa/pa-osf.h" | |
487 | use_collect2=yes | |
488 | fixincludes=Makefile.in | |
489 | ;; | |
dec3e070 | 490 | hppa1.1-*-rtems*) |
2da05a5b JL |
491 | if [[ x$enable_haifa != xno ]]; then |
492 | enable_haifa=yes | |
493 | fi | |
dec3e070 JW |
494 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" |
495 | xm_file=pa/xm-papro.h | |
496 | tmake_file=pa/t-pro | |
497 | ;; | |
46f18e7b | 498 | hppa1.0-*-osf*) |
2da05a5b JL |
499 | if [[ x$enable_haifa != xno ]]; then |
500 | enable_haifa=yes | |
501 | fi | |
46f18e7b RK |
502 | tm_file="${tm_file} pa/pa-osf.h" |
503 | use_collect2=yes | |
504 | fixincludes=Makefile.in | |
505 | ;; | |
506 | hppa1.1-*-bsd*) | |
2da05a5b JL |
507 | if [[ x$enable_haifa != xno ]]; then |
508 | enable_haifa=yes | |
509 | fi | |
46f18e7b RK |
510 | target_cpu_default=1 |
511 | use_collect2=yes | |
512 | fixincludes=Makefile.in | |
513 | ;; | |
514 | hppa1.0-*-bsd*) | |
2da05a5b JL |
515 | if [[ x$enable_haifa != xno ]]; then |
516 | enable_haifa=yes | |
517 | fi | |
46f18e7b RK |
518 | use_collect2=yes |
519 | fixincludes=Makefile.in | |
520 | ;; | |
521 | hppa1.0-*-hpux7*) | |
2da05a5b JL |
522 | if [[ x$enable_haifa != xno ]]; then |
523 | enable_haifa=yes | |
524 | fi | |
46f18e7b RK |
525 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h" |
526 | xm_file=pa/xm-pahpux.h | |
527 | xmake_file=pa/x-pa-hpux | |
528 | if [[ x$gas = xyes ]] | |
529 | then | |
530 | tm_file="${tm_file} pa/gas.h" | |
531 | fi | |
46f18e7b RK |
532 | install_headers_dir=install-headers-cpio |
533 | use_collect2=yes | |
534 | ;; | |
535 | hppa1.0-*-hpux8.0[[0-2]]*) | |
2da05a5b JL |
536 | if [[ x$enable_haifa != xno ]]; then |
537 | enable_haifa=yes | |
538 | fi | |
46f18e7b RK |
539 | tm_file="${tm_file} pa/pa-hpux.h" |
540 | xm_file=pa/xm-pahpux.h | |
541 | xmake_file=pa/x-pa-hpux | |
542 | if [[ x$gas = xyes ]] | |
543 | then | |
544 | tm_file="${tm_file} pa/pa-gas.h" | |
545 | else | |
546 | tm_file="pa/pa-oldas.h ${tm_file}" | |
547 | fi | |
46f18e7b RK |
548 | install_headers_dir=install-headers-cpio |
549 | use_collect2=yes | |
550 | ;; | |
551 | hppa1.1-*-hpux8.0[[0-2]]*) | |
2da05a5b JL |
552 | if [[ x$enable_haifa != xno ]]; then |
553 | enable_haifa=yes | |
554 | fi | |
46f18e7b RK |
555 | target_cpu_default=1 |
556 | tm_file="${tm_file} pa/pa-hpux.h" | |
557 | xm_file=pa/xm-pahpux.h | |
558 | xmake_file=pa/x-pa-hpux | |
559 | if [[ x$gas = xyes ]] | |
560 | then | |
561 | tm_file="${tm_file} pa/pa-gas.h" | |
562 | else | |
563 | tm_file="pa/pa-oldas.h ${tm_file}" | |
564 | fi | |
46f18e7b RK |
565 | install_headers_dir=install-headers-cpio |
566 | use_collect2=yes | |
567 | ;; | |
568 | hppa1.1-*-hpux8*) | |
2da05a5b JL |
569 | if [[ x$enable_haifa != xno ]]; then |
570 | enable_haifa=yes | |
571 | fi | |
46f18e7b RK |
572 | target_cpu_default=1 |
573 | tm_file="${tm_file} pa/pa-hpux.h" | |
574 | xm_file=pa/xm-pahpux.h | |
575 | xmake_file=pa/x-pa-hpux | |
576 | if [[ x$gas = xyes ]] | |
577 | then | |
578 | tm_file="${tm_file} pa/pa-gas.h" | |
579 | fi | |
46f18e7b RK |
580 | install_headers_dir=install-headers-cpio |
581 | use_collect2=yes | |
582 | ;; | |
583 | hppa1.0-*-hpux8*) | |
2da05a5b JL |
584 | if [[ x$enable_haifa != xno ]]; then |
585 | enable_haifa=yes | |
586 | fi | |
46f18e7b RK |
587 | tm_file="${tm_file} pa/pa-hpux.h" |
588 | xm_file=pa/xm-pahpux.h | |
589 | xmake_file=pa/x-pa-hpux | |
590 | if [[ x$gas = xyes ]] | |
591 | then | |
592 | tm_file="${tm_file} pa/pa-gas.h" | |
593 | fi | |
46f18e7b RK |
594 | install_headers_dir=install-headers-cpio |
595 | use_collect2=yes | |
596 | ;; | |
597 | hppa1.1-*-hpux10*) | |
2da05a5b JL |
598 | if [[ x$enable_haifa != xno ]]; then |
599 | enable_haifa=yes | |
600 | fi | |
46f18e7b RK |
601 | target_cpu_default=1 |
602 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
603 | xm_file=pa/xm-pahpux.h | |
604 | xmake_file=pa/x-pa-hpux | |
605 | if [[ x$gas = xyes ]] | |
606 | then | |
607 | tm_file="${tm_file} pa/pa-gas.h" | |
608 | fi | |
46f18e7b RK |
609 | install_headers_dir=install-headers-cpio |
610 | use_collect2=yes | |
611 | ;; | |
612 | hppa1.0-*-hpux10*) | |
2da05a5b JL |
613 | if [[ x$enable_haifa != xno ]]; then |
614 | enable_haifa=yes | |
615 | fi | |
46f18e7b RK |
616 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" |
617 | xm_file=pa/xm-pahpux.h | |
618 | xmake_file=pa/x-pa-hpux | |
619 | if [[ x$gas = xyes ]] | |
620 | then | |
621 | tm_file="${tm_file} pa/pa-gas.h" | |
622 | fi | |
46f18e7b RK |
623 | install_headers_dir=install-headers-cpio |
624 | use_collect2=yes | |
625 | ;; | |
626 | hppa1.1-*-hpux*) | |
2da05a5b JL |
627 | if [[ x$enable_haifa != xno ]]; then |
628 | enable_haifa=yes | |
629 | fi | |
46f18e7b RK |
630 | target_cpu_default=1 |
631 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
632 | xm_file=pa/xm-pahpux.h | |
633 | xmake_file=pa/x-pa-hpux | |
634 | if [[ x$gas = xyes ]] | |
635 | then | |
636 | tm_file="${tm_file} pa/pa-gas.h" | |
637 | fi | |
46f18e7b RK |
638 | install_headers_dir=install-headers-cpio |
639 | use_collect2=yes | |
640 | ;; | |
641 | hppa1.0-*-hpux*) | |
2da05a5b JL |
642 | if [[ x$enable_haifa != xno ]]; then |
643 | enable_haifa=yes | |
644 | fi | |
46f18e7b RK |
645 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" |
646 | xm_file=pa/xm-pahpux.h | |
647 | xmake_file=pa/x-pa-hpux | |
648 | if [[ x$gas = xyes ]] | |
649 | then | |
650 | tm_file="${tm_file} pa/pa-gas.h" | |
651 | fi | |
46f18e7b RK |
652 | install_headers_dir=install-headers-cpio |
653 | use_collect2=yes | |
654 | ;; | |
655 | hppa1.1-*-hiux*) | |
2da05a5b JL |
656 | if [[ x$enable_haifa != xno ]]; then |
657 | enable_haifa=yes | |
658 | fi | |
46f18e7b RK |
659 | target_cpu_default=1 |
660 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
661 | xm_file=pa/xm-pahpux.h | |
662 | xmake_file=pa/x-pa-hpux | |
663 | if [[ x$gas = xyes ]] | |
664 | then | |
665 | tm_file="${tm_file} pa/pa-gas.h" | |
666 | fi | |
46f18e7b RK |
667 | install_headers_dir=install-headers-cpio |
668 | use_collect2=yes | |
669 | ;; | |
670 | hppa1.0-*-hiux*) | |
2da05a5b JL |
671 | if [[ x$enable_haifa != xno ]]; then |
672 | enable_haifa=yes | |
673 | fi | |
46f18e7b RK |
674 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" |
675 | xm_file=pa/xm-pahpux.h | |
676 | xmake_file=pa/x-pa-hpux | |
677 | if [[ x$gas = xyes ]] | |
678 | then | |
679 | tm_file="${tm_file} pa/pa-gas.h" | |
680 | fi | |
46f18e7b RK |
681 | install_headers_dir=install-headers-cpio |
682 | use_collect2=yes | |
683 | ;; | |
684 | hppa*-*-lites*) | |
2da05a5b JL |
685 | if [[ x$enable_haifa != xno ]]; then |
686 | enable_haifa=yes | |
687 | fi | |
46f18e7b RK |
688 | target_cpu_default=1 |
689 | use_collect2=yes | |
690 | fixincludes=Makefile.in | |
691 | ;; | |
692 | i370-*-mvs*) | |
693 | ;; | |
694 | i[[3456]]86-ibm-aix*) # IBM PS/2 running AIX | |
695 | if [[ x$gas = xyes ]] | |
696 | then | |
697 | tm_file=i386/aix386.h | |
698 | extra_parts="crtbegin.o crtend.o" | |
699 | tmake_file=i386/t-crtstuff | |
700 | else | |
701 | tm_file=i386/aix386ng.h | |
702 | use_collect2=yes | |
703 | fi | |
704 | xm_file=i386/xm-aix.h | |
705 | xmake_file=i386/x-aix | |
46f18e7b RK |
706 | ;; |
707 | i486-ncr-sysv4*) # NCR 3000 - i486 running system V.4 | |
708 | xm_file=i386/xm-sysv4.h | |
709 | xmake_file=i386/x-ncr3000 | |
710 | if [[ x$stabs = xyes -a x$gas = xyes ]] | |
711 | then | |
712 | tm_file=i386/sysv4gdb.h | |
713 | else | |
714 | tm_file=i386/sysv4.h | |
715 | fi | |
716 | extra_parts="crtbegin.o crtend.o" | |
717 | tmake_file=i386/t-crtpic | |
718 | ;; | |
719 | i[[3456]]86-next-*) | |
720 | tm_file=i386/next.h | |
721 | xm_file=i386/xm-next.h | |
722 | tmake_file=i386/t-next | |
723 | xmake_file=i386/x-next | |
724 | extra_objs=nextstep.o | |
434332b5 | 725 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
726 | thread_file='mach' |
727 | fi | |
46f18e7b RK |
728 | ;; |
729 | i[[3456]]86-sequent-bsd*) # 80386 from Sequent | |
730 | use_collect2=yes | |
731 | if [[ x$gas = xyes ]] | |
732 | then | |
733 | tm_file=i386/seq-gas.h | |
734 | else | |
735 | tm_file=i386/sequent.h | |
736 | fi | |
737 | ;; | |
738 | i[[3456]]86-sequent-ptx1*) | |
739 | xm_file=i386/xm-sysv3.h | |
740 | xmake_file=i386/x-sysv3 | |
741 | tm_file=i386/seq-sysv3.h | |
742 | tmake_file=i386/t-crtstuff | |
743 | fixincludes=fixinc.ptx | |
744 | extra_parts="crtbegin.o crtend.o" | |
745 | install_headers_dir=install-headers-cpio | |
46f18e7b RK |
746 | ;; |
747 | i[[3456]]86-sequent-ptx2* | i[[3456]]86-sequent-sysv3*) | |
748 | xm_file=i386/xm-sysv3.h | |
749 | xmake_file=i386/x-sysv3 | |
750 | tm_file=i386/seq2-sysv3.h | |
751 | tmake_file=i386/t-crtstuff | |
752 | extra_parts="crtbegin.o crtend.o" | |
753 | fixincludes=fixinc.ptx | |
754 | install_headers_dir=install-headers-cpio | |
46f18e7b RK |
755 | ;; |
756 | i[[3456]]86-sequent-ptx4* | i[[3456]]86-sequent-sysv4*) | |
757 | xm_file=i386/xm-sysv4.h | |
758 | xmake_file=x-svr4 | |
759 | tm_file=i386/ptx4-i.h | |
760 | tmake_file=t-svr4 | |
761 | extra_parts="crtbegin.o crtend.o" | |
762 | fixincludes=fixinc.ptx | |
763 | install_headers_dir=install-headers-cpio | |
46f18e7b RK |
764 | ;; |
765 | i386-sun-sunos*) # Sun i386 roadrunner | |
766 | xm_file=i386/xm-sun.h | |
767 | tm_file=i386/sun.h | |
768 | use_collect2=yes | |
769 | ;; | |
770 | i[[3456]]86-*-aout*) | |
771 | tm_file=i386/i386-aout.h | |
772 | tmake_file=i386/t-i386bare | |
773 | ;; | |
774 | i[[3456]]86-*-bsdi* | i[[345]]86-*-bsd386*) | |
775 | tm_file=i386/bsd386.h | |
776 | xm_file=i386/xm-bsd386.h | |
777 | # tmake_file=t-libc-ok | |
778 | ;; | |
779 | i[[3456]]86-*-bsd*) | |
780 | tm_file=i386/386bsd.h | |
781 | xm_file=i386/xm-bsd386.h | |
782 | # tmake_file=t-libc-ok | |
783 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
784 | # use_collect2=yes | |
785 | ;; | |
786 | i[[3456]]86-*-freebsdelf*) | |
787 | tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h" | |
788 | xm_file=i386/xm-freebsd.h | |
789 | # On FreeBSD, the headers are already ok. | |
790 | fixincludes=Makefile.in | |
791 | tmake_file=i386/t-freebsd | |
792 | gas=yes | |
793 | gnu_ld=yes | |
794 | stabs=yes | |
795 | ;; | |
796 | i[[3456]]86-*-freebsd*) | |
797 | tm_file=i386/freebsd.h | |
798 | xm_file=i386/xm-freebsd.h | |
799 | # On FreeBSD, the headers are already ok. | |
800 | fixincludes=Makefile.in | |
801 | tmake_file=i386/t-freebsd | |
802 | ;; | |
803 | i[[3456]]86-*-netbsd*) | |
804 | tm_file=i386/netbsd.h | |
805 | xm_file=i386/xm-netbsd.h | |
806 | # On NetBSD, the headers are already okay. | |
807 | fixincludes=Makefile.in | |
e47f44f4 | 808 | tmake_file=t-netbsd |
46f18e7b RK |
809 | ;; |
810 | i[[3456]]86-*-coff*) | |
811 | tm_file=i386/i386-coff.h | |
812 | tmake_file=i386/t-i386bare | |
813 | ;; | |
814 | i[[3456]]86-*-isc*) # 80386 running ISC system | |
815 | xm_file=i386/xm-isc.h | |
816 | case $machine in | |
817 | i[[345]]86-*-isc[[34]]*) | |
818 | xmake_file=i386/x-isc3 | |
819 | ;; | |
820 | *) | |
821 | xmake_file=i386/x-isc | |
822 | ;; | |
823 | esac | |
824 | if [[ x$gas = xyes -a x$stabs = xyes ]] | |
825 | then | |
826 | tm_file=i386/iscdbx.h | |
827 | tmake_file=i386/t-svr3dbx | |
828 | extra_parts="svr3.ifile svr3z.ifile" | |
829 | else | |
830 | tm_file=i386/isccoff.h | |
831 | tmake_file=i386/t-crtstuff | |
832 | extra_parts="crtbegin.o crtend.o" | |
833 | fi | |
834 | install_headers_dir=install-headers-cpio | |
46f18e7b | 835 | ;; |
844dadc7 | 836 | i[[3456]]86-*-linux-gnuoldld*) # Intel 80386's running Linux |
46f18e7b RK |
837 | xm_file=i386/xm-linux.h # with a.out format using pre BFD linkers |
838 | xmake_file=x-linux-aout | |
839 | tmake_file="t-linux-aout i386/t-crtstuff" | |
840 | tm_file=i386/linux-oldld.h | |
841 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
46f18e7b | 842 | gnu_ld=yes |
46f18e7b | 843 | ;; |
844dadc7 | 844 | i[[3456]]86-*-linux-gnuaout*) # Intel 80386's running Linux |
46f18e7b RK |
845 | xm_file=i386/xm-linux.h # with a.out format |
846 | xmake_file=x-linux-aout | |
847 | tmake_file="t-linux-aout i386/t-crtstuff" | |
848 | tm_file=i386/linux-aout.h | |
849 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
46f18e7b | 850 | gnu_ld=yes |
46f18e7b | 851 | ;; |
844dadc7 | 852 | i[[3456]]86-*-linux-gnulibc1) |
78b9f8df RK |
853 | xm_file=i386/xm-linux.h # Intel 80386's running Linux |
854 | xmake_file=x-linux # with ELF format using the | |
855 | tm_file=i386/linux.h # Linux C library 5 | |
856 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" | |
857 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
858 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
78b9f8df | 859 | gnu_ld=yes |
434332b5 | 860 | if [[ x$enable_threads = xyes ]]; then |
78b9f8df RK |
861 | thread_file='single' |
862 | fi | |
863 | ;; | |
844dadc7 | 864 | i[[3456]]86-*-linux-gnu*) # Intel 80386's running Linux |
78b9f8df RK |
865 | xm_file=i386/xm-linux.h # with ELF format using glibc 2 |
866 | xmake_file=x-linux # aka Linux C library 6 | |
46f18e7b RK |
867 | tm_file=i386/linux.h |
868 | tmake_file="t-linux i386/t-crtstuff" | |
869 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
870 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
46f18e7b | 871 | gnu_ld=yes |
434332b5 | 872 | if [[ x$enable_threads = xyes ]]; then |
78b9f8df RK |
873 | thread_file='posix' |
874 | fi | |
46f18e7b RK |
875 | ;; |
876 | i[[3456]]86-*-gnu*) | |
877 | ;; | |
878 | i[[3456]]86-go32-msdos | i[[3456]]86-*-go32*) | |
879 | xm_file=i386/xm-go32.h | |
880 | tm_file=i386/go32.h | |
881 | tmake_file=i386/t-go32 | |
882 | ;; | |
883 | i[[3456]]86-moss-msdos* | i[[3456]]86-*-moss*) | |
884 | tm_file=i386/moss.h | |
885 | tmake_file=t-libc-ok | |
886 | fixincludes=Makefile.in | |
887 | gnu_ld=yes | |
888 | gas=yes | |
889 | ;; | |
890 | i[[3456]]86-*-lynxos*) | |
891 | if [[ x$gas = xyes ]] | |
892 | then | |
893 | tm_file=i386/lynx.h | |
894 | else | |
895 | tm_file=i386/lynx-ng.h | |
896 | fi | |
897 | xm_file=i386/xm-lynx.h | |
898 | tmake_file=i386/t-i386bare | |
899 | xmake_file=x-lynx | |
900 | ;; | |
901 | i[[3456]]86-*-mach*) | |
902 | tm_file=i386/mach.h | |
903 | # tmake_file=t-libc-ok | |
904 | use_collect2=yes | |
905 | ;; | |
906 | i[[3456]]86-*-osfrose*) # 386 using OSF/rose | |
907 | if [[ x$elf = xyes ]] | |
908 | then | |
909 | tm_file=i386/osfelf.h | |
910 | use_collect2= | |
911 | else | |
912 | tm_file=i386/osfrose.h | |
913 | use_collect2=yes | |
914 | fi | |
915 | xm_file=i386/xm-osf.h | |
916 | xmake_file=i386/x-osfrose | |
917 | tmake_file=i386/t-osf | |
918 | extra_objs=halfpic.o | |
919 | ;; | |
920 | i[[345]]86-go32-rtems*) | |
921 | cpu_type=i386 | |
922 | xm_file=i386/xm-go32.h | |
923 | tm_file=i386/go32-rtems.h | |
924 | tmake_file="i386/t-go32 t-rtems" | |
925 | ;; | |
926 | i[[345]]86-*-rtems*) | |
927 | cpu_type=i386 | |
928 | tm_file=i386/rtems.h | |
929 | tmake_file="i386/t-i386bare t-rtems" | |
930 | ;; | |
931 | i[[3456]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 | |
932 | xm_file=i386/xm-sco5.h | |
933 | xmake_file=i386/x-sco5 | |
934 | fixincludes=fixinc.sco | |
46f18e7b RK |
935 | tm_file=i386/sco5.h |
936 | tmake_file=i386/t-sco5 | |
937 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
938 | ;; | |
939 | i[[3456]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system | |
940 | xm_file=i386/xm-sco.h | |
941 | xmake_file=i386/x-sco4 | |
942 | fixincludes=fixinc.sco | |
46f18e7b RK |
943 | install_headers_dir=install-headers-cpio |
944 | if [[ x$stabs = xyes ]] | |
945 | then | |
946 | tm_file=i386/sco4dbx.h | |
947 | tmake_file=i386/t-svr3dbx | |
948 | extra_parts="svr3.ifile svr3z.rfile" | |
949 | else | |
950 | tm_file=i386/sco4.h | |
951 | tmake_file=i386/t-crtstuff | |
952 | extra_parts="crtbegin.o crtend.o" | |
953 | fi | |
954 | truncate_target=yes | |
955 | ;; | |
956 | i[[3456]]86-*-sco*) # 80386 running SCO system | |
957 | xm_file=i386/xm-sco.h | |
958 | xmake_file=i386/x-sco | |
46f18e7b RK |
959 | install_headers_dir=install-headers-cpio |
960 | if [[ x$stabs = xyes ]] | |
961 | then | |
962 | tm_file=i386/scodbx.h | |
963 | tmake_file=i386/t-svr3dbx | |
964 | extra_parts="svr3.ifile svr3z.rfile" | |
965 | else | |
966 | tm_file=i386/sco.h | |
967 | extra_parts="crtbegin.o crtend.o" | |
968 | tmake_file=i386/t-crtstuff | |
969 | fi | |
970 | truncate_target=yes | |
971 | ;; | |
972 | i[[3456]]86-*-solaris2*) | |
973 | xm_file=i386/xm-sysv4.h | |
974 | if [[ x$stabs = xyes ]] | |
975 | then | |
dec3e070 | 976 | tm_file=i386/sol2dbg.h |
46f18e7b RK |
977 | else |
978 | tm_file=i386/sol2.h | |
979 | fi | |
980 | tmake_file=i386/t-sol2 | |
981 | extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o" | |
982 | xmake_file=x-svr4 | |
983 | fixincludes=fixinc.svr4 | |
434332b5 | 984 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
985 | thread_file='solaris' |
986 | fi | |
46f18e7b RK |
987 | ;; |
988 | i[[3456]]86-*-sysv4*) # Intel 80386's running system V.4 | |
989 | xm_file=i386/xm-sysv4.h | |
990 | tm_file=i386/sysv4.h | |
991 | if [[ x$stabs = xyes ]] | |
992 | then | |
993 | tm_file="${tm_file} dbx.h" | |
994 | fi | |
995 | tmake_file=i386/t-crtpic | |
996 | xmake_file=x-svr4 | |
997 | extra_parts="crtbegin.o crtend.o" | |
998 | ;; | |
999 | i[[3456]]86-*-sysv*) # Intel 80386's running system V | |
1000 | xm_file=i386/xm-sysv3.h | |
1001 | xmake_file=i386/x-sysv3 | |
1002 | if [[ x$gas = xyes ]] | |
1003 | then | |
1004 | if [[ x$stabs = xyes ]] | |
1005 | then | |
1006 | tm_file=i386/svr3dbx.h | |
1007 | tmake_file=i386/t-svr3dbx | |
1008 | extra_parts="svr3.ifile svr3z.rfile" | |
1009 | else | |
1010 | tm_file=i386/svr3gas.h | |
1011 | extra_parts="crtbegin.o crtend.o" | |
1012 | tmake_file=i386/t-crtstuff | |
1013 | fi | |
1014 | else | |
1015 | tm_file=i386/sysv3.h | |
1016 | extra_parts="crtbegin.o crtend.o" | |
1017 | tmake_file=i386/t-crtstuff | |
1018 | fi | |
1019 | ;; | |
1020 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
1021 | xm_file=i386/xm-vsta.h | |
1022 | tm_file=i386/vsta.h | |
1023 | tmake_file=i386/t-vsta | |
1024 | xmake_file=i386/x-vsta | |
1025 | ;; | |
1026 | i[[3456]]86-*-pe | i[[3456]]86-*-cygwin32) | |
1027 | xm_file="${xm_file} i386/xm-cygwin32.h" | |
1028 | tmake_file=i386/t-cygwin32 | |
1029 | tm_file=i386/cygwin32.h | |
1030 | xmake_file=i386/x-cygwin32 | |
1031 | extra_objs=winnt.o | |
1032 | fixincludes=Makefile.in | |
434332b5 | 1033 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1034 | thread_file='win32' |
1035 | fi | |
46f18e7b RK |
1036 | exeext=.exe |
1037 | ;; | |
5dfe8508 RK |
1038 | i[[3456]]86-*-mingw32) |
1039 | tm_file=i386/mingw32.h | |
1040 | xm_file="${xm_file} i386/xm-mingw32.h" | |
1041 | tmake_file=i386/t-cygwin32 | |
1042 | extra_objs=winnt.o | |
1043 | xmake_file=i386/x-cygwin32 | |
1044 | fixincludes=Makefile.in | |
434332b5 | 1045 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1046 | thread_file='win32' |
1047 | fi | |
5dfe8508 RK |
1048 | exeext=.exe |
1049 | ;; | |
46f18e7b RK |
1050 | i[[3456]]86-*-winnt3*) |
1051 | tm_file=i386/win-nt.h | |
1052 | out_file=i386/i386.c | |
1053 | xm_file=i386/xm-winnt.h | |
1054 | xmake_file=winnt/x-winnt | |
1055 | tmake_file=i386/t-winnt | |
1056 | extra_host_objs="winnt.o oldnames.o" | |
1057 | extra_gcc_objs="spawnv.o oldnames.o" | |
1058 | fixincludes=fixinc.winnt | |
1059 | if [[ x$gnu_ld != xyes ]] | |
1060 | then | |
1061 | extra_programs=ld.exe | |
1062 | fi | |
434332b5 | 1063 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1064 | thread_file='win32' |
1065 | fi | |
46f18e7b RK |
1066 | ;; |
1067 | i[[3456]]86-dg-dgux) | |
1068 | xm_file=i386/xm-dgux.h | |
1069 | out_file=i386/dgux.c | |
1070 | tm_file=i386/dgux.h | |
1071 | tmake_file=i386/t-dgux | |
1072 | xmake_file=i386/x-dgux | |
1073 | fixincludes=fixinc.dgux | |
1074 | install_headers_dir=install-headers-cpio | |
1075 | ;; | |
1076 | i860-alliant-*) # Alliant FX/2800 | |
1077 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
1078 | xm_file="${xm_file} i860/xm-fx2800.h" | |
1079 | xmake_file=i860/x-fx2800 | |
1080 | tmake_file=i860/t-fx2800 | |
1081 | extra_parts="crtbegin.o crtend.o" | |
1082 | ;; | |
1083 | i860-*-bsd*) | |
1084 | tm_file="${tm_file} i860/bsd.h" | |
1085 | if [[ x$gas = xyes ]] | |
1086 | then | |
1087 | tm_file="${tm_file} i860/bsd-gas.h" | |
1088 | fi | |
1089 | use_collect2=yes | |
1090 | ;; | |
1091 | i860-*-mach*) | |
1092 | tm_file="${tm_file} i860/mach.h" | |
1093 | tmake_file=t-libc-ok | |
1094 | ;; | |
1095 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
1096 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
1097 | xm_file="${xm_file} xm-svr3.h" | |
1098 | tmake_file=t-osf | |
46f18e7b RK |
1099 | ;; |
1100 | i860-*-sysv3*) | |
1101 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
1102 | xm_file="${tm_file} xm-svr3.h" | |
1103 | xmake_file=i860/x-sysv3 | |
1104 | extra_parts="crtbegin.o crtend.o" | |
1105 | ;; | |
1106 | i860-*-sysv4*) | |
1107 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
1108 | xm_file="${xm_file} xm-svr3.h" | |
1109 | xmake_file=i860/x-sysv4 | |
1110 | tmake_file=t-svr4 | |
1111 | extra_parts="crtbegin.o crtend.o" | |
1112 | ;; | |
1113 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
1114 | tm_file="${tm_file} i960/vx960.h" | |
1115 | tmake_file=i960/t-vxworks960 | |
1116 | use_collect2=yes | |
1117 | ;; | |
1118 | i960-wrs-vxworks5*) | |
1119 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" | |
1120 | tmake_file=i960/t-vxworks960 | |
1121 | use_collect2=yes | |
1122 | ;; | |
1123 | i960-wrs-vxworks*) | |
1124 | tm_file="${tm_file} i960/vx960.h" | |
1125 | tmake_file=i960/t-vxworks960 | |
1126 | use_collect2=yes | |
1127 | ;; | |
1128 | i960-*-coff*) | |
1129 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
1130 | tmake_file=i960/t-960bare | |
1131 | use_collect2=yes | |
1132 | ;; | |
1133 | i960-*-rtems) | |
1134 | tmake_file="i960/t-960bare t-rtems" | |
1135 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
1136 | use_collect2=yes | |
1137 | ;; | |
1138 | i960-*-*) # Default i960 environment. | |
1139 | use_collect2=yes | |
1140 | ;; | |
dec3e070 JW |
1141 | m32r-*-elf*) |
1142 | extra_parts="crtinit.o crtfini.o" | |
1143 | ;; | |
46f18e7b RK |
1144 | m68000-convergent-sysv*) |
1145 | tm_file=m68k/ctix.h | |
1146 | xm_file=m68k/xm-3b1.h | |
1147 | use_collect2=yes | |
1148 | extra_headers=math-68881.h | |
1149 | ;; | |
1150 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
1151 | tm_file=m68k/hp2bsd.h | |
1152 | xmake_file=m68k/x-hp2bsd | |
1153 | use_collect2=yes | |
1154 | extra_headers=math-68881.h | |
1155 | ;; | |
1156 | m68000-hp-hpux*) # HP 9000 series 300 | |
1157 | xm_file=m68k/xm-hp320.h | |
1158 | if [[ x$gas = xyes ]] | |
1159 | then | |
1160 | xmake_file=m68k/x-hp320g | |
1161 | tm_file=m68k/hp310g.h | |
1162 | else | |
1163 | xmake_file=m68k/x-hp320 | |
1164 | tm_file=m68k/hp310.h | |
1165 | fi | |
46f18e7b RK |
1166 | install_headers_dir=install-headers-cpio |
1167 | use_collect2=yes | |
1168 | extra_headers=math-68881.h | |
1169 | ;; | |
1170 | m68000-sun-sunos3*) | |
1171 | tm_file=m68k/sun2.h | |
1172 | use_collect2=yes | |
1173 | extra_headers=math-68881.h | |
1174 | ;; | |
1175 | m68000-sun-sunos4*) | |
1176 | tm_file=m68k/sun2o4.h | |
1177 | use_collect2=yes | |
1178 | extra_headers=math-68881.h | |
1179 | ;; | |
1180 | m68000-att-sysv*) | |
1181 | xm_file=m68k/xm-3b1.h | |
1182 | if [[ x$gas = xyes ]] | |
1183 | then | |
1184 | tm_file=m68k/3b1g.h | |
1185 | else | |
1186 | tm_file=m68k/3b1.h | |
1187 | fi | |
1188 | use_collect2=yes | |
1189 | extra_headers=math-68881.h | |
1190 | ;; | |
1191 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
1192 | xm_file=m68k/xm-aux.h | |
1193 | tmake_file=m68k/t-aux | |
46f18e7b RK |
1194 | install_headers_dir=install-headers-cpio |
1195 | extra_headers=math-68881.h | |
1196 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
1197 | tm_file= | |
1198 | if [[ "$gnu_ld" = yes ]] | |
1199 | then | |
1200 | tm_file="${tm_file} m68k/auxgld.h" | |
1201 | else | |
1202 | tm_file="${tm_file} m68k/auxld.h" | |
1203 | fi | |
1204 | if [[ "$gas" = yes ]] | |
1205 | then | |
1206 | tm_file="${tm_file} m68k/auxgas.h" | |
1207 | else | |
1208 | tm_file="${tm_file} m68k/auxas.h" | |
1209 | fi | |
1210 | tm_file="${tm_file} m68k/a-ux.h" | |
1211 | ;; | |
1212 | m68k-apollo-*) | |
1213 | tm_file=m68k/apollo68.h | |
1214 | xmake_file=m68k/x-apollo68 | |
1215 | use_collect2=yes | |
1216 | extra_headers=math-68881.h | |
1217 | ;; | |
1218 | m68k-altos-sysv*) # Altos 3068 | |
1219 | if [[ x$gas = xyes ]] | |
1220 | then | |
1221 | tm_file=m68k/altos3068.h | |
1222 | xm_file=m68k/xm-altos3068.h | |
1223 | else | |
1224 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
1225 | exit 1 | |
1226 | fi | |
1227 | extra_headers=math-68881.h | |
1228 | ;; | |
1229 | m68k-bull-sysv*) # Bull DPX/2 | |
1230 | if [[ x$gas = xyes ]] | |
1231 | then | |
1232 | if [[ x$stabs = xyes ]] | |
1233 | then | |
1234 | tm_file=m68k/dpx2cdbx.h | |
1235 | else | |
1236 | tm_file=m68k/dpx2g.h | |
1237 | fi | |
1238 | else | |
1239 | tm_file=m68k/dpx2.h | |
1240 | fi | |
1241 | xm_file=m68k/xm-m68kv.h | |
1242 | xmake_file=m68k/x-dpx2 | |
1243 | use_collect2=yes | |
1244 | extra_headers=math-68881.h | |
1245 | ;; | |
1246 | m68k-atari-sysv4*) # Atari variant of V.4. | |
1247 | tm_file=m68k/atari.h | |
1248 | xm_file=m68k/xm-atari.h | |
1249 | tmake_file=t-svr4 | |
1250 | extra_parts="crtbegin.o crtend.o" | |
1251 | extra_headers=math-68881.h | |
1252 | ;; | |
1253 | m68k-motorola-sysv*) | |
1254 | tm_file=m68k/mot3300.h | |
1255 | xm_file=m68k/xm-mot3300.h | |
1256 | if [[ x$gas = xyes ]] | |
1257 | then | |
1258 | xmake_file=m68k/x-mot3300-gas | |
1259 | if [[ x$gnu_ld = xyes ]] | |
1260 | then | |
1261 | tmake_file=m68k/t-mot3300-gald | |
1262 | else | |
1263 | tmake_file=m68k/t-mot3300-gas | |
1264 | use_collect2=yes | |
1265 | fi | |
1266 | else | |
1267 | xmake_file=m68k/x-mot3300 | |
1268 | if [[ x$gnu_ld = xyes ]] | |
1269 | then | |
1270 | tmake_file=m68k/t-mot3300-gld | |
1271 | else | |
1272 | tmake_file=m68k/t-mot3300 | |
1273 | use_collect2=yes | |
1274 | fi | |
1275 | fi | |
1276 | gdb_needs_out_file_path=yes | |
1277 | extra_parts="crt0.o mcrt0.o" | |
1278 | extra_headers=math-68881.h | |
1279 | ;; | |
1280 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
1281 | tm_file=m68k/tower-as.h | |
1282 | xm_file=m68k/xm-tower.h | |
1283 | xmake_file=m68k/x-tower | |
1284 | extra_parts="crtbegin.o crtend.o" | |
1285 | extra_headers=math-68881.h | |
1286 | ;; | |
1287 | m68k-plexus-sysv*) | |
1288 | tm_file=m68k/plexus.h | |
1289 | xm_file=m68k/xm-plexus.h | |
1290 | use_collect2=yes | |
1291 | extra_headers=math-68881.h | |
1292 | ;; | |
1293 | m68k-tti-*) | |
1294 | tm_file=m68k/pbb.h | |
1295 | xm_file=m68k/xm-m68kv.h | |
1296 | extra_headers=math-68881.h | |
1297 | ;; | |
1298 | m68k-crds-unos*) | |
1299 | xm_file=m68k/xm-crds.h | |
1300 | xmake_file=m68k/x-crds | |
1301 | tm_file=m68k/crds.h | |
46f18e7b RK |
1302 | use_collect2=yes |
1303 | extra_headers=math-68881.h | |
1304 | ;; | |
1305 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
1306 | tm_file=m68k/amix.h | |
1307 | xm_file=m68k/xm-amix.h | |
1308 | xmake_file=m68k/x-amix | |
1309 | tmake_file=t-svr4 | |
1310 | extra_parts="crtbegin.o crtend.o" | |
1311 | extra_headers=math-68881.h | |
1312 | ;; | |
1313 | m68k-ccur-rtu) | |
1314 | tm_file=m68k/ccur-GAS.h | |
1315 | xmake_file=m68k/x-ccur | |
1316 | extra_headers=math-68881.h | |
1317 | use_collect2=yes | |
46f18e7b RK |
1318 | ;; |
1319 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
1320 | tm_file=m68k/hp3bsd44.h | |
1321 | xmake_file=m68k/x-hp3bsd44 | |
1322 | use_collect2=yes | |
1323 | extra_headers=math-68881.h | |
1324 | ;; | |
1325 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
1326 | tm_file=m68k/hp3bsd.h | |
1327 | use_collect2=yes | |
1328 | extra_headers=math-68881.h | |
1329 | ;; | |
1330 | m68k-isi-bsd*) | |
1331 | if [[ x$with_fp = xno ]] | |
1332 | then | |
1333 | tm_file=m68k/isi-nfp.h | |
1334 | else | |
1335 | tm_file=m68k/isi.h | |
1336 | fi | |
1337 | use_collect2=yes | |
1338 | extra_headers=math-68881.h | |
1339 | ;; | |
1340 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
1341 | xm_file=m68k/xm-hp320.h | |
1342 | if [[ x$gas = xyes ]] | |
1343 | then | |
1344 | xmake_file=m68k/x-hp320g | |
1345 | tm_file=m68k/hp320g.h | |
1346 | else | |
1347 | xmake_file=m68k/x-hp320 | |
1348 | tm_file=m68k/hpux7.h | |
1349 | fi | |
46f18e7b RK |
1350 | install_headers_dir=install-headers-cpio |
1351 | use_collect2=yes | |
1352 | extra_headers=math-68881.h | |
1353 | ;; | |
1354 | m68k-hp-hpux*) # HP 9000 series 300 | |
1355 | xm_file=m68k/xm-hp320.h | |
1356 | if [[ x$gas = xyes ]] | |
1357 | then | |
1358 | xmake_file=m68k/x-hp320g | |
1359 | tm_file=m68k/hp320g.h | |
1360 | else | |
1361 | xmake_file=m68k/x-hp320 | |
1362 | tm_file=m68k/hp320.h | |
1363 | fi | |
46f18e7b RK |
1364 | install_headers_dir=install-headers-cpio |
1365 | use_collect2=yes | |
1366 | extra_headers=math-68881.h | |
1367 | ;; | |
1368 | m68k-sun-mach*) | |
1369 | tm_file=m68k/sun3mach.h | |
1370 | use_collect2=yes | |
1371 | extra_headers=math-68881.h | |
1372 | ;; | |
1373 | m68k-sony-newsos3*) | |
1374 | if [[ x$gas = xyes ]] | |
1375 | then | |
1376 | tm_file=m68k/news3gas.h | |
1377 | else | |
1378 | tm_file=m68k/news3.h | |
1379 | fi | |
1380 | use_collect2=yes | |
1381 | extra_headers=math-68881.h | |
1382 | ;; | |
1383 | m68k-sony-bsd* | m68k-sony-newsos*) | |
1384 | if [[ x$gas = xyes ]] | |
1385 | then | |
1386 | tm_file=m68k/newsgas.h | |
1387 | else | |
1388 | tm_file=m68k/news.h | |
1389 | fi | |
1390 | use_collect2=yes | |
1391 | extra_headers=math-68881.h | |
1392 | ;; | |
1393 | m68k-next-nextstep2*) | |
1394 | tm_file=m68k/next21.h | |
1395 | xm_file=m68k/xm-next.h | |
1396 | tmake_file=m68k/t-next | |
1397 | xmake_file=m68k/x-next | |
1398 | extra_objs=nextstep.o | |
1399 | extra_headers=math-68881.h | |
1400 | use_collect2=yes | |
1401 | ;; | |
1402 | m68k-next-nextstep3*) | |
1403 | tm_file=m68k/next.h | |
1404 | xm_file=m68k/xm-next.h | |
1405 | tmake_file=m68k/t-next | |
1406 | xmake_file=m68k/x-next | |
1407 | extra_objs=nextstep.o | |
1408 | extra_headers=math-68881.h | |
434332b5 | 1409 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1410 | thread_file='mach' |
1411 | fi | |
46f18e7b RK |
1412 | ;; |
1413 | m68k-sun-sunos3*) | |
1414 | if [[ x$with_fp = xno ]] | |
1415 | then | |
1416 | tm_file=m68k/sun3n3.h | |
1417 | else | |
1418 | tm_file=m68k/sun3o3.h | |
1419 | fi | |
1420 | use_collect2=yes | |
1421 | extra_headers=math-68881.h | |
1422 | ;; | |
1423 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
1424 | if [[ x$with_fp = xno ]] | |
1425 | then | |
1426 | tm_file=m68k/sun3n.h | |
1427 | else | |
1428 | tm_file=m68k/sun3.h | |
1429 | fi | |
1430 | xm_file=m68k/xm-sun3.h | |
1431 | use_collect2=yes | |
1432 | extra_headers=math-68881.h | |
1433 | ;; | |
1434 | m68k-wrs-vxworks*) | |
1435 | tm_file=m68k/vxm68k.h | |
1436 | tmake_file=m68k/t-vxworks68 | |
1437 | extra_headers=math-68881.h | |
1438 | ;; | |
1439 | m68k-*-aout*) | |
1440 | tmake_file=m68k/t-m68kbare | |
1441 | tm_file="m68k/m68k-aout.h libgloss.h" | |
1442 | extra_headers=math-68881.h | |
1443 | ;; | |
1444 | m68k-*-coff*) | |
1445 | tmake_file=m68k/t-m68kbare | |
1446 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
1447 | extra_headers=math-68881.h | |
1448 | ;; | |
1449 | m68k-*-lynxos*) | |
1450 | if [[ x$gas = xyes ]] | |
1451 | then | |
1452 | tm_file=m68k/lynx.h | |
1453 | else | |
1454 | tm_file=m68k/lynx-ng.h | |
1455 | fi | |
1456 | xm_file=m68k/xm-lynx.h | |
1457 | xmake_file=x-lynx | |
1458 | tmake_file=m68k/t-lynx | |
1459 | extra_headers=math-68881.h | |
1460 | ;; | |
1461 | m68k-*-netbsd*) | |
1462 | tm_file=m68k/netbsd.h | |
1463 | xm_file=m68k/xm-netbsd.h | |
1464 | # On NetBSD, the headers are already okay. | |
1465 | fixincludes=Makefile.in | |
e47f44f4 | 1466 | tmake_file=t-netbsd |
46f18e7b RK |
1467 | ;; |
1468 | m68k-*-sysv3*) # Motorola m68k's running system V.3 | |
1469 | xm_file=m68k/xm-m68kv.h | |
1470 | xmake_file=m68k/x-m68kv | |
1471 | extra_parts="crtbegin.o crtend.o" | |
1472 | extra_headers=math-68881.h | |
1473 | ;; | |
1474 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
1475 | tm_file=m68k/m68kv4.h | |
1476 | xm_file=m68k/xm-m68kv.h | |
1477 | tmake_file=t-svr4 | |
1478 | extra_parts="crtbegin.o crtend.o" | |
1479 | extra_headers=math-68881.h | |
1480 | ;; | |
844dadc7 | 1481 | m68k-*-linux-gnuaout*) # Motorola m68k's running Linux |
46f18e7b RK |
1482 | xm_file=m68k/xm-linux.h # with a.out format |
1483 | xmake_file=x-linux | |
1484 | tm_file=m68k/linux-aout.h | |
1485 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
1486 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
1487 | extra_headers=math-68881.h | |
1488 | gnu_ld=yes | |
46f18e7b | 1489 | ;; |
95fd3981 RK |
1490 | m68k-*-linux-gnulibc1) # Motorola m68k's running Linux |
1491 | xm_file=m68k/xm-linux.h # with ELF format using the | |
1492 | xmake_file=x-linux # Linux C library 5 | |
1493 | tm_file=m68k/linux.h | |
1494 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
1495 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
1496 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
1497 | extra_headers=math-68881.h | |
1498 | gnu_ld=yes | |
1499 | ;; | |
844dadc7 | 1500 | m68k-*-linux-gnu*) # Motorola m68k's running Linux |
95fd3981 RK |
1501 | xm_file=m68k/xm-linux.h # with ELF format using glibc 2 |
1502 | xmake_file=x-linux # aka the Linux C library 6. | |
46f18e7b RK |
1503 | tm_file=m68k/linux.h |
1504 | tmake_file="t-linux m68k/t-linux" | |
1505 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
1506 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
1507 | extra_headers=math-68881.h | |
1508 | gnu_ld=yes | |
d1054723 | 1509 | if [[ x$enable_threads = xyes ]]; then |
95fd3981 RK |
1510 | thread_file='posix' |
1511 | fi | |
46f18e7b RK |
1512 | ;; |
1513 | m68k-*-psos*) | |
1514 | tmake_file=m68k/t-m68kbare | |
1515 | tm_file=m68k/m68k-psos.h | |
1516 | extra_headers=math-68881.h | |
1517 | ;; | |
1518 | m68k-*-rtems*) | |
1519 | tmake_file="m68k/t-m68kbare t-rtems" | |
1520 | tm_file=m68k/rtems.h | |
1521 | extra_headers=math-68881.h | |
1522 | ;; | |
1523 | ||
1524 | m88k-dg-dgux*) | |
1525 | case $machine in | |
1526 | m88k-dg-dguxbcs*) | |
1527 | tm_file=m88k/dguxbcs.h | |
1528 | tmake_file=m88k/t-dguxbcs | |
1529 | ;; | |
1530 | *) | |
1531 | tm_file=m88k/dgux.h | |
1532 | tmake_file=m88k/t-dgux | |
1533 | ;; | |
1534 | esac | |
1535 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
46f18e7b RK |
1536 | xmake_file=m88k/x-dgux |
1537 | if [[ x$gas = xyes ]] | |
1538 | then | |
1539 | tmake_file=m88k/t-dgux-gas | |
1540 | fi | |
1541 | fixincludes=fixinc.dgux | |
1542 | ;; | |
1543 | m88k-dolphin-sysv3*) | |
1544 | tm_file=m88k/dolph.h | |
1545 | extra_parts="crtbegin.o crtend.o" | |
1546 | xm_file=m88k/xm-sysv3.h | |
1547 | xmake_file=m88k/x-dolph | |
1548 | if [[ x$gas = xyes ]] | |
1549 | then | |
1550 | tmake_file=m88k/t-m88k-gas | |
1551 | fi | |
1552 | ;; | |
1553 | m88k-tektronix-sysv3) | |
1554 | tm_file=m88k/tekXD88.h | |
1555 | extra_parts="crtbegin.o crtend.o" | |
1556 | xm_file=m88k/xm-sysv3.h | |
1557 | xmake_file=m88k/x-tekXD88 | |
1558 | if [[ x$gas = xyes ]] | |
1559 | then | |
1560 | tmake_file=m88k/t-m88k-gas | |
1561 | fi | |
1562 | ;; | |
1563 | m88k-*-aout*) | |
1564 | tm_file=m88k/m88k-aout.h | |
1565 | ;; | |
1566 | m88k-*-coff*) | |
1567 | tm_file=m88k/m88k-coff.h | |
1568 | tmake_file=m88k/t-bug | |
1569 | ;; | |
1570 | m88k-*-luna*) | |
1571 | tm_file=m88k/luna.h | |
1572 | extra_parts="crtbegin.o crtend.o" | |
1573 | if [[ x$gas = xyes ]] | |
1574 | then | |
1575 | tmake_file=m88k/t-luna-gas | |
1576 | else | |
1577 | tmake_file=m88k/t-luna | |
1578 | fi | |
1579 | ;; | |
1580 | m88k-*-sysv3*) | |
1581 | tm_file=m88k/sysv3.h | |
1582 | extra_parts="crtbegin.o crtend.o" | |
1583 | xm_file=m88k/xm-sysv3.h | |
1584 | xmake_file=m88k/x-sysv3 | |
1585 | if [[ x$gas = xyes ]] | |
1586 | then | |
1587 | tmake_file=m88k/t-m88k-gas | |
1588 | fi | |
1589 | ;; | |
1590 | m88k-*-sysv4*) | |
1591 | tm_file=m88k/sysv4.h | |
1592 | extra_parts="crtbegin.o crtend.o" | |
1593 | xmake_file=m88k/x-sysv4 | |
1594 | tmake_file=m88k/t-sysv4 | |
1595 | ;; | |
1596 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
1597 | tm_file=mips/iris6.h | |
1598 | xm_file=mips/xm-iris6.h | |
46f18e7b RK |
1599 | fixincludes=fixinc.irix |
1600 | xmake_file=mips/x-iris6 | |
1601 | tmake_file=mips/t-iris6 | |
434332b5 | 1602 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1603 | thread_file='irix' |
1604 | fi | |
46f18e7b RK |
1605 | ;; |
1606 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 | |
1607 | tm_file=mips/cross64.h | |
1608 | xm_file=mips/xm-iris5.h | |
46f18e7b RK |
1609 | fixincludes=Makefile.in |
1610 | xmake_file=mips/x-iris | |
1611 | tmake_file=mips/t-cross64 | |
1612 | # See comment in mips/iris[56].h files. | |
1613 | use_collect2=yes | |
434332b5 | 1614 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1615 | thread_file='irix' |
1616 | fi | |
46f18e7b RK |
1617 | ;; |
1618 | mips-sni-sysv4) | |
1619 | if [[ x$gas = xyes ]] | |
1620 | then | |
1621 | if [[ x$stabs = xyes ]] | |
1622 | then | |
1623 | tm_file=mips/iris5gdb.h | |
1624 | else | |
1625 | tm_file=mips/sni-gas.h | |
1626 | fi | |
1627 | else | |
1628 | tm_file=mips/sni-svr4.h | |
1629 | fi | |
1630 | xm_file=mips/xm-sysv.h | |
1631 | xmake_file=mips/x-sni-svr4 | |
1632 | tmake_file=mips/t-mips-gas | |
1633 | if [[ x$gnu_ld != xyes ]] | |
1634 | then | |
1635 | use_collect2=yes | |
1636 | fi | |
46f18e7b RK |
1637 | ;; |
1638 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
1639 | if [[ x$gas = xyes ]] | |
1640 | then | |
1641 | tm_file=mips/iris5gas.h | |
1642 | if [[ x$stabs = xyes ]] | |
1643 | then | |
1644 | tm_file="${tm_file} dbx.h" | |
1645 | fi | |
1646 | else | |
1647 | tm_file=mips/iris5.h | |
1648 | fi | |
1649 | xm_file=mips/xm-iris5.h | |
46f18e7b RK |
1650 | fixincludes=fixinc.irix |
1651 | xmake_file=mips/x-iris | |
1652 | # mips-tfile doesn't work yet | |
1653 | tmake_file=mips/t-mips-gas | |
1654 | # See comment in mips/iris5.h file. | |
1655 | use_collect2=yes | |
434332b5 | 1656 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1657 | thread_file='irix' |
1658 | fi | |
46f18e7b RK |
1659 | ;; |
1660 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
1661 | tm_file=mips/iris4loser.h | |
1662 | if [[ x$stabs = xyes ]]; then | |
1663 | tm_file="${tm_file} dbx.h" | |
1664 | fi | |
1665 | xm_file=mips/xm-iris4.h | |
46f18e7b RK |
1666 | xmake_file=mips/x-iris |
1667 | if [[ x$gas = xyes ]] | |
1668 | then | |
1669 | tmake_file=mips/t-mips-gas | |
1670 | else | |
1671 | extra_passes="mips-tfile mips-tdump" | |
1672 | fi | |
1673 | if [[ x$gnu_ld != xyes ]] | |
1674 | then | |
1675 | use_collect2=yes | |
1676 | fi | |
434332b5 | 1677 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1678 | thread_file='irix' |
1679 | fi | |
46f18e7b RK |
1680 | ;; |
1681 | mips-sgi-irix4*) # Mostly like a MIPS. | |
1682 | tm_file=mips/iris4.h | |
1683 | if [[ x$stabs = xyes ]]; then | |
1684 | tm_file="${tm_file} dbx.h" | |
1685 | fi | |
1686 | xm_file=mips/xm-iris4.h | |
46f18e7b RK |
1687 | xmake_file=mips/x-iris |
1688 | if [[ x$gas = xyes ]] | |
1689 | then | |
1690 | tmake_file=mips/t-mips-gas | |
1691 | else | |
1692 | extra_passes="mips-tfile mips-tdump" | |
1693 | fi | |
1694 | if [[ x$gnu_ld != xyes ]] | |
1695 | then | |
1696 | use_collect2=yes | |
1697 | fi | |
434332b5 | 1698 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1699 | thread_file='irix' |
1700 | fi | |
46f18e7b RK |
1701 | ;; |
1702 | mips-sgi-*) # Mostly like a MIPS. | |
1703 | tm_file=mips/iris3.h | |
1704 | if [[ x$stabs = xyes ]]; then | |
1705 | tm_file="${tm_file} dbx.h" | |
1706 | fi | |
1707 | xm_file=mips/xm-iris3.h | |
46f18e7b RK |
1708 | xmake_file=mips/x-iris3 |
1709 | if [[ x$gas = xyes ]] | |
1710 | then | |
1711 | tmake_file=mips/t-mips-gas | |
1712 | else | |
1713 | extra_passes="mips-tfile mips-tdump" | |
1714 | fi | |
1715 | if [[ x$gnu_ld != xyes ]] | |
1716 | then | |
1717 | use_collect2=yes | |
1718 | fi | |
1719 | ;; | |
1720 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
1721 | tm_file=mips/osfrose.h | |
1722 | xmake_file=mips/x-osfrose | |
1723 | tmake_file=mips/t-osfrose | |
1724 | extra_objs=halfpic.o | |
1725 | use_collect2=yes | |
1726 | ;; | |
1727 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
1728 | tm_file=mips/dec-osf1.h | |
1729 | if [[ x$stabs = xyes ]]; then | |
1730 | tm_file="${tm_file} dbx.h" | |
1731 | fi | |
1732 | xmake_file=mips/x-dec-osf1 | |
1733 | if [[ x$gas = xyes ]] | |
1734 | then | |
1735 | tmake_file=mips/t-mips-gas | |
1736 | else | |
1737 | tmake_file=mips/t-ultrix | |
1738 | extra_passes="mips-tfile mips-tdump" | |
1739 | fi | |
1740 | if [[ x$gnu_ld != xyes ]] | |
1741 | then | |
1742 | use_collect2=yes | |
1743 | fi | |
1744 | ;; | |
1745 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
1746 | tm_file=mips/dec-bsd.h | |
1747 | fixincludes= | |
1748 | if [[ x$gas = xyes ]] | |
1749 | then | |
1750 | tmake_file=mips/t-mips-gas | |
1751 | else | |
1752 | tmake_file=mips/t-ultrix | |
1753 | extra_passes="mips-tfile mips-tdump" | |
1754 | fi | |
1755 | if [[ x$gnu_ld != xyes ]] | |
1756 | then | |
1757 | use_collect2=yes | |
1758 | fi | |
1759 | ;; | |
1760 | mips-dec-netbsd*) # Decstation running NetBSD | |
1761 | tm_file=mips/netbsd.h | |
1762 | xm_file=mips/xm-netbsd.h | |
e47f44f4 | 1763 | # On NetBSD, the headers are already okay. |
46f18e7b | 1764 | fixincludes=Makefile.in |
e47f44f4 | 1765 | tmake_file=t-netbsd |
a588a9a1 RK |
1766 | if [[ x$prefix = xNONE ]]; then |
1767 | prefix=$native_prefix | |
1768 | fi | |
46f18e7b RK |
1769 | prefix=$native_prefix |
1770 | ;; | |
1771 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. | |
1772 | tm_file=mips/news4.h | |
1773 | if [[ x$stabs = xyes ]]; then | |
1774 | tm_file="${tm_file} dbx.h" | |
1775 | fi | |
1776 | if [[ x$gas = xyes ]] | |
1777 | then | |
1778 | tmake_file=mips/t-mips-gas | |
1779 | else | |
1780 | extra_passes="mips-tfile mips-tdump" | |
1781 | fi | |
1782 | if [[ x$gnu_ld != xyes ]] | |
1783 | then | |
1784 | use_collect2=yes | |
1785 | fi | |
1786 | xmake_file=mips/x-sony | |
1787 | ;; | |
1788 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
1789 | # That is based on svr4. | |
1790 | # t-svr4 is not right because this system doesn't use ELF. | |
1791 | tm_file=mips/news5.h | |
1792 | if [[ x$stabs = xyes ]]; then | |
1793 | tm_file="${tm_file} dbx.h" | |
1794 | fi | |
1795 | xm_file=mips/xm-news.h | |
1796 | if [[ x$gas = xyes ]] | |
1797 | then | |
1798 | tmake_file=mips/t-mips-gas | |
1799 | else | |
1800 | extra_passes="mips-tfile mips-tdump" | |
1801 | fi | |
1802 | if [[ x$gnu_ld != xyes ]] | |
1803 | then | |
1804 | use_collect2=yes | |
1805 | fi | |
1806 | ;; | |
1807 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
1808 | tm_file=mips/svr4-t.h | |
1809 | if [[ x$stabs = xyes ]]; then | |
1810 | tm_file="${tm_file} dbx.h" | |
1811 | fi | |
1812 | xm_file=mips/xm-sysv4.h | |
1813 | xmake_file=mips/x-sysv | |
1814 | if [[ x$gas = xyes ]] | |
1815 | then | |
1816 | tmake_file=mips/t-mips-gas | |
1817 | extra_parts="crtbegin.o crtend.o" | |
1818 | else | |
1819 | tmake_file=mips/t-mips | |
1820 | extra_passes="mips-tfile mips-tdump" | |
1821 | fi | |
1822 | if [[ x$gnu_ld != xyes ]] | |
1823 | then | |
1824 | use_collect2=yes | |
1825 | fi | |
46f18e7b RK |
1826 | ;; |
1827 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
1828 | tm_file=mips/ultrix.h | |
1829 | if [[ x$stabs = xyes ]]; then | |
1830 | tm_file="${tm_file} dbx.h" | |
1831 | fi | |
1832 | xmake_file=mips/x-ultrix | |
1833 | if [[ x$gas = xyes ]] | |
1834 | then | |
1835 | tmake_file=mips/t-mips-gas | |
1836 | else | |
1837 | tmake_file=mips/t-ultrix | |
1838 | extra_passes="mips-tfile mips-tdump" | |
1839 | fi | |
1840 | if [[ x$gnu_ld != xyes ]] | |
1841 | then | |
1842 | use_collect2=yes | |
1843 | fi | |
1844 | ;; | |
1845 | mips-*-riscos[[56789]]bsd*) | |
1846 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
1847 | if [[ x$stabs = xyes ]]; then | |
1848 | tm_file="${tm_file} dbx.h" | |
1849 | fi | |
1850 | if [[ x$gas = xyes ]] | |
1851 | then | |
1852 | tmake_file=mips/t-bsd-gas | |
1853 | else | |
1854 | tmake_file=mips/t-bsd | |
1855 | extra_passes="mips-tfile mips-tdump" | |
1856 | fi | |
1857 | if [[ x$gnu_ld != xyes ]] | |
1858 | then | |
1859 | use_collect2=yes | |
1860 | fi | |
46f18e7b RK |
1861 | ;; |
1862 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*) | |
1863 | tm_file=mips/bsd-4.h # MIPS BSD 4.3, RISC-OS 4.0 | |
1864 | if [[ x$stabs = xyes ]]; then | |
1865 | tm_file="${tm_file} dbx.h" | |
1866 | fi | |
1867 | if [[ x$gas = xyes ]] | |
1868 | then | |
1869 | tmake_file=mips/t-bsd-gas | |
1870 | else | |
1871 | tmake_file=mips/t-bsd | |
1872 | extra_passes="mips-tfile mips-tdump" | |
1873 | fi | |
1874 | if [[ x$gnu_ld != xyes ]] | |
1875 | then | |
1876 | use_collect2=yes | |
1877 | fi | |
46f18e7b RK |
1878 | ;; |
1879 | mips-*-riscos[[56789]]sysv4*) | |
1880 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
1881 | if [[ x$stabs = xyes ]]; then | |
1882 | tm_file="${tm_file} dbx.h" | |
1883 | fi | |
1884 | xm_file=mips/xm-sysv4.h | |
1885 | xmake_file=mips/x-sysv | |
1886 | if [[ x$gas = xyes ]] | |
1887 | then | |
1888 | tmake_file=mips/t-svr4-gas | |
1889 | else | |
1890 | tmake_file=mips/t-svr4 | |
1891 | extra_passes="mips-tfile mips-tdump" | |
1892 | fi | |
1893 | if [[ x$gnu_ld != xyes ]] | |
1894 | then | |
1895 | use_collect2=yes | |
1896 | fi | |
46f18e7b RK |
1897 | ;; |
1898 | mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*) | |
1899 | tm_file=mips/svr4-4.h # MIPS System V.4. RISC-OS 4.0 | |
1900 | if [[ x$stabs = xyes ]]; then | |
1901 | tm_file="${tm_file} dbx.h" | |
1902 | fi | |
1903 | xm_file=mips/xm-sysv.h | |
1904 | xmake_file=mips/x-sysv | |
1905 | if [[ x$gas = xyes ]] | |
1906 | then | |
1907 | tmake_file=mips/t-svr4-gas | |
1908 | else | |
1909 | tmake_file=mips/t-svr4 | |
1910 | extra_passes="mips-tfile mips-tdump" | |
1911 | fi | |
1912 | if [[ x$gnu_ld != xyes ]] | |
1913 | then | |
1914 | use_collect2=yes | |
1915 | fi | |
46f18e7b RK |
1916 | ;; |
1917 | mips-*-riscos[[56789]]sysv*) | |
1918 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
1919 | if [[ x$stabs = xyes ]]; then | |
1920 | tm_file="${tm_file} dbx.h" | |
1921 | fi | |
1922 | xm_file=mips/xm-sysv.h | |
1923 | xmake_file=mips/x-sysv | |
1924 | if [[ x$gas = xyes ]] | |
1925 | then | |
1926 | tmake_file=mips/t-svr3-gas | |
1927 | else | |
1928 | tmake_file=mips/t-svr3 | |
1929 | extra_passes="mips-tfile mips-tdump" | |
1930 | fi | |
1931 | if [[ x$gnu_ld != xyes ]] | |
1932 | then | |
1933 | use_collect2=yes | |
1934 | fi | |
46f18e7b RK |
1935 | ;; |
1936 | mips-*-sysv* | mips-*-riscos*sysv*) | |
1937 | tm_file=mips/svr3-4.h # MIPS System V.3, RISC-OS 4.0 | |
1938 | if [[ x$stabs = xyes ]]; then | |
1939 | tm_file="${tm_file} dbx.h" | |
1940 | fi | |
1941 | xm_file=mips/xm-sysv.h | |
1942 | xmake_file=mips/x-sysv | |
1943 | if [[ x$gas = xyes ]] | |
1944 | then | |
1945 | tmake_file=mips/t-svr3-gas | |
1946 | else | |
1947 | tmake_file=mips/t-svr3 | |
1948 | extra_passes="mips-tfile mips-tdump" | |
1949 | fi | |
1950 | if [[ x$gnu_ld != xyes ]] | |
1951 | then | |
1952 | use_collect2=yes | |
1953 | fi | |
46f18e7b RK |
1954 | ;; |
1955 | mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0. | |
1956 | tm_file=mips/mips-5.h | |
1957 | if [[ x$stabs = xyes ]]; then | |
1958 | tm_file="${tm_file} dbx.h" | |
1959 | fi | |
1960 | if [[ x$gas = xyes ]] | |
1961 | then | |
1962 | tmake_file=mips/t-mips-gas | |
1963 | else | |
1964 | extra_passes="mips-tfile mips-tdump" | |
1965 | fi | |
1966 | if [[ x$gnu_ld != xyes ]] | |
1967 | then | |
1968 | use_collect2=yes | |
1969 | fi | |
46f18e7b RK |
1970 | ;; |
1971 | mips-*-gnu*) | |
1972 | ;; | |
1973 | mipsel-*-ecoff*) | |
1974 | tm_file=mips/ecoffl.h | |
1975 | if [[ x$stabs = xyes ]]; then | |
1976 | tm_file="${tm_file} dbx.h" | |
1977 | fi | |
1978 | tmake_file=mips/t-ecoff | |
1979 | ;; | |
1980 | mips-*-ecoff*) | |
1981 | tm_file=mips/ecoff.h | |
1982 | if [[ x$stabs = xyes ]]; then | |
1983 | tm_file="${tm_file} dbx.h" | |
1984 | fi | |
1985 | tmake_file=mips/t-ecoff | |
46f18e7b RK |
1986 | ;; |
1987 | mipsel-*-elf*) | |
1988 | tm_file="mips/elfl.h libgloss.h" | |
1989 | tmake_file=mips/t-ecoff | |
1990 | ;; | |
1991 | mips-*-elf*) | |
1992 | tm_file="mips/elf.h libgloss.h" | |
1993 | tmake_file=mips/t-ecoff | |
1994 | ;; | |
1995 | mips64el-*-elf*) | |
1996 | tm_file="mips/elfl64.h libgloss.h" | |
1997 | tmake_file=mips/t-ecoff | |
1998 | ;; | |
1999 | mips64orionel-*-elf*) | |
2000 | tm_file="mips/elflorion.h libgloss.h" | |
2001 | tmake_file=mips/t-ecoff | |
2002 | ;; | |
2003 | mips64-*-elf*) | |
2004 | tm_file="mips/elf64.h libgloss.h" | |
2005 | tmake_file=mips/t-ecoff | |
2006 | ;; | |
2007 | mips64orion-*-elf*) | |
2008 | tm_file="mips/elforion.h libgloss.h" | |
2009 | tmake_file=mips/t-ecoff | |
2010 | ;; | |
2011 | mips64orion-*-rtems*) | |
2012 | tm_file=mips/rtems64.h | |
2013 | tmake_file="mips/t-ecoff t-rtems" | |
2014 | ;; | |
2015 | mips-*-*) # Default MIPS RISC-OS 4.0. | |
2016 | if [[ x$stabs = xyes ]]; then | |
2017 | tm_file="${tm_file} dbx.h" | |
2018 | fi | |
2019 | if [[ x$gas = xyes ]] | |
2020 | then | |
2021 | tmake_file=mips/t-mips-gas | |
2022 | else | |
2023 | extra_passes="mips-tfile mips-tdump" | |
2024 | fi | |
2025 | if [[ x$gnu_ld != xyes ]] | |
2026 | then | |
2027 | use_collect2=yes | |
2028 | fi | |
2029 | ;; | |
cef64ec4 RK |
2030 | mn10200-*-*) |
2031 | cpu_type=mn10200 | |
2032 | tm_file="mn10200/mn10200.h" | |
2033 | if [[ x$stabs = xyes ]] | |
2034 | then | |
2035 | tm_file="${tm_file} dbx.h" | |
2036 | fi | |
2037 | use_collect2=no | |
2038 | ;; | |
46f18e7b RK |
2039 | mn10300-*-*) |
2040 | cpu_type=mn10300 | |
2041 | tm_file="mn10300/mn10300.h" | |
2042 | if [[ x$stabs = xyes ]] | |
2043 | then | |
2044 | tm_file="${tm_file} dbx.h" | |
2045 | fi | |
2046 | use_collect2=no | |
2047 | ;; | |
2048 | ns32k-encore-bsd*) | |
2049 | tm_file=ns32k/encore.h | |
2050 | use_collect2=yes | |
2051 | ;; | |
2052 | ns32k-sequent-bsd*) | |
2053 | tm_file=ns32k/sequent.h | |
2054 | use_collect2=yes | |
2055 | ;; | |
2056 | ns32k-tek6100-bsd*) | |
2057 | tm_file=ns32k/tek6100.h | |
46f18e7b RK |
2058 | use_collect2=yes |
2059 | ;; | |
2060 | ns32k-tek6200-bsd*) | |
2061 | tm_file=ns32k/tek6200.h | |
46f18e7b RK |
2062 | use_collect2=yes |
2063 | ;; | |
2064 | # This has not been updated to GCC 2. | |
2065 | # ns32k-ns-genix*) | |
2066 | # xm_file=ns32k/xm-genix.h | |
2067 | # xmake_file=ns32k/x-genix | |
2068 | # tm_file=ns32k/genix.h | |
46f18e7b RK |
2069 | # use_collect2=yes |
2070 | # ;; | |
2071 | ns32k-merlin-*) | |
2072 | tm_file=ns32k/merlin.h | |
2073 | use_collect2=yes | |
2074 | ;; | |
2075 | ns32k-pc532-mach*) | |
2076 | tm_file=ns32k/pc532-mach.h | |
2077 | use_collect2=yes | |
2078 | ;; | |
2079 | ns32k-pc532-minix*) | |
2080 | tm_file=ns32k/pc532-min.h | |
2081 | xm_file=ns32k/xm-pc532-min.h | |
2082 | use_collect2=yes | |
2083 | ;; | |
2084 | ns32k-pc532-netbsd*) | |
2085 | tm_file=ns32k/netbsd.h | |
2086 | xm_file=ns32k/xm-netbsd.h | |
46f18e7b RK |
2087 | # On NetBSD, the headers are already okay. |
2088 | fixincludes=Makefile.in | |
e47f44f4 | 2089 | tmake_file=t-netbsd |
46f18e7b RK |
2090 | ;; |
2091 | pdp11-*-bsd) | |
2092 | tm_file="${tm_file} pdp11/2bsd.h" | |
2093 | ;; | |
2094 | pdp11-*-*) | |
2095 | ;; | |
2096 | pyramid-*-*) | |
2097 | cpu_type=pyr | |
2098 | xmake_file=pyr/x-pyr | |
2099 | use_collect2=yes | |
2100 | ;; | |
2101 | romp-*-aos*) | |
2102 | use_collect2=yes | |
2103 | ;; | |
2104 | romp-*-mach*) | |
2105 | xmake_file=romp/x-mach | |
2106 | use_collect2=yes | |
2107 | ;; | |
2108 | powerpc-*-sysv* | powerpc-*-elf*) | |
2109 | tm_file=rs6000/sysv4.h | |
2110 | xm_file=rs6000/xm-sysv4.h | |
2111 | extra_headers=ppc-asm.h | |
2112 | if [[ x$gas = xyes ]] | |
2113 | then | |
2114 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2115 | else | |
2116 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2117 | fi | |
2118 | xmake_file=rs6000/x-sysv4 | |
2119 | ;; | |
2120 | powerpc-*-eabiaix*) | |
2121 | tm_file=rs6000/eabiaix.h | |
2122 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2123 | fixincludes=Makefile.in | |
2124 | extra_headers=ppc-asm.h | |
2125 | ;; | |
2126 | powerpc-*-eabisim*) | |
2127 | tm_file=rs6000/eabisim.h | |
2128 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2129 | fixincludes=Makefile.in | |
2130 | extra_headers=ppc-asm.h | |
2131 | ;; | |
2132 | powerpc-*-eabi*) | |
2133 | tm_file=rs6000/eabi.h | |
2134 | if [[ x$gas = xyes ]] | |
2135 | then | |
2136 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2137 | else | |
2138 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2139 | fi | |
2140 | fixincludes=Makefile.in | |
2141 | extra_headers=ppc-asm.h | |
2142 | ;; | |
dec3e070 JW |
2143 | powerpc-*-rtems*) |
2144 | tm_file=rs6000/rtems.h | |
46f18e7b RK |
2145 | if [[ x$gas = xyes ]] |
2146 | then | |
dec3e070 | 2147 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" |
46f18e7b | 2148 | else |
dec3e070 | 2149 | tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" |
46f18e7b | 2150 | fi |
46f18e7b | 2151 | fixincludes=Makefile.in |
46f18e7b RK |
2152 | extra_headers=ppc-asm.h |
2153 | ;; | |
844dadc7 | 2154 | powerpc-*-linux-gnu*) |
dec3e070 | 2155 | tm_file=rs6000/linux.h |
46f18e7b | 2156 | xm_file=rs6000/xm-sysv4.h |
dec3e070 | 2157 | out_file=rs6000/rs6000.c |
46f18e7b RK |
2158 | if [[ x$gas = xyes ]] |
2159 | then | |
dec3e070 | 2160 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" |
46f18e7b | 2161 | else |
dec3e070 | 2162 | tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" |
46f18e7b | 2163 | fi |
d7308c0c | 2164 | xmake_file=x-linux |
dec3e070 | 2165 | fixincludes=Makefile.in |
d7308c0c | 2166 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
46f18e7b | 2167 | extra_headers=ppc-asm.h |
d1054723 | 2168 | if [[ x$enable_threads = xyes ]]; then |
d7308c0c RK |
2169 | thread_file='posix' |
2170 | fi | |
46f18e7b RK |
2171 | ;; |
2172 | powerpc-*-vxworks*) | |
2173 | cpu_type=rs6000 | |
2174 | xm_file=rs6000/xm-sysv4.h | |
2175 | tm_file=rs6000/vxppc.h | |
2176 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2177 | extra_headers=ppc-asm.h | |
2178 | ;; | |
2179 | powerpcle-*-sysv* | powerpcle-*-elf*) | |
2180 | tm_file=rs6000/sysv4le.h | |
2181 | xm_file=rs6000/xm-sysv4.h | |
2182 | if [[ x$gas = xyes ]] | |
2183 | then | |
2184 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2185 | else | |
2186 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2187 | fi | |
2188 | xmake_file=rs6000/x-sysv4 | |
2189 | extra_headers=ppc-asm.h | |
2190 | ;; | |
2191 | powerpcle-*-eabisim*) | |
2192 | tm_file=rs6000/eabilesim.h | |
2193 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2194 | fixincludes=Makefile.in | |
2195 | extra_headers=ppc-asm.h | |
2196 | ;; | |
2197 | powerpcle-*-eabi*) | |
2198 | tm_file=rs6000/eabile.h | |
2199 | if [[ x$gas = xyes ]] | |
2200 | then | |
2201 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2202 | else | |
2203 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2204 | fi | |
2205 | fixincludes=Makefile.in | |
2206 | extra_headers=ppc-asm.h | |
2207 | ;; | |
2208 | powerpcle-*-winnt* ) | |
2209 | tm_file=rs6000/win-nt.h | |
2210 | tmake_file=rs6000/t-winnt | |
2211 | # extra_objs=pe.o | |
2212 | fixincludes=Makefile.in | |
434332b5 | 2213 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
2214 | thread_file='win32' |
2215 | fi | |
46f18e7b RK |
2216 | extra_headers=ppc-asm.h |
2217 | ;; | |
2218 | powerpcle-*-pe | powerpcle-*-cygwin32) | |
2219 | tm_file=rs6000/cygwin32.h | |
2220 | xm_file=rs6000/xm-cygwin32.h | |
2221 | tmake_file=rs6000/t-winnt | |
2222 | xmake_file=rs6000/x-cygwin32 | |
2223 | # extra_objs=pe.o | |
2224 | fixincludes=Makefile.in | |
434332b5 | 2225 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
2226 | thread_file='win32' |
2227 | fi | |
46f18e7b RK |
2228 | exeext=.exe |
2229 | extra_headers=ppc-asm.h | |
2230 | ;; | |
2231 | powerpcle-*-solaris2*) | |
2232 | tm_file=rs6000/sol2.h | |
2233 | xm_file=rs6000/xm-sysv4.h | |
2234 | if [[ x$gas = xyes ]] | |
2235 | then | |
2236 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2237 | else | |
2238 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2239 | fi | |
2240 | xmake_file=rs6000/x-sysv4 | |
2241 | fixincludes=fixinc.svr4 | |
2242 | extra_headers=ppc-asm.h | |
2243 | ;; | |
2244 | rs6000-ibm-aix3.[[01]]*) | |
2245 | tm_file=rs6000/aix31.h | |
2246 | xmake_file=rs6000/x-aix31 | |
2247 | use_collect2=yes | |
2248 | ;; | |
2249 | rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*) | |
2250 | tm_file=rs6000/aix3newas.h | |
2251 | if [[ x$host != x$target ]] | |
2252 | then | |
2253 | tmake_file=rs6000/t-xnewas | |
2254 | else | |
2255 | tmake_file=rs6000/t-newas | |
2256 | fi | |
2257 | use_collect2=yes | |
2258 | ;; | |
2259 | rs6000-ibm-aix[[456789]].* | powerpc-ibm-aix[[456789]].*) | |
2260 | tm_file=rs6000/aix41.h | |
2261 | if [[ x$host != x$target ]] | |
2262 | then | |
2263 | tmake_file=rs6000/t-xnewas | |
2264 | else | |
2265 | tmake_file=rs6000/t-newas | |
2266 | fi | |
2267 | xmake_file=rs6000/x-aix31 | |
2268 | use_collect2=yes | |
2269 | ;; | |
2270 | rs6000-ibm-aix*) | |
2271 | use_collect2=yes | |
2272 | ;; | |
2273 | rs6000-bull-bosx) | |
2274 | use_collect2=yes | |
2275 | ;; | |
2276 | rs6000-*-mach*) | |
2277 | tm_file=rs6000/mach.h | |
2278 | xm_file=rs6000/xm-mach.h | |
2279 | xmake_file=rs6000/x-mach | |
2280 | use_collect2=yes | |
2281 | ;; | |
2282 | rs6000-*-lynxos*) | |
2283 | tm_file=rs6000/lynx.h | |
2284 | xm_file=rs6000/xm-lynx.h | |
2285 | tmake_file=rs6000/t-rs6000 | |
2286 | xmake_file=rs6000/x-lynx | |
2287 | use_collect2=yes | |
2288 | ;; | |
2289 | sh-*-elf*) | |
2290 | tm_file=sh/elf.h | |
2291 | float_format=sh | |
2292 | ;; | |
5d84b57e JS |
2293 | sh-*-rtems*) |
2294 | tmake_file="sh/t-sh t-rtems" | |
2295 | tm_file=sh/rtems.h | |
2296 | float_format=sh | |
2297 | ;; | |
46f18e7b RK |
2298 | sh-*-*) |
2299 | float_format=sh | |
2300 | ;; | |
2301 | sparc-tti-*) | |
2302 | tm_file=sparc/pbd.h | |
2303 | xm_file=sparc/xm-pbd.h | |
2304 | ;; | |
2305 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
2306 | tm_file=sparc/vxsparc.h | |
2307 | tmake_file=sparc/t-vxsparc | |
2308 | use_collect2=yes | |
2309 | ;; | |
2310 | sparc-*-aout*) | |
2311 | tmake_file=sparc/t-sparcbare | |
2312 | tm_file="sparc/aout.h libgloss.h" | |
2313 | ;; | |
2314 | sparc-*-netbsd*) | |
2315 | tm_file=sparc/netbsd.h | |
2316 | xm_file=sparc/xm-netbsd.h | |
2317 | # On NetBSD, the headers are already okay. | |
2318 | fixincludes=Makefile.in | |
e47f44f4 | 2319 | tmake_file=t-netbsd |
46f18e7b RK |
2320 | ;; |
2321 | sparc-*-bsd*) | |
2322 | tm_file=sparc/bsd.h | |
2323 | ;; | |
844dadc7 | 2324 | sparc-*-linux-gnuaout*) # Sparc's running Linux, a.out |
46f18e7b RK |
2325 | xm_file=sparc/xm-linux.h |
2326 | tm_file=sparc/linux-aout.h | |
2327 | xmake_file=x-linux | |
2328 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
46f18e7b | 2329 | gnu_ld=yes |
46f18e7b | 2330 | ;; |
9ad03bc1 RK |
2331 | sparc-*-linux-gnulibc1*) # Sparc's running Linux |
2332 | xm_file=sparc/xm-linux.h # with ELF format using the | |
2333 | xmake_file=x-linux # Linux C library 5. | |
46f18e7b | 2334 | tm_file=sparc/linux.h |
604d63b0 | 2335 | tmake_file="t-linux t-linux-gnulibc1 sparc/t-linux" |
9ad03bc1 RK |
2336 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
2337 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
9ad03bc1 RK |
2338 | gnu_ld=yes |
2339 | ;; | |
2340 | sparc-*-linux-gnu*) # Sparc's running Linux | |
2341 | xm_file=sparc/xm-linux.h # with ELF format using glibc 2 | |
2342 | xmake_file=x-linux # aka the Linux C library 6. | |
2343 | tm_file=sparc/linux.h | |
604d63b0 | 2344 | tmake_file="t-linux sparc/t-linux" |
9ad03bc1 | 2345 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
46f18e7b | 2346 | fixincludes=Makefile.in #On Linux, the headers are ok already. |
46f18e7b | 2347 | gnu_ld=yes |
d1054723 | 2348 | if [[ x$enable_threads = xyes ]]; then |
9ad03bc1 RK |
2349 | thread_file='posix' |
2350 | fi | |
46f18e7b RK |
2351 | ;; |
2352 | sparc-*-lynxos*) | |
2353 | if [[ x$gas = xyes ]] | |
2354 | then | |
2355 | tm_file=sparc/lynx.h | |
2356 | else | |
2357 | tm_file=sparc/lynx-ng.h | |
2358 | fi | |
2359 | xm_file=sparc/xm-lynx.h | |
2360 | tmake_file=sparc/t-sunos41 | |
2361 | xmake_file=x-lynx | |
2362 | ;; | |
2363 | sparc-*-rtems*) | |
2364 | tmake_file="sparc/t-sparcbare t-rtems" | |
2365 | tm_file=sparc/rtems.h | |
2366 | ;; | |
2367 | sparc-*-solaris2*) | |
2368 | tm_file=sparc/sol2.h | |
2369 | xm_file=sparc/xm-sol2.h | |
2370 | tmake_file=sparc/t-sol2 | |
2371 | xmake_file=sparc/x-sysv4 | |
2372 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
2373 | fixincludes=fixinc.svr4 | |
434332b5 | 2374 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
2375 | thread_file='solaris' |
2376 | fi | |
46f18e7b RK |
2377 | ;; |
2378 | sparc-*-sunos4.0*) | |
2379 | tm_file=sparc/sunos4.h | |
2380 | tmake_file=sparc/t-sunos40 | |
2381 | use_collect2=yes | |
2382 | ;; | |
2383 | sparc-*-sunos4*) | |
2384 | tm_file=sparc/sunos4.h | |
2385 | tmake_file=sparc/t-sunos41 | |
2386 | use_collect2=yes | |
2387 | ;; | |
2388 | sparc-*-sunos3*) | |
2389 | tm_file=sparc/sun4o3.h | |
2390 | use_collect2=yes | |
2391 | ;; | |
2392 | sparc-*-sysv4*) | |
2393 | tm_file=sparc/sysv4.h | |
2394 | xm_file=sparc/xm-sysv4.h | |
2395 | tmake_file=t-svr4 | |
2396 | xmake_file=sparc/x-sysv4 | |
2397 | extra_parts="crtbegin.o crtend.o" | |
2398 | ;; | |
2399 | sparc-*-vxsim*) | |
2400 | xm_file=sparc/xm-sol2.h | |
2401 | tm_file=sparc/vxsim.h | |
2402 | tmake_file=sparc/t-vxsparc | |
2403 | xmake_file=sparc/x-sysv4 | |
2404 | ;; | |
2405 | sparclet-*-aout*) | |
2406 | tm_file="sparc/splet.h libgloss.h" | |
2407 | tmake_file=sparc/t-splet | |
2408 | ;; | |
2409 | sparclite-*-coff*) | |
2410 | tm_file="sparc/litecoff.h libgloss.h" | |
2411 | tmake_file=sparc/t-sparclite | |
2412 | ;; | |
2413 | sparclite-*-aout*) | |
2414 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
2415 | tmake_file=sparc/t-sparclite | |
2416 | ;; | |
2417 | sparc64-*-aout*) | |
2418 | tmake_file=sparc/t-sp64 | |
2419 | tm_file=sparc/sp64-aout.h | |
2420 | ;; | |
2421 | sparc64-*-elf*) | |
2422 | tmake_file=sparc/t-sp64 | |
2423 | tm_file=sparc/sp64-elf.h | |
2424 | extra_parts="crtbegin.o crtend.o" | |
2425 | ;; | |
2426 | # This hasn't been upgraded to GCC 2. | |
2427 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
2428 | # tm_file=tahoe/harris.h | |
2429 | # ;; | |
2430 | # tahoe-*-bsd*) # tahoe running BSD | |
2431 | # ;; | |
2432 | # This hasn't been upgraded to GCC 2. | |
2433 | # tron-*-*) | |
2434 | # cpu_type=gmicro | |
2435 | # use_collect2=yes | |
2436 | # ;; | |
f84271d9 JL |
2437 | v850-*-*) |
2438 | cpu_type=v850 | |
2439 | tm_file="v850/v850.h" | |
2440 | xm_file="v850/xm-v850.h" | |
2441 | if [[ x$stabs = xyes ]] | |
2442 | then | |
2443 | tm_file="${tm_file} dbx.h" | |
2444 | fi | |
2445 | use_collect2=no | |
2446 | ;; | |
46f18e7b RK |
2447 | vax-*-bsd*) # vaxen running BSD |
2448 | use_collect2=yes | |
2449 | float_format=vax | |
2450 | ;; | |
2451 | vax-*-sysv*) # vaxen running system V | |
2452 | tm_file="${tm_file} vax/vaxv.h" | |
2453 | xm_file="${tm_file} vax/xm-vaxv.h" | |
2454 | float_format=vax | |
2455 | ;; | |
2456 | vax-*-netbsd*) | |
2457 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
2458 | xm_file="${xm_file} xm-netbsd.h" | |
46f18e7b RK |
2459 | # On NetBSD, the headers are already okay. |
2460 | fixincludes=Makefile.in | |
e47f44f4 | 2461 | tmake_file=t-netbsd |
46f18e7b RK |
2462 | float_format=vax |
2463 | ;; | |
2464 | vax-*-ultrix*) # vaxen running ultrix | |
2465 | tm_file="${tm_file} vax/ultrix.h" | |
2466 | use_collect2=yes | |
2467 | float_format=vax | |
2468 | ;; | |
2469 | vax-*-vms*) # vaxen running VMS | |
2470 | xm_file=vax/xm-vms.h | |
2471 | tm_file=vax/vms.h | |
2472 | float_format=vax | |
2473 | ;; | |
2474 | vax-*-*) # vax default entry | |
2475 | float_format=vax | |
2476 | ;; | |
2477 | we32k-att-sysv*) | |
2478 | xm_file="${xm_file} xm-svr3" | |
2479 | use_collect2=yes | |
2480 | ;; | |
2481 | *) | |
2482 | echo "Configuration $machine not supported" 1>&2 | |
2483 | exit 1 | |
2484 | ;; | |
2485 | esac | |
2486 | ||
2487 | case $machine in | |
2488 | *-*-linux-gnu*) | |
2489 | ;; # Existing Linux/GNU systems do not use the GNU setup. | |
2490 | *-*-gnu*) | |
2491 | # On the GNU system, the setup is just about the same on | |
2492 | # each different CPU. The specific machines that GNU | |
2493 | # supports are matched above and just set $cpu_type. | |
2494 | xm_file=${cpu_type}/xm-gnu.h | |
2495 | tm_file=${cpu_type}/gnu.h | |
6b403743 | 2496 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
46f18e7b RK |
2497 | # GNU always uses ELF. |
2498 | elf=yes | |
2499 | # GNU tools are the only tools. | |
2500 | gnu_ld=yes | |
2501 | gas=yes | |
2502 | # On GNU, the headers are already okay. | |
2503 | fixincludes=Makefile.in | |
2504 | xmake_file=x-linux # These details are the same as Linux. | |
2505 | tmake_file=t-gnu # These are not. | |
2506 | ;; | |
2507 | *-*-sysv4*) | |
2508 | fixincludes=fixinc.svr4 | |
2509 | xmake_try_sysv=x-sysv | |
46f18e7b RK |
2510 | install_headers_dir=install-headers-cpio |
2511 | ;; | |
2512 | *-*-sysv*) | |
46f18e7b RK |
2513 | install_headers_dir=install-headers-cpio |
2514 | ;; | |
2515 | esac | |
2516 | ||
2517 | # Distinguish i[3456]86 | |
2518 | # Also, do not run mips-tfile on MIPS if using gas. | |
2519 | # Process --with-cpu= for PowerPC/rs6000 | |
2520 | target_cpu_default2= | |
2521 | case $machine in | |
2522 | i486-*-*) | |
2523 | target_cpu_default2=1 | |
2524 | ;; | |
2525 | i586-*-*) | |
2526 | target_cpu_default2=2 | |
2527 | ;; | |
2528 | i686-*-*) | |
2529 | target_cpu_default2=3 | |
2530 | ;; | |
08fc0184 RK |
2531 | alpha*-*-*) |
2532 | case $machine in | |
2533 | alphaev56*) | |
2534 | target_cpu_default2="MASK_CPU_EV5|MASK_BYTE_OPS" | |
2535 | ;; | |
2536 | alphaev5*) | |
2537 | target_cpu_default2="MASK_CPU_EV5" | |
2538 | ;; | |
2539 | esac | |
2540 | ||
46f18e7b RK |
2541 | if [[ x$gas = xyes ]] |
2542 | then | |
08fc0184 RK |
2543 | if [[ x$target_cpu_default2 = x ]] |
2544 | then | |
e71c3bb0 | 2545 | target_cpu_default2="MASK_GAS" |
08fc0184 | 2546 | else |
e71c3bb0 | 2547 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" |
08fc0184 | 2548 | fi |
46f18e7b RK |
2549 | fi |
2550 | ;; | |
2551 | mips*-*-ecoff* | mips*-*-elf*) | |
2552 | if [[ x$gas = xyes ]] | |
2553 | then | |
2554 | if [[ x$gnu_ld = xyes ]] | |
2555 | then | |
2556 | target_cpu_default2=20 | |
2557 | else | |
2558 | target_cpu_default2=16 | |
2559 | fi | |
2560 | fi | |
2561 | ;; | |
2562 | mips*-*-*) | |
2563 | if [[ x$gas = xyes ]] | |
2564 | then | |
2565 | target_cpu_default2=16 | |
2566 | fi | |
2567 | ;; | |
2568 | powerpc*-*-* | rs6000-*-*) | |
2569 | case "x$with_cpu" in | |
2570 | x) | |
2571 | ;; | |
2572 | ||
2573 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
52cddadb MM |
2574 | | xrios1 | xrios2 | xrsc | xrsc1 \ |
2575 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
2576 | | x403 | x505 | x801 | x821 | x823 | x860) | |
f24b370a | 2577 | target_cpu_default2="\"$with_cpu\"" |
46f18e7b RK |
2578 | ;; |
2579 | ||
2580 | xyes | xno) | |
2581 | echo "--with-cpu must be passed a value" 1>&2 | |
2582 | exit 1 | |
2583 | ;; | |
2584 | ||
2585 | *) | |
2586 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
2587 | exit 1 | |
2588 | ;; | |
2589 | esac | |
2590 | ;; | |
2591 | sparc*-*-*) | |
2592 | case ".$with_cpu" in | |
2593 | .) | |
2594 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
2595 | ;; | |
2596 | .supersparc | .ultrasparc | .v7 | .v8) | |
2597 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
2598 | ;; | |
2599 | *) | |
2600 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
2601 | exit 1 | |
2602 | ;; | |
2603 | esac | |
2604 | ;; | |
2605 | esac | |
2606 | ||
2607 | if [[ x$target_cpu_default2 != x ]] | |
2608 | then | |
2609 | if [[ x$target_cpu_default != x ]] | |
2610 | then | |
2611 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
2612 | else | |
2613 | target_cpu_default=$target_cpu_default2 | |
2614 | fi | |
2615 | fi | |
2616 | ||
2617 | # No need for collect2 if we have the GNU linker. | |
2618 | case x$gnu_ld in | |
2619 | xyes) | |
2620 | use_collect2= | |
2621 | ;; | |
2622 | esac | |
2623 | ||
2624 | # Save data on machine being used to compile GCC in build_xm_file. | |
2625 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
2626 | if [[ x$pass1done = x ]] | |
2627 | then | |
2628 | if [[ x"$xm_file" = x ]] | |
2629 | then build_xm_file=$cpu_type/xm-$cpu_type.h | |
2630 | else build_xm_file=$xm_file | |
2631 | fi | |
46f18e7b RK |
2632 | build_install_headers_dir=$install_headers_dir |
2633 | build_exeext=$exeext | |
2634 | pass1done=yes | |
2635 | else | |
2636 | if [[ x$pass2done = x ]] | |
2637 | then | |
2638 | if [[ x"$xm_file" = x ]] | |
2639 | then host_xm_file=$cpu_type/xm-$cpu_type.h | |
2640 | else host_xm_file=$xm_file | |
2641 | fi | |
2642 | if [[ x"$xmake_file" = x ]] | |
2643 | then xmake_file=$cpu_type/x-$cpu_type | |
2644 | fi | |
2645 | host_xmake_file="$xmake_file" | |
2646 | host_truncate_target=$truncate_target | |
2647 | host_extra_gcc_objs=$extra_gcc_objs | |
2648 | host_extra_objs=$extra_host_objs | |
2649 | pass2done=yes | |
2650 | fi | |
2651 | fi | |
2652 | done | |
2653 | ||
2654 | extra_objs="${host_extra_objs} ${extra_objs}" | |
2655 | ||
2656 | # Default the target-machine variables that were not explicitly set. | |
2657 | if [[ x"$tm_file" = x ]] | |
2658 | then tm_file=$cpu_type/$cpu_type.h; fi | |
2659 | ||
2660 | if [[ x$extra_headers = x ]] | |
2661 | then extra_headers=; fi | |
2662 | ||
2663 | if [[ x"$xm_file" = x ]] | |
2664 | then xm_file=$cpu_type/xm-$cpu_type.h; fi | |
2665 | ||
2666 | md_file=$cpu_type/$cpu_type.md | |
2667 | ||
2668 | if [[ x$out_file = x ]] | |
2669 | then out_file=$cpu_type/$cpu_type.c; fi | |
2670 | ||
2671 | if [[ x"$tmake_file" = x ]] | |
2672 | then tmake_file=$cpu_type/t-$cpu_type | |
2673 | fi | |
2674 | ||
2675 | if [[ x$float_format = x ]] | |
2676 | then float_format=i64 | |
2677 | fi | |
2678 | ||
2679 | # Say what files are being used for the output code and MD file. | |
2680 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
2681 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
2682 | ||
2683 | count=a | |
2684 | for f in $tm_file; do | |
2685 | count=${count}x | |
2686 | done | |
2687 | if [[ $count = ax ]]; then | |
2688 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." | |
2689 | else | |
2690 | echo "Using the following target machine macro files:" | |
2691 | for f in $tm_file; do | |
2692 | echo " $srcdir/config/$f" | |
2693 | done | |
2694 | fi | |
2695 | ||
2696 | count=a | |
2697 | for f in $host_xm_file; do | |
2698 | count=${count}x | |
2699 | done | |
2700 | if [[ $count = ax ]]; then | |
2701 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." | |
2702 | else | |
2703 | echo "Using the following host machine macro files:" | |
2704 | for f in $host_xm_file; do | |
2705 | echo " $srcdir/config/$f" | |
2706 | done | |
2707 | fi | |
2708 | ||
2709 | if [[ "$host_xm_file" != "$build_xm_file" ]]; then | |
2710 | count=a | |
2711 | for f in $build_xm_file; do | |
2712 | count=${count}x | |
2713 | done | |
2714 | if [[ $count = ax ]]; then | |
2715 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." | |
2716 | else | |
2717 | echo "Using the following build machine macro files:" | |
2718 | for f in $build_xm_file; do | |
2719 | echo " $srcdir/config/$f" | |
2720 | done | |
2721 | fi | |
2722 | fi | |
2723 | ||
0bbb1697 RK |
2724 | if [[ x$thread_file = x ]] |
2725 | then thread_file='single' | |
46f18e7b | 2726 | fi |
46f18e7b RK |
2727 | |
2728 | # Set up the header files. | |
2729 | # $links is the list of header files to create. | |
2730 | # $vars is the list of shell variables with file names to include. | |
cdcc6a01 DE |
2731 | # config2.h is the old config.h. It is included by the new config.h which |
2732 | # created from config.in. The goal is to simplify the transition to autoconf. | |
46f18e7b | 2733 | vars="host_xm_file tm_file xm_file build_xm_file" |
cdcc6a01 | 2734 | links="config2.h tm.h tconfig.h hconfig.h" |
46f18e7b RK |
2735 | |
2736 | rm -f config.bak | |
2737 | if [[ -f config.status ]]; then mv -f config.status config.bak; fi | |
2738 | ||
2739 | # Make the links. | |
2740 | while [[ -n "$vars" ]] | |
2741 | do | |
2742 | # set file to car of files, files to cdr of files | |
2743 | set $vars; var=$1; shift; vars=$* | |
2744 | set $links; link=$1; shift; links=$* | |
2745 | ||
2746 | rm -f $link | |
2747 | ||
2748 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
2749 | # This substitutes for lots of *.h files. | |
2750 | if [[ x$target_cpu_default != x -a $link = tm.h ]] | |
2751 | then | |
2752 | echo "#define TARGET_CPU_DEFAULT $target_cpu_default" >>$link | |
2753 | fi | |
2754 | ||
2755 | for file in `eval echo '$'$var`; do | |
2756 | echo "#include \"$file\"" >>$link | |
2757 | done | |
2758 | done | |
2759 | ||
2760 | # Truncate the target if necessary | |
2761 | if [[ x$host_truncate_target != x ]]; then | |
2762 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` | |
2763 | fi | |
2764 | ||
2765 | # Get the version number from the toplevel | |
2766 | version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c` | |
2767 | ||
46f18e7b RK |
2768 | # Are we using gcc as the native compiler? |
2769 | case $host in | |
2770 | *linux*) # All Linux's use gcc as the native compiler. | |
a588a9a1 RK |
2771 | if [[ x$prefix = xNONE ]]; then |
2772 | prefix=$native_prefix | |
2773 | fi | |
46f18e7b RK |
2774 | ;; |
2775 | esac | |
2776 | ||
7fa10b25 RK |
2777 | # Get an absolute path to the GCC top-level source directory |
2778 | holddir=`pwd` | |
2779 | cd $srcdir | |
2780 | topdir=`pwd` | |
2781 | cd $holddir | |
2782 | ||
af5e4ada | 2783 | # Conditionalize the makefile for this host machine. |
94f42018 DE |
2784 | # Make-host contains the concatenation of all host makefile fragments |
2785 | # [there can be more than one]. This file is built by configure.frag. | |
2786 | host_overrides=Make-host | |
af5e4ada | 2787 | dep_host_xmake_file= |
94f42018 DE |
2788 | for f in .. ${host_xmake_file} |
2789 | do | |
2790 | if [[ -f ${srcdir}/config/$f ]] | |
2791 | then | |
2792 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
2793 | fi | |
2794 | done | |
46f18e7b | 2795 | |
af5e4ada | 2796 | # Conditionalize the makefile for this target machine. |
94f42018 DE |
2797 | # Make-target contains the concatenation of all host makefile fragments |
2798 | # [there can be more than one]. This file is built by configure.frag. | |
2799 | target_overrides=Make-target | |
af5e4ada | 2800 | dep_tmake_file= |
94f42018 DE |
2801 | for f in .. ${tmake_file} |
2802 | do | |
2803 | if [[ -f ${srcdir}/config/$f ]] | |
2804 | then | |
2805 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
2806 | fi | |
2807 | done | |
5891b37d | 2808 | |
af5e4ada DE |
2809 | # If the host doesn't support symlinks, modify CC in |
2810 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
2811 | # Otherwise, we can use "CC=$(CC)". | |
2812 | rm -f symtest.tem | |
2813 | if $symbolic_link symtest1.tem symtest.tem 2>/dev/null | |
2814 | then | |
2815 | cc_set_by_configure="\$(CC)" | |
2816 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" | |
2817 | else | |
2818 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" | |
2819 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" | |
2820 | fi | |
2821 | rm -f symtest.tem | |
5891b37d | 2822 | |
af5e4ada | 2823 | out_object_file=`basename $out_file .c`.o |
5891b37d | 2824 | |
af5e4ada DE |
2825 | tm_file_list= |
2826 | for f in $tm_file; do | |
2827 | tm_file_list="${tm_file_list} \$(srcdir)/config/$f" | |
2828 | done | |
46f18e7b | 2829 | |
af5e4ada DE |
2830 | host_xm_file_list= |
2831 | for f in $host_xm_file; do | |
2832 | host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" | |
2833 | done | |
2834 | ||
2835 | build_xm_file_list= | |
2836 | for f in $build_xm_file; do | |
2837 | build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" | |
2838 | done | |
46f18e7b | 2839 | |
af5e4ada DE |
2840 | # Define macro CROSS_COMPILE in compilation |
2841 | # if this is a cross-compiler. | |
2842 | # Also use all.cross instead of all.internal | |
2843 | # and add cross-make to Makefile. | |
571a8de5 | 2844 | cross_overrides="/dev/null" |
af5e4ada DE |
2845 | if [[ x$host != x$target ]] |
2846 | then | |
2847 | cross_defines="CROSS=-DCROSS_COMPILE" | |
2848 | cross_overrides="${topdir}/cross-make" | |
2849 | fi | |
46f18e7b | 2850 | |
af5e4ada DE |
2851 | # When building gcc with a cross-compiler, we need to fix a few things. |
2852 | # This must come after cross-make as we want all.build to override | |
2853 | # all.cross. | |
571a8de5 | 2854 | build_overrides="/dev/null" |
af5e4ada DE |
2855 | if [[ x$build != x$host ]] |
2856 | then | |
2857 | build_overrides="${topdir}/build-make" | |
2858 | fi | |
46f18e7b | 2859 | |
ae3a15bb DE |
2860 | # Expand extra_headers to include complete path. |
2861 | # This substitutes for lots of t-* files. | |
2862 | extra_headers_list= | |
2863 | if [[ "x$extra_headers" = x ]] | |
2864 | then true | |
2865 | else | |
2866 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
2867 | for file in $extra_headers; | |
2868 | do | |
2869 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
2870 | done | |
2871 | fi | |
2872 | ||
af5e4ada DE |
2873 | # Add a definition of USE_COLLECT2 if system wants one. |
2874 | # Also tell toplev.c what to do. | |
2875 | # This substitutes for lots of t-* files. | |
2876 | if [[ x$use_collect2 = x ]] | |
2877 | then | |
2878 | will_use_collect2= | |
2879 | maybe_use_collect2= | |
2880 | else | |
2881 | will_use_collect2="ld" | |
2882 | maybe_use_collect2="-DUSE_COLLECT2" | |
2883 | fi | |
2884 | ||
2885 | # NEED TO CONVERT | |
2886 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
2887 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
2888 | # for line oriented comments, so we must always use a GNU cpp. If | |
2889 | # building gcc with a cross compiler, use the cross compiler just | |
2890 | # built. Otherwise, we can use the cpp just built. | |
2891 | md_file_sub= | |
2892 | if [[ "x$md_cppflags" = x ]] | |
2893 | then | |
2894 | md_file_sub=$srcdir/config/$md_file | |
2895 | else | |
2896 | md_file=md | |
2897 | fi | |
2898 | ||
2899 | # If we have gas in the build tree, make a link to it. | |
2900 | if [[ -f ../gas/Makefile ]]; then | |
e41cea70 | 2901 | rm -f as; $symbolic_link ../gas/as-new as 2>/dev/null |
af5e4ada DE |
2902 | fi |
2903 | ||
2904 | # If we have ld in the build tree, make a link to it. | |
2905 | if [[ -f ../ld/Makefile ]]; then | |
aa32d841 | 2906 | # if [[ x$use_collect2 = x ]]; then |
e41cea70 | 2907 | # rm -f ld; $symbolic_link ../ld/ld-new ld 2>/dev/null |
aa32d841 | 2908 | # else |
e41cea70 | 2909 | rm -f collect-ld; $symbolic_link ../ld/ld-new collect-ld 2>/dev/null |
aa32d841 | 2910 | # fi |
af5e4ada DE |
2911 | fi |
2912 | ||
571a8de5 DE |
2913 | # Figure out what language subdirectories are present. |
2914 | subdirs= | |
2915 | for lang in ${srcdir}/*/config-lang.in .. | |
2916 | do | |
2917 | case $lang in | |
2918 | ..) ;; | |
2919 | # The odd quoting in the next line works around | |
2920 | # an apparent bug in bash 1.12 on linux. | |
2921 | ${srcdir}/[[*]]/config-lang.in) ;; | |
2922 | *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;; | |
2923 | esac | |
2924 | done | |
2925 | ||
2926 | # Make empty files to contain the specs and options for each language. | |
2927 | # Then add #include lines to for a compiler that has specs and/or options. | |
2928 | ||
2929 | lang_specs_files= | |
2930 | lang_options_files= | |
2931 | rm -f specs.h options.h | |
2932 | touch specs.h options.h | |
2933 | for subdir in . $subdirs | |
2934 | do | |
2935 | if [[ -f $srcdir/$subdir/lang-specs.h ]]; then | |
2936 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h | |
2937 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
2938 | fi | |
2939 | if [[ -f $srcdir/$subdir/lang-options.h ]]; then | |
2940 | echo "#include \"$subdir/lang-options.h\"" >>options.h | |
2941 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
2942 | fi | |
2943 | done | |
2944 | ||
2945 | # These (without "all_") are set in each config-lang.in. | |
2946 | # `language' must be a single word so is spelled singularly. | |
2947 | all_languages= | |
2948 | all_boot_languages= | |
2949 | all_compilers= | |
2950 | all_stagestuff= | |
2951 | all_diff_excludes= | |
0280cf84 | 2952 | all_outputs=Makefile |
571a8de5 DE |
2953 | # List of language makefile fragments. |
2954 | all_lang_makefiles= | |
2955 | all_headers= | |
2956 | all_lib2funcs= | |
2957 | ||
2958 | # Add the language fragments. | |
2959 | # Languages are added via two mechanisms. Some information must be | |
2960 | # recorded in makefile variables, these are defined in config-lang.in. | |
2961 | # We accumulate them and plug them into the main Makefile. | |
2962 | # The other mechanism is a set of hooks for each of the main targets | |
2963 | # like `clean', `install', etc. | |
2964 | ||
2965 | language_fragments="Make-lang" | |
2966 | language_hooks="Make-hooks" | |
0280cf84 | 2967 | oldstyle_subdirs= |
571a8de5 DE |
2968 | |
2969 | for s in .. $subdirs | |
2970 | do | |
2971 | if [[ $s != ".." ]] | |
2972 | then | |
2973 | language= | |
2974 | boot_language= | |
2975 | compilers= | |
2976 | stagestuff= | |
2977 | diff_excludes= | |
2978 | headers= | |
0280cf84 | 2979 | outputs= |
571a8de5 DE |
2980 | lib2funcs= |
2981 | . ${srcdir}/$s/config-lang.in | |
2982 | if [[ "x$language" = x ]] | |
2983 | then | |
2984 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
2985 | exit 1 | |
2986 | fi | |
2987 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
2988 | all_languages="$all_languages $language" | |
2989 | if [[ "x$boot_language" = xyes ]] | |
2990 | then | |
2991 | all_boot_languages="$all_boot_languages $language" | |
2992 | fi | |
2993 | all_compilers="$all_compilers $compilers" | |
2994 | all_stagestuff="$all_stagestuff $stagestuff" | |
2995 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
2996 | all_headers="$all_headers $headers" | |
0280cf84 PB |
2997 | all_outputs="$all_outputs $outputs" |
2998 | if [[ x$outputs = x ]] | |
2999 | then | |
3000 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
3001 | fi | |
571a8de5 DE |
3002 | all_lib2funcs="$all_lib2funcs $lib2funcs" |
3003 | fi | |
3004 | done | |
3005 | ||
3006 | # Since we can't use `::' targets, we link each language in | |
3007 | # with a set of hooks, reached indirectly via lang.${target}. | |
3008 | ||
3009 | rm -f Make-hooks | |
3010 | touch Make-hooks | |
3011 | target_list="all.build all.cross start.encap rest.encap \ | |
3012 | info dvi \ | |
3013 | install-normal install-common install-info install-man \ | |
3014 | uninstall distdir \ | |
3015 | mostlyclean clean distclean extraclean maintainer-clean \ | |
3016 | stage1 stage2 stage3 stage4" | |
3017 | for t in $target_list | |
3018 | do | |
3019 | x= | |
3020 | for l in .. $all_languages | |
3021 | do | |
3022 | if [[ $l != ".." ]]; then | |
3023 | x="$x $l.$t" | |
3024 | fi | |
3025 | done | |
3026 | echo "lang.$t: $x" >> Make-hooks | |
3027 | done | |
3028 | ||
296e46bd DE |
3029 | # If we're not building in srcdir, create .gdbinit. |
3030 | ||
3031 | if [[ ! -f Makefile.in ]]; then | |
3032 | echo "dir ." > .gdbinit | |
3033 | echo "dir ${srcdir}" >> .gdbinit | |
3034 | if [[ x$gdb_needs_out_file_path = xyes ]] | |
3035 | then | |
3036 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
3037 | fi | |
3038 | if [[ "x$subdirs" != x ]]; then | |
3039 | for s in $subdirs | |
3040 | do | |
3041 | echo "dir ${srcdir}/$s" >> .gdbinit | |
3042 | done | |
3043 | fi | |
3044 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
3045 | fi | |
3046 | ||
8c660648 JL |
3047 | # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler. |
3048 | sched_prefix= | |
3049 | sched_cflags= | |
3050 | if [[ x$enable_haifa = xyes ]]; then | |
3051 | echo "Using the Haifa scheduler." | |
3052 | sched_prefix=haifa- | |
3053 | sched_cflags=-DHAIFA | |
3054 | fi | |
3055 | AC_SUBST(sched_prefix) | |
3056 | AC_SUBST(sched_cflags) | |
3057 | if [[ x$enable_haifa != x ]]; then | |
3058 | # Explicitly remove files that need to be recompiled for the Haifa scheduler. | |
3059 | for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do | |
992d1248 | 3060 | if [[ -f $x ]]; then |
8c660648 JL |
3061 | echo "Removing $x" |
3062 | rm -f $x | |
3063 | fi | |
3064 | done | |
3065 | fi | |
3066 | ||
94f42018 DE |
3067 | # Process the language and host/target makefile fragments. |
3068 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
47866ac0 | 3069 | |
46f18e7b RK |
3070 | # Substitute configuration variables |
3071 | AC_SUBST(subdirs) | |
3072 | AC_SUBST(all_languages) | |
3073 | AC_SUBST(all_boot_languages) | |
3074 | AC_SUBST(all_compilers) | |
3075 | AC_SUBST(all_lang_makefiles) | |
3076 | AC_SUBST(all_stagestuff) | |
3077 | AC_SUBST(all_diff_excludes) | |
3078 | AC_SUBST(all_lib2funcs) | |
3079 | AC_SUBST(all_headers) | |
3080 | AC_SUBST(extra_passes) | |
3081 | AC_SUBST(extra_programs) | |
3082 | AC_SUBST(extra_parts) | |
b4294351 PB |
3083 | AC_SUBST(extra_c_objs) |
3084 | AC_SUBST(extra_c_flags) | |
46f18e7b RK |
3085 | AC_SUBST(extra_objs) |
3086 | AC_SUBST(host_extra_gcc_objs) | |
3087 | AC_SUBST(extra_headers_list) | |
3088 | AC_SUBST(dep_host_xmake_file) | |
3089 | AC_SUBST(dep_tmake_file) | |
3090 | AC_SUBST(out_file) | |
3091 | AC_SUBST(out_object_file) | |
3092 | AC_SUBST(md_file) | |
3093 | AC_SUBST(tm_file_list) | |
3094 | AC_SUBST(build_xm_file_list) | |
3095 | AC_SUBST(host_xm_file_list) | |
3096 | AC_SUBST(lang_specs_files) | |
3097 | AC_SUBST(lang_options_files) | |
0bbb1697 | 3098 | AC_SUBST(thread_file) |
46f18e7b RK |
3099 | AC_SUBST(version) |
3100 | AC_SUBST(local_prefix) | |
9514f0d1 | 3101 | AC_SUBST(gxx_include_dir) |
46f18e7b RK |
3102 | AC_SUBST(fixincludes) |
3103 | AC_SUBST(build_install_headers_dir) | |
a204adc6 | 3104 | AC_SUBST(build_exeext) |
46f18e7b RK |
3105 | AC_SUBST(float_format) |
3106 | AC_SUBST(will_use_collect2) | |
3107 | AC_SUBST(maybe_use_collect2) | |
3108 | AC_SUBST(cc_set_by_configure) | |
3109 | AC_SUBST(stage_prefix_set_by_configure) | |
3110 | ||
3111 | AC_SUBST_FILE(target_overrides) | |
3112 | AC_SUBST_FILE(host_overrides) | |
3113 | AC_SUBST(cross_defines) | |
3114 | AC_SUBST_FILE(cross_overrides) | |
3115 | AC_SUBST_FILE(build_overrides) | |
3116 | AC_SUBST_FILE(language_fragments) | |
3117 | AC_SUBST_FILE(language_hooks) | |
3118 | ||
3119 | # Echo that links are built | |
3120 | if [[ x$host = x$target ]] | |
3121 | then | |
3122 | str1="native " | |
3123 | else | |
3124 | str1="cross-" | |
3125 | str2=" from $host" | |
3126 | fi | |
3127 | ||
3128 | if [[ x$host != x$build ]] | |
3129 | then | |
3130 | str3=" on a $build system" | |
3131 | fi | |
3132 | ||
3133 | if [[ "x$str2" != x ]] || [[ "x$str3" != x ]] | |
3134 | then | |
3135 | str4= | |
3136 | fi | |
3137 | ||
3138 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
3139 | ||
3140 | if [[ "x$str2" != x ]] || [[ "x$str3" != x ]] | |
3141 | then | |
3142 | echo " ${str2}${str3}." 1>&2 | |
3143 | fi | |
3144 | ||
3145 | # Configure the subdirectories | |
3146 | # AC_CONFIG_SUBDIRS($subdirs) | |
3147 | ||
3148 | # Create the Makefile | |
5891b37d | 3149 | # and configure language subdirectories |
0280cf84 | 3150 | AC_OUTPUT($all_outputs, |
cdcc6a01 DE |
3151 | [ |
3152 | . $srcdir/configure.lang | |
3153 | case x$CONFIG_HEADERS in | |
3154 | xconfig.h:config.in) | |
818b66cc | 3155 | echo > cstamp-h ;; |
cdcc6a01 DE |
3156 | esac |
3157 | ], | |
3158 | [ | |
5891b37d RK |
3159 | host='${host}' |
3160 | build='${build}' | |
3161 | target='${target}' | |
52060267 | 3162 | target_alias='${target_alias}' |
5891b37d RK |
3163 | srcdir='${srcdir}' |
3164 | subdirs='${subdirs}' | |
296e46bd | 3165 | oldstyle_subdirs='${oldstyle_subdirs}' |
5891b37d RK |
3166 | symbolic_link='${symbolic_link}' |
3167 | program_transform_set='${program_transform_set}' | |
3168 | program_transform_name='${program_transform_name}' | |
5891b37d RK |
3169 | dep_host_xmake_file='${dep_host_xmake_file}' |
3170 | host_xmake_file='${host_xmake_file}' | |
3171 | dep_tmake_file='${dep_tmake_file}' | |
3172 | tmake_file='${tmake_file}' | |
0bbb1697 | 3173 | thread_file='${thread_file}' |
5891b37d RK |
3174 | version='${version}' |
3175 | local_prefix='${local_prefix}' | |
5891b37d | 3176 | build_install_headers_dir='${build_install_headers_dir}' |
a204adc6 | 3177 | build_exeext='${build_exeext}' |
7ed46111 | 3178 | out_file='${out_file}' |
5891b37d RK |
3179 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
3180 | SET_MAKE='${SET_MAKE}' | |
5891b37d | 3181 | target_list='${target_list}' |
5891b37d RK |
3182 | target_overrides='${target_overrides}' |
3183 | host_overrides='${host_overrides}' | |
3184 | cross_defines='${cross_defines}' | |
3185 | cross_overrides='${cross_overrides}' | |
3186 | build_overrides='${build_overrides}' | |
cdcc6a01 | 3187 | ]) |