OSDN Git Service

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