OSDN Git Service

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