OSDN Git Service

Mon May 25 03:34:42 1998 Craig Burley <burley@gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
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-checking       enable expensive run-time checks."
29 ac_help="$ac_help
30   --enable-c-cpplib       Use cpplib for C."
31 ac_help="$ac_help
32   --enable-haifa          Use the experimental scheduler.
33   --disable-haifa         Don't use the experimental scheduler for the
34                           targets which normally enable it."
35 ac_help="$ac_help
36   --with-fast-fixincludes    Use a faster fixinclude program.  Experimental"
37 ac_help="$ac_help
38   --enable-threads        enable thread usage for target GCC.
39   --enable-threads=LIB    use LIB thread package for target GCC."
40
41 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
44 build=NONE
45 cache_file=./config.cache
46 exec_prefix=NONE
47 host=NONE
48 no_create=
49 nonopt=NONE
50 no_recursion=
51 prefix=NONE
52 program_prefix=NONE
53 program_suffix=NONE
54 program_transform_name=s,x,x,
55 silent=
56 site=
57 srcdir=
58 target=NONE
59 verbose=
60 x_includes=NONE
61 x_libraries=NONE
62 bindir='${exec_prefix}/bin'
63 sbindir='${exec_prefix}/sbin'
64 libexecdir='${exec_prefix}/libexec'
65 datadir='${prefix}/share'
66 sysconfdir='${prefix}/etc'
67 sharedstatedir='${prefix}/com'
68 localstatedir='${prefix}/var'
69 libdir='${exec_prefix}/lib'
70 includedir='${prefix}/include'
71 oldincludedir='/usr/include'
72 infodir='${prefix}/info'
73 mandir='${prefix}/man'
74
75 # Initialize some other variables.
76 subdirs=
77 MFLAGS= MAKEFLAGS=
78 SHELL=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
80 ac_max_here_lines=12
81
82 ac_prev=
83 for ac_option
84 do
85
86   # If the previous option needs an argument, assign it.
87   if test -n "$ac_prev"; then
88     eval "$ac_prev=\$ac_option"
89     ac_prev=
90     continue
91   fi
92
93   case "$ac_option" in
94   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95   *) ac_optarg= ;;
96   esac
97
98   # Accept the important Cygnus configure options, so we can diagnose typos.
99
100   case "$ac_option" in
101
102   -bindir | --bindir | --bindi | --bind | --bin | --bi)
103     ac_prev=bindir ;;
104   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105     bindir="$ac_optarg" ;;
106
107   -build | --build | --buil | --bui | --bu)
108     ac_prev=build ;;
109   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110     build="$ac_optarg" ;;
111
112   -cache-file | --cache-file | --cache-fil | --cache-fi \
113   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114     ac_prev=cache_file ;;
115   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117     cache_file="$ac_optarg" ;;
118
119   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120     ac_prev=datadir ;;
121   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122   | --da=*)
123     datadir="$ac_optarg" ;;
124
125   -disable-* | --disable-*)
126     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127     # Reject names that are not valid shell variable names.
128     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130     fi
131     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132     eval "enable_${ac_feature}=no" ;;
133
134   -enable-* | --enable-*)
135     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136     # Reject names that are not valid shell variable names.
137     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139     fi
140     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141     case "$ac_option" in
142       *=*) ;;
143       *) ac_optarg=yes ;;
144     esac
145     eval "enable_${ac_feature}='$ac_optarg'" ;;
146
147   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149   | --exec | --exe | --ex)
150     ac_prev=exec_prefix ;;
151   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153   | --exec=* | --exe=* | --ex=*)
154     exec_prefix="$ac_optarg" ;;
155
156   -gas | --gas | --ga | --g)
157     # Obsolete; use --with-gas.
158     with_gas=yes ;;
159
160   -help | --help | --hel | --he)
161     # Omit some internal or obsolete options to make the list less imposing.
162     # This message is too long to be a string in the A/UX 3.1 sh.
163     cat << EOF
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
166 Configuration:
167   --cache-file=FILE       cache test results in FILE
168   --help                  print this message
169   --no-create             do not create output files
170   --quiet, --silent       do not print \`checking...' messages
171   --version               print the version of autoconf that created configure
172 Directory and file names:
173   --prefix=PREFIX         install architecture-independent files in PREFIX
174                           [$ac_default_prefix]
175   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
176                           [same as prefix]
177   --bindir=DIR            user executables in DIR [EPREFIX/bin]
178   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
179   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
180   --datadir=DIR           read-only architecture-independent data in DIR
181                           [PREFIX/share]
182   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
183   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
184                           [PREFIX/com]
185   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
186   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
187   --includedir=DIR        C header files in DIR [PREFIX/include]
188   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
189   --infodir=DIR           info documentation in DIR [PREFIX/info]
190   --mandir=DIR            man documentation in DIR [PREFIX/man]
191   --srcdir=DIR            find the sources in DIR [configure dir or ..]
192   --program-prefix=PREFIX prepend PREFIX to installed program names
193   --program-suffix=SUFFIX append SUFFIX to installed program names
194   --program-transform-name=PROGRAM
195                           run sed PROGRAM on installed program names
196 EOF
197     cat << EOF
198 Host type:
199   --build=BUILD           configure for building on BUILD [BUILD=HOST]
200   --host=HOST             configure for HOST [guessed]
201   --target=TARGET         configure for TARGET [TARGET=HOST]
202 Features and packages:
203   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
204   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
205   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
206   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
207   --x-includes=DIR        X include files are in DIR
208   --x-libraries=DIR       X library files are in DIR
209 EOF
210     if test -n "$ac_help"; then
211       echo "--enable and --with options recognized:$ac_help"
212     fi
213     exit 0 ;;
214
215   -host | --host | --hos | --ho)
216     ac_prev=host ;;
217   -host=* | --host=* | --hos=* | --ho=*)
218     host="$ac_optarg" ;;
219
220   -includedir | --includedir | --includedi | --included | --include \
221   | --includ | --inclu | --incl | --inc)
222     ac_prev=includedir ;;
223   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
224   | --includ=* | --inclu=* | --incl=* | --inc=*)
225     includedir="$ac_optarg" ;;
226
227   -infodir | --infodir | --infodi | --infod | --info | --inf)
228     ac_prev=infodir ;;
229   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
230     infodir="$ac_optarg" ;;
231
232   -libdir | --libdir | --libdi | --libd)
233     ac_prev=libdir ;;
234   -libdir=* | --libdir=* | --libdi=* | --libd=*)
235     libdir="$ac_optarg" ;;
236
237   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
238   | --libexe | --libex | --libe)
239     ac_prev=libexecdir ;;
240   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
241   | --libexe=* | --libex=* | --libe=*)
242     libexecdir="$ac_optarg" ;;
243
244   -localstatedir | --localstatedir | --localstatedi | --localstated \
245   | --localstate | --localstat | --localsta | --localst \
246   | --locals | --local | --loca | --loc | --lo)
247     ac_prev=localstatedir ;;
248   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
249   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
250   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
251     localstatedir="$ac_optarg" ;;
252
253   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254     ac_prev=mandir ;;
255   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
256     mandir="$ac_optarg" ;;
257
258   -nfp | --nfp | --nf)
259     # Obsolete; use --without-fp.
260     with_fp=no ;;
261
262   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263   | --no-cr | --no-c)
264     no_create=yes ;;
265
266   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
267   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268     no_recursion=yes ;;
269
270   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
271   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
272   | --oldin | --oldi | --old | --ol | --o)
273     ac_prev=oldincludedir ;;
274   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
275   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
276   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
277     oldincludedir="$ac_optarg" ;;
278
279   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280     ac_prev=prefix ;;
281   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
282     prefix="$ac_optarg" ;;
283
284   -program-prefix | --program-prefix | --program-prefi | --program-pref \
285   | --program-pre | --program-pr | --program-p)
286     ac_prev=program_prefix ;;
287   -program-prefix=* | --program-prefix=* | --program-prefi=* \
288   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
289     program_prefix="$ac_optarg" ;;
290
291   -program-suffix | --program-suffix | --program-suffi | --program-suff \
292   | --program-suf | --program-su | --program-s)
293     ac_prev=program_suffix ;;
294   -program-suffix=* | --program-suffix=* | --program-suffi=* \
295   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
296     program_suffix="$ac_optarg" ;;
297
298   -program-transform-name | --program-transform-name \
299   | --program-transform-nam | --program-transform-na \
300   | --program-transform-n | --program-transform- \
301   | --program-transform | --program-transfor \
302   | --program-transfo | --program-transf \
303   | --program-trans | --program-tran \
304   | --progr-tra | --program-tr | --program-t)
305     ac_prev=program_transform_name ;;
306   -program-transform-name=* | --program-transform-name=* \
307   | --program-transform-nam=* | --program-transform-na=* \
308   | --program-transform-n=* | --program-transform-=* \
309   | --program-transform=* | --program-transfor=* \
310   | --program-transfo=* | --program-transf=* \
311   | --program-trans=* | --program-tran=* \
312   | --progr-tra=* | --program-tr=* | --program-t=*)
313     program_transform_name="$ac_optarg" ;;
314
315   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
316   | -silent | --silent | --silen | --sile | --sil)
317     silent=yes ;;
318
319   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320     ac_prev=sbindir ;;
321   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322   | --sbi=* | --sb=*)
323     sbindir="$ac_optarg" ;;
324
325   -sharedstatedir | --sharedstatedir | --sharedstatedi \
326   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
327   | --sharedst | --shareds | --shared | --share | --shar \
328   | --sha | --sh)
329     ac_prev=sharedstatedir ;;
330   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
331   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
332   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333   | --sha=* | --sh=*)
334     sharedstatedir="$ac_optarg" ;;
335
336   -site | --site | --sit)
337     ac_prev=site ;;
338   -site=* | --site=* | --sit=*)
339     site="$ac_optarg" ;;
340
341   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342     ac_prev=srcdir ;;
343   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
344     srcdir="$ac_optarg" ;;
345
346   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
347   | --syscon | --sysco | --sysc | --sys | --sy)
348     ac_prev=sysconfdir ;;
349   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
350   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
351     sysconfdir="$ac_optarg" ;;
352
353   -target | --target | --targe | --targ | --tar | --ta | --t)
354     ac_prev=target ;;
355   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
356     target="$ac_optarg" ;;
357
358   -v | -verbose | --verbose | --verbos | --verbo | --verb)
359     verbose=yes ;;
360
361   -version | --version | --versio | --versi | --vers)
362     echo "configure generated by autoconf version 2.12.1"
363     exit 0 ;;
364
365   -with-* | --with-*)
366     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367     # Reject names that are not valid shell variable names.
368     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370     fi
371     ac_package=`echo $ac_package| sed 's/-/_/g'`
372     case "$ac_option" in
373       *=*) ;;
374       *) ac_optarg=yes ;;
375     esac
376     eval "with_${ac_package}='$ac_optarg'" ;;
377
378   -without-* | --without-*)
379     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
380     # Reject names that are not valid shell variable names.
381     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383     fi
384     ac_package=`echo $ac_package| sed 's/-/_/g'`
385     eval "with_${ac_package}=no" ;;
386
387   --x)
388     # Obsolete; use --with-x.
389     with_x=yes ;;
390
391   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
392   | --x-incl | --x-inc | --x-in | --x-i)
393     ac_prev=x_includes ;;
394   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
395   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
396     x_includes="$ac_optarg" ;;
397
398   -x-libraries | --x-libraries | --x-librarie | --x-librari \
399   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
400     ac_prev=x_libraries ;;
401   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
402   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
403     x_libraries="$ac_optarg" ;;
404
405   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
406     ;;
407
408   *)
409     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410       echo "configure: warning: $ac_option: invalid host type" 1>&2
411     fi
412     if test "x$nonopt" != xNONE; then
413       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414     fi
415     nonopt="$ac_option"
416     ;;
417
418   esac
419 done
420
421 if test -n "$ac_prev"; then
422   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 fi
424
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426
427 # File descriptor usage:
428 # 0 standard input
429 # 1 file creation
430 # 2 errors and warnings
431 # 3 some systems may open it to /dev/tty
432 # 4 used on the Kubota Titan
433 # 6 checking for... messages and results
434 # 5 compiler messages saved in config.log
435 if test "$silent" = yes; then
436   exec 6>/dev/null
437 else
438   exec 6>&1
439 fi
440 exec 5>./config.log
441
442 echo "\
443 This file contains any messages produced by compilers while
444 running configure, to aid debugging if configure makes a mistake.
445 " 1>&5
446
447 # Strip out --no-create and --no-recursion so they do not pile up.
448 # Also quote any args containing shell metacharacters.
449 ac_configure_args=
450 for ac_arg
451 do
452   case "$ac_arg" in
453   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
454   | --no-cr | --no-c) ;;
455   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
457   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
459   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
460   esac
461 done
462
463 # NLS nuisances.
464 # Only set these to C if already set.  These must not be set unconditionally
465 # because not all systems understand e.g. LANG=C (notably SCO).
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467 # Non-C LC_CTYPE values break the ctype check.
468 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
469 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
471 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
472
473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
474 rm -rf conftest* confdefs.h
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 echo > confdefs.h
477
478 # A filename unique to this package, relative to the directory that
479 # configure is in, which we can look for to find out if srcdir is correct.
480 ac_unique_file=tree.c
481
482 # Find the source files, if location was not specified.
483 if test -z "$srcdir"; then
484   ac_srcdir_defaulted=yes
485   # Try the directory containing this script, then its parent.
486   ac_prog=$0
487   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
489   srcdir=$ac_confdir
490   if test ! -r $srcdir/$ac_unique_file; then
491     srcdir=..
492   fi
493 else
494   ac_srcdir_defaulted=no
495 fi
496 if test ! -r $srcdir/$ac_unique_file; then
497   if test "$ac_srcdir_defaulted" = yes; then
498     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499   else
500     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501   fi
502 fi
503 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504
505 # Prefer explicitly selected file to automatically selected ones.
506 if test -z "$CONFIG_SITE"; then
507   if test "x$prefix" != xNONE; then
508     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509   else
510     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511   fi
512 fi
513 for ac_site_file in $CONFIG_SITE; do
514   if test -r "$ac_site_file"; then
515     echo "loading site script $ac_site_file"
516     . "$ac_site_file"
517   fi
518 done
519
520 if test -r "$cache_file"; then
521   echo "loading cache $cache_file"
522   . $cache_file
523 else
524   echo "creating cache $cache_file"
525   > $cache_file
526 fi
527
528 ac_ext=c
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp='$CPP $CPPFLAGS'
531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling=$ac_cv_prog_cc_cross
534
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538     ac_n= ac_c='
539 ' ac_t='        '
540   else
541     ac_n=-n ac_c= ac_t=
542   fi
543 else
544   ac_n= ac_c='\c' ac_t=
545 fi
546
547
548
549
550 remove=rm
551 hard_link=ln
552 symbolic_link='ln -s'
553 copy=cp
554
555 # Check for additional parameters
556
557 # With GNU ld
558 # Check whether --with-gnu-ld or --without-gnu-ld was given.
559 if test "${with_gnu_ld+set}" = set; then
560   withval="$with_gnu_ld"
561   gnu_ld_flag="$with_gnu_ld"
562 else
563   gnu_ld_flag=no
564 fi
565
566
567 # With GNU as
568 # Check whether --with-gnu-as or --without-gnu-as was given.
569 if test "${with_gnu_as+set}" = set; then
570   withval="$with_gnu_as"
571   gas_flag="$with_gnu_as"
572 else
573   gas_flag=no
574 fi
575
576
577 # With stabs
578 # Check whether --with-stabs or --without-stabs was given.
579 if test "${with_stabs+set}" = set; then
580   withval="$with_stabs"
581   stabs="$with_stabs"
582 else
583   stabs=no
584 fi
585
586
587 # With ELF
588 # Check whether --with-elf or --without-elf was given.
589 if test "${with_elf+set}" = set; then
590   withval="$with_elf"
591   elf="$with_elf"
592 else
593   elf=no
594 fi
595
596
597 # Specify the local prefix
598 # Check whether --with-local-prefix or --without-local-prefix was given.
599 if test "${with_local_prefix+set}" = set; then
600   withval="$with_local_prefix"
601   local_prefix=$with_local_prefix
602 else
603   local_prefix=/usr/local
604 fi
605
606
607 # Default local prefix if it is empty
608 if [ x$local_prefix = x ]; then
609         local_prefix=/usr/local
610 fi
611
612 # Specify the g++ header file directory
613 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
614 if test "${with_gxx_include_dir+set}" = set; then
615   withval="$with_gxx_include_dir"
616   gxx_include_dir=$with_gxx_include_dir
617 else
618   gxx_include_dir='${prefix}/include/g++'
619 fi
620
621
622 # Default g++ header file directory if it is empty
623 if [ x$gxx_include_dir = x ]; then
624         gxx_include_dir='${prefix}/include/g++'
625 fi
626
627 # Enable expensive internal checks
628 # Check whether --enable-checking or --disable-checking was given.
629 if test "${enable_checking+set}" = set; then
630   enableval="$enable_checking"
631   cat >> confdefs.h <<\EOF
632 #define ENABLE_CHECKING 1
633 EOF
634   
635
636 fi
637
638
639 # Enable use of cpplib for C.
640 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
641 if test "${enable_c_cpplib+set}" = set; then
642   enableval="$enable_c_cpplib"
643   if [ x$enable_c_cpplib != xno ]; then
644   extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
645   extra_c_objs="${extra_c_objs} prefix.o"
646   extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
647   extra_c_flags=-DUSE_CPPLIB=1
648 fi
649 fi
650
651   
652 # Enable Haifa scheduler.
653 # Check whether --enable-haifa or --disable-haifa was given.
654 if test "${enable_haifa+set}" = set; then
655   enableval="$enable_haifa"
656   :
657 fi
658
659 # Fast fixincludes
660 #
661 # This is a work in progress...
662 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
663 if test "${with_fast_fixincludes+set}" = set; then
664   withval="$with_fast_fixincludes"
665   fast_fixinc="$with_fast_fixincludes"
666 else
667   fast_fixinc=no
668 fi
669
670
671 # Enable threads
672 # Pass with no value to take the default
673 # Pass with a value to specify a thread package
674 # Check whether --enable-threads or --disable-threads was given.
675 if test "${enable_threads+set}" = set; then
676   enableval="$enable_threads"
677   if [ x$enable_threads = xno ]; then
678         enable_threads=''
679 fi
680 else
681   enable_threads=''
682 fi
683
684
685 enable_threads_flag=$enable_threads
686 # Check if a valid thread package
687 case x${enable_threads_flag} in
688         x | xno)
689                 # No threads
690                 target_thread_file='single'
691                 ;;
692         xyes)
693                 # default
694                 target_thread_file=''
695                 ;;
696         xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
697         xsolaris | xwin32 | xdce | xvxworks)
698                 target_thread_file=$enable_threads_flag
699                 ;;
700         *)
701                 echo "$enable_threads is an unknown thread package" 1>&2
702                 exit 1
703                 ;;
704 esac
705
706 # Determine the host, build, and target systems
707 ac_aux_dir=
708 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
709   if test -f $ac_dir/install-sh; then
710     ac_aux_dir=$ac_dir
711     ac_install_sh="$ac_aux_dir/install-sh -c"
712     break
713   elif test -f $ac_dir/install.sh; then
714     ac_aux_dir=$ac_dir
715     ac_install_sh="$ac_aux_dir/install.sh -c"
716     break
717   fi
718 done
719 if test -z "$ac_aux_dir"; then
720   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
721 fi
722 ac_config_guess=$ac_aux_dir/config.guess
723 ac_config_sub=$ac_aux_dir/config.sub
724 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
725
726
727 # Do some error checking and defaulting for the host and target type.
728 # The inputs are:
729 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
730 #
731 # The rules are:
732 # 1. You are not allowed to specify --host, --target, and nonopt at the
733 #    same time.
734 # 2. Host defaults to nonopt.
735 # 3. If nonopt is not specified, then host defaults to the current host,
736 #    as determined by config.guess.
737 # 4. Target and build default to nonopt.
738 # 5. If nonopt is not specified, then target and build default to host.
739
740 # The aliases save the names the user supplied, while $host etc.
741 # will get canonicalized.
742 case $host---$target---$nonopt in
743 NONE---*---* | *---NONE---* | *---*---NONE) ;;
744 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
745 esac
746
747
748 # Make sure we can run config.sub.
749 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
750 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
751 fi
752
753 echo $ac_n "checking host system type""... $ac_c" 1>&6
754 echo "configure:755: checking host system type" >&5
755
756 host_alias=$host
757 case "$host_alias" in
758 NONE)
759   case $nonopt in
760   NONE)
761     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
762     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
763     fi ;;
764   *) host_alias=$nonopt ;;
765   esac ;;
766 esac
767
768 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
769 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
770 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
771 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
772 echo "$ac_t""$host" 1>&6
773
774 echo $ac_n "checking target system type""... $ac_c" 1>&6
775 echo "configure:776: checking target system type" >&5
776
777 target_alias=$target
778 case "$target_alias" in
779 NONE)
780   case $nonopt in
781   NONE) target_alias=$host_alias ;;
782   *) target_alias=$nonopt ;;
783   esac ;;
784 esac
785
786 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
787 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
788 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
789 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
790 echo "$ac_t""$target" 1>&6
791
792 echo $ac_n "checking build system type""... $ac_c" 1>&6
793 echo "configure:794: checking build system type" >&5
794
795 build_alias=$build
796 case "$build_alias" in
797 NONE)
798   case $nonopt in
799   NONE) build_alias=$host_alias ;;
800   *) build_alias=$nonopt ;;
801   esac ;;
802 esac
803
804 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
805 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
806 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
807 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
808 echo "$ac_t""$build" 1>&6
809
810 test "$host_alias" != "$target_alias" &&
811   test "$program_prefix$program_suffix$program_transform_name" = \
812     NONENONEs,x,x, &&
813   program_prefix=${target_alias}-
814
815
816 # Find the native compiler
817 # Extract the first word of "gcc", so it can be a program name with args.
818 set dummy gcc; ac_word=$2
819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820 echo "configure:821: checking for $ac_word" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
822   echo $ac_n "(cached) $ac_c" 1>&6
823 else
824   if test -n "$CC"; then
825   ac_cv_prog_CC="$CC" # Let the user override the test.
826 else
827   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
828   for ac_dir in $PATH; do
829     test -z "$ac_dir" && ac_dir=.
830     if test -f $ac_dir/$ac_word; then
831       ac_cv_prog_CC="gcc"
832       break
833     fi
834   done
835   IFS="$ac_save_ifs"
836 fi
837 fi
838 CC="$ac_cv_prog_CC"
839 if test -n "$CC"; then
840   echo "$ac_t""$CC" 1>&6
841 else
842   echo "$ac_t""no" 1>&6
843 fi
844
845 if test -z "$CC"; then
846   # Extract the first word of "cc", so it can be a program name with args.
847 set dummy cc; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851   echo $ac_n "(cached) $ac_c" 1>&6
852 else
853   if test -n "$CC"; then
854   ac_cv_prog_CC="$CC" # Let the user override the test.
855 else
856   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
857   ac_prog_rejected=no
858   for ac_dir in $PATH; do
859     test -z "$ac_dir" && ac_dir=.
860     if test -f $ac_dir/$ac_word; then
861       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
862         ac_prog_rejected=yes
863         continue
864       fi
865       ac_cv_prog_CC="cc"
866       break
867     fi
868   done
869   IFS="$ac_save_ifs"
870 if test $ac_prog_rejected = yes; then
871   # We found a bogon in the path, so make sure we never use it.
872   set dummy $ac_cv_prog_CC
873   shift
874   if test $# -gt 0; then
875     # We chose a different compiler from the bogus one.
876     # However, it has the same basename, so the bogon will be chosen
877     # first if we set CC to just the basename; use the full file name.
878     shift
879     set dummy "$ac_dir/$ac_word" "$@"
880     shift
881     ac_cv_prog_CC="$@"
882   fi
883 fi
884 fi
885 fi
886 CC="$ac_cv_prog_CC"
887 if test -n "$CC"; then
888   echo "$ac_t""$CC" 1>&6
889 else
890   echo "$ac_t""no" 1>&6
891 fi
892
893   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
894 fi
895
896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
898
899 ac_ext=c
900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
901 ac_cpp='$CPP $CPPFLAGS'
902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
903 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
904 cross_compiling=$ac_cv_prog_cc_cross
905
906 cat > conftest.$ac_ext <<EOF
907 #line 908 "configure"
908 #include "confdefs.h"
909 main(){return(0);}
910 EOF
911 if { (eval echo configure:912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
912   ac_cv_prog_cc_works=yes
913   # If we can't run a trivial program, we are probably using a cross compiler.
914   if (./conftest; exit) 2>/dev/null; then
915     ac_cv_prog_cc_cross=no
916   else
917     ac_cv_prog_cc_cross=yes
918   fi
919 else
920   echo "configure: failed program was:" >&5
921   cat conftest.$ac_ext >&5
922   ac_cv_prog_cc_works=no
923 fi
924 rm -fr conftest*
925
926 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
927 if test $ac_cv_prog_cc_works = no; then
928   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
929 fi
930 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
931 echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
932 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
933 cross_compiling=$ac_cv_prog_cc_cross
934
935 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
936 echo "configure:937: checking whether we are using GNU C" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
938   echo $ac_n "(cached) $ac_c" 1>&6
939 else
940   cat > conftest.c <<EOF
941 #ifdef __GNUC__
942   yes;
943 #endif
944 EOF
945 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
946   ac_cv_prog_gcc=yes
947 else
948   ac_cv_prog_gcc=no
949 fi
950 fi
951
952 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
953
954 if test $ac_cv_prog_gcc = yes; then
955   GCC=yes
956   ac_test_CFLAGS="${CFLAGS+set}"
957   ac_save_CFLAGS="$CFLAGS"
958   CFLAGS=
959   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
960 echo "configure:961: checking whether ${CC-cc} accepts -g" >&5
961 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
962   echo $ac_n "(cached) $ac_c" 1>&6
963 else
964   echo 'void f(){}' > conftest.c
965 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
966   ac_cv_prog_cc_g=yes
967 else
968   ac_cv_prog_cc_g=no
969 fi
970 rm -f conftest*
971
972 fi
973
974 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
975   if test "$ac_test_CFLAGS" = set; then
976     CFLAGS="$ac_save_CFLAGS"
977   elif test $ac_cv_prog_cc_g = yes; then
978     CFLAGS="-g -O2"
979   else
980     CFLAGS="-O2"
981   fi
982 else
983   GCC=
984   test "${CFLAGS+set}" = set || CFLAGS="-g"
985 fi
986
987 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
988 echo "configure:989: checking whether ${MAKE-make} sets \${MAKE}" >&5
989 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
990 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
991   echo $ac_n "(cached) $ac_c" 1>&6
992 else
993   cat > conftestmake <<\EOF
994 all:
995         @echo 'ac_maketemp="${MAKE}"'
996 EOF
997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
998 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
999 if test -n "$ac_maketemp"; then
1000   eval ac_cv_prog_make_${ac_make}_set=yes
1001 else
1002   eval ac_cv_prog_make_${ac_make}_set=no
1003 fi
1004 rm -f conftestmake
1005 fi
1006 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1007   echo "$ac_t""yes" 1>&6
1008   SET_MAKE=
1009 else
1010   echo "$ac_t""no" 1>&6
1011   SET_MAKE="MAKE=${MAKE-make}"
1012 fi
1013
1014
1015 # Find some useful tools
1016 for ac_prog in mawk gawk nawk awk
1017 do
1018 # Extract the first word of "$ac_prog", so it can be a program name with args.
1019 set dummy $ac_prog; ac_word=$2
1020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1021 echo "configure:1022: checking for $ac_word" >&5
1022 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1023   echo $ac_n "(cached) $ac_c" 1>&6
1024 else
1025   if test -n "$AWK"; then
1026   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1027 else
1028   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1029   for ac_dir in $PATH; do
1030     test -z "$ac_dir" && ac_dir=.
1031     if test -f $ac_dir/$ac_word; then
1032       ac_cv_prog_AWK="$ac_prog"
1033       break
1034     fi
1035   done
1036   IFS="$ac_save_ifs"
1037 fi
1038 fi
1039 AWK="$ac_cv_prog_AWK"
1040 if test -n "$AWK"; then
1041   echo "$ac_t""$AWK" 1>&6
1042 else
1043   echo "$ac_t""no" 1>&6
1044 fi
1045
1046 test -n "$AWK" && break
1047 done
1048
1049 # Extract the first word of "flex", so it can be a program name with args.
1050 set dummy flex; ac_word=$2
1051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052 echo "configure:1053: checking for $ac_word" >&5
1053 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1054   echo $ac_n "(cached) $ac_c" 1>&6
1055 else
1056   if test -n "$LEX"; then
1057   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1058 else
1059   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1060   for ac_dir in $PATH; do
1061     test -z "$ac_dir" && ac_dir=.
1062     if test -f $ac_dir/$ac_word; then
1063       ac_cv_prog_LEX="flex"
1064       break
1065     fi
1066   done
1067   IFS="$ac_save_ifs"
1068   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1069 fi
1070 fi
1071 LEX="$ac_cv_prog_LEX"
1072 if test -n "$LEX"; then
1073   echo "$ac_t""$LEX" 1>&6
1074 else
1075   echo "$ac_t""no" 1>&6
1076 fi
1077
1078 if test -z "$LEXLIB"
1079 then
1080   case "$LEX" in
1081   flex*) ac_lib=fl ;;
1082   *) ac_lib=l ;;
1083   esac
1084   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1085 echo "configure:1086: checking for yywrap in -l$ac_lib" >&5
1086 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1088   echo $ac_n "(cached) $ac_c" 1>&6
1089 else
1090   ac_save_LIBS="$LIBS"
1091 LIBS="-l$ac_lib  $LIBS"
1092 cat > conftest.$ac_ext <<EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1095 /* Override any gcc2 internal prototype to avoid an error.  */
1096 /* We use char because int might match the return type of a gcc2
1097     builtin and then its argument prototype would still apply.  */
1098 char yywrap();
1099
1100 int main() {
1101 yywrap()
1102 ; return 0; }
1103 EOF
1104 if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1105   rm -rf conftest*
1106   eval "ac_cv_lib_$ac_lib_var=yes"
1107 else
1108   echo "configure: failed program was:" >&5
1109   cat conftest.$ac_ext >&5
1110   rm -rf conftest*
1111   eval "ac_cv_lib_$ac_lib_var=no"
1112 fi
1113 rm -f conftest*
1114 LIBS="$ac_save_LIBS"
1115
1116 fi
1117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1118   echo "$ac_t""yes" 1>&6
1119   LEXLIB="-l$ac_lib"
1120 else
1121   echo "$ac_t""no" 1>&6
1122 fi
1123
1124 fi
1125
1126 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether ln works" >&5
1128 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1129   echo $ac_n "(cached) $ac_c" 1>&6
1130 else
1131   rm -f conftestdata_t
1132 echo >conftestdata_f
1133 if ln conftestdata_f conftestdata_t 2>/dev/null
1134 then
1135   gcc_cv_prog_LN="ln"
1136 else
1137   if ln -s conftestdata_f conftestdata_t 2>/dev/null
1138   then
1139     gcc_cv_prog_LN="ln -s"
1140   else
1141     gcc_cv_prog_LN=cp
1142   fi
1143 fi
1144 rm -f conftestdata_f conftestdata_t
1145
1146 fi
1147 LN="$gcc_cv_prog_LN"
1148 if test "$gcc_cv_prog_LN" = "ln"; then
1149   echo "$ac_t""yes" 1>&6
1150 else
1151   if test "$gcc_cv_prog_LN" = "ln -s"; then
1152     echo "$ac_t""no, using ln -s" 1>&6
1153   else
1154     echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1155   fi
1156 fi
1157
1158 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether ln -s works" >&5
1160 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1161   echo $ac_n "(cached) $ac_c" 1>&6
1162 else
1163   rm -f conftestdata_t
1164 echo >conftestdata_f
1165 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1166 then
1167   gcc_cv_prog_LN_S="ln -s"
1168 else
1169   if ln conftestdata_f conftestdata_t 2>/dev/null
1170   then
1171     gcc_cv_prog_LN_S=ln
1172   else
1173     gcc_cv_prog_LN_S=cp
1174   fi
1175 fi
1176 rm -f conftestdata_f conftestdata_t
1177
1178 fi
1179 LN_S="$gcc_cv_prog_LN_S"
1180 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1181   echo "$ac_t""yes" 1>&6
1182 else
1183   if test "$gcc_cv_prog_LN_S" = "ln"; then
1184     echo "$ac_t""no, using ln" 1>&6
1185   else
1186     echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1187   fi
1188 fi
1189
1190 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1191 echo "configure:1192: checking for volatile" >&5
1192 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1193   echo $ac_n "(cached) $ac_c" 1>&6
1194 else
1195   cat > conftest.$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1198
1199 int main() {
1200 volatile int foo;
1201 ; return 0; }
1202 EOF
1203 if { (eval echo configure:1204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1204   rm -rf conftest*
1205   gcc_cv_c_volatile=yes
1206 else
1207   echo "configure: failed program was:" >&5
1208   cat conftest.$ac_ext >&5
1209   rm -rf conftest*
1210   gcc_cv_c_volatile=no
1211 fi
1212 rm -f conftest*
1213 fi
1214
1215 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1216 if test $gcc_cv_c_volatile = yes ; then
1217   cat >> confdefs.h <<\EOF
1218 #define HAVE_VOLATILE 1
1219 EOF
1220
1221 fi
1222
1223 # Extract the first word of "ranlib", so it can be a program name with args.
1224 set dummy ranlib; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1228   echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230   if test -n "$RANLIB"; then
1231   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1232 else
1233   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1234   for ac_dir in $PATH; do
1235     test -z "$ac_dir" && ac_dir=.
1236     if test -f $ac_dir/$ac_word; then
1237       ac_cv_prog_RANLIB="ranlib"
1238       break
1239     fi
1240   done
1241   IFS="$ac_save_ifs"
1242   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1243 fi
1244 fi
1245 RANLIB="$ac_cv_prog_RANLIB"
1246 if test -n "$RANLIB"; then
1247   echo "$ac_t""$RANLIB" 1>&6
1248 else
1249   echo "$ac_t""no" 1>&6
1250 fi
1251
1252 for ac_prog in 'bison -y' byacc
1253 do
1254 # Extract the first word of "$ac_prog", so it can be a program name with args.
1255 set dummy $ac_prog; ac_word=$2
1256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1257 echo "configure:1258: checking for $ac_word" >&5
1258 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1259   echo $ac_n "(cached) $ac_c" 1>&6
1260 else
1261   if test -n "$YACC"; then
1262   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1263 else
1264   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1265   for ac_dir in $PATH; do
1266     test -z "$ac_dir" && ac_dir=.
1267     if test -f $ac_dir/$ac_word; then
1268       ac_cv_prog_YACC="$ac_prog"
1269       break
1270     fi
1271   done
1272   IFS="$ac_save_ifs"
1273 fi
1274 fi
1275 YACC="$ac_cv_prog_YACC"
1276 if test -n "$YACC"; then
1277   echo "$ac_t""$YACC" 1>&6
1278 else
1279   echo "$ac_t""no" 1>&6
1280 fi
1281
1282 test -n "$YACC" && break
1283 done
1284 test -n "$YACC" || YACC="yacc"
1285
1286 # Find a good install program.  We prefer a C program (faster),
1287 # so one script is as good as another.  But avoid the broken or
1288 # incompatible versions:
1289 # SysV /etc/install, /usr/sbin/install
1290 # SunOS /usr/etc/install
1291 # IRIX /sbin/install
1292 # AIX /bin/install
1293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1295 # ./install, which can be erroneously created by make from ./install.sh.
1296 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1297 echo "configure:1298: checking for a BSD compatible install" >&5
1298 if test -z "$INSTALL"; then
1299 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1300   echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1303   for ac_dir in $PATH; do
1304     # Account for people who put trailing slashes in PATH elements.
1305     case "$ac_dir/" in
1306     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1307     *)
1308       # OSF1 and SCO ODT 3.0 have their own names for install.
1309       for ac_prog in ginstall scoinst install; do
1310         if test -f $ac_dir/$ac_prog; then
1311           if test $ac_prog = install &&
1312             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1313             # AIX install.  It has an incompatible calling convention.
1314             # OSF/1 installbsd also uses dspmsg, but is usable.
1315             :
1316           else
1317             ac_cv_path_install="$ac_dir/$ac_prog -c"
1318             break 2
1319           fi
1320         fi
1321       done
1322       ;;
1323     esac
1324   done
1325   IFS="$ac_save_IFS"
1326
1327 fi
1328   if test "${ac_cv_path_install+set}" = set; then
1329     INSTALL="$ac_cv_path_install"
1330   else
1331     # As a last resort, use the slow shell script.  We don't cache a
1332     # path for INSTALL within a source directory, because that will
1333     # break other packages using the cache if that directory is
1334     # removed, or if the path is relative.
1335     INSTALL="$ac_install_sh"
1336   fi
1337 fi
1338 echo "$ac_t""$INSTALL" 1>&6
1339
1340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1341 # It thinks the first close brace ends the variable substitution.
1342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1343
1344 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1345
1346
1347 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1348 echo "configure:1349: checking how to run the C preprocessor" >&5
1349 # On Suns, sometimes $CPP names a directory.
1350 if test -n "$CPP" && test -d "$CPP"; then
1351   CPP=
1352 fi
1353 if test -z "$CPP"; then
1354 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1355   echo $ac_n "(cached) $ac_c" 1>&6
1356 else
1357     # This must be in double quotes, not single quotes, because CPP may get
1358   # substituted into the Makefile and "${CC-cc}" will confuse make.
1359   CPP="${CC-cc} -E"
1360   # On the NeXT, cc -E runs the code through the compiler's parser,
1361   # not just through cpp.
1362   cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1365 #include <assert.h>
1366 Syntax Error
1367 EOF
1368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1369 { (eval echo configure:1370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1370 ac_err=`grep -v '^ *+' conftest.out`
1371 if test -z "$ac_err"; then
1372   :
1373 else
1374   echo "$ac_err" >&5
1375   echo "configure: failed program was:" >&5
1376   cat conftest.$ac_ext >&5
1377   rm -rf conftest*
1378   CPP="${CC-cc} -E -traditional-cpp"
1379   cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1382 #include <assert.h>
1383 Syntax Error
1384 EOF
1385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1386 { (eval echo configure:1387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1387 ac_err=`grep -v '^ *+' conftest.out`
1388 if test -z "$ac_err"; then
1389   :
1390 else
1391   echo "$ac_err" >&5
1392   echo "configure: failed program was:" >&5
1393   cat conftest.$ac_ext >&5
1394   rm -rf conftest*
1395   CPP=/lib/cpp
1396 fi
1397 rm -f conftest*
1398 fi
1399 rm -f conftest*
1400   ac_cv_prog_CPP="$CPP"
1401 fi
1402   CPP="$ac_cv_prog_CPP"
1403 else
1404   ac_cv_prog_CPP="$CPP"
1405 fi
1406 echo "$ac_t""$CPP" 1>&6
1407
1408 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1409 echo "configure:1410: checking for ANSI C header files" >&5
1410 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1411   echo $ac_n "(cached) $ac_c" 1>&6
1412 else
1413   cat > conftest.$ac_ext <<EOF
1414 #line 1415 "configure"
1415 #include "confdefs.h"
1416 #include <stdlib.h>
1417 #include <stdarg.h>
1418 #include <string.h>
1419 #include <float.h>
1420 EOF
1421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1422 { (eval echo configure:1423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1423 ac_err=`grep -v '^ *+' conftest.out`
1424 if test -z "$ac_err"; then
1425   rm -rf conftest*
1426   ac_cv_header_stdc=yes
1427 else
1428   echo "$ac_err" >&5
1429   echo "configure: failed program was:" >&5
1430   cat conftest.$ac_ext >&5
1431   rm -rf conftest*
1432   ac_cv_header_stdc=no
1433 fi
1434 rm -f conftest*
1435
1436 if test $ac_cv_header_stdc = yes; then
1437   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1441 #include <string.h>
1442 EOF
1443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1444   egrep "memchr" >/dev/null 2>&1; then
1445   :
1446 else
1447   rm -rf conftest*
1448   ac_cv_header_stdc=no
1449 fi
1450 rm -f conftest*
1451
1452 fi
1453
1454 if test $ac_cv_header_stdc = yes; then
1455   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1459 #include <stdlib.h>
1460 EOF
1461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1462   egrep "free" >/dev/null 2>&1; then
1463   :
1464 else
1465   rm -rf conftest*
1466   ac_cv_header_stdc=no
1467 fi
1468 rm -f conftest*
1469
1470 fi
1471
1472 if test $ac_cv_header_stdc = yes; then
1473   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1474 if test "$cross_compiling" = yes; then
1475   :
1476 else
1477   cat > conftest.$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1480 #include <ctype.h>
1481 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1482 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1483 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1484 int main () { int i; for (i = 0; i < 256; i++)
1485 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1486 exit (0); }
1487
1488 EOF
1489 if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1490 then
1491   :
1492 else
1493   echo "configure: failed program was:" >&5
1494   cat conftest.$ac_ext >&5
1495   rm -fr conftest*
1496   ac_cv_header_stdc=no
1497 fi
1498 rm -fr conftest*
1499 fi
1500
1501 fi
1502 fi
1503
1504 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1505 if test $ac_cv_header_stdc = yes; then
1506   cat >> confdefs.h <<\EOF
1507 #define STDC_HEADERS 1
1508 EOF
1509
1510 fi
1511
1512 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1513 echo "configure:1514: checking whether time.h and sys/time.h may both be included" >&5
1514 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1515   echo $ac_n "(cached) $ac_c" 1>&6
1516 else
1517   cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 #include <sys/types.h>
1521 #include <sys/time.h>
1522 #include <time.h>
1523 int main() {
1524 struct tm *tp;
1525 ; return 0; }
1526 EOF
1527 if { (eval echo configure:1528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1528   rm -rf conftest*
1529   ac_cv_header_time=yes
1530 else
1531   echo "configure: failed program was:" >&5
1532   cat conftest.$ac_ext >&5
1533   rm -rf conftest*
1534   ac_cv_header_time=no
1535 fi
1536 rm -f conftest*
1537 fi
1538
1539 echo "$ac_t""$ac_cv_header_time" 1>&6
1540 if test $ac_cv_header_time = yes; then
1541   cat >> confdefs.h <<\EOF
1542 #define TIME_WITH_SYS_TIME 1
1543 EOF
1544
1545 fi
1546
1547 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h wait.h sys/wait.h
1548 do
1549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1551 echo "configure:1552: checking for $ac_hdr" >&5
1552 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1553   echo $ac_n "(cached) $ac_c" 1>&6
1554 else
1555   cat > conftest.$ac_ext <<EOF
1556 #line 1557 "configure"
1557 #include "confdefs.h"
1558 #include <$ac_hdr>
1559 EOF
1560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1561 { (eval echo configure:1562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1562 ac_err=`grep -v '^ *+' conftest.out`
1563 if test -z "$ac_err"; then
1564   rm -rf conftest*
1565   eval "ac_cv_header_$ac_safe=yes"
1566 else
1567   echo "$ac_err" >&5
1568   echo "configure: failed program was:" >&5
1569   cat conftest.$ac_ext >&5
1570   rm -rf conftest*
1571   eval "ac_cv_header_$ac_safe=no"
1572 fi
1573 rm -f conftest*
1574 fi
1575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1576   echo "$ac_t""yes" 1>&6
1577     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1578   cat >> confdefs.h <<EOF
1579 #define $ac_tr_hdr 1
1580 EOF
1581  
1582 else
1583   echo "$ac_t""no" 1>&6
1584 fi
1585 done
1586
1587
1588 # Check for thread headers.
1589 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1590 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1591 echo "configure:1592: checking for thread.h" >&5
1592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1593   echo $ac_n "(cached) $ac_c" 1>&6
1594 else
1595   cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1598 #include <thread.h>
1599 EOF
1600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err=`grep -v '^ *+' conftest.out`
1603 if test -z "$ac_err"; then
1604   rm -rf conftest*
1605   eval "ac_cv_header_$ac_safe=yes"
1606 else
1607   echo "$ac_err" >&5
1608   echo "configure: failed program was:" >&5
1609   cat conftest.$ac_ext >&5
1610   rm -rf conftest*
1611   eval "ac_cv_header_$ac_safe=no"
1612 fi
1613 rm -f conftest*
1614 fi
1615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1616   echo "$ac_t""yes" 1>&6
1617   have_thread_h=yes
1618 else
1619   echo "$ac_t""no" 1>&6
1620 have_thread_h=
1621 fi
1622
1623 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1624 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1625 echo "configure:1626: checking for pthread.h" >&5
1626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1627   echo $ac_n "(cached) $ac_c" 1>&6
1628 else
1629   cat > conftest.$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1632 #include <pthread.h>
1633 EOF
1634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1635 { (eval echo configure:1636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1636 ac_err=`grep -v '^ *+' conftest.out`
1637 if test -z "$ac_err"; then
1638   rm -rf conftest*
1639   eval "ac_cv_header_$ac_safe=yes"
1640 else
1641   echo "$ac_err" >&5
1642   echo "configure: failed program was:" >&5
1643   cat conftest.$ac_ext >&5
1644   rm -rf conftest*
1645   eval "ac_cv_header_$ac_safe=no"
1646 fi
1647 rm -f conftest*
1648 fi
1649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1650   echo "$ac_t""yes" 1>&6
1651   have_pthread_h=yes
1652 else
1653   echo "$ac_t""no" 1>&6
1654 have_pthread_h=
1655 fi
1656
1657
1658 # See if the system preprocessor understands the ANSI C preprocessor
1659 # stringification operator.
1660 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1661 echo "configure:1662: checking whether cpp understands the stringify operator" >&5
1662 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1663   echo $ac_n "(cached) $ac_c" 1>&6
1664 else
1665   cat > conftest.$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1668
1669 int main() {
1670 #define S(x)   #x
1671 char *test = S(foo);
1672 ; return 0; }
1673 EOF
1674 if { (eval echo configure:1675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1675   rm -rf conftest*
1676   gcc_cv_c_have_stringify=yes
1677 else
1678   echo "configure: failed program was:" >&5
1679   cat conftest.$ac_ext >&5
1680   rm -rf conftest*
1681   gcc_cv_c_have_stringify=no
1682 fi
1683 rm -f conftest*
1684 fi
1685
1686 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1687 if test $gcc_cv_c_have_stringify = yes; then
1688   cat >> confdefs.h <<\EOF
1689 #define HAVE_CPP_STRINGIFY 1
1690 EOF
1691
1692 fi
1693
1694 # Use <inttypes.h> only if it exists,
1695 # doesn't clash with <sys/types.h>, and declares intmax_t.
1696 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1697 echo "configure:1698: checking for inttypes.h" >&5
1698 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1699   echo $ac_n "(cached) $ac_c" 1>&6
1700 else
1701   cat > conftest.$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1704 #include <sys/types.h>
1705 #include <inttypes.h>
1706 int main() {
1707 intmax_t i = -1;
1708 ; return 0; }
1709 EOF
1710 if { (eval echo configure:1711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1711   rm -rf conftest*
1712   cat >> confdefs.h <<EOF
1713 #define HAVE_INTTYPES_H 1
1714 EOF
1715
1716    gcc_cv_header_inttypes_h=yes
1717 else
1718   echo "configure: failed program was:" >&5
1719   cat conftest.$ac_ext >&5
1720   rm -rf conftest*
1721   gcc_cv_header_inttypes_h=no
1722 fi
1723 rm -f conftest*
1724 fi
1725
1726 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1727
1728 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
1729         index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
1730         sysconf isascii
1731 do
1732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $ac_func" >&5
1734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1735   echo $ac_n "(cached) $ac_c" 1>&6
1736 else
1737   cat > conftest.$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1740 /* System header to define __stub macros and hopefully few prototypes,
1741     which can conflict with char $ac_func(); below.  */
1742 #include <assert.h>
1743 /* Override any gcc2 internal prototype to avoid an error.  */
1744 /* We use char because int might match the return type of a gcc2
1745     builtin and then its argument prototype would still apply.  */
1746 char $ac_func();
1747
1748 int main() {
1749
1750 /* The GNU C library defines this for functions which it implements
1751     to always fail with ENOSYS.  Some functions are actually named
1752     something starting with __ and the normal name is an alias.  */
1753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1754 choke me
1755 #else
1756 $ac_func();
1757 #endif
1758
1759 ; return 0; }
1760 EOF
1761 if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1762   rm -rf conftest*
1763   eval "ac_cv_func_$ac_func=yes"
1764 else
1765   echo "configure: failed program was:" >&5
1766   cat conftest.$ac_ext >&5
1767   rm -rf conftest*
1768   eval "ac_cv_func_$ac_func=no"
1769 fi
1770 rm -f conftest*
1771 fi
1772
1773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1774   echo "$ac_t""yes" 1>&6
1775     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1776   cat >> confdefs.h <<EOF
1777 #define $ac_tr_func 1
1778 EOF
1779  
1780 else
1781   echo "$ac_t""no" 1>&6
1782 fi
1783 done
1784
1785
1786 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1787 echo "configure:1788: checking for vprintf" >&5
1788 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1789   echo $ac_n "(cached) $ac_c" 1>&6
1790 else
1791   cat > conftest.$ac_ext <<EOF
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1794 /* System header to define __stub macros and hopefully few prototypes,
1795     which can conflict with char vprintf(); below.  */
1796 #include <assert.h>
1797 /* Override any gcc2 internal prototype to avoid an error.  */
1798 /* We use char because int might match the return type of a gcc2
1799     builtin and then its argument prototype would still apply.  */
1800 char vprintf();
1801
1802 int main() {
1803
1804 /* The GNU C library defines this for functions which it implements
1805     to always fail with ENOSYS.  Some functions are actually named
1806     something starting with __ and the normal name is an alias.  */
1807 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1808 choke me
1809 #else
1810 vprintf();
1811 #endif
1812
1813 ; return 0; }
1814 EOF
1815 if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1816   rm -rf conftest*
1817   eval "ac_cv_func_vprintf=yes"
1818 else
1819   echo "configure: failed program was:" >&5
1820   cat conftest.$ac_ext >&5
1821   rm -rf conftest*
1822   eval "ac_cv_func_vprintf=no"
1823 fi
1824 rm -f conftest*
1825 fi
1826
1827 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1828   echo "$ac_t""yes" 1>&6
1829   cat >> confdefs.h <<\EOF
1830 #define HAVE_VPRINTF 1
1831 EOF
1832
1833 else
1834   echo "$ac_t""no" 1>&6
1835 fi
1836
1837 if test "$ac_cv_func_vprintf" != yes; then
1838 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1839 echo "configure:1840: checking for _doprnt" >&5
1840 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1841   echo $ac_n "(cached) $ac_c" 1>&6
1842 else
1843   cat > conftest.$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1846 /* System header to define __stub macros and hopefully few prototypes,
1847     which can conflict with char _doprnt(); below.  */
1848 #include <assert.h>
1849 /* Override any gcc2 internal prototype to avoid an error.  */
1850 /* We use char because int might match the return type of a gcc2
1851     builtin and then its argument prototype would still apply.  */
1852 char _doprnt();
1853
1854 int main() {
1855
1856 /* The GNU C library defines this for functions which it implements
1857     to always fail with ENOSYS.  Some functions are actually named
1858     something starting with __ and the normal name is an alias.  */
1859 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1860 choke me
1861 #else
1862 _doprnt();
1863 #endif
1864
1865 ; return 0; }
1866 EOF
1867 if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1868   rm -rf conftest*
1869   eval "ac_cv_func__doprnt=yes"
1870 else
1871   echo "configure: failed program was:" >&5
1872   cat conftest.$ac_ext >&5
1873   rm -rf conftest*
1874   eval "ac_cv_func__doprnt=no"
1875 fi
1876 rm -f conftest*
1877 fi
1878
1879 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1880   echo "$ac_t""yes" 1>&6
1881   cat >> confdefs.h <<\EOF
1882 #define HAVE_DOPRNT 1
1883 EOF
1884
1885 else
1886   echo "$ac_t""no" 1>&6
1887 fi
1888
1889 fi
1890
1891 vfprintf=
1892 doprint=
1893 if test $ac_cv_func_vprintf != yes ; then
1894   vfprintf=vfprintf.o
1895   if test $ac_cv_func__doprnt != yes ; then
1896     doprint=doprint.o
1897   fi
1898 fi
1899
1900
1901
1902 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
1903 echo "configure:1904: checking whether the printf functions support %p" >&5
1904 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
1905   echo $ac_n "(cached) $ac_c" 1>&6
1906 else
1907   if test "$cross_compiling" = yes; then
1908   gcc_cv_func_printf_ptr=no
1909 else
1910   cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 #include <stdio.h>
1914
1915 main()
1916 {
1917   char buf[64];
1918   char *p = buf, *q = NULL;
1919   sprintf(buf, "%p", p);
1920   sscanf(buf, "%p", &q);
1921   exit (p != q);
1922 }
1923 EOF
1924 if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1925 then
1926   gcc_cv_func_printf_ptr=yes
1927 else
1928   echo "configure: failed program was:" >&5
1929   cat conftest.$ac_ext >&5
1930   rm -fr conftest*
1931   gcc_cv_func_printf_ptr=no
1932 fi
1933 rm -fr conftest*
1934 fi
1935
1936 rm -f core core.* *.core
1937 fi
1938
1939 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
1940 if test $gcc_cv_func_printf_ptr = yes ; then
1941   cat >> confdefs.h <<\EOF
1942 #define HOST_PTR_PRINTF "%p"
1943 EOF
1944
1945 fi
1946
1947
1948 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
1949         index rindex getenv atol sbrk abort atof
1950 do
1951 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
1952 echo "configure:1953: checking whether $ac_func must be declared" >&5
1953 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
1954   echo $ac_n "(cached) $ac_c" 1>&6
1955 else
1956   cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1959
1960 #include <stdio.h>
1961 #ifdef HAVE_STRING_H
1962 #include <string.h>
1963 #else
1964 #ifdef HAVE_STRINGS_H
1965 #include <strings.h>
1966 #endif
1967 #endif
1968 #ifdef HAVE_STDLIB_H
1969 #include <stdlib.h>
1970 #endif
1971 #ifdef HAVE_UNISTD_H
1972 #include <unistd.h>
1973 #endif
1974 #ifndef HAVE_RINDEX
1975 #define rindex strrchr
1976 #endif
1977 #ifndef HAVE_INDEX
1978 #define index strchr
1979 #endif
1980 int main() {
1981 char *(*pfn) = (char *(*)) $ac_func
1982 ; return 0; }
1983 EOF
1984 if { (eval echo configure:1985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1985   rm -rf conftest*
1986   eval "gcc_cv_decl_needed_$ac_func=no"
1987 else
1988   echo "configure: failed program was:" >&5
1989   cat conftest.$ac_ext >&5
1990   rm -rf conftest*
1991   eval "gcc_cv_decl_needed_$ac_func=yes"
1992 fi
1993 rm -f conftest*
1994 fi
1995
1996 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
1997   echo "$ac_t""yes" 1>&6
1998   gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1999   cat >> confdefs.h <<EOF
2000 #define $gcc_tr_decl 1
2001 EOF
2002
2003 else
2004   echo "$ac_t""no" 1>&6
2005 fi
2006
2007 done
2008
2009
2010 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2011 echo "configure:2012: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2012 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2013   echo $ac_n "(cached) $ac_c" 1>&6
2014 else
2015   cat > conftest.$ac_ext <<EOF
2016 #line 2017 "configure"
2017 #include "confdefs.h"
2018 #include <sys/types.h>
2019 #include <signal.h>
2020 /* NetBSD declares sys_siglist in unistd.h.  */
2021 #ifdef HAVE_UNISTD_H
2022 #include <unistd.h>
2023 #endif
2024 int main() {
2025 char *msg = *(sys_siglist + 1);
2026 ; return 0; }
2027 EOF
2028 if { (eval echo configure:2029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2029   rm -rf conftest*
2030   ac_cv_decl_sys_siglist=yes
2031 else
2032   echo "configure: failed program was:" >&5
2033   cat conftest.$ac_ext >&5
2034   rm -rf conftest*
2035   ac_cv_decl_sys_siglist=no
2036 fi
2037 rm -f conftest*
2038 fi
2039
2040 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2041 if test $ac_cv_decl_sys_siglist = yes; then
2042   cat >> confdefs.h <<\EOF
2043 #define SYS_SIGLIST_DECLARED 1
2044 EOF
2045
2046 fi
2047
2048
2049 # File extensions
2050 manext='.1'
2051 objext='.o'
2052
2053
2054
2055 build_xm_file=
2056 build_xm_defines=
2057 build_install_headers_dir=install-headers-tar
2058 build_exeext=
2059 host_xm_file=
2060 host_xm_defines=
2061 host_xmake_file=
2062 host_truncate_target=
2063 host_exeext=
2064
2065 # Decode the host machine, then the target machine.
2066 # For the host machine, we save the xm_file variable as host_xm_file;
2067 # then we decode the target machine and forget everything else
2068 # that came from the host machine.
2069 for machine in $build $host $target; do
2070
2071         out_file=
2072         xmake_file=
2073         tmake_file=
2074         extra_headers=
2075         extra_passes=
2076         extra_parts=
2077         extra_programs=
2078         extra_objs=
2079         extra_host_objs=
2080         extra_gcc_objs=
2081         xm_defines=
2082         float_format=
2083         # Set this to force installation and use of collect2.
2084         use_collect2=
2085         # Set this to override the default target model.
2086         target_cpu_default=
2087         # Set this to control which fixincludes program to use.
2088         if [ x$fast_fixinc != xyes ] ; then
2089                 fixincludes=fixincludes
2090         else fixincludes=fixinc.sh ; fi
2091         # Set this to control how the header file directory is installed.
2092         install_headers_dir=install-headers-tar
2093         # Set this to a non-empty list of args to pass to cpp if the target
2094         # wants its .md file passed through cpp.
2095         md_cppflags=
2096         # Set this if directory names should be truncated to 14 characters.
2097         truncate_target=
2098         # Set this if gdb needs a dir command with `dirname $out_file`
2099         gdb_needs_out_file_path=
2100         # Set this if the build machine requires executables to have a
2101         # file name suffix.
2102         exeext=
2103         # Set this to control which thread package will be used.
2104         thread_file=
2105         # Reinitialize these from the flag values every loop pass, since some
2106         # configure entries modify them.
2107         gas="$gas_flag"
2108         gnu_ld="$gnu_ld_flag"
2109         enable_threads=$enable_threads_flag
2110
2111         # Set default cpu_type, tm_file and xm_file so it can be updated in
2112         # each machine entry.
2113         cpu_type=`echo $machine | sed 's/-.*$//'`
2114         case $machine in
2115         alpha*-*-*)
2116                 cpu_type=alpha
2117                 ;;
2118         arm*-*-*)
2119                 cpu_type=arm
2120                 ;;
2121         c*-convex-*)
2122                 cpu_type=convex
2123                 ;;
2124         i[34567]86-*-*)
2125                 cpu_type=i386
2126                 ;;
2127         hppa*-*-*)
2128                 cpu_type=pa
2129                 ;;
2130         m68000-*-*)
2131                 cpu_type=m68k
2132                 ;;
2133         mips*-*-*)
2134                 cpu_type=mips
2135                 ;;
2136         powerpc*-*-*)
2137                 cpu_type=rs6000
2138                 ;;
2139         pyramid-*-*)
2140                 cpu_type=pyr
2141                 ;;
2142         sparc*-*-*)
2143                 cpu_type=sparc
2144                 ;;
2145         esac
2146
2147         tm_file=${cpu_type}/${cpu_type}.h
2148         xm_file=${cpu_type}/xm-${cpu_type}.h
2149         
2150         # Set the default macros to define for GNU/Linux systems.
2151         case $machine in
2152         *-*-linux-gnu*)
2153                 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2154                 ;;
2155         esac
2156
2157         case $machine in
2158         # Support site-specific machine types.
2159         *local*)
2160                 cpu_type=`echo $machine | sed -e 's/-.*//'`
2161                 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2162                 xm_file=${cpu_type}/xm-$rest.h
2163                 tm_file=${cpu_type}/$rest.h
2164                 if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \
2165                 then xmake_file=${cpu_type}/x-$rest; \
2166                 else true; \
2167                 fi
2168                 if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
2169                 then tmake_file=${cpu_type}/t-$rest; \
2170                 else true; \
2171                 fi
2172                 ;;
2173         1750a-*-*)
2174                 ;;
2175         a29k-*-bsd* | a29k-*-sym1*)
2176                 tm_file="${tm_file} a29k/unix.h"
2177                 xm_defines=USG
2178                 xmake_file=a29k/x-unix
2179                 use_collect2=yes
2180                 ;;
2181         a29k-*-udi | a29k-*-coff)
2182                 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
2183                 tmake_file=a29k/t-a29kbare
2184                 ;;
2185         a29k-wrs-vxworks*)
2186                 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2187                 tmake_file=a29k/t-vx29k
2188                 extra_parts="crtbegin.o crtend.o"
2189                 thread_file='vxworks'
2190                 ;;
2191         a29k-*-*)                       # Default a29k environment.
2192                 use_collect2=yes
2193                 ;;
2194         alpha*-*-linux-gnuecoff*)
2195                 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2196                 target_cpu_default="MASK_GAS"
2197                 gas=no
2198                 xmake_file=none
2199                 gas=yes gnu_ld=yes
2200                 ;;
2201         alpha*-*-linux-gnulibc1*)
2202                 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2203                 target_cpu_default="MASK_GAS"
2204                 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2205                 extra_parts="crtbegin.o crtend.o"
2206                 fixincludes=fixinc.wrap
2207                 xmake_file=none
2208                 gas=yes gnu_ld=yes
2209                 if [ x$enable_threads = xyes ]; then
2210                         thread_file='posix'
2211                 fi
2212                 ;;
2213         alpha*-*-linux-gnu*)
2214                 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2215                 target_cpu_default="MASK_GAS"
2216                 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
2217                 extra_parts="crtbegin.o crtend.o"
2218                 xmake_file=none
2219                 fixincludes=Makefile.in
2220                 gas=yes gnu_ld=yes
2221                 if [ x$enable_threads = xyes ]; then
2222                         thread_file='posix'
2223                 fi
2224                 ;;
2225         alpha*-*-netbsd*)
2226                 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
2227                 target_cpu_default="MASK_GAS"
2228                 tmake_file="alpha/t-crtbe"
2229                 extra_parts="crtbegin.o crtend.o"
2230                 xmake_file=none
2231                 fixincludes=fixinc.wrap
2232                 gas=yes gnu_ld=yes
2233                 ;;
2234                 
2235         alpha*-dec-osf*)
2236                 if [ x$stabs = xyes ]
2237                 then
2238                         tm_file="${tm_file} dbx.h"
2239                 fi
2240                 if [ x$gas != xyes ]
2241                 then
2242                         extra_passes="mips-tfile mips-tdump"
2243                 fi
2244                 use_collect2=yes
2245                 case $machine in
2246                   *-*-osf1*)
2247                     tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2248                     ;;
2249                   *-*-osf[23]*)
2250                     tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
2251                     ;;
2252                   *-*-osf4*)
2253                     tm_file="${tm_file} alpha/osf.h"
2254                     # Some versions of OSF4 (specifically X4.0-9 296.7) have
2255                     # a broken tar, so we use cpio instead.
2256                     install_headers_dir=install-headers-cpio
2257                     ;;
2258                 esac
2259                 case $machine in
2260                   *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
2261                     target_cpu_default=MASK_SUPPORT_ARCH
2262                     ;;
2263                 esac
2264                 ;;
2265         alpha*-*-winnt*)
2266                 tm_file="${tm_file} alpha/win-nt.h"
2267                 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2268                 tmake_file=t-libc-ok
2269                 xmake_file=winnt/x-winnt
2270                 extra_host_objs=oldnames.o
2271                 extra_gcc_objs="spawnv.o oldnames.o"
2272                 fixincludes=fixinc.winnt
2273                 if [ x$gnu_ld != xyes ]
2274                 then
2275                         extra_programs=ld.exe
2276                 fi
2277                 if [ x$enable_threads = xyes ]; then
2278                         thread_file='win32'
2279                 fi
2280                 ;;
2281         alpha*-dec-vms*)
2282                 tm_file=alpha/vms.h
2283                 xm_file="${xm_file} alpha/xm-vms.h"
2284                 tmake_file=alpha/t-vms
2285                 fixincludes=Makefile.in
2286                 ;;
2287         arc-*-elf*)
2288                 extra_parts="crtinit.o crtfini.o"
2289                 ;;
2290         arm-*-coff* | armel-*-coff*)
2291                 tm_file=arm/coff.h
2292                 tmake_file=arm/t-bare
2293                 ;;
2294         arm-*-riscix1.[01]*)            # Acorn RISC machine (early versions)
2295                 tm_file=arm/riscix1-1.h
2296                 use_collect2=yes
2297                 ;;
2298         arm-*-riscix*)                  # Acorn RISC machine
2299                 if [ x$gas = xyes ]
2300                 then
2301                     tm_file=arm/rix-gas.h
2302                 else
2303                     tm_file=arm/riscix.h
2304                 fi
2305                 xmake_file=arm/x-riscix
2306                 tmake_file=arm/t-riscix
2307                 use_collect2=yes
2308                 ;;
2309         arm-semi-aout | armel-semi-aout)
2310                 tm_file=arm/semi.h
2311                 tmake_file=arm/t-semi
2312                 fixincludes=Makefile.in # There is nothing to fix
2313                 ;;
2314         arm-semi-aof | armel-semi-aof)
2315                 tm_file=arm/semiaof.h
2316                 tmake_file=arm/t-semiaof
2317                 fixincludes=Makefile.in # There is nothing to fix
2318                 ;;
2319         arm-*-netbsd*)
2320                 tm_file=arm/netbsd.h
2321                 xm_file="xm-siglist.h ${xm_file}"
2322                 tmake_file="t-netbsd arm/t-netbsd"
2323                 # On NetBSD, the headers are already okay, except for math.h.
2324                 fixincludes=fixinc.wrap
2325                 ;;
2326         arm-*-linux-gnuaout*)           # ARM GNU/Linux
2327                 cpu_type=arm
2328                 xmake_file=x-linux
2329                 tm_file=arm/linux-gas.h
2330                 tmake_file=arm/t-linux
2331                 fixincludes=Makefile.in
2332                 gnu_ld=yes
2333                 ;;
2334         arm-*-aout)
2335                 tm_file=arm/aout.h
2336                 tmake_file=arm/t-bare
2337                 ;;
2338         c1-convex-*)                    # Convex C1
2339                 target_cpu_default=1
2340                 use_collect2=yes
2341                 fixincludes=Makefile.in
2342                 ;;
2343         c2-convex-*)                    # Convex C2
2344                 target_cpu_default=2
2345                 use_collect2=yes
2346                 fixincludes=Makefile.in
2347                 ;;
2348         c32-convex-*)
2349                 target_cpu_default=4
2350                 use_collect2=yes
2351                 fixincludes=Makefile.in
2352                 ;;
2353         c34-convex-*)
2354                 target_cpu_default=8
2355                 use_collect2=yes
2356                 fixincludes=Makefile.in
2357                 ;;
2358         c38-convex-*)
2359                 target_cpu_default=16           
2360                 use_collect2=yes
2361                 fixincludes=Makefile.in
2362                 ;;
2363         clipper-intergraph-clix*)
2364                 tm_file="${tm_file} svr3.h clipper/clix.h"
2365                 xm_file=clipper/xm-clix.h
2366                 xmake_file=clipper/x-clix
2367                 extra_headers=va-clipper.h
2368                 extra_parts="crtbegin.o crtend.o"
2369                 install_headers_dir=install-headers-cpio
2370                 ;;
2371         dsp16xx-*)
2372                 ;;
2373         elxsi-elxsi-*)
2374                 use_collect2=yes
2375                 ;;
2376 # This hasn't been upgraded to GCC 2.
2377 #       fx80-alliant-*)                 # Alliant FX/80
2378 #               ;;
2379         h8300-*-*)
2380                 float_format=i32
2381                 ;;
2382         hppa1.1-*-pro*)
2383                 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2384                 xm_file=pa/xm-papro.h
2385                 tmake_file=pa/t-pro
2386                 ;;
2387         hppa1.1-*-osf*)
2388                 target_cpu_default=1
2389                 tm_file="${tm_file} pa/pa-osf.h"
2390                 use_collect2=yes
2391                 fixincludes=Makefile.in
2392                 ;;
2393         hppa1.1-*-rtems*)
2394                 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2395                 xm_file=pa/xm-papro.h
2396                 tmake_file=pa/t-pro
2397                 ;;
2398         hppa1.0-*-osf*)
2399                 tm_file="${tm_file} pa/pa-osf.h"
2400                 use_collect2=yes
2401                 fixincludes=Makefile.in
2402                 ;;
2403         hppa1.1-*-bsd*)
2404                 target_cpu_default=1
2405                 use_collect2=yes
2406                 fixincludes=Makefile.in
2407                 ;;
2408         hppa1.0-*-bsd*)
2409                 use_collect2=yes
2410                 fixincludes=Makefile.in
2411                 ;;
2412         hppa1.0-*-hpux7*)
2413                 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2414                 xm_file=pa/xm-pahpux.h
2415                 xmake_file=pa/x-pa-hpux
2416                 if [ x$gas = xyes ]
2417                 then
2418                         tm_file="${tm_file} pa/gas.h"
2419                 fi
2420                 install_headers_dir=install-headers-cpio
2421                 use_collect2=yes
2422                 ;;
2423         hppa1.0-*-hpux8.0[0-2]*)
2424                 tm_file="${tm_file} pa/pa-hpux.h"
2425                 xm_file=pa/xm-pahpux.h
2426                 xmake_file=pa/x-pa-hpux
2427                 if [ x$gas = xyes ]
2428                 then
2429                         tm_file="${tm_file} pa/pa-gas.h"
2430                 else
2431                         tm_file="pa/pa-oldas.h ${tm_file}"
2432                 fi
2433                 install_headers_dir=install-headers-cpio
2434                 use_collect2=yes
2435                 ;;
2436         hppa1.1-*-hpux8.0[0-2]*)
2437                 target_cpu_default=1
2438                 tm_file="${tm_file} pa/pa-hpux.h"
2439                 xm_file=pa/xm-pahpux.h
2440                 xmake_file=pa/x-pa-hpux
2441                 if [ x$gas = xyes ]
2442                 then
2443                         tm_file="${tm_file} pa/pa-gas.h"
2444                 else
2445                         tm_file="pa/pa-oldas.h ${tm_file}"
2446                 fi
2447                 install_headers_dir=install-headers-cpio
2448                 use_collect2=yes
2449                 ;;
2450         hppa1.1-*-hpux8*)
2451                 target_cpu_default=1
2452                 tm_file="${tm_file} pa/pa-hpux.h"
2453                 xm_file=pa/xm-pahpux.h
2454                 xmake_file=pa/x-pa-hpux
2455                 if [ x$gas = xyes ]
2456                 then
2457                         tm_file="${tm_file} pa/pa-gas.h"
2458                 fi
2459                 install_headers_dir=install-headers-cpio
2460                 use_collect2=yes
2461                 ;;
2462         hppa1.0-*-hpux8*)
2463                 tm_file="${tm_file} pa/pa-hpux.h"
2464                 xm_file=pa/xm-pahpux.h
2465                 xmake_file=pa/x-pa-hpux
2466                 if [ x$gas = xyes ]
2467                 then
2468                         tm_file="${tm_file} pa/pa-gas.h"
2469                 fi
2470                 install_headers_dir=install-headers-cpio
2471                 use_collect2=yes
2472                 ;;
2473         hppa1.1-*-hpux10*)
2474                 target_cpu_default=1
2475                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2476                 xm_file=pa/xm-pahpux.h
2477                 xmake_file=pa/x-pa-hpux
2478                 tmake_file=pa/t-pa
2479                 if [ x$gas = xyes ]
2480                 then
2481                         tm_file="${tm_file} pa/pa-gas.h"
2482                 fi
2483                 if [ x$enable_threads = x ]; then
2484                     enable_threads=$have_pthread_h
2485                 fi
2486                 if [ x$enable_threads = xyes ]; then
2487                         thread_file='dce'
2488                         tmake_file="${tmake_file} pa/t-dce-thr"
2489                 fi
2490                 install_headers_dir=install-headers-cpio
2491                 use_collect2=yes
2492                 ;;
2493         hppa1.0-*-hpux10*)
2494                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2495                 xm_file=pa/xm-pahpux.h
2496                 xmake_file=pa/x-pa-hpux
2497                 if [ x$gas = xyes ]
2498                 then
2499                         tm_file="${tm_file} pa/pa-gas.h"
2500                 fi
2501                 if [ x$enable_threads = x ]; then
2502                     enable_threads=$have_pthread_h
2503                 fi
2504                 if [ x$enable_threads = xyes ]; then
2505                         thread_file='dce'
2506                         tmake_file="${tmake_file} pa/t-dce-thr"
2507                 fi
2508                 install_headers_dir=install-headers-cpio
2509                 use_collect2=yes
2510                 ;;
2511         hppa1.1-*-hpux*)
2512                 target_cpu_default=1
2513                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2514                 xm_file=pa/xm-pahpux.h
2515                 xmake_file=pa/x-pa-hpux
2516                 if [ x$gas = xyes ]
2517                 then
2518                         tm_file="${tm_file} pa/pa-gas.h"
2519                 fi
2520                 install_headers_dir=install-headers-cpio
2521                 use_collect2=yes
2522                 ;;
2523         hppa1.0-*-hpux*)
2524                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2525                 xm_file=pa/xm-pahpux.h
2526                 xmake_file=pa/x-pa-hpux
2527                 if [ x$gas = xyes ]
2528                 then
2529                         tm_file="${tm_file} pa/pa-gas.h"
2530                 fi
2531                 install_headers_dir=install-headers-cpio
2532                 use_collect2=yes
2533                 ;;
2534         hppa1.1-*-hiux*)
2535                 target_cpu_default=1
2536                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2537                 xm_file=pa/xm-pahpux.h
2538                 xmake_file=pa/x-pa-hpux
2539                 if [ x$gas = xyes ]
2540                 then
2541                         tm_file="${tm_file} pa/pa-gas.h"
2542                 fi
2543                 install_headers_dir=install-headers-cpio
2544                 use_collect2=yes
2545                 ;;
2546         hppa1.0-*-hiux*)
2547                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2548                 xm_file=pa/xm-pahpux.h
2549                 xmake_file=pa/x-pa-hpux
2550                 if [ x$gas = xyes ]
2551                 then
2552                         tm_file="${tm_file} pa/pa-gas.h"
2553                 fi
2554                 install_headers_dir=install-headers-cpio
2555                 use_collect2=yes
2556                 ;;
2557         hppa*-*-lites*)
2558                 target_cpu_default=1
2559                 use_collect2=yes
2560                 fixincludes=Makefile.in
2561                 ;;
2562         i370-*-mvs*)
2563                 ;;
2564         i[34567]86-ibm-aix*)            # IBM PS/2 running AIX
2565                 if [ x$gas = xyes ]
2566                 then
2567                         tm_file=i386/aix386.h
2568                         extra_parts="crtbegin.o crtend.o"
2569                         tmake_file=i386/t-crtstuff
2570                 else
2571                         tm_file=i386/aix386ng.h
2572                         use_collect2=yes
2573                 fi
2574                 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
2575                 xm_defines=USG
2576                 xmake_file=i386/x-aix
2577                 ;;
2578         i[34567]86-ncr-sysv4*)  # NCR 3000 - ix86 running system V.4
2579                 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
2580                 xm_defines="USG POSIX SMALL_ARG_MAX"
2581                 xmake_file=i386/x-ncr3000
2582                 if [ x$stabs = xyes -a x$gas = xyes ]
2583                 then
2584                         tm_file=i386/sysv4gdb.h
2585                 else
2586                         tm_file=i386/sysv4.h
2587                 fi
2588                 extra_parts="crtbegin.o crtend.o"
2589                 tmake_file=i386/t-crtpic
2590                 ;;
2591         i[34567]86-next-*)
2592                 tm_file=i386/next.h
2593                 xm_file=i386/xm-next.h
2594                 tmake_file=i386/t-next
2595                 xmake_file=i386/x-next
2596                 extra_objs=nextstep.o
2597                 if [ x$enable_threads = xyes ]; then
2598                         thread_file='mach'
2599                 fi
2600                 ;;
2601         i[34567]86-sequent-bsd*)                # 80386 from Sequent
2602                 use_collect2=yes
2603                 if [ x$gas = xyes ]
2604                 then
2605                         tm_file=i386/seq-gas.h
2606                 else
2607                         tm_file=i386/sequent.h
2608                 fi
2609                 ;;
2610         i[34567]86-sequent-ptx1*)
2611                 xm_defines="USG SVR3"
2612                 xmake_file=i386/x-sysv3
2613                 tm_file=i386/seq-sysv3.h
2614                 tmake_file=i386/t-crtstuff
2615                 fixincludes=fixinc.ptx
2616                 extra_parts="crtbegin.o crtend.o"
2617                 install_headers_dir=install-headers-cpio
2618                 ;;
2619         i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
2620                 xm_defines="USG SVR3"
2621                 xmake_file=i386/x-sysv3
2622                 tm_file=i386/seq2-sysv3.h
2623                 tmake_file=i386/t-crtstuff
2624                 extra_parts="crtbegin.o crtend.o"
2625                 fixincludes=fixinc.ptx
2626                 install_headers_dir=install-headers-cpio
2627                 ;;
2628         i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
2629                 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
2630                 xm_defines="USG POSIX SMALL_ARG_MAX"
2631                 xmake_file=x-svr4
2632                 tm_file=i386/ptx4-i.h
2633                 tmake_file=t-svr4
2634                 extra_parts="crtbegin.o crtend.o"
2635                 fixincludes=fixinc.ptx
2636                 install_headers_dir=install-headers-cpio
2637                 ;;
2638         i386-sun-sunos*)                # Sun i386 roadrunner
2639                 xm_defines=USG
2640                 tm_file=i386/sun.h
2641                 use_collect2=yes
2642                 ;;
2643         i[34567]86-wrs-vxworks*)
2644                 tm_file=i386/vxi386.h
2645                 tmake_file=i386/t-i386bare
2646                 ;;
2647         i[34567]86-*-aout*)
2648                 tm_file=i386/i386-aout.h
2649                 tmake_file=i386/t-i386bare
2650                 ;;
2651         i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
2652                 tm_file=i386/bsd386.h
2653 #               tmake_file=t-libc-ok
2654                 ;;
2655         i[34567]86-*-bsd*)
2656                 tm_file=i386/386bsd.h
2657 #               tmake_file=t-libc-ok
2658 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2659 #               use_collect2=yes
2660                 ;;
2661         i[34567]86-*-freebsdelf*)
2662                 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2663                 # On FreeBSD, the headers are already ok, except for math.h.
2664                 fixincludes=fixinc.wrap
2665                 tmake_file=i386/t-freebsd
2666                 gas=yes
2667                 gnu_ld=yes
2668                 stabs=yes
2669                 ;;
2670         i[34567]86-*-freebsd*)
2671                 tm_file=i386/freebsd.h
2672                 # On FreeBSD, the headers are already ok, except for math.h.
2673                 fixincludes=fixinc.wrap
2674                 tmake_file=i386/t-freebsd
2675                 ;;
2676         i[34567]86-*-netbsd*)
2677                 tm_file=i386/netbsd.h
2678                 # On NetBSD, the headers are already okay, except for math.h.
2679                 fixincludes=fixinc.wrap
2680                 tmake_file=t-netbsd
2681                 ;;
2682         i[34567]86-*-coff*)
2683                 tm_file=i386/i386-coff.h
2684                 tmake_file=i386/t-i386bare
2685                 ;;
2686         i[34567]86-*-isc*)              # 80386 running ISC system
2687                 xm_file="${xm_file} i386/xm-isc.h"
2688                 xm_defines="USG SVR3"
2689                 case $machine in
2690                   i[34567]86-*-isc[34]*)
2691                     xmake_file=i386/x-isc3
2692                     ;;
2693                   *)
2694                     xmake_file=i386/x-isc
2695                     ;;
2696                 esac
2697                 if [ x$gas = xyes -a x$stabs = xyes ]
2698                 then
2699                         tm_file=i386/iscdbx.h
2700                         tmake_file=i386/t-svr3dbx
2701                         extra_parts="svr3.ifile svr3z.ifile"
2702                 else
2703                         tm_file=i386/isccoff.h
2704                         tmake_file=i386/t-crtstuff
2705                         extra_parts="crtbegin.o crtend.o"
2706                 fi
2707                 install_headers_dir=install-headers-cpio
2708                 ;;
2709         i[34567]86-*-linux-gnuoldld*)   # Intel 80386's running GNU/Linux
2710                                         # with a.out format using
2711                                         # pre BFD linkers
2712                 xmake_file=x-linux-aout
2713                 tmake_file="t-linux-aout i386/t-crtstuff"
2714                 tm_file=i386/linux-oldld.h
2715                 fixincludes=Makefile.in #On Linux, the headers are ok already.
2716                 gnu_ld=yes
2717                 ;;
2718         i[34567]86-*-linux-gnuaout*)    # Intel 80386's running GNU/Linux
2719                                         # with a.out format
2720                 xmake_file=x-linux-aout
2721                 tmake_file="t-linux-aout i386/t-crtstuff"
2722                 tm_file=i386/linux-aout.h
2723                 fixincludes=Makefile.in #On Linux, the headers are ok already.
2724                 gnu_ld=yes
2725                 ;;
2726         i[34567]86-*-linux-gnulibc1)    # Intel 80386's running GNU/Linux
2727                                         # with ELF format using the
2728                                         # GNU/Linux C library 5
2729                 xmake_file=x-linux      
2730                 tm_file=i386/linux.h    
2731                 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2732                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2733                 fixincludes=Makefile.in #On Linux, the headers are ok already.
2734                 gnu_ld=yes
2735                 if [ x$enable_threads = xyes ]; then
2736                         thread_file='single'
2737                 fi
2738                 ;;
2739         i[34567]86-*-linux-gnu*)        # Intel 80386's running GNU/Linux
2740                                         # with ELF format using glibc 2
2741                                         # aka GNU/Linux C library 6
2742                 xmake_file=x-linux
2743                 tm_file=i386/linux.h
2744                 tmake_file="t-linux i386/t-crtstuff"
2745                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2746                 fixincludes=Makefile.in #On Linux, the headers are ok already.
2747                 gnu_ld=yes
2748                 if [ x$enable_threads = xyes ]; then
2749                         thread_file='posix'
2750                 fi
2751                 ;;
2752         i[34567]86-*-gnu*)
2753                 ;;
2754         i[34567]86-go32-msdos | i[34567]86-*-go32*)
2755                 xm_file=i386/xm-go32.h
2756                 tm_file=i386/go32.h
2757                 tmake_file=i386/t-go32
2758                 ;;
2759         i[34567]86-pc-msdosdjgpp*)
2760                 xm_file=i386/xm-go32.h
2761                 tm_file=i386/go32.h
2762                 tmake_file=i386/t-go32
2763                 gnu_ld=yes
2764                 gas=yes
2765                 ;;
2766         i[34567]86-moss-msdos* | i[34567]86-*-moss*)
2767                 tm_file=i386/moss.h
2768                 tmake_file=t-libc-ok
2769                 fixincludes=Makefile.in
2770                 gnu_ld=yes
2771                 gas=yes
2772                 ;;
2773         i[34567]86-*-lynxos*)
2774                 if [ x$gas = xyes ]
2775                 then
2776                         tm_file=i386/lynx.h
2777                 else
2778                         tm_file=i386/lynx-ng.h
2779                 fi
2780                 xm_file=i386/xm-lynx.h
2781                 tmake_file=i386/t-i386bare
2782                 xmake_file=x-lynx
2783                 ;;
2784         i[34567]86-*-mach*)
2785                 tm_file=i386/mach.h
2786 #               tmake_file=t-libc-ok
2787                 use_collect2=yes
2788                 ;;
2789         i[34567]86-*-osfrose*)          # 386 using OSF/rose
2790                 if [ x$elf = xyes ]
2791                 then
2792                         tm_file=i386/osfelf.h
2793                         use_collect2=
2794                 else
2795                         tm_file=i386/osfrose.h
2796                         use_collect2=yes
2797                 fi
2798                 xm_file="i386/xm-osf.h ${xm_file}"
2799                 xmake_file=i386/x-osfrose
2800                 tmake_file=i386/t-osf
2801                 extra_objs=halfpic.o
2802                 ;;
2803         i[34567]86-go32-rtems*)
2804                 cpu_type=i386
2805                 xm_file=i386/xm-go32.h
2806                 tm_file=i386/go32-rtems.h
2807                 tmake_file="i386/t-go32 t-rtems"
2808                 ;;
2809         i[34567]86-*-rtemself*)
2810                 cpu_type=i386
2811                 tm_file=i386/rtemself.h
2812                 tmake_file="i386/t-i386bare t-rtems"
2813                 ;;
2814         i[34567]86-*-rtems*)
2815                 cpu_type=i386
2816                 tm_file=i386/rtems.h
2817                 tmake_file="i386/t-i386bare t-rtems"
2818                 ;;
2819         i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
2820                 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
2821                 xm_defines="USG SVR3"
2822                 xmake_file=i386/x-sco5
2823                 fixincludes=fixinc.sco
2824                 install_headers_dir=install-headers-cpio
2825                 tm_file=i386/sco5.h
2826                 tmake_file=i386/t-sco5
2827                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2828                 ;;
2829         i[34567]86-*-sco3.2v4*)         # 80386 running SCO 3.2v4 system
2830                 xm_file="${xm_file} i386/xm-sco.h"
2831                 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
2832                 xmake_file=i386/x-sco4
2833                 fixincludes=fixinc.sco
2834                 install_headers_dir=install-headers-cpio
2835                 if [ x$stabs = xyes ]
2836                 then
2837                         tm_file=i386/sco4dbx.h
2838                         tmake_file=i386/t-svr3dbx
2839                         extra_parts="svr3.ifile svr3z.rfile"
2840                 else
2841                         tm_file=i386/sco4.h
2842                         tmake_file=i386/t-crtstuff
2843                         extra_parts="crtbegin.o crtend.o"
2844                 fi
2845                 truncate_target=yes
2846                 ;;
2847         i[34567]86-*-sco*)              # 80386 running SCO system
2848                 xm_file=i386/xm-sco.h
2849                 xmake_file=i386/x-sco
2850                 install_headers_dir=install-headers-cpio
2851                 if [ x$stabs = xyes ]
2852                 then
2853                         tm_file=i386/scodbx.h
2854                         tmake_file=i386/t-svr3dbx
2855                         extra_parts="svr3.ifile svr3z.rfile"
2856                 else
2857                         tm_file=i386/sco.h
2858                         extra_parts="crtbegin.o crtend.o"
2859                         tmake_file=i386/t-crtstuff
2860                 fi
2861                 truncate_target=yes
2862                 ;;
2863         i[34567]86-*-solaris2*)
2864                 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
2865                 xm_defines="USG POSIX SMALL_ARG_MAX"
2866                 if [ x$stabs = xyes ]
2867                 then
2868                         tm_file=i386/sol2dbg.h
2869                 else
2870                         tm_file=i386/sol2.h
2871                 fi
2872                 tmake_file=i386/t-sol2
2873                 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2874                 xmake_file=x-svr4
2875                 case $machine in
2876                 *-*-solaris2.[0-4])
2877                         fixincludes=fixinc.svr4;;
2878                 *)
2879                         fixincludes=fixinc.wrap;;
2880                 esac
2881                 if [ x$enable_threads = xyes ]; then
2882                         thread_file='solaris'
2883                 fi
2884                 ;;
2885        i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
2886                xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
2887                xm_defines="USG POSIX"
2888                tm_file=i386/sysv4.h
2889                if [ x$stabs = xyes ]
2890                then
2891                        tm_file="${tm_file} dbx.h"
2892                fi
2893                tmake_file=i386/t-crtpic
2894                xmake_file=x-svr4
2895                extra_parts="crtbegin.o crtend.o"
2896                fixincludes=Makefile.in # The headers are just fine, thank you.
2897                ;;
2898         i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
2899                 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
2900                 xm_defines="USG POSIX SMALL_ARG_MAX"
2901                 tm_file=i386/sysv4.h
2902                 if [ x$stabs = xyes ]
2903                 then
2904                         tm_file="${tm_file} dbx.h"
2905                 fi
2906                 tmake_file=i386/t-crtpic
2907                 xmake_file=x-svr4
2908                 extra_parts="crtbegin.o crtend.o"
2909                 ;;
2910         i[34567]86-*-osf1*)             # Intel 80386's running OSF/1 1.3+
2911                 cpu_type=i386
2912                 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
2913                 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
2914                 fixincludes=Makefile.in #Don't do it on OSF/1
2915                 if [ x$stabs = xyes ]
2916                 then
2917                         tm_file=i386/osf1elfgdb.h
2918                 else
2919                         tm_file=i386/osf1elf.h
2920                 fi
2921                 tmake_file=i386/t-osf1elf
2922                 xmake_file=i386/x-osf1elf
2923                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2924                 ;;
2925         i[34567]86-*-sysv*)             # Intel 80386's running system V
2926                 xm_defines="USG SVR3"
2927                 xmake_file=i386/x-sysv3
2928                 if [ x$gas = xyes ]
2929                 then
2930                         if [ x$stabs = xyes ]
2931                         then
2932                                 tm_file=i386/svr3dbx.h
2933                                 tmake_file=i386/t-svr3dbx
2934                                 extra_parts="svr3.ifile svr3z.rfile"
2935                         else
2936                                 tm_file=i386/svr3gas.h
2937                                 extra_parts="crtbegin.o crtend.o"
2938                                 tmake_file=i386/t-crtstuff
2939                         fi
2940                 else
2941                         tm_file=i386/sysv3.h
2942                         extra_parts="crtbegin.o crtend.o"
2943                         tmake_file=i386/t-crtstuff
2944                 fi
2945                 ;;
2946         i386-*-vsta)                    # Intel 80386's running VSTa kernel
2947                 xm_file="${xm_file} i386/xm-vsta.h"
2948                 tm_file=i386/vsta.h
2949                 tmake_file=i386/t-vsta
2950                 xmake_file=i386/x-vsta
2951                 ;;
2952         i[34567]86-*-pe | i[34567]86-*-cygwin32)
2953                 xm_file="${xm_file} i386/xm-cygwin32.h"
2954                 tmake_file=i386/t-cygwin32
2955                 tm_file=i386/cygwin32.h
2956                 xmake_file=i386/x-cygwin32
2957                 extra_objs=winnt.o
2958                 fixincludes=Makefile.in
2959                 if [ x$enable_threads = xyes ]; then
2960                         thread_file='win32'
2961                 fi
2962                 exeext=.exe
2963                 ;;
2964         i[34567]86-*-mingw32*)
2965                 tm_file=i386/mingw32.h
2966                 xm_file="${xm_file} i386/xm-mingw32.h"
2967                 tmake_file="i386/t-cygwin32 i386/t-mingw32"
2968                 extra_objs=winnt.o
2969                 xmake_file=i386/x-cygwin32
2970                 fixincludes=Makefile.in
2971                 if [ x$enable_threads = xyes ]; then
2972                         thread_file='win32'
2973                 fi
2974                 exeext=.exe
2975                 case $machine in
2976                         *mingw32msv*)
2977                                 ;;
2978                         *minwg32crt* | *mingw32*)
2979                                 tm_file="${tm_file} i386/crtdll.h"
2980                                 ;;
2981                 esac
2982                 ;;
2983         i[34567]86-*-winnt3*)
2984                 tm_file=i386/win-nt.h
2985                 out_file=i386/i386.c
2986                 xm_file="xm-winnt.h ${xm_file}"
2987                 xmake_file=winnt/x-winnt
2988                 tmake_file=i386/t-winnt
2989                 extra_host_objs="winnt.o oldnames.o"
2990                 extra_gcc_objs="spawnv.o oldnames.o"
2991                 fixincludes=fixinc.winnt
2992                 if [ x$gnu_ld != xyes ]
2993                 then
2994                         extra_programs=ld.exe
2995                 fi
2996                 if [ x$enable_threads = xyes ]; then
2997                         thread_file='win32'
2998                 fi
2999                 ;;
3000         i[34567]86-dg-dgux*)
3001                 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3002                 xm_defines="USG POSIX"
3003                 out_file=i386/dgux.c
3004                 tm_file=i386/dgux.h
3005                 tmake_file=i386/t-dgux
3006                 xmake_file=i386/x-dgux
3007                 fixincludes=fixinc.dgux
3008                 install_headers_dir=install-headers-cpio
3009               ;;
3010         i860-alliant-*)         # Alliant FX/2800
3011                 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3012                 xm_file="${xm_file}"
3013                 xmake_file=i860/x-fx2800
3014                 tmake_file=i860/t-fx2800
3015                 extra_parts="crtbegin.o crtend.o"
3016                 ;;
3017         i860-*-bsd*)
3018                 tm_file="${tm_file} i860/bsd.h"
3019                 if [ x$gas = xyes ]
3020                 then
3021                         tm_file="${tm_file} i860/bsd-gas.h"
3022                 fi
3023                 use_collect2=yes
3024                 ;;
3025         i860-*-mach*)
3026                 tm_file="${tm_file} i860/mach.h"
3027                 tmake_file=t-libc-ok
3028                 ;;
3029         i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
3030                 tm_file="${tm_file} svr3.h i860/paragon.h"
3031                 xm_defines="USG SVR3"
3032                 tmake_file=t-osf
3033                 ;;
3034         i860-*-sysv3*)
3035                 tm_file="${tm_file} svr3.h i860/sysv3.h"
3036                 xm_defines="USG SVR3"
3037                 xmake_file=i860/x-sysv3
3038                 extra_parts="crtbegin.o crtend.o"
3039                 ;;
3040         i860-*-sysv4*)
3041                 tm_file="${tm_file} svr4.h i860/sysv4.h"
3042                 xm_defines="USG SVR3"
3043                 xmake_file=i860/x-sysv4
3044                 tmake_file=t-svr4
3045                 extra_parts="crtbegin.o crtend.o"
3046                 ;;
3047         i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
3048                 tm_file="${tm_file} i960/vx960.h"
3049                 tmake_file=i960/t-vxworks960
3050                 use_collect2=yes
3051                 thread_file='vxworks'
3052                 ;;
3053         i960-wrs-vxworks5* | i960-wrs-vxworks)
3054                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3055                 tmake_file=i960/t-vxworks960
3056                 use_collect2=yes
3057                 thread_file='vxworks'
3058                 ;;
3059         i960-wrs-vxworks*)
3060                 tm_file="${tm_file} i960/vx960.h"
3061                 tmake_file=i960/t-vxworks960
3062                 use_collect2=yes
3063                 thread_file='vxworks'
3064                 ;;
3065         i960-*-coff*)
3066                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3067                 tmake_file=i960/t-960bare
3068                 use_collect2=yes
3069                 ;;
3070         i960-*-rtems)
3071                 tmake_file="i960/t-960bare t-rtems"
3072                 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
3073                 use_collect2=yes
3074                 ;;
3075         i960-*-*)                       # Default i960 environment.
3076                 use_collect2=yes
3077                 ;;
3078         m32r-*-elf*)
3079                 extra_parts="crtinit.o crtfini.o"
3080                 ;;
3081         m68000-convergent-sysv*)
3082                 tm_file=m68k/ctix.h
3083                 xm_file="m68k/xm-3b1.h ${xm_file}"
3084                 xm_defines=USG
3085                 use_collect2=yes
3086                 extra_headers=math-68881.h
3087                 ;;
3088         m68000-hp-bsd*)                 # HP 9000/200 running BSD
3089                 tm_file=m68k/hp2bsd.h
3090                 xmake_file=m68k/x-hp2bsd
3091                 use_collect2=yes
3092                 extra_headers=math-68881.h
3093                 ;;
3094         m68000-hp-hpux*)                # HP 9000 series 300
3095                 xm_file="xm_alloca.h ${xm_file}"
3096                 xm_defines="USG NO_SYS_SIGLIST"
3097                 if [ x$gas = xyes ]
3098                 then
3099                         xmake_file=m68k/x-hp320g
3100                         tm_file=m68k/hp310g.h
3101                 else
3102                         xmake_file=m68k/x-hp320
3103                         tm_file=m68k/hp310.h
3104                 fi
3105                 install_headers_dir=install-headers-cpio
3106                 use_collect2=yes
3107                 extra_headers=math-68881.h
3108                 ;;
3109         m68000-sun-sunos3*)
3110                 tm_file=m68k/sun2.h
3111                 use_collect2=yes
3112                 extra_headers=math-68881.h
3113                 ;;
3114         m68000-sun-sunos4*)
3115                 tm_file=m68k/sun2o4.h
3116                 use_collect2=yes
3117                 extra_headers=math-68881.h
3118                 ;;
3119         m68000-att-sysv*)
3120                 xm_file="m68k/xm-3b1.h ${xm_file}"
3121                 xm_defines=USG
3122                 if [ x$gas = xyes ]
3123                 then
3124                         tm_file=m68k/3b1g.h
3125                 else
3126                         tm_file=m68k/3b1.h
3127                 fi
3128                 use_collect2=yes
3129                 extra_headers=math-68881.h
3130                 ;;
3131         m68k-apple-aux*)                # Apple Macintosh running A/UX
3132                 xm_defines="USG AUX"
3133                 tmake_file=m68k/t-aux
3134                 install_headers_dir=install-headers-cpio
3135                 extra_headers=math-68881.h
3136                 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3137                 tm_file=
3138                 if [ "$gnu_ld" = yes ]
3139                 then
3140                         tm_file="${tm_file} m68k/auxgld.h"
3141                 else
3142                         tm_file="${tm_file} m68k/auxld.h"
3143                 fi
3144                 if [ "$gas" = yes ]
3145                 then
3146                         tm_file="${tm_file} m68k/auxgas.h"
3147                 else
3148                         tm_file="${tm_file} m68k/auxas.h"
3149                 fi
3150                 tm_file="${tm_file} m68k/a-ux.h"
3151                 ;;
3152         m68k-apollo-*)
3153                 tm_file=m68k/apollo68.h
3154                 xmake_file=m68k/x-apollo68
3155                 use_collect2=yes
3156                 extra_headers=math-68881.h
3157                 ;;
3158         m68k-altos-sysv*)                  # Altos 3068
3159                 if [ x$gas = xyes ]
3160                 then
3161                         tm_file=m68k/altos3068.h
3162                         xm_defines=USG
3163                 else
3164                         echo "The Altos is supported only with the GNU assembler" 1>&2
3165                         exit 1
3166                 fi
3167                 extra_headers=math-68881.h
3168                 ;;
3169         m68k-bull-sysv*)                # Bull DPX/2
3170                 if [ x$gas = xyes ]
3171                 then
3172                         if [ x$stabs = xyes ]
3173                         then
3174                                 tm_file=m68k/dpx2cdbx.h
3175                         else
3176                                 tm_file=m68k/dpx2g.h
3177                         fi
3178                 else
3179                         tm_file=m68k/dpx2.h
3180                 fi
3181                 xm_file="xm-alloca.h ${xm_file}"
3182                 xm_defines=USG
3183                 xmake_file=m68k/x-dpx2
3184                 use_collect2=yes
3185                 extra_headers=math-68881.h
3186                 ;;
3187         m68k-atari-sysv4*)              # Atari variant of V.4.
3188                 tm_file=m68k/atari.h
3189                 xm_file="xm-alloca.h ${xm_file}"
3190                 xm_defines="USG FULL_PROTOTYPES"
3191                 tmake_file=t-svr4
3192                 extra_parts="crtbegin.o crtend.o"
3193                 extra_headers=math-68881.h
3194                 ;;
3195         m68k-motorola-sysv*)
3196                 tm_file=m68k/mot3300.h
3197                 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3198                 xm_defines=NO_SYS_SIGLIST
3199                 if [ x$gas = xyes ]
3200                 then
3201                         xmake_file=m68k/x-mot3300-gas
3202                         if [ x$gnu_ld = xyes ]
3203                         then
3204                                 tmake_file=m68k/t-mot3300-gald
3205                         else
3206                                 tmake_file=m68k/t-mot3300-gas
3207                                 use_collect2=yes
3208                         fi
3209                 else
3210                         xmake_file=m68k/x-mot3300
3211                         if [ x$gnu_ld = xyes ]
3212                         then
3213                                 tmake_file=m68k/t-mot3300-gld
3214                         else
3215                                 tmake_file=m68k/t-mot3300
3216                                 use_collect2=yes
3217                         fi
3218                 fi
3219                 gdb_needs_out_file_path=yes
3220                 extra_parts="crt0.o mcrt0.o"
3221                 extra_headers=math-68881.h
3222                 ;;
3223         m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
3224                 tm_file=m68k/tower-as.h
3225                 xm_defines="USG SVR3"
3226                 xmake_file=m68k/x-tower
3227                 extra_parts="crtbegin.o crtend.o"
3228                 extra_headers=math-68881.h
3229                 ;;
3230         m68k-plexus-sysv*)
3231                 tm_file=m68k/plexus.h
3232                 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3233                 xm_defines=USG
3234                 use_collect2=yes
3235                 extra_headers=math-68881.h
3236                 ;;
3237         m68k-tti-*)
3238                 tm_file=m68k/pbb.h
3239                 xm_file="xm-alloca.h ${xm_file}"
3240                 xm_defines=USG
3241                 extra_headers=math-68881.h
3242                 ;;
3243         m68k-crds-unos*)
3244                 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3245                 xm_defines="USG unos"
3246                 xmake_file=m68k/x-crds
3247                 tm_file=m68k/crds.h
3248                 use_collect2=yes
3249                 extra_headers=math-68881.h
3250                 ;;
3251         m68k-cbm-sysv4*)                # Commodore variant of V.4.
3252                 tm_file=m68k/amix.h
3253                 xm_file="xm-alloca.h ${xm_file}"
3254                 xm_defines="USG FULL_PROTOTYPES"
3255                 xmake_file=m68k/x-amix
3256                 tmake_file=t-svr4
3257                 extra_parts="crtbegin.o crtend.o"
3258                 extra_headers=math-68881.h
3259                 ;;
3260         m68k-ccur-rtu)
3261                 tm_file=m68k/ccur-GAS.h
3262                 xmake_file=m68k/x-ccur
3263                 extra_headers=math-68881.h
3264                 use_collect2=yes
3265                 ;;
3266         m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
3267                 tm_file=m68k/hp3bsd44.h
3268                 xmake_file=m68k/x-hp3bsd44
3269                 use_collect2=yes
3270                 extra_headers=math-68881.h
3271                 ;;
3272         m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
3273                 tm_file=m68k/hp3bsd.h
3274                 use_collect2=yes
3275                 extra_headers=math-68881.h
3276                 ;;
3277         m68k-isi-bsd*)
3278                 if [ x$with_fp = xno ]
3279                 then
3280                         tm_file=m68k/isi-nfp.h
3281                 else
3282                         tm_file=m68k/isi.h
3283                 fi
3284                 use_collect2=yes
3285                 extra_headers=math-68881.h
3286                 ;;
3287         m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
3288                 xm_file="xm_alloca.h ${xm_file}"
3289                 xm_defines="USG NO_SYS_SIGLIST"
3290                 if [ x$gas = xyes ]
3291                 then
3292                         xmake_file=m68k/x-hp320g
3293                         tm_file=m68k/hp320g.h
3294                 else
3295                         xmake_file=m68k/x-hp320
3296                         tm_file=m68k/hpux7.h
3297                 fi
3298                 install_headers_dir=install-headers-cpio
3299                 use_collect2=yes
3300                 extra_headers=math-68881.h
3301                 ;;
3302         m68k-hp-hpux*)  # HP 9000 series 300
3303                 xm_file="xm_alloca.h ${xm_file}"
3304                 xm_defines="USG NO_SYS_SIGLIST"
3305                 if [ x$gas = xyes ]
3306                 then
3307                         xmake_file=m68k/x-hp320g
3308                         tm_file=m68k/hp320g.h
3309                 else
3310                         xmake_file=m68k/x-hp320
3311                         tm_file=m68k/hp320.h
3312                 fi
3313                 install_headers_dir=install-headers-cpio
3314                 use_collect2=yes
3315                 extra_headers=math-68881.h
3316                 ;;
3317         m68k-sun-mach*)
3318                 tm_file=m68k/sun3mach.h
3319                 use_collect2=yes
3320                 extra_headers=math-68881.h
3321                 ;;
3322         m68k-sony-newsos3*)
3323                 if [ x$gas = xyes ]
3324                 then
3325                         tm_file=m68k/news3gas.h
3326                 else
3327                         tm_file=m68k/news3.h
3328                 fi
3329                 use_collect2=yes
3330                 extra_headers=math-68881.h
3331                 ;;
3332         m68k-sony-bsd* | m68k-sony-newsos*)
3333                 if [ x$gas = xyes ]
3334                 then
3335                         tm_file=m68k/newsgas.h
3336                 else
3337                         tm_file=m68k/news.h
3338                 fi
3339                 use_collect2=yes
3340                 extra_headers=math-68881.h
3341                 ;;
3342         m68k-next-nextstep2*)
3343                 tm_file=m68k/next21.h
3344                 xm_file="m68k/xm-next.h ${xm_file}"
3345                 tmake_file=m68k/t-next
3346                 xmake_file=m68k/x-next
3347                 extra_objs=nextstep.o
3348                 extra_headers=math-68881.h
3349                 use_collect2=yes
3350                 ;;
3351         m68k-next-nextstep3*)
3352                 tm_file=m68k/next.h
3353                 xm_file="m68k/xm-next.h ${xm_file}"
3354                 tmake_file=m68k/t-next
3355                 xmake_file=m68k/x-next
3356                 extra_objs=nextstep.o
3357                 extra_headers=math-68881.h
3358                 if [ x$enable_threads = xyes ]; then
3359                         thread_file='mach'
3360                 fi
3361                 ;;
3362         m68k-sun-sunos3*)
3363                 if [ x$with_fp = xno ]
3364                 then
3365                         tm_file=m68k/sun3n3.h
3366                 else
3367                         tm_file=m68k/sun3o3.h
3368                 fi
3369                 use_collect2=yes
3370                 extra_headers=math-68881.h
3371                 ;;
3372         m68k-sun-sunos*)                        # For SunOS 4 (the default).
3373                 if [ x$with_fp = xno ]
3374                 then
3375                         tm_file=m68k/sun3n.h
3376                 else
3377                         tm_file=m68k/sun3.h
3378                 fi
3379                 use_collect2=yes
3380                 extra_headers=math-68881.h
3381                 ;;
3382         m68k-wrs-vxworks*)
3383                 tm_file=m68k/vxm68k.h
3384                 tmake_file=m68k/t-vxworks68
3385                 extra_headers=math-68881.h
3386                 thread_file='vxworks'
3387                 ;;
3388         m68k-*-aout*)
3389                 tmake_file=m68k/t-m68kbare
3390                 tm_file="m68k/m68k-aout.h libgloss.h"
3391                 extra_headers=math-68881.h
3392                 ;;
3393         m68k-*-coff*)
3394                 tmake_file=m68k/t-m68kbare
3395                 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
3396                 extra_headers=math-68881.h
3397                 ;;
3398         m68k-*-lynxos*)
3399                 if [ x$gas = xyes ]
3400                 then
3401                         tm_file=m68k/lynx.h
3402                 else
3403                         tm_file=m68k/lynx-ng.h
3404                 fi
3405                 xm_file=m68k/xm-lynx.h
3406                 xmake_file=x-lynx
3407                 tmake_file=m68k/t-lynx
3408                 extra_headers=math-68881.h
3409                 ;;
3410         m68k-*-netbsd*)
3411                 tm_file=m68k/netbsd.h
3412                 # On NetBSD, the headers are already okay, except for math.h.
3413                 fixincludes=fixinc.wrap
3414                 tmake_file=t-netbsd
3415                 ;;
3416         m68k-*-sysv3*)                  # Motorola m68k's running system V.3
3417                 xm_file="xm-alloca.h ${xm_file}"
3418                 xm_defines=USG
3419                 xmake_file=m68k/x-m68kv
3420                 extra_parts="crtbegin.o crtend.o"
3421                 extra_headers=math-68881.h
3422                 ;;
3423         m68k-*-sysv4*)                  # Motorola m68k's running system V.4
3424                 tm_file=m68k/m68kv4.h
3425                 xm_file="xm-alloca.h ${xm_file}"
3426                 xm_defines=USG
3427                 tmake_file=t-svr4
3428                 extra_parts="crtbegin.o crtend.o"
3429                 extra_headers=math-68881.h
3430                 ;;
3431         m68k-*-linux-gnuaout*)          # Motorola m68k's running GNU/Linux
3432                                         # with a.out format
3433                 xmake_file=x-linux
3434                 tm_file=m68k/linux-aout.h
3435                 tmake_file="t-linux-aout m68k/t-linux-aout"
3436                 fixincludes=Makefile.in # The headers are ok already.
3437                 extra_headers=math-68881.h
3438                 gnu_ld=yes
3439                 ;;
3440         m68k-*-linux-gnulibc1)          # Motorola m68k's running GNU/Linux
3441                                         # with ELF format using the
3442                                         # GNU/Linux C library 5
3443                 xmake_file=x-linux
3444                 tm_file=m68k/linux.h
3445                 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
3446                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3447                 fixincludes=Makefile.in # The headers are ok already.
3448                 extra_headers=math-68881.h
3449                 gnu_ld=yes
3450                 ;;
3451         m68k-*-linux-gnu*)              # Motorola m68k's running GNU/Linux
3452                                         # with ELF format using glibc 2
3453                                         # aka the GNU/Linux C library 6.
3454                 xmake_file=x-linux
3455                 tm_file=m68k/linux.h
3456                 tmake_file="t-linux m68k/t-linux"
3457                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3458                 fixincludes=Makefile.in # The headers are ok already.
3459                 extra_headers=math-68881.h
3460                 gnu_ld=yes
3461                 if [ x$enable_threads = xyes ]; then
3462                         thread_file='posix'
3463                 fi
3464                 ;;
3465         m68k-*-psos*)
3466                 tmake_file=m68k/t-m68kbare
3467                 tm_file=m68k/m68k-psos.h
3468                 extra_headers=math-68881.h
3469                 ;;
3470         m68k-*-rtems*)
3471                 tmake_file="m68k/t-m68kbare t-rtems"
3472                 tm_file=m68k/rtems.h
3473                 extra_headers=math-68881.h
3474                 ;;
3475
3476         m88k-dg-dgux*)
3477                 case $machine in
3478                   m88k-dg-dguxbcs*)
3479                     tm_file=m88k/dguxbcs.h
3480                     tmake_file=m88k/t-dguxbcs
3481                     ;;
3482                   *)
3483                     tm_file=m88k/dgux.h
3484                     tmake_file=m88k/t-dgux
3485                     ;;
3486                 esac
3487                 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3488                 xmake_file=m88k/x-dgux
3489                 if [ x$gas = xyes ]
3490                 then
3491                         tmake_file=m88k/t-dgux-gas
3492                 fi
3493                 fixincludes=fixinc.dgux
3494                 ;;
3495         m88k-dolphin-sysv3*)
3496                 tm_file=m88k/dolph.h
3497                 extra_parts="crtbegin.o crtend.o"
3498                 xm_file="m88k/xm-sysv3.h ${xm_file}"
3499                 xmake_file=m88k/x-dolph
3500                 if [ x$gas = xyes ]
3501                 then
3502                         tmake_file=m88k/t-m88k-gas
3503                 fi
3504                 ;;
3505         m88k-tektronix-sysv3)
3506                 tm_file=m88k/tekXD88.h
3507                 extra_parts="crtbegin.o crtend.o"
3508                 xm_file="m88k/xm-sysv3.h ${xm_file}"
3509                 xmake_file=m88k/x-tekXD88
3510                 if [ x$gas = xyes ]
3511                 then
3512                         tmake_file=m88k/t-m88k-gas
3513                 fi
3514                 ;;
3515         m88k-*-aout*)
3516                 tm_file=m88k/m88k-aout.h
3517                 ;;
3518         m88k-*-coff*)
3519                 tm_file=m88k/m88k-coff.h
3520                 tmake_file=m88k/t-bug
3521                 ;;
3522         m88k-*-luna*)
3523                 tm_file=m88k/luna.h
3524                 extra_parts="crtbegin.o crtend.o"
3525                 if [ x$gas = xyes ]
3526                 then
3527                         tmake_file=m88k/t-luna-gas
3528                 else
3529                         tmake_file=m88k/t-luna
3530                 fi
3531                 ;;
3532         m88k-*-sysv3*)
3533                 tm_file=m88k/sysv3.h
3534                 extra_parts="crtbegin.o crtend.o"
3535                 xm_file="m88k/xm-sysv3.h ${xm_file}"
3536                 xmake_file=m88k/x-sysv3
3537                 if [ x$gas = xyes ]
3538                 then
3539                         tmake_file=m88k/t-m88k-gas
3540                 fi
3541                 ;;
3542         m88k-*-sysv4*)
3543                 tm_file=m88k/sysv4.h
3544                 extra_parts="crtbegin.o crtend.o"
3545                 xmake_file=m88k/x-sysv4
3546                 tmake_file=m88k/t-sysv4
3547                 ;;
3548         mips-sgi-irix6*)                # SGI System V.4., IRIX 6
3549                 tm_file=mips/iris6.h
3550                 xm_file=mips/xm-iris6.h
3551                 fixincludes=fixinc.irix
3552                 xmake_file=mips/x-iris6
3553                 tmake_file=mips/t-iris6
3554                 if [ x$enable_threads = xyes ]; then
3555                         thread_file='irix'
3556                 fi
3557                 ;;
3558         mips-wrs-vxworks)
3559                 tm_file="mips/elf.h libgloss.h"
3560                 tmake_file=mips/t-ecoff
3561                 gas=yes
3562                 gnu_ld=yes
3563                 extra_parts="crtbegin.o crtend.o"
3564 #               thread_file='vxworks'
3565                 ;;
3566         mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
3567                 tm_file="mips/iris6.h mips/cross64.h"
3568                 xm_defines="USG HAVE_INTTYPES_H"
3569                 fixincludes=Makefile.in
3570                 xmake_file=mips/x-iris
3571                 tmake_file=mips/t-cross64
3572                 # See comment in mips/iris[56].h files.
3573                 use_collect2=yes
3574                 if [ x$enable_threads = xyes ]; then
3575                         thread_file='irix'
3576                 fi
3577                 ;;
3578         mips-sni-sysv4)
3579                 if [ x$gas = xyes ]
3580                 then
3581                         if [ x$stabs = xyes ]
3582                         then
3583                                 tm_file=mips/iris5gdb.h
3584                         else
3585                                 tm_file="mips/sni-svr4.h mips/sni-gas.h"
3586                         fi
3587                 else
3588                         tm_file=mips/sni-svr4.h
3589                 fi
3590                 xm_defines=USG
3591                 xmake_file=mips/x-sni-svr4
3592                 tmake_file=mips/t-mips-gas
3593                 if [ x$gnu_ld != xyes ]
3594                 then
3595                         use_collect2=yes
3596                 fi
3597                 ;;
3598         mips-sgi-irix5*)                # SGI System V.4., IRIX 5
3599                 if [ x$gas = xyes ]
3600                 then
3601                         tm_file="mips/iris5.h mips/iris5gas.h"
3602                         if [ x$stabs = xyes ]
3603                         then
3604                                 tm_file="${tm_file} dbx.h"
3605                         fi
3606                 else
3607                         tm_file=mips/iris5.h
3608                 fi
3609                 xm_defines="USG HAVE_INTTYPES_H"
3610                 fixincludes=fixinc.irix
3611                 xmake_file=mips/x-iris
3612                 # mips-tfile doesn't work yet
3613                 tmake_file=mips/t-mips-gas
3614                 # See comment in mips/iris5.h file.
3615                 use_collect2=yes
3616                 if [ x$enable_threads = xyes ]; then
3617                         thread_file='irix'
3618                 fi
3619                 ;;
3620         mips-sgi-irix4loser*)           # Mostly like a MIPS.
3621                 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
3622                 if [ x$stabs = xyes ]; then
3623                         tm_file="${tm_file} dbx.h"
3624                 fi
3625                 xm_defines=USG
3626                 xmake_file=mips/x-iris
3627                 if [ x$gas = xyes ]
3628                 then
3629                         tmake_file=mips/t-mips-gas
3630                 else
3631                         extra_passes="mips-tfile mips-tdump"
3632                 fi
3633                 if [ x$gnu_ld != xyes ]
3634                 then
3635                         use_collect2=yes
3636                 fi
3637                 if [ x$enable_threads = xyes ]; then
3638                         thread_file='irix'
3639                 fi
3640                 ;;
3641         mips-sgi-irix4*)                # Mostly like a MIPS.
3642                 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
3643                 if [ x$stabs = xyes ]; then
3644                         tm_file="${tm_file} dbx.h"
3645                 fi
3646                 xm_defines=USG
3647                 xmake_file=mips/x-iris
3648                 if [ x$gas = xyes ]
3649                 then
3650                         tmake_file=mips/t-mips-gas
3651                 else
3652                         extra_passes="mips-tfile mips-tdump"
3653                 fi
3654                 if [ x$gnu_ld != xyes ]
3655                 then
3656                         use_collect2=yes
3657                 fi
3658                 if [ x$enable_threads = xyes ]; then
3659                         thread_file='irix'
3660                 fi
3661                 ;;
3662         mips-sgi-*)                     # Mostly like a MIPS.
3663                 tm_file="mips/iris3.h ${tm_file}"
3664                 if [ x$stabs = xyes ]; then
3665                         tm_file="${tm_file} dbx.h"
3666                 fi
3667                 xm_defines=USG
3668                 xmake_file=mips/x-iris3
3669                 if [ x$gas = xyes ]
3670                 then
3671                         tmake_file=mips/t-mips-gas
3672                 else
3673                         extra_passes="mips-tfile mips-tdump"
3674                 fi
3675                 if [ x$gnu_ld != xyes ]
3676                 then
3677                         use_collect2=yes
3678                 fi
3679                 ;;
3680         mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
3681                 tm_file="mips/osfrose.h ${tm_file}"
3682                 xmake_file=mips/x-osfrose
3683                 tmake_file=mips/t-osfrose
3684                 extra_objs=halfpic.o
3685                 use_collect2=yes
3686                 ;;
3687         mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
3688                 tm_file=mips/dec-osf1.h
3689                 if [ x$stabs = xyes ]; then
3690                         tm_file="${tm_file} dbx.h"
3691                 fi
3692                 xmake_file=mips/x-dec-osf1
3693                 if [ x$gas = xyes ]
3694                 then
3695                         tmake_file=mips/t-mips-gas
3696                 else
3697                         tmake_file=mips/t-ultrix
3698                         extra_passes="mips-tfile mips-tdump"
3699                 fi
3700                 if [ x$gnu_ld != xyes ]
3701                 then
3702                         use_collect2=yes
3703                 fi
3704                 ;;
3705         mips-dec-bsd*)                  # Decstation running 4.4 BSD
3706               tm_file=mips/dec-bsd.h
3707               fixincludes=
3708               if [ x$gas = xyes ]
3709               then
3710                         tmake_file=mips/t-mips-gas
3711               else
3712                         tmake_file=mips/t-ultrix
3713                         extra_passes="mips-tfile mips-tdump"
3714               fi
3715               if [ x$gnu_ld != xyes ]
3716               then
3717                         use_collect2=yes
3718               fi
3719               ;;
3720         mips-dec-netbsd*)                  # Decstation running NetBSD
3721                 tm_file=mips/netbsd.h
3722                 # On NetBSD, the headers are already okay, except for math.h.
3723                 fixincludes=fixinc.wrap
3724                 tmake_file=t-netbsd
3725                 ;;
3726         mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
3727                 tm_file="mips/news4.h ${tm_file}"
3728                 if [ x$stabs = xyes ]; then
3729                         tm_file="${tm_file} dbx.h"
3730                 fi
3731                 if [ x$gas = xyes ]
3732                 then
3733                         tmake_file=mips/t-mips-gas
3734                 else
3735                         extra_passes="mips-tfile mips-tdump"
3736                 fi
3737                 if [ x$gnu_ld != xyes ]
3738                 then
3739                         use_collect2=yes
3740                 fi
3741                 xmake_file=mips/x-sony
3742                 ;;
3743         mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
3744                                         # That is based on svr4.
3745                 # t-svr4 is not right because this system doesn't use ELF.
3746                 tm_file="mips/news5.h ${tm_file}"
3747                 if [ x$stabs = xyes ]; then
3748                         tm_file="${tm_file} dbx.h"
3749                 fi
3750                 xm_file="xm-siglist.h ${xm_file}"
3751                 xm_defines=USG
3752                 if [ x$gas = xyes ]
3753                 then
3754                         tmake_file=mips/t-mips-gas
3755                 else
3756                         extra_passes="mips-tfile mips-tdump"
3757                 fi
3758                 if [ x$gnu_ld != xyes ]
3759                 then
3760                         use_collect2=yes
3761                 fi
3762                 ;;
3763         mips-tandem-sysv4*)             # Tandem S2 running NonStop UX
3764                 tm_file="mips/svr4-5.h mips/svr4-t.h"
3765                 if [ x$stabs = xyes ]; then
3766                         tm_file="${tm_file} dbx.h"
3767                 fi
3768                 xm_file="xm-siglist.h ${xm_file}"
3769                 xm_defines=USG
3770                 xmake_file=mips/x-sysv
3771                 if [ x$gas = xyes ]
3772                 then
3773                         tmake_file=mips/t-mips-gas
3774                         extra_parts="crtbegin.o crtend.o"
3775                 else
3776                         tmake_file=mips/t-mips
3777                         extra_passes="mips-tfile mips-tdump"
3778                 fi
3779                 if [ x$gnu_ld != xyes ]
3780                 then
3781                         use_collect2=yes
3782                 fi
3783                 ;;
3784         mips-*-ultrix* | mips-dec-mach3)        # Decstation.
3785                 tm_file="mips/ultrix.h ${tm_file}"
3786                 if [ x$stabs = xyes ]; then
3787                         tm_file="${tm_file} dbx.h"
3788                 fi
3789                 xmake_file=mips/x-ultrix
3790                 if [ x$gas = xyes ]
3791                 then
3792                         tmake_file=mips/t-mips-gas
3793                 else
3794                         tmake_file=mips/t-ultrix
3795                         extra_passes="mips-tfile mips-tdump"
3796                 fi
3797                 if [ x$gnu_ld != xyes ]
3798                 then
3799                         use_collect2=yes
3800                 fi
3801                 ;;
3802         mips-*-riscos[56789]bsd*)
3803                 tm_file=mips/bsd-5.h    # MIPS BSD 4.3, RISC-OS 5.0
3804                 if [ x$stabs = xyes ]; then
3805                         tm_file="${tm_file} dbx.h"
3806                 fi
3807                 if [ x$gas = xyes ]
3808                 then
3809                         tmake_file=mips/t-bsd-gas
3810                 else
3811                         tmake_file=mips/t-bsd
3812                         extra_passes="mips-tfile mips-tdump"
3813                 fi
3814                 if [ x$gnu_ld != xyes ]
3815                 then
3816                         use_collect2=yes
3817                 fi
3818                 ;;
3819         mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
3820                 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
3821                 if [ x$stabs = xyes ]; then
3822                         tm_file="${tm_file} dbx.h"
3823                 fi
3824                 if [ x$gas = xyes ]
3825                 then
3826                         tmake_file=mips/t-bsd-gas
3827                 else
3828                         tmake_file=mips/t-bsd
3829                         extra_passes="mips-tfile mips-tdump"
3830                 fi
3831                 if [ x$gnu_ld != xyes ]
3832                 then
3833                         use_collect2=yes
3834                 fi
3835                 ;;
3836         mips-*-riscos[56789]sysv4*)
3837                 tm_file=mips/svr4-5.h   # MIPS System V.4., RISC-OS 5.0
3838                 if [ x$stabs = xyes ]; then
3839                         tm_file="${tm_file} dbx.h"
3840                 fi
3841                 xm_file="xm-siglist.h ${xm_file}"
3842                 xmake_file=mips/x-sysv
3843                 if [ x$gas = xyes ]
3844                 then
3845                         tmake_file=mips/t-svr4-gas
3846                 else
3847                         tmake_file=mips/t-svr4
3848                         extra_passes="mips-tfile mips-tdump"
3849                 fi
3850                 if [ x$gnu_ld != xyes ]
3851                 then
3852                         use_collect2=yes
3853                 fi
3854                 ;;
3855         mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
3856                 tm_file="mips/svr4-4.h ${tm_file}"
3857                 if [ x$stabs = xyes ]; then
3858                         tm_file="${tm_file} dbx.h"
3859                 fi
3860                 xm_defines=USG
3861                 xmake_file=mips/x-sysv
3862                 if [ x$gas = xyes ]
3863                 then
3864                         tmake_file=mips/t-svr4-gas
3865                 else
3866                         tmake_file=mips/t-svr4
3867                         extra_passes="mips-tfile mips-tdump"
3868                 fi
3869                 if [ x$gnu_ld != xyes ]
3870                 then
3871                         use_collect2=yes
3872                 fi
3873                 ;;
3874         mips-*-riscos[56789]sysv*)
3875                 tm_file=mips/svr3-5.h   # MIPS System V.3, RISC-OS 5.0
3876                 if [ x$stabs = xyes ]; then
3877                         tm_file="${tm_file} dbx.h"
3878                 fi
3879                 xm_defines=USG
3880                 xmake_file=mips/x-sysv
3881                 if [ x$gas = xyes ]
3882                 then
3883                         tmake_file=mips/t-svr3-gas
3884                 else
3885                         tmake_file=mips/t-svr3
3886                         extra_passes="mips-tfile mips-tdump"
3887                 fi
3888                 if [ x$gnu_ld != xyes ]
3889                 then
3890                         use_collect2=yes
3891                 fi
3892                 ;;
3893         mips-*-sysv* | mips-*-riscos*sysv*)
3894                 tm_file="mips/svr3-4.h ${tm_file}"
3895                 if [ x$stabs = xyes ]; then
3896                         tm_file="${tm_file} dbx.h"
3897                 fi
3898                 xm_defines=USG
3899                 xmake_file=mips/x-sysv
3900                 if [ x$gas = xyes ]
3901                 then
3902                         tmake_file=mips/t-svr3-gas
3903                 else
3904                         tmake_file=mips/t-svr3
3905                         extra_passes="mips-tfile mips-tdump"
3906                 fi
3907                 if [ x$gnu_ld != xyes ]
3908                 then
3909                         use_collect2=yes
3910                 fi
3911                 ;;
3912         mips-*-riscos[56789]*)          # Default MIPS RISC-OS 5.0.
3913                 tm_file=mips/mips-5.h
3914                 if [ x$stabs = xyes ]; then
3915                         tm_file="${tm_file} dbx.h"
3916                 fi
3917                 if [ x$gas = xyes ]
3918                 then
3919                         tmake_file=mips/t-mips-gas
3920                 else
3921                         extra_passes="mips-tfile mips-tdump"
3922                 fi
3923                 if [ x$gnu_ld != xyes ]
3924                 then
3925                         use_collect2=yes
3926                 fi
3927                 ;;
3928         mips-*-gnu*)
3929                 ;;
3930         mipsel-*-ecoff*)
3931                 tm_file=mips/ecoffl.h
3932                 if [ x$stabs = xyes ]; then
3933                         tm_file="${tm_file} dbx.h"
3934                 fi
3935                 tmake_file=mips/t-ecoff
3936                 ;;
3937         mips-*-ecoff*)
3938                 tm_file="gofast.h mips/ecoff.h"
3939                 if [ x$stabs = xyes ]; then
3940                         tm_file="${tm_file} dbx.h"
3941                 fi
3942                 tmake_file=mips/t-ecoff
3943                 ;;
3944         mipsel-*-elf*)
3945                 tm_file="mips/elfl.h libgloss.h"
3946                 tmake_file=mips/t-ecoff
3947                 ;;
3948         mips-*-elf*)
3949                 tm_file="mips/elf.h libgloss.h"
3950                 tmake_file=mips/t-ecoff
3951                 ;;
3952         mips64el-*-elf*)
3953                 tm_file="mips/elfl64.h libgloss.h"
3954                 tmake_file=mips/t-ecoff
3955                 ;;
3956         mips64orionel-*-elf*)
3957                 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
3958                 tmake_file=mips/t-ecoff
3959                 ;;
3960         mips64-*-elf*)
3961                 tm_file="mips/elf64.h libgloss.h"
3962                 tmake_file=mips/t-ecoff
3963                 ;;
3964         mips64orion-*-elf*)
3965                 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
3966                 tmake_file=mips/t-ecoff
3967                 ;;
3968         mips64orion-*-rtems*)
3969                 tm_file="mips/elforion.h mips/elfl64.h mips/rtems64.h"
3970                 tmake_file="mips/t-ecoff t-rtems"
3971                 ;;
3972         mipstx39el-*-elf*)
3973                 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
3974                 tmake_file=mips/t-r3900
3975                 ;;
3976         mipstx39-*-elf*)
3977                 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
3978                 tmake_file=mips/t-r3900
3979                 ;;
3980         mips-*-*)                               # Default MIPS RISC-OS 4.0.
3981                 if [ x$stabs = xyes ]; then
3982                         tm_file="${tm_file} dbx.h"
3983                 fi
3984                 if [ x$gas = xyes ]
3985                 then
3986                         tmake_file=mips/t-mips-gas
3987                 else
3988                         extra_passes="mips-tfile mips-tdump"
3989                 fi
3990                 if [ x$gnu_ld != xyes ]
3991                 then
3992                         use_collect2=yes
3993                 fi
3994                 ;;
3995         mn10200-*-*)
3996                 cpu_type=mn10200
3997                 tm_file="mn10200/mn10200.h"
3998                 if [ x$stabs = xyes ]
3999                 then
4000                         tm_file="${tm_file} dbx.h"
4001                 fi
4002                 use_collect2=no
4003                 ;;
4004         mn10300-*-*)
4005                 cpu_type=mn10300
4006                 tm_file="mn10300/mn10300.h"
4007                 if [ x$stabs = xyes ]
4008                 then
4009                         tm_file="${tm_file} dbx.h"
4010                 fi
4011                 use_collect2=no
4012                 ;;
4013         ns32k-encore-bsd*)
4014                 tm_file=ns32k/encore.h
4015                 use_collect2=yes
4016                 ;;
4017         ns32k-sequent-bsd*)
4018                 tm_file=ns32k/sequent.h
4019                 use_collect2=yes
4020                 ;;
4021         ns32k-tek6100-bsd*)
4022                 tm_file=ns32k/tek6100.h
4023                 use_collect2=yes
4024                 ;;
4025         ns32k-tek6200-bsd*)
4026                 tm_file=ns32k/tek6200.h
4027                 use_collect2=yes
4028                 ;;
4029 # This has not been updated to GCC 2.
4030 #       ns32k-ns-genix*)
4031 #               xm_defines=USG
4032 #               xmake_file=ns32k/x-genix
4033 #               tm_file=ns32k/genix.h
4034 #               use_collect2=yes
4035 #               ;;
4036         ns32k-merlin-*)
4037                 tm_file=ns32k/merlin.h
4038                 use_collect2=yes
4039                 ;;
4040         ns32k-pc532-mach*)
4041                 tm_file=ns32k/pc532-mach.h
4042                 use_collect2=yes
4043                 ;;
4044         ns32k-pc532-minix*)
4045                 tm_file=ns32k/pc532-min.h
4046                 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
4047                 xm_defines=USG
4048                 use_collect2=yes
4049                 ;;
4050         ns32k-pc532-netbsd*)
4051                 tm_file=ns32k/netbsd.h
4052                 # On NetBSD, the headers are already okay, except for math.h.
4053                 fixincludes=fixinc.wrap
4054                 tmake_file=t-netbsd
4055                 ;;
4056         pdp11-*-bsd)
4057                 tm_file="${tm_file} pdp11/2bsd.h"
4058                 ;;
4059         pdp11-*-*)
4060                 ;;
4061         pyramid-*-*)
4062                 cpu_type=pyr
4063                 xmake_file=pyr/x-pyr
4064                 use_collect2=yes
4065                 ;;
4066         romp-*-aos*)
4067                 use_collect2=yes
4068                 ;;
4069         romp-*-mach*)
4070                 xmake_file=romp/x-mach
4071                 use_collect2=yes
4072                 ;;
4073         powerpc-*-beos*)
4074                 cpu_type=rs6000
4075                 tm_file=rs6000/beos.h
4076                 xm_file=rs6000/xm-beos.h
4077                 tmake_file=rs6000/t-beos
4078                 xmake_file=rs6000/x-beos
4079                 ;;
4080         powerpc-*-sysv* | powerpc-*-elf*)
4081                 tm_file=rs6000/sysv4.h
4082                 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4083                 xm_defines="USG POSIX"
4084                 extra_headers=ppc-asm.h
4085                 if [ x$gas = xyes ]
4086                 then
4087                         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4088                 else
4089                         tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4090                 fi
4091                 xmake_file=rs6000/x-sysv4
4092                 ;;
4093         powerpc-*-eabiaix*)
4094                 tm_file=rs6000/eabiaix.h
4095                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4096                 fixincludes=Makefile.in
4097                 extra_headers=ppc-asm.h
4098                 ;;
4099         powerpc-*-eabisim*)
4100                 tm_file=rs6000/eabisim.h
4101                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4102                 fixincludes=Makefile.in
4103                 extra_headers=ppc-asm.h
4104                 ;;
4105         powerpc-*-eabi*)
4106                 tm_file=rs6000/eabi.h
4107                 if [ x$gas = xyes ]
4108                 then
4109                         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4110                 else
4111                         tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4112                 fi
4113                 fixincludes=Makefile.in
4114                 extra_headers=ppc-asm.h
4115                 ;;
4116         powerpc-*-rtems*)
4117                 tm_file=rs6000/rtems.h
4118                 if [ x$gas = xyes ]
4119                 then
4120                      tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4121                 else
4122                      tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4123                 fi
4124                 fixincludes=Makefile.in
4125                 extra_headers=ppc-asm.h
4126                 ;;
4127         powerpc-*-linux-gnulibc1)
4128                 tm_file=rs6000/linux.h
4129                 xm_file=rs6000/xm-sysv4.h
4130                 out_file=rs6000/rs6000.c
4131                 if [ x$gas = xyes ]
4132                 then
4133                         tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4134                 else
4135                         tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4136                 fi
4137                 xmake_file=x-linux
4138                 fixincludes=Makefile.in
4139                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4140                 extra_headers=ppc-asm.h
4141                 if [ x$enable_threads = xyes ]; then
4142                         thread_file='posix'
4143                 fi
4144                 ;;
4145         powerpc-*-linux-gnu*)
4146                 tm_file=rs6000/linux.h
4147                 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4148                 xm_defines="USG ${xm_defines}"
4149                 out_file=rs6000/rs6000.c
4150                 if [ x$gas = xyes ]
4151                 then
4152                         tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4153                 else
4154                         tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4155                 fi
4156                 xmake_file=x-linux
4157                 fixincludes=Makefile.in
4158                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4159                 extra_headers=ppc-asm.h
4160                 if [ x$enable_threads = xyes ]; then
4161                         thread_file='posix'
4162                 fi
4163                 ;;
4164         powerpc-wrs-vxworks*)
4165                 cpu_type=rs6000
4166                 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4167                 xm_defines="USG POSIX"
4168                 tm_file=rs6000/vxppc.h
4169                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4170                 extra_headers=ppc-asm.h
4171                 thread_file='vxworks'
4172                 ;;
4173         powerpcle-*-sysv* | powerpcle-*-elf*)
4174                 tm_file=rs6000/sysv4le.h
4175                 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4176                 xm_defines="USG POSIX"
4177                 if [ x$gas = xyes ]
4178                 then
4179                         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4180                 else
4181                         tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4182                 fi
4183                 xmake_file=rs6000/x-sysv4
4184                 extra_headers=ppc-asm.h
4185                 ;;
4186         powerpcle-*-eabisim*)
4187                 tm_file=rs6000/eabilesim.h
4188                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4189                 fixincludes=Makefile.in
4190                 extra_headers=ppc-asm.h
4191                 ;;
4192         powerpcle-*-eabi*)
4193                 tm_file=rs6000/eabile.h
4194                 if [ x$gas = xyes ]
4195                 then
4196                         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4197                 else
4198                         tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4199                 fi
4200                 fixincludes=Makefile.in
4201                 extra_headers=ppc-asm.h
4202                 ;;
4203         powerpcle-*-winnt* )
4204                 tm_file=rs6000/win-nt.h
4205                 tmake_file=rs6000/t-winnt
4206 #               extra_objs=pe.o
4207                 fixincludes=Makefile.in
4208                 if [ x$enable_threads = xyes ]; then
4209                         thread_file='win32'
4210                 fi
4211                 extra_headers=ppc-asm.h
4212                 ;;
4213         powerpcle-*-pe | powerpcle-*-cygwin32)
4214                 tm_file=rs6000/cygwin32.h
4215                 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
4216                 tmake_file=rs6000/t-winnt
4217                 xmake_file=rs6000/x-cygwin32
4218 #               extra_objs=pe.o
4219                 fixincludes=Makefile.in
4220                 if [ x$enable_threads = xyes ]; then
4221                         thread_file='win32'
4222                 fi
4223                 exeext=.exe
4224                 extra_headers=ppc-asm.h
4225                 ;;
4226         powerpcle-*-solaris2*)
4227                 tm_file=rs6000/sol2.h
4228                 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4229                 xm_defines="USG POSIX"
4230                 if [ x$gas = xyes ]
4231                 then
4232                         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4233                 else
4234                         tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4235                 fi
4236                 xmake_file=rs6000/x-sysv4
4237                 case $machine in
4238                 *-*-solaris2.[0-4])
4239                         fixincludes=fixinc.svr4;;
4240                 *)
4241                         fixincludes=fixinc.wrap;;
4242                 esac
4243                 extra_headers=ppc-asm.h
4244                 ;;
4245         rs6000-ibm-aix3.[01]*)
4246                 tm_file=rs6000/aix31.h
4247                 xmake_file=rs6000/x-aix31
4248                 use_collect2=yes
4249                 ;;
4250         rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
4251                 tm_file=rs6000/aix3newas.h
4252                 if [ x$host != x$target ]
4253                 then
4254                         tmake_file=rs6000/t-xnewas
4255                 else
4256                         tmake_file=rs6000/t-newas
4257                 fi
4258                 use_collect2=yes
4259                 ;;
4260         rs6000-ibm-aix[456789].* | powerpc-ibm-aix[456789].*)
4261                 tm_file=rs6000/aix41.h
4262                 if [ x$host != x$target ]
4263                 then
4264                         tmake_file=rs6000/t-xnewas
4265                 else
4266                         tmake_file=rs6000/t-newas
4267                 fi
4268                 xmake_file=rs6000/x-aix31
4269                 use_collect2=yes
4270                 ;;
4271         rs6000-ibm-aix*)
4272                 use_collect2=yes
4273                 ;;
4274         rs6000-bull-bosx)
4275                 use_collect2=yes
4276                 ;;
4277         rs6000-*-mach*)
4278                 tm_file=rs6000/mach.h
4279                 xm_file="${xm_file} rs6000/xm-mach.h"
4280                 xmake_file=rs6000/x-mach
4281                 use_collect2=yes
4282                 ;;
4283         rs6000-*-lynxos*)
4284                 tm_file=rs6000/lynx.h
4285                 xm_file=rs6000/xm-lynx.h
4286                 tmake_file=rs6000/t-rs6000
4287                 xmake_file=rs6000/x-lynx
4288                 use_collect2=yes
4289                 ;;
4290         sh-*-elf*)
4291                 tm_file=sh/elf.h
4292                 float_format=sh
4293                 ;;
4294         sh-*-rtems*)
4295                 tmake_file="sh/t-sh t-rtems"
4296                 tm_file=sh/rtems.h
4297                 float_format=sh
4298                 ;;
4299         sh-*-*)
4300                 float_format=sh
4301                 ;;
4302         sparc-tti-*)
4303                 tm_file=sparc/pbd.h
4304                 xm_file="xm-alloca.h ${xm_file}"
4305                 xm_defines=USG
4306                 ;;
4307         sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
4308                 tm_file=sparc/vxsparc.h
4309                 tmake_file=sparc/t-vxsparc
4310                 use_collect2=yes
4311                 thread_file='vxworks'
4312                 ;;
4313         sparc-*-aout*)
4314                 tmake_file=sparc/t-sparcbare
4315                 tm_file="sparc/aout.h libgloss.h"
4316                 ;;
4317         sparc-*-netbsd*)
4318                 tm_file=sparc/netbsd.h
4319                 # On NetBSD, the headers are already okay, except for math.h.
4320                 fixincludes=fixinc.wrap
4321                 tmake_file=t-netbsd
4322                 ;;
4323         sparc-*-bsd*)
4324                 tm_file=sparc/bsd.h
4325                 ;;
4326         sparc-*-elf*)
4327                 tm_file=sparc/elf.h
4328                 tmake_file=sparc/t-elf
4329                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4330                 #float_format=i128
4331                 float_format=i64
4332                 ;;
4333         sparc-*-linux-gnuaout*)         # Sparc's running GNU/Linux, a.out
4334                 xm_file="${xm_file} sparc/xm-linux.h"
4335                 tm_file=sparc/linux-aout.h
4336                 xmake_file=x-linux
4337                 fixincludes=Makefile.in #On Linux, the headers are ok already.
4338                 gnu_ld=yes
4339                 ;;
4340         sparc-*-linux-gnulibc1*)        # Sparc's running GNU/Linux, libc5
4341                 xm_file="${xm_file} sparc/xm-linux.h"
4342                 xmake_file=x-linux
4343                 tm_file=sparc/linux.h
4344                 tmake_file="t-linux t-linux-gnulibc1"
4345                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4346                 fixincludes=Makefile.in #On Linux, the headers are ok already.
4347                 gnu_ld=yes
4348                 ;;
4349         sparc-*-linux-gnu*)             # Sparc's running GNU/Linux, libc6
4350                 xm_file="${xm_file} sparc/xm-linux.h"
4351                 xmake_file=x-linux
4352                 tm_file=sparc/linux.h
4353                 tmake_file="t-linux"
4354                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4355                 fixincludes=Makefile.in #On Linux, the headers are ok already.
4356                 gnu_ld=yes
4357                 if [ x$enable_threads = xyes ]; then
4358                         thread_file='posix'
4359                 fi
4360                 ;;
4361         sparc-*-lynxos*)
4362                 if [ x$gas = xyes ]
4363                 then
4364                         tm_file=sparc/lynx.h
4365                 else
4366                         tm_file=sparc/lynx-ng.h
4367                 fi
4368                 xm_file=sparc/xm-lynx.h
4369                 tmake_file=sparc/t-sunos41
4370                 xmake_file=x-lynx
4371                 ;;
4372         sparc-*-rtems*)
4373                 tmake_file="sparc/t-sparcbare t-rtems"
4374                 tm_file=sparc/rtems.h
4375                 ;;
4376         sparc-*-solaris2*)
4377                 if [ x$gnu_ld = xyes ]
4378                 then
4379                         tm_file=sparc/sol2.h
4380                 else
4381                         tm_file=sparc/sol2-sld.h
4382                 fi
4383                 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4384                 xm_defines="USG POSIX"
4385                 tmake_file=sparc/t-sol2
4386                 xmake_file=sparc/x-sysv4
4387                 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4388                 case $machine in
4389                 *-*-solaris2.[0-4])
4390                         fixincludes=fixinc.svr4;;
4391                 *)
4392                         fixincludes=fixinc.wrap;;
4393                 esac
4394                 float_format=i128
4395                 if [ x${enable_threads} = x ]; then
4396                     enable_threads=$have_pthread_h
4397                     if [ x${enable_threads} = x ]; then
4398                         enable_threads=$have_thread_h
4399                     fi
4400                 fi
4401                 if [ x${enable_threads} = xyes ]; then
4402                     if [ x${have_pthread_h} = xyes ]; then
4403                         thread_file='posix'
4404                     else
4405                         thread_file='solaris'
4406                     fi
4407                 fi
4408                 ;;
4409         sparc-*-sunos4.0*)
4410                 tm_file=sparc/sunos4.h
4411                 tmake_file=sparc/t-sunos40
4412                 use_collect2=yes
4413                 ;;
4414         sparc-*-sunos4*)
4415                 tm_file=sparc/sunos4.h
4416                 tmake_file=sparc/t-sunos41
4417                 use_collect2=yes
4418                 if [ x$gas = xyes ]; then
4419                         tm_file="${tm_file} sparc/sun4gas.h"
4420                 fi
4421                 ;;
4422         sparc-*-sunos3*)
4423                 tm_file=sparc/sun4o3.h
4424                 use_collect2=yes
4425                 ;;
4426         sparc-*-sysv4*)
4427                 tm_file=sparc/sysv4.h
4428                 xm_file="xm-siglist.h sparc/xm-sysv4.h"
4429                 xm_defines="USG POSIX"
4430                 tmake_file=t-svr4
4431                 xmake_file=sparc/x-sysv4
4432                 extra_parts="crtbegin.o crtend.o"
4433                 ;;
4434         sparc-*-vxsim*)
4435                 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4436                 xm_defines="USG POSIX"
4437                 tm_file=sparc/vxsim.h
4438                 tmake_file=sparc/t-vxsparc
4439                 xmake_file=sparc/x-sysv4
4440                 ;;
4441         sparclet-*-aout*)
4442                 tm_file="sparc/splet.h libgloss.h"
4443                 tmake_file=sparc/t-splet
4444                 ;;
4445         sparclite-*-coff*)
4446                 tm_file="sparc/litecoff.h libgloss.h"
4447                 tmake_file=sparc/t-sparclite
4448                 ;;
4449         sparclite-*-aout*)
4450                 tm_file="sparc/lite.h aoutos.h libgloss.h"
4451                 tmake_file=sparc/t-sparclite
4452                 ;;
4453         sparc64-*-aout*)
4454                 tmake_file=sparc/t-sp64
4455                 tm_file=sparc/sp64-aout.h
4456                 ;;
4457         sparc64-*-elf*)
4458                 tmake_file=sparc/t-sp64
4459                 tm_file=sparc/sp64-elf.h
4460                 extra_parts="crtbegin.o crtend.o"
4461                 ;;
4462         sparc64-*-linux*)               # 64-bit Sparc's running GNU/Linux
4463                 tmake_file=sparc/t-sp64
4464                 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
4465                 tm_file=sparc/linux64.h
4466                 xmake_file=x-linux
4467                 fixincludes=Makefile.in # The headers are ok already.
4468                 gnu_ld=yes
4469                 ;;
4470 # This hasn't been upgraded to GCC 2.
4471 #       tahoe-harris-*)                 # Harris tahoe, using COFF.
4472 #               tm_file=tahoe/harris.h
4473 #               ;;
4474 #       tahoe-*-bsd*)                   # tahoe running BSD
4475 #               ;;
4476         thumb-*-coff* | thumbel-*-coff*)
4477                 tm_file=arm/tcoff.h
4478                 out_file=arm/thumb.c
4479                 xm_file=arm/xm-thumb.h
4480                 md_file=arm/thumb.md
4481                 tmake_file=arm/t-thumb
4482                 ;;
4483 # This hasn't been upgraded to GCC 2.
4484 #       tron-*-*)
4485 #               cpu_type=gmicro
4486 #               use_collect2=yes
4487 #               ;;
4488         v850-*-*)
4489                 cpu_type=v850
4490                 tm_file="v850/v850.h"
4491                 xm_file="v850/xm-v850.h"
4492                 tmake_file=v850/t-v850
4493                 if [ x$stabs = xyes ]
4494                 then
4495                         tm_file="${tm_file} dbx.h"
4496                 fi
4497                 use_collect2=no
4498                 ;;
4499         vax-*-bsd*)                     # vaxen running BSD
4500                 use_collect2=yes
4501                 float_format=vax
4502                 ;;
4503         vax-*-sysv*)                    # vaxen running system V
4504                 tm_file="${tm_file} vax/vaxv.h"
4505                 xm_defines=USG
4506                 float_format=vax
4507                 ;;
4508         vax-*-netbsd*)
4509                 tm_file="${tm_file} netbsd.h vax/netbsd.h"
4510                 # On NetBSD, the headers are already okay, except for math.h.
4511                 fixincludes=fixinc.wrap
4512                 tmake_file=t-netbsd
4513                 float_format=vax
4514                 ;;
4515         vax-*-ultrix*)                  # vaxen running ultrix
4516                 tm_file="${tm_file} vax/ultrix.h"
4517                 use_collect2=yes
4518                 float_format=vax
4519                 ;;
4520         vax-*-vms*)                     # vaxen running VMS
4521                 xm_file=vax/xm-vms.h
4522                 tm_file=vax/vms.h
4523                 float_format=vax
4524                 ;;
4525         vax-*-*)                        # vax default entry
4526                 float_format=vax
4527                 ;;
4528         we32k-att-sysv*)
4529                 xm_file="${xm_file} xm-svr3"
4530                 use_collect2=yes
4531                 ;;
4532         *)
4533                 echo "Configuration $machine not supported" 1>&2
4534                 exit 1
4535                 ;;
4536         esac
4537
4538         case $machine in
4539         *-*-linux-gnu*)
4540                 ;; # Existing GNU/Linux systems do not use the GNU setup.
4541         *-*-gnu*)
4542                 # On the GNU system, the setup is just about the same on
4543                 # each different CPU.  The specific machines that GNU
4544                 # supports are matched above and just set $cpu_type.
4545                 xm_file="xm-gnu.h ${xm_file}"
4546                 tm_file=${cpu_type}/gnu.h
4547                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4548                 # GNU always uses ELF.
4549                 elf=yes
4550                 # GNU tools are the only tools.
4551                 gnu_ld=yes
4552                 gas=yes
4553                 # On GNU, the headers are already okay.
4554                 fixincludes=Makefile.in
4555                 xmake_file=x-linux      # These details are the same as Linux.
4556                 tmake_file=t-gnu        # These are not.
4557                 ;;
4558         *-*-sysv4*)
4559                 fixincludes=fixinc.svr4
4560                 xmake_try_sysv=x-sysv
4561                 install_headers_dir=install-headers-cpio
4562                 ;;
4563         *-*-sysv*)
4564                 install_headers_dir=install-headers-cpio
4565                 ;;
4566         esac
4567
4568         # Distinguish i[34567]86
4569         # Also, do not run mips-tfile on MIPS if using gas.
4570         # Process --with-cpu= for PowerPC/rs6000
4571         target_cpu_default2=
4572         case $machine in
4573         i486-*-*)
4574                 target_cpu_default2=1
4575                 ;;
4576         i586-*-*)
4577                 target_cpu_default2=2
4578                 ;;
4579         i686-*-* | i786-*-*)
4580                 target_cpu_default2=3
4581                 ;;
4582         alpha*-*-*)
4583                 case $machine in
4584                         alphaev6*)
4585                                 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4586                                 ;;
4587                         alphapca56*)
4588                                 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
4589                                 ;;
4590                         alphaev56*)
4591                                 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
4592                                 ;;
4593                         alphaev5*)
4594                                 target_cpu_default2="MASK_CPU_EV5"
4595                                 ;;
4596                 esac
4597                                 
4598                 if [ x$gas = xyes ]
4599                 then
4600                         if [ "$target_cpu_default2" = "" ]
4601                         then
4602                                 target_cpu_default2="MASK_GAS"
4603                         else
4604                                 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
4605                         fi
4606                 fi
4607                 ;;
4608         arm*-*-*)
4609                 case "x$with_cpu" in
4610                         x)
4611                                 # The most generic
4612                                 target_cpu_default2="TARGET_CPU_generic"
4613                                 ;;
4614
4615                         # Distinguish cores, and major variants
4616                         # arm7m doesn't exist, but D & I don't affect code
4617                         xarm23678 | xarm250 | xarm67010 \
4618                         | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4619                         | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4620                         | xstrongarm | xstrongarm110)
4621                                 target_cpu_default2="TARGET_CPU_$with_cpu"
4622                                 ;;
4623
4624                         xyes | xno)
4625                                 echo "--with-cpu must be passed a value" 1>&2
4626                                 exit 1
4627                                 ;;
4628
4629                         *)
4630                                 if [ x$pass2done = xyes ]
4631                                 then
4632                                         echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4633                                         exit 1
4634                                 fi
4635                                 ;;
4636                 esac
4637                 ;;
4638
4639         mips*-*-ecoff* | mips*-*-elf*)
4640                 if [ x$gas = xyes ]
4641                 then
4642                         if [ x$gnu_ld = xyes ]
4643                         then
4644                                 target_cpu_default2=20
4645                         else
4646                                 target_cpu_default2=16
4647                         fi
4648                 fi
4649                 ;;
4650         mips*-*-*)
4651                 if [ x$gas = xyes ]
4652                 then
4653                         target_cpu_default2=16
4654                 fi
4655                 ;;
4656         powerpc*-*-* | rs6000-*-*)
4657                 case "x$with_cpu" in
4658                         x)
4659                                 ;;
4660
4661                         xcommon | xpower | xpower2 | xpowerpc | xrios \
4662                           | xrios1 | xrios2 | xrsc | xrsc1 \
4663                           | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4664                           | x403 | x505 | x801 | x821 | x823 | x860)
4665                                 target_cpu_default2="\"$with_cpu\""
4666                                 ;;
4667
4668                         xyes | xno)
4669                                 echo "--with-cpu must be passed a value" 1>&2
4670                                 exit 1
4671                                 ;;
4672
4673                         *)
4674                                 if [ x$pass2done = xyes ]
4675                                 then
4676                                         echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4677                                         exit 1
4678                                 fi
4679                                 ;;
4680                 esac
4681                 ;;
4682         sparc*-*-*)
4683                 case ".$with_cpu" in
4684                         .)
4685                                 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
4686                                 ;;
4687                         .supersparc | .ultrasparc | .v7 | .v8 | .v9)
4688                                 target_cpu_default2="TARGET_CPU_$with_cpu"
4689                                 ;;
4690                         *)
4691                                 if [ x$pass2done = xyes ]
4692                                 then
4693                                         echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4694                                         exit 1
4695                                 fi
4696                                 ;;
4697                 esac
4698                 ;;
4699         esac
4700
4701         if [ "$target_cpu_default2" != "" ]
4702         then
4703                 if [ "$target_cpu_default" != "" ]
4704                 then
4705                         target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
4706                 else
4707                         target_cpu_default=$target_cpu_default2
4708                 fi
4709         fi
4710
4711         # No need for collect2 if we have the GNU linker.
4712         case x$gnu_ld in
4713         xyes)
4714                 use_collect2=
4715                 ;;
4716         esac
4717
4718 # Save data on machine being used to compile GCC in build_xm_file.
4719 # Save data on host machine in vars host_xm_file and host_xmake_file.
4720         if [ x$pass1done = x ]
4721         then
4722                 if [ x"$xm_file" = x ]
4723                 then build_xm_file=$cpu_type/xm-$cpu_type.h
4724                 else build_xm_file=$xm_file
4725                 fi
4726                 build_xm_defines=$xm_defines
4727                 build_install_headers_dir=$install_headers_dir
4728                 build_exeext=$exeext
4729                 pass1done=yes
4730         else
4731                 if [ x$pass2done = x ]
4732                 then
4733                         if [ x"$xm_file" = x ]
4734                         then host_xm_file=$cpu_type/xm-$cpu_type.h
4735                         else host_xm_file=$xm_file
4736                         fi
4737                         host_xm_defines=$xm_defines
4738                         if [ x"$xmake_file" = x ]
4739                         then xmake_file=$cpu_type/x-$cpu_type
4740                         fi
4741                         host_xmake_file="$xmake_file"
4742                         host_truncate_target=$truncate_target
4743                         host_extra_gcc_objs=$extra_gcc_objs
4744                         host_extra_objs=$extra_host_objs
4745                         host_exeext=$exeext
4746                         pass2done=yes
4747                 fi
4748         fi
4749 done
4750
4751 extra_objs="${host_extra_objs} ${extra_objs}"
4752
4753 # Default the target-machine variables that were not explicitly set.
4754 if [ x"$tm_file" = x ]
4755 then tm_file=$cpu_type/$cpu_type.h; fi
4756
4757 if [ x$extra_headers = x ]
4758 then extra_headers=; fi
4759
4760 if [ x"$xm_file" = x ]
4761 then xm_file=$cpu_type/xm-$cpu_type.h; fi
4762
4763 if [ x$md_file = x ]
4764 then md_file=$cpu_type/$cpu_type.md; fi
4765
4766 if [ x$out_file = x ]
4767 then out_file=$cpu_type/$cpu_type.c; fi
4768
4769 if [ x"$tmake_file" = x ]
4770 then tmake_file=$cpu_type/t-$cpu_type
4771 fi
4772
4773 if [ x$float_format = x ]
4774 then float_format=i64
4775 fi
4776
4777 if [ x$enable_haifa = x ]
4778 then
4779   case $target in
4780     alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-* | m32r*-*)
4781       enable_haifa=yes;;
4782   esac
4783 fi
4784
4785 # Say what files are being used for the output code and MD file.
4786 echo "Using \`$srcdir/config/$out_file' to output insns."
4787 echo "Using \`$srcdir/config/$md_file' as machine description file."
4788
4789 count=a
4790 for f in $tm_file; do
4791         count=${count}x
4792 done
4793 if [ $count = ax ]; then
4794         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4795 else
4796         echo "Using the following target machine macro files:"
4797         for f in $tm_file; do
4798                 echo "  $srcdir/config/$f"
4799         done
4800 fi
4801
4802 count=a
4803 for f in $host_xm_file; do
4804         count=${count}x
4805 done
4806 if [ $count = ax ]; then
4807         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4808 else
4809         echo "Using the following host machine macro files:"
4810         for f in $host_xm_file; do
4811                 echo "  $srcdir/config/$f"
4812         done
4813 fi
4814
4815 if [ "$host_xm_file" != "$build_xm_file" ]; then
4816         count=a
4817         for f in $build_xm_file; do
4818                 count=${count}x
4819         done
4820         if [ $count = ax ]; then
4821                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4822         else
4823                 echo "Using the following build machine macro files:"
4824                 for f in $build_xm_file; do
4825                         echo "  $srcdir/config/$f"
4826                 done
4827         fi
4828 fi
4829
4830 if [ x$thread_file = x ]; then
4831         if [ x$target_thread_file != x ]; then
4832                 thread_file=$target_thread_file
4833         else
4834                 thread_file='single'
4835         fi
4836 fi
4837
4838 # Set up the header files.
4839 # $links is the list of header files to create.
4840 # $vars is the list of shell variables with file names to include.
4841 # auto-host.h is the file containing items generated by autoconf and is
4842 # the first file included by config.h.
4843 null_defines=
4844 host_xm_file="auto-host.h ${host_xm_file}"
4845
4846 # If host=build, it is correct to have hconfig include auto-host.h
4847 # as well.  If host!=build, we are in error and need to do more 
4848 # work to find out the build config parameters.
4849 if [ x$host = x$build ]
4850 then
4851         build_xm_file="auto-host.h ${build_xm_file}"
4852 else
4853         # We create a subdir, then run autoconf in the subdir.
4854         # To prevent recursion we set host and build for the new
4855         # invocation of configure to the build for this invocation
4856         # of configure. 
4857         tempdir=build.$$
4858         rm -rf $tempdir
4859         mkdir $tempdir
4860         cd $tempdir
4861         case ${srcdir} in
4862         /*) realsrcdir=${srcdir};;
4863         *) realsrcdir=../${srcdir};;
4864         esac
4865         CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4866                 --target=$target --host=$build --build=$build
4867
4868         # We just finished tests for the build machine, so rename
4869         # the file auto-build.h in the gcc directory.
4870         mv auto-host.h ../auto-build.h
4871         cd ..
4872         rm -rf $tempdir
4873         build_xm_file="auto-build.h ${build_xm_file}"
4874 fi
4875
4876 vars="host_xm_file tm_file xm_file build_xm_file"
4877 links="config.h tm.h tconfig.h hconfig.h"
4878 defines="host_xm_defines null_defines xm_defines build_xm_defines"
4879
4880 rm -f config.bak
4881 if [ -f config.status ]; then mv -f config.status config.bak; fi
4882
4883 # Make the links.
4884 while [ -n "$vars" ]
4885 do
4886         set $vars; var=$1; shift; vars=$*
4887         set $links; link=$1; shift; links=$*
4888         set $defines; define=$1; shift; defines=$*
4889
4890         rm -f $link
4891
4892         # Define TARGET_CPU_DEFAULT if the system wants one.
4893         # This substitutes for lots of *.h files.
4894         if [ "$target_cpu_default" != "" -a $link = tm.h ]
4895         then
4896                 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4897         fi
4898
4899         for file in `eval echo '$'$var`; do
4900                 echo "#include \"$file\"" >>$link
4901         done
4902
4903         for def in `eval echo '$'$define`; do
4904                 echo "#ifndef $def" >>$link
4905                 echo "#define $def" >>$link
4906                 echo "#endif" >>$link
4907         done
4908 done
4909
4910 # Truncate the target if necessary
4911 if [ x$host_truncate_target != x ]; then
4912         target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4913 fi
4914
4915 # Get the version number from the toplevel
4916 version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
4917
4918 # Get an absolute path to the GCC top-level source directory
4919 holddir=`pwd`
4920 cd $srcdir
4921 topdir=`pwd`
4922 cd $holddir
4923
4924 # Conditionalize the makefile for this host machine.
4925 # Make-host contains the concatenation of all host makefile fragments
4926 # [there can be more than one].  This file is built by configure.frag.
4927 host_overrides=Make-host
4928 dep_host_xmake_file=
4929 for f in .. ${host_xmake_file}
4930 do
4931         if [ -f ${srcdir}/config/$f ]
4932         then
4933                 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4934         fi
4935 done
4936
4937 # Conditionalize the makefile for this target machine.
4938 # Make-target contains the concatenation of all host makefile fragments
4939 # [there can be more than one].  This file is built by configure.frag.
4940 target_overrides=Make-target
4941 dep_tmake_file=
4942 for f in .. ${tmake_file}
4943 do
4944         if [ -f ${srcdir}/config/$f ]
4945         then
4946                 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4947         fi
4948 done
4949
4950 # If the host doesn't support symlinks, modify CC in
4951 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4952 # Otherwise, we can use "CC=$(CC)".
4953 rm -f symtest.tem
4954 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4955 then
4956         cc_set_by_configure="\$(CC)"
4957         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4958 else
4959         rm -f symtest.tem
4960         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4961         then
4962                 symbolic_link="cp -p"
4963         else
4964                 symbolic_link="cp"
4965         fi
4966         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4967         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4968 fi
4969 rm -f symtest.tem
4970
4971 out_object_file=`basename $out_file .c`.o
4972
4973 tm_file_list=
4974 for f in $tm_file; do
4975         tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
4976 done
4977
4978 host_xm_file_list=
4979 for f in $host_xm_file; do
4980         if test $f != "auto-host.h"; then
4981                 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
4982         else
4983                 host_xm_file_list="${host_xm_file_list} auto-host.h"
4984         fi
4985 done
4986
4987 build_xm_file_list=
4988 for f in $build_xm_file; do
4989         if test $f != "auto-build.h"; then
4990                 if test $f != "auto-host.h"; then
4991                         build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
4992                 else
4993                         build_xm_file_list="${build_xm_file_list} auto-host.h"
4994                 fi
4995         else
4996                 build_xm_file_list="${build_xm_file_list} auto-build.h"
4997         fi
4998 done
4999
5000 # Define macro CROSS_COMPILE in compilation
5001 # if this is a cross-compiler.
5002 # Also use all.cross instead of all.internal
5003 # and add cross-make to Makefile.
5004 cross_overrides="/dev/null"
5005 if [ x$host != x$target ]
5006 then
5007         cross_defines="CROSS=-DCROSS_COMPILE"
5008         cross_overrides="${topdir}/cross-make"
5009 fi
5010
5011 # When building gcc with a cross-compiler, we need to fix a few things.
5012 # This must come after cross-make as we want all.build to override
5013 # all.cross.
5014 build_overrides="/dev/null"
5015 if [ x$build != x$host ]
5016 then
5017         build_overrides="${topdir}/build-make"
5018 fi
5019
5020 # Expand extra_headers to include complete path.
5021 # This substitutes for lots of t-* files.
5022 extra_headers_list=
5023 if [ "x$extra_headers" = x ]
5024 then true
5025 else
5026         # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5027         for file in $extra_headers;
5028         do
5029                 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5030         done
5031 fi
5032
5033 # Add a definition of USE_COLLECT2 if system wants one.
5034 # Also tell toplev.c what to do.
5035 # This substitutes for lots of t-* files.
5036 if [ x$use_collect2 = x ]
5037 then
5038         will_use_collect2=
5039         maybe_use_collect2=
5040 else
5041         will_use_collect2="collect2"
5042         maybe_use_collect2="-DUSE_COLLECT2"
5043 fi
5044
5045 # NEED TO CONVERT
5046 # Set MD_DEPS if the real md file is in md.pre-cpp.
5047 # Set MD_CPP to the cpp to pass the md file through.  Md files use ';'
5048 # for line oriented comments, so we must always use a GNU cpp.  If
5049 # building gcc with a cross compiler, use the cross compiler just
5050 # built.  Otherwise, we can use the cpp just built.
5051 md_file_sub=
5052 if [ "x$md_cppflags" = x ]
5053 then
5054         md_file_sub=$srcdir/config/$md_file
5055 else
5056         md_file=md
5057 fi
5058
5059 # If we have gas in the build tree, make a link to it.
5060 if [ -f ../gas/Makefile ]; then
5061         rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
5062 fi
5063
5064 # If we have ld in the build tree, make a link to it.
5065 if [ -f ../ld/Makefile ]; then
5066 #       if [[ x$use_collect2 = x ]]; then
5067 #               rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5068 #       else
5069                 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
5070 #       fi
5071 fi
5072
5073 # Figure out what assembler alignment features are present.
5074 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5075 echo "configure:5076: checking assembler alignment features" >&5
5076 gcc_cv_as=
5077 gcc_cv_as_alignment_features=
5078 if [ -x as$host_exeext ]; then
5079         # Build using assembler in the current directory.
5080         gcc_cv_as=./as$host_exeext
5081 elif [ -f $srcdir/../gas/configure.in ]; then
5082         # Single tree build which includes gas.
5083         for f in $srcdir/../gas/configure.in $srcdir/../gas/Makefile.in
5084         do
5085                 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5086                 if [ x$gcc_cv_gas_version != x ]; then
5087                         break
5088                 fi
5089         done
5090         gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5091         gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5092         # Gas version 2.8 and later support specifying the maximum
5093         # bytes to skip when using .p2align.
5094         if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]; then
5095                 gcc_cv_as_alignment_features=".p2align including maximum skip"
5096                 cat >> confdefs.h <<\EOF
5097 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5098 EOF
5099
5100         fi
5101 elif [ x$host = x$target ]; then
5102         # Native build.
5103         gcc_cv_as=as$host_exeext
5104 fi
5105 if [ x$gcc_cv_as != x ]; then
5106         # Check if specifying the maximum bytes to skip when
5107         # using .p2align is supported.
5108         echo ".p2align 4,,7" > conftest.s
5109         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5110                 gcc_cv_as_alignment_features=".p2align including maximum skip"
5111                 cat >> confdefs.h <<\EOF
5112 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5113 EOF
5114
5115         fi
5116         rm -f conftest.s conftest.o
5117 fi
5118 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5119
5120 # Figure out what language subdirectories are present.
5121 subdirs=
5122 for lang in ${srcdir}/*/config-lang.in ..
5123 do
5124         case $lang in
5125         ..) ;;
5126         # The odd quoting in the next line works around
5127         # an apparent bug in bash 1.12 on linux.
5128         ${srcdir}/[*]/config-lang.in) ;;
5129         *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
5130         esac
5131 done
5132
5133 # Make gthr-default.h if we have a thread file.
5134 gthread_flags=
5135 if [ $thread_file != single ]; then
5136     rm -f gthr-default.h
5137     echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
5138     gthread_flags=-DHAVE_GTHR_DEFAULT
5139 fi
5140
5141
5142 # Make empty files to contain the specs and options for each language.
5143 # Then add #include lines to for a compiler that has specs and/or options.
5144
5145 lang_specs_files=
5146 lang_options_files=
5147 rm -f specs.h options.h
5148 touch specs.h options.h
5149 for subdir in . $subdirs
5150 do
5151         if [ -f $srcdir/$subdir/lang-specs.h ]; then
5152                 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
5153                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
5154         fi
5155         if [ -f $srcdir/$subdir/lang-options.h ]; then
5156                 echo "#include \"$subdir/lang-options.h\"" >>options.h
5157                 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
5158         fi
5159 done
5160
5161 # These (without "all_") are set in each config-lang.in.
5162 # `language' must be a single word so is spelled singularly.
5163 all_languages=
5164 all_boot_languages=
5165 all_compilers=
5166 all_stagestuff=
5167 all_diff_excludes=
5168 all_outputs=Makefile
5169 # List of language makefile fragments.
5170 all_lang_makefiles=
5171 all_headers=
5172 all_lib2funcs=
5173
5174 # Add the language fragments.
5175 # Languages are added via two mechanisms.  Some information must be
5176 # recorded in makefile variables, these are defined in config-lang.in.
5177 # We accumulate them and plug them into the main Makefile.
5178 # The other mechanism is a set of hooks for each of the main targets
5179 # like `clean', `install', etc.
5180
5181 language_fragments="Make-lang"
5182 language_hooks="Make-hooks"
5183 oldstyle_subdirs=
5184
5185 for s in .. $subdirs
5186 do
5187         if [ $s != ".." ]
5188         then
5189                 language=
5190                 boot_language=
5191                 compilers=
5192                 stagestuff=
5193                 diff_excludes=
5194                 headers=
5195                 outputs=
5196                 lib2funcs=
5197                 . ${srcdir}/$s/config-lang.in
5198                 if [ "x$language" = x ]
5199                 then
5200                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5201                         exit 1
5202                 fi
5203                 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
5204                 all_languages="$all_languages $language"
5205                 if [ "x$boot_language" = xyes ]
5206                 then
5207                         all_boot_languages="$all_boot_languages $language"
5208                 fi
5209                 all_compilers="$all_compilers $compilers"
5210                 all_stagestuff="$all_stagestuff $stagestuff"
5211                 all_diff_excludes="$all_diff_excludes $diff_excludes"
5212                 all_headers="$all_headers $headers"
5213                 all_outputs="$all_outputs $outputs"
5214                 if [ x$outputs = x ]
5215                 then
5216                         oldstyle_subdirs="$oldstyle_subdirs $s"
5217                 fi
5218                 all_lib2funcs="$all_lib2funcs $lib2funcs"
5219         fi
5220 done
5221
5222 # Since we can't use `::' targets, we link each language in
5223 # with a set of hooks, reached indirectly via lang.${target}.
5224
5225 rm -f Make-hooks
5226 touch Make-hooks
5227 target_list="all.build all.cross start.encap rest.encap \
5228         info dvi \
5229         install-normal install-common install-info install-man \
5230         uninstall distdir \
5231         mostlyclean clean distclean extraclean maintainer-clean \
5232         stage1 stage2 stage3 stage4"
5233 for t in $target_list
5234 do
5235         x=
5236         for l in .. $all_languages
5237         do
5238                 if [ $l != ".." ]; then
5239                         x="$x $l.$t"
5240                 fi
5241         done
5242         echo "lang.$t: $x" >> Make-hooks
5243 done
5244
5245 # If we're not building in srcdir, create .gdbinit.
5246
5247 if [ ! -f Makefile.in ]; then
5248         echo "dir ." > .gdbinit
5249         echo "dir ${srcdir}" >> .gdbinit
5250         if [ x$gdb_needs_out_file_path = xyes ]
5251         then
5252                 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5253         fi
5254         if [ "x$subdirs" != x ]; then
5255                 for s in $subdirs
5256                 do
5257                         echo "dir ${srcdir}/$s" >> .gdbinit
5258                 done
5259         fi
5260         echo "source ${srcdir}/.gdbinit" >> .gdbinit
5261 fi
5262
5263 # Define variables host_canonical and build_canonical
5264 # because some Cygnus local changes in the Makefile depend on them.
5265 build_canonical=${build}
5266 host_canonical=${host}
5267 target_subdir=
5268 if [ "${host}" != "${target}" ] ; then
5269     target_subdir=${target}/
5270 fi
5271
5272
5273
5274         
5275 # If this is using newlib, then define inhibit_libc in
5276 # LIBGCC2_CFLAGS.  This will cause __eprintf to be left out of
5277 # libgcc.a, but that's OK because newib should have its own version of
5278 # assert.h.
5279 inhibit_libc=
5280 if [ x$with_newlib = xyes ]; then
5281         inhibit_libc=-Dinhibit_libc
5282 fi
5283
5284
5285 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5286 sched_prefix=
5287 sched_cflags=
5288 if [ x$enable_haifa = xyes ]; then
5289     echo "Using the Haifa scheduler."
5290     sched_prefix=haifa-
5291     sched_cflags=-DHAIFA
5292 fi
5293
5294
5295 if [ x$enable_haifa != x ]; then
5296     # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5297     for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
5298         if [ -f $x ]; then
5299             echo "Removing $x"
5300             rm -f $x
5301         fi
5302     done
5303 fi
5304
5305 # Nothing to do for FLOAT_H, float_format already handled.
5306 objdir=`pwd`
5307
5308
5309 # Process the language and host/target makefile fragments.
5310 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5311
5312 # Substitute configuration variables
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365 # Echo that links are built
5366 if [ x$host = x$target ]
5367 then
5368         str1="native "
5369 else
5370         str1="cross-"
5371         str2=" from $host"
5372 fi
5373
5374 if [ x$host != x$build ]
5375 then
5376         str3=" on a $build system"
5377 fi
5378
5379 if [ "x$str2" != x ] || [ "x$str3" != x ]
5380 then
5381         str4=
5382 fi
5383
5384 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5385
5386 if [ "x$str2" != x ] || [ "x$str3" != x ]
5387 then
5388         echo " ${str2}${str3}." 1>&2
5389 fi
5390
5391 # Truncate the target if necessary
5392 if [ x$host_truncate_target != x ]; then
5393         target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5394 fi
5395
5396 # Configure the subdirectories
5397 # AC_CONFIG_SUBDIRS($subdirs)
5398
5399 # Create the Makefile
5400 # and configure language subdirectories
5401 trap '' 1 2 15
5402 cat > confcache <<\EOF
5403 # This file is a shell script that caches the results of configure
5404 # tests run on this system so they can be shared between configure
5405 # scripts and configure runs.  It is not useful on other systems.
5406 # If it contains results you don't want to keep, you may remove or edit it.
5407 #
5408 # By default, configure uses ./config.cache as the cache file,
5409 # creating it if it does not exist already.  You can give configure
5410 # the --cache-file=FILE option to use a different cache file; that is
5411 # what configure does when it calls configure scripts in
5412 # subdirectories, so they share the cache.
5413 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5414 # config.status only pays attention to the cache file if you give it the
5415 # --recheck option to rerun configure.
5416 #
5417 EOF
5418 # The following way of writing the cache mishandles newlines in values,
5419 # but we know of no workaround that is simple, portable, and efficient.
5420 # So, don't put newlines in cache variables' values.
5421 # Ultrix sh set writes to stderr and can't be redirected directly,
5422 # and sets the high bit in the cache file unless we assign to the vars.
5423 (set) 2>&1 |
5424   case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5425   *ac_space=\ *)
5426     # `set' does not quote correctly, so add quotes (double-quote substitution
5427     # turns \\\\ into \\, and sed turns \\ into \).
5428     sed -n \
5429       -e "s/'/'\\\\''/g" \
5430       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5431     ;;
5432   *)
5433     # `set' quotes correctly as required by POSIX, so do not add quotes.
5434     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5435     ;;
5436   esac >> confcache
5437 if cmp -s $cache_file confcache; then
5438   :
5439 else
5440   if test -w $cache_file; then
5441     echo "updating cache $cache_file"
5442     cat confcache > $cache_file
5443   else
5444     echo "not updating unwritable cache $cache_file"
5445   fi
5446 fi
5447 rm -f confcache
5448
5449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5450
5451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5452 # Let make expand exec_prefix.
5453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5454
5455 # Any assignment to VPATH causes Sun make to only execute
5456 # the first set of double-colon rules, so remove it if not needed.
5457 # If there is a colon in the path, we need to keep it.
5458 if test "x$srcdir" = x.; then
5459   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
5460 fi
5461
5462 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5463
5464 DEFS=-DHAVE_CONFIG_H
5465
5466 # Without the "./", some shells look in PATH for config.status.
5467 : ${CONFIG_STATUS=./config.status}
5468
5469 echo creating $CONFIG_STATUS
5470 rm -f $CONFIG_STATUS
5471 cat > $CONFIG_STATUS <<EOF
5472 #! /bin/sh
5473 # Generated automatically by configure.
5474 # Run this file to recreate the current configuration.
5475 # This directory was configured as follows,
5476 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5477 #
5478 # $0 $ac_configure_args
5479 #
5480 # Compiler output produced by configure, useful for debugging
5481 # configure, is in ./config.log if it exists.
5482
5483 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5484 for ac_option
5485 do
5486   case "\$ac_option" in
5487   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5488     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5489     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5490   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5491     echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
5492     exit 0 ;;
5493   -help | --help | --hel | --he | --h)
5494     echo "\$ac_cs_usage"; exit 0 ;;
5495   *) echo "\$ac_cs_usage"; exit 1 ;;
5496   esac
5497 done
5498
5499 ac_given_srcdir=$srcdir
5500
5501 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5502 EOF
5503 cat >> $CONFIG_STATUS <<EOF
5504
5505 # Protect against being on the right side of a sed subst in config.status.
5506 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5507  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5508 $ac_vpsub
5509 $extrasub
5510 s%@SHELL@%$SHELL%g
5511 s%@CFLAGS@%$CFLAGS%g
5512 s%@CPPFLAGS@%$CPPFLAGS%g
5513 s%@CXXFLAGS@%$CXXFLAGS%g
5514 s%@DEFS@%$DEFS%g
5515 s%@LDFLAGS@%$LDFLAGS%g
5516 s%@LIBS@%$LIBS%g
5517 s%@exec_prefix@%$exec_prefix%g
5518 s%@prefix@%$prefix%g
5519 s%@program_transform_name@%$program_transform_name%g
5520 s%@bindir@%$bindir%g
5521 s%@sbindir@%$sbindir%g
5522 s%@libexecdir@%$libexecdir%g
5523 s%@datadir@%$datadir%g
5524 s%@sysconfdir@%$sysconfdir%g
5525 s%@sharedstatedir@%$sharedstatedir%g
5526 s%@localstatedir@%$localstatedir%g
5527 s%@libdir@%$libdir%g
5528 s%@includedir@%$includedir%g
5529 s%@oldincludedir@%$oldincludedir%g
5530 s%@infodir@%$infodir%g
5531 s%@mandir@%$mandir%g
5532 s%@host@%$host%g
5533 s%@host_alias@%$host_alias%g
5534 s%@host_cpu@%$host_cpu%g
5535 s%@host_vendor@%$host_vendor%g
5536 s%@host_os@%$host_os%g
5537 s%@target@%$target%g
5538 s%@target_alias@%$target_alias%g
5539 s%@target_cpu@%$target_cpu%g
5540 s%@target_vendor@%$target_vendor%g
5541 s%@target_os@%$target_os%g
5542 s%@build@%$build%g
5543 s%@build_alias@%$build_alias%g
5544 s%@build_cpu@%$build_cpu%g
5545 s%@build_vendor@%$build_vendor%g
5546 s%@build_os@%$build_os%g
5547 s%@CC@%$CC%g
5548 s%@SET_MAKE@%$SET_MAKE%g
5549 s%@AWK@%$AWK%g
5550 s%@LEX@%$LEX%g
5551 s%@LEXLIB@%$LEXLIB%g
5552 s%@LN@%$LN%g
5553 s%@LN_S@%$LN_S%g
5554 s%@RANLIB@%$RANLIB%g
5555 s%@YACC@%$YACC%g
5556 s%@INSTALL@%$INSTALL%g
5557 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5558 s%@INSTALL_DATA@%$INSTALL_DATA%g
5559 s%@CPP@%$CPP%g
5560 s%@vfprintf@%$vfprintf%g
5561 s%@doprint@%$doprint%g
5562 s%@manext@%$manext%g
5563 s%@objext@%$objext%g
5564 s%@gthread_flags@%$gthread_flags%g
5565 s%@build_canonical@%$build_canonical%g
5566 s%@host_canonical@%$host_canonical%g
5567 s%@target_subdir@%$target_subdir%g
5568 s%@inhibit_libc@%$inhibit_libc%g
5569 s%@sched_prefix@%$sched_prefix%g
5570 s%@sched_cflags@%$sched_cflags%g
5571 s%@objdir@%$objdir%g
5572 s%@subdirs@%$subdirs%g
5573 s%@all_languages@%$all_languages%g
5574 s%@all_boot_languages@%$all_boot_languages%g
5575 s%@all_compilers@%$all_compilers%g
5576 s%@all_lang_makefiles@%$all_lang_makefiles%g
5577 s%@all_stagestuff@%$all_stagestuff%g
5578 s%@all_diff_excludes@%$all_diff_excludes%g
5579 s%@all_lib2funcs@%$all_lib2funcs%g
5580 s%@all_headers@%$all_headers%g
5581 s%@extra_passes@%$extra_passes%g
5582 s%@extra_programs@%$extra_programs%g
5583 s%@extra_parts@%$extra_parts%g
5584 s%@extra_c_objs@%$extra_c_objs%g
5585 s%@extra_cxx_objs@%$extra_cxx_objs%g
5586 s%@extra_c_flags@%$extra_c_flags%g
5587 s%@extra_objs@%$extra_objs%g
5588 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
5589 s%@extra_headers_list@%$extra_headers_list%g
5590 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
5591 s%@dep_tmake_file@%$dep_tmake_file%g
5592 s%@out_file@%$out_file%g
5593 s%@out_object_file@%$out_object_file%g
5594 s%@md_file@%$md_file%g
5595 s%@tm_file_list@%$tm_file_list%g
5596 s%@build_xm_file_list@%$build_xm_file_list%g
5597 s%@host_xm_file_list@%$host_xm_file_list%g
5598 s%@lang_specs_files@%$lang_specs_files%g
5599 s%@lang_options_files@%$lang_options_files%g
5600 s%@thread_file@%$thread_file%g
5601 s%@version@%$version%g
5602 s%@local_prefix@%$local_prefix%g
5603 s%@gxx_include_dir@%$gxx_include_dir%g
5604 s%@fixincludes@%$fixincludes%g
5605 s%@build_install_headers_dir@%$build_install_headers_dir%g
5606 s%@build_exeext@%$build_exeext%g
5607 s%@host_exeext@%$host_exeext%g
5608 s%@float_format@%$float_format%g
5609 s%@will_use_collect2@%$will_use_collect2%g
5610 s%@maybe_use_collect2@%$maybe_use_collect2%g
5611 s%@cc_set_by_configure@%$cc_set_by_configure%g
5612 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
5613 s%@install@%$install%g
5614 s%@symbolic_link@%$symbolic_link%g
5615 /@target_overrides@/r $target_overrides
5616 s%@target_overrides@%%g
5617 /@host_overrides@/r $host_overrides
5618 s%@host_overrides@%%g
5619 s%@cross_defines@%$cross_defines%g
5620 /@cross_overrides@/r $cross_overrides
5621 s%@cross_overrides@%%g
5622 /@build_overrides@/r $build_overrides
5623 s%@build_overrides@%%g
5624 /@language_fragments@/r $language_fragments
5625 s%@language_fragments@%%g
5626 /@language_hooks@/r $language_hooks
5627 s%@language_hooks@%%g
5628
5629 CEOF
5630 EOF
5631
5632 cat >> $CONFIG_STATUS <<\EOF
5633
5634 # Split the substitutions into bite-sized pieces for seds with
5635 # small command number limits, like on Digital OSF/1 and HP-UX.
5636 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5637 ac_file=1 # Number of current file.
5638 ac_beg=1 # First line for current file.
5639 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5640 ac_more_lines=:
5641 ac_sed_cmds=""
5642 while $ac_more_lines; do
5643   if test $ac_beg -gt 1; then
5644     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5645   else
5646     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5647   fi
5648   if test ! -s conftest.s$ac_file; then
5649     ac_more_lines=false
5650     rm -f conftest.s$ac_file
5651   else
5652     if test -z "$ac_sed_cmds"; then
5653       ac_sed_cmds="sed -f conftest.s$ac_file"
5654     else
5655       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5656     fi
5657     ac_file=`expr $ac_file + 1`
5658     ac_beg=$ac_end
5659     ac_end=`expr $ac_end + $ac_max_sed_cmds`
5660   fi
5661 done
5662 if test -z "$ac_sed_cmds"; then
5663   ac_sed_cmds=cat
5664 fi
5665 EOF
5666
5667 cat >> $CONFIG_STATUS <<EOF
5668
5669 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
5670 EOF
5671 cat >> $CONFIG_STATUS <<\EOF
5672 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5673   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5674   case "$ac_file" in
5675   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5676        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5677   *) ac_file_in="${ac_file}.in" ;;
5678   esac
5679
5680   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5681
5682   # Remove last slash and all that follows it.  Not all systems have dirname.
5683   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5684   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5685     # The file is in a subdirectory.
5686     test ! -d "$ac_dir" && mkdir "$ac_dir"
5687     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5688     # A "../" for each directory in $ac_dir_suffix.
5689     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5690   else
5691     ac_dir_suffix= ac_dots=
5692   fi
5693
5694   case "$ac_given_srcdir" in
5695   .)  srcdir=.
5696       if test -z "$ac_dots"; then top_srcdir=.
5697       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5698   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5699   *) # Relative path.
5700     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5701     top_srcdir="$ac_dots$ac_given_srcdir" ;;
5702   esac
5703
5704
5705   echo creating "$ac_file"
5706   rm -f "$ac_file"
5707   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5708   case "$ac_file" in
5709   *Makefile*) ac_comsub="1i\\
5710 # $configure_input" ;;
5711   *) ac_comsub= ;;
5712   esac
5713
5714   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5715   sed -e "$ac_comsub
5716 s%@configure_input@%$configure_input%g
5717 s%@srcdir@%$srcdir%g
5718 s%@top_srcdir@%$top_srcdir%g
5719 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5720 fi; done
5721 rm -f conftest.s*
5722
5723 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5724 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5725 #
5726 # ac_d sets the value in "#define NAME VALUE" lines.
5727 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5728 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
5729 ac_dC='\3'
5730 ac_dD='%g'
5731 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5732 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5733 ac_uB='\([      ]\)%\1#\2define\3'
5734 ac_uC=' '
5735 ac_uD='\4%g'
5736 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5737 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5738 ac_eB='$%\1#\2define\3'
5739 ac_eC=' '
5740 ac_eD='%g'
5741
5742 if test "${CONFIG_HEADERS+set}" != set; then
5743 EOF
5744 cat >> $CONFIG_STATUS <<EOF
5745   CONFIG_HEADERS="auto-host.h:config.in"
5746 EOF
5747 cat >> $CONFIG_STATUS <<\EOF
5748 fi
5749 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5750   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5751   case "$ac_file" in
5752   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5753        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5754   *) ac_file_in="${ac_file}.in" ;;
5755   esac
5756
5757   echo creating $ac_file
5758
5759   rm -f conftest.frag conftest.in conftest.out
5760   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5761   cat $ac_file_inputs > conftest.in
5762
5763 EOF
5764
5765 # Transform confdefs.h into a sed script conftest.vals that substitutes
5766 # the proper values into config.h.in to produce config.h.  And first:
5767 # Protect against being on the right side of a sed subst in config.status.
5768 # Protect against being in an unquoted here document in config.status.
5769 rm -f conftest.vals
5770 cat > conftest.hdr <<\EOF
5771 s/[\\&%]/\\&/g
5772 s%[\\$`]%\\&%g
5773 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5774 s%ac_d%ac_u%gp
5775 s%ac_u%ac_e%gp
5776 EOF
5777 sed -n -f conftest.hdr confdefs.h > conftest.vals
5778 rm -f conftest.hdr
5779
5780 # This sed command replaces #undef with comments.  This is necessary, for
5781 # example, in the case of _POSIX_SOURCE, which is predefined and required
5782 # on some systems where configure will not decide to define it.
5783 cat >> conftest.vals <<\EOF
5784 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5785 EOF
5786
5787 # Break up conftest.vals because some shells have a limit on
5788 # the size of here documents, and old seds have small limits too.
5789
5790 rm -f conftest.tail
5791 while :
5792 do
5793   ac_lines=`grep -c . conftest.vals`
5794   # grep -c gives empty output for an empty file on some AIX systems.
5795   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5796   # Write a limited-size here document to conftest.frag.
5797   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5798   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5799   echo 'CEOF
5800   sed -f conftest.frag conftest.in > conftest.out
5801   rm -f conftest.in
5802   mv conftest.out conftest.in
5803 ' >> $CONFIG_STATUS
5804   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5805   rm -f conftest.vals
5806   mv conftest.tail conftest.vals
5807 done
5808 rm -f conftest.vals
5809
5810 cat >> $CONFIG_STATUS <<\EOF
5811   rm -f conftest.frag conftest.h
5812   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
5813   cat conftest.in >> conftest.h
5814   rm -f conftest.in
5815   if cmp -s $ac_file conftest.h 2>/dev/null; then
5816     echo "$ac_file is unchanged"
5817     rm -f conftest.h
5818   else
5819     # Remove last slash and all that follows it.  Not all systems have dirname.
5820       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5821       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5822       # The file is in a subdirectory.
5823       test ! -d "$ac_dir" && mkdir "$ac_dir"
5824     fi
5825     rm -f $ac_file
5826     mv conftest.h $ac_file
5827   fi
5828 fi; done
5829
5830 EOF
5831 cat >> $CONFIG_STATUS <<EOF
5832
5833 host='${host}'
5834 build='${build}'
5835 target='${target}'
5836 target_alias='${target_alias}'
5837 srcdir='${srcdir}'
5838 subdirs='${subdirs}'
5839 oldstyle_subdirs='${oldstyle_subdirs}'
5840 symbolic_link='${symbolic_link}'
5841 program_transform_set='${program_transform_set}'
5842 program_transform_name='${program_transform_name}'
5843 dep_host_xmake_file='${dep_host_xmake_file}'
5844 host_xmake_file='${host_xmake_file}'
5845 dep_tmake_file='${dep_tmake_file}'
5846 tmake_file='${tmake_file}'
5847 thread_file='${thread_file}'
5848 version='${version}'
5849 local_prefix='${local_prefix}'
5850 build_install_headers_dir='${build_install_headers_dir}'
5851 build_exeext='${build_exeext}'
5852 host_exeext='${host_exeext}'
5853 out_file='${out_file}'
5854 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5855 SET_MAKE='${SET_MAKE}'
5856 target_list='${target_list}'
5857 target_overrides='${target_overrides}'
5858 host_overrides='${host_overrides}'
5859 cross_defines='${cross_defines}'
5860 cross_overrides='${cross_overrides}'
5861 build_overrides='${build_overrides}'
5862
5863 EOF
5864 cat >> $CONFIG_STATUS <<\EOF
5865
5866 . $srcdir/configure.lang
5867 case x$CONFIG_HEADERS in
5868 xauto-host.h:config.in)
5869 echo > cstamp-h ;;
5870 esac
5871 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5872 # bootstrapping and the installation procedure can still use
5873 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
5874 # FLAGS_TO_PASS has been modified to solve the problem there.
5875 # This is virtually a duplicate of what happens in configure.lang; we do
5876 # an extra check to make sure this only happens if ln -s can be used.
5877 if [ "$symbolic_link" = "ln -s" ]; then
5878  for d in .. ${subdirs} ; do
5879    if [ $d != .. ]; then
5880         STARTDIR=`pwd`
5881         cd $d
5882         for t in stage1 stage2 stage3 stage4 include
5883         do
5884                 rm -f $t
5885                 $symbolic_link ../$t $t 2>/dev/null
5886         done
5887         cd $STARTDIR
5888    fi
5889  done
5890 else true ; fi
5891
5892 exit 0
5893 EOF
5894 chmod +x $CONFIG_STATUS
5895 rm -fr confdefs* $ac_clean_files
5896 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5897