OSDN Git Service

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