OSDN Git Service

* configure.in (sparc-*-elf*): Use sparc/elf.h, sparc/t-elf.
[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-c-cpplib       Use cpplib for C."
29 ac_help="$ac_help
30   --enable-threads        enable thread usage for target GCC.
31   --enable-threads=LIB    use LIB thread package for target GCC."
32
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
36 build=NONE
37 cache_file=./config.cache
38 exec_prefix=NONE
39 host=NONE
40 no_create=
41 nonopt=NONE
42 no_recursion=
43 prefix=NONE
44 program_prefix=NONE
45 program_suffix=NONE
46 program_transform_name=s,x,x,
47 silent=
48 site=
49 srcdir=
50 target=NONE
51 verbose=
52 x_includes=NONE
53 x_libraries=NONE
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
66
67 # Initialize some other variables.
68 subdirs=
69 MFLAGS= MAKEFLAGS=
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
72 ac_max_here_lines=12
73
74 ac_prev=
75 for ac_option
76 do
77
78   # If the previous option needs an argument, assign it.
79   if test -n "$ac_prev"; then
80     eval "$ac_prev=\$ac_option"
81     ac_prev=
82     continue
83   fi
84
85   case "$ac_option" in
86   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87   *) ac_optarg= ;;
88   esac
89
90   # Accept the important Cygnus configure options, so we can diagnose typos.
91
92   case "$ac_option" in
93
94   -bindir | --bindir | --bindi | --bind | --bin | --bi)
95     ac_prev=bindir ;;
96   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97     bindir="$ac_optarg" ;;
98
99   -build | --build | --buil | --bui | --bu)
100     ac_prev=build ;;
101   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102     build="$ac_optarg" ;;
103
104   -cache-file | --cache-file | --cache-fil | --cache-fi \
105   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106     ac_prev=cache_file ;;
107   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109     cache_file="$ac_optarg" ;;
110
111   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112     ac_prev=datadir ;;
113   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114   | --da=*)
115     datadir="$ac_optarg" ;;
116
117   -disable-* | --disable-*)
118     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119     # Reject names that are not valid shell variable names.
120     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122     fi
123     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124     eval "enable_${ac_feature}=no" ;;
125
126   -enable-* | --enable-*)
127     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128     # Reject names that are not valid shell variable names.
129     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131     fi
132     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133     case "$ac_option" in
134       *=*) ;;
135       *) ac_optarg=yes ;;
136     esac
137     eval "enable_${ac_feature}='$ac_optarg'" ;;
138
139   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141   | --exec | --exe | --ex)
142     ac_prev=exec_prefix ;;
143   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145   | --exec=* | --exe=* | --ex=*)
146     exec_prefix="$ac_optarg" ;;
147
148   -gas | --gas | --ga | --g)
149     # Obsolete; use --with-gas.
150     with_gas=yes ;;
151
152   -help | --help | --hel | --he)
153     # Omit some internal or obsolete options to make the list less imposing.
154     # This message is too long to be a string in the A/UX 3.1 sh.
155     cat << EOF
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
158 Configuration:
159   --cache-file=FILE       cache test results in FILE
160   --help                  print this message
161   --no-create             do not create output files
162   --quiet, --silent       do not print \`checking...' messages
163   --version               print the version of autoconf that created configure
164 Directory and file names:
165   --prefix=PREFIX         install architecture-independent files in PREFIX
166                           [$ac_default_prefix]
167   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
168                           [same as prefix]
169   --bindir=DIR            user executables in DIR [EPREFIX/bin]
170   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
171   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
172   --datadir=DIR           read-only architecture-independent data in DIR
173                           [PREFIX/share]
174   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
175   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
176                           [PREFIX/com]
177   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
178   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
179   --includedir=DIR        C header files in DIR [PREFIX/include]
180   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
181   --infodir=DIR           info documentation in DIR [PREFIX/info]
182   --mandir=DIR            man documentation in DIR [PREFIX/man]
183   --srcdir=DIR            find the sources in DIR [configure dir or ..]
184   --program-prefix=PREFIX prepend PREFIX to installed program names
185   --program-suffix=SUFFIX append SUFFIX to installed program names
186   --program-transform-name=PROGRAM
187                           run sed PROGRAM on installed program names
188 EOF
189     cat << EOF
190 Host type:
191   --build=BUILD           configure for building on BUILD [BUILD=HOST]
192   --host=HOST             configure for HOST [guessed]
193   --target=TARGET         configure for TARGET [TARGET=HOST]
194 Features and packages:
195   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
196   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
197   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
198   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
199   --x-includes=DIR        X include files are in DIR
200   --x-libraries=DIR       X library files are in DIR
201 EOF
202     if test -n "$ac_help"; then
203       echo "--enable and --with options recognized:$ac_help"
204     fi
205     exit 0 ;;
206
207   -host | --host | --hos | --ho)
208     ac_prev=host ;;
209   -host=* | --host=* | --hos=* | --ho=*)
210     host="$ac_optarg" ;;
211
212   -includedir | --includedir | --includedi | --included | --include \
213   | --includ | --inclu | --incl | --inc)
214     ac_prev=includedir ;;
215   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216   | --includ=* | --inclu=* | --incl=* | --inc=*)
217     includedir="$ac_optarg" ;;
218
219   -infodir | --infodir | --infodi | --infod | --info | --inf)
220     ac_prev=infodir ;;
221   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222     infodir="$ac_optarg" ;;
223
224   -libdir | --libdir | --libdi | --libd)
225     ac_prev=libdir ;;
226   -libdir=* | --libdir=* | --libdi=* | --libd=*)
227     libdir="$ac_optarg" ;;
228
229   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230   | --libexe | --libex | --libe)
231     ac_prev=libexecdir ;;
232   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233   | --libexe=* | --libex=* | --libe=*)
234     libexecdir="$ac_optarg" ;;
235
236   -localstatedir | --localstatedir | --localstatedi | --localstated \
237   | --localstate | --localstat | --localsta | --localst \
238   | --locals | --local | --loca | --loc | --lo)
239     ac_prev=localstatedir ;;
240   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243     localstatedir="$ac_optarg" ;;
244
245   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246     ac_prev=mandir ;;
247   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248     mandir="$ac_optarg" ;;
249
250   -nfp | --nfp | --nf)
251     # Obsolete; use --without-fp.
252     with_fp=no ;;
253
254   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255   | --no-cr | --no-c)
256     no_create=yes ;;
257
258   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260     no_recursion=yes ;;
261
262   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264   | --oldin | --oldi | --old | --ol | --o)
265     ac_prev=oldincludedir ;;
266   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269     oldincludedir="$ac_optarg" ;;
270
271   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272     ac_prev=prefix ;;
273   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274     prefix="$ac_optarg" ;;
275
276   -program-prefix | --program-prefix | --program-prefi | --program-pref \
277   | --program-pre | --program-pr | --program-p)
278     ac_prev=program_prefix ;;
279   -program-prefix=* | --program-prefix=* | --program-prefi=* \
280   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281     program_prefix="$ac_optarg" ;;
282
283   -program-suffix | --program-suffix | --program-suffi | --program-suff \
284   | --program-suf | --program-su | --program-s)
285     ac_prev=program_suffix ;;
286   -program-suffix=* | --program-suffix=* | --program-suffi=* \
287   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288     program_suffix="$ac_optarg" ;;
289
290   -program-transform-name | --program-transform-name \
291   | --program-transform-nam | --program-transform-na \
292   | --program-transform-n | --program-transform- \
293   | --program-transform | --program-transfor \
294   | --program-transfo | --program-transf \
295   | --program-trans | --program-tran \
296   | --progr-tra | --program-tr | --program-t)
297     ac_prev=program_transform_name ;;
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     program_transform_name="$ac_optarg" ;;
306
307   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308   | -silent | --silent | --silen | --sile | --sil)
309     silent=yes ;;
310
311   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312     ac_prev=sbindir ;;
313   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314   | --sbi=* | --sb=*)
315     sbindir="$ac_optarg" ;;
316
317   -sharedstatedir | --sharedstatedir | --sharedstatedi \
318   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319   | --sharedst | --shareds | --shared | --share | --shar \
320   | --sha | --sh)
321     ac_prev=sharedstatedir ;;
322   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325   | --sha=* | --sh=*)
326     sharedstatedir="$ac_optarg" ;;
327
328   -site | --site | --sit)
329     ac_prev=site ;;
330   -site=* | --site=* | --sit=*)
331     site="$ac_optarg" ;;
332
333   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334     ac_prev=srcdir ;;
335   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336     srcdir="$ac_optarg" ;;
337
338   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339   | --syscon | --sysco | --sysc | --sys | --sy)
340     ac_prev=sysconfdir ;;
341   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343     sysconfdir="$ac_optarg" ;;
344
345   -target | --target | --targe | --targ | --tar | --ta | --t)
346     ac_prev=target ;;
347   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348     target="$ac_optarg" ;;
349
350   -v | -verbose | --verbose | --verbos | --verbo | --verb)
351     verbose=yes ;;
352
353   -version | --version | --versio | --versi | --vers)
354     echo "configure generated by autoconf version 2.12.1"
355     exit 0 ;;
356
357   -with-* | --with-*)
358     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359     # Reject names that are not valid shell variable names.
360     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362     fi
363     ac_package=`echo $ac_package| sed 's/-/_/g'`
364     case "$ac_option" in
365       *=*) ;;
366       *) ac_optarg=yes ;;
367     esac
368     eval "with_${ac_package}='$ac_optarg'" ;;
369
370   -without-* | --without-*)
371     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372     # Reject names that are not valid shell variable names.
373     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375     fi
376     ac_package=`echo $ac_package| sed 's/-/_/g'`
377     eval "with_${ac_package}=no" ;;
378
379   --x)
380     # Obsolete; use --with-x.
381     with_x=yes ;;
382
383   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384   | --x-incl | --x-inc | --x-in | --x-i)
385     ac_prev=x_includes ;;
386   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388     x_includes="$ac_optarg" ;;
389
390   -x-libraries | --x-libraries | --x-librarie | --x-librari \
391   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392     ac_prev=x_libraries ;;
393   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395     x_libraries="$ac_optarg" ;;
396
397   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398     ;;
399
400   *)
401     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402       echo "configure: warning: $ac_option: invalid host type" 1>&2
403     fi
404     if test "x$nonopt" != xNONE; then
405       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406     fi
407     nonopt="$ac_option"
408     ;;
409
410   esac
411 done
412
413 if test -n "$ac_prev"; then
414   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 fi
416
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418
419 # File descriptor usage:
420 # 0 standard input
421 # 1 file creation
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
428   exec 6>/dev/null
429 else
430   exec 6>&1
431 fi
432 exec 5>./config.log
433
434 echo "\
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
437 " 1>&5
438
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
441 ac_configure_args=
442 for ac_arg
443 do
444   case "$ac_arg" in
445   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446   | --no-cr | --no-c) ;;
447   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452   esac
453 done
454
455 # NLS nuisances.
456 # Only set these to C if already set.  These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
464
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 echo > confdefs.h
469
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=tree.c
473
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476   ac_srcdir_defaulted=yes
477   # Try the directory containing this script, then its parent.
478   ac_prog=$0
479   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481   srcdir=$ac_confdir
482   if test ! -r $srcdir/$ac_unique_file; then
483     srcdir=..
484   fi
485 else
486   ac_srcdir_defaulted=no
487 fi
488 if test ! -r $srcdir/$ac_unique_file; then
489   if test "$ac_srcdir_defaulted" = yes; then
490     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491   else
492     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493   fi
494 fi
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499   if test "x$prefix" != xNONE; then
500     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501   else
502     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503   fi
504 fi
505 for ac_site_file in $CONFIG_SITE; do
506   if test -r "$ac_site_file"; then
507     echo "loading site script $ac_site_file"
508     . "$ac_site_file"
509   fi
510 done
511
512 if test -r "$cache_file"; then
513   echo "loading cache $cache_file"
514   . $cache_file
515 else
516   echo "creating cache $cache_file"
517   > $cache_file
518 fi
519
520 ac_ext=c
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp='$CPP $CPPFLAGS'
523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling=$ac_cv_prog_cc_cross
526
527 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
528   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530     ac_n= ac_c='
531 ' ac_t='        '
532   else
533     ac_n=-n ac_c= ac_t=
534   fi
535 else
536   ac_n= ac_c='\c' ac_t=
537 fi
538
539
540
541
542 remove=rm
543 hard_link=ln
544 symbolic_link='ln -s'
545 copy=cp
546
547 # Check for additional parameters
548
549 # With GNU ld
550 # Check whether --with-gnu-ld or --without-gnu-ld was given.
551 if test "${with_gnu_ld+set}" = set; then
552   withval="$with_gnu_ld"
553   gnu_ld=yes
554 else
555   gnu_ld=no
556 fi
557
558
559 # With GNU as
560 # Check whether --with-gnu-as or --without-gnu-as was given.
561 if test "${with_gnu_as+set}" = set; then
562   withval="$with_gnu_as"
563   gas=yes
564 else
565   gas=no
566 fi
567
568
569 # With stabs
570 # Check whether --with-stabs or --without-stabs was given.
571 if test "${with_stabs+set}" = set; then
572   withval="$with_stabs"
573   stabs=yes
574 else
575   stabs=no
576 fi
577
578
579 # With ELF
580 # Check whether --with-elf or --without-elf was given.
581 if test "${with_elf+set}" = set; then
582   withval="$with_elf"
583   elf=yes
584 else
585   elf=no
586 fi
587
588
589 # Specify the local prefix
590 # Check whether --with-local-prefix or --without-local-prefix was given.
591 if test "${with_local_prefix+set}" = set; then
592   withval="$with_local_prefix"
593   local_prefix=$with_local_prefix
594 else
595   local_prefix=/usr/local
596 fi
597
598
599 # Default local prefix if it is empty
600 if [ x$local_prefix = x ]; then
601         local_prefix=/usr/local
602 fi
603
604 # Specify the g++ header file directory
605 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
606 if test "${with_gxx_include_dir+set}" = set; then
607   withval="$with_gxx_include_dir"
608   gxx_include_dir=$with_gxx_include_dir
609 else
610   gxx_include_dir='${prefix}/include/g++'
611 fi
612
613
614 # Default g++ header file directory if it is empty
615 if [ x$gxx_include_dir = x ]; then
616         gxx_include_dir='${prefix}/include/g++'
617 fi
618
619 # Enable use of cpplib for C.
620 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
621 if test "${enable_c_cpplib+set}" = set; then
622   enableval="$enable_c_cpplib"
623   if [ x$enable_c_cpplib != xno ]; then
624   extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
625   extra_c_flags=-DUSE_CPPLIB=1
626 fi
627 fi
628
629
630 # Enable threads
631 # Pass with no value to take the default
632 # Pass with a value to specify a thread package
633 # Check whether --enable-threads or --disable-threads was given.
634 if test "${enable_threads+set}" = set; then
635   enableval="$enable_threads"
636   if [ x$enable_threads = xno ]; then
637         enable_threads=''
638 fi
639 else
640   enable_threads=''
641 fi
642
643
644 # Check if a valid thread package
645 case x${enable_threads} in
646         x | xno)
647                 # No threads
648                 thread_file='single'
649                 ;;
650         xyes)
651                 # default
652                 thread_file=''
653                 ;;
654         xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
655         xsolaris | xwin32)
656                 thread_file=$enable_threads
657                 ;;
658         *)
659                 echo "$enable_threads is an unknown thread package" 1>&2
660                 exit 1
661                 ;;
662 esac
663
664 # Determine the host, build, and target systems
665 ac_aux_dir=
666 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
667   if test -f $ac_dir/install-sh; then
668     ac_aux_dir=$ac_dir
669     ac_install_sh="$ac_aux_dir/install-sh -c"
670     break
671   elif test -f $ac_dir/install.sh; then
672     ac_aux_dir=$ac_dir
673     ac_install_sh="$ac_aux_dir/install.sh -c"
674     break
675   fi
676 done
677 if test -z "$ac_aux_dir"; then
678   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
679 fi
680 ac_config_guess=$ac_aux_dir/config.guess
681 ac_config_sub=$ac_aux_dir/config.sub
682 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
683
684
685 # Do some error checking and defaulting for the host and target type.
686 # The inputs are:
687 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
688 #
689 # The rules are:
690 # 1. You are not allowed to specify --host, --target, and nonopt at the
691 #    same time.
692 # 2. Host defaults to nonopt.
693 # 3. If nonopt is not specified, then host defaults to the current host,
694 #    as determined by config.guess.
695 # 4. Target and build default to nonopt.
696 # 5. If nonopt is not specified, then target and build default to host.
697
698 # The aliases save the names the user supplied, while $host etc.
699 # will get canonicalized.
700 case $host---$target---$nonopt in
701 NONE---*---* | *---NONE---* | *---*---NONE) ;;
702 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
703 esac
704
705
706 # Make sure we can run config.sub.
707 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
708 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
709 fi
710
711 echo $ac_n "checking host system type""... $ac_c" 1>&6
712 echo "configure:713: checking host system type" >&5
713
714 host_alias=$host
715 case "$host_alias" in
716 NONE)
717   case $nonopt in
718   NONE)
719     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
720     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
721     fi ;;
722   *) host_alias=$nonopt ;;
723   esac ;;
724 esac
725
726 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
727 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$host" 1>&6
731
732 echo $ac_n "checking target system type""... $ac_c" 1>&6
733 echo "configure:734: checking target system type" >&5
734
735 target_alias=$target
736 case "$target_alias" in
737 NONE)
738   case $nonopt in
739   NONE) target_alias=$host_alias ;;
740   *) target_alias=$nonopt ;;
741   esac ;;
742 esac
743
744 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
745 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$target" 1>&6
749
750 echo $ac_n "checking build system type""... $ac_c" 1>&6
751 echo "configure:752: checking build system type" >&5
752
753 build_alias=$build
754 case "$build_alias" in
755 NONE)
756   case $nonopt in
757   NONE) build_alias=$host_alias ;;
758   *) build_alias=$nonopt ;;
759   esac ;;
760 esac
761
762 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
763 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
764 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
765 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
766 echo "$ac_t""$build" 1>&6
767
768 test "$host_alias" != "$target_alias" &&
769   test "$program_prefix$program_suffix$program_transform_name" = \
770     NONENONEs,x,x, &&
771   program_prefix=${target_alias}-
772
773
774 # Find some useful tools
775 for ac_prog in mawk gawk nawk awk
776 do
777 # Extract the first word of "$ac_prog", so it can be a program name with args.
778 set dummy $ac_prog; ac_word=$2
779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
780 echo "configure:781: checking for $ac_word" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
782   echo $ac_n "(cached) $ac_c" 1>&6
783 else
784   if test -n "$AWK"; then
785   ac_cv_prog_AWK="$AWK" # Let the user override the test.
786 else
787   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
788   for ac_dir in $PATH; do
789     test -z "$ac_dir" && ac_dir=.
790     if test -f $ac_dir/$ac_word; then
791       ac_cv_prog_AWK="$ac_prog"
792       break
793     fi
794   done
795   IFS="$ac_save_ifs"
796 fi
797 fi
798 AWK="$ac_cv_prog_AWK"
799 if test -n "$AWK"; then
800   echo "$ac_t""$AWK" 1>&6
801 else
802   echo "$ac_t""no" 1>&6
803 fi
804
805 test -n "$AWK" && break
806 done
807
808 # Extract the first word of "flex", so it can be a program name with args.
809 set dummy flex; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
813   echo $ac_n "(cached) $ac_c" 1>&6
814 else
815   if test -n "$LEX"; then
816   ac_cv_prog_LEX="$LEX" # Let the user override the test.
817 else
818   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
819   for ac_dir in $PATH; do
820     test -z "$ac_dir" && ac_dir=.
821     if test -f $ac_dir/$ac_word; then
822       ac_cv_prog_LEX="flex"
823       break
824     fi
825   done
826   IFS="$ac_save_ifs"
827   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
828 fi
829 fi
830 LEX="$ac_cv_prog_LEX"
831 if test -n "$LEX"; then
832   echo "$ac_t""$LEX" 1>&6
833 else
834   echo "$ac_t""no" 1>&6
835 fi
836
837 if test -z "$LEXLIB"
838 then
839   case "$LEX" in
840   flex*) ac_lib=fl ;;
841   *) ac_lib=l ;;
842   esac
843   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
844 echo "configure:845: checking for yywrap in -l$ac_lib" >&5
845 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
847   echo $ac_n "(cached) $ac_c" 1>&6
848 else
849   ac_save_LIBS="$LIBS"
850 LIBS="-l$ac_lib  $LIBS"
851 cat > conftest.$ac_ext <<EOF
852 #line 853 "configure"
853 #include "confdefs.h"
854 /* Override any gcc2 internal prototype to avoid an error.  */
855 /* We use char because int might match the return type of a gcc2
856     builtin and then its argument prototype would still apply.  */
857 char yywrap();
858
859 int main() {
860 yywrap()
861 ; return 0; }
862 EOF
863 if { (eval echo configure:864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
864   rm -rf conftest*
865   eval "ac_cv_lib_$ac_lib_var=yes"
866 else
867   echo "configure: failed program was:" >&5
868   cat conftest.$ac_ext >&5
869   rm -rf conftest*
870   eval "ac_cv_lib_$ac_lib_var=no"
871 fi
872 rm -f conftest*
873 LIBS="$ac_save_LIBS"
874
875 fi
876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
877   echo "$ac_t""yes" 1>&6
878   LEXLIB="-l$ac_lib"
879 else
880   echo "$ac_t""no" 1>&6
881 fi
882
883 fi
884
885 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
886 echo "configure:887: checking whether ln works" >&5
887 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
888   echo $ac_n "(cached) $ac_c" 1>&6
889 else
890   rm -f conftestdata_to
891 echo >conftestdata_from
892 if ln conftestdata_from conftestdata_to 2>/dev/null
893 then
894   gcc_cv_prog_LN="ln"
895 else
896   if ln -s conftestdata_from conftestdata_to 2>/dev/null
897   then
898     gcc_cv_prog_LN="ln -s"
899   else
900     gcc_cv_prog_LN=cp
901   fi
902 fi
903 rm -f conftestdata_from conftestdata_to
904
905 fi
906 LN="$gcc_cv_prog_LN"
907 if test "$gcc_cv_prog_LN" = "ln"; then
908   echo "$ac_t""yes" 1>&6
909 else
910   if test "$gcc_cv_prog_LN" = "ln -s"; then
911     echo "$ac_t""no, using ln -s" 1>&6
912   else
913     echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
914   fi
915 fi
916
917 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
918 echo "configure:919: checking whether ln -s works" >&5
919 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
920   echo $ac_n "(cached) $ac_c" 1>&6
921 else
922   rm -f conftestdata_to
923 echo >conftestdata_from
924 if ln -s conftestdata_from conftestdata_to 2>/dev/null
925 then
926   gcc_cv_prog_LN_S="ln -s"
927 else
928   if ln conftestdata_from conftestdata_to 2>/dev/null
929   then
930     gcc_cv_prog_LN_S=ln
931   else
932     gcc_cv_prog_LN_S=cp
933   fi
934 fi
935 rm -f conftestdata_from conftestdata_to
936
937 fi
938 LN_S="$gcc_cv_prog_LN_S"
939 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
940   echo "$ac_t""yes" 1>&6
941 else
942   if test "$gcc_cv_prog_LN_S" = "ln"; then
943     echo "$ac_t""no, using ln" 1>&6
944   else
945     echo "$ac_t""no, and neither does ln, so using cp" 1>&6
946   fi
947 fi
948
949 # Extract the first word of "ranlib", so it can be a program name with args.
950 set dummy ranlib; ac_word=$2
951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
952 echo "configure:953: checking for $ac_word" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
954   echo $ac_n "(cached) $ac_c" 1>&6
955 else
956   if test -n "$RANLIB"; then
957   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
958 else
959   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
960   for ac_dir in $PATH; do
961     test -z "$ac_dir" && ac_dir=.
962     if test -f $ac_dir/$ac_word; then
963       ac_cv_prog_RANLIB="ranlib"
964       break
965     fi
966   done
967   IFS="$ac_save_ifs"
968   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
969 fi
970 fi
971 RANLIB="$ac_cv_prog_RANLIB"
972 if test -n "$RANLIB"; then
973   echo "$ac_t""$RANLIB" 1>&6
974 else
975   echo "$ac_t""no" 1>&6
976 fi
977
978 for ac_prog in 'bison -y' byacc
979 do
980 # Extract the first word of "$ac_prog", so it can be a program name with args.
981 set dummy $ac_prog; ac_word=$2
982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
983 echo "configure:984: checking for $ac_word" >&5
984 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
985   echo $ac_n "(cached) $ac_c" 1>&6
986 else
987   if test -n "$YACC"; then
988   ac_cv_prog_YACC="$YACC" # Let the user override the test.
989 else
990   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
991   for ac_dir in $PATH; do
992     test -z "$ac_dir" && ac_dir=.
993     if test -f $ac_dir/$ac_word; then
994       ac_cv_prog_YACC="$ac_prog"
995       break
996     fi
997   done
998   IFS="$ac_save_ifs"
999 fi
1000 fi
1001 YACC="$ac_cv_prog_YACC"
1002 if test -n "$YACC"; then
1003   echo "$ac_t""$YACC" 1>&6
1004 else
1005   echo "$ac_t""no" 1>&6
1006 fi
1007
1008 test -n "$YACC" && break
1009 done
1010 test -n "$YACC" || YACC="yacc"
1011
1012 # Find a good install program.  We prefer a C program (faster),
1013 # so one script is as good as another.  But avoid the broken or
1014 # incompatible versions:
1015 # SysV /etc/install, /usr/sbin/install
1016 # SunOS /usr/etc/install
1017 # IRIX /sbin/install
1018 # AIX /bin/install
1019 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1020 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1021 # ./install, which can be erroneously created by make from ./install.sh.
1022 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1023 echo "configure:1024: checking for a BSD compatible install" >&5
1024 if test -z "$INSTALL"; then
1025 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1026   echo $ac_n "(cached) $ac_c" 1>&6
1027 else
1028     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1029   for ac_dir in $PATH; do
1030     # Account for people who put trailing slashes in PATH elements.
1031     case "$ac_dir/" in
1032     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1033     *)
1034       # OSF1 and SCO ODT 3.0 have their own names for install.
1035       for ac_prog in ginstall scoinst install; do
1036         if test -f $ac_dir/$ac_prog; then
1037           if test $ac_prog = install &&
1038             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1039             # AIX install.  It has an incompatible calling convention.
1040             # OSF/1 installbsd also uses dspmsg, but is usable.
1041             :
1042           else
1043             ac_cv_path_install="$ac_dir/$ac_prog -c"
1044             break 2
1045           fi
1046         fi
1047       done
1048       ;;
1049     esac
1050   done
1051   IFS="$ac_save_IFS"
1052
1053 fi
1054   if test "${ac_cv_path_install+set}" = set; then
1055     INSTALL="$ac_cv_path_install"
1056   else
1057     # As a last resort, use the slow shell script.  We don't cache a
1058     # path for INSTALL within a source directory, because that will
1059     # break other packages using the cache if that directory is
1060     # removed, or if the path is relative.
1061     INSTALL="$ac_install_sh"
1062   fi
1063 fi
1064 echo "$ac_t""$INSTALL" 1>&6
1065
1066 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1067 # It thinks the first close brace ends the variable substitution.
1068 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1069
1070 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1071
1072
1073 # Find the native compiler
1074 # Extract the first word of "gcc", so it can be a program name with args.
1075 set dummy gcc; ac_word=$2
1076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1077 echo "configure:1078: checking for $ac_word" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1079   echo $ac_n "(cached) $ac_c" 1>&6
1080 else
1081   if test -n "$CC"; then
1082   ac_cv_prog_CC="$CC" # Let the user override the test.
1083 else
1084   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1085   for ac_dir in $PATH; do
1086     test -z "$ac_dir" && ac_dir=.
1087     if test -f $ac_dir/$ac_word; then
1088       ac_cv_prog_CC="gcc"
1089       break
1090     fi
1091   done
1092   IFS="$ac_save_ifs"
1093 fi
1094 fi
1095 CC="$ac_cv_prog_CC"
1096 if test -n "$CC"; then
1097   echo "$ac_t""$CC" 1>&6
1098 else
1099   echo "$ac_t""no" 1>&6
1100 fi
1101
1102 if test -z "$CC"; then
1103   # Extract the first word of "cc", so it can be a program name with args.
1104 set dummy cc; ac_word=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 echo "configure:1107: checking for $ac_word" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1108   echo $ac_n "(cached) $ac_c" 1>&6
1109 else
1110   if test -n "$CC"; then
1111   ac_cv_prog_CC="$CC" # Let the user override the test.
1112 else
1113   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1114   ac_prog_rejected=no
1115   for ac_dir in $PATH; do
1116     test -z "$ac_dir" && ac_dir=.
1117     if test -f $ac_dir/$ac_word; then
1118       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1119         ac_prog_rejected=yes
1120         continue
1121       fi
1122       ac_cv_prog_CC="cc"
1123       break
1124     fi
1125   done
1126   IFS="$ac_save_ifs"
1127 if test $ac_prog_rejected = yes; then
1128   # We found a bogon in the path, so make sure we never use it.
1129   set dummy $ac_cv_prog_CC
1130   shift
1131   if test $# -gt 0; then
1132     # We chose a different compiler from the bogus one.
1133     # However, it has the same basename, so the bogon will be chosen
1134     # first if we set CC to just the basename; use the full file name.
1135     shift
1136     set dummy "$ac_dir/$ac_word" "$@"
1137     shift
1138     ac_cv_prog_CC="$@"
1139   fi
1140 fi
1141 fi
1142 fi
1143 CC="$ac_cv_prog_CC"
1144 if test -n "$CC"; then
1145   echo "$ac_t""$CC" 1>&6
1146 else
1147   echo "$ac_t""no" 1>&6
1148 fi
1149
1150   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1151 fi
1152
1153 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1155
1156 ac_ext=c
1157 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1158 ac_cpp='$CPP $CPPFLAGS'
1159 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1160 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1161 cross_compiling=$ac_cv_prog_cc_cross
1162
1163 cat > conftest.$ac_ext <<EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1166 main(){return(0);}
1167 EOF
1168 if { (eval echo configure:1169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1169   ac_cv_prog_cc_works=yes
1170   # If we can't run a trivial program, we are probably using a cross compiler.
1171   if (./conftest; exit) 2>/dev/null; then
1172     ac_cv_prog_cc_cross=no
1173   else
1174     ac_cv_prog_cc_cross=yes
1175   fi
1176 else
1177   echo "configure: failed program was:" >&5
1178   cat conftest.$ac_ext >&5
1179   ac_cv_prog_cc_works=no
1180 fi
1181 rm -fr conftest*
1182
1183 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1184 if test $ac_cv_prog_cc_works = no; then
1185   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1186 fi
1187 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1188 echo "configure:1189: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1189 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1190 cross_compiling=$ac_cv_prog_cc_cross
1191
1192 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether we are using GNU C" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1195   echo $ac_n "(cached) $ac_c" 1>&6
1196 else
1197   cat > conftest.c <<EOF
1198 #ifdef __GNUC__
1199   yes;
1200 #endif
1201 EOF
1202 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1203   ac_cv_prog_gcc=yes
1204 else
1205   ac_cv_prog_gcc=no
1206 fi
1207 fi
1208
1209 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1210
1211 if test $ac_cv_prog_gcc = yes; then
1212   GCC=yes
1213   ac_test_CFLAGS="${CFLAGS+set}"
1214   ac_save_CFLAGS="$CFLAGS"
1215   CFLAGS=
1216   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether ${CC-cc} accepts -g" >&5
1218 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1219   echo $ac_n "(cached) $ac_c" 1>&6
1220 else
1221   echo 'void f(){}' > conftest.c
1222 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1223   ac_cv_prog_cc_g=yes
1224 else
1225   ac_cv_prog_cc_g=no
1226 fi
1227 rm -f conftest*
1228
1229 fi
1230
1231 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1232   if test "$ac_test_CFLAGS" = set; then
1233     CFLAGS="$ac_save_CFLAGS"
1234   elif test $ac_cv_prog_cc_g = yes; then
1235     CFLAGS="-g -O2"
1236   else
1237     CFLAGS="-O2"
1238   fi
1239 else
1240   GCC=
1241   test "${CFLAGS+set}" = set || CFLAGS="-g"
1242 fi
1243
1244 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1245 echo "configure:1246: checking whether ${MAKE-make} sets \${MAKE}" >&5
1246 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1247 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1248   echo $ac_n "(cached) $ac_c" 1>&6
1249 else
1250   cat > conftestmake <<\EOF
1251 all:
1252         @echo 'ac_maketemp="${MAKE}"'
1253 EOF
1254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1255 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1256 if test -n "$ac_maketemp"; then
1257   eval ac_cv_prog_make_${ac_make}_set=yes
1258 else
1259   eval ac_cv_prog_make_${ac_make}_set=no
1260 fi
1261 rm -f conftestmake
1262 fi
1263 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1264   echo "$ac_t""yes" 1>&6
1265   SET_MAKE=
1266 else
1267   echo "$ac_t""no" 1>&6
1268   SET_MAKE="MAKE=${MAKE-make}"
1269 fi
1270
1271
1272 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1273 echo "configure:1274: checking how to run the C preprocessor" >&5
1274 # On Suns, sometimes $CPP names a directory.
1275 if test -n "$CPP" && test -d "$CPP"; then
1276   CPP=
1277 fi
1278 if test -z "$CPP"; then
1279 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1280   echo $ac_n "(cached) $ac_c" 1>&6
1281 else
1282     # This must be in double quotes, not single quotes, because CPP may get
1283   # substituted into the Makefile and "${CC-cc}" will confuse make.
1284   CPP="${CC-cc} -E"
1285   # On the NeXT, cc -E runs the code through the compiler's parser,
1286   # not just through cpp.
1287   cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 #include <assert.h>
1291 Syntax Error
1292 EOF
1293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1294 { (eval echo configure:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1295 ac_err=`grep -v '^ *+' conftest.out`
1296 if test -z "$ac_err"; then
1297   :
1298 else
1299   echo "$ac_err" >&5
1300   echo "configure: failed program was:" >&5
1301   cat conftest.$ac_ext >&5
1302   rm -rf conftest*
1303   CPP="${CC-cc} -E -traditional-cpp"
1304   cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 #include <assert.h>
1308 Syntax Error
1309 EOF
1310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1311 { (eval echo configure:1312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1312 ac_err=`grep -v '^ *+' conftest.out`
1313 if test -z "$ac_err"; then
1314   :
1315 else
1316   echo "$ac_err" >&5
1317   echo "configure: failed program was:" >&5
1318   cat conftest.$ac_ext >&5
1319   rm -rf conftest*
1320   CPP=/lib/cpp
1321 fi
1322 rm -f conftest*
1323 fi
1324 rm -f conftest*
1325   ac_cv_prog_CPP="$CPP"
1326 fi
1327   CPP="$ac_cv_prog_CPP"
1328 else
1329   ac_cv_prog_CPP="$CPP"
1330 fi
1331 echo "$ac_t""$CPP" 1>&6
1332
1333 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h varargs.h sys/varargs.h
1334 do
1335 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1337 echo "configure:1338: checking for $ac_hdr" >&5
1338 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1339   echo $ac_n "(cached) $ac_c" 1>&6
1340 else
1341   cat > conftest.$ac_ext <<EOF
1342 #line 1343 "configure"
1343 #include "confdefs.h"
1344 #include <$ac_hdr>
1345 EOF
1346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1347 { (eval echo configure:1348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1348 ac_err=`grep -v '^ *+' conftest.out`
1349 if test -z "$ac_err"; then
1350   rm -rf conftest*
1351   eval "ac_cv_header_$ac_safe=yes"
1352 else
1353   echo "$ac_err" >&5
1354   echo "configure: failed program was:" >&5
1355   cat conftest.$ac_ext >&5
1356   rm -rf conftest*
1357   eval "ac_cv_header_$ac_safe=no"
1358 fi
1359 rm -f conftest*
1360 fi
1361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1362   echo "$ac_t""yes" 1>&6
1363     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1364   cat >> confdefs.h <<EOF
1365 #define $ac_tr_hdr 1
1366 EOF
1367  
1368 else
1369   echo "$ac_t""no" 1>&6
1370 fi
1371 done
1372
1373
1374 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
1375 echo "configure:1376: checking whether malloc must be declared" >&5
1376 if eval "test \"`echo '$''{'gcc_cv_decl_needed_malloc'+set}'`\" = set"; then
1377   echo $ac_n "(cached) $ac_c" 1>&6
1378 else
1379   cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1382
1383 #include <stdio.h>
1384 #ifdef HAVE_STRING_H
1385 #include <string.h>
1386 #else
1387 #ifdef HAVE_STRINGS_H
1388 #include <strings.h>
1389 #endif
1390 #endif
1391 #ifdef HAVE_STDLIB_H
1392 #include <stdlib.h>
1393 #endif
1394 #ifdef HAVE_UNISTD_H
1395 #include <unistd.h>
1396 #endif
1397 int main() {
1398 char *(*pfn) = (char *(*)) malloc
1399 ; return 0; }
1400 EOF
1401 if { (eval echo configure:1402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1402   rm -rf conftest*
1403   gcc_cv_decl_needed_malloc=no
1404 else
1405   echo "configure: failed program was:" >&5
1406   cat conftest.$ac_ext >&5
1407   rm -rf conftest*
1408   gcc_cv_decl_needed_malloc=yes
1409 fi
1410 rm -f conftest*
1411 fi
1412
1413 echo "$ac_t""$gcc_cv_decl_needed_malloc" 1>&6
1414 if test $gcc_cv_decl_needed_malloc = yes; then
1415   gcc_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1416   cat >> confdefs.h <<EOF
1417 #define $gcc_tr_decl 1
1418 EOF
1419
1420 fi
1421
1422 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
1423 echo "configure:1424: checking whether realloc must be declared" >&5
1424 if eval "test \"`echo '$''{'gcc_cv_decl_needed_realloc'+set}'`\" = set"; then
1425   echo $ac_n "(cached) $ac_c" 1>&6
1426 else
1427   cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430
1431 #include <stdio.h>
1432 #ifdef HAVE_STRING_H
1433 #include <string.h>
1434 #else
1435 #ifdef HAVE_STRINGS_H
1436 #include <strings.h>
1437 #endif
1438 #endif
1439 #ifdef HAVE_STDLIB_H
1440 #include <stdlib.h>
1441 #endif
1442 #ifdef HAVE_UNISTD_H
1443 #include <unistd.h>
1444 #endif
1445 int main() {
1446 char *(*pfn) = (char *(*)) realloc
1447 ; return 0; }
1448 EOF
1449 if { (eval echo configure:1450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1450   rm -rf conftest*
1451   gcc_cv_decl_needed_realloc=no
1452 else
1453   echo "configure: failed program was:" >&5
1454   cat conftest.$ac_ext >&5
1455   rm -rf conftest*
1456   gcc_cv_decl_needed_realloc=yes
1457 fi
1458 rm -f conftest*
1459 fi
1460
1461 echo "$ac_t""$gcc_cv_decl_needed_realloc" 1>&6
1462 if test $gcc_cv_decl_needed_realloc = yes; then
1463   gcc_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1464   cat >> confdefs.h <<EOF
1465 #define $gcc_tr_decl 1
1466 EOF
1467
1468 fi
1469
1470 echo $ac_n "checking whether calloc must be declared""... $ac_c" 1>&6
1471 echo "configure:1472: checking whether calloc must be declared" >&5
1472 if eval "test \"`echo '$''{'gcc_cv_decl_needed_calloc'+set}'`\" = set"; then
1473   echo $ac_n "(cached) $ac_c" 1>&6
1474 else
1475   cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1478
1479 #include <stdio.h>
1480 #ifdef HAVE_STRING_H
1481 #include <string.h>
1482 #else
1483 #ifdef HAVE_STRINGS_H
1484 #include <strings.h>
1485 #endif
1486 #endif
1487 #ifdef HAVE_STDLIB_H
1488 #include <stdlib.h>
1489 #endif
1490 #ifdef HAVE_UNISTD_H
1491 #include <unistd.h>
1492 #endif
1493 int main() {
1494 char *(*pfn) = (char *(*)) calloc
1495 ; return 0; }
1496 EOF
1497 if { (eval echo configure:1498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1498   rm -rf conftest*
1499   gcc_cv_decl_needed_calloc=no
1500 else
1501   echo "configure: failed program was:" >&5
1502   cat conftest.$ac_ext >&5
1503   rm -rf conftest*
1504   gcc_cv_decl_needed_calloc=yes
1505 fi
1506 rm -f conftest*
1507 fi
1508
1509 echo "$ac_t""$gcc_cv_decl_needed_calloc" 1>&6
1510 if test $gcc_cv_decl_needed_calloc = yes; then
1511   gcc_tr_decl=NEED_DECLARATION_`echo calloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1512   cat >> confdefs.h <<EOF
1513 #define $gcc_tr_decl 1
1514 EOF
1515
1516 fi
1517
1518 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
1519 echo "configure:1520: checking whether free must be declared" >&5
1520 if eval "test \"`echo '$''{'gcc_cv_decl_needed_free'+set}'`\" = set"; then
1521   echo $ac_n "(cached) $ac_c" 1>&6
1522 else
1523   cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1526
1527 #include <stdio.h>
1528 #ifdef HAVE_STRING_H
1529 #include <string.h>
1530 #else
1531 #ifdef HAVE_STRINGS_H
1532 #include <strings.h>
1533 #endif
1534 #endif
1535 #ifdef HAVE_STDLIB_H
1536 #include <stdlib.h>
1537 #endif
1538 #ifdef HAVE_UNISTD_H
1539 #include <unistd.h>
1540 #endif
1541 int main() {
1542 char *(*pfn) = (char *(*)) free
1543 ; return 0; }
1544 EOF
1545 if { (eval echo configure:1546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1546   rm -rf conftest*
1547   gcc_cv_decl_needed_free=no
1548 else
1549   echo "configure: failed program was:" >&5
1550   cat conftest.$ac_ext >&5
1551   rm -rf conftest*
1552   gcc_cv_decl_needed_free=yes
1553 fi
1554 rm -f conftest*
1555 fi
1556
1557 echo "$ac_t""$gcc_cv_decl_needed_free" 1>&6
1558 if test $gcc_cv_decl_needed_free = yes; then
1559   gcc_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1560   cat >> confdefs.h <<EOF
1561 #define $gcc_tr_decl 1
1562 EOF
1563
1564 fi
1565
1566
1567 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
1568 echo "configure:1569: checking for sys_siglist declaration in signal.h or unistd.h" >&5
1569 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
1570   echo $ac_n "(cached) $ac_c" 1>&6
1571 else
1572   cat > conftest.$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1575 #include <sys/types.h>
1576 #include <signal.h>
1577 /* NetBSD declares sys_siglist in unistd.h.  */
1578 #ifdef HAVE_UNISTD_H
1579 #include <unistd.h>
1580 #endif
1581 int main() {
1582 char *msg = *(sys_siglist + 1);
1583 ; return 0; }
1584 EOF
1585 if { (eval echo configure:1586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1586   rm -rf conftest*
1587   ac_cv_decl_sys_siglist=yes
1588 else
1589   echo "configure: failed program was:" >&5
1590   cat conftest.$ac_ext >&5
1591   rm -rf conftest*
1592   ac_cv_decl_sys_siglist=no
1593 fi
1594 rm -f conftest*
1595 fi
1596
1597 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
1598 if test $ac_cv_decl_sys_siglist = yes; then
1599   cat >> confdefs.h <<\EOF
1600 #define SYS_SIGLIST_DECLARED 1
1601 EOF
1602
1603 fi
1604
1605
1606 for ac_func in strerror strtoul bsearch
1607 do
1608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1609 echo "configure:1610: checking for $ac_func" >&5
1610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1611   echo $ac_n "(cached) $ac_c" 1>&6
1612 else
1613   cat > conftest.$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1616 /* System header to define __stub macros and hopefully few prototypes,
1617     which can conflict with char $ac_func(); below.  */
1618 #include <assert.h>
1619 /* Override any gcc2 internal prototype to avoid an error.  */
1620 /* We use char because int might match the return type of a gcc2
1621     builtin and then its argument prototype would still apply.  */
1622 char $ac_func();
1623
1624 int main() {
1625
1626 /* The GNU C library defines this for functions which it implements
1627     to always fail with ENOSYS.  Some functions are actually named
1628     something starting with __ and the normal name is an alias.  */
1629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1630 choke me
1631 #else
1632 $ac_func();
1633 #endif
1634
1635 ; return 0; }
1636 EOF
1637 if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1638   rm -rf conftest*
1639   eval "ac_cv_func_$ac_func=yes"
1640 else
1641   echo "configure: failed program was:" >&5
1642   cat conftest.$ac_ext >&5
1643   rm -rf conftest*
1644   eval "ac_cv_func_$ac_func=no"
1645 fi
1646 rm -f conftest*
1647 fi
1648
1649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1650   echo "$ac_t""yes" 1>&6
1651     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1652   cat >> confdefs.h <<EOF
1653 #define $ac_tr_func 1
1654 EOF
1655  
1656 else
1657   echo "$ac_t""no" 1>&6
1658 fi
1659 done
1660
1661
1662 # File extensions
1663 manext='.1'
1664 objext='.o'
1665
1666
1667
1668 build_xm_file=
1669 build_install_headers_dir=install-headers-tar
1670 build_exeext=
1671 host_xm_file=
1672 host_xmake_file=
1673 host_truncate_target=
1674
1675 # Decode the host machine, then the target machine.
1676 # For the host machine, we save the xm_file variable as host_xm_file;
1677 # then we decode the target machine and forget everything else
1678 # that came from the host machine.
1679 for machine in $build $host $target; do
1680
1681         out_file=
1682         xmake_file=
1683         tmake_file=
1684         extra_headers=
1685         extra_passes=
1686         extra_parts=
1687         extra_programs=
1688         extra_objs=
1689         extra_host_objs=
1690         extra_gcc_objs=
1691         float_format=
1692         # Set this to force installation and use of collect2.
1693         use_collect2=
1694         # Set this to override the default target model.
1695         target_cpu_default=
1696         # Set this to control which fixincludes program to use.
1697         fixincludes=fixincludes
1698         # Set this to control how the header file directory is installed.
1699         install_headers_dir=install-headers-tar
1700         # Set this to a non-empty list of args to pass to cpp if the target
1701         # wants its .md file passed through cpp.
1702         md_cppflags=
1703         # Set this if directory names should be truncated to 14 characters.
1704         truncate_target=
1705         # Set this if gdb needs a dir command with `dirname $out_file`
1706         gdb_needs_out_file_path=
1707         # Set this if the build machine requires executables to have a
1708         # file name suffix.
1709         exeext=
1710
1711         # Set default cpu_type, tm_file and xm_file so it can be updated in
1712         # each machine entry.
1713         cpu_type=`echo $machine | sed 's/-.*$//'`
1714         case $machine in
1715         alpha*-*-*)
1716                 cpu_type=alpha
1717                 ;;
1718         arm*-*-*)
1719                 cpu_type=arm
1720                 ;;
1721         c*-convex-*)
1722                 cpu_type=convex
1723                 ;;
1724         i[3456]86-*-*)
1725                 cpu_type=i386
1726                 ;;
1727         hppa*-*-*)
1728                 cpu_type=pa
1729                 ;;
1730         m68000-*-*)
1731                 cpu_type=m68k
1732                 ;;
1733         mips*-*-*)
1734                 cpu_type=mips
1735                 ;;
1736         powerpc*-*-*)
1737                 cpu_type=rs6000
1738                 ;;
1739         pyramid-*-*)
1740                 cpu_type=pyr
1741                 ;;
1742         sparc*-*-*)
1743                 cpu_type=sparc
1744                 ;;
1745         esac
1746
1747         tm_file=${cpu_type}/${cpu_type}.h
1748         xm_file=${cpu_type}/xm-${cpu_type}.h
1749         
1750         case $machine in
1751         # Support site-specific machine types.
1752         *local*)
1753                 cpu_type=`echo $machine | sed -e 's/-.*//'`
1754                 rest=`echo $machine | sed -e "s/$cpu_type-//"`
1755                 xm_file=${cpu_type}/xm-$rest.h
1756                 tm_file=${cpu_type}/$rest.h
1757                 if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \
1758                 then xmake_file=${cpu_type}/x-$rest; \
1759                 else true; \
1760                 fi
1761                 if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
1762                 then tmake_file=${cpu_type}/t-$rest; \
1763                 else true; \
1764                 fi
1765                 ;;
1766         1750a-*-*)
1767                 ;;
1768         a29k-*-bsd* | a29k-*-sym1*)
1769                 tm_file="${tm_file} a29k/unix.h"
1770                 xm_file=a29k/xm-unix.h
1771                 xmake_file=a29k/x-unix
1772                 use_collect2=yes
1773                 ;;
1774         a29k-*-udi | a29k-*-coff)
1775                 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
1776                 tmake_file=a29k/t-a29kbare
1777                 ;;
1778         a29k-*-vxworks*)
1779                 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
1780                 tmake_file=a29k/t-vx29k
1781                 extra_parts="crtbegin.o crtend.o"
1782                 ;;
1783         a29k-*-*)                       # Default a29k environment.
1784                 use_collect2=yes
1785                 ;;
1786         alpha*-*-linux-gnuecoff*)
1787                 tm_file="${tm_file} alpha/linux.h"
1788                 xm_file="${xm_file} alpha/xm-linux.h"
1789                 target_cpu_default="MASK_GAS"
1790                 gas=no
1791                 xmake_file=none
1792                 fixincludes=Makefile.in
1793                 gas=yes gnu_ld=yes
1794                 ;;
1795         alpha*-*-linux-gnulibc1*)
1796                 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
1797                 xm_file="${xm_file} alpha/xm-linux.h"
1798                 target_cpu_default="MASK_GAS"
1799                 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux"
1800                 xmake_file=none
1801                 fixincludes=Makefile.in
1802                 gas=yes gnu_ld=yes
1803                 if [ x$enable_threads = xyes ]; then
1804                         thread_file='posix'
1805                 fi
1806                 ;;
1807         alpha*-*-linux-gnu*)
1808                 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
1809                 xm_file="${xm_file} alpha/xm-linux.h"
1810                 target_cpu_default="MASK_GAS"
1811                 tmake_file="t-linux alpha/t-linux"
1812                 xmake_file=none
1813                 fixincludes=Makefile.in
1814                 gas=yes gnu_ld=yes
1815                 if [ x$enable_threads = xyes ]; then
1816                         thread_file='posix'
1817                 fi
1818                 ;;
1819         alpha*-dec-osf[456789]*)
1820                 if [ x$stabs = xyes ]
1821                 then
1822                         tm_file="${tm_file} dbx.h"
1823                 fi
1824                 if [ x$gas != xyes ]
1825                 then
1826                         extra_passes="mips-tfile mips-tdump"
1827                 fi
1828                 use_collect2=yes
1829                 # Some versions of OSF4 (specifically X4.0-9 296.7) have
1830                 # a broken tar, so we use cpio instead.
1831                 case $machine in
1832                   alpha*-dec-osf4*)
1833                     install_headers_dir=install-headers-cpio
1834                     ;;
1835                 esac
1836                 ;;
1837         alpha*-dec-osf[23]*)
1838                 tm_file="${tm_file} alpha/osf2or3.h"
1839                 if [ x$stabs = xyes ]
1840                 then
1841                         tm_file="${tm_file} dbx.h"
1842                 fi
1843                 if [ x$gas != xyes ]
1844                 then
1845                         extra_passes="mips-tfile mips-tdump"
1846                 fi
1847                 use_collect2=yes
1848                 ;;
1849         alpha*-dec-osf1.2)
1850                 tm_file="${tm_file} alpha/osf12.h"
1851                 if [ x$stabs = xyes ]
1852                 then
1853                         tm_file="${tm_file} dbx.h"
1854                 fi
1855                 if [ x$gas != xyes ]
1856                 then
1857                         extra_passes="mips-tfile mips-tdump"
1858                 fi
1859                 use_collect2=yes
1860                 ;;
1861         alpha*-*-osf*)
1862                 if [ x$stabs = xyes ]
1863                 then
1864                         tm_file="${tm_file} dbx.h"
1865                 fi
1866                 if [ x$gas != xyes ]
1867                 then
1868                         extra_passes="mips-tfile mips-tdump"
1869                 fi
1870                 use_collect2=yes
1871                 ;;
1872         alpha*-*-winnt3*)
1873                 tm_file="${tm_file} alpha/win-nt.h"
1874                 target_cpu_default=MASK_WINDOWS_NT
1875                 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
1876                 tmake_file=t-libc-ok
1877                 xmake_file=winnt/x-winnt
1878                 extra_host_objs=oldnames.o
1879                 extra_gcc_objs="spawnv.o oldnames.o"
1880                 fixincludes=fixinc.winnt
1881                 if [ x$gnu_ld != xyes ]
1882                 then
1883                         extra_programs=ld.exe
1884                 fi
1885                 if [ x$enable_threads = xyes ]; then
1886                         thread_file='win32'
1887                 fi
1888                 ;;
1889         alpha*-dec-vms*)
1890                 tm_file=alpha/vms.h
1891                 xm_file="${xm_file} alpha/xm-vms.h"
1892                 tmake_file=alpha/t-vms
1893                 fixincludes=Makefile.in
1894                 ;;
1895         arc-*-elf*)
1896                 extra_parts="crtinit.o crtfini.o"
1897                 ;;
1898         arm-*-coff* | armel-*-coff*)
1899                 tm_file=arm/coff.h
1900                 tmake_file=arm/t-bare
1901                 ;;
1902         arm-*-riscix1.[01]*)            # Acorn RISC machine (early versions)
1903                 tm_file=arm/riscix1-1.h
1904                 use_collect2=yes
1905                 ;;
1906         arm-*-riscix*)                  # Acorn RISC machine
1907                 if [ x$gas = xyes ]
1908                 then
1909                     tm_file=arm/rix-gas.h
1910                 else
1911                     tm_file=arm/riscix.h
1912                 fi
1913                 xmake_file=arm/x-riscix
1914                 tmake_file=arm/t-riscix
1915                 use_collect2=yes
1916                 ;;
1917         arm-semi-aout | armel-semi-aout)
1918                 tm_file=arm/semi.h
1919                 tmake_file=arm/t-semi
1920                 fixincludes=Makefile.in # There is nothing to fix
1921                 ;;
1922         arm-semi-aof | armel-semi-aof)
1923                 tm_file=arm/semiaof.h
1924                 tmake_file=arm/t-semiaof
1925                 fixincludes=Makefile.in # There is nothing to fix
1926                 ;;
1927         arm-*-netbsd*)
1928                 tm_file=arm/netbsd.h
1929                 xm_file=arm/xm-netbsd.h
1930                 tmake_file=arm/t-netbsd
1931                 # On NetBSD, the headers are already okay, except for math.h.
1932                 fixincludes=fixinc.math
1933                 use_collect2=yes
1934                 ;;
1935         arm-*-linux-gnuaout*)           # ARM Linux
1936                 cpu_type=arm
1937                 xm_file=arm/xm-linux.h
1938                 xmake_file=x-linux
1939                 tm_file=arm/linux-gas.h
1940                 tmake_file=arm/t-linux
1941                 fixincludes=Makefile.in
1942                 gnu_ld=yes
1943                 ;;
1944         arm-*-aout)
1945                 tm_file=arm/aout.h
1946                 ;;
1947         c1-convex-*)                    # Convex C1
1948                 target_cpu_default=1
1949                 use_collect2=yes
1950                 fixincludes=Makefile.in
1951                 ;;
1952         c2-convex-*)                    # Convex C2
1953                 target_cpu_default=2
1954                 use_collect2=yes
1955                 fixincludes=Makefile.in
1956                 ;;
1957         c32-convex-*)
1958                 target_cpu_default=4
1959                 use_collect2=yes
1960                 fixincludes=Makefile.in
1961                 ;;
1962         c34-convex-*)
1963                 target_cpu_default=8
1964                 use_collect2=yes
1965                 fixincludes=Makefile.in
1966                 ;;
1967         c38-convex-*)
1968                 target_cpu_default=16           
1969                 use_collect2=yes
1970                 fixincludes=Makefile.in
1971                 ;;
1972         clipper-intergraph-clix*)
1973                 tm_file="${tm_file} svr3.h clipper/clix.h"
1974                 xm_file=clipper/xm-clix.h
1975                 xmake_file=clipper/x-clix
1976                 extra_headers=va-clipper.h
1977                 extra_parts="crtbegin.o crtend.o"
1978                 install_headers_dir=install-headers-cpio
1979                 ;;
1980         dsp16xx-*)
1981                 ;;
1982         elxsi-elxsi-*)
1983                 use_collect2=yes
1984                 ;;
1985 # This hasn't been upgraded to GCC 2.
1986 #       fx80-alliant-*)                 # Alliant FX/80
1987 #               ;;
1988         h8300-*-*)
1989                 float_format=i32
1990                 ;;
1991         hppa1.1-*-pro*)
1992                 if [ x$enable_haifa != xno ]; then
1993                         enable_haifa=yes
1994                 fi
1995                 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
1996                 xm_file=pa/xm-papro.h
1997                 tmake_file=pa/t-pro
1998                 ;;
1999         hppa1.1-*-osf*)
2000                 if [ x$enable_haifa != xno ]; then
2001                         enable_haifa=yes
2002                 fi
2003                 target_cpu_default=1
2004                 tm_file="${tm_file} pa/pa-osf.h"
2005                 use_collect2=yes
2006                 fixincludes=Makefile.in
2007                 ;;
2008         hppa1.1-*-rtems*)
2009                 if [ x$enable_haifa != xno ]; then
2010                         enable_haifa=yes
2011                 fi
2012                 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2013                 xm_file=pa/xm-papro.h
2014                 tmake_file=pa/t-pro
2015                 ;;
2016         hppa1.0-*-osf*)
2017                 if [ x$enable_haifa != xno ]; then
2018                         enable_haifa=yes
2019                 fi
2020                 tm_file="${tm_file} pa/pa-osf.h"
2021                 use_collect2=yes
2022                 fixincludes=Makefile.in
2023                 ;;
2024         hppa1.1-*-bsd*)
2025                 if [ x$enable_haifa != xno ]; then
2026                         enable_haifa=yes
2027                 fi
2028                 target_cpu_default=1
2029                 use_collect2=yes
2030                 fixincludes=Makefile.in
2031                 ;;
2032         hppa1.0-*-bsd*)
2033                 if [ x$enable_haifa != xno ]; then
2034                         enable_haifa=yes
2035                 fi
2036                 use_collect2=yes
2037                 fixincludes=Makefile.in
2038                 ;;
2039         hppa1.0-*-hpux7*)
2040                 if [ x$enable_haifa != xno ]; then
2041                         enable_haifa=yes
2042                 fi
2043                 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2044                 xm_file=pa/xm-pahpux.h
2045                 xmake_file=pa/x-pa-hpux
2046                 if [ x$gas = xyes ]
2047                 then
2048                         tm_file="${tm_file} pa/gas.h"
2049                 fi
2050                 install_headers_dir=install-headers-cpio
2051                 use_collect2=yes
2052                 ;;
2053         hppa1.0-*-hpux8.0[0-2]*)
2054                 if [ x$enable_haifa != xno ]; then
2055                         enable_haifa=yes
2056                 fi
2057                 tm_file="${tm_file} pa/pa-hpux.h"
2058                 xm_file=pa/xm-pahpux.h
2059                 xmake_file=pa/x-pa-hpux
2060                 if [ x$gas = xyes ]
2061                 then
2062                         tm_file="${tm_file} pa/pa-gas.h"
2063                 else
2064                         tm_file="pa/pa-oldas.h ${tm_file}"
2065                 fi
2066                 install_headers_dir=install-headers-cpio
2067                 use_collect2=yes
2068                 ;;
2069         hppa1.1-*-hpux8.0[0-2]*)
2070                 if [ x$enable_haifa != xno ]; then
2071                         enable_haifa=yes
2072                 fi
2073                 target_cpu_default=1
2074                 tm_file="${tm_file} pa/pa-hpux.h"
2075                 xm_file=pa/xm-pahpux.h
2076                 xmake_file=pa/x-pa-hpux
2077                 if [ x$gas = xyes ]
2078                 then
2079                         tm_file="${tm_file} pa/pa-gas.h"
2080                 else
2081                         tm_file="pa/pa-oldas.h ${tm_file}"
2082                 fi
2083                 install_headers_dir=install-headers-cpio
2084                 use_collect2=yes
2085                 ;;
2086         hppa1.1-*-hpux8*)
2087                 if [ x$enable_haifa != xno ]; then
2088                         enable_haifa=yes
2089                 fi
2090                 target_cpu_default=1
2091                 tm_file="${tm_file} pa/pa-hpux.h"
2092                 xm_file=pa/xm-pahpux.h
2093                 xmake_file=pa/x-pa-hpux
2094                 if [ x$gas = xyes ]
2095                 then
2096                         tm_file="${tm_file} pa/pa-gas.h"
2097                 fi
2098                 install_headers_dir=install-headers-cpio
2099                 use_collect2=yes
2100                 ;;
2101         hppa1.0-*-hpux8*)
2102                 if [ x$enable_haifa != xno ]; then
2103                         enable_haifa=yes
2104                 fi
2105                 tm_file="${tm_file} pa/pa-hpux.h"
2106                 xm_file=pa/xm-pahpux.h
2107                 xmake_file=pa/x-pa-hpux
2108                 if [ x$gas = xyes ]
2109                 then
2110                         tm_file="${tm_file} pa/pa-gas.h"
2111                 fi
2112                 install_headers_dir=install-headers-cpio
2113                 use_collect2=yes
2114                 ;;
2115         hppa1.1-*-hpux10*)
2116                 if [ x$enable_haifa != xno ]; then
2117                         enable_haifa=yes
2118                 fi
2119                 target_cpu_default=1
2120                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2121                 xm_file=pa/xm-pahpux.h
2122                 xmake_file=pa/x-pa-hpux
2123                 if [ x$gas = xyes ]
2124                 then
2125                         tm_file="${tm_file} pa/pa-gas.h"
2126                 fi
2127                 install_headers_dir=install-headers-cpio
2128                 use_collect2=yes
2129                 ;;
2130         hppa1.0-*-hpux10*)
2131                 if [ x$enable_haifa != xno ]; then
2132                         enable_haifa=yes
2133                 fi
2134                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2135                 xm_file=pa/xm-pahpux.h
2136                 xmake_file=pa/x-pa-hpux
2137                 if [ x$gas = xyes ]
2138                 then
2139                         tm_file="${tm_file} pa/pa-gas.h"
2140                 fi
2141                 install_headers_dir=install-headers-cpio
2142                 use_collect2=yes
2143                 ;;
2144         hppa1.1-*-hpux*)
2145                 if [ x$enable_haifa != xno ]; then
2146                         enable_haifa=yes
2147                 fi
2148                 target_cpu_default=1
2149                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2150                 xm_file=pa/xm-pahpux.h
2151                 xmake_file=pa/x-pa-hpux
2152                 if [ x$gas = xyes ]
2153                 then
2154                         tm_file="${tm_file} pa/pa-gas.h"
2155                 fi
2156                 install_headers_dir=install-headers-cpio
2157                 use_collect2=yes
2158                 ;;
2159         hppa1.0-*-hpux*)
2160                 if [ x$enable_haifa != xno ]; then
2161                         enable_haifa=yes
2162                 fi
2163                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2164                 xm_file=pa/xm-pahpux.h
2165                 xmake_file=pa/x-pa-hpux
2166                 if [ x$gas = xyes ]
2167                 then
2168                         tm_file="${tm_file} pa/pa-gas.h"
2169                 fi
2170                 install_headers_dir=install-headers-cpio
2171                 use_collect2=yes
2172                 ;;
2173         hppa1.1-*-hiux*)
2174                 if [ x$enable_haifa != xno ]; then
2175                         enable_haifa=yes
2176                 fi
2177                 target_cpu_default=1
2178                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2179                 xm_file=pa/xm-pahpux.h
2180                 xmake_file=pa/x-pa-hpux
2181                 if [ x$gas = xyes ]
2182                 then
2183                         tm_file="${tm_file} pa/pa-gas.h"
2184                 fi
2185                 install_headers_dir=install-headers-cpio
2186                 use_collect2=yes
2187                 ;;
2188         hppa1.0-*-hiux*)
2189                 if [ x$enable_haifa != xno ]; then
2190                         enable_haifa=yes
2191                 fi
2192                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2193                 xm_file=pa/xm-pahpux.h
2194                 xmake_file=pa/x-pa-hpux
2195                 if [ x$gas = xyes ]
2196                 then
2197                         tm_file="${tm_file} pa/pa-gas.h"
2198                 fi
2199                 install_headers_dir=install-headers-cpio
2200                 use_collect2=yes
2201                 ;;
2202         hppa*-*-lites*)
2203                 if [ x$enable_haifa != xno ]; then
2204                         enable_haifa=yes
2205                 fi
2206                 target_cpu_default=1
2207                 use_collect2=yes
2208                 fixincludes=Makefile.in
2209                 ;;
2210         i370-*-mvs*)
2211                 ;;
2212         i[3456]86-ibm-aix*)             # IBM PS/2 running AIX
2213                 if [ x$gas = xyes ]
2214                 then
2215                         tm_file=i386/aix386.h
2216                         extra_parts="crtbegin.o crtend.o"
2217                         tmake_file=i386/t-crtstuff
2218                 else
2219                         tm_file=i386/aix386ng.h
2220                         use_collect2=yes
2221                 fi
2222                 xm_file=i386/xm-aix.h
2223                 xmake_file=i386/x-aix
2224                 ;;
2225         i486-ncr-sysv4*)                # NCR 3000 - i486 running system V.4
2226                 xm_file=i386/xm-sysv4.h
2227                 xmake_file=i386/x-ncr3000
2228                 if [ x$stabs = xyes -a x$gas = xyes ]
2229                 then
2230                         tm_file=i386/sysv4gdb.h
2231                 else
2232                         tm_file=i386/sysv4.h
2233                 fi
2234                 extra_parts="crtbegin.o crtend.o"
2235                 tmake_file=i386/t-crtpic
2236                 ;;
2237         i[3456]86-next-*)
2238                 tm_file=i386/next.h
2239                 xm_file=i386/xm-next.h
2240                 tmake_file=i386/t-next
2241                 xmake_file=i386/x-next
2242                 extra_objs=nextstep.o
2243                 if [ x$enable_threads = xyes ]; then
2244                         thread_file='mach'
2245                 fi
2246                 ;;
2247         i[3456]86-sequent-bsd*)                 # 80386 from Sequent
2248                 use_collect2=yes
2249                 if [ x$gas = xyes ]
2250                 then
2251                         tm_file=i386/seq-gas.h
2252                 else
2253                         tm_file=i386/sequent.h
2254                 fi
2255                 ;;
2256         i[3456]86-sequent-ptx1*)
2257                 xm_file=i386/xm-sysv3.h
2258                 xmake_file=i386/x-sysv3
2259                 tm_file=i386/seq-sysv3.h
2260                 tmake_file=i386/t-crtstuff
2261                 fixincludes=fixinc.ptx
2262                 extra_parts="crtbegin.o crtend.o"
2263                 install_headers_dir=install-headers-cpio
2264                 ;;
2265         i[3456]86-sequent-ptx2* | i[3456]86-sequent-sysv3*)
2266                 xm_file=i386/xm-sysv3.h
2267                 xmake_file=i386/x-sysv3
2268                 tm_file=i386/seq2-sysv3.h
2269                 tmake_file=i386/t-crtstuff
2270                 extra_parts="crtbegin.o crtend.o"
2271                 fixincludes=fixinc.ptx
2272                 install_headers_dir=install-headers-cpio
2273                 ;;
2274         i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4*)
2275                 xm_file=i386/xm-sysv4.h
2276                 xmake_file=x-svr4
2277                 tm_file=i386/ptx4-i.h
2278                 tmake_file=t-svr4
2279                 extra_parts="crtbegin.o crtend.o"
2280                 fixincludes=fixinc.ptx
2281                 install_headers_dir=install-headers-cpio
2282                 ;;
2283         i386-sun-sunos*)                # Sun i386 roadrunner
2284                 xm_file=i386/xm-sun.h
2285                 tm_file=i386/sun.h
2286                 use_collect2=yes
2287                 ;;
2288         i[3456]86-*-aout*)
2289                 tm_file=i386/i386-aout.h
2290                 tmake_file=i386/t-i386bare
2291                 ;;
2292         i[3456]86-*-bsdi* | i[345]86-*-bsd386*)
2293                 tm_file=i386/bsd386.h
2294                 xm_file=i386/xm-bsd386.h
2295 #               tmake_file=t-libc-ok
2296                 ;;
2297         i[3456]86-*-bsd*)
2298                 tm_file=i386/386bsd.h
2299                 xm_file=i386/xm-bsd386.h
2300 #               tmake_file=t-libc-ok
2301 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2302 #               use_collect2=yes
2303                 ;;
2304         i[3456]86-*-freebsdelf*)
2305                 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2306                 xm_file=i386/xm-freebsd.h
2307                 # On FreeBSD, the headers are already ok, except for math.h.
2308                 fixincludes=fixinc.math
2309                 tmake_file=i386/t-freebsd
2310                 gas=yes
2311                 gnu_ld=yes
2312                 stabs=yes
2313                 ;;
2314         i[3456]86-*-freebsd*)
2315                 tm_file=i386/freebsd.h
2316                 xm_file=i386/xm-freebsd.h
2317                 # On FreeBSD, the headers are already ok, except for math.h.
2318                 fixincludes=fixinc.math
2319                 tmake_file=i386/t-freebsd
2320                 ;;
2321         i[3456]86-*-netbsd*)
2322                 tm_file=i386/netbsd.h
2323                 xm_file=i386/xm-netbsd.h
2324                 # On NetBSD, the headers are already okay, except for math.h.
2325                 fixincludes=fixinc.math
2326                 tmake_file=t-netbsd
2327                 ;;
2328         i[3456]86-*-coff*)
2329                 tm_file=i386/i386-coff.h
2330                 tmake_file=i386/t-i386bare
2331                 ;;
2332         i[3456]86-*-isc*)               # 80386 running ISC system
2333                 xm_file=i386/xm-isc.h
2334                 case $machine in
2335                   i[345]86-*-isc[34]*)
2336                     xmake_file=i386/x-isc3
2337                     ;;
2338                   *)
2339                     xmake_file=i386/x-isc
2340                     ;;
2341                 esac
2342                 if [ x$gas = xyes -a x$stabs = xyes ]
2343                 then
2344                         tm_file=i386/iscdbx.h
2345                         tmake_file=i386/t-svr3dbx
2346                         extra_parts="svr3.ifile svr3z.ifile"
2347                 else
2348                         tm_file=i386/isccoff.h
2349                         tmake_file=i386/t-crtstuff
2350                         extra_parts="crtbegin.o crtend.o"
2351                 fi
2352                 install_headers_dir=install-headers-cpio
2353                 ;;
2354         i[3456]86-*-linux-gnuoldld*)    # Intel 80386's running Linux
2355                 xm_file=i386/xm-linux.h # with a.out format using pre BFD linkers
2356                 xmake_file=x-linux-aout
2357                 tmake_file="t-linux-aout i386/t-crtstuff"
2358                 tm_file=i386/linux-oldld.h
2359                 fixincludes=Makefile.in #On Linux, the headers are ok already.
2360                 gnu_ld=yes
2361                 ;;
2362         i[3456]86-*-linux-gnuaout*)             # Intel 80386's running Linux
2363                 xm_file=i386/xm-linux.h         # with a.out format
2364                 xmake_file=x-linux-aout
2365                 tmake_file="t-linux-aout i386/t-crtstuff"
2366                 tm_file=i386/linux-aout.h
2367                 fixincludes=Makefile.in #On Linux, the headers are ok already.
2368                 gnu_ld=yes
2369                 ;;
2370         i[3456]86-*-linux-gnulibc1)
2371                 xm_file=i386/xm-linux.h # Intel 80386's running Linux
2372                 xmake_file=x-linux      # with ELF format using the
2373                 tm_file=i386/linux.h    # Linux C library 5
2374                 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2375                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2376                 fixincludes=Makefile.in #On Linux, the headers are ok already.
2377                 gnu_ld=yes
2378                 if [ x$enable_threads = xyes ]; then
2379                         thread_file='single'
2380                 fi
2381                 ;;
2382         i[3456]86-*-linux-gnu*)         # Intel 80386's running Linux
2383                 xm_file=i386/xm-linux.h # with ELF format using glibc 2
2384                 xmake_file=x-linux      # aka Linux C library 6
2385                 tm_file=i386/linux.h
2386                 tmake_file="t-linux i386/t-crtstuff"
2387                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2388                 fixincludes=Makefile.in #On Linux, the headers are ok already.
2389                 gnu_ld=yes
2390                 if [ x$enable_threads = xyes ]; then
2391                         thread_file='posix'
2392                 fi
2393                 ;;
2394         i[3456]86-*-gnu*)
2395                 ;;
2396         i[3456]86-go32-msdos | i[3456]86-*-go32*)
2397                 xm_file=i386/xm-go32.h
2398                 tm_file=i386/go32.h
2399                 tmake_file=i386/t-go32
2400                 ;;
2401         i[3456]86-moss-msdos* | i[3456]86-*-moss*)
2402                 tm_file=i386/moss.h
2403                 tmake_file=t-libc-ok
2404                 fixincludes=Makefile.in
2405                 gnu_ld=yes
2406                 gas=yes
2407                 ;;
2408         i[3456]86-*-lynxos*)
2409                 if [ x$gas = xyes ]
2410                 then
2411                         tm_file=i386/lynx.h
2412                 else
2413                         tm_file=i386/lynx-ng.h
2414                 fi
2415                 xm_file=i386/xm-lynx.h
2416                 tmake_file=i386/t-i386bare
2417                 xmake_file=x-lynx
2418                 ;;
2419         i[3456]86-*-mach*)
2420                 tm_file=i386/mach.h
2421 #               tmake_file=t-libc-ok
2422                 use_collect2=yes
2423                 ;;
2424         i[3456]86-*-osfrose*)           # 386 using OSF/rose
2425                 if [ x$elf = xyes ]
2426                 then
2427                         tm_file=i386/osfelf.h
2428                         use_collect2=
2429                 else
2430                         tm_file=i386/osfrose.h
2431                         use_collect2=yes
2432                 fi
2433                 xm_file=i386/xm-osf.h
2434                 xmake_file=i386/x-osfrose
2435                 tmake_file=i386/t-osf
2436                 extra_objs=halfpic.o
2437                 ;;
2438         i[345]86-go32-rtems*)
2439                 cpu_type=i386
2440                 xm_file=i386/xm-go32.h
2441                 tm_file=i386/go32-rtems.h
2442                 tmake_file="i386/t-go32 t-rtems"
2443                 ;;
2444         i[345]86-*-rtems*)
2445                 cpu_type=i386
2446                 tm_file=i386/rtems.h
2447                 tmake_file="i386/t-i386bare t-rtems"
2448                 ;;
2449         i[3456]86-*-sco3.2v5*)          # 80386 running SCO Open Server 5
2450                 xm_file=i386/xm-sco5.h
2451                 xmake_file=i386/x-sco5
2452                 fixincludes=fixinc.sco
2453                 tm_file=i386/sco5.h
2454                 tmake_file=i386/t-sco5
2455                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2456                 ;;
2457         i[3456]86-*-sco3.2v4*)          # 80386 running SCO 3.2v4 system
2458                 xm_file=i386/xm-sco.h
2459                 xmake_file=i386/x-sco4
2460                 fixincludes=fixinc.sco
2461                 install_headers_dir=install-headers-cpio
2462                 if [ x$stabs = xyes ]
2463                 then
2464                         tm_file=i386/sco4dbx.h
2465                         tmake_file=i386/t-svr3dbx
2466                         extra_parts="svr3.ifile svr3z.rfile"
2467                 else
2468                         tm_file=i386/sco4.h
2469                         tmake_file=i386/t-crtstuff
2470                         extra_parts="crtbegin.o crtend.o"
2471                 fi
2472                 truncate_target=yes
2473                 ;;
2474         i[3456]86-*-sco*)               # 80386 running SCO system
2475                 xm_file=i386/xm-sco.h
2476                 xmake_file=i386/x-sco
2477                 install_headers_dir=install-headers-cpio
2478                 if [ x$stabs = xyes ]
2479                 then
2480                         tm_file=i386/scodbx.h
2481                         tmake_file=i386/t-svr3dbx
2482                         extra_parts="svr3.ifile svr3z.rfile"
2483                 else
2484                         tm_file=i386/sco.h
2485                         extra_parts="crtbegin.o crtend.o"
2486                         tmake_file=i386/t-crtstuff
2487                 fi
2488                 truncate_target=yes
2489                 ;;
2490         i[3456]86-*-solaris2*)
2491                 xm_file=i386/xm-sysv4.h
2492                 if [ x$stabs = xyes ]
2493                 then
2494                         tm_file=i386/sol2dbg.h
2495                 else
2496                         tm_file=i386/sol2.h
2497                 fi
2498                 tmake_file=i386/t-sol2
2499                 extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
2500                 xmake_file=x-svr4
2501                 fixincludes=fixinc.svr4
2502                 if [ x$enable_threads = xyes ]; then
2503                         thread_file='solaris'
2504                 fi
2505                 ;;
2506         i[3456]86-*-sysv4*)             # Intel 80386's running system V.4
2507                 xm_file=i386/xm-sysv4.h
2508                 tm_file=i386/sysv4.h
2509                 if [ x$stabs = xyes ]
2510                 then
2511                         tm_file="${tm_file} dbx.h"
2512                 fi
2513                 tmake_file=i386/t-crtpic
2514                 xmake_file=x-svr4
2515                 extra_parts="crtbegin.o crtend.o"
2516                 ;;
2517         i[3456]86-*-sysv*)              # Intel 80386's running system V
2518                 xm_file=i386/xm-sysv3.h
2519                 xmake_file=i386/x-sysv3
2520                 if [ x$gas = xyes ]
2521                 then
2522                         if [ x$stabs = xyes ]
2523                         then
2524                                 tm_file=i386/svr3dbx.h
2525                                 tmake_file=i386/t-svr3dbx
2526                                 extra_parts="svr3.ifile svr3z.rfile"
2527                         else
2528                                 tm_file=i386/svr3gas.h
2529                                 extra_parts="crtbegin.o crtend.o"
2530                                 tmake_file=i386/t-crtstuff
2531                         fi
2532                 else
2533                         tm_file=i386/sysv3.h
2534                         extra_parts="crtbegin.o crtend.o"
2535                         tmake_file=i386/t-crtstuff
2536                 fi
2537                 ;;
2538         i386-*-vsta)                    # Intel 80386's running VSTa kernel
2539                 xm_file=i386/xm-vsta.h
2540                 tm_file=i386/vsta.h
2541                 tmake_file=i386/t-vsta
2542                 xmake_file=i386/x-vsta
2543                 ;;
2544         i[3456]86-*-pe | i[3456]86-*-cygwin32)
2545                 xm_file="${xm_file} i386/xm-cygwin32.h"
2546                 tmake_file=i386/t-cygwin32
2547                 tm_file=i386/cygwin32.h
2548                 xmake_file=i386/x-cygwin32
2549                 extra_objs=winnt.o
2550                 fixincludes=Makefile.in
2551                 if [ x$enable_threads = xyes ]; then
2552                         thread_file='win32'
2553                 fi
2554                 exeext=.exe
2555                 ;;
2556         i[3456]86-*-mingw32)
2557                 tm_file=i386/mingw32.h
2558                 xm_file="${xm_file} i386/xm-mingw32.h"
2559                 tmake_file=i386/t-cygwin32
2560                 extra_objs=winnt.o
2561                 xmake_file=i386/x-cygwin32
2562                 fixincludes=Makefile.in
2563                 if [ x$enable_threads = xyes ]; then
2564                         thread_file='win32'
2565                 fi
2566                 exeext=.exe
2567                 ;;
2568         i[3456]86-*-winnt3*)
2569                 tm_file=i386/win-nt.h
2570                 out_file=i386/i386.c
2571                 xm_file=i386/xm-winnt.h
2572                 xmake_file=winnt/x-winnt
2573                 tmake_file=i386/t-winnt
2574                 extra_host_objs="winnt.o oldnames.o"
2575                 extra_gcc_objs="spawnv.o oldnames.o"
2576                 fixincludes=fixinc.winnt
2577                 if [ x$gnu_ld != xyes ]
2578                 then
2579                         extra_programs=ld.exe
2580                 fi
2581                 if [ x$enable_threads = xyes ]; then
2582                         thread_file='win32'
2583                 fi
2584                 ;;
2585         i[3456]86-dg-dgux)
2586                 xm_file=i386/xm-dgux.h
2587                 out_file=i386/dgux.c
2588                 tm_file=i386/dgux.h
2589                 tmake_file=i386/t-dgux
2590                 xmake_file=i386/x-dgux
2591                 fixincludes=fixinc.dgux
2592                 install_headers_dir=install-headers-cpio
2593               ;;
2594         i860-alliant-*)         # Alliant FX/2800
2595                 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
2596                 xm_file="${xm_file} i860/xm-fx2800.h"
2597                 xmake_file=i860/x-fx2800
2598                 tmake_file=i860/t-fx2800
2599                 extra_parts="crtbegin.o crtend.o"
2600                 ;;
2601         i860-*-bsd*)
2602                 tm_file="${tm_file} i860/bsd.h"
2603                 if [ x$gas = xyes ]
2604                 then
2605                         tm_file="${tm_file} i860/bsd-gas.h"
2606                 fi
2607                 use_collect2=yes
2608                 ;;
2609         i860-*-mach*)
2610                 tm_file="${tm_file} i860/mach.h"
2611                 tmake_file=t-libc-ok
2612                 ;;
2613         i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
2614                 tm_file="${tm_file} svr3.h i860/paragon.h"
2615                 xm_file="${xm_file} xm-svr3.h"
2616                 tmake_file=t-osf
2617                 ;;
2618         i860-*-sysv3*)
2619                 tm_file="${tm_file} svr3.h i860/sysv3.h"
2620                 xm_file="${tm_file} xm-svr3.h"
2621                 xmake_file=i860/x-sysv3
2622                 extra_parts="crtbegin.o crtend.o"
2623                 ;;
2624         i860-*-sysv4*)
2625                 tm_file="${tm_file} svr4.h i860/sysv4.h"
2626                 xm_file="${xm_file} xm-svr3.h"
2627                 xmake_file=i860/x-sysv4
2628                 tmake_file=t-svr4
2629                 extra_parts="crtbegin.o crtend.o"
2630                 ;;
2631         i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
2632                 tm_file="${tm_file} i960/vx960.h"
2633                 tmake_file=i960/t-vxworks960
2634                 use_collect2=yes
2635                 ;;
2636         i960-wrs-vxworks5*)
2637                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2638                 tmake_file=i960/t-vxworks960
2639                 use_collect2=yes
2640                 ;;
2641         i960-wrs-vxworks*)
2642                 tm_file="${tm_file} i960/vx960.h"
2643                 tmake_file=i960/t-vxworks960
2644                 use_collect2=yes
2645                 ;;
2646         i960-*-coff*)
2647                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2648                 tmake_file=i960/t-960bare
2649                 use_collect2=yes
2650                 ;;
2651         i960-*-rtems)
2652                 tmake_file="i960/t-960bare t-rtems"
2653                 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2654                 use_collect2=yes
2655                 ;;
2656         i960-*-*)                       # Default i960 environment.
2657                 use_collect2=yes
2658                 ;;
2659         m32r-*-elf*)
2660                 extra_parts="crtinit.o crtfini.o"
2661                 ;;
2662         m68000-convergent-sysv*)
2663                 tm_file=m68k/ctix.h
2664                 xm_file=m68k/xm-3b1.h
2665                 use_collect2=yes
2666                 extra_headers=math-68881.h
2667                 ;;
2668         m68000-hp-bsd*)                 # HP 9000/200 running BSD
2669                 tm_file=m68k/hp2bsd.h
2670                 xmake_file=m68k/x-hp2bsd
2671                 use_collect2=yes
2672                 extra_headers=math-68881.h
2673                 ;;
2674         m68000-hp-hpux*)                # HP 9000 series 300
2675                 xm_file=m68k/xm-hp320.h
2676                 if [ x$gas = xyes ]
2677                 then
2678                         xmake_file=m68k/x-hp320g
2679                         tm_file=m68k/hp310g.h
2680                 else
2681                         xmake_file=m68k/x-hp320
2682                         tm_file=m68k/hp310.h
2683                 fi
2684                 install_headers_dir=install-headers-cpio
2685                 use_collect2=yes
2686                 extra_headers=math-68881.h
2687                 ;;
2688         m68000-sun-sunos3*)
2689                 tm_file=m68k/sun2.h
2690                 use_collect2=yes
2691                 extra_headers=math-68881.h
2692                 ;;
2693         m68000-sun-sunos4*)
2694                 tm_file=m68k/sun2o4.h
2695                 use_collect2=yes
2696                 extra_headers=math-68881.h
2697                 ;;
2698         m68000-att-sysv*)
2699                 xm_file=m68k/xm-3b1.h
2700                 if [ x$gas = xyes ]
2701                 then
2702                         tm_file=m68k/3b1g.h
2703                 else
2704                         tm_file=m68k/3b1.h
2705                 fi
2706                 use_collect2=yes
2707                 extra_headers=math-68881.h
2708                 ;;
2709         m68k-apple-aux*)                # Apple Macintosh running A/UX
2710                 xm_file=m68k/xm-aux.h
2711                 tmake_file=m68k/t-aux
2712                 install_headers_dir=install-headers-cpio
2713                 extra_headers=math-68881.h
2714                 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2715                 tm_file=
2716                 if [ "$gnu_ld" = yes ]
2717                 then
2718                         tm_file="${tm_file} m68k/auxgld.h"
2719                 else
2720                         tm_file="${tm_file} m68k/auxld.h"
2721                 fi
2722                 if [ "$gas" = yes ]
2723                 then
2724                         tm_file="${tm_file} m68k/auxgas.h"
2725                 else
2726                         tm_file="${tm_file} m68k/auxas.h"
2727                 fi
2728                 tm_file="${tm_file} m68k/a-ux.h"
2729                 ;;
2730         m68k-apollo-*)
2731                 tm_file=m68k/apollo68.h
2732                 xmake_file=m68k/x-apollo68
2733                 use_collect2=yes
2734                 extra_headers=math-68881.h
2735                 ;;
2736         m68k-altos-sysv*)                  # Altos 3068
2737                 if [ x$gas = xyes ]
2738                 then
2739                         tm_file=m68k/altos3068.h
2740                         xm_file=m68k/xm-altos3068.h
2741                 else
2742                         echo "The Altos is supported only with the GNU assembler" 1>&2
2743                         exit 1
2744                 fi
2745                 extra_headers=math-68881.h
2746                 ;;
2747         m68k-bull-sysv*)                # Bull DPX/2
2748                 if [ x$gas = xyes ]
2749                 then
2750                         if [ x$stabs = xyes ]
2751                         then
2752                                 tm_file=m68k/dpx2cdbx.h
2753                         else
2754                                 tm_file=m68k/dpx2g.h
2755                         fi
2756                 else
2757                         tm_file=m68k/dpx2.h
2758                 fi
2759                 xm_file=m68k/xm-m68kv.h
2760                 xmake_file=m68k/x-dpx2
2761                 use_collect2=yes
2762                 extra_headers=math-68881.h
2763                 ;;
2764         m68k-atari-sysv4*)              # Atari variant of V.4.
2765                 tm_file=m68k/atari.h
2766                 xm_file=m68k/xm-atari.h
2767                 tmake_file=t-svr4
2768                 extra_parts="crtbegin.o crtend.o"
2769                 extra_headers=math-68881.h
2770                 ;;
2771         m68k-motorola-sysv*)
2772                 tm_file=m68k/mot3300.h
2773                 xm_file=m68k/xm-mot3300.h
2774                 if [ x$gas = xyes ]
2775                 then
2776                         xmake_file=m68k/x-mot3300-gas
2777                         if [ x$gnu_ld = xyes ]
2778                         then
2779                                 tmake_file=m68k/t-mot3300-gald
2780                         else
2781                                 tmake_file=m68k/t-mot3300-gas
2782                                 use_collect2=yes
2783                         fi
2784                 else
2785                         xmake_file=m68k/x-mot3300
2786                         if [ x$gnu_ld = xyes ]
2787                         then
2788                                 tmake_file=m68k/t-mot3300-gld
2789                         else
2790                                 tmake_file=m68k/t-mot3300
2791                                 use_collect2=yes
2792                         fi
2793                 fi
2794                 gdb_needs_out_file_path=yes
2795                 extra_parts="crt0.o mcrt0.o"
2796                 extra_headers=math-68881.h
2797                 ;;
2798         m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
2799                 tm_file=m68k/tower-as.h
2800                 xm_file=m68k/xm-tower.h
2801                 xmake_file=m68k/x-tower
2802                 extra_parts="crtbegin.o crtend.o"
2803                 extra_headers=math-68881.h
2804                 ;;
2805         m68k-plexus-sysv*)
2806                 tm_file=m68k/plexus.h
2807                 xm_file=m68k/xm-plexus.h
2808                 use_collect2=yes
2809                 extra_headers=math-68881.h
2810                 ;;
2811         m68k-tti-*)
2812                 tm_file=m68k/pbb.h
2813                 xm_file=m68k/xm-m68kv.h
2814                 extra_headers=math-68881.h
2815                 ;;
2816         m68k-crds-unos*)
2817                 xm_file=m68k/xm-crds.h
2818                 xmake_file=m68k/x-crds
2819                 tm_file=m68k/crds.h
2820                 use_collect2=yes
2821                 extra_headers=math-68881.h
2822                 ;;
2823         m68k-cbm-sysv4*)                # Commodore variant of V.4.
2824                 tm_file=m68k/amix.h
2825                 xm_file=m68k/xm-amix.h
2826                 xmake_file=m68k/x-amix
2827                 tmake_file=t-svr4
2828                 extra_parts="crtbegin.o crtend.o"
2829                 extra_headers=math-68881.h
2830                 ;;
2831         m68k-ccur-rtu)
2832                 tm_file=m68k/ccur-GAS.h
2833                 xmake_file=m68k/x-ccur
2834                 extra_headers=math-68881.h
2835                 use_collect2=yes
2836                 ;;
2837         m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
2838                 tm_file=m68k/hp3bsd44.h
2839                 xmake_file=m68k/x-hp3bsd44
2840                 use_collect2=yes
2841                 extra_headers=math-68881.h
2842                 ;;
2843         m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
2844                 tm_file=m68k/hp3bsd.h
2845                 use_collect2=yes
2846                 extra_headers=math-68881.h
2847                 ;;
2848         m68k-isi-bsd*)
2849                 if [ x$with_fp = xno ]
2850                 then
2851                         tm_file=m68k/isi-nfp.h
2852                 else
2853                         tm_file=m68k/isi.h
2854                 fi
2855                 use_collect2=yes
2856                 extra_headers=math-68881.h
2857                 ;;
2858         m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2859                 xm_file=m68k/xm-hp320.h
2860                 if [ x$gas = xyes ]
2861                 then
2862                         xmake_file=m68k/x-hp320g
2863                         tm_file=m68k/hp320g.h
2864                 else
2865                         xmake_file=m68k/x-hp320
2866                         tm_file=m68k/hpux7.h
2867                 fi
2868                 install_headers_dir=install-headers-cpio
2869                 use_collect2=yes
2870                 extra_headers=math-68881.h
2871                 ;;
2872         m68k-hp-hpux*)  # HP 9000 series 300
2873                 xm_file=m68k/xm-hp320.h
2874                 if [ x$gas = xyes ]
2875                 then
2876                         xmake_file=m68k/x-hp320g
2877                         tm_file=m68k/hp320g.h
2878                 else
2879                         xmake_file=m68k/x-hp320
2880                         tm_file=m68k/hp320.h
2881                 fi
2882                 install_headers_dir=install-headers-cpio
2883                 use_collect2=yes
2884                 extra_headers=math-68881.h
2885                 ;;
2886         m68k-sun-mach*)
2887                 tm_file=m68k/sun3mach.h
2888                 use_collect2=yes
2889                 extra_headers=math-68881.h
2890                 ;;
2891         m68k-sony-newsos3*)
2892                 if [ x$gas = xyes ]
2893                 then
2894                         tm_file=m68k/news3gas.h
2895                 else
2896                         tm_file=m68k/news3.h
2897                 fi
2898                 use_collect2=yes
2899                 extra_headers=math-68881.h
2900                 ;;
2901         m68k-sony-bsd* | m68k-sony-newsos*)
2902                 if [ x$gas = xyes ]
2903                 then
2904                         tm_file=m68k/newsgas.h
2905                 else
2906                         tm_file=m68k/news.h
2907                 fi
2908                 use_collect2=yes
2909                 extra_headers=math-68881.h
2910                 ;;
2911         m68k-next-nextstep2*)
2912                 tm_file=m68k/next21.h
2913                 xm_file=m68k/xm-next.h
2914                 tmake_file=m68k/t-next
2915                 xmake_file=m68k/x-next
2916                 extra_objs=nextstep.o
2917                 extra_headers=math-68881.h
2918                 use_collect2=yes
2919                 ;;
2920         m68k-next-nextstep3*)
2921                 tm_file=m68k/next.h
2922                 xm_file=m68k/xm-next.h
2923                 tmake_file=m68k/t-next
2924                 xmake_file=m68k/x-next
2925                 extra_objs=nextstep.o
2926                 extra_headers=math-68881.h
2927                 if [ x$enable_threads = xyes ]; then
2928                         thread_file='mach'
2929                 fi
2930                 ;;
2931         m68k-sun-sunos3*)
2932                 if [ x$with_fp = xno ]
2933                 then
2934                         tm_file=m68k/sun3n3.h
2935                 else
2936                         tm_file=m68k/sun3o3.h
2937                 fi
2938                 use_collect2=yes
2939                 extra_headers=math-68881.h
2940                 ;;
2941         m68k-sun-sunos*)                        # For SunOS 4 (the default).
2942                 if [ x$with_fp = xno ]
2943                 then
2944                         tm_file=m68k/sun3n.h
2945                 else
2946                         tm_file=m68k/sun3.h
2947                 fi
2948                 xm_file=m68k/xm-sun3.h
2949                 use_collect2=yes
2950                 extra_headers=math-68881.h
2951                 ;;
2952         m68k-wrs-vxworks*)
2953                 tm_file=m68k/vxm68k.h
2954                 tmake_file=m68k/t-vxworks68
2955                 extra_headers=math-68881.h
2956                 ;;
2957         m68k-*-aout*)
2958                 tmake_file=m68k/t-m68kbare
2959                 tm_file="m68k/m68k-aout.h libgloss.h"
2960                 extra_headers=math-68881.h
2961                 ;;
2962         m68k-*-coff*)
2963                 tmake_file=m68k/t-m68kbare
2964                 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2965                 extra_headers=math-68881.h
2966                 ;;
2967         m68k-*-lynxos*)
2968                 if [ x$gas = xyes ]
2969                 then
2970                         tm_file=m68k/lynx.h
2971                 else
2972                         tm_file=m68k/lynx-ng.h
2973                 fi
2974                 xm_file=m68k/xm-lynx.h
2975                 xmake_file=x-lynx
2976                 tmake_file=m68k/t-lynx
2977                 extra_headers=math-68881.h
2978                 ;;
2979         m68k-*-netbsd*)
2980                 tm_file=m68k/netbsd.h
2981                 xm_file=m68k/xm-netbsd.h
2982                 # On NetBSD, the headers are already okay, except for math.h.
2983                 fixincludes=fixinc.math
2984                 tmake_file=t-netbsd
2985                 ;;
2986         m68k-*-sysv3*)                  # Motorola m68k's running system V.3
2987                 xm_file=m68k/xm-m68kv.h
2988                 xmake_file=m68k/x-m68kv
2989                 extra_parts="crtbegin.o crtend.o"
2990                 extra_headers=math-68881.h
2991                 ;;
2992         m68k-*-sysv4*)                  # Motorola m68k's running system V.4
2993                 tm_file=m68k/m68kv4.h
2994                 xm_file=m68k/xm-m68kv.h
2995                 tmake_file=t-svr4
2996                 extra_parts="crtbegin.o crtend.o"
2997                 extra_headers=math-68881.h
2998                 ;;
2999         m68k-*-linux-gnuaout*)          # Motorola m68k's running Linux
3000                 xm_file=m68k/xm-linux.h # with a.out format
3001                 xmake_file=x-linux
3002                 tm_file=m68k/linux-aout.h
3003                 tmake_file="t-linux-aout m68k/t-linux-aout"
3004                 fixincludes=Makefile.in #On Linux, the headers are ok already.
3005                 extra_headers=math-68881.h
3006                 gnu_ld=yes
3007                 ;;
3008         m68k-*-linux-gnulibc1)          # Motorola m68k's running Linux
3009                 xm_file=m68k/xm-linux.h # with ELF format using the
3010                 xmake_file=x-linux      # Linux C library 5
3011                 tm_file=m68k/linux.h
3012                 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
3013                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3014                 fixincludes=Makefile.in #On Linux, the headers are ok already.
3015                 extra_headers=math-68881.h
3016                 gnu_ld=yes
3017                 ;;
3018         m68k-*-linux-gnu*)                      # Motorola m68k's running Linux
3019                 xm_file=m68k/xm-linux.h # with ELF format using glibc 2
3020                 xmake_file=x-linux      # aka the Linux C library 6.
3021                 tm_file=m68k/linux.h
3022                 tmake_file="t-linux m68k/t-linux"
3023                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3024                 fixincludes=Makefile.in #On Linux, the headers are ok already.
3025                 extra_headers=math-68881.h
3026                 gnu_ld=yes
3027                 if [ x$enable_threads = xyes ]; then
3028                         thread_file='posix'
3029                 fi
3030                 ;;
3031         m68k-*-psos*)
3032                 tmake_file=m68k/t-m68kbare
3033                 tm_file=m68k/m68k-psos.h
3034                 extra_headers=math-68881.h
3035                 ;;
3036         m68k-*-rtems*)
3037                 tmake_file="m68k/t-m68kbare t-rtems"
3038                 tm_file=m68k/rtems.h
3039                 extra_headers=math-68881.h
3040                 ;;
3041
3042         m88k-dg-dgux*)
3043                 case $machine in
3044                   m88k-dg-dguxbcs*)
3045                     tm_file=m88k/dguxbcs.h
3046                     tmake_file=m88k/t-dguxbcs
3047                     ;;
3048                   *)
3049                     tm_file=m88k/dgux.h
3050                     tmake_file=m88k/t-dgux
3051                     ;;
3052                 esac
3053                 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3054                 xmake_file=m88k/x-dgux
3055                 if [ x$gas = xyes ]
3056                 then
3057                         tmake_file=m88k/t-dgux-gas
3058                 fi
3059                 fixincludes=fixinc.dgux
3060                 ;;
3061         m88k-dolphin-sysv3*)
3062                 tm_file=m88k/dolph.h
3063                 extra_parts="crtbegin.o crtend.o"
3064                 xm_file=m88k/xm-sysv3.h
3065                 xmake_file=m88k/x-dolph
3066                 if [ x$gas = xyes ]
3067                 then
3068                         tmake_file=m88k/t-m88k-gas
3069                 fi
3070                 ;;
3071         m88k-tektronix-sysv3)
3072                 tm_file=m88k/tekXD88.h
3073                 extra_parts="crtbegin.o crtend.o"
3074                 xm_file=m88k/xm-sysv3.h
3075                 xmake_file=m88k/x-tekXD88
3076                 if [ x$gas = xyes ]
3077                 then
3078                         tmake_file=m88k/t-m88k-gas
3079                 fi
3080                 ;;
3081         m88k-*-aout*)
3082                 tm_file=m88k/m88k-aout.h
3083                 ;;
3084         m88k-*-coff*)
3085                 tm_file=m88k/m88k-coff.h
3086                 tmake_file=m88k/t-bug
3087                 ;;
3088         m88k-*-luna*)
3089                 tm_file=m88k/luna.h
3090                 extra_parts="crtbegin.o crtend.o"
3091                 if [ x$gas = xyes ]
3092                 then
3093                         tmake_file=m88k/t-luna-gas
3094                 else
3095                         tmake_file=m88k/t-luna
3096                 fi
3097                 ;;
3098         m88k-*-sysv3*)
3099                 tm_file=m88k/sysv3.h
3100                 extra_parts="crtbegin.o crtend.o"
3101                 xm_file=m88k/xm-sysv3.h
3102                 xmake_file=m88k/x-sysv3
3103                 if [ x$gas = xyes ]
3104                 then
3105                         tmake_file=m88k/t-m88k-gas
3106                 fi
3107                 ;;
3108         m88k-*-sysv4*)
3109                 tm_file=m88k/sysv4.h
3110                 extra_parts="crtbegin.o crtend.o"
3111                 xmake_file=m88k/x-sysv4
3112                 tmake_file=m88k/t-sysv4
3113                 ;;
3114         mips-sgi-irix6*)                # SGI System V.4., IRIX 6
3115                 tm_file=mips/iris6.h
3116                 xm_file=mips/xm-iris6.h
3117                 fixincludes=fixinc.irix
3118                 xmake_file=mips/x-iris6
3119                 tmake_file=mips/t-iris6
3120                 if [ x$enable_threads = xyes ]; then
3121                         thread_file='irix'
3122                 fi
3123                 ;;
3124         mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
3125                 tm_file=mips/cross64.h
3126                 xm_file=mips/xm-iris5.h
3127                 fixincludes=Makefile.in
3128                 xmake_file=mips/x-iris
3129                 tmake_file=mips/t-cross64
3130                 # See comment in mips/iris[56].h files.
3131                 use_collect2=yes
3132                 if [ x$enable_threads = xyes ]; then
3133                         thread_file='irix'
3134                 fi
3135                 ;;
3136         mips-sni-sysv4)
3137                 if [ x$gas = xyes ]
3138                 then
3139                         if [ x$stabs = xyes ]
3140                         then
3141                                 tm_file=mips/iris5gdb.h
3142                         else
3143                                 tm_file=mips/sni-gas.h
3144                         fi
3145                 else
3146                         tm_file=mips/sni-svr4.h
3147                 fi
3148                 xm_file=mips/xm-sysv.h
3149                 xmake_file=mips/x-sni-svr4
3150                 tmake_file=mips/t-mips-gas
3151                 if [ x$gnu_ld != xyes ]
3152                 then
3153                         use_collect2=yes
3154                 fi
3155                 ;;
3156         mips-sgi-irix5*)                # SGI System V.4., IRIX 5
3157                 if [ x$gas = xyes ]
3158                 then
3159                         tm_file=mips/iris5gas.h
3160                         if [ x$stabs = xyes ]
3161                         then
3162                                 tm_file="${tm_file} dbx.h"
3163                         fi
3164                 else
3165                         tm_file=mips/iris5.h
3166                 fi
3167                 xm_file=mips/xm-iris5.h
3168                 fixincludes=fixinc.irix
3169                 xmake_file=mips/x-iris
3170                 # mips-tfile doesn't work yet
3171                 tmake_file=mips/t-mips-gas
3172                 # See comment in mips/iris5.h file.
3173                 use_collect2=yes
3174                 if [ x$enable_threads = xyes ]; then
3175                         thread_file='irix'
3176                 fi
3177                 ;;
3178         mips-sgi-irix4loser*)           # Mostly like a MIPS.
3179                 tm_file=mips/iris4loser.h
3180                 if [ x$stabs = xyes ]; then
3181                         tm_file="${tm_file} dbx.h"
3182                 fi
3183                 xm_file=mips/xm-iris4.h
3184                 xmake_file=mips/x-iris
3185                 if [ x$gas = xyes ]
3186                 then
3187                         tmake_file=mips/t-mips-gas
3188                 else
3189                         extra_passes="mips-tfile mips-tdump"
3190                 fi
3191                 if [ x$gnu_ld != xyes ]
3192                 then
3193                         use_collect2=yes
3194                 fi
3195                 if [ x$enable_threads = xyes ]; then
3196                         thread_file='irix'
3197                 fi
3198                 ;;
3199         mips-sgi-irix4*)                # Mostly like a MIPS.
3200                 tm_file=mips/iris4.h
3201                 if [ x$stabs = xyes ]; then
3202                         tm_file="${tm_file} dbx.h"
3203                 fi
3204                 xm_file=mips/xm-iris4.h
3205                 xmake_file=mips/x-iris
3206                 if [ x$gas = xyes ]
3207                 then
3208                         tmake_file=mips/t-mips-gas
3209                 else
3210                         extra_passes="mips-tfile mips-tdump"
3211                 fi
3212                 if [ x$gnu_ld != xyes ]
3213                 then
3214                         use_collect2=yes
3215                 fi
3216                 if [ x$enable_threads = xyes ]; then
3217                         thread_file='irix'
3218                 fi
3219                 ;;
3220         mips-sgi-*)                     # Mostly like a MIPS.
3221                 tm_file=mips/iris3.h
3222                 if [ x$stabs = xyes ]; then
3223                         tm_file="${tm_file} dbx.h"
3224                 fi
3225                 xm_file=mips/xm-iris3.h
3226                 xmake_file=mips/x-iris3
3227                 if [ x$gas = xyes ]
3228                 then
3229                         tmake_file=mips/t-mips-gas
3230                 else
3231                         extra_passes="mips-tfile mips-tdump"
3232                 fi
3233                 if [ x$gnu_ld != xyes ]
3234                 then
3235                         use_collect2=yes
3236                 fi
3237                 ;;
3238         mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
3239                 tm_file=mips/osfrose.h
3240                 xmake_file=mips/x-osfrose
3241                 tmake_file=mips/t-osfrose
3242                 extra_objs=halfpic.o
3243                 use_collect2=yes
3244                 ;;
3245         mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
3246                 tm_file=mips/dec-osf1.h
3247                 if [ x$stabs = xyes ]; then
3248                         tm_file="${tm_file} dbx.h"
3249                 fi
3250                 xmake_file=mips/x-dec-osf1
3251                 if [ x$gas = xyes ]
3252                 then
3253                         tmake_file=mips/t-mips-gas
3254                 else
3255                         tmake_file=mips/t-ultrix
3256                         extra_passes="mips-tfile mips-tdump"
3257                 fi
3258                 if [ x$gnu_ld != xyes ]
3259                 then
3260                         use_collect2=yes
3261                 fi
3262                 ;;
3263         mips-dec-bsd*)                  # Decstation running 4.4 BSD
3264               tm_file=mips/dec-bsd.h
3265               fixincludes=
3266               if [ x$gas = xyes ]
3267               then
3268                         tmake_file=mips/t-mips-gas
3269               else
3270                         tmake_file=mips/t-ultrix
3271                         extra_passes="mips-tfile mips-tdump"
3272               fi
3273               if [ x$gnu_ld != xyes ]
3274               then
3275                         use_collect2=yes
3276               fi
3277               ;;
3278         mips-dec-netbsd*)                  # Decstation running NetBSD
3279                 tm_file=mips/netbsd.h
3280                 xm_file=mips/xm-netbsd.h
3281                 # On NetBSD, the headers are already okay, except for math.h.
3282                 fixincludes=fixinc.math
3283                 tmake_file=t-netbsd
3284                 ;;
3285         mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
3286                 tm_file=mips/news4.h
3287                 if [ x$stabs = xyes ]; then
3288                         tm_file="${tm_file} dbx.h"
3289                 fi
3290                 if [ x$gas = xyes ]
3291                 then
3292                         tmake_file=mips/t-mips-gas
3293                 else
3294                         extra_passes="mips-tfile mips-tdump"
3295                 fi
3296                 if [ x$gnu_ld != xyes ]
3297                 then
3298                         use_collect2=yes
3299                 fi
3300                 xmake_file=mips/x-sony
3301                 ;;
3302         mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
3303                                         # That is based on svr4.
3304                 # t-svr4 is not right because this system doesn't use ELF.
3305                 tm_file=mips/news5.h
3306                 if [ x$stabs = xyes ]; then
3307                         tm_file="${tm_file} dbx.h"
3308                 fi
3309                 xm_file=mips/xm-news.h
3310                 if [ x$gas = xyes ]
3311                 then
3312                         tmake_file=mips/t-mips-gas
3313                 else
3314                         extra_passes="mips-tfile mips-tdump"
3315                 fi
3316                 if [ x$gnu_ld != xyes ]
3317                 then
3318                         use_collect2=yes
3319                 fi
3320                 ;;
3321         mips-tandem-sysv4*)             # Tandem S2 running NonStop UX
3322                 tm_file=mips/svr4-t.h
3323                 if [ x$stabs = xyes ]; then
3324                         tm_file="${tm_file} dbx.h"
3325                 fi
3326                 xm_file=mips/xm-sysv4.h
3327                 xmake_file=mips/x-sysv
3328                 if [ x$gas = xyes ]
3329                 then
3330                         tmake_file=mips/t-mips-gas
3331                         extra_parts="crtbegin.o crtend.o"
3332                 else
3333                         tmake_file=mips/t-mips
3334                         extra_passes="mips-tfile mips-tdump"
3335                 fi
3336                 if [ x$gnu_ld != xyes ]
3337                 then
3338                         use_collect2=yes
3339                 fi
3340                 ;;
3341         mips-*-ultrix* | mips-dec-mach3)        # Decstation.
3342                 tm_file=mips/ultrix.h
3343                 if [ x$stabs = xyes ]; then
3344                         tm_file="${tm_file} dbx.h"
3345                 fi
3346                 xmake_file=mips/x-ultrix
3347                 if [ x$gas = xyes ]
3348                 then
3349                         tmake_file=mips/t-mips-gas
3350                 else
3351                         tmake_file=mips/t-ultrix
3352                         extra_passes="mips-tfile mips-tdump"
3353                 fi
3354                 if [ x$gnu_ld != xyes ]
3355                 then
3356                         use_collect2=yes
3357                 fi
3358                 ;;
3359         mips-*-riscos[56789]bsd*)
3360                 tm_file=mips/bsd-5.h    # MIPS BSD 4.3, RISC-OS 5.0
3361                 if [ x$stabs = xyes ]; then
3362                         tm_file="${tm_file} dbx.h"
3363                 fi
3364                 if [ x$gas = xyes ]
3365                 then
3366                         tmake_file=mips/t-bsd-gas
3367                 else
3368                         tmake_file=mips/t-bsd
3369                         extra_passes="mips-tfile mips-tdump"