OSDN Git Service

Regenerate:
[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.13 
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-ld               arrange to use the specified ld (full pathname)."
18 ac_help="$ac_help
19   --with-gnu-as           arrange to work with GNU as."
20 ac_help="$ac_help
21   --with-as               arrange to use the specified as (full pathname)."
22 ac_help="$ac_help
23   --with-stabs            arrange to use stabs instead of host debug format."
24 ac_help="$ac_help
25   --with-elf              arrange to use ELF instead of host debug format."
26 ac_help="$ac_help
27   --with-local-prefix=DIR specifies directory to put local include."
28 ac_help="$ac_help
29   --with-gxx-include-dir=DIR
30                           specifies directory to put g++ header files."
31 ac_help="$ac_help
32   --enable-checking[=LIST]
33                           enable expensive run-time checks.  With LIST,
34                           enable only specific categories of checks.
35                           Categories are: misc,tree,rtl,gc,gcac; default
36                           is misc,tree,rtl"
37 ac_help="$ac_help
38   --disable-cpp           don't provide a user-visible C preprocessor."
39 ac_help="$ac_help
40   --with-cpp-install-dir=DIR
41                           install the user visible C preprocessor in DIR
42                           (relative to PREFIX) as well as PREFIX/bin."
43 ac_help="$ac_help
44   --enable-c-mbchar       Enable multibyte characters for C and C++."
45 ac_help="$ac_help
46   --enable-threads        enable thread usage for target GCC.
47   --enable-threads=LIB    use LIB thread package for target GCC."
48 ac_help="$ac_help
49   --enable-objc-gc        enable the use of Boehm's garbage collector with
50                           the GNU Objective-C runtime."
51 ac_help="$ac_help
52   --with-dwarf2   force the default debug format to be DWARF2."
53 ac_help="$ac_help
54   --enable-nls            use Native Language Support (disabled by default)"
55 ac_help="$ac_help
56   --disable-nls           do not use Native Language Support"
57 ac_help="$ac_help
58   --with-included-gettext use the GNU gettext library included here"
59 ac_help="$ac_help
60   --with-catgets          use catgets functions if available"
61 ac_help="$ac_help
62   --disable-win32-registry
63                           Disable lookup of installation paths in the
64                          Registry on Windows hosts.
65   --enable-win32-registry Enable registry lookup (default).
66   --enable-win32-registry=KEY
67                           Use KEY instead of GCC version as the last portion
68                          of the registry key."
69 ac_help="$ac_help
70   --with-gc={simple,page} Choose the garbage collection mechanism to use
71                            with the compiler."
72 ac_help="$ac_help
73   --enable-new-gxx-abi
74                           select the new abi for g++. You must select an ABI
75                           at configuration time, so that the correct runtime
76                           support is built. You cannot mix ABIs."
77 ac_help="$ac_help
78   --enable-libstdcxx-v3 
79                           enable libstdc++-v3 for building and installation"
80
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
84 build=NONE
85 cache_file=./config.cache
86 exec_prefix=NONE
87 host=NONE
88 no_create=
89 nonopt=NONE
90 no_recursion=
91 prefix=NONE
92 program_prefix=NONE
93 program_suffix=NONE
94 program_transform_name=s,x,x,
95 silent=
96 site=
97 srcdir=
98 target=NONE
99 verbose=
100 x_includes=NONE
101 x_libraries=NONE
102 bindir='${exec_prefix}/bin'
103 sbindir='${exec_prefix}/sbin'
104 libexecdir='${exec_prefix}/libexec'
105 datadir='${prefix}/share'
106 sysconfdir='${prefix}/etc'
107 sharedstatedir='${prefix}/com'
108 localstatedir='${prefix}/var'
109 libdir='${exec_prefix}/lib'
110 includedir='${prefix}/include'
111 oldincludedir='/usr/include'
112 infodir='${prefix}/info'
113 mandir='${prefix}/man'
114
115 # Initialize some other variables.
116 subdirs=
117 MFLAGS= MAKEFLAGS=
118 SHELL=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
120 ac_max_here_lines=12
121
122 ac_prev=
123 for ac_option
124 do
125
126   # If the previous option needs an argument, assign it.
127   if test -n "$ac_prev"; then
128     eval "$ac_prev=\$ac_option"
129     ac_prev=
130     continue
131   fi
132
133   case "$ac_option" in
134   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135   *) ac_optarg= ;;
136   esac
137
138   # Accept the important Cygnus configure options, so we can diagnose typos.
139
140   case "$ac_option" in
141
142   -bindir | --bindir | --bindi | --bind | --bin | --bi)
143     ac_prev=bindir ;;
144   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145     bindir="$ac_optarg" ;;
146
147   -build | --build | --buil | --bui | --bu)
148     ac_prev=build ;;
149   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
150     build="$ac_optarg" ;;
151
152   -cache-file | --cache-file | --cache-fil | --cache-fi \
153   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154     ac_prev=cache_file ;;
155   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157     cache_file="$ac_optarg" ;;
158
159   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
160     ac_prev=datadir ;;
161   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
162   | --da=*)
163     datadir="$ac_optarg" ;;
164
165   -disable-* | --disable-*)
166     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167     # Reject names that are not valid shell variable names.
168     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170     fi
171     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172     eval "enable_${ac_feature}=no" ;;
173
174   -enable-* | --enable-*)
175     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176     # Reject names that are not valid shell variable names.
177     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179     fi
180     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181     case "$ac_option" in
182       *=*) ;;
183       *) ac_optarg=yes ;;
184     esac
185     eval "enable_${ac_feature}='$ac_optarg'" ;;
186
187   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
189   | --exec | --exe | --ex)
190     ac_prev=exec_prefix ;;
191   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
192   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
193   | --exec=* | --exe=* | --ex=*)
194     exec_prefix="$ac_optarg" ;;
195
196   -gas | --gas | --ga | --g)
197     # Obsolete; use --with-gas.
198     with_gas=yes ;;
199
200   -help | --help | --hel | --he)
201     # Omit some internal or obsolete options to make the list less imposing.
202     # This message is too long to be a string in the A/UX 3.1 sh.
203     cat << EOF
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
206 Configuration:
207   --cache-file=FILE       cache test results in FILE
208   --help                  print this message
209   --no-create             do not create output files
210   --quiet, --silent       do not print \`checking...' messages
211   --version               print the version of autoconf that created configure
212 Directory and file names:
213   --prefix=PREFIX         install architecture-independent files in PREFIX
214                           [$ac_default_prefix]
215   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
216                           [same as prefix]
217   --bindir=DIR            user executables in DIR [EPREFIX/bin]
218   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
219   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
220   --datadir=DIR           read-only architecture-independent data in DIR
221                           [PREFIX/share]
222   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
223   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
224                           [PREFIX/com]
225   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
226   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
227   --includedir=DIR        C header files in DIR [PREFIX/include]
228   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
229   --infodir=DIR           info documentation in DIR [PREFIX/info]
230   --mandir=DIR            man documentation in DIR [PREFIX/man]
231   --srcdir=DIR            find the sources in DIR [configure dir or ..]
232   --program-prefix=PREFIX prepend PREFIX to installed program names
233   --program-suffix=SUFFIX append SUFFIX to installed program names
234   --program-transform-name=PROGRAM
235                           run sed PROGRAM on installed program names
236 EOF
237     cat << EOF
238 Host type:
239   --build=BUILD           configure for building on BUILD [BUILD=HOST]
240   --host=HOST             configure for HOST [guessed]
241   --target=TARGET         configure for TARGET [TARGET=HOST]
242 Features and packages:
243   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
244   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
245   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
246   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
247   --x-includes=DIR        X include files are in DIR
248   --x-libraries=DIR       X library files are in DIR
249 EOF
250     if test -n "$ac_help"; then
251       echo "--enable and --with options recognized:$ac_help"
252     fi
253     exit 0 ;;
254
255   -host | --host | --hos | --ho)
256     ac_prev=host ;;
257   -host=* | --host=* | --hos=* | --ho=*)
258     host="$ac_optarg" ;;
259
260   -includedir | --includedir | --includedi | --included | --include \
261   | --includ | --inclu | --incl | --inc)
262     ac_prev=includedir ;;
263   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264   | --includ=* | --inclu=* | --incl=* | --inc=*)
265     includedir="$ac_optarg" ;;
266
267   -infodir | --infodir | --infodi | --infod | --info | --inf)
268     ac_prev=infodir ;;
269   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270     infodir="$ac_optarg" ;;
271
272   -libdir | --libdir | --libdi | --libd)
273     ac_prev=libdir ;;
274   -libdir=* | --libdir=* | --libdi=* | --libd=*)
275     libdir="$ac_optarg" ;;
276
277   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278   | --libexe | --libex | --libe)
279     ac_prev=libexecdir ;;
280   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281   | --libexe=* | --libex=* | --libe=*)
282     libexecdir="$ac_optarg" ;;
283
284   -localstatedir | --localstatedir | --localstatedi | --localstated \
285   | --localstate | --localstat | --localsta | --localst \
286   | --locals | --local | --loca | --loc | --lo)
287     ac_prev=localstatedir ;;
288   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291     localstatedir="$ac_optarg" ;;
292
293   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
294     ac_prev=mandir ;;
295   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296     mandir="$ac_optarg" ;;
297
298   -nfp | --nfp | --nf)
299     # Obsolete; use --without-fp.
300     with_fp=no ;;
301
302   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
303   | --no-cr | --no-c)
304     no_create=yes ;;
305
306   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
307   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308     no_recursion=yes ;;
309
310   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
311   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
312   | --oldin | --oldi | --old | --ol | --o)
313     ac_prev=oldincludedir ;;
314   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317     oldincludedir="$ac_optarg" ;;
318
319   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
320     ac_prev=prefix ;;
321   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322     prefix="$ac_optarg" ;;
323
324   -program-prefix | --program-prefix | --program-prefi | --program-pref \
325   | --program-pre | --program-pr | --program-p)
326     ac_prev=program_prefix ;;
327   -program-prefix=* | --program-prefix=* | --program-prefi=* \
328   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329     program_prefix="$ac_optarg" ;;
330
331   -program-suffix | --program-suffix | --program-suffi | --program-suff \
332   | --program-suf | --program-su | --program-s)
333     ac_prev=program_suffix ;;
334   -program-suffix=* | --program-suffix=* | --program-suffi=* \
335   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336     program_suffix="$ac_optarg" ;;
337
338   -program-transform-name | --program-transform-name \
339   | --program-transform-nam | --program-transform-na \
340   | --program-transform-n | --program-transform- \
341   | --program-transform | --program-transfor \
342   | --program-transfo | --program-transf \
343   | --program-trans | --program-tran \
344   | --progr-tra | --program-tr | --program-t)
345     ac_prev=program_transform_name ;;
346   -program-transform-name=* | --program-transform-name=* \
347   | --program-transform-nam=* | --program-transform-na=* \
348   | --program-transform-n=* | --program-transform-=* \
349   | --program-transform=* | --program-transfor=* \
350   | --program-transfo=* | --program-transf=* \
351   | --program-trans=* | --program-tran=* \
352   | --progr-tra=* | --program-tr=* | --program-t=*)
353     program_transform_name="$ac_optarg" ;;
354
355   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356   | -silent | --silent | --silen | --sile | --sil)
357     silent=yes ;;
358
359   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
360     ac_prev=sbindir ;;
361   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
362   | --sbi=* | --sb=*)
363     sbindir="$ac_optarg" ;;
364
365   -sharedstatedir | --sharedstatedir | --sharedstatedi \
366   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
367   | --sharedst | --shareds | --shared | --share | --shar \
368   | --sha | --sh)
369     ac_prev=sharedstatedir ;;
370   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
371   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
373   | --sha=* | --sh=*)
374     sharedstatedir="$ac_optarg" ;;
375
376   -site | --site | --sit)
377     ac_prev=site ;;
378   -site=* | --site=* | --sit=*)
379     site="$ac_optarg" ;;
380
381   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382     ac_prev=srcdir ;;
383   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384     srcdir="$ac_optarg" ;;
385
386   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387   | --syscon | --sysco | --sysc | --sys | --sy)
388     ac_prev=sysconfdir ;;
389   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391     sysconfdir="$ac_optarg" ;;
392
393   -target | --target | --targe | --targ | --tar | --ta | --t)
394     ac_prev=target ;;
395   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396     target="$ac_optarg" ;;
397
398   -v | -verbose | --verbose | --verbos | --verbo | --verb)
399     verbose=yes ;;
400
401   -version | --version | --versio | --versi | --vers)
402     echo "configure generated by autoconf version 2.13"
403     exit 0 ;;
404
405   -with-* | --with-*)
406     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407     # Reject names that are not valid shell variable names.
408     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410     fi
411     ac_package=`echo $ac_package| sed 's/-/_/g'`
412     case "$ac_option" in
413       *=*) ;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "with_${ac_package}='$ac_optarg'" ;;
417
418   -without-* | --without-*)
419     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420     # Reject names that are not valid shell variable names.
421     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423     fi
424     ac_package=`echo $ac_package| sed 's/-/_/g'`
425     eval "with_${ac_package}=no" ;;
426
427   --x)
428     # Obsolete; use --with-x.
429     with_x=yes ;;
430
431   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432   | --x-incl | --x-inc | --x-in | --x-i)
433     ac_prev=x_includes ;;
434   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436     x_includes="$ac_optarg" ;;
437
438   -x-libraries | --x-libraries | --x-librarie | --x-librari \
439   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440     ac_prev=x_libraries ;;
441   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443     x_libraries="$ac_optarg" ;;
444
445   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
446     ;;
447
448   *)
449     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450       echo "configure: warning: $ac_option: invalid host type" 1>&2
451     fi
452     if test "x$nonopt" != xNONE; then
453       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
454     fi
455     nonopt="$ac_option"
456     ;;
457
458   esac
459 done
460
461 if test -n "$ac_prev"; then
462   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463 fi
464
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466
467 # File descriptor usage:
468 # 0 standard input
469 # 1 file creation
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
476   exec 6>/dev/null
477 else
478   exec 6>&1
479 fi
480 exec 5>./config.log
481
482 echo "\
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
485 " 1>&5
486
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
489 ac_configure_args=
490 for ac_arg
491 do
492   case "$ac_arg" in
493   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494   | --no-cr | --no-c) ;;
495   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500   esac
501 done
502
503 # NLS nuisances.
504 # Only set these to C if already set.  These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
509 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
512
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 echo > confdefs.h
517
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file=tree.c
521
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524   ac_srcdir_defaulted=yes
525   # Try the directory containing this script, then its parent.
526   ac_prog=$0
527   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529   srcdir=$ac_confdir
530   if test ! -r $srcdir/$ac_unique_file; then
531     srcdir=..
532   fi
533 else
534   ac_srcdir_defaulted=no
535 fi
536 if test ! -r $srcdir/$ac_unique_file; then
537   if test "$ac_srcdir_defaulted" = yes; then
538     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539   else
540     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541   fi
542 fi
543 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547   if test "x$prefix" != xNONE; then
548     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
549   else
550     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
551   fi
552 fi
553 for ac_site_file in $CONFIG_SITE; do
554   if test -r "$ac_site_file"; then
555     echo "loading site script $ac_site_file"
556     . "$ac_site_file"
557   fi
558 done
559
560 if test -r "$cache_file"; then
561   echo "loading cache $cache_file"
562   . $cache_file
563 else
564   echo "creating cache $cache_file"
565   > $cache_file
566 fi
567
568 ac_ext=c
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp='$CPP $CPPFLAGS'
571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling=$ac_cv_prog_cc_cross
574
575 ac_exeext=
576 ac_objext=o
577 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
580     ac_n= ac_c='
581 ' ac_t='        '
582   else
583     ac_n=-n ac_c= ac_t=
584   fi
585 else
586   ac_n= ac_c='\c' ac_t=
587 fi
588
589
590
591
592 remove=rm
593 hard_link=ln
594 symbolic_link='ln -s'
595 copy=cp
596
597 # Check for bogus environment variables.
598 # Test if LIBRARY_PATH contains the notation for the current directory
599 # since this would lead to problems installing/building glibc.
600 # LIBRARY_PATH contains the current directory if one of the following
601 # is true:
602 # - one of the terminals (":" and ";") is the first or last sign
603 # - two terminals occur directly after each other
604 # - the path contains an element with a dot in it
605 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
606 echo "configure:607: checking LIBRARY_PATH variable" >&5
607 case ${LIBRARY_PATH} in
608   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
609     library_path_setting="contains current directory"
610     ;;
611   *)
612     library_path_setting="ok"
613     ;;
614 esac
615 echo "$ac_t""$library_path_setting" 1>&6
616 if test "$library_path_setting" != "ok"; then
617 { echo "configure: error: 
618 *** LIBRARY_PATH shouldn't contain the current directory when
619 *** building gcc. Please change the environment variable
620 *** and run configure again." 1>&2; exit 1; }
621 fi
622
623 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
624 # since this would lead to problems installing/building glibc.
625 # GCC_EXEC_PREFIX contains the current directory if one of the following
626 # is true:
627 # - one of the terminals (":" and ";") is the first or last sign
628 # - two terminals occur directly after each other
629 # - the path contains an element with a dot in it
630 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
631 echo "configure:632: checking GCC_EXEC_PREFIX variable" >&5
632 case ${GCC_EXEC_PREFIX} in
633   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
634     gcc_exec_prefix_setting="contains current directory"
635     ;;
636   *)
637     gcc_exec_prefix_setting="ok"
638     ;;
639 esac
640 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
641 if test "$gcc_exec_prefix_setting" != "ok"; then
642 { echo "configure: error: 
643 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
644 *** building gcc. Please change the environment variable
645 *** and run configure again." 1>&2; exit 1; }
646 fi
647
648 # Check for additional parameters
649
650 # With GNU ld
651 # Check whether --with-gnu-ld or --without-gnu-ld was given.
652 if test "${with_gnu_ld+set}" = set; then
653   withval="$with_gnu_ld"
654   gnu_ld_flag="$with_gnu_ld"
655 else
656   gnu_ld_flag=no
657 fi
658
659
660 # With pre-defined ld
661 # Check whether --with-ld or --without-ld was given.
662 if test "${with_ld+set}" = set; then
663   withval="$with_ld"
664   DEFAULT_LINKER="$with_ld"
665 fi
666
667 if test x"${DEFAULT_LINKER+set}" = x"set"; then
668   if test ! -x "$DEFAULT_LINKER"; then
669     echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
670   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
671     gnu_ld_flag=yes
672   fi
673   cat >> confdefs.h <<EOF
674 #define DEFAULT_LINKER "$DEFAULT_LINKER"
675 EOF
676
677 fi
678
679 # With GNU as
680 # Check whether --with-gnu-as or --without-gnu-as was given.
681 if test "${with_gnu_as+set}" = set; then
682   withval="$with_gnu_as"
683   gas_flag="$with_gnu_as"
684 else
685   gas_flag=no
686 fi
687
688
689 # Check whether --with-as or --without-as was given.
690 if test "${with_as+set}" = set; then
691   withval="$with_as"
692   DEFAULT_ASSEMBLER="$with_as"
693 fi
694
695 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
696   if test ! -x "$DEFAULT_ASSEMBLER"; then
697     echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
698   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
699     gas_flag=yes
700   fi
701   cat >> confdefs.h <<EOF
702 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
703 EOF
704
705 fi
706
707 # With stabs
708 # Check whether --with-stabs or --without-stabs was given.
709 if test "${with_stabs+set}" = set; then
710   withval="$with_stabs"
711   stabs="$with_stabs"
712 else
713   stabs=no
714 fi
715
716
717 # With ELF
718 # Check whether --with-elf or --without-elf was given.
719 if test "${with_elf+set}" = set; then
720   withval="$with_elf"
721   elf="$with_elf"
722 else
723   elf=no
724 fi
725
726
727 # Specify the local prefix
728 local_prefix=
729 # Check whether --with-local-prefix or --without-local-prefix was given.
730 if test "${with_local_prefix+set}" = set; then
731   withval="$with_local_prefix"
732   case "${withval}" in
733 yes)    { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
734 no)     ;;
735 *)      local_prefix=$with_local_prefix ;;
736 esac
737 fi
738
739
740 # Default local prefix if it is empty
741 if test x$local_prefix = x; then
742         local_prefix=/usr/local
743 fi
744
745 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
746 # passed in by the toplevel make and thus we'd get different behavior
747 # depending on where we built the sources.
748 gcc_gxx_include_dir=
749 # Specify the g++ header file directory
750 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
751 if test "${with_gxx_include_dir+set}" = set; then
752   withval="$with_gxx_include_dir"
753   case "${withval}" in
754 yes)    { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
755 no)     ;;
756 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
757 esac
758 fi
759
760
761 if test x${gcc_gxx_include_dir} = x; then
762   if test x${enable_version_specific_runtime_libs} = xyes; then
763     gcc_gxx_include_dir='${libsubdir}/include/g++'
764   else
765     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
766     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
767   fi
768 fi
769
770 # Enable expensive internal checks
771 # Check whether --enable-checking or --disable-checking was given.
772 if test "${enable_checking+set}" = set; then
773   enableval="$enable_checking"
774   ac_checking=
775 ac_tree_checking=
776 ac_rtl_checking=
777 ac_gc_checking=
778 ac_gc_always_collect=
779 case "${enableval}" in
780 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_rtl_checking=1 ;;
781 no)     ;;
782 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS" IFS="$IFS,"
783         set fnord $enableval; shift
784         IFS="$ac_save_IFS"
785         for check
786         do
787                 case $check in
788                 misc)   ac_checking=1 ;;
789                 tree)   ac_tree_checking=1 ;;
790                 rtl)    ac_rtl_checking=1 ;;
791                 gc)     ac_gc_checking=1 ;;
792                 gcac)   ac_gc_always_collect=1 ;;
793                 *)      { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
794                 esac
795         done
796         ;;
797 esac
798 if test x$ac_checking != x ; then
799   cat >> confdefs.h <<\EOF
800 #define ENABLE_CHECKING 1
801 EOF
802
803 fi
804 if test x$ac_tree_checking != x ; then
805   cat >> confdefs.h <<\EOF
806 #define ENABLE_TREE_CHECKING 1
807 EOF
808
809 fi
810 if test x$ac_rtl_checking != x ; then
811   cat >> confdefs.h <<\EOF
812 #define ENABLE_RTL_CHECKING 1
813 EOF
814
815 fi
816 if test x$ac_gc_checking != x ; then
817   cat >> confdefs.h <<\EOF
818 #define ENABLE_GC_CHECKING 1
819 EOF
820
821 fi
822 if test x$ac_gc_always_collect != x ; then
823   cat >> confdefs.h <<\EOF
824 #define ENABLE_GC_ALWAYS_COLLECT 1
825 EOF
826
827 fi
828
829 fi
830
831
832 # Check whether --enable-cpp or --disable-cpp was given.
833 if test "${enable_cpp+set}" = set; then
834   enableval="$enable_cpp"
835   :
836 else
837   enable_cpp=yes
838 fi
839
840
841 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
842 if test "${with_cpp_install_dir+set}" = set; then
843   withval="$with_cpp_install_dir"
844   if test x$withval = xyes; then
845   { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
846 elif test x$withval != xno; then
847   cpp_install_dir=$withval
848 fi
849 fi
850
851
852
853 # Enable Multibyte Characters for C/C++
854 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
855 if test "${enable_c_mbchar+set}" = set; then
856   enableval="$enable_c_mbchar"
857   if test x$enable_c_mbchar != xno; then
858   extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
859 fi
860 fi
861
862   
863 # Enable threads
864 # Pass with no value to take the default
865 # Pass with a value to specify a thread package
866 # Check whether --enable-threads or --disable-threads was given.
867 if test "${enable_threads+set}" = set; then
868   enableval="$enable_threads"
869   if test x$enable_threads = xno; then
870         enable_threads=''
871 fi
872 else
873   enable_threads=''
874 fi
875
876
877 enable_threads_flag=$enable_threads
878 # Check if a valid thread package
879 case x${enable_threads_flag} in
880         x | xno)
881                 # No threads
882                 target_thread_file='single'
883                 ;;
884         xyes)
885                 # default
886                 target_thread_file=''
887                 ;;
888         xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
889         xsolaris | xwin32 | xdce | xvxworks)
890                 target_thread_file=$enable_threads_flag
891                 ;;
892         *)
893                 echo "$enable_threads is an unknown thread package" 1>&2
894                 exit 1
895                 ;;
896 esac
897
898 # Check whether --enable-objc-gc or --disable-objc-gc was given.
899 if test "${enable_objc_gc+set}" = set; then
900   enableval="$enable_objc_gc"
901   if test x$enable_objc_gc = xno; then
902         objc_boehm_gc=''
903 else
904         objc_boehm_gc=1
905 fi
906 else
907   objc_boehm_gc=''
908 fi
909
910
911 # Check whether --with-dwarf2 or --without-dwarf2 was given.
912 if test "${with_dwarf2+set}" = set; then
913   withval="$with_dwarf2"
914   dwarf2="$with_dwarf2"
915 else
916   dwarf2=no
917 fi
918
919
920 # Determine the host, build, and target systems
921 ac_aux_dir=
922 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
923   if test -f $ac_dir/install-sh; then
924     ac_aux_dir=$ac_dir
925     ac_install_sh="$ac_aux_dir/install-sh -c"
926     break
927   elif test -f $ac_dir/install.sh; then
928     ac_aux_dir=$ac_dir
929     ac_install_sh="$ac_aux_dir/install.sh -c"
930     break
931   fi
932 done
933 if test -z "$ac_aux_dir"; then
934   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
935 fi
936 ac_config_guess=$ac_aux_dir/config.guess
937 ac_config_sub=$ac_aux_dir/config.sub
938 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
939
940
941 # Do some error checking and defaulting for the host and target type.
942 # The inputs are:
943 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
944 #
945 # The rules are:
946 # 1. You are not allowed to specify --host, --target, and nonopt at the
947 #    same time.
948 # 2. Host defaults to nonopt.
949 # 3. If nonopt is not specified, then host defaults to the current host,
950 #    as determined by config.guess.
951 # 4. Target and build default to nonopt.
952 # 5. If nonopt is not specified, then target and build default to host.
953
954 # The aliases save the names the user supplied, while $host etc.
955 # will get canonicalized.
956 case $host---$target---$nonopt in
957 NONE---*---* | *---NONE---* | *---*---NONE) ;;
958 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
959 esac
960
961
962 # Make sure we can run config.sub.
963 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
964 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
965 fi
966
967 echo $ac_n "checking host system type""... $ac_c" 1>&6
968 echo "configure:969: checking host system type" >&5
969
970 host_alias=$host
971 case "$host_alias" in
972 NONE)
973   case $nonopt in
974   NONE)
975     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
976     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
977     fi ;;
978   *) host_alias=$nonopt ;;
979   esac ;;
980 esac
981
982 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
983 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
986 echo "$ac_t""$host" 1>&6
987
988 echo $ac_n "checking target system type""... $ac_c" 1>&6
989 echo "configure:990: checking target system type" >&5
990
991 target_alias=$target
992 case "$target_alias" in
993 NONE)
994   case $nonopt in
995   NONE) target_alias=$host_alias ;;
996   *) target_alias=$nonopt ;;
997   esac ;;
998 esac
999
1000 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1001 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1002 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1003 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1004 echo "$ac_t""$target" 1>&6
1005
1006 echo $ac_n "checking build system type""... $ac_c" 1>&6
1007 echo "configure:1008: checking build system type" >&5
1008
1009 build_alias=$build
1010 case "$build_alias" in
1011 NONE)
1012   case $nonopt in
1013   NONE) build_alias=$host_alias ;;
1014   *) build_alias=$nonopt ;;
1015   esac ;;
1016 esac
1017
1018 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1019 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1020 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1021 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1022 echo "$ac_t""$build" 1>&6
1023
1024 test "$host_alias" != "$target_alias" &&
1025   test "$program_prefix$program_suffix$program_transform_name" = \
1026     NONENONEs,x,x, &&
1027   program_prefix=${target_alias}-
1028
1029
1030 # Find the native compiler
1031 # Extract the first word of "gcc", so it can be a program name with args.
1032 set dummy gcc; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036   echo $ac_n "(cached) $ac_c" 1>&6
1037 else
1038   if test -n "$CC"; then
1039   ac_cv_prog_CC="$CC" # Let the user override the test.
1040 else
1041   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1042   ac_dummy="$PATH"
1043   for ac_dir in $ac_dummy; do
1044     test -z "$ac_dir" && ac_dir=.
1045     if test -f $ac_dir/$ac_word; then
1046       ac_cv_prog_CC="gcc"
1047       break
1048     fi
1049   done
1050   IFS="$ac_save_ifs"
1051 fi
1052 fi
1053 CC="$ac_cv_prog_CC"
1054 if test -n "$CC"; then
1055   echo "$ac_t""$CC" 1>&6
1056 else
1057   echo "$ac_t""no" 1>&6
1058 fi
1059
1060 if test -z "$CC"; then
1061   # Extract the first word of "cc", so it can be a program name with args.
1062 set dummy cc; ac_word=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1066   echo $ac_n "(cached) $ac_c" 1>&6
1067 else
1068   if test -n "$CC"; then
1069   ac_cv_prog_CC="$CC" # Let the user override the test.
1070 else
1071   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1072   ac_prog_rejected=no
1073   ac_dummy="$PATH"
1074   for ac_dir in $ac_dummy; do
1075     test -z "$ac_dir" && ac_dir=.
1076     if test -f $ac_dir/$ac_word; then
1077       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1078         ac_prog_rejected=yes
1079         continue
1080       fi
1081       ac_cv_prog_CC="cc"
1082       break
1083     fi
1084   done
1085   IFS="$ac_save_ifs"
1086 if test $ac_prog_rejected = yes; then
1087   # We found a bogon in the path, so make sure we never use it.
1088   set dummy $ac_cv_prog_CC
1089   shift
1090   if test $# -gt 0; then
1091     # We chose a different compiler from the bogus one.
1092     # However, it has the same basename, so the bogon will be chosen
1093     # first if we set CC to just the basename; use the full file name.
1094     shift
1095     set dummy "$ac_dir/$ac_word" "$@"
1096     shift
1097     ac_cv_prog_CC="$@"
1098   fi
1099 fi
1100 fi
1101 fi
1102 CC="$ac_cv_prog_CC"
1103 if test -n "$CC"; then
1104   echo "$ac_t""$CC" 1>&6
1105 else
1106   echo "$ac_t""no" 1>&6
1107 fi
1108
1109   if test -z "$CC"; then
1110     case "`uname -s`" in
1111     *win32* | *WIN32*)
1112       # Extract the first word of "cl", so it can be a program name with args.
1113 set dummy cl; ac_word=$2
1114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1115 echo "configure:1116: checking for $ac_word" >&5
1116 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1117   echo $ac_n "(cached) $ac_c" 1>&6
1118 else
1119   if test -n "$CC"; then
1120   ac_cv_prog_CC="$CC" # Let the user override the test.
1121 else
1122   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1123   ac_dummy="$PATH"
1124   for ac_dir in $ac_dummy; do
1125     test -z "$ac_dir" && ac_dir=.
1126     if test -f $ac_dir/$ac_word; then
1127       ac_cv_prog_CC="cl"
1128       break
1129     fi
1130   done
1131   IFS="$ac_save_ifs"
1132 fi
1133 fi
1134 CC="$ac_cv_prog_CC"
1135 if test -n "$CC"; then
1136   echo "$ac_t""$CC" 1>&6
1137 else
1138   echo "$ac_t""no" 1>&6
1139 fi
1140  ;;
1141     esac
1142   fi
1143   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1144 fi
1145
1146 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1148
1149 ac_ext=c
1150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1151 ac_cpp='$CPP $CPPFLAGS'
1152 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1153 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1154 cross_compiling=$ac_cv_prog_cc_cross
1155
1156 cat > conftest.$ac_ext << EOF
1157
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1160
1161 main(){return(0);}
1162 EOF
1163 if { (eval echo configure:1164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1164   ac_cv_prog_cc_works=yes
1165   # If we can't run a trivial program, we are probably using a cross compiler.
1166   if (./conftest; exit) 2>/dev/null; then
1167     ac_cv_prog_cc_cross=no
1168   else
1169     ac_cv_prog_cc_cross=yes
1170   fi
1171 else
1172   echo "configure: failed program was:" >&5
1173   cat conftest.$ac_ext >&5
1174   ac_cv_prog_cc_works=no
1175 fi
1176 rm -fr conftest*
1177 ac_ext=c
1178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1179 ac_cpp='$CPP $CPPFLAGS'
1180 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1181 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1182 cross_compiling=$ac_cv_prog_cc_cross
1183
1184 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1185 if test $ac_cv_prog_cc_works = no; then
1186   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1187 fi
1188 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1189 echo "configure:1190: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1190 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1191 cross_compiling=$ac_cv_prog_cc_cross
1192
1193 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether we are using GNU C" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1196   echo $ac_n "(cached) $ac_c" 1>&6
1197 else
1198   cat > conftest.c <<EOF
1199 #ifdef __GNUC__
1200   yes;
1201 #endif
1202 EOF
1203 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1204   ac_cv_prog_gcc=yes
1205 else
1206   ac_cv_prog_gcc=no
1207 fi
1208 fi
1209
1210 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1211
1212 if test $ac_cv_prog_gcc = yes; then
1213   GCC=yes
1214 else
1215   GCC=
1216 fi
1217
1218 ac_test_CFLAGS="${CFLAGS+set}"
1219 ac_save_CFLAGS="$CFLAGS"
1220 CFLAGS=
1221 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether ${CC-cc} accepts -g" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1224   echo $ac_n "(cached) $ac_c" 1>&6
1225 else
1226   echo 'void f(){}' > conftest.c
1227 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1228   ac_cv_prog_cc_g=yes
1229 else
1230   ac_cv_prog_cc_g=no
1231 fi
1232 rm -f conftest*
1233
1234 fi
1235
1236 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1237 if test "$ac_test_CFLAGS" = set; then
1238   CFLAGS="$ac_save_CFLAGS"
1239 elif test $ac_cv_prog_cc_g = yes; then
1240   if test "$GCC" = yes; then
1241     CFLAGS="-g -O2"
1242   else
1243     CFLAGS="-g"
1244   fi
1245 else
1246   if test "$GCC" = yes; then
1247     CFLAGS="-O2"
1248   else
1249     CFLAGS=
1250   fi
1251 fi
1252
1253 if test "x$CC" != xcc; then
1254   echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether $CC and cc understand -c and -o together" >&5
1256 else
1257   echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1258 echo "configure:1259: checking whether cc understands -c and -o together" >&5
1259 fi
1260 set dummy $CC; ac_cc="`echo $2 |
1261                        sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1262 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1263   echo $ac_n "(cached) $ac_c" 1>&6
1264 else
1265   echo 'foo(){}' > conftest.c
1266 # Make sure it works both with $CC and with simple cc.
1267 # We do the test twice because some compilers refuse to overwrite an
1268 # existing .o file with -o, though they will create one.
1269 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1270 if { (eval echo configure:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1271    test -f conftest.o && { (eval echo configure:1272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1272 then
1273   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1274   if test "x$CC" != xcc; then
1275     # Test first that cc exists at all.
1276     if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1277       ac_try='cc -c conftest.c -o conftest.o 1>&5'
1278       if { (eval echo configure:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1279          test -f conftest.o && { (eval echo configure:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1280       then
1281         # cc works too.
1282         :
1283       else
1284         # cc exists but doesn't like -o.
1285         eval ac_cv_prog_cc_${ac_cc}_c_o=no
1286       fi
1287     fi
1288   fi
1289 else
1290   eval ac_cv_prog_cc_${ac_cc}_c_o=no
1291 fi
1292 rm -f conftest*
1293
1294 fi
1295 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1296   echo "$ac_t""yes" 1>&6
1297 else
1298   echo "$ac_t""no" 1>&6
1299   cat >> confdefs.h <<\EOF
1300 #define NO_MINUS_C_MINUS_O 1
1301 EOF
1302
1303 fi
1304
1305
1306
1307 echo $ac_n "checking for long double""... $ac_c" 1>&6
1308 echo "configure:1309: checking for long double" >&5
1309 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1310   echo $ac_n "(cached) $ac_c" 1>&6
1311 else
1312   if test "$GCC" = yes; then
1313   gcc_cv_c_long_double=yes
1314 else
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1318
1319 int main() {
1320 /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
1321 long double foo = 0.0;
1322 /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
1323 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1324 ; return 0; }
1325 EOF
1326 if { (eval echo configure:1327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1327   rm -rf conftest*
1328   gcc_cv_c_long_double=yes
1329 else
1330   echo "configure: failed program was:" >&5
1331   cat conftest.$ac_ext >&5
1332   rm -rf conftest*
1333   gcc_cv_c_long_double=no
1334 fi
1335 rm -f conftest*
1336 fi
1337 fi
1338
1339 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1340 if test $gcc_cv_c_long_double = yes; then
1341   cat >> confdefs.h <<\EOF
1342 #define HAVE_LONG_DOUBLE 1
1343 EOF
1344
1345 fi
1346
1347
1348 # If the native compiler is GCC, we can enable warnings even in stage1.  
1349 # That's useful for people building cross-compilers, or just running a
1350 # quick `make'.
1351 if test "x$GCC" = "xyes"; then 
1352   stage1_warn_cflags='$(WARN_CFLAGS)'
1353 else
1354   stage1_warn_cflags=""
1355 fi
1356
1357
1358 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1359 echo "configure:1360: checking whether ${MAKE-make} sets \${MAKE}" >&5
1360 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1361 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1362   echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364   cat > conftestmake <<\EOF
1365 all:
1366         @echo 'ac_maketemp="${MAKE}"'
1367 EOF
1368 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1369 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1370 if test -n "$ac_maketemp"; then
1371   eval ac_cv_prog_make_${ac_make}_set=yes
1372 else
1373   eval ac_cv_prog_make_${ac_make}_set=no
1374 fi
1375 rm -f conftestmake
1376 fi
1377 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1378   echo "$ac_t""yes" 1>&6
1379   SET_MAKE=
1380 else
1381   echo "$ac_t""no" 1>&6
1382   SET_MAKE="MAKE=${MAKE-make}"
1383 fi
1384
1385
1386 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1387 echo "configure:1388: checking whether a default assembler was specified" >&5
1388 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1389     if test x"$gas_flag" = x"no"; then
1390         echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1391     else
1392         echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1393     fi
1394 else
1395     echo "$ac_t""no" 1>&6
1396 fi
1397
1398 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1399 echo "configure:1400: checking whether a default linker was specified" >&5
1400 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1401     if test x"$gnu_ld_flag" = x"no"; then
1402         echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1403     else
1404         echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1405     fi
1406 else
1407     echo "$ac_t""no" 1>&6
1408 fi
1409
1410 # Find some useful tools
1411 for ac_prog in mawk gawk nawk awk
1412 do
1413 # Extract the first word of "$ac_prog", so it can be a program name with args.
1414 set dummy $ac_prog; ac_word=$2
1415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1416 echo "configure:1417: checking for $ac_word" >&5
1417 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1418   echo $ac_n "(cached) $ac_c" 1>&6
1419 else
1420   if test -n "$AWK"; then
1421   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1422 else
1423   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1424   ac_dummy="$PATH"
1425   for ac_dir in $ac_dummy; do
1426     test -z "$ac_dir" && ac_dir=.
1427     if test -f $ac_dir/$ac_word; then
1428       ac_cv_prog_AWK="$ac_prog"
1429       break
1430     fi
1431   done
1432   IFS="$ac_save_ifs"
1433 fi
1434 fi
1435 AWK="$ac_cv_prog_AWK"
1436 if test -n "$AWK"; then
1437   echo "$ac_t""$AWK" 1>&6
1438 else
1439   echo "$ac_t""no" 1>&6
1440 fi
1441
1442 test -n "$AWK" && break
1443 done
1444
1445 # Extract the first word of "flex", so it can be a program name with args.
1446 set dummy flex; ac_word=$2
1447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1448 echo "configure:1449: checking for $ac_word" >&5
1449 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1450   echo $ac_n "(cached) $ac_c" 1>&6
1451 else
1452   if test -n "$LEX"; then
1453   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1454 else
1455   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1456   ac_dummy="$PATH"
1457   for ac_dir in $ac_dummy; do
1458     test -z "$ac_dir" && ac_dir=.
1459     if test -f $ac_dir/$ac_word; then
1460       ac_cv_prog_LEX="flex"
1461       break
1462     fi
1463   done
1464   IFS="$ac_save_ifs"
1465   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1466 fi
1467 fi
1468 LEX="$ac_cv_prog_LEX"
1469 if test -n "$LEX"; then
1470   echo "$ac_t""$LEX" 1>&6
1471 else
1472   echo "$ac_t""no" 1>&6
1473 fi
1474
1475 if test -z "$LEXLIB"
1476 then
1477   case "$LEX" in
1478   flex*) ac_lib=fl ;;
1479   *) ac_lib=l ;;
1480   esac
1481   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1482 echo "configure:1483: checking for yywrap in -l$ac_lib" >&5
1483 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1485   echo $ac_n "(cached) $ac_c" 1>&6
1486 else
1487   ac_save_LIBS="$LIBS"
1488 LIBS="-l$ac_lib  $LIBS"
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1492 /* Override any gcc2 internal prototype to avoid an error.  */
1493 /* We use char because int might match the return type of a gcc2
1494     builtin and then its argument prototype would still apply.  */
1495 char yywrap();
1496
1497 int main() {
1498 yywrap()
1499 ; return 0; }
1500 EOF
1501 if { (eval echo configure:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1502   rm -rf conftest*
1503   eval "ac_cv_lib_$ac_lib_var=yes"
1504 else
1505   echo "configure: failed program was:" >&5
1506   cat conftest.$ac_ext >&5
1507   rm -rf conftest*
1508   eval "ac_cv_lib_$ac_lib_var=no"
1509 fi
1510 rm -f conftest*
1511 LIBS="$ac_save_LIBS"
1512
1513 fi
1514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1515   echo "$ac_t""yes" 1>&6
1516   LEXLIB="-l$ac_lib"
1517 else
1518   echo "$ac_t""no" 1>&6
1519 fi
1520
1521 fi
1522
1523 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1524 echo "configure:1525: checking whether ln works" >&5
1525 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1526   echo $ac_n "(cached) $ac_c" 1>&6
1527 else
1528   rm -f conftestdata_t
1529 echo >conftestdata_f
1530 if ln conftestdata_f conftestdata_t 2>/dev/null
1531 then
1532   gcc_cv_prog_LN="ln"
1533 else
1534   if ln -s conftestdata_f conftestdata_t 2>/dev/null
1535   then
1536     gcc_cv_prog_LN="ln -s"
1537   else
1538     gcc_cv_prog_LN=cp
1539   fi
1540 fi
1541 rm -f conftestdata_f conftestdata_t
1542
1543 fi
1544 LN="$gcc_cv_prog_LN"
1545 if test "$gcc_cv_prog_LN" = "ln"; then
1546   echo "$ac_t""yes" 1>&6
1547 else
1548   if test "$gcc_cv_prog_LN" = "ln -s"; then
1549     echo "$ac_t""no, using ln -s" 1>&6
1550   else
1551     echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1552   fi
1553 fi
1554
1555 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1556 echo "configure:1557: checking whether ln -s works" >&5
1557 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1558   echo $ac_n "(cached) $ac_c" 1>&6
1559 else
1560   rm -f conftestdata_t
1561 echo >conftestdata_f
1562 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1563 then
1564   gcc_cv_prog_LN_S="ln -s"
1565 else
1566   if ln conftestdata_f conftestdata_t 2>/dev/null
1567   then
1568     gcc_cv_prog_LN_S=ln
1569   else
1570     gcc_cv_prog_LN_S=cp
1571   fi
1572 fi
1573 rm -f conftestdata_f conftestdata_t
1574
1575 fi
1576 LN_S="$gcc_cv_prog_LN_S"
1577 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1578   echo "$ac_t""yes" 1>&6
1579 else
1580   if test "$gcc_cv_prog_LN_S" = "ln"; then
1581     echo "$ac_t""no, using ln" 1>&6
1582   else
1583     echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1584   fi
1585 fi
1586
1587 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1588 echo "configure:1589: checking for volatile" >&5
1589 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1590   echo $ac_n "(cached) $ac_c" 1>&6
1591 else
1592   cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595
1596 int main() {
1597 volatile int foo;
1598 ; return 0; }
1599 EOF
1600 if { (eval echo configure:1601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1601   rm -rf conftest*
1602   gcc_cv_c_volatile=yes
1603 else
1604   echo "configure: failed program was:" >&5
1605   cat conftest.$ac_ext >&5
1606   rm -rf conftest*
1607   gcc_cv_c_volatile=no
1608 fi
1609 rm -f conftest*
1610 fi
1611
1612 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1613 if test $gcc_cv_c_volatile = yes ; then
1614   cat >> confdefs.h <<\EOF
1615 #define HAVE_VOLATILE 1
1616 EOF
1617
1618 fi
1619
1620 # Extract the first word of "ranlib", so it can be a program name with args.
1621 set dummy ranlib; ac_word=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1625   echo $ac_n "(cached) $ac_c" 1>&6
1626 else
1627   if test -n "$RANLIB"; then
1628   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1629 else
1630   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1631   ac_dummy="$PATH"
1632   for ac_dir in $ac_dummy; do
1633     test -z "$ac_dir" && ac_dir=.
1634     if test -f $ac_dir/$ac_word; then
1635       ac_cv_prog_RANLIB="ranlib"
1636       break
1637     fi
1638   done
1639   IFS="$ac_save_ifs"
1640   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1641 fi
1642 fi
1643 RANLIB="$ac_cv_prog_RANLIB"
1644 if test -n "$RANLIB"; then
1645   echo "$ac_t""$RANLIB" 1>&6
1646 else
1647   echo "$ac_t""no" 1>&6
1648 fi
1649
1650 for ac_prog in 'bison -y' byacc
1651 do
1652 # Extract the first word of "$ac_prog", so it can be a program name with args.
1653 set dummy $ac_prog; ac_word=$2
1654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1655 echo "configure:1656: checking for $ac_word" >&5
1656 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1657   echo $ac_n "(cached) $ac_c" 1>&6
1658 else
1659   if test -n "$YACC"; then
1660   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1661 else
1662   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1663   ac_dummy="$PATH"
1664   for ac_dir in $ac_dummy; do
1665     test -z "$ac_dir" && ac_dir=.
1666     if test -f $ac_dir/$ac_word; then
1667       ac_cv_prog_YACC="$ac_prog"
1668       break
1669     fi
1670   done
1671   IFS="$ac_save_ifs"
1672 fi
1673 fi
1674 YACC="$ac_cv_prog_YACC"
1675 if test -n "$YACC"; then
1676   echo "$ac_t""$YACC" 1>&6
1677 else
1678   echo "$ac_t""no" 1>&6
1679 fi
1680
1681 test -n "$YACC" && break
1682 done
1683 test -n "$YACC" || YACC="yacc"
1684
1685 # Find a good install program.  We prefer a C program (faster),
1686 # so one script is as good as another.  But avoid the broken or
1687 # incompatible versions:
1688 # SysV /etc/install, /usr/sbin/install
1689 # SunOS /usr/etc/install
1690 # IRIX /sbin/install
1691 # AIX /bin/install
1692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1694 # ./install, which can be erroneously created by make from ./install.sh.
1695 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1696 echo "configure:1697: checking for a BSD compatible install" >&5
1697 if test -z "$INSTALL"; then
1698 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1699   echo $ac_n "(cached) $ac_c" 1>&6
1700 else
1701     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1702   for ac_dir in $PATH; do
1703     # Account for people who put trailing slashes in PATH elements.
1704     case "$ac_dir/" in
1705     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1706     *)
1707       # OSF1 and SCO ODT 3.0 have their own names for install.
1708       for ac_prog in ginstall scoinst install; do
1709         if test -f $ac_dir/$ac_prog; then
1710           if test $ac_prog = install &&
1711             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1712             # AIX install.  It has an incompatible calling convention.
1713             # OSF/1 installbsd also uses dspmsg, but is usable.
1714             :
1715           else
1716             ac_cv_path_install="$ac_dir/$ac_prog -c"
1717             break 2
1718           fi
1719         fi
1720       done
1721       ;;
1722     esac
1723   done
1724   IFS="$ac_save_IFS"
1725
1726 fi
1727   if test "${ac_cv_path_install+set}" = set; then
1728     INSTALL="$ac_cv_path_install"
1729   else
1730     # As a last resort, use the slow shell script.  We don't cache a
1731     # path for INSTALL within a source directory, because that will
1732     # break other packages using the cache if that directory is
1733     # removed, or if the path is relative.
1734     INSTALL="$ac_install_sh"
1735   fi
1736 fi
1737 echo "$ac_t""$INSTALL" 1>&6
1738
1739 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1740 # It thinks the first close brace ends the variable substitution.
1741 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1742
1743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1744
1745
1746 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1747 echo "configure:1748: checking how to run the C preprocessor" >&5
1748 # On Suns, sometimes $CPP names a directory.
1749 if test -n "$CPP" && test -d "$CPP"; then
1750   CPP=
1751 fi
1752 if test -z "$CPP"; then
1753 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1754   echo $ac_n "(cached) $ac_c" 1>&6
1755 else
1756     # This must be in double quotes, not single quotes, because CPP may get
1757   # substituted into the Makefile and "${CC-cc}" will confuse make.
1758   CPP="${CC-cc} -E"
1759   # On the NeXT, cc -E runs the code through the compiler's parser,
1760   # not just through cpp.
1761   cat > conftest.$ac_ext <<EOF
1762 #line 1763 "configure"
1763 #include "confdefs.h"
1764 #include <assert.h>
1765 Syntax Error
1766 EOF
1767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1768 { (eval echo configure:1769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1770 if test -z "$ac_err"; then
1771   :
1772 else
1773   echo "$ac_err" >&5
1774   echo "configure: failed program was:" >&5
1775   cat conftest.$ac_ext >&5
1776   rm -rf conftest*
1777   CPP="${CC-cc} -E -traditional-cpp"
1778   cat > conftest.$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781 #include <assert.h>
1782 Syntax Error
1783 EOF
1784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1785 { (eval echo configure:1786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1787 if test -z "$ac_err"; then
1788   :
1789 else
1790   echo "$ac_err" >&5
1791   echo "configure: failed program was:" >&5
1792   cat conftest.$ac_ext >&5
1793   rm -rf conftest*
1794   CPP="${CC-cc} -nologo -E"
1795   cat > conftest.$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1798 #include <assert.h>
1799 Syntax Error
1800 EOF
1801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1802 { (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1804 if test -z "$ac_err"; then
1805   :
1806 else
1807   echo "$ac_err" >&5
1808   echo "configure: failed program was:" >&5
1809   cat conftest.$ac_ext >&5
1810   rm -rf conftest*
1811   CPP=/lib/cpp
1812 fi
1813 rm -f conftest*
1814 fi
1815 rm -f conftest*
1816 fi
1817 rm -f conftest*
1818   ac_cv_prog_CPP="$CPP"
1819 fi
1820   CPP="$ac_cv_prog_CPP"
1821 else
1822   ac_cv_prog_CPP="$CPP"
1823 fi
1824 echo "$ac_t""$CPP" 1>&6
1825
1826 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1827 echo "configure:1828: checking for ANSI C header files" >&5
1828 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1829   echo $ac_n "(cached) $ac_c" 1>&6
1830 else
1831   cat > conftest.$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1834 #include <stdlib.h>
1835 #include <stdarg.h>
1836 #include <string.h>
1837 #include <float.h>
1838 EOF
1839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1840 { (eval echo configure:1841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1842 if test -z "$ac_err"; then
1843   rm -rf conftest*
1844   ac_cv_header_stdc=yes
1845 else
1846   echo "$ac_err" >&5
1847   echo "configure: failed program was:" >&5
1848   cat conftest.$ac_ext >&5
1849   rm -rf conftest*
1850   ac_cv_header_stdc=no
1851 fi
1852 rm -f conftest*
1853
1854 if test $ac_cv_header_stdc = yes; then
1855   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1856 cat > conftest.$ac_ext <<EOF
1857 #line 1858 "configure"
1858 #include "confdefs.h"
1859 #include <string.h>
1860 EOF
1861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1862   egrep "memchr" >/dev/null 2>&1; then
1863   :
1864 else
1865   rm -rf conftest*
1866   ac_cv_header_stdc=no
1867 fi
1868 rm -f conftest*
1869
1870 fi
1871
1872 if test $ac_cv_header_stdc = yes; then
1873   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1874 cat > conftest.$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 #include <stdlib.h>
1878 EOF
1879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1880   egrep "free" >/dev/null 2>&1; then
1881   :
1882 else
1883   rm -rf conftest*
1884   ac_cv_header_stdc=no
1885 fi
1886 rm -f conftest*
1887
1888 fi
1889
1890 if test $ac_cv_header_stdc = yes; then
1891   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1892 if test "$cross_compiling" = yes; then
1893   :
1894 else
1895   cat > conftest.$ac_ext <<EOF
1896 #line 1897 "configure"
1897 #include "confdefs.h"
1898 #include <ctype.h>
1899 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1900 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1901 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1902 int main () { int i; for (i = 0; i < 256; i++)
1903 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1904 exit (0); }
1905
1906 EOF
1907 if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1908 then
1909   :
1910 else
1911   echo "configure: failed program was:" >&5
1912   cat conftest.$ac_ext >&5
1913   rm -fr conftest*
1914   ac_cv_header_stdc=no
1915 fi
1916 rm -fr conftest*
1917 fi
1918
1919 fi
1920 fi
1921
1922 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1923 if test $ac_cv_header_stdc = yes; then
1924   cat >> confdefs.h <<\EOF
1925 #define STDC_HEADERS 1
1926 EOF
1927
1928 fi
1929
1930 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1931 echo "configure:1932: checking whether time.h and sys/time.h may both be included" >&5
1932 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1933   echo $ac_n "(cached) $ac_c" 1>&6
1934 else
1935   cat > conftest.$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1938 #include <sys/types.h>
1939 #include <sys/time.h>
1940 #include <time.h>
1941 int main() {
1942 struct tm *tp;
1943 ; return 0; }
1944 EOF
1945 if { (eval echo configure:1946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1946   rm -rf conftest*
1947   ac_cv_header_time=yes
1948 else
1949   echo "configure: failed program was:" >&5
1950   cat conftest.$ac_ext >&5
1951   rm -rf conftest*
1952   ac_cv_header_time=no
1953 fi
1954 rm -f conftest*
1955 fi
1956
1957 echo "$ac_t""$ac_cv_header_time" 1>&6
1958 if test $ac_cv_header_time = yes; then
1959   cat >> confdefs.h <<\EOF
1960 #define TIME_WITH_SYS_TIME 1
1961 EOF
1962
1963 fi
1964
1965 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1966 echo "configure:1967: checking whether string.h and strings.h may both be included" >&5
1967 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1968   echo $ac_n "(cached) $ac_c" 1>&6
1969 else
1970   cat > conftest.$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973 #include <string.h>
1974 #include <strings.h>
1975 int main() {
1976
1977 ; return 0; }
1978 EOF
1979 if { (eval echo configure:1980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1980   rm -rf conftest*
1981   gcc_cv_header_string=yes
1982 else
1983   echo "configure: failed program was:" >&5
1984   cat conftest.$ac_ext >&5
1985   rm -rf conftest*
1986   gcc_cv_header_string=no
1987 fi
1988 rm -f conftest*
1989 fi
1990
1991 echo "$ac_t""$gcc_cv_header_string" 1>&6
1992 if test $gcc_cv_header_string = yes; then
1993   cat >> confdefs.h <<\EOF
1994 #define STRING_WITH_STRINGS 1
1995 EOF
1996
1997 fi
1998
1999 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2000 echo "configure:2001: checking for sys/wait.h that is POSIX.1 compatible" >&5
2001 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2002   echo $ac_n "(cached) $ac_c" 1>&6
2003 else
2004   cat > conftest.$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2007 #include <sys/types.h>
2008 #include <sys/wait.h>
2009 #ifndef WEXITSTATUS
2010 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2011 #endif
2012 #ifndef WIFEXITED
2013 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2014 #endif
2015 int main() {
2016 int s;
2017 wait (&s);
2018 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2019 ; return 0; }
2020 EOF
2021 if { (eval echo configure:2022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2022   rm -rf conftest*
2023   ac_cv_header_sys_wait_h=yes
2024 else
2025   echo "configure: failed program was:" >&5
2026   cat conftest.$ac_ext >&5
2027   rm -rf conftest*
2028   ac_cv_header_sys_wait_h=no
2029 fi
2030 rm -f conftest*
2031 fi
2032
2033 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2034 if test $ac_cv_header_sys_wait_h = yes; then
2035   cat >> confdefs.h <<\EOF
2036 #define HAVE_SYS_WAIT_H 1
2037 EOF
2038
2039 fi
2040
2041 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2042                  fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2043                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
2044                  direct.h malloc.h
2045 do
2046 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2047 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2048 echo "configure:2049: checking for $ac_hdr" >&5
2049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2050   echo $ac_n "(cached) $ac_c" 1>&6
2051 else
2052   cat > conftest.$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 #include <$ac_hdr>
2056 EOF
2057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2058 { (eval echo configure:2059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2060 if test -z "$ac_err"; then
2061   rm -rf conftest*
2062   eval "ac_cv_header_$ac_safe=yes"
2063 else
2064   echo "$ac_err" >&5
2065   echo "configure: failed program was:" >&5
2066   cat conftest.$ac_ext >&5
2067   rm -rf conftest*
2068   eval "ac_cv_header_$ac_safe=no"
2069 fi
2070 rm -f conftest*
2071 fi
2072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2073   echo "$ac_t""yes" 1>&6
2074     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2075   cat >> confdefs.h <<EOF
2076 #define $ac_tr_hdr 1
2077 EOF
2078  
2079 else
2080   echo "$ac_t""no" 1>&6
2081 fi
2082 done
2083
2084
2085 # Check for thread headers.
2086 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2087 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2088 echo "configure:2089: checking for thread.h" >&5
2089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2090   echo $ac_n "(cached) $ac_c" 1>&6
2091 else
2092   cat > conftest.$ac_ext <<EOF
2093 #line 2094 "configure"
2094 #include "confdefs.h"
2095 #include <thread.h>
2096 EOF
2097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2098 { (eval echo configure:2099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2100 if test -z "$ac_err"; then
2101   rm -rf conftest*
2102   eval "ac_cv_header_$ac_safe=yes"
2103 else
2104   echo "$ac_err" >&5
2105   echo "configure: failed program was:" >&5
2106   cat conftest.$ac_ext >&5
2107   rm -rf conftest*
2108   eval "ac_cv_header_$ac_safe=no"
2109 fi
2110 rm -f conftest*
2111 fi
2112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2113   echo "$ac_t""yes" 1>&6
2114   have_thread_h=yes
2115 else
2116   echo "$ac_t""no" 1>&6
2117 have_thread_h=
2118 fi
2119
2120 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2121 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2122 echo "configure:2123: checking for pthread.h" >&5
2123 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2124   echo $ac_n "(cached) $ac_c" 1>&6
2125 else
2126   cat > conftest.$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2129 #include <pthread.h>
2130 EOF
2131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2132 { (eval echo configure:2133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2134 if test -z "$ac_err"; then
2135   rm -rf conftest*
2136   eval "ac_cv_header_$ac_safe=yes"
2137 else
2138   echo "$ac_err" >&5
2139   echo "configure: failed program was:" >&5
2140   cat conftest.$ac_ext >&5
2141   rm -rf conftest*
2142   eval "ac_cv_header_$ac_safe=no"
2143 fi
2144 rm -f conftest*
2145 fi
2146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2147   echo "$ac_t""yes" 1>&6
2148   have_pthread_h=yes
2149 else
2150   echo "$ac_t""no" 1>&6
2151 have_pthread_h=
2152 fi
2153
2154
2155 # See if GNAT has been installed
2156 # Extract the first word of "gnatbind", so it can be a program name with args.
2157 set dummy gnatbind; ac_word=$2
2158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2159 echo "configure:2160: checking for $ac_word" >&5
2160 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2161   echo $ac_n "(cached) $ac_c" 1>&6
2162 else
2163   if test -n "$gnat"; then
2164   ac_cv_prog_gnat="$gnat" # Let the user override the test.
2165 else
2166   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2167   ac_dummy="$PATH"
2168   for ac_dir in $ac_dummy; do
2169     test -z "$ac_dir" && ac_dir=.
2170     if test -f $ac_dir/$ac_word; then
2171       ac_cv_prog_gnat="yes"
2172       break
2173     fi
2174   done
2175   IFS="$ac_save_ifs"
2176   test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2177 fi
2178 fi
2179 gnat="$ac_cv_prog_gnat"
2180 if test -n "$gnat"; then
2181   echo "$ac_t""$gnat" 1>&6
2182 else
2183   echo "$ac_t""no" 1>&6
2184 fi
2185
2186
2187 # Do we have a single-tree copy of texinfo?
2188 if test -f $srcdir/../texinfo/Makefile.in; then
2189   MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
2190   gcc_cv_prog_makeinfo_modern=yes
2191   echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2192 else
2193   # See if makeinfo has been installed and is modern enough
2194   # that we can use it.
2195   # Extract the first word of "makeinfo", so it can be a program name with args.
2196 set dummy makeinfo; ac_word=$2
2197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2198 echo "configure:2199: checking for $ac_word" >&5
2199 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2200   echo $ac_n "(cached) $ac_c" 1>&6
2201 else
2202   if test -n "$MAKEINFO"; then
2203   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2204 else
2205   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2206   ac_dummy="$PATH"
2207   for ac_dir in $ac_dummy; do
2208     test -z "$ac_dir" && ac_dir=.
2209     if test -f $ac_dir/$ac_word; then
2210       ac_cv_prog_MAKEINFO="makeinfo"
2211       break
2212     fi
2213   done
2214   IFS="$ac_save_ifs"
2215 fi
2216 fi
2217 MAKEINFO="$ac_cv_prog_MAKEINFO"
2218 if test -n "$MAKEINFO"; then
2219   echo "$ac_t""$MAKEINFO" 1>&6
2220 else
2221   echo "$ac_t""no" 1>&6
2222 fi
2223
2224 if test -n "$MAKEINFO"; then
2225   # Found it, now check the version.
2226   echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2227 echo "configure:2228: checking for modern makeinfo" >&5
2228 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2229   echo $ac_n "(cached) $ac_c" 1>&6
2230 else
2231     ac_prog_version=`$MAKEINFO --version 2>&1 |
2232                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2233   echo "configure:2234: version of makeinfo is $ac_prog_version" >&5
2234   case $ac_prog_version in
2235     '')     gcc_cv_prog_makeinfo_modern=no;;
2236     3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9])
2237             gcc_cv_prog_makeinfo_modern=yes;;
2238     *)      gcc_cv_prog_makeinfo_modern=no;;
2239   esac
2240
2241 fi
2242
2243 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2244 else
2245   gcc_cv_prog_makeinfo_modern=no
2246 fi
2247
2248 fi
2249
2250 if test $gcc_cv_prog_makeinfo_modern = no; then
2251   echo "configure: warning: 
2252 *** Makeinfo is missing or too old.
2253 *** Info documentation will not be built or installed." 1>&2
2254   BUILD_INFO=
2255   INSTALL_INFO=
2256 else
2257   BUILD_INFO=info               
2258   INSTALL_INFO=install-info     
2259 fi
2260
2261 # See if the stage1 system preprocessor understands the ANSI C
2262 # preprocessor stringification operator.
2263
2264
2265 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2266 echo "configure:2267: checking for preprocessor stringizing operator" >&5
2267 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2268   echo $ac_n "(cached) $ac_c" 1>&6
2269 else
2270   cat > conftest.$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273
2274 #define x(y) #y
2275
2276 char *s = x(teststring);
2277
2278 EOF
2279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2280   egrep "#teststring" >/dev/null 2>&1; then
2281   rm -rf conftest*
2282   ac_cv_c_stringize=no
2283 else
2284   rm -rf conftest*
2285   ac_cv_c_stringize=yes
2286 fi
2287 rm -f conftest*
2288
2289 fi
2290
2291 if test "${ac_cv_c_stringize}" = yes
2292 then
2293         cat >> confdefs.h <<\EOF
2294 #define HAVE_STRINGIZE 1
2295 EOF
2296
2297 fi
2298 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2299
2300
2301 # Use <inttypes.h> only if it exists,
2302 # doesn't clash with <sys/types.h>, and declares intmax_t.
2303 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2304 echo "configure:2305: checking for inttypes.h" >&5
2305 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2306   echo $ac_n "(cached) $ac_c" 1>&6
2307 else
2308   cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 #include <sys/types.h>
2312 #include <inttypes.h>
2313 int main() {
2314 intmax_t i = -1;
2315 ; return 0; }
2316 EOF
2317 if { (eval echo configure:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2318   rm -rf conftest*
2319   gcc_cv_header_inttypes_h=yes
2320 else
2321   echo "configure: failed program was:" >&5
2322   cat conftest.$ac_ext >&5
2323   rm -rf conftest*
2324   gcc_cv_header_inttypes_h=no
2325 fi
2326 rm -f conftest*
2327 fi
2328
2329 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2330 if test $gcc_cv_header_inttypes_h = yes; then
2331   cat >> confdefs.h <<\EOF
2332 #define HAVE_INTTYPES_H 1
2333 EOF
2334
2335 fi
2336
2337 #
2338 # Determine if enumerated bitfields are unsigned.   ISO C says they can 
2339 # be either signed or unsigned.
2340 #
2341 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2342 echo "configure:2343: checking for unsigned enumerated bitfields" >&5
2343 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2344   echo $ac_n "(cached) $ac_c" 1>&6
2345 else
2346   if test "$cross_compiling" = yes; then
2347   gcc_cv_enum_bf_unsigned=yes
2348 else
2349   cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 #include <stdlib.h>
2353 enum t { BLAH = 128 } ;
2354 struct s_t { enum t member : 8; } s ;
2355 int main(void)
2356 {            
2357         s.member = BLAH;
2358         if (s.member < 0) exit(1);
2359         exit(0);
2360
2361 }
2362 EOF
2363 if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2364 then
2365   gcc_cv_enum_bf_unsigned=yes
2366 else
2367   echo "configure: failed program was:" >&5
2368   cat conftest.$ac_ext >&5
2369   rm -fr conftest*
2370   gcc_cv_enum_bf_unsigned=no
2371 fi
2372 rm -fr conftest*
2373 fi
2374
2375 fi
2376
2377 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2378 if test $gcc_cv_enum_bf_unsigned = yes; then
2379   cat >> confdefs.h <<\EOF
2380 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2381 EOF
2382
2383 fi
2384
2385 for ac_func in strtoul bsearch putenv popen bcopy bzero bcmp \
2386         index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2387         sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2388         fputs_unlocked getrusage valloc
2389 do
2390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2391 echo "configure:2392: checking for $ac_func" >&5
2392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2393   echo $ac_n "(cached) $ac_c" 1>&6
2394 else
2395   cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2398 /* System header to define __stub macros and hopefully few prototypes,
2399     which can conflict with char $ac_func(); below.  */
2400 #include <assert.h>
2401 /* Override any gcc2 internal prototype to avoid an error.  */
2402 /* We use char because int might match the return type of a gcc2
2403     builtin and then its argument prototype would still apply.  */
2404 char $ac_func();
2405 char (*f)();
2406
2407 int main() {
2408
2409 /* The GNU C library defines this for functions which it implements
2410     to always fail with ENOSYS.  Some functions are actually named
2411     something starting with __ and the normal name is an alias.  */
2412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2413 choke me
2414 #else
2415 f = $ac_func;
2416 #endif
2417
2418 ; return 0; }
2419 EOF
2420 if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2421   rm -rf conftest*
2422   eval "ac_cv_func_$ac_func=yes"
2423 else
2424   echo "configure: failed program was:" >&5
2425   cat conftest.$ac_ext >&5
2426   rm -rf conftest*
2427   eval "ac_cv_func_$ac_func=no"
2428 fi
2429 rm -f conftest*
2430 fi
2431
2432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2433   echo "$ac_t""yes" 1>&6
2434     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2435   cat >> confdefs.h <<EOF
2436 #define $ac_tr_func 1
2437 EOF
2438  
2439 else
2440   echo "$ac_t""no" 1>&6
2441 fi
2442 done
2443
2444
2445 # Make sure wchar_t is available
2446 #AC_CHECK_TYPE(wchar_t, unsigned int)
2447
2448 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2449 echo "configure:2450: checking for vprintf" >&5
2450 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2451   echo $ac_n "(cached) $ac_c" 1>&6
2452 else
2453   cat > conftest.$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 /* System header to define __stub macros and hopefully few prototypes,
2457     which can conflict with char vprintf(); below.  */
2458 #include <assert.h>
2459 /* Override any gcc2 internal prototype to avoid an error.  */
2460 /* We use char because int might match the return type of a gcc2
2461     builtin and then its argument prototype would still apply.  */
2462 char vprintf();
2463 char (*f)();
2464
2465 int main() {
2466
2467 /* The GNU C library defines this for functions which it implements
2468     to always fail with ENOSYS.  Some functions are actually named
2469     something starting with __ and the normal name is an alias.  */
2470 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2471 choke me
2472 #else
2473 f = vprintf;
2474 #endif
2475
2476 ; return 0; }
2477 EOF
2478 if { (eval echo configure:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2479   rm -rf conftest*
2480   eval "ac_cv_func_vprintf=yes"
2481 else
2482   echo "configure: failed program was:" >&5
2483   cat conftest.$ac_ext >&5
2484   rm -rf conftest*
2485   eval "ac_cv_func_vprintf=no"
2486 fi
2487 rm -f conftest*
2488 fi
2489
2490 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2491   echo "$ac_t""yes" 1>&6
2492   cat >> confdefs.h <<\EOF
2493 #define HAVE_VPRINTF 1
2494 EOF
2495
2496 else
2497   echo "$ac_t""no" 1>&6
2498 fi
2499
2500 if test "$ac_cv_func_vprintf" != yes; then
2501 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2502 echo "configure:2503: checking for _doprnt" >&5
2503 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2504   echo $ac_n "(cached) $ac_c" 1>&6
2505 else
2506   cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2509 /* System header to define __stub macros and hopefully few prototypes,
2510     which can conflict with char _doprnt(); below.  */
2511 #include <assert.h>
2512 /* Override any gcc2 internal prototype to avoid an error.  */
2513 /* We use char because int might match the return type of a gcc2
2514     builtin and then its argument prototype would still apply.  */
2515 char _doprnt();
2516 char (*f)();
2517
2518 int main() {
2519
2520 /* The GNU C library defines this for functions which it implements
2521     to always fail with ENOSYS.  Some functions are actually named
2522     something starting with __ and the normal name is an alias.  */
2523 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2524 choke me
2525 #else
2526 f = _doprnt;
2527 #endif
2528
2529 ; return 0; }
2530 EOF
2531 if { (eval echo configure:2532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2532   rm -rf conftest*
2533   eval "ac_cv_func__doprnt=yes"
2534 else
2535   echo "configure: failed program was:" >&5
2536   cat conftest.$ac_ext >&5
2537   rm -rf conftest*
2538   eval "ac_cv_func__doprnt=no"
2539 fi
2540 rm -f conftest*
2541 fi
2542
2543 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2544   echo "$ac_t""yes" 1>&6
2545   cat >> confdefs.h <<\EOF
2546 #define HAVE_DOPRNT 1
2547 EOF
2548
2549 else
2550   echo "$ac_t""no" 1>&6
2551 fi
2552
2553 fi
2554
2555 vfprintf=
2556 doprint=
2557 if test $ac_cv_func_vprintf != yes ; then
2558   vfprintf=vfprintf.o
2559   if test $ac_cv_func__doprnt != yes ; then
2560     doprint=doprint.o
2561   fi
2562 fi
2563
2564
2565
2566 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2567 echo "configure:2568: checking whether the printf functions support %p" >&5
2568 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2569   echo $ac_n "(cached) $ac_c" 1>&6
2570 else
2571   if test "$cross_compiling" = yes; then
2572   gcc_cv_func_printf_ptr=no
2573 else
2574   cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 #include <stdio.h>
2578
2579 int main()
2580 {
2581   char buf[64];
2582   char *p = buf, *q = NULL;
2583   sprintf(buf, "%p", p);
2584   sscanf(buf, "%p", &q);
2585   return (p != q);
2586 }
2587 EOF
2588 if { (eval echo configure:2589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2589 then
2590   gcc_cv_func_printf_ptr=yes
2591 else
2592   echo "configure: failed program was:" >&5
2593   cat conftest.$ac_ext >&5
2594   rm -fr conftest*
2595   gcc_cv_func_printf_ptr=no
2596 fi
2597 rm -fr conftest*
2598 fi
2599
2600 rm -f core core.* *.core
2601 fi
2602
2603 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2604 if test $gcc_cv_func_printf_ptr = yes ; then
2605   cat >> confdefs.h <<\EOF
2606 #define HAVE_PRINTF_PTR 1
2607 EOF
2608
2609 fi
2610
2611
2612 case "${host}" in
2613 *-*-uwin*)
2614   # Under some versions of uwin, vfork is notoriously buggy and the test 
2615   # can hang configure; on other versions, vfork exists just as a stub.
2616   # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2617   ac_cv_func_vfork_works=no
2618   ;;
2619 esac
2620 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2621 echo "configure:2622: checking for pid_t" >&5
2622 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2623   echo $ac_n "(cached) $ac_c" 1>&6
2624 else
2625   cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2628 #include <sys/types.h>
2629 #if STDC_HEADERS
2630 #include <stdlib.h>
2631 #include <stddef.h>
2632 #endif
2633 EOF
2634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2635   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2636   rm -rf conftest*
2637   ac_cv_type_pid_t=yes
2638 else
2639   rm -rf conftest*
2640   ac_cv_type_pid_t=no
2641 fi
2642 rm -f conftest*
2643
2644 fi
2645 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2646 if test $ac_cv_type_pid_t = no; then
2647   cat >> confdefs.h <<\EOF
2648 #define pid_t int
2649 EOF
2650
2651 fi
2652
2653 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2654 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2655 echo "configure:2656: checking for vfork.h" >&5
2656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2657   echo $ac_n "(cached) $ac_c" 1>&6
2658 else
2659   cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 #include <vfork.h>
2663 EOF
2664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2665 { (eval echo configure:2666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2667 if test -z "$ac_err"; then
2668   rm -rf conftest*
2669   eval "ac_cv_header_$ac_safe=yes"
2670 else
2671   echo "$ac_err" >&5
2672   echo "configure: failed program was:" >&5
2673   cat conftest.$ac_ext >&5
2674   rm -rf conftest*
2675   eval "ac_cv_header_$ac_safe=no"
2676 fi
2677 rm -f conftest*
2678 fi
2679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2680   echo "$ac_t""yes" 1>&6
2681   cat >> confdefs.h <<\EOF
2682 #define HAVE_VFORK_H 1
2683 EOF
2684
2685 else
2686   echo "$ac_t""no" 1>&6
2687 fi
2688
2689 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2690 echo "configure:2691: checking for working vfork" >&5
2691 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2692   echo $ac_n "(cached) $ac_c" 1>&6
2693 else
2694   if test "$cross_compiling" = yes; then
2695   echo $ac_n "checking for vfork""... $ac_c" 1>&6
2696 echo "configure:2697: checking for vfork" >&5
2697 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2698   echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700   cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 /* System header to define __stub macros and hopefully few prototypes,
2704     which can conflict with char vfork(); below.  */
2705 #include <assert.h>
2706 /* Override any gcc2 internal prototype to avoid an error.  */
2707 /* We use char because int might match the return type of a gcc2
2708     builtin and then its argument prototype would still apply.  */
2709 char vfork();
2710 char (*f)();
2711
2712 int main() {
2713
2714 /* The GNU C library defines this for functions which it implements
2715     to always fail with ENOSYS.  Some functions are actually named
2716     something starting with __ and the normal name is an alias.  */
2717 #if defined (__stub_vfork) || defined (__stub___vfork)
2718 choke me
2719 #else
2720 f = vfork;
2721 #endif
2722
2723 ; return 0; }
2724 EOF
2725 if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2726   rm -rf conftest*
2727   eval "ac_cv_func_vfork=yes"
2728 else
2729   echo "configure: failed program was:" >&5
2730   cat conftest.$ac_ext >&5
2731   rm -rf conftest*
2732   eval "ac_cv_func_vfork=no"
2733 fi
2734 rm -f conftest*
2735 fi
2736
2737 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2738   echo "$ac_t""yes" 1>&6
2739   :
2740 else
2741   echo "$ac_t""no" 1>&6
2742 fi
2743
2744 ac_cv_func_vfork_works=$ac_cv_func_vfork
2745 else
2746   cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2749 /* Thanks to Paul Eggert for this test.  */
2750 #include <stdio.h>
2751 #include <sys/types.h>
2752 #include <sys/stat.h>
2753 #ifdef HAVE_UNISTD_H
2754 #include <unistd.h>
2755 #endif
2756 #ifdef HAVE_VFORK_H
2757 #include <vfork.h>
2758 #endif
2759 /* On some sparc systems, changes by the child to local and incoming
2760    argument registers are propagated back to the parent.
2761    The compiler is told about this with #include <vfork.h>,
2762    but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2763    Test for this by using a static variable whose address
2764    is put into a register that is clobbered by the vfork.  */
2765 static
2766 #ifdef __cplusplus
2767 sparc_address_test (int arg)
2768 #else
2769 sparc_address_test (arg) int arg;
2770 #endif
2771 {
2772   static pid_t child;
2773   if (!child) {
2774     child = vfork ();
2775     if (child < 0) {
2776       perror ("vfork");
2777       _exit(2);
2778     }
2779     if (!child) {
2780       arg = getpid();
2781       write(-1, "", 0);
2782       _exit (arg);
2783     }
2784   }
2785 }
2786 main() {
2787   pid_t parent = getpid ();
2788   pid_t child;
2789
2790   sparc_address_test ();
2791
2792   child = vfork ();
2793
2794   if (child == 0) {
2795     /* Here is another test for sparc vfork register problems.
2796        This test uses lots of local variables, at least
2797        as many local variables as main has allocated so far
2798        including compiler temporaries.  4 locals are enough for
2799        gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2800        A buggy compiler should reuse the register of parent
2801        for one of the local variables, since it will think that
2802        parent can't possibly be used any more in this routine.
2803        Assigning to the local variable will thus munge parent
2804        in the parent process.  */
2805     pid_t
2806       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2807       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2808     /* Convince the compiler that p..p7 are live; otherwise, it might
2809        use the same hardware register for all 8 local variables.  */
2810     if (p != p1 || p != p2 || p != p3 || p != p4
2811         || p != p5 || p != p6 || p != p7)
2812       _exit(1);
2813
2814     /* On some systems (e.g. IRIX 3.3),
2815        vfork doesn't separate parent from child file descriptors.
2816        If the child closes a descriptor before it execs or exits,
2817        this munges the parent's descriptor as well.
2818        Test for this by closing stdout in the child.  */
2819     _exit(close(fileno(stdout)) != 0);
2820   } else {
2821     int status;
2822     struct stat st;
2823
2824     while (wait(&status) != child)
2825       ;
2826     exit(
2827          /* Was there some problem with vforking?  */
2828          child < 0
2829
2830          /* Did the child fail?  (This shouldn't happen.)  */
2831          || status
2832
2833          /* Did the vfork/compiler bug occur?  */
2834          || parent != getpid()
2835
2836          /* Did the file descriptor bug occur?  */
2837          || fstat(fileno(stdout), &st) != 0
2838          );
2839   }
2840 }
2841 EOF
2842 if { (eval echo configure:2843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2843 then
2844   ac_cv_func_vfork_works=yes
2845 else
2846   echo "configure: failed program was:" >&5
2847   cat conftest.$ac_ext >&5
2848   rm -fr conftest*
2849   ac_cv_func_vfork_works=no
2850 fi
2851 rm -fr conftest*
2852 fi
2853
2854 fi
2855
2856 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2857 if test $ac_cv_func_vfork_works = no; then
2858   cat >> confdefs.h <<\EOF
2859 #define vfork fork
2860 EOF
2861
2862 fi
2863
2864 for ac_hdr in unistd.h
2865 do
2866 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2868 echo "configure:2869: checking for $ac_hdr" >&5
2869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2870   echo $ac_n "(cached) $ac_c" 1>&6
2871 else
2872   cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875 #include <$ac_hdr>
2876 EOF
2877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2878 { (eval echo configure:2879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2880 if test -z "$ac_err"; then
2881   rm -rf conftest*
2882   eval "ac_cv_header_$ac_safe=yes"
2883 else
2884   echo "$ac_err" >&5
2885   echo "configure: failed program was:" >&5
2886   cat conftest.$ac_ext >&5
2887   rm -rf conftest*
2888   eval "ac_cv_header_$ac_safe=no"
2889 fi
2890 rm -f conftest*
2891 fi
2892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2893   echo "$ac_t""yes" 1>&6
2894     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2895   cat >> confdefs.h <<EOF
2896 #define $ac_tr_hdr 1
2897 EOF
2898  
2899 else
2900   echo "$ac_t""no" 1>&6
2901 fi
2902 done
2903
2904 for ac_func in getpagesize
2905 do
2906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2907 echo "configure:2908: checking for $ac_func" >&5
2908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2909   echo $ac_n "(cached) $ac_c" 1>&6
2910 else
2911   cat > conftest.$ac_ext <<EOF
2912 #line 2913 "configure"
2913 #include "confdefs.h"
2914 /* System header to define __stub macros and hopefully few prototypes,
2915     which can conflict with char $ac_func(); below.  */
2916 #include <assert.h>
2917 /* Override any gcc2 internal prototype to avoid an error.  */
2918 /* We use char because int might match the return type of a gcc2
2919     builtin and then its argument prototype would still apply.  */
2920 char $ac_func();
2921 char (*f)();
2922
2923 int main() {
2924
2925 /* The GNU C library defines this for functions which it implements
2926     to always fail with ENOSYS.  Some functions are actually named
2927     something starting with __ and the normal name is an alias.  */
2928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2929 choke me
2930 #else
2931 f = $ac_func;
2932 #endif
2933
2934 ; return 0; }
2935 EOF
2936 if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2937   rm -rf conftest*
2938   eval "ac_cv_func_$ac_func=yes"
2939 else
2940   echo "configure: failed program was:" >&5
2941   cat conftest.$ac_ext >&5
2942   rm -rf conftest*
2943   eval "ac_cv_func_$ac_func=no"
2944 fi
2945 rm -f conftest*
2946 fi
2947
2948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2949   echo "$ac_t""yes" 1>&6
2950     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2951   cat >> confdefs.h <<EOF
2952 #define $ac_tr_func 1
2953 EOF
2954  
2955 else
2956   echo "$ac_t""no" 1>&6
2957 fi
2958 done
2959
2960 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2961 echo "configure:2962: checking for working mmap from /dev/zero" >&5
2962 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
2963   echo $ac_n "(cached) $ac_c" 1>&6
2964 else
2965   if test "$cross_compiling" = yes; then
2966   ac_cv_func_mmap_anywhere=no
2967 else
2968   cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2971
2972 /* Test by Richard Henderson and Alexandre Oliva.
2973    Check whether mmap from /dev/zero works. */
2974 #include <sys/types.h>
2975 #include <fcntl.h>
2976 #include <sys/mman.h>
2977
2978 /* This mess was copied from the GNU getpagesize.h.  */
2979 #ifndef HAVE_GETPAGESIZE
2980 # ifdef HAVE_UNISTD_H
2981 #  include <unistd.h>
2982 # endif
2983
2984 /* Assume that all systems that can run configure have sys/param.h.  */
2985 # ifndef HAVE_SYS_PARAM_H
2986 #  define HAVE_SYS_PARAM_H 1
2987 # endif
2988
2989 # ifdef _SC_PAGESIZE
2990 #  define getpagesize() sysconf(_SC_PAGESIZE)
2991 # else /* no _SC_PAGESIZE */
2992 #  ifdef HAVE_SYS_PARAM_H
2993 #   include <sys/param.h>
2994 #   ifdef EXEC_PAGESIZE
2995 #    define getpagesize() EXEC_PAGESIZE
2996 #   else /* no EXEC_PAGESIZE */
2997 #    ifdef NBPG
2998 #     define getpagesize() NBPG * CLSIZE
2999 #     ifndef CLSIZE
3000 #      define CLSIZE 1
3001 #     endif /* no CLSIZE */
3002 #    else /* no NBPG */
3003 #     ifdef NBPC
3004 #      define getpagesize() NBPC
3005 #     else /* no NBPC */
3006 #      ifdef PAGESIZE
3007 #       define getpagesize() PAGESIZE
3008 #      endif /* PAGESIZE */
3009 #     endif /* no NBPC */
3010 #    endif /* no NBPG */
3011 #   endif /* no EXEC_PAGESIZE */
3012 #  else /* no HAVE_SYS_PARAM_H */
3013 #   define getpagesize() 8192   /* punt totally */
3014 #  endif /* no HAVE_SYS_PARAM_H */
3015 # endif /* no _SC_PAGESIZE */
3016
3017 #endif /* no HAVE_GETPAGESIZE */
3018
3019 int main()
3020 {
3021   char *x;
3022   int fd, pg;
3023
3024   fd = open("/dev/zero", O_RDWR);
3025   if (fd < 0)
3026     exit(1);
3027
3028   pg = getpagesize();
3029   x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3030   if (x == (char *) -1)
3031     exit(2);
3032
3033   *(int *)x += 1;
3034
3035   if (munmap(x, pg) < 0)
3036     exit(3);
3037
3038   exit(0);
3039 }
3040 EOF
3041 if { (eval echo configure:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3042 then
3043   ac_cv_func_mmap_anywhere=yes
3044 else
3045   echo "configure: failed program was:" >&5
3046   cat conftest.$ac_ext >&5
3047   rm -fr conftest*
3048   ac_cv_func_mmap_anywhere=no
3049 fi
3050 rm -fr conftest*
3051 fi
3052
3053 fi
3054
3055 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3056 if test $ac_cv_func_mmap_anywhere = yes; then
3057   cat >> confdefs.h <<\EOF
3058 #define HAVE_MMAP_ANYWHERE 1
3059 EOF
3060
3061 fi
3062
3063 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3064 echo "configure:3065: checking for working mmap of a file" >&5
3065 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3066   echo $ac_n "(cached) $ac_c" 1>&6
3067 else
3068   # Create a file one thousand bytes long.
3069 for i in 1 2 3 4 5 6 7 8 9 0
3070 do for j in 1 2 3 4 5 6 7 8 9 0
3071 do echo $i $j xxxxx
3072 done
3073 done > conftestdata$$
3074
3075 if test "$cross_compiling" = yes; then
3076   ac_cv_func_mmap_file=no
3077 else
3078   cat > conftest.$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3081
3082 /* Test by Zack Weinberg.  Modified from MMAP_ANYWHERE test by
3083    Richard Henderson and Alexandre Oliva.
3084    Check whether read-only mmap of a plain file works. */
3085 #include <sys/types.h>
3086 #include <sys/stat.h>
3087 #include <fcntl.h>
3088 #include <sys/mman.h>
3089
3090 int main()
3091 {
3092   char *x;
3093   int fd;
3094   struct stat st;
3095
3096   fd = open("conftestdata$$", O_RDONLY);
3097   if (fd < 0)
3098     exit(1);
3099
3100   if (fstat (fd, &st))
3101     exit(2);
3102
3103   x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3104   if (x == (char *) -1)
3105     exit(3);
3106
3107   if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3108     exit(4);
3109
3110   if (munmap(x, st.st_size) < 0)
3111     exit(5);
3112
3113   exit(0);
3114 }
3115 EOF
3116 if { (eval echo configure:3117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3117 then
3118   ac_cv_func_mmap_file=yes
3119 else
3120   echo "configure: failed program was:" >&5
3121   cat conftest.$ac_ext >&5
3122   rm -fr conftest*
3123   ac_cv_func_mmap_file=no
3124 fi
3125 rm -fr conftest*
3126 fi
3127
3128 fi
3129
3130 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3131 if test $ac_cv_func_mmap_file = yes; then
3132   cat >> confdefs.h <<\EOF
3133 #define HAVE_MMAP_FILE 1
3134 EOF
3135
3136 fi
3137
3138
3139 # We will need to find libiberty.h and ansidecl.h
3140 saved_CFLAGS="$CFLAGS"
3141 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3142 for ac_func in bcopy bzero bcmp \
3143         index rindex getenv atol sbrk abort atof getcwd getwd \
3144         strsignal putc_unlocked fputs_unlocked strstr environ \
3145         malloc realloc calloc free
3146 do
3147 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3148 echo "configure:3149: checking whether $ac_func must be declared" >&5
3149 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3150   echo $ac_n "(cached) $ac_c" 1>&6
3151 else
3152   cat > conftest.$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3155
3156 #include "gansidecl.h"
3157 #include "system.h"
3158 int main() {
3159 #ifndef $ac_func
3160 char *(*pfn) = (char *(*)) $ac_func ;
3161 #endif
3162 ; return 0; }
3163 EOF
3164 if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3165   rm -rf conftest*
3166   eval "gcc_cv_decl_needed_$ac_func=no"
3167 else
3168   echo "configure: failed program was:" >&5
3169   cat conftest.$ac_ext >&5
3170   rm -rf conftest*
3171   eval "gcc_cv_decl_needed_$ac_func=yes"
3172 fi
3173 rm -f conftest*
3174 fi
3175
3176 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3177   echo "$ac_t""yes" 1>&6 ;   ac_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3178   cat >> confdefs.h <<EOF
3179 #define $ac_tr_decl 1
3180 EOF
3181  
3182 else
3183   echo "$ac_t""no" 1>&6 ; :
3184 fi
3185
3186 done
3187 if test x = y ; then
3188   cat >> confdefs.h <<EOF
3189 #define NEED_DECLARATION_BCOPY 1
3190 EOF
3191  cat >> confdefs.h <<EOF
3192 #define NEED_DECLARATION_BZERO 1
3193 EOF
3194  cat >> confdefs.h <<EOF
3195 #define NEED_DECLARATION_BCMP 1
3196 EOF
3197  \
3198         cat >> confdefs.h <<EOF
3199 #define NEED_DECLARATION_INDEX 1
3200 EOF
3201  cat >> confdefs.h <<EOF
3202 #define NEED_DECLARATION_RINDEX 1
3203 EOF
3204  cat >> confdefs.h <<EOF
3205 #define NEED_DECLARATION_GETENV 1
3206 EOF
3207  cat >> confdefs.h <<EOF
3208 #define NEED_DECLARATION_ATOL 1
3209 EOF
3210  cat >> confdefs.h <<EOF
3211 #define NEED_DECLARATION_SBRK 1
3212 EOF
3213  cat >> confdefs.h <<EOF
3214 #define NEED_DECLARATION_ABORT 1
3215 EOF
3216  cat >> confdefs.h <<EOF
3217 #define NEED_DECLARATION_ATOF 1
3218 EOF
3219  cat >> confdefs.h <<EOF
3220 #define NEED_DECLARATION_GETCWD 1
3221 EOF
3222  cat >> confdefs.h <<EOF
3223 #define NEED_DECLARATION_GETWD 1
3224 EOF
3225  \
3226         cat >> confdefs.h <<EOF
3227 #define NEED_DECLARATION_STRSIGNAL 1
3228 EOF
3229  cat >> confdefs.h <<EOF
3230 #define NEED_DECLARATION_PUTC_UNLOCKED 1
3231 EOF
3232  cat >> confdefs.h <<EOF
3233 #define NEED_DECLARATION_FPUTS_UNLOCKED 1
3234 EOF
3235  cat >> confdefs.h <<EOF
3236 #define NEED_DECLARATION_STRSTR 1
3237 EOF
3238  cat >> confdefs.h <<EOF
3239 #define NEED_DECLARATION_ENVIRON 1
3240 EOF
3241  \
3242         cat >> confdefs.h <<EOF
3243 #define NEED_DECLARATION_MALLOC 1
3244 EOF
3245  cat >> confdefs.h <<EOF
3246 #define NEED_DECLARATION_REALLOC 1
3247 EOF
3248  cat >> confdefs.h <<EOF
3249 #define NEED_DECLARATION_CALLOC 1
3250 EOF
3251  cat >> confdefs.h <<EOF
3252 #define NEED_DECLARATION_FREE 1
3253 EOF
3254 fi
3255
3256
3257 for ac_func in getrlimit setrlimit getrusage
3258 do
3259 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3260 echo "configure:3261: checking whether $ac_func must be declared" >&5
3261 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3262   echo $ac_n "(cached) $ac_c" 1>&6
3263 else
3264   cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267
3268 #include "gansidecl.h"
3269 #include "system.h"
3270 #ifdef HAVE_SYS_RESOURCE_H
3271 #include <sys/resource.h>
3272 #endif
3273
3274 int main() {
3275 #ifndef $ac_func
3276 char *(*pfn) = (char *(*)) $ac_func ;
3277 #endif
3278 ; return 0; }
3279 EOF
3280 if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3281   rm -rf conftest*
3282   eval "gcc_cv_decl_needed_$ac_func=no"
3283 else
3284   echo "configure: failed program was:" >&5
3285   cat conftest.$ac_ext >&5
3286   rm -rf conftest*
3287   eval "gcc_cv_decl_needed_$ac_func=yes"
3288 fi
3289 rm -f conftest*
3290 fi
3291
3292 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3293   echo "$ac_t""yes" 1>&6 ;   ac_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3294   cat >> confdefs.h <<EOF
3295 #define $ac_tr_decl 1
3296 EOF
3297  
3298 else
3299   echo "$ac_t""no" 1>&6 ; :
3300 fi
3301
3302 done
3303 if test x = y ; then
3304   cat >> confdefs.h <<EOF
3305 #define NEED_DECLARATION_GETRLIMIT 1
3306 EOF
3307  cat >> confdefs.h <<EOF
3308 #define NEED_DECLARATION_SETRLIMIT 1
3309 EOF
3310  cat >> confdefs.h <<EOF
3311 #define NEED_DECLARATION_GETRUSAGE 1
3312 EOF
3313 fi
3314
3315
3316 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3317 CFLAGS="$saved_CFLAGS"
3318
3319 # mkdir takes a single argument on some systems. 
3320 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3321 echo "configure:3322: checking if mkdir takes one argument" >&5
3322 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3323   echo $ac_n "(cached) $ac_c" 1>&6
3324 else
3325   cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328
3329 #include <sys/types.h>
3330 #ifdef HAVE_SYS_STAT_H
3331 # include <sys/stat.h>
3332 #endif
3333 #ifdef HAVE_UNISTD_H
3334 # include <unistd.h>
3335 #endif
3336 #ifdef HAVE_DIRECT_H
3337 # include <direct.h>
3338 #endif
3339 int main() {
3340 mkdir ("foo", 0);
3341 ; return 0; }
3342 EOF
3343 if { (eval echo configure:3344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3344   rm -rf conftest*
3345   gcc_cv_mkdir_takes_one_arg=no
3346 else
3347   echo "configure: failed program was:" >&5
3348   cat conftest.$ac_ext >&5
3349   rm -rf conftest*
3350   gcc_cv_mkdir_takes_one_arg=yes
3351 fi
3352 rm -f conftest*
3353 fi
3354
3355 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3356 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3357   cat >> confdefs.h <<\EOF
3358 #define MKDIR_TAKES_ONE_ARG 1
3359 EOF
3360
3361 fi
3362
3363
3364 # File extensions
3365 manext='.1'
3366 objext='.o'
3367
3368
3369
3370 build_xm_file=
3371 build_xm_defines=
3372 build_install_headers_dir=install-headers-tar
3373 build_exeext=
3374 host_xm_file=
3375 host_xm_defines=
3376 host_xmake_file=
3377 host_truncate_target=
3378 host_exeext=
3379
3380 # Decode the host machine, then the target machine.
3381 # For the host machine, we save the xm_file variable as host_xm_file;
3382 # then we decode the target machine and forget everything else
3383 # that came from the host machine.
3384 for machine in $build $host $target; do
3385
3386         out_file=
3387         xmake_file=
3388         tmake_file=
3389         extra_headers=
3390         extra_passes=
3391         extra_parts=
3392         extra_programs=
3393         extra_objs=
3394         extra_host_objs=
3395         extra_gcc_objs=
3396         xm_defines=
3397         float_format=
3398         # Set this to force installation and use of collect2.
3399         use_collect2=
3400         # Set this to override the default target model.
3401         target_cpu_default=
3402         # Set this to control how the header file directory is installed.
3403         install_headers_dir=install-headers-tar
3404         # Set this to a non-empty list of args to pass to cpp if the target
3405         # wants its .md file passed through cpp.
3406         md_cppflags=
3407         # Set this if directory names should be truncated to 14 characters.
3408         truncate_target=
3409         # Set this if gdb needs a dir command with `dirname $out_file`
3410         gdb_needs_out_file_path=
3411         # Set this if the build machine requires executables to have a
3412         # file name suffix.
3413         exeext=
3414         # Set this to control which thread package will be used.
3415         thread_file=
3416         # Reinitialize these from the flag values every loop pass, since some
3417         # configure entries modify them.
3418         gas="$gas_flag"
3419         gnu_ld="$gnu_ld_flag"
3420         enable_threads=$enable_threads_flag
3421
3422         # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3423         # updated in each machine entry.
3424         tm_p_file=
3425         cpu_type=`echo $machine | sed 's/-.*$//'`
3426         case $machine in
3427         alpha*-*-*)
3428                 cpu_type=alpha
3429                 ;;
3430         arm*-*-*)
3431                 cpu_type=arm
3432                 ;;
3433         c*-convex-*)
3434                 cpu_type=convex
3435                 ;;
3436         i[34567]86-*-*)
3437                 cpu_type=i386
3438                 ;;
3439         hppa*-*-*)
3440                 cpu_type=pa
3441                 ;;
3442         m68000-*-*)
3443                 cpu_type=m68k
3444                 ;;
3445         mips*-*-*)
3446                 cpu_type=mips
3447                 ;;
3448         pj*-*-*)
3449                 cpu_type=pj
3450                 ;;
3451         powerpc*-*-*)
3452                 cpu_type=rs6000
3453                 ;;
3454         pyramid-*-*)
3455                 cpu_type=pyr
3456                 ;;
3457         sparc*-*-*)
3458                 cpu_type=sparc
3459                 ;;
3460         esac
3461
3462         tm_file=${cpu_type}/${cpu_type}.h
3463         xm_file=${cpu_type}/xm-${cpu_type}.h
3464         if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
3465         then
3466                 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
3467         fi
3468         # On a.out targets, we need to use collect2.
3469         case $machine in
3470         *-*-*aout*)
3471                 use_collect2=yes
3472                 ;;
3473         esac    
3474
3475         # Common parts for linux-gnu and openbsd systems
3476         case $machine in
3477         *-*-linux-gnu*)
3478                 xm_defines="HAVE_ATEXIT POSIX BSTRING"
3479                 ;;
3480         *-*-openbsd*)
3481                 tm_file=${cpu_type}/openbsd.h
3482                 tmake_file="t-libc-ok t-openbsd"
3483                 # avoid surprises, always provide an xm-openbsd file 
3484                 xm_file=${cpu_type}/xm-openbsd.h
3485                 # don't depend on processor x-fragments as well
3486                 xmake_file=none
3487                 if test x$enable_threads = xyes; then
3488                         thread_file='posix'
3489                         tmake_file="${tmake_file} t-openbsd-thread"
3490                 fi
3491                 ;;
3492         esac
3493
3494         case $machine in
3495         # Support site-specific machine types.
3496         *local*)
3497                 cpu_type=`echo $machine | sed -e 's/-.*//'`
3498                 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3499                 xm_file=${cpu_type}/xm-$rest.h
3500                 tm_file=${cpu_type}/$rest.h
3501                 if test -f $srcdir/config/${cpu_type}/x-$rest; \
3502                 then xmake_file=${cpu_type}/x-$rest; \
3503                 else true; \
3504                 fi
3505                 if test -f $srcdir/config/${cpu_type}/t-$rest; \
3506                 then tmake_file=${cpu_type}/t-$rest; \
3507                 else true; \
3508                 fi
3509                 ;;
3510         1750a-*-*)
3511                 ;;
3512         a29k-*-bsd* | a29k-*-sym1*)
3513                 tm_file="${tm_file} a29k/unix.h"
3514                 xm_defines=USG
3515                 xmake_file=a29k/x-unix
3516                 use_collect2=yes
3517                 ;;
3518         a29k-*-udi | a29k-*-coff)
3519                 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3520                 tmake_file=a29k/t-a29kbare
3521                 ;;
3522         a29k-wrs-vxworks*)
3523                 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3524                 tmake_file=a29k/t-vx29k
3525                 extra_parts="crtbegin.o crtend.o"
3526                 thread_file='vxworks'
3527                 ;;
3528         a29k-*-*)                       # Default a29k environment.
3529                 use_collect2=yes
3530                 ;;
3531         alpha-*-interix)
3532                 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3533
3534                 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3535                 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3536
3537                 # GAS + IEEE_CONFORMANT
3538                 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3539
3540                 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3541                 xmake_file="x-interix alpha/t-pe"
3542                 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3543                 if test x$enable_threads = xyes ; then
3544                         thread_file='posix'
3545                 fi
3546                 if test x$stabs = xyes ; then
3547                         tm_file="${tm_file} dbxcoff.h"
3548                 fi
3549                 #prefix='$$INTERIX_ROOT'/usr/contrib
3550                 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3551                 ;;
3552         alpha*-*-linux-gnuecoff*)
3553                 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3554                 target_cpu_default="MASK_GAS"
3555                 tmake_file="alpha/t-alpha alpha/t-ieee"
3556                 gas=no
3557                 xmake_file=none
3558                 gas=yes gnu_ld=yes
3559                 ;;
3560         alpha*-*-linux-gnulibc1*)
3561                 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3562                 target_cpu_default="MASK_GAS"
3563                 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3564                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3565                 xmake_file=none
3566                 gas=yes gnu_ld=yes
3567                 if test x$enable_threads = xyes; then
3568                         thread_file='posix'
3569                 fi
3570                 ;;
3571         alpha*-*-linux-gnu*)
3572                 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3573                 target_cpu_default="MASK_GAS"
3574                 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3575                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3576                 xmake_file=none
3577                 gas=yes gnu_ld=yes
3578                 if test x$enable_threads = xyes; then
3579                         thread_file='posix'
3580                 fi
3581                 ;;
3582         alpha*-*-netbsd*)
3583                 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3584                 target_cpu_default="MASK_GAS"
3585                 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3586                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3587                 xmake_file=none
3588                 gas=yes gnu_ld=yes
3589                 ;;
3590
3591         alpha*-*-openbsd*)
3592                 # default x-alpha is only appropriate for dec-osf.
3593                 target_cpu_default="MASK_GAS"
3594                 tmake_file="alpha/t-alpha alpha/t-ieee"
3595                 ;;
3596                 
3597         alpha*-dec-osf*)
3598                 if test x$stabs = xyes
3599                 then
3600                         tm_file="${tm_file} dbx.h"
3601                 fi
3602                 if test x$gas != xyes
3603                 then
3604                         extra_passes="mips-tfile mips-tdump"
3605                 fi
3606                 use_collect2=yes
3607                 tmake_file="alpha/t-alpha alpha/t-ieee"
3608                 case $machine in
3609                   *-*-osf1*)
3610                     tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3611                     ;;
3612                   *-*-osf[23]*)
3613                     tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3614                     ;;
3615                   *-*-osf4*)
3616                     tm_file="${tm_file} alpha/osf.h"
3617                     # Some versions of OSF4 (specifically X4.0-9 296.7) have
3618                     # a broken tar, so we use cpio instead.
3619                     install_headers_dir=install-headers-cpio
3620                     ;;
3621                   *-*-osf5*)
3622                     tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
3623                     ;;
3624                 esac
3625                 case $machine in
3626                   *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
3627                     target_cpu_default=MASK_SUPPORT_ARCH
3628                     ;;
3629                 esac
3630                 ;;
3631         alpha*-*-vxworks*)
3632                 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3633                 tmake_file="alpha/t-alpha alpha/t-ieee"
3634                 if  x$gas != xyes 
3635                 then
3636                         extra_passes="mips-tfile mips-tdump"
3637                 fi
3638                 use_collect2=yes
3639                 thread_file='vxworks'
3640                 ;;
3641         alpha*-*-winnt*)
3642                 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3643                 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3644                 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
3645                 xmake_file=winnt/x-winnt
3646                 extra_host_objs=oldnames.o
3647                 extra_gcc_objs="spawnv.o oldnames.o"
3648                 if test x$gnu_ld != xyes
3649                 then
3650                         extra_programs=ld.exe
3651                 fi
3652                 if test x$enable_threads = xyes; then
3653                         thread_file='win32'
3654                 fi
3655                 ;;
3656         alpha*-dec-vms*)
3657                 tm_file=alpha/vms.h
3658                 xm_file="${xm_file} alpha/xm-vms.h"
3659                 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3660                 ;;
3661         arc-*-elf*)
3662                 extra_parts="crtinit.o crtfini.o"
3663                 ;;
3664         arm-*-coff* | armel-*-coff*)
3665                 tm_file=arm/coff.h
3666                 tmake_file=arm/t-arm-coff
3667                 ;;
3668         arm-*-vxworks*)
3669                 tm_file=arm/vxarm.h
3670                 tmake_file=arm/t-arm-coff
3671                 thread_file='vxworks'
3672                 ;;
3673         arm-*-riscix1.[01]*)            # Acorn RISC machine (early versions)
3674                 tm_file=arm/riscix1-1.h
3675                 use_collect2=yes
3676                 ;;
3677         arm-*-riscix*)                  # Acorn RISC machine
3678                 if test x$gas = xyes
3679                 then
3680                     tm_file=arm/rix-gas.h
3681                 else
3682                     tm_file=arm/riscix.h
3683                 fi
3684                 xmake_file=arm/x-riscix
3685                 tmake_file=arm/t-riscix
3686                 use_collect2=yes
3687                 ;;
3688         arm-semi-aout | armel-semi-aout)
3689                 tm_file=arm/semi.h
3690                 tmake_file=arm/t-semi
3691                 ;;
3692         arm-semi-aof | armel-semi-aof)
3693                 tm_file=arm/semiaof.h
3694                 tmake_file=arm/t-semiaof
3695                 ;;
3696         arm*-*-netbsd*)
3697                 tm_file=arm/netbsd.h
3698                 tmake_file="t-netbsd arm/t-netbsd"
3699                 use_collect2=yes
3700                 ;;
3701         arm*-*-linux-gnuaout*)          # ARM GNU/Linux with a.out
3702                 cpu_type=arm
3703                 xmake_file=x-linux
3704                 tm_file=arm/linux-aout.h
3705                 tmake_file=arm/t-linux
3706                 gnu_ld=yes
3707                 ;;
3708         arm*-*-linux-gnuoldld*)         # ARM GNU/Linux with old ELF linker
3709                 xm_file=arm/xm-linux.h
3710                 xmake_file=x-linux
3711                 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3712                 case $machine in
3713                 armv2*-*-*)
3714                         tm_file="arm/linux-elf26.h $tm_file"
3715                         ;;
3716                 esac
3717                 tmake_file="t-linux arm/t-linux"
3718                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3719                 gnu_ld=yes
3720                 case x${enable_threads} in
3721                 x | xyes | xpthreads | xposix)
3722                         thread_file='posix'
3723                         ;;
3724                 esac
3725                 ;;
3726         arm*-*-linux-gnu*)              # ARM GNU/Linux with ELF
3727                 xm_file=arm/xm-linux.h
3728                 xmake_file=x-linux
3729                 tm_file="arm/linux-elf.h"
3730                 case $machine in
3731                 armv2*-*-*)
3732                         tm_file="arm/linux-elf26.h $tm_file"
3733                         ;;
3734                 esac
3735                 tmake_file="t-linux arm/t-linux"
3736                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3737                 gnu_ld=yes
3738                 case x${enable_threads} in
3739                 x | xyes | xpthreads | xposix)
3740                         thread_file='posix'
3741                         ;;
3742                 esac
3743                 ;;
3744         arm*-*-uclinux*)                # ARM ucLinux
3745                 tm_file=arm/uclinux-elf.h
3746                 tmake_file=arm/t-arm-elf
3747                 ;;
3748         arm*-*-aout)
3749                 tm_file=arm/aout.h
3750                 tmake_file=arm/t-arm-aout
3751                 ;;
3752         arm*-*-ecos-elf)
3753                 tm_file=arm/ecos-elf.h
3754                 tmake_file=arm/t-arm-elf
3755                 ;; 
3756         arm*-*-elf)
3757                 tm_file=arm/unknown-elf.h
3758                 tmake_file=arm/t-arm-elf
3759                 ;;
3760         arm*-*-conix*)
3761                 tm_file=arm/conix-elf.h
3762                 tmake_file=arm/t-arm-elf
3763                 ;;
3764         arm*-*-oabi)
3765                 tm_file=arm/unknown-elf-oabi.h
3766                 tmake_file=arm/t-arm-elf
3767                 ;;
3768         arm-*-pe*)
3769                 tm_file=arm/pe.h
3770                 tmake_file=arm/t-pe
3771                 extra_objs="pe.o"
3772                 ;;
3773         avr-*-*)
3774                 ;;
3775         c1-convex-*)                    # Convex C1
3776                 target_cpu_default=1
3777                 use_collect2=yes
3778                 ;;
3779         c2-convex-*)                    # Convex C2
3780                 target_cpu_default=2
3781                 use_collect2=yes
3782                 ;;
3783         c32-convex-*)
3784                 target_cpu_default=4
3785                 use_collect2=yes
3786                 ;;
3787         c34-convex-*)
3788                 target_cpu_default=8
3789                 use_collect2=yes
3790                 ;;
3791         c38-convex-*)
3792                 target_cpu_default=16           
3793                 use_collect2=yes
3794                 ;;
3795         c4x-*)
3796                 cpu_type=c4x
3797                 tmake_file=c4x/t-c4x
3798                 ;;
3799         clipper-intergraph-clix*)
3800                 tm_file="${tm_file} svr3.h clipper/clix.h"
3801                 xm_file=clipper/xm-clix.h
3802                 xmake_file=clipper/x-clix
3803                 extra_headers=va-clipper.h
3804                 extra_parts="crtbegin.o crtend.o"
3805                 install_headers_dir=install-headers-cpio
3806                 ;;
3807         d30v-*)
3808                 float_format=i64
3809                 ;;
3810         dsp16xx-*)
3811                 ;;
3812         elxsi-elxsi-*)
3813                 use_collect2=yes
3814                 ;;
3815         fr30-*-elf)
3816                 tm_file="fr30/fr30.h"
3817                 tmake_file=fr30/t-fr30
3818                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3819                 ;;
3820 # This hasn't been upgraded to GCC 2.
3821 #       fx80-alliant-*)                 # Alliant FX/80
3822 #               ;;
3823         h8300-*-*)
3824                 float_format=i32
3825                 ;;
3826         hppa*-*-linux*)
3827                 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3828                 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3829                 tmake_file="t-linux pa/t-linux"
3830                 extra_parts="crtbegin.o crtend.o"
3831                 xmake_file=none
3832                 gas=yes gnu_ld=yes
3833                 if test x$enable_threads = xyes; then
3834                         thread_file='posix'
3835                 fi
3836                 ;;
3837         hppa*-*-openbsd*)
3838                 target_cpu_default="MASK_PA_11"
3839                 tmake_file=pa/t-openbsd
3840                 ;;
3841         hppa1.1-*-pro*)
3842                 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3843                 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3844                 xm_file=pa/xm-papro.h
3845                 tmake_file=pa/t-pro
3846                 ;;
3847         hppa1.1-*-osf*)
3848                 target_cpu_default="MASK_PA_11"
3849                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3850                 use_collect2=yes
3851                 ;;
3852         hppa1.1-*-rtems*)
3853                 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3854                 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3855                 xm_file=pa/xm-papro.h
3856                 tmake_file=pa/t-pro
3857                 ;;
3858         hppa1.0-*-osf*)
3859                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3860                 use_collect2=yes
3861                 ;;
3862         hppa1.1-*-bsd*)
3863                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
3864                 target_cpu_default="MASK_PA_11"
3865                 use_collect2=yes
3866                 ;;
3867         hppa1.0-*-bsd*)
3868                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
3869                 use_collect2=yes
3870                 ;;
3871         hppa1.0-*-hpux7*)
3872                 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3873                 xm_file=pa/xm-pahpux.h
3874                 xmake_file=pa/x-pa-hpux
3875                 if test x$gas = xyes
3876                 then
3877                         tm_file="${tm_file} pa/gas.h"
3878                 fi
3879                 install_headers_dir=install-headers-cpio
3880                 use_collect2=yes
3881                 ;;
3882         hppa1.0-*-hpux8.0[0-2]*)
3883                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3884                 xm_file=pa/xm-pahpux.h
3885                 xmake_file=pa/x-pa-hpux
3886                 if test x$gas = xyes
3887                 then
3888                         tm_file="${tm_file} pa/pa-gas.h"
3889                 else
3890                         tm_file="pa/pa-oldas.h ${tm_file}"
3891                 fi
3892                 install_headers_dir=install-headers-cpio
3893                 use_collect2=yes
3894                 ;;
3895         hppa1.1-*-hpux8.0[0-2]*)
3896                 target_cpu_default="MASK_PA_11"
3897                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3898                 xm_file=pa/xm-pahpux.h
3899                 xmake_file=pa/x-pa-hpux
3900                 if test x$gas = xyes
3901                 then
3902                         tm_file="${tm_file} pa/pa-gas.h"
3903                 else
3904                         tm_file="pa/pa-oldas.h ${tm_file}"
3905                 fi
3906                 install_headers_dir=install-headers-cpio
3907                 use_collect2=yes
3908                 ;;
3909         hppa1.1-*-hpux8*)
3910                 target_cpu_default="MASK_PA_11"
3911                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3912                 xm_file=pa/xm-pahpux.h
3913                 xmake_file=pa/x-pa-hpux
3914                 if test x$gas = xyes
3915                 then
3916                         tm_file="${tm_file} pa/pa-gas.h"
3917                 fi
3918                 install_headers_dir=install-headers-cpio
3919                 use_collect2=yes
3920                 ;;
3921         hppa1.0-*-hpux8*)
3922                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3923                 xm_file=pa/xm-pahpux.h
3924                 xmake_file=pa/x-pa-hpux
3925                 if test x$gas = xyes
3926                 then
3927                         tm_file="${tm_file} pa/pa-gas.h"
3928                 fi
3929                 install_headers_dir=install-headers-cpio
3930                 use_collect2=yes
3931                 ;;
3932         hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3933                 target_cpu_default="MASK_PA_11"
3934                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3935                 float_format=i128
3936                 xm_file=pa/xm-pahpux.h
3937                 xmake_file=pa/x-pa-hpux
3938                 tmake_file=pa/t-pa
3939                 if test x$gas = xyes
3940                 then
3941                         tm_file="${tm_file} pa/pa-gas.h"
3942                 fi
3943                 if test x$enable_threads = x; then
3944                     enable_threads=$have_pthread_h
3945                 fi
3946                 if test x$enable_threads = xyes; then
3947                         thread_file='dce'
3948                         tmake_file="${tmake_file} pa/t-dce-thr"
3949                 fi
3950                 install_headers_dir=install-headers-cpio
3951                 use_collect2=yes
3952                 ;;
3953         hppa1.0-*-hpux10*)
3954                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3955                 float_format=i128
3956                 xm_file=pa/xm-pahpux.h
3957                 xmake_file=pa/x-pa-hpux
3958                 tmake_file=pa/t-pa
3959                 if test x$gas = xyes
3960                 then
3961                         tm_file="${tm_file} pa/pa-gas.h"
3962                 fi
3963                 if test x$enable_threads = x; then
3964                     enable_threads=$have_pthread_h
3965                 fi
3966                 if test x$enable_threads = xyes; then
3967                         thread_file='dce'
3968                         tmake_file="${tmake_file} pa/t-dce-thr"
3969                 fi
3970                 install_headers_dir=install-headers-cpio
3971                 use_collect2=yes
3972                 ;;
3973         hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3974                 target_cpu_default="MASK_PA_11"
3975                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3976                 float_format=i128
3977                 xm_file=pa/xm-pahpux.h
3978                 xmake_file=pa/x-pa-hpux
3979                 tmake_file=pa/t-pa
3980                 if test x$gas = xyes
3981                 then
3982                         tm_file="${tm_file} pa/pa-gas.h"
3983                 fi
3984 #               if test x$enable_threads = x; then
3985 #                   enable_threads=$have_pthread_h
3986 #               fi
3987 #               if test x$enable_threads = xyes; then
3988 #                       thread_file='dce'
3989 #                       tmake_file="${tmake_file} pa/t-dce-thr"
3990 #               fi
3991                 install_headers_dir=install-headers-cpio
3992                 use_collect2=yes
3993                 ;;
3994         hppa1.0-*-hpux11*)
3995                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3996                 float_format=i128
3997                 xm_file=pa/xm-pahpux.h
3998                 xmake_file=pa/x-pa-hpux
3999                 if test x$gas = xyes
4000                 then
4001                         tm_file="${tm_file} pa/pa-gas.h"
4002                 fi
4003 #               if test x$enable_threads = x; then
4004 #                   enable_threads=$have_pthread_h
4005 #               fi
4006 #               if test x$enable_threads = xyes; then
4007 #                       thread_file='dce'
4008 #                       tmake_file="${tmake_file} pa/t-dce-thr"
4009 #               fi
4010                 install_headers_dir=install-headers-cpio
4011                 use_collect2=yes
4012                 ;;
4013         hppa1.1-*-hpux* | hppa2*-*-hpux*)
4014                 target_cpu_default="MASK_PA_11"
4015                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4016                 xm_file=pa/xm-pahpux.h
4017                 xmake_file=pa/x-pa-hpux
4018                 if test x$gas = xyes
4019                 then
4020                         tm_file="${tm_file} pa/pa-gas.h"
4021                 fi
4022                 install_headers_dir=install-headers-cpio
4023                 use_collect2=yes
4024                 ;;
4025         hppa1.0-*-hpux*)
4026                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4027                 xm_file=pa/xm-pahpux.h
4028                 xmake_file=pa/x-pa-hpux
4029                 if test x$gas = xyes
4030                 then
4031                         tm_file="${tm_file} pa/pa-gas.h"
4032                 fi
4033                 install_headers_dir=install-headers-cpio
4034                 use_collect2=yes
4035                 ;;
4036         hppa1.1-*-hiux* | hppa2*-*-hiux*)
4037                 target_cpu_default="MASK_PA_11"
4038                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4039                 xm_file=pa/xm-pahpux.h
4040                 xmake_file=pa/x-pa-hpux
4041                 if test x$gas = xyes
4042                 then
4043                         tm_file="${tm_file} pa/pa-gas.h"
4044                 fi
4045                 install_headers_dir=install-headers-cpio
4046                 use_collect2=yes
4047                 ;;
4048         hppa1.0-*-hiux*)
4049                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4050                 xm_file=pa/xm-pahpux.h
4051                 xmake_file=pa/x-pa-hpux
4052                 if test x$gas = xyes
4053                 then
4054                         tm_file="${tm_file} pa/pa-gas.h"
4055                 fi
4056                 install_headers_dir=install-headers-cpio
4057                 use_collect2=yes
4058                 ;;
4059         hppa*-*-lites*)
4060                 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4061                 target_cpu_default="MASK_PA_11"
4062                 use_collect2=yes
4063                 ;;
4064         hppa*-*-mpeix*)
4065                 tm_file="${tm_file} pa/pa-mpeix.h"
4066                 xm_file=pa/xm-pampeix.h 
4067                 xmake_file=pa/x-pa-mpeix 
4068                 echo "You must use gas. Assuming it is already installed." 
4069                 install_headers_dir=install-headers-tar
4070                 use_collect2=yes 
4071                 ;; 
4072         i370-*-opened*)                  # IBM 360/370/390 Architecture
4073                 xm_file=i370/xm-oe.h
4074                 tm_file=i370/oe.h
4075                 xmake_file=i370/x-oe
4076                 tmake_file=i370/t-oe
4077                 ;;
4078         i370-*-mvs*)
4079                 xm_file=i370/xm-mvs.h
4080                 tm_file=i370/mvs.h
4081                 tmake_file=i370/t-mvs
4082                 ;;
4083         i370-*-linux*)
4084                 xm_file="xm-linux.h i370/xm-linux.h"
4085                 xmake_file=x-linux
4086                 tm_file="i370/linux.h ${tm_file}"
4087                 tmake_file="t-linux i370/t-linux"
4088                 # broken_install=yes
4089                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4090                 # extra_parts="crtbegin.o crtend.o"
4091                 gnu_ld=yes
4092                 gas=yes
4093                 elf=yes
4094                 if test x$enable_threads = xyes; then
4095                         thread_file='posix'
4096                 fi
4097                 ;;
4098         i[34567]86-*-elf*)
4099                 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4100                 tm_file=i386/i386elf.h
4101                 tmake_file=i386/t-i386elf
4102                 xmake_file=x-svr4
4103                 ;;
4104         i[34567]86-ibm-aix*)            # IBM PS/2 running AIX
4105                 if test x$gas = xyes
4106                 then
4107                         tm_file=i386/aix386.h
4108                         extra_parts="crtbegin.o crtend.o"
4109                         tmake_file=i386/t-crtstuff
4110                 else
4111                         tm_file=i386/aix386ng.h
4112                         use_collect2=yes
4113                 fi
4114                 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
4115                 xm_defines=USG
4116                 xmake_file=i386/x-aix
4117                 ;;
4118         i[34567]86-ncr-sysv4*)          # NCR 3000 - ix86 running system V.4
4119                 xm_file="xm-alloca.h ${xm_file}"
4120                 xm_defines="USG POSIX SMALL_ARG_MAX"
4121                 xmake_file=i386/x-ncr3000
4122                 if test x$stabs = xyes -a x$gas = xyes
4123                 then
4124                         tm_file=i386/sysv4gdb.h
4125                 else
4126                         tm_file=i386/sysv4.h
4127                 fi
4128                 extra_parts="crtbegin.o crtend.o"
4129                 tmake_file=i386/t-crtpic
4130                 ;;
4131         i[34567]86-next-*)
4132                 tm_file=i386/next.h
4133                 xm_file=i386/xm-next.h
4134                 tmake_file=i386/t-next
4135                 xmake_file=i386/x-next
4136                 extra_objs=nextstep.o
4137                 extra_parts="crtbegin.o crtend.o"
4138                 if test x$enable_threads = xyes; then
4139                         thread_file='mach'
4140                 fi
4141                 ;;
4142         i[34567]86-sequent-bsd*)                # 80386 from Sequent
4143                 use_collect2=yes
4144                 if test x$gas = xyes
4145                 then
4146                         tm_file=i386/seq-gas.h
4147                 else
4148                         tm_file=i386/sequent.h
4149                 fi
4150                 ;;
4151         i[34567]86-sequent-ptx1*)
4152                 xm_defines="USG SVR3"
4153                 xmake_file=i386/x-sysv3
4154                 tm_file=i386/seq-sysv3.h
4155                 tmake_file=i386/t-crtstuff
4156                 extra_parts="crtbegin.o crtend.o"
4157                 install_headers_dir=install-headers-cpio
4158                 ;;
4159         i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
4160                 xm_defines="USG SVR3"
4161                 xmake_file=i386/x-sysv3
4162                 tm_file=i386/seq2-sysv3.h
4163                 tmake_file=i386/t-crtstuff
4164                 extra_parts="crtbegin.o crtend.o"
4165                 install_headers_dir=install-headers-cpio
4166                 ;;
4167         i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
4168                 xm_file="xm-alloca.h ${xm_file}"
4169                 xm_defines="USG POSIX SMALL_ARG_MAX"
4170                 xmake_file=x-svr4
4171                 tm_file=i386/ptx4-i.h
4172                 tmake_file=t-svr4
4173                 extra_parts="crtbegin.o crtend.o"
4174                 install_headers_dir=install-headers-cpio
4175                 ;;
4176         i386-sun-sunos*)                # Sun i386 roadrunner
4177                 xm_defines=USG
4178                 tm_file=i386/sun.h
4179                 use_collect2=yes
4180                 ;;
4181         i[34567]86-wrs-vxworks*)
4182                 tm_file=i386/vxi386.h
4183                 tmake_file=i386/t-i386bare
4184                 thread_file='vxworks'
4185                 ;;
4186         i[34567]86-*-aout*)
4187                 tm_file=i386/i386-aout.h
4188                 tmake_file=i386/t-i386bare
4189                 ;;
4190         i[34567]86-*-beospe*)
4191                 xm_file=i386/xm-beos.h
4192                 xm_defines="USE_C_ALLOCA"
4193                 tmake_file=i386/t-beos
4194                 tm_file=i386/beos-pe.h
4195                 xmake_file=i386/x-beos
4196                 extra_objs=winnt.o
4197                 ;;
4198         i[34567]86-*-beoself* | i[34567]86-*-beos*)
4199                 xm_file=i386/xm-beos.h
4200                 tmake_file='i386/t-beos i386/t-crtpic'
4201                 tm_file=i386/beos-elf.h
4202                 xmake_file=i386/x-beos
4203                 extra_objs=winnt.o
4204                 extra_parts='crtbegin.o crtend.o'
4205                 ;;
4206         i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
4207                 tm_file=i386/bsd386.h
4208 #               tmake_file=t-libc-ok
4209                 ;;
4210         i[34567]86-*-bsd*)
4211                 tm_file=i386/386bsd.h
4212 #               tmake_file=t-libc-ok
4213 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4214 #               use_collect2=yes
4215                 ;;
4216         i[34567]86-*-freebsdelf*)
4217                 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4218                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4219                 tmake_file=t-freebsd
4220                 gas=yes
4221                 gnu_ld=yes
4222                 stabs=yes
4223                 case x${enable_threads} in
4224                 xyes | xpthreads | xposix)
4225                         thread_file='posix'
4226                         tmake_file="${tmake_file} t-freebsd-thread"
4227                         ;;
4228                 esac
4229                 ;;
4230         i[34567]86-*-freebsd*)
4231                 tm_file="i386/freebsd.h i386/perform.h"
4232                 tmake_file=t-freebsd
4233                 ;;
4234         i[34567]86-*-netbsd*)
4235                 tm_file=i386/netbsd.h
4236                 tmake_file=t-netbsd
4237                 use_collect2=yes
4238                 ;;
4239         i[34567]86-*-openbsd*)
4240                 # we need collect2 until our bug is fixed...
4241                 use_collect2=yes
4242                 ;;
4243         i[34567]86-*-coff*)
4244                 tm_file=i386/i386-coff.h
4245                 tmake_file=i386/t-i386bare
4246                 ;;
4247         i[34567]86-*-isc*)              # 80386 running ISC system
4248                 xm_file="${xm_file} i386/xm-isc.h"
4249                 xm_defines="USG SVR3"
4250                 case $machine in
4251                   i[34567]86-*-isc[34]*)
4252                     xmake_file=i386/x-isc3
4253                     ;;
4254                   *)
4255                     xmake_file=i386/x-isc
4256                     ;;
4257                 esac
4258                 if test x$gas = xyes -a x$stabs = xyes
4259                 then
4260                         tm_file=i386/iscdbx.h
4261                         tmake_file=i386/t-svr3dbx
4262                         extra_parts="svr3.ifile svr3z.ifile"
4263                 else
4264                         tm_file=i386/isccoff.h
4265                         tmake_file=i386/t-crtstuff
4266                         extra_parts="crtbegin.o crtend.o"
4267                 fi
4268                 tmake_file="$tmake_file i386/t-i386bare"
4269                 install_headers_dir=install-headers-cpio
4270                 ;;
4271         i[34567]86-*-linux-gnuoldld*)   # Intel 80386's running GNU/Linux
4272                                         # pre BFD linkers
4273                 xmake_file=x-linux-aout
4274                 tmake_file="t-linux-aout i386/t-crtstuff"
4275                 tm_file=i386/linux-oldld.h
4276                 gnu_ld=yes
4277                 float_format=i386
4278                 ;;
4279         i[34567]86-*-linux-gnuaout*)    # Intel 80386's running GNU/Linux
4280                 xmake_file=x-linux-aout
4281                 tmake_file="t-linux-aout i386/t-crtstuff"
4282                 tm_file=i386/linux-aout.h
4283                 gnu_ld=yes
4284                 float_format=i386
4285                 ;;
4286         i[34567]86-*-linux-gnulibc1)    # Intel 80386's running GNU/Linux
4287                                         # GNU/Linux C library 5
4288                 xmake_file=x-linux      
4289                 tm_file=i386/linux.h    
4290                 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4291                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4292                 gnu_ld=yes
4293                 float_format=i386
4294                 if test x$enable_threads = xyes; then
4295                         thread_file='single'
4296                 fi
4297                 ;;
4298         i[34567]86-*-linux-gnu*)        # Intel 80386's running GNU/Linux
4299                                         # aka GNU/Linux C library 6
4300                 xmake_file=x-linux
4301                 tm_file=i386/linux.h
4302                 tmake_file="t-linux i386/t-crtstuff"
4303                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4304                 gnu_ld=yes
4305                 float_format=i386
4306                 if test x$enable_threads = xyes; then
4307                         thread_file='posix'
4308                 fi
4309                 ;;
4310         i[34567]86-*-gnu*)
4311                 float_format=i386
4312                 ;;
4313         i[34567]86-go32-msdos | i[34567]86-*-go32*)
4314                 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4315                 exit 1
4316                 ;;
4317         i[34567]86-pc-msdosdjgpp*)
4318                 xm_file=i386/xm-djgpp.h
4319                 tm_file=i386/djgpp.h
4320                 tmake_file=i386/t-djgpp
4321                 xmake_file=i386/x-djgpp
4322                 gnu_ld=yes
4323                 gas=yes
4324                 exeext=.exe
4325                 case $host in *pc-msdosdjgpp*)
4326                         target_alias=djgpp
4327                         ;;
4328                 esac
4329                 ;;
4330         i[34567]86-moss-msdos* | i[34567]86-*-moss*)
4331                 tm_file=i386/moss.h
4332                 tmake_file=t-libc-ok
4333                 gnu_ld=yes
4334                 gas=yes
4335                 ;;
4336         i[34567]86-*-lynxos*)
4337                 if test x$gas = xyes
4338                 then
4339                         tm_file=i386/lynx.h
4340                 else
4341                         tm_file=i386/lynx-ng.h
4342                 fi
4343                 xm_file=i386/xm-lynx.h
4344                 tmake_file=i386/t-i386bare
4345                 xmake_file=x-lynx
4346                 ;;
4347         i[34567]86-*-mach*)
4348                 tm_file=i386/mach.h
4349 #               tmake_file=t-libc-ok
4350                 use_collect2=yes
4351                 ;;
4352         i[34567]86-*-osfrose*)          # 386 using OSF/rose
4353                 if test x$elf = xyes
4354                 then
4355                         tm_file=i386/osfelf.h
4356                         use_collect2=
4357                 else
4358                         tm_file=i386/osfrose.h
4359                         use_collect2=yes
4360                 fi
4361                 xm_file="i386/xm-osf.h ${xm_file}"
4362                 xmake_file=i386/x-osfrose
4363                 tmake_file=i386/t-osf
4364                 extra_objs=halfpic.o
4365                 ;;
4366         i[34567]86-go32-rtems*)
4367                 cpu_type=i386
4368                 xm_file=i386/xm-go32.h
4369                 tm_file=i386/go32-rtems.h
4370                 tmake_file="i386/t-go32 t-rtems"
4371                 ;;
4372         i[34567]86-*-rtemscoff*)
4373                 cpu_type=i386
4374                 tm_file=i386/rtems.h
4375                 tmake_file="i386/t-i386bare t-rtems"
4376                 ;;
4377         i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
4378                 cpu_type=i386
4379                 tm_file=i386/rtemself.h
4380                 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
4381                 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4382                 ;;
4383         i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
4384                 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4385                 xm_defines="USG SVR3"
4386                 xmake_file=i386/x-sco5
4387                 install_headers_dir=install-headers-cpio
4388                 tm_file=i386/sco5.h
4389                 if test x$gas = xyes
4390                 then
4391                         tm_file="i386/sco5gas.h ${tm_file}"
4392                         tmake_file=i386/t-sco5gas
4393                 else
4394                         tmake_file=i386/t-sco5
4395                 fi
4396                 tmake_file="$tmake_file i386/t-i386bare"
4397                 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4398                 ;;
4399         i[34567]86-*-sco3.2v4*)         # 80386 running SCO 3.2v4 system
4400                 xm_file="${xm_file} i386/xm-sco.h"
4401                 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4402                 xmake_file=i386/x-sco4
4403                 install_headers_dir=install-headers-cpio
4404                 if test x$stabs = xyes
4405                 then
4406                         tm_file=i386/sco4dbx.h
4407                         tmake_file=i386/t-svr3dbx
4408                         extra_parts="svr3.ifile svr3z.rfile"
4409                 else
4410                         tm_file=i386/sco4.h
4411                         tmake_file=i386/t-crtstuff
4412                         extra_parts="crtbegin.o crtend.o"
4413                 fi
4414                 tmake_file="$tmake_file i386/t-i386bare"
4415                 # The default EAFS filesystem supports long file names.
4416                 # Truncating the target makes $host != $target which
4417                 # makes gcc think it is doing a cross-compile.
4418                 # truncate_target=yes
4419                 ;;
4420         i[34567]86-*-sco*)              # 80386 running SCO system
4421                 xm_file=i386/xm-sco.h
4422                 xmake_file=i386/x-sco
4423                 install_headers_dir=install-headers-cpio
4424                 if test x$stabs = xyes
4425                 then
4426                         tm_file=i386/scodbx.h
4427                         tmake_file=i386/t-svr3dbx
4428                         extra_parts="svr3.ifile svr3z.rfile"
4429                 else
4430                         tm_file=i386/sco.h
4431                         extra_parts="crtbegin.o crtend.o"
4432                         tmake_file=i386/t-crtstuff
4433                 fi
4434                 tmake_file="$tmake_file i386/t-i386bare"
4435                 truncate_target=yes
4436                 ;;
4437         i[34567]86-*-solaris2*)
4438                 xm_file="xm-alloca.h ${xm_file}"
4439                 xm_defines="USG POSIX SMALL_ARG_MAX"
4440                 tm_file=i386/sol2.h
4441                 if test x$gas = xyes; then
4442                         # Only needed if gas does not support -s
4443                         tm_file="i386/sol2gas.h ${tm_file}"
4444                 fi
4445                 tmake_file="i386/t-i386bare i386/t-sol2"
4446                 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4447                 xmake_file=x-svr4
4448                 if test x${enable_threads} = x; then
4449                     enable_threads=$have_pthread_h
4450                     if test x${enable_threads} = x; then
4451                         enable_threads=$have_thread_h
4452                     fi
4453                 fi
4454                 if test x${enable_threads} = xyes; then
4455                     if test x${have_pthread_h} = xyes; then
4456                         thread_file='posix'
4457                     else
4458                         thread_file='solaris'
4459                     fi
4460                 fi
4461                 ;;
4462        i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
4463                xm_file="xm-alloca.h ${xm_file}"
4464                xm_defines="USG POSIX"
4465                tm_file=i386/sysv5.h
4466                if test x$stabs = xyes
4467                then
4468                        tm_file="${tm_file} dbx.h"
4469                fi
4470                tmake_file="i386/t-i386bare i386/t-crtpic"
4471                xmake_file=x-svr4
4472                extra_parts="crtbegin.o crtend.o"
4473                if test x$enable_threads = xyes; then
4474                        thread_file='posix'
4475                fi
4476                ;;
4477         i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
4478                 xm_file="xm-alloca.h ${xm_file}"
4479                 xm_defines="USG POSIX SMALL_ARG_MAX"
4480                 tm_file=i386/sysv4.h
4481                 if test x$stabs = xyes
4482                 then
4483                         tm_file="${tm_file} dbx.h"
4484                 fi
4485                 tmake_file="i386/t-i386bare i386/t-crtpic"
4486                 xmake_file=x-svr4
4487                 extra_parts="crtbegin.o crtend.o"
4488                 ;;
4489         i[34567]86-*-udk*)      # Intel x86 on SCO UW/OSR5 Dev Kit
4490                 xm_file="xm-alloca.h ${xm_file}"
4491                 xm_defines="USG POSIX"
4492                 tm_file=i386/udk.h
4493                 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
4494                 xmake_file=x-svr4
4495                 extra_parts="crtbegin.o crtend.o"
4496                 install_headers_dir=install-headers-cpio
4497                 ;;
4498         i[34567]86-*-osf1*)             # Intel 80386's running OSF/1 1.3+
4499                 cpu_type=i386
4500                 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4501                 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
4502                 if test x$stabs = xyes
4503                 then
4504                         tm_file=i386/osf1elfgdb.h
4505                 else
4506                         tm_file=i386/osf1elf.h
4507                 fi
4508                 tmake_file=i386/t-osf1elf
4509                 xmake_file=i386/x-osf1elf
4510                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4511                 ;;
4512         i[34567]86-*-sysv*)             # Intel 80386's running system V
4513                 xm_defines="USG SVR3"
4514                 xmake_file=i386/x-sysv3
4515                 if test x$gas = xyes
4516                 then
4517                         if test x$stabs = xyes
4518                         then
4519                                 tm_file=i386/svr3dbx.h
4520                                 tmake_file=i386/t-svr3dbx
4521                                 extra_parts="svr3.ifile svr3z.rfile"
4522                         else
4523                                 tm_file=i386/svr3gas.h
4524                                 extra_parts="crtbegin.o crtend.o"
4525                                 tmake_file=i386/t-crtstuff
4526                         fi
4527                 else
4528                         tm_file=i386/sysv3.h
4529                         extra_parts="crtbegin.o crtend.o"
4530                         tmake_file=i386/t-crtstuff
4531                 fi
4532                 tmake_file="$tmake_file i386/t-crtpic"
4533                 ;;
4534         i386-*-vsta)                    # Intel 80386's running VSTa kernel
4535                 xm_file="${xm_file} i386/xm-vsta.h"
4536                 tm_file=i386/vsta.h
4537                 tmake_file=i386/t-vsta
4538                 xmake_file=i386/x-vsta
4539                 ;;
4540         i[34567]86-*-win32)
4541                 xm_file="${xm_file} i386/xm-cygwin.h"
4542                 tmake_file=i386/t-cygwin
4543                 tm_file=i386/win32.h
4544                 xmake_file=i386/x-cygwin
4545                 extra_objs=winnt.o
4546                 if test x$enable_threads = xyes; then
4547                         thread_file='win32'
4548                 fi
4549                 exeext=.exe
4550                 ;;
4551         i[34567]86-*-pe | i[34567]86-*-cygwin*)
4552                 xm_file="${xm_file} i386/xm-cygwin.h"
4553                 tmake_file=i386/t-cygwin
4554                 tm_file=i386/cygwin.h
4555                 xmake_file=i386/x-cygwin
4556                 extra_objs=winnt.o
4557                 if test x$enable_threads = xyes; then
4558                         thread_file='win32'
4559                 fi
4560                 exeext=.exe
4561                 ;;
4562         i[34567]86-*-mingw32*)
4563                 tm_file=i386/mingw32.h
4564                 xm_file="${xm_file} i386/xm-mingw32.h"
4565                 tmake_file="i386/t-cygwin i386/t-mingw32"
4566                 extra_objs=winnt.o
4567                 xmake_file=i386/x-cygwin
4568                 if test x$enable_threads = xyes; then
4569                         thread_file='win32'
4570                 fi
4571                 exeext=.exe
4572                 case $machine in
4573                         *mingw32msv*)
4574                                 ;;
4575                         *minwg32crt* | *mingw32*)
4576                                 tm_file="${tm_file} i386/crtdll.h"
4577                                 ;;
4578                 esac
4579                 ;;
4580         i[34567]86-*-uwin*)
4581                 tm_file=i386/uwin.h
4582                 xm_file="${xm_file} i386/xm-uwin.h"
4583                 xm_defines="USG NO_STAB_H"
4584                 tmake_file="i386/t-cygwin i386/t-uwin"
4585                 extra_objs=winnt.o
4586                 xmake_file=i386/x-cygwin
4587                 if test x$enable_threads = xyes; then
4588                         thread_file='win32'
4589                 fi
4590                 exeext=.exe
4591                 ;;
4592         i[34567]86-*-interix*)
4593                 tm_file="i386/i386-interix.h interix.h"
4594                 xm_file="i386/xm-i386-interix.h xm-interix.h"
4595                 xm_defines="USG"
4596                 tmake_file="i386/t-interix"
4597                 extra_objs=interix.o
4598                 xmake_file=x-interix
4599                 if test x$enable_threads = xyes ; then
4600                         thread_file='posix'
4601                 fi
4602                 if test x$stabs = xyes ; then
4603                         tm_file="${tm_file} dbxcoff.h"
4604                 fi
4605                 ;;
4606         i[34567]86-*-winnt3*)
4607                 tm_file=i386/win-nt.h
4608                 out_file=i386/i386.c
4609                 xm_file="xm-winnt.h ${xm_file}"
4610                 xmake_file=winnt/x-winnt
4611                 tmake_file=i386/t-winnt
4612                 extra_host_objs="winnt.o oldnames.o"
4613                 extra_gcc_objs="spawnv.o oldnames.o"
4614                 if test x$gnu_ld != xyes
4615                 then
4616                         extra_programs=ld.exe
4617                 fi
4618                 if test x$enable_threads = xyes; then
4619                         thread_file='win32'
4620                 fi
4621                 ;;
4622         i[34567]86-dg-dgux*)
4623                 xm_file="xm-alloca.h ${xm_file}"
4624                 xm_defines="USG POSIX"
4625                 out_file=i386/dgux.c
4626                 tm_file=i386/dgux.h
4627                 tmake_file=i386/t-dgux
4628                 xmake_file=i386/x-dgux
4629                 install_headers_dir=install-headers-cpio
4630               ;;
4631         i860-alliant-*)         # Alliant FX/2800
4632                 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4633                 xm_file="${xm_file}"
4634                 xmake_file=i860/x-fx2800
4635                 tmake_file=i860/t-fx2800
4636                 extra_parts="crtbegin.o crtend.o"
4637                 ;;
4638         i860-*-bsd*)
4639                 tm_file="${tm_file} i860/bsd.h"
4640                 if test x$gas = xyes
4641                 then
4642                         tm_file="${tm_file} i860/bsd-gas.h"
4643                 fi
4644                 use_collect2=yes
4645                 ;;
4646         i860-*-mach*)
4647                 tm_file="${tm_file} i860/mach.h"
4648                 tmake_file=t-libc-ok
4649                 ;;
4650         i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
4651                 tm_file="${tm_file} svr3.h i860/paragon.h"
4652                 xm_defines="USG SVR3"
4653                 tmake_file=t-osf
4654                 ;;
4655         i860-*-sysv3*)
4656                 tm_file="${tm_file} svr3.h i860/sysv3.h"
4657                 xm_defines="USG SVR3"
4658                 xmake_file=i860/x-sysv3
4659                 extra_parts="crtbegin.o crtend.o"
4660                 ;;
4661         i860-*-sysv4*)
4662                 tm_file="${tm_file} svr4.h i860/sysv4.h"
4663                 xm_defines="USG SVR3"
4664                 xmake_file=i860/x-sysv4
4665                 tmake_file=t-svr4
4666                 extra_parts="crtbegin.o crtend.o"
4667                 ;;
4668         i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4669                 tm_file="${tm_file} i960/vx960.h"
4670                 tmake_file=i960/t-vxworks960
4671                 use_collect2=yes
4672                 thread_file='vxworks'
4673                 ;;
4674         i960-wrs-vxworks5* | i960-wrs-vxworks)
4675                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4676                 tmake_file=i960/t-vxworks960
4677                 use_collect2=yes
4678                 thread_file='vxworks'
4679                 ;;
4680         i960-wrs-vxworks*)
4681                 tm_file="${tm_file} i960/vx960.h"
4682                 tmake_file=i960/t-vxworks960
4683                 use_collect2=yes
4684                 thread_file='vxworks'
4685                 ;;
4686         i960-*-coff*)
4687                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4688                 tmake_file=i960/t-960bare
4689                 use_collect2=yes
4690                 ;;
4691         i960-*-rtems)
4692                 tmake_file="i960/t-960bare t-rtems"
4693                 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4694                 use_collect2=yes
4695                 ;;
4696         i960-*-*)                       # Default i960 environment.
4697                 use_collect2=yes
4698                 ;;
4699         ia64*-*-elf*)
4700                 tm_file=ia64/elf.h
4701                 tmake_file="ia64/t-ia64"
4702                 target_cpu_default="0"
4703                 if test x$gas = xyes
4704                 then
4705                         target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
4706                 fi
4707                 if test x$gnu_ld = xyes
4708                 then
4709                         target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
4710                 fi
4711                 ;;
4712         ia64*-*-linux*)
4713                 tm_file=ia64/linux.h
4714                 tmake_file="t-linux ia64/t-ia64"
4715                 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
4716                 if test x$enable_threads = xyes; then
4717                         thread_file='posix'
4718                 fi
4719                 ;;
4720         m32r-*-elf*)
4721                 extra_parts="crtinit.o crtfini.o"
4722                 ;;
4723         m68000-convergent-sysv*)
4724                 tm_file=m68k/ctix.h
4725                 xm_file="m68k/xm-3b1.h ${xm_file}"
4726                 xm_defines=USG
4727                 use_collect2=yes
4728                 extra_headers=math-68881.h
4729                 ;;
4730         m68000-hp-bsd*)                 # HP 9000/200 running BSD
4731                 tm_file=m68k/hp2bsd.h
4732                 xmake_file=m68k/x-hp2bsd
4733                 use_collect2=yes
4734                 extra_headers=math-68881.h
4735                 ;;
4736         m68000-hp-hpux*)                # HP 9000 series 300
4737                 xm_file="xm-alloca.h ${xm_file}"
4738                 xm_defines="USG"
4739                 if test x$gas = xyes
4740                 then
4741                         xmake_file=m68k/x-hp320g
4742                         tm_file=m68k/hp310g.h
4743                 else
4744                         xmake_file=m68k/x-hp320
4745                         tm_file=m68k/hp310.h
4746                 fi
4747                 install_headers_dir=install-headers-cpio
4748                 use_collect2=yes
4749                 extra_headers=math-68881.h
4750                 ;;
4751         m68000-sun-sunos3*)
4752                 tm_file=m68k/sun2.h
4753                 use_collect2=yes
4754                 extra_headers=math-68881.h
4755                 ;;
4756         m68000-sun-sunos4*)
4757                 tm_file=m68k/sun2o4.h
4758                 use_collect2=yes
4759                 extra_headers=math-68881.h
4760                 ;;
4761         m68000-att-sysv*)
4762                 xm_file="m68k/xm-3b1.h ${xm_file}"
4763                 xm_defines=USG
4764                 if test x$gas = xyes
4765                 then
4766                         tm_file=m68k/3b1g.h
4767                 else
4768                         tm_file=m68k/3b1.h
4769                 fi
4770                 use_collect2=yes
4771                 extra_headers=math-68881.h
4772                 ;;
4773         m68k-apple-aux*)                # Apple Macintosh running A/UX
4774                 xm_defines="USG AUX"
4775                 tmake_file=m68k/t-aux
4776                 install_headers_dir=install-headers-cpio
4777                 extra_headers=math-68881.h
4778                 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4779                 tm_file=
4780                 if test "$gnu_ld" = yes
4781                 then
4782                         tm_file="${tm_file} m68k/auxgld.h"
4783                 else
4784                         tm_file="${tm_file} m68k/auxld.h"
4785                 fi
4786                 if test "$gas" = yes
4787                 then
4788                         tm_file="${tm_file} m68k/auxgas.h"
4789                 else
4790                         tm_file="${tm_file} m68k/auxas.h"
4791                 fi
4792                 tm_file="${tm_file} m68k/a-ux.h"
4793                 float_format=m68k
4794                 ;;
4795         m68k-apollo-*)
4796                 tm_file=m68k/apollo68.h
4797                 xmake_file=m68k/x-apollo68
4798                 use_collect2=yes
4799                 extra_headers=math-68881.h
4800                 float_format=m68k
4801                 ;;
4802         m68k-altos-sysv*)                  # Altos 3068
4803                 if test x$gas = xyes
4804                 then
4805                         tm_file=m68k/altos3068.h
4806                         xm_defines=USG
4807                 else
4808                         echo "The Altos is supported only with the GNU assembler" 1>&2
4809                         exit 1
4810                 fi
4811                 extra_headers=math-68881.h
4812                 ;;
4813         m68k-bull-sysv*)                # Bull DPX/2
4814                 if test x$gas = xyes
4815                 then
4816                         if test x$stabs = xyes
4817                         then
4818                                 tm_file=m68k/dpx2cdbx.h
4819                         else
4820                                 tm_file=m68k/dpx2g.h
4821                         fi
4822                 else
4823                         tm_file=m68k/dpx2.h
4824                 fi
4825                 xm_file="xm-alloca.h ${xm_file}"
4826                 xm_defines=USG
4827                 xmake_file=m68k/x-dpx2
4828                 use_collect2=yes
4829                 extra_headers=math-68881.h
4830                 ;;
4831         m68k-atari-sysv4*)              # Atari variant of V.4.
4832                 tm_file=m68k/atari.h
4833                 xm_file="xm-alloca.h ${xm_file}"
4834                 xm_defines="USG FULL_PROTOTYPES"
4835                 tmake_file=t-svr4
4836                 extra_parts="crtbegin.o crtend.o"
4837                 extra_headers=math-68881.h
4838                 float_format=m68k
4839                 ;;
4840         m68k-motorola-sysv*)
4841                 tm_file=m68k/mot3300.h
4842                 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4843                 if test x$gas = xyes
4844                 then
4845                         xmake_file=m68k/x-mot3300-gas
4846                         if test x$gnu_ld = xyes
4847                         then
4848                                 tmake_file=m68k/t-mot3300-gald
4849                         else
4850                                 tmake_file=m68k/t-mot3300-gas
4851                                 use_collect2=yes
4852                         fi
4853                 else
4854                         xmake_file=m68k/x-mot3300
4855                         if test x$gnu_ld = xyes
4856                         then
4857                                 tmake_file=m68k/t-mot3300-gld
4858                         else
4859                                 tmake_file=m68k/t-mot3300
4860                                 use_collect2=yes
4861                         fi
4862                 fi
4863                 gdb_needs_out_file_path=yes
4864                 extra_parts="crt0.o mcrt0.o"
4865                 extra_headers=math-68881.h
4866                 float_format=m68k
4867                 ;;
4868         m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
4869                 tm_file=m68k/tower-as.h
4870                 xm_defines="USG SVR3"
4871                 xmake_file=m68k/x-tower
4872                 extra_parts="crtbegin.o crtend.o"
4873                 extra_headers=math-68881.h
4874                 ;;
4875         m68k-plexus-sysv*)
4876                 tm_file=m68k/plexus.h
4877                 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4878                 xm_defines=USG
4879                 use_collect2=yes
4880                 extra_headers=math-68881.h
4881                 ;;
4882         m68k-tti-*)
4883                 tm_file=m68k/pbb.h
4884                 xm_file="xm-alloca.h ${xm_file}"
4885                 xm_defines=USG
4886                 extra_headers=math-68881.h
4887                 ;;
4888         m68k-crds-unos*)
4889                 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4890                 xm_defines="USG unos"
4891                 xmake_file=m68k/x-crds
4892                 tm_file=m68k/crds.h
4893                 use_collect2=yes
4894                 extra_headers=math-68881.h
4895                 ;;
4896         m68k-cbm-sysv4*)                # Commodore variant of V.4.
4897                 tm_file=m68k/amix.h
4898                 xm_file="xm-alloca.h ${xm_file}"
4899                 xm_defines="USG FULL_PROTOTYPES"
4900                 xmake_file=m68k/x-amix
4901                 tmake_file=t-svr4
4902                 extra_parts="crtbegin.o crtend.o"
4903                 extra_headers=math-68881.h
4904                 float_format=m68k
4905                 ;;
4906         m68k-ccur-rtu)
4907                 tm_file=m68k/ccur-GAS.h
4908                 xmake_file=m68k/x-ccur
4909                 extra_headers=math-68881.h
4910                 use_collect2=yes
4911                 float_format=m68k
4912                 ;;
4913         m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
4914                 tm_file=m68k/hp3bsd44.h
4915                 xmake_file=m68k/x-hp3bsd44
4916                 use_collect2=yes
4917                 extra_headers=math-68881.h
4918                 float_format=m68k
4919                 ;;
4920         m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
4921                 tm_file=m68k/hp3bsd.h
4922                 use_collect2=yes
4923                 extra_headers=math-68881.h
4924                 float_format=m68k
4925                 ;;
4926         m68k-isi-bsd*)
4927                 if test x$with_fp = xno
4928                 then
4929                         tm_file=m68k/isi-nfp.h
4930                 else
4931                         tm_file=m68k/isi.h
4932                         float_format=m68k
4933                 fi
4934                 use_collect2=yes
4935                 extra_headers=math-68881.h
4936                 ;;
4937         m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4938                 xm_file="xm-alloca.h ${xm_file}"
4939                 xm_defines="USG"
4940                 if test x$gas = xyes
4941                 then
4942                         xmake_file=m68k/x-hp320g
4943                         tm_file=m68k/hp320g.h
4944                 else
4945                         xmake_file=m68k/x-hp320
4946                         tm_file=m68k/hpux7.h
4947                 fi
4948                 install_headers_dir=install-headers-cpio
4949                 use_collect2=yes
4950                 extra_headers=math-68881.h
4951                 float_format=m68k
4952                 ;;
4953         m68k-hp-hpux*)  # HP 9000 series 300
4954                 xm_file="xm-alloca.h ${xm_file}"
4955                 xm_defines="USG"
4956                 if test x$gas = xyes
4957                 then
4958                         xmake_file=m68k/x-hp320g
4959                         tm_file=m68k/hp320g.h
4960                 else
4961                         xmake_file=m68k/x-hp320
4962                         tm_file=m68k/hp320.h
4963                 fi
4964                 install_headers_dir=install-headers-cpio
4965                 use_collect2=yes
4966                 extra_headers=math-68881.h
4967                 float_format=m68k
4968                 ;;
4969         m68k-sun-mach*)
4970                 tm_file=m68k/sun3mach.h
4971                 use_collect2=yes
4972                 extra_headers=math-68881.h
4973                 float_format=m68k
4974                 ;;
4975         m68k-sony-newsos3*)
4976                 if test x$gas = xyes
4977                 then
4978                         tm_file=m68k/news3gas.h
4979                 else
4980                         tm_file=m68k/news3.h
4981                 fi
4982                 use_collect2=yes
4983                 extra_headers=math-68881.h
4984                 float_format=m68k
4985                 ;;
4986         m68k-sony-bsd* | m68k-sony-newsos*)
4987                 if test x$gas = xyes
4988                 then
4989                         tm_file=m68k/newsgas.h
4990                 else
4991                         tm_file=m68k/news.h
4992                 fi
4993                 use_collect2=yes
4994                 extra_headers=math-68881.h
4995                 float_format=m68k
4996                 ;;
4997         m68k-next-nextstep2*)
4998                 tm_file=m68k/next21.h
4999                 xm_file="m68k/xm-next.h ${xm_file}"
5000                 tmake_file=m68k/t-next
5001                 xmake_file=m68k/x-next
5002                 extra_objs=nextstep.o
5003                 extra_headers=math-68881.h
5004                 use_collect2=yes
5005                 float_format=m68k
5006                 ;;
5007         m68k-next-nextstep[34]*)
5008                 tm_file=m68k/next.h
5009                 xm_file="m68k/xm-next.h ${xm_file}"
5010                 tmake_file=m68k/t-next
5011                 xmake_file=m68k/x-next
5012                 extra_objs=nextstep.o
5013                 extra_parts="crtbegin.o crtend.o"
5014                 extra_headers=math-68881.h
5015                 float_format=m68k
5016                 if test x$enable_threads = xyes; then
5017                         thread_file='mach'
5018                 fi
5019                 ;;
5020         m68k-sun-sunos3*)
5021                 if test x$with_fp = xno
5022                 then
5023                         tm_file=m68k/sun3n3.h
5024                 else
5025                         tm_file=m68k/sun3o3.h
5026                         float_format=m68k
5027                 fi
5028                 use_collect2=yes
5029                 extra_headers=math-68881.h
5030                 ;;
5031         m68k-sun-sunos*)                        # For SunOS 4 (the default).
5032                 if test x$with_fp = xno
5033                 then
5034                         tm_file=m68k/sun3n.h
5035                 else
5036                         tm_file=m68k/sun3.h
5037                         float_format=m68k
5038                 fi
5039                 use_collect2=yes
5040                 extra_headers=math-68881.h
5041                 ;;
5042         m68k-wrs-vxworks*)
5043                 tm_file=m68k/vxm68k.h
5044                 tmake_file=m68k/t-vxworks68
5045                 extra_headers=math-68881.h
5046                 thread_file='vxworks'
5047                 float_format=m68k
5048                 ;;
5049         m68k-*-aout*)
5050                 tmake_file=m68k/t-m68kbare
5051                 tm_file="m68k/m68k-aout.h libgloss.h"
5052                 extra_headers=math-68881.h
5053                 float_format=m68k
5054                 ;;
5055         m68k-*-coff*)
5056                 tmake_file=m68k/t-m68kbare
5057                 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
5058                 extra_headers=math-68881.h
5059                 float_format=m68k
5060                 ;;
5061         m68020-*-elf* | m68k-*-elf*)
5062                 tm_file="m68k/m68020-elf.h"
5063                 xm_file=m68k/xm-m68kv.h
5064                 tmake_file=m68k/t-m68kelf
5065                 header_files=math-68881.h
5066                 ;;
5067         m68k-*-lynxos*)
5068                 if test x$gas = xyes
5069                 then
5070                         tm_file=m68k/lynx.h
5071                 else
5072                         tm_file=m68k/lynx-ng.h
5073                 fi
5074                 xm_file=m68k/xm-lynx.h
5075                 xmake_file=x-lynx
5076                 tmake_file=m68k/t-lynx
5077                 extra_headers=math-68881.h
5078                 float_format=m68k
5079                 ;;
5080         m68k*-*-netbsd*)
5081                 tm_file=m68k/netbsd.h
5082                 tmake_file=t-netbsd
5083                 float_format=m68k
5084                 use_collect2=yes
5085                 ;;
5086         m68k*-*-openbsd*)
5087                 float_format=m68k
5088                 # we need collect2 until our bug is fixed...
5089                 use_collect2=yes
5090                 ;;
5091         m68k-*-sysv3*)                  # Motorola m68k's running system V.3
5092                 xm_file="xm-alloca.h ${xm_file}"
5093                 xm_defines=USG
5094                 xmake_file=m68k/x-m68kv
5095                 extra_parts="crtbegin.o crtend.o"
5096                 extra_headers=math-68881.h
5097                 float_format=m68k
5098                 ;;
5099         m68k-*-sysv4*)                  # Motorola m68k's running system V.4
5100                 tm_file=m68k/m68kv4.h
5101                 xm_file="xm-alloca.h ${xm_file}"
5102                 xm_defines=USG
5103                 tmake_file=t-svr4
5104                 extra_parts="crtbegin.o crtend.o"
5105                 extra_headers=math-68881.h
5106                 float_format=m68k
5107                 ;;
5108         m68k-*-linux-gnuaout*)          # Motorola m68k's running GNU/Linux
5109                                         # with a.out format
5110                 xmake_file=x-linux
5111                 tm_file=m68k/linux-aout.h
5112                 tmake_file="t-linux-aout m68k/t-linux-aout"
5113                 extra_headers=math-68881.h
5114                 float_format=m68k
5115                 gnu_ld=yes
5116                 ;;
5117         m68k-*-linux-gnulibc1)          # Motorola m68k's running GNU/Linux
5118                                         # with ELF format using the
5119                                         # GNU/Linux C library 5
5120                 xmake_file=x-linux
5121                 tm_file=m68k/linux.h
5122                 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
5123                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5124                 extra_headers=math-68881.h
5125                 float_format=m68k
5126                 gnu_ld=yes
5127                 ;;
5128         m68k-*-linux-gnu*)              # Motorola m68k's running GNU/Linux
5129                                         # with ELF format using glibc 2
5130                                         # aka the GNU/Linux C library 6.
5131                 xmake_file=x-linux
5132                 tm_file=m68k/linux.h
5133                 tmake_file="t-linux m68k/t-linux"
5134                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5135                 extra_headers=math-68881.h
5136                 float_format=m68k
5137                 gnu_ld=yes
5138                 if test x$enable_threads = xyes; then
5139                         thread_file='posix'
5140                 fi
5141                 ;;
5142         m68k-*-psos*)
5143                 tmake_file=m68k/t-m68kbare
5144                 tm_file=m68k/m68k-psos.h
5145                 extra_headers=math-68881.h
5146                 float_format=m68k
5147                 ;;
5148         m68k-*-rtemscoff*)
5149                 tmake_file="m68k/t-m68kbare t-rtems"
5150                 tm_file=m68k/rtems.h
5151                 extra_headers=math-68881.h
5152                 float_format=m68k
5153                 ;;
5154         m68k-*-rtemself*|m68k-*-rtems*)
5155                 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5156                 tm_file=m68k/rtemself.h
5157                 extra_headers=math-68881.h
5158                 float_format=m68k
5159                 ;;
5160         m88k-dg-dgux*)
5161                 case $machine in
5162                   m88k-dg-dguxbcs*)
5163                     tm_file=m88k/dguxbcs.h
5164                     tmake_file=m88k/t-dguxbcs
5165                     ;;
5166                   *)
5167                     tm_file=m88k/dgux.h
5168                     tmake_file=m88k/t-dgux
5169                     ;;
5170                 esac
5171                 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5172                 xmake_file=m88k/x-dgux
5173                 if test x$gas = xyes
5174                 then
5175                         tmake_file=m88k/t-dgux-gas
5176                 fi
5177                 ;;
5178         m88k-dolphin-sysv3*)
5179                 tm_file=m88k/dolph.h
5180                 extra_parts="crtbegin.o crtend.o"
5181                 xm_file="m88k/xm-sysv3.h ${xm_file}"
5182                 xmake_file=m88k/x-dolph
5183                 if test x$gas = xyes
5184                 then
5185                         tmake_file=m88k/t-m88k-gas
5186                 fi
5187                 ;;
5188         m88k-tektronix-sysv3)
5189                 tm_file=m88k/tekXD88.h
5190                 extra_parts="crtbegin.o crtend.o"
5191                 xm_file="m88k/xm-sysv3.h ${xm_file}"
5192                 xmake_file=m88k/x-tekXD88
5193                 if test x$gas = xyes
5194                 then
5195                         tmake_file=m88k/t-m88k-gas
5196                 fi
5197                 ;;
5198         m88k-*-aout*)
5199                 tm_file=m88k/m88k-aout.h
5200                 ;;
5201         m88k-*-coff*)
5202                 tm_file=m88k/m88k-coff.h
5203                 tmake_file=m88k/t-bug
5204                 ;;
5205         m88k-*-luna*)
5206                 tm_file=m88k/luna.h
5207                 extra_parts="crtbegin.o crtend.o"
5208                 if test x$gas = xyes
5209                 then
5210                         tmake_file=m88k/t-luna-gas
5211                 else
5212                         tmake_file=m88k/t-luna
5213                 fi
5214                 ;;
5215         m88k-*-openbsd*)
5216                 tmake_file="${tmake_file} m88k/t-luna-gas"
5217                 ;;
5218         m88k-*-sysv3*)
5219                 tm_file=m88k/sysv3.h
5220                 extra_parts="crtbegin.o crtend.o"
5221                 xm_file="m88k/xm-sysv3.h ${xm_file}"
5222                 xmake_file=m88k/x-sysv3
5223                 if test x$gas = xyes
5224                 then
5225                         tmake_file=m88k/t-m88k-gas
5226                 fi
5227                 ;;
5228         m88k-*-sysv4*)
5229                 tm_file=m88k/sysv4.h
5230                 extra_parts="crtbegin.o crtend.o"
5231                 xmake_file=m88k/x-sysv4
5232                 tmake_file=m88k/t-sysv4
5233                 ;;
5234         mcore-*-elf)
5235                 tm_file=mcore/mcore-elf.h
5236                 tmake_file=mcore/t-mcore
5237                 ;;
5238         mcore-*-pe*)
5239                 tm_file=mcore/mcore-pe.h
5240                 tmake_file=mcore/t-mcore-pe
5241                 ;;
5242         mips-sgi-irix6*)                # SGI System V.4., IRIX 6
5243                 if test "x$gnu_ld" = xyes
5244                 then
5245                         tm_file="mips/iris6.h mips/iris6gld.h"
5246                 else
5247                         tm_file=mips/iris6.h
5248                 fi
5249                 tmake_file=mips/t-iris6
5250                 xm_file=mips/xm-iris6.h
5251                 xmake_file=mips/x-iris6
5252 #               if test x$enable_threads = xyes; then
5253 #                       thread_file='irix'
5254 #               fi
5255                 ;;
5256         mips-wrs-vxworks)
5257                 tm_file="mips/elf.h mips/vxworks.h"
5258                 tmake_file=mips/t-ecoff
5259                 gas=yes
5260                 gnu_ld=yes
5261                 extra_parts="crtbegin.o crtend.o"
5262                 thread_file='vxworks'
5263                 ;;
5264         mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
5265                 tm_file="mips/iris6.h mips/cross64.h"
5266                 xm_defines=USG
5267                 xm_file="mips/xm-iris5.h"
5268                 xmake_file=mips/x-iris
5269                 tmake_file=mips/t-cross64
5270                 # See comment in mips/iris[56].h files.
5271                 use_collect2=yes
5272 #               if test x$enable_threads = xyes; then
5273 #                       thread_file='irix'
5274 #               fi
5275                 ;;
5276         mips-sni-sysv4)
5277                 if test x$gas = xyes
5278                 then
5279                         if test x$stabs = xyes
5280                         then
5281                                 tm_file=mips/iris5gdb.h
5282                         else
5283                                 tm_file="mips/sni-svr4.h mips/sni-gas.h"
5284                         fi
5285                 else
5286                         tm_file=mips/sni-svr4.h
5287                 fi
5288                 xm_defines=USG
5289                 xmake_file=mips/x-sni-svr4
5290                 tmake_file=mips/t-mips-gas
5291                 if test x$gnu_ld != xyes
5292                 then
5293                         use_collect2=yes
5294                 fi
5295                 ;;
5296         mips-sgi-irix5*)                # SGI System V.4., IRIX 5
5297                 if test x$gas = xyes
5298                 then
5299                         tm_file="mips/iris5.h mips/iris5gas.h"
5300                         if test x$stabs = xyes
5301                         then
5302                                 tm_file="${tm_file} dbx.h"
5303                         fi
5304                 else
5305                         tm_file=mips/iris5.h
5306                 fi
5307                 xm_defines=USG
5308                 xm_file="mips/xm-iris5.h"
5309                 xmake_file=mips/x-iris
5310                 # mips-tfile doesn't work yet
5311                 tmake_file=mips/t-mips-gas
5312                 # See comment in mips/iris5.h file.
5313                 use_collect2=yes
5314 #               if test x$enable_threads = xyes; then
5315 #                       thread_file='irix'
5316 #               fi
5317                 ;;
5318         mips-sgi-irix4loser*)           # Mostly like a MIPS.
5319                 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5320                 if test x$stabs = xyes; then
5321                         tm_file="${tm_file} dbx.h"
5322                 fi
5323                 xm_defines=USG
5324                 xmake_file=mips/x-iris
5325                 if test x$gas = xyes
5326                 then
5327                         tmake_file=mips/t-mips-gas
5328                 else
5329                         extra_passes="mips-tfile mips-tdump"
5330                 fi
5331                 if test x$gnu_ld != xyes
5332                 then
5333                         use_collect2=yes
5334                 fi
5335 #               if test x$enable_threads = xyes; then
5336 #                       thread_file='irix'
5337 #               fi
5338                 ;;
5339         mips-sgi-irix4*)                # Mostly like a MIPS.
5340                 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
5341                 if test x$stabs = xyes; then
5342                         tm_file="${tm_file} dbx.h"
5343                 fi
5344                 xm_defines=USG
5345                 xmake_file=mips/x-iris
5346                 if test x$gas = xyes
5347                 then
5348                         tmake_file=mips/t-mips-gas
5349                 else
5350                         extra_passes="mips-tfile mips-tdump"
5351                 fi
5352                 if test x$gnu_ld != xyes
5353                 then
5354                         use_collect2=yes
5355                 fi
5356 #               if test x$enable_threads = xyes; then
5357 #                       thread_file='irix'
5358 #               fi
5359                 ;;
5360         mips-sgi-*)                     # Mostly like a MIPS.
5361                 tm_file="mips/iris3.h ${tm_file}"
5362                 if test x$stabs = xyes; then
5363                         tm_file="${tm_file} dbx.h"
5364                 fi
5365                 xm_defines=USG
5366                 xmake_file=mips/x-iris3
5367                 if test x$gas = xyes
5368                 then
5369                         tmake_file=mips/t-mips-gas
5370                 else
5371                         extra_passes="mips-tfile mips-tdump"
5372                 fi
5373                 if test x$gnu_ld != xyes
5374                 then
5375                         use_collect2=yes
5376                 fi
5377                 ;;
5378         mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
5379                 tm_file="mips/osfrose.h ${tm_file}"
5380                 xmake_file=mips/x-osfrose
5381                 tmake_file=mips/t-osfrose
5382                 extra_objs=halfpic.o
5383                 use_collect2=yes
5384                 ;;
5385         mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
5386                 tm_file=mips/dec-osf1.h
5387                 if test x$stabs = xyes; then
5388                         tm_file="${tm_file} dbx.h"
5389                 fi
5390                 xmake_file=mips/x-dec-osf1
5391                 if test x$gas = xyes
5392                 then
5393                         tmake_file=mips/t-mips-gas
5394                 else
5395                         tmake_file=mips/t-ultrix
5396                         extra_passes="mips-tfile mips-tdump"
5397                 fi
5398                 if test x$gnu_ld != xyes
5399                 then
5400                         use_collect2=yes
5401                 fi
5402                 ;;
5403         mips-dec-bsd*)                  # Decstation running 4.4 BSD
5404               tm_file=mips/dec-bsd.h
5405               if test x$gas = xyes
5406               then
5407                         tmake_file=mips/t-mips-gas
5408               else
5409                         tmake_file=mips/t-ultrix
5410                         extra_passes="mips-tfile mips-tdump"
5411               fi
5412               if test x$gnu_ld != xyes
5413               then
5414                         use_collect2=yes
5415               fi
5416               ;;
5417         mipsel-*-netbsd* | mips-dec-netbsd*)    # Decstation running NetBSD
5418                 tm_file=mips/netbsd.h
5419                 # On NetBSD, the headers are already okay, except for math.h.
5420                 tmake_file=t-netbsd
5421                 ;;
5422        mips*-*-linux*)                         # Linux MIPS, either endian.
5423                 xmake_file=x-linux
5424                case $machine in
5425                        mipsel-*)  tm_file="mips/elfl.h mips/linux.h" ;;
5426                        *)         tm_file="mips/elf.h mips/linux.h" ;;
5427                esac
5428                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5429                 gnu_ld=yes
5430                 gas=yes
5431                 if test x$enable_threads = xyes; then
5432                         thread_file='posix'
5433                 fi
5434                 ;;
5435         mips*el-*-openbsd*)     # mips little endian
5436                 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5437                 ;;
5438         mips*-*-openbsd*)               # mips big endian
5439                 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5440                 tm_file="mips/openbsd-be.h ${tm_file}"
5441                 ;;
5442         mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
5443                 tm_file="mips/news4.h ${tm_file}"
5444                 if test x$stabs = xyes; then
5445                         tm_file="${tm_file} dbx.h"
5446                 fi
5447                 if test x$gas = xyes
5448                 then
5449                         tmake_file=mips/t-mips-gas
5450                 else
5451                         extra_passes="mips-tfile mips-tdump"
5452                 fi
5453                 if test x$gnu_ld != xyes
5454                 then
5455                         use_collect2=yes
5456                 fi
5457                 xmake_file=mips/x-sony
5458                 ;;
5459         mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
5460                                         # That is based on svr4.
5461                 # t-svr4 is not right because this system doesn't use ELF.
5462                 tm_file="mips/news5.h ${tm_file}"
5463                 if test x$stabs = xyes; then
5464                         tm_file="${tm_file} dbx.h"
5465                 fi
5466                 xm_defines=USG
5467                 if test x$gas = xyes
5468                 then
5469                         tmake_file=mips/t-mips-gas
5470                 else
5471                         extra_passes="mips-tfile mips-tdump"
5472                 fi
5473                 if test x$gnu_ld != xyes
5474                 then
5475                         use_collect2=yes
5476                 fi
5477                 ;;
5478         mips-tandem-sysv4*)             # Tandem S2 running NonStop UX
5479                 tm_file="mips/svr4-5.h mips/svr4-t.h"
5480                 if test x$stabs = xyes; then
5481                         tm_file="${tm_file} dbx.h"
5482                 fi
5483                 xm_defines=USG
5484                 xmake_file=mips/x-sysv
5485                 if test x$gas = xyes
5486                 then
5487                         tmake_file=mips/t-mips-gas
5488                         extra_parts="crtbegin.o crtend.o"
5489                 else
5490                         tmake_file=mips/t-mips
5491                         extra_passes="mips-tfile mips-tdump"
5492                 fi
5493                 if test x$gnu_ld != xyes
5494                 then
5495                         use_collect2=yes
5496                 fi
5497                 ;;
5498         mips-*-ultrix* | mips-dec-mach3)        # Decstation.
5499                 tm_file="mips/ultrix.h ${tm_file}"
5500                 if test x$stabs = xyes; then
5501                         tm_file="${tm_file} dbx.h"
5502                 fi
5503                 xmake_file=mips/x-ultrix
5504                 if test x$gas = xyes
5505                 then
5506                         tmake_file=mips/t-mips-gas
5507                 else
5508                         tmake_file=mips/t-ultrix
5509                         extra_passes="mips-tfile mips-tdump"
5510                 fi
5511                 if test x$gnu_ld != xyes
5512                 then
5513                         use_collect2=yes
5514                 fi
5515                 ;;
5516         mips-*-riscos[56789]bsd*)
5517                 tm_file=mips/bsd-5.h    # MIPS BSD 4.3, RISC-OS 5.0
5518                 if test x$stabs = xyes; then
5519                         tm_file="${tm_file} dbx.h"
5520                 fi
5521                 if test x$gas = xyes
5522                 then
5523                         tmake_file=mips/t-bsd-gas
5524                 else
5525                         tmake_file=mips/t-bsd
5526                         extra_passes="mips-tfile mips-tdump"
5527                 fi
5528                 if test x$gnu_ld != xyes
5529                 then
5530                         use_collect2=yes
5531                 fi
5532                 ;;
5533         mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
5534                 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5535                 if test x$stabs = xyes; then
5536                         tm_file="${tm_file} dbx.h"
5537                 fi
5538                 if test x$gas = xyes
5539                 then
5540                         tmake_file=mips/t-bsd-gas
5541                 else
5542                         tmake_file=mips/t-bsd
5543                         extra_passes="mips-tfile mips-tdump"
5544                 fi
5545                 if test x$gnu_ld != xyes
5546                 then
5547                         use_collect2=yes
5548                 fi
5549                 ;;
5550         mips-*-riscos[56789]sysv4*)
5551                 tm_file=mips/svr4-5.h   # MIPS System V.4., RISC-OS 5.0
5552                 if test x$stabs = xyes; then
5553                         tm_file="${tm_file} dbx.h"
5554                 fi
5555                 xmake_file=mips/x-sysv
5556                 if test x$gas = xyes
5557                 then
5558                         tmake_file=mips/t-svr4-gas
5559                 else
5560                         tmake_file=mips/t-svr4
5561                         extra_passes="mips-tfile mips-tdump"
5562                 fi
5563                 if test x$gnu_ld != xyes
5564                 then
5565                         use_collect2=yes
5566                 fi
5567                 ;;
5568         mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5569                 tm_file="mips/svr4-4.h ${tm_file}"
5570                 if test x$stabs = xyes; then
5571                         tm_file="${tm_file} dbx.h"
5572                 fi
5573                 xm_defines=USG
5574                 xmake_file=mips/x-sysv
5575                 if test x$gas = xyes
5576                 then
5577                         tmake_file=mips/t-svr4-gas
5578                 else
5579                         tmake_file=mips/t-svr4
5580                         extra_passes="mips-tfile mips-tdump"
5581                 fi
5582                 if test x$gnu_ld != xyes
5583                 then
5584                         use_collect2=yes
5585                 fi
5586                 ;;
5587         mips-*-riscos[56789]sysv*)
5588                 tm_file=mips/svr3-5.h   # MIPS System V.3, RISC-OS 5.0
5589                 if test x$stabs = xyes; then
5590                         tm_file="${tm_file} dbx.h"
5591                 fi
5592                 xm_defines=USG
5593                 xmake_file=mips/x-sysv
5594                 if test x$gas = xyes
5595                 then
5596                         tmake_file=mips/t-svr3-gas
5597                 else
5598                         tmake_file=mips/t-svr3
5599                         extra_passes="mips-tfile mips-tdump"
5600                 fi
5601                 if test x$gnu_ld != xyes
5602                 then
5603                         use_collect2=yes
5604                 fi
5605                 ;;
5606         mips-*-sysv* | mips-*-riscos*sysv*)
5607                 tm_file="mips/svr3-4.h ${tm_file}"
5608                 if test x$stabs = xyes; then
5609                         tm_file="${tm_file} dbx.h"
5610                 fi
5611                 xm_defines=USG
5612                 xmake_file=mips/x-sysv
5613                 if test x$gas = xyes
5614                 then
5615                         tmake_file=mips/t-svr3-gas
5616                 else
5617                         tmake_file=mips/t-svr3
5618                         extra_passes="mips-tfile mips-tdump"
5619                 fi
5620                 if test x$gnu_ld != xyes
5621                 then
5622                         use_collect2=yes
5623                 fi
5624                 ;;
5625         mips-*-riscos[56789]*)          # Default MIPS RISC-OS 5.0.
5626                 tm_file=mips/mips-5.h
5627                 if test x$stabs = xyes; then
5628                         tm_file="${tm_file} dbx.h"
5629                 fi
5630                 if test x$gas = xyes
5631                 then
5632                         tmake_file=mips/t-mips-gas
5633                 else
5634                         extra_passes="mips-tfile mips-tdump"
5635                 fi
5636                 if test x$gnu_ld != xyes
5637                 then
5638                         use_collect2=yes
5639                 fi
5640                 ;;
5641         mips-*-gnu*)
5642                 ;;
5643         mipsel-*-ecoff*)
5644                 tm_file=mips/ecoffl.h
5645                 if test x$stabs = xyes; then
5646                         tm_file="${tm_file} dbx.h"
5647                 fi
5648                 tmake_file=mips/t-ecoff
5649                 ;;
5650         mips-*-ecoff*)
5651                 tm_file="gofast.h mips/ecoff.h"
5652                 if test x$stabs = xyes; then
5653                         tm_file="${tm_file} dbx.h"
5654                 fi
5655                 tmake_file=mips/t-ecoff
5656                 ;;
5657         mipsel-*-elf*)
5658                 tm_file="mips/elfl.h"
5659                 tmake_file=mips/t-elf
5660                 ;;
5661         mips-*-elf*)
5662                 tm_file="mips/elf.h"
5663                 tmake_file=mips/t-elf
5664                 ;;
5665         mips64el-*-elf*)
5666                 tm_file="mips/elfl64.h"
5667                 tmake_file=mips/t-elf
5668                 ;;
5669         mips64orionel-*-elf*)
5670                 tm_file="mips/elforion.h mips/elfl64.h"
5671                 tmake_file=mips/t-elf
5672                 ;;
5673         mips64-*-elf*)
5674                 tm_file="mips/elf64.h"
5675                 tmake_file=mips/t-elf
5676                 ;;
5677         mips64orion-*-elf*)
5678                 tm_file="mips/elforion.h mips/elf64.h"
5679                 tmake_file=mips/t-elf
5680                 ;;
5681         mips64orion-*-rtems*)
5682                 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5683                 tmake_file="mips/t-elf t-rtems"
5684                 ;;
5685         mipstx39el-*-elf*)
5686                 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5687                 tmake_file=mips/t-r3900
5688                 ;;
5689         mipstx39-*-elf*)
5690                 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5691                 tmake_file=mips/t-r3900
5692                 ;;
5693         mips-*-*)                               # Default MIPS RISC-OS 4.0.
5694                 if test x$stabs = xyes; then
5695                         tm_file="${tm_file} dbx.h"
5696                 fi
5697                 if test x$gas = xyes
5698                 then
5699                         tmake_file=mips/t-mips-gas
5700                 else
5701                         extra_passes="mips-tfile mips-tdump"
5702                 fi
5703                 if test x$gnu_ld != xyes
5704                 then
5705                         use_collect2=yes
5706                 fi
5707                 ;;
5708         mn10200-*-*)
5709                 float_format=i32
5710                 cpu_type=mn10200
5711                 tm_file="mn10200/mn10200.h"
5712                 if test x$stabs = xyes
5713                 then
5714                         tm_file="${tm_file} dbx.h"
5715                 fi
5716                 use_collect2=no
5717                 ;;
5718         mn10300-*-*)
5719                 cpu_type=mn10300
5720                 tm_file="mn10300/mn10300.h"
5721                 if test x$stabs = xyes
5722                 then
5723                         tm_file="${tm_file} dbx.h"
5724                 fi
5725                 use_collect2=no
5726                 ;;
5727         ns32k-encore-bsd*)
5728                 tm_file=ns32k/encore.h
5729                 use_collect2=yes
5730                 ;;
5731         ns32k-sequent-bsd*)
5732                 tm_file=ns32k/sequent.h
5733                 use_collect2=yes
5734                 ;;
5735         ns32k-tek6100-bsd*)
5736                 tm_file=ns32k/tek6100.h
5737                 use_collect2=yes
5738                 ;;
5739         ns32k-tek6200-bsd*)
5740                 tm_file=ns32k/tek6200.h
5741                 use_collect2=yes
5742                 ;;
5743 # This has not been updated to GCC 2.
5744 #       ns32k-ns-genix*)
5745 #               xm_defines=USG
5746 #               xmake_file=ns32k/x-genix
5747 #               tm_file=ns32k/genix.h
5748 #               use_collect2=yes
5749 #               ;;
5750         ns32k-merlin-*)
5751                 tm_file=ns32k/merlin.h
5752                 use_collect2=yes
5753                 ;;
5754         ns32k-pc532-mach*)
5755                 tm_file=ns32k/pc532-mach.h
5756                 use_collect2=yes
5757                 ;;
5758         ns32k-pc532-minix*)
5759                 tm_file=ns32k/pc532-min.h
5760                 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5761                 xm_defines=USG
5762                 use_collect2=yes
5763                 ;;
5764         ns32k-*-netbsd*)
5765                 tm_file=ns32k/netbsd.h
5766                 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5767                 # On NetBSD, the headers are already okay, except for math.h.
5768                 tmake_file=t-netbsd
5769                 use_collect2=yes
5770                 ;;
5771         pdp11-*-bsd)
5772                 tm_file="${tm_file} pdp11/2bsd.h"
5773                 ;;
5774         pdp11-*-*)
5775                 ;;
5776         avr-*-*)
5777                 ;;
5778         ns32k-*-openbsd*)
5779                 # Nothing special
5780                 ;;
5781 # This has not been updated to GCC 2.
5782 #       pyramid-*-*)
5783 #               cpu_type=pyr
5784 #               xmake_file=pyr/x-pyr
5785 #               use_collect2=yes
5786 #               ;;
5787
5788         pj*-linux*)
5789                 tm_file="svr4.h pj/linux.h ${tm_file}"
5790                 ;;
5791         pj-*)
5792                 ;;
5793         pjl-*)
5794                 tm_file="svr4.h pj/pjl.h ${tm_file}"
5795                 ;;
5796
5797         romp-*-aos*)
5798                 use_collect2=yes
5799                 ;;
5800         romp-*-mach*)
5801                 xmake_file=romp/x-mach
5802                 use_collect2=yes
5803                 ;;
5804         romp-*-openbsd*)
5805                 # Nothing special
5806                 ;;
5807         powerpc-*-openbsd*)
5808                 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5809                 ;;
5810         powerpc-*-beos*)
5811                 cpu_type=rs6000
5812                 tm_file=rs6000/beos.h
5813                 xm_file=rs6000/xm-beos.h
5814                 tmake_file=rs6000/t-beos
5815                 xmake_file=rs6000/x-beos
5816                 ;;
5817         powerpc-*-sysv*)
5818                 tm_file=rs6000/sysv4.h
5819                 xm_file="rs6000/xm-sysv4.h"
5820                 xm_defines="USG POSIX"
5821                 extra_headers=ppc-asm.h
5822                 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5823                 xmake_file=rs6000/x-sysv4
5824                 ;;
5825         powerpc-*-eabiaix*)
5826                 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5827                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5828                 extra_headers=ppc-asm.h
5829                 ;;
5830         powerpc-*-eabisim*)
5831                 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5832                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5833                 extra_headers=ppc-asm.h
5834                 ;;
5835         powerpc-*-elf*)
5836                 tm_file="rs6000/sysv4.h"
5837                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5838                 extra_headers=ppc-asm.h
5839                 ;;
5840         powerpc-*-eabi*)
5841                 tm_file="rs6000/sysv4.h rs6000/eabi.h"
5842                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5843                 extra_headers=ppc-asm.h
5844                 ;;
5845         powerpc-*-rtems*)
5846                 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5847                 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5848                 extra_headers=ppc-asm.h
5849                 ;;
5850         powerpc-*-linux-gnulibc1)
5851                 tm_file="rs6000/sysv4.h rs6000/linux.h"
5852                 xm_file=rs6000/xm-sysv4.h
5853                 out_file=rs6000/rs6000.c
5854                 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5855                 xmake_file=x-linux
5856                 extra_headers=ppc-asm.h
5857                 if test x$enable_threads = xyes; then
5858                         thread_file='posix'
5859                 fi
5860                 ;;
5861         powerpc-*-linux-gnu*)
5862                 tm_file="rs6000/sysv4.h rs6000/linux.h"
5863                 xm_file="rs6000/xm-sysv4.h"
5864                 xm_defines="USG ${xm_defines}"
5865                 out_file=rs6000/rs6000.c
5866                 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5867                 xmake_file=x-linux
5868                 extra_headers=ppc-asm.h
5869                 if test x$enable_threads = xyes; then
5870                         thread_file='posix'
5871                 fi
5872                 ;;
5873         powerpc-wrs-vxworks*)
5874                 cpu_type=rs6000
5875                 xm_file="rs6000/xm-sysv4.h"
5876                 xm_defines="USG POSIX"
5877                 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
5878                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5879                 extra_headers=ppc-asm.h
5880                 thread_file='vxworks'
5881                 ;;
5882         powerpcle-wrs-vxworks*)
5883                 cpu_type=rs6000
5884                 xm_file="rs6000/xm-sysv4.h"
5885                 xm_defines="USG POSIX"
5886                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
5887                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5888                 extra_headers=ppc-asm.h
5889                 thread_file='vxworks'
5890                 ;;
5891         powerpcle-*-sysv*)
5892                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
5893                 xm_file="rs6000/xm-sysv4.h"
5894                 xm_defines="USG POSIX"
5895                 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5896                 xmake_file=rs6000/x-sysv4
5897                 extra_headers=ppc-asm.h
5898                 ;;
5899         powerpcle-*-elf*)
5900                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
5901                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5902                 extra_headers=ppc-asm.h
5903                 ;;
5904         powerpcle-*-eabisim*)
5905                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
5906                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5907                 extra_headers=ppc-asm.h
5908                 ;;
5909         powerpcle-*-eabi*)
5910                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
5911                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5912                 extra_headers=ppc-asm.h
5913                 ;;
5914         powerpcle-*-solaris2*)
5915                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
5916                 xm_file="rs6000/xm-sysv4.h"
5917                 xm_defines="USG POSIX"
5918                 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5919                 xmake_file=rs6000/x-sysv4
5920                 extra_headers=ppc-asm.h
5921                 ;;
5922         rs6000-ibm-aix3.[01]*)
5923                 tm_file=rs6000/aix31.h
5924                 xmake_file=rs6000/x-aix31
5925                 float_format=none
5926                 use_collect2=yes
5927                 ;;
5928         rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5929                 tm_file=rs6000/aix3newas.h
5930                 if test x$host != x$target
5931                 then
5932                         tmake_file=rs6000/t-xnewas
5933                 else
5934                         tmake_file=rs6000/t-newas
5935                 fi
5936                 float_format=none
5937                 use_collect2=yes
5938                 ;;
5939         rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5940                 tm_file=rs6000/aix41.h
5941                 if test x$host != x$target
5942                 then
5943                         tmake_file=rs6000/t-xnewas
5944                 else
5945                         tmake_file=rs6000/t-newas
5946                 fi
5947                 if test "$gnu_ld" = yes
5948                 then
5949                         xmake_file=rs6000/x-aix41-gld
5950                 else
5951                         tmake_file="rs6000/t-newas rs6000/t-aix41"
5952                 fi
5953                 xmake_file=rs6000/x-aix41
5954                 float_format=none
5955                 use_collect2=yes
5956                 ;;
5957         rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5958                 tm_file=rs6000/aix43.h
5959                 tmake_file=rs6000/t-aix43
5960                 xmake_file=rs6000/x-aix41
5961                 float_format=none
5962                 use_collect2=yes
5963                 ;;
5964         rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5965                 tm_file=rs6000/aix43.h
5966                 tmake_file=rs6000/t-aix43
5967                 xmake_file=rs6000/x-aix41
5968                 float_format=none
5969                 use_collect2=yes
5970                 ;;
5971         rs6000-ibm-aix*)
5972                 float_format=none
5973                 use_collect2=yes
5974                 ;;
5975         rs6000-bull-bosx)
5976                 float_format=none
5977                 use_collect2=yes
5978                 ;;
5979         rs6000-*-mach*)
5980                 tm_file=rs6000/mach.h
5981                 xm_file="${xm_file} rs6000/xm-mach.h"
5982                 xmake_file=rs6000/x-mach
5983                 use_collect2=yes
5984                 ;;
5985         rs6000-*-lynxos*)
5986                 tm_file=rs6000/lynx.h
5987                 xm_file=rs6000/xm-lynx.h
5988                 tmake_file=rs6000/t-rs6000
5989                 xmake_file=rs6000/x-lynx
5990                 use_collect2=yes
5991                 ;;
5992         sh-*-elf*)
5993                 tm_file=sh/elf.h
5994                 float_format=sh
5995                 ;;
5996         sh-*-rtemself*)
5997                 tmake_file="sh/t-sh t-rtems"
5998                 tm_file=sh/rtemself.h
5999                 float_format=sh
6000                 ;;
6001         sh-*-rtems*)
6002                 tmake_file="sh/t-sh t-rtems"
6003                 tm_file=sh/rtems.h
6004                 float_format=sh
6005                 ;;
6006         sh-*-*)
6007                 float_format=sh
6008                 ;;
6009         sparc-tti-*)
6010                 tm_file=sparc/pbd.h
6011                 xm_file="xm-alloca.h ${xm_file}"
6012                 xm_defines=USG
6013                 ;;
6014         sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
6015                 tm_file=sparc/vxsparc.h
6016                 tmake_file=sparc/t-vxsparc
6017                 use_collect2=yes
6018                 thread_file='vxworks'
6019                 ;;
6020         sparc-*-aout*)
6021                 tmake_file=sparc/t-sparcbare
6022                 tm_file="sparc/aout.h libgloss.h"
6023                 ;;
6024         sparc-*-netbsd*)
6025                 tm_file=sparc/netbsd.h
6026                 tmake_file=t-netbsd
6027                 use_collect2=yes
6028                 ;;
6029         sparc-*-openbsd*)
6030                 # we need collect2 until our bug is fixed...
6031                 use_collect2=yes
6032                 ;;
6033         sparc-*-bsd*)
6034                 tm_file=sparc/bsd.h
6035                 ;;
6036         sparc-*-elf*)
6037                 tm_file=sparc/elf.h
6038                 tmake_file=sparc/t-elf
6039                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6040                 #float_format=i128
6041                 float_format=i64
6042                 ;;
6043         sparc-*-linux-gnuaout*)         # Sparc's running GNU/Linux, a.out
6044                 xm_file="${xm_file} sparc/xm-linux.h"
6045                 tm_file=sparc/linux-aout.h
6046                 xmake_file=x-linux
6047                 gnu_ld=yes
6048                 ;;
6049         sparc-*-linux-gnulibc1*)        # Sparc's running GNU/Linux, libc5
6050                 xm_file="${xm_file} sparc/xm-linux.h"
6051                 xmake_file=x-linux
6052                 tm_file=sparc/linux.h
6053                 tmake_file="t-linux t-linux-gnulibc1"
6054                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6055                 gnu_ld=yes
6056                 float_format=sparc
6057                 ;;
6058         sparc-*-linux-gnu*)             # Sparc's running GNU/Linux, libc6
6059                 xm_file="${xm_file} sparc/xm-linux.h"
6060                 xmake_file=x-linux
6061                 tm_file=sparc/linux.h
6062                 tmake_file="t-linux"
6063                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6064                 gnu_ld=yes
6065                 if test x$enable_threads = xyes; then
6066                         thread_file='posix'
6067                 fi
6068                 float_format=sparc
6069                 ;;
6070         sparc-*-lynxos*)
6071                 if test x$gas = xyes
6072                 then
6073                         tm_file=sparc/lynx.h
6074                 else
6075                         tm_file=sparc/lynx-ng.h
6076                 fi
6077                 xm_file=sparc/xm-lynx.h
6078                 tmake_file=sparc/t-sunos41
6079                 xmake_file=x-lynx
6080                 ;;
6081         sparc-*-rtemsaout*)
6082                 tmake_file="sparc/t-sparcbare t-rtems"
6083                 tm_file=sparc/rtems.h
6084                 ;;
6085         sparc-*-rtems*|sparc-*-rtemself*)
6086                 tm_file="sparc/rtemself.h"
6087                 tmake_file="sparc/t-elf t-rtems"
6088                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6089                 #float_format=i128
6090                 float_format=i64
6091                 ;;
6092         sparcv9-*-solaris2*)
6093                 if test x$gnu_ld = xyes
6094                 then
6095                         tm_file=sparc/sol2-64.h
6096                 else
6097                         tm_file=sparc/sol2-sld-64.h
6098                 fi
6099                 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6100                 xm_defines="USG POSIX"
6101                 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
6102                 xmake_file=sparc/x-sysv4
6103                 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6104                 float_format=none
6105                 if test x${enable_threads} = x ; then
6106                     enable_threads=$have_pthread_h
6107                     if test x${enable_threads} = x ; then
6108                         enable_threads=$have_thread_h
6109                     fi
6110                 fi
6111                 if test x${enable_threads} = xyes ; then
6112                     if test x${have_pthread_h} = xyes ; then
6113                         thread_file='posix'
6114                     else
6115                         thread_file='solaris'
6116                     fi
6117                 fi
6118                 ;;
6119         sparc-hal-solaris2*)
6120                 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6121                 xm_defines="USG POSIX"
6122                 tm_file="sparc/sol2.h sparc/hal.h"
6123                 tmake_file="sparc/t-halos sparc/t-sol2"
6124                 xmake_file=sparc/x-sysv4
6125                 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6126                 case $machine in
6127                 *-*-solaris2.[0-4])
6128                         float_format=i128
6129                 ;;
6130                 *)
6131                         float_format=none
6132                         ;;
6133                 esac
6134                 thread_file='solaris'
6135                 ;;
6136         sparc-*-solaris2*)
6137                 if test x$gnu_ld = xyes
6138                 then
6139                         tm_file=sparc/sol2.h
6140                 else
6141                         tm_file=sparc/sol2-sld.h
6142                 fi
6143                 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6144                 xm_defines="USG POSIX"
6145                 tmake_file=sparc/t-sol2
6146                 xmake_file=sparc/x-sysv4
6147                 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6148                 case $machine in
6149                 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
6150                 *-*-solaris2*)
6151                         if test x$gnu_ld = xyes
6152                         then
6153                                 tm_file=sparc/sol2-64.h
6154                         else
6155                                 tm_file=sparc/sol2-sld-64.h
6156                         fi
6157                         tmake_file="$tmake_file sparc/t-sol2-64"
6158                         ;;
6159                 esac
6160                 case $machine in
6161                 *-*-solaris2.[0-4])
6162                         float_format=i128
6163                         ;;
6164                 *)
6165                         float_format=none
6166                         ;;
6167                 esac
6168                 if test x${enable_threads} = x; then
6169                     enable_threads=$have_pthread_h
6170                     if test x${enable_threads} = x; then
6171                         enable_threads=$have_thread_h
6172                     fi
6173                 fi
6174                 if test x${enable_threads} = xyes; then
6175                     if test x${have_pthread_h} = xyes; then
6176                         thread_file='posix'
6177                     else
6178                         thread_file='solaris'
6179                     fi
6180                 fi
6181                 ;;
6182         sparc-*-sunos4.0*)
6183                 tm_file=sparc/sunos4.h
6184                 tmake_file=sparc/t-sunos40
6185                 use_collect2=yes
6186                 ;;
6187         sparc-*-sunos4*)
6188                 tm_file=sparc/sunos4.h
6189                 tmake_file=sparc/t-sunos41
6190                 use_collect2=yes
6191                 if test x$gas = xyes; then
6192                         tm_file="${tm_file} sparc/sun4gas.h"
6193                 fi
6194                 ;;
6195         sparc-*-sunos3*)
6196                 tm_file=sparc/sun4o3.h
6197                 use_collect2=yes
6198                 ;;
6199         sparc-*-sysv4*)
6200                 tm_file=sparc/sysv4.h
6201                 xm_file="sparc/xm-sysv4.h"
6202                 xm_defines="USG POSIX"
6203                 tmake_file=t-svr4
6204                 xmake_file=sparc/x-sysv4
6205                 extra_parts="crtbegin.o crtend.o"
6206                 ;;
6207         sparc-*-vxsim*)
6208                 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6209                 xm_defines="USG POSIX"
6210                 tm_file=sparc/vxsim.h
6211                 tmake_file=sparc/t-vxsparc
6212                 xmake_file=sparc/x-sysv4
6213                 ;;
6214         sparclet-*-aout*)
6215                 tm_file="sparc/splet.h libgloss.h"
6216                 tmake_file=sparc/t-splet
6217                 ;;
6218         sparclite-*-coff*)
6219                 tm_file="sparc/litecoff.h libgloss.h"
6220                 tmake_file=sparc/t-sparclite
6221                 ;;
6222         sparclite-*-aout*)
6223                 tm_file="sparc/lite.h aoutos.h libgloss.h"
6224                 tmake_file=sparc/t-sparclite
6225                 ;;
6226         sparclite-*-elf*)
6227                 tm_file="sparc/liteelf.h"
6228                 tmake_file=sparc/t-sparclite
6229                 extra_parts="crtbegin.o crtend.o"
6230                 ;;
6231         sparc86x-*-aout*)
6232                 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
6233                 tmake_file=sparc/t-sp86x
6234                 ;;
6235         sparc86x-*-elf*)        
6236                 tm_file="sparc/sp86x-elf.h"
6237                 tmake_file=sparc/t-sp86x
6238                 extra_parts="crtbegin.o crtend.o"
6239                 ;;
6240         sparc64-*-aout*)
6241                 tmake_file=sparc/t-sp64
6242                 tm_file=sparc/sp64-aout.h
6243                 ;;
6244         sparc64-*-elf*)
6245                 tmake_file=sparc/t-sp64
6246                 tm_file=sparc/sp64-elf.h
6247                 extra_parts="crtbegin.o crtend.o"
6248                 ;;
6249         sparc64-*-linux*)               # 64-bit Sparc's running GNU/Linux
6250                 tmake_file="t-linux sparc/t-linux64"
6251                 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
6252                 tm_file=sparc/linux64.h
6253                 xmake_file=x-linux
6254                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6255                 gnu_ld=yes
6256                 if test x$enable_threads = xyes; then
6257                         thread_file='posix'
6258                 fi
6259                 float_format=sparc
6260                 ;;
6261 # This hasn't been upgraded to GCC 2.
6262 #       tahoe-harris-*)                 # Harris tahoe, using COFF.
6263 #               tm_file=tahoe/harris.h
6264 #               ;;
6265 #       tahoe-*-bsd*)                   # tahoe running BSD
6266 #               ;;
6267
6268         thumb*-*-*)
6269                 { echo "configure: error: 
6270 *** The Thumb targets have been depreciated.  The equivalent
6271 *** ARM based toolchain can now generated Thumb instructions
6272 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6273                 ;;
6274 # This hasn't been upgraded to GCC 2.
6275 #       tron-*-*)
6276 #               cpu_type=gmicro
6277 #               use_collect2=yes
6278 #               ;;
6279         v850-*-rtems*)
6280                 cpu_type=v850
6281                 tm_file="v850/rtems.h"
6282                 xm_file="v850/xm-v850.h"
6283                 tmake_file="v850/t-v850 t-rtems"
6284                 if test x$stabs = xyes
6285                 then
6286                         tm_file="${tm_file} dbx.h"
6287                 fi
6288                 use_collect2=no
6289                 ;;
6290         v850-*-*)
6291                 target_cpu_default="TARGET_CPU_generic"
6292                 cpu_type=v850
6293                 tm_file="v850/v850.h"
6294                 xm_file="v850/xm-v850.h"
6295                 tmake_file=v850/t-v850
6296                 if test x$stabs = xyes
6297                 then
6298                         tm_file="${tm_file} dbx.h"
6299                 fi
6300                 use_collect2=no
6301                 ;;
6302         vax-*-bsd*)                     # vaxen running BSD
6303                 use_collect2=yes
6304                 float_format=vax
6305                 ;;
6306         vax-*-sysv*)                    # vaxen running system V
6307                 tm_file="${tm_file} vax/vaxv.h"
6308                 xm_defines=USG
6309                 float_format=vax
6310                 ;;
6311         vax-*-netbsd*)
6312                 tm_file="${tm_file} netbsd.h vax/netbsd.h"
6313                 tmake_file=t-netbsd
6314                 float_format=vax
6315                 use_collect2=yes
6316                 ;;
6317         vax-*-openbsd*)
6318                 tmake_file="${tmake_file} vax/t-openbsd"
6319                 ;;
6320         vax-*-ultrix*)                  # vaxen running ultrix
6321                 tm_file="${tm_file} vax/ultrix.h"
6322                 use_collect2=yes
6323                 float_format=vax
6324                 ;;
6325         vax-*-vms*)                     # vaxen running VMS
6326                 xm_file=vax/xm-vms.h
6327                 tm_file=vax/vms.h
6328                 float_format=vax
6329                 ;;
6330         vax-*-*)                        # vax default entry
6331                 float_format=vax
6332                 ;;
6333         we32k-att-sysv*)
6334                 xm_file="${xm_file} xm-svr3"
6335                 use_collect2=yes
6336                 ;;
6337         *)
6338                 echo "Configuration $machine not supported" 1>&2
6339                 exit 1
6340                 ;;
6341         esac
6342
6343         case $machine in
6344         *-*-linux-gnu*)
6345                 ;; # Existing GNU/Linux systems do not use the GNU setup.
6346         *-*-gnu*)
6347                 # On the GNU system, the setup is just about the same on
6348                 # each different CPU.  The specific machines that GNU
6349                 # supports are matched above and just set $cpu_type.
6350                 xm_file="xm-gnu.h ${xm_file}"
6351                 tm_file=${cpu_type}/gnu.h
6352                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6353                 # GNU always uses ELF.
6354                 elf=yes
6355                 # GNU tools are the only tools.
6356                 gnu_ld=yes
6357                 gas=yes
6358                 xmake_file=x-linux      # These details are the same as Linux.
6359                 tmake_file=t-gnu        # These are not.
6360                 ;;
6361         *-*-sysv4*)
6362                 xmake_try_sysv=x-sysv
6363                 install_headers_dir=install-headers-cpio
6364                 ;;
6365         *-*-sysv*)
6366                 install_headers_dir=install-headers-cpio
6367                 ;;
6368         esac
6369
6370         # Distinguish i[34567]86
6371         # Also, do not run mips-tfile on MIPS if using gas.
6372         # Process --with-cpu= for PowerPC/rs6000
6373         target_cpu_default2=
6374         case $machine in
6375         i486-*-*)
6376                 target_cpu_default2=1
6377                 ;;
6378         i586-*-*)
6379                 case $target_alias in
6380                         k6-*)
6381                                 target_cpu_default2=4
6382                                 ;;
6383                         *)
6384                                 target_cpu_default2=2
6385                                 ;;
6386                 esac
6387                 ;;
6388         i686-*-* | i786-*-*)
6389                 target_cpu_default2=3
6390                 ;;
6391         alpha*-*-*)
6392                 case $machine in
6393                         alphaev6[78]*)
6394                                 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6395                                 ;;
6396                         alphaev6*)
6397                                 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6398                                 ;;
6399                         alphapca56*)
6400                                 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6401                                 ;;
6402                         alphaev56*)
6403                                 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
6404                                 ;;
6405                         alphaev5*)
6406                                 target_cpu_default2="MASK_CPU_EV5"
6407                                 ;;
6408                 esac
6409                                 
6410                 if test x$gas = xyes
6411                 then
6412                         if test "$target_cpu_default2" = ""
6413                         then
6414                                 target_cpu_default2="MASK_GAS"
6415                         else
6416                                 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
6417                         fi
6418                 fi
6419                 ;;
6420         arm*-*-*)
6421                 case "x$with_cpu" in
6422                         x)
6423                                 # The most generic
6424                                 target_cpu_default2="TARGET_CPU_generic"
6425                                 ;;
6426
6427                         # Distinguish cores, and major variants
6428                         # arm7m doesn't exist, but D & I don't affect code
6429                         xarm[23678] | xarm250 | xarm[67][01]0 \
6430                         | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6431                         | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6432                         | xstrongarm | xstrongarm110 | xstrongarm1100)
6433                                 target_cpu_default2="TARGET_CPU_$with_cpu"
6434                                 ;;
6435
6436                         xyes | xno)
6437                                 echo "--with-cpu must be passed a value" 1>&2
6438                                 exit 1
6439                                 ;;
6440
6441                         *)
6442                                 if test x$pass2done = xyes
6443                                 then
6444                                         echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6445                                         exit 1
6446                                 fi
6447                                 ;;
6448                 esac
6449                 ;;
6450
6451         mips*-*-ecoff* | mips*-*-elf*)
6452                 if test x$gas = xyes
6453                 then
6454                         if test x$gnu_ld = xyes
6455                         then
6456                                 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
6457                         else
6458                                 target_cpu_default2="MASK_GAS"
6459                         fi
6460                 fi
6461                 ;;
6462         mips*-*-*)
6463                 if test x$gas = xyes
6464                 then
6465                         target_cpu_default2="MASK_GAS"
6466                 fi
6467                 ;;
6468         powerpc*-*-* | rs6000-*-*)
6469                 case "x$with_cpu" in
6470                         x)
6471                                 ;;
6472
6473                         xcommon | xpower | xpower2 | xpowerpc | xrios \
6474                           | xrios1 | xrios2 | xrsc | xrsc1 \
6475                           | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6476                           | xec603e | x740 | x750 | x401 \
6477                           | x403 | x505 | x801 | x821 | x823 | x860)
6478                                 target_cpu_default2="\"$with_cpu\""
6479                                 ;;
6480
6481                         xyes | xno)
6482                                 echo "--with-cpu must be passed a value" 1>&2
6483                                 exit 1
6484                                 ;;
6485
6486                         *)
6487                                 if test x$pass2done = xyes
6488                                 then
6489                                         echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6490                                         exit 1
6491                                 fi
6492                                 ;;
6493                 esac
6494                 ;;
6495         sparc*-*-*)
6496                 case ".$with_cpu" in
6497                         .)
6498                                 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
6499                                 ;;
6500                         .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
6501                                 target_cpu_default2="TARGET_CPU_$with_cpu"
6502                                 ;;
6503                         *)
6504                                 if test x$pass2done = xyes
6505                                 then
6506                                         echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6507                                         exit 1
6508                                 fi
6509                                 ;;
6510                 esac
6511                 ;;
6512         esac
6513
6514         if test "$target_cpu_default2" != ""
6515         then
6516                 if test "$target_cpu_default" != ""
6517                 then
6518                         target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
6519                 else
6520                         target_cpu_default=$target_cpu_default2
6521                 fi
6522         fi
6523
6524         # No need for collect2 if we have the GNU linker.
6525         # Actually, there is now; GNU ld doesn't handle the EH info or
6526         # collecting for shared libraries.
6527         #case x$gnu_ld in
6528         #xyes)
6529         #       use_collect2=
6530         #       ;;
6531         #esac
6532
6533 # Save data on machine being used to compile GCC in build_xm_file.
6534 # Save data on host machine in vars host_xm_file and host_xmake_file.
6535         if test x$pass1done = x
6536         then
6537                 if test x"$xm_file" = x
6538                 then build_xm_file=$cpu_type/xm-$cpu_type.h
6539                 else build_xm_file=$xm_file
6540                 fi
6541                 build_xm_defines=$xm_defines
6542                 build_install_headers_dir=$install_headers_dir
6543                 build_exeext=$exeext
6544                 pass1done=yes
6545         else
6546                 if test x$pass2done = x
6547                 then
6548                         if test x"$xm_file" = x
6549                         then host_xm_file=$cpu_type/xm-$cpu_type.h
6550                         else host_xm_file=$xm_file
6551                         fi
6552                         host_xm_defines=$xm_defines
6553                         if test x"$xmake_file" = x
6554                         then xmake_file=$cpu_type/x-$cpu_type
6555                         fi
6556                         host_xmake_file="$xmake_file"
6557                         host_truncate_target=$truncate_target
6558                         host_extra_gcc_objs=$extra_gcc_objs
6559                         host_extra_objs=$extra_host_objs
6560                         host_exeext=$exeext
6561                         pass2done=yes
6562                 fi
6563         fi
6564 done
6565
6566 extra_objs="${host_extra_objs} ${extra_objs}"
6567
6568 # Default the target-machine variables that were not explicitly set.
6569 if test x"$tm_file" = x
6570 then tm_file=$cpu_type/$cpu_type.h; fi
6571
6572 if test x$extra_headers = x
6573 then extra_headers=; fi
6574
6575 if test x"$xm_file" = x
6576 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6577
6578 if test x$md_file = x
6579 then md_file=$cpu_type/$cpu_type.md; fi
6580
6581 if test x$out_file = x
6582 then out_file=$cpu_type/$cpu_type.c; fi
6583
6584 if test x"$tmake_file" = x
6585 then tmake_file=$cpu_type/t-$cpu_type
6586 fi
6587
6588 if test x"$dwarf2" = xyes
6589 then tm_file="$tm_file tm-dwarf2.h"
6590 fi
6591
6592 if test x$float_format = x
6593 then float_format=i64
6594 fi
6595
6596 if test $float_format = none
6597 then float_h_file=Makefile.in
6598 else float_h_file=float-$float_format.h
6599 fi
6600
6601 # Handle cpp installation.
6602 if test x$enable_cpp != xno
6603 then
6604   tmake_file="$tmake_file t-install-cpp"
6605 fi
6606
6607 # Say what files are being used for the output code and MD file.
6608 echo "Using \`$srcdir/config/$out_file' to output insns."
6609 echo "Using \`$srcdir/config/$md_file' as machine description file."
6610
6611 count=a
6612 for f in $tm_file; do
6613         count=${count}x
6614 done
6615 if test $count = ax; then
6616         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6617 else
6618         echo "Using the following target machine macro files:"
6619         for f in $tm_file; do
6620                 echo "  $srcdir/config/$f"
6621         done
6622 fi
6623
6624 count=a
6625 for f in $host_xm_file; do
6626         count=${count}x
6627 done
6628 if test $count = ax; then
6629         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6630 else
6631         echo "Using the following host machine macro files:"
6632         for f in $host_xm_file; do
6633                 echo "  $srcdir/config/$f"
6634         done
6635 fi
6636
6637 if test "$host_xm_file" != "$build_xm_file"; then
6638         count=a
6639         for f in $build_xm_file; do
6640                 count=${count}x
6641         done
6642         if test $count = ax; then
6643                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6644         else
6645                 echo "Using the following build machine macro files:"
6646                 for f in $build_xm_file; do
6647                         echo "  $srcdir/config/$f"
6648                 done
6649         fi
6650 fi
6651
6652 if test x$thread_file = x; then
6653         if test x$target_thread_file != x; then
6654                 thread_file=$target_thread_file
6655         else
6656                 thread_file='single'
6657         fi
6658 fi
6659
6660 # Set up the header files.
6661 # $links is the list of header files to create.
6662 # $vars is the list of shell variables with file names to include.
6663 # auto-host.h is the file containing items generated by autoconf and is
6664 # the first file included by config.h.
6665 null_defines=
6666 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6667
6668 # If host=build, it is correct to have hconfig include auto-host.h
6669 # as well.  If host!=build, we are in error and need to do more 
6670 # work to find out the build config parameters.
6671 if test x$host = x$build
6672 then
6673         build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6674 else
6675         # We create a subdir, then run autoconf in the subdir.
6676         # To prevent recursion we set host and build for the new
6677         # invocation of configure to the build for this invocation
6678         # of configure. 
6679         tempdir=build.$$
6680         rm -rf $tempdir
6681         mkdir $tempdir
6682         cd $tempdir
6683         case ${srcdir} in
6684         /*) realsrcdir=${srcdir};;
6685         *) realsrcdir=../${srcdir};;
6686         esac
6687         CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6688                 --target=$target --host=$build --build=$build
6689
6690         # We just finished tests for the build machine, so rename
6691         # the file auto-build.h in the gcc directory.
6692         mv auto-host.h ../auto-build.h
6693         cd ..
6694         rm -rf $tempdir
6695         build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6696 fi
6697
6698 xm_file="gansidecl.h ${xm_file}"
6699 tm_file="gansidecl.h ${tm_file}"
6700
6701 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6702 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
6703 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6704
6705 rm -f config.bak
6706 if test -f config.status; then mv -f config.status config.bak; fi
6707
6708 # Make the links.
6709 while test -n "$vars"
6710 do
6711         set $vars; var=$1; shift; vars=$*
6712         set $links; link=$1; shift; links=$*
6713         set $defines; define=$1; shift; defines=$*
6714
6715         rm -f $link
6716         # Make sure the file is created, even if it is empty.
6717         echo >$link
6718
6719         # Define TARGET_CPU_DEFAULT if the system wants one.
6720         # This substitutes for lots of *.h files.
6721         if test "$target_cpu_default" != "" -a $link = tm.h
6722         then
6723                 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6724         fi
6725
6726         for file in `eval echo '$'$var`; do
6727                 case $file in
6728                 auto-config.h)
6729                         ;;
6730                 *)
6731                         echo '#ifdef IN_GCC' >>$link
6732                         ;;
6733                 esac
6734                 echo "#include \"$file\"" >>$link
6735                 case $file in
6736                 auto-config.h)
6737                         ;;
6738                 *)
6739                         echo '#endif' >>$link
6740                         ;;
6741                 esac
6742         done
6743
6744         for def in `eval echo '$'$define`; do
6745                 echo "#ifndef $def" >>$link
6746                 echo "#define $def" >>$link
6747                 echo "#endif" >>$link
6748         done
6749 done
6750
6751 # Truncate the target if necessary
6752 if test x$host_truncate_target != x; then
6753         target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6754 fi
6755
6756 # Get the version trigger filename from the toplevel
6757 if test "${with_gcc_version_trigger+set}" = set; then
6758         gcc_version_trigger=$with_gcc_version_trigger
6759 else
6760         gcc_version_trigger=${srcdir}/version.c
6761 fi
6762 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6763
6764 # Internationalization
6765 PACKAGE=gcc
6766 VERSION="$gcc_version"
6767 cat >> confdefs.h <<EOF
6768 #define PACKAGE "$PACKAGE"
6769 EOF
6770
6771 cat >> confdefs.h <<EOF
6772 #define VERSION "$VERSION"
6773 EOF
6774
6775
6776
6777
6778 ALL_LINGUAS="en_UK"
6779
6780 # NLS support is still experimental, so disable it by default for now.
6781 # Check whether --enable-nls or --disable-nls was given.
6782 if test "${enable_nls+set}" = set; then
6783   enableval="$enable_nls"
6784   :
6785 else
6786   enable_nls=no
6787 fi
6788
6789
6790
6791         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6792 echo "configure:6793: checking for strerror in -lcposix" >&5
6793 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6795   echo $ac_n "(cached) $ac_c" 1>&6
6796 else
6797   ac_save_LIBS="$LIBS"
6798 LIBS="-lcposix  $LIBS"
6799 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6802 /* Override any gcc2 internal prototype to avoid an error.  */
6803 /* We use char because int might match the return type of a gcc2
6804     builtin and then its argument prototype would still apply.  */
6805 char strerror();
6806
6807 int main() {
6808 strerror()
6809 ; return 0; }
6810 EOF
6811 if { (eval echo configure:6812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6812   rm -rf conftest*
6813   eval "ac_cv_lib_$ac_lib_var=yes"
6814 else
6815   echo "configure: failed program was:" >&5
6816   cat conftest.$ac_ext >&5
6817   rm -rf conftest*
6818   eval "ac_cv_lib_$ac_lib_var=no"
6819 fi
6820 rm -f conftest*
6821 LIBS="$ac_save_LIBS"
6822
6823 fi
6824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6825   echo "$ac_t""yes" 1>&6
6826   LIBS="$LIBS -lcposix"
6827 else
6828   echo "$ac_t""no" 1>&6
6829 fi
6830
6831   
6832
6833 echo $ac_n "checking for working const""... $ac_c" 1>&6
6834 echo "configure:6835: checking for working const" >&5
6835 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6836   echo $ac_n "(cached) $ac_c" 1>&6
6837 else
6838   cat > conftest.$ac_ext <<EOF
6839 #line 6840 "configure"
6840 #include "confdefs.h"
6841
6842 int main() {
6843
6844 /* Ultrix mips cc rejects this.  */
6845 typedef int charset[2]; const charset x;
6846 /* SunOS 4.1.1 cc rejects this.  */
6847 char const *const *ccp;
6848 char **p;
6849 /* NEC SVR4.0.2 mips cc rejects this.  */
6850 struct point {int x, y;};
6851 static struct point const zero = {0,0};
6852 /* AIX XL C 1.02.0.0 rejects this.
6853    It does not let you subtract one const X* pointer from another in an arm
6854    of an if-expression whose if-part is not a constant expression */
6855 const char *g = "string";
6856 ccp = &g + (g ? g-g : 0);
6857 /* HPUX 7.0 cc rejects these. */
6858 ++ccp;
6859 p = (char**) ccp;
6860 ccp = (char const *const *) p;
6861 { /* SCO 3.2v4 cc rejects this.  */
6862   char *t;
6863   char const *s = 0 ? (char *) 0 : (char const *) 0;
6864
6865   *t++ = 0;
6866 }
6867 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6868   int x[] = {25, 17};
6869   const int *foo = &x[0];
6870   ++foo;
6871 }
6872 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6873   typedef const int *iptr;
6874   iptr p = 0;
6875   ++p;
6876 }
6877 { /* AIX XL C 1.02.0.0 rejects this saying
6878      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6879   struct s { int j; const int *ap[3]; };
6880   struct s *b; b->j = 5;
6881 }
6882 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6883   const int foo = 10;
6884 }
6885
6886 ; return 0; }
6887 EOF
6888 if { (eval echo configure:6889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6889   rm -rf conftest*
6890   ac_cv_c_const=yes
6891 else
6892   echo "configure: failed program was:" >&5
6893   cat conftest.$ac_ext >&5
6894   rm -rf conftest*
6895   ac_cv_c_const=no
6896 fi
6897 rm -f conftest*
6898 fi
6899
6900 echo "$ac_t""$ac_cv_c_const" 1>&6
6901 if test $ac_cv_c_const = no; then
6902   cat >> confdefs.h <<\EOF
6903 #define const 
6904 EOF
6905
6906 fi
6907
6908 echo $ac_n "checking for inline""... $ac_c" 1>&6
6909 echo "configure:6910: checking for inline" >&5
6910 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6911   echo $ac_n "(cached) $ac_c" 1>&6
6912 else
6913   ac_cv_c_inline=no
6914 for ac_kw in inline __inline__ __inline; do
6915   cat > conftest.$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6918
6919 int main() {
6920 } $ac_kw foo() {
6921 ; return 0; }
6922 EOF
6923 if { (eval echo configure:6924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6924   rm -rf conftest*
6925   ac_cv_c_inline=$ac_kw; break
6926 else
6927   echo "configure: failed program was:" >&5
6928   cat conftest.$ac_ext >&5
6929 fi
6930 rm -f conftest*
6931 done
6932
6933 fi
6934
6935 echo "$ac_t""$ac_cv_c_inline" 1>&6
6936 case "$ac_cv_c_inline" in
6937   inline | yes) ;;
6938   no) cat >> confdefs.h <<\EOF
6939 #define inline 
6940 EOF
6941  ;;
6942   *)  cat >> confdefs.h <<EOF
6943 #define inline $ac_cv_c_inline
6944 EOF
6945  ;;
6946 esac
6947
6948 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6949 echo "configure:6950: checking for off_t" >&5
6950 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6951   echo $ac_n "(cached) $ac_c" 1>&6
6952 else
6953   cat > conftest.$ac_ext <<EOF
6954 #line 6955 "configure"
6955 #include "confdefs.h"
6956 #include <sys/types.h>
6957 #if STDC_HEADERS
6958 #include <stdlib.h>
6959 #include <stddef.h>
6960 #endif
6961 EOF
6962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6963   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6964   rm -rf conftest*
6965   ac_cv_type_off_t=yes
6966 else
6967   rm -rf conftest*
6968   ac_cv_type_off_t=no
6969 fi
6970 rm -f conftest*
6971
6972 fi
6973 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6974 if test $ac_cv_type_off_t = no; then
6975   cat >> confdefs.h <<\EOF
6976 #define off_t long
6977 EOF
6978
6979 fi
6980
6981 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6982 echo "configure:6983: checking for size_t" >&5
6983 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6984   echo $ac_n "(cached) $ac_c" 1>&6
6985 else
6986   cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6989 #include <sys/types.h>
6990 #if STDC_HEADERS
6991 #include <stdlib.h>
6992 #include <stddef.h>
6993 #endif
6994 EOF
6995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6996   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6997   rm -rf conftest*
6998   ac_cv_type_size_t=yes
6999 else
7000   rm -rf conftest*
7001   ac_cv_type_size_t=no
7002 fi
7003 rm -f conftest*
7004
7005 fi
7006 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7007 if test $ac_cv_type_size_t = no; then
7008   cat >> confdefs.h <<\EOF
7009 #define size_t unsigned
7010 EOF
7011
7012 fi
7013
7014 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7015 # for constant arguments.  Useless!
7016 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7017 echo "configure:7018: checking for working alloca.h" >&5
7018 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7019   echo $ac_n "(cached) $ac_c" 1>&6
7020 else
7021   cat > conftest.$ac_ext <<EOF
7022 #line 7023 "configure"
7023 #include "confdefs.h"
7024 #include <alloca.h>
7025 int main() {
7026 char *p = alloca(2 * sizeof(int));
7027 ; return 0; }
7028 EOF
7029 if { (eval echo configure:7030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7030   rm -rf conftest*
7031   ac_cv_header_alloca_h=yes
7032 else
7033   echo "configure: failed program was:" >&5
7034   cat conftest.$ac_ext >&5
7035   rm -rf conftest*
7036   ac_cv_header_alloca_h=no
7037 fi
7038 rm -f conftest*
7039 fi
7040
7041 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7042 if test $ac_cv_header_alloca_h = yes; then
7043   cat >> confdefs.h <<\EOF
7044 #define HAVE_ALLOCA_H 1
7045 EOF
7046
7047 fi
7048
7049 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7050 echo "configure:7051: checking for alloca" >&5
7051 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7052   echo $ac_n "(cached) $ac_c" 1>&6
7053 else
7054   cat > conftest.$ac_ext <<EOF
7055 #line 7056 "configure"
7056 #include "confdefs.h"
7057
7058 #ifdef __GNUC__
7059 # define alloca __builtin_alloca
7060 #else
7061 # ifdef _MSC_VER
7062 #  include <malloc.h>
7063 #  define alloca _alloca
7064 # else
7065 #  if HAVE_ALLOCA_H
7066 #   include <alloca.h>
7067 #  else
7068 #   ifdef _AIX
7069  #pragma alloca
7070 #   else
7071 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7072 char *alloca ();
7073 #    endif
7074 #   endif
7075 #  endif
7076 # endif
7077 #endif
7078
7079 int main() {
7080 char *p = (char *) alloca(1);
7081 ; return 0; }
7082 EOF
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7084   rm -rf conftest*
7085   ac_cv_func_alloca_works=yes
7086 else
7087   echo "configure: failed program was:" >&5
7088   cat conftest.$ac_ext >&5
7089   rm -rf conftest*
7090   ac_cv_func_alloca_works=no
7091 fi
7092 rm -f conftest*
7093 fi
7094
7095 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7096 if test $ac_cv_func_alloca_works = yes; then
7097   cat >> confdefs.h <<\EOF
7098 #define HAVE_ALLOCA 1
7099 EOF
7100
7101 fi
7102
7103 if test $ac_cv_func_alloca_works = no; then
7104   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7105   # that cause trouble.  Some versions do not even contain alloca or
7106   # contain a buggy version.  If you still want to use their alloca,
7107   # use ar to extract alloca.o from them instead of compiling alloca.c.
7108   ALLOCA=alloca.${ac_objext}
7109   cat >> confdefs.h <<\EOF
7110 #define C_ALLOCA 1
7111 EOF
7112
7113
7114 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7115 echo "configure:7116: checking whether alloca needs Cray hooks" >&5
7116 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7117   echo $ac_n "(cached) $ac_c" 1>&6
7118 else
7119   cat > conftest.$ac_ext <<EOF
7120 #line 7121 "configure"
7121 #include "confdefs.h"
7122 #if defined(CRAY) && ! defined(CRAY2)
7123 webecray
7124 #else
7125 wenotbecray
7126 #endif
7127
7128 EOF
7129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7130   egrep "webecray" >/dev/null 2>&1; then
7131   rm -rf conftest*
7132   ac_cv_os_cray=yes
7133 else
7134   rm -rf conftest*
7135   ac_cv_os_cray=no
7136 fi
7137 rm -f conftest*
7138
7139 fi
7140
7141 echo "$ac_t""$ac_cv_os_cray" 1>&6
7142 if test $ac_cv_os_cray = yes; then
7143 for ac_func in _getb67 GETB67 getb67; do
7144   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7145 echo "configure:7146: checking for $ac_func" >&5
7146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7147   echo $ac_n "(cached) $ac_c" 1>&6
7148 else
7149   cat > conftest.$ac_ext <<EOF
7150 #line 7151 "configure"
7151 #include "confdefs.h"
7152 /* System header to define __stub macros and hopefully few prototypes,
7153     which can conflict with char $ac_func(); below.  */
7154 #include <assert.h>
7155 /* Override any gcc2 internal prototype to avoid an error.  */
7156 /* We use char because int might match the return type of a gcc2
7157     builtin and then its argument prototype would still apply.  */
7158 char $ac_func();
7159 char (*f)();
7160
7161 int main() {
7162
7163 /* The GNU C library defines this for functions which it implements
7164     to always fail with ENOSYS.  Some functions are actually named
7165     something starting with __ and the normal name is an alias.  */
7166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7167 choke me
7168 #else
7169 f = $ac_func;
7170 #endif
7171
7172 ; return 0; }
7173 EOF
7174 if { (eval echo configure:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7175   rm -rf conftest*
7176   eval "ac_cv_func_$ac_func=yes"
7177 else
7178   echo "configure: failed program was:" >&5
7179   cat conftest.$ac_ext >&5
7180   rm -rf conftest*
7181   eval "ac_cv_func_$ac_func=no"
7182 fi
7183 rm -f conftest*
7184 fi
7185
7186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7187   echo "$ac_t""yes" 1>&6
7188   cat >> confdefs.h <<EOF
7189 #define CRAY_STACKSEG_END $ac_func
7190 EOF
7191
7192   break
7193 else
7194   echo "$ac_t""no" 1>&6
7195 fi
7196
7197 done
7198 fi
7199
7200 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7201 echo "configure:7202: checking stack direction for C alloca" >&5
7202 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7203   echo $ac_n "(cached) $ac_c" 1>&6
7204 else
7205   if test "$cross_compiling" = yes; then
7206   ac_cv_c_stack_direction=0
7207 else
7208   cat > conftest.$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7211 find_stack_direction ()
7212 {
7213   static char *addr = 0;
7214   auto char dummy;
7215   if (addr == 0)
7216     {
7217       addr = &dummy;
7218       return find_stack_direction ();
7219     }
7220   else
7221     return (&dummy > addr) ? 1 : -1;
7222 }
7223 main ()
7224 {
7225   exit (find_stack_direction() < 0);
7226 }
7227 EOF
7228 if { (eval echo configure:7229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7229 then
7230   ac_cv_c_stack_direction=1
7231 else
7232   echo "configure: failed program was:" >&5
7233   cat conftest.$ac_ext >&5
7234   rm -fr conftest*
7235   ac_cv_c_stack_direction=-1
7236 fi
7237 rm -fr conftest*
7238 fi
7239
7240 fi
7241
7242 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7243 cat >> confdefs.h <<EOF
7244 #define STACK_DIRECTION $ac_cv_c_stack_direction
7245 EOF
7246
7247 fi
7248
7249                            
7250    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7251 unistd.h sys/param.h
7252 do
7253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7255 echo "configure:7256: checking for $ac_hdr" >&5
7256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7257   echo $ac_n "(cached) $ac_c" 1>&6
7258 else
7259   cat > conftest.$ac_ext <<EOF
7260 #line 7261 "configure"
7261 #include "confdefs.h"
7262 #include <$ac_hdr>
7263 EOF
7264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7265 { (eval echo configure:7266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7267 if test -z "$ac_err"; then
7268   rm -rf conftest*
7269   eval "ac_cv_header_$ac_safe=yes"
7270 else
7271   echo "$ac_err" >&5
7272   echo "configure: failed program was:" >&5
7273   cat conftest.$ac_ext >&5
7274   rm -rf conftest*
7275   eval "ac_cv_header_$ac_safe=no"
7276 fi
7277 rm -f conftest*
7278 fi
7279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7280   echo "$ac_t""yes" 1>&6
7281     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7282   cat >> confdefs.h <<EOF
7283 #define $ac_tr_hdr 1
7284 EOF
7285  
7286 else
7287   echo "$ac_t""no" 1>&6
7288 fi
7289 done
7290
7291    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7292 strdup __argz_count __argz_stringify __argz_next
7293 do
7294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7295 echo "configure:7296: checking for $ac_func" >&5
7296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7297   echo $ac_n "(cached) $ac_c" 1>&6
7298 else
7299   cat > conftest.$ac_ext <<EOF
7300 #line 7301 "configure"
7301 #include "confdefs.h"
7302 /* System header to define __stub macros and hopefully few prototypes,
7303     which can conflict with char $ac_func(); below.  */
7304 #include <assert.h>
7305 /* Override any gcc2 internal prototype to avoid an error.  */
7306 /* We use char because int might match the return type of a gcc2
7307     builtin and then its argument prototype would still apply.  */
7308 char $ac_func();
7309 char (*f)();
7310
7311 int main() {
7312
7313 /* The GNU C library defines this for functions which it implements
7314     to always fail with ENOSYS.  Some functions are actually named
7315     something starting with __ and the normal name is an alias.  */
7316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7317 choke me
7318 #else
7319 f = $ac_func;
7320 #endif
7321
7322 ; return 0; }
7323 EOF
7324 if { (eval echo configure:7325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7325   rm -rf conftest*
7326   eval "ac_cv_func_$ac_func=yes"
7327 else
7328   echo "configure: failed program was:" >&5
7329   cat conftest.$ac_ext >&5
7330   rm -rf conftest*
7331   eval "ac_cv_func_$ac_func=no"
7332 fi
7333 rm -f conftest*
7334 fi
7335
7336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7337   echo "$ac_t""yes" 1>&6
7338     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7339   cat >> confdefs.h <<EOF
7340 #define $ac_tr_func 1
7341 EOF
7342  
7343 else
7344   echo "$ac_t""no" 1>&6
7345 fi
7346 done
7347
7348
7349    if test "${ac_cv_func_stpcpy+set}" != "set"; then
7350      for ac_func in stpcpy
7351 do
7352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7353 echo "configure:7354: checking for $ac_func" >&5
7354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7355   echo $ac_n "(cached) $ac_c" 1>&6
7356 else
7357   cat > conftest.$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 /* System header to define __stub macros and hopefully few prototypes,
7361     which can conflict with char $ac_func(); below.  */
7362 #include <assert.h>
7363 /* Override any gcc2 internal prototype to avoid an error.  */
7364 /* We use char because int might match the return type of a gcc2
7365     builtin and then its argument prototype would still apply.  */
7366 char $ac_func();
7367 char (*f)();
7368
7369 int main() {
7370
7371 /* The GNU C library defines this for functions which it implements
7372     to always fail with ENOSYS.  Some functions are actually named
7373     something starting with __ and the normal name is an alias.  */
7374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7375 choke me
7376 #else
7377 f = $ac_func;
7378 #endif
7379
7380 ; return 0; }
7381 EOF
7382 if { (eval echo configure:7383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7383   rm -rf conftest*
7384   eval "ac_cv_func_$ac_func=yes"
7385 else
7386   echo "configure: failed program was:" >&5
7387   cat conftest.$ac_ext >&5
7388   rm -rf conftest*
7389   eval "ac_cv_func_$ac_func=no"
7390 fi
7391 rm -f conftest*
7392 fi
7393
7394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7395   echo "$ac_t""yes" 1>&6
7396     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7397   cat >> confdefs.h <<EOF
7398 #define $ac_tr_func 1
7399 EOF
7400  
7401 else
7402   echo "$ac_t""no" 1>&6
7403 fi
7404 done
7405
7406    fi
7407    if test "${ac_cv_func_stpcpy}" = "yes"; then
7408      cat >> confdefs.h <<\EOF
7409 #define HAVE_STPCPY 1
7410 EOF
7411
7412    fi
7413
7414    if test $ac_cv_header_locale_h = yes; then
7415     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7416 echo "configure:7417: checking for LC_MESSAGES" >&5
7417 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7418   echo $ac_n "(cached) $ac_c" 1>&6
7419 else
7420   cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7423 #include <locale.h>
7424 int main() {
7425 return LC_MESSAGES
7426 ; return 0; }
7427 EOF
7428 if { (eval echo configure:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7429   rm -rf conftest*
7430   am_cv_val_LC_MESSAGES=yes
7431 else
7432   echo "configure: failed program was:" >&5
7433   cat conftest.$ac_ext >&5
7434   rm -rf conftest*
7435   am_cv_val_LC_MESSAGES=no
7436 fi
7437 rm -f conftest*
7438 fi
7439
7440 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7441     if test $am_cv_val_LC_MESSAGES = yes; then
7442       cat >> confdefs.h <<\EOF
7443 #define HAVE_LC_MESSAGES 1
7444 EOF
7445
7446     fi
7447   fi
7448    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7449 echo "configure:7450: checking whether NLS is requested" >&5
7450         # Check whether --enable-nls or --disable-nls was given.
7451 if test "${enable_nls+set}" = set; then
7452   enableval="$enable_nls"
7453   USE_NLS=$enableval
7454 else
7455   USE_NLS=yes
7456 fi
7457
7458     echo "$ac_t""$USE_NLS" 1>&6
7459     
7460
7461     USE_INCLUDED_LIBINTL=no
7462
7463         if test "$USE_NLS" = "yes"; then
7464       cat >> confdefs.h <<\EOF
7465 #define ENABLE_NLS 1
7466 EOF
7467
7468       echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7469 echo "configure:7470: checking whether included gettext is requested" >&5
7470       # Check whether --with-included-gettext or --without-included-gettext was given.
7471 if test "${with_included_gettext+set}" = set; then
7472   withval="$with_included_gettext"
7473   nls_cv_force_use_gnu_gettext=$withval
7474 else
7475   nls_cv_force_use_gnu_gettext=no
7476 fi
7477
7478       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7479
7480       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7481       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7482                                         nls_cv_header_intl=
7483         nls_cv_header_libgt=
7484         CATOBJEXT=NONE
7485
7486         ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7487 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7488 echo "configure:7489: checking for libintl.h" >&5
7489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7490   echo $ac_n "(cached) $ac_c" 1>&6
7491 else
7492   cat > conftest.$ac_ext <<EOF
7493 #line 7494 "configure"
7494 #include "confdefs.h"
7495 #include <libintl.h>
7496 EOF
7497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7498 { (eval echo configure:7499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7500 if test -z "$ac_err"; then
7501   rm -rf conftest*
7502   eval "ac_cv_header_$ac_safe=yes"
7503 else
7504   echo "$ac_err" >&5
7505   echo "configure: failed program was:" >&5
7506   cat conftest.$ac_ext >&5
7507   rm -rf conftest*
7508   eval "ac_cv_header_$ac_safe=no"
7509 fi
7510 rm -f conftest*
7511 fi
7512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7513   echo "$ac_t""yes" 1>&6
7514   echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7515 echo "configure:7516: checking for gettext in libc" >&5
7516 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7517   echo $ac_n "(cached) $ac_c" 1>&6
7518 else
7519   cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7522 #include <libintl.h>
7523 int main() {
7524 return (int) gettext ("")
7525 ; return 0; }
7526 EOF
7527 if { (eval echo configure:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7528   rm -rf conftest*
7529   gt_cv_func_gettext_libc=yes
7530 else
7531   echo "configure: failed program was:" >&5
7532   cat conftest.$ac_ext >&5
7533   rm -rf conftest*
7534   gt_cv_func_gettext_libc=no
7535 fi
7536 rm -f conftest*
7537 fi
7538
7539 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7540
7541            if test "$gt_cv_func_gettext_libc" != "yes"; then
7542              echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7543 echo "configure:7544: checking for bindtextdomain in -lintl" >&5
7544 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7546   echo $ac_n "(cached) $ac_c" 1>&6
7547 else
7548   ac_save_LIBS="$LIBS"
7549 LIBS="-lintl  $LIBS"
7550 cat > conftest.$ac_ext <<EOF
7551 #line 7552 "configure"
7552 #include "confdefs.h"
7553 /* Override any gcc2 internal prototype to avoid an error.  */
7554 /* We use char because int might match the return type of a gcc2
7555     builtin and then its argument prototype would still apply.  */
7556 char bindtextdomain();
7557
7558 int main() {
7559 bindtextdomain()
7560 ; return 0; }
7561 EOF
7562 if { (eval echo configure:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7563   rm -rf conftest*
7564   eval "ac_cv_lib_$ac_lib_var=yes"
7565 else
7566   echo "configure: failed program was:" >&5
7567   cat conftest.$ac_ext >&5
7568   rm -rf conftest*
7569   eval "ac_cv_lib_$ac_lib_var=no"
7570 fi
7571 rm -f conftest*
7572 LIBS="$ac_save_LIBS"
7573
7574 fi
7575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7576   echo "$ac_t""yes" 1>&6
7577   echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7578 echo "configure:7579: checking for gettext in libintl" >&5
7579 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7580   echo $ac_n "(cached) $ac_c" 1>&6
7581 else
7582   echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7583 echo "configure:7584: checking for gettext in -lintl" >&5
7584 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7586   echo $ac_n "(cached) $ac_c" 1>&6
7587 else
7588   ac_save_LIBS="$LIBS"
7589 LIBS="-lintl  $LIBS"
7590 cat > conftest.$ac_ext <<EOF
7591 #line 7592 "configure"
7592 #include "confdefs.h"
7593 /* Override any gcc2 internal prototype to avoid an error.  */
7594 /* We use char because int might match the return type of a gcc2
7595     builtin and then its argument prototype would still apply.  */
7596 char gettext();
7597
7598 int main() {
7599 gettext()
7600 ; return 0; }
7601 EOF
7602 if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7603   rm -rf conftest*
7604   eval "ac_cv_lib_$ac_lib_var=yes"
7605 else
7606   echo "configure: failed program was:" >&5
7607   cat conftest.$ac_ext >&5
7608   rm -rf conftest*
7609   eval "ac_cv_lib_$ac_lib_var=no"
7610 fi
7611 rm -f conftest*
7612 LIBS="$ac_save_LIBS"
7613
7614 fi
7615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7616   echo "$ac_t""yes" 1>&6
7617   gt_cv_func_gettext_libintl=yes
7618 else
7619   echo "$ac_t""no" 1>&6
7620 gt_cv_func_gettext_libintl=no
7621 fi
7622
7623 fi
7624
7625 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7626 else
7627   echo "$ac_t""no" 1>&6
7628 fi
7629
7630            fi
7631
7632            if test "$gt_cv_func_gettext_libc" = "yes" \
7633               || test "$gt_cv_func_gettext_libintl" = "yes"; then
7634               cat >> confdefs.h <<\EOF
7635 #define HAVE_GETTEXT 1
7636 EOF
7637
7638               # Extract the first word of "msgfmt", so it can be a program name with args.
7639 set dummy msgfmt; ac_word=$2
7640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7641 echo "configure:7642: checking for $ac_word" >&5
7642 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7643   echo $ac_n "(cached) $ac_c" 1>&6
7644 else
7645   case "$MSGFMT" in
7646   /*)
7647   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7648   ;;
7649   *)
7650   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7651   for ac_dir in $PATH; do
7652     test -z "$ac_dir" && ac_dir=.
7653     if test -f $ac_dir/$ac_word; then
7654       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7655         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7656         break
7657       fi
7658     fi
7659   done
7660   IFS="$ac_save_ifs"
7661   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7662   ;;
7663 esac
7664 fi
7665 MSGFMT="$ac_cv_path_MSGFMT"
7666 if test -n "$MSGFMT"; then
7667   echo "$ac_t""$MSGFMT" 1>&6
7668 else
7669   echo "$ac_t""no" 1>&6
7670 fi
7671               if test "$MSGFMT" != "no"; then
7672                 for ac_func in dcgettext
7673 do
7674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7675 echo "configure:7676: checking for $ac_func" >&5
7676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7677   echo $ac_n "(cached) $ac_c" 1>&6
7678 else
7679   cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7682 /* System header to define __stub macros and hopefully few prototypes,
7683     which can conflict with char $ac_func(); below.  */
7684 #include <assert.h>
7685 /* Override any gcc2 internal prototype to avoid an error.  */
7686 /* We use char because int might match the return type of a gcc2
7687     builtin and then its argument prototype would still apply.  */
7688 char $ac_func();
7689 char (*f)();
7690
7691 int main() {
7692
7693 /* The GNU C library defines this for functions which it implements
7694     to always fail with ENOSYS.  Some functions are actually named
7695     something starting with __ and the normal name is an alias.  */
7696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7697 choke me
7698 #else
7699 f = $ac_func;
7700 #endif
7701
7702 ; return 0; }
7703 EOF
7704 if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7705   rm -rf conftest*
7706   eval "ac_cv_func_$ac_func=yes"
7707 else
7708   echo "configure: failed program was:" >&5
7709   cat conftest.$ac_ext >&5
7710   rm -rf conftest*
7711   eval "ac_cv_func_$ac_func=no"
7712 fi
7713 rm -f conftest*
7714 fi
7715
7716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7717   echo "$ac_t""yes" 1>&6
7718     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7719   cat >> confdefs.h <<EOF
7720 #define $ac_tr_func 1
7721 EOF
7722  
7723 else
7724   echo "$ac_t""no" 1>&6
7725 fi
7726 done
7727
7728                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7729 set dummy gmsgfmt; ac_word=$2
7730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7731 echo "configure:7732: checking for $ac_word" >&5
7732 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7733   echo $ac_n "(cached) $ac_c" 1>&6
7734 else
7735   case "$GMSGFMT" in
7736   /*)
7737   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7738   ;;
7739   ?:/*)                  
7740   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7741   ;;
7742   *)
7743   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7744   ac_dummy="$PATH"
7745   for ac_dir in $ac_dummy; do 
7746     test -z "$ac_dir" && ac_dir=.
7747     if test -f $ac_dir/$ac_word; then
7748       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7749       break
7750     fi
7751   done
7752   IFS="$ac_save_ifs"
7753   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7754   ;;
7755 esac
7756 fi
7757 GMSGFMT="$ac_cv_path_GMSGFMT"
7758 if test -n "$GMSGFMT"; then
7759   echo "$ac_t""$GMSGFMT" 1>&6
7760 else
7761   echo "$ac_t""no" 1>&6
7762 fi
7763
7764                 # Extract the first word of "xgettext", so it can be a program name with args.
7765 set dummy xgettext; ac_word=$2
7766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7767 echo "configure:7768: checking for $ac_word" >&5
7768 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7769   echo $ac_n "(cached) $ac_c" 1>&6
7770 else
7771   case "$XGETTEXT" in
7772   /*)
7773   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7774   ;;
7775   *)
7776   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7777   for ac_dir in $PATH; do
7778     test -z "$ac_dir" && ac_dir=.
7779     if test -f $ac_dir/$ac_word; then
7780       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7781         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7782         break
7783       fi
7784     fi
7785   done
7786   IFS="$ac_save_ifs"
7787   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7788   ;;
7789 esac
7790 fi
7791 XGETTEXT="$ac_cv_path_XGETTEXT"
7792 if test -n "$XGETTEXT"; then
7793   echo "$ac_t""$XGETTEXT" 1>&6
7794 else
7795   echo "$ac_t""no" 1>&6
7796 fi
7797
7798                 cat > conftest.$ac_ext <<EOF
7799 #line 7800 "configure"
7800 #include "confdefs.h"
7801
7802 int main() {
7803 extern int _nl_msg_cat_cntr;
7804                                return _nl_msg_cat_cntr
7805 ; return 0; }
7806 EOF
7807 if { (eval echo configure:7808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7808   rm -rf conftest*
7809   CATOBJEXT=.gmo
7810                    DATADIRNAME=share
7811 else
7812   echo "configure: failed program was:" >&5
7813   cat conftest.$ac_ext >&5
7814   rm -rf conftest*
7815   CATOBJEXT=.mo
7816                    DATADIRNAME=lib
7817 fi
7818 rm -f conftest*
7819                 INSTOBJEXT=.mo
7820               fi
7821             fi
7822         
7823 else
7824   echo "$ac_t""no" 1>&6
7825 fi
7826
7827
7828         if test "$CATOBJEXT" = "NONE"; then
7829           echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7830 echo "configure:7831: checking whether catgets can be used" >&5
7831           # Check whether --with-catgets or --without-catgets was given.
7832 if test "${with_catgets+set}" = set; then
7833   withval="$with_catgets"
7834   nls_cv_use_catgets=$withval
7835 else
7836   nls_cv_use_catgets=no
7837 fi
7838
7839           echo "$ac_t""$nls_cv_use_catgets" 1>&6
7840
7841           if test "$nls_cv_use_catgets" = "yes"; then
7842                     echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7843 echo "configure:7844: checking for main in -li" >&5
7844 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7846   echo $ac_n "(cached) $ac_c" 1>&6
7847 else
7848   ac_save_LIBS="$LIBS"
7849 LIBS="-li  $LIBS"
7850 cat > conftest.$ac_ext <<EOF
7851 #line 7852 "configure"
7852 #include "confdefs.h"
7853
7854 int main() {
7855 main()
7856 ; return 0; }
7857 EOF
7858 if { (eval echo configure:7859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7859   rm -rf conftest*
7860   eval "ac_cv_lib_$ac_lib_var=yes"
7861 else
7862   echo "configure: failed program was:" >&5
7863   cat conftest.$ac_ext >&5
7864   rm -rf conftest*
7865   eval "ac_cv_lib_$ac_lib_var=no"
7866 fi
7867 rm -f conftest*
7868 LIBS="$ac_save_LIBS"
7869
7870 fi
7871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7872   echo "$ac_t""yes" 1>&6
7873     ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7874     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7875   cat >> confdefs.h <<EOF
7876 #define $ac_tr_lib 1
7877 EOF
7878
7879   LIBS="-li $LIBS"
7880
7881 else
7882   echo "$ac_t""no" 1>&6
7883 fi
7884
7885             echo $ac_n "checking for catgets""... $ac_c" 1>&6
7886 echo "configure:7887: checking for catgets" >&5
7887 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7888   echo $ac_n "(cached) $ac_c" 1>&6
7889 else
7890   cat > conftest.$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7893 /* System header to define __stub macros and hopefully few prototypes,
7894     which can conflict with char catgets(); below.  */
7895 #include <assert.h>
7896 /* Override any gcc2 internal prototype to avoid an error.  */
7897 /* We use char because int might match the return type of a gcc2
7898     builtin and then its argument prototype would still apply.  */
7899 char catgets();
7900 char (*f)();
7901
7902 int main() {
7903
7904 /* The GNU C library defines this for functions which it implements
7905     to always fail with ENOSYS.  Some functions are actually named
7906     something starting with __ and the normal name is an alias.  */
7907 #if defined (__stub_catgets) || defined (__stub___catgets)
7908 choke me
7909 #else
7910 f = catgets;
7911 #endif
7912
7913 ; return 0; }
7914 EOF
7915 if { (eval echo configure:7916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7916   rm -rf conftest*
7917   eval "ac_cv_func_catgets=yes"
7918 else
7919   echo "configure: failed program was:" >&5
7920   cat conftest.$ac_ext >&5
7921   rm -rf conftest*
7922   eval "ac_cv_func_catgets=no"
7923 fi
7924 rm -f conftest*
7925 fi
7926
7927 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7928   echo "$ac_t""yes" 1>&6
7929   cat >> confdefs.h <<\EOF
7930 #define HAVE_CATGETS 1
7931 EOF
7932
7933                INTLOBJS="\$(CATOBJS)"
7934                # Extract the first word of "gencat", so it can be a program name with args.
7935 set dummy gencat; ac_word=$2
7936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7937 echo "configure:7938: checking for $ac_word" >&5
7938 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7939   echo $ac_n "(cached) $ac_c" 1>&6
7940 else
7941   case "$GENCAT" in
7942   /*)
7943   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7944   ;;
7945   ?:/*)                  
7946   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7947   ;;
7948   *)
7949   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7950   ac_dummy="$PATH"
7951   for ac_dir in $ac_dummy; do 
7952     test -z "$ac_dir" && ac_dir=.
7953     if test -f $ac_dir/$ac_word; then
7954       ac_cv_path_GENCAT="$ac_dir/$ac_word"
7955       break
7956     fi
7957   done
7958   IFS="$ac_save_ifs"
7959   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7960   ;;
7961 esac
7962 fi
7963 GENCAT="$ac_cv_path_GENCAT"
7964 if test -n "$GENCAT"; then
7965   echo "$ac_t""$GENCAT" 1>&6
7966 else
7967   echo "$ac_t""no" 1>&6
7968 fi
7969                if test "$GENCAT" != "no"; then
7970                  # Extract the first word of "gmsgfmt", so it can be a program name with args.
7971 set dummy gmsgfmt; ac_word=$2
7972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7973 echo "configure:7974: checking for $ac_word" >&5
7974 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7975   echo $ac_n "(cached) $ac_c" 1>&6
7976 else
7977   case "$GMSGFMT" in
7978   /*)
7979   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7980   ;;
7981   ?:/*)                  
7982   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7983   ;;
7984   *)
7985   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7986   ac_dummy="$PATH"
7987   for ac_dir in $ac_dummy; do 
7988     test -z "$ac_dir" && ac_dir=.
7989     if test -f $ac_dir/$ac_word; then
7990       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7991       break
7992     fi
7993   done
7994   IFS="$ac_save_ifs"
7995   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7996   ;;
7997 esac
7998 fi
7999 GMSGFMT="$ac_cv_path_GMSGFMT"
8000 if test -n "$GMSGFMT"; then
8001   echo "$ac_t""$GMSGFMT" 1>&6
8002 else
8003   echo "$ac_t""no" 1>&6
8004 fi
8005
8006                  if test "$GMSGFMT" = "no"; then
8007                    # Extract the first word of "msgfmt", so it can be a program name with args.
8008 set dummy msgfmt; ac_word=$2
8009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8010 echo "configure:8011: checking for $ac_word" >&5
8011 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8012   echo $ac_n "(cached) $ac_c" 1>&6
8013 else
8014   case "$GMSGFMT" in
8015   /*)
8016   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8017   ;;
8018   *)
8019   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8020   for ac_dir in $PATH; do
8021     test -z "$ac_dir" && ac_dir=.
8022     if test -f $ac_dir/$ac_word; then
8023       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8024         ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8025         break
8026       fi
8027     fi
8028   done
8029   IFS="$ac_save_ifs"
8030   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
8031   ;;
8032 esac
8033 fi
8034 GMSGFMT="$ac_cv_path_GMSGFMT"
8035 if test -n "$GMSGFMT"; then
8036   echo "$ac_t""$GMSGFMT" 1>&6
8037 else
8038   echo "$ac_t""no" 1>&6
8039 fi
8040
8041                  fi
8042                  # Extract the first word of "xgettext", so it can be a program name with args.
8043 set dummy xgettext; ac_word=$2
8044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8045 echo "configure:8046: checking for $ac_word" >&5
8046 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8047   echo $ac_n "(cached) $ac_c" 1>&6
8048 else
8049   case "$XGETTEXT" in
8050   /*)
8051   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8052   ;;
8053   *)
8054   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8055   for ac_dir in $PATH; do
8056     test -z "$ac_dir" && ac_dir=.
8057     if test -f $ac_dir/$ac_word; then
8058       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8059         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8060         break
8061       fi
8062     fi
8063   done
8064   IFS="$ac_save_ifs"
8065   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8066   ;;
8067 esac
8068 fi
8069 XGETTEXT="$ac_cv_path_XGETTEXT"
8070 if test -n "$XGETTEXT"; then
8071   echo "$ac_t""$XGETTEXT" 1>&6
8072 else
8073   echo "$ac_t""no" 1>&6
8074 fi
8075
8076                  USE_INCLUDED_LIBINTL=yes
8077                  CATOBJEXT=.cat
8078                  INSTOBJEXT=.cat
8079                  DATADIRNAME=lib
8080                  INTLDEPS='$(top_builddir)/intl/libintl.a'
8081                  INTLLIBS=$INTLDEPS
8082                  LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8083                  nls_cv_header_intl=intl/libintl.h
8084                  nls_cv_header_libgt=intl/libgettext.h
8085                fi
8086 else
8087   echo "$ac_t""no" 1>&6
8088 fi
8089
8090           fi
8091         fi
8092
8093         if test "$CATOBJEXT" = "NONE"; then
8094                           nls_cv_use_gnu_gettext=yes
8095         fi
8096       fi
8097
8098       if test "$nls_cv_use_gnu_gettext" = "yes"; then
8099                 INTLOBJS="\$(GETTOBJS)"
8100         # Extract the first word of "msgfmt", so it can be a program name with args.
8101 set dummy msgfmt; ac_word=$2
8102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8103 echo "configure:8104: checking for $ac_word" >&5
8104 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8105   echo $ac_n "(cached) $ac_c" 1>&6
8106 else
8107   case "$MSGFMT" in
8108   /*)
8109   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8110   ;;
8111   *)
8112   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8113   for ac_dir in $PATH; do
8114     test -z "$ac_dir" && ac_dir=.
8115     if test -f $ac_dir/$ac_word; then
8116       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8117         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8118         break
8119       fi
8120     fi
8121   done
8122   IFS="$ac_save_ifs"
8123   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8124   ;;
8125 esac
8126 fi
8127 MSGFMT="$ac_cv_path_MSGFMT"
8128 if test -n "$MSGFMT"; then
8129   echo "$ac_t""$MSGFMT" 1>&6
8130 else
8131   echo "$ac_t""no" 1>&6
8132 fi
8133
8134         # Extract the first word of "gmsgfmt", so it can be a program name with args.
8135 set dummy gmsgfmt; ac_word=$2
8136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8137 echo "configure:8138: checking for $ac_word" >&5
8138 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8139   echo $ac_n "(cached) $ac_c" 1>&6
8140 else
8141   case "$GMSGFMT" in
8142   /*)
8143   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8144   ;;
8145   ?:/*)                  
8146   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8147   ;;
8148   *)
8149   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8150   ac_dummy="$PATH"
8151   for ac_dir in $ac_dummy; do 
8152     test -z "$ac_dir" && ac_dir=.
8153     if test -f $ac_dir/$ac_word; then
8154       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8155       break
8156     fi
8157   done
8158   IFS="$ac_save_ifs"
8159   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8160   ;;
8161 esac
8162 fi
8163 GMSGFMT="$ac_cv_path_GMSGFMT"
8164 if test -n "$GMSGFMT"; then
8165   echo "$ac_t""$GMSGFMT" 1>&6
8166 else
8167   echo "$ac_t""no" 1>&6
8168 fi
8169
8170         # Extract the first word of "xgettext", so it can be a program name with args.
8171 set dummy xgettext; ac_word=$2
8172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8173 echo "configure:8174: checking for $ac_word" >&5
8174 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8175   echo $ac_n "(cached) $ac_c" 1>&6
8176 else
8177   case "$XGETTEXT" in
8178   /*)
8179   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8180   ;;
8181   *)
8182   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8183   for ac_dir in $PATH; do
8184     test -z "$ac_dir" && ac_dir=.
8185     if test -f $ac_dir/$ac_word; then
8186       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8187         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8188         break
8189       fi
8190     fi
8191   done
8192   IFS="$ac_save_ifs"
8193   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8194   ;;
8195 esac
8196 fi
8197 XGETTEXT="$ac_cv_path_XGETTEXT"
8198 if test -n "$XGETTEXT"; then
8199   echo "$ac_t""$XGETTEXT" 1>&6
8200 else
8201   echo "$ac_t""no" 1>&6
8202 fi
8203
8204         
8205         USE_INCLUDED_LIBINTL=yes
8206         CATOBJEXT=.gmo
8207         INSTOBJEXT=.mo
8208         DATADIRNAME=share
8209         INTLDEPS='$(top_builddir)/intl/libintl.a'
8210         INTLLIBS=$INTLDEPS
8211         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8212         nls_cv_header_intl=intl/libintl.h
8213         nls_cv_header_libgt=intl/libgettext.h
8214       fi
8215
8216             if test "$XGETTEXT" != ":"; then
8217                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8218           : ;
8219         else
8220           echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8221           XGETTEXT=":"
8222         fi
8223       fi
8224
8225       # We need to process the po/ directory.
8226       POSUB=po
8227     else
8228       DATADIRNAME=share
8229       nls_cv_header_intl=intl/libintl.h
8230       nls_cv_header_libgt=intl/libgettext.h
8231     fi
8232     
8233     
8234
8235
8236     # If this is used in GNU gettext we have to set USE_NLS to `yes'
8237     # because some of the sources are only built for this goal.
8238     if test "$PACKAGE" = gettext; then
8239       USE_NLS=yes
8240       USE_INCLUDED_LIBINTL=yes
8241     fi
8242
8243                 for lang in $ALL_LINGUAS; do
8244       GMOFILES="$GMOFILES $lang.gmo"
8245       POFILES="$POFILES $lang.po"
8246     done
8247
8248         
8249     
8250     
8251     
8252     
8253     
8254     
8255     
8256     
8257     
8258     
8259   
8260
8261    if test "x$CATOBJEXT" != "x"; then
8262      if test "x$ALL_LINGUAS" = "x"; then
8263        LINGUAS=
8264      else
8265        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8266 echo "configure:8267: checking for catalogs to be installed" >&5
8267        NEW_LINGUAS=
8268        for lang in ${LINGUAS=$ALL_LINGUAS}; do
8269          case "$ALL_LINGUAS" in
8270           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8271          esac
8272        done
8273        LINGUAS=$NEW_LINGUAS
8274        echo "$ac_t""$LINGUAS" 1>&6
8275      fi
8276
8277           if test -n "$LINGUAS"; then
8278        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8279      fi
8280    fi
8281
8282             if test $ac_cv_header_locale_h = yes; then
8283      INCLUDE_LOCALE_H="#include <locale.h>"
8284    else
8285      INCLUDE_LOCALE_H="\
8286 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
8287    fi
8288    
8289
8290             test -d intl || mkdir intl
8291    if test "$CATOBJEXT" = ".cat"; then
8292      ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8293 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8294 echo "configure:8295: checking for linux/version.h" >&5
8295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8296   echo $ac_n "(cached) $ac_c" 1>&6
8297 else
8298   cat > conftest.$ac_ext <<EOF
8299 #line 8300 "configure"
8300 #include "confdefs.h"
8301 #include <linux/version.h>
8302 EOF
8303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8304 { (eval echo configure:8305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8306 if test -z "$ac_err"; then
8307   rm -rf conftest*
8308   eval "ac_cv_header_$ac_safe=yes"
8309 else
8310   echo "$ac_err" >&5
8311   echo "configure: failed program was:" >&5
8312   cat conftest.$ac_ext >&5
8313   rm -rf conftest*
8314   eval "ac_cv_header_$ac_safe=no"
8315 fi
8316 rm -f conftest*
8317 fi
8318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8319   echo "$ac_t""yes" 1>&6
8320   msgformat=linux
8321 else
8322   echo "$ac_t""no" 1>&6
8323 msgformat=xopen
8324 fi
8325
8326
8327                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8328    fi
8329       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8330      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8331
8332             if test "$PACKAGE" = "gettext"; then
8333      GT_NO="#NO#"
8334      GT_YES=
8335    else
8336      GT_NO=
8337      GT_YES="#YES#"
8338    fi
8339    
8340    
8341
8342             MKINSTALLDIRS=
8343    if test -n "$ac_aux_dir"; then
8344      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8345    fi
8346    if test -z "$MKINSTALLDIRS"; then
8347      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8348    fi
8349    
8350
8351       l=
8352    
8353
8354          test -d po || mkdir po
8355    if test "x$srcdir" != "x."; then
8356      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8357        posrcprefix="$srcdir/"
8358      else
8359        posrcprefix="../$srcdir/"
8360      fi
8361    else
8362      posrcprefix="../"
8363    fi
8364    rm -f po/POTFILES
8365    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8366         < $srcdir/po/POTFILES.in > po/POTFILES
8367   
8368 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8369
8370 # Windows32 Registry support for specifying GCC installation paths.
8371 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8372 if test "${enable_win32_registry+set}" = set; then
8373   enableval="$enable_win32_registry"
8374   :
8375 fi
8376
8377
8378 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8379 echo "configure:8380: checking whether windows registry support is requested" >&5
8380 if test x$enable_win32_registry != xno; then
8381   cat >> confdefs.h <<\EOF
8382 #define ENABLE_WIN32_REGISTRY 1
8383 EOF
8384
8385   echo "$ac_t""yes" 1>&6
8386 else
8387   echo "$ac_t""no" 1>&6
8388 fi
8389
8390 # Check if user specified a different registry key.
8391 case x${enable_win32_registry} in
8392 x | xyes)
8393   # default.
8394   gcc_cv_win32_registry_key="$VERSION"
8395   ;;
8396 xno)
8397   # no registry lookup.
8398   gcc_cv_win32_registry_key=''
8399   ;;
8400 *)
8401   # user-specified key.
8402   gcc_cv_win32_registry_key="$enable_win32_registry"
8403   ;;
8404 esac
8405
8406 if test x$enable_win32_registry != xno; then
8407   echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8408 echo "configure:8409: checking registry key on windows hosts" >&5
8409   cat >> confdefs.h <<EOF
8410 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8411 EOF
8412
8413   echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8414 fi
8415
8416 # Get an absolute path to the GCC top-level source directory
8417 holddir=`pwd`
8418 cd $srcdir
8419 topdir=`pwd`
8420 cd $holddir
8421
8422 # Conditionalize the makefile for this host machine.
8423 # Make-host contains the concatenation of all host makefile fragments
8424 # [there can be more than one].  This file is built by configure.frag.
8425 host_overrides=Make-host
8426 dep_host_xmake_file=
8427 for f in .. ${host_xmake_file}
8428 do
8429         if test -f ${srcdir}/config/$f
8430         then
8431                 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8432         fi
8433 done
8434
8435 # Conditionalize the makefile for this target machine.
8436 # Make-target contains the concatenation of all host makefile fragments
8437 # [there can be more than one].  This file is built by configure.frag.
8438 target_overrides=Make-target
8439 dep_tmake_file=
8440 for f in .. ${tmake_file}
8441 do
8442         if test -f ${srcdir}/config/$f
8443         then
8444                 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8445         fi
8446 done
8447
8448 # If the host doesn't support symlinks, modify CC in
8449 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8450 # Otherwise, we can use "CC=$(CC)".
8451 rm -f symtest.tem
8452 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8453 then
8454         cc_set_by_configure="\$(CC)"
8455         quoted_cc_set_by_configure="\$(CC)"
8456         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8457 else
8458         rm -f symtest.tem
8459         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8460         then
8461                 symbolic_link="cp -p"
8462         else
8463                 symbolic_link="cp"
8464         fi
8465         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8466         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8467         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8468 fi
8469 rm -f symtest.tem
8470
8471 out_object_file=`basename $out_file .c`.o
8472
8473 tm_file_list=
8474 for f in $tm_file; do
8475   case $f in
8476     gansidecl.h )
8477        tm_file_list="${tm_file_list} $f" ;;
8478     *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8479   esac
8480 done
8481
8482 host_xm_file_list=
8483 for f in $host_xm_file; do
8484   case $f in
8485     auto-host.h | gansidecl.h | hwint.h )
8486        host_xm_file_list="${host_xm_file_list} $f" ;;
8487     *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8488   esac
8489 done
8490
8491 build_xm_file_list=
8492 for f in $build_xm_file; do
8493   case $f in
8494     auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8495        build_xm_file_list="${build_xm_file_list} $f" ;;
8496     *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8497   esac
8498 done
8499
8500 # Define macro CROSS_COMPILE in compilation
8501 # if this is a cross-compiler.
8502 # Also use all.cross instead of all.internal
8503 # and add cross-make to Makefile.
8504 cross_overrides="/dev/null"
8505 if test x$host != x$target
8506 then
8507         cross_defines="CROSS=-DCROSS_COMPILE"
8508         cross_overrides="${topdir}/cross-make"
8509 fi
8510
8511 # When building gcc with a cross-compiler, we need to fix a few things.
8512 # This must come after cross-make as we want all.build to override
8513 # all.cross.
8514 build_overrides="/dev/null"
8515 if test x$build != x$host
8516 then
8517         build_overrides="${topdir}/build-make"
8518 fi
8519
8520 # Expand extra_headers to include complete path.
8521 # This substitutes for lots of t-* files.
8522 extra_headers_list=
8523 if test "x$extra_headers" = x
8524 then true
8525 else
8526         # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8527         for file in $extra_headers;
8528         do
8529                 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8530         done
8531 fi
8532
8533 if test x$use_collect2 = xno; then
8534         use_collect2=
8535 fi
8536
8537 # Add a definition of USE_COLLECT2 if system wants one.
8538 # Also tell toplev.c what to do.
8539 # This substitutes for lots of t-* files.
8540 if test x$use_collect2 = x
8541 then
8542         will_use_collect2=
8543         maybe_use_collect2=
8544 else
8545         will_use_collect2="collect2"
8546         maybe_use_collect2="-DUSE_COLLECT2"
8547 fi
8548
8549 # NEED TO CONVERT
8550 # Set MD_DEPS if the real md file is in md.pre-cpp.
8551 # Set MD_CPP to the cpp to pass the md file through.  Md files use ';'
8552 # for line oriented comments, so we must always use a GNU cpp.  If
8553 # building gcc with a cross compiler, use the cross compiler just
8554 # built.  Otherwise, we can use the cpp just built.
8555 md_file_sub=
8556 if test "x$md_cppflags" = x
8557 then
8558         md_file_sub=$srcdir/config/$md_file
8559 else
8560         md_file=md
8561 fi
8562
8563 # If we have gas in the build tree, make a link to it.
8564 if test -f ../gas/Makefile; then
8565         rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8566 fi
8567
8568 # If we have nm in the build tree, make a link to it.
8569 if test -f ../binutils/Makefile; then
8570         rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8571 fi
8572
8573 # If we have ld in the build tree, make a link to it.
8574 if test -f ../ld/Makefile; then
8575 #       if test x$use_collect2 = x; then
8576 #               rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8577 #       else
8578                 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8579 #       fi
8580 fi
8581
8582 # Figure out what assembler alignment features are present.
8583 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8584 echo "configure:8585: checking assembler alignment features" >&5
8585 gcc_cv_as=
8586 gcc_cv_as_alignment_features=
8587 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8588 if test -x "$DEFAULT_ASSEMBLER"; then
8589         gcc_cv_as="$DEFAULT_ASSEMBLER"
8590 elif test -x "$AS"; then
8591         gcc_cv_as="$AS"
8592 elif test -x as$host_exeext; then
8593         # Build using assembler in the current directory.
8594         gcc_cv_as=./as$host_exeext
8595 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8596         # Single tree build which includes gas.
8597         for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8598         do
8599                 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8600                 if test x$gcc_cv_gas_version != x; then
8601                         break
8602                 fi
8603         done
8604         gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8605         gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8606         if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8607                 # Gas version 2.6 and later support for .balign and .p2align.
8608                 # bytes to skip when using .p2align.
8609                 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
8610                         gcc_cv_as_alignment_features=".balign and .p2align"
8611                         cat >> confdefs.h <<\EOF
8612 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8613 EOF
8614
8615                 fi
8616                 # Gas version 2.8 and later support specifying the maximum
8617                 # bytes to skip when using .p2align.
8618                 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
8619                         gcc_cv_as_alignment_features=".p2align including maximum skip"
8620                         cat >> confdefs.h <<\EOF
8621 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8622 EOF
8623
8624                 fi
8625         fi
8626 elif test x$host = x$target; then
8627         # Native build.
8628         # Search the same directories that the installed compiler will
8629         # search.  Else we may find the wrong assembler and lose.  If we
8630         # do not find a suitable assembler binary, then try the user's
8631         # path.
8632         #
8633         # Also note we have to check MD_EXEC_PREFIX before checking the
8634         # user's path.  Unfortunately, there is no good way to get at the
8635         # value of MD_EXEC_PREFIX here.  So we do a brute force search
8636         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
8637         # to be fixed as part of the make/configure rewrite too.
8638
8639         if test "x$exec_prefix" = xNONE; then
8640                 if test "x$prefix" = xNONE; then
8641                         test_prefix=/usr/local
8642                 else
8643                         test_prefix=$prefix
8644                 fi
8645         else
8646                 test_prefix=$exec_prefix
8647         fi
8648
8649         # If the loop below does not find an assembler, then use whatever
8650         # one we can find in the users's path.
8651         # user's path.
8652         as=as$host_exeext
8653
8654         test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8655                    $test_prefix/lib/gcc-lib/$target \
8656                    /usr/lib/gcc/$target/$gcc_version \
8657                    /usr/lib/gcc/$target \
8658                    $test_prefix/$target/bin/$target/$gcc_version \
8659                    $test_prefix/$target/bin \
8660                    /usr/libexec \
8661                    /usr/ccs/gcc \
8662                    /usr/ccs/bin \
8663                    /udk/usr/ccs/bin \
8664                    /bsd43/usr/lib/cmplrs/cc \
8665                    /usr/cross64/usr/bin \
8666                    /usr/lib/cmplrs/cc \
8667                    /sysv/usr/lib/cmplrs/cc \
8668                    /svr4/usr/lib/cmplrs/cc \
8669                    /usr/bin"
8670
8671         for dir in $test_dirs; do
8672                 if test -f $dir/as$host_exeext; then
8673                         gcc_cv_as=$dir/as$host_exeext
8674                         break;
8675                 fi
8676         done
8677 fi
8678 if test x$gcc_cv_as != x; then
8679         # Check if we have .balign and .p2align
8680         echo ".balign  4" > conftest.s
8681         echo ".p2align  2" >> conftest.s
8682         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8683                 gcc_cv_as_alignment_features=".balign and .p2align"
8684                 cat >> confdefs.h <<\EOF
8685 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8686 EOF
8687
8688         fi
8689         rm -f conftest.s conftest.o
8690         # Check if specifying the maximum bytes to skip when
8691         # using .p2align is supported.
8692         echo ".p2align 4,,7" > conftest.s
8693         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8694                 gcc_cv_as_alignment_features=".p2align including maximum skip"
8695                 cat >> confdefs.h <<\EOF
8696 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8697 EOF
8698
8699         fi
8700         rm -f conftest.s conftest.o
8701 fi
8702 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8703
8704 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8705 echo "configure:8706: checking assembler subsection support" >&5
8706 gcc_cv_as_subsections=
8707 if test x$gcc_cv_as != x; then
8708         # Check if we have .subsection
8709         echo ".subsection 1" > conftest.s
8710         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8711                 gcc_cv_as_subsections=".subsection"
8712                 if test -x nm$host_exeext; then
8713                         gcc_cv_nm=./nm$host_exeext
8714                 elif test x$host = x$target; then
8715                         # Native build.
8716                         gcc_cv_nm=nm$host_exeext
8717                 fi
8718                 if test x$gcc_cv_nm != x; then
8719                         cat > conftest.s <<EOF
8720 conftest_label1: .word 0
8721 .subsection -1
8722 conftest_label2: .word 0
8723 .previous
8724 EOF
8725                         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8726                                 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8727                                 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8728                                 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8729                                         :
8730                                 else
8731                                         gcc_cv_as_subsections="working .subsection -1"
8732                                         cat >> confdefs.h <<\EOF
8733 #define HAVE_GAS_SUBSECTION_ORDERING 1
8734 EOF
8735
8736                                 fi
8737                         fi
8738                 fi
8739         fi
8740         rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8741 fi
8742 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8743
8744 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8745 echo "configure:8746: checking assembler weak support" >&5
8746 gcc_cv_as_weak=
8747 if test x$gcc_cv_as != x; then
8748         # Check if we have .weak
8749         echo "  .weak foobar" > conftest.s
8750         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8751                 cat >> confdefs.h <<\EOF
8752 #define HAVE_GAS_WEAK 1
8753 EOF
8754
8755                 gcc_cv_as_weak="yes"
8756         fi
8757         rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8758 fi
8759 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8760
8761 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8762 echo "configure:8763: checking assembler hidden support" >&5
8763 gcc_cv_as_hidden=
8764 if test x$gcc_cv_as != x; then
8765         # Check if we have .hidden
8766         echo "  .hidden foobar" > conftest.s
8767         echo "foobar:" >> conftest.s
8768         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8769                 cat >> confdefs.h <<\EOF
8770 #define HAVE_GAS_HIDDEN 1
8771 EOF
8772
8773                 gcc_cv_as_hidden="yes"
8774         fi
8775         rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8776 fi
8777 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8778
8779 case "$target" in 
8780   sparc*-*-*)
8781     echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8782 echo "configure:8783: checking assembler .register pseudo-op support" >&5
8783 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8784   echo $ac_n "(cached) $ac_c" 1>&6
8785 else
8786   
8787         gcc_cv_as_register_pseudo_op=unknown
8788         if test x$gcc_cv_as != x; then
8789             # Check if we have .register
8790             echo ".register %g2, #scratch" > conftest.s
8791             if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8792                 gcc_cv_as_register_pseudo_op=yes
8793             else
8794                 gcc_cv_as_register_pseudo_op=no
8795             fi
8796             rm -f conftest.s conftest.o
8797         fi
8798     
8799 fi
8800
8801 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8802     if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
8803         cat >> confdefs.h <<\EOF
8804 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8805 EOF
8806
8807     fi
8808
8809     case "$tm_file" in
8810     *64*)
8811         echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8812 echo "configure:8813: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8813 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8814   echo $ac_n "(cached) $ac_c" 1>&6
8815 else
8816   
8817                 if test -n "$gcc_cv_as"; then
8818                     echo ".xword foo" > conftest.s
8819                     gcc_cv_as_flags64=no
8820                     for flag in "-xarch=v9" "-64 -Av9"; do
8821                         if $gcc_cv_as $flag -o conftest.o conftest.s \
8822                             > /dev/null 2>&1; then
8823                             gcc_cv_as_flags64=$flag
8824                             break
8825                         fi
8826                     done
8827                     rm -f conftest.s conftest.o
8828                 else
8829                     if test "$gas" = yes; then
8830                         gcc_cv_as_flags64="-64 -Av9"
8831                     else
8832                         gcc_cv_as_flags64="-xarch=v9"
8833                     fi
8834                 fi
8835         
8836 fi
8837
8838 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8839         if test "x$gcc_cv_as_flags64" = xno; then
8840
8841             tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8842             dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8843
8844         else
8845             cat >> confdefs.h <<EOF
8846 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8847 EOF
8848
8849         fi
8850         ;;
8851     *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
8852         ;;
8853     esac
8854
8855     if test "x$gcc_cv_as_flags64" != xno; then
8856         echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8857 echo "configure:8858: checking for assembler offsetable %lo() support" >&5
8858 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8859   echo $ac_n "(cached) $ac_c" 1>&6
8860 else
8861   
8862             gcc_cv_as_offsetable_lo10=unknown
8863             if test "x$gcc_cv_as" != x; then
8864                 # Check if assembler has offsetable %lo()
8865                 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8866                 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8867                 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8868                         > /dev/null 2>&1 &&
8869                    $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8870                         > /dev/null 2>&1; then
8871                     if cmp conftest.o conftest1.o > /dev/null 2>&1; then
8872                         gcc_cv_as_offsetable_lo10=no
8873                     else
8874                         gcc_cv_as_offsetable_lo10=yes
8875                     fi
8876                 else
8877                     gcc_cv_as_offsetable_lo10=no
8878                 fi
8879                 rm -f conftest.s conftest.o conftest1.s conftest1.o
8880             fi
8881         
8882 fi
8883
8884 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8885         if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
8886             cat >> confdefs.h <<\EOF
8887 #define HAVE_AS_OFFSETABLE_LO10 1
8888 EOF
8889
8890         fi
8891     fi
8892     ;;
8893
8894   i[34567]86-*-*)
8895     echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8896 echo "configure:8897: checking assembler instructions" >&5
8897     gcc_cv_as_instructions=
8898     if test x$gcc_cv_as != x; then
8899         set "filds fists" "filds mem; fists mem"
8900         while test $# -gt 0
8901         do
8902                 echo "$2" > conftest.s
8903                 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8904                         gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8905                         cat >> confdefs.h <<EOF
8906 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8907 EOF
8908
8909                 fi
8910                 shift 2
8911         done
8912         rm -f conftest.s conftest.o
8913     fi
8914     echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8915     ;;
8916 esac
8917
8918 # Figure out what language subdirectories are present.
8919 # Look if the user specified --enable-languages="..."; if not, use
8920 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8921 # go away some day.
8922 if test x"${enable_languages+set}" != xset; then
8923         if test x"${LANGUAGES+set}" = xset; then
8924                 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8925         else
8926                 enable_languages=all
8927         fi
8928 fi
8929 subdirs=
8930 for lang in ${srcdir}/*/config-lang.in ..
8931 do
8932         case $lang in
8933         ..) ;;
8934         # The odd quoting in the next line works around
8935         # an apparent bug in bash 1.12 on linux.
8936         ${srcdir}/[*]/config-lang.in) ;;
8937         *)
8938           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
8939           if test "x$lang_alias" = x
8940           then
8941                 echo "$lang doesn't set \$language." 1>&2
8942                 exit 1
8943           fi
8944           if test x"${enable_languages}" = xall; then
8945                 add_this_lang=yes
8946           else
8947                 case "${enable_languages}" in
8948                     ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8949                         add_this_lang=yes
8950                         ;;
8951                     * )
8952                         add_this_lang=no
8953                         ;;
8954                 esac
8955           fi
8956           if test x"${add_this_lang}" = xyes; then
8957                 case $lang in
8958                     ${srcdir}/ada/config-lang.in)
8959                         if test x$gnat = xyes ; then
8960                                 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8961                         fi
8962                         ;;
8963                     *)
8964                         subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8965                         ;;
8966                 esac
8967           fi
8968           ;;
8969         esac
8970 done
8971
8972 # Make gthr-default.h if we have a thread file.
8973 gthread_flags=
8974 if test $thread_file != single; then
8975     rm -f gthr-default.h
8976     echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8977     gthread_flags=-DHAVE_GTHR_DEFAULT
8978 fi
8979
8980
8981 # Find out what GC implementation we want, or may, use.
8982 # Check whether --with-gc or --without-gc was given.
8983 if test "${with_gc+set}" = set; then
8984   withval="$with_gc"
8985   case "$withval" in
8986   simple | page)
8987     GGC=ggc-$withval
8988     ;;
8989   *)
8990     { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8991     ;;
8992 esac
8993 else
8994   if test $ac_cv_func_mmap_anywhere = yes \
8995     || test $ac_cv_func_valloc = yes; then
8996   GGC=ggc-page
8997 else
8998   GGC=ggc-simple
8999 fi
9000 fi
9001
9002
9003 echo "Using $GGC for garbage collection."
9004
9005 # Build a new-abi (c++) system
9006 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9007 if test "${enable_new_gxx_abi+set}" = set; then
9008   enableval="$enable_new_gxx_abi"
9009   cat >> confdefs.h <<\EOF
9010 #define ENABLE_NEW_GXX_ABI 1
9011 EOF
9012
9013 GXX_ABI_FLAG='-fnew-abi'
9014 echo "Building a new-abi g++ compiler."
9015
9016 fi
9017
9018
9019
9020 # Build a new-libstdc++ system (ie libstdc++-v3)
9021 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9022 echo "configure:9023: checking for libstdc++ to install" >&5
9023 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9024 if test "${enable_libstdcxx_v3+set}" = set; then
9025   enableval="$enable_libstdcxx_v3"
9026   enable_libstdcxx_v3=yes
9027 else
9028   enable_libstdcxx_v3=no
9029 fi
9030
9031
9032 if test x$enable_libstdcxx_v3 = xyes; then
9033   echo "$ac_t""v3" 1>&6
9034   ac_esn=1
9035 else
9036   echo "$ac_t""v2" 1>&6
9037   ac_esn=0
9038 fi
9039 cat >> confdefs.h <<EOF
9040 #define ENABLE_STD_NAMESPACE $ac_esn
9041 EOF
9042
9043
9044 # Make empty files to contain the specs and options for each language.
9045 # Then add #include lines to for a compiler that has specs and/or options.
9046
9047 lang_specs_files=
9048 lang_options_files=
9049 lang_tree_files=
9050 rm -f specs.h options.h gencheck.h
9051 touch specs.h options.h gencheck.h
9052 for subdir in . $subdirs
9053 do
9054         if test -f $srcdir/$subdir/lang-specs.h; then
9055                 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9056                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9057         fi
9058         if test -f $srcdir/$subdir/lang-options.h; then
9059                 echo "#include \"$subdir/lang-options.h\"" >>options.h
9060                 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
9061         fi
9062         if test -f $srcdir/$subdir/$subdir-tree.def; then
9063                 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9064                 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9065         fi
9066 done
9067
9068 # These (without "all_") are set in each config-lang.in.
9069 # `language' must be a single word so is spelled singularly.
9070 all_languages=
9071 all_boot_languages=
9072 all_compilers=
9073 all_stagestuff=
9074 all_diff_excludes=
9075 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9076 # List of language makefile fragments.
9077 all_lang_makefiles=
9078 all_headers=
9079 all_lib2funcs=
9080
9081 # Add the language fragments.
9082 # Languages are added via two mechanisms.  Some information must be
9083 # recorded in makefile variables, these are defined in config-lang.in.
9084 # We accumulate them and plug them into the main Makefile.
9085 # The other mechanism is a set of hooks for each of the main targets
9086 # like `clean', `install', etc.
9087
9088 language_fragments="Make-lang"
9089 language_hooks="Make-hooks"
9090 oldstyle_subdirs=
9091
9092 for s in .. $subdirs
9093 do
9094         if test $s != ".."
9095         then
9096                 language=
9097                 boot_language=
9098                 compilers=
9099                 stagestuff=
9100                 diff_excludes=
9101                 headers=
9102                 outputs=
9103                 lib2funcs=
9104                 . ${srcdir}/$s/config-lang.in
9105                 if test "x$language" = x
9106                 then
9107                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9108                         exit 1
9109                 fi
9110                 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9111                 all_languages="$all_languages $language"
9112                 if test "x$boot_language" = xyes
9113                 then
9114                         all_boot_languages="$all_boot_languages $language"
9115                 fi
9116                 all_compilers="$all_compilers $compilers"
9117                 all_stagestuff="$all_stagestuff $stagestuff"
9118                 all_diff_excludes="$all_diff_excludes $diff_excludes"
9119                 all_headers="$all_headers $headers"
9120                 all_outputs="$all_outputs $outputs"
9121                 if test x$outputs = x
9122                 then
9123                         oldstyle_subdirs="$oldstyle_subdirs $s"
9124                 fi
9125                 all_lib2funcs="$all_lib2funcs $lib2funcs"
9126         fi
9127 done
9128
9129 # Since we can't use `::' targets, we link each language in
9130 # with a set of hooks, reached indirectly via lang.${target}.
9131
9132 rm -f Make-hooks
9133 touch Make-hooks
9134 target_list="all.build all.cross start.encap rest.encap \
9135         info dvi \
9136         install-normal install-common install-info install-man \
9137         uninstall distdir \
9138         mostlyclean clean distclean extraclean maintainer-clean \
9139         stage1 stage2 stage3 stage4"
9140 for t in $target_list
9141 do
9142         x=
9143         for lang in .. $all_languages
9144         do
9145                 if test $lang != ".."; then
9146                         x="$x $lang.$t"
9147                 fi
9148         done
9149         echo "lang.$t: $x" >> Make-hooks
9150 done
9151
9152 # If we're not building in srcdir, create .gdbinit.
9153
9154 if test ! -f Makefile.in; then
9155         echo "dir ." > .gdbinit
9156         echo "dir ${srcdir}" >> .gdbinit
9157         if test x$gdb_needs_out_file_path = xyes
9158         then
9159                 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9160         fi
9161         if test "x$subdirs" != x; then
9162                 for s in $subdirs
9163                 do
9164                         echo "dir ${srcdir}/$s" >> .gdbinit
9165                 done
9166         fi
9167         echo "source ${srcdir}/.gdbinit" >> .gdbinit
9168 fi
9169
9170 # Define variables host_canonical and build_canonical
9171 # because some Cygnus local changes in the Makefile depend on them.
9172 build_canonical=${build}
9173 host_canonical=${host}
9174 target_subdir=
9175 if test "${host}" != "${target}" ; then
9176     target_subdir=${target}/
9177 fi
9178
9179
9180
9181         
9182 # If this is using newlib, then define inhibit_libc in
9183 # LIBGCC2_CFLAGS.  This will cause __eprintf to be left out of
9184 # libgcc.a, but that's OK because newib should have its own version of
9185 # assert.h.
9186 inhibit_libc=
9187 if test x$with_newlib = xyes; then
9188         inhibit_libc=-Dinhibit_libc
9189 fi
9190
9191
9192 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9193 # absolute path for gcc_tooldir based on inserting the number of up-directory
9194 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9195 # $(libsubdir)/@(unlibsubdir) based path.
9196 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9197 # make and thus we'd get different behavior depending on where we built the
9198 # sources.
9199 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
9200     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9201 else
9202 # An explanation of the sed strings:
9203 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
9204 #  -e 's|/$||'            match a trailing forward slash and eliminates it
9205 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
9206 #  -e 's|/[^/]*|../|g'    replaces each occurance of /<directory> with ../
9207 #
9208 # (*) Note this pattern overwrites the first character of the string
9209 # with a forward slash if one is not already present.  This is not a
9210 # problem because the exact names of the sub-directories concerned is
9211 # unimportant, just the number of them matters.
9212 #
9213 # The practical upshot of these patterns is like this:
9214 #
9215 #  prefix     exec_prefix        result
9216 #  ------     -----------        ------
9217 #   /foo        /foo/bar          ../
9218 #   /foo/       /foo/bar          ../
9219 #   /foo        /foo/bar/         ../
9220 #   /foo/       /foo/bar/         ../
9221 #   /foo        /foo/bar/ugg      ../../
9222 #
9223     dollar='$$'
9224     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9225 fi
9226
9227
9228
9229 # Nothing to do for FLOAT_H, float_format already handled.
9230 objdir=`pwd`
9231
9232
9233 # Process the language and host/target makefile fragments.
9234 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9235
9236 # Substitute configuration variables
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295 # Echo that links are built
9296 if test x$host = x$target
9297 then
9298         str1="native "
9299 else
9300         str1="cross-"
9301         str2=" from $host"
9302 fi
9303
9304 if test x$host != x$build
9305 then
9306         str3=" on a $build system"
9307 fi
9308
9309 if test "x$str2" != x || test "x$str3" != x
9310 then
9311         str4=
9312 fi
9313
9314 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9315
9316 if test "x$str2" != x || test "x$str3" != x
9317 then
9318         echo " ${str2}${str3}." 1>&2
9319 fi
9320
9321 # Truncate the target if necessary
9322 if test x$host_truncate_target != x; then
9323         target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9324 fi
9325
9326 # Configure the subdirectories
9327 # AC_CONFIG_SUBDIRS($subdirs)
9328
9329 # Create the Makefile
9330 # and configure language subdirectories
9331 trap '' 1 2 15
9332 cat > confcache <<\EOF
9333 # This file is a shell script that caches the results of configure
9334 # tests run on this system so they can be shared between configure
9335 # scripts and configure runs.  It is not useful on other systems.
9336 # If it contains results you don't want to keep, you may remove or edit it.
9337 #
9338 # By default, configure uses ./config.cache as the cache file,
9339 # creating it if it does not exist already.  You can give configure
9340 # the --cache-file=FILE option to use a different cache file; that is
9341 # what configure does when it calls configure scripts in
9342 # subdirectories, so they share the cache.
9343 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9344 # config.status only pays attention to the cache file if you give it the
9345 # --recheck option to rerun configure.
9346 #
9347 EOF
9348 # The following way of writing the cache mishandles newlines in values,
9349 # but we know of no workaround that is simple, portable, and efficient.
9350 # So, don't put newlines in cache variables' values.
9351 # Ultrix sh set writes to stderr and can't be redirected directly,
9352 # and sets the high bit in the cache file unless we assign to the vars.
9353 (set) 2>&1 |
9354   case `(ac_space=' '; set | grep ac_space) 2>&1` in
9355   *ac_space=\ *)
9356     # `set' does not quote correctly, so add quotes (double-quote substitution
9357     # turns \\\\ into \\, and sed turns \\ into \).
9358     sed -n \
9359       -e "s/'/'\\\\''/g" \
9360       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9361     ;;
9362   *)
9363     # `set' quotes correctly as required by POSIX, so do not add quotes.
9364     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9365     ;;
9366   esac >> confcache
9367 if cmp -s $cache_file confcache; then
9368   :
9369 else
9370   if test -w $cache_file; then
9371     echo "updating cache $cache_file"
9372     cat confcache > $cache_file
9373   else
9374     echo "not updating unwritable cache $cache_file"
9375   fi
9376 fi
9377 rm -f confcache
9378
9379 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9380
9381 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9382 # Let make expand exec_prefix.
9383 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9384
9385 # Any assignment to VPATH causes Sun make to only execute
9386 # the first set of double-colon rules, so remove it if not needed.
9387 # If there is a colon in the path, we need to keep it.
9388 if test "x$srcdir" = x.; then
9389   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
9390 fi
9391
9392 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9393
9394 DEFS=-DHAVE_CONFIG_H
9395
9396 # Without the "./", some shells look in PATH for config.status.
9397 : ${CONFIG_STATUS=./config.status}
9398
9399 echo creating $CONFIG_STATUS
9400 rm -f $CONFIG_STATUS
9401 cat > $CONFIG_STATUS <<EOF
9402 #! /bin/sh
9403 # Generated automatically by configure.
9404 # Run this file to recreate the current configuration.
9405 # This directory was configured as follows,
9406 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9407 #
9408 # $0 $ac_configure_args
9409 #
9410 # Compiler output produced by configure, useful for debugging
9411 # configure, is in ./config.log if it exists.
9412
9413 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9414 for ac_option
9415 do
9416   case "\$ac_option" in
9417   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9418     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9419     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9420   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9421     echo "$CONFIG_STATUS generated by autoconf version 2.13"
9422     exit 0 ;;
9423   -help | --help | --hel | --he | --h)
9424     echo "\$ac_cs_usage"; exit 0 ;;
9425   *) echo "\$ac_cs_usage"; exit 1 ;;
9426   esac
9427 done
9428
9429 ac_given_srcdir=$srcdir
9430
9431 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9432 EOF
9433 cat >> $CONFIG_STATUS <<EOF
9434
9435 # Protect against being on the right side of a sed subst in config.status.
9436 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9437  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9438 $ac_vpsub
9439 $extrasub
9440 s%@SHELL@%$SHELL%g
9441 s%@CFLAGS@%$CFLAGS%g
9442 s%@CPPFLAGS@%$CPPFLAGS%g
9443 s%@CXXFLAGS@%$CXXFLAGS%g
9444 s%@FFLAGS@%$FFLAGS%g
9445 s%@DEFS@%$DEFS%g
9446 s%@LDFLAGS@%$LDFLAGS%g
9447 s%@LIBS@%$LIBS%g
9448 s%@exec_prefix@%$exec_prefix%g
9449 s%@prefix@%$prefix%g
9450 s%@program_transform_name@%$program_transform_name%g
9451 s%@bindir@%$bindir%g
9452 s%@sbindir@%$sbindir%g
9453 s%@libexecdir@%$libexecdir%g
9454 s%@datadir@%$datadir%g
9455 s%@sysconfdir@%$sysconfdir%g
9456 s%@sharedstatedir@%$sharedstatedir%g
9457 s%@localstatedir@%$localstatedir%g
9458 s%@libdir@%$libdir%g
9459 s%@includedir@%$includedir%g
9460 s%@oldincludedir@%$oldincludedir%g
9461 s%@infodir@%$infodir%g
9462 s%@mandir@%$mandir%g
9463 s%@host@%$host%g
9464 s%@host_alias@%$host_alias%g
9465 s%@host_cpu@%$host_cpu%g
9466 s%@host_vendor@%$host_vendor%g
9467 s%@host_os@%$host_os%g
9468 s%@target@%$target%g
9469 s%@target_alias@%$target_alias%g
9470 s%@target_cpu@%$target_cpu%g
9471 s%@target_vendor@%$target_vendor%g
9472 s%@target_os@%$target_os%g
9473 s%@build@%$build%g
9474 s%@build_alias@%$build_alias%g
9475 s%@build_cpu@%$build_cpu%g
9476 s%@build_vendor@%$build_vendor%g
9477 s%@build_os@%$build_os%g
9478 s%@CC@%$CC%g
9479 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9480 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9481 s%@SET_MAKE@%$SET_MAKE%g
9482 s%@AWK@%$AWK%g
9483 s%@LEX@%$LEX%g
9484 s%@LEXLIB@%$LEXLIB%g
9485 s%@LN@%$LN%g
9486 s%@LN_S@%$LN_S%g
9487 s%@RANLIB@%$RANLIB%g
9488 s%@YACC@%$YACC%g
9489 s%@INSTALL@%$INSTALL%g
9490 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9491 s%@INSTALL_DATA@%$INSTALL_DATA%g
9492 s%@CPP@%$CPP%g
9493 s%@gnat@%$gnat%g
9494 s%@MAKEINFO@%$MAKEINFO%g
9495 s%@BUILD_INFO@%$BUILD_INFO%g
9496 s%@INSTALL_INFO@%$INSTALL_INFO%g
9497 s%@vfprintf@%$vfprintf%g
9498 s%@doprint@%$doprint%g
9499 s%@manext@%$manext%g
9500 s%@objext@%$objext%g
9501 s%@PACKAGE@%$PACKAGE%g
9502 s%@VERSION@%$VERSION%g
9503 s%@ALLOCA@%$ALLOCA%g
9504 s%@USE_NLS@%$USE_NLS%g
9505 s%@MSGFMT@%$MSGFMT%g
9506 s%@GMSGFMT@%$GMSGFMT%g
9507 s%@XGETTEXT@%$XGETTEXT%g
9508 s%@GENCAT@%$GENCAT%g
9509 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9510 s%@CATALOGS@%$CATALOGS%g
9511 s%@CATOBJEXT@%$CATOBJEXT%g
9512 s%@DATADIRNAME@%$DATADIRNAME%g
9513 s%@GMOFILES@%$GMOFILES%g
9514 s%@INSTOBJEXT@%$INSTOBJEXT%g
9515 s%@INTLDEPS@%$INTLDEPS%g
9516 s%@INTLLIBS@%$INTLLIBS%g
9517 s%@INTLOBJS@%$INTLOBJS%g
9518 s%@POFILES@%$POFILES%g
9519 s%@POSUB@%$POSUB%g
9520 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9521 s%@GT_NO@%$GT_NO%g
9522 s%@GT_YES@%$GT_YES%g
9523 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9524 s%@l@%$l%g
9525 s%@gthread_flags@%$gthread_flags%g
9526 s%@GGC@%$GGC%g
9527 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9528 s%@build_canonical@%$build_canonical%g
9529 s%@host_canonical@%$host_canonical%g
9530 s%@target_subdir@%$target_subdir%g
9531 s%@inhibit_libc@%$inhibit_libc%g
9532 s%@gcc_tooldir@%$gcc_tooldir%g
9533 s%@dollar@%$dollar%g
9534 s%@objdir@%$objdir%g
9535 s%@subdirs@%$subdirs%g
9536 s%@all_boot_languages@%$all_boot_languages%g
9537 s%@all_compilers@%$all_compilers%g
9538 s%@all_diff_excludes@%$all_diff_excludes%g
9539 s%@all_headers@%$all_headers%g
9540 s%@all_lang_makefiles@%$all_lang_makefiles%g
9541 s%@all_languages@%$all_languages%g
9542 s%@all_lib2funcs@%$all_lib2funcs%g
9543 s%@all_stagestuff@%$all_stagestuff%g
9544 s%@build_exeext@%$build_exeext%g
9545 s%@build_install_headers_dir@%$build_install_headers_dir%g
9546 s%@build_xm_file_list@%$build_xm_file_list%g
9547 s%@cc_set_by_configure@%$cc_set_by_configure%g
9548 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9549 s%@cpp_install_dir@%$cpp_install_dir%g
9550 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9551 s%@dep_tmake_file@%$dep_tmake_file%g
9552 s%@extra_c_flags@%$extra_c_flags%g
9553 s%@extra_c_objs@%$extra_c_objs%g
9554 s%@extra_cpp_objs@%$extra_cpp_objs%g
9555 s%@extra_cxx_objs@%$extra_cxx_objs%g
9556 s%@extra_headers_list@%$extra_headers_list%g
9557 s%@extra_objs@%$extra_objs%g
9558 s%@extra_parts@%$extra_parts%g
9559 s%@extra_passes@%$extra_passes%g
9560 s%@extra_programs@%$extra_programs%g
9561 s%@float_h_file@%$float_h_file%g
9562 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9563 s%@gcc_version@%$gcc_version%g
9564 s%@gcc_version_trigger@%$gcc_version_trigger%g
9565 s%@host_exeext@%$host_exeext%g
9566 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9567 s%@host_xm_file_list@%$host_xm_file_list%g
9568 s%@install@%$install%g
9569 s%@lang_options_files@%$lang_options_files%g
9570 s%@lang_specs_files@%$lang_specs_files%g
9571 s%@lang_tree_files@%$lang_tree_files%g
9572 s%@local_prefix@%$local_prefix%g
9573 s%@maybe_use_collect2@%$maybe_use_collect2%g
9574 s%@md_file@%$md_file%g
9575 s%@objc_boehm_gc@%$objc_boehm_gc%g
9576 s%@out_file@%$out_file%g
9577 s%@out_object_file@%$out_object_file%g
9578 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9579 s%@symbolic_link@%$symbolic_link%g
9580 s%@thread_file@%$thread_file%g
9581 s%@tm_file_list@%$tm_file_list%g
9582 s%@will_use_collect2@%$will_use_collect2%g
9583 /@target_overrides@/r $target_overrides
9584 s%@target_overrides@%%g
9585 /@host_overrides@/r $host_overrides
9586 s%@host_overrides@%%g
9587 s%@cross_defines@%$cross_defines%g
9588 /@cross_overrides@/r $cross_overrides
9589 s%@cross_overrides@%%g
9590 /@build_overrides@/r $build_overrides
9591 s%@build_overrides@%%g
9592 /@language_fragments@/r $language_fragments
9593 s%@language_fragments@%%g
9594 /@language_hooks@/r $language_hooks
9595 s%@language_hooks@%%g
9596
9597 CEOF
9598 EOF
9599
9600 cat >> $CONFIG_STATUS <<\EOF
9601
9602 # Split the substitutions into bite-sized pieces for seds with
9603 # small command number limits, like on Digital OSF/1 and HP-UX.
9604 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9605 ac_file=1 # Number of current file.
9606 ac_beg=1 # First line for current file.
9607 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9608 ac_more_lines=:
9609 ac_sed_cmds=""
9610 while $ac_more_lines; do
9611   if test $ac_beg -gt 1; then
9612     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9613   else
9614     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9615   fi
9616   if test ! -s conftest.s$ac_file; then
9617     ac_more_lines=false
9618     rm -f conftest.s$ac_file
9619   else
9620     if test -z "$ac_sed_cmds"; then
9621       ac_sed_cmds="sed -f conftest.s$ac_file"
9622     else
9623       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9624     fi
9625     ac_file=`expr $ac_file + 1`
9626     ac_beg=$ac_end
9627     ac_end=`expr $ac_end + $ac_max_sed_cmds`
9628   fi
9629 done
9630 if test -z "$ac_sed_cmds"; then
9631   ac_sed_cmds=cat
9632 fi
9633 EOF
9634
9635 cat >> $CONFIG_STATUS <<EOF
9636
9637 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9638 EOF
9639 cat >> $CONFIG_STATUS <<\EOF
9640 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9641   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9642   case "$ac_file" in
9643   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9644        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9645   *) ac_file_in="${ac_file}.in" ;;
9646   esac
9647
9648   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9649
9650   # Remove last slash and all that follows it.  Not all systems have dirname.
9651   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9652   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9653     # The file is in a subdirectory.
9654     test ! -d "$ac_dir" && mkdir "$ac_dir"
9655     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9656     # A "../" for each directory in $ac_dir_suffix.
9657     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9658   else
9659     ac_dir_suffix= ac_dots=
9660   fi
9661
9662   case "$ac_given_srcdir" in
9663   .)  srcdir=.
9664       if test -z "$ac_dots"; then top_srcdir=.
9665       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9666   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9667   *) # Relative path.
9668     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9669     top_srcdir="$ac_dots$ac_given_srcdir" ;;
9670   esac
9671
9672
9673   echo creating "$ac_file"
9674   rm -f "$ac_file"
9675   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9676   case "$ac_file" in
9677   *Makefile*) ac_comsub="1i\\
9678 # $configure_input" ;;
9679   *) ac_comsub= ;;
9680   esac
9681
9682   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9683   sed -e "$ac_comsub
9684 s%@configure_input@%$configure_input%g
9685 s%@srcdir@%$srcdir%g
9686 s%@top_srcdir@%$top_srcdir%g
9687 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9688 fi; done
9689 rm -f conftest.s*
9690
9691 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9692 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9693 #
9694 # ac_d sets the value in "#define NAME VALUE" lines.
9695 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9696 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
9697 ac_dC='\3'
9698 ac_dD='%g'
9699 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9700 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9701 ac_uB='\([      ]\)%\1#\2define\3'
9702 ac_uC=' '
9703 ac_uD='\4%g'
9704 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9705 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9706 ac_eB='$%\1#\2define\3'
9707 ac_eC=' '
9708 ac_eD='%g'
9709
9710 if test "${CONFIG_HEADERS+set}" != set; then
9711 EOF
9712 cat >> $CONFIG_STATUS <<EOF
9713   CONFIG_HEADERS="auto-host.h:config.in"
9714 EOF
9715 cat >> $CONFIG_STATUS <<\EOF
9716 fi
9717 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9718   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9719   case "$ac_file" in
9720   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9721        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9722   *) ac_file_in="${ac_file}.in" ;;
9723   esac
9724
9725   echo creating $ac_file
9726
9727   rm -f conftest.frag conftest.in conftest.out
9728   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9729   cat $ac_file_inputs > conftest.in
9730
9731 EOF
9732
9733 # Transform confdefs.h into a sed script conftest.vals that substitutes
9734 # the proper values into config.h.in to produce config.h.  And first:
9735 # Protect against being on the right side of a sed subst in config.status.
9736 # Protect against being in an unquoted here document in config.status.
9737 rm -f conftest.vals
9738 cat > conftest.hdr <<\EOF
9739 s/[\\&%]/\\&/g
9740 s%[\\$`]%\\&%g
9741 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9742 s%ac_d%ac_u%gp
9743 s%ac_u%ac_e%gp
9744 EOF
9745 sed -n -f conftest.hdr confdefs.h > conftest.vals
9746 rm -f conftest.hdr
9747
9748 # This sed command replaces #undef with comments.  This is necessary, for
9749 # example, in the case of _POSIX_SOURCE, which is predefined and required
9750 # on some systems where configure will not decide to define it.
9751 cat >> conftest.vals <<\EOF
9752 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9753 EOF
9754
9755 # Break up conftest.vals because some shells have a limit on
9756 # the size of here documents, and old seds have small limits too.
9757
9758 rm -f conftest.tail
9759 while :
9760 do
9761   ac_lines=`grep -c . conftest.vals`
9762   # grep -c gives empty output for an empty file on some AIX systems.
9763   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9764   # Write a limited-size here document to conftest.frag.
9765   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9766   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9767   echo 'CEOF
9768   sed -f conftest.frag conftest.in > conftest.out
9769   rm -f conftest.in
9770   mv conftest.out conftest.in
9771 ' >> $CONFIG_STATUS
9772   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9773   rm -f conftest.vals
9774   mv conftest.tail conftest.vals
9775 done
9776 rm -f conftest.vals
9777
9778 cat >> $CONFIG_STATUS <<\EOF
9779   rm -f conftest.frag conftest.h
9780   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
9781   cat conftest.in >> conftest.h
9782   rm -f conftest.in
9783   if cmp -s $ac_file conftest.h 2>/dev/null; then
9784     echo "$ac_file is unchanged"
9785     rm -f conftest.h
9786   else
9787     # Remove last slash and all that follows it.  Not all systems have dirname.
9788       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9789       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9790       # The file is in a subdirectory.
9791       test ! -d "$ac_dir" && mkdir "$ac_dir"
9792     fi
9793     rm -f $ac_file
9794     mv conftest.h $ac_file
9795   fi
9796 fi; done
9797
9798 EOF
9799
9800 cat >> $CONFIG_STATUS <<EOF
9801 ac_sources="$nls_cv_header_libgt"
9802 ac_dests="$nls_cv_header_intl"
9803 EOF
9804
9805 cat >> $CONFIG_STATUS <<\EOF
9806 srcdir=$ac_given_srcdir
9807 while test -n "$ac_sources"; do
9808   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9809   set $ac_sources; ac_source=$1; shift; ac_sources=$*
9810
9811   echo "linking $srcdir/$ac_source to $ac_dest"
9812
9813   if test ! -r $srcdir/$ac_source; then
9814     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9815   fi
9816   rm -f $ac_dest
9817
9818   # Make relative symlinks.
9819   # Remove last slash and all that follows it.  Not all systems have dirname.
9820   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9821   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9822     # The dest file is in a subdirectory.
9823     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9824     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9825     # A "../" for each directory in $ac_dest_dir_suffix.
9826     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9827   else
9828     ac_dest_dir_suffix= ac_dots=
9829   fi
9830
9831   case "$srcdir" in
9832   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9833   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9834   esac
9835
9836   # Make a symlink if possible; otherwise try a hard link.
9837   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9838     ln $srcdir/$ac_source $ac_dest; then :
9839   else
9840     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9841   fi
9842 done
9843 EOF
9844 cat >> $CONFIG_STATUS <<EOF
9845
9846
9847 host='${host}'
9848 build='${build}'
9849 target='${target}'
9850 target_alias='${target_alias}'
9851 srcdir='${srcdir}'
9852 subdirs='${subdirs}'
9853 oldstyle_subdirs='${oldstyle_subdirs}'
9854 symbolic_link='${symbolic_link}'
9855 program_transform_set='${program_transform_set}'
9856 program_transform_name='${program_transform_name}'
9857 dep_host_xmake_file='${dep_host_xmake_file}'
9858 host_xmake_file='${host_xmake_file}'
9859 dep_tmake_file='${dep_tmake_file}'
9860 tmake_file='${tmake_file}'
9861 thread_file='${thread_file}'
9862 gcc_version='${gcc_version}'
9863 gcc_version_trigger='${gcc_version_trigger}'
9864 local_prefix='${local_prefix}'
9865 build_install_headers_dir='${build_install_headers_dir}'
9866 build_exeext='${build_exeext}'
9867 host_exeext='${host_exeext}'
9868 out_file='${out_file}'
9869 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9870 SET_MAKE='${SET_MAKE}'
9871 target_list='${target_list}'
9872 target_overrides='${target_overrides}'
9873 host_overrides='${host_overrides}'
9874 cross_defines='${cross_defines}'
9875 cross_overrides='${cross_overrides}'
9876 build_overrides='${build_overrides}'
9877 cpp_install_dir='${cpp_install_dir}'
9878
9879 EOF
9880 cat >> $CONFIG_STATUS <<\EOF
9881 case "$CONFIG_FILES" in *po/Makefile.in*)
9882         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9883       esac
9884
9885 . $srcdir/configure.lang
9886 case x$CONFIG_HEADERS in
9887 xauto-host.h:config.in)
9888 echo > cstamp-h ;;
9889 esac
9890 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9891 # bootstrapping and the installation procedure can still use
9892 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
9893 # FLAGS_TO_PASS has been modified to solve the problem there.
9894 # This is virtually a duplicate of what happens in configure.lang; we do
9895 # an extra check to make sure this only happens if ln -s can be used.
9896 if test "$symbolic_link" = "ln -s"; then
9897  for d in .. ${subdirs} ; do
9898    if test $d != ..; then
9899         STARTDIR=`pwd`
9900         cd $d
9901         for t in stage1 stage2 stage3 stage4 include
9902         do
9903                 rm -f $t
9904                 $symbolic_link ../$t $t 2>/dev/null
9905         done
9906         cd $STARTDIR
9907    fi
9908  done
9909 else true ; fi
9910 # Avoid having to add intl to our include paths.
9911 if test -f intl/libintl.h; then
9912   echo creating libintl.h
9913   echo '#include "intl/libintl.h"' >libintl.h
9914 fi
9915
9916 exit 0
9917 EOF
9918 chmod +x $CONFIG_STATUS
9919 rm -fr confdefs* $ac_clean_files
9920 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9921