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