OSDN Git Service

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