OSDN Git Service

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