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