* except.c (expand_start_all_catch): One more do_pending_stack_adjust.
[official-gcc.git] / gcc / configure
blobac773c77b578d660b94d230fb1ebb3cd06a2ea55
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-gnu-ld arrange to work with GNU ld."
16 ac_help="$ac_help
17 --with-gnu-as arrange to work with GNU as."
18 ac_help="$ac_help
19 --with-stabs arrange to use stabs instead of host debug format."
20 ac_help="$ac_help
21 --with-elf arrange to use ELF instead of host debug format."
22 ac_help="$ac_help
23 --with-local-prefix=DIR specifies directory to put local include."
24 ac_help="$ac_help
25 --with-gxx-include-dir=DIR
26 specifies directory to put g++ header files."
27 ac_help="$ac_help
28 --enable-c-cpplib Use cpplib for C."
29 ac_help="$ac_help
30 --enable-haifa Use the experimental scheduler.
31 --disable-haifa Don't use the experimental scheduler for the
32 targets which normally enable it."
33 ac_help="$ac_help
34 --enable-threads enable thread usage for target GCC.
35 --enable-threads=LIB use LIB thread package for target GCC."
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
40 build=NONE
41 cache_file=./config.cache
42 exec_prefix=NONE
43 host=NONE
44 no_create=
45 nonopt=NONE
46 no_recursion=
47 prefix=NONE
48 program_prefix=NONE
49 program_suffix=NONE
50 program_transform_name=s,x,x,
51 silent=
52 site=
53 srcdir=
54 target=NONE
55 verbose=
56 x_includes=NONE
57 x_libraries=NONE
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
72 subdirs=
73 MFLAGS= MAKEFLAGS=
74 # Maximum number of lines to put in a shell here document.
75 ac_max_here_lines=12
77 ac_prev=
78 for ac_option
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
84 ac_prev=
85 continue
88 case "$ac_option" in
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 *) ac_optarg= ;;
91 esac
93 # Accept the important Cygnus configure options, so we can diagnose typos.
95 case "$ac_option" in
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 ac_prev=bindir ;;
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
102 -build | --build | --buil | --bui | --bu)
103 ac_prev=build ;;
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 ac_prev=datadir ;;
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 | --da=*)
118 datadir="$ac_optarg" ;;
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 case "$ac_option" in
137 *=*) ;;
138 *) ac_optarg=yes ;;
139 esac
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
153 with_gas=yes ;;
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
158 cat << EOF
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
161 Configuration:
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
169 [$ac_default_prefix]
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 [same as prefix]
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
176 [PREFIX/share]
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 [PREFIX/com]
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
192 cat << EOF
193 Host type:
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
208 exit 0 ;;
210 -host | --host | --hos | --ho)
211 ac_prev=host ;;
212 -host=* | --host=* | --hos=* | --ho=*)
213 host="$ac_optarg" ;;
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 ac_prev=infodir ;;
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
227 -libdir | --libdir | --libdi | --libd)
228 ac_prev=libdir ;;
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 ac_prev=mandir ;;
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
253 -nfp | --nfp | --nf)
254 # Obsolete; use --without-fp.
255 with_fp=no ;;
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 | --no-cr | --no-c)
259 no_create=yes ;;
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 no_recursion=yes ;;
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 ac_prev=prefix ;;
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name="$ac_optarg" ;;
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
312 silent=yes ;;
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 ac_prev=sbindir ;;
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 | --sbi=* | --sb=*)
318 sbindir="$ac_optarg" ;;
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
323 | --sha | --sh)
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 | --sha=* | --sh=*)
329 sharedstatedir="$ac_optarg" ;;
331 -site | --site | --sit)
332 ac_prev=site ;;
333 -site=* | --site=* | --sit=*)
334 site="$ac_optarg" ;;
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 ac_prev=srcdir ;;
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
348 -target | --target | --targe | --targ | --tar | --ta | --t)
349 ac_prev=target ;;
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 verbose=yes ;;
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.12"
358 exit 0 ;;
360 -with-* | --with-*)
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 case "$ac_option" in
368 *=*) ;;
369 *) ac_optarg=yes ;;
370 esac
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
382 --x)
383 # Obsolete; use --with-x.
384 with_x=yes ;;
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 nonopt="$ac_option"
413 esac
414 done
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
423 # 0 standard input
424 # 1 file creation
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
431 exec 6>/dev/null
432 else
433 exec 6>&1
435 exec 5>./config.log
437 echo "\
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
440 " 1>&5
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
444 ac_configure_args=
445 for ac_arg
447 case "$ac_arg" in
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 esac
456 done
458 # NLS nuisances.
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 echo > confdefs.h
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file=tree.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
481 ac_prog=$0
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 srcdir=$ac_confdir
485 if test ! -r $srcdir/$ac_unique_file; then
486 srcdir=..
488 else
489 ac_srcdir_defaulted=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 else
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 else
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
511 . "$ac_site_file"
513 done
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
517 . $cache_file
518 else
519 echo "creating cache $cache_file"
520 > $cache_file
523 ac_ext=c
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp='$CPP $CPPFLAGS'
526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533 ac_n= ac_c='
534 ' ac_t=' '
535 else
536 ac_n=-n ac_c= ac_t=
538 else
539 ac_n= ac_c='\c' ac_t=
545 remove=rm
546 hard_link=ln
547 symbolic_link='ln -s'
548 copy=cp
550 # Check for additional parameters
552 # With GNU ld
553 # Check whether --with-gnu-ld or --without-gnu-ld was given.
554 if test "${with_gnu_ld+set}" = set; then
555 withval="$with_gnu_ld"
556 gnu_ld=yes
557 else
558 gnu_ld=no
562 # With GNU as
563 # Check whether --with-gnu-as or --without-gnu-as was given.
564 if test "${with_gnu_as+set}" = set; then
565 withval="$with_gnu_as"
566 gas=yes
567 else
568 gas=no
572 # With stabs
573 # Check whether --with-stabs or --without-stabs was given.
574 if test "${with_stabs+set}" = set; then
575 withval="$with_stabs"
576 stabs=yes
577 else
578 stabs=no
582 # With ELF
583 # Check whether --with-elf or --without-elf was given.
584 if test "${with_elf+set}" = set; then
585 withval="$with_elf"
586 elf=yes
587 else
588 elf=no
592 # Specify the local prefix
593 # Check whether --with-local-prefix or --without-local-prefix was given.
594 if test "${with_local_prefix+set}" = set; then
595 withval="$with_local_prefix"
596 local_prefix=$with_local_prefix
597 else
598 local_prefix=/usr/local
602 # Default local prefix if it is empty
603 if [ x$local_prefix = x ]; then
604 local_prefix=/usr/local
607 # Specify the g++ header file directory
608 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
609 if test "${with_gxx_include_dir+set}" = set; then
610 withval="$with_gxx_include_dir"
611 gxx_include_dir=$with_gxx_include_dir
612 else
613 gxx_include_dir='${prefix}/include/g++'
617 # Default g++ header file directory if it is empty
618 if [ x$gxx_include_dir = x ]; then
619 gxx_include_dir='${prefix}/include/g++'
622 # Enable use of cpplib for C.
623 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
624 if test "${enable_c_cpplib+set}" = set; then
625 enableval="$enable_c_cpplib"
626 if [ x$enable_c_cpplib != xno ]; then
627 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
628 extra_c_flags=-DUSE_CPPLIB=1
633 # Enable Haifa scheduler.
634 # Check whether --enable-haifa or --disable-haifa was given.
635 if test "${enable_haifa+set}" = set; then
636 enableval="$enable_haifa"
641 # Enable threads
642 # Pass with no value to take the default
643 # Pass with a value to specify a thread package
644 # Check whether --enable-threads or --disable-threads was given.
645 if test "${enable_threads+set}" = set; then
646 enableval="$enable_threads"
647 if [ x$enable_threads = xno ]; then
648 enable_threads=''
650 else
651 enable_threads=''
655 # Check if a valid thread package
656 case x${enable_threads} in
657 x | xno)
658 # No threads
659 thread_file='single'
661 xyes)
662 # default
663 thread_file=''
665 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
666 xsolaris | xwin32)
667 thread_file=$enable_threads
670 echo "$enable_threads is an unknown thread package" 1>&2
671 exit 1
673 esac
675 # Determine the host, build, and target systems
676 ac_aux_dir=
677 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
678 if test -f $ac_dir/install-sh; then
679 ac_aux_dir=$ac_dir
680 ac_install_sh="$ac_aux_dir/install-sh -c"
681 break
682 elif test -f $ac_dir/install.sh; then
683 ac_aux_dir=$ac_dir
684 ac_install_sh="$ac_aux_dir/install.sh -c"
685 break
687 done
688 if test -z "$ac_aux_dir"; then
689 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
691 ac_config_guess=$ac_aux_dir/config.guess
692 ac_config_sub=$ac_aux_dir/config.sub
693 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
696 # Do some error checking and defaulting for the host and target type.
697 # The inputs are:
698 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
700 # The rules are:
701 # 1. You are not allowed to specify --host, --target, and nonopt at the
702 # same time.
703 # 2. Host defaults to nonopt.
704 # 3. If nonopt is not specified, then host defaults to the current host,
705 # as determined by config.guess.
706 # 4. Target and build default to nonopt.
707 # 5. If nonopt is not specified, then target and build default to host.
709 # The aliases save the names the user supplied, while $host etc.
710 # will get canonicalized.
711 case $host---$target---$nonopt in
712 NONE---*---* | *---NONE---* | *---*---NONE) ;;
713 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
714 esac
717 # Make sure we can run config.sub.
718 if $ac_config_sub sun4 >/dev/null 2>&1; then :
719 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
722 echo $ac_n "checking host system type""... $ac_c" 1>&6
723 echo "configure:724: checking host system type" >&5
725 host_alias=$host
726 case "$host_alias" in
727 NONE)
728 case $nonopt in
729 NONE)
730 if host_alias=`$ac_config_guess`; then :
731 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
732 fi ;;
733 *) host_alias=$nonopt ;;
734 esac ;;
735 esac
737 host=`$ac_config_sub $host_alias`
738 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
739 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
740 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
741 echo "$ac_t""$host" 1>&6
743 echo $ac_n "checking target system type""... $ac_c" 1>&6
744 echo "configure:745: checking target system type" >&5
746 target_alias=$target
747 case "$target_alias" in
748 NONE)
749 case $nonopt in
750 NONE) target_alias=$host_alias ;;
751 *) target_alias=$nonopt ;;
752 esac ;;
753 esac
755 target=`$ac_config_sub $target_alias`
756 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
757 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
758 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
759 echo "$ac_t""$target" 1>&6
761 echo $ac_n "checking build system type""... $ac_c" 1>&6
762 echo "configure:763: checking build system type" >&5
764 build_alias=$build
765 case "$build_alias" in
766 NONE)
767 case $nonopt in
768 NONE) build_alias=$host_alias ;;
769 *) build_alias=$nonopt ;;
770 esac ;;
771 esac
773 build=`$ac_config_sub $build_alias`
774 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
775 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
776 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
777 echo "$ac_t""$build" 1>&6
779 test "$host_alias" != "$target_alias" &&
780 test "$program_prefix$program_suffix$program_transform_name" = \
781 NONENONEs,x,x, &&
782 program_prefix=${target_alias}-
785 # Find some useful tools
786 for ac_prog in mawk gawk nawk awk
788 # Extract the first word of "$ac_prog", so it can be a program name with args.
789 set dummy $ac_prog; ac_word=$2
790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
791 echo "configure:792: checking for $ac_word" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
794 else
795 if test -n "$AWK"; then
796 ac_cv_prog_AWK="$AWK" # Let the user override the test.
797 else
798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
799 for ac_dir in $PATH; do
800 test -z "$ac_dir" && ac_dir=.
801 if test -f $ac_dir/$ac_word; then
802 ac_cv_prog_AWK="$ac_prog"
803 break
805 done
806 IFS="$ac_save_ifs"
809 AWK="$ac_cv_prog_AWK"
810 if test -n "$AWK"; then
811 echo "$ac_t""$AWK" 1>&6
812 else
813 echo "$ac_t""no" 1>&6
816 test -n "$AWK" && break
817 done
819 # Extract the first word of "flex", so it can be a program name with args.
820 set dummy flex; ac_word=$2
821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
822 echo "configure:823: checking for $ac_word" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
825 else
826 if test -n "$LEX"; then
827 ac_cv_prog_LEX="$LEX" # Let the user override the test.
828 else
829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
830 for ac_dir in $PATH; do
831 test -z "$ac_dir" && ac_dir=.
832 if test -f $ac_dir/$ac_word; then
833 ac_cv_prog_LEX="flex"
834 break
836 done
837 IFS="$ac_save_ifs"
838 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
841 LEX="$ac_cv_prog_LEX"
842 if test -n "$LEX"; then
843 echo "$ac_t""$LEX" 1>&6
844 else
845 echo "$ac_t""no" 1>&6
848 if test -z "$LEXLIB"
849 then
850 case "$LEX" in
851 flex*) ac_lib=fl ;;
852 *) ac_lib=l ;;
853 esac
854 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
855 echo "configure:856: checking for yywrap in -l$ac_lib" >&5
856 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
858 echo $ac_n "(cached) $ac_c" 1>&6
859 else
860 ac_save_LIBS="$LIBS"
861 LIBS="-l$ac_lib $LIBS"
862 cat > conftest.$ac_ext <<EOF
863 #line 864 "configure"
864 #include "confdefs.h"
865 /* Override any gcc2 internal prototype to avoid an error. */
866 /* We use char because int might match the return type of a gcc2
867 builtin and then its argument prototype would still apply. */
868 char yywrap();
870 int main() {
871 yywrap()
872 ; return 0; }
874 if { (eval echo configure:875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
875 rm -rf conftest*
876 eval "ac_cv_lib_$ac_lib_var=yes"
877 else
878 echo "configure: failed program was:" >&5
879 cat conftest.$ac_ext >&5
880 rm -rf conftest*
881 eval "ac_cv_lib_$ac_lib_var=no"
883 rm -f conftest*
884 LIBS="$ac_save_LIBS"
887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
888 echo "$ac_t""yes" 1>&6
889 LEXLIB="-l$ac_lib"
890 else
891 echo "$ac_t""no" 1>&6
896 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
897 echo "configure:898: checking whether ln works" >&5
898 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
900 else
901 rm -f conftestdata_t
902 echo >conftestdata_f
903 if ln conftestdata_f conftestdata_t 2>/dev/null
904 then
905 gcc_cv_prog_LN="ln"
906 else
907 if ln -s conftestdata_f conftestdata_t 2>/dev/null
908 then
909 gcc_cv_prog_LN="ln -s"
910 else
911 gcc_cv_prog_LN=cp
914 rm -f conftestdata_f conftestdata_t
917 LN="$gcc_cv_prog_LN"
918 if test "$gcc_cv_prog_LN" = "ln"; then
919 echo "$ac_t""yes" 1>&6
920 else
921 if test "$gcc_cv_prog_LN" = "ln -s"; then
922 echo "$ac_t""no, using ln -s" 1>&6
923 else
924 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
928 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
929 echo "configure:930: checking whether ln -s works" >&5
930 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
932 else
933 rm -f conftestdata_t
934 echo >conftestdata_f
935 if ln -s conftestdata_f conftestdata_t 2>/dev/null
936 then
937 gcc_cv_prog_LN_S="ln -s"
938 else
939 if ln conftestdata_f conftestdata_t 2>/dev/null
940 then
941 gcc_cv_prog_LN_S=ln
942 else
943 gcc_cv_prog_LN_S=cp
946 rm -f conftestdata_f conftestdata_t
949 LN_S="$gcc_cv_prog_LN_S"
950 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
951 echo "$ac_t""yes" 1>&6
952 else
953 if test "$gcc_cv_prog_LN_S" = "ln"; then
954 echo "$ac_t""no, using ln" 1>&6
955 else
956 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
960 # Extract the first word of "ranlib", so it can be a program name with args.
961 set dummy ranlib; ac_word=$2
962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
963 echo "configure:964: checking for $ac_word" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
966 else
967 if test -n "$RANLIB"; then
968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
969 else
970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
971 for ac_dir in $PATH; do
972 test -z "$ac_dir" && ac_dir=.
973 if test -f $ac_dir/$ac_word; then
974 ac_cv_prog_RANLIB="ranlib"
975 break
977 done
978 IFS="$ac_save_ifs"
979 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
982 RANLIB="$ac_cv_prog_RANLIB"
983 if test -n "$RANLIB"; then
984 echo "$ac_t""$RANLIB" 1>&6
985 else
986 echo "$ac_t""no" 1>&6
989 for ac_prog in 'bison -y' byacc
991 # Extract the first word of "$ac_prog", so it can be a program name with args.
992 set dummy $ac_prog; ac_word=$2
993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
994 echo "configure:995: checking for $ac_word" >&5
995 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
997 else
998 if test -n "$YACC"; then
999 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1000 else
1001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1002 for ac_dir in $PATH; do
1003 test -z "$ac_dir" && ac_dir=.
1004 if test -f $ac_dir/$ac_word; then
1005 ac_cv_prog_YACC="$ac_prog"
1006 break
1008 done
1009 IFS="$ac_save_ifs"
1012 YACC="$ac_cv_prog_YACC"
1013 if test -n "$YACC"; then
1014 echo "$ac_t""$YACC" 1>&6
1015 else
1016 echo "$ac_t""no" 1>&6
1019 test -n "$YACC" && break
1020 done
1021 test -n "$YACC" || YACC="yacc"
1023 # Find a good install program. We prefer a C program (faster),
1024 # so one script is as good as another. But avoid the broken or
1025 # incompatible versions:
1026 # SysV /etc/install, /usr/sbin/install
1027 # SunOS /usr/etc/install
1028 # IRIX /sbin/install
1029 # AIX /bin/install
1030 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1031 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1032 # ./install, which can be erroneously created by make from ./install.sh.
1033 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1034 echo "configure:1035: checking for a BSD compatible install" >&5
1035 if test -z "$INSTALL"; then
1036 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1038 else
1039 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1040 for ac_dir in $PATH; do
1041 # Account for people who put trailing slashes in PATH elements.
1042 case "$ac_dir/" in
1043 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1045 # OSF1 and SCO ODT 3.0 have their own names for install.
1046 for ac_prog in ginstall scoinst install; do
1047 if test -f $ac_dir/$ac_prog; then
1048 if test $ac_prog = install &&
1049 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1050 # AIX install. It has an incompatible calling convention.
1051 # OSF/1 installbsd also uses dspmsg, but is usable.
1053 else
1054 ac_cv_path_install="$ac_dir/$ac_prog -c"
1055 break 2
1058 done
1060 esac
1061 done
1062 IFS="$ac_save_IFS"
1065 if test "${ac_cv_path_install+set}" = set; then
1066 INSTALL="$ac_cv_path_install"
1067 else
1068 # As a last resort, use the slow shell script. We don't cache a
1069 # path for INSTALL within a source directory, because that will
1070 # break other packages using the cache if that directory is
1071 # removed, or if the path is relative.
1072 INSTALL="$ac_install_sh"
1075 echo "$ac_t""$INSTALL" 1>&6
1077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1078 # It thinks the first close brace ends the variable substitution.
1079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1081 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1084 # Find the native compiler
1085 # Extract the first word of "gcc", so it can be a program name with args.
1086 set dummy gcc; ac_word=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1091 else
1092 if test -n "$CC"; then
1093 ac_cv_prog_CC="$CC" # Let the user override the test.
1094 else
1095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1096 for ac_dir in $PATH; do
1097 test -z "$ac_dir" && ac_dir=.
1098 if test -f $ac_dir/$ac_word; then
1099 ac_cv_prog_CC="gcc"
1100 break
1102 done
1103 IFS="$ac_save_ifs"
1106 CC="$ac_cv_prog_CC"
1107 if test -n "$CC"; then
1108 echo "$ac_t""$CC" 1>&6
1109 else
1110 echo "$ac_t""no" 1>&6
1113 if test -z "$CC"; then
1114 # Extract the first word of "cc", so it can be a program name with args.
1115 set dummy cc; ac_word=$2
1116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1117 echo "configure:1118: checking for $ac_word" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1120 else
1121 if test -n "$CC"; then
1122 ac_cv_prog_CC="$CC" # Let the user override the test.
1123 else
1124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1125 ac_prog_rejected=no
1126 for ac_dir in $PATH; do
1127 test -z "$ac_dir" && ac_dir=.
1128 if test -f $ac_dir/$ac_word; then
1129 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1130 ac_prog_rejected=yes
1131 continue
1133 ac_cv_prog_CC="cc"
1134 break
1136 done
1137 IFS="$ac_save_ifs"
1138 if test $ac_prog_rejected = yes; then
1139 # We found a bogon in the path, so make sure we never use it.
1140 set dummy $ac_cv_prog_CC
1141 shift
1142 if test $# -gt 0; then
1143 # We chose a different compiler from the bogus one.
1144 # However, it has the same basename, so the bogon will be chosen
1145 # first if we set CC to just the basename; use the full file name.
1146 shift
1147 set dummy "$ac_dir/$ac_word" "$@"
1148 shift
1149 ac_cv_prog_CC="$@"
1154 CC="$ac_cv_prog_CC"
1155 if test -n "$CC"; then
1156 echo "$ac_t""$CC" 1>&6
1157 else
1158 echo "$ac_t""no" 1>&6
1161 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1164 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1165 echo "configure:1166: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1167 ac_ext=c
1168 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1169 ac_cpp='$CPP $CPPFLAGS'
1170 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1171 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1172 cross_compiling=$ac_cv_prog_cc_cross
1174 cat > conftest.$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1177 main(){return(0);}
1179 if { (eval echo configure:1180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1180 ac_cv_prog_cc_works=yes
1181 # If we can't run a trivial program, we are probably using a cross compiler.
1182 if (./conftest; exit) 2>/dev/null; then
1183 ac_cv_prog_cc_cross=no
1184 else
1185 ac_cv_prog_cc_cross=yes
1187 else
1188 echo "configure: failed program was:" >&5
1189 cat conftest.$ac_ext >&5
1190 ac_cv_prog_cc_works=no
1192 rm -fr conftest*
1194 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1195 if test $ac_cv_prog_cc_works = no; then
1196 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1198 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1200 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1201 cross_compiling=$ac_cv_prog_cc_cross
1203 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1204 echo "configure:1205: checking whether we are using GNU C" >&5
1205 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1207 else
1208 cat > conftest.c <<EOF
1209 #ifdef __GNUC__
1210 yes;
1211 #endif
1213 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1214 ac_cv_prog_gcc=yes
1215 else
1216 ac_cv_prog_gcc=no
1220 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1222 if test $ac_cv_prog_gcc = yes; then
1223 GCC=yes
1224 ac_test_CFLAGS="${CFLAGS+set}"
1225 ac_save_CFLAGS="$CFLAGS"
1226 CFLAGS=
1227 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1228 echo "configure:1229: checking whether ${CC-cc} accepts -g" >&5
1229 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1231 else
1232 echo 'void f(){}' > conftest.c
1233 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1234 ac_cv_prog_cc_g=yes
1235 else
1236 ac_cv_prog_cc_g=no
1238 rm -f conftest*
1242 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1243 if test "$ac_test_CFLAGS" = set; then
1244 CFLAGS="$ac_save_CFLAGS"
1245 elif test $ac_cv_prog_cc_g = yes; then
1246 CFLAGS="-g -O2"
1247 else
1248 CFLAGS="-O2"
1250 else
1251 GCC=
1252 test "${CFLAGS+set}" = set || CFLAGS="-g"
1255 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1256 echo "configure:1257: checking whether ${MAKE-make} sets \${MAKE}" >&5
1257 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1258 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1260 else
1261 cat > conftestmake <<\EOF
1262 all:
1263 @echo 'ac_maketemp="${MAKE}"'
1265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1266 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1267 if test -n "$ac_maketemp"; then
1268 eval ac_cv_prog_make_${ac_make}_set=yes
1269 else
1270 eval ac_cv_prog_make_${ac_make}_set=no
1272 rm -f conftestmake
1274 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1275 echo "$ac_t""yes" 1>&6
1276 SET_MAKE=
1277 else
1278 echo "$ac_t""no" 1>&6
1279 SET_MAKE="MAKE=${MAKE-make}"
1283 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1284 echo "configure:1285: checking how to run the C preprocessor" >&5
1285 # On Suns, sometimes $CPP names a directory.
1286 if test -n "$CPP" && test -d "$CPP"; then
1287 CPP=
1289 if test -z "$CPP"; then
1290 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1292 else
1293 # This must be in double quotes, not single quotes, because CPP may get
1294 # substituted into the Makefile and "${CC-cc}" will confuse make.
1295 CPP="${CC-cc} -E"
1296 # On the NeXT, cc -E runs the code through the compiler's parser,
1297 # not just through cpp.
1298 cat > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1301 #include <assert.h>
1302 Syntax Error
1304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1305 { (eval echo configure:1306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1306 ac_err=`grep -v '^ *+' conftest.out`
1307 if test -z "$ac_err"; then
1309 else
1310 echo "$ac_err" >&5
1311 echo "configure: failed program was:" >&5
1312 cat conftest.$ac_ext >&5
1313 rm -rf conftest*
1314 CPP="${CC-cc} -E -traditional-cpp"
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1318 #include <assert.h>
1319 Syntax Error
1321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1322 { (eval echo configure:1323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1323 ac_err=`grep -v '^ *+' conftest.out`
1324 if test -z "$ac_err"; then
1326 else
1327 echo "$ac_err" >&5
1328 echo "configure: failed program was:" >&5
1329 cat conftest.$ac_ext >&5
1330 rm -rf conftest*
1331 CPP=/lib/cpp
1333 rm -f conftest*
1335 rm -f conftest*
1336 ac_cv_prog_CPP="$CPP"
1338 CPP="$ac_cv_prog_CPP"
1339 else
1340 ac_cv_prog_CPP="$CPP"
1342 echo "$ac_t""$CPP" 1>&6
1344 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h varargs.h sys/varargs.h
1346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1348 echo "configure:1349: checking for $ac_hdr" >&5
1349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1351 else
1352 cat > conftest.$ac_ext <<EOF
1353 #line 1354 "configure"
1354 #include "confdefs.h"
1355 #include <$ac_hdr>
1357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1358 { (eval echo configure:1359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1359 ac_err=`grep -v '^ *+' conftest.out`
1360 if test -z "$ac_err"; then
1361 rm -rf conftest*
1362 eval "ac_cv_header_$ac_safe=yes"
1363 else
1364 echo "$ac_err" >&5
1365 echo "configure: failed program was:" >&5
1366 cat conftest.$ac_ext >&5
1367 rm -rf conftest*
1368 eval "ac_cv_header_$ac_safe=no"
1370 rm -f conftest*
1372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1373 echo "$ac_t""yes" 1>&6
1374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1375 cat >> confdefs.h <<EOF
1376 #define $ac_tr_hdr 1
1379 else
1380 echo "$ac_t""no" 1>&6
1382 done
1385 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
1386 echo "configure:1387: checking whether malloc must be declared" >&5
1387 if eval "test \"`echo '$''{'gcc_cv_decl_needed_malloc'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1389 else
1390 cat > conftest.$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1394 #include <stdio.h>
1395 #ifdef HAVE_STRING_H
1396 #include <string.h>
1397 #else
1398 #ifdef HAVE_STRINGS_H
1399 #include <strings.h>
1400 #endif
1401 #endif
1402 #ifdef HAVE_STDLIB_H
1403 #include <stdlib.h>
1404 #endif
1405 #ifdef HAVE_UNISTD_H
1406 #include <unistd.h>
1407 #endif
1408 int main() {
1409 char *(*pfn) = (char *(*)) malloc
1410 ; return 0; }
1412 if { (eval echo configure:1413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1413 rm -rf conftest*
1414 gcc_cv_decl_needed_malloc=no
1415 else
1416 echo "configure: failed program was:" >&5
1417 cat conftest.$ac_ext >&5
1418 rm -rf conftest*
1419 gcc_cv_decl_needed_malloc=yes
1421 rm -f conftest*
1424 echo "$ac_t""$gcc_cv_decl_needed_malloc" 1>&6
1425 if test $gcc_cv_decl_needed_malloc = yes; then
1426 gcc_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1427 cat >> confdefs.h <<EOF
1428 #define $gcc_tr_decl 1
1433 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
1434 echo "configure:1435: checking whether realloc must be declared" >&5
1435 if eval "test \"`echo '$''{'gcc_cv_decl_needed_realloc'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1437 else
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1442 #include <stdio.h>
1443 #ifdef HAVE_STRING_H
1444 #include <string.h>
1445 #else
1446 #ifdef HAVE_STRINGS_H
1447 #include <strings.h>
1448 #endif
1449 #endif
1450 #ifdef HAVE_STDLIB_H
1451 #include <stdlib.h>
1452 #endif
1453 #ifdef HAVE_UNISTD_H
1454 #include <unistd.h>
1455 #endif
1456 int main() {
1457 char *(*pfn) = (char *(*)) realloc
1458 ; return 0; }
1460 if { (eval echo configure:1461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1461 rm -rf conftest*
1462 gcc_cv_decl_needed_realloc=no
1463 else
1464 echo "configure: failed program was:" >&5
1465 cat conftest.$ac_ext >&5
1466 rm -rf conftest*
1467 gcc_cv_decl_needed_realloc=yes
1469 rm -f conftest*
1472 echo "$ac_t""$gcc_cv_decl_needed_realloc" 1>&6
1473 if test $gcc_cv_decl_needed_realloc = yes; then
1474 gcc_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1475 cat >> confdefs.h <<EOF
1476 #define $gcc_tr_decl 1
1481 echo $ac_n "checking whether calloc must be declared""... $ac_c" 1>&6
1482 echo "configure:1483: checking whether calloc must be declared" >&5
1483 if eval "test \"`echo '$''{'gcc_cv_decl_needed_calloc'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1485 else
1486 cat > conftest.$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1490 #include <stdio.h>
1491 #ifdef HAVE_STRING_H
1492 #include <string.h>
1493 #else
1494 #ifdef HAVE_STRINGS_H
1495 #include <strings.h>
1496 #endif
1497 #endif
1498 #ifdef HAVE_STDLIB_H
1499 #include <stdlib.h>
1500 #endif
1501 #ifdef HAVE_UNISTD_H
1502 #include <unistd.h>
1503 #endif
1504 int main() {
1505 char *(*pfn) = (char *(*)) calloc
1506 ; return 0; }
1508 if { (eval echo configure:1509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1509 rm -rf conftest*
1510 gcc_cv_decl_needed_calloc=no
1511 else
1512 echo "configure: failed program was:" >&5
1513 cat conftest.$ac_ext >&5
1514 rm -rf conftest*
1515 gcc_cv_decl_needed_calloc=yes
1517 rm -f conftest*
1520 echo "$ac_t""$gcc_cv_decl_needed_calloc" 1>&6
1521 if test $gcc_cv_decl_needed_calloc = yes; then
1522 gcc_tr_decl=NEED_DECLARATION_`echo calloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1523 cat >> confdefs.h <<EOF
1524 #define $gcc_tr_decl 1
1529 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
1530 echo "configure:1531: checking whether free must be declared" >&5
1531 if eval "test \"`echo '$''{'gcc_cv_decl_needed_free'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1533 else
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1538 #include <stdio.h>
1539 #ifdef HAVE_STRING_H
1540 #include <string.h>
1541 #else
1542 #ifdef HAVE_STRINGS_H
1543 #include <strings.h>
1544 #endif
1545 #endif
1546 #ifdef HAVE_STDLIB_H
1547 #include <stdlib.h>
1548 #endif
1549 #ifdef HAVE_UNISTD_H
1550 #include <unistd.h>
1551 #endif
1552 int main() {
1553 char *(*pfn) = (char *(*)) free
1554 ; return 0; }
1556 if { (eval echo configure:1557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1557 rm -rf conftest*
1558 gcc_cv_decl_needed_free=no
1559 else
1560 echo "configure: failed program was:" >&5
1561 cat conftest.$ac_ext >&5
1562 rm -rf conftest*
1563 gcc_cv_decl_needed_free=yes
1565 rm -f conftest*
1568 echo "$ac_t""$gcc_cv_decl_needed_free" 1>&6
1569 if test $gcc_cv_decl_needed_free = yes; then
1570 gcc_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1571 cat >> confdefs.h <<EOF
1572 #define $gcc_tr_decl 1
1578 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
1579 echo "configure:1580: checking for sys_siglist declaration in signal.h or unistd.h" >&5
1580 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1582 else
1583 cat > conftest.$ac_ext <<EOF
1584 #line 1585 "configure"
1585 #include "confdefs.h"
1586 #include <sys/types.h>
1587 #include <signal.h>
1588 /* NetBSD declares sys_siglist in unistd.h. */
1589 #ifdef HAVE_UNISTD_H
1590 #include <unistd.h>
1591 #endif
1592 int main() {
1593 char *msg = *(sys_siglist + 1);
1594 ; return 0; }
1596 if { (eval echo configure:1597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1597 rm -rf conftest*
1598 ac_cv_decl_sys_siglist=yes
1599 else
1600 echo "configure: failed program was:" >&5
1601 cat conftest.$ac_ext >&5
1602 rm -rf conftest*
1603 ac_cv_decl_sys_siglist=no
1605 rm -f conftest*
1608 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
1609 if test $ac_cv_decl_sys_siglist = yes; then
1610 cat >> confdefs.h <<\EOF
1611 #define SYS_SIGLIST_DECLARED 1
1617 for ac_func in strerror strtoul bsearch
1619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1620 echo "configure:1621: checking for $ac_func" >&5
1621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1623 else
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 /* System header to define __stub macros and hopefully few prototypes,
1628 which can conflict with char $ac_func(); below. */
1629 #include <assert.h>
1630 /* Override any gcc2 internal prototype to avoid an error. */
1631 /* We use char because int might match the return type of a gcc2
1632 builtin and then its argument prototype would still apply. */
1633 char $ac_func();
1635 int main() {
1637 /* The GNU C library defines this for functions which it implements
1638 to always fail with ENOSYS. Some functions are actually named
1639 something starting with __ and the normal name is an alias. */
1640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1641 choke me
1642 #else
1643 $ac_func();
1644 #endif
1646 ; return 0; }
1648 if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1649 rm -rf conftest*
1650 eval "ac_cv_func_$ac_func=yes"
1651 else
1652 echo "configure: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1654 rm -rf conftest*
1655 eval "ac_cv_func_$ac_func=no"
1657 rm -f conftest*
1660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1661 echo "$ac_t""yes" 1>&6
1662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1663 cat >> confdefs.h <<EOF
1664 #define $ac_tr_func 1
1667 else
1668 echo "$ac_t""no" 1>&6
1670 done
1673 # File extensions
1674 manext='.1'
1675 objext='.o'
1679 build_xm_file=
1680 build_install_headers_dir=install-headers-tar
1681 build_exeext=
1682 host_xm_file=
1683 host_xmake_file=
1684 host_truncate_target=
1686 # Decode the host machine, then the target machine.
1687 # For the host machine, we save the xm_file variable as host_xm_file;
1688 # then we decode the target machine and forget everything else
1689 # that came from the host machine.
1690 for machine in $build $host $target; do
1692 out_file=
1693 xmake_file=
1694 tmake_file=
1695 extra_headers=
1696 extra_passes=
1697 extra_parts=
1698 extra_programs=
1699 extra_objs=
1700 extra_host_objs=
1701 extra_gcc_objs=
1702 float_format=
1703 # Set this to force installation and use of collect2.
1704 use_collect2=
1705 # Set this to override the default target model.
1706 target_cpu_default=
1707 # Set this to control which fixincludes program to use.
1708 fixincludes=fixincludes
1709 # Set this to control how the header file directory is installed.
1710 install_headers_dir=install-headers-tar
1711 # Set this to a non-empty list of args to pass to cpp if the target
1712 # wants its .md file passed through cpp.
1713 md_cppflags=
1714 # Set this if directory names should be truncated to 14 characters.
1715 truncate_target=
1716 # Set this if gdb needs a dir command with `dirname $out_file`
1717 gdb_needs_out_file_path=
1718 # Set this if the build machine requires executables to have a
1719 # file name suffix.
1720 exeext=
1722 # Set default cpu_type, tm_file and xm_file so it can be updated in
1723 # each machine entry.
1724 cpu_type=`echo $machine | sed 's/-.*$//'`
1725 case $machine in
1726 alpha*-*-*)
1727 cpu_type=alpha
1729 arm*-*-*)
1730 cpu_type=arm
1732 c*-convex-*)
1733 cpu_type=convex
1735 i[3456]86-*-*)
1736 cpu_type=i386
1738 hppa*-*-*)
1739 cpu_type=pa
1741 m68000-*-*)
1742 cpu_type=m68k
1744 mips*-*-*)
1745 cpu_type=mips
1747 powerpc*-*-*)
1748 cpu_type=rs6000
1750 pyramid-*-*)
1751 cpu_type=pyr
1753 sparc*-*-*)
1754 cpu_type=sparc
1756 esac
1758 tm_file=${cpu_type}/${cpu_type}.h
1759 xm_file=${cpu_type}/xm-${cpu_type}.h
1761 case $machine in
1762 # Support site-specific machine types.
1763 *local*)
1764 cpu_type=`echo $machine | sed -e 's/-.*//'`
1765 rest=`echo $machine | sed -e "s/$cpu_type-//"`
1766 xm_file=${cpu_type}/xm-$rest.h
1767 tm_file=${cpu_type}/$rest.h
1768 if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \
1769 then xmake_file=${cpu_type}/x-$rest; \
1770 else true; \
1772 if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
1773 then tmake_file=${cpu_type}/t-$rest; \
1774 else true; \
1777 1750a-*-*)
1779 a29k-*-bsd* | a29k-*-sym1*)
1780 tm_file="${tm_file} a29k/unix.h"
1781 xm_file=a29k/xm-unix.h
1782 xmake_file=a29k/x-unix
1783 use_collect2=yes
1785 a29k-*-udi | a29k-*-coff)
1786 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
1787 tmake_file=a29k/t-a29kbare
1789 a29k-*-vxworks*)
1790 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
1791 tmake_file=a29k/t-vx29k
1792 extra_parts="crtbegin.o crtend.o"
1794 a29k-*-*) # Default a29k environment.
1795 use_collect2=yes
1797 alpha*-*-linux-gnuecoff*)
1798 tm_file="${tm_file} alpha/linux.h"
1799 xm_file="${xm_file} alpha/xm-linux.h"
1800 target_cpu_default="MASK_GAS"
1801 gas=no
1802 xmake_file=none
1803 fixincludes=Makefile.in
1804 gas=yes gnu_ld=yes
1806 alpha*-*-linux-gnulibc1*)
1807 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
1808 xm_file="${xm_file} alpha/xm-linux.h"
1809 target_cpu_default="MASK_GAS"
1810 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux"
1811 xmake_file=none
1812 fixincludes=Makefile.in
1813 gas=yes gnu_ld=yes
1814 if [ x$enable_threads = xyes ]; then
1815 thread_file='posix'
1818 alpha*-*-linux-gnu*)
1819 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
1820 xm_file="${xm_file} alpha/xm-linux.h"
1821 target_cpu_default="MASK_GAS"
1822 tmake_file="t-linux alpha/t-linux"
1823 xmake_file=none
1824 fixincludes=Makefile.in
1825 gas=yes gnu_ld=yes
1826 if [ x$enable_threads = xyes ]; then
1827 thread_file='posix'
1830 alpha*-dec-osf[456789]*)
1831 if [ x$stabs = xyes ]
1832 then
1833 tm_file="${tm_file} dbx.h"
1835 if [ x$gas != xyes ]
1836 then
1837 extra_passes="mips-tfile mips-tdump"
1839 use_collect2=yes
1840 # Some versions of OSF4 (specifically X4.0-9 296.7) have
1841 # a broken tar, so we use cpio instead.
1842 case $machine in
1843 alpha*-dec-osf4*)
1844 install_headers_dir=install-headers-cpio
1846 esac
1848 alpha*-dec-osf[23]*)
1849 tm_file="${tm_file} alpha/osf2or3.h"
1850 if [ x$stabs = xyes ]
1851 then
1852 tm_file="${tm_file} dbx.h"
1854 if [ x$gas != xyes ]
1855 then
1856 extra_passes="mips-tfile mips-tdump"
1858 use_collect2=yes
1860 alpha*-dec-osf1.2)
1861 tm_file="${tm_file} alpha/osf12.h"
1862 if [ x$stabs = xyes ]
1863 then
1864 tm_file="${tm_file} dbx.h"
1866 if [ x$gas != xyes ]
1867 then
1868 extra_passes="mips-tfile mips-tdump"
1870 use_collect2=yes
1872 alpha*-*-osf*)
1873 if [ x$stabs = xyes ]
1874 then
1875 tm_file="${tm_file} dbx.h"
1877 if [ x$gas != xyes ]
1878 then
1879 extra_passes="mips-tfile mips-tdump"
1881 use_collect2=yes
1883 alpha*-*-winnt3*)
1884 tm_file="${tm_file} alpha/win-nt.h"
1885 target_cpu_default=MASK_WINDOWS_NT
1886 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
1887 tmake_file=t-libc-ok
1888 xmake_file=winnt/x-winnt
1889 extra_host_objs=oldnames.o
1890 extra_gcc_objs="spawnv.o oldnames.o"
1891 fixincludes=fixinc.winnt
1892 if [ x$gnu_ld != xyes ]
1893 then
1894 extra_programs=ld.exe
1896 if [ x$enable_threads = xyes ]; then
1897 thread_file='win32'
1900 alpha*-dec-vms*)
1901 tm_file=alpha/vms.h
1902 xm_file="${xm_file} alpha/xm-vms.h"
1903 tmake_file=alpha/t-vms
1904 fixincludes=Makefile.in
1906 arc-*-elf*)
1907 extra_parts="crtinit.o crtfini.o"
1909 arm-*-coff* | armel-*-coff*)
1910 tm_file=arm/coff.h
1911 tmake_file=arm/t-bare
1913 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
1914 tm_file=arm/riscix1-1.h
1915 use_collect2=yes
1917 arm-*-riscix*) # Acorn RISC machine
1918 if [ x$gas = xyes ]
1919 then
1920 tm_file=arm/rix-gas.h
1921 else
1922 tm_file=arm/riscix.h
1924 xmake_file=arm/x-riscix
1925 tmake_file=arm/t-riscix
1926 use_collect2=yes
1928 arm-semi-aout | armel-semi-aout)
1929 tm_file=arm/semi.h
1930 tmake_file=arm/t-semi
1931 fixincludes=Makefile.in # There is nothing to fix
1933 arm-semi-aof | armel-semi-aof)
1934 tm_file=arm/semiaof.h
1935 tmake_file=arm/t-semiaof
1936 fixincludes=Makefile.in # There is nothing to fix
1938 arm-*-netbsd*)
1939 tm_file=arm/netbsd.h
1940 xm_file=arm/xm-netbsd.h
1941 tmake_file=arm/t-netbsd
1942 # On NetBSD, the headers are already okay, except for math.h.
1943 fixincludes=fixinc.math
1944 use_collect2=yes
1946 arm-*-linux-gnuaout*) # ARM Linux
1947 cpu_type=arm
1948 xm_file=arm/xm-linux.h
1949 xmake_file=x-linux
1950 tm_file=arm/linux-gas.h
1951 tmake_file=arm/t-linux
1952 fixincludes=Makefile.in
1953 gnu_ld=yes
1955 arm-*-aout)
1956 tm_file=arm/aout.h
1958 c1-convex-*) # Convex C1
1959 target_cpu_default=1
1960 use_collect2=yes
1961 fixincludes=Makefile.in
1963 c2-convex-*) # Convex C2
1964 target_cpu_default=2
1965 use_collect2=yes
1966 fixincludes=Makefile.in
1968 c32-convex-*)
1969 target_cpu_default=4
1970 use_collect2=yes
1971 fixincludes=Makefile.in
1973 c34-convex-*)
1974 target_cpu_default=8
1975 use_collect2=yes
1976 fixincludes=Makefile.in
1978 c38-convex-*)
1979 target_cpu_default=16
1980 use_collect2=yes
1981 fixincludes=Makefile.in
1983 clipper-intergraph-clix*)
1984 tm_file="${tm_file} svr3.h clipper/clix.h"
1985 xm_file=clipper/xm-clix.h
1986 xmake_file=clipper/x-clix
1987 extra_headers=va-clipper.h
1988 extra_parts="crtbegin.o crtend.o"
1989 install_headers_dir=install-headers-cpio
1991 dsp16xx-*)
1993 elxsi-elxsi-*)
1994 use_collect2=yes
1996 # This hasn't been upgraded to GCC 2.
1997 # fx80-alliant-*) # Alliant FX/80
1998 # ;;
1999 h8300-*-*)
2000 float_format=i32
2002 hppa1.1-*-pro*)
2003 if [ x$enable_haifa != xno ]; then
2004 enable_haifa=yes
2006 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2007 xm_file=pa/xm-papro.h
2008 tmake_file=pa/t-pro
2010 hppa1.1-*-osf*)
2011 if [ x$enable_haifa != xno ]; then
2012 enable_haifa=yes
2014 target_cpu_default=1
2015 tm_file="${tm_file} pa/pa-osf.h"
2016 use_collect2=yes
2017 fixincludes=Makefile.in
2019 hppa1.1-*-rtems*)
2020 if [ x$enable_haifa != xno ]; then
2021 enable_haifa=yes
2023 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2024 xm_file=pa/xm-papro.h
2025 tmake_file=pa/t-pro
2027 hppa1.0-*-osf*)
2028 if [ x$enable_haifa != xno ]; then
2029 enable_haifa=yes
2031 tm_file="${tm_file} pa/pa-osf.h"
2032 use_collect2=yes
2033 fixincludes=Makefile.in
2035 hppa1.1-*-bsd*)
2036 if [ x$enable_haifa != xno ]; then
2037 enable_haifa=yes
2039 target_cpu_default=1
2040 use_collect2=yes
2041 fixincludes=Makefile.in
2043 hppa1.0-*-bsd*)
2044 if [ x$enable_haifa != xno ]; then
2045 enable_haifa=yes
2047 use_collect2=yes
2048 fixincludes=Makefile.in
2050 hppa1.0-*-hpux7*)
2051 if [ x$enable_haifa != xno ]; then
2052 enable_haifa=yes
2054 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2055 xm_file=pa/xm-pahpux.h
2056 xmake_file=pa/x-pa-hpux
2057 if [ x$gas = xyes ]
2058 then
2059 tm_file="${tm_file} pa/gas.h"
2061 install_headers_dir=install-headers-cpio
2062 use_collect2=yes
2064 hppa1.0-*-hpux8.0[0-2]*)
2065 if [ x$enable_haifa != xno ]; then
2066 enable_haifa=yes
2068 tm_file="${tm_file} pa/pa-hpux.h"
2069 xm_file=pa/xm-pahpux.h
2070 xmake_file=pa/x-pa-hpux
2071 if [ x$gas = xyes ]
2072 then
2073 tm_file="${tm_file} pa/pa-gas.h"
2074 else
2075 tm_file="pa/pa-oldas.h ${tm_file}"
2077 install_headers_dir=install-headers-cpio
2078 use_collect2=yes
2080 hppa1.1-*-hpux8.0[0-2]*)
2081 if [ x$enable_haifa != xno ]; then
2082 enable_haifa=yes
2084 target_cpu_default=1
2085 tm_file="${tm_file} pa/pa-hpux.h"
2086 xm_file=pa/xm-pahpux.h
2087 xmake_file=pa/x-pa-hpux
2088 if [ x$gas = xyes ]
2089 then
2090 tm_file="${tm_file} pa/pa-gas.h"
2091 else
2092 tm_file="pa/pa-oldas.h ${tm_file}"
2094 install_headers_dir=install-headers-cpio
2095 use_collect2=yes
2097 hppa1.1-*-hpux8*)
2098 if [ x$enable_haifa != xno ]; then
2099 enable_haifa=yes
2101 target_cpu_default=1
2102 tm_file="${tm_file} pa/pa-hpux.h"
2103 xm_file=pa/xm-pahpux.h
2104 xmake_file=pa/x-pa-hpux
2105 if [ x$gas = xyes ]
2106 then
2107 tm_file="${tm_file} pa/pa-gas.h"
2109 install_headers_dir=install-headers-cpio
2110 use_collect2=yes
2112 hppa1.0-*-hpux8*)
2113 if [ x$enable_haifa != xno ]; then
2114 enable_haifa=yes
2116 tm_file="${tm_file} pa/pa-hpux.h"
2117 xm_file=pa/xm-pahpux.h
2118 xmake_file=pa/x-pa-hpux
2119 if [ x$gas = xyes ]
2120 then
2121 tm_file="${tm_file} pa/pa-gas.h"
2123 install_headers_dir=install-headers-cpio
2124 use_collect2=yes
2126 hppa1.1-*-hpux10*)
2127 if [ x$enable_haifa != xno ]; then
2128 enable_haifa=yes
2130 target_cpu_default=1
2131 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2132 xm_file=pa/xm-pahpux.h
2133 xmake_file=pa/x-pa-hpux
2134 if [ x$gas = xyes ]
2135 then
2136 tm_file="${tm_file} pa/pa-gas.h"
2138 install_headers_dir=install-headers-cpio
2139 use_collect2=yes
2141 hppa1.0-*-hpux10*)
2142 if [ x$enable_haifa != xno ]; then
2143 enable_haifa=yes
2145 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2146 xm_file=pa/xm-pahpux.h
2147 xmake_file=pa/x-pa-hpux
2148 if [ x$gas = xyes ]
2149 then
2150 tm_file="${tm_file} pa/pa-gas.h"
2152 install_headers_dir=install-headers-cpio
2153 use_collect2=yes
2155 hppa1.1-*-hpux*)
2156 if [ x$enable_haifa != xno ]; then
2157 enable_haifa=yes
2159 target_cpu_default=1
2160 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2161 xm_file=pa/xm-pahpux.h
2162 xmake_file=pa/x-pa-hpux
2163 if [ x$gas = xyes ]
2164 then
2165 tm_file="${tm_file} pa/pa-gas.h"
2167 install_headers_dir=install-headers-cpio
2168 use_collect2=yes
2170 hppa1.0-*-hpux*)
2171 if [ x$enable_haifa != xno ]; then
2172 enable_haifa=yes
2174 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2175 xm_file=pa/xm-pahpux.h
2176 xmake_file=pa/x-pa-hpux
2177 if [ x$gas = xyes ]
2178 then
2179 tm_file="${tm_file} pa/pa-gas.h"
2181 install_headers_dir=install-headers-cpio
2182 use_collect2=yes
2184 hppa1.1-*-hiux*)
2185 if [ x$enable_haifa != xno ]; then
2186 enable_haifa=yes
2188 target_cpu_default=1
2189 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2190 xm_file=pa/xm-pahpux.h
2191 xmake_file=pa/x-pa-hpux
2192 if [ x$gas = xyes ]
2193 then
2194 tm_file="${tm_file} pa/pa-gas.h"
2196 install_headers_dir=install-headers-cpio
2197 use_collect2=yes
2199 hppa1.0-*-hiux*)
2200 if [ x$enable_haifa != xno ]; then
2201 enable_haifa=yes
2203 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2204 xm_file=pa/xm-pahpux.h
2205 xmake_file=pa/x-pa-hpux
2206 if [ x$gas = xyes ]
2207 then
2208 tm_file="${tm_file} pa/pa-gas.h"
2210 install_headers_dir=install-headers-cpio
2211 use_collect2=yes
2213 hppa*-*-lites*)
2214 if [ x$enable_haifa != xno ]; then
2215 enable_haifa=yes
2217 target_cpu_default=1
2218 use_collect2=yes
2219 fixincludes=Makefile.in
2221 i370-*-mvs*)
2223 i[3456]86-ibm-aix*) # IBM PS/2 running AIX
2224 if [ x$gas = xyes ]
2225 then
2226 tm_file=i386/aix386.h
2227 extra_parts="crtbegin.o crtend.o"
2228 tmake_file=i386/t-crtstuff
2229 else
2230 tm_file=i386/aix386ng.h
2231 use_collect2=yes
2233 xm_file=i386/xm-aix.h
2234 xmake_file=i386/x-aix
2236 i45686-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2237 xm_file=i386/xm-sysv4.h
2238 xmake_file=i386/x-ncr3000
2239 if [ x$stabs = xyes -a x$gas = xyes ]
2240 then
2241 tm_file=i386/sysv4gdb.h
2242 else
2243 tm_file=i386/sysv4.h
2245 extra_parts="crtbegin.o crtend.o"
2246 tmake_file=i386/t-crtpic
2248 i[3456]86-next-*)
2249 tm_file=i386/next.h
2250 xm_file=i386/xm-next.h
2251 tmake_file=i386/t-next
2252 xmake_file=i386/x-next
2253 extra_objs=nextstep.o
2254 if [ x$enable_threads = xyes ]; then
2255 thread_file='mach'
2258 i[3456]86-sequent-bsd*) # 80386 from Sequent
2259 use_collect2=yes
2260 if [ x$gas = xyes ]
2261 then
2262 tm_file=i386/seq-gas.h
2263 else
2264 tm_file=i386/sequent.h
2267 i[3456]86-sequent-ptx1*)
2268 xm_file=i386/xm-sysv3.h
2269 xmake_file=i386/x-sysv3
2270 tm_file=i386/seq-sysv3.h
2271 tmake_file=i386/t-crtstuff
2272 fixincludes=fixinc.ptx
2273 extra_parts="crtbegin.o crtend.o"
2274 install_headers_dir=install-headers-cpio
2276 i[3456]86-sequent-ptx2* | i[3456]86-sequent-sysv3*)
2277 xm_file=i386/xm-sysv3.h
2278 xmake_file=i386/x-sysv3
2279 tm_file=i386/seq2-sysv3.h
2280 tmake_file=i386/t-crtstuff
2281 extra_parts="crtbegin.o crtend.o"
2282 fixincludes=fixinc.ptx
2283 install_headers_dir=install-headers-cpio
2285 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4*)
2286 xm_file=i386/xm-sysv4.h
2287 xmake_file=x-svr4
2288 tm_file=i386/ptx4-i.h
2289 tmake_file=t-svr4
2290 extra_parts="crtbegin.o crtend.o"
2291 fixincludes=fixinc.ptx
2292 install_headers_dir=install-headers-cpio
2294 i386-sun-sunos*) # Sun i386 roadrunner
2295 xm_file=i386/xm-sun.h
2296 tm_file=i386/sun.h
2297 use_collect2=yes
2299 i[3456]86-*-aout*)
2300 tm_file=i386/i386-aout.h
2301 tmake_file=i386/t-i386bare
2303 i[3456]86-*-bsdi* | i[345]86-*-bsd386*)
2304 tm_file=i386/bsd386.h
2305 xm_file=i386/xm-bsd386.h
2306 # tmake_file=t-libc-ok
2308 i[3456]86-*-bsd*)
2309 tm_file=i386/386bsd.h
2310 xm_file=i386/xm-bsd386.h
2311 # tmake_file=t-libc-ok
2312 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2313 # use_collect2=yes
2315 i[3456]86-*-freebsdelf*)
2316 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2317 xm_file=i386/xm-freebsd.h
2318 # On FreeBSD, the headers are already ok, except for math.h.
2319 fixincludes=fixinc.math
2320 tmake_file=i386/t-freebsd
2321 gas=yes
2322 gnu_ld=yes
2323 stabs=yes
2325 i[3456]86-*-freebsd*)
2326 tm_file=i386/freebsd.h
2327 xm_file=i386/xm-freebsd.h
2328 # On FreeBSD, the headers are already ok, except for math.h.
2329 fixincludes=fixinc.math
2330 tmake_file=i386/t-freebsd
2332 i[3456]86-*-netbsd*)
2333 tm_file=i386/netbsd.h
2334 xm_file=i386/xm-netbsd.h
2335 # On NetBSD, the headers are already okay, except for math.h.
2336 fixincludes=fixinc.math
2337 tmake_file=t-netbsd
2339 i[3456]86-*-coff*)
2340 tm_file=i386/i386-coff.h
2341 tmake_file=i386/t-i386bare
2343 i[3456]86-*-isc*) # 80386 running ISC system
2344 xm_file=i386/xm-isc.h
2345 case $machine in
2346 i[345]86-*-isc[34]*)
2347 xmake_file=i386/x-isc3
2350 xmake_file=i386/x-isc
2352 esac
2353 if [ x$gas = xyes -a x$stabs = xyes ]
2354 then
2355 tm_file=i386/iscdbx.h
2356 tmake_file=i386/t-svr3dbx
2357 extra_parts="svr3.ifile svr3z.ifile"
2358 else
2359 tm_file=i386/isccoff.h
2360 tmake_file=i386/t-crtstuff
2361 extra_parts="crtbegin.o crtend.o"
2363 install_headers_dir=install-headers-cpio
2365 i[3456]86-*-linux-gnuoldld*) # Intel 80386's running Linux
2366 xm_file=i386/xm-linux.h # with a.out format using pre BFD linkers
2367 xmake_file=x-linux-aout
2368 tmake_file="t-linux-aout i386/t-crtstuff"
2369 tm_file=i386/linux-oldld.h
2370 fixincludes=Makefile.in #On Linux, the headers are ok already.
2371 gnu_ld=yes
2373 i[3456]86-*-linux-gnuaout*) # Intel 80386's running Linux
2374 xm_file=i386/xm-linux.h # with a.out format
2375 xmake_file=x-linux-aout
2376 tmake_file="t-linux-aout i386/t-crtstuff"
2377 tm_file=i386/linux-aout.h
2378 fixincludes=Makefile.in #On Linux, the headers are ok already.
2379 gnu_ld=yes
2381 i[3456]86-*-linux-gnulibc1)
2382 xm_file=i386/xm-linux.h # Intel 80386's running Linux
2383 xmake_file=x-linux # with ELF format using the
2384 tm_file=i386/linux.h # Linux C library 5
2385 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2386 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2387 fixincludes=Makefile.in #On Linux, the headers are ok already.
2388 gnu_ld=yes
2389 if [ x$enable_threads = xyes ]; then
2390 thread_file='single'
2393 i[3456]86-*-linux-gnu*) # Intel 80386's running Linux
2394 xm_file=i386/xm-linux.h # with ELF format using glibc 2
2395 xmake_file=x-linux # aka Linux C library 6
2396 tm_file=i386/linux.h
2397 tmake_file="t-linux i386/t-crtstuff"
2398 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2399 fixincludes=Makefile.in #On Linux, the headers are ok already.
2400 gnu_ld=yes
2401 if [ x$enable_threads = xyes ]; then
2402 thread_file='posix'
2405 i[3456]86-*-gnu*)
2407 i[3456]86-go32-msdos | i[3456]86-*-go32*)
2408 xm_file=i386/xm-go32.h
2409 tm_file=i386/go32.h
2410 tmake_file=i386/t-go32
2412 i[3456]86-moss-msdos* | i[3456]86-*-moss*)
2413 tm_file=i386/moss.h
2414 tmake_file=t-libc-ok
2415 fixincludes=Makefile.in
2416 gnu_ld=yes
2417 gas=yes
2419 i[3456]86-*-lynxos*)
2420 if [ x$gas = xyes ]
2421 then
2422 tm_file=i386/lynx.h
2423 else
2424 tm_file=i386/lynx-ng.h
2426 xm_file=i386/xm-lynx.h
2427 tmake_file=i386/t-i386bare
2428 xmake_file=x-lynx
2430 i[3456]86-*-mach*)
2431 tm_file=i386/mach.h
2432 # tmake_file=t-libc-ok
2433 use_collect2=yes
2435 i[3456]86-*-osfrose*) # 386 using OSF/rose
2436 if [ x$elf = xyes ]
2437 then
2438 tm_file=i386/osfelf.h
2439 use_collect2=
2440 else
2441 tm_file=i386/osfrose.h
2442 use_collect2=yes
2444 xm_file=i386/xm-osf.h
2445 xmake_file=i386/x-osfrose
2446 tmake_file=i386/t-osf
2447 extra_objs=halfpic.o
2449 i[345]86-go32-rtems*)
2450 cpu_type=i386
2451 xm_file=i386/xm-go32.h
2452 tm_file=i386/go32-rtems.h
2453 tmake_file="i386/t-go32 t-rtems"
2455 i[345]86-*-rtems*)
2456 cpu_type=i386
2457 tm_file=i386/rtems.h
2458 tmake_file="i386/t-i386bare t-rtems"
2460 i[3456]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
2461 xm_file=i386/xm-sco5.h
2462 xmake_file=i386/x-sco5
2463 fixincludes=fixinc.sco
2464 install_headers_dir=install-headers-cpio
2465 tm_file=i386/sco5.h
2466 tmake_file=i386/t-sco5
2467 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2469 i[3456]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
2470 xm_file=i386/xm-sco.h
2471 xmake_file=i386/x-sco4
2472 fixincludes=fixinc.sco
2473 install_headers_dir=install-headers-cpio
2474 if [ x$stabs = xyes ]
2475 then
2476 tm_file=i386/sco4dbx.h
2477 tmake_file=i386/t-svr3dbx
2478 extra_parts="svr3.ifile svr3z.rfile"
2479 else
2480 tm_file=i386/sco4.h
2481 tmake_file=i386/t-crtstuff
2482 extra_parts="crtbegin.o crtend.o"
2484 truncate_target=yes
2486 i[3456]86-*-sco*) # 80386 running SCO system
2487 xm_file=i386/xm-sco.h
2488 xmake_file=i386/x-sco
2489 install_headers_dir=install-headers-cpio
2490 if [ x$stabs = xyes ]
2491 then
2492 tm_file=i386/scodbx.h
2493 tmake_file=i386/t-svr3dbx
2494 extra_parts="svr3.ifile svr3z.rfile"
2495 else
2496 tm_file=i386/sco.h
2497 extra_parts="crtbegin.o crtend.o"
2498 tmake_file=i386/t-crtstuff
2500 truncate_target=yes
2502 i[3456]86-*-solaris2*)
2503 xm_file=i386/xm-sysv4.h
2504 if [ x$stabs = xyes ]
2505 then
2506 tm_file=i386/sol2dbg.h
2507 else
2508 tm_file=i386/sol2.h
2510 tmake_file=i386/t-sol2
2511 extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
2512 xmake_file=x-svr4
2513 fixincludes=fixinc.svr4
2514 if [ x$enable_threads = xyes ]; then
2515 thread_file='solaris'
2518 i[3456]86-*-sysv4*) # Intel 80386's running system V.4
2519 xm_file=i386/xm-sysv4.h
2520 tm_file=i386/sysv4.h
2521 if [ x$stabs = xyes ]
2522 then
2523 tm_file="${tm_file} dbx.h"
2525 tmake_file=i386/t-crtpic
2526 xmake_file=x-svr4
2527 extra_parts="crtbegin.o crtend.o"
2529 i[3456]86-*-sysv*) # Intel 80386's running system V
2530 xm_file=i386/xm-sysv3.h
2531 xmake_file=i386/x-sysv3
2532 if [ x$gas = xyes ]
2533 then
2534 if [ x$stabs = xyes ]
2535 then
2536 tm_file=i386/svr3dbx.h
2537 tmake_file=i386/t-svr3dbx
2538 extra_parts="svr3.ifile svr3z.rfile"
2539 else
2540 tm_file=i386/svr3gas.h
2541 extra_parts="crtbegin.o crtend.o"
2542 tmake_file=i386/t-crtstuff
2544 else
2545 tm_file=i386/sysv3.h
2546 extra_parts="crtbegin.o crtend.o"
2547 tmake_file=i386/t-crtstuff
2550 i386-*-vsta) # Intel 80386's running VSTa kernel
2551 xm_file=i386/xm-vsta.h
2552 tm_file=i386/vsta.h
2553 tmake_file=i386/t-vsta
2554 xmake_file=i386/x-vsta
2556 i[3456]86-*-pe | i[3456]86-*-cygwin32)
2557 xm_file="${xm_file} i386/xm-cygwin32.h"
2558 tmake_file=i386/t-cygwin32
2559 tm_file=i386/cygwin32.h
2560 xmake_file=i386/x-cygwin32
2561 extra_objs=winnt.o
2562 fixincludes=Makefile.in
2563 if [ x$enable_threads = xyes ]; then
2564 thread_file='win32'
2566 exeext=.exe
2568 i[3456]86-*-mingw32)
2569 tm_file=i386/mingw32.h
2570 xm_file="${xm_file} i386/xm-mingw32.h"
2571 tmake_file=i386/t-cygwin32
2572 extra_objs=winnt.o
2573 xmake_file=i386/x-cygwin32
2574 fixincludes=Makefile.in
2575 if [ x$enable_threads = xyes ]; then
2576 thread_file='win32'
2578 exeext=.exe
2580 i[3456]86-*-winnt3*)
2581 tm_file=i386/win-nt.h
2582 out_file=i386/i386.c
2583 xm_file=i386/xm-winnt.h
2584 xmake_file=winnt/x-winnt
2585 tmake_file=i386/t-winnt
2586 extra_host_objs="winnt.o oldnames.o"
2587 extra_gcc_objs="spawnv.o oldnames.o"
2588 fixincludes=fixinc.winnt
2589 if [ x$gnu_ld != xyes ]
2590 then
2591 extra_programs=ld.exe
2593 if [ x$enable_threads = xyes ]; then
2594 thread_file='win32'
2597 i[3456]86-dg-dgux)
2598 xm_file=i386/xm-dgux.h
2599 out_file=i386/dgux.c
2600 tm_file=i386/dgux.h
2601 tmake_file=i386/t-dgux
2602 xmake_file=i386/x-dgux
2603 fixincludes=fixinc.dgux
2604 install_headers_dir=install-headers-cpio
2606 i860-alliant-*) # Alliant FX/2800
2607 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
2608 xm_file="${xm_file} i860/xm-fx2800.h"
2609 xmake_file=i860/x-fx2800
2610 tmake_file=i860/t-fx2800
2611 extra_parts="crtbegin.o crtend.o"
2613 i860-*-bsd*)
2614 tm_file="${tm_file} i860/bsd.h"
2615 if [ x$gas = xyes ]
2616 then
2617 tm_file="${tm_file} i860/bsd-gas.h"
2619 use_collect2=yes
2621 i860-*-mach*)
2622 tm_file="${tm_file} i860/mach.h"
2623 tmake_file=t-libc-ok
2625 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
2626 tm_file="${tm_file} svr3.h i860/paragon.h"
2627 xm_file="${xm_file} xm-svr3.h"
2628 tmake_file=t-osf
2630 i860-*-sysv3*)
2631 tm_file="${tm_file} svr3.h i860/sysv3.h"
2632 xm_file="${tm_file} xm-svr3.h"
2633 xmake_file=i860/x-sysv3
2634 extra_parts="crtbegin.o crtend.o"
2636 i860-*-sysv4*)
2637 tm_file="${tm_file} svr4.h i860/sysv4.h"
2638 xm_file="${xm_file} xm-svr3.h"
2639 xmake_file=i860/x-sysv4
2640 tmake_file=t-svr4
2641 extra_parts="crtbegin.o crtend.o"
2643 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
2644 tm_file="${tm_file} i960/vx960.h"
2645 tmake_file=i960/t-vxworks960
2646 use_collect2=yes
2648 i960-wrs-vxworks5*)
2649 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2650 tmake_file=i960/t-vxworks960
2651 use_collect2=yes
2653 i960-wrs-vxworks*)
2654 tm_file="${tm_file} i960/vx960.h"
2655 tmake_file=i960/t-vxworks960
2656 use_collect2=yes
2658 i960-*-coff*)
2659 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2660 tmake_file=i960/t-960bare
2661 use_collect2=yes
2663 i960-*-rtems)
2664 tmake_file="i960/t-960bare t-rtems"
2665 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2666 use_collect2=yes
2668 i960-*-*) # Default i960 environment.
2669 use_collect2=yes
2671 m32r-*-elf*)
2672 extra_parts="crtinit.o crtfini.o"
2674 m68000-convergent-sysv*)
2675 tm_file=m68k/ctix.h
2676 xm_file=m68k/xm-3b1.h
2677 use_collect2=yes
2678 extra_headers=math-68881.h
2680 m68000-hp-bsd*) # HP 9000/200 running BSD
2681 tm_file=m68k/hp2bsd.h
2682 xmake_file=m68k/x-hp2bsd
2683 use_collect2=yes
2684 extra_headers=math-68881.h
2686 m68000-hp-hpux*) # HP 9000 series 300
2687 xm_file=m68k/xm-hp320.h
2688 if [ x$gas = xyes ]
2689 then
2690 xmake_file=m68k/x-hp320g
2691 tm_file=m68k/hp310g.h
2692 else
2693 xmake_file=m68k/x-hp320
2694 tm_file=m68k/hp310.h
2696 install_headers_dir=install-headers-cpio
2697 use_collect2=yes
2698 extra_headers=math-68881.h
2700 m68000-sun-sunos3*)
2701 tm_file=m68k/sun2.h
2702 use_collect2=yes
2703 extra_headers=math-68881.h
2705 m68000-sun-sunos4*)
2706 tm_file=m68k/sun2o4.h
2707 use_collect2=yes
2708 extra_headers=math-68881.h
2710 m68000-att-sysv*)
2711 xm_file=m68k/xm-3b1.h
2712 if [ x$gas = xyes ]
2713 then
2714 tm_file=m68k/3b1g.h
2715 else
2716 tm_file=m68k/3b1.h
2718 use_collect2=yes
2719 extra_headers=math-68881.h
2721 m68k-apple-aux*) # Apple Macintosh running A/UX
2722 xm_file=m68k/xm-aux.h
2723 tmake_file=m68k/t-aux
2724 install_headers_dir=install-headers-cpio
2725 extra_headers=math-68881.h
2726 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2727 tm_file=
2728 if [ "$gnu_ld" = yes ]
2729 then
2730 tm_file="${tm_file} m68k/auxgld.h"
2731 else
2732 tm_file="${tm_file} m68k/auxld.h"
2734 if [ "$gas" = yes ]
2735 then
2736 tm_file="${tm_file} m68k/auxgas.h"
2737 else
2738 tm_file="${tm_file} m68k/auxas.h"
2740 tm_file="${tm_file} m68k/a-ux.h"
2742 m68k-apollo-*)
2743 tm_file=m68k/apollo68.h
2744 xmake_file=m68k/x-apollo68
2745 use_collect2=yes
2746 extra_headers=math-68881.h
2748 m68k-altos-sysv*) # Altos 3068
2749 if [ x$gas = xyes ]
2750 then
2751 tm_file=m68k/altos3068.h
2752 xm_file=m68k/xm-altos3068.h
2753 else
2754 echo "The Altos is supported only with the GNU assembler" 1>&2
2755 exit 1
2757 extra_headers=math-68881.h
2759 m68k-bull-sysv*) # Bull DPX/2
2760 if [ x$gas = xyes ]
2761 then
2762 if [ x$stabs = xyes ]
2763 then
2764 tm_file=m68k/dpx2cdbx.h
2765 else
2766 tm_file=m68k/dpx2g.h
2768 else
2769 tm_file=m68k/dpx2.h
2771 xm_file=m68k/xm-m68kv.h
2772 xmake_file=m68k/x-dpx2
2773 use_collect2=yes
2774 extra_headers=math-68881.h
2776 m68k-atari-sysv4*) # Atari variant of V.4.
2777 tm_file=m68k/atari.h
2778 xm_file=m68k/xm-atari.h
2779 tmake_file=t-svr4
2780 extra_parts="crtbegin.o crtend.o"
2781 extra_headers=math-68881.h
2783 m68k-motorola-sysv*)
2784 tm_file=m68k/mot3300.h
2785 xm_file=m68k/xm-mot3300.h
2786 if [ x$gas = xyes ]
2787 then
2788 xmake_file=m68k/x-mot3300-gas
2789 if [ x$gnu_ld = xyes ]
2790 then
2791 tmake_file=m68k/t-mot3300-gald
2792 else
2793 tmake_file=m68k/t-mot3300-gas
2794 use_collect2=yes
2796 else
2797 xmake_file=m68k/x-mot3300
2798 if [ x$gnu_ld = xyes ]
2799 then
2800 tmake_file=m68k/t-mot3300-gld
2801 else
2802 tmake_file=m68k/t-mot3300
2803 use_collect2=yes
2806 gdb_needs_out_file_path=yes
2807 extra_parts="crt0.o mcrt0.o"
2808 extra_headers=math-68881.h
2810 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2811 tm_file=m68k/tower-as.h
2812 xm_file=m68k/xm-tower.h
2813 xmake_file=m68k/x-tower
2814 extra_parts="crtbegin.o crtend.o"
2815 extra_headers=math-68881.h
2817 m68k-plexus-sysv*)
2818 tm_file=m68k/plexus.h
2819 xm_file=m68k/xm-plexus.h
2820 use_collect2=yes
2821 extra_headers=math-68881.h
2823 m68k-tti-*)
2824 tm_file=m68k/pbb.h
2825 xm_file=m68k/xm-m68kv.h
2826 extra_headers=math-68881.h
2828 m68k-crds-unos*)
2829 xm_file=m68k/xm-crds.h
2830 xmake_file=m68k/x-crds
2831 tm_file=m68k/crds.h
2832 use_collect2=yes
2833 extra_headers=math-68881.h
2835 m68k-cbm-sysv4*) # Commodore variant of V.4.
2836 tm_file=m68k/amix.h
2837 xm_file=m68k/xm-amix.h
2838 xmake_file=m68k/x-amix
2839 tmake_file=t-svr4
2840 extra_parts="crtbegin.o crtend.o"
2841 extra_headers=math-68881.h
2843 m68k-ccur-rtu)
2844 tm_file=m68k/ccur-GAS.h
2845 xmake_file=m68k/x-ccur
2846 extra_headers=math-68881.h
2847 use_collect2=yes
2849 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2850 tm_file=m68k/hp3bsd44.h
2851 xmake_file=m68k/x-hp3bsd44
2852 use_collect2=yes
2853 extra_headers=math-68881.h
2855 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2856 tm_file=m68k/hp3bsd.h
2857 use_collect2=yes
2858 extra_headers=math-68881.h
2860 m68k-isi-bsd*)
2861 if [ x$with_fp = xno ]
2862 then
2863 tm_file=m68k/isi-nfp.h
2864 else
2865 tm_file=m68k/isi.h
2867 use_collect2=yes
2868 extra_headers=math-68881.h
2870 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2871 xm_file=m68k/xm-hp320.h
2872 if [ x$gas = xyes ]
2873 then
2874 xmake_file=m68k/x-hp320g
2875 tm_file=m68k/hp320g.h
2876 else
2877 xmake_file=m68k/x-hp320
2878 tm_file=m68k/hpux7.h
2880 install_headers_dir=install-headers-cpio
2881 use_collect2=yes
2882 extra_headers=math-68881.h
2884 m68k-hp-hpux*) # HP 9000 series 300
2885 xm_file=m68k/xm-hp320.h
2886 if [ x$gas = xyes ]
2887 then
2888 xmake_file=m68k/x-hp320g
2889 tm_file=m68k/hp320g.h
2890 else
2891 xmake_file=m68k/x-hp320
2892 tm_file=m68k/hp320.h
2894 install_headers_dir=install-headers-cpio
2895 use_collect2=yes
2896 extra_headers=math-68881.h
2898 m68k-sun-mach*)
2899 tm_file=m68k/sun3mach.h
2900 use_collect2=yes
2901 extra_headers=math-68881.h
2903 m68k-sony-newsos3*)
2904 if [ x$gas = xyes ]
2905 then
2906 tm_file=m68k/news3gas.h
2907 else
2908 tm_file=m68k/news3.h
2910 use_collect2=yes
2911 extra_headers=math-68881.h
2913 m68k-sony-bsd* | m68k-sony-newsos*)
2914 if [ x$gas = xyes ]
2915 then
2916 tm_file=m68k/newsgas.h
2917 else
2918 tm_file=m68k/news.h
2920 use_collect2=yes
2921 extra_headers=math-68881.h
2923 m68k-next-nextstep2*)
2924 tm_file=m68k/next21.h
2925 xm_file=m68k/xm-next.h
2926 tmake_file=m68k/t-next
2927 xmake_file=m68k/x-next
2928 extra_objs=nextstep.o
2929 extra_headers=math-68881.h
2930 use_collect2=yes
2932 m68k-next-nextstep3*)
2933 tm_file=m68k/next.h
2934 xm_file=m68k/xm-next.h
2935 tmake_file=m68k/t-next
2936 xmake_file=m68k/x-next
2937 extra_objs=nextstep.o
2938 extra_headers=math-68881.h
2939 if [ x$enable_threads = xyes ]; then
2940 thread_file='mach'
2943 m68k-sun-sunos3*)
2944 if [ x$with_fp = xno ]
2945 then
2946 tm_file=m68k/sun3n3.h
2947 else
2948 tm_file=m68k/sun3o3.h
2950 use_collect2=yes
2951 extra_headers=math-68881.h
2953 m68k-sun-sunos*) # For SunOS 4 (the default).
2954 if [ x$with_fp = xno ]
2955 then
2956 tm_file=m68k/sun3n.h
2957 else
2958 tm_file=m68k/sun3.h
2960 xm_file=m68k/xm-sun3.h
2961 use_collect2=yes
2962 extra_headers=math-68881.h
2964 m68k-wrs-vxworks*)
2965 tm_file=m68k/vxm68k.h
2966 tmake_file=m68k/t-vxworks68
2967 extra_headers=math-68881.h
2969 m68k-*-aout*)
2970 tmake_file=m68k/t-m68kbare
2971 tm_file="m68k/m68k-aout.h libgloss.h"
2972 extra_headers=math-68881.h
2974 m68k-*-coff*)
2975 tmake_file=m68k/t-m68kbare
2976 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2977 extra_headers=math-68881.h
2979 m68k-*-lynxos*)
2980 if [ x$gas = xyes ]
2981 then
2982 tm_file=m68k/lynx.h
2983 else
2984 tm_file=m68k/lynx-ng.h
2986 xm_file=m68k/xm-lynx.h
2987 xmake_file=x-lynx
2988 tmake_file=m68k/t-lynx
2989 extra_headers=math-68881.h
2991 m68k-*-netbsd*)
2992 tm_file=m68k/netbsd.h
2993 xm_file=m68k/xm-netbsd.h
2994 # On NetBSD, the headers are already okay, except for math.h.
2995 fixincludes=fixinc.math
2996 tmake_file=t-netbsd
2998 m68k-*-sysv3*) # Motorola m68k's running system V.3
2999 xm_file=m68k/xm-m68kv.h
3000 xmake_file=m68k/x-m68kv
3001 extra_parts="crtbegin.o crtend.o"
3002 extra_headers=math-68881.h
3004 m68k-*-sysv4*) # Motorola m68k's running system V.4
3005 tm_file=m68k/m68kv4.h
3006 xm_file=m68k/xm-m68kv.h
3007 tmake_file=t-svr4
3008 extra_parts="crtbegin.o crtend.o"
3009 extra_headers=math-68881.h
3011 m68k-*-linux-gnuaout*) # Motorola m68k's running Linux
3012 xm_file=m68k/xm-linux.h # with a.out format
3013 xmake_file=x-linux
3014 tm_file=m68k/linux-aout.h
3015 tmake_file="t-linux-aout m68k/t-linux-aout"
3016 fixincludes=Makefile.in #On Linux, the headers are ok already.
3017 extra_headers=math-68881.h
3018 gnu_ld=yes
3020 m68k-*-linux-gnulibc1) # Motorola m68k's running Linux
3021 xm_file=m68k/xm-linux.h # with ELF format using the
3022 xmake_file=x-linux # Linux C library 5
3023 tm_file=m68k/linux.h
3024 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
3025 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3026 fixincludes=Makefile.in #On Linux, the headers are ok already.
3027 extra_headers=math-68881.h
3028 gnu_ld=yes
3030 m68k-*-linux-gnu*) # Motorola m68k's running Linux
3031 xm_file=m68k/xm-linux.h # with ELF format using glibc 2
3032 xmake_file=x-linux # aka the Linux C library 6.
3033 tm_file=m68k/linux.h
3034 tmake_file="t-linux m68k/t-linux"
3035 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3036 fixincludes=Makefile.in #On Linux, the headers are ok already.
3037 extra_headers=math-68881.h
3038 gnu_ld=yes
3039 if [ x$enable_threads = xyes ]; then
3040 thread_file='posix'
3043 m68k-*-psos*)
3044 tmake_file=m68k/t-m68kbare
3045 tm_file=m68k/m68k-psos.h
3046 extra_headers=math-68881.h
3048 m68k-*-rtems*)
3049 tmake_file="m68k/t-m68kbare t-rtems"
3050 tm_file=m68k/rtems.h
3051 extra_headers=math-68881.h
3054 m88k-dg-dgux*)
3055 case $machine in
3056 m88k-dg-dguxbcs*)
3057 tm_file=m88k/dguxbcs.h
3058 tmake_file=m88k/t-dguxbcs
3061 tm_file=m88k/dgux.h
3062 tmake_file=m88k/t-dgux
3064 esac
3065 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3066 xmake_file=m88k/x-dgux
3067 if [ x$gas = xyes ]
3068 then
3069 tmake_file=m88k/t-dgux-gas
3071 fixincludes=fixinc.dgux
3073 m88k-dolphin-sysv3*)
3074 tm_file=m88k/dolph.h
3075 extra_parts="crtbegin.o crtend.o"
3076 xm_file=m88k/xm-sysv3.h
3077 xmake_file=m88k/x-dolph
3078 if [ x$gas = xyes ]
3079 then
3080 tmake_file=m88k/t-m88k-gas
3083 m88k-tektronix-sysv3)
3084 tm_file=m88k/tekXD88.h
3085 extra_parts="crtbegin.o crtend.o"
3086 xm_file=m88k/xm-sysv3.h
3087 xmake_file=m88k/x-tekXD88
3088 if [ x$gas = xyes ]
3089 then
3090 tmake_file=m88k/t-m88k-gas
3093 m88k-*-aout*)
3094 tm_file=m88k/m88k-aout.h
3096 m88k-*-coff*)
3097 tm_file=m88k/m88k-coff.h
3098 tmake_file=m88k/t-bug
3100 m88k-*-luna*)
3101 tm_file=m88k/luna.h
3102 extra_parts="crtbegin.o crtend.o"
3103 if [ x$gas = xyes ]
3104 then
3105 tmake_file=m88k/t-luna-gas
3106 else
3107 tmake_file=m88k/t-luna
3110 m88k-*-sysv3*)
3111 tm_file=m88k/sysv3.h
3112 extra_parts="crtbegin.o crtend.o"
3113 xm_file=m88k/xm-sysv3.h
3114 xmake_file=m88k/x-sysv3
3115 if [ x$gas = xyes ]
3116 then
3117 tmake_file=m88k/t-m88k-gas
3120 m88k-*-sysv4*)
3121 tm_file=m88k/sysv4.h
3122 extra_parts="crtbegin.o crtend.o"
3123 xmake_file=m88k/x-sysv4
3124 tmake_file=m88k/t-sysv4
3126 mips-sgi-irix6*) # SGI System V.4., IRIX 6
3127 tm_file=mips/iris6.h
3128 xm_file=mips/xm-iris6.h
3129 fixincludes=fixinc.irix
3130 xmake_file=mips/x-iris6
3131 tmake_file=mips/t-iris6
3132 if [ x$enable_threads = xyes ]; then
3133 thread_file='irix'
3136 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
3137 tm_file=mips/cross64.h
3138 xm_file=mips/xm-iris5.h
3139 fixincludes=Makefile.in
3140 xmake_file=mips/x-iris
3141 tmake_file=mips/t-cross64
3142 # See comment in mips/iris[56].h files.
3143 use_collect2=yes
3144 if [ x$enable_threads = xyes ]; then
3145 thread_file='irix'
3148 mips-sni-sysv4)
3149 if [ x$gas = xyes ]
3150 then
3151 if [ x$stabs = xyes ]
3152 then
3153 tm_file=mips/iris5gdb.h
3154 else
3155 tm_file=mips/sni-gas.h
3157 else
3158 tm_file=mips/sni-svr4.h
3160 xm_file=mips/xm-sysv.h
3161 xmake_file=mips/x-sni-svr4
3162 tmake_file=mips/t-mips-gas
3163 if [ x$gnu_ld != xyes ]
3164 then
3165 use_collect2=yes
3168 mips-sgi-irix5*) # SGI System V.4., IRIX 5
3169 if [ x$gas = xyes ]
3170 then
3171 tm_file=mips/iris5gas.h
3172 if [ x$stabs = xyes ]
3173 then
3174 tm_file="${tm_file} dbx.h"
3176 else
3177 tm_file=mips/iris5.h
3179 xm_file=mips/xm-iris5.h
3180 fixincludes=fixinc.irix
3181 xmake_file=mips/x-iris
3182 # mips-tfile doesn't work yet
3183 tmake_file=mips/t-mips-gas
3184 # See comment in mips/iris5.h file.
3185 use_collect2=yes
3186 if [ x$enable_threads = xyes ]; then
3187 thread_file='irix'
3190 mips-sgi-irix4loser*) # Mostly like a MIPS.
3191 tm_file=mips/iris4loser.h
3192 if [ x$stabs = xyes ]; then
3193 tm_file="${tm_file} dbx.h"
3195 xm_file=mips/xm-iris4.h
3196 xmake_file=mips/x-iris
3197 if [ x$gas = xyes ]
3198 then
3199 tmake_file=mips/t-mips-gas
3200 else
3201 extra_passes="mips-tfile mips-tdump"
3203 if [ x$gnu_ld != xyes ]
3204 then
3205 use_collect2=yes
3207 if [ x$enable_threads = xyes ]; then
3208 thread_file='irix'
3211 mips-sgi-irix4*) # Mostly like a MIPS.
3212 tm_file=mips/iris4.h
3213 if [ x$stabs = xyes ]; then
3214 tm_file="${tm_file} dbx.h"
3216 xm_file=mips/xm-iris4.h
3217 xmake_file=mips/x-iris
3218 if [ x$gas = xyes ]
3219 then
3220 tmake_file=mips/t-mips-gas
3221 else
3222 extra_passes="mips-tfile mips-tdump"
3224 if [ x$gnu_ld != xyes ]
3225 then
3226 use_collect2=yes
3228 if [ x$enable_threads = xyes ]; then
3229 thread_file='irix'
3232 mips-sgi-*) # Mostly like a MIPS.
3233 tm_file=mips/iris3.h
3234 if [ x$stabs = xyes ]; then
3235 tm_file="${tm_file} dbx.h"
3237 xm_file=mips/xm-iris3.h
3238 xmake_file=mips/x-iris3
3239 if [ x$gas = xyes ]
3240 then
3241 tmake_file=mips/t-mips-gas
3242 else
3243 extra_passes="mips-tfile mips-tdump"
3245 if [ x$gnu_ld != xyes ]
3246 then
3247 use_collect2=yes
3250 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
3251 tm_file=mips/osfrose.h
3252 xmake_file=mips/x-osfrose
3253 tmake_file=mips/t-osfrose
3254 extra_objs=halfpic.o
3255 use_collect2=yes
3257 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
3258 tm_file=mips/dec-osf1.h
3259 if [ x$stabs = xyes ]; then
3260 tm_file="${tm_file} dbx.h"
3262 xmake_file=mips/x-dec-osf1
3263 if [ x$gas = xyes ]
3264 then
3265 tmake_file=mips/t-mips-gas
3266 else
3267 tmake_file=mips/t-ultrix
3268 extra_passes="mips-tfile mips-tdump"
3270 if [ x$gnu_ld != xyes ]
3271 then
3272 use_collect2=yes
3275 mips-dec-bsd*) # Decstation running 4.4 BSD
3276 tm_file=mips/dec-bsd.h
3277 fixincludes=
3278 if [ x$gas = xyes ]
3279 then
3280 tmake_file=mips/t-mips-gas
3281 else
3282 tmake_file=mips/t-ultrix
3283 extra_passes="mips-tfile mips-tdump"
3285 if [ x$gnu_ld != xyes ]
3286 then
3287 use_collect2=yes
3290 mips-dec-netbsd*) # Decstation running NetBSD
3291 tm_file=mips/netbsd.h
3292 xm_file=mips/xm-netbsd.h
3293 # On NetBSD, the headers are already okay, except for math.h.
3294 fixincludes=fixinc.math
3295 tmake_file=t-netbsd
3297 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
3298 tm_file=mips/news4.h
3299 if [ x$stabs = xyes ]; then
3300 tm_file="${tm_file} dbx.h"
3302 if [ x$gas = xyes ]
3303 then
3304 tmake_file=mips/t-mips-gas
3305 else
3306 extra_passes="mips-tfile mips-tdump"
3308 if [ x$gnu_ld != xyes ]
3309 then
3310 use_collect2=yes
3312 xmake_file=mips/x-sony
3314 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
3315 # That is based on svr4.
3316 # t-svr4 is not right because this system doesn't use ELF.
3317 tm_file=mips/news5.h
3318 if [ x$stabs = xyes ]; then
3319 tm_file="${tm_file} dbx.h"
3321 xm_file=mips/xm-news.h
3322 if [ x$gas = xyes ]
3323 then
3324 tmake_file=mips/t-mips-gas
3325 else
3326 extra_passes="mips-tfile mips-tdump"
3328 if [ x$gnu_ld != xyes ]
3329 then
3330 use_collect2=yes
3333 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
3334 tm_file=mips/svr4-t.h
3335 if [ x$stabs = xyes ]; then
3336 tm_file="${tm_file} dbx.h"
3338 xm_file=mips/xm-sysv4.h
3339 xmake_file=mips/x-sysv
3340 if [ x$gas = xyes ]
3341 then
3342 tmake_file=mips/t-mips-gas
3343 extra_parts="crtbegin.o crtend.o"
3344 else
3345 tmake_file=mips/t-mips
3346 extra_passes="mips-tfile mips-tdump"
3348 if [ x$gnu_ld != xyes ]
3349 then
3350 use_collect2=yes
3353 mips-*-ultrix* | mips-dec-mach3) # Decstation.
3354 tm_file=mips/ultrix.h
3355 if [ x$stabs = xyes ]; then
3356 tm_file="${tm_file} dbx.h"
3358 xmake_file=mips/x-ultrix
3359 if [ x$gas = xyes ]
3360 then
3361 tmake_file=mips/t-mips-gas
3362 else
3363 tmake_file=mips/t-ultrix
3364 extra_passes="mips-tfile mips-tdump"
3366 if [ x$gnu_ld != xyes ]
3367 then
3368 use_collect2=yes
3371 mips-*-riscos[56789]bsd*)
3372 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
3373 if [ x$stabs = xyes ]; then
3374 tm_file="${tm_file} dbx.h"
3376 if [ x$gas = xyes ]
3377 then
3378 tmake_file=mips/t-bsd-gas
3379 else
3380 tmake_file=mips/t-bsd
3381 extra_passes="mips-tfile mips-tdump"
3383 if [ x$gnu_ld != xyes ]
3384 then
3385 use_collect2=yes
3388 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
3389 tm_file=mips/bsd-4.h # MIPS BSD 4.3, RISC-OS 4.0
3390 if [ x$stabs = xyes ]; then
3391 tm_file="${tm_file} dbx.h"
3393 if [ x$gas = xyes ]
3394 then
3395 tmake_file=mips/t-bsd-gas
3396 else
3397 tmake_file=mips/t-bsd
3398 extra_passes="mips-tfile mips-tdump"
3400 if [ x$gnu_ld != xyes ]
3401 then
3402 use_collect2=yes
3405 mips-*-riscos[56789]sysv4*)
3406 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
3407 if [ x$stabs = xyes ]; then
3408 tm_file="${tm_file} dbx.h"
3410 xm_file=mips/xm-sysv4.h
3411 xmake_file=mips/x-sysv
3412 if [ x$gas = xyes ]
3413 then
3414 tmake_file=mips/t-svr4-gas
3415 else
3416 tmake_file=mips/t-svr4
3417 extra_passes="mips-tfile mips-tdump"
3419 if [ x$gnu_ld != xyes ]
3420 then
3421 use_collect2=yes
3424 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
3425 tm_file=mips/svr4-4.h # MIPS System V.4. RISC-OS 4.0
3426 if [ x$stabs = xyes ]; then
3427 tm_file="${tm_file} dbx.h"
3429 xm_file=mips/xm-sysv.h
3430 xmake_file=mips/x-sysv
3431 if [ x$gas = xyes ]
3432 then
3433 tmake_file=mips/t-svr4-gas
3434 else
3435 tmake_file=mips/t-svr4
3436 extra_passes="mips-tfile mips-tdump"
3438 if [ x$gnu_ld != xyes ]
3439 then
3440 use_collect2=yes
3443 mips-*-riscos[56789]sysv*)
3444 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
3445 if [ x$stabs = xyes ]; then
3446 tm_file="${tm_file} dbx.h"
3448 xm_file=mips/xm-sysv.h
3449 xmake_file=mips/x-sysv
3450 if [ x$gas = xyes ]
3451 then
3452 tmake_file=mips/t-svr3-gas
3453 else
3454 tmake_file=mips/t-svr3
3455 extra_passes="mips-tfile mips-tdump"
3457 if [ x$gnu_ld != xyes ]
3458 then
3459 use_collect2=yes
3462 mips-*-sysv* | mips-*-riscos*sysv*)
3463 tm_file=mips/svr3-4.h # MIPS System V.3, RISC-OS 4.0
3464 if [ x$stabs = xyes ]; then
3465 tm_file="${tm_file} dbx.h"
3467 xm_file=mips/xm-sysv.h
3468 xmake_file=mips/x-sysv
3469 if [ x$gas = xyes ]
3470 then
3471 tmake_file=mips/t-svr3-gas
3472 else
3473 tmake_file=mips/t-svr3
3474 extra_passes="mips-tfile mips-tdump"
3476 if [ x$gnu_ld != xyes ]
3477 then
3478 use_collect2=yes
3481 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3482 tm_file=mips/mips-5.h
3483 if [ x$stabs = xyes ]; then
3484 tm_file="${tm_file} dbx.h"
3486 if [ x$gas = xyes ]
3487 then
3488 tmake_file=mips/t-mips-gas
3489 else
3490 extra_passes="mips-tfile mips-tdump"
3492 if [ x$gnu_ld != xyes ]
3493 then
3494 use_collect2=yes
3497 mips-*-gnu*)
3499 mipsel-*-ecoff*)
3500 tm_file=mips/ecoffl.h
3501 if [ x$stabs = xyes ]; then
3502 tm_file="${tm_file} dbx.h"
3504 tmake_file=mips/t-ecoff
3506 mips-*-ecoff*)
3507 tm_file=mips/ecoff.h
3508 if [ x$stabs = xyes ]; then
3509 tm_file="${tm_file} dbx.h"
3511 tmake_file=mips/t-ecoff
3513 mipsel-*-elf*)
3514 tm_file="mips/elfl.h libgloss.h"
3515 tmake_file=mips/t-ecoff
3517 mips-*-elf*)
3518 tm_file="mips/elf.h libgloss.h"
3519 tmake_file=mips/t-ecoff
3521 mips64el-*-elf*)
3522 tm_file="mips/elfl64.h libgloss.h"
3523 tmake_file=mips/t-ecoff
3525 mips64orionel-*-elf*)
3526 tm_file="mips/elflorion.h libgloss.h"
3527 tmake_file=mips/t-ecoff
3529 mips64-*-elf*)
3530 tm_file="mips/elf64.h libgloss.h"
3531 tmake_file=mips/t-ecoff
3533 mips64orion-*-elf*)
3534 tm_file="mips/elforion.h libgloss.h"
3535 tmake_file=mips/t-ecoff
3537 mips64orion-*-rtems*)
3538 tm_file=mips/rtems64.h
3539 tmake_file="mips/t-ecoff t-rtems"
3541 mips-*-*) # Default MIPS RISC-OS 4.0.
3542 if [ x$stabs = xyes ]; then
3543 tm_file="${tm_file} dbx.h"
3545 if [ x$gas = xyes ]
3546 then
3547 tmake_file=mips/t-mips-gas
3548 else
3549 extra_passes="mips-tfile mips-tdump"
3551 if [ x$gnu_ld != xyes ]
3552 then
3553 use_collect2=yes
3556 mn10200-*-*)
3557 cpu_type=mn10200
3558 tm_file="mn10200/mn10200.h"
3559 if [ x$stabs = xyes ]
3560 then
3561 tm_file="${tm_file} dbx.h"
3563 use_collect2=no
3565 mn10300-*-*)
3566 cpu_type=mn10300
3567 tm_file="mn10300/mn10300.h"
3568 if [ x$stabs = xyes ]
3569 then
3570 tm_file="${tm_file} dbx.h"
3572 use_collect2=no
3574 ns32k-encore-bsd*)
3575 tm_file=ns32k/encore.h
3576 use_collect2=yes
3578 ns32k-sequent-bsd*)
3579 tm_file=ns32k/sequent.h
3580 use_collect2=yes
3582 ns32k-tek6100-bsd*)
3583 tm_file=ns32k/tek6100.h
3584 use_collect2=yes
3586 ns32k-tek6200-bsd*)
3587 tm_file=ns32k/tek6200.h
3588 use_collect2=yes
3590 # This has not been updated to GCC 2.
3591 # ns32k-ns-genix*)
3592 # xm_file=ns32k/xm-genix.h
3593 # xmake_file=ns32k/x-genix
3594 # tm_file=ns32k/genix.h
3595 # use_collect2=yes
3596 # ;;
3597 ns32k-merlin-*)
3598 tm_file=ns32k/merlin.h
3599 use_collect2=yes
3601 ns32k-pc532-mach*)
3602 tm_file=ns32k/pc532-mach.h
3603 use_collect2=yes
3605 ns32k-pc532-minix*)
3606 tm_file=ns32k/pc532-min.h
3607 xm_file=ns32k/xm-pc532-min.h
3608 use_collect2=yes
3610 ns32k-pc532-netbsd*)
3611 tm_file=ns32k/netbsd.h
3612 xm_file=ns32k/xm-netbsd.h
3613 # On NetBSD, the headers are already okay, except for math.h.
3614 fixincludes=fixinc.math
3615 tmake_file=t-netbsd
3617 pdp11-*-bsd)
3618 tm_file="${tm_file} pdp11/2bsd.h"
3620 pdp11-*-*)
3622 pyramid-*-*)
3623 cpu_type=pyr
3624 xmake_file=pyr/x-pyr
3625 use_collect2=yes
3627 romp-*-aos*)
3628 use_collect2=yes
3630 romp-*-mach*)
3631 xmake_file=romp/x-mach
3632 use_collect2=yes
3634 powerpc-*-sysv* | powerpc-*-elf*)
3635 tm_file=rs6000/sysv4.h
3636 xm_file=rs6000/xm-sysv4.h
3637 extra_headers=ppc-asm.h
3638 if [ x$gas = xyes ]
3639 then
3640 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3641 else
3642 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3644 xmake_file=rs6000/x-sysv4
3646 powerpc-*-eabiaix*)
3647 tm_file=rs6000/eabiaix.h
3648 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3649 fixincludes=Makefile.in
3650 extra_headers=ppc-asm.h
3652 powerpc-*-eabisim*)
3653 tm_file=rs6000/eabisim.h
3654 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3655 fixincludes=Makefile.in
3656 extra_headers=ppc-asm.h
3658 powerpc-*-eabi*)
3659 tm_file=rs6000/eabi.h
3660 if [ x$gas = xyes ]
3661 then
3662 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3663 else
3664 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3666 fixincludes=Makefile.in
3667 extra_headers=ppc-asm.h
3669 powerpc-*-rtems*)
3670 tm_file=rs6000/rtems.h
3671 if [ x$gas = xyes ]
3672 then
3673 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3674 else
3675 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
3677 fixincludes=Makefile.in
3678 extra_headers=ppc-asm.h
3680 powerpc-*-linux-gnu*)
3681 tm_file=rs6000/linux.h
3682 xm_file=rs6000/xm-sysv4.h
3683 out_file=rs6000/rs6000.c
3684 if [ x$gas = xyes ]
3685 then
3686 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3687 else
3688 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
3690 xmake_file=x-linux
3691 fixincludes=Makefile.in
3692 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3693 extra_headers=ppc-asm.h
3694 if [ x$enable_threads = xyes ]; then
3695 thread_file='posix'
3698 powerpc-*-vxworks*)
3699 cpu_type=rs6000
3700 xm_file=rs6000/xm-sysv4.h
3701 tm_file=rs6000/vxppc.h
3702 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3703 extra_headers=ppc-asm.h
3705 powerpcle-*-sysv* | powerpcle-*-elf*)
3706 tm_file=rs6000/sysv4le.h
3707 xm_file=rs6000/xm-sysv4.h
3708 if [ x$gas = xyes ]
3709 then
3710 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3711 else
3712 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3714 xmake_file=rs6000/x-sysv4
3715 extra_headers=ppc-asm.h
3717 powerpcle-*-eabisim*)
3718 tm_file=rs6000/eabilesim.h
3719 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3720 fixincludes=Makefile.in
3721 extra_headers=ppc-asm.h
3723 powerpcle-*-eabi*)
3724 tm_file=rs6000/eabile.h
3725 if [ x$gas = xyes ]
3726 then
3727 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3728 else
3729 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3731 fixincludes=Makefile.in
3732 extra_headers=ppc-asm.h
3734 powerpcle-*-winnt* )
3735 tm_file=rs6000/win-nt.h
3736 tmake_file=rs6000/t-winnt
3737 # extra_objs=pe.o
3738 fixincludes=Makefile.in
3739 if [ x$enable_threads = xyes ]; then
3740 thread_file='win32'
3742 extra_headers=ppc-asm.h
3744 powerpcle-*-pe | powerpcle-*-cygwin32)
3745 tm_file=rs6000/cygwin32.h
3746 xm_file=rs6000/xm-cygwin32.h
3747 tmake_file=rs6000/t-winnt
3748 xmake_file=rs6000/x-cygwin32
3749 # extra_objs=pe.o
3750 fixincludes=Makefile.in
3751 if [ x$enable_threads = xyes ]; then
3752 thread_file='win32'
3754 exeext=.exe
3755 extra_headers=ppc-asm.h
3757 powerpcle-*-solaris2*)
3758 tm_file=rs6000/sol2.h
3759 xm_file=rs6000/xm-sysv4.h
3760 if [ x$gas = xyes ]
3761 then
3762 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3763 else
3764 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3766 xmake_file=rs6000/x-sysv4
3767 fixincludes=fixinc.svr4
3768 extra_headers=ppc-asm.h
3770 rs6000-ibm-aix3.[01]*)
3771 tm_file=rs6000/aix31.h
3772 xmake_file=rs6000/x-aix31
3773 use_collect2=yes
3775 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3776 tm_file=rs6000/aix3newas.h
3777 if [ x$host != x$target ]
3778 then
3779 tmake_file=rs6000/t-xnewas
3780 else
3781 tmake_file=rs6000/t-newas
3783 use_collect2=yes
3785 rs6000-ibm-aix[456789].* | powerpc-ibm-aix[456789].*)
3786 tm_file=rs6000/aix41.h
3787 if [ x$host != x$target ]
3788 then
3789 tmake_file=rs6000/t-xnewas
3790 else
3791 tmake_file=rs6000/t-newas
3793 xmake_file=rs6000/x-aix31
3794 use_collect2=yes
3796 rs6000-ibm-aix*)
3797 use_collect2=yes
3799 rs6000-bull-bosx)
3800 use_collect2=yes
3802 rs6000-*-mach*)
3803 tm_file=rs6000/mach.h
3804 xm_file=rs6000/xm-mach.h
3805 xmake_file=rs6000/x-mach
3806 use_collect2=yes
3808 rs6000-*-lynxos*)
3809 tm_file=rs6000/lynx.h
3810 xm_file=rs6000/xm-lynx.h
3811 tmake_file=rs6000/t-rs6000
3812 xmake_file=rs6000/x-lynx
3813 use_collect2=yes
3815 sh-*-elf*)
3816 tm_file=sh/elf.h
3817 float_format=sh
3819 sh-*-rtems*)
3820 tmake_file="sh/t-sh t-rtems"
3821 tm_file=sh/rtems.h
3822 float_format=sh
3824 sh-*-*)
3825 float_format=sh
3827 sparc-tti-*)
3828 tm_file=sparc/pbd.h
3829 xm_file=sparc/xm-pbd.h
3831 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3832 tm_file=sparc/vxsparc.h
3833 tmake_file=sparc/t-vxsparc
3834 use_collect2=yes
3836 sparc-*-aout*)
3837 tmake_file=sparc/t-sparcbare
3838 tm_file="sparc/aout.h libgloss.h"
3840 sparc-*-netbsd*)
3841 tm_file=sparc/netbsd.h
3842 xm_file=sparc/xm-netbsd.h
3843 # On NetBSD, the headers are already okay, except for math.h.
3844 fixincludes=fixinc.math
3845 tmake_file=t-netbsd
3847 sparc-*-bsd*)
3848 tm_file=sparc/bsd.h
3850 sparc-*-elf*)
3851 tm_file=sparc/elf.h
3852 tmake_file=sparc/t-elf
3853 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3854 #float_format=i128
3855 float_format=i64
3857 sparc-*-linux-gnuaout*) # Sparc's running Linux, a.out
3858 xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
3859 tm_file=sparc/linux-aout.h
3860 xmake_file=x-linux
3861 fixincludes=Makefile.in #On Linux, the headers are ok already.
3862 gnu_ld=yes
3864 sparc-*-linux-gnulibc1*) # Sparc's running Linux, libc5
3865 xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
3866 xmake_file=x-linux
3867 tm_file=sparc/linux.h
3868 tmake_file="t-linux t-linux-gnulibc1 sparc/t-linux"
3869 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3870 fixincludes=Makefile.in #On Linux, the headers are ok already.
3871 gnu_ld=yes
3873 sparc-*-linux-gnu*) # Sparc's running Linux, libc6
3874 xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
3875 xmake_file=x-linux
3876 tm_file=sparc/linux.h
3877 tmake_file="t-linux sparc/t-linux"
3878 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3879 fixincludes=Makefile.in #On Linux, the headers are ok already.
3880 gnu_ld=yes
3881 if [ x$enable_threads = xyes ]; then
3882 thread_file='posix'
3885 sparc-*-lynxos*)
3886 if [ x$gas = xyes ]
3887 then
3888 tm_file=sparc/lynx.h
3889 else
3890 tm_file=sparc/lynx-ng.h
3892 xm_file=sparc/xm-lynx.h
3893 tmake_file=sparc/t-sunos41
3894 xmake_file=x-lynx
3896 sparc-*-rtems*)
3897 tmake_file="sparc/t-sparcbare t-rtems"
3898 tm_file=sparc/rtems.h
3900 sparc-*-solaris2*)
3901 tm_file=sparc/sol2.h
3902 xm_file=sparc/xm-sol2.h
3903 tmake_file=sparc/t-sol2
3904 xmake_file=sparc/x-sysv4
3905 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3906 fixincludes=fixinc.svr4
3907 if [ x$enable_threads = xyes ]; then
3908 thread_file='solaris'
3911 sparc-*-sunos4.0*)
3912 tm_file=sparc/sunos4.h
3913 tmake_file=sparc/t-sunos40
3914 use_collect2=yes
3916 sparc-*-sunos4*)
3917 tm_file=sparc/sunos4.h
3918 tmake_file=sparc/t-sunos41
3919 use_collect2=yes
3920 if [ x$gas = xyes ]; then
3921 tm_file="${tm_file} sparc/sun4gas.h"
3924 sparc-*-sunos3*)
3925 tm_file=sparc/sun4o3.h
3926 use_collect2=yes
3928 sparc-*-sysv4*)
3929 tm_file=sparc/sysv4.h
3930 xm_file=sparc/xm-sysv4.h
3931 tmake_file=t-svr4
3932 xmake_file=sparc/x-sysv4
3933 extra_parts="crtbegin.o crtend.o"
3935 sparc-*-vxsim*)
3936 xm_file=sparc/xm-sol2.h
3937 tm_file=sparc/vxsim.h
3938 tmake_file=sparc/t-vxsparc
3939 xmake_file=sparc/x-sysv4
3941 sparclet-*-aout*)
3942 tm_file="sparc/splet.h libgloss.h"
3943 tmake_file=sparc/t-splet
3945 sparclite-*-coff*)
3946 tm_file="sparc/litecoff.h libgloss.h"
3947 tmake_file=sparc/t-sparclite
3949 sparclite-*-aout*)
3950 tm_file="sparc/lite.h aoutos.h libgloss.h"
3951 tmake_file=sparc/t-sparclite
3953 sparc64-*-aout*)
3954 tmake_file=sparc/t-sp64
3955 tm_file=sparc/sp64-aout.h
3957 sparc64-*-elf*)
3958 tmake_file=sparc/t-sp64
3959 tm_file=sparc/sp64-elf.h
3960 extra_parts="crtbegin.o crtend.o"
3962 sparc64-*-linux*) # 64-bit Sparc's running Linux
3963 tmake_file=sparc/t-sp64
3964 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3965 tm_file=sparc/linux64.h
3966 xmake_file=x-linux
3967 fixincludes=Makefile.in # On Linux, the headers are ok already.
3968 gnu_ld=yes
3970 # This hasn't been upgraded to GCC 2.
3971 # tahoe-harris-*) # Harris tahoe, using COFF.
3972 # tm_file=tahoe/harris.h
3973 # ;;
3974 # tahoe-*-bsd*) # tahoe running BSD
3975 # ;;
3976 # This hasn't been upgraded to GCC 2.
3977 # tron-*-*)
3978 # cpu_type=gmicro
3979 # use_collect2=yes
3980 # ;;
3981 v850-*-*)
3982 cpu_type=v850
3983 tm_file="v850/v850.h"
3984 xm_file="v850/xm-v850.h"
3985 if [ x$stabs = xyes ]
3986 then
3987 tm_file="${tm_file} dbx.h"
3989 use_collect2=no
3991 vax-*-bsd*) # vaxen running BSD
3992 use_collect2=yes
3993 float_format=vax
3995 vax-*-sysv*) # vaxen running system V
3996 tm_file="${tm_file} vax/vaxv.h"
3997 xm_file="${tm_file} vax/xm-vaxv.h"
3998 float_format=vax
4000 vax-*-netbsd*)
4001 tm_file="${tm_file} netbsd.h vax/netbsd.h"
4002 xm_file="${xm_file} xm-netbsd.h"
4003 # On NetBSD, the headers are already okay, except for math.h.
4004 fixincludes=fixinc.math
4005 tmake_file=t-netbsd
4006 float_format=vax
4008 vax-*-ultrix*) # vaxen running ultrix
4009 tm_file="${tm_file} vax/ultrix.h"
4010 use_collect2=yes
4011 float_format=vax
4013 vax-*-vms*) # vaxen running VMS
4014 xm_file=vax/xm-vms.h
4015 tm_file=vax/vms.h
4016 float_format=vax
4018 vax-*-*) # vax default entry
4019 float_format=vax
4021 we32k-att-sysv*)
4022 xm_file="${xm_file} xm-svr3"
4023 use_collect2=yes
4026 echo "Configuration $machine not supported" 1>&2
4027 exit 1
4029 esac
4031 case $machine in
4032 *-*-linux-gnu*)
4033 ;; # Existing Linux/GNU systems do not use the GNU setup.
4034 *-*-gnu*)
4035 # On the GNU system, the setup is just about the same on
4036 # each different CPU. The specific machines that GNU
4037 # supports are matched above and just set $cpu_type.
4038 xm_file=${cpu_type}/xm-gnu.h
4039 tm_file=${cpu_type}/gnu.h
4040 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4041 # GNU always uses ELF.
4042 elf=yes
4043 # GNU tools are the only tools.
4044 gnu_ld=yes
4045 gas=yes
4046 # On GNU, the headers are already okay.
4047 fixincludes=Makefile.in
4048 xmake_file=x-linux # These details are the same as Linux.
4049 tmake_file=t-gnu # These are not.
4051 *-*-sysv4*)
4052 fixincludes=fixinc.svr4
4053 xmake_try_sysv=x-sysv
4054 install_headers_dir=install-headers-cpio
4056 *-*-sysv*)
4057 install_headers_dir=install-headers-cpio
4059 esac
4061 # Distinguish i[3456]86
4062 # Also, do not run mips-tfile on MIPS if using gas.
4063 # Process --with-cpu= for PowerPC/rs6000
4064 target_cpu_default2=
4065 case $machine in
4066 i486-*-*)
4067 target_cpu_default2=1
4069 i586-*-*)
4070 target_cpu_default2=2
4072 i686-*-*)
4073 target_cpu_default2=3
4075 alpha*-*-*)
4076 case $machine in
4077 alphaev56*)
4078 target_cpu_default2="MASK_CPU_EV5"
4080 alphaev5*)
4081 target_cpu_default2="MASK_CPU_EV5"
4083 esac
4085 if [ x$gas = xyes ]
4086 then
4087 if [ x$target_cpu_default2 = x ]
4088 then
4089 target_cpu_default2="MASK_GAS"
4090 else
4091 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
4095 mips*-*-ecoff* | mips*-*-elf*)
4096 if [ x$gas = xyes ]
4097 then
4098 if [ x$gnu_ld = xyes ]
4099 then
4100 target_cpu_default2=20
4101 else
4102 target_cpu_default2=16
4106 mips*-*-*)
4107 if [ x$gas = xyes ]
4108 then
4109 target_cpu_default2=16
4112 powerpc*-*-* | rs6000-*-*)
4113 case "x$with_cpu" in
4117 xcommon | xpower | xpower2 | xpowerpc | xrios \
4118 | xrios1 | xrios2 | xrsc | xrsc1 \
4119 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4120 | x403 | x505 | x801 | x821 | x823 | x860)
4121 target_cpu_default2="\"$with_cpu\""
4124 xyes | xno)
4125 echo "--with-cpu must be passed a value" 1>&2
4126 exit 1
4130 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4131 exit 1
4133 esac
4135 sparc*-*-*)
4136 case ".$with_cpu" in
4138 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
4140 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
4141 target_cpu_default2="TARGET_CPU_$with_cpu"
4144 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4145 exit 1
4147 esac
4149 esac
4151 if [ x$target_cpu_default2 != x ]
4152 then
4153 if [ x$target_cpu_default != x ]
4154 then
4155 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
4156 else
4157 target_cpu_default=$target_cpu_default2
4161 # No need for collect2 if we have the GNU linker.
4162 case x$gnu_ld in
4163 xyes)
4164 use_collect2=
4166 esac
4168 # Save data on machine being used to compile GCC in build_xm_file.
4169 # Save data on host machine in vars host_xm_file and host_xmake_file.
4170 if [ x$pass1done = x ]
4171 then
4172 if [ x"$xm_file" = x ]
4173 then build_xm_file=$cpu_type/xm-$cpu_type.h
4174 else build_xm_file=$xm_file
4176 build_install_headers_dir=$install_headers_dir
4177 build_exeext=$exeext
4178 pass1done=yes
4179 else
4180 if [ x$pass2done = x ]
4181 then
4182 if [ x"$xm_file" = x ]
4183 then host_xm_file=$cpu_type/xm-$cpu_type.h
4184 else host_xm_file=$xm_file
4186 if [ x"$xmake_file" = x ]
4187 then xmake_file=$cpu_type/x-$cpu_type
4189 host_xmake_file="$xmake_file"
4190 host_truncate_target=$truncate_target
4191 host_extra_gcc_objs=$extra_gcc_objs
4192 host_extra_objs=$extra_host_objs
4193 pass2done=yes
4196 done
4198 extra_objs="${host_extra_objs} ${extra_objs}"
4200 # Default the target-machine variables that were not explicitly set.
4201 if [ x"$tm_file" = x ]
4202 then tm_file=$cpu_type/$cpu_type.h; fi
4204 if [ x$extra_headers = x ]
4205 then extra_headers=; fi
4207 if [ x"$xm_file" = x ]
4208 then xm_file=$cpu_type/xm-$cpu_type.h; fi
4210 md_file=$cpu_type/$cpu_type.md
4212 if [ x$out_file = x ]
4213 then out_file=$cpu_type/$cpu_type.c; fi
4215 if [ x"$tmake_file" = x ]
4216 then tmake_file=$cpu_type/t-$cpu_type
4219 if [ x$float_format = x ]
4220 then float_format=i64
4223 # Say what files are being used for the output code and MD file.
4224 echo "Using \`$srcdir/config/$out_file' to output insns."
4225 echo "Using \`$srcdir/config/$md_file' as machine description file."
4227 count=a
4228 for f in $tm_file; do
4229 count=${count}x
4230 done
4231 if [ $count = ax ]; then
4232 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4233 else
4234 echo "Using the following target machine macro files:"
4235 for f in $tm_file; do
4236 echo " $srcdir/config/$f"
4237 done
4240 count=a
4241 for f in $host_xm_file; do
4242 count=${count}x
4243 done
4244 if [ $count = ax ]; then
4245 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4246 else
4247 echo "Using the following host machine macro files:"
4248 for f in $host_xm_file; do
4249 echo " $srcdir/config/$f"
4250 done
4253 if [ "$host_xm_file" != "$build_xm_file" ]; then
4254 count=a
4255 for f in $build_xm_file; do
4256 count=${count}x
4257 done
4258 if [ $count = ax ]; then
4259 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4260 else
4261 echo "Using the following build machine macro files:"
4262 for f in $build_xm_file; do
4263 echo " $srcdir/config/$f"
4264 done
4268 if [ x$thread_file = x ]
4269 then thread_file='single'
4272 # Set up the header files.
4273 # $links is the list of header files to create.
4274 # $vars is the list of shell variables with file names to include.
4275 # config2.h is the old config.h. It is included by the new config.h which
4276 # created from config.in. The goal is to simplify the transition to autoconf.
4277 vars="host_xm_file tm_file xm_file build_xm_file"
4278 links="config2.h tm.h tconfig.h hconfig.h"
4280 rm -f config.bak
4281 if [ -f config.status ]; then mv -f config.status config.bak; fi
4283 # Make the links.
4284 while [ -n "$vars" ]
4286 # set file to car of files, files to cdr of files
4287 set $vars; var=$1; shift; vars=$*
4288 set $links; link=$1; shift; links=$*
4290 rm -f $link
4292 # Define TARGET_CPU_DEFAULT if the system wants one.
4293 # This substitutes for lots of *.h files.
4294 if [ x$target_cpu_default != x -a $link = tm.h ]
4295 then
4296 echo "#define TARGET_CPU_DEFAULT $target_cpu_default" >>$link
4299 for file in `eval echo '$'$var`; do
4300 echo "#include \"$file\"" >>$link
4301 done
4302 done
4304 # Truncate the target if necessary
4305 if [ x$host_truncate_target != x ]; then
4306 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4309 # Get the version number from the toplevel
4310 version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
4312 # Get an absolute path to the GCC top-level source directory
4313 holddir=`pwd`
4314 cd $srcdir
4315 topdir=`pwd`
4316 cd $holddir
4318 # Conditionalize the makefile for this host machine.
4319 # Make-host contains the concatenation of all host makefile fragments
4320 # [there can be more than one]. This file is built by configure.frag.
4321 host_overrides=Make-host
4322 dep_host_xmake_file=
4323 for f in .. ${host_xmake_file}
4325 if [ -f ${srcdir}/config/$f ]
4326 then
4327 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4329 done
4331 # Conditionalize the makefile for this target machine.
4332 # Make-target contains the concatenation of all host makefile fragments
4333 # [there can be more than one]. This file is built by configure.frag.
4334 target_overrides=Make-target
4335 dep_tmake_file=
4336 for f in .. ${tmake_file}
4338 if [ -f ${srcdir}/config/$f ]
4339 then
4340 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4342 done
4344 # If the host doesn't support symlinks, modify CC in
4345 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4346 # Otherwise, we can use "CC=$(CC)".
4347 rm -f symtest.tem
4348 if $symbolic_link symtest1.tem symtest.tem 2>/dev/null
4349 then
4350 cc_set_by_configure="\$(CC)"
4351 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4352 else
4353 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4354 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4356 rm -f symtest.tem
4358 out_object_file=`basename $out_file .c`.o
4360 tm_file_list=
4361 for f in $tm_file; do
4362 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
4363 done
4365 host_xm_file_list=
4366 for f in $host_xm_file; do
4367 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
4368 done
4370 build_xm_file_list=
4371 for f in $build_xm_file; do
4372 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
4373 done
4375 # Define macro CROSS_COMPILE in compilation
4376 # if this is a cross-compiler.
4377 # Also use all.cross instead of all.internal
4378 # and add cross-make to Makefile.
4379 cross_overrides="/dev/null"
4380 if [ x$host != x$target ]
4381 then
4382 cross_defines="CROSS=-DCROSS_COMPILE"
4383 cross_overrides="${topdir}/cross-make"
4386 # When building gcc with a cross-compiler, we need to fix a few things.
4387 # This must come after cross-make as we want all.build to override
4388 # all.cross.
4389 build_overrides="/dev/null"
4390 if [ x$build != x$host ]
4391 then
4392 build_overrides="${topdir}/build-make"
4395 # Expand extra_headers to include complete path.
4396 # This substitutes for lots of t-* files.
4397 extra_headers_list=
4398 if [ "x$extra_headers" = x ]
4399 then true
4400 else
4401 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4402 for file in $extra_headers;
4404 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4405 done
4408 # Add a definition of USE_COLLECT2 if system wants one.
4409 # Also tell toplev.c what to do.
4410 # This substitutes for lots of t-* files.
4411 if [ x$use_collect2 = x ]
4412 then
4413 will_use_collect2=
4414 maybe_use_collect2=
4415 else
4416 will_use_collect2="ld"
4417 maybe_use_collect2="-DUSE_COLLECT2"
4420 # NEED TO CONVERT
4421 # Set MD_DEPS if the real md file is in md.pre-cpp.
4422 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4423 # for line oriented comments, so we must always use a GNU cpp. If
4424 # building gcc with a cross compiler, use the cross compiler just
4425 # built. Otherwise, we can use the cpp just built.
4426 md_file_sub=
4427 if [ "x$md_cppflags" = x ]
4428 then
4429 md_file_sub=$srcdir/config/$md_file
4430 else
4431 md_file=md
4434 # If we have gas in the build tree, make a link to it.
4435 if [ -f ../gas/Makefile ]; then
4436 rm -f as; $symbolic_link ../gas/as-new as 2>/dev/null
4439 # If we have ld in the build tree, make a link to it.
4440 if [ -f ../ld/Makefile ]; then
4441 # if [[ x$use_collect2 = x ]]; then
4442 # rm -f ld; $symbolic_link ../ld/ld-new ld 2>/dev/null
4443 # else
4444 rm -f collect-ld; $symbolic_link ../ld/ld-new collect-ld 2>/dev/null
4445 # fi
4448 # Figure out what language subdirectories are present.
4449 subdirs=
4450 for lang in ${srcdir}/*/config-lang.in ..
4452 case $lang in
4453 ..) ;;
4454 # The odd quoting in the next line works around
4455 # an apparent bug in bash 1.12 on linux.
4456 ${srcdir}/[*]/config-lang.in) ;;
4457 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4458 esac
4459 done
4461 # Make empty files to contain the specs and options for each language.
4462 # Then add #include lines to for a compiler that has specs and/or options.
4464 lang_specs_files=
4465 lang_options_files=
4466 rm -f specs.h options.h
4467 touch specs.h options.h
4468 for subdir in . $subdirs
4470 if [ -f $srcdir/$subdir/lang-specs.h ]; then
4471 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4472 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4474 if [ -f $srcdir/$subdir/lang-options.h ]; then
4475 echo "#include \"$subdir/lang-options.h\"" >>options.h
4476 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4478 done
4480 # These (without "all_") are set in each config-lang.in.
4481 # `language' must be a single word so is spelled singularly.
4482 all_languages=
4483 all_boot_languages=
4484 all_compilers=
4485 all_stagestuff=
4486 all_diff_excludes=
4487 all_outputs=Makefile
4488 # List of language makefile fragments.
4489 all_lang_makefiles=
4490 all_headers=
4491 all_lib2funcs=
4493 # Add the language fragments.
4494 # Languages are added via two mechanisms. Some information must be
4495 # recorded in makefile variables, these are defined in config-lang.in.
4496 # We accumulate them and plug them into the main Makefile.
4497 # The other mechanism is a set of hooks for each of the main targets
4498 # like `clean', `install', etc.
4500 language_fragments="Make-lang"
4501 language_hooks="Make-hooks"
4502 oldstyle_subdirs=
4504 for s in .. $subdirs
4506 if [ $s != ".." ]
4507 then
4508 language=
4509 boot_language=
4510 compilers=
4511 stagestuff=
4512 diff_excludes=
4513 headers=
4514 outputs=
4515 lib2funcs=
4516 . ${srcdir}/$s/config-lang.in
4517 if [ "x$language" = x ]
4518 then
4519 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4520 exit 1
4522 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4523 all_languages="$all_languages $language"
4524 if [ "x$boot_language" = xyes ]
4525 then
4526 all_boot_languages="$all_boot_languages $language"
4528 all_compilers="$all_compilers $compilers"
4529 all_stagestuff="$all_stagestuff $stagestuff"
4530 all_diff_excludes="$all_diff_excludes $diff_excludes"
4531 all_headers="$all_headers $headers"
4532 all_outputs="$all_outputs $outputs"
4533 if [ x$outputs = x ]
4534 then
4535 oldstyle_subdirs="$oldstyle_subdirs $s"
4537 all_lib2funcs="$all_lib2funcs $lib2funcs"
4539 done
4541 # Since we can't use `::' targets, we link each language in
4542 # with a set of hooks, reached indirectly via lang.${target}.
4544 rm -f Make-hooks
4545 touch Make-hooks
4546 target_list="all.build all.cross start.encap rest.encap \
4547 info dvi \
4548 install-normal install-common install-info install-man \
4549 uninstall distdir \
4550 mostlyclean clean distclean extraclean maintainer-clean \
4551 stage1 stage2 stage3 stage4"
4552 for t in $target_list
4555 for l in .. $all_languages
4557 if [ $l != ".." ]; then
4558 x="$x $l.$t"
4560 done
4561 echo "lang.$t: $x" >> Make-hooks
4562 done
4564 # If we're not building in srcdir, create .gdbinit.
4566 if [ ! -f Makefile.in ]; then
4567 echo "dir ." > .gdbinit
4568 echo "dir ${srcdir}" >> .gdbinit
4569 if [ x$gdb_needs_out_file_path = xyes ]
4570 then
4571 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4573 if [ "x$subdirs" != x ]; then
4574 for s in $subdirs
4576 echo "dir ${srcdir}/$s" >> .gdbinit
4577 done
4579 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4582 # If this is using newlib, then define inhibit_libc in
4583 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4584 # libgcc.a, but that's OK because newib should have its own version of
4585 # assert.h.
4586 inhibit_libc=
4587 if [ x$with_newlib = xyes ]; then
4588 inhibit_libc=-Dinhibit_libc
4592 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4593 sched_prefix=
4594 sched_cflags=
4595 if [ x$enable_haifa = xyes ]; then
4596 echo "Using the Haifa scheduler."
4597 sched_prefix=haifa-
4598 sched_cflags=-DHAIFA
4602 if [ x$enable_haifa != x ]; then
4603 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4604 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
4605 if [ -f $x ]; then
4606 echo "Removing $x"
4607 rm -f $x
4609 done
4612 # Process the language and host/target makefile fragments.
4613 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4615 # Substitute configuration variables
4665 # Echo that links are built
4666 if [ x$host = x$target ]
4667 then
4668 str1="native "
4669 else
4670 str1="cross-"
4671 str2=" from $host"
4674 if [ x$host != x$build ]
4675 then
4676 str3=" on a $build system"
4679 if [ "x$str2" != x ] || [ "x$str3" != x ]
4680 then
4681 str4=
4684 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4686 if [ "x$str2" != x ] || [ "x$str3" != x ]
4687 then
4688 echo " ${str2}${str3}." 1>&2
4691 # Configure the subdirectories
4692 # AC_CONFIG_SUBDIRS($subdirs)
4694 # Create the Makefile
4695 # and configure language subdirectories
4696 trap '' 1 2 15
4697 cat > confcache <<\EOF
4698 # This file is a shell script that caches the results of configure
4699 # tests run on this system so they can be shared between configure
4700 # scripts and configure runs. It is not useful on other systems.
4701 # If it contains results you don't want to keep, you may remove or edit it.
4703 # By default, configure uses ./config.cache as the cache file,
4704 # creating it if it does not exist already. You can give configure
4705 # the --cache-file=FILE option to use a different cache file; that is
4706 # what configure does when it calls configure scripts in
4707 # subdirectories, so they share the cache.
4708 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4709 # config.status only pays attention to the cache file if you give it the
4710 # --recheck option to rerun configure.
4713 # The following way of writing the cache mishandles newlines in values,
4714 # but we know of no workaround that is simple, portable, and efficient.
4715 # So, don't put newlines in cache variables' values.
4716 # Ultrix sh set writes to stderr and can't be redirected directly,
4717 # and sets the high bit in the cache file unless we assign to the vars.
4718 (set) 2>&1 |
4719 case `(ac_space=' '; set) 2>&1` in
4720 *ac_space=\ *)
4721 # `set' does not quote correctly, so add quotes (double-quote substitution
4722 # turns \\\\ into \\, and sed turns \\ into \).
4723 sed -n \
4724 -e "s/'/'\\\\''/g" \
4725 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4728 # `set' quotes correctly as required by POSIX, so do not add quotes.
4729 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4731 esac >> confcache
4732 if cmp -s $cache_file confcache; then
4734 else
4735 if test -w $cache_file; then
4736 echo "updating cache $cache_file"
4737 cat confcache > $cache_file
4738 else
4739 echo "not updating unwritable cache $cache_file"
4742 rm -f confcache
4744 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4747 # Let make expand exec_prefix.
4748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4750 # Any assignment to VPATH causes Sun make to only execute
4751 # the first set of double-colon rules, so remove it if not needed.
4752 # If there is a colon in the path, we need to keep it.
4753 if test "x$srcdir" = x.; then
4754 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4757 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4759 DEFS=-DHAVE_CONFIG_H
4761 # Without the "./", some shells look in PATH for config.status.
4762 : ${CONFIG_STATUS=./config.status}
4764 echo creating $CONFIG_STATUS
4765 rm -f $CONFIG_STATUS
4766 cat > $CONFIG_STATUS <<EOF
4767 #! /bin/sh
4768 # Generated automatically by configure.
4769 # Run this file to recreate the current configuration.
4770 # This directory was configured as follows,
4771 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4773 # $0 $ac_configure_args
4775 # Compiler output produced by configure, useful for debugging
4776 # configure, is in ./config.log if it exists.
4778 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4779 for ac_option
4781 case "\$ac_option" in
4782 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4783 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4784 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4785 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4786 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4787 exit 0 ;;
4788 -help | --help | --hel | --he | --h)
4789 echo "\$ac_cs_usage"; exit 0 ;;
4790 *) echo "\$ac_cs_usage"; exit 1 ;;
4791 esac
4792 done
4794 ac_given_srcdir=$srcdir
4796 trap 'rm -fr `echo "$all_outputs config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4798 cat >> $CONFIG_STATUS <<EOF
4800 # Protect against being on the right side of a sed subst in config.status.
4801 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4802 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4803 $ac_vpsub
4804 $extrasub
4805 s%@CFLAGS@%$CFLAGS%g
4806 s%@CPPFLAGS@%$CPPFLAGS%g
4807 s%@CXXFLAGS@%$CXXFLAGS%g
4808 s%@DEFS@%$DEFS%g
4809 s%@LDFLAGS@%$LDFLAGS%g
4810 s%@LIBS@%$LIBS%g
4811 s%@exec_prefix@%$exec_prefix%g
4812 s%@prefix@%$prefix%g
4813 s%@program_transform_name@%$program_transform_name%g
4814 s%@bindir@%$bindir%g
4815 s%@sbindir@%$sbindir%g
4816 s%@libexecdir@%$libexecdir%g
4817 s%@datadir@%$datadir%g
4818 s%@sysconfdir@%$sysconfdir%g
4819 s%@sharedstatedir@%$sharedstatedir%g
4820 s%@localstatedir@%$localstatedir%g
4821 s%@libdir@%$libdir%g
4822 s%@includedir@%$includedir%g
4823 s%@oldincludedir@%$oldincludedir%g
4824 s%@infodir@%$infodir%g
4825 s%@mandir@%$mandir%g
4826 s%@host@%$host%g
4827 s%@host_alias@%$host_alias%g
4828 s%@host_cpu@%$host_cpu%g
4829 s%@host_vendor@%$host_vendor%g
4830 s%@host_os@%$host_os%g
4831 s%@target@%$target%g
4832 s%@target_alias@%$target_alias%g
4833 s%@target_cpu@%$target_cpu%g
4834 s%@target_vendor@%$target_vendor%g
4835 s%@target_os@%$target_os%g
4836 s%@build@%$build%g
4837 s%@build_alias@%$build_alias%g
4838 s%@build_cpu@%$build_cpu%g
4839 s%@build_vendor@%$build_vendor%g
4840 s%@build_os@%$build_os%g
4841 s%@AWK@%$AWK%g
4842 s%@LEX@%$LEX%g
4843 s%@LEXLIB@%$LEXLIB%g
4844 s%@LN@%$LN%g
4845 s%@LN_S@%$LN_S%g
4846 s%@RANLIB@%$RANLIB%g
4847 s%@YACC@%$YACC%g
4848 s%@INSTALL@%$INSTALL%g
4849 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4850 s%@INSTALL_DATA@%$INSTALL_DATA%g
4851 s%@CC@%$CC%g
4852 s%@SET_MAKE@%$SET_MAKE%g
4853 s%@CPP@%$CPP%g
4854 s%@manext@%$manext%g
4855 s%@objext@%$objext%g
4856 s%@inhibit_libc@%$inhibit_libc%g
4857 s%@sched_prefix@%$sched_prefix%g
4858 s%@sched_cflags@%$sched_cflags%g
4859 s%@subdirs@%$subdirs%g
4860 s%@all_languages@%$all_languages%g
4861 s%@all_boot_languages@%$all_boot_languages%g
4862 s%@all_compilers@%$all_compilers%g
4863 s%@all_lang_makefiles@%$all_lang_makefiles%g
4864 s%@all_stagestuff@%$all_stagestuff%g
4865 s%@all_diff_excludes@%$all_diff_excludes%g
4866 s%@all_lib2funcs@%$all_lib2funcs%g
4867 s%@all_headers@%$all_headers%g
4868 s%@extra_passes@%$extra_passes%g
4869 s%@extra_programs@%$extra_programs%g
4870 s%@extra_parts@%$extra_parts%g
4871 s%@extra_c_objs@%$extra_c_objs%g
4872 s%@extra_c_flags@%$extra_c_flags%g
4873 s%@extra_objs@%$extra_objs%g
4874 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
4875 s%@extra_headers_list@%$extra_headers_list%g
4876 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
4877 s%@dep_tmake_file@%$dep_tmake_file%g
4878 s%@out_file@%$out_file%g
4879 s%@out_object_file@%$out_object_file%g
4880 s%@md_file@%$md_file%g
4881 s%@tm_file_list@%$tm_file_list%g
4882 s%@build_xm_file_list@%$build_xm_file_list%g
4883 s%@host_xm_file_list@%$host_xm_file_list%g
4884 s%@lang_specs_files@%$lang_specs_files%g
4885 s%@lang_options_files@%$lang_options_files%g
4886 s%@thread_file@%$thread_file%g
4887 s%@version@%$version%g
4888 s%@local_prefix@%$local_prefix%g
4889 s%@gxx_include_dir@%$gxx_include_dir%g
4890 s%@fixincludes@%$fixincludes%g
4891 s%@build_install_headers_dir@%$build_install_headers_dir%g
4892 s%@build_exeext@%$build_exeext%g
4893 s%@float_format@%$float_format%g
4894 s%@will_use_collect2@%$will_use_collect2%g
4895 s%@maybe_use_collect2@%$maybe_use_collect2%g
4896 s%@cc_set_by_configure@%$cc_set_by_configure%g
4897 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
4898 s%@install@%$install%g
4899 /@target_overrides@/r $target_overrides
4900 s%@target_overrides@%%g
4901 /@host_overrides@/r $host_overrides
4902 s%@host_overrides@%%g
4903 s%@cross_defines@%$cross_defines%g
4904 /@cross_overrides@/r $cross_overrides
4905 s%@cross_overrides@%%g
4906 /@build_overrides@/r $build_overrides
4907 s%@build_overrides@%%g
4908 /@language_fragments@/r $language_fragments
4909 s%@language_fragments@%%g
4910 /@language_hooks@/r $language_hooks
4911 s%@language_hooks@%%g
4913 CEOF
4916 cat >> $CONFIG_STATUS <<\EOF
4918 # Split the substitutions into bite-sized pieces for seds with
4919 # small command number limits, like on Digital OSF/1 and HP-UX.
4920 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4921 ac_file=1 # Number of current file.
4922 ac_beg=1 # First line for current file.
4923 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4924 ac_more_lines=:
4925 ac_sed_cmds=""
4926 while $ac_more_lines; do
4927 if test $ac_beg -gt 1; then
4928 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4929 else
4930 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4932 if test ! -s conftest.s$ac_file; then
4933 ac_more_lines=false
4934 rm -f conftest.s$ac_file
4935 else
4936 if test -z "$ac_sed_cmds"; then
4937 ac_sed_cmds="sed -f conftest.s$ac_file"
4938 else
4939 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4941 ac_file=`expr $ac_file + 1`
4942 ac_beg=$ac_end
4943 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4945 done
4946 if test -z "$ac_sed_cmds"; then
4947 ac_sed_cmds=cat
4951 cat >> $CONFIG_STATUS <<EOF
4953 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
4955 cat >> $CONFIG_STATUS <<\EOF
4956 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4957 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4958 case "$ac_file" in
4959 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4960 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4961 *) ac_file_in="${ac_file}.in" ;;
4962 esac
4964 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4966 # Remove last slash and all that follows it. Not all systems have dirname.
4967 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4968 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4969 # The file is in a subdirectory.
4970 test ! -d "$ac_dir" && mkdir "$ac_dir"
4971 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4972 # A "../" for each directory in $ac_dir_suffix.
4973 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4974 else
4975 ac_dir_suffix= ac_dots=
4978 case "$ac_given_srcdir" in
4979 .) srcdir=.
4980 if test -z "$ac_dots"; then top_srcdir=.
4981 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4982 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4983 *) # Relative path.
4984 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4985 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4986 esac
4989 echo creating "$ac_file"
4990 rm -f "$ac_file"
4991 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4992 case "$ac_file" in
4993 *Makefile*) ac_comsub="1i\\
4994 # $configure_input" ;;
4995 *) ac_comsub= ;;
4996 esac
4998 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4999 sed -e "$ac_comsub
5000 s%@configure_input@%$configure_input%g
5001 s%@srcdir@%$srcdir%g
5002 s%@top_srcdir@%$top_srcdir%g
5003 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5004 fi; done
5005 rm -f conftest.s*
5007 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5008 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5010 # ac_d sets the value in "#define NAME VALUE" lines.
5011 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5012 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5013 ac_dC='\3'
5014 ac_dD='%g'
5015 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5016 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5017 ac_uB='\([ ]\)%\1#\2define\3'
5018 ac_uC=' '
5019 ac_uD='\4%g'
5020 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5021 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5022 ac_eB='$%\1#\2define\3'
5023 ac_eC=' '
5024 ac_eD='%g'
5026 if test "${CONFIG_HEADERS+set}" != set; then
5028 cat >> $CONFIG_STATUS <<EOF
5029 CONFIG_HEADERS="config.h:config.in"
5031 cat >> $CONFIG_STATUS <<\EOF
5033 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5034 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5035 case "$ac_file" in
5036 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5037 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5038 *) ac_file_in="${ac_file}.in" ;;
5039 esac
5041 echo creating $ac_file
5043 rm -f conftest.frag conftest.in conftest.out
5044 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5045 cat $ac_file_inputs > conftest.in
5049 # Transform confdefs.h into a sed script conftest.vals that substitutes
5050 # the proper values into config.h.in to produce config.h. And first:
5051 # Protect against being on the right side of a sed subst in config.status.
5052 # Protect against being in an unquoted here document in config.status.
5053 rm -f conftest.vals
5054 cat > conftest.hdr <<\EOF
5055 s/[\\&%]/\\&/g
5056 s%[\\$`]%\\&%g
5057 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5058 s%ac_d%ac_u%gp
5059 s%ac_u%ac_e%gp
5061 sed -n -f conftest.hdr confdefs.h > conftest.vals
5062 rm -f conftest.hdr
5064 # This sed command replaces #undef with comments. This is necessary, for
5065 # example, in the case of _POSIX_SOURCE, which is predefined and required
5066 # on some systems where configure will not decide to define it.
5067 cat >> conftest.vals <<\EOF
5068 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5071 # Break up conftest.vals because some shells have a limit on
5072 # the size of here documents, and old seds have small limits too.
5074 rm -f conftest.tail
5075 while :
5077 ac_lines=`grep -c . conftest.vals`
5078 # grep -c gives empty output for an empty file on some AIX systems.
5079 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5080 # Write a limited-size here document to conftest.frag.
5081 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5082 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5083 echo 'CEOF
5084 sed -f conftest.frag conftest.in > conftest.out
5085 rm -f conftest.in
5086 mv conftest.out conftest.in
5087 ' >> $CONFIG_STATUS
5088 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5089 rm -f conftest.vals
5090 mv conftest.tail conftest.vals
5091 done
5092 rm -f conftest.vals
5094 cat >> $CONFIG_STATUS <<\EOF
5095 rm -f conftest.frag conftest.h
5096 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5097 cat conftest.in >> conftest.h
5098 rm -f conftest.in
5099 if cmp -s $ac_file conftest.h 2>/dev/null; then
5100 echo "$ac_file is unchanged"
5101 rm -f conftest.h
5102 else
5103 # Remove last slash and all that follows it. Not all systems have dirname.
5104 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5105 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5106 # The file is in a subdirectory.
5107 test ! -d "$ac_dir" && mkdir "$ac_dir"
5109 rm -f $ac_file
5110 mv conftest.h $ac_file
5112 fi; done
5115 cat >> $CONFIG_STATUS <<EOF
5117 host='${host}'
5118 build='${build}'
5119 target='${target}'
5120 target_alias='${target_alias}'
5121 srcdir='${srcdir}'
5122 subdirs='${subdirs}'
5123 oldstyle_subdirs='${oldstyle_subdirs}'
5124 symbolic_link='${symbolic_link}'
5125 program_transform_set='${program_transform_set}'
5126 program_transform_name='${program_transform_name}'
5127 dep_host_xmake_file='${dep_host_xmake_file}'
5128 host_xmake_file='${host_xmake_file}'
5129 dep_tmake_file='${dep_tmake_file}'
5130 tmake_file='${tmake_file}'
5131 thread_file='${thread_file}'
5132 version='${version}'
5133 local_prefix='${local_prefix}'
5134 build_install_headers_dir='${build_install_headers_dir}'
5135 build_exeext='${build_exeext}'
5136 out_file='${out_file}'
5137 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5138 SET_MAKE='${SET_MAKE}'
5139 target_list='${target_list}'
5140 target_overrides='${target_overrides}'
5141 host_overrides='${host_overrides}'
5142 cross_defines='${cross_defines}'
5143 cross_overrides='${cross_overrides}'
5144 build_overrides='${build_overrides}'
5147 cat >> $CONFIG_STATUS <<\EOF
5149 . $srcdir/configure.lang
5150 case x$CONFIG_HEADERS in
5151 xconfig.h:config.in)
5152 echo > cstamp-h ;;
5153 esac
5154 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5155 # bootstrapping and the installation procedure can still use
5156 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5157 # FLAGS_TO_PASS has been modified to solve the problem there.
5158 # This is virtually a duplicate of what happens in configure.lang; we do
5159 # an extra check to make sure this only happens if ln -s can be used.
5160 if [ "$symbolic_link" = "ln -s" ]; then
5161 for d in .. ${subdirs} ; do
5162 if [ $d != .. ]; then
5163 STARTDIR=`pwd`
5164 cd $d
5165 for t in stage1 stage2 stage3 stage4 include
5167 rm -f $t
5168 $symbolic_link ../$t $t 2>/dev/null
5169 done
5170 cd $STARTDIR
5172 done
5173 else true ; fi
5175 exit 0
5177 chmod +x $CONFIG_STATUS
5178 rm -fr confdefs* $ac_clean_files
5179 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1