OSDN Git Service

* Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
[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 gawk mawk 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
2406 int main() {
2407
2408 /* The GNU C library defines this for functions which it implements
2409     to always fail with ENOSYS.  Some functions are actually named
2410     something starting with __ and the normal name is an alias.  */
2411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2412 choke me
2413 #else
2414 $ac_func();
2415 #endif
2416
2417 ; return 0; }
2418 EOF
2419 if { (eval echo configure:2420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2420   rm -rf conftest*
2421   eval "ac_cv_func_$ac_func=yes"
2422 else
2423   echo "configure: failed program was:" >&5
2424   cat conftest.$ac_ext >&5
2425   rm -rf conftest*
2426   eval "ac_cv_func_$ac_func=no"
2427 fi
2428 rm -f conftest*
2429 fi
2430
2431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2432   echo "$ac_t""yes" 1>&6
2433     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2434   cat >> confdefs.h <<EOF
2435 #define $ac_tr_func 1
2436 EOF
2437  
2438 else
2439   echo "$ac_t""no" 1>&6
2440 fi
2441 done
2442
2443
2444 # Make sure wchar_t is available
2445 #AC_CHECK_TYPE(wchar_t, unsigned int)
2446
2447 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2448 echo "configure:2449: checking for vprintf" >&5
2449 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2450   echo $ac_n "(cached) $ac_c" 1>&6
2451 else
2452   cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2455 /* System header to define __stub macros and hopefully few prototypes,
2456     which can conflict with char vprintf(); below.  */
2457 #include <assert.h>
2458 /* Override any gcc2 internal prototype to avoid an error.  */
2459 /* We use char because int might match the return type of a gcc2
2460     builtin and then its argument prototype would still apply.  */
2461 char vprintf();
2462
2463 int main() {
2464
2465 /* The GNU C library defines this for functions which it implements
2466     to always fail with ENOSYS.  Some functions are actually named
2467     something starting with __ and the normal name is an alias.  */
2468 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2469 choke me
2470 #else
2471 vprintf();
2472 #endif
2473
2474 ; return 0; }
2475 EOF
2476 if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2477   rm -rf conftest*
2478   eval "ac_cv_func_vprintf=yes"
2479 else
2480   echo "configure: failed program was:" >&5
2481   cat conftest.$ac_ext >&5
2482   rm -rf conftest*
2483   eval "ac_cv_func_vprintf=no"
2484 fi
2485 rm -f conftest*
2486 fi
2487
2488 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2489   echo "$ac_t""yes" 1>&6
2490   cat >> confdefs.h <<\EOF
2491 #define HAVE_VPRINTF 1
2492 EOF
2493
2494 else
2495   echo "$ac_t""no" 1>&6
2496 fi
2497
2498 if test "$ac_cv_func_vprintf" != yes; then
2499 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2500 echo "configure:2501: checking for _doprnt" >&5
2501 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2502   echo $ac_n "(cached) $ac_c" 1>&6
2503 else
2504   cat > conftest.$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2507 /* System header to define __stub macros and hopefully few prototypes,
2508     which can conflict with char _doprnt(); below.  */
2509 #include <assert.h>
2510 /* Override any gcc2 internal prototype to avoid an error.  */
2511 /* We use char because int might match the return type of a gcc2
2512     builtin and then its argument prototype would still apply.  */
2513 char _doprnt();
2514
2515 int main() {
2516
2517 /* The GNU C library defines this for functions which it implements
2518     to always fail with ENOSYS.  Some functions are actually named
2519     something starting with __ and the normal name is an alias.  */
2520 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2521 choke me
2522 #else
2523 _doprnt();
2524 #endif
2525
2526 ; return 0; }
2527 EOF
2528 if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2529   rm -rf conftest*
2530   eval "ac_cv_func__doprnt=yes"
2531 else
2532   echo "configure: failed program was:" >&5
2533   cat conftest.$ac_ext >&5
2534   rm -rf conftest*
2535   eval "ac_cv_func__doprnt=no"
2536 fi
2537 rm -f conftest*
2538 fi
2539
2540 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2541   echo "$ac_t""yes" 1>&6
2542   cat >> confdefs.h <<\EOF
2543 #define HAVE_DOPRNT 1
2544 EOF
2545
2546 else
2547   echo "$ac_t""no" 1>&6
2548 fi
2549
2550 fi
2551
2552 vfprintf=
2553 doprint=
2554 if test $ac_cv_func_vprintf != yes ; then
2555   vfprintf=vfprintf.o
2556   if test $ac_cv_func__doprnt != yes ; then
2557     doprint=doprint.o
2558   fi
2559 fi
2560
2561
2562
2563 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2564 echo "configure:2565: checking whether the printf functions support %p" >&5
2565 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2566   echo $ac_n "(cached) $ac_c" 1>&6
2567 else
2568   if test "$cross_compiling" = yes; then
2569   gcc_cv_func_printf_ptr=no
2570 else
2571   cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2574 #include <stdio.h>
2575
2576 int main()
2577 {
2578   char buf[64];
2579   char *p = buf, *q = NULL;
2580   sprintf(buf, "%p", p);
2581   sscanf(buf, "%p", &q);
2582   return (p != q);
2583 }
2584 EOF
2585 if { (eval echo configure:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2586 then
2587   gcc_cv_func_printf_ptr=yes
2588 else
2589   echo "configure: failed program was:" >&5
2590   cat conftest.$ac_ext >&5
2591   rm -fr conftest*
2592   gcc_cv_func_printf_ptr=no
2593 fi
2594 rm -fr conftest*
2595 fi
2596
2597 rm -f core core.* *.core
2598 fi
2599
2600 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2601 if test $gcc_cv_func_printf_ptr = yes ; then
2602   cat >> confdefs.h <<\EOF
2603 #define HAVE_PRINTF_PTR 1
2604 EOF
2605
2606 fi
2607
2608
2609 case "${host}" in
2610 *-*-uwin*)
2611   # Under some versions of uwin, vfork is notoriously buggy and the test 
2612   # can hang configure; on other versions, vfork exists just as a stub.
2613   # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2614   ac_cv_func_vfork_works=no
2615   ;;
2616 esac
2617 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2618 echo "configure:2619: checking for pid_t" >&5
2619 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2620   echo $ac_n "(cached) $ac_c" 1>&6
2621 else
2622   cat > conftest.$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2625 #include <sys/types.h>
2626 #if STDC_HEADERS
2627 #include <stdlib.h>
2628 #include <stddef.h>
2629 #endif
2630 EOF
2631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2632   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2633   rm -rf conftest*
2634   ac_cv_type_pid_t=yes
2635 else
2636   rm -rf conftest*
2637   ac_cv_type_pid_t=no
2638 fi
2639 rm -f conftest*
2640
2641 fi
2642 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2643 if test $ac_cv_type_pid_t = no; then
2644   cat >> confdefs.h <<\EOF
2645 #define pid_t int
2646 EOF
2647
2648 fi
2649
2650 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2651 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2652 echo "configure:2653: checking for vfork.h" >&5
2653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2654   echo $ac_n "(cached) $ac_c" 1>&6
2655 else
2656   cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2659 #include <vfork.h>
2660 EOF
2661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2662 { (eval echo configure:2663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2664 if test -z "$ac_err"; then
2665   rm -rf conftest*
2666   eval "ac_cv_header_$ac_safe=yes"
2667 else
2668   echo "$ac_err" >&5
2669   echo "configure: failed program was:" >&5
2670   cat conftest.$ac_ext >&5
2671   rm -rf conftest*
2672   eval "ac_cv_header_$ac_safe=no"
2673 fi
2674 rm -f conftest*
2675 fi
2676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2677   echo "$ac_t""yes" 1>&6
2678   cat >> confdefs.h <<\EOF
2679 #define HAVE_VFORK_H 1
2680 EOF
2681
2682 else
2683   echo "$ac_t""no" 1>&6
2684 fi
2685
2686 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2687 echo "configure:2688: checking for working vfork" >&5
2688 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2689   echo $ac_n "(cached) $ac_c" 1>&6
2690 else
2691   if test "$cross_compiling" = yes; then
2692   echo $ac_n "checking for vfork""... $ac_c" 1>&6
2693 echo "configure:2694: checking for vfork" >&5
2694 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2695   echo $ac_n "(cached) $ac_c" 1>&6
2696 else
2697   cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2700 /* System header to define __stub macros and hopefully few prototypes,
2701     which can conflict with char vfork(); below.  */
2702 #include <assert.h>
2703 /* Override any gcc2 internal prototype to avoid an error.  */
2704 /* We use char because int might match the return type of a gcc2
2705     builtin and then its argument prototype would still apply.  */
2706 char vfork();
2707
2708 int main() {
2709
2710 /* The GNU C library defines this for functions which it implements
2711     to always fail with ENOSYS.  Some functions are actually named
2712     something starting with __ and the normal name is an alias.  */
2713 #if defined (__stub_vfork) || defined (__stub___vfork)
2714 choke me
2715 #else
2716 vfork();
2717 #endif
2718
2719 ; return 0; }
2720 EOF
2721 if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2722   rm -rf conftest*
2723   eval "ac_cv_func_vfork=yes"
2724 else
2725   echo "configure: failed program was:" >&5
2726   cat conftest.$ac_ext >&5
2727   rm -rf conftest*
2728   eval "ac_cv_func_vfork=no"
2729 fi
2730 rm -f conftest*
2731 fi
2732
2733 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2734   echo "$ac_t""yes" 1>&6
2735   :
2736 else
2737   echo "$ac_t""no" 1>&6
2738 fi
2739
2740 ac_cv_func_vfork_works=$ac_cv_func_vfork
2741 else
2742   cat > conftest.$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2745 /* Thanks to Paul Eggert for this test.  */
2746 #include <stdio.h>
2747 #include <sys/types.h>
2748 #include <sys/stat.h>
2749 #ifdef HAVE_UNISTD_H
2750 #include <unistd.h>
2751 #endif
2752 #ifdef HAVE_VFORK_H
2753 #include <vfork.h>
2754 #endif
2755 /* On some sparc systems, changes by the child to local and incoming
2756    argument registers are propagated back to the parent.
2757    The compiler is told about this with #include <vfork.h>,
2758    but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2759    Test for this by using a static variable whose address
2760    is put into a register that is clobbered by the vfork.  */
2761 static
2762 #ifdef __cplusplus
2763 sparc_address_test (int arg)
2764 #else
2765 sparc_address_test (arg) int arg;
2766 #endif
2767 {
2768   static pid_t child;
2769   if (!child) {
2770     child = vfork ();
2771     if (child < 0) {
2772       perror ("vfork");
2773       _exit(2);
2774     }
2775     if (!child) {
2776       arg = getpid();
2777       write(-1, "", 0);
2778       _exit (arg);
2779     }
2780   }
2781 }
2782 main() {
2783   pid_t parent = getpid ();
2784   pid_t child;
2785
2786   sparc_address_test ();
2787
2788   child = vfork ();
2789
2790   if (child == 0) {
2791     /* Here is another test for sparc vfork register problems.
2792        This test uses lots of local variables, at least
2793        as many local variables as main has allocated so far
2794        including compiler temporaries.  4 locals are enough for
2795        gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2796        A buggy compiler should reuse the register of parent
2797        for one of the local variables, since it will think that
2798        parent can't possibly be used any more in this routine.
2799        Assigning to the local variable will thus munge parent
2800        in the parent process.  */
2801     pid_t
2802       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2803       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2804     /* Convince the compiler that p..p7 are live; otherwise, it might
2805        use the same hardware register for all 8 local variables.  */
2806     if (p != p1 || p != p2 || p != p3 || p != p4
2807         || p != p5 || p != p6 || p != p7)
2808       _exit(1);
2809
2810     /* On some systems (e.g. IRIX 3.3),
2811        vfork doesn't separate parent from child file descriptors.
2812        If the child closes a descriptor before it execs or exits,
2813        this munges the parent's descriptor as well.
2814        Test for this by closing stdout in the child.  */
2815     _exit(close(fileno(stdout)) != 0);
2816   } else {
2817     int status;
2818     struct stat st;
2819
2820     while (wait(&status) != child)
2821       ;
2822     exit(
2823          /* Was there some problem with vforking?  */
2824          child < 0
2825
2826          /* Did the child fail?  (This shouldn't happen.)  */
2827          || status
2828
2829          /* Did the vfork/compiler bug occur?  */
2830          || parent != getpid()
2831
2832          /* Did the file descriptor bug occur?  */
2833          || fstat(fileno(stdout), &st) != 0
2834          );
2835   }
2836 }
2837 EOF
2838 if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2839 then
2840   ac_cv_func_vfork_works=yes
2841 else
2842   echo "configure: failed program was:" >&5
2843   cat conftest.$ac_ext >&5
2844   rm -fr conftest*
2845   ac_cv_func_vfork_works=no
2846 fi
2847 rm -fr conftest*
2848 fi
2849
2850 fi
2851
2852 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2853 if test $ac_cv_func_vfork_works = no; then
2854   cat >> confdefs.h <<\EOF
2855 #define vfork fork
2856 EOF
2857
2858 fi
2859
2860 for ac_hdr in unistd.h
2861 do
2862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2864 echo "configure:2865: checking for $ac_hdr" >&5
2865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2866   echo $ac_n "(cached) $ac_c" 1>&6
2867 else
2868   cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2871 #include <$ac_hdr>
2872 EOF
2873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2874 { (eval echo configure:2875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2876 if test -z "$ac_err"; then
2877   rm -rf conftest*
2878   eval "ac_cv_header_$ac_safe=yes"
2879 else
2880   echo "$ac_err" >&5
2881   echo "configure: failed program was:" >&5
2882   cat conftest.$ac_ext >&5
2883   rm -rf conftest*
2884   eval "ac_cv_header_$ac_safe=no"
2885 fi
2886 rm -f conftest*
2887 fi
2888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2889   echo "$ac_t""yes" 1>&6
2890     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2891   cat >> confdefs.h <<EOF
2892 #define $ac_tr_hdr 1
2893 EOF
2894  
2895 else
2896   echo "$ac_t""no" 1>&6
2897 fi
2898 done
2899
2900 for ac_func in getpagesize
2901 do
2902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2903 echo "configure:2904: checking for $ac_func" >&5
2904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2905   echo $ac_n "(cached) $ac_c" 1>&6
2906 else
2907   cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2910 /* System header to define __stub macros and hopefully few prototypes,
2911     which can conflict with char $ac_func(); below.  */
2912 #include <assert.h>
2913 /* Override any gcc2 internal prototype to avoid an error.  */
2914 /* We use char because int might match the return type of a gcc2
2915     builtin and then its argument prototype would still apply.  */
2916 char $ac_func();
2917
2918 int main() {
2919
2920 /* The GNU C library defines this for functions which it implements
2921     to always fail with ENOSYS.  Some functions are actually named
2922     something starting with __ and the normal name is an alias.  */
2923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2924 choke me
2925 #else
2926 $ac_func();
2927 #endif
2928
2929 ; return 0; }
2930 EOF
2931 if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2932   rm -rf conftest*
2933   eval "ac_cv_func_$ac_func=yes"
2934 else
2935   echo "configure: failed program was:" >&5
2936   cat conftest.$ac_ext >&5
2937   rm -rf conftest*
2938   eval "ac_cv_func_$ac_func=no"
2939 fi
2940 rm -f conftest*
2941 fi
2942
2943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2944   echo "$ac_t""yes" 1>&6
2945     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2946   cat >> confdefs.h <<EOF
2947 #define $ac_tr_func 1
2948 EOF
2949  
2950 else
2951   echo "$ac_t""no" 1>&6
2952 fi
2953 done
2954
2955 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2956 echo "configure:2957: checking for working mmap from /dev/zero" >&5
2957 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
2958   echo $ac_n "(cached) $ac_c" 1>&6
2959 else
2960   if test "$cross_compiling" = yes; then
2961   ac_cv_func_mmap_anywhere=no
2962 else
2963   cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966
2967 /* Test by Richard Henderson and Alexandre Oliva.
2968    Check whether mmap from /dev/zero works. */
2969 #include <sys/types.h>
2970 #include <fcntl.h>
2971 #include <sys/mman.h>
2972
2973 /* This mess was copied from the GNU getpagesize.h.  */
2974 #ifndef HAVE_GETPAGESIZE
2975 # ifdef HAVE_UNISTD_H
2976 #  include <unistd.h>
2977 # endif
2978
2979 /* Assume that all systems that can run configure have sys/param.h.  */
2980 # ifndef HAVE_SYS_PARAM_H
2981 #  define HAVE_SYS_PARAM_H 1
2982 # endif
2983
2984 # ifdef _SC_PAGESIZE
2985 #  define getpagesize() sysconf(_SC_PAGESIZE)
2986 # else /* no _SC_PAGESIZE */
2987 #  ifdef HAVE_SYS_PARAM_H
2988 #   include <sys/param.h>
2989 #   ifdef EXEC_PAGESIZE
2990 #    define getpagesize() EXEC_PAGESIZE
2991 #   else /* no EXEC_PAGESIZE */
2992 #    ifdef NBPG
2993 #     define getpagesize() NBPG * CLSIZE
2994 #     ifndef CLSIZE
2995 #      define CLSIZE 1
2996 #     endif /* no CLSIZE */
2997 #    else /* no NBPG */
2998 #     ifdef NBPC
2999 #      define getpagesize() NBPC
3000 #     else /* no NBPC */
3001 #      ifdef PAGESIZE
3002 #       define getpagesize() PAGESIZE
3003 #      endif /* PAGESIZE */
3004 #     endif /* no NBPC */
3005 #    endif /* no NBPG */
3006 #   endif /* no EXEC_PAGESIZE */
3007 #  else /* no HAVE_SYS_PARAM_H */
3008 #   define getpagesize() 8192   /* punt totally */
3009 #  endif /* no HAVE_SYS_PARAM_H */
3010 # endif /* no _SC_PAGESIZE */
3011
3012 #endif /* no HAVE_GETPAGESIZE */
3013
3014 int main()
3015 {
3016   char *x;
3017   int fd, pg;
3018
3019   fd = open("/dev/zero", O_RDWR);
3020   if (fd < 0)
3021     exit(1);
3022
3023   pg = getpagesize();
3024   x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3025   if (x == (char *) -1)
3026     exit(2);
3027
3028   *(int *)x += 1;
3029
3030   if (munmap(x, pg) < 0)
3031     exit(3);
3032
3033   exit(0);
3034 }
3035 EOF
3036 if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3037 then
3038   ac_cv_func_mmap_anywhere=yes
3039 else
3040   echo "configure: failed program was:" >&5
3041   cat conftest.$ac_ext >&5
3042   rm -fr conftest*
3043   ac_cv_func_mmap_anywhere=no
3044 fi
3045 rm -fr conftest*
3046 fi
3047
3048 fi
3049
3050 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3051 if test $ac_cv_func_mmap_anywhere = yes; then
3052   cat >> confdefs.h <<\EOF
3053 #define HAVE_MMAP_ANYWHERE 1
3054 EOF
3055
3056 fi
3057
3058 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3059 echo "configure:3060: checking for working mmap of a file" >&5
3060 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3061   echo $ac_n "(cached) $ac_c" 1>&6
3062 else
3063   # Create a file one thousand bytes long.
3064 for i in 1 2 3 4 5 6 7 8 9 0
3065 do for j in 1 2 3 4 5 6 7 8 9 0
3066 do echo $i $j xxxxx
3067 done
3068 done > conftestdata$$
3069
3070 if test "$cross_compiling" = yes; then
3071   ac_cv_func_mmap_file=no
3072 else
3073   cat > conftest.$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076
3077 /* Test by Zack Weinberg.  Modified from MMAP_ANYWHERE test by
3078    Richard Henderson and Alexandre Oliva.
3079    Check whether read-only mmap of a plain file works. */
3080 #include <sys/types.h>
3081 #include <sys/stat.h>
3082 #include <fcntl.h>
3083 #include <sys/mman.h>
3084
3085 int main()
3086 {
3087   char *x;
3088   int fd;
3089   struct stat st;
3090
3091   fd = open("conftestdata$$", O_RDONLY);
3092   if (fd < 0)
3093     exit(1);
3094
3095   if (fstat (fd, &st))
3096     exit(2);
3097
3098   x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3099   if (x == (char *) -1)
3100     exit(3);
3101
3102   if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3103     exit(4);
3104
3105   if (munmap(x, st.st_size) < 0)
3106     exit(5);
3107
3108   exit(0);
3109 }
3110 EOF
3111 if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3112 then
3113   ac_cv_func_mmap_file=yes
3114 else
3115   echo "configure: failed program was:" >&5
3116   cat conftest.$ac_ext >&5
3117   rm -fr conftest*
3118   ac_cv_func_mmap_file=no
3119 fi
3120 rm -fr conftest*
3121 fi
3122
3123 fi
3124
3125 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3126 if test $ac_cv_func_mmap_file = yes; then
3127   cat >> confdefs.h <<\EOF
3128 #define HAVE_MMAP_FILE 1
3129 EOF
3130
3131 fi
3132
3133
3134 # We will need to find libiberty.h and ansidecl.h
3135 saved_CFLAGS="$CFLAGS"
3136 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3137 for ac_func in bcopy bzero bcmp \
3138         index rindex getenv atol sbrk abort atof getcwd getwd \
3139         strsignal putc_unlocked fputs_unlocked strstr environ \
3140         malloc realloc calloc free
3141 do
3142 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3143 echo "configure:3144: checking whether $ac_func must be declared" >&5
3144 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3145   echo $ac_n "(cached) $ac_c" 1>&6
3146 else
3147   cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3150
3151 #include "gansidecl.h"
3152 #include "system.h"
3153 int main() {
3154 #ifndef $ac_func
3155 char *(*pfn) = (char *(*)) $ac_func ;
3156 #endif
3157 ; return 0; }
3158 EOF
3159 if { (eval echo configure:3160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3160   rm -rf conftest*
3161   eval "gcc_cv_decl_needed_$ac_func=no"
3162 else
3163   echo "configure: failed program was:" >&5
3164   cat conftest.$ac_ext >&5
3165   rm -rf conftest*
3166   eval "gcc_cv_decl_needed_$ac_func=yes"
3167 fi
3168 rm -f conftest*
3169 fi
3170
3171 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3172   echo "$ac_t""yes" 1>&6 ;   ac_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3173   cat >> confdefs.h <<EOF
3174 #define $ac_tr_decl 1
3175 EOF
3176  
3177 else
3178   echo "$ac_t""no" 1>&6 ; :
3179 fi
3180
3181 done
3182 if test x = y ; then
3183   cat >> confdefs.h <<EOF
3184 #define NEED_DECLARATION_BCOPY 1
3185 EOF
3186  cat >> confdefs.h <<EOF
3187 #define NEED_DECLARATION_BZERO 1
3188 EOF
3189  cat >> confdefs.h <<EOF
3190 #define NEED_DECLARATION_BCMP 1
3191 EOF
3192  \
3193         cat >> confdefs.h <<EOF
3194 #define NEED_DECLARATION_INDEX 1
3195 EOF
3196  cat >> confdefs.h <<EOF
3197 #define NEED_DECLARATION_RINDEX 1
3198 EOF
3199  cat >> confdefs.h <<EOF
3200 #define NEED_DECLARATION_GETENV 1
3201 EOF
3202  cat >> confdefs.h <<EOF
3203 #define NEED_DECLARATION_ATOL 1
3204 EOF
3205  cat >> confdefs.h <<EOF
3206 #define NEED_DECLARATION_SBRK 1
3207 EOF
3208  cat >> confdefs.h <<EOF
3209 #define NEED_DECLARATION_ABORT 1
3210 EOF
3211  cat >> confdefs.h <<EOF
3212 #define NEED_DECLARATION_ATOF 1
3213 EOF
3214  cat >> confdefs.h <<EOF
3215 #define NEED_DECLARATION_GETCWD 1
3216 EOF
3217  cat >> confdefs.h <<EOF
3218 #define NEED_DECLARATION_GETWD 1
3219 EOF
3220  \
3221         cat >> confdefs.h <<EOF
3222 #define NEED_DECLARATION_STRSIGNAL 1
3223 EOF
3224  cat >> confdefs.h <<EOF
3225 #define NEED_DECLARATION_PUTC_UNLOCKED 1
3226 EOF
3227  cat >> confdefs.h <<EOF
3228 #define NEED_DECLARATION_FPUTS_UNLOCKED 1
3229 EOF
3230  cat >> confdefs.h <<EOF
3231 #define NEED_DECLARATION_STRSTR 1
3232 EOF
3233  cat >> confdefs.h <<EOF
3234 #define NEED_DECLARATION_ENVIRON 1
3235 EOF
3236  \
3237         cat >> confdefs.h <<EOF
3238 #define NEED_DECLARATION_MALLOC 1
3239 EOF
3240  cat >> confdefs.h <<EOF
3241 #define NEED_DECLARATION_REALLOC 1
3242 EOF
3243  cat >> confdefs.h <<EOF
3244 #define NEED_DECLARATION_CALLOC 1
3245 EOF
3246  cat >> confdefs.h <<EOF
3247 #define NEED_DECLARATION_FREE 1
3248 EOF
3249 fi
3250
3251
3252 for ac_func in getrlimit setrlimit getrusage
3253 do
3254 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3255 echo "configure:3256: checking whether $ac_func must be declared" >&5
3256 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3257   echo $ac_n "(cached) $ac_c" 1>&6
3258 else
3259   cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262
3263 #include "gansidecl.h"
3264 #include "system.h"
3265 #ifdef HAVE_SYS_RESOURCE_H
3266 #include <sys/resource.h>
3267 #endif
3268
3269 int main() {
3270 #ifndef $ac_func
3271 char *(*pfn) = (char *(*)) $ac_func ;
3272 #endif
3273 ; return 0; }
3274 EOF
3275 if { (eval echo configure:3276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3276   rm -rf conftest*
3277   eval "gcc_cv_decl_needed_$ac_func=no"
3278 else
3279   echo "configure: failed program was:" >&5
3280   cat conftest.$ac_ext >&5
3281   rm -rf conftest*
3282   eval "gcc_cv_decl_needed_$ac_func=yes"
3283 fi
3284 rm -f conftest*
3285 fi
3286
3287 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3288   echo "$ac_t""yes" 1>&6 ;   ac_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3289   cat >> confdefs.h <<EOF
3290 #define $ac_tr_decl 1
3291 EOF
3292  
3293 else
3294   echo "$ac_t""no" 1>&6 ; :
3295 fi
3296
3297 done
3298 if test x = y ; then
3299   cat >> confdefs.h <<EOF
3300 #define NEED_DECLARATION_GETRLIMIT 1
3301 EOF
3302  cat >> confdefs.h <<EOF
3303 #define NEED_DECLARATION_SETRLIMIT 1
3304 EOF
3305  cat >> confdefs.h <<EOF
3306 #define NEED_DECLARATION_GETRUSAGE 1
3307 EOF
3308 fi
3309
3310
3311 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3312 CFLAGS="$saved_CFLAGS"
3313
3314 # mkdir takes a single argument on some systems. 
3315 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3316 echo "configure:3317: checking if mkdir takes one argument" >&5
3317 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3318   echo $ac_n "(cached) $ac_c" 1>&6
3319 else
3320   cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323
3324 #include <sys/types.h>
3325 #ifdef HAVE_SYS_STAT_H
3326 # include <sys/stat.h>
3327 #endif
3328 #ifdef HAVE_UNISTD_H
3329 # include <unistd.h>
3330 #endif
3331 #ifdef HAVE_DIRECT_H
3332 # include <direct.h>
3333 #endif
3334 int main() {
3335 mkdir ("foo", 0);
3336 ; return 0; }
3337 EOF
3338 if { (eval echo configure:3339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3339   rm -rf conftest*
3340   gcc_cv_mkdir_takes_one_arg=no
3341 else
3342   echo "configure: failed program was:" >&5
3343   cat conftest.$ac_ext >&5
3344   rm -rf conftest*
3345   gcc_cv_mkdir_takes_one_arg=yes
3346 fi
3347 rm -f conftest*
3348 fi
3349
3350 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3351 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3352   cat >> confdefs.h <<\EOF
3353 #define MKDIR_TAKES_ONE_ARG 1
3354 EOF
3355
3356 fi
3357
3358
3359 # File extensions
3360 manext='.1'
3361 objext='.o'
3362
3363
3364
3365 build_xm_file=
3366 build_xm_defines=
3367 build_install_headers_dir=install-headers-tar
3368 build_exeext=
3369 host_xm_file=
3370 host_xm_defines=
3371 host_xmake_file=
3372 host_truncate_target=
3373 host_exeext=
3374
3375 # Decode the host machine, then the target machine.
3376 # For the host machine, we save the xm_file variable as host_xm_file;
3377 # then we decode the target machine and forget everything else
3378 # that came from the host machine.
3379 for machine in $build $host $target; do
3380
3381         out_file=
3382         xmake_file=
3383         tmake_file=
3384         extra_headers=
3385         extra_passes=
3386         extra_parts=
3387         extra_programs=
3388         extra_objs=
3389         extra_host_objs=
3390         extra_gcc_objs=
3391         xm_defines=
3392         float_format=
3393         # Set this to force installation and use of collect2.
3394         use_collect2=
3395         # Set this to override the default target model.
3396         target_cpu_default=
3397         # Set this to control how the header file directory is installed.
3398         install_headers_dir=install-headers-tar
3399         # Set this to a non-empty list of args to pass to cpp if the target
3400         # wants its .md file passed through cpp.
3401         md_cppflags=
3402         # Set this if directory names should be truncated to 14 characters.
3403         truncate_target=
3404         # Set this if gdb needs a dir command with `dirname $out_file`
3405         gdb_needs_out_file_path=
3406         # Set this if the build machine requires executables to have a
3407         # file name suffix.
3408         exeext=
3409         # Set this to control which thread package will be used.
3410         thread_file=
3411         # Reinitialize these from the flag values every loop pass, since some
3412         # configure entries modify them.
3413         gas="$gas_flag"
3414         gnu_ld="$gnu_ld_flag"
3415         enable_threads=$enable_threads_flag
3416
3417         # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3418         # updated in each machine entry.
3419         tm_p_file=
3420         cpu_type=`echo $machine | sed 's/-.*$//'`
3421         case $machine in
3422         alpha*-*-*)
3423                 cpu_type=alpha
3424                 ;;
3425         arm*-*-*)
3426                 cpu_type=arm
3427                 ;;
3428         c*-convex-*)
3429                 cpu_type=convex
3430                 ;;
3431         i[34567]86-*-*)
3432                 cpu_type=i386
3433                 ;;
3434         hppa*-*-*)
3435                 cpu_type=pa
3436                 ;;
3437         m68000-*-*)
3438                 cpu_type=m68k
3439                 ;;
3440         mips*-*-*)
3441                 cpu_type=mips
3442                 ;;
3443         pj*-*-*)
3444                 cpu_type=pj
3445                 ;;
3446         powerpc*-*-*)
3447                 cpu_type=rs6000
3448                 ;;
3449         pyramid-*-*)
3450                 cpu_type=pyr
3451                 ;;
3452         sparc*-*-*)
3453                 cpu_type=sparc
3454                 ;;
3455         esac
3456
3457         tm_file=${cpu_type}/${cpu_type}.h
3458         xm_file=${cpu_type}/xm-${cpu_type}.h
3459         if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
3460         then
3461                 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
3462         fi
3463         # On a.out targets, we need to use collect2.
3464         case $machine in
3465         *-*-*aout*)
3466                 use_collect2=yes
3467                 ;;
3468         esac    
3469
3470         # Common parts for linux-gnu and openbsd systems
3471         case $machine in
3472         *-*-linux-gnu*)
3473                 xm_defines="HAVE_ATEXIT POSIX BSTRING"
3474                 ;;
3475         *-*-openbsd*)
3476                 tm_file=${cpu_type}/openbsd.h
3477                 tmake_file="t-libc-ok t-openbsd"
3478                 # avoid surprises, always provide an xm-openbsd file 
3479                 xm_file=${cpu_type}/xm-openbsd.h
3480                 # don't depend on processor x-fragments as well
3481                 xmake_file=none
3482                 if test x$enable_threads = xyes; then
3483                         thread_file='posix'
3484                         tmake_file="${tmake_file} t-openbsd-thread"
3485                 fi
3486                 ;;
3487         esac
3488
3489         case $machine in
3490         # Support site-specific machine types.
3491         *local*)
3492                 cpu_type=`echo $machine | sed -e 's/-.*//'`
3493                 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3494                 xm_file=${cpu_type}/xm-$rest.h
3495                 tm_file=${cpu_type}/$rest.h
3496                 if test -f $srcdir/config/${cpu_type}/x-$rest; \
3497                 then xmake_file=${cpu_type}/x-$rest; \
3498                 else true; \
3499                 fi
3500                 if test -f $srcdir/config/${cpu_type}/t-$rest; \
3501                 then tmake_file=${cpu_type}/t-$rest; \
3502                 else true; \
3503                 fi
3504                 ;;
3505         1750a-*-*)
3506                 ;;
3507         a29k-*-bsd* | a29k-*-sym1*)
3508                 tm_file="${tm_file} a29k/unix.h"
3509                 xm_defines=USG
3510                 xmake_file=a29k/x-unix
3511                 use_collect2=yes
3512                 ;;
3513         a29k-*-udi | a29k-*-coff)
3514                 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3515                 tmake_file=a29k/t-a29kbare
3516                 ;;
3517         a29k-wrs-vxworks*)
3518                 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3519                 tmake_file=a29k/t-vx29k
3520                 extra_parts="crtbegin.o crtend.o"
3521                 thread_file='vxworks'
3522                 ;;
3523         a29k-*-*)                       # Default a29k environment.
3524                 use_collect2=yes
3525                 ;;
3526         alpha-*-interix)
3527                 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3528
3529                 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3530                 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3531
3532                 # GAS + IEEE_CONFORMANT
3533                 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3534
3535                 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3536                 xmake_file="x-interix alpha/t-pe"
3537                 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3538                 if test x$enable_threads = xyes ; then
3539                         thread_file='posix'
3540                 fi
3541                 if test x$stabs = xyes ; then
3542                         tm_file="${tm_file} dbxcoff.h"
3543                 fi
3544                 #prefix='$$INTERIX_ROOT'/usr/contrib
3545                 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3546                 ;;
3547         alpha*-*-linux-gnuecoff*)
3548                 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3549                 target_cpu_default="MASK_GAS"
3550                 tmake_file="alpha/t-alpha alpha/t-ieee"
3551                 gas=no
3552                 xmake_file=none
3553                 gas=yes gnu_ld=yes
3554                 ;;
3555         alpha*-*-linux-gnulibc1*)
3556                 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3557                 target_cpu_default="MASK_GAS"
3558                 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3559                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3560                 xmake_file=none
3561                 gas=yes gnu_ld=yes
3562                 if test x$enable_threads = xyes; then
3563                         thread_file='posix'
3564                 fi
3565                 ;;
3566         alpha*-*-linux-gnu*)
3567                 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3568                 target_cpu_default="MASK_GAS"
3569                 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3570                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3571                 xmake_file=none
3572                 gas=yes gnu_ld=yes
3573                 if test x$enable_threads = xyes; then
3574                         thread_file='posix'
3575                 fi
3576                 ;;
3577         alpha*-*-netbsd*)
3578                 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3579                 target_cpu_default="MASK_GAS"
3580                 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3581                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3582                 xmake_file=none
3583                 gas=yes gnu_ld=yes
3584                 ;;
3585
3586         alpha*-*-openbsd*)
3587                 # default x-alpha is only appropriate for dec-osf.
3588                 target_cpu_default="MASK_GAS"
3589                 tmake_file="alpha/t-alpha alpha/t-ieee"
3590                 ;;
3591                 
3592         alpha*-dec-osf*)
3593                 if test x$stabs = xyes
3594                 then
3595                         tm_file="${tm_file} dbx.h"
3596                 fi
3597                 if test x$gas != xyes
3598                 then
3599                         extra_passes="mips-tfile mips-tdump"
3600                 fi
3601                 use_collect2=yes
3602                 tmake_file="alpha/t-alpha alpha/t-ieee"
3603                 case $machine in
3604                   *-*-osf1*)
3605                     tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3606                     ;;
3607                   *-*-osf[23]*)
3608                     tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3609                     ;;
3610                   *-*-osf4*)
3611                     tm_file="${tm_file} alpha/osf.h"
3612                     # Some versions of OSF4 (specifically X4.0-9 296.7) have
3613                     # a broken tar, so we use cpio instead.
3614                     install_headers_dir=install-headers-cpio
3615                     ;;
3616                   *-*-osf5*)
3617                     tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
3618                     ;;
3619                 esac
3620                 case $machine in
3621                   *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
3622                     target_cpu_default=MASK_SUPPORT_ARCH
3623                     ;;
3624                 esac
3625                 ;;
3626         alpha*-*-vxworks*)
3627                 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3628                 tmake_file="alpha/t-alpha alpha/t-ieee"
3629                 if  x$gas != xyes 
3630                 then
3631                         extra_passes="mips-tfile mips-tdump"
3632                 fi
3633                 use_collect2=yes
3634                 thread_file='vxworks'
3635                 ;;
3636         alpha*-*-winnt*)
3637                 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3638                 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3639                 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
3640                 xmake_file=winnt/x-winnt
3641                 extra_host_objs=oldnames.o
3642                 extra_gcc_objs="spawnv.o oldnames.o"
3643                 if test x$gnu_ld != xyes
3644                 then
3645                         extra_programs=ld.exe
3646                 fi
3647                 if test x$enable_threads = xyes; then
3648                         thread_file='win32'
3649                 fi
3650                 ;;
3651         alpha*-dec-vms*)
3652                 tm_file=alpha/vms.h
3653                 xm_file="${xm_file} alpha/xm-vms.h"
3654                 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3655                 ;;
3656         arc-*-elf*)
3657                 extra_parts="crtinit.o crtfini.o"
3658                 ;;
3659         arm-*-coff* | armel-*-coff*)
3660                 tm_file=arm/coff.h
3661                 tmake_file=arm/t-arm-coff
3662                 ;;
3663         arm-*-vxworks*)
3664                 tm_file=arm/vxarm.h
3665                 tmake_file=arm/t-arm-coff
3666                 thread_file='vxworks'
3667                 ;;
3668         arm-*-riscix1.[01]*)            # Acorn RISC machine (early versions)
3669                 tm_file=arm/riscix1-1.h
3670                 use_collect2=yes
3671                 ;;
3672         arm-*-riscix*)                  # Acorn RISC machine
3673                 if test x$gas = xyes
3674                 then
3675                     tm_file=arm/rix-gas.h
3676                 else
3677                     tm_file=arm/riscix.h
3678                 fi
3679                 xmake_file=arm/x-riscix
3680                 tmake_file=arm/t-riscix
3681                 use_collect2=yes
3682                 ;;
3683         arm-semi-aout | armel-semi-aout)
3684                 tm_file=arm/semi.h
3685                 tmake_file=arm/t-semi
3686                 ;;
3687         arm-semi-aof | armel-semi-aof)
3688                 tm_file=arm/semiaof.h
3689                 tmake_file=arm/t-semiaof
3690                 ;;
3691         arm*-*-netbsd*)
3692                 tm_file=arm/netbsd.h
3693                 tmake_file="t-netbsd arm/t-netbsd"
3694                 use_collect2=yes
3695                 ;;
3696         arm*-*-linux-gnuaout*)          # ARM GNU/Linux with a.out
3697                 cpu_type=arm
3698                 xmake_file=x-linux
3699                 tm_file=arm/linux-aout.h
3700                 tmake_file=arm/t-linux
3701                 gnu_ld=yes
3702                 ;;
3703         arm*-*-linux-gnuoldld*)         # ARM GNU/Linux with old ELF linker
3704                 xm_file=arm/xm-linux.h
3705                 xmake_file=x-linux
3706                 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3707                 case $machine in
3708                 armv2*-*-*)
3709                         tm_file="arm/linux-elf26.h $tm_file"
3710                         ;;
3711                 esac
3712                 tmake_file="t-linux arm/t-linux"
3713                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3714                 gnu_ld=yes
3715                 case x${enable_threads} in
3716                 x | xyes | xpthreads | xposix)
3717                         thread_file='posix'
3718                         ;;
3719                 esac
3720                 ;;
3721         arm*-*-linux-gnu*)              # ARM GNU/Linux with ELF
3722                 xm_file=arm/xm-linux.h
3723                 xmake_file=x-linux
3724                 tm_file="arm/linux-elf.h"
3725                 case $machine in
3726                 armv2*-*-*)
3727                         tm_file="arm/linux-elf26.h $tm_file"
3728                         ;;
3729                 esac
3730                 tmake_file="t-linux arm/t-linux"
3731                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3732                 gnu_ld=yes
3733                 case x${enable_threads} in
3734                 x | xyes | xpthreads | xposix)
3735                         thread_file='posix'
3736                         ;;
3737                 esac
3738                 ;;
3739         arm*-*-uclinux*)                # ARM ucLinux
3740                 tm_file=arm/uclinux-elf.h
3741                 tmake_file=arm/t-arm-elf
3742                 ;;
3743         arm*-*-aout)
3744                 tm_file=arm/aout.h
3745                 tmake_file=arm/t-arm-aout
3746                 ;;
3747         arm*-*-ecos-elf)
3748                 tm_file=arm/ecos-elf.h
3749                 tmake_file=arm/t-arm-elf
3750                 ;; 
3751         arm*-*-elf)
3752                 tm_file=arm/unknown-elf.h
3753                 tmake_file=arm/t-arm-elf
3754                 ;;
3755         arm*-*-conix*)
3756                 tm_file=arm/conix-elf.h
3757                 tmake_file=arm/t-arm-elf
3758                 ;;
3759         arm*-*-oabi)
3760                 tm_file=arm/unknown-elf-oabi.h
3761                 tmake_file=arm/t-arm-elf
3762                 ;;
3763         arm-*-pe*)
3764                 tm_file=arm/pe.h
3765                 tmake_file=arm/t-pe
3766                 extra_objs="pe.o"
3767                 ;;
3768         avr-*-*)
3769                 ;;
3770         c1-convex-*)                    # Convex C1
3771                 target_cpu_default=1
3772                 use_collect2=yes
3773                 ;;
3774         c2-convex-*)                    # Convex C2
3775                 target_cpu_default=2
3776                 use_collect2=yes
3777                 ;;
3778         c32-convex-*)
3779                 target_cpu_default=4
3780                 use_collect2=yes
3781                 ;;
3782         c34-convex-*)
3783                 target_cpu_default=8
3784                 use_collect2=yes
3785                 ;;
3786         c38-convex-*)
3787                 target_cpu_default=16           
3788                 use_collect2=yes
3789                 ;;
3790         c4x-*)
3791                 cpu_type=c4x
3792                 tmake_file=c4x/t-c4x
3793                 ;;
3794         clipper-intergraph-clix*)
3795                 tm_file="${tm_file} svr3.h clipper/clix.h"
3796                 xm_file=clipper/xm-clix.h
3797                 xmake_file=clipper/x-clix
3798                 extra_headers=va-clipper.h
3799                 extra_parts="crtbegin.o crtend.o"
3800                 install_headers_dir=install-headers-cpio
3801                 ;;
3802         d30v-*)
3803                 float_format=i64
3804                 ;;
3805         dsp16xx-*)
3806                 ;;
3807         elxsi-elxsi-*)
3808                 use_collect2=yes
3809                 ;;
3810         fr30-*-elf)
3811                 tm_file="fr30/fr30.h"
3812                 tmake_file=fr30/t-fr30
3813                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3814                 ;;
3815 # This hasn't been upgraded to GCC 2.
3816 #       fx80-alliant-*)                 # Alliant FX/80
3817 #               ;;
3818         h8300-*-*)
3819                 float_format=i32
3820                 ;;
3821         hppa*-*-linux*)
3822                 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3823                 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3824                 tmake_file="t-linux pa/t-linux"
3825                 extra_parts="crtbegin.o crtend.o"
3826                 xmake_file=none
3827                 gas=yes gnu_ld=yes
3828                 if test x$enable_threads = xyes; then
3829                         thread_file='posix'
3830                 fi
3831                 ;;
3832         hppa*-*-openbsd*)
3833                 target_cpu_default="MASK_PA_11"
3834                 tmake_file=pa/t-openbsd
3835                 ;;
3836         hppa1.1-*-pro*)
3837                 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3838                 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3839                 xm_file=pa/xm-papro.h
3840                 tmake_file=pa/t-pro
3841                 ;;
3842         hppa1.1-*-osf*)
3843                 target_cpu_default="MASK_PA_11"
3844                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3845                 use_collect2=yes
3846                 ;;
3847         hppa1.1-*-rtems*)
3848                 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3849                 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3850                 xm_file=pa/xm-papro.h
3851                 tmake_file=pa/t-pro
3852                 ;;
3853         hppa1.0-*-osf*)
3854                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3855                 use_collect2=yes
3856                 ;;
3857         hppa1.1-*-bsd*)
3858                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
3859                 target_cpu_default="MASK_PA_11"
3860                 use_collect2=yes
3861                 ;;
3862         hppa1.0-*-bsd*)
3863                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
3864                 use_collect2=yes
3865                 ;;
3866         hppa1.0-*-hpux7*)
3867                 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3868                 xm_file=pa/xm-pahpux.h
3869                 xmake_file=pa/x-pa-hpux
3870                 if test x$gas = xyes
3871                 then
3872                         tm_file="${tm_file} pa/gas.h"
3873                 fi
3874                 install_headers_dir=install-headers-cpio
3875                 use_collect2=yes
3876                 ;;
3877         hppa1.0-*-hpux8.0[0-2]*)
3878                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3879                 xm_file=pa/xm-pahpux.h
3880                 xmake_file=pa/x-pa-hpux
3881                 if test x$gas = xyes
3882                 then
3883                         tm_file="${tm_file} pa/pa-gas.h"
3884                 else
3885                         tm_file="pa/pa-oldas.h ${tm_file}"
3886                 fi
3887                 install_headers_dir=install-headers-cpio
3888                 use_collect2=yes
3889                 ;;
3890         hppa1.1-*-hpux8.0[0-2]*)
3891                 target_cpu_default="MASK_PA_11"
3892                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3893                 xm_file=pa/xm-pahpux.h
3894                 xmake_file=pa/x-pa-hpux
3895                 if test x$gas = xyes
3896                 then
3897                         tm_file="${tm_file} pa/pa-gas.h"
3898                 else
3899                         tm_file="pa/pa-oldas.h ${tm_file}"
3900                 fi
3901                 install_headers_dir=install-headers-cpio
3902                 use_collect2=yes
3903                 ;;
3904         hppa1.1-*-hpux8*)
3905                 target_cpu_default="MASK_PA_11"
3906                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3907                 xm_file=pa/xm-pahpux.h
3908                 xmake_file=pa/x-pa-hpux
3909                 if test x$gas = xyes
3910                 then
3911                         tm_file="${tm_file} pa/pa-gas.h"
3912                 fi
3913                 install_headers_dir=install-headers-cpio
3914                 use_collect2=yes
3915                 ;;
3916         hppa1.0-*-hpux8*)
3917                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3918                 xm_file=pa/xm-pahpux.h
3919                 xmake_file=pa/x-pa-hpux
3920                 if test x$gas = xyes
3921                 then
3922                         tm_file="${tm_file} pa/pa-gas.h"
3923                 fi
3924                 install_headers_dir=install-headers-cpio
3925                 use_collect2=yes
3926                 ;;
3927         hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3928                 target_cpu_default="MASK_PA_11"
3929                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3930                 float_format=i128
3931                 xm_file=pa/xm-pahpux.h
3932                 xmake_file=pa/x-pa-hpux
3933                 tmake_file=pa/t-pa
3934                 if test x$gas = xyes
3935                 then
3936                         tm_file="${tm_file} pa/pa-gas.h"
3937                 fi
3938                 if test x$enable_threads = x; then
3939                     enable_threads=$have_pthread_h
3940                 fi
3941                 if test x$enable_threads = xyes; then
3942                         thread_file='dce'
3943                         tmake_file="${tmake_file} pa/t-dce-thr"
3944                 fi
3945                 install_headers_dir=install-headers-cpio
3946                 use_collect2=yes
3947                 ;;
3948         hppa1.0-*-hpux10*)
3949                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3950                 float_format=i128
3951                 xm_file=pa/xm-pahpux.h
3952                 xmake_file=pa/x-pa-hpux
3953                 tmake_file=pa/t-pa
3954                 if test x$gas = xyes
3955                 then
3956                         tm_file="${tm_file} pa/pa-gas.h"
3957                 fi
3958                 if test x$enable_threads = x; then
3959                     enable_threads=$have_pthread_h
3960                 fi
3961                 if test x$enable_threads = xyes; then
3962                         thread_file='dce'
3963                         tmake_file="${tmake_file} pa/t-dce-thr"
3964                 fi
3965                 install_headers_dir=install-headers-cpio
3966                 use_collect2=yes
3967                 ;;
3968         hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3969                 target_cpu_default="MASK_PA_11"
3970                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3971                 float_format=i128
3972                 xm_file=pa/xm-pahpux.h
3973                 xmake_file=pa/x-pa-hpux
3974                 tmake_file=pa/t-pa
3975                 if test x$gas = xyes
3976                 then
3977                         tm_file="${tm_file} pa/pa-gas.h"
3978                 fi
3979 #               if test x$enable_threads = x; then
3980 #                   enable_threads=$have_pthread_h
3981 #               fi
3982 #               if test x$enable_threads = xyes; then
3983 #                       thread_file='dce'
3984 #                       tmake_file="${tmake_file} pa/t-dce-thr"
3985 #               fi
3986                 install_headers_dir=install-headers-cpio
3987                 use_collect2=yes
3988                 ;;
3989         hppa1.0-*-hpux11*)
3990                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3991                 float_format=i128
3992                 xm_file=pa/xm-pahpux.h
3993                 xmake_file=pa/x-pa-hpux
3994                 if test x$gas = xyes
3995                 then
3996                         tm_file="${tm_file} pa/pa-gas.h"
3997                 fi
3998 #               if test x$enable_threads = x; then
3999 #                   enable_threads=$have_pthread_h
4000 #               fi
4001 #               if test x$enable_threads = xyes; then
4002 #                       thread_file='dce'
4003 #                       tmake_file="${tmake_file} pa/t-dce-thr"
4004 #               fi
4005                 install_headers_dir=install-headers-cpio
4006                 use_collect2=yes
4007                 ;;
4008         hppa1.1-*-hpux* | hppa2*-*-hpux*)
4009                 target_cpu_default="MASK_PA_11"
4010                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4011                 xm_file=pa/xm-pahpux.h
4012                 xmake_file=pa/x-pa-hpux
4013                 if test x$gas = xyes
4014                 then
4015                         tm_file="${tm_file} pa/pa-gas.h"
4016                 fi
4017                 install_headers_dir=install-headers-cpio
4018                 use_collect2=yes
4019                 ;;
4020         hppa1.0-*-hpux*)
4021                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4022                 xm_file=pa/xm-pahpux.h
4023                 xmake_file=pa/x-pa-hpux
4024                 if test x$gas = xyes
4025                 then
4026                         tm_file="${tm_file} pa/pa-gas.h"
4027                 fi
4028                 install_headers_dir=install-headers-cpio
4029                 use_collect2=yes
4030                 ;;
4031         hppa1.1-*-hiux* | hppa2*-*-hiux*)
4032                 target_cpu_default="MASK_PA_11"
4033                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4034                 xm_file=pa/xm-pahpux.h
4035                 xmake_file=pa/x-pa-hpux
4036                 if test x$gas = xyes
4037                 then
4038                         tm_file="${tm_file} pa/pa-gas.h"
4039                 fi
4040                 install_headers_dir=install-headers-cpio
4041                 use_collect2=yes
4042                 ;;
4043         hppa1.0-*-hiux*)
4044                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4045                 xm_file=pa/xm-pahpux.h
4046                 xmake_file=pa/x-pa-hpux
4047                 if test x$gas = xyes
4048                 then
4049                         tm_file="${tm_file} pa/pa-gas.h"
4050                 fi
4051                 install_headers_dir=install-headers-cpio
4052                 use_collect2=yes
4053                 ;;
4054         hppa*-*-lites*)
4055                 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4056                 target_cpu_default="MASK_PA_11"
4057                 use_collect2=yes
4058                 ;;
4059         hppa*-*-mpeix*)
4060                 tm_file="${tm_file} pa/pa-mpeix.h"
4061                 xm_file=pa/xm-pampeix.h 
4062                 xmake_file=pa/x-pa-mpeix 
4063                 echo "You must use gas. Assuming it is already installed." 
4064                 install_headers_dir=install-headers-tar
4065                 use_collect2=yes 
4066                 ;; 
4067         i370-*-opened*)                  # IBM 360/370/390 Architecture
4068                 xm_file=i370/xm-oe.h
4069                 tm_file=i370/oe.h
4070                 xmake_file=i370/x-oe
4071                 tmake_file=i370/t-oe
4072                 ;;
4073         i370-*-mvs*)
4074                 xm_file=i370/xm-mvs.h
4075                 tm_file=i370/mvs.h
4076                 tmake_file=i370/t-mvs
4077                 ;;
4078         i370-*-linux*)
4079                 xm_file="xm-linux.h i370/xm-linux.h"
4080                 xmake_file=x-linux
4081                 tm_file="i370/linux.h ${tm_file}"
4082                 tmake_file="t-linux i370/t-linux"
4083                 # broken_install=yes
4084                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4085                 # extra_parts="crtbegin.o crtend.o"
4086                 gnu_ld=yes
4087                 gas=yes
4088                 elf=yes
4089                 if test x$enable_threads = xyes; then
4090                         thread_file='posix'
4091                 fi
4092                 ;;
4093         i[34567]86-*-elf*)
4094                 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4095                 tm_file=i386/i386elf.h
4096                 tmake_file=i386/t-i386elf
4097                 xmake_file=x-svr4
4098                 ;;
4099         i[34567]86-ibm-aix*)            # IBM PS/2 running AIX
4100                 if test x$gas = xyes
4101                 then
4102                         tm_file=i386/aix386.h
4103                         extra_parts="crtbegin.o crtend.o"
4104                         tmake_file=i386/t-crtstuff
4105                 else
4106                         tm_file=i386/aix386ng.h
4107                         use_collect2=yes
4108                 fi
4109                 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
4110                 xm_defines=USG
4111                 xmake_file=i386/x-aix
4112                 ;;
4113         i[34567]86-ncr-sysv4*)          # NCR 3000 - ix86 running system V.4
4114                 xm_file="xm-alloca.h ${xm_file}"
4115                 xm_defines="USG POSIX SMALL_ARG_MAX"
4116                 xmake_file=i386/x-ncr3000
4117                 if test x$stabs = xyes -a x$gas = xyes
4118                 then
4119                         tm_file=i386/sysv4gdb.h
4120                 else
4121                         tm_file=i386/sysv4.h
4122                 fi
4123                 extra_parts="crtbegin.o crtend.o"
4124                 tmake_file=i386/t-crtpic
4125                 ;;
4126         i[34567]86-next-*)
4127                 tm_file=i386/next.h
4128                 xm_file=i386/xm-next.h
4129                 tmake_file=i386/t-next
4130                 xmake_file=i386/x-next
4131                 extra_objs=nextstep.o
4132                 extra_parts="crtbegin.o crtend.o"
4133                 if test x$enable_threads = xyes; then
4134                         thread_file='mach'
4135                 fi
4136                 ;;
4137         i[34567]86-sequent-bsd*)                # 80386 from Sequent
4138                 use_collect2=yes
4139                 if test x$gas = xyes
4140                 then
4141                         tm_file=i386/seq-gas.h
4142                 else
4143                         tm_file=i386/sequent.h
4144                 fi
4145                 ;;
4146         i[34567]86-sequent-ptx1*)
4147                 xm_defines="USG SVR3"
4148                 xmake_file=i386/x-sysv3
4149                 tm_file=i386/seq-sysv3.h
4150                 tmake_file=i386/t-crtstuff
4151                 extra_parts="crtbegin.o crtend.o"
4152                 install_headers_dir=install-headers-cpio
4153                 ;;
4154         i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
4155                 xm_defines="USG SVR3"
4156                 xmake_file=i386/x-sysv3
4157                 tm_file=i386/seq2-sysv3.h
4158                 tmake_file=i386/t-crtstuff
4159                 extra_parts="crtbegin.o crtend.o"
4160                 install_headers_dir=install-headers-cpio
4161                 ;;
4162         i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
4163                 xm_file="xm-alloca.h ${xm_file}"
4164                 xm_defines="USG POSIX SMALL_ARG_MAX"
4165                 xmake_file=x-svr4
4166                 tm_file=i386/ptx4-i.h
4167                 tmake_file=t-svr4
4168                 extra_parts="crtbegin.o crtend.o"
4169                 install_headers_dir=install-headers-cpio
4170                 ;;
4171         i386-sun-sunos*)                # Sun i386 roadrunner
4172                 xm_defines=USG
4173                 tm_file=i386/sun.h
4174                 use_collect2=yes
4175                 ;;
4176         i[34567]86-wrs-vxworks*)
4177                 tm_file=i386/vxi386.h
4178                 tmake_file=i386/t-i386bare
4179                 thread_file='vxworks'
4180                 ;;
4181         i[34567]86-*-aout*)
4182                 tm_file=i386/i386-aout.h
4183                 tmake_file=i386/t-i386bare
4184                 ;;
4185         i[34567]86-*-beospe*)
4186                 xm_file=i386/xm-beos.h
4187                 xm_defines="USE_C_ALLOCA"
4188                 tmake_file=i386/t-beos
4189                 tm_file=i386/beos-pe.h
4190                 xmake_file=i386/x-beos
4191                 extra_objs=winnt.o
4192                 ;;
4193         i[34567]86-*-beoself* | i[34567]86-*-beos*)
4194                 xm_file=i386/xm-beos.h
4195                 tmake_file='i386/t-beos i386/t-crtpic'
4196                 tm_file=i386/beos-elf.h
4197                 xmake_file=i386/x-beos
4198                 extra_objs=winnt.o
4199                 extra_parts='crtbegin.o crtend.o'
4200                 ;;
4201         i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
4202                 tm_file=i386/bsd386.h
4203 #               tmake_file=t-libc-ok
4204                 ;;
4205         i[34567]86-*-bsd*)
4206                 tm_file=i386/386bsd.h
4207 #               tmake_file=t-libc-ok
4208 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4209 #               use_collect2=yes
4210                 ;;
4211         i[34567]86-*-freebsdelf*)
4212                 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4213                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4214                 tmake_file=t-freebsd
4215                 gas=yes
4216                 gnu_ld=yes
4217                 stabs=yes
4218                 case x${enable_threads} in
4219                 xyes | xpthreads | xposix)
4220                         thread_file='posix'
4221                         tmake_file="${tmake_file} t-freebsd-thread"
4222                         ;;
4223                 esac
4224                 ;;
4225         i[34567]86-*-freebsd*)
4226                 tm_file="i386/freebsd.h i386/perform.h"
4227                 tmake_file=t-freebsd
4228                 ;;
4229         i[34567]86-*-netbsd*)
4230                 tm_file=i386/netbsd.h
4231                 tmake_file=t-netbsd
4232                 use_collect2=yes
4233                 ;;
4234         i[34567]86-*-openbsd*)
4235                 # we need collect2 until our bug is fixed...
4236                 use_collect2=yes
4237                 ;;
4238         i[34567]86-*-coff*)
4239                 tm_file=i386/i386-coff.h
4240                 tmake_file=i386/t-i386bare
4241                 ;;
4242         i[34567]86-*-isc*)              # 80386 running ISC system
4243                 xm_file="${xm_file} i386/xm-isc.h"
4244                 xm_defines="USG SVR3"
4245                 case $machine in
4246                   i[34567]86-*-isc[34]*)
4247                     xmake_file=i386/x-isc3
4248                     ;;
4249                   *)
4250                     xmake_file=i386/x-isc
4251                     ;;
4252                 esac
4253                 if test x$gas = xyes -a x$stabs = xyes
4254                 then
4255                         tm_file=i386/iscdbx.h
4256                         tmake_file=i386/t-svr3dbx
4257                         extra_parts="svr3.ifile svr3z.ifile"
4258                 else
4259                         tm_file=i386/isccoff.h
4260                         tmake_file=i386/t-crtstuff
4261                         extra_parts="crtbegin.o crtend.o"
4262                 fi
4263                 install_headers_dir=install-headers-cpio
4264                 ;;
4265         i[34567]86-*-linux-gnuoldld*)   # Intel 80386's running GNU/Linux
4266                                         # pre BFD linkers
4267                 xmake_file=x-linux-aout
4268                 tmake_file="t-linux-aout i386/t-crtstuff"
4269                 tm_file=i386/linux-oldld.h
4270                 gnu_ld=yes
4271                 float_format=i386
4272                 ;;
4273         i[34567]86-*-linux-gnuaout*)    # Intel 80386's running GNU/Linux
4274                 xmake_file=x-linux-aout
4275                 tmake_file="t-linux-aout i386/t-crtstuff"
4276                 tm_file=i386/linux-aout.h
4277                 gnu_ld=yes
4278                 float_format=i386
4279                 ;;
4280         i[34567]86-*-linux-gnulibc1)    # Intel 80386's running GNU/Linux
4281                                         # GNU/Linux C library 5
4282                 xmake_file=x-linux      
4283                 tm_file=i386/linux.h    
4284                 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4285                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4286                 gnu_ld=yes
4287                 float_format=i386
4288                 if test x$enable_threads = xyes; then
4289                         thread_file='single'
4290                 fi
4291                 ;;
4292         i[34567]86-*-linux-gnu*)        # Intel 80386's running GNU/Linux
4293                                         # aka GNU/Linux C library 6
4294                 xmake_file=x-linux
4295                 tm_file=i386/linux.h
4296                 tmake_file="t-linux i386/t-crtstuff"
4297                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4298                 gnu_ld=yes
4299                 float_format=i386
4300                 if test x$enable_threads = xyes; then
4301                         thread_file='posix'
4302                 fi
4303                 ;;
4304         i[34567]86-*-gnu*)
4305                 float_format=i386
4306                 ;;
4307         i[34567]86-go32-msdos | i[34567]86-*-go32*)
4308                 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4309                 exit 1
4310                 ;;
4311         i[34567]86-pc-msdosdjgpp*)
4312                 xm_file=i386/xm-djgpp.h
4313                 tm_file=i386/djgpp.h
4314                 tmake_file=i386/t-djgpp
4315                 xmake_file=i386/x-djgpp
4316                 gnu_ld=yes
4317                 gas=yes
4318                 exeext=.exe
4319                 case $host in *pc-msdosdjgpp*)
4320                         target_alias=djgpp
4321                         ;;
4322                 esac
4323                 ;;
4324         i[34567]86-moss-msdos* | i[34567]86-*-moss*)
4325                 tm_file=i386/moss.h
4326                 tmake_file=t-libc-ok
4327                 gnu_ld=yes
4328                 gas=yes
4329                 ;;
4330         i[34567]86-*-lynxos*)
4331                 if test x$gas = xyes
4332                 then
4333                         tm_file=i386/lynx.h
4334                 else
4335                         tm_file=i386/lynx-ng.h
4336                 fi
4337                 xm_file=i386/xm-lynx.h
4338                 tmake_file=i386/t-i386bare
4339                 xmake_file=x-lynx
4340                 ;;
4341         i[34567]86-*-mach*)
4342                 tm_file=i386/mach.h
4343 #               tmake_file=t-libc-ok
4344                 use_collect2=yes
4345                 ;;
4346         i[34567]86-*-osfrose*)          # 386 using OSF/rose
4347                 if test x$elf = xyes
4348                 then
4349                         tm_file=i386/osfelf.h
4350                         use_collect2=
4351                 else
4352                         tm_file=i386/osfrose.h
4353                         use_collect2=yes
4354                 fi
4355                 xm_file="i386/xm-osf.h ${xm_file}"
4356                 xmake_file=i386/x-osfrose
4357                 tmake_file=i386/t-osf
4358                 extra_objs=halfpic.o
4359                 ;;
4360         i[34567]86-go32-rtems*)
4361                 cpu_type=i386
4362                 xm_file=i386/xm-go32.h
4363                 tm_file=i386/go32-rtems.h
4364                 tmake_file="i386/t-go32 t-rtems"
4365                 ;;
4366         i[34567]86-*-rtemscoff*)
4367                 cpu_type=i386
4368                 tm_file=i386/rtems.h
4369                 tmake_file="i386/t-i386bare t-rtems"
4370                 ;;
4371         i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
4372                 cpu_type=i386
4373                 tm_file=i386/rtemself.h
4374                 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
4375                 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4376                 ;;
4377         i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
4378                 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4379                 xm_defines="USG SVR3"
4380                 xmake_file=i386/x-sco5
4381                 install_headers_dir=install-headers-cpio
4382                 tm_file=i386/sco5.h
4383                 if test x$gas = xyes
4384                 then
4385                         tm_file="i386/sco5gas.h ${tm_file}"
4386                         tmake_file=i386/t-sco5gas
4387                 else
4388                         tmake_file=i386/t-sco5
4389                 fi
4390                 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4391                 ;;
4392         i[34567]86-*-sco3.2v4*)         # 80386 running SCO 3.2v4 system
4393                 xm_file="${xm_file} i386/xm-sco.h"
4394                 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4395                 xmake_file=i386/x-sco4
4396                 install_headers_dir=install-headers-cpio
4397                 if test x$stabs = xyes
4398                 then
4399                         tm_file=i386/sco4dbx.h
4400                         tmake_file=i386/t-svr3dbx
4401                         extra_parts="svr3.ifile svr3z.rfile"
4402                 else
4403                         tm_file=i386/sco4.h
4404                         tmake_file=i386/t-crtstuff
4405                         extra_parts="crtbegin.o crtend.o"
4406                 fi
4407                 # The default EAFS filesystem supports long file names.
4408                 # Truncating the target makes $host != $target which
4409                 # makes gcc think it is doing a cross-compile.
4410                 # truncate_target=yes
4411                 ;;
4412         i[34567]86-*-sco*)              # 80386 running SCO system
4413                 xm_file=i386/xm-sco.h
4414                 xmake_file=i386/x-sco
4415                 install_headers_dir=install-headers-cpio
4416                 if test x$stabs = xyes
4417                 then
4418                         tm_file=i386/scodbx.h
4419                         tmake_file=i386/t-svr3dbx
4420                         extra_parts="svr3.ifile svr3z.rfile"
4421                 else
4422                         tm_file=i386/sco.h
4423                         extra_parts="crtbegin.o crtend.o"
4424                         tmake_file=i386/t-crtstuff
4425                 fi
4426                 truncate_target=yes
4427                 ;;
4428         i[34567]86-*-solaris2*)
4429                 xm_file="xm-alloca.h ${xm_file}"
4430                 xm_defines="USG POSIX SMALL_ARG_MAX"
4431                 tm_file=i386/sol2.h
4432                 if test x$gas = xyes; then
4433                         # Only needed if gas does not support -s
4434                         tm_file="i386/sol2gas.h ${tm_file}"
4435                 fi
4436                 tmake_file=i386/t-sol2
4437                 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4438                 xmake_file=x-svr4
4439                 if test x${enable_threads} = x; then
4440                     enable_threads=$have_pthread_h
4441                     if test x${enable_threads} = x; then
4442                         enable_threads=$have_thread_h
4443                     fi
4444                 fi
4445                 if test x${enable_threads} = xyes; then
4446                     if test x${have_pthread_h} = xyes; then
4447                         thread_file='posix'
4448                     else
4449                         thread_file='solaris'
4450                     fi
4451                 fi
4452                 ;;
4453        i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
4454                xm_file="xm-alloca.h ${xm_file}"
4455                xm_defines="USG POSIX"
4456                tm_file=i386/sysv5.h
4457                if test x$stabs = xyes
4458                then
4459                        tm_file="${tm_file} dbx.h"
4460                fi
4461                tmake_file=i386/t-crtpic
4462                xmake_file=x-svr4
4463                extra_parts="crtbegin.o crtend.o"
4464                if test x$enable_threads = xyes; then
4465                        thread_file='posix'
4466                fi
4467                ;;
4468         i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
4469                 xm_file="xm-alloca.h ${xm_file}"
4470                 xm_defines="USG POSIX SMALL_ARG_MAX"
4471                 tm_file=i386/sysv4.h
4472                 if test x$stabs = xyes
4473                 then
4474                         tm_file="${tm_file} dbx.h"
4475                 fi
4476                 tmake_file=i386/t-crtpic
4477                 xmake_file=x-svr4
4478                 extra_parts="crtbegin.o crtend.o"
4479                 ;;
4480         i[34567]86-*-udk*)      # Intel x86 on SCO UW/OSR5 Dev Kit
4481                 xm_file="xm-alloca.h ${xm_file}"
4482                 xm_defines="USG POSIX"
4483                 tm_file=i386/udk.h
4484                 tmake_file="i386/t-crtpic i386/t-udk"
4485                 xmake_file=x-svr4
4486                 extra_parts="crtbegin.o crtend.o"
4487                 install_headers_dir=install-headers-cpio
4488                 ;;
4489         i[34567]86-*-osf1*)             # Intel 80386's running OSF/1 1.3+
4490                 cpu_type=i386
4491                 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4492                 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
4493                 if test x$stabs = xyes
4494                 then
4495                         tm_file=i386/osf1elfgdb.h
4496                 else
4497                         tm_file=i386/osf1elf.h
4498                 fi
4499                 tmake_file=i386/t-osf1elf
4500                 xmake_file=i386/x-osf1elf
4501                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4502                 ;;
4503         i[34567]86-*-sysv*)             # Intel 80386's running system V
4504                 xm_defines="USG SVR3"
4505                 xmake_file=i386/x-sysv3
4506                 if test x$gas = xyes
4507                 then
4508                         if test x$stabs = xyes
4509                         then
4510                                 tm_file=i386/svr3dbx.h
4511                                 tmake_file=i386/t-svr3dbx
4512                                 extra_parts="svr3.ifile svr3z.rfile"
4513                         else
4514                                 tm_file=i386/svr3gas.h
4515                                 extra_parts="crtbegin.o crtend.o"
4516                                 tmake_file=i386/t-crtstuff
4517                         fi
4518                 else
4519                         tm_file=i386/sysv3.h
4520                         extra_parts="crtbegin.o crtend.o"
4521                         tmake_file=i386/t-crtstuff
4522                 fi
4523                 ;;
4524         i386-*-vsta)                    # Intel 80386's running VSTa kernel
4525                 xm_file="${xm_file} i386/xm-vsta.h"
4526                 tm_file=i386/vsta.h
4527                 tmake_file=i386/t-vsta
4528                 xmake_file=i386/x-vsta
4529                 ;;
4530         i[34567]86-*-win32)
4531                 xm_file="${xm_file} i386/xm-cygwin.h"
4532                 tmake_file=i386/t-cygwin
4533                 tm_file=i386/win32.h
4534                 xmake_file=i386/x-cygwin
4535                 extra_objs=winnt.o
4536                 if test x$enable_threads = xyes; then
4537                         thread_file='win32'
4538                 fi
4539                 exeext=.exe
4540                 ;;
4541         i[34567]86-*-pe | i[34567]86-*-cygwin*)
4542                 xm_file="${xm_file} i386/xm-cygwin.h"
4543                 tmake_file=i386/t-cygwin
4544                 tm_file=i386/cygwin.h
4545                 xmake_file=i386/x-cygwin
4546                 extra_objs=winnt.o
4547                 if test x$enable_threads = xyes; then
4548                         thread_file='win32'
4549                 fi
4550                 exeext=.exe
4551                 ;;
4552         i[34567]86-*-mingw32*)
4553                 tm_file=i386/mingw32.h
4554                 xm_file="${xm_file} i386/xm-mingw32.h"
4555                 tmake_file="i386/t-cygwin i386/t-mingw32"
4556                 extra_objs=winnt.o
4557                 xmake_file=i386/x-cygwin
4558                 if test x$enable_threads = xyes; then
4559                         thread_file='win32'
4560                 fi
4561                 exeext=.exe
4562                 case $machine in
4563                         *mingw32msv*)
4564                                 ;;
4565                         *minwg32crt* | *mingw32*)
4566                                 tm_file="${tm_file} i386/crtdll.h"
4567                                 ;;
4568                 esac
4569                 ;;
4570         i[34567]86-*-uwin*)
4571                 tm_file=i386/uwin.h
4572                 xm_file="${xm_file} i386/xm-uwin.h"
4573                 xm_defines="USG NO_STAB_H"
4574                 tmake_file="i386/t-cygwin i386/t-uwin"
4575                 extra_objs=winnt.o
4576                 xmake_file=i386/x-cygwin
4577                 if test x$enable_threads = xyes; then
4578                         thread_file='win32'
4579                 fi
4580                 exeext=.exe
4581                 ;;
4582         i[34567]86-*-interix*)
4583                 tm_file="i386/i386-interix.h interix.h"
4584                 xm_file="i386/xm-i386-interix.h xm-interix.h"
4585                 xm_defines="USG"
4586                 tmake_file="i386/t-interix"
4587                 extra_objs=interix.o
4588                 xmake_file=x-interix
4589                 if test x$enable_threads = xyes ; then
4590                         thread_file='posix'
4591                 fi
4592                 if test x$stabs = xyes ; then
4593                         tm_file="${tm_file} dbxcoff.h"
4594                 fi
4595                 ;;
4596         i[34567]86-*-winnt3*)
4597                 tm_file=i386/win-nt.h
4598                 out_file=i386/i386.c
4599                 xm_file="xm-winnt.h ${xm_file}"
4600                 xmake_file=winnt/x-winnt
4601                 tmake_file=i386/t-winnt
4602                 extra_host_objs="winnt.o oldnames.o"
4603                 extra_gcc_objs="spawnv.o oldnames.o"
4604                 if test x$gnu_ld != xyes
4605                 then
4606                         extra_programs=ld.exe
4607                 fi
4608                 if test x$enable_threads = xyes; then
4609                         thread_file='win32'
4610                 fi
4611                 ;;
4612         i[34567]86-dg-dgux*)
4613                 xm_file="xm-alloca.h ${xm_file}"
4614                 xm_defines="USG POSIX"
4615                 out_file=i386/dgux.c
4616                 tm_file=i386/dgux.h
4617                 tmake_file=i386/t-dgux
4618                 xmake_file=i386/x-dgux
4619                 install_headers_dir=install-headers-cpio
4620               ;;
4621         i860-alliant-*)         # Alliant FX/2800
4622                 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4623                 xm_file="${xm_file}"
4624                 xmake_file=i860/x-fx2800
4625                 tmake_file=i860/t-fx2800
4626                 extra_parts="crtbegin.o crtend.o"
4627                 ;;
4628         i860-*-bsd*)
4629                 tm_file="${tm_file} i860/bsd.h"
4630                 if test x$gas = xyes
4631                 then
4632                         tm_file="${tm_file} i860/bsd-gas.h"
4633                 fi
4634                 use_collect2=yes
4635                 ;;
4636         i860-*-mach*)
4637                 tm_file="${tm_file} i860/mach.h"
4638                 tmake_file=t-libc-ok
4639                 ;;
4640         i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
4641                 tm_file="${tm_file} svr3.h i860/paragon.h"
4642                 xm_defines="USG SVR3"
4643                 tmake_file=t-osf
4644                 ;;
4645         i860-*-sysv3*)
4646                 tm_file="${tm_file} svr3.h i860/sysv3.h"
4647                 xm_defines="USG SVR3"
4648                 xmake_file=i860/x-sysv3
4649                 extra_parts="crtbegin.o crtend.o"
4650                 ;;
4651         i860-*-sysv4*)
4652                 tm_file="${tm_file} svr4.h i860/sysv4.h"
4653                 xm_defines="USG SVR3"
4654                 xmake_file=i860/x-sysv4
4655                 tmake_file=t-svr4
4656                 extra_parts="crtbegin.o crtend.o"
4657                 ;;
4658         i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4659                 tm_file="${tm_file} i960/vx960.h"
4660                 tmake_file=i960/t-vxworks960
4661                 use_collect2=yes
4662                 thread_file='vxworks'
4663                 ;;
4664         i960-wrs-vxworks5* | i960-wrs-vxworks)
4665                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4666                 tmake_file=i960/t-vxworks960
4667                 use_collect2=yes
4668                 thread_file='vxworks'
4669                 ;;
4670         i960-wrs-vxworks*)
4671                 tm_file="${tm_file} i960/vx960.h"
4672                 tmake_file=i960/t-vxworks960
4673                 use_collect2=yes
4674                 thread_file='vxworks'
4675                 ;;
4676         i960-*-coff*)
4677                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4678                 tmake_file=i960/t-960bare
4679                 use_collect2=yes
4680                 ;;
4681         i960-*-rtems)
4682                 tmake_file="i960/t-960bare t-rtems"
4683                 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4684                 use_collect2=yes
4685                 ;;
4686         i960-*-*)                       # Default i960 environment.
4687                 use_collect2=yes
4688                 ;;
4689         ia64*-*-elf*)
4690                 tm_file=ia64/elf.h
4691                 tmake_file="ia64/t-ia64"
4692                 target_cpu_default="0"
4693                 if test x$gas = xyes
4694                 then
4695                         target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
4696                 fi
4697                 if test x$gnu_ld = xyes
4698                 then
4699                         target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
4700                 fi
4701                 ;;
4702         ia64*-*-linux*)
4703                 tm_file=ia64/linux.h
4704                 tmake_file="t-linux ia64/t-ia64"
4705                 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
4706                 if test x$enable_threads = xyes; then
4707                         thread_file='posix'
4708                 fi
4709                 ;;
4710         m32r-*-elf*)
4711                 extra_parts="crtinit.o crtfini.o"
4712                 ;;
4713         m68000-convergent-sysv*)
4714                 tm_file=m68k/ctix.h
4715                 xm_file="m68k/xm-3b1.h ${xm_file}"
4716                 xm_defines=USG
4717                 use_collect2=yes
4718                 extra_headers=math-68881.h
4719                 ;;
4720         m68000-hp-bsd*)                 # HP 9000/200 running BSD
4721                 tm_file=m68k/hp2bsd.h
4722                 xmake_file=m68k/x-hp2bsd
4723                 use_collect2=yes
4724                 extra_headers=math-68881.h
4725                 ;;
4726         m68000-hp-hpux*)                # HP 9000 series 300
4727                 xm_file="xm-alloca.h ${xm_file}"
4728                 xm_defines="USG"
4729                 if test x$gas = xyes
4730                 then
4731                         xmake_file=m68k/x-hp320g
4732                         tm_file=m68k/hp310g.h
4733                 else
4734                         xmake_file=m68k/x-hp320
4735                         tm_file=m68k/hp310.h
4736                 fi
4737                 install_headers_dir=install-headers-cpio
4738                 use_collect2=yes
4739                 extra_headers=math-68881.h
4740                 ;;
4741         m68000-sun-sunos3*)
4742                 tm_file=m68k/sun2.h
4743                 use_collect2=yes
4744                 extra_headers=math-68881.h
4745                 ;;
4746         m68000-sun-sunos4*)
4747                 tm_file=m68k/sun2o4.h
4748                 use_collect2=yes
4749                 extra_headers=math-68881.h
4750                 ;;
4751         m68000-att-sysv*)
4752                 xm_file="m68k/xm-3b1.h ${xm_file}"
4753                 xm_defines=USG
4754                 if test x$gas = xyes
4755                 then
4756                         tm_file=m68k/3b1g.h
4757                 else
4758                         tm_file=m68k/3b1.h
4759                 fi
4760                 use_collect2=yes
4761                 extra_headers=math-68881.h
4762                 ;;
4763         m68k-apple-aux*)                # Apple Macintosh running A/UX
4764                 xm_defines="USG AUX"
4765                 tmake_file=m68k/t-aux
4766                 install_headers_dir=install-headers-cpio
4767                 extra_headers=math-68881.h
4768                 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4769                 tm_file=
4770                 if test "$gnu_ld" = yes
4771                 then
4772                         tm_file="${tm_file} m68k/auxgld.h"
4773                 else
4774                         tm_file="${tm_file} m68k/auxld.h"
4775                 fi
4776                 if test "$gas" = yes
4777                 then
4778                         tm_file="${tm_file} m68k/auxgas.h"
4779                 else
4780                         tm_file="${tm_file} m68k/auxas.h"
4781                 fi
4782                 tm_file="${tm_file} m68k/a-ux.h"
4783                 float_format=m68k
4784                 ;;
4785         m68k-apollo-*)
4786                 tm_file=m68k/apollo68.h
4787                 xmake_file=m68k/x-apollo68
4788                 use_collect2=yes
4789                 extra_headers=math-68881.h
4790                 float_format=m68k
4791                 ;;
4792         m68k-altos-sysv*)                  # Altos 3068
4793                 if test x$gas = xyes
4794                 then
4795                         tm_file=m68k/altos3068.h
4796                         xm_defines=USG
4797                 else
4798                         echo "The Altos is supported only with the GNU assembler" 1>&2
4799                         exit 1
4800                 fi
4801                 extra_headers=math-68881.h
4802                 ;;
4803         m68k-bull-sysv*)                # Bull DPX/2
4804                 if test x$gas = xyes
4805                 then
4806                         if test x$stabs = xyes
4807                         then
4808                                 tm_file=m68k/dpx2cdbx.h
4809                         else
4810                                 tm_file=m68k/dpx2g.h
4811                         fi
4812                 else
4813                         tm_file=m68k/dpx2.h
4814                 fi
4815                 xm_file="xm-alloca.h ${xm_file}"
4816                 xm_defines=USG
4817                 xmake_file=m68k/x-dpx2
4818                 use_collect2=yes
4819                 extra_headers=math-68881.h
4820                 ;;
4821         m68k-atari-sysv4*)              # Atari variant of V.4.
4822                 tm_file=m68k/atari.h
4823                 xm_file="xm-alloca.h ${xm_file}"
4824                 xm_defines="USG FULL_PROTOTYPES"
4825                 tmake_file=t-svr4
4826                 extra_parts="crtbegin.o crtend.o"
4827                 extra_headers=math-68881.h
4828                 float_format=m68k
4829                 ;;
4830         m68k-motorola-sysv*)
4831                 tm_file=m68k/mot3300.h
4832                 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4833                 if test x$gas = xyes
4834                 then
4835                         xmake_file=m68k/x-mot3300-gas
4836                         if test x$gnu_ld = xyes
4837                         then
4838                                 tmake_file=m68k/t-mot3300-gald
4839                         else
4840                                 tmake_file=m68k/t-mot3300-gas
4841                                 use_collect2=yes
4842                         fi
4843                 else
4844                         xmake_file=m68k/x-mot3300
4845                         if test x$gnu_ld = xyes
4846                         then
4847                                 tmake_file=m68k/t-mot3300-gld
4848                         else
4849                                 tmake_file=m68k/t-mot3300
4850                                 use_collect2=yes
4851                         fi
4852                 fi
4853                 gdb_needs_out_file_path=yes
4854                 extra_parts="crt0.o mcrt0.o"
4855                 extra_headers=math-68881.h
4856                 float_format=m68k
4857                 ;;
4858         m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
4859                 tm_file=m68k/tower-as.h
4860                 xm_defines="USG SVR3"
4861                 xmake_file=m68k/x-tower
4862                 extra_parts="crtbegin.o crtend.o"
4863                 extra_headers=math-68881.h
4864                 ;;
4865         m68k-plexus-sysv*)
4866                 tm_file=m68k/plexus.h
4867                 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4868                 xm_defines=USG
4869                 use_collect2=yes
4870                 extra_headers=math-68881.h
4871                 ;;
4872         m68k-tti-*)
4873                 tm_file=m68k/pbb.h
4874                 xm_file="xm-alloca.h ${xm_file}"
4875                 xm_defines=USG
4876                 extra_headers=math-68881.h
4877                 ;;
4878         m68k-crds-unos*)
4879                 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4880                 xm_defines="USG unos"
4881                 xmake_file=m68k/x-crds
4882                 tm_file=m68k/crds.h
4883                 use_collect2=yes
4884                 extra_headers=math-68881.h
4885                 ;;
4886         m68k-cbm-sysv4*)                # Commodore variant of V.4.
4887                 tm_file=m68k/amix.h
4888                 xm_file="xm-alloca.h ${xm_file}"
4889                 xm_defines="USG FULL_PROTOTYPES"
4890                 xmake_file=m68k/x-amix
4891                 tmake_file=t-svr4
4892                 extra_parts="crtbegin.o crtend.o"
4893                 extra_headers=math-68881.h
4894                 float_format=m68k
4895                 ;;
4896         m68k-ccur-rtu)
4897                 tm_file=m68k/ccur-GAS.h
4898                 xmake_file=m68k/x-ccur
4899                 extra_headers=math-68881.h
4900                 use_collect2=yes
4901                 float_format=m68k
4902                 ;;
4903         m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
4904                 tm_file=m68k/hp3bsd44.h
4905                 xmake_file=m68k/x-hp3bsd44
4906                 use_collect2=yes
4907                 extra_headers=math-68881.h
4908                 float_format=m68k
4909                 ;;
4910         m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
4911                 tm_file=m68k/hp3bsd.h
4912                 use_collect2=yes
4913                 extra_headers=math-68881.h
4914                 float_format=m68k
4915                 ;;
4916         m68k-isi-bsd*)
4917                 if test x$with_fp = xno
4918                 then
4919                         tm_file=m68k/isi-nfp.h
4920                 else
4921                         tm_file=m68k/isi.h
4922                         float_format=m68k
4923                 fi
4924                 use_collect2=yes
4925                 extra_headers=math-68881.h
4926                 ;;
4927         m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4928                 xm_file="xm-alloca.h ${xm_file}"
4929                 xm_defines="USG"
4930                 if test x$gas = xyes
4931                 then
4932                         xmake_file=m68k/x-hp320g
4933                         tm_file=m68k/hp320g.h
4934                 else
4935                         xmake_file=m68k/x-hp320
4936                         tm_file=m68k/hpux7.h
4937                 fi
4938                 install_headers_dir=install-headers-cpio
4939                 use_collect2=yes
4940                 extra_headers=math-68881.h
4941                 float_format=m68k
4942                 ;;
4943         m68k-hp-hpux*)  # HP 9000 series 300
4944                 xm_file="xm-alloca.h ${xm_file}"
4945                 xm_defines="USG"
4946                 if test x$gas = xyes
4947                 then
4948                         xmake_file=m68k/x-hp320g
4949                         tm_file=m68k/hp320g.h
4950                 else
4951                         xmake_file=m68k/x-hp320
4952                         tm_file=m68k/hp320.h
4953                 fi
4954                 install_headers_dir=install-headers-cpio
4955                 use_collect2=yes
4956                 extra_headers=math-68881.h
4957                 float_format=m68k
4958                 ;;
4959         m68k-sun-mach*)
4960                 tm_file=m68k/sun3mach.h
4961                 use_collect2=yes
4962                 extra_headers=math-68881.h
4963                 float_format=m68k
4964                 ;;
4965         m68k-sony-newsos3*)
4966                 if test x$gas = xyes
4967                 then
4968                         tm_file=m68k/news3gas.h
4969                 else
4970                         tm_file=m68k/news3.h
4971                 fi
4972                 use_collect2=yes
4973                 extra_headers=math-68881.h
4974                 float_format=m68k
4975                 ;;
4976         m68k-sony-bsd* | m68k-sony-newsos*)
4977                 if test x$gas = xyes
4978                 then
4979                         tm_file=m68k/newsgas.h
4980                 else
4981                         tm_file=m68k/news.h
4982                 fi
4983                 use_collect2=yes
4984                 extra_headers=math-68881.h
4985                 float_format=m68k
4986                 ;;
4987         m68k-next-nextstep2*)
4988                 tm_file=m68k/next21.h
4989                 xm_file="m68k/xm-next.h ${xm_file}"
4990                 tmake_file=m68k/t-next
4991                 xmake_file=m68k/x-next
4992                 extra_objs=nextstep.o
4993                 extra_headers=math-68881.h
4994                 use_collect2=yes
4995                 float_format=m68k
4996                 ;;
4997         m68k-next-nextstep[34]*)
4998                 tm_file=m68k/next.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_parts="crtbegin.o crtend.o"
5004                 extra_headers=math-68881.h
5005                 float_format=m68k
5006                 if test x$enable_threads = xyes; then
5007                         thread_file='mach'
5008                 fi
5009                 ;;
5010         m68k-sun-sunos3*)
5011                 if test x$with_fp = xno
5012                 then
5013                         tm_file=m68k/sun3n3.h
5014                 else
5015                         tm_file=m68k/sun3o3.h
5016                         float_format=m68k
5017                 fi
5018                 use_collect2=yes
5019                 extra_headers=math-68881.h
5020                 ;;
5021         m68k-sun-sunos*)                        # For SunOS 4 (the default).
5022                 if test x$with_fp = xno
5023                 then
5024                         tm_file=m68k/sun3n.h
5025                 else
5026                         tm_file=m68k/sun3.h
5027                         float_format=m68k
5028                 fi
5029                 use_collect2=yes
5030                 extra_headers=math-68881.h
5031                 ;;
5032         m68k-wrs-vxworks*)
5033                 tm_file=m68k/vxm68k.h
5034                 tmake_file=m68k/t-vxworks68
5035                 extra_headers=math-68881.h
5036                 thread_file='vxworks'
5037                 float_format=m68k
5038                 ;;
5039         m68k-*-aout*)
5040                 tmake_file=m68k/t-m68kbare
5041                 tm_file="m68k/m68k-aout.h libgloss.h"
5042                 extra_headers=math-68881.h
5043                 float_format=m68k
5044                 ;;
5045         m68k-*-coff*)
5046                 tmake_file=m68k/t-m68kbare
5047                 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
5048                 extra_headers=math-68881.h
5049                 float_format=m68k
5050                 ;;
5051         m68020-*-elf* | m68k-*-elf*)
5052                 tm_file="m68k/m68020-elf.h"
5053                 xm_file=m68k/xm-m68kv.h
5054                 tmake_file=m68k/t-m68kelf
5055                 header_files=math-68881.h
5056                 ;;
5057         m68k-*-lynxos*)
5058                 if test x$gas = xyes
5059                 then
5060                         tm_file=m68k/lynx.h
5061                 else
5062                         tm_file=m68k/lynx-ng.h
5063                 fi
5064                 xm_file=m68k/xm-lynx.h
5065                 xmake_file=x-lynx
5066                 tmake_file=m68k/t-lynx
5067                 extra_headers=math-68881.h
5068                 float_format=m68k
5069                 ;;
5070         m68k*-*-netbsd*)
5071                 tm_file=m68k/netbsd.h
5072                 tmake_file=t-netbsd
5073                 float_format=m68k
5074                 use_collect2=yes
5075                 ;;
5076         m68k*-*-openbsd*)
5077                 float_format=m68k
5078                 # we need collect2 until our bug is fixed...
5079                 use_collect2=yes
5080                 ;;
5081         m68k-*-sysv3*)                  # Motorola m68k's running system V.3
5082                 xm_file="xm-alloca.h ${xm_file}"
5083                 xm_defines=USG
5084                 xmake_file=m68k/x-m68kv
5085                 extra_parts="crtbegin.o crtend.o"
5086                 extra_headers=math-68881.h
5087                 float_format=m68k
5088                 ;;
5089         m68k-*-sysv4*)                  # Motorola m68k's running system V.4
5090                 tm_file=m68k/m68kv4.h
5091                 xm_file="xm-alloca.h ${xm_file}"
5092                 xm_defines=USG
5093                 tmake_file=t-svr4
5094                 extra_parts="crtbegin.o crtend.o"
5095                 extra_headers=math-68881.h
5096                 float_format=m68k
5097                 ;;
5098         m68k-*-linux-gnuaout*)          # Motorola m68k's running GNU/Linux
5099                                         # with a.out format
5100                 xmake_file=x-linux
5101                 tm_file=m68k/linux-aout.h
5102                 tmake_file="t-linux-aout m68k/t-linux-aout"
5103                 extra_headers=math-68881.h
5104                 float_format=m68k
5105                 gnu_ld=yes
5106                 ;;
5107         m68k-*-linux-gnulibc1)          # Motorola m68k's running GNU/Linux
5108                                         # with ELF format using the
5109                                         # GNU/Linux C library 5
5110                 xmake_file=x-linux
5111                 tm_file=m68k/linux.h
5112                 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
5113                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5114                 extra_headers=math-68881.h
5115                 float_format=m68k
5116                 gnu_ld=yes
5117                 ;;
5118         m68k-*-linux-gnu*)              # Motorola m68k's running GNU/Linux
5119                                         # with ELF format using glibc 2
5120                                         # aka the GNU/Linux C library 6.
5121                 xmake_file=x-linux
5122                 tm_file=m68k/linux.h
5123                 tmake_file="t-linux m68k/t-linux"
5124                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5125                 extra_headers=math-68881.h
5126                 float_format=m68k
5127                 gnu_ld=yes
5128                 if test x$enable_threads = xyes; then
5129                         thread_file='posix'
5130                 fi
5131                 ;;
5132         m68k-*-psos*)
5133                 tmake_file=m68k/t-m68kbare
5134                 tm_file=m68k/m68k-psos.h
5135                 extra_headers=math-68881.h
5136                 float_format=m68k
5137                 ;;
5138         m68k-*-rtemscoff*)
5139                 tmake_file="m68k/t-m68kbare t-rtems"
5140                 tm_file=m68k/rtems.h
5141                 extra_headers=math-68881.h
5142                 float_format=m68k
5143                 ;;
5144         m68k-*-rtemself*|m68k-*-rtems*)
5145                 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5146                 tm_file=m68k/rtemself.h
5147                 extra_headers=math-68881.h
5148                 float_format=m68k
5149                 ;;
5150         m88k-dg-dgux*)
5151                 case $machine in
5152                   m88k-dg-dguxbcs*)
5153                     tm_file=m88k/dguxbcs.h
5154                     tmake_file=m88k/t-dguxbcs
5155                     ;;
5156                   *)
5157                     tm_file=m88k/dgux.h
5158                     tmake_file=m88k/t-dgux
5159                     ;;
5160                 esac
5161                 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5162                 xmake_file=m88k/x-dgux
5163                 if test x$gas = xyes
5164                 then
5165                         tmake_file=m88k/t-dgux-gas
5166                 fi
5167                 ;;
5168         m88k-dolphin-sysv3*)
5169                 tm_file=m88k/dolph.h
5170                 extra_parts="crtbegin.o crtend.o"
5171                 xm_file="m88k/xm-sysv3.h ${xm_file}"
5172                 xmake_file=m88k/x-dolph
5173                 if test x$gas = xyes
5174                 then
5175                         tmake_file=m88k/t-m88k-gas
5176                 fi
5177                 ;;
5178         m88k-tektronix-sysv3)
5179                 tm_file=m88k/tekXD88.h
5180                 extra_parts="crtbegin.o crtend.o"
5181                 xm_file="m88k/xm-sysv3.h ${xm_file}"
5182                 xmake_file=m88k/x-tekXD88
5183                 if test x$gas = xyes
5184                 then
5185                         tmake_file=m88k/t-m88k-gas
5186                 fi
5187                 ;;
5188         m88k-*-aout*)
5189                 tm_file=m88k/m88k-aout.h
5190                 ;;
5191         m88k-*-coff*)
5192                 tm_file=m88k/m88k-coff.h
5193                 tmake_file=m88k/t-bug
5194                 ;;
5195         m88k-*-luna*)
5196                 tm_file=m88k/luna.h
5197                 extra_parts="crtbegin.o crtend.o"
5198                 if test x$gas = xyes
5199                 then
5200                         tmake_file=m88k/t-luna-gas
5201                 else
5202                         tmake_file=m88k/t-luna
5203                 fi
5204                 ;;
5205         m88k-*-openbsd*)
5206                 tmake_file="${tmake_file} m88k/t-luna-gas"
5207                 ;;
5208         m88k-*-sysv3*)
5209                 tm_file=m88k/sysv3.h
5210                 extra_parts="crtbegin.o crtend.o"
5211                 xm_file="m88k/xm-sysv3.h ${xm_file}"
5212                 xmake_file=m88k/x-sysv3
5213                 if test x$gas = xyes
5214                 then
5215                         tmake_file=m88k/t-m88k-gas
5216                 fi
5217                 ;;
5218         m88k-*-sysv4*)
5219                 tm_file=m88k/sysv4.h
5220                 extra_parts="crtbegin.o crtend.o"
5221                 xmake_file=m88k/x-sysv4
5222                 tmake_file=m88k/t-sysv4
5223                 ;;
5224         mcore-*-elf)
5225                 tm_file=mcore/mcore-elf.h
5226                 tmake_file=mcore/t-mcore
5227                 ;;
5228         mcore-*-pe*)
5229                 tm_file=mcore/mcore-pe.h
5230                 tmake_file=mcore/t-mcore-pe
5231                 ;;
5232         mips-sgi-irix6*)                # SGI System V.4., IRIX 6
5233                 if test "x$gnu_ld" = xyes
5234                 then
5235                         tm_file="mips/iris6.h mips/iris6gld.h"
5236                 else
5237                         tm_file=mips/iris6.h
5238                 fi
5239                 tmake_file=mips/t-iris6
5240                 xm_file=mips/xm-iris6.h
5241                 xmake_file=mips/x-iris6
5242 #               if test x$enable_threads = xyes; then
5243 #                       thread_file='irix'
5244 #               fi
5245                 ;;
5246         mips-wrs-vxworks)
5247                 tm_file="mips/elf.h mips/vxworks.h"
5248                 tmake_file=mips/t-ecoff
5249                 gas=yes
5250                 gnu_ld=yes
5251                 extra_parts="crtbegin.o crtend.o"
5252                 thread_file='vxworks'
5253                 ;;
5254         mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
5255                 tm_file="mips/iris6.h mips/cross64.h"
5256                 xm_defines=USG
5257                 xm_file="mips/xm-iris5.h"
5258                 xmake_file=mips/x-iris
5259                 tmake_file=mips/t-cross64
5260                 # See comment in mips/iris[56].h files.
5261                 use_collect2=yes
5262 #               if test x$enable_threads = xyes; then
5263 #                       thread_file='irix'
5264 #               fi
5265                 ;;
5266         mips-sni-sysv4)
5267                 if test x$gas = xyes
5268                 then
5269                         if test x$stabs = xyes
5270                         then
5271                                 tm_file=mips/iris5gdb.h
5272                         else
5273                                 tm_file="mips/sni-svr4.h mips/sni-gas.h"
5274                         fi
5275                 else
5276                         tm_file=mips/sni-svr4.h
5277                 fi
5278                 xm_defines=USG
5279                 xmake_file=mips/x-sni-svr4
5280                 tmake_file=mips/t-mips-gas
5281                 if test x$gnu_ld != xyes
5282                 then
5283                         use_collect2=yes
5284                 fi
5285                 ;;
5286         mips-sgi-irix5*)                # SGI System V.4., IRIX 5
5287                 if test x$gas = xyes
5288                 then
5289                         tm_file="mips/iris5.h mips/iris5gas.h"
5290                         if test x$stabs = xyes
5291                         then
5292                                 tm_file="${tm_file} dbx.h"
5293                         fi
5294                 else
5295                         tm_file=mips/iris5.h
5296                 fi
5297                 xm_defines=USG
5298                 xm_file="mips/xm-iris5.h"
5299                 xmake_file=mips/x-iris
5300                 # mips-tfile doesn't work yet
5301                 tmake_file=mips/t-mips-gas
5302                 # See comment in mips/iris5.h file.
5303                 use_collect2=yes
5304 #               if test x$enable_threads = xyes; then
5305 #                       thread_file='irix'
5306 #               fi
5307                 ;;
5308         mips-sgi-irix4loser*)           # Mostly like a MIPS.
5309                 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5310                 if test x$stabs = xyes; then
5311                         tm_file="${tm_file} dbx.h"
5312                 fi
5313                 xm_defines=USG
5314                 xmake_file=mips/x-iris
5315                 if test x$gas = xyes
5316                 then
5317                         tmake_file=mips/t-mips-gas
5318                 else
5319                         extra_passes="mips-tfile mips-tdump"
5320                 fi
5321                 if test x$gnu_ld != xyes
5322                 then
5323                         use_collect2=yes
5324                 fi
5325 #               if test x$enable_threads = xyes; then
5326 #                       thread_file='irix'
5327 #               fi
5328                 ;;
5329         mips-sgi-irix4*)                # Mostly like a MIPS.
5330                 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
5331                 if test x$stabs = xyes; then
5332                         tm_file="${tm_file} dbx.h"
5333                 fi
5334                 xm_defines=USG
5335                 xmake_file=mips/x-iris
5336                 if test x$gas = xyes
5337                 then
5338                         tmake_file=mips/t-mips-gas
5339                 else
5340                         extra_passes="mips-tfile mips-tdump"
5341                 fi
5342                 if test x$gnu_ld != xyes
5343                 then
5344                         use_collect2=yes
5345                 fi
5346 #               if test x$enable_threads = xyes; then
5347 #                       thread_file='irix'
5348 #               fi
5349                 ;;
5350         mips-sgi-*)                     # Mostly like a MIPS.
5351                 tm_file="mips/iris3.h ${tm_file}"
5352                 if test x$stabs = xyes; then
5353                         tm_file="${tm_file} dbx.h"
5354                 fi
5355                 xm_defines=USG
5356                 xmake_file=mips/x-iris3
5357                 if test x$gas = xyes
5358                 then
5359                         tmake_file=mips/t-mips-gas
5360                 else
5361                         extra_passes="mips-tfile mips-tdump"
5362                 fi
5363                 if test x$gnu_ld != xyes
5364                 then
5365                         use_collect2=yes
5366                 fi
5367                 ;;
5368         mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
5369                 tm_file="mips/osfrose.h ${tm_file}"
5370                 xmake_file=mips/x-osfrose
5371                 tmake_file=mips/t-osfrose
5372                 extra_objs=halfpic.o
5373                 use_collect2=yes
5374                 ;;
5375         mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
5376                 tm_file=mips/dec-osf1.h
5377                 if test x$stabs = xyes; then
5378                         tm_file="${tm_file} dbx.h"
5379                 fi
5380                 xmake_file=mips/x-dec-osf1
5381                 if test x$gas = xyes
5382                 then
5383                         tmake_file=mips/t-mips-gas
5384                 else
5385                         tmake_file=mips/t-ultrix
5386                         extra_passes="mips-tfile mips-tdump"
5387                 fi
5388                 if test x$gnu_ld != xyes
5389                 then
5390                         use_collect2=yes
5391                 fi
5392                 ;;
5393         mips-dec-bsd*)                  # Decstation running 4.4 BSD
5394               tm_file=mips/dec-bsd.h
5395               if test x$gas = xyes
5396               then
5397                         tmake_file=mips/t-mips-gas
5398               else
5399                         tmake_file=mips/t-ultrix
5400                         extra_passes="mips-tfile mips-tdump"
5401               fi
5402               if test x$gnu_ld != xyes
5403               then
5404                         use_collect2=yes
5405               fi
5406               ;;
5407         mipsel-*-netbsd* | mips-dec-netbsd*)    # Decstation running NetBSD
5408                 tm_file=mips/netbsd.h
5409                 # On NetBSD, the headers are already okay, except for math.h.
5410                 tmake_file=t-netbsd
5411                 ;;
5412        mips*-*-linux*)                         # Linux MIPS, either endian.
5413                 xmake_file=x-linux
5414                case $machine in
5415                        mipsel-*)  tm_file="mips/elfl.h mips/linux.h" ;;
5416                        *)         tm_file="mips/elf.h mips/linux.h" ;;
5417                esac
5418                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5419                 gnu_ld=yes
5420                 gas=yes
5421                 if test x$enable_threads = xyes; then
5422                         thread_file='posix'
5423                 fi
5424                 ;;
5425         mips*el-*-openbsd*)     # mips little endian
5426                 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5427                 ;;
5428         mips*-*-openbsd*)               # mips big endian
5429                 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5430                 tm_file="mips/openbsd-be.h ${tm_file}"
5431                 ;;
5432         mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
5433                 tm_file="mips/news4.h ${tm_file}"
5434                 if test x$stabs = xyes; then
5435                         tm_file="${tm_file} dbx.h"
5436                 fi
5437                 if test x$gas = xyes
5438                 then
5439                         tmake_file=mips/t-mips-gas
5440                 else
5441                         extra_passes="mips-tfile mips-tdump"
5442                 fi
5443                 if test x$gnu_ld != xyes
5444                 then
5445                         use_collect2=yes
5446                 fi
5447                 xmake_file=mips/x-sony
5448                 ;;
5449         mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
5450                                         # That is based on svr4.
5451                 # t-svr4 is not right because this system doesn't use ELF.
5452                 tm_file="mips/news5.h ${tm_file}"
5453                 if test x$stabs = xyes; then
5454                         tm_file="${tm_file} dbx.h"
5455                 fi
5456                 xm_defines=USG
5457                 if test x$gas = xyes
5458                 then
5459                         tmake_file=mips/t-mips-gas
5460                 else
5461                         extra_passes="mips-tfile mips-tdump"
5462                 fi
5463                 if test x$gnu_ld != xyes
5464                 then
5465                         use_collect2=yes
5466                 fi
5467                 ;;
5468         mips-tandem-sysv4*)             # Tandem S2 running NonStop UX
5469                 tm_file="mips/svr4-5.h mips/svr4-t.h"
5470                 if test x$stabs = xyes; then
5471                         tm_file="${tm_file} dbx.h"
5472                 fi
5473                 xm_defines=USG
5474                 xmake_file=mips/x-sysv
5475                 if test x$gas = xyes
5476                 then
5477                         tmake_file=mips/t-mips-gas
5478                         extra_parts="crtbegin.o crtend.o"
5479                 else
5480                         tmake_file=mips/t-mips
5481                         extra_passes="mips-tfile mips-tdump"
5482                 fi
5483                 if test x$gnu_ld != xyes
5484                 then
5485                         use_collect2=yes
5486                 fi
5487                 ;;
5488         mips-*-ultrix* | mips-dec-mach3)        # Decstation.
5489                 tm_file="mips/ultrix.h ${tm_file}"
5490                 if test x$stabs = xyes; then
5491                         tm_file="${tm_file} dbx.h"
5492                 fi
5493                 xmake_file=mips/x-ultrix
5494                 if test x$gas = xyes
5495                 then
5496                         tmake_file=mips/t-mips-gas
5497                 else
5498                         tmake_file=mips/t-ultrix
5499                         extra_passes="mips-tfile mips-tdump"
5500                 fi
5501                 if test x$gnu_ld != xyes
5502                 then
5503                         use_collect2=yes
5504                 fi
5505                 ;;
5506         mips-*-riscos[56789]bsd*)
5507                 tm_file=mips/bsd-5.h    # MIPS BSD 4.3, RISC-OS 5.0
5508                 if test x$stabs = xyes; then
5509                         tm_file="${tm_file} dbx.h"
5510                 fi
5511                 if test x$gas = xyes
5512                 then
5513                         tmake_file=mips/t-bsd-gas
5514                 else
5515                         tmake_file=mips/t-bsd
5516                         extra_passes="mips-tfile mips-tdump"
5517                 fi
5518                 if test x$gnu_ld != xyes
5519                 then
5520                         use_collect2=yes
5521                 fi
5522                 ;;
5523         mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
5524                 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5525                 if test x$stabs = xyes; then
5526                         tm_file="${tm_file} dbx.h"
5527                 fi
5528                 if test x$gas = xyes
5529                 then
5530                         tmake_file=mips/t-bsd-gas
5531                 else
5532                         tmake_file=mips/t-bsd
5533                         extra_passes="mips-tfile mips-tdump"
5534                 fi
5535                 if test x$gnu_ld != xyes
5536                 then
5537                         use_collect2=yes
5538                 fi
5539                 ;;
5540         mips-*-riscos[56789]sysv4*)
5541                 tm_file=mips/svr4-5.h   # MIPS System V.4., RISC-OS 5.0
5542                 if test x$stabs = xyes; then
5543                         tm_file="${tm_file} dbx.h"
5544                 fi
5545                 xmake_file=mips/x-sysv
5546                 if test x$gas = xyes
5547                 then
5548                         tmake_file=mips/t-svr4-gas
5549                 else
5550                         tmake_file=mips/t-svr4
5551                         extra_passes="mips-tfile mips-tdump"
5552                 fi
5553                 if test x$gnu_ld != xyes
5554                 then
5555                         use_collect2=yes
5556                 fi
5557                 ;;
5558         mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5559                 tm_file="mips/svr4-4.h ${tm_file}"
5560                 if test x$stabs = xyes; then
5561                         tm_file="${tm_file} dbx.h"
5562                 fi
5563                 xm_defines=USG
5564                 xmake_file=mips/x-sysv
5565                 if test x$gas = xyes
5566                 then
5567                         tmake_file=mips/t-svr4-gas
5568                 else
5569                         tmake_file=mips/t-svr4
5570                         extra_passes="mips-tfile mips-tdump"
5571                 fi
5572                 if test x$gnu_ld != xyes
5573                 then
5574                         use_collect2=yes
5575                 fi
5576                 ;;
5577         mips-*-riscos[56789]sysv*)
5578                 tm_file=mips/svr3-5.h   # MIPS System V.3, RISC-OS 5.0
5579                 if test x$stabs = xyes; then
5580                         tm_file="${tm_file} dbx.h"
5581                 fi
5582                 xm_defines=USG
5583                 xmake_file=mips/x-sysv
5584                 if test x$gas = xyes
5585                 then
5586                         tmake_file=mips/t-svr3-gas
5587                 else
5588                         tmake_file=mips/t-svr3
5589                         extra_passes="mips-tfile mips-tdump"
5590                 fi
5591                 if test x$gnu_ld != xyes
5592                 then
5593                         use_collect2=yes
5594                 fi
5595                 ;;
5596         mips-*-sysv* | mips-*-riscos*sysv*)
5597                 tm_file="mips/svr3-4.h ${tm_file}"
5598                 if test x$stabs = xyes; then
5599                         tm_file="${tm_file} dbx.h"
5600                 fi
5601                 xm_defines=USG
5602                 xmake_file=mips/x-sysv
5603                 if test x$gas = xyes
5604                 then
5605                         tmake_file=mips/t-svr3-gas
5606                 else
5607                         tmake_file=mips/t-svr3
5608                         extra_passes="mips-tfile mips-tdump"
5609                 fi
5610                 if test x$gnu_ld != xyes
5611                 then
5612                         use_collect2=yes
5613                 fi
5614                 ;;
5615         mips-*-riscos[56789]*)          # Default MIPS RISC-OS 5.0.
5616                 tm_file=mips/mips-5.h
5617                 if test x$stabs = xyes; then
5618                         tm_file="${tm_file} dbx.h"
5619                 fi
5620                 if test x$gas = xyes
5621                 then
5622                         tmake_file=mips/t-mips-gas
5623                 else
5624                         extra_passes="mips-tfile mips-tdump"
5625                 fi
5626                 if test x$gnu_ld != xyes
5627                 then
5628                         use_collect2=yes
5629                 fi
5630                 ;;
5631         mips-*-gnu*)
5632                 ;;
5633         mipsel-*-ecoff*)
5634                 tm_file=mips/ecoffl.h
5635                 if test x$stabs = xyes; then
5636                         tm_file="${tm_file} dbx.h"
5637                 fi
5638                 tmake_file=mips/t-ecoff
5639                 ;;
5640         mips-*-ecoff*)
5641                 tm_file="gofast.h mips/ecoff.h"
5642                 if test x$stabs = xyes; then
5643                         tm_file="${tm_file} dbx.h"
5644                 fi
5645                 tmake_file=mips/t-ecoff
5646                 ;;
5647         mipsel-*-elf*)
5648                 tm_file="mips/elfl.h"
5649                 tmake_file=mips/t-elf
5650                 ;;
5651         mips-*-elf*)
5652                 tm_file="mips/elf.h"
5653                 tmake_file=mips/t-elf
5654                 ;;
5655         mips64el-*-elf*)
5656                 tm_file="mips/elfl64.h"
5657                 tmake_file=mips/t-elf
5658                 ;;
5659         mips64orionel-*-elf*)
5660                 tm_file="mips/elforion.h mips/elfl64.h"
5661                 tmake_file=mips/t-elf
5662                 ;;
5663         mips64-*-elf*)
5664                 tm_file="mips/elf64.h"
5665                 tmake_file=mips/t-elf
5666                 ;;
5667         mips64orion-*-elf*)
5668                 tm_file="mips/elforion.h mips/elf64.h"
5669                 tmake_file=mips/t-elf
5670                 ;;
5671         mips64orion-*-rtems*)
5672                 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5673                 tmake_file="mips/t-elf t-rtems"
5674                 ;;
5675         mipstx39el-*-elf*)
5676                 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5677                 tmake_file=mips/t-r3900
5678                 ;;
5679         mipstx39-*-elf*)
5680                 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5681                 tmake_file=mips/t-r3900
5682                 ;;
5683         mips-*-*)                               # Default MIPS RISC-OS 4.0.
5684                 if test x$stabs = xyes; then
5685                         tm_file="${tm_file} dbx.h"
5686                 fi
5687                 if test x$gas = xyes
5688                 then
5689                         tmake_file=mips/t-mips-gas
5690                 else
5691                         extra_passes="mips-tfile mips-tdump"
5692                 fi
5693                 if test x$gnu_ld != xyes
5694                 then
5695                         use_collect2=yes
5696                 fi
5697                 ;;
5698         mn10200-*-*)
5699                 float_format=i32
5700                 cpu_type=mn10200
5701                 tm_file="mn10200/mn10200.h"
5702                 if test x$stabs = xyes
5703                 then
5704                         tm_file="${tm_file} dbx.h"
5705                 fi
5706                 use_collect2=no
5707                 ;;
5708         mn10300-*-*)
5709                 cpu_type=mn10300
5710                 tm_file="mn10300/mn10300.h"
5711                 if test x$stabs = xyes
5712                 then
5713                         tm_file="${tm_file} dbx.h"
5714                 fi
5715                 use_collect2=no
5716                 ;;
5717         ns32k-encore-bsd*)
5718                 tm_file=ns32k/encore.h
5719                 use_collect2=yes
5720                 ;;
5721         ns32k-sequent-bsd*)
5722                 tm_file=ns32k/sequent.h
5723                 use_collect2=yes
5724                 ;;
5725         ns32k-tek6100-bsd*)
5726                 tm_file=ns32k/tek6100.h
5727                 use_collect2=yes
5728                 ;;
5729         ns32k-tek6200-bsd*)
5730                 tm_file=ns32k/tek6200.h
5731                 use_collect2=yes
5732                 ;;
5733 # This has not been updated to GCC 2.
5734 #       ns32k-ns-genix*)
5735 #               xm_defines=USG
5736 #               xmake_file=ns32k/x-genix
5737 #               tm_file=ns32k/genix.h
5738 #               use_collect2=yes
5739 #               ;;
5740         ns32k-merlin-*)
5741                 tm_file=ns32k/merlin.h
5742                 use_collect2=yes
5743                 ;;
5744         ns32k-pc532-mach*)
5745                 tm_file=ns32k/pc532-mach.h
5746                 use_collect2=yes
5747                 ;;
5748         ns32k-pc532-minix*)
5749                 tm_file=ns32k/pc532-min.h
5750                 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5751                 xm_defines=USG
5752                 use_collect2=yes
5753                 ;;
5754         ns32k-*-netbsd*)
5755                 tm_file=ns32k/netbsd.h
5756                 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5757                 # On NetBSD, the headers are already okay, except for math.h.
5758                 tmake_file=t-netbsd
5759                 use_collect2=yes
5760                 ;;
5761         pdp11-*-bsd)
5762                 tm_file="${tm_file} pdp11/2bsd.h"
5763                 ;;
5764         pdp11-*-*)
5765                 ;;
5766         avr-*-*)
5767                 ;;
5768         ns32k-*-openbsd*)
5769                 # Nothing special
5770                 ;;
5771 # This has not been updated to GCC 2.
5772 #       pyramid-*-*)
5773 #               cpu_type=pyr
5774 #               xmake_file=pyr/x-pyr
5775 #               use_collect2=yes
5776 #               ;;
5777
5778         pj*-linux*)
5779                 tm_file="svr4.h pj/linux.h ${tm_file}"
5780                 ;;
5781         pj-*)
5782                 ;;
5783         pjl-*)
5784                 tm_file="svr4.h pj/pjl.h ${tm_file}"
5785                 ;;
5786
5787         romp-*-aos*)
5788                 use_collect2=yes
5789                 ;;
5790         romp-*-mach*)
5791                 xmake_file=romp/x-mach
5792                 use_collect2=yes
5793                 ;;
5794         romp-*-openbsd*)
5795                 # Nothing special
5796                 ;;
5797         powerpc-*-openbsd*)
5798                 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5799                 ;;
5800         powerpc-*-beos*)
5801                 cpu_type=rs6000
5802                 tm_file=rs6000/beos.h
5803                 xm_file=rs6000/xm-beos.h
5804                 tmake_file=rs6000/t-beos
5805                 xmake_file=rs6000/x-beos
5806                 ;;
5807         powerpc-*-sysv*)
5808                 tm_file=rs6000/sysv4.h
5809                 xm_file="rs6000/xm-sysv4.h"
5810                 xm_defines="USG POSIX"
5811                 extra_headers=ppc-asm.h
5812                 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5813                 xmake_file=rs6000/x-sysv4
5814                 ;;
5815         powerpc-*-eabiaix*)
5816                 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5817                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5818                 extra_headers=ppc-asm.h
5819                 ;;
5820         powerpc-*-eabisim*)
5821                 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5822                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5823                 extra_headers=ppc-asm.h
5824                 ;;
5825         powerpc-*-elf*)
5826                 tm_file="rs6000/sysv4.h"
5827                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5828                 extra_headers=ppc-asm.h
5829                 ;;
5830         powerpc-*-eabi*)
5831                 tm_file="rs6000/sysv4.h rs6000/eabi.h"
5832                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5833                 extra_headers=ppc-asm.h
5834                 ;;
5835         powerpc-*-rtems*)
5836                 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5837                 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5838                 extra_headers=ppc-asm.h
5839                 ;;
5840         powerpc-*-linux-gnulibc1)
5841                 tm_file="rs6000/sysv4.h rs6000/linux.h"
5842                 xm_file=rs6000/xm-sysv4.h
5843                 out_file=rs6000/rs6000.c
5844                 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5845                 xmake_file=x-linux
5846                 extra_headers=ppc-asm.h
5847                 if test x$enable_threads = xyes; then
5848                         thread_file='posix'
5849                 fi
5850                 ;;
5851         powerpc-*-linux-gnu*)
5852                 tm_file="rs6000/sysv4.h rs6000/linux.h"
5853                 xm_file="rs6000/xm-sysv4.h"
5854                 xm_defines="USG ${xm_defines}"
5855                 out_file=rs6000/rs6000.c
5856                 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5857                 xmake_file=x-linux
5858                 extra_headers=ppc-asm.h
5859                 if test x$enable_threads = xyes; then
5860                         thread_file='posix'
5861                 fi
5862                 ;;
5863         powerpc-wrs-vxworks*)
5864                 cpu_type=rs6000
5865                 xm_file="rs6000/xm-sysv4.h"
5866                 xm_defines="USG POSIX"
5867                 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
5868                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5869                 extra_headers=ppc-asm.h
5870                 thread_file='vxworks'
5871                 ;;
5872         powerpcle-wrs-vxworks*)
5873                 cpu_type=rs6000
5874                 xm_file="rs6000/xm-sysv4.h"
5875                 xm_defines="USG POSIX"
5876                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
5877                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5878                 extra_headers=ppc-asm.h
5879                 thread_file='vxworks'
5880                 ;;
5881         powerpcle-*-sysv*)
5882                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
5883                 xm_file="rs6000/xm-sysv4.h"
5884                 xm_defines="USG POSIX"
5885                 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5886                 xmake_file=rs6000/x-sysv4
5887                 extra_headers=ppc-asm.h
5888                 ;;
5889         powerpcle-*-elf*)
5890                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
5891                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5892                 extra_headers=ppc-asm.h
5893                 ;;
5894         powerpcle-*-eabisim*)
5895                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
5896                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5897                 extra_headers=ppc-asm.h
5898                 ;;
5899         powerpcle-*-eabi*)
5900                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
5901                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5902                 extra_headers=ppc-asm.h
5903                 ;;
5904         powerpcle-*-solaris2*)
5905                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
5906                 xm_file="rs6000/xm-sysv4.h"
5907                 xm_defines="USG POSIX"
5908                 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5909                 xmake_file=rs6000/x-sysv4
5910                 extra_headers=ppc-asm.h
5911                 ;;
5912         rs6000-ibm-aix3.[01]*)
5913                 tm_file=rs6000/aix31.h
5914                 xmake_file=rs6000/x-aix31
5915                 float_format=none
5916                 use_collect2=yes
5917                 ;;
5918         rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5919                 tm_file=rs6000/aix3newas.h
5920                 if test x$host != x$target
5921                 then
5922                         tmake_file=rs6000/t-xnewas
5923                 else
5924                         tmake_file=rs6000/t-newas
5925                 fi
5926                 float_format=none
5927                 use_collect2=yes
5928                 ;;
5929         rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5930                 tm_file=rs6000/aix41.h
5931                 if test x$host != x$target
5932                 then
5933                         tmake_file=rs6000/t-xnewas
5934                 else
5935                         tmake_file=rs6000/t-newas
5936                 fi
5937                 if test "$gnu_ld" = yes
5938                 then
5939                         xmake_file=rs6000/x-aix41-gld
5940                 else
5941                         tmake_file="rs6000/t-newas rs6000/t-aix41"
5942                 fi
5943                 xmake_file=rs6000/x-aix41
5944                 float_format=none
5945                 use_collect2=yes
5946                 ;;
5947         rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5948                 tm_file=rs6000/aix43.h
5949                 tmake_file=rs6000/t-aix43
5950                 xmake_file=rs6000/x-aix41
5951                 float_format=none
5952                 use_collect2=yes
5953                 ;;
5954         rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5955                 tm_file=rs6000/aix43.h
5956                 tmake_file=rs6000/t-aix43
5957                 xmake_file=rs6000/x-aix41
5958                 float_format=none
5959                 use_collect2=yes
5960                 ;;
5961         rs6000-ibm-aix*)
5962                 float_format=none
5963                 use_collect2=yes
5964                 ;;
5965         rs6000-bull-bosx)
5966                 float_format=none
5967                 use_collect2=yes
5968                 ;;
5969         rs6000-*-mach*)
5970                 tm_file=rs6000/mach.h
5971                 xm_file="${xm_file} rs6000/xm-mach.h"
5972                 xmake_file=rs6000/x-mach
5973                 use_collect2=yes
5974                 ;;
5975         rs6000-*-lynxos*)
5976                 tm_file=rs6000/lynx.h
5977                 xm_file=rs6000/xm-lynx.h
5978                 tmake_file=rs6000/t-rs6000
5979                 xmake_file=rs6000/x-lynx
5980                 use_collect2=yes
5981                 ;;
5982         sh-*-elf*)
5983                 tm_file=sh/elf.h
5984                 float_format=sh
5985                 ;;
5986         sh-*-rtemself*)
5987                 tmake_file="sh/t-sh t-rtems"
5988                 tm_file=sh/rtemself.h
5989                 float_format=sh
5990                 ;;
5991         sh-*-rtems*)
5992                 tmake_file="sh/t-sh t-rtems"
5993                 tm_file=sh/rtems.h
5994                 float_format=sh
5995                 ;;
5996         sh-*-*)
5997                 float_format=sh
5998                 ;;
5999         sparc-tti-*)
6000                 tm_file=sparc/pbd.h
6001                 xm_file="xm-alloca.h ${xm_file}"
6002                 xm_defines=USG
6003                 ;;
6004         sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
6005                 tm_file=sparc/vxsparc.h
6006                 tmake_file=sparc/t-vxsparc
6007                 use_collect2=yes
6008                 thread_file='vxworks'
6009                 ;;
6010         sparc-*-aout*)
6011                 tmake_file=sparc/t-sparcbare
6012                 tm_file="sparc/aout.h libgloss.h"
6013                 ;;
6014         sparc-*-netbsd*)
6015                 tm_file=sparc/netbsd.h
6016                 tmake_file=t-netbsd
6017                 use_collect2=yes
6018                 ;;
6019         sparc-*-openbsd*)
6020                 # we need collect2 until our bug is fixed...
6021                 use_collect2=yes
6022                 ;;
6023         sparc-*-bsd*)
6024                 tm_file=sparc/bsd.h
6025                 ;;
6026         sparc-*-elf*)
6027                 tm_file=sparc/elf.h
6028                 tmake_file=sparc/t-elf
6029                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6030                 #float_format=i128
6031                 float_format=i64
6032                 ;;
6033         sparc-*-linux-gnuaout*)         # Sparc's running GNU/Linux, a.out
6034                 xm_file="${xm_file} sparc/xm-linux.h"
6035                 tm_file=sparc/linux-aout.h
6036                 xmake_file=x-linux
6037                 gnu_ld=yes
6038                 ;;
6039         sparc-*-linux-gnulibc1*)        # Sparc's running GNU/Linux, libc5
6040                 xm_file="${xm_file} sparc/xm-linux.h"
6041                 xmake_file=x-linux
6042                 tm_file=sparc/linux.h
6043                 tmake_file="t-linux t-linux-gnulibc1"
6044                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6045                 gnu_ld=yes
6046                 float_format=sparc
6047                 ;;
6048         sparc-*-linux-gnu*)             # Sparc's running GNU/Linux, libc6
6049                 xm_file="${xm_file} sparc/xm-linux.h"
6050                 xmake_file=x-linux
6051                 tm_file=sparc/linux.h
6052                 tmake_file="t-linux"
6053                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6054                 gnu_ld=yes
6055                 if test x$enable_threads = xyes; then
6056                         thread_file='posix'
6057                 fi
6058                 float_format=sparc
6059                 ;;
6060         sparc-*-lynxos*)
6061                 if test x$gas = xyes
6062                 then
6063                         tm_file=sparc/lynx.h
6064                 else
6065                         tm_file=sparc/lynx-ng.h
6066                 fi
6067                 xm_file=sparc/xm-lynx.h
6068                 tmake_file=sparc/t-sunos41
6069                 xmake_file=x-lynx
6070                 ;;
6071         sparc-*-rtemsaout*)
6072                 tmake_file="sparc/t-sparcbare t-rtems"
6073                 tm_file=sparc/rtems.h
6074                 ;;
6075         sparc-*-rtems*|sparc-*-rtemself*)
6076                 tm_file="sparc/rtemself.h"
6077                 tmake_file="sparc/t-elf t-rtems"
6078                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6079                 #float_format=i128
6080                 float_format=i64
6081                 ;;
6082         sparcv9-*-solaris2*)
6083                 if test x$gnu_ld = xyes
6084                 then
6085                         tm_file=sparc/sol2-64.h
6086                 else
6087                         tm_file=sparc/sol2-sld-64.h
6088                 fi
6089                 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6090                 xm_defines="USG POSIX"
6091                 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
6092                 xmake_file=sparc/x-sysv4
6093                 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6094                 float_format=none
6095                 if test x${enable_threads} = x ; then
6096                     enable_threads=$have_pthread_h
6097                     if test x${enable_threads} = x ; then
6098                         enable_threads=$have_thread_h
6099                     fi
6100                 fi
6101                 if test x${enable_threads} = xyes ; then
6102                     if test x${have_pthread_h} = xyes ; then
6103                         thread_file='posix'
6104                     else
6105                         thread_file='solaris'
6106                     fi
6107                 fi
6108                 ;;
6109         sparc-hal-solaris2*)
6110                 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6111                 xm_defines="USG POSIX"
6112                 tm_file="sparc/sol2.h sparc/hal.h"
6113                 tmake_file="sparc/t-halos sparc/t-sol2"
6114                 xmake_file=sparc/x-sysv4
6115                 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6116                 case $machine in
6117                 *-*-solaris2.[0-4])
6118                         float_format=i128
6119                 ;;
6120                 *)
6121                         float_format=none
6122                         ;;
6123                 esac
6124                 thread_file='solaris'
6125                 ;;
6126         sparc-*-solaris2*)
6127                 if test x$gnu_ld = xyes
6128                 then
6129                         tm_file=sparc/sol2.h
6130                 else
6131                         tm_file=sparc/sol2-sld.h
6132                 fi
6133                 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6134                 xm_defines="USG POSIX"
6135                 tmake_file=sparc/t-sol2
6136                 xmake_file=sparc/x-sysv4
6137                 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6138                 case $machine in
6139                 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
6140                 *-*-solaris2*)
6141                         if test x$gnu_ld = xyes
6142                         then
6143                                 tm_file=sparc/sol2-64.h
6144                         else
6145                                 tm_file=sparc/sol2-sld-64.h
6146                         fi
6147                         tmake_file="$tmake_file sparc/t-sol2-64"
6148                         ;;
6149                 esac
6150                 case $machine in
6151                 *-*-solaris2.[0-4])
6152                         float_format=i128
6153                         ;;
6154                 *)
6155                         float_format=none
6156                         ;;
6157                 esac
6158                 if test x${enable_threads} = x; then
6159                     enable_threads=$have_pthread_h
6160                     if test x${enable_threads} = x; then
6161                         enable_threads=$have_thread_h
6162                     fi
6163                 fi
6164                 if test x${enable_threads} = xyes; then
6165                     if test x${have_pthread_h} = xyes; then
6166                         thread_file='posix'
6167                     else
6168                         thread_file='solaris'
6169                     fi
6170                 fi
6171                 ;;
6172         sparc-*-sunos4.0*)
6173                 tm_file=sparc/sunos4.h
6174                 tmake_file=sparc/t-sunos40
6175                 use_collect2=yes
6176                 ;;
6177         sparc-*-sunos4*)
6178                 tm_file=sparc/sunos4.h
6179                 tmake_file=sparc/t-sunos41
6180                 use_collect2=yes
6181                 if test x$gas = xyes; then
6182                         tm_file="${tm_file} sparc/sun4gas.h"
6183                 fi
6184                 ;;
6185         sparc-*-sunos3*)
6186                 tm_file=sparc/sun4o3.h
6187                 use_collect2=yes
6188                 ;;
6189         sparc-*-sysv4*)
6190                 tm_file=sparc/sysv4.h
6191                 xm_file="sparc/xm-sysv4.h"
6192                 xm_defines="USG POSIX"
6193                 tmake_file=t-svr4
6194                 xmake_file=sparc/x-sysv4
6195                 extra_parts="crtbegin.o crtend.o"
6196                 ;;
6197         sparc-*-vxsim*)
6198                 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6199                 xm_defines="USG POSIX"
6200                 tm_file=sparc/vxsim.h
6201                 tmake_file=sparc/t-vxsparc
6202                 xmake_file=sparc/x-sysv4
6203                 ;;
6204         sparclet-*-aout*)
6205                 tm_file="sparc/splet.h libgloss.h"
6206                 tmake_file=sparc/t-splet
6207                 ;;
6208         sparclite-*-coff*)
6209                 tm_file="sparc/litecoff.h libgloss.h"
6210                 tmake_file=sparc/t-sparclite
6211                 ;;
6212         sparclite-*-aout*)
6213                 tm_file="sparc/lite.h aoutos.h libgloss.h"
6214                 tmake_file=sparc/t-sparclite
6215                 ;;
6216         sparclite-*-elf*)
6217                 tm_file="sparc/liteelf.h"
6218                 tmake_file=sparc/t-sparclite
6219                 extra_parts="crtbegin.o crtend.o"
6220                 ;;
6221         sparc86x-*-aout*)
6222                 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
6223                 tmake_file=sparc/t-sp86x
6224                 ;;
6225         sparc86x-*-elf*)        
6226                 tm_file="sparc/sp86x-elf.h"
6227                 tmake_file=sparc/t-sp86x
6228                 extra_parts="crtbegin.o crtend.o"
6229                 ;;
6230         sparc64-*-aout*)
6231                 tmake_file=sparc/t-sp64
6232                 tm_file=sparc/sp64-aout.h
6233                 ;;
6234         sparc64-*-elf*)
6235                 tmake_file=sparc/t-sp64
6236                 tm_file=sparc/sp64-elf.h
6237                 extra_parts="crtbegin.o crtend.o"
6238                 ;;
6239         sparc64-*-linux*)               # 64-bit Sparc's running GNU/Linux
6240                 tmake_file="t-linux sparc/t-linux64"
6241                 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
6242                 tm_file=sparc/linux64.h
6243                 xmake_file=x-linux
6244                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6245                 gnu_ld=yes
6246                 if test x$enable_threads = xyes; then
6247                         thread_file='posix'
6248                 fi
6249                 float_format=sparc
6250                 ;;
6251 # This hasn't been upgraded to GCC 2.
6252 #       tahoe-harris-*)                 # Harris tahoe, using COFF.
6253 #               tm_file=tahoe/harris.h
6254 #               ;;
6255 #       tahoe-*-bsd*)                   # tahoe running BSD
6256 #               ;;
6257
6258         thumb*-*-*)
6259                 { echo "configure: error: 
6260 *** The Thumb targets have been depreciated.  The equivalent
6261 *** ARM based toolchain can now generated Thumb instructions
6262 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6263                 ;;
6264 # This hasn't been upgraded to GCC 2.
6265 #       tron-*-*)
6266 #               cpu_type=gmicro
6267 #               use_collect2=yes
6268 #               ;;
6269         v850-*-rtems*)
6270                 cpu_type=v850
6271                 tm_file="v850/rtems.h"
6272                 xm_file="v850/xm-v850.h"
6273                 tmake_file="v850/t-v850 t-rtems"
6274                 if test x$stabs = xyes
6275                 then
6276                         tm_file="${tm_file} dbx.h"
6277                 fi
6278                 use_collect2=no
6279                 ;;
6280         v850-*-*)
6281                 target_cpu_default="TARGET_CPU_generic"
6282                 cpu_type=v850
6283                 tm_file="v850/v850.h"
6284                 xm_file="v850/xm-v850.h"
6285                 tmake_file=v850/t-v850
6286                 if test x$stabs = xyes
6287                 then
6288                         tm_file="${tm_file} dbx.h"
6289                 fi
6290                 use_collect2=no
6291                 ;;
6292         vax-*-bsd*)                     # vaxen running BSD
6293                 use_collect2=yes
6294                 float_format=vax
6295                 ;;
6296         vax-*-sysv*)                    # vaxen running system V
6297                 tm_file="${tm_file} vax/vaxv.h"
6298                 xm_defines=USG
6299                 float_format=vax
6300                 ;;
6301         vax-*-netbsd*)
6302                 tm_file="${tm_file} netbsd.h vax/netbsd.h"
6303                 tmake_file=t-netbsd
6304                 float_format=vax
6305                 use_collect2=yes
6306                 ;;
6307         vax-*-openbsd*)
6308                 tmake_file="${tmake_file} vax/t-openbsd"
6309                 ;;
6310         vax-*-ultrix*)                  # vaxen running ultrix
6311                 tm_file="${tm_file} vax/ultrix.h"
6312                 use_collect2=yes
6313                 float_format=vax
6314                 ;;
6315         vax-*-vms*)                     # vaxen running VMS
6316                 xm_file=vax/xm-vms.h
6317                 tm_file=vax/vms.h
6318                 float_format=vax
6319                 ;;
6320         vax-*-*)                        # vax default entry
6321                 float_format=vax
6322                 ;;
6323         we32k-att-sysv*)
6324                 xm_file="${xm_file} xm-svr3"
6325                 use_collect2=yes
6326                 ;;
6327         *)
6328                 echo "Configuration $machine not supported" 1>&2
6329                 exit 1
6330                 ;;
6331         esac
6332
6333         case $machine in
6334         *-*-linux-gnu*)
6335                 ;; # Existing GNU/Linux systems do not use the GNU setup.
6336         *-*-gnu*)
6337                 # On the GNU system, the setup is just about the same on
6338                 # each different CPU.  The specific machines that GNU
6339                 # supports are matched above and just set $cpu_type.
6340                 xm_file="xm-gnu.h ${xm_file}"
6341                 tm_file=${cpu_type}/gnu.h
6342                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6343                 # GNU always uses ELF.
6344                 elf=yes
6345                 # GNU tools are the only tools.
6346                 gnu_ld=yes
6347                 gas=yes
6348                 xmake_file=x-linux      # These details are the same as Linux.
6349                 tmake_file=t-gnu        # These are not.
6350                 ;;
6351         *-*-sysv4*)
6352                 xmake_try_sysv=x-sysv
6353                 install_headers_dir=install-headers-cpio
6354                 ;;
6355         *-*-sysv*)
6356                 install_headers_dir=install-headers-cpio
6357                 ;;
6358         esac
6359
6360         # Distinguish i[34567]86
6361         # Also, do not run mips-tfile on MIPS if using gas.
6362         # Process --with-cpu= for PowerPC/rs6000
6363         target_cpu_default2=
6364         case $machine in
6365         i486-*-*)
6366                 target_cpu_default2=1
6367                 ;;
6368         i586-*-*)
6369                 case $target_alias in
6370                         k6-*)
6371                                 target_cpu_default2=4
6372                                 ;;
6373                         *)
6374                                 target_cpu_default2=2
6375                                 ;;
6376                 esac
6377                 ;;
6378         i686-*-* | i786-*-*)
6379                 target_cpu_default2=3
6380                 ;;
6381         alpha*-*-*)
6382                 case $machine in
6383                         alphaev6[78]*)
6384                                 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6385                                 ;;
6386                         alphaev6*)
6387                                 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6388                                 ;;
6389                         alphapca56*)
6390                                 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6391                                 ;;
6392                         alphaev56*)
6393                                 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
6394                                 ;;
6395                         alphaev5*)
6396                                 target_cpu_default2="MASK_CPU_EV5"
6397                                 ;;
6398                 esac
6399                                 
6400                 if test x$gas = xyes
6401                 then
6402                         if test "$target_cpu_default2" = ""
6403                         then
6404                                 target_cpu_default2="MASK_GAS"
6405                         else
6406                                 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
6407                         fi
6408                 fi
6409                 ;;
6410         arm*-*-*)
6411                 case "x$with_cpu" in
6412                         x)
6413                                 # The most generic
6414                                 target_cpu_default2="TARGET_CPU_generic"
6415                                 ;;
6416
6417                         # Distinguish cores, and major variants
6418                         # arm7m doesn't exist, but D & I don't affect code
6419                         xarm[23678] | xarm250 | xarm[67][01]0 \
6420                         | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6421                         | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6422                         | xstrongarm | xstrongarm110 | xstrongarm1100)
6423                                 target_cpu_default2="TARGET_CPU_$with_cpu"
6424                                 ;;
6425
6426                         xyes | xno)
6427                                 echo "--with-cpu must be passed a value" 1>&2
6428                                 exit 1
6429                                 ;;
6430
6431                         *)
6432                                 if test x$pass2done = xyes
6433                                 then
6434                                         echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6435                                         exit 1
6436                                 fi
6437                                 ;;
6438                 esac
6439                 ;;
6440
6441         mips*-*-ecoff* | mips*-*-elf*)
6442                 if test x$gas = xyes
6443                 then
6444                         if test x$gnu_ld = xyes
6445                         then
6446                                 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
6447                         else
6448                                 target_cpu_default2="MASK_GAS"
6449                         fi
6450                 fi
6451                 ;;
6452         mips*-*-*)
6453                 if test x$gas = xyes
6454                 then
6455                         target_cpu_default2="MASK_GAS"
6456                 fi
6457                 ;;
6458         powerpc*-*-* | rs6000-*-*)
6459                 case "x$with_cpu" in
6460                         x)
6461                                 ;;
6462
6463                         xcommon | xpower | xpower2 | xpowerpc | xrios \
6464                           | xrios1 | xrios2 | xrsc | xrsc1 \
6465                           | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6466                           | xec603e | x740 | x750 | x401 \
6467                           | x403 | x505 | x801 | x821 | x823 | x860)
6468                                 target_cpu_default2="\"$with_cpu\""
6469                                 ;;
6470
6471                         xyes | xno)
6472                                 echo "--with-cpu must be passed a value" 1>&2
6473                                 exit 1
6474                                 ;;
6475
6476                         *)
6477                                 if test x$pass2done = xyes
6478                                 then
6479                                         echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6480                                         exit 1
6481                                 fi
6482                                 ;;
6483                 esac
6484                 ;;
6485         sparc*-*-*)
6486                 case ".$with_cpu" in
6487                         .)
6488                                 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
6489                                 ;;
6490                         .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
6491                                 target_cpu_default2="TARGET_CPU_$with_cpu"
6492                                 ;;
6493                         *)
6494                                 if test x$pass2done = xyes
6495                                 then
6496                                         echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6497                                         exit 1
6498                                 fi
6499                                 ;;
6500                 esac
6501                 ;;
6502         esac
6503
6504         if test "$target_cpu_default2" != ""
6505         then
6506                 if test "$target_cpu_default" != ""
6507                 then
6508                         target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
6509                 else
6510                         target_cpu_default=$target_cpu_default2
6511                 fi
6512         fi
6513
6514         # No need for collect2 if we have the GNU linker.
6515         # Actually, there is now; GNU ld doesn't handle the EH info or
6516         # collecting for shared libraries.
6517         #case x$gnu_ld in
6518         #xyes)
6519         #       use_collect2=
6520         #       ;;
6521         #esac
6522
6523 # Save data on machine being used to compile GCC in build_xm_file.
6524 # Save data on host machine in vars host_xm_file and host_xmake_file.
6525         if test x$pass1done = x
6526         then
6527                 if test x"$xm_file" = x
6528                 then build_xm_file=$cpu_type/xm-$cpu_type.h
6529                 else build_xm_file=$xm_file
6530                 fi
6531                 build_xm_defines=$xm_defines
6532                 build_install_headers_dir=$install_headers_dir
6533                 build_exeext=$exeext
6534                 pass1done=yes
6535         else
6536                 if test x$pass2done = x
6537                 then
6538                         if test x"$xm_file" = x
6539                         then host_xm_file=$cpu_type/xm-$cpu_type.h
6540                         else host_xm_file=$xm_file
6541                         fi
6542                         host_xm_defines=$xm_defines
6543                         if test x"$xmake_file" = x
6544                         then xmake_file=$cpu_type/x-$cpu_type
6545                         fi
6546                         host_xmake_file="$xmake_file"
6547                         host_truncate_target=$truncate_target
6548                         host_extra_gcc_objs=$extra_gcc_objs
6549                         host_extra_objs=$extra_host_objs
6550                         host_exeext=$exeext
6551                         pass2done=yes
6552                 fi
6553         fi
6554 done
6555
6556 extra_objs="${host_extra_objs} ${extra_objs}"
6557
6558 # Default the target-machine variables that were not explicitly set.
6559 if test x"$tm_file" = x
6560 then tm_file=$cpu_type/$cpu_type.h; fi
6561
6562 if test x$extra_headers = x
6563 then extra_headers=; fi
6564
6565 if test x"$xm_file" = x
6566 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6567
6568 if test x$md_file = x
6569 then md_file=$cpu_type/$cpu_type.md; fi
6570
6571 if test x$out_file = x
6572 then out_file=$cpu_type/$cpu_type.c; fi
6573
6574 if test x"$tmake_file" = x
6575 then tmake_file=$cpu_type/t-$cpu_type
6576 fi
6577
6578 if test x"$dwarf2" = xyes
6579 then tm_file="$tm_file tm-dwarf2.h"
6580 fi
6581
6582 if test x$float_format = x
6583 then float_format=i64
6584 fi
6585
6586 if test $float_format = none
6587 then float_h_file=Makefile.in
6588 else float_h_file=float-$float_format.h
6589 fi
6590
6591 # Handle cpp installation.
6592 if test x$enable_cpp != xno
6593 then
6594   tmake_file="$tmake_file t-install-cpp"
6595 fi
6596
6597 # Say what files are being used for the output code and MD file.
6598 echo "Using \`$srcdir/config/$out_file' to output insns."
6599 echo "Using \`$srcdir/config/$md_file' as machine description file."
6600
6601 count=a
6602 for f in $tm_file; do
6603         count=${count}x
6604 done
6605 if test $count = ax; then
6606         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6607 else
6608         echo "Using the following target machine macro files:"
6609         for f in $tm_file; do
6610                 echo "  $srcdir/config/$f"
6611         done
6612 fi
6613
6614 count=a
6615 for f in $host_xm_file; do
6616         count=${count}x
6617 done
6618 if test $count = ax; then
6619         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6620 else
6621         echo "Using the following host machine macro files:"
6622         for f in $host_xm_file; do
6623                 echo "  $srcdir/config/$f"
6624         done
6625 fi
6626
6627 if test "$host_xm_file" != "$build_xm_file"; then
6628         count=a
6629         for f in $build_xm_file; do
6630                 count=${count}x
6631         done
6632         if test $count = ax; then
6633                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6634         else
6635                 echo "Using the following build machine macro files:"
6636                 for f in $build_xm_file; do
6637                         echo "  $srcdir/config/$f"
6638                 done
6639         fi
6640 fi
6641
6642 if test x$thread_file = x; then
6643         if test x$target_thread_file != x; then
6644                 thread_file=$target_thread_file
6645         else
6646                 thread_file='single'
6647         fi
6648 fi
6649
6650 # Set up the header files.
6651 # $links is the list of header files to create.
6652 # $vars is the list of shell variables with file names to include.
6653 # auto-host.h is the file containing items generated by autoconf and is
6654 # the first file included by config.h.
6655 null_defines=
6656 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6657
6658 # If host=build, it is correct to have hconfig include auto-host.h
6659 # as well.  If host!=build, we are in error and need to do more 
6660 # work to find out the build config parameters.
6661 if test x$host = x$build
6662 then
6663         build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6664 else
6665         # We create a subdir, then run autoconf in the subdir.
6666         # To prevent recursion we set host and build for the new
6667         # invocation of configure to the build for this invocation
6668         # of configure. 
6669         tempdir=build.$$
6670         rm -rf $tempdir
6671         mkdir $tempdir
6672         cd $tempdir
6673         case ${srcdir} in
6674         /*) realsrcdir=${srcdir};;
6675         *) realsrcdir=../${srcdir};;
6676         esac
6677         CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6678                 --target=$target --host=$build --build=$build
6679
6680         # We just finished tests for the build machine, so rename
6681         # the file auto-build.h in the gcc directory.
6682         mv auto-host.h ../auto-build.h
6683         cd ..
6684         rm -rf $tempdir
6685         build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6686 fi
6687
6688 xm_file="gansidecl.h ${xm_file}"
6689 tm_file="gansidecl.h ${tm_file}"
6690
6691 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6692 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
6693 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6694
6695 rm -f config.bak
6696 if test -f config.status; then mv -f config.status config.bak; fi
6697
6698 # Make the links.
6699 while test -n "$vars"
6700 do
6701         set $vars; var=$1; shift; vars=$*
6702         set $links; link=$1; shift; links=$*
6703         set $defines; define=$1; shift; defines=$*
6704
6705         rm -f $link
6706         # Make sure the file is created, even if it is empty.
6707         echo >$link
6708
6709         # Define TARGET_CPU_DEFAULT if the system wants one.
6710         # This substitutes for lots of *.h files.
6711         if test "$target_cpu_default" != "" -a $link = tm.h
6712         then
6713                 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6714         fi
6715
6716         for file in `eval echo '$'$var`; do
6717                 case $file in
6718                 auto-config.h)
6719                         ;;
6720                 *)
6721                         echo '#ifdef IN_GCC' >>$link
6722                         ;;
6723                 esac
6724                 echo "#include \"$file\"" >>$link
6725                 case $file in
6726                 auto-config.h)
6727                         ;;
6728                 *)
6729                         echo '#endif' >>$link
6730                         ;;
6731                 esac
6732         done
6733
6734         for def in `eval echo '$'$define`; do
6735                 echo "#ifndef $def" >>$link
6736                 echo "#define $def" >>$link
6737                 echo "#endif" >>$link
6738         done
6739 done
6740
6741 # Truncate the target if necessary
6742 if test x$host_truncate_target != x; then
6743         target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6744 fi
6745
6746 # Get the version trigger filename from the toplevel
6747 if test "${with_gcc_version_trigger+set}" = set; then
6748         gcc_version_trigger=$with_gcc_version_trigger
6749 else
6750         gcc_version_trigger=${srcdir}/version.c
6751 fi
6752 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6753
6754 # Internationalization
6755 PACKAGE=gcc
6756 VERSION="$gcc_version"
6757 cat >> confdefs.h <<EOF
6758 #define PACKAGE "$PACKAGE"
6759 EOF
6760
6761 cat >> confdefs.h <<EOF
6762 #define VERSION "$VERSION"
6763 EOF
6764
6765
6766
6767
6768 ALL_LINGUAS="en_UK"
6769
6770 # NLS support is still experimental, so disable it by default for now.
6771 # Check whether --enable-nls or --disable-nls was given.
6772 if test "${enable_nls+set}" = set; then
6773   enableval="$enable_nls"
6774   :
6775 else
6776   enable_nls=no
6777 fi
6778
6779
6780
6781         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6782 echo "configure:6783: checking for strerror in -lcposix" >&5
6783 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6785   echo $ac_n "(cached) $ac_c" 1>&6
6786 else
6787   ac_save_LIBS="$LIBS"
6788 LIBS="-lcposix  $LIBS"
6789 cat > conftest.$ac_ext <<EOF
6790 #line 6791 "configure"
6791 #include "confdefs.h"
6792 /* Override any gcc2 internal prototype to avoid an error.  */
6793 /* We use char because int might match the return type of a gcc2
6794     builtin and then its argument prototype would still apply.  */
6795 char strerror();
6796
6797 int main() {
6798 strerror()
6799 ; return 0; }
6800 EOF
6801 if { (eval echo configure:6802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6802   rm -rf conftest*
6803   eval "ac_cv_lib_$ac_lib_var=yes"
6804 else
6805   echo "configure: failed program was:" >&5
6806   cat conftest.$ac_ext >&5
6807   rm -rf conftest*
6808   eval "ac_cv_lib_$ac_lib_var=no"
6809 fi
6810 rm -f conftest*
6811 LIBS="$ac_save_LIBS"
6812
6813 fi
6814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6815   echo "$ac_t""yes" 1>&6
6816   LIBS="$LIBS -lcposix"
6817 else
6818   echo "$ac_t""no" 1>&6
6819 fi
6820
6821   
6822
6823 echo $ac_n "checking for working const""... $ac_c" 1>&6
6824 echo "configure:6825: checking for working const" >&5
6825 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6826   echo $ac_n "(cached) $ac_c" 1>&6
6827 else
6828   cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831
6832 int main() {
6833
6834 /* Ultrix mips cc rejects this.  */
6835 typedef int charset[2]; const charset x;
6836 /* SunOS 4.1.1 cc rejects this.  */
6837 char const *const *ccp;
6838 char **p;
6839 /* NEC SVR4.0.2 mips cc rejects this.  */
6840 struct point {int x, y;};
6841 static struct point const zero = {0,0};
6842 /* AIX XL C 1.02.0.0 rejects this.
6843    It does not let you subtract one const X* pointer from another in an arm
6844    of an if-expression whose if-part is not a constant expression */
6845 const char *g = "string";
6846 ccp = &g + (g ? g-g : 0);
6847 /* HPUX 7.0 cc rejects these. */
6848 ++ccp;
6849 p = (char**) ccp;
6850 ccp = (char const *const *) p;
6851 { /* SCO 3.2v4 cc rejects this.  */
6852   char *t;
6853   char const *s = 0 ? (char *) 0 : (char const *) 0;
6854
6855   *t++ = 0;
6856 }
6857 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6858   int x[] = {25, 17};
6859   const int *foo = &x[0];
6860   ++foo;
6861 }
6862 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6863   typedef const int *iptr;
6864   iptr p = 0;
6865   ++p;
6866 }
6867 { /* AIX XL C 1.02.0.0 rejects this saying
6868      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6869   struct s { int j; const int *ap[3]; };
6870   struct s *b; b->j = 5;
6871 }
6872 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6873   const int foo = 10;
6874 }
6875
6876 ; return 0; }
6877 EOF
6878 if { (eval echo configure:6879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6879   rm -rf conftest*
6880   ac_cv_c_const=yes
6881 else
6882   echo "configure: failed program was:" >&5
6883   cat conftest.$ac_ext >&5
6884   rm -rf conftest*
6885   ac_cv_c_const=no
6886 fi
6887 rm -f conftest*
6888 fi
6889
6890 echo "$ac_t""$ac_cv_c_const" 1>&6
6891 if test $ac_cv_c_const = no; then
6892   cat >> confdefs.h <<\EOF
6893 #define const 
6894 EOF
6895
6896 fi
6897
6898 echo $ac_n "checking for inline""... $ac_c" 1>&6
6899 echo "configure:6900: checking for inline" >&5
6900 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6901   echo $ac_n "(cached) $ac_c" 1>&6
6902 else
6903   ac_cv_c_inline=no
6904 for ac_kw in inline __inline__ __inline; do
6905   cat > conftest.$ac_ext <<EOF
6906 #line 6907 "configure"
6907 #include "confdefs.h"
6908
6909 int main() {
6910 } $ac_kw foo() {
6911 ; return 0; }
6912 EOF
6913 if { (eval echo configure:6914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6914   rm -rf conftest*
6915   ac_cv_c_inline=$ac_kw; break
6916 else
6917   echo "configure: failed program was:" >&5
6918   cat conftest.$ac_ext >&5
6919 fi
6920 rm -f conftest*
6921 done
6922
6923 fi
6924
6925 echo "$ac_t""$ac_cv_c_inline" 1>&6
6926 case "$ac_cv_c_inline" in
6927   inline | yes) ;;
6928   no) cat >> confdefs.h <<\EOF
6929 #define inline 
6930 EOF
6931  ;;
6932   *)  cat >> confdefs.h <<EOF
6933 #define inline $ac_cv_c_inline
6934 EOF
6935  ;;
6936 esac
6937
6938 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6939 echo "configure:6940: checking for off_t" >&5
6940 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6941   echo $ac_n "(cached) $ac_c" 1>&6
6942 else
6943   cat > conftest.$ac_ext <<EOF
6944 #line 6945 "configure"
6945 #include "confdefs.h"
6946 #include <sys/types.h>
6947 #if STDC_HEADERS
6948 #include <stdlib.h>
6949 #include <stddef.h>
6950 #endif
6951 EOF
6952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6953   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6954   rm -rf conftest*
6955   ac_cv_type_off_t=yes
6956 else
6957   rm -rf conftest*
6958   ac_cv_type_off_t=no
6959 fi
6960 rm -f conftest*
6961
6962 fi
6963 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6964 if test $ac_cv_type_off_t = no; then
6965   cat >> confdefs.h <<\EOF
6966 #define off_t long
6967 EOF
6968
6969 fi
6970
6971 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6972 echo "configure:6973: checking for size_t" >&5
6973 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6974   echo $ac_n "(cached) $ac_c" 1>&6
6975 else
6976   cat > conftest.$ac_ext <<EOF
6977 #line 6978 "configure"
6978 #include "confdefs.h"
6979 #include <sys/types.h>
6980 #if STDC_HEADERS
6981 #include <stdlib.h>
6982 #include <stddef.h>
6983 #endif
6984 EOF
6985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6986   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6987   rm -rf conftest*
6988   ac_cv_type_size_t=yes
6989 else
6990   rm -rf conftest*
6991   ac_cv_type_size_t=no
6992 fi
6993 rm -f conftest*
6994
6995 fi
6996 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6997 if test $ac_cv_type_size_t = no; then
6998   cat >> confdefs.h <<\EOF
6999 #define size_t unsigned
7000 EOF
7001
7002 fi
7003
7004 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7005 # for constant arguments.  Useless!
7006 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7007 echo "configure:7008: checking for working alloca.h" >&5
7008 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7009   echo $ac_n "(cached) $ac_c" 1>&6
7010 else
7011   cat > conftest.$ac_ext <<EOF
7012 #line 7013 "configure"
7013 #include "confdefs.h"
7014 #include <alloca.h>
7015 int main() {
7016 char *p = alloca(2 * sizeof(int));
7017 ; return 0; }
7018 EOF
7019 if { (eval echo configure:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7020   rm -rf conftest*
7021   ac_cv_header_alloca_h=yes
7022 else
7023   echo "configure: failed program was:" >&5
7024   cat conftest.$ac_ext >&5
7025   rm -rf conftest*
7026   ac_cv_header_alloca_h=no
7027 fi
7028 rm -f conftest*
7029 fi
7030
7031 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7032 if test $ac_cv_header_alloca_h = yes; then
7033   cat >> confdefs.h <<\EOF
7034 #define HAVE_ALLOCA_H 1
7035 EOF
7036
7037 fi
7038
7039 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7040 echo "configure:7041: checking for alloca" >&5
7041 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7042   echo $ac_n "(cached) $ac_c" 1>&6
7043 else
7044   cat > conftest.$ac_ext <<EOF
7045 #line 7046 "configure"
7046 #include "confdefs.h"
7047
7048 #ifdef __GNUC__
7049 # define alloca __builtin_alloca
7050 #else
7051 # ifdef _MSC_VER
7052 #  include <malloc.h>
7053 #  define alloca _alloca
7054 # else
7055 #  if HAVE_ALLOCA_H
7056 #   include <alloca.h>
7057 #  else
7058 #   ifdef _AIX
7059  #pragma alloca
7060 #   else
7061 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7062 char *alloca ();
7063 #    endif
7064 #   endif
7065 #  endif
7066 # endif
7067 #endif
7068
7069 int main() {
7070 char *p = (char *) alloca(1);
7071 ; return 0; }
7072 EOF
7073 if { (eval echo configure:7074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7074   rm -rf conftest*
7075   ac_cv_func_alloca_works=yes
7076 else
7077   echo "configure: failed program was:" >&5
7078   cat conftest.$ac_ext >&5
7079   rm -rf conftest*
7080   ac_cv_func_alloca_works=no
7081 fi
7082 rm -f conftest*
7083 fi
7084
7085 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7086 if test $ac_cv_func_alloca_works = yes; then
7087   cat >> confdefs.h <<\EOF
7088 #define HAVE_ALLOCA 1
7089 EOF
7090
7091 fi
7092
7093 if test $ac_cv_func_alloca_works = no; then
7094   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7095   # that cause trouble.  Some versions do not even contain alloca or
7096   # contain a buggy version.  If you still want to use their alloca,
7097   # use ar to extract alloca.o from them instead of compiling alloca.c.
7098   ALLOCA=alloca.${ac_objext}
7099   cat >> confdefs.h <<\EOF
7100 #define C_ALLOCA 1
7101 EOF
7102
7103
7104 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7105 echo "configure:7106: checking whether alloca needs Cray hooks" >&5
7106 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7107   echo $ac_n "(cached) $ac_c" 1>&6
7108 else
7109   cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7112 #if defined(CRAY) && ! defined(CRAY2)
7113 webecray
7114 #else
7115 wenotbecray
7116 #endif
7117
7118 EOF
7119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7120   egrep "webecray" >/dev/null 2>&1; then
7121   rm -rf conftest*
7122   ac_cv_os_cray=yes
7123 else
7124   rm -rf conftest*
7125   ac_cv_os_cray=no
7126 fi
7127 rm -f conftest*
7128
7129 fi
7130
7131 echo "$ac_t""$ac_cv_os_cray" 1>&6
7132 if test $ac_cv_os_cray = yes; then
7133 for ac_func in _getb67 GETB67 getb67; do
7134   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7135 echo "configure:7136: checking for $ac_func" >&5
7136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7137   echo $ac_n "(cached) $ac_c" 1>&6
7138 else
7139   cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7142 /* System header to define __stub macros and hopefully few prototypes,
7143     which can conflict with char $ac_func(); below.  */
7144 #include <assert.h>
7145 /* Override any gcc2 internal prototype to avoid an error.  */
7146 /* We use char because int might match the return type of a gcc2
7147     builtin and then its argument prototype would still apply.  */
7148 char $ac_func();
7149
7150 int main() {
7151
7152 /* The GNU C library defines this for functions which it implements
7153     to always fail with ENOSYS.  Some functions are actually named
7154     something starting with __ and the normal name is an alias.  */
7155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7156 choke me
7157 #else
7158 $ac_func();
7159 #endif
7160
7161 ; return 0; }
7162 EOF
7163 if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7164   rm -rf conftest*
7165   eval "ac_cv_func_$ac_func=yes"
7166 else
7167   echo "configure: failed program was:" >&5
7168   cat conftest.$ac_ext >&5
7169   rm -rf conftest*
7170   eval "ac_cv_func_$ac_func=no"
7171 fi
7172 rm -f conftest*
7173 fi
7174
7175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7176   echo "$ac_t""yes" 1>&6
7177   cat >> confdefs.h <<EOF
7178 #define CRAY_STACKSEG_END $ac_func
7179 EOF
7180
7181   break
7182 else
7183   echo "$ac_t""no" 1>&6
7184 fi
7185
7186 done
7187 fi
7188
7189 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7190 echo "configure:7191: checking stack direction for C alloca" >&5
7191 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7192   echo $ac_n "(cached) $ac_c" 1>&6
7193 else
7194   if test "$cross_compiling" = yes; then
7195   ac_cv_c_stack_direction=0
7196 else
7197   cat > conftest.$ac_ext <<EOF
7198 #line 7199 "configure"
7199 #include "confdefs.h"
7200 find_stack_direction ()
7201 {
7202   static char *addr = 0;
7203   auto char dummy;
7204   if (addr == 0)
7205     {
7206       addr = &dummy;
7207       return find_stack_direction ();
7208     }
7209   else
7210     return (&dummy > addr) ? 1 : -1;
7211 }
7212 main ()
7213 {
7214   exit (find_stack_direction() < 0);
7215 }
7216 EOF
7217 if { (eval echo configure:7218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7218 then
7219   ac_cv_c_stack_direction=1
7220 else
7221   echo "configure: failed program was:" >&5
7222   cat conftest.$ac_ext >&5
7223   rm -fr conftest*
7224   ac_cv_c_stack_direction=-1
7225 fi
7226 rm -fr conftest*
7227 fi
7228
7229 fi
7230
7231 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7232 cat >> confdefs.h <<EOF
7233 #define STACK_DIRECTION $ac_cv_c_stack_direction
7234 EOF
7235
7236 fi
7237
7238                            
7239    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7240 unistd.h sys/param.h
7241 do
7242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7244 echo "configure:7245: checking for $ac_hdr" >&5
7245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7246   echo $ac_n "(cached) $ac_c" 1>&6
7247 else
7248   cat > conftest.$ac_ext <<EOF
7249 #line 7250 "configure"
7250 #include "confdefs.h"
7251 #include <$ac_hdr>
7252 EOF
7253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7254 { (eval echo configure:7255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7256 if test -z "$ac_err"; then
7257   rm -rf conftest*
7258   eval "ac_cv_header_$ac_safe=yes"
7259 else
7260   echo "$ac_err" >&5
7261   echo "configure: failed program was:" >&5
7262   cat conftest.$ac_ext >&5
7263   rm -rf conftest*
7264   eval "ac_cv_header_$ac_safe=no"
7265 fi
7266 rm -f conftest*
7267 fi
7268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7269   echo "$ac_t""yes" 1>&6
7270     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7271   cat >> confdefs.h <<EOF
7272 #define $ac_tr_hdr 1
7273 EOF
7274  
7275 else
7276   echo "$ac_t""no" 1>&6
7277 fi
7278 done
7279
7280    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7281 strdup __argz_count __argz_stringify __argz_next
7282 do
7283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7284 echo "configure:7285: checking for $ac_func" >&5
7285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7286   echo $ac_n "(cached) $ac_c" 1>&6
7287 else
7288   cat > conftest.$ac_ext <<EOF
7289 #line 7290 "configure"
7290 #include "confdefs.h"
7291 /* System header to define __stub macros and hopefully few prototypes,
7292     which can conflict with char $ac_func(); below.  */
7293 #include <assert.h>
7294 /* Override any gcc2 internal prototype to avoid an error.  */
7295 /* We use char because int might match the return type of a gcc2
7296     builtin and then its argument prototype would still apply.  */
7297 char $ac_func();
7298
7299 int main() {
7300
7301 /* The GNU C library defines this for functions which it implements
7302     to always fail with ENOSYS.  Some functions are actually named
7303     something starting with __ and the normal name is an alias.  */
7304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7305 choke me
7306 #else
7307 $ac_func();
7308 #endif
7309
7310 ; return 0; }
7311 EOF
7312 if { (eval echo configure:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7313   rm -rf conftest*
7314   eval "ac_cv_func_$ac_func=yes"
7315 else
7316   echo "configure: failed program was:" >&5
7317   cat conftest.$ac_ext >&5
7318   rm -rf conftest*
7319   eval "ac_cv_func_$ac_func=no"
7320 fi
7321 rm -f conftest*
7322 fi
7323
7324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7325   echo "$ac_t""yes" 1>&6
7326     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7327   cat >> confdefs.h <<EOF
7328 #define $ac_tr_func 1
7329 EOF
7330  
7331 else
7332   echo "$ac_t""no" 1>&6
7333 fi
7334 done
7335
7336
7337    if test "${ac_cv_func_stpcpy+set}" != "set"; then
7338      for ac_func in stpcpy
7339 do
7340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7341 echo "configure:7342: checking for $ac_func" >&5
7342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7343   echo $ac_n "(cached) $ac_c" 1>&6
7344 else
7345   cat > conftest.$ac_ext <<EOF
7346 #line 7347 "configure"
7347 #include "confdefs.h"
7348 /* System header to define __stub macros and hopefully few prototypes,
7349     which can conflict with char $ac_func(); below.  */
7350 #include <assert.h>
7351 /* Override any gcc2 internal prototype to avoid an error.  */
7352 /* We use char because int might match the return type of a gcc2
7353     builtin and then its argument prototype would still apply.  */
7354 char $ac_func();
7355
7356 int main() {
7357
7358 /* The GNU C library defines this for functions which it implements
7359     to always fail with ENOSYS.  Some functions are actually named
7360     something starting with __ and the normal name is an alias.  */
7361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7362 choke me
7363 #else
7364 $ac_func();
7365 #endif
7366
7367 ; return 0; }
7368 EOF
7369 if { (eval echo configure:7370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7370   rm -rf conftest*
7371   eval "ac_cv_func_$ac_func=yes"
7372 else
7373   echo "configure: failed program was:" >&5
7374   cat conftest.$ac_ext >&5
7375   rm -rf conftest*
7376   eval "ac_cv_func_$ac_func=no"
7377 fi
7378 rm -f conftest*
7379 fi
7380
7381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7382   echo "$ac_t""yes" 1>&6
7383     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7384   cat >> confdefs.h <<EOF
7385 #define $ac_tr_func 1
7386 EOF
7387  
7388 else
7389   echo "$ac_t""no" 1>&6
7390 fi
7391 done
7392
7393    fi
7394    if test "${ac_cv_func_stpcpy}" = "yes"; then
7395      cat >> confdefs.h <<\EOF
7396 #define HAVE_STPCPY 1
7397 EOF
7398
7399    fi
7400
7401    if test $ac_cv_header_locale_h = yes; then
7402     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7403 echo "configure:7404: checking for LC_MESSAGES" >&5
7404 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7405   echo $ac_n "(cached) $ac_c" 1>&6
7406 else
7407   cat > conftest.$ac_ext <<EOF
7408 #line 7409 "configure"
7409 #include "confdefs.h"
7410 #include <locale.h>
7411 int main() {
7412 return LC_MESSAGES
7413 ; return 0; }
7414 EOF
7415 if { (eval echo configure:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7416   rm -rf conftest*
7417   am_cv_val_LC_MESSAGES=yes
7418 else
7419   echo "configure: failed program was:" >&5
7420   cat conftest.$ac_ext >&5
7421   rm -rf conftest*
7422   am_cv_val_LC_MESSAGES=no
7423 fi
7424 rm -f conftest*
7425 fi
7426
7427 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7428     if test $am_cv_val_LC_MESSAGES = yes; then
7429       cat >> confdefs.h <<\EOF
7430 #define HAVE_LC_MESSAGES 1
7431 EOF
7432
7433     fi
7434   fi
7435    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7436 echo "configure:7437: checking whether NLS is requested" >&5
7437         # Check whether --enable-nls or --disable-nls was given.
7438 if test "${enable_nls+set}" = set; then
7439   enableval="$enable_nls"
7440   USE_NLS=$enableval
7441 else
7442   USE_NLS=yes
7443 fi
7444
7445     echo "$ac_t""$USE_NLS" 1>&6
7446     
7447
7448     USE_INCLUDED_LIBINTL=no
7449
7450         if test "$USE_NLS" = "yes"; then
7451       cat >> confdefs.h <<\EOF
7452 #define ENABLE_NLS 1
7453 EOF
7454
7455       echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7456 echo "configure:7457: checking whether included gettext is requested" >&5
7457       # Check whether --with-included-gettext or --without-included-gettext was given.
7458 if test "${with_included_gettext+set}" = set; then
7459   withval="$with_included_gettext"
7460   nls_cv_force_use_gnu_gettext=$withval
7461 else
7462   nls_cv_force_use_gnu_gettext=no
7463 fi
7464
7465       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7466
7467       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7468       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7469                                         nls_cv_header_intl=
7470         nls_cv_header_libgt=
7471         CATOBJEXT=NONE
7472
7473         ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7474 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7475 echo "configure:7476: checking for libintl.h" >&5
7476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7477   echo $ac_n "(cached) $ac_c" 1>&6
7478 else
7479   cat > conftest.$ac_ext <<EOF
7480 #line 7481 "configure"
7481 #include "confdefs.h"
7482 #include <libintl.h>
7483 EOF
7484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7485 { (eval echo configure:7486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7487 if test -z "$ac_err"; then
7488   rm -rf conftest*
7489   eval "ac_cv_header_$ac_safe=yes"
7490 else
7491   echo "$ac_err" >&5
7492   echo "configure: failed program was:" >&5
7493   cat conftest.$ac_ext >&5
7494   rm -rf conftest*
7495   eval "ac_cv_header_$ac_safe=no"
7496 fi
7497 rm -f conftest*
7498 fi
7499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7500   echo "$ac_t""yes" 1>&6
7501   echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7502 echo "configure:7503: checking for gettext in libc" >&5
7503 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7504   echo $ac_n "(cached) $ac_c" 1>&6
7505 else
7506   cat > conftest.$ac_ext <<EOF
7507 #line 7508 "configure"
7508 #include "confdefs.h"
7509 #include <libintl.h>
7510 int main() {
7511 return (int) gettext ("")
7512 ; return 0; }
7513 EOF
7514 if { (eval echo configure:7515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7515   rm -rf conftest*
7516   gt_cv_func_gettext_libc=yes
7517 else
7518   echo "configure: failed program was:" >&5
7519   cat conftest.$ac_ext >&5
7520   rm -rf conftest*
7521   gt_cv_func_gettext_libc=no
7522 fi
7523 rm -f conftest*
7524 fi
7525
7526 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7527
7528            if test "$gt_cv_func_gettext_libc" != "yes"; then
7529              echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7530 echo "configure:7531: checking for bindtextdomain in -lintl" >&5
7531 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7533   echo $ac_n "(cached) $ac_c" 1>&6
7534 else
7535   ac_save_LIBS="$LIBS"
7536 LIBS="-lintl  $LIBS"
7537 cat > conftest.$ac_ext <<EOF
7538 #line 7539 "configure"
7539 #include "confdefs.h"
7540 /* Override any gcc2 internal prototype to avoid an error.  */
7541 /* We use char because int might match the return type of a gcc2
7542     builtin and then its argument prototype would still apply.  */
7543 char bindtextdomain();
7544
7545 int main() {
7546 bindtextdomain()
7547 ; return 0; }
7548 EOF
7549 if { (eval echo configure:7550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7550   rm -rf conftest*
7551   eval "ac_cv_lib_$ac_lib_var=yes"
7552 else
7553   echo "configure: failed program was:" >&5
7554   cat conftest.$ac_ext >&5
7555   rm -rf conftest*
7556   eval "ac_cv_lib_$ac_lib_var=no"
7557 fi
7558 rm -f conftest*
7559 LIBS="$ac_save_LIBS"
7560
7561 fi
7562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7563   echo "$ac_t""yes" 1>&6
7564   echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7565 echo "configure:7566: checking for gettext in libintl" >&5
7566 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7567   echo $ac_n "(cached) $ac_c" 1>&6
7568 else
7569   echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7570 echo "configure:7571: checking for gettext in -lintl" >&5
7571 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7573   echo $ac_n "(cached) $ac_c" 1>&6
7574 else
7575   ac_save_LIBS="$LIBS"
7576 LIBS="-lintl  $LIBS"
7577 cat > conftest.$ac_ext <<EOF
7578 #line 7579 "configure"
7579 #include "confdefs.h"
7580 /* Override any gcc2 internal prototype to avoid an error.  */
7581 /* We use char because int might match the return type of a gcc2
7582     builtin and then its argument prototype would still apply.  */
7583 char gettext();
7584
7585 int main() {
7586 gettext()
7587 ; return 0; }
7588 EOF
7589 if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7590   rm -rf conftest*
7591   eval "ac_cv_lib_$ac_lib_var=yes"
7592 else
7593   echo "configure: failed program was:" >&5
7594   cat conftest.$ac_ext >&5
7595   rm -rf conftest*
7596   eval "ac_cv_lib_$ac_lib_var=no"
7597 fi
7598 rm -f conftest*
7599 LIBS="$ac_save_LIBS"
7600
7601 fi
7602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7603   echo "$ac_t""yes" 1>&6
7604   gt_cv_func_gettext_libintl=yes
7605 else
7606   echo "$ac_t""no" 1>&6
7607 gt_cv_func_gettext_libintl=no
7608 fi
7609
7610 fi
7611
7612 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7613 else
7614   echo "$ac_t""no" 1>&6
7615 fi
7616
7617            fi
7618
7619            if test "$gt_cv_func_gettext_libc" = "yes" \
7620               || test "$gt_cv_func_gettext_libintl" = "yes"; then
7621               cat >> confdefs.h <<\EOF
7622 #define HAVE_GETTEXT 1
7623 EOF
7624
7625               # Extract the first word of "msgfmt", so it can be a program name with args.
7626 set dummy msgfmt; ac_word=$2
7627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7628 echo "configure:7629: checking for $ac_word" >&5
7629 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7630   echo $ac_n "(cached) $ac_c" 1>&6
7631 else
7632   case "$MSGFMT" in
7633   /*)
7634   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7635   ;;
7636   *)
7637   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7638   for ac_dir in $PATH; do
7639     test -z "$ac_dir" && ac_dir=.
7640     if test -f $ac_dir/$ac_word; then
7641       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7642         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7643         break
7644       fi
7645     fi
7646   done
7647   IFS="$ac_save_ifs"
7648   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7649   ;;
7650 esac
7651 fi
7652 MSGFMT="$ac_cv_path_MSGFMT"
7653 if test -n "$MSGFMT"; then
7654   echo "$ac_t""$MSGFMT" 1>&6
7655 else
7656   echo "$ac_t""no" 1>&6
7657 fi
7658               if test "$MSGFMT" != "no"; then
7659                 for ac_func in dcgettext
7660 do
7661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7662 echo "configure:7663: checking for $ac_func" >&5
7663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7664   echo $ac_n "(cached) $ac_c" 1>&6
7665 else
7666   cat > conftest.$ac_ext <<EOF
7667 #line 7668 "configure"
7668 #include "confdefs.h"
7669 /* System header to define __stub macros and hopefully few prototypes,
7670     which can conflict with char $ac_func(); below.  */
7671 #include <assert.h>
7672 /* Override any gcc2 internal prototype to avoid an error.  */
7673 /* We use char because int might match the return type of a gcc2
7674     builtin and then its argument prototype would still apply.  */
7675 char $ac_func();
7676
7677 int main() {
7678
7679 /* The GNU C library defines this for functions which it implements
7680     to always fail with ENOSYS.  Some functions are actually named
7681     something starting with __ and the normal name is an alias.  */
7682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7683 choke me
7684 #else
7685 $ac_func();
7686 #endif
7687
7688 ; return 0; }
7689 EOF
7690 if { (eval echo configure:7691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7691   rm -rf conftest*
7692   eval "ac_cv_func_$ac_func=yes"
7693 else
7694   echo "configure: failed program was:" >&5
7695   cat conftest.$ac_ext >&5
7696   rm -rf conftest*
7697   eval "ac_cv_func_$ac_func=no"
7698 fi
7699 rm -f conftest*
7700 fi
7701
7702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7703   echo "$ac_t""yes" 1>&6
7704     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7705   cat >> confdefs.h <<EOF
7706 #define $ac_tr_func 1
7707 EOF
7708  
7709 else
7710   echo "$ac_t""no" 1>&6
7711 fi
7712 done
7713
7714                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7715 set dummy gmsgfmt; ac_word=$2
7716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7717 echo "configure:7718: checking for $ac_word" >&5
7718 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7719   echo $ac_n "(cached) $ac_c" 1>&6
7720 else
7721   case "$GMSGFMT" in
7722   /*)
7723   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7724   ;;
7725   ?:/*)                  
7726   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7727   ;;
7728   *)
7729   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7730   ac_dummy="$PATH"
7731   for ac_dir in $ac_dummy; do 
7732     test -z "$ac_dir" && ac_dir=.
7733     if test -f $ac_dir/$ac_word; then
7734       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7735       break
7736     fi
7737   done
7738   IFS="$ac_save_ifs"
7739   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7740   ;;
7741 esac
7742 fi
7743 GMSGFMT="$ac_cv_path_GMSGFMT"
7744 if test -n "$GMSGFMT"; then
7745   echo "$ac_t""$GMSGFMT" 1>&6
7746 else
7747   echo "$ac_t""no" 1>&6
7748 fi
7749
7750                 # Extract the first word of "xgettext", so it can be a program name with args.
7751 set dummy xgettext; ac_word=$2
7752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7753 echo "configure:7754: checking for $ac_word" >&5
7754 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7755   echo $ac_n "(cached) $ac_c" 1>&6
7756 else
7757   case "$XGETTEXT" in
7758   /*)
7759   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7760   ;;
7761   *)
7762   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7763   for ac_dir in $PATH; do
7764     test -z "$ac_dir" && ac_dir=.
7765     if test -f $ac_dir/$ac_word; then
7766       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7767         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7768         break
7769       fi
7770     fi
7771   done
7772   IFS="$ac_save_ifs"
7773   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7774   ;;
7775 esac
7776 fi
7777 XGETTEXT="$ac_cv_path_XGETTEXT"
7778 if test -n "$XGETTEXT"; then
7779   echo "$ac_t""$XGETTEXT" 1>&6
7780 else
7781   echo "$ac_t""no" 1>&6
7782 fi
7783
7784                 cat > conftest.$ac_ext <<EOF
7785 #line 7786 "configure"
7786 #include "confdefs.h"
7787
7788 int main() {
7789 extern int _nl_msg_cat_cntr;
7790                                return _nl_msg_cat_cntr
7791 ; return 0; }
7792 EOF
7793 if { (eval echo configure:7794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7794   rm -rf conftest*
7795   CATOBJEXT=.gmo
7796                    DATADIRNAME=share
7797 else
7798   echo "configure: failed program was:" >&5
7799   cat conftest.$ac_ext >&5
7800   rm -rf conftest*
7801   CATOBJEXT=.mo
7802                    DATADIRNAME=lib
7803 fi
7804 rm -f conftest*
7805                 INSTOBJEXT=.mo
7806               fi
7807             fi
7808         
7809 else
7810   echo "$ac_t""no" 1>&6
7811 fi
7812
7813
7814         if test "$CATOBJEXT" = "NONE"; then
7815           echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7816 echo "configure:7817: checking whether catgets can be used" >&5
7817           # Check whether --with-catgets or --without-catgets was given.
7818 if test "${with_catgets+set}" = set; then
7819   withval="$with_catgets"
7820   nls_cv_use_catgets=$withval
7821 else
7822   nls_cv_use_catgets=no
7823 fi
7824
7825           echo "$ac_t""$nls_cv_use_catgets" 1>&6
7826
7827           if test "$nls_cv_use_catgets" = "yes"; then
7828                     echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7829 echo "configure:7830: checking for main in -li" >&5
7830 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7832   echo $ac_n "(cached) $ac_c" 1>&6
7833 else
7834   ac_save_LIBS="$LIBS"
7835 LIBS="-li  $LIBS"
7836 cat > conftest.$ac_ext <<EOF
7837 #line 7838 "configure"
7838 #include "confdefs.h"
7839
7840 int main() {
7841 main()
7842 ; return 0; }
7843 EOF
7844 if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7845   rm -rf conftest*
7846   eval "ac_cv_lib_$ac_lib_var=yes"
7847 else
7848   echo "configure: failed program was:" >&5
7849   cat conftest.$ac_ext >&5
7850   rm -rf conftest*
7851   eval "ac_cv_lib_$ac_lib_var=no"
7852 fi
7853 rm -f conftest*
7854 LIBS="$ac_save_LIBS"
7855
7856 fi
7857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7858   echo "$ac_t""yes" 1>&6
7859     ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7860     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7861   cat >> confdefs.h <<EOF
7862 #define $ac_tr_lib 1
7863 EOF
7864
7865   LIBS="-li $LIBS"
7866
7867 else
7868   echo "$ac_t""no" 1>&6
7869 fi
7870
7871             echo $ac_n "checking for catgets""... $ac_c" 1>&6
7872 echo "configure:7873: checking for catgets" >&5
7873 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7874   echo $ac_n "(cached) $ac_c" 1>&6
7875 else
7876   cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 /* System header to define __stub macros and hopefully few prototypes,
7880     which can conflict with char catgets(); below.  */
7881 #include <assert.h>
7882 /* Override any gcc2 internal prototype to avoid an error.  */
7883 /* We use char because int might match the return type of a gcc2
7884     builtin and then its argument prototype would still apply.  */
7885 char catgets();
7886
7887 int main() {
7888
7889 /* The GNU C library defines this for functions which it implements
7890     to always fail with ENOSYS.  Some functions are actually named
7891     something starting with __ and the normal name is an alias.  */
7892 #if defined (__stub_catgets) || defined (__stub___catgets)
7893 choke me
7894 #else
7895 catgets();
7896 #endif
7897
7898 ; return 0; }
7899 EOF
7900 if { (eval echo configure:7901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7901   rm -rf conftest*
7902   eval "ac_cv_func_catgets=yes"
7903 else
7904   echo "configure: failed program was:" >&5
7905   cat conftest.$ac_ext >&5
7906   rm -rf conftest*
7907   eval "ac_cv_func_catgets=no"
7908 fi
7909 rm -f conftest*
7910 fi
7911
7912 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7913   echo "$ac_t""yes" 1>&6
7914   cat >> confdefs.h <<\EOF
7915 #define HAVE_CATGETS 1
7916 EOF
7917
7918                INTLOBJS="\$(CATOBJS)"
7919                # Extract the first word of "gencat", so it can be a program name with args.
7920 set dummy gencat; ac_word=$2
7921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7922 echo "configure:7923: checking for $ac_word" >&5
7923 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7924   echo $ac_n "(cached) $ac_c" 1>&6
7925 else
7926   case "$GENCAT" in
7927   /*)
7928   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7929   ;;
7930   ?:/*)                  
7931   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7932   ;;
7933   *)
7934   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7935   ac_dummy="$PATH"
7936   for ac_dir in $ac_dummy; do 
7937     test -z "$ac_dir" && ac_dir=.
7938     if test -f $ac_dir/$ac_word; then
7939       ac_cv_path_GENCAT="$ac_dir/$ac_word"
7940       break
7941     fi
7942   done
7943   IFS="$ac_save_ifs"
7944   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7945   ;;
7946 esac
7947 fi
7948 GENCAT="$ac_cv_path_GENCAT"
7949 if test -n "$GENCAT"; then
7950   echo "$ac_t""$GENCAT" 1>&6
7951 else
7952   echo "$ac_t""no" 1>&6
7953 fi
7954                if test "$GENCAT" != "no"; then
7955                  # Extract the first word of "gmsgfmt", so it can be a program name with args.
7956 set dummy gmsgfmt; ac_word=$2
7957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7958 echo "configure:7959: checking for $ac_word" >&5
7959 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7960   echo $ac_n "(cached) $ac_c" 1>&6
7961 else
7962   case "$GMSGFMT" in
7963   /*)
7964   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7965   ;;
7966   ?:/*)                  
7967   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7968   ;;
7969   *)
7970   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7971   ac_dummy="$PATH"
7972   for ac_dir in $ac_dummy; do 
7973     test -z "$ac_dir" && ac_dir=.
7974     if test -f $ac_dir/$ac_word; then
7975       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7976       break
7977     fi
7978   done
7979   IFS="$ac_save_ifs"
7980   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7981   ;;
7982 esac
7983 fi
7984 GMSGFMT="$ac_cv_path_GMSGFMT"
7985 if test -n "$GMSGFMT"; then
7986   echo "$ac_t""$GMSGFMT" 1>&6
7987 else
7988   echo "$ac_t""no" 1>&6
7989 fi
7990
7991                  if test "$GMSGFMT" = "no"; then
7992                    # Extract the first word of "msgfmt", so it can be a program name with args.
7993 set dummy msgfmt; ac_word=$2
7994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7995 echo "configure:7996: checking for $ac_word" >&5
7996 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7997   echo $ac_n "(cached) $ac_c" 1>&6
7998 else
7999   case "$GMSGFMT" in
8000   /*)
8001   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8002   ;;
8003   *)
8004   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8005   for ac_dir in $PATH; do
8006     test -z "$ac_dir" && ac_dir=.
8007     if test -f $ac_dir/$ac_word; then
8008       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8009         ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8010         break
8011       fi
8012     fi
8013   done
8014   IFS="$ac_save_ifs"
8015   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
8016   ;;
8017 esac
8018 fi
8019 GMSGFMT="$ac_cv_path_GMSGFMT"
8020 if test -n "$GMSGFMT"; then
8021   echo "$ac_t""$GMSGFMT" 1>&6
8022 else
8023   echo "$ac_t""no" 1>&6
8024 fi
8025
8026                  fi
8027                  # Extract the first word of "xgettext", so it can be a program name with args.
8028 set dummy xgettext; ac_word=$2
8029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8030 echo "configure:8031: checking for $ac_word" >&5
8031 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8032   echo $ac_n "(cached) $ac_c" 1>&6
8033 else
8034   case "$XGETTEXT" in
8035   /*)
8036   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8037   ;;
8038   *)
8039   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8040   for ac_dir in $PATH; do
8041     test -z "$ac_dir" && ac_dir=.
8042     if test -f $ac_dir/$ac_word; then
8043       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8044         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8045         break
8046       fi
8047     fi
8048   done
8049   IFS="$ac_save_ifs"
8050   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8051   ;;
8052 esac
8053 fi
8054 XGETTEXT="$ac_cv_path_XGETTEXT"
8055 if test -n "$XGETTEXT"; then
8056   echo "$ac_t""$XGETTEXT" 1>&6
8057 else
8058   echo "$ac_t""no" 1>&6
8059 fi
8060
8061                  USE_INCLUDED_LIBINTL=yes
8062                  CATOBJEXT=.cat
8063                  INSTOBJEXT=.cat
8064                  DATADIRNAME=lib
8065                  INTLDEPS='$(top_builddir)/intl/libintl.a'
8066                  INTLLIBS=$INTLDEPS
8067                  LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8068                  nls_cv_header_intl=intl/libintl.h
8069                  nls_cv_header_libgt=intl/libgettext.h
8070                fi
8071 else
8072   echo "$ac_t""no" 1>&6
8073 fi
8074
8075           fi
8076         fi
8077
8078         if test "$CATOBJEXT" = "NONE"; then
8079                           nls_cv_use_gnu_gettext=yes
8080         fi
8081       fi
8082
8083       if test "$nls_cv_use_gnu_gettext" = "yes"; then
8084                 INTLOBJS="\$(GETTOBJS)"
8085         # Extract the first word of "msgfmt", so it can be a program name with args.
8086 set dummy msgfmt; ac_word=$2
8087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8088 echo "configure:8089: checking for $ac_word" >&5
8089 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8090   echo $ac_n "(cached) $ac_c" 1>&6
8091 else
8092   case "$MSGFMT" in
8093   /*)
8094   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8095   ;;
8096   *)
8097   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8098   for ac_dir in $PATH; do
8099     test -z "$ac_dir" && ac_dir=.
8100     if test -f $ac_dir/$ac_word; then
8101       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8102         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8103         break
8104       fi
8105     fi
8106   done
8107   IFS="$ac_save_ifs"
8108   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8109   ;;
8110 esac
8111 fi
8112 MSGFMT="$ac_cv_path_MSGFMT"
8113 if test -n "$MSGFMT"; then
8114   echo "$ac_t""$MSGFMT" 1>&6
8115 else
8116   echo "$ac_t""no" 1>&6
8117 fi
8118
8119         # Extract the first word of "gmsgfmt", so it can be a program name with args.
8120 set dummy gmsgfmt; ac_word=$2
8121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8122 echo "configure:8123: checking for $ac_word" >&5
8123 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8124   echo $ac_n "(cached) $ac_c" 1>&6
8125 else
8126   case "$GMSGFMT" in
8127   /*)
8128   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8129   ;;
8130   ?:/*)                  
8131   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8132   ;;
8133   *)
8134   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8135   ac_dummy="$PATH"
8136   for ac_dir in $ac_dummy; do 
8137     test -z "$ac_dir" && ac_dir=.
8138     if test -f $ac_dir/$ac_word; then
8139       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8140       break
8141     fi
8142   done
8143   IFS="$ac_save_ifs"
8144   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8145   ;;
8146 esac
8147 fi
8148 GMSGFMT="$ac_cv_path_GMSGFMT"
8149 if test -n "$GMSGFMT"; then
8150   echo "$ac_t""$GMSGFMT" 1>&6
8151 else
8152   echo "$ac_t""no" 1>&6
8153 fi
8154
8155         # Extract the first word of "xgettext", so it can be a program name with args.
8156 set dummy xgettext; ac_word=$2
8157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8158 echo "configure:8159: checking for $ac_word" >&5
8159 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8160   echo $ac_n "(cached) $ac_c" 1>&6
8161 else
8162   case "$XGETTEXT" in
8163   /*)
8164   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8165   ;;
8166   *)
8167   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8168   for ac_dir in $PATH; do
8169     test -z "$ac_dir" && ac_dir=.
8170     if test -f $ac_dir/$ac_word; then
8171       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8172         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8173         break
8174       fi
8175     fi
8176   done
8177   IFS="$ac_save_ifs"
8178   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8179   ;;
8180 esac
8181 fi
8182 XGETTEXT="$ac_cv_path_XGETTEXT"
8183 if test -n "$XGETTEXT"; then
8184   echo "$ac_t""$XGETTEXT" 1>&6
8185 else
8186   echo "$ac_t""no" 1>&6
8187 fi
8188
8189         
8190         USE_INCLUDED_LIBINTL=yes
8191         CATOBJEXT=.gmo
8192         INSTOBJEXT=.mo
8193         DATADIRNAME=share
8194         INTLDEPS='$(top_builddir)/intl/libintl.a'
8195         INTLLIBS=$INTLDEPS
8196         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8197         nls_cv_header_intl=intl/libintl.h
8198         nls_cv_header_libgt=intl/libgettext.h
8199       fi
8200
8201             if test "$XGETTEXT" != ":"; then
8202                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8203           : ;
8204         else
8205           echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8206           XGETTEXT=":"
8207         fi
8208       fi
8209
8210       # We need to process the po/ directory.
8211       POSUB=po
8212     else
8213       DATADIRNAME=share
8214       nls_cv_header_intl=intl/libintl.h
8215       nls_cv_header_libgt=intl/libgettext.h
8216     fi
8217     
8218     
8219
8220
8221     # If this is used in GNU gettext we have to set USE_NLS to `yes'
8222     # because some of the sources are only built for this goal.
8223     if test "$PACKAGE" = gettext; then
8224       USE_NLS=yes
8225       USE_INCLUDED_LIBINTL=yes
8226     fi
8227
8228                 for lang in $ALL_LINGUAS; do
8229       GMOFILES="$GMOFILES $lang.gmo"
8230       POFILES="$POFILES $lang.po"
8231     done
8232
8233         
8234     
8235     
8236     
8237     
8238     
8239     
8240     
8241     
8242     
8243     
8244   
8245
8246    if test "x$CATOBJEXT" != "x"; then
8247      if test "x$ALL_LINGUAS" = "x"; then
8248        LINGUAS=
8249      else
8250        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8251 echo "configure:8252: checking for catalogs to be installed" >&5
8252        NEW_LINGUAS=
8253        for lang in ${LINGUAS=$ALL_LINGUAS}; do
8254          case "$ALL_LINGUAS" in
8255           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8256          esac
8257        done
8258        LINGUAS=$NEW_LINGUAS
8259        echo "$ac_t""$LINGUAS" 1>&6
8260      fi
8261
8262           if test -n "$LINGUAS"; then
8263        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8264      fi
8265    fi
8266
8267             if test $ac_cv_header_locale_h = yes; then
8268      INCLUDE_LOCALE_H="#include <locale.h>"
8269    else
8270      INCLUDE_LOCALE_H="\
8271 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
8272    fi
8273    
8274
8275             test -d intl || mkdir intl
8276    if test "$CATOBJEXT" = ".cat"; then
8277      ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8278 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8279 echo "configure:8280: checking for linux/version.h" >&5
8280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8281   echo $ac_n "(cached) $ac_c" 1>&6
8282 else
8283   cat > conftest.$ac_ext <<EOF
8284 #line 8285 "configure"
8285 #include "confdefs.h"
8286 #include <linux/version.h>
8287 EOF
8288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8289 { (eval echo configure:8290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8291 if test -z "$ac_err"; then
8292   rm -rf conftest*
8293   eval "ac_cv_header_$ac_safe=yes"
8294 else
8295   echo "$ac_err" >&5
8296   echo "configure: failed program was:" >&5
8297   cat conftest.$ac_ext >&5
8298   rm -rf conftest*
8299   eval "ac_cv_header_$ac_safe=no"
8300 fi
8301 rm -f conftest*
8302 fi
8303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8304   echo "$ac_t""yes" 1>&6
8305   msgformat=linux
8306 else
8307   echo "$ac_t""no" 1>&6
8308 msgformat=xopen
8309 fi
8310
8311
8312                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8313    fi
8314       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8315      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8316
8317             if test "$PACKAGE" = "gettext"; then
8318      GT_NO="#NO#"
8319      GT_YES=
8320    else
8321      GT_NO=
8322      GT_YES="#YES#"
8323    fi
8324    
8325    
8326
8327             MKINSTALLDIRS=
8328    if test -n "$ac_aux_dir"; then
8329      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8330    fi
8331    if test -z "$MKINSTALLDIRS"; then
8332      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8333    fi
8334    
8335
8336       l=
8337    
8338
8339          test -d po || mkdir po
8340    if test "x$srcdir" != "x."; then
8341      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8342        posrcprefix="$srcdir/"
8343      else
8344        posrcprefix="../$srcdir/"
8345      fi
8346    else
8347      posrcprefix="../"
8348    fi
8349    rm -f po/POTFILES
8350    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8351         < $srcdir/po/POTFILES.in > po/POTFILES
8352   
8353 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8354
8355 # Windows32 Registry support for specifying GCC installation paths.
8356 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8357 if test "${enable_win32_registry+set}" = set; then
8358   enableval="$enable_win32_registry"
8359   :
8360 fi
8361
8362
8363 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8364 echo "configure:8365: checking whether windows registry support is requested" >&5
8365 if test x$enable_win32_registry != xno; then
8366   cat >> confdefs.h <<\EOF
8367 #define ENABLE_WIN32_REGISTRY 1
8368 EOF
8369
8370   echo "$ac_t""yes" 1>&6
8371 else
8372   echo "$ac_t""no" 1>&6
8373 fi
8374
8375 # Check if user specified a different registry key.
8376 case x${enable_win32_registry} in
8377 x | xyes)
8378   # default.
8379   gcc_cv_win32_registry_key="$VERSION"
8380   ;;
8381 xno)
8382   # no registry lookup.
8383   gcc_cv_win32_registry_key=''
8384   ;;
8385 *)
8386   # user-specified key.
8387   gcc_cv_win32_registry_key="$enable_win32_registry"
8388   ;;
8389 esac
8390
8391 if test x$enable_win32_registry != xno; then
8392   echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8393 echo "configure:8394: checking registry key on windows hosts" >&5
8394   cat >> confdefs.h <<EOF
8395 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8396 EOF
8397
8398   echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8399 fi
8400
8401 # Get an absolute path to the GCC top-level source directory
8402 holddir=`pwd`
8403 cd $srcdir
8404 topdir=`pwd`
8405 cd $holddir
8406
8407 # Conditionalize the makefile for this host machine.
8408 # Make-host contains the concatenation of all host makefile fragments
8409 # [there can be more than one].  This file is built by configure.frag.
8410 host_overrides=Make-host
8411 dep_host_xmake_file=
8412 for f in .. ${host_xmake_file}
8413 do
8414         if test -f ${srcdir}/config/$f
8415         then
8416                 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8417         fi
8418 done
8419
8420 # Conditionalize the makefile for this target machine.
8421 # Make-target contains the concatenation of all host makefile fragments
8422 # [there can be more than one].  This file is built by configure.frag.
8423 target_overrides=Make-target
8424 dep_tmake_file=
8425 for f in .. ${tmake_file}
8426 do
8427         if test -f ${srcdir}/config/$f
8428         then
8429                 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8430         fi
8431 done
8432
8433 # If the host doesn't support symlinks, modify CC in
8434 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8435 # Otherwise, we can use "CC=$(CC)".
8436 rm -f symtest.tem
8437 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8438 then
8439         cc_set_by_configure="\$(CC)"
8440         quoted_cc_set_by_configure="\$(CC)"
8441         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8442 else
8443         rm -f symtest.tem
8444         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8445         then
8446                 symbolic_link="cp -p"
8447         else
8448                 symbolic_link="cp"
8449         fi
8450         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8451         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8452         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8453 fi
8454 rm -f symtest.tem
8455
8456 out_object_file=`basename $out_file .c`.o
8457
8458 tm_file_list=
8459 for f in $tm_file; do
8460   case $f in
8461     gansidecl.h )
8462        tm_file_list="${tm_file_list} $f" ;;
8463     *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8464   esac
8465 done
8466
8467 host_xm_file_list=
8468 for f in $host_xm_file; do
8469   case $f in
8470     auto-host.h | gansidecl.h | hwint.h )
8471        host_xm_file_list="${host_xm_file_list} $f" ;;
8472     *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8473   esac
8474 done
8475
8476 build_xm_file_list=
8477 for f in $build_xm_file; do
8478   case $f in
8479     auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8480        build_xm_file_list="${build_xm_file_list} $f" ;;
8481     *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8482   esac
8483 done
8484
8485 # Define macro CROSS_COMPILE in compilation
8486 # if this is a cross-compiler.
8487 # Also use all.cross instead of all.internal
8488 # and add cross-make to Makefile.
8489 cross_overrides="/dev/null"
8490 if test x$host != x$target
8491 then
8492         cross_defines="CROSS=-DCROSS_COMPILE"
8493         cross_overrides="${topdir}/cross-make"
8494 fi
8495
8496 # When building gcc with a cross-compiler, we need to fix a few things.
8497 # This must come after cross-make as we want all.build to override
8498 # all.cross.
8499 build_overrides="/dev/null"
8500 if test x$build != x$host
8501 then
8502         build_overrides="${topdir}/build-make"
8503 fi
8504
8505 # Expand extra_headers to include complete path.
8506 # This substitutes for lots of t-* files.
8507 extra_headers_list=
8508 if test "x$extra_headers" = x
8509 then true
8510 else
8511         # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8512         for file in $extra_headers;
8513         do
8514                 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8515         done
8516 fi
8517
8518 if test x$use_collect2 = xno; then
8519         use_collect2=
8520 fi
8521
8522 # Add a definition of USE_COLLECT2 if system wants one.
8523 # Also tell toplev.c what to do.
8524 # This substitutes for lots of t-* files.
8525 if test x$use_collect2 = x
8526 then
8527         will_use_collect2=
8528         maybe_use_collect2=
8529 else
8530         will_use_collect2="collect2"
8531         maybe_use_collect2="-DUSE_COLLECT2"
8532 fi
8533
8534 # NEED TO CONVERT
8535 # Set MD_DEPS if the real md file is in md.pre-cpp.
8536 # Set MD_CPP to the cpp to pass the md file through.  Md files use ';'
8537 # for line oriented comments, so we must always use a GNU cpp.  If
8538 # building gcc with a cross compiler, use the cross compiler just
8539 # built.  Otherwise, we can use the cpp just built.
8540 md_file_sub=
8541 if test "x$md_cppflags" = x
8542 then
8543         md_file_sub=$srcdir/config/$md_file
8544 else
8545         md_file=md
8546 fi
8547
8548 # If we have gas in the build tree, make a link to it.
8549 if test -f ../gas/Makefile; then
8550         rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8551 fi
8552
8553 # If we have nm in the build tree, make a link to it.
8554 if test -f ../binutils/Makefile; then
8555         rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8556 fi
8557
8558 # If we have ld in the build tree, make a link to it.
8559 if test -f ../ld/Makefile; then
8560 #       if test x$use_collect2 = x; then
8561 #               rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8562 #       else
8563                 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8564 #       fi
8565 fi
8566
8567 # Figure out what assembler alignment features are present.
8568 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8569 echo "configure:8570: checking assembler alignment features" >&5
8570 gcc_cv_as=
8571 gcc_cv_as_alignment_features=
8572 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8573 if test -x "$DEFAULT_ASSEMBLER"; then
8574         gcc_cv_as="$DEFAULT_ASSEMBLER"
8575 elif test -x "$AS"; then
8576         gcc_cv_as="$AS"
8577 elif test -x as$host_exeext; then
8578         # Build using assembler in the current directory.
8579         gcc_cv_as=./as$host_exeext
8580 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8581         # Single tree build which includes gas.
8582         for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8583         do
8584                 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8585                 if test x$gcc_cv_gas_version != x; then
8586                         break
8587                 fi
8588         done
8589         gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8590         gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8591         if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8592                 # Gas version 2.6 and later support for .balign and .p2align.
8593                 # bytes to skip when using .p2align.
8594                 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
8595                         gcc_cv_as_alignment_features=".balign and .p2align"
8596                         cat >> confdefs.h <<\EOF
8597 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8598 EOF
8599
8600                 fi
8601                 # Gas version 2.8 and later support specifying the maximum
8602                 # bytes to skip when using .p2align.
8603                 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
8604                         gcc_cv_as_alignment_features=".p2align including maximum skip"
8605                         cat >> confdefs.h <<\EOF
8606 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8607 EOF
8608
8609                 fi
8610         fi
8611 elif test x$host = x$target; then
8612         # Native build.
8613         # Search the same directories that the installed compiler will
8614         # search.  Else we may find the wrong assembler and lose.  If we
8615         # do not find a suitable assembler binary, then try the user's
8616         # path.
8617         #
8618         # Also note we have to check MD_EXEC_PREFIX before checking the
8619         # user's path.  Unfortunately, there is no good way to get at the
8620         # value of MD_EXEC_PREFIX here.  So we do a brute force search
8621         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
8622         # to be fixed as part of the make/configure rewrite too.
8623
8624         if test "x$exec_prefix" = xNONE; then
8625                 if test "x$prefix" = xNONE; then
8626                         test_prefix=/usr/local
8627                 else
8628                         test_prefix=$prefix
8629                 fi
8630         else
8631                 test_prefix=$exec_prefix
8632         fi
8633
8634         # If the loop below does not find an assembler, then use whatever
8635         # one we can find in the users's path.
8636         # user's path.
8637         as=as$host_exeext
8638
8639         test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8640                    $test_prefix/lib/gcc-lib/$target \
8641                    /usr/lib/gcc/$target/$gcc_version \
8642                    /usr/lib/gcc/$target \
8643                    $test_prefix/$target/bin/$target/$gcc_version \
8644                    $test_prefix/$target/bin \
8645                    /usr/libexec \
8646                    /usr/ccs/gcc \
8647                    /usr/ccs/bin \
8648                    /udk/usr/ccs/bin \
8649                    /bsd43/usr/lib/cmplrs/cc \
8650                    /usr/cross64/usr/bin \
8651                    /usr/lib/cmplrs/cc \
8652                    /sysv/usr/lib/cmplrs/cc \
8653                    /svr4/usr/lib/cmplrs/cc \
8654                    /usr/bin"
8655
8656         for dir in $test_dirs; do
8657                 if test -f $dir/as$host_exeext; then
8658                         gcc_cv_as=$dir/as$host_exeext
8659                         break;
8660                 fi
8661         done
8662 fi
8663 if test x$gcc_cv_as != x; then
8664         # Check if we have .balign and .p2align
8665         echo ".balign  4" > conftest.s
8666         echo ".p2align  2" >> conftest.s
8667         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8668                 gcc_cv_as_alignment_features=".balign and .p2align"
8669                 cat >> confdefs.h <<\EOF
8670 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8671 EOF
8672
8673         fi
8674         rm -f conftest.s conftest.o
8675         # Check if specifying the maximum bytes to skip when
8676         # using .p2align is supported.
8677         echo ".p2align 4,,7" > conftest.s
8678         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8679                 gcc_cv_as_alignment_features=".p2align including maximum skip"
8680                 cat >> confdefs.h <<\EOF
8681 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8682 EOF
8683
8684         fi
8685         rm -f conftest.s conftest.o
8686 fi
8687 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8688
8689 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8690 echo "configure:8691: checking assembler subsection support" >&5
8691 gcc_cv_as_subsections=
8692 if test x$gcc_cv_as != x; then
8693         # Check if we have .subsection
8694         echo ".subsection 1" > conftest.s
8695         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8696                 gcc_cv_as_subsections=".subsection"
8697                 if test -x nm$host_exeext; then
8698                         gcc_cv_nm=./nm$host_exeext
8699                 elif test x$host = x$target; then
8700                         # Native build.
8701                         gcc_cv_nm=nm$host_exeext
8702                 fi
8703                 if test x$gcc_cv_nm != x; then
8704                         cat > conftest.s <<EOF
8705 conftest_label1: .word 0
8706 .subsection -1
8707 conftest_label2: .word 0
8708 .previous
8709 EOF
8710                         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8711                                 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8712                                 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8713                                 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8714                                         :
8715                                 else
8716                                         gcc_cv_as_subsections="working .subsection -1"
8717                                         cat >> confdefs.h <<\EOF
8718 #define HAVE_GAS_SUBSECTION_ORDERING 1
8719 EOF
8720
8721                                 fi
8722                         fi
8723                 fi
8724         fi
8725         rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8726 fi
8727 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8728
8729 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8730 echo "configure:8731: checking assembler weak support" >&5
8731 gcc_cv_as_weak=
8732 if test x$gcc_cv_as != x; then
8733         # Check if we have .weak
8734         echo "  .weak foobar" > conftest.s
8735         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8736                 cat >> confdefs.h <<\EOF
8737 #define HAVE_GAS_WEAK 1
8738 EOF
8739
8740                 gcc_cv_as_weak="yes"
8741         fi
8742         rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8743 fi
8744 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8745
8746 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8747 echo "configure:8748: checking assembler hidden support" >&5
8748 gcc_cv_as_hidden=
8749 if test x$gcc_cv_as != x; then
8750         # Check if we have .hidden
8751         echo "  .hidden foobar" > conftest.s
8752         echo "foobar:" >> conftest.s
8753         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8754                 cat >> confdefs.h <<\EOF
8755 #define HAVE_GAS_HIDDEN 1
8756 EOF
8757
8758                 gcc_cv_as_hidden="yes"
8759         fi
8760         rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8761 fi
8762 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8763
8764 case "$target" in 
8765   sparc*-*-*)
8766     echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8767 echo "configure:8768: checking assembler .register pseudo-op support" >&5
8768 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8769   echo $ac_n "(cached) $ac_c" 1>&6
8770 else
8771   
8772         gcc_cv_as_register_pseudo_op=unknown
8773         if test x$gcc_cv_as != x; then
8774             # Check if we have .register
8775             echo ".register %g2, #scratch" > conftest.s
8776             if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8777                 gcc_cv_as_register_pseudo_op=yes
8778             else
8779                 gcc_cv_as_register_pseudo_op=no
8780             fi
8781             rm -f conftest.s conftest.o
8782         fi
8783     
8784 fi
8785
8786 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8787     if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
8788         cat >> confdefs.h <<\EOF
8789 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8790 EOF
8791
8792     fi
8793
8794     case "$tm_file" in
8795     *64*)
8796         echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8797 echo "configure:8798: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8798 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8799   echo $ac_n "(cached) $ac_c" 1>&6
8800 else
8801   
8802                 if test -n "$gcc_cv_as"; then
8803                     echo ".xword foo" > conftest.s
8804                     gcc_cv_as_flags64=no
8805                     for flag in "-xarch=v9" "-64 -Av9"; do
8806                         if $gcc_cv_as $flag -o conftest.o conftest.s \
8807                             > /dev/null 2>&1; then
8808                             gcc_cv_as_flags64=$flag
8809                             break
8810                         fi
8811                     done
8812                     rm -f conftest.s conftest.o
8813                 else
8814                     if test "$gas" = yes; then
8815                         gcc_cv_as_flags64="-64 -Av9"
8816                     else
8817                         gcc_cv_as_flags64="-xarch=v9"
8818                     fi
8819                 fi
8820         
8821 fi
8822
8823 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8824         if test "x$gcc_cv_as_flags64" = xno; then
8825
8826             tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8827             dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8828
8829         else
8830             cat >> confdefs.h <<EOF
8831 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8832 EOF
8833
8834         fi
8835         ;;
8836     *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
8837         ;;
8838     esac
8839
8840     if test "x$gcc_cv_as_flags64" != xno; then
8841         echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8842 echo "configure:8843: checking for assembler offsetable %lo() support" >&5
8843 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8844   echo $ac_n "(cached) $ac_c" 1>&6
8845 else
8846   
8847             gcc_cv_as_offsetable_lo10=unknown
8848             if test "x$gcc_cv_as" != x; then
8849                 # Check if assembler has offsetable %lo()
8850                 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8851                 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8852                 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8853                         > /dev/null 2>&1 &&
8854                    $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8855                         > /dev/null 2>&1; then
8856                     if cmp conftest.o conftest1.o > /dev/null 2>&1; then
8857                         gcc_cv_as_offsetable_lo10=no
8858                     else
8859                         gcc_cv_as_offsetable_lo10=yes
8860                     fi
8861                 else
8862                     gcc_cv_as_offsetable_lo10=no
8863                 fi
8864                 rm -f conftest.s conftest.o conftest1.s conftest1.o
8865             fi
8866         
8867 fi
8868
8869 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8870         if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
8871             cat >> confdefs.h <<\EOF
8872 #define HAVE_AS_OFFSETABLE_LO10 1
8873 EOF
8874
8875         fi
8876     fi
8877     ;;
8878
8879   i[34567]86-*-*)
8880     echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8881 echo "configure:8882: checking assembler instructions" >&5
8882     gcc_cv_as_instructions=
8883     if test x$gcc_cv_as != x; then
8884         set "filds fists" "filds mem; fists mem"
8885         while test $# -gt 0
8886         do
8887                 echo "$2" > conftest.s
8888                 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8889                         gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8890                         cat >> confdefs.h <<EOF
8891 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8892 EOF
8893
8894                 fi
8895                 shift 2
8896         done
8897         rm -f conftest.s conftest.o
8898     fi
8899     echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8900     ;;
8901 esac
8902
8903 # Figure out what language subdirectories are present.
8904 # Look if the user specified --enable-languages="..."; if not, use
8905 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8906 # go away some day.
8907 if test x"${enable_languages+set}" != xset; then
8908         if test x"${LANGUAGES+set}" = xset; then
8909                 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8910         else
8911                 enable_languages=all
8912         fi
8913 fi
8914 subdirs=
8915 for lang in ${srcdir}/*/config-lang.in ..
8916 do
8917         case $lang in
8918         ..) ;;
8919         # The odd quoting in the next line works around
8920         # an apparent bug in bash 1.12 on linux.
8921         ${srcdir}/[*]/config-lang.in) ;;
8922         *)
8923           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
8924           if test "x$lang_alias" = x
8925           then
8926                 echo "$lang doesn't set \$language." 1>&2
8927                 exit 1
8928           fi
8929           if test x"${enable_languages}" = xall; then
8930                 add_this_lang=yes
8931           else
8932                 case "${enable_languages}" in
8933                     ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8934                         add_this_lang=yes
8935                         ;;
8936                     * )
8937                         add_this_lang=no
8938                         ;;
8939                 esac
8940           fi
8941           if test x"${add_this_lang}" = xyes; then
8942                 case $lang in
8943                     ${srcdir}/ada/config-lang.in)
8944                         if test x$gnat = xyes ; then
8945                                 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8946                         fi
8947                         ;;
8948                     *)
8949                         subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8950                         ;;
8951                 esac
8952           fi
8953           ;;
8954         esac
8955 done
8956
8957 # Make gthr-default.h if we have a thread file.
8958 gthread_flags=
8959 if test $thread_file != single; then
8960     rm -f gthr-default.h
8961     echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8962     gthread_flags=-DHAVE_GTHR_DEFAULT
8963 fi
8964
8965
8966 # Find out what GC implementation we want, or may, use.
8967 # Check whether --with-gc or --without-gc was given.
8968 if test "${with_gc+set}" = set; then
8969   withval="$with_gc"
8970   case "$withval" in
8971   simple | page)
8972     GGC=ggc-$withval
8973     ;;
8974   *)
8975     { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8976     ;;
8977 esac
8978 else
8979   if test $ac_cv_func_mmap_anywhere = yes \
8980     || test $ac_cv_func_valloc = yes; then
8981   GGC=ggc-page
8982 else
8983   GGC=ggc-simple
8984 fi
8985 fi
8986
8987
8988 echo "Using $GGC for garbage collection."
8989
8990 # Build a new-abi (c++) system
8991 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
8992 if test "${enable_new_gxx_abi+set}" = set; then
8993   enableval="$enable_new_gxx_abi"
8994   cat >> confdefs.h <<\EOF
8995 #define ENABLE_NEW_GXX_ABI 1
8996 EOF
8997
8998 GXX_ABI_FLAG='-fnew-abi'
8999 echo "Building a new-abi g++ compiler."
9000
9001 fi
9002
9003
9004
9005 # Build a new-libstdc++ system (ie libstdc++-v3)
9006 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9007 echo "configure:9008: checking for libstdc++ to install" >&5
9008 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9009 if test "${enable_libstdcxx_v3+set}" = set; then
9010   enableval="$enable_libstdcxx_v3"
9011   enable_libstdcxx_v3=yes
9012 else
9013   enable_libstdcxx_v3=no
9014 fi
9015
9016
9017 if test x$enable_libstdcxx_v3 = xyes; then
9018   echo "$ac_t""v3" 1>&6
9019   ac_esn=1
9020 else
9021   echo "$ac_t""v2" 1>&6
9022   ac_esn=0
9023 fi
9024 cat >> confdefs.h <<EOF
9025 #define ENABLE_STD_NAMESPACE $ac_esn
9026 EOF
9027
9028
9029 # Make empty files to contain the specs and options for each language.
9030 # Then add #include lines to for a compiler that has specs and/or options.
9031
9032 lang_specs_files=
9033 lang_options_files=
9034 lang_tree_files=
9035 rm -f specs.h options.h gencheck.h
9036 touch specs.h options.h gencheck.h
9037 for subdir in . $subdirs
9038 do
9039         if test -f $srcdir/$subdir/lang-specs.h; then
9040                 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9041                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9042         fi
9043         if test -f $srcdir/$subdir/lang-options.h; then
9044                 echo "#include \"$subdir/lang-options.h\"" >>options.h
9045                 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
9046         fi
9047         if test -f $srcdir/$subdir/$subdir-tree.def; then
9048                 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9049                 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9050         fi
9051 done
9052
9053 # These (without "all_") are set in each config-lang.in.
9054 # `language' must be a single word so is spelled singularly.
9055 all_languages=
9056 all_boot_languages=
9057 all_compilers=
9058 all_stagestuff=
9059 all_diff_excludes=
9060 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9061 # List of language makefile fragments.
9062 all_lang_makefiles=
9063 all_headers=
9064 all_lib2funcs=
9065
9066 # Add the language fragments.
9067 # Languages are added via two mechanisms.  Some information must be
9068 # recorded in makefile variables, these are defined in config-lang.in.
9069 # We accumulate them and plug them into the main Makefile.
9070 # The other mechanism is a set of hooks for each of the main targets
9071 # like `clean', `install', etc.
9072
9073 language_fragments="Make-lang"
9074 language_hooks="Make-hooks"
9075 oldstyle_subdirs=
9076
9077 for s in .. $subdirs
9078 do
9079         if test $s != ".."
9080         then
9081                 language=
9082                 boot_language=
9083                 compilers=
9084                 stagestuff=
9085                 diff_excludes=
9086                 headers=
9087                 outputs=
9088                 lib2funcs=
9089                 . ${srcdir}/$s/config-lang.in
9090                 if test "x$language" = x
9091                 then
9092                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9093                         exit 1
9094                 fi
9095                 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9096                 all_languages="$all_languages $language"
9097                 if test "x$boot_language" = xyes
9098                 then
9099                         all_boot_languages="$all_boot_languages $language"
9100                 fi
9101                 all_compilers="$all_compilers $compilers"
9102                 all_stagestuff="$all_stagestuff $stagestuff"
9103                 all_diff_excludes="$all_diff_excludes $diff_excludes"
9104                 all_headers="$all_headers $headers"
9105                 all_outputs="$all_outputs $outputs"
9106                 if test x$outputs = x
9107                 then
9108                         oldstyle_subdirs="$oldstyle_subdirs $s"
9109                 fi
9110                 all_lib2funcs="$all_lib2funcs $lib2funcs"
9111         fi
9112 done
9113
9114 # Since we can't use `::' targets, we link each language in
9115 # with a set of hooks, reached indirectly via lang.${target}.
9116
9117 rm -f Make-hooks
9118 touch Make-hooks
9119 target_list="all.build all.cross start.encap rest.encap \
9120         info dvi \
9121         install-normal install-common install-info install-man \
9122         uninstall distdir \
9123         mostlyclean clean distclean extraclean maintainer-clean \
9124         stage1 stage2 stage3 stage4"
9125 for t in $target_list
9126 do
9127         x=
9128         for lang in .. $all_languages
9129         do
9130                 if test $lang != ".."; then
9131                         x="$x $lang.$t"
9132                 fi
9133         done
9134         echo "lang.$t: $x" >> Make-hooks
9135 done
9136
9137 # If we're not building in srcdir, create .gdbinit.
9138
9139 if test ! -f Makefile.in; then
9140         echo "dir ." > .gdbinit
9141         echo "dir ${srcdir}" >> .gdbinit
9142         if test x$gdb_needs_out_file_path = xyes
9143         then
9144                 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9145         fi
9146         if test "x$subdirs" != x; then
9147                 for s in $subdirs
9148                 do
9149                         echo "dir ${srcdir}/$s" >> .gdbinit
9150                 done
9151         fi
9152         echo "source ${srcdir}/.gdbinit" >> .gdbinit
9153 fi
9154
9155 # Define variables host_canonical and build_canonical
9156 # because some Cygnus local changes in the Makefile depend on them.
9157 build_canonical=${build}
9158 host_canonical=${host}
9159 target_subdir=
9160 if test "${host}" != "${target}" ; then
9161     target_subdir=${target}/
9162 fi
9163
9164
9165
9166         
9167 # If this is using newlib, then define inhibit_libc in
9168 # LIBGCC2_CFLAGS.  This will cause __eprintf to be left out of
9169 # libgcc.a, but that's OK because newib should have its own version of
9170 # assert.h.
9171 inhibit_libc=
9172 if test x$with_newlib = xyes; then
9173         inhibit_libc=-Dinhibit_libc
9174 fi
9175
9176
9177 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9178 # absolute path for gcc_tooldir based on inserting the number of up-directory
9179 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9180 # $(libsubdir)/@(unlibsubdir) based path.
9181 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9182 # make and thus we'd get different behavior depending on where we built the
9183 # sources.
9184 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
9185     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9186 else
9187 # An explanation of the sed strings:
9188 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
9189 #  -e 's|/$||'            match a trailing forward slash and eliminates it
9190 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
9191 #  -e 's|/[^/]*|../|g'    replaces each occurance of /<directory> with ../
9192 #
9193 # (*) Note this pattern overwrites the first character of the string
9194 # with a forward slash if one is not already present.  This is not a
9195 # problem because the exact names of the sub-directories concerned is
9196 # unimportant, just the number of them matters.
9197 #
9198 # The practical upshot of these patterns is like this:
9199 #
9200 #  prefix     exec_prefix        result
9201 #  ------     -----------        ------
9202 #   /foo        /foo/bar          ../
9203 #   /foo/       /foo/bar          ../
9204 #   /foo        /foo/bar/         ../
9205 #   /foo/       /foo/bar/         ../
9206 #   /foo        /foo/bar/ugg      ../../
9207 #
9208     dollar='$$'
9209     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9210 fi
9211
9212
9213
9214 # Nothing to do for FLOAT_H, float_format already handled.
9215 objdir=`pwd`
9216
9217
9218 # Process the language and host/target makefile fragments.
9219 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9220
9221 # Substitute configuration variables
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
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 # Echo that links are built
9281 if test x$host = x$target
9282 then
9283         str1="native "
9284 else
9285         str1="cross-"
9286         str2=" from $host"
9287 fi
9288
9289 if test x$host != x$build
9290 then
9291         str3=" on a $build system"
9292 fi
9293
9294 if test "x$str2" != x || test "x$str3" != x
9295 then
9296         str4=
9297 fi
9298
9299 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9300
9301 if test "x$str2" != x || test "x$str3" != x
9302 then
9303         echo " ${str2}${str3}." 1>&2
9304 fi
9305
9306 # Truncate the target if necessary
9307 if test x$host_truncate_target != x; then
9308         target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9309 fi
9310
9311 # Configure the subdirectories
9312 # AC_CONFIG_SUBDIRS($subdirs)
9313
9314 # Create the Makefile
9315 # and configure language subdirectories
9316 trap '' 1 2 15
9317 cat > confcache <<\EOF
9318 # This file is a shell script that caches the results of configure
9319 # tests run on this system so they can be shared between configure
9320 # scripts and configure runs.  It is not useful on other systems.
9321 # If it contains results you don't want to keep, you may remove or edit it.
9322 #
9323 # By default, configure uses ./config.cache as the cache file,
9324 # creating it if it does not exist already.  You can give configure
9325 # the --cache-file=FILE option to use a different cache file; that is
9326 # what configure does when it calls configure scripts in
9327 # subdirectories, so they share the cache.
9328 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9329 # config.status only pays attention to the cache file if you give it the
9330 # --recheck option to rerun configure.
9331 #
9332 EOF
9333 # The following way of writing the cache mishandles newlines in values,
9334 # but we know of no workaround that is simple, portable, and efficient.
9335 # So, don't put newlines in cache variables' values.
9336 # Ultrix sh set writes to stderr and can't be redirected directly,
9337 # and sets the high bit in the cache file unless we assign to the vars.
9338 (set) 2>&1 |
9339   case `(ac_space=' '; set | grep ac_space) 2>&1` in
9340   *ac_space=\ *)
9341     # `set' does not quote correctly, so add quotes (double-quote substitution
9342     # turns \\\\ into \\, and sed turns \\ into \).
9343     sed -n \
9344       -e "s/'/'\\\\''/g" \
9345       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9346     ;;
9347   *)
9348     # `set' quotes correctly as required by POSIX, so do not add quotes.
9349     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9350     ;;
9351   esac >> confcache
9352 if cmp -s $cache_file confcache; then
9353   :
9354 else
9355   if test -w $cache_file; then
9356     echo "updating cache $cache_file"
9357     cat confcache > $cache_file
9358   else
9359     echo "not updating unwritable cache $cache_file"
9360   fi
9361 fi
9362 rm -f confcache
9363
9364 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9365
9366 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9367 # Let make expand exec_prefix.
9368 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9369
9370 # Any assignment to VPATH causes Sun make to only execute
9371 # the first set of double-colon rules, so remove it if not needed.
9372 # If there is a colon in the path, we need to keep it.
9373 if test "x$srcdir" = x.; then
9374   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
9375 fi
9376
9377 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9378
9379 DEFS=-DHAVE_CONFIG_H
9380
9381 # Without the "./", some shells look in PATH for config.status.
9382 : ${CONFIG_STATUS=./config.status}
9383
9384 echo creating $CONFIG_STATUS
9385 rm -f $CONFIG_STATUS
9386 cat > $CONFIG_STATUS <<EOF
9387 #! /bin/sh
9388 # Generated automatically by configure.
9389 # Run this file to recreate the current configuration.
9390 # This directory was configured as follows,
9391 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9392 #
9393 # $0 $ac_configure_args
9394 #
9395 # Compiler output produced by configure, useful for debugging
9396 # configure, is in ./config.log if it exists.
9397
9398 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9399 for ac_option
9400 do
9401   case "\$ac_option" in
9402   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9403     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9404     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9405   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9406     echo "$CONFIG_STATUS generated by autoconf version 2.13"
9407     exit 0 ;;
9408   -help | --help | --hel | --he | --h)
9409     echo "\$ac_cs_usage"; exit 0 ;;
9410   *) echo "\$ac_cs_usage"; exit 1 ;;
9411   esac
9412 done
9413
9414 ac_given_srcdir=$srcdir
9415
9416 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9417 EOF
9418 cat >> $CONFIG_STATUS <<EOF
9419
9420 # Protect against being on the right side of a sed subst in config.status.
9421 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9422  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9423 $ac_vpsub
9424 $extrasub
9425 s%@SHELL@%$SHELL%g
9426 s%@CFLAGS@%$CFLAGS%g
9427 s%@CPPFLAGS@%$CPPFLAGS%g
9428 s%@CXXFLAGS@%$CXXFLAGS%g
9429 s%@FFLAGS@%$FFLAGS%g
9430 s%@DEFS@%$DEFS%g
9431 s%@LDFLAGS@%$LDFLAGS%g
9432 s%@LIBS@%$LIBS%g
9433 s%@exec_prefix@%$exec_prefix%g
9434 s%@prefix@%$prefix%g
9435 s%@program_transform_name@%$program_transform_name%g
9436 s%@bindir@%$bindir%g
9437 s%@sbindir@%$sbindir%g
9438 s%@libexecdir@%$libexecdir%g
9439 s%@datadir@%$datadir%g
9440 s%@sysconfdir@%$sysconfdir%g
9441 s%@sharedstatedir@%$sharedstatedir%g
9442 s%@localstatedir@%$localstatedir%g
9443 s%@libdir@%$libdir%g
9444 s%@includedir@%$includedir%g
9445 s%@oldincludedir@%$oldincludedir%g
9446 s%@infodir@%$infodir%g
9447 s%@mandir@%$mandir%g
9448 s%@host@%$host%g
9449 s%@host_alias@%$host_alias%g
9450 s%@host_cpu@%$host_cpu%g
9451 s%@host_vendor@%$host_vendor%g
9452 s%@host_os@%$host_os%g
9453 s%@target@%$target%g
9454 s%@target_alias@%$target_alias%g
9455 s%@target_cpu@%$target_cpu%g
9456 s%@target_vendor@%$target_vendor%g
9457 s%@target_os@%$target_os%g
9458 s%@build@%$build%g
9459 s%@build_alias@%$build_alias%g
9460 s%@build_cpu@%$build_cpu%g
9461 s%@build_vendor@%$build_vendor%g
9462 s%@build_os@%$build_os%g
9463 s%@CC@%$CC%g
9464 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9465 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9466 s%@SET_MAKE@%$SET_MAKE%g
9467 s%@AWK@%$AWK%g
9468 s%@LEX@%$LEX%g
9469 s%@LEXLIB@%$LEXLIB%g
9470 s%@LN@%$LN%g
9471 s%@LN_S@%$LN_S%g
9472 s%@RANLIB@%$RANLIB%g
9473 s%@YACC@%$YACC%g
9474 s%@INSTALL@%$INSTALL%g
9475 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9476 s%@INSTALL_DATA@%$INSTALL_DATA%g
9477 s%@CPP@%$CPP%g
9478 s%@gnat@%$gnat%g
9479 s%@MAKEINFO@%$MAKEINFO%g
9480 s%@BUILD_INFO@%$BUILD_INFO%g
9481 s%@INSTALL_INFO@%$INSTALL_INFO%g
9482 s%@vfprintf@%$vfprintf%g
9483 s%@doprint@%$doprint%g
9484 s%@manext@%$manext%g
9485 s%@objext@%$objext%g
9486 s%@PACKAGE@%$PACKAGE%g
9487 s%@VERSION@%$VERSION%g
9488 s%@ALLOCA@%$ALLOCA%g
9489 s%@USE_NLS@%$USE_NLS%g
9490 s%@MSGFMT@%$MSGFMT%g
9491 s%@GMSGFMT@%$GMSGFMT%g
9492 s%@XGETTEXT@%$XGETTEXT%g
9493 s%@GENCAT@%$GENCAT%g
9494 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9495 s%@CATALOGS@%$CATALOGS%g
9496 s%@CATOBJEXT@%$CATOBJEXT%g
9497 s%@DATADIRNAME@%$DATADIRNAME%g
9498 s%@GMOFILES@%$GMOFILES%g
9499 s%@INSTOBJEXT@%$INSTOBJEXT%g
9500 s%@INTLDEPS@%$INTLDEPS%g
9501 s%@INTLLIBS@%$INTLLIBS%g
9502 s%@INTLOBJS@%$INTLOBJS%g
9503 s%@POFILES@%$POFILES%g
9504 s%@POSUB@%$POSUB%g
9505 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9506 s%@GT_NO@%$GT_NO%g
9507 s%@GT_YES@%$GT_YES%g
9508 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9509 s%@l@%$l%g
9510 s%@gthread_flags@%$gthread_flags%g
9511 s%@GGC@%$GGC%g
9512 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9513 s%@build_canonical@%$build_canonical%g
9514 s%@host_canonical@%$host_canonical%g
9515 s%@target_subdir@%$target_subdir%g
9516 s%@inhibit_libc@%$inhibit_libc%g
9517 s%@gcc_tooldir@%$gcc_tooldir%g
9518 s%@dollar@%$dollar%g
9519 s%@objdir@%$objdir%g
9520 s%@subdirs@%$subdirs%g
9521 s%@all_boot_languages@%$all_boot_languages%g
9522 s%@all_compilers@%$all_compilers%g
9523 s%@all_diff_excludes@%$all_diff_excludes%g
9524 s%@all_headers@%$all_headers%g
9525 s%@all_lang_makefiles@%$all_lang_makefiles%g
9526 s%@all_languages@%$all_languages%g
9527 s%@all_lib2funcs@%$all_lib2funcs%g
9528 s%@all_stagestuff@%$all_stagestuff%g
9529 s%@build_exeext@%$build_exeext%g
9530 s%@build_install_headers_dir@%$build_install_headers_dir%g
9531 s%@build_xm_file_list@%$build_xm_file_list%g
9532 s%@cc_set_by_configure@%$cc_set_by_configure%g
9533 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9534 s%@cpp_install_dir@%$cpp_install_dir%g
9535 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9536 s%@dep_tmake_file@%$dep_tmake_file%g
9537 s%@extra_c_flags@%$extra_c_flags%g
9538 s%@extra_c_objs@%$extra_c_objs%g
9539 s%@extra_cpp_objs@%$extra_cpp_objs%g
9540 s%@extra_cxx_objs@%$extra_cxx_objs%g
9541 s%@extra_headers_list@%$extra_headers_list%g
9542 s%@extra_objs@%$extra_objs%g
9543 s%@extra_parts@%$extra_parts%g
9544 s%@extra_passes@%$extra_passes%g
9545 s%@extra_programs@%$extra_programs%g
9546 s%@float_h_file@%$float_h_file%g
9547 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9548 s%@gcc_version@%$gcc_version%g
9549 s%@gcc_version_trigger@%$gcc_version_trigger%g
9550 s%@host_exeext@%$host_exeext%g
9551 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9552 s%@host_xm_file_list@%$host_xm_file_list%g
9553 s%@install@%$install%g
9554 s%@lang_options_files@%$lang_options_files%g
9555 s%@lang_specs_files@%$lang_specs_files%g
9556 s%@lang_tree_files@%$lang_tree_files%g
9557 s%@local_prefix@%$local_prefix%g
9558 s%@maybe_use_collect2@%$maybe_use_collect2%g
9559 s%@md_file@%$md_file%g
9560 s%@objc_boehm_gc@%$objc_boehm_gc%g
9561 s%@out_file@%$out_file%g
9562 s%@out_object_file@%$out_object_file%g
9563 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9564 s%@symbolic_link@%$symbolic_link%g
9565 s%@thread_file@%$thread_file%g
9566 s%@tm_file_list@%$tm_file_list%g
9567 s%@will_use_collect2@%$will_use_collect2%g
9568 /@target_overrides@/r $target_overrides
9569 s%@target_overrides@%%g
9570 /@host_overrides@/r $host_overrides
9571 s%@host_overrides@%%g
9572 s%@cross_defines@%$cross_defines%g
9573 /@cross_overrides@/r $cross_overrides
9574 s%@cross_overrides@%%g
9575 /@build_overrides@/r $build_overrides
9576 s%@build_overrides@%%g
9577 /@language_fragments@/r $language_fragments
9578 s%@language_fragments@%%g
9579 /@language_hooks@/r $language_hooks
9580 s%@language_hooks@%%g
9581
9582 CEOF
9583 EOF
9584
9585 cat >> $CONFIG_STATUS <<\EOF
9586
9587 # Split the substitutions into bite-sized pieces for seds with
9588 # small command number limits, like on Digital OSF/1 and HP-UX.
9589 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9590 ac_file=1 # Number of current file.
9591 ac_beg=1 # First line for current file.
9592 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9593 ac_more_lines=:
9594 ac_sed_cmds=""
9595 while $ac_more_lines; do
9596   if test $ac_beg -gt 1; then
9597     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9598   else
9599     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9600   fi
9601   if test ! -s conftest.s$ac_file; then
9602     ac_more_lines=false
9603     rm -f conftest.s$ac_file
9604   else
9605     if test -z "$ac_sed_cmds"; then
9606       ac_sed_cmds="sed -f conftest.s$ac_file"
9607     else
9608       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9609     fi
9610     ac_file=`expr $ac_file + 1`
9611     ac_beg=$ac_end
9612     ac_end=`expr $ac_end + $ac_max_sed_cmds`
9613   fi
9614 done
9615 if test -z "$ac_sed_cmds"; then
9616   ac_sed_cmds=cat
9617 fi
9618 EOF
9619
9620 cat >> $CONFIG_STATUS <<EOF
9621
9622 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9623 EOF
9624 cat >> $CONFIG_STATUS <<\EOF
9625 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9626   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9627   case "$ac_file" in
9628   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9629        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9630   *) ac_file_in="${ac_file}.in" ;;
9631   esac
9632
9633   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9634
9635   # Remove last slash and all that follows it.  Not all systems have dirname.
9636   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9637   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9638     # The file is in a subdirectory.
9639     test ! -d "$ac_dir" && mkdir "$ac_dir"
9640     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9641     # A "../" for each directory in $ac_dir_suffix.
9642     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9643   else
9644     ac_dir_suffix= ac_dots=
9645   fi
9646
9647   case "$ac_given_srcdir" in
9648   .)  srcdir=.
9649       if test -z "$ac_dots"; then top_srcdir=.
9650       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9651   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9652   *) # Relative path.
9653     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9654     top_srcdir="$ac_dots$ac_given_srcdir" ;;
9655   esac
9656
9657
9658   echo creating "$ac_file"
9659   rm -f "$ac_file"
9660   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9661   case "$ac_file" in
9662   *Makefile*) ac_comsub="1i\\
9663 # $configure_input" ;;
9664   *) ac_comsub= ;;
9665   esac
9666
9667   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9668   sed -e "$ac_comsub
9669 s%@configure_input@%$configure_input%g
9670 s%@srcdir@%$srcdir%g
9671 s%@top_srcdir@%$top_srcdir%g
9672 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9673 fi; done
9674 rm -f conftest.s*
9675
9676 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9677 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9678 #
9679 # ac_d sets the value in "#define NAME VALUE" lines.
9680 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9681 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
9682 ac_dC='\3'
9683 ac_dD='%g'
9684 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9685 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9686 ac_uB='\([      ]\)%\1#\2define\3'
9687 ac_uC=' '
9688 ac_uD='\4%g'
9689 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9690 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9691 ac_eB='$%\1#\2define\3'
9692 ac_eC=' '
9693 ac_eD='%g'
9694
9695 if test "${CONFIG_HEADERS+set}" != set; then
9696 EOF
9697 cat >> $CONFIG_STATUS <<EOF
9698   CONFIG_HEADERS="auto-host.h:config.in"
9699 EOF
9700 cat >> $CONFIG_STATUS <<\EOF
9701 fi
9702 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9703   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9704   case "$ac_file" in
9705   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9706        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9707   *) ac_file_in="${ac_file}.in" ;;
9708   esac
9709
9710   echo creating $ac_file
9711
9712   rm -f conftest.frag conftest.in conftest.out
9713   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9714   cat $ac_file_inputs > conftest.in
9715
9716 EOF
9717
9718 # Transform confdefs.h into a sed script conftest.vals that substitutes
9719 # the proper values into config.h.in to produce config.h.  And first:
9720 # Protect against being on the right side of a sed subst in config.status.
9721 # Protect against being in an unquoted here document in config.status.
9722 rm -f conftest.vals
9723 cat > conftest.hdr <<\EOF
9724 s/[\\&%]/\\&/g
9725 s%[\\$`]%\\&%g
9726 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9727 s%ac_d%ac_u%gp
9728 s%ac_u%ac_e%gp
9729 EOF
9730 sed -n -f conftest.hdr confdefs.h > conftest.vals
9731 rm -f conftest.hdr
9732
9733 # This sed command replaces #undef with comments.  This is necessary, for
9734 # example, in the case of _POSIX_SOURCE, which is predefined and required
9735 # on some systems where configure will not decide to define it.
9736 cat >> conftest.vals <<\EOF
9737 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9738 EOF
9739
9740 # Break up conftest.vals because some shells have a limit on
9741 # the size of here documents, and old seds have small limits too.
9742
9743 rm -f conftest.tail
9744 while :
9745 do
9746   ac_lines=`grep -c . conftest.vals`
9747   # grep -c gives empty output for an empty file on some AIX systems.
9748   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9749   # Write a limited-size here document to conftest.frag.
9750   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9751   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9752   echo 'CEOF
9753   sed -f conftest.frag conftest.in > conftest.out
9754   rm -f conftest.in
9755   mv conftest.out conftest.in
9756 ' >> $CONFIG_STATUS
9757   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9758   rm -f conftest.vals
9759   mv conftest.tail conftest.vals
9760 done
9761 rm -f conftest.vals
9762
9763 cat >> $CONFIG_STATUS <<\EOF
9764   rm -f conftest.frag conftest.h
9765   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
9766   cat conftest.in >> conftest.h
9767   rm -f conftest.in
9768   if cmp -s $ac_file conftest.h 2>/dev/null; then
9769     echo "$ac_file is unchanged"
9770     rm -f conftest.h
9771   else
9772     # Remove last slash and all that follows it.  Not all systems have dirname.
9773       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9774       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9775       # The file is in a subdirectory.
9776       test ! -d "$ac_dir" && mkdir "$ac_dir"
9777     fi
9778     rm -f $ac_file
9779     mv conftest.h $ac_file
9780   fi
9781 fi; done
9782
9783 EOF
9784
9785 cat >> $CONFIG_STATUS <<EOF
9786 ac_sources="$nls_cv_header_libgt"
9787 ac_dests="$nls_cv_header_intl"
9788 EOF
9789
9790 cat >> $CONFIG_STATUS <<\EOF
9791 srcdir=$ac_given_srcdir
9792 while test -n "$ac_sources"; do
9793   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9794   set $ac_sources; ac_source=$1; shift; ac_sources=$*
9795
9796   echo "linking $srcdir/$ac_source to $ac_dest"
9797
9798   if test ! -r $srcdir/$ac_source; then
9799     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9800   fi
9801   rm -f $ac_dest
9802
9803   # Make relative symlinks.
9804   # Remove last slash and all that follows it.  Not all systems have dirname.
9805   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9806   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9807     # The dest file is in a subdirectory.
9808     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9809     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9810     # A "../" for each directory in $ac_dest_dir_suffix.
9811     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9812   else
9813     ac_dest_dir_suffix= ac_dots=
9814   fi
9815
9816   case "$srcdir" in
9817   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9818   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9819   esac
9820
9821   # Make a symlink if possible; otherwise try a hard link.
9822   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9823     ln $srcdir/$ac_source $ac_dest; then :
9824   else
9825     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9826   fi
9827 done
9828 EOF
9829 cat >> $CONFIG_STATUS <<EOF
9830
9831
9832 host='${host}'
9833 build='${build}'
9834 target='${target}'
9835 target_alias='${target_alias}'
9836 srcdir='${srcdir}'
9837 subdirs='${subdirs}'
9838 oldstyle_subdirs='${oldstyle_subdirs}'
9839 symbolic_link='${symbolic_link}'
9840 program_transform_set='${program_transform_set}'
9841 program_transform_name='${program_transform_name}'
9842 dep_host_xmake_file='${dep_host_xmake_file}'
9843 host_xmake_file='${host_xmake_file}'
9844 dep_tmake_file='${dep_tmake_file}'
9845 tmake_file='${tmake_file}'
9846 thread_file='${thread_file}'
9847 gcc_version='${gcc_version}'
9848 gcc_version_trigger='${gcc_version_trigger}'
9849 local_prefix='${local_prefix}'
9850 build_install_headers_dir='${build_install_headers_dir}'
9851 build_exeext='${build_exeext}'
9852 host_exeext='${host_exeext}'
9853 out_file='${out_file}'
9854 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9855 SET_MAKE='${SET_MAKE}'
9856 target_list='${target_list}'
9857 target_overrides='${target_overrides}'
9858 host_overrides='${host_overrides}'
9859 cross_defines='${cross_defines}'
9860 cross_overrides='${cross_overrides}'
9861 build_overrides='${build_overrides}'
9862 cpp_install_dir='${cpp_install_dir}'
9863
9864 EOF
9865 cat >> $CONFIG_STATUS <<\EOF
9866 case "$CONFIG_FILES" in *po/Makefile.in*)
9867         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9868       esac
9869
9870 . $srcdir/configure.lang
9871 case x$CONFIG_HEADERS in
9872 xauto-host.h:config.in)
9873 echo > cstamp-h ;;
9874 esac
9875 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9876 # bootstrapping and the installation procedure can still use
9877 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
9878 # FLAGS_TO_PASS has been modified to solve the problem there.
9879 # This is virtually a duplicate of what happens in configure.lang; we do
9880 # an extra check to make sure this only happens if ln -s can be used.
9881 if test "$symbolic_link" = "ln -s"; then
9882  for d in .. ${subdirs} ; do
9883    if test $d != ..; then
9884         STARTDIR=`pwd`
9885         cd $d
9886         for t in stage1 stage2 stage3 stage4 include
9887         do
9888                 rm -f $t
9889                 $symbolic_link ../$t $t 2>/dev/null
9890         done
9891         cd $STARTDIR
9892    fi
9893  done
9894 else true ; fi
9895 # Avoid having to add intl to our include paths.
9896 if test -f intl/libintl.h; then
9897   echo creating libintl.h
9898   echo '#include "intl/libintl.h"' >libintl.h
9899 fi
9900
9901 exit 0
9902 EOF
9903 chmod +x $CONFIG_STATUS
9904 rm -fr confdefs* $ac_clean_files
9905 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9906