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