OSDN Git Service

* config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="tree.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP GNATBIND ac_ct_GNATBIND strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility gthread_flags GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_extra_gcc_objs host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
312 ac_subst_files='language_hooks'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841   --target=TARGET   configure for building compilers for TARGET [HOST]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-generated-files-in-srcdir
853                           put copies of generated files in source dir
854                           intended for creating source tarballs for users
855                           without texinfo bison or flex.
856   --enable-werror         enable -Werror in bootstrap stage2 and later
857   --enable-checking=LIST
858                           enable expensive run-time checks.  With LIST,
859                           enable only specific categories of checks.
860                           Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
861                           default is misc,tree,gc,rtlflag
862   --enable-coverage=LEVEL
863                           enable compiler\'s code coverage collection.
864                           Use to measure compiler performance and locate
865                           unused parts of the compiler. With LEVEL, specify
866                           optimization. Values are opt, noopt,
867                           default is noopt
868   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
869   --enable-multilib       enable library support for multiple ABIs
870   --enable-__cxa_atexit   enable __cxa_atexit for C++
871   --enable-threads        enable thread usage for target GCC
872   --enable-threads=LIB    use LIB thread package for target GCC
873   --enable-objc-gc        enable the use of Boehm's garbage collector with
874                           the GNU Objective-C runtime
875   --disable-shared        don't provide a shared libgcc
876   --enable-intermodule    build the compiler in one step
877   --enable-initfini-array       use .init_array/.fini_array sections
878   --enable-sjlj-exceptions
879                           arrange to use setjmp/longjmp exception handling
880   --enable-libunwind-exceptions  force use libunwind for exceptions
881   --disable-win32-registry
882                           disable lookup of installation paths in the
883                           Registry on Windows hosts
884   --enable-win32-registry enable registry lookup (default)
885   --enable-win32-registry=KEY
886                           use KEY instead of GCC version as the last portion
887                           of the registry key
888   --enable-maintainer-mode
889                           enable make rules and dependencies not useful
890                           (and sometimes confusing) to the casual installer
891   --enable-version-specific-runtime-libs
892                           specify that runtime libraries should be
893                           installed in a compiler-specific directory
894
895 Optional Packages:
896   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
897   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
898   --with-local-prefix=DIR specifies directory to put local include
899   --with-gxx-include-dir=DIR
900                           specifies directory to put g++ header files
901   --with-cpp-install-dir=DIR
902                           install the user visible C preprocessor in DIR
903                           (relative to PREFIX) as well as PREFIX/bin
904   --with-gnu-ld           arrange to work with GNU ld.
905   --with-ld               arrange to use the specified ld (full pathname)
906   --with-gnu-as           arrange to work with GNU as
907   --with-as               arrange to use the specified as (full pathname)
908   --with-stabs            arrange to use stabs instead of host debug format
909   --with-dwarf2           force the default debug format to be DWARF 2
910   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
911   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
912   --with-gc={page,zone}   choose the garbage collection mechanism to use
913                           with the compiler
914   --with-system-zlib      use installed libz
915   --with-slibdir=DIR      shared libraries in DIR LIBDIR
916
917 Some influential environment variables:
918   CC          C compiler command
919   CFLAGS      C compiler flags
920   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
921               nonstandard directory <lib dir>
922   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
923               headers in a nonstandard directory <include dir>
924   CPP         C preprocessor
925
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
928
929 _ACEOF
930 fi
931
932 if test "$ac_init_help" = "recursive"; then
933   # If there are subdirs, report their specific --help.
934   ac_popdir=`pwd`
935   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936     test -d $ac_dir || continue
937     ac_builddir=.
938
939 if test "$ac_dir" != .; then
940   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941   # A "../" for each directory in $ac_dir_suffix.
942   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 else
944   ac_dir_suffix= ac_top_builddir=
945 fi
946
947 case $srcdir in
948   .)  # No --srcdir option.  We are building in place.
949     ac_srcdir=.
950     if test -z "$ac_top_builddir"; then
951        ac_top_srcdir=.
952     else
953        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954     fi ;;
955   [\\/]* | ?:[\\/]* )  # Absolute path.
956     ac_srcdir=$srcdir$ac_dir_suffix;
957     ac_top_srcdir=$srcdir ;;
958   *) # Relative path.
959     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960     ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 esac
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 # absolute.
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
996 _ACEOF
997   exit 0
998 fi
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1003
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57.  Invocation command line was
1006
1007   $ $0 $@
1008
1009 _ACEOF
1010 {
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1015
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1024
1025 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1026 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1029 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1030 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1031 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1032
1033 _ASUNAME
1034
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1037 do
1038   IFS=$as_save_IFS
1039   test -z "$as_dir" && as_dir=.
1040   echo "PATH: $as_dir"
1041 done
1042
1043 } >&5
1044
1045 cat >&5 <<_ACEOF
1046
1047
1048 ## ----------- ##
1049 ## Core tests. ##
1050 ## ----------- ##
1051
1052 _ACEOF
1053
1054
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1066 do
1067   for ac_arg
1068   do
1069     case $ac_arg in
1070     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072     | -silent | --silent | --silen | --sile | --sil)
1073       continue ;;
1074     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076     esac
1077     case $ac_pass in
1078     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079     2)
1080       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081       if test $ac_must_keep_next = true; then
1082         ac_must_keep_next=false # Got value, back to normal.
1083       else
1084         case $ac_arg in
1085           *=* | --config-cache | -C | -disable-* | --disable-* \
1086           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088           | -with-* | --with-* | -without-* | --without-* | --x)
1089             case "$ac_configure_args0 " in
1090               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091             esac
1092             ;;
1093           -* ) ac_must_keep_next=true ;;
1094         esac
1095       fi
1096       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097       # Get rid of the leading space.
1098       ac_sep=" "
1099       ;;
1100     esac
1101   done
1102 done
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log.  We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112   # Save into config.log some information that might help in debugging.
1113   {
1114     echo
1115
1116     cat <<\_ASBOX
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1120 _ASBOX
1121     echo
1122     # The following way of writing the cache mishandles newlines in values,
1123 {
1124   (set) 2>&1 |
1125     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126     *ac_space=\ *)
1127       sed -n \
1128         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130       ;;
1131     *)
1132       sed -n \
1133         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134       ;;
1135     esac;
1136 }
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1143 _ASBOX
1144     echo
1145     for ac_var in $ac_subst_vars
1146     do
1147       eval ac_val=$`echo $ac_var`
1148       echo "$ac_var='"'"'$ac_val'"'"'"
1149     done | sort
1150     echo
1151
1152     if test -n "$ac_subst_files"; then
1153       cat <<\_ASBOX
1154 ## ------------- ##
1155 ## Output files. ##
1156 ## ------------- ##
1157 _ASBOX
1158       echo
1159       for ac_var in $ac_subst_files
1160       do
1161         eval ac_val=$`echo $ac_var`
1162         echo "$ac_var='"'"'$ac_val'"'"'"
1163       done | sort
1164       echo
1165     fi
1166
1167     if test -s confdefs.h; then
1168       cat <<\_ASBOX
1169 ## ----------- ##
1170 ## confdefs.h. ##
1171 ## ----------- ##
1172 _ASBOX
1173       echo
1174       sed "/^$/d" confdefs.h | sort
1175       echo
1176     fi
1177     test "$ac_signal" != 0 &&
1178       echo "$as_me: caught signal $ac_signal"
1179     echo "$as_me: exit $exit_status"
1180   } >&5
1181   rm -f core core.* *.core &&
1182   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183     exit $exit_status
1184      ' 0
1185 for ac_signal in 1 2 13 15; do
1186   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1189
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1194
1195 # Predefined preprocessor variables.
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 _ACEOF
1220
1221
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225   if test "x$prefix" != xNONE; then
1226     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227   else
1228     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229   fi
1230 fi
1231 for ac_site_file in $CONFIG_SITE; do
1232   if test -r "$ac_site_file"; then
1233     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235     sed 's/^/| /' "$ac_site_file" >&5
1236     . "$ac_site_file"
1237   fi
1238 done
1239
1240 if test -r "$cache_file"; then
1241   # Some versions of bash will fail to source /dev/null (special
1242   # files actually), so we avoid doing that.
1243   if test -f "$cache_file"; then
1244     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246     case $cache_file in
1247       [\\/]* | ?:[\\/]* ) . $cache_file;;
1248       *)                      . ./$cache_file;;
1249     esac
1250   fi
1251 else
1252   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254   >$cache_file
1255 fi
1256
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263   eval ac_new_set=\$ac_env_${ac_var}_set
1264   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265   eval ac_new_val="\$ac_env_${ac_var}_value"
1266   case $ac_old_set,$ac_new_set in
1267     set,)
1268       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270       ac_cache_corrupted=: ;;
1271     ,set)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,);;
1276     *)
1277       if test "x$ac_old_val" != "x$ac_new_val"; then
1278         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1281 echo "$as_me:   former value:  $ac_old_val" >&2;}
1282         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1283 echo "$as_me:   current value: $ac_new_val" >&2;}
1284         ac_cache_corrupted=:
1285       fi;;
1286   esac
1287   # Pass precious variables to config.status.
1288   if test "$ac_new_set" = set; then
1289     case $ac_new_val in
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     *) ac_arg=$ac_var=$ac_new_val ;;
1293     esac
1294     case " $ac_configure_args " in
1295       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1296       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297     esac
1298   fi
1299 done
1300 if $ac_cache_corrupted; then
1301   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305    { (exit 1); exit 1; }; }
1306 fi
1307
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1334
1335
1336 # Determine the host, build, and target systems
1337 ac_aux_dir=
1338 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1339   if test -f $ac_dir/install-sh; then
1340     ac_aux_dir=$ac_dir
1341     ac_install_sh="$ac_aux_dir/install-sh -c"
1342     break
1343   elif test -f $ac_dir/install.sh; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/install.sh -c"
1346     break
1347   elif test -f $ac_dir/shtool; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/shtool install -c"
1350     break
1351   fi
1352 done
1353 if test -z "$ac_aux_dir"; then
1354   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1356    { (exit 1); exit 1; }; }
1357 fi
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
1362 # Make sure we can run config.sub.
1363 $ac_config_sub sun4 >/dev/null 2>&1 ||
1364   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1365 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1366    { (exit 1); exit 1; }; }
1367
1368 echo "$as_me:$LINENO: checking build system type" >&5
1369 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1370 if test "${ac_cv_build+set}" = set; then
1371   echo $ECHO_N "(cached) $ECHO_C" >&6
1372 else
1373   ac_cv_build_alias=$build_alias
1374 test -z "$ac_cv_build_alias" &&
1375   ac_cv_build_alias=`$ac_config_guess`
1376 test -z "$ac_cv_build_alias" &&
1377   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1378 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1379    { (exit 1); exit 1; }; }
1380 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1381   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1382 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1383    { (exit 1); exit 1; }; }
1384
1385 fi
1386 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1387 echo "${ECHO_T}$ac_cv_build" >&6
1388 build=$ac_cv_build
1389 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1390 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1391 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1392
1393
1394 echo "$as_me:$LINENO: checking host system type" >&5
1395 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1396 if test "${ac_cv_host+set}" = set; then
1397   echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399   ac_cv_host_alias=$host_alias
1400 test -z "$ac_cv_host_alias" &&
1401   ac_cv_host_alias=$ac_cv_build_alias
1402 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1403   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1404 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1405    { (exit 1); exit 1; }; }
1406
1407 fi
1408 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1409 echo "${ECHO_T}$ac_cv_host" >&6
1410 host=$ac_cv_host
1411 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1412 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1413 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1414
1415
1416 echo "$as_me:$LINENO: checking target system type" >&5
1417 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1418 if test "${ac_cv_target+set}" = set; then
1419   echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421   ac_cv_target_alias=$target_alias
1422 test "x$ac_cv_target_alias" = "x" &&
1423   ac_cv_target_alias=$ac_cv_host_alias
1424 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1425   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1426 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1427    { (exit 1); exit 1; }; }
1428
1429 fi
1430 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1431 echo "${ECHO_T}$ac_cv_target" >&6
1432 target=$ac_cv_target
1433 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1434 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1435 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1436
1437
1438 # The aliases save the names the user supplied, while $host etc.
1439 # will get canonicalized.
1440 test -n "$target_alias" &&
1441   test "$program_prefix$program_suffix$program_transform_name" = \
1442     NONENONEs,x,x, &&
1443   program_prefix=${target_alias}-
1444
1445 # Determine the noncanonical target name, for directory use.
1446  case ${build_alias} in
1447   "") build_noncanonical=${build} ;;
1448   *) build_noncanonical=${build_alias} ;;
1449 esac
1450
1451  case ${host_alias} in
1452   "") host_noncanonical=${build_noncanonical} ;;
1453   *) host_noncanonical=${host_alias} ;;
1454 esac
1455
1456  case ${target_alias} in
1457   "") target_noncanonical=${host_noncanonical} ;;
1458   *) target_noncanonical=${target_alias} ;;
1459 esac
1460
1461
1462 # Determine the target- and build-specific subdirectories
1463   # Prefix 'build-' so this never conflicts with target_subdir.
1464 build_subdir="build-${build_noncanonical}"
1465 # Not really a subdirectory, but here for completeness.
1466 host_subdir=.
1467 # No prefix.
1468 target_subdir=${target_noncanonical}
1469
1470
1471 # Set program_transform_name
1472 test "$program_prefix" != NONE &&
1473   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1474 # Use a double $ so make ignores it.
1475 test "$program_suffix" != NONE &&
1476   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1477 # Double any \ or $.  echo might interpret backslashes.
1478 # By default was `s,x,x', remove it if useless.
1479 cat <<\_ACEOF >conftest.sed
1480 s/[\\$]/&&/g;s/;s,x,x,$//
1481 _ACEOF
1482 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1483 rm conftest.sed
1484
1485
1486 # Check for bogus environment variables.
1487 # Test if LIBRARY_PATH contains the notation for the current directory
1488 # since this would lead to problems installing/building glibc.
1489 # LIBRARY_PATH contains the current directory if one of the following
1490 # is true:
1491 # - one of the terminals (":" and ";") is the first or last sign
1492 # - two terminals occur directly after each other
1493 # - the path contains an element with a dot in it
1494 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1495 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1496 case ${LIBRARY_PATH} in
1497   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1498     library_path_setting="contains current directory"
1499     ;;
1500   *)
1501     library_path_setting="ok"
1502     ;;
1503 esac
1504 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1505 echo "${ECHO_T}$library_path_setting" >&6
1506 if test "$library_path_setting" != "ok"; then
1507 { { echo "$as_me:$LINENO: error:
1508 *** LIBRARY_PATH shouldn't contain the current directory when
1509 *** building gcc. Please change the environment variable
1510 *** and run configure again." >&5
1511 echo "$as_me: error:
1512 *** LIBRARY_PATH shouldn't contain the current directory when
1513 *** building gcc. Please change the environment variable
1514 *** and run configure again." >&2;}
1515    { (exit 1); exit 1; }; }
1516 fi
1517
1518 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1519 # since this would lead to problems installing/building glibc.
1520 # GCC_EXEC_PREFIX contains the current directory if one of the following
1521 # is true:
1522 # - one of the terminals (":" and ";") is the first or last sign
1523 # - two terminals occur directly after each other
1524 # - the path contains an element with a dot in it
1525 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1526 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1527 case ${GCC_EXEC_PREFIX} in
1528   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1529     gcc_exec_prefix_setting="contains current directory"
1530     ;;
1531   *)
1532     gcc_exec_prefix_setting="ok"
1533     ;;
1534 esac
1535 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1536 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1537 if test "$gcc_exec_prefix_setting" != "ok"; then
1538 { { echo "$as_me:$LINENO: error:
1539 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1540 *** building gcc. Please change the environment variable
1541 *** and run configure again." >&5
1542 echo "$as_me: error:
1543 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1544 *** building gcc. Please change the environment variable
1545 *** and run configure again." >&2;}
1546    { (exit 1); exit 1; }; }
1547 fi
1548
1549 # -----------
1550 # Directories
1551 # -----------
1552
1553 # Specify the local prefix
1554 local_prefix=
1555
1556 # Check whether --with-local-prefix or --without-local-prefix was given.
1557 if test "${with_local_prefix+set}" = set; then
1558   withval="$with_local_prefix"
1559   case "${withval}" in
1560 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1561 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1562    { (exit 1); exit 1; }; } ;;
1563 no)     ;;
1564 *)      local_prefix=$with_local_prefix ;;
1565 esac
1566 fi;
1567
1568 # Default local prefix if it is empty
1569 if test x$local_prefix = x; then
1570         local_prefix=/usr/local
1571 fi
1572
1573 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1574 # passed in by the toplevel make and thus we'd get different behavior
1575 # depending on where we built the sources.
1576 gcc_gxx_include_dir=
1577 # Specify the g++ header file directory
1578
1579 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1580 if test "${with_gxx_include_dir+set}" = set; then
1581   withval="$with_gxx_include_dir"
1582   case "${withval}" in
1583 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1584 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1585    { (exit 1); exit 1; }; } ;;
1586 no)     ;;
1587 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1588 esac
1589 fi;
1590
1591 if test x${gcc_gxx_include_dir} = x; then
1592   if test x${enable_version_specific_runtime_libs} = xyes; then
1593     gcc_gxx_include_dir='${libsubdir}/include/c++'
1594   else
1595     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1596     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1597   fi
1598 fi
1599
1600
1601 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1602 if test "${with_cpp_install_dir+set}" = set; then
1603   withval="$with_cpp_install_dir"
1604   if test x$withval = xyes; then
1605   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1606 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1607    { (exit 1); exit 1; }; }
1608 elif test x$withval != xno; then
1609   cpp_install_dir=$withval
1610 fi
1611 fi;
1612
1613 # We would like to our source tree to be readonly.  However when releases or
1614 # pre-releases are generated, the flex/bison generated files as well as the
1615 # various formats of manuals need to be included along with the rest of the
1616 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1617 # just that.
1618
1619 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1620 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1621     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1622 if test "${enable_generated_files_in_srcdir+set}" = set; then
1623   enableval="$enable_generated_files_in_srcdir"
1624   generated_files_in_srcdir=$enableval
1625 else
1626   generated_files_in_srcdir=no
1627 fi;
1628
1629 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1630 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1631
1632 if test "$generated_files_in_srcdir" = "yes"; then
1633   GENINSRC=''
1634 else
1635   GENINSRC='#'
1636 fi
1637
1638
1639 # -------------------
1640 # Find default linker
1641 # -------------------
1642
1643 # With GNU ld
1644
1645 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1646 if test "${with_gnu_ld+set}" = set; then
1647   withval="$with_gnu_ld"
1648   gnu_ld_flag="$with_gnu_ld"
1649 else
1650   gnu_ld_flag=no
1651 fi;
1652
1653 # With pre-defined ld
1654
1655 # Check whether --with-ld or --without-ld was given.
1656 if test "${with_ld+set}" = set; then
1657   withval="$with_ld"
1658   DEFAULT_LINKER="$with_ld"
1659 fi;
1660 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1661   if test ! -x "$DEFAULT_LINKER"; then
1662     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1663 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1664   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1665     gnu_ld_flag=yes
1666   fi
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1670 _ACEOF
1671
1672 fi
1673
1674 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1675 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1676 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1677   if test x"$gnu_ld_flag" = x"no"; then
1678     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1679 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1680   else
1681     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1682 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1683   fi
1684 else
1685   echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1687 fi
1688
1689 # ----------------------
1690 # Find default assembler
1691 # ----------------------
1692
1693 # With GNU as
1694
1695 # Check whether --with-gnu-as or --without-gnu-as was given.
1696 if test "${with_gnu_as+set}" = set; then
1697   withval="$with_gnu_as"
1698   gas_flag="$with_gnu_as"
1699 else
1700   gas_flag=no
1701 fi;
1702
1703
1704 # Check whether --with-as or --without-as was given.
1705 if test "${with_as+set}" = set; then
1706   withval="$with_as"
1707   DEFAULT_ASSEMBLER="$with_as"
1708 fi;
1709 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1710   if test ! -x "$DEFAULT_ASSEMBLER"; then
1711     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1712 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1713   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1714     gas_flag=yes
1715   fi
1716
1717 cat >>confdefs.h <<_ACEOF
1718 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1719 _ACEOF
1720
1721 fi
1722
1723 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1724 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1725 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1726   if test x"$gas_flag" = x"no"; then
1727     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1728 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1729   else
1730     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1731 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1732   fi
1733 else
1734   echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 fi
1737
1738 # ---------------
1739 # Find C compiler
1740 # ---------------
1741
1742 # If a non-executable a.out is present (e.g. created by GNU as above even if
1743 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1744 # file, even when creating an executable, so an execution test fails.
1745 # Remove possible default executable files to avoid this.
1746 #
1747 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1748 # Autoconf includes it.
1749 rm -f a.out a.exe b.out
1750
1751 # Find the native compiler
1752 ac_ext=c
1753 ac_cpp='$CPP $CPPFLAGS'
1754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1757 if test -n "$ac_tool_prefix"; then
1758   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1759 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_CC+set}" = set; then
1763   echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765   if test -n "$CC"; then
1766   ac_cv_prog_CC="$CC" # Let the user override the test.
1767 else
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1770 do
1771   IFS=$as_save_IFS
1772   test -z "$as_dir" && as_dir=.
1773   for ac_exec_ext in '' $ac_executable_extensions; do
1774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777     break 2
1778   fi
1779 done
1780 done
1781
1782 fi
1783 fi
1784 CC=$ac_cv_prog_CC
1785 if test -n "$CC"; then
1786   echo "$as_me:$LINENO: result: $CC" >&5
1787 echo "${ECHO_T}$CC" >&6
1788 else
1789   echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1791 fi
1792
1793 fi
1794 if test -z "$ac_cv_prog_CC"; then
1795   ac_ct_CC=$CC
1796   # Extract the first word of "gcc", so it can be a program name with args.
1797 set dummy gcc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1801   echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803   if test -n "$ac_ct_CC"; then
1804   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1805 else
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1808 do
1809   IFS=$as_save_IFS
1810   test -z "$as_dir" && as_dir=.
1811   for ac_exec_ext in '' $ac_executable_extensions; do
1812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813     ac_cv_prog_ac_ct_CC="gcc"
1814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815     break 2
1816   fi
1817 done
1818 done
1819
1820 fi
1821 fi
1822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1823 if test -n "$ac_ct_CC"; then
1824   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1825 echo "${ECHO_T}$ac_ct_CC" >&6
1826 else
1827   echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1829 fi
1830
1831   CC=$ac_ct_CC
1832 else
1833   CC="$ac_cv_prog_CC"
1834 fi
1835
1836 if test -z "$CC"; then
1837   if test -n "$ac_tool_prefix"; then
1838   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1839 set dummy ${ac_tool_prefix}cc; ac_word=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_CC+set}" = set; then
1843   echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845   if test -n "$CC"; then
1846   ac_cv_prog_CC="$CC" # Let the user override the test.
1847 else
1848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 for as_dir in $PATH
1850 do
1851   IFS=$as_save_IFS
1852   test -z "$as_dir" && as_dir=.
1853   for ac_exec_ext in '' $ac_executable_extensions; do
1854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855     ac_cv_prog_CC="${ac_tool_prefix}cc"
1856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857     break 2
1858   fi
1859 done
1860 done
1861
1862 fi
1863 fi
1864 CC=$ac_cv_prog_CC
1865 if test -n "$CC"; then
1866   echo "$as_me:$LINENO: result: $CC" >&5
1867 echo "${ECHO_T}$CC" >&6
1868 else
1869   echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1871 fi
1872
1873 fi
1874 if test -z "$ac_cv_prog_CC"; then
1875   ac_ct_CC=$CC
1876   # Extract the first word of "cc", so it can be a program name with args.
1877 set dummy cc; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1881   echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883   if test -n "$ac_ct_CC"; then
1884   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889   IFS=$as_save_IFS
1890   test -z "$as_dir" && as_dir=.
1891   for ac_exec_ext in '' $ac_executable_extensions; do
1892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893     ac_cv_prog_ac_ct_CC="cc"
1894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895     break 2
1896   fi
1897 done
1898 done
1899
1900 fi
1901 fi
1902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1903 if test -n "$ac_ct_CC"; then
1904   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1905 echo "${ECHO_T}$ac_ct_CC" >&6
1906 else
1907   echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1909 fi
1910
1911   CC=$ac_ct_CC
1912 else
1913   CC="$ac_cv_prog_CC"
1914 fi
1915
1916 fi
1917 if test -z "$CC"; then
1918   # Extract the first word of "cc", so it can be a program name with args.
1919 set dummy cc; ac_word=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_CC+set}" = set; then
1923   echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925   if test -n "$CC"; then
1926   ac_cv_prog_CC="$CC" # Let the user override the test.
1927 else
1928   ac_prog_rejected=no
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932   IFS=$as_save_IFS
1933   test -z "$as_dir" && as_dir=.
1934   for ac_exec_ext in '' $ac_executable_extensions; do
1935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1937        ac_prog_rejected=yes
1938        continue
1939      fi
1940     ac_cv_prog_CC="cc"
1941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942     break 2
1943   fi
1944 done
1945 done
1946
1947 if test $ac_prog_rejected = yes; then
1948   # We found a bogon in the path, so make sure we never use it.
1949   set dummy $ac_cv_prog_CC
1950   shift
1951   if test $# != 0; then
1952     # We chose a different compiler from the bogus one.
1953     # However, it has the same basename, so the bogon will be chosen
1954     # first if we set CC to just the basename; use the full file name.
1955     shift
1956     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1957   fi
1958 fi
1959 fi
1960 fi
1961 CC=$ac_cv_prog_CC
1962 if test -n "$CC"; then
1963   echo "$as_me:$LINENO: result: $CC" >&5
1964 echo "${ECHO_T}$CC" >&6
1965 else
1966   echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1968 fi
1969
1970 fi
1971 if test -z "$CC"; then
1972   if test -n "$ac_tool_prefix"; then
1973   for ac_prog in cl
1974   do
1975     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   if test -n "$CC"; then
1983   ac_cv_prog_CC="$CC" # Let the user override the test.
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988   IFS=$as_save_IFS
1989   test -z "$as_dir" && as_dir=.
1990   for ac_exec_ext in '' $ac_executable_extensions; do
1991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994     break 2
1995   fi
1996 done
1997 done
1998
1999 fi
2000 fi
2001 CC=$ac_cv_prog_CC
2002 if test -n "$CC"; then
2003   echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6
2005 else
2006   echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2008 fi
2009
2010     test -n "$CC" && break
2011   done
2012 fi
2013 if test -z "$CC"; then
2014   ac_ct_CC=$CC
2015   for ac_prog in cl
2016 do
2017   # Extract the first word of "$ac_prog", so it can be a program name with args.
2018 set dummy $ac_prog; ac_word=$2
2019 echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024   if test -n "$ac_ct_CC"; then
2025   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026 else
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2029 do
2030   IFS=$as_save_IFS
2031   test -z "$as_dir" && as_dir=.
2032   for ac_exec_ext in '' $ac_executable_extensions; do
2033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034     ac_cv_prog_ac_ct_CC="$ac_prog"
2035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036     break 2
2037   fi
2038 done
2039 done
2040
2041 fi
2042 fi
2043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044 if test -n "$ac_ct_CC"; then
2045   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046 echo "${ECHO_T}$ac_ct_CC" >&6
2047 else
2048   echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2050 fi
2051
2052   test -n "$ac_ct_CC" && break
2053 done
2054
2055   CC=$ac_ct_CC
2056 fi
2057
2058 fi
2059
2060
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&2;}
2065    { (exit 1); exit 1; }; }
2066
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO:" \
2069      "checking for C compiler version" >&5
2070 ac_compiler=`set X $ac_compile; echo $2`
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2072   (eval $ac_compiler --version </dev/null >&5) 2>&5
2073   ac_status=$?
2074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075   (exit $ac_status); }
2076 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2077   (eval $ac_compiler -v </dev/null >&5) 2>&5
2078   ac_status=$?
2079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080   (exit $ac_status); }
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2082   (eval $ac_compiler -V </dev/null >&5) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }
2086
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2089 /* confdefs.h.  */
2090 _ACEOF
2091 cat confdefs.h >>conftest.$ac_ext
2092 cat >>conftest.$ac_ext <<_ACEOF
2093 /* end confdefs.h.  */
2094
2095 int
2096 main ()
2097 {
2098
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 ac_clean_files_save=$ac_clean_files
2104 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2105 # Try to create an executable without -o first, disregard a.out.
2106 # It will help us diagnose broken compilers, and finding out an intuition
2107 # of exeext.
2108 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2109 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2110 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2111 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2112   (eval $ac_link_default) 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }; then
2116   # Find the output, starting from the most likely.  This scheme is
2117 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2118 # resort.
2119
2120 # Be careful to initialize this variable, since it used to be cached.
2121 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2122 ac_cv_exeext=
2123 # b.out is created by i960 compilers.
2124 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2125 do
2126   test -f "$ac_file" || continue
2127   case $ac_file in
2128     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2129         ;;
2130     conftest.$ac_ext )
2131         # This is the source file.
2132         ;;
2133     [ab].out )
2134         # We found the default executable, but exeext='' is most
2135         # certainly right.
2136         break;;
2137     *.* )
2138         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139         # FIXME: I believe we export ac_cv_exeext for Libtool,
2140         # but it would be cool to find out if it's true.  Does anybody
2141         # maintain Libtool? --akim.
2142         export ac_cv_exeext
2143         break;;
2144     * )
2145         break;;
2146   esac
2147 done
2148 else
2149   echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: C compiler cannot create executables
2155 See \`config.log' for more details." >&2;}
2156    { (exit 77); exit 77; }; }
2157 fi
2158
2159 ac_exeext=$ac_cv_exeext
2160 echo "$as_me:$LINENO: result: $ac_file" >&5
2161 echo "${ECHO_T}$ac_file" >&6
2162
2163 # Check the compiler produces executables we can run.  If not, either
2164 # the compiler is broken, or we cross compile.
2165 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2166 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2167 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2168 # If not cross compiling, check that we can run a simple program.
2169 if test "$cross_compiling" != yes; then
2170   if { ac_try='./$ac_file'
2171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172   (eval $ac_try) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; }; then
2176     cross_compiling=no
2177   else
2178     if test "$cross_compiling" = maybe; then
2179         cross_compiling=yes
2180     else
2181         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2182 If you meant to cross compile, use \`--host'.
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot run C compiled programs.
2185 If you meant to cross compile, use \`--host'.
2186 See \`config.log' for more details." >&2;}
2187    { (exit 1); exit 1; }; }
2188     fi
2189   fi
2190 fi
2191 echo "$as_me:$LINENO: result: yes" >&5
2192 echo "${ECHO_T}yes" >&6
2193
2194 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2195 ac_clean_files=$ac_clean_files_save
2196 # Check the compiler produces executables we can run.  If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2199 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2200 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2201 echo "${ECHO_T}$cross_compiling" >&6
2202
2203 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2204 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2206   (eval $ac_link) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; then
2210   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2211 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2212 # work properly (i.e., refer to `conftest.exe'), while it won't with
2213 # `rm'.
2214 for ac_file in conftest.exe conftest conftest.*; do
2215   test -f "$ac_file" || continue
2216   case $ac_file in
2217     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2218     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2219           export ac_cv_exeext
2220           break;;
2221     * ) break;;
2222   esac
2223 done
2224 else
2225   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2228 See \`config.log' for more details." >&2;}
2229    { (exit 1); exit 1; }; }
2230 fi
2231
2232 rm -f conftest$ac_cv_exeext
2233 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2234 echo "${ECHO_T}$ac_cv_exeext" >&6
2235
2236 rm -f conftest.$ac_ext
2237 EXEEXT=$ac_cv_exeext
2238 ac_exeext=$EXEEXT
2239 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2240 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2241 if test "${ac_cv_objext+set}" = set; then
2242   echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244   cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251
2252 int
2253 main ()
2254 {
2255
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 rm -f conftest.o conftest.obj
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262   (eval $ac_compile) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; then
2266   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2267   case $ac_file in
2268     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2269     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2270        break;;
2271   esac
2272 done
2273 else
2274   echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2280 See \`config.log' for more details." >&2;}
2281    { (exit 1); exit 1; }; }
2282 fi
2283
2284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2285 fi
2286 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2287 echo "${ECHO_T}$ac_cv_objext" >&6
2288 OBJEXT=$ac_cv_objext
2289 ac_objext=$OBJEXT
2290 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2291 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2292 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2297 /* confdefs.h.  */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h.  */
2302
2303 int
2304 main ()
2305 {
2306 #ifndef __GNUC__
2307        choke me
2308 #endif
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 rm -f conftest.$ac_objext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316   (eval $ac_compile) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); } &&
2320          { ac_try='test -s conftest.$ac_objext'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; }; then
2326   ac_compiler_gnu=yes
2327 else
2328   echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 ac_compiler_gnu=no
2332 fi
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2335
2336 fi
2337 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2339 GCC=`test $ac_compiler_gnu = yes && echo yes`
2340 ac_test_CFLAGS=${CFLAGS+set}
2341 ac_save_CFLAGS=$CFLAGS
2342 CFLAGS="-g"
2343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2345 if test "${ac_cv_prog_cc_g+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   cat >conftest.$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2350 /* confdefs.h.  */
2351 _ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h.  */
2355
2356 int
2357 main ()
2358 {
2359
2360   ;
2361   return 0;
2362 }
2363 _ACEOF
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366   (eval $ac_compile) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); } &&
2370          { ac_try='test -s conftest.$ac_objext'
2371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372   (eval $ac_try) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; }; then
2376   ac_cv_prog_cc_g=yes
2377 else
2378   echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2380
2381 ac_cv_prog_cc_g=no
2382 fi
2383 rm -f conftest.$ac_objext conftest.$ac_ext
2384 fi
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2387 if test "$ac_test_CFLAGS" = set; then
2388   CFLAGS=$ac_save_CFLAGS
2389 elif test $ac_cv_prog_cc_g = yes; then
2390   if test "$GCC" = yes; then
2391     CFLAGS="-g -O2"
2392   else
2393     CFLAGS="-g"
2394   fi
2395 else
2396   if test "$GCC" = yes; then
2397     CFLAGS="-O2"
2398   else
2399     CFLAGS=
2400   fi
2401 fi
2402 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2403 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   ac_cv_prog_cc_stdc=no
2408 ac_save_CC=$CC
2409 cat >conftest.$ac_ext <<_ACEOF
2410 #line $LINENO "configure"
2411 /* confdefs.h.  */
2412 _ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h.  */
2416 #include <stdarg.h>
2417 #include <stdio.h>
2418 #include <sys/types.h>
2419 #include <sys/stat.h>
2420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2421 struct buf { int x; };
2422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2423 static char *e (p, i)
2424      char **p;
2425      int i;
2426 {
2427   return p[i];
2428 }
2429 static char *f (char * (*g) (char **, int), char **p, ...)
2430 {
2431   char *s;
2432   va_list v;
2433   va_start (v,p);
2434   s = g (p, va_arg (v,int));
2435   va_end (v);
2436   return s;
2437 }
2438 int test (int i, double x);
2439 struct s1 {int (*f) (int a);};
2440 struct s2 {int (*f) (double a);};
2441 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2442 int argc;
2443 char **argv;
2444 int
2445 main ()
2446 {
2447 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2448   ;
2449   return 0;
2450 }
2451 _ACEOF
2452 # Don't try gcc -ansi; that turns off useful extensions and
2453 # breaks some systems' header files.
2454 # AIX                   -qlanglvl=ansi
2455 # Ultrix and OSF/1      -std1
2456 # HP-UX 10.20 and later -Ae
2457 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2458 # SVR4                  -Xc -D__EXTENSIONS__
2459 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2460 do
2461   CC="$ac_save_CC $ac_arg"
2462   rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464   (eval $ac_compile) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); } &&
2468          { ac_try='test -s conftest.$ac_objext'
2469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470   (eval $ac_try) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; }; then
2474   ac_cv_prog_cc_stdc=$ac_arg
2475 break
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 fi
2481 rm -f conftest.$ac_objext
2482 done
2483 rm -f conftest.$ac_ext conftest.$ac_objext
2484 CC=$ac_save_CC
2485
2486 fi
2487
2488 case "x$ac_cv_prog_cc_stdc" in
2489   x|xno)
2490     echo "$as_me:$LINENO: result: none needed" >&5
2491 echo "${ECHO_T}none needed" >&6 ;;
2492   *)
2493     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2494 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2495     CC="$CC $ac_cv_prog_cc_stdc" ;;
2496 esac
2497
2498 # Some people use a C++ compiler to compile C.  Since we use `exit',
2499 # in C++ we need to declare it.  In case someone uses the same compiler
2500 # for both compiling C and C++ we need to have the C++ compiler decide
2501 # the declaration of exit, since it's the most demanding environment.
2502 cat >conftest.$ac_ext <<_ACEOF
2503 #ifndef __cplusplus
2504   choke me
2505 #endif
2506 _ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509   (eval $ac_compile) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); } &&
2513          { ac_try='test -s conftest.$ac_objext'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; }; then
2519   for ac_declaration in \
2520    ''\
2521    '#include <stdlib.h>' \
2522    'extern "C" void std::exit (int) throw (); using std::exit;' \
2523    'extern "C" void std::exit (int); using std::exit;' \
2524    'extern "C" void exit (int) throw ();' \
2525    'extern "C" void exit (int);' \
2526    'void exit (int);'
2527 do
2528   cat >conftest.$ac_ext <<_ACEOF
2529 #line $LINENO "configure"
2530 /* confdefs.h.  */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h.  */
2535 #include <stdlib.h>
2536 $ac_declaration
2537 int
2538 main ()
2539 {
2540 exit (42);
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547   (eval $ac_compile) 2>&5
2548   ac_status=$?
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); } &&
2551          { ac_try='test -s conftest.$ac_objext'
2552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553   (eval $ac_try) 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); }; }; then
2557   :
2558 else
2559   echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562 continue
2563 fi
2564 rm -f conftest.$ac_objext conftest.$ac_ext
2565   cat >conftest.$ac_ext <<_ACEOF
2566 #line $LINENO "configure"
2567 /* confdefs.h.  */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h.  */
2572 $ac_declaration
2573 int
2574 main ()
2575 {
2576 exit (42);
2577   ;
2578   return 0;
2579 }
2580 _ACEOF
2581 rm -f conftest.$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583   (eval $ac_compile) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); } &&
2587          { ac_try='test -s conftest.$ac_objext'
2588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589   (eval $ac_try) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); }; }; then
2593   break
2594 else
2595   echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2597
2598 fi
2599 rm -f conftest.$ac_objext conftest.$ac_ext
2600 done
2601 rm -f conftest*
2602 if test -n "$ac_declaration"; then
2603   echo '#ifdef __cplusplus' >>confdefs.h
2604   echo $ac_declaration      >>confdefs.h
2605   echo '#endif'             >>confdefs.h
2606 fi
2607
2608 else
2609   echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2611
2612 fi
2613 rm -f conftest.$ac_objext conftest.$ac_ext
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619
2620 if test "x$CC" != xcc; then
2621   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2622 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2623 else
2624   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2625 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2626 fi
2627 set dummy $CC; ac_cc=`echo $2 |
2628                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2629 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2630   echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632   cat >conftest.$ac_ext <<_ACEOF
2633 #line $LINENO "configure"
2634 /* confdefs.h.  */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h.  */
2639
2640 int
2641 main ()
2642 {
2643
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 # Make sure it works both with $CC and with simple cc.
2649 # We do the test twice because some compilers refuse to overwrite an
2650 # existing .o file with -o, though they will create one.
2651 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2652 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653   (eval $ac_try) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); } &&
2657    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); };
2662 then
2663   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2664   if test "x$CC" != xcc; then
2665     # Test first that cc exists at all.
2666     if { ac_try='cc -c conftest.$ac_ext >&5'
2667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668   (eval $ac_try) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; }; then
2672       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2673       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674   (eval $ac_try) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); } &&
2678          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679   (eval $ac_try) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); };
2683       then
2684         # cc works too.
2685         :
2686       else
2687         # cc exists but doesn't like -o.
2688         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2689       fi
2690     fi
2691   fi
2692 else
2693   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2694 fi
2695 rm -f conftest*
2696
2697 fi
2698 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2699   echo "$as_me:$LINENO: result: yes" >&5
2700 echo "${ECHO_T}yes" >&6
2701 else
2702   echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2704
2705 cat >>confdefs.h <<\_ACEOF
2706 #define NO_MINUS_C_MINUS_O 1
2707 _ACEOF
2708
2709 fi
2710
2711 # autoconf is lame and doesn't give us any substitution variable for this.
2712 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2713   NO_MINUS_C_MINUS_O=yes
2714 else
2715   OUTPUT_OPTION='-o $@'
2716 fi
2717
2718
2719
2720 # -------------------------
2721 # Check C compiler features
2722 # -------------------------
2723
2724
2725 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2726 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2727 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2728   echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730   save_CFLAGS="$CFLAGS"
2731 CFLAGS="-Wno-long-long"
2732 cat >conftest.$ac_ext <<_ACEOF
2733 #line $LINENO "configure"
2734 /* confdefs.h.  */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h.  */
2739
2740 int
2741 main ()
2742 {
2743
2744   ;
2745   return 0;
2746 }
2747 _ACEOF
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750   (eval $ac_compile) 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); } &&
2754          { ac_try='test -s conftest.$ac_objext'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760   ac_cv_prog_cc_no_long_long=yes
2761 else
2762   echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2764
2765 ac_cv_prog_cc_no_long_long=no
2766 fi
2767 rm -f conftest.$ac_objext conftest.$ac_ext
2768 CFLAGS="$save_CFLAGS"
2769 fi
2770 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2771 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2772
2773 ac_ext=c
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2779 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2780 # On Suns, sometimes $CPP names a directory.
2781 if test -n "$CPP" && test -d "$CPP"; then
2782   CPP=
2783 fi
2784 if test -z "$CPP"; then
2785   if test "${ac_cv_prog_CPP+set}" = set; then
2786   echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788       # Double quotes because CPP needs to be expanded
2789     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2790     do
2791       ac_preproc_ok=false
2792 for ac_c_preproc_warn_flag in '' yes
2793 do
2794   # Use a header file that comes with gcc, so configuring glibc
2795   # with a fresh cross-compiler works.
2796   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2797   # <limits.h> exists even on freestanding compilers.
2798   # On the NeXT, cc -E runs the code through the compiler's parser,
2799   # not just through cpp. "Syntax error" is here to catch this case.
2800   cat >conftest.$ac_ext <<_ACEOF
2801 #line $LINENO "configure"
2802 /* confdefs.h.  */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h.  */
2807 #ifdef __STDC__
2808 # include <limits.h>
2809 #else
2810 # include <assert.h>
2811 #endif
2812                      Syntax error
2813 _ACEOF
2814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2815   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2816   ac_status=$?
2817   grep -v '^ *+' conftest.er1 >conftest.err
2818   rm -f conftest.er1
2819   cat conftest.err >&5
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); } >/dev/null; then
2822   if test -s conftest.err; then
2823     ac_cpp_err=$ac_c_preproc_warn_flag
2824   else
2825     ac_cpp_err=
2826   fi
2827 else
2828   ac_cpp_err=yes
2829 fi
2830 if test -z "$ac_cpp_err"; then
2831   :
2832 else
2833   echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836   # Broken: fails on valid input.
2837 continue
2838 fi
2839 rm -f conftest.err conftest.$ac_ext
2840
2841   # OK, works on sane cases.  Now check whether non-existent headers
2842   # can be detected and how.
2843   cat >conftest.$ac_ext <<_ACEOF
2844 #line $LINENO "configure"
2845 /* confdefs.h.  */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h.  */
2850 #include <ac_nonexistent.h>
2851 _ACEOF
2852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2853   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2854   ac_status=$?
2855   grep -v '^ *+' conftest.er1 >conftest.err
2856   rm -f conftest.er1
2857   cat conftest.err >&5
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); } >/dev/null; then
2860   if test -s conftest.err; then
2861     ac_cpp_err=$ac_c_preproc_warn_flag
2862   else
2863     ac_cpp_err=
2864   fi
2865 else
2866   ac_cpp_err=yes
2867 fi
2868 if test -z "$ac_cpp_err"; then
2869   # Broken: success on invalid input.
2870 continue
2871 else
2872   echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2874
2875   # Passes both tests.
2876 ac_preproc_ok=:
2877 break
2878 fi
2879 rm -f conftest.err conftest.$ac_ext
2880
2881 done
2882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2883 rm -f conftest.err conftest.$ac_ext
2884 if $ac_preproc_ok; then
2885   break
2886 fi
2887
2888     done
2889     ac_cv_prog_CPP=$CPP
2890
2891 fi
2892   CPP=$ac_cv_prog_CPP
2893 else
2894   ac_cv_prog_CPP=$CPP
2895 fi
2896 echo "$as_me:$LINENO: result: $CPP" >&5
2897 echo "${ECHO_T}$CPP" >&6
2898 ac_preproc_ok=false
2899 for ac_c_preproc_warn_flag in '' yes
2900 do
2901   # Use a header file that comes with gcc, so configuring glibc
2902   # with a fresh cross-compiler works.
2903   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2904   # <limits.h> exists even on freestanding compilers.
2905   # On the NeXT, cc -E runs the code through the compiler's parser,
2906   # not just through cpp. "Syntax error" is here to catch this case.
2907   cat >conftest.$ac_ext <<_ACEOF
2908 #line $LINENO "configure"
2909 /* confdefs.h.  */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h.  */
2914 #ifdef __STDC__
2915 # include <limits.h>
2916 #else
2917 # include <assert.h>
2918 #endif
2919                      Syntax error
2920 _ACEOF
2921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2923   ac_status=$?
2924   grep -v '^ *+' conftest.er1 >conftest.err
2925   rm -f conftest.er1
2926   cat conftest.err >&5
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); } >/dev/null; then
2929   if test -s conftest.err; then
2930     ac_cpp_err=$ac_c_preproc_warn_flag
2931   else
2932     ac_cpp_err=
2933   fi
2934 else
2935   ac_cpp_err=yes
2936 fi
2937 if test -z "$ac_cpp_err"; then
2938   :
2939 else
2940   echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943   # Broken: fails on valid input.
2944 continue
2945 fi
2946 rm -f conftest.err conftest.$ac_ext
2947
2948   # OK, works on sane cases.  Now check whether non-existent headers
2949   # can be detected and how.
2950   cat >conftest.$ac_ext <<_ACEOF
2951 #line $LINENO "configure"
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957 #include <ac_nonexistent.h>
2958 _ACEOF
2959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2961   ac_status=$?
2962   grep -v '^ *+' conftest.er1 >conftest.err
2963   rm -f conftest.er1
2964   cat conftest.err >&5
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); } >/dev/null; then
2967   if test -s conftest.err; then
2968     ac_cpp_err=$ac_c_preproc_warn_flag
2969   else
2970     ac_cpp_err=
2971   fi
2972 else
2973   ac_cpp_err=yes
2974 fi
2975 if test -z "$ac_cpp_err"; then
2976   # Broken: success on invalid input.
2977 continue
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982   # Passes both tests.
2983 ac_preproc_ok=:
2984 break
2985 fi
2986 rm -f conftest.err conftest.$ac_ext
2987
2988 done
2989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2990 rm -f conftest.err conftest.$ac_ext
2991 if $ac_preproc_ok; then
2992   :
2993 else
2994   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2997 See \`config.log' for more details." >&2;}
2998    { (exit 1); exit 1; }; }
2999 fi
3000
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006
3007 echo "$as_me:$LINENO: checking for inline" >&5
3008 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3009 if test "${ac_cv_c_inline+set}" = set; then
3010   echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012   ac_cv_c_inline=no
3013 for ac_kw in inline __inline__ __inline; do
3014   cat >conftest.$ac_ext <<_ACEOF
3015 #line $LINENO "configure"
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021 #ifndef __cplusplus
3022 typedef int foo_t;
3023 static $ac_kw foo_t static_foo () {return 0; }
3024 $ac_kw foo_t foo () {return 0; }
3025 #endif
3026
3027 _ACEOF
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030   (eval $ac_compile) 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } &&
3034          { ac_try='test -s conftest.$ac_objext'
3035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036   (eval $ac_try) 2>&5
3037   ac_status=$?
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }; }; then
3040   ac_cv_c_inline=$ac_kw; break
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 fi
3046 rm -f conftest.$ac_objext conftest.$ac_ext
3047 done
3048
3049 fi
3050 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3051 echo "${ECHO_T}$ac_cv_c_inline" >&6
3052 case $ac_cv_c_inline in
3053   inline | yes) ;;
3054   no)
3055 cat >>confdefs.h <<\_ACEOF
3056 #define inline
3057 _ACEOF
3058  ;;
3059   *)  cat >>confdefs.h <<_ACEOF
3060 #define inline $ac_cv_c_inline
3061 _ACEOF
3062  ;;
3063 esac
3064
3065
3066 echo "$as_me:$LINENO: checking for long long int" >&5
3067 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3068 if test "${ac_cv_c_long_long+set}" = set; then
3069   echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071   cat >conftest.$ac_ext <<_ACEOF
3072 #line $LINENO "configure"
3073 /* confdefs.h.  */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h.  */
3078
3079 int
3080 main ()
3081 {
3082 long long int i;
3083   ;
3084   return 0;
3085 }
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3089   (eval $ac_compile) 2>&5
3090   ac_status=$?
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } &&
3093          { ac_try='test -s conftest.$ac_objext'
3094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095   (eval $ac_try) 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; }; then
3099   ac_cv_c_long_long=yes
3100 else
3101   echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104 ac_cv_c_long_long=no
3105 fi
3106 rm -f conftest.$ac_objext conftest.$ac_ext
3107 fi
3108 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3109 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3110   if test $ac_cv_c_long_long = yes; then
3111
3112 cat >>confdefs.h <<\_ACEOF
3113 #define HAVE_LONG_LONG 1
3114 _ACEOF
3115
3116   fi
3117 echo "$as_me:$LINENO: checking for __int64" >&5
3118 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3119 if test "${ac_cv_c___int64+set}" = set; then
3120   echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122   cat >conftest.$ac_ext <<_ACEOF
3123 #line $LINENO "configure"
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129
3130 int
3131 main ()
3132 {
3133 __int64 i;
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140   (eval $ac_compile) 2>&5
3141   ac_status=$?
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); } &&
3144          { ac_try='test -s conftest.$ac_objext'
3145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146   (eval $ac_try) 2>&5
3147   ac_status=$?
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); }; }; then
3150   ac_cv_c___int64=yes
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 ac_cv_c___int64=no
3156 fi
3157 rm -f conftest.$ac_objext conftest.$ac_ext
3158 fi
3159 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3160 echo "${ECHO_T}$ac_cv_c___int64" >&6
3161   if test $ac_cv_c___int64 = yes; then
3162
3163 cat >>confdefs.h <<\_ACEOF
3164 #define HAVE___INT64 1
3165 _ACEOF
3166
3167   fi
3168
3169 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3170 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3171 if test "${gcc_cv_c__bool+set}" = set; then
3172   echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174   cat >conftest.$ac_ext <<_ACEOF
3175 #line $LINENO "configure"
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181
3182 int
3183 main ()
3184 {
3185 _Bool foo;
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3192   (eval $ac_compile) 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } &&
3196          { ac_try='test -s conftest.$ac_objext'
3197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198   (eval $ac_try) 2>&5
3199   ac_status=$?
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); }; }; then
3202   gcc_cv_c__bool=yes
3203 else
3204   echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3206
3207 gcc_cv_c__bool=no
3208 fi
3209 rm -f conftest.$ac_objext conftest.$ac_ext
3210
3211 fi
3212 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3213 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3214 if test $gcc_cv_c__bool = yes; then
3215
3216 cat >>confdefs.h <<\_ACEOF
3217 #define HAVE__BOOL 1
3218 _ACEOF
3219
3220 fi
3221
3222
3223 # sizeof(char) is 1 by definition.
3224 echo "$as_me:$LINENO: checking size of void *" >&5
3225 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3226 if test "${ac_cv_sizeof_void_p+set}" = set; then
3227   echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3230   cat >conftest.$ac_ext <<_ACEOF
3231 #line $LINENO "configure"
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237 #include "confdefs.h"
3238 #include <sys/types.h>
3239
3240
3241 int
3242 main ()
3243 {
3244 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3245   ;
3246   return 0;
3247 }
3248 _ACEOF
3249 rm -f conftest.$ac_objext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3251   (eval $ac_compile) 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); } &&
3255          { ac_try='test -s conftest.$ac_objext'
3256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257   (eval $ac_try) 2>&5
3258   ac_status=$?
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); }; }; then
3261   ac_cv_sizeof_void_p=$ac_size
3262 else
3263   echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266 fi
3267 rm -f conftest.$ac_objext conftest.$ac_ext
3268   if test x$ac_cv_sizeof_void_p != x ; then break; fi
3269 done
3270
3271 fi
3272
3273 if test x$ac_cv_sizeof_void_p = x ; then
3274   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3275 echo "$as_me: error: cannot determine a size for void *" >&2;}
3276    { (exit 1); exit 1; }; }
3277 fi
3278 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3279 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3280
3281 cat >>confdefs.h <<_ACEOF
3282 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3283 _ACEOF
3284
3285
3286 echo "$as_me:$LINENO: checking size of short" >&5
3287 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3288 if test "${ac_cv_sizeof_short+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3292   cat >conftest.$ac_ext <<_ACEOF
3293 #line $LINENO "configure"
3294 /* confdefs.h.  */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h.  */
3299 #include "confdefs.h"
3300 #include <sys/types.h>
3301
3302
3303 int
3304 main ()
3305 {
3306 switch (0) case 0: case (sizeof (short) == $ac_size):;
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313   (eval $ac_compile) 2>&5
3314   ac_status=$?
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); } &&
3317          { ac_try='test -s conftest.$ac_objext'
3318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319   (eval $ac_try) 2>&5
3320   ac_status=$?
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); }; }; then
3323   ac_cv_sizeof_short=$ac_size
3324 else
3325   echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328 fi
3329 rm -f conftest.$ac_objext conftest.$ac_ext
3330   if test x$ac_cv_sizeof_short != x ; then break; fi
3331 done
3332
3333 fi
3334
3335 if test x$ac_cv_sizeof_short = x ; then
3336   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3337 echo "$as_me: error: cannot determine a size for short" >&2;}
3338    { (exit 1); exit 1; }; }
3339 fi
3340 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3341 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3342
3343 cat >>confdefs.h <<_ACEOF
3344 #define SIZEOF_SHORT $ac_cv_sizeof_short
3345 _ACEOF
3346
3347
3348 echo "$as_me:$LINENO: checking size of int" >&5
3349 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3350 if test "${ac_cv_sizeof_int+set}" = set; then
3351   echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3354   cat >conftest.$ac_ext <<_ACEOF
3355 #line $LINENO "configure"
3356 /* confdefs.h.  */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h.  */
3361 #include "confdefs.h"
3362 #include <sys/types.h>
3363
3364
3365 int
3366 main ()
3367 {
3368 switch (0) case 0: case (sizeof (int) == $ac_size):;
3369   ;
3370   return 0;
3371 }
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375   (eval $ac_compile) 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); } &&
3379          { ac_try='test -s conftest.$ac_objext'
3380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381   (eval $ac_try) 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); }; }; then
3385   ac_cv_sizeof_int=$ac_size
3386 else
3387   echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390 fi
3391 rm -f conftest.$ac_objext conftest.$ac_ext
3392   if test x$ac_cv_sizeof_int != x ; then break; fi
3393 done
3394
3395 fi
3396
3397 if test x$ac_cv_sizeof_int = x ; then
3398   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3399 echo "$as_me: error: cannot determine a size for int" >&2;}
3400    { (exit 1); exit 1; }; }
3401 fi
3402 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3403 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3404
3405 cat >>confdefs.h <<_ACEOF
3406 #define SIZEOF_INT $ac_cv_sizeof_int
3407 _ACEOF
3408
3409
3410 echo "$as_me:$LINENO: checking size of long" >&5
3411 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3412 if test "${ac_cv_sizeof_long+set}" = set; then
3413   echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3416   cat >conftest.$ac_ext <<_ACEOF
3417 #line $LINENO "configure"
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #include "confdefs.h"
3424 #include <sys/types.h>
3425
3426
3427 int
3428 main ()
3429 {
3430 switch (0) case 0: case (sizeof (long) == $ac_size):;
3431   ;
3432   return 0;
3433 }
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437   (eval $ac_compile) 2>&5
3438   ac_status=$?
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); } &&
3441          { ac_try='test -s conftest.$ac_objext'
3442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443   (eval $ac_try) 2>&5
3444   ac_status=$?
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); }; }; then
3447   ac_cv_sizeof_long=$ac_size
3448 else
3449   echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 fi
3453 rm -f conftest.$ac_objext conftest.$ac_ext
3454   if test x$ac_cv_sizeof_long != x ; then break; fi
3455 done
3456
3457 fi
3458
3459 if test x$ac_cv_sizeof_long = x ; then
3460   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3461 echo "$as_me: error: cannot determine a size for long" >&2;}
3462    { (exit 1); exit 1; }; }
3463 fi
3464 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3465 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3466
3467 cat >>confdefs.h <<_ACEOF
3468 #define SIZEOF_LONG $ac_cv_sizeof_long
3469 _ACEOF
3470
3471
3472 if test $ac_cv_c_long_long = yes; then
3473   echo "$as_me:$LINENO: checking size of long long" >&5
3474 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3475 if test "${ac_cv_sizeof_long_long+set}" = set; then
3476   echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3479   cat >conftest.$ac_ext <<_ACEOF
3480 #line $LINENO "configure"
3481 /* confdefs.h.  */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h.  */
3486 #include "confdefs.h"
3487 #include <sys/types.h>
3488
3489
3490 int
3491 main ()
3492 {
3493 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3494   ;
3495   return 0;
3496 }
3497 _ACEOF
3498 rm -f conftest.$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500   (eval $ac_compile) 2>&5
3501   ac_status=$?
3502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); } &&
3504          { ac_try='test -s conftest.$ac_objext'
3505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506   (eval $ac_try) 2>&5
3507   ac_status=$?
3508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); }; }; then
3510   ac_cv_sizeof_long_long=$ac_size
3511 else
3512   echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 fi
3516 rm -f conftest.$ac_objext conftest.$ac_ext
3517   if test x$ac_cv_sizeof_long_long != x ; then break; fi
3518 done
3519
3520 fi
3521
3522 if test x$ac_cv_sizeof_long_long = x ; then
3523   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3524 echo "$as_me: error: cannot determine a size for long long" >&2;}
3525    { (exit 1); exit 1; }; }
3526 fi
3527 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3528 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3529
3530 cat >>confdefs.h <<_ACEOF
3531 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3532 _ACEOF
3533
3534
3535 fi
3536 if test $ac_cv_c___int64 = yes; then
3537   echo "$as_me:$LINENO: checking size of __int64" >&5
3538 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3539 if test "${ac_cv_sizeof___int64+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3543   cat >conftest.$ac_ext <<_ACEOF
3544 #line $LINENO "configure"
3545 /* confdefs.h.  */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h.  */
3550 #include "confdefs.h"
3551 #include <sys/types.h>
3552
3553
3554 int
3555 main ()
3556 {
3557 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3558   ;
3559   return 0;
3560 }
3561 _ACEOF
3562 rm -f conftest.$ac_objext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564   (eval $ac_compile) 2>&5
3565   ac_status=$?
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); } &&
3568          { ac_try='test -s conftest.$ac_objext'
3569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570   (eval $ac_try) 2>&5
3571   ac_status=$?
3572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573   (exit $ac_status); }; }; then
3574   ac_cv_sizeof___int64=$ac_size
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 fi
3580 rm -f conftest.$ac_objext conftest.$ac_ext
3581   if test x$ac_cv_sizeof___int64 != x ; then break; fi
3582 done
3583
3584 fi
3585
3586 if test x$ac_cv_sizeof___int64 = x ; then
3587   { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3588 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3589    { (exit 1); exit 1; }; }
3590 fi
3591 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3592 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3593
3594 cat >>confdefs.h <<_ACEOF
3595 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3596 _ACEOF
3597
3598
3599 fi
3600
3601 # -----------------
3602 # Find Ada compiler
3603 # -----------------
3604
3605 # See if GNAT has been installed
3606
3607
3608
3609 if test -n "$ac_tool_prefix"; then
3610   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3611 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3612 echo "$as_me:$LINENO: checking for $ac_word" >&5
3613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3614 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3615   echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617   if test -n "$GNATBIND"; then
3618   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623   IFS=$as_save_IFS
3624   test -z "$as_dir" && as_dir=.
3625   for ac_exec_ext in '' $ac_executable_extensions; do
3626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3627     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629     break 2
3630   fi
3631 done
3632 done
3633
3634 fi
3635 fi
3636 GNATBIND=$ac_cv_prog_GNATBIND
3637 if test -n "$GNATBIND"; then
3638   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3639 echo "${ECHO_T}$GNATBIND" >&6
3640 else
3641   echo "$as_me:$LINENO: result: no" >&5
3642 echo "${ECHO_T}no" >&6
3643 fi
3644
3645 fi
3646 if test -z "$ac_cv_prog_GNATBIND"; then
3647   ac_ct_GNATBIND=$GNATBIND
3648   # Extract the first word of "gnatbind", so it can be a program name with args.
3649 set dummy gnatbind; ac_word=$2
3650 echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3652 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3653   echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655   if test -n "$ac_ct_GNATBIND"; then
3656   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3660 do
3661   IFS=$as_save_IFS
3662   test -z "$as_dir" && as_dir=.
3663   for ac_exec_ext in '' $ac_executable_extensions; do
3664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667     break 2
3668   fi
3669 done
3670 done
3671
3672   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3673 fi
3674 fi
3675 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3676 if test -n "$ac_ct_GNATBIND"; then
3677   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3678 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3679 else
3680   echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3682 fi
3683
3684   GNATBIND=$ac_ct_GNATBIND
3685 else
3686   GNATBIND="$ac_cv_prog_GNATBIND"
3687 fi
3688
3689 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3690 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3691 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3692   echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694   cat >conftest.adb <<EOF
3695 procedure conftest is begin null; end conftest;
3696 EOF
3697 gcc_cv_cc_supports_ada=no
3698 # There is a bug in old released versions of GCC which causes the
3699 # driver to exit successfully when the appropriate language module
3700 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
3701 # Therefore we must check for the error message as well as an
3702 # unsuccessful exit.
3703 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3704 if test x"$errors" = x; then
3705   gcc_cv_cc_supports_ada=yes
3706   break
3707 fi
3708 rm -f conftest.*
3709 fi
3710 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3711 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3712
3713 if test x$GNATBIND != xno && test x$gcc_cv_supports_ada != xno; then
3714   have_gnat=yes
3715 else
3716   have_gnat=no
3717 fi
3718
3719
3720 # ---------------------
3721 # Warnings and checking
3722 # ---------------------
3723
3724 strict1_warn=
3725 if test $ac_cv_prog_cc_no_long_long = yes ; then
3726   strict1_warn="-pedantic -Wno-long-long"
3727 fi
3728
3729
3730 # If the native compiler is GCC, we can enable warnings even in stage1.
3731 # That's useful for people building cross-compilers, or just running a
3732 # quick `make'.
3733 warn_cflags=
3734 if test "x$GCC" = "xyes"; then
3735   warn_cflags='$(GCC_WARN_CFLAGS)'
3736 fi
3737
3738
3739 # Enable -Werror in bootstrap stage2 and later.
3740 # Change the default to "no" on release branches.
3741 # Check whether --enable-werror or --disable-werror was given.
3742 if test "${enable_werror+set}" = set; then
3743   enableval="$enable_werror"
3744
3745 else
3746   enable_werror=yes
3747 fi;
3748 if test x$enable_werror = xyes ; then
3749   WERROR=-Werror
3750 fi
3751
3752
3753 # Enable expensive internal checks
3754 # Check whether --enable-checking or --disable-checking was given.
3755 if test "${enable_checking+set}" = set; then
3756   enableval="$enable_checking"
3757   ac_checking=
3758 ac_tree_checking=
3759 ac_rtl_checking=
3760 ac_rtlflag_checking=
3761 ac_gc_checking=
3762 ac_gc_always_collect=
3763 ac_fold_checking=
3764 case "${enableval}" in
3765 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3766         ac_rtlflag_checking=1 ;;
3767 no)     ;;
3768 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3769         set fnord $enableval; shift
3770         IFS="$ac_save_IFS"
3771         for check
3772         do
3773                 case $check in
3774                 misc)   ac_checking=1 ;;
3775                 tree)   ac_tree_checking=1 ;;
3776                 rtlflag)        ac_rtlflag_checking=1 ;;
3777                 rtl)    ac_rtl_checking=1 ;;
3778                 gc)     ac_gc_checking=1 ;;
3779                 gcac)   ac_gc_always_collect=1 ;;
3780                 fold)   ac_fold_checking=1 ;;
3781                 valgrind)       ac_checking_valgrind=1 ;;
3782                 *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3783 echo "$as_me: error: unknown check category $check" >&2;}
3784    { (exit 1); exit 1; }; } ;;
3785                 esac
3786         done
3787         ;;
3788 esac
3789
3790 else
3791   # Enable some checks by default for development versions of GCC
3792 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3793 fi;
3794 nocommon_flag=""
3795 if test x$ac_checking != x ; then
3796
3797 cat >>confdefs.h <<\_ACEOF
3798 #define ENABLE_CHECKING 1
3799 _ACEOF
3800
3801   nocommon_flag=-fno-common
3802 fi
3803
3804 if test x$ac_tree_checking != x ; then
3805
3806 cat >>confdefs.h <<\_ACEOF
3807 #define ENABLE_TREE_CHECKING 1
3808 _ACEOF
3809
3810 fi
3811 if test x$ac_rtl_checking != x ; then
3812
3813 cat >>confdefs.h <<\_ACEOF
3814 #define ENABLE_RTL_CHECKING 1
3815 _ACEOF
3816
3817 fi
3818 if test x$ac_rtlflag_checking != x ; then
3819
3820 cat >>confdefs.h <<\_ACEOF
3821 #define ENABLE_RTL_FLAG_CHECKING 1
3822 _ACEOF
3823
3824 fi
3825 if test x$ac_gc_checking != x ; then
3826
3827 cat >>confdefs.h <<\_ACEOF
3828 #define ENABLE_GC_CHECKING 1
3829 _ACEOF
3830
3831 fi
3832 if test x$ac_gc_always_collect != x ; then
3833
3834 cat >>confdefs.h <<\_ACEOF
3835 #define ENABLE_GC_ALWAYS_COLLECT 1
3836 _ACEOF
3837
3838 fi
3839 if test x$ac_fold_checking != x ; then
3840
3841 cat >>confdefs.h <<\_ACEOF
3842 #define ENABLE_FOLD_CHECKING 1
3843 _ACEOF
3844
3845 fi
3846 valgrind_path_defines=
3847 valgrind_command=
3848
3849
3850 echo "$as_me:$LINENO: checking for egrep" >&5
3851 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3852 if test "${ac_cv_prog_egrep+set}" = set; then
3853   echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3856     then ac_cv_prog_egrep='grep -E'
3857     else ac_cv_prog_egrep='egrep'
3858     fi
3859 fi
3860 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3861 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3862  EGREP=$ac_cv_prog_egrep
3863
3864
3865 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3866 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3867 if test "${ac_cv_header_stdc+set}" = set; then
3868   echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870   cat >conftest.$ac_ext <<_ACEOF
3871 #line $LINENO "configure"
3872 /* confdefs.h.  */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h.  */
3877 #include <stdlib.h>
3878 #include <stdarg.h>
3879 #include <string.h>
3880 #include <float.h>
3881
3882 int
3883 main ()
3884 {
3885
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 rm -f conftest.$ac_objext
3891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892   (eval $ac_compile) 2>&5
3893   ac_status=$?
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); } &&
3896          { ac_try='test -s conftest.$ac_objext'
3897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898   (eval $ac_try) 2>&5
3899   ac_status=$?
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); }; }; then
3902   ac_cv_header_stdc=yes
3903 else
3904   echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907 ac_cv_header_stdc=no
3908 fi
3909 rm -f conftest.$ac_objext conftest.$ac_ext
3910
3911 if test $ac_cv_header_stdc = yes; then
3912   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3913   cat >conftest.$ac_ext <<_ACEOF
3914 #line $LINENO "configure"
3915 /* confdefs.h.  */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h.  */
3920 #include <string.h>
3921
3922 _ACEOF
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924   $EGREP "memchr" >/dev/null 2>&1; then
3925   :
3926 else
3927   ac_cv_header_stdc=no
3928 fi
3929 rm -f conftest*
3930
3931 fi
3932
3933 if test $ac_cv_header_stdc = yes; then
3934   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3935   cat >conftest.$ac_ext <<_ACEOF
3936 #line $LINENO "configure"
3937 /* confdefs.h.  */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h.  */
3942 #include <stdlib.h>
3943
3944 _ACEOF
3945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3946   $EGREP "free" >/dev/null 2>&1; then
3947   :
3948 else
3949   ac_cv_header_stdc=no
3950 fi
3951 rm -f conftest*
3952
3953 fi
3954
3955 if test $ac_cv_header_stdc = yes; then
3956   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3957   if test "$cross_compiling" = yes; then
3958   :
3959 else
3960   cat >conftest.$ac_ext <<_ACEOF
3961 #line $LINENO "configure"
3962 /* confdefs.h.  */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h.  */
3967 #include <ctype.h>
3968 #if ((' ' & 0x0FF) == 0x020)
3969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3971 #else
3972 # define ISLOWER(c) \
3973                    (('a' <= (c) && (c) <= 'i') \
3974                      || ('j' <= (c) && (c) <= 'r') \
3975                      || ('s' <= (c) && (c) <= 'z'))
3976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3977 #endif
3978
3979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3980 int
3981 main ()
3982 {
3983   int i;
3984   for (i = 0; i < 256; i++)
3985     if (XOR (islower (i), ISLOWER (i))
3986         || toupper (i) != TOUPPER (i))
3987       exit(2);
3988   exit (0);
3989 }
3990 _ACEOF
3991 rm -f conftest$ac_exeext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3993   (eval $ac_link) 2>&5
3994   ac_status=$?
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998   (eval $ac_try) 2>&5
3999   ac_status=$?
4000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001   (exit $ac_status); }; }; then
4002   :
4003 else
4004   echo "$as_me: program exited with status $ac_status" >&5
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008 ( exit $ac_status )
4009 ac_cv_header_stdc=no
4010 fi
4011 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4012 fi
4013 fi
4014 fi
4015 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4016 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4017 if test $ac_cv_header_stdc = yes; then
4018
4019 cat >>confdefs.h <<\_ACEOF
4020 #define STDC_HEADERS 1
4021 _ACEOF
4022
4023 fi
4024
4025 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4036                   inttypes.h stdint.h unistd.h
4037 do
4038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4039 echo "$as_me:$LINENO: checking for $ac_header" >&5
4040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   cat >conftest.$ac_ext <<_ACEOF
4045 #line $LINENO "configure"
4046 /* confdefs.h.  */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h.  */
4051 $ac_includes_default
4052
4053 #include <$ac_header>
4054 _ACEOF
4055 rm -f conftest.$ac_objext
4056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4057   (eval $ac_compile) 2>&5
4058   ac_status=$?
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); } &&
4061          { ac_try='test -s conftest.$ac_objext'
4062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063   (eval $ac_try) 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }; }; then
4067   eval "$as_ac_Header=yes"
4068 else
4069   echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4071
4072 eval "$as_ac_Header=no"
4073 fi
4074 rm -f conftest.$ac_objext conftest.$ac_ext
4075 fi
4076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4079   cat >>confdefs.h <<_ACEOF
4080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4081 _ACEOF
4082
4083 fi
4084
4085 done
4086
4087
4088 if test "${ac_cv_header_valgrind_h+set}" = set; then
4089   echo "$as_me:$LINENO: checking for valgrind.h" >&5
4090 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4091 if test "${ac_cv_header_valgrind_h+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 fi
4094 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4095 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4096 else
4097   # Is the header compilable?
4098 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4099 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4100 cat >conftest.$ac_ext <<_ACEOF
4101 #line $LINENO "configure"
4102 /* confdefs.h.  */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h.  */
4107 $ac_includes_default
4108 #include <valgrind.h>
4109 _ACEOF
4110 rm -f conftest.$ac_objext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112   (eval $ac_compile) 2>&5
4113   ac_status=$?
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); } &&
4116          { ac_try='test -s conftest.$ac_objext'
4117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118   (eval $ac_try) 2>&5
4119   ac_status=$?
4120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); }; }; then
4122   ac_header_compiler=yes
4123 else
4124   echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4126
4127 ac_header_compiler=no
4128 fi
4129 rm -f conftest.$ac_objext conftest.$ac_ext
4130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4131 echo "${ECHO_T}$ac_header_compiler" >&6
4132
4133 # Is the header present?
4134 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4135 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4136 cat >conftest.$ac_ext <<_ACEOF
4137 #line $LINENO "configure"
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 #include <valgrind.h>
4144 _ACEOF
4145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4147   ac_status=$?
4148   grep -v '^ *+' conftest.er1 >conftest.err
4149   rm -f conftest.er1
4150   cat conftest.err >&5
4151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152   (exit $ac_status); } >/dev/null; then
4153   if test -s conftest.err; then
4154     ac_cpp_err=$ac_c_preproc_warn_flag
4155   else
4156     ac_cpp_err=
4157   fi
4158 else
4159   ac_cpp_err=yes
4160 fi
4161 if test -z "$ac_cpp_err"; then
4162   ac_header_preproc=yes
4163 else
4164   echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4166
4167   ac_header_preproc=no
4168 fi
4169 rm -f conftest.err conftest.$ac_ext
4170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4171 echo "${ECHO_T}$ac_header_preproc" >&6
4172
4173 # So?  What about this header?
4174 case $ac_header_compiler:$ac_header_preproc in
4175   yes:no )
4176     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4177 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4178     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4179 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4180     (
4181       cat <<\_ASBOX
4182 ## ------------------------------------ ##
4183 ## Report this to bug-autoconf@gnu.org. ##
4184 ## ------------------------------------ ##
4185 _ASBOX
4186     ) |
4187       sed "s/^/$as_me: WARNING:     /" >&2
4188     ;;
4189   no:yes )
4190     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4191 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4192     { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4193 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4194     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4195 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4196     (
4197       cat <<\_ASBOX
4198 ## ------------------------------------ ##
4199 ## Report this to bug-autoconf@gnu.org. ##
4200 ## ------------------------------------ ##
4201 _ASBOX
4202     ) |
4203       sed "s/^/$as_me: WARNING:     /" >&2
4204     ;;
4205 esac
4206 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4207 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4208 if test "${ac_cv_header_valgrind_h+set}" = set; then
4209   echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211   ac_cv_header_valgrind_h=$ac_header_preproc
4212 fi
4213 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4214 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4215
4216 fi
4217 if test $ac_cv_header_valgrind_h = yes; then
4218   have_valgrind_h=yes
4219 else
4220   have_valgrind_h=no
4221 fi
4222
4223
4224
4225 if test x$ac_checking_valgrind != x ; then
4226   # It is certainly possible that there's valgrind but no valgrind.h.
4227   # GCC relies on making annotations so we must have both.
4228   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4229 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4230   cat >conftest.$ac_ext <<_ACEOF
4231 #line $LINENO "configure"
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237 #include <valgrind/memcheck.h>
4238 #ifndef VALGRIND_DISCARD
4239 #error VALGRIND_DISCARD not defined
4240 #endif
4241 _ACEOF
4242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4244   ac_status=$?
4245   grep -v '^ *+' conftest.er1 >conftest.err
4246   rm -f conftest.er1
4247   cat conftest.err >&5
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); } >/dev/null; then
4250   if test -s conftest.err; then
4251     ac_cpp_err=$ac_c_preproc_warn_flag
4252   else
4253     ac_cpp_err=
4254   fi
4255 else
4256   ac_cpp_err=yes
4257 fi
4258 if test -z "$ac_cpp_err"; then
4259   gcc_cv_header_valgrind_memcheck_h=yes
4260 else
4261   echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4263
4264   gcc_cv_header_valgrind_memcheck_h=no
4265 fi
4266 rm -f conftest.err conftest.$ac_ext
4267   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4268 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4269   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4270 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4271   cat >conftest.$ac_ext <<_ACEOF
4272 #line $LINENO "configure"
4273 /* confdefs.h.  */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h.  */
4278 #include <memcheck.h>
4279 #ifndef VALGRIND_DISCARD
4280 #error VALGRIND_DISCARD not defined
4281 #endif
4282 _ACEOF
4283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4285   ac_status=$?
4286   grep -v '^ *+' conftest.er1 >conftest.err
4287   rm -f conftest.er1
4288   cat conftest.err >&5
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); } >/dev/null; then
4291   if test -s conftest.err; then
4292     ac_cpp_err=$ac_c_preproc_warn_flag
4293   else
4294     ac_cpp_err=
4295   fi
4296 else
4297   ac_cpp_err=yes
4298 fi
4299 if test -z "$ac_cpp_err"; then
4300   gcc_cv_header_memcheck_h=yes
4301 else
4302   echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305   gcc_cv_header_memcheck_h=no
4306 fi
4307 rm -f conftest.err conftest.$ac_ext
4308   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4309 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4310
4311 # Prepare PATH_SEPARATOR.
4312 # The user is always right.
4313 if test "${PATH_SEPARATOR+set}" != set; then
4314   echo "#! /bin/sh" >conf$$.sh
4315   echo  "exit 0"   >>conf$$.sh
4316   chmod +x conf$$.sh
4317   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4318     PATH_SEPARATOR=';'
4319   else
4320     PATH_SEPARATOR=:
4321   fi
4322   rm -f conf$$.sh
4323 fi
4324
4325 # Find out how to test for executable files. Don't use a zero-byte file,
4326 # as systems may use methods other than mode bits to determine executability.
4327 cat >conf$$.file <<_ASEOF
4328 #! /bin/sh
4329 exit 0
4330 _ASEOF
4331 chmod +x conf$$.file
4332 if test -x conf$$.file >/dev/null 2>&1; then
4333   ac_executable_p="test -x"
4334 else
4335   ac_executable_p="test -f"
4336 fi
4337 rm -f conf$$.file
4338
4339 # Extract the first word of "valgrind", so it can be a program name with args.
4340 set dummy valgrind; ac_word=$2
4341 echo "$as_me:$LINENO: checking for $ac_word" >&5
4342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4343 if test "${ac_cv_path_valgrind_path+set}" = set; then
4344   echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346   case "$valgrind_path" in
4347   [\\/]* | ?:[\\/]*)
4348     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4349     ;;
4350   *)
4351     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4352     for ac_dir in $PATH; do
4353       IFS="$ac_save_IFS"
4354       test -z "$ac_dir" && ac_dir=.
4355       for ac_exec_ext in '' $ac_executable_extensions; do
4356         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4357           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4358             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4359             break 2
4360           fi
4361         fi
4362       done
4363     done
4364     IFS="$ac_save_IFS"
4365     ;;
4366 esac
4367 fi
4368 valgrind_path="$ac_cv_path_valgrind_path"
4369 if test -n "$valgrind_path"; then
4370   echo "$as_me:$LINENO: result: $valgrind_path" >&5
4371 echo "${ECHO_T}$valgrind_path" >&6
4372 else
4373   echo "$as_me:$LINENO: result: no" >&5
4374 echo "${ECHO_T}no" >&6
4375 fi
4376
4377   if test "x$valgrind_path" = "x" \
4378     || (test $have_valgrind_h = no \
4379         && test $gcc_cv_header_memcheck_h = no \
4380         && test $gcc_cv_header_valgrind_memcheck_h = no); then
4381         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4382 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4383    { (exit 1); exit 1; }; }
4384   fi
4385   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4386   valgrind_command="$valgrind_path -q"
4387
4388 cat >>confdefs.h <<\_ACEOF
4389 #define ENABLE_VALGRIND_CHECKING 1
4390 _ACEOF
4391
4392   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4393
4394 cat >>confdefs.h <<\_ACEOF
4395 #define HAVE_VALGRIND_MEMCHECK_H 1
4396 _ACEOF
4397
4398   fi
4399   if test $gcc_cv_header_memcheck_h = yes; then
4400
4401 cat >>confdefs.h <<\_ACEOF
4402 #define HAVE_MEMCHECK_H 1
4403 _ACEOF
4404
4405   fi
4406 fi
4407
4408
4409
4410 # Enable code coverage collection
4411 # Check whether --enable-coverage or --disable-coverage was given.
4412 if test "${enable_coverage+set}" = set; then
4413   enableval="$enable_coverage"
4414   case "${enableval}" in
4415 yes|noopt)
4416         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4417         ;;
4418 opt)
4419         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4420         ;;
4421 *)
4422         { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4423 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4424    { (exit 1); exit 1; }; }
4425         ;;
4426 esac
4427 else
4428   coverage_flags=""
4429 fi;
4430
4431
4432 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4433 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4434   enableval="$enable_gather_detailed_mem_stats"
4435
4436 else
4437   enable_gather_detailed_mem_stats=no
4438 fi;
4439 if test x$enable_gather_detailed_mem_stats = xyes ; then
4440
4441 cat >>confdefs.h <<\_ACEOF
4442 #define GATHER_STATISTICS 1
4443 _ACEOF
4444
4445 fi
4446
4447 # -------------------------------
4448 # Miscenalleous configure options
4449 # -------------------------------
4450
4451 # With stabs
4452
4453 # Check whether --with-stabs or --without-stabs was given.
4454 if test "${with_stabs+set}" = set; then
4455   withval="$with_stabs"
4456   stabs="$with_stabs"
4457 else
4458   stabs=no
4459 fi;
4460
4461 # Determine whether or not multilibs are enabled.
4462 # Check whether --enable-multilib or --disable-multilib was given.
4463 if test "${enable_multilib+set}" = set; then
4464   enableval="$enable_multilib"
4465
4466 else
4467   enable_multilib=yes
4468 fi;
4469
4470
4471 # Enable __cxa_atexit for C++.
4472 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4473 if test "${enable___cxa_atexit+set}" = set; then
4474   enableval="$enable___cxa_atexit"
4475
4476 fi;
4477
4478 # Enable threads
4479 # Pass with no value to take the default
4480 # Pass with a value to specify a thread package
4481 # Check whether --enable-threads or --disable-threads was given.
4482 if test "${enable_threads+set}" = set; then
4483   enableval="$enable_threads"
4484
4485 else
4486   enable_threads=''
4487 fi;
4488 # Save in case it gets overwritten in config.gcc
4489 enable_threads_flag=$enable_threads
4490
4491 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4492 if test "${enable_objc_gc+set}" = set; then
4493   enableval="$enable_objc_gc"
4494   if test x$enable_objc_gc = xno; then
4495         objc_boehm_gc=''
4496 else
4497         objc_boehm_gc=1
4498 fi
4499 else
4500   objc_boehm_gc=''
4501 fi;
4502
4503
4504 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4505 if test "${with_dwarf2+set}" = set; then
4506   withval="$with_dwarf2"
4507   dwarf2="$with_dwarf2"
4508 else
4509   dwarf2=no
4510 fi;
4511
4512 # Check whether --enable-shared or --disable-shared was given.
4513 if test "${enable_shared+set}" = set; then
4514   enableval="$enable_shared"
4515
4516   case $enable_shared in
4517   yes | no) ;;
4518   *)
4519     enable_shared=no
4520     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4521     for pkg in $enableval; do
4522       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4523         enable_shared=yes
4524       fi
4525     done
4526     IFS="$ac_save_ifs"
4527     ;;
4528   esac
4529
4530 else
4531   enable_shared=yes
4532 fi;
4533
4534
4535
4536 # Check whether --with-sysroot or --without-sysroot was given.
4537 if test "${with_sysroot+set}" = set; then
4538   withval="$with_sysroot"
4539
4540  case ${with_sysroot} in
4541  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4542  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4543  esac
4544
4545  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4546  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4547
4548  if test "x$exec_prefix" = xNONE; then
4549   if test "x$prefix" = xNONE; then
4550    test_prefix=/usr/local
4551   else
4552    test_prefix=$prefix
4553   fi
4554  else
4555   test_prefix=$exec_prefix
4556  fi
4557  case ${TARGET_SYSTEM_ROOT} in
4558  "${test_prefix}"|"${test_prefix}/"*|\
4559  '${exec_prefix}'|'${exec_prefix}/'*)
4560    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4561    TARGET_SYSTEM_ROOT_DEFINE="$t"
4562    ;;
4563  esac
4564
4565 else
4566
4567  TARGET_SYSTEM_ROOT=
4568  TARGET_SYSTEM_ROOT_DEFINE=
4569  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4570
4571 fi;
4572
4573
4574
4575
4576 # Build with intermodule optimisations
4577 # Check whether --enable-intermodule or --disable-intermodule was given.
4578 if test "${enable_intermodule+set}" = set; then
4579   enableval="$enable_intermodule"
4580   case ${enable_intermodule} in
4581   yes) onestep="-onestep";;
4582   *) onestep="";;
4583 esac
4584 else
4585   onestep=""
4586 fi;
4587
4588
4589 # -------------------------
4590 # Checks for other programs
4591 # -------------------------
4592
4593 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4594 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4595 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4596 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   cat >conftest.make <<\_ACEOF
4600 all:
4601         @echo 'ac_maketemp="$(MAKE)"'
4602 _ACEOF
4603 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4604 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4605 if test -n "$ac_maketemp"; then
4606   eval ac_cv_prog_make_${ac_make}_set=yes
4607 else
4608   eval ac_cv_prog_make_${ac_make}_set=no
4609 fi
4610 rm -f conftest.make
4611 fi
4612 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4613   echo "$as_me:$LINENO: result: yes" >&5
4614 echo "${ECHO_T}yes" >&6
4615   SET_MAKE=
4616 else
4617   echo "$as_me:$LINENO: result: no" >&5
4618 echo "${ECHO_T}no" >&6
4619   SET_MAKE="MAKE=${MAKE-make}"
4620 fi
4621
4622
4623 # Find some useful tools
4624 for ac_prog in gawk mawk nawk awk
4625 do
4626   # Extract the first word of "$ac_prog", so it can be a program name with args.
4627 set dummy $ac_prog; ac_word=$2
4628 echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4630 if test "${ac_cv_prog_AWK+set}" = set; then
4631   echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633   if test -n "$AWK"; then
4634   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639   IFS=$as_save_IFS
4640   test -z "$as_dir" && as_dir=.
4641   for ac_exec_ext in '' $ac_executable_extensions; do
4642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643     ac_cv_prog_AWK="$ac_prog"
4644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645     break 2
4646   fi
4647 done
4648 done
4649
4650 fi
4651 fi
4652 AWK=$ac_cv_prog_AWK
4653 if test -n "$AWK"; then
4654   echo "$as_me:$LINENO: result: $AWK" >&5
4655 echo "${ECHO_T}$AWK" >&6
4656 else
4657   echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6
4659 fi
4660
4661   test -n "$AWK" && break
4662 done
4663
4664 # We need awk to run opts.sh (to create options.c and options.h).
4665 # Bail out if it's missing.
4666 case ${AWK} in
4667   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4668 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4669    { (exit 1); exit 1; }; } ;;
4670 esac
4671
4672 echo "$as_me:$LINENO: checking whether ln works" >&5
4673 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4674 if test "${gcc_cv_prog_LN+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   rm -f conftestdata_t
4678 echo >conftestdata_f
4679 if ln conftestdata_f conftestdata_t 2>/dev/null
4680 then
4681   gcc_cv_prog_LN="ln"
4682 else
4683   if ln -s conftestdata_f conftestdata_t 2>/dev/null
4684   then
4685     gcc_cv_prog_LN="ln -s"
4686   else
4687     gcc_cv_prog_LN=cp
4688   fi
4689 fi
4690 rm -f conftestdata_f conftestdata_t
4691
4692 fi
4693 LN="$gcc_cv_prog_LN"
4694 if test "$gcc_cv_prog_LN" = "ln"; then
4695   echo "$as_me:$LINENO: result: yes" >&5
4696 echo "${ECHO_T}yes" >&6
4697 else
4698   if test "$gcc_cv_prog_LN" = "ln -s"; then
4699     echo "$as_me:$LINENO: result: no, using ln -s" >&5
4700 echo "${ECHO_T}no, using ln -s" >&6
4701   else
4702     echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4703 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4704   fi
4705 fi
4706
4707 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4708 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4709 if test "${gcc_cv_prog_LN_S+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   rm -f conftestdata_t
4713 echo >conftestdata_f
4714 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4715 then
4716   gcc_cv_prog_LN_S="ln -s"
4717 else
4718   if ln conftestdata_f conftestdata_t 2>/dev/null
4719   then
4720     gcc_cv_prog_LN_S=ln
4721   else
4722     gcc_cv_prog_LN_S=cp
4723   fi
4724 fi
4725 rm -f conftestdata_f conftestdata_t
4726
4727 fi
4728 LN_S="$gcc_cv_prog_LN_S"
4729 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4730   echo "$as_me:$LINENO: result: yes" >&5
4731 echo "${ECHO_T}yes" >&6
4732 else
4733   if test "$gcc_cv_prog_LN_S" = "ln"; then
4734     echo "$as_me:$LINENO: result: no, using ln" >&5
4735 echo "${ECHO_T}no, using ln" >&6
4736   else
4737     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4738 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4739   fi
4740 fi
4741
4742 if test -n "$ac_tool_prefix"; then
4743   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4744 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4745 echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4747 if test "${ac_cv_prog_RANLIB+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750   if test -n "$RANLIB"; then
4751   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756   IFS=$as_save_IFS
4757   test -z "$as_dir" && as_dir=.
4758   for ac_exec_ext in '' $ac_executable_extensions; do
4759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4760     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762     break 2
4763   fi
4764 done
4765 done
4766
4767 fi
4768 fi
4769 RANLIB=$ac_cv_prog_RANLIB
4770 if test -n "$RANLIB"; then
4771   echo "$as_me:$LINENO: result: $RANLIB" >&5
4772 echo "${ECHO_T}$RANLIB" >&6
4773 else
4774   echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6
4776 fi
4777
4778 fi
4779 if test -z "$ac_cv_prog_RANLIB"; then
4780   ac_ct_RANLIB=$RANLIB
4781   # Extract the first word of "ranlib", so it can be a program name with args.
4782 set dummy ranlib; ac_word=$2
4783 echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4785 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   if test -n "$ac_ct_RANLIB"; then
4789   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4790 else
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796   for ac_exec_ext in '' $ac_executable_extensions; do
4797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798     ac_cv_prog_ac_ct_RANLIB="ranlib"
4799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800     break 2
4801   fi
4802 done
4803 done
4804
4805   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4806 fi
4807 fi
4808 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4809 if test -n "$ac_ct_RANLIB"; then
4810   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4811 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4812 else
4813   echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6
4815 fi
4816
4817   RANLIB=$ac_ct_RANLIB
4818 else
4819   RANLIB="$ac_cv_prog_RANLIB"
4820 fi
4821
4822 # Find a good install program.  We prefer a C program (faster),
4823 # so one script is as good as another.  But avoid the broken or
4824 # incompatible versions:
4825 # SysV /etc/install, /usr/sbin/install
4826 # SunOS /usr/etc/install
4827 # IRIX /sbin/install
4828 # AIX /bin/install
4829 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4830 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4831 # ./install, which can be erroneously created by make from ./install.sh.
4832 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4833 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4834 if test -z "$INSTALL"; then
4835 if test "${ac_cv_path_install+set}" = set; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4839   for ac_dir in $PATH; do
4840     # Account for people who put trailing slashes in PATH elements.
4841     case "$ac_dir/" in
4842     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4843     *)
4844       # OSF1 and SCO ODT 3.0 have their own names for install.
4845       for ac_prog in ginstall scoinst install; do
4846         if test -f $ac_dir/$ac_prog; then
4847           if test $ac_prog = install &&
4848             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4849             # AIX install.  It has an incompatible calling convention.
4850             # OSF/1 installbsd also uses dspmsg, but is usable.
4851             :
4852           else
4853             ac_cv_path_install="$ac_dir/$ac_prog -c"
4854             break 2
4855           fi
4856         fi
4857       done
4858       ;;
4859     esac
4860   done
4861   IFS="$ac_save_IFS"
4862
4863 fi
4864   if test "${ac_cv_path_install+set}" = set; then
4865     INSTALL="$ac_cv_path_install"
4866   else
4867     # As a last resort, use the slow shell script.  We don't cache a
4868     # path for INSTALL within a source directory, because that will
4869     # break other packages using the cache if that directory is
4870     # removed, or if the path is relative.
4871     INSTALL="$ac_install_sh"
4872   fi
4873 fi
4874 echo "$as_me:$LINENO: result: $INSTALL" >&5
4875 echo "${ECHO_T}$INSTALL" >&6
4876
4877 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4878 # It thinks the first close brace ends the variable substitution.
4879 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4880
4881 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4882
4883
4884 # See if cmp has --ignore-initial.
4885 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4886 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4887 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890    echo abfoo >t1
4891   echo cdfoo >t2
4892   gcc_cv_prog_cmp_skip=slowcompare
4893   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4894     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4895       :
4896     else
4897       gcc_cv_prog_cmp_skip=gnucompare
4898     fi
4899   fi
4900   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
4901     if cmp t1 t2 2 2 > /dev/null 2>&1; then
4902       if cmp t1 t2 1 1 > /dev/null 2>&1; then
4903         :
4904       else
4905         gcc_cv_prog_cmp_skip=fastcompare
4906       fi
4907     fi
4908   fi
4909   rm t1 t2
4910
4911 fi
4912 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4913 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4914 make_compare_target=$gcc_cv_prog_cmp_skip
4915
4916
4917
4918 # See if we have the mktemp command.
4919 # Extract the first word of "mktemp", so it can be a program name with args.
4920 set dummy mktemp; ac_word=$2
4921 echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4923 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4924   echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926   if test -n "$have_mktemp_command"; then
4927   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934   for ac_exec_ext in '' $ac_executable_extensions; do
4935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936     ac_cv_prog_have_mktemp_command="yes"
4937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941 done
4942
4943   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
4944 fi
4945 fi
4946 have_mktemp_command=$ac_cv_prog_have_mktemp_command
4947 if test -n "$have_mktemp_command"; then
4948   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4949 echo "${ECHO_T}$have_mktemp_command" >&6
4950 else
4951   echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4953 fi
4954
4955
4956 # Do we have a single-tree copy of texinfo?
4957 if test -f $srcdir/../texinfo/Makefile.in; then
4958   MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
4959   gcc_cv_prog_makeinfo_modern=yes
4960   echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4961 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4962 else
4963   # See if makeinfo has been installed and is modern enough
4964   # that we can use it.
4965   # Extract the first word of "makeinfo", so it can be a program name with args.
4966 set dummy makeinfo; ac_word=$2
4967 echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4969 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   if test -n "$MAKEINFO"; then
4973   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978   IFS=$as_save_IFS
4979   test -z "$as_dir" && as_dir=.
4980   for ac_exec_ext in '' $ac_executable_extensions; do
4981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982     ac_cv_prog_MAKEINFO="makeinfo"
4983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984     break 2
4985   fi
4986 done
4987 done
4988
4989 fi
4990 fi
4991 MAKEINFO=$ac_cv_prog_MAKEINFO
4992 if test -n "$MAKEINFO"; then
4993   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4994 echo "${ECHO_T}$MAKEINFO" >&6
4995 else
4996   echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6
4998 fi
4999
5000 if test -n "$MAKEINFO"; then
5001   # Found it, now check the version.
5002   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5003 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5004 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007     ac_prog_version=`$MAKEINFO --version 2>&1 |
5008                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5009   echo "configure:5009: version of makeinfo is $ac_prog_version" >&5
5010   case $ac_prog_version in
5011     '')     gcc_cv_prog_makeinfo_modern=no;;
5012     4.[2-9]*)
5013             gcc_cv_prog_makeinfo_modern=yes;;
5014     *)      gcc_cv_prog_makeinfo_modern=no;;
5015   esac
5016
5017 fi
5018 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5019 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5020 else
5021   gcc_cv_prog_makeinfo_modern=no
5022 fi
5023
5024 fi
5025
5026 if test $gcc_cv_prog_makeinfo_modern = no; then
5027   { echo "$as_me:$LINENO: WARNING:
5028 *** Makeinfo is missing or too old.
5029 *** Info documentation will not be built." >&5
5030 echo "$as_me: WARNING:
5031 *** Makeinfo is missing or too old.
5032 *** Info documentation will not be built." >&2;}
5033   BUILD_INFO=
5034 else
5035   BUILD_INFO=info
5036 fi
5037
5038 # Is pod2man recent enough to regenerate manpages?
5039 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5040 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5041 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5042   echo "$as_me:$LINENO: result: yes" >&5
5043 echo "${ECHO_T}yes" >&6
5044   GENERATED_MANPAGES=generated-manpages
5045 else
5046   echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6
5048   GENERATED_MANPAGES=
5049 fi
5050
5051 # How about lex?
5052 if test -f $srcdir/../flex/skel.c; then
5053   FLEX='$(objdir)/../flex/flex'
5054 else
5055   # Extract the first word of "flex", so it can be a program name with args.
5056 set dummy flex; ac_word=$2
5057 echo "$as_me:$LINENO: checking for $ac_word" >&5
5058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5059 if test "${ac_cv_prog_FLEX+set}" = set; then
5060   echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062   if test -n "$FLEX"; then
5063   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068   IFS=$as_save_IFS
5069   test -z "$as_dir" && as_dir=.
5070   for ac_exec_ext in '' $ac_executable_extensions; do
5071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072     ac_cv_prog_FLEX="flex"
5073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074     break 2
5075   fi
5076 done
5077 done
5078
5079   test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5080 fi
5081 fi
5082 FLEX=$ac_cv_prog_FLEX
5083 if test -n "$FLEX"; then
5084   echo "$as_me:$LINENO: result: $FLEX" >&5
5085 echo "${ECHO_T}$FLEX" >&6
5086 else
5087   echo "$as_me:$LINENO: result: no" >&5
5088 echo "${ECHO_T}no" >&6
5089 fi
5090
5091 fi
5092
5093 # Bison?
5094 # The -L switch is so bison can find its skeleton file.
5095 if test -f $srcdir/../bison/bison.simple; then
5096   BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5097 else
5098   # Extract the first word of "bison", so it can be a program name with args.
5099 set dummy bison; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_prog_BISON+set}" = set; then
5103   echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105   if test -n "$BISON"; then
5106   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113   for ac_exec_ext in '' $ac_executable_extensions; do
5114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115     ac_cv_prog_BISON="bison"
5116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120 done
5121
5122   test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5123 fi
5124 fi
5125 BISON=$ac_cv_prog_BISON
5126 if test -n "$BISON"; then
5127   echo "$as_me:$LINENO: result: $BISON" >&5
5128 echo "${ECHO_T}$BISON" >&6
5129 else
5130   echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5132 fi
5133
5134 fi
5135
5136 # --------------------
5137 # Checks for C headers
5138 # --------------------
5139
5140 echo "$as_me:$LINENO: checking for GNU C library" >&5
5141 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5142 if test "${gcc_cv_glibc+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   cat >conftest.$ac_ext <<_ACEOF
5146 #line $LINENO "configure"
5147 /* confdefs.h.  */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h.  */
5152 #include <features.h>
5153 int
5154 main ()
5155 {
5156
5157 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5158 #error Not a GNU C library system
5159 #endif
5160   ;
5161   return 0;
5162 }
5163 _ACEOF
5164 rm -f conftest.$ac_objext
5165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5166   (eval $ac_compile) 2>&5
5167   ac_status=$?
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } &&
5170          { ac_try='test -s conftest.$ac_objext'
5171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172   (eval $ac_try) 2>&5
5173   ac_status=$?
5174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175   (exit $ac_status); }; }; then
5176   gcc_cv_glibc=yes
5177 else
5178   echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5180
5181 gcc_cv_glibc=no
5182 fi
5183 rm -f conftest.$ac_objext conftest.$ac_ext
5184 fi
5185
5186 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5187 echo "${ECHO_T}$gcc_cv_glibc" >&6
5188 if test $gcc_cv_glibc = yes; then
5189
5190 cat >>confdefs.h <<\_ACEOF
5191 #define _GNU_SOURCE 1
5192 _ACEOF
5193
5194 fi
5195
5196 # Need to reject headers which give warnings, so that the -Werror bootstrap
5197 # works later. *sigh*  This needs to come before all header checks.
5198
5199 ac_c_preproc_warn_flag=yes
5200
5201 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5202 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5203 if test "${ac_cv_header_stdc+set}" = set; then
5204   echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206   cat >conftest.$ac_ext <<_ACEOF
5207 #line $LINENO "configure"
5208 /* confdefs.h.  */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h.  */
5213 #include <stdlib.h>
5214 #include <stdarg.h>
5215 #include <string.h>
5216 #include <float.h>
5217
5218 int
5219 main ()
5220 {
5221
5222   ;
5223   return 0;
5224 }
5225 _ACEOF
5226 rm -f conftest.$ac_objext
5227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228   (eval $ac_compile) 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); } &&
5232          { ac_try='test -s conftest.$ac_objext'
5233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234   (eval $ac_try) 2>&5
5235   ac_status=$?
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); }; }; then
5238   ac_cv_header_stdc=yes
5239 else
5240   echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5242
5243 ac_cv_header_stdc=no
5244 fi
5245 rm -f conftest.$ac_objext conftest.$ac_ext
5246
5247 if test $ac_cv_header_stdc = yes; then
5248   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5249   cat >conftest.$ac_ext <<_ACEOF
5250 #line $LINENO "configure"
5251 /* confdefs.h.  */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h.  */
5256 #include <string.h>
5257
5258 _ACEOF
5259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5260   $EGREP "memchr" >/dev/null 2>&1; then
5261   :
5262 else
5263   ac_cv_header_stdc=no
5264 fi
5265 rm -f conftest*
5266
5267 fi
5268
5269 if test $ac_cv_header_stdc = yes; then
5270   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5271   cat >conftest.$ac_ext <<_ACEOF
5272 #line $LINENO "configure"
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278 #include <stdlib.h>
5279
5280 _ACEOF
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282   $EGREP "free" >/dev/null 2>&1; then
5283   :
5284 else
5285   ac_cv_header_stdc=no
5286 fi
5287 rm -f conftest*
5288
5289 fi
5290
5291 if test $ac_cv_header_stdc = yes; then
5292   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5293   if test "$cross_compiling" = yes; then
5294   :
5295 else
5296   cat >conftest.$ac_ext <<_ACEOF
5297 #line $LINENO "configure"
5298 /* confdefs.h.  */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h.  */
5303 #include <ctype.h>
5304 #if ((' ' & 0x0FF) == 0x020)
5305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5307 #else
5308 # define ISLOWER(c) \
5309                    (('a' <= (c) && (c) <= 'i') \
5310                      || ('j' <= (c) && (c) <= 'r') \
5311                      || ('s' <= (c) && (c) <= 'z'))
5312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5313 #endif
5314
5315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5316 int
5317 main ()
5318 {
5319   int i;
5320   for (i = 0; i < 256; i++)
5321     if (XOR (islower (i), ISLOWER (i))
5322         || toupper (i) != TOUPPER (i))
5323       exit(2);
5324   exit (0);
5325 }
5326 _ACEOF
5327 rm -f conftest$ac_exeext
5328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5329   (eval $ac_link) 2>&5
5330   ac_status=$?
5331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; }; then
5338   :
5339 else
5340   echo "$as_me: program exited with status $ac_status" >&5
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5343
5344 ( exit $ac_status )
5345 ac_cv_header_stdc=no
5346 fi
5347 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5348 fi
5349 fi
5350 fi
5351 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5352 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5353 if test $ac_cv_header_stdc = yes; then
5354
5355 cat >>confdefs.h <<\_ACEOF
5356 #define STDC_HEADERS 1
5357 _ACEOF
5358
5359 fi
5360
5361 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5362 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5363 if test "${ac_cv_header_time+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   cat >conftest.$ac_ext <<_ACEOF
5367 #line $LINENO "configure"
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 #include <sys/types.h>
5374 #include <sys/time.h>
5375 #include <time.h>
5376
5377 int
5378 main ()
5379 {
5380 if ((struct tm *) 0)
5381 return 0;
5382   ;
5383   return 0;
5384 }
5385 _ACEOF
5386 rm -f conftest.$ac_objext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388   (eval $ac_compile) 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); } &&
5392          { ac_try='test -s conftest.$ac_objext'
5393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394   (eval $ac_try) 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); }; }; then
5398   ac_cv_header_time=yes
5399 else
5400   echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5402
5403 ac_cv_header_time=no
5404 fi
5405 rm -f conftest.$ac_objext conftest.$ac_ext
5406 fi
5407 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5408 echo "${ECHO_T}$ac_cv_header_time" >&6
5409 if test $ac_cv_header_time = yes; then
5410
5411 cat >>confdefs.h <<\_ACEOF
5412 #define TIME_WITH_SYS_TIME 1
5413 _ACEOF
5414
5415 fi
5416
5417 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5418 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5419 if test "${ac_cv_header_stdbool_h+set}" = set; then
5420   echo $ECHO_N "(cached) $ECHO_C" >&6
5421 else
5422   cat >conftest.$ac_ext <<_ACEOF
5423 #line $LINENO "configure"
5424 /* confdefs.h.  */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h.  */
5429 #include <stdbool.h>
5430 int
5431 main ()
5432 {
5433 bool foo = false;
5434   ;
5435   return 0;
5436 }
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440   (eval $ac_compile) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); } &&
5444          { ac_try='test -s conftest.$ac_objext'
5445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446   (eval $ac_try) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); }; }; then
5450   ac_cv_header_stdbool_h=yes
5451 else
5452   echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455 ac_cv_header_stdbool_h=no
5456 fi
5457 rm -f conftest.$ac_objext conftest.$ac_ext
5458 fi
5459 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5460 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5461 if test $ac_cv_header_stdbool_h = yes; then
5462
5463 cat >>confdefs.h <<\_ACEOF
5464 #define HAVE_STDBOOL_H 1
5465 _ACEOF
5466
5467 fi
5468
5469 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5470 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5471 if test "${gcc_cv_header_string+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   cat >conftest.$ac_ext <<_ACEOF
5475 #line $LINENO "configure"
5476 /* confdefs.h.  */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h.  */
5481 #include <string.h>
5482 #include <strings.h>
5483 int
5484 main ()
5485 {
5486
5487   ;
5488   return 0;
5489 }
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493   (eval $ac_compile) 2>&5
5494   ac_status=$?
5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); } &&
5497          { ac_try='test -s conftest.$ac_objext'
5498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499   (eval $ac_try) 2>&5
5500   ac_status=$?
5501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502   (exit $ac_status); }; }; then
5503   gcc_cv_header_string=yes
5504 else
5505   echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5507
5508 gcc_cv_header_string=no
5509 fi
5510 rm -f conftest.$ac_objext conftest.$ac_ext
5511 fi
5512 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5513 echo "${ECHO_T}$gcc_cv_header_string" >&6
5514 if test $gcc_cv_header_string = yes; then
5515
5516 cat >>confdefs.h <<\_ACEOF
5517 #define STRING_WITH_STRINGS 1
5518 _ACEOF
5519
5520 fi
5521
5522 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5523 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5524 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5525   echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527   cat >conftest.$ac_ext <<_ACEOF
5528 #line $LINENO "configure"
5529 /* confdefs.h.  */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h.  */
5534 #include <sys/types.h>
5535 #include <sys/wait.h>
5536 #ifndef WEXITSTATUS
5537 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5538 #endif
5539 #ifndef WIFEXITED
5540 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5541 #endif
5542
5543 int
5544 main ()
5545 {
5546   int s;
5547   wait (&s);
5548   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5549   ;
5550   return 0;
5551 }
5552 _ACEOF
5553 rm -f conftest.$ac_objext
5554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5555   (eval $ac_compile) 2>&5
5556   ac_status=$?
5557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); } &&
5559          { ac_try='test -s conftest.$ac_objext'
5560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561   (eval $ac_try) 2>&5
5562   ac_status=$?
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); }; }; then
5565   ac_cv_header_sys_wait_h=yes
5566 else
5567   echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5569
5570 ac_cv_header_sys_wait_h=no
5571 fi
5572 rm -f conftest.$ac_objext conftest.$ac_ext
5573 fi
5574 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5575 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5576 if test $ac_cv_header_sys_wait_h = yes; then
5577
5578 cat >>confdefs.h <<\_ACEOF
5579 #define HAVE_SYS_WAIT_H 1
5580 _ACEOF
5581
5582 fi
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5606                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5607                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
5608                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5609 do
5610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5611 echo "$as_me:$LINENO: checking for $ac_header" >&5
5612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5614   echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616   cat >conftest.$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
5618 /* confdefs.h.  */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h.  */
5623 #include <$ac_header>
5624 _ACEOF
5625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5626   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5627   ac_status=$?
5628   grep -v '^ *+' conftest.er1 >conftest.err
5629   rm -f conftest.er1
5630   cat conftest.err >&5
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); } >/dev/null; then
5633   if test -s conftest.err; then
5634     ac_cpp_err=$ac_c_preproc_warn_flag
5635   else
5636     ac_cpp_err=
5637   fi
5638 else
5639   ac_cpp_err=yes
5640 fi
5641 if test -z "$ac_cpp_err"; then
5642   eval "$as_ac_Header=yes"
5643 else
5644   echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5646
5647   eval "$as_ac_Header=no"
5648 fi
5649 rm -f conftest.err conftest.$ac_ext
5650 fi
5651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5654   cat >>confdefs.h <<_ACEOF
5655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5656 _ACEOF
5657
5658 fi
5659 done
5660
5661
5662 # Check for thread headers.
5663 echo "$as_me:$LINENO: checking for thread.h" >&5
5664 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5665 if test "${ac_cv_header_thread_h+set}" = set; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668   cat >conftest.$ac_ext <<_ACEOF
5669 #line $LINENO "configure"
5670 /* confdefs.h.  */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h.  */
5675 #include <thread.h>
5676 _ACEOF
5677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5678   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5679   ac_status=$?
5680   grep -v '^ *+' conftest.er1 >conftest.err
5681   rm -f conftest.er1
5682   cat conftest.err >&5
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } >/dev/null; then
5685   if test -s conftest.err; then
5686     ac_cpp_err=$ac_c_preproc_warn_flag
5687   else
5688     ac_cpp_err=
5689   fi
5690 else
5691   ac_cpp_err=yes
5692 fi
5693 if test -z "$ac_cpp_err"; then
5694   ac_cv_header_thread_h=yes
5695 else
5696   echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699   ac_cv_header_thread_h=no
5700 fi
5701 rm -f conftest.err conftest.$ac_ext
5702 fi
5703 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5704 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5705 if test $ac_cv_header_thread_h = yes; then
5706   have_thread_h=yes
5707 else
5708   have_thread_h=
5709 fi
5710
5711 echo "$as_me:$LINENO: checking for pthread.h" >&5
5712 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5713 if test "${ac_cv_header_pthread_h+set}" = set; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   cat >conftest.$ac_ext <<_ACEOF
5717 #line $LINENO "configure"
5718 /* confdefs.h.  */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h.  */
5723 #include <pthread.h>
5724 _ACEOF
5725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5727   ac_status=$?
5728   grep -v '^ *+' conftest.er1 >conftest.err
5729   rm -f conftest.er1
5730   cat conftest.err >&5
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); } >/dev/null; then
5733   if test -s conftest.err; then
5734     ac_cpp_err=$ac_c_preproc_warn_flag
5735   else
5736     ac_cpp_err=
5737   fi
5738 else
5739   ac_cpp_err=yes
5740 fi
5741 if test -z "$ac_cpp_err"; then
5742   ac_cv_header_pthread_h=yes
5743 else
5744   echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747   ac_cv_header_pthread_h=no
5748 fi
5749 rm -f conftest.err conftest.$ac_ext
5750 fi
5751 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5752 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5753 if test $ac_cv_header_pthread_h = yes; then
5754   have_pthread_h=yes
5755 else
5756   have_pthread_h=
5757 fi
5758
5759
5760 # These tests can't be done till we know if we have limits.h.
5761 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5762 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5763 if test "${gcc_cv_decl_char_bit+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   cat >conftest.$ac_ext <<_ACEOF
5767 #line $LINENO "configure"
5768 /* confdefs.h.  */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h.  */
5773 #ifdef HAVE_LIMITS_H
5774 #include <limits.h>
5775 #endif
5776 #ifdef CHAR_BIT
5777 found
5778 #endif
5779 _ACEOF
5780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5781   $EGREP "found" >/dev/null 2>&1; then
5782   gcc_cv_decl_char_bit=yes
5783 else
5784   gcc_cv_decl_char_bit=no
5785 fi
5786 rm -f conftest*
5787
5788
5789 fi
5790 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5791 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
5792 if test $gcc_cv_decl_char_bit = no; then
5793   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5794 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
5795 if test "${gcc_cv_c_nbby+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   i=8
5799  gcc_cv_c_nbby=
5800  while test $i -lt 65; do
5801    cat >conftest.$ac_ext <<_ACEOF
5802 #line $LINENO "configure"
5803 /* confdefs.h.  */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h.  */
5808
5809 int
5810 main ()
5811 {
5812 switch(0) {
5813   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5814   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5815   ; }
5816   ;
5817   return 0;
5818 }
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822   (eval $ac_compile) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } &&
5826          { ac_try='test -s conftest.$ac_objext'
5827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828   (eval $ac_try) 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }; }; then
5832   gcc_cv_c_nbby=$i; break
5833 else
5834   echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837 fi
5838 rm -f conftest.$ac_objext conftest.$ac_ext
5839    i=`expr $i + 1`
5840  done
5841  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
5842
5843 fi
5844 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
5845 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
5846 if test $gcc_cv_c_nbby = failed; then
5847   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
5848 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
5849    { (exit 1); exit 1; }; }
5850 else
5851
5852 cat >>confdefs.h <<_ACEOF
5853 #define CHAR_BIT $gcc_cv_c_nbby
5854 _ACEOF
5855
5856 fi
5857 fi
5858 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5859 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5860 if test "${ac_cv_c_bigendian+set}" = set; then
5861   echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863   ac_cv_c_bigendian=unknown
5864 # See if sys/param.h defines the BYTE_ORDER macro.
5865 cat >conftest.$ac_ext <<_ACEOF
5866 #line $LINENO "configure"
5867 /* confdefs.h.  */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h.  */
5872 #include <sys/types.h>
5873 #include <sys/param.h>
5874 int
5875 main ()
5876 {
5877
5878 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5879  bogus endian macros
5880 #endif
5881   ;
5882   return 0;
5883 }
5884 _ACEOF
5885 rm -f conftest.$ac_objext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5887   (eval $ac_compile) 2>&5
5888   ac_status=$?
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); } &&
5891          { ac_try='test -s conftest.$ac_objext'
5892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893   (eval $ac_try) 2>&5
5894   ac_status=$?
5895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896   (exit $ac_status); }; }; then
5897   # It does; now see whether it defined to BIG_ENDIAN or not.
5898 cat >conftest.$ac_ext <<_ACEOF
5899 #line $LINENO "configure"
5900 /* confdefs.h.  */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h.  */
5905 #include <sys/types.h>
5906 #include <sys/param.h>
5907 int
5908 main ()
5909 {
5910
5911 #if BYTE_ORDER != BIG_ENDIAN
5912  not big endian
5913 #endif
5914   ;
5915   return 0;
5916 }
5917 _ACEOF
5918 rm -f conftest.$ac_objext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920   (eval $ac_compile) 2>&5
5921   ac_status=$?
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); } &&
5924          { ac_try='test -s conftest.$ac_objext'
5925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926   (eval $ac_try) 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); }; }; then
5930   ac_cv_c_bigendian=yes
5931 else
5932   echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 ac_cv_c_bigendian=no
5936 fi
5937 rm -f conftest.$ac_objext conftest.$ac_ext
5938 else
5939   echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 fi
5943 rm -f conftest.$ac_objext conftest.$ac_ext
5944 if test $ac_cv_c_bigendian = unknown; then
5945 if test "$cross_compiling" = yes; then
5946    echo $ac_n "cross-compiling... " 2>&6
5947 else
5948   cat >conftest.$ac_ext <<_ACEOF
5949 #line $LINENO "configure"
5950 /* confdefs.h.  */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h.  */
5955 main () {
5956   /* Are we little or big endian?  From Harbison&Steele.  */
5957   union
5958   {
5959     long l;
5960     char c[sizeof (long)];
5961   } u;
5962   u.l = 1;
5963   exit (u.c[sizeof (long) - 1] == 1);
5964 }
5965 _ACEOF
5966 rm -f conftest$ac_exeext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5968   (eval $ac_link) 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973   (eval $ac_try) 2>&5
5974   ac_status=$?
5975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976   (exit $ac_status); }; }; then
5977   ac_cv_c_bigendian=no
5978 else
5979   echo "$as_me: program exited with status $ac_status" >&5
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5982
5983 ( exit $ac_status )
5984 ac_cv_c_bigendian=yes
5985 fi
5986 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5987 fi
5988 fi
5989 fi
5990 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5991 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5992 if test $ac_cv_c_bigendian = unknown; then
5993 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
5994 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
5995
5996 cat >conftest.c <<EOF
5997 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5998 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5999 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6000 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6001 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6002 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6003 int main() { _ascii (); _ebcdic (); return 0; }
6004 EOF
6005  if test -f conftest.c ; then
6006      if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6007         if test `grep -l BIGenDianSyS conftest.o` ; then
6008            echo $ac_n ' big endian probe OK, ' 1>&6
6009            ac_cv_c_bigendian=yes
6010         fi
6011         if test `grep -l LiTTleEnDian conftest.o` ; then
6012            echo $ac_n ' little endian probe OK, ' 1>&6
6013            if test $ac_cv_c_bigendian = yes ; then
6014             ac_cv_c_bigendian=unknown;
6015            else
6016             ac_cv_c_bigendian=no
6017            fi
6018         fi
6019         echo $ac_n 'guessing bigendian ...  ' >&6
6020      fi
6021   fi
6022 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6023 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6024 fi
6025 if test $ac_cv_c_bigendian = yes; then
6026
6027 cat >>confdefs.h <<\_ACEOF
6028 #define WORDS_BIGENDIAN 1
6029 _ACEOF
6030
6031
6032 cat >>confdefs.h <<\_ACEOF
6033 #define HOST_WORDS_BIG_ENDIAN 1
6034 _ACEOF
6035
6036   BYTEORDER=4321
6037 else
6038   BYTEORDER=1234
6039 fi
6040
6041 cat >>confdefs.h <<_ACEOF
6042 #define BYTEORDER $BYTEORDER
6043 _ACEOF
6044
6045 if test $ac_cv_c_bigendian = unknown; then
6046   { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6047 echo "$as_me: error: unknown endianess - sorry" >&2;}
6048    { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6049 fi
6050
6051
6052 # --------
6053 # UNSORTED
6054 # --------
6055
6056 # Stage specific cflags for build.
6057 stage1_cflags=
6058 case $build in
6059 vax-*-*)
6060   if test x$GCC = xyes
6061   then
6062     stage1_cflags="-Wa,-J"
6063   else
6064     stage1_cflags="-J"
6065   fi
6066   ;;
6067 powerpc-*-darwin*)
6068   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6069   # sources; use -no-cpp-precomp to get to GNU cpp.
6070   # Apple's GCC has bugs in designated initializer handling, so disable
6071   # that too.
6072   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6073   ;;
6074 esac
6075
6076
6077 # These libraries may be used by collect2.
6078 # We may need a special search path to get them linked.
6079 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6080 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6081 if test "${gcc_cv_collect2_libs+set}" = set; then
6082   echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084   save_LIBS="$LIBS"
6085 for libs in '' -lld -lmld \
6086                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6087                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6088 do
6089         LIBS="$libs"
6090         cat >conftest.$ac_ext <<_ACEOF
6091 #line $LINENO "configure"
6092 /* confdefs.h.  */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h.  */
6097
6098 /* Override any gcc2 internal prototype to avoid an error.  */
6099 #ifdef __cplusplus
6100 extern "C"
6101 #endif
6102 /* We use char because int might match the return type of a gcc2
6103    builtin and then its argument prototype would still apply.  */
6104 char ldopen ();
6105 int
6106 main ()
6107 {
6108 ldopen ();
6109   ;
6110   return 0;
6111 }
6112 _ACEOF
6113 rm -f conftest.$ac_objext conftest$ac_exeext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6115   (eval $ac_link) 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } &&
6119          { ac_try='test -s conftest$ac_exeext'
6120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121   (eval $ac_try) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); }; }; then
6125   gcc_cv_collect2_libs="$libs"; break
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130 fi
6131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6132 done
6133 LIBS="$save_LIBS"
6134 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6135 fi
6136 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6137 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6138 case $gcc_cv_collect2_libs in
6139         "none required")        ;;
6140         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6141 esac
6142
6143
6144 # When building Ada code on Alpha, we need exc_resume which is usually in
6145 # -lexc.  So test for it.
6146 save_LIBS="$LIBS"
6147 LIBS=
6148 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6149 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6150 if test "${ac_cv_search_exc_resume+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   ac_func_search_save_LIBS=$LIBS
6154 ac_cv_search_exc_resume=no
6155 cat >conftest.$ac_ext <<_ACEOF
6156 #line $LINENO "configure"
6157 /* confdefs.h.  */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h.  */
6162
6163 /* Override any gcc2 internal prototype to avoid an error.  */
6164 #ifdef __cplusplus
6165 extern "C"
6166 #endif
6167 /* We use char because int might match the return type of a gcc2
6168    builtin and then its argument prototype would still apply.  */
6169 char exc_resume ();
6170 int
6171 main ()
6172 {
6173 exc_resume ();
6174   ;
6175   return 0;
6176 }
6177 _ACEOF
6178 rm -f conftest.$ac_objext conftest$ac_exeext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6180   (eval $ac_link) 2>&5
6181   ac_status=$?
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); } &&
6184          { ac_try='test -s conftest$ac_exeext'
6185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186   (eval $ac_try) 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); }; }; then
6190   ac_cv_search_exc_resume="none required"
6191 else
6192   echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195 fi
6196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6197 if test "$ac_cv_search_exc_resume" = no; then
6198   for ac_lib in exc; do
6199     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6200     cat >conftest.$ac_ext <<_ACEOF
6201 #line $LINENO "configure"
6202 /* confdefs.h.  */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h.  */
6207
6208 /* Override any gcc2 internal prototype to avoid an error.  */
6209 #ifdef __cplusplus
6210 extern "C"
6211 #endif
6212 /* We use char because int might match the return type of a gcc2
6213    builtin and then its argument prototype would still apply.  */
6214 char exc_resume ();
6215 int
6216 main ()
6217 {
6218 exc_resume ();
6219   ;
6220   return 0;
6221 }
6222 _ACEOF
6223 rm -f conftest.$ac_objext conftest$ac_exeext
6224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6225   (eval $ac_link) 2>&5
6226   ac_status=$?
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); } &&
6229          { ac_try='test -s conftest$ac_exeext'
6230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231   (eval $ac_try) 2>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); }; }; then
6235   ac_cv_search_exc_resume="-l$ac_lib"
6236 break
6237 else
6238   echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6240
6241 fi
6242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6243   done
6244 fi
6245 LIBS=$ac_func_search_save_LIBS
6246 fi
6247 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6248 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6249 if test "$ac_cv_search_exc_resume" != no; then
6250   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6251
6252 fi
6253
6254 GNAT_LIBEXC="$LIBS"
6255 LIBS="$save_LIBS"
6256
6257
6258 # Some systems put ldexp and frexp in libm instead of libc; assume
6259 # they're both in the same place.  jcf-dump needs them.
6260 save_LIBS="$LIBS"
6261 LIBS=
6262 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6263 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6264 if test "${ac_cv_search_ldexp+set}" = set; then
6265   echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267   ac_func_search_save_LIBS=$LIBS
6268 ac_cv_search_ldexp=no
6269 cat >conftest.$ac_ext <<_ACEOF
6270 #line $LINENO "configure"
6271 /* confdefs.h.  */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h.  */
6276
6277 /* Override any gcc2 internal prototype to avoid an error.  */
6278 #ifdef __cplusplus
6279 extern "C"
6280 #endif
6281 /* We use char because int might match the return type of a gcc2
6282    builtin and then its argument prototype would still apply.  */
6283 char ldexp ();
6284 int
6285 main ()
6286 {
6287 ldexp ();
6288   ;
6289   return 0;
6290 }
6291 _ACEOF
6292 rm -f conftest.$ac_objext conftest$ac_exeext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6294   (eval $ac_link) 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); } &&
6298          { ac_try='test -s conftest$ac_exeext'
6299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300   (eval $ac_try) 2>&5
6301   ac_status=$?
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); }; }; then
6304   ac_cv_search_ldexp="none required"
6305 else
6306   echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309 fi
6310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6311 if test "$ac_cv_search_ldexp" = no; then
6312   for ac_lib in m; do
6313     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6314     cat >conftest.$ac_ext <<_ACEOF
6315 #line $LINENO "configure"
6316 /* confdefs.h.  */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h.  */
6321
6322 /* Override any gcc2 internal prototype to avoid an error.  */
6323 #ifdef __cplusplus
6324 extern "C"
6325 #endif
6326 /* We use char because int might match the return type of a gcc2
6327    builtin and then its argument prototype would still apply.  */
6328 char ldexp ();
6329 int
6330 main ()
6331 {
6332 ldexp ();
6333   ;
6334   return 0;
6335 }
6336 _ACEOF
6337 rm -f conftest.$ac_objext conftest$ac_exeext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6339   (eval $ac_link) 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); } &&
6343          { ac_try='test -s conftest$ac_exeext'
6344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345   (eval $ac_try) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }; }; then
6349   ac_cv_search_ldexp="-l$ac_lib"
6350 break
6351 else
6352   echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6354
6355 fi
6356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6357   done
6358 fi
6359 LIBS=$ac_func_search_save_LIBS
6360 fi
6361 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6362 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6363 if test "$ac_cv_search_ldexp" != no; then
6364   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6365
6366 fi
6367
6368 LDEXP_LIB="$LIBS"
6369 LIBS="$save_LIBS"
6370
6371
6372 # Use <inttypes.h> only if it exists,
6373 # doesn't clash with <sys/types.h>, and declares intmax_t.
6374 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6375 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6376 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6377   echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379   cat >conftest.$ac_ext <<_ACEOF
6380 #line $LINENO "configure"
6381 /* confdefs.h.  */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h.  */
6386 #include <sys/types.h>
6387 #include <inttypes.h>
6388 int
6389 main ()
6390 {
6391 intmax_t i = -1;
6392   ;
6393   return 0;
6394 }
6395 _ACEOF
6396 rm -f conftest.$ac_objext
6397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6398   (eval $ac_compile) 2>&5
6399   ac_status=$?
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); } &&
6402          { ac_try='test -s conftest.$ac_objext'
6403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404   (eval $ac_try) 2>&5
6405   ac_status=$?
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); }; }; then
6408   gcc_cv_header_inttypes_h=yes
6409 else
6410   echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6412
6413 gcc_cv_header_inttypes_h=no
6414 fi
6415 rm -f conftest.$ac_objext conftest.$ac_ext
6416 fi
6417
6418 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6419 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6420 if test $gcc_cv_header_inttypes_h = yes; then
6421
6422 cat >>confdefs.h <<\_ACEOF
6423 #define HAVE_INTTYPES_H 1
6424 _ACEOF
6425
6426 fi
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6455         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6456         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6457         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6458         setlocale
6459 do
6460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6461 echo "$as_me:$LINENO: checking for $ac_func" >&5
6462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6463 if eval "test \"\${$as_ac_var+set}\" = set"; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6468 /* confdefs.h.  */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h.  */
6473 /* System header to define __stub macros and hopefully few prototypes,
6474     which can conflict with char $ac_func (); below.
6475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6476     <limits.h> exists even on freestanding compilers.  */
6477 #ifdef __STDC__
6478 # include <limits.h>
6479 #else
6480 # include <assert.h>
6481 #endif
6482 /* Override any gcc2 internal prototype to avoid an error.  */
6483 #ifdef __cplusplus
6484 extern "C"
6485 {
6486 #endif
6487 /* We use char because int might match the return type of a gcc2
6488    builtin and then its argument prototype would still apply.  */
6489 char $ac_func ();
6490 /* The GNU C library defines this for functions which it implements
6491     to always fail with ENOSYS.  Some functions are actually named
6492     something starting with __ and the normal name is an alias.  */
6493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6494 choke me
6495 #else
6496 char (*f) () = $ac_func;
6497 #endif
6498 #ifdef __cplusplus
6499 }
6500 #endif
6501
6502 int
6503 main ()
6504 {
6505 return f != $ac_func;
6506   ;
6507   return 0;
6508 }
6509 _ACEOF
6510 rm -f conftest.$ac_objext conftest$ac_exeext
6511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6512   (eval $ac_link) 2>&5
6513   ac_status=$?
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); } &&
6516          { ac_try='test -s conftest$ac_exeext'
6517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518   (eval $ac_try) 2>&5
6519   ac_status=$?
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); }; }; then
6522   eval "$as_ac_var=yes"
6523 else
6524   echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6526
6527 eval "$as_ac_var=no"
6528 fi
6529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6530 fi
6531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6533 if test `eval echo '${'$as_ac_var'}'` = yes; then
6534   cat >>confdefs.h <<_ACEOF
6535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6536 _ACEOF
6537
6538 fi
6539 done
6540
6541
6542 if test x$ac_cv_func_mbstowcs = xyes; then
6543   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6544 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6545 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6546   echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548       if test "$cross_compiling" = yes; then
6549   gcc_cv_func_mbstowcs_works=yes
6550 else
6551   cat >conftest.$ac_ext <<_ACEOF
6552 #line $LINENO "configure"
6553 /* confdefs.h.  */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h.  */
6558 #include <stdlib.h>
6559 int main()
6560 {
6561   mbstowcs(0, "", 0);
6562   return 0;
6563 }
6564 _ACEOF
6565 rm -f conftest$ac_exeext
6566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6567   (eval $ac_link) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572   (eval $ac_try) 2>&5
6573   ac_status=$?
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); }; }; then
6576   gcc_cv_func_mbstowcs_works=yes
6577 else
6578   echo "$as_me: program exited with status $ac_status" >&5
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582 ( exit $ac_status )
6583 gcc_cv_func_mbstowcs_works=no
6584 fi
6585 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6586 fi
6587 fi
6588 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6589 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6590   if test x$gcc_cv_func_mbstowcs_works = xyes; then
6591
6592 cat >>confdefs.h <<\_ACEOF
6593 #define HAVE_WORKING_MBSTOWCS 1
6594 _ACEOF
6595
6596   fi
6597 fi
6598
6599 echo "$as_me:$LINENO: checking for ssize_t" >&5
6600 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6601 if test "${ac_cv_type_ssize_t+set}" = set; then
6602   echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604   cat >conftest.$ac_ext <<_ACEOF
6605 #line $LINENO "configure"
6606 /* confdefs.h.  */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h.  */
6611 $ac_includes_default
6612 int
6613 main ()
6614 {
6615 if ((ssize_t *) 0)
6616   return 0;
6617 if (sizeof (ssize_t))
6618   return 0;
6619   ;
6620   return 0;
6621 }
6622 _ACEOF
6623 rm -f conftest.$ac_objext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625   (eval $ac_compile) 2>&5
6626   ac_status=$?
6627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628   (exit $ac_status); } &&
6629          { ac_try='test -s conftest.$ac_objext'
6630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631   (eval $ac_try) 2>&5
6632   ac_status=$?
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); }; }; then
6635   ac_cv_type_ssize_t=yes
6636 else
6637   echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6639
6640 ac_cv_type_ssize_t=no
6641 fi
6642 rm -f conftest.$ac_objext conftest.$ac_ext
6643 fi
6644 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6645 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6646 if test $ac_cv_type_ssize_t = yes; then
6647   :
6648 else
6649
6650 cat >>confdefs.h <<_ACEOF
6651 #define ssize_t int
6652 _ACEOF
6653
6654 fi
6655
6656
6657 # Try to determine the array type of the second argument of getgroups
6658 # for the target system (int or gid_t).
6659 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6660 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6661 if test "${ac_cv_type_uid_t+set}" = set; then
6662   echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664   cat >conftest.$ac_ext <<_ACEOF
6665 #line $LINENO "configure"
6666 /* confdefs.h.  */
6667 _ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h.  */
6671 #include <sys/types.h>
6672
6673 _ACEOF
6674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6675   $EGREP "uid_t" >/dev/null 2>&1; then
6676   ac_cv_type_uid_t=yes
6677 else
6678   ac_cv_type_uid_t=no
6679 fi
6680 rm -f conftest*
6681
6682 fi
6683 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6684 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6685 if test $ac_cv_type_uid_t = no; then
6686
6687 cat >>confdefs.h <<\_ACEOF
6688 #define uid_t int
6689 _ACEOF
6690
6691
6692 cat >>confdefs.h <<\_ACEOF
6693 #define gid_t int
6694 _ACEOF
6695
6696 fi
6697
6698 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6699 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6700 if test "${ac_cv_type_getgroups+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   if test "$cross_compiling" = yes; then
6704   ac_cv_type_getgroups=cross
6705 else
6706   cat >conftest.$ac_ext <<_ACEOF
6707 #line $LINENO "configure"
6708 /* confdefs.h.  */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h.  */
6713 /* Thanks to Mike Rendell for this test.  */
6714 #include <sys/types.h>
6715 #define NGID 256
6716 #undef MAX
6717 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6718
6719 int
6720 main ()
6721 {
6722   gid_t gidset[NGID];
6723   int i, n;
6724   union { gid_t gval; long lval; }  val;
6725
6726   val.lval = -1;
6727   for (i = 0; i < NGID; i++)
6728     gidset[i] = val.gval;
6729   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6730                  gidset);
6731   /* Exit non-zero if getgroups seems to require an array of ints.  This
6732      happens when gid_t is short but getgroups modifies an array of ints.  */
6733   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6734 }
6735 _ACEOF
6736 rm -f conftest$ac_exeext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738   (eval $ac_link) 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743   (eval $ac_try) 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); }; }; then
6747   ac_cv_type_getgroups=gid_t
6748 else
6749   echo "$as_me: program exited with status $ac_status" >&5
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 ( exit $ac_status )
6754 ac_cv_type_getgroups=int
6755 fi
6756 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6757 fi
6758 if test $ac_cv_type_getgroups = cross; then
6759         cat >conftest.$ac_ext <<_ACEOF
6760 #line $LINENO "configure"
6761 /* confdefs.h.  */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h.  */
6766 #include <unistd.h>
6767
6768 _ACEOF
6769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6770   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6771   ac_cv_type_getgroups=gid_t
6772 else
6773   ac_cv_type_getgroups=int
6774 fi
6775 rm -f conftest*
6776
6777 fi
6778 fi
6779 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6780 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6781
6782 cat >>confdefs.h <<_ACEOF
6783 #define GETGROUPS_T $ac_cv_type_getgroups
6784 _ACEOF
6785
6786
6787 if test "${target}" = "${build}"; then
6788   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
6789 else
6790   case "${target}" in
6791         # This condition may need some tweaking.  It should include all
6792         # targets where the array type of the second argument of getgroups
6793         # is int and the type of gid_t is not equivalent to int.
6794         *-*-sunos* | *-*-ultrix*)
6795                 TARGET_GETGROUPS_T=int
6796                 ;;
6797         *)
6798                 TARGET_GETGROUPS_T=gid_t
6799                 ;;
6800   esac
6801 fi
6802
6803
6804 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
6805 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
6806 if test "${gcc_cv_func_printf_ptr+set}" = set; then
6807   echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809   if test "$cross_compiling" = yes; then
6810   gcc_cv_func_printf_ptr=no
6811 else
6812   cat >conftest.$ac_ext <<_ACEOF
6813 #line $LINENO "configure"
6814 /* confdefs.h.  */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h.  */
6819 #include <stdio.h>
6820
6821 int main()
6822 {
6823   char buf[64];
6824   char *p = buf, *q = NULL;
6825   sprintf(buf, "%p", p);
6826   sscanf(buf, "%p", &q);
6827   return (p != q);
6828 }
6829 _ACEOF
6830 rm -f conftest$ac_exeext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6832   (eval $ac_link) 2>&5
6833   ac_status=$?
6834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837   (eval $ac_try) 2>&5
6838   ac_status=$?
6839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840   (exit $ac_status); }; }; then
6841   gcc_cv_func_printf_ptr=yes
6842 else
6843   echo "$as_me: program exited with status $ac_status" >&5
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6846
6847 ( exit $ac_status )
6848 gcc_cv_func_printf_ptr=no
6849 fi
6850 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6851 fi
6852 rm -f core core.* *.core
6853 fi
6854 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
6855 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
6856 if test $gcc_cv_func_printf_ptr = yes ; then
6857
6858 cat >>confdefs.h <<\_ACEOF
6859 #define HAVE_PRINTF_PTR 1
6860 _ACEOF
6861
6862 fi
6863
6864 if test $ac_cv_header_sys_mman_h != yes \
6865  || test $ac_cv_func_mmap != yes; then
6866    gcc_cv_func_mmap_file=no
6867    gcc_cv_func_mmap_dev_zero=no
6868    gcc_cv_func_mmap_anon=no
6869 else
6870    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
6871 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
6872 if test "${gcc_cv_func_mmap_file+set}" = set; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   # Add a system to this blacklist if
6876    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
6877    # memory area containing the same data that you'd get if you applied
6878    # read() to the same fd.  The only system known to have a problem here
6879    # is VMS, where text files have record structure.
6880    case "$host_os" in
6881      vms* | ultrix*)
6882         gcc_cv_func_mmap_file=no ;;
6883      *)
6884         gcc_cv_func_mmap_file=yes;;
6885    esac
6886 fi
6887 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
6888 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
6889    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
6890 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
6891 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894   # Add a system to this blacklist if it has mmap() but /dev/zero
6895    # does not exist, or if mmapping /dev/zero does not give anonymous
6896    # zeroed pages with both the following properties:
6897    # 1. If you map N consecutive pages in with one call, and then
6898    #    unmap any subset of those pages, the pages that were not
6899    #    explicitly unmapped remain accessible.
6900    # 2. If you map two adjacent blocks of memory and then unmap them
6901    #    both at once, they must both go away.
6902    # Systems known to be in this category are Windows (all variants),
6903    # VMS, and Darwin.
6904    case "$host_os" in
6905      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
6906         gcc_cv_func_mmap_dev_zero=no ;;
6907      *)
6908         gcc_cv_func_mmap_dev_zero=yes;;
6909    esac
6910 fi
6911 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
6912 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
6913
6914    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
6915    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
6916 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
6917 if test "${gcc_cv_decl_map_anon+set}" = set; then
6918   echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920   cat >conftest.$ac_ext <<_ACEOF
6921 #line $LINENO "configure"
6922 /* confdefs.h.  */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h.  */
6927 #include <sys/types.h>
6928 #include <sys/mman.h>
6929 #include <unistd.h>
6930
6931 #ifndef MAP_ANONYMOUS
6932 #define MAP_ANONYMOUS MAP_ANON
6933 #endif
6934
6935 int
6936 main ()
6937 {
6938 int n = MAP_ANONYMOUS;
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 rm -f conftest.$ac_objext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6945   (eval $ac_compile) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); } &&
6949          { ac_try='test -s conftest.$ac_objext'
6950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951   (eval $ac_try) 2>&5
6952   ac_status=$?
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); }; }; then
6955   gcc_cv_decl_map_anon=yes
6956 else
6957   echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 gcc_cv_decl_map_anon=no
6961 fi
6962 rm -f conftest.$ac_objext conftest.$ac_ext
6963 fi
6964 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
6965 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
6966
6967    if test $gcc_cv_decl_map_anon = no; then
6968      gcc_cv_func_mmap_anon=no
6969    else
6970      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
6971 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
6972 if test "${gcc_cv_func_mmap_anon+set}" = set; then
6973   echo $ECHO_N "(cached) $ECHO_C" >&6
6974 else
6975   # Add a system to this blacklist if it has mmap() and MAP_ANON or
6976    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
6977    # doesn't give anonymous zeroed pages with the same properties listed
6978    # above for use of /dev/zero.
6979    # Systems known to be in this category are Windows, VMS, and SCO Unix.
6980    case "$host_os" in
6981      vms* | cygwin* | pe | mingw* | sco* | udk* )
6982         gcc_cv_func_mmap_anon=no ;;
6983      *)
6984         gcc_cv_func_mmap_anon=yes;;
6985    esac
6986 fi
6987 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
6988 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
6989    fi
6990 fi
6991
6992 if test $gcc_cv_func_mmap_file = yes; then
6993
6994 cat >>confdefs.h <<\_ACEOF
6995 #define HAVE_MMAP_FILE 1
6996 _ACEOF
6997
6998 fi
6999 if test $gcc_cv_func_mmap_dev_zero = yes; then
7000
7001 cat >>confdefs.h <<\_ACEOF
7002 #define HAVE_MMAP_DEV_ZERO 1
7003 _ACEOF
7004
7005 fi
7006 if test $gcc_cv_func_mmap_anon = yes; then
7007
7008 cat >>confdefs.h <<\_ACEOF
7009 #define HAVE_MMAP_ANON 1
7010 _ACEOF
7011
7012 fi
7013
7014
7015 case "${host}" in
7016 *-*-*vms*)
7017   # Under VMS, vfork works very differently than on Unix. The standard test
7018   # won't work, and it isn't easily adaptable. It makes more sense to
7019   # just force it.
7020   ac_cv_func_vfork_works=yes
7021   ;;
7022 esac
7023 echo "$as_me:$LINENO: checking for pid_t" >&5
7024 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7025 if test "${ac_cv_type_pid_t+set}" = set; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028   cat >conftest.$ac_ext <<_ACEOF
7029 #line $LINENO "configure"
7030 /* confdefs.h.  */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h.  */
7035 $ac_includes_default
7036 int
7037 main ()
7038 {
7039 if ((pid_t *) 0)
7040   return 0;
7041 if (sizeof (pid_t))
7042   return 0;
7043   ;
7044   return 0;
7045 }
7046 _ACEOF
7047 rm -f conftest.$ac_objext
7048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7049   (eval $ac_compile) 2>&5
7050   ac_status=$?
7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); } &&
7053          { ac_try='test -s conftest.$ac_objext'
7054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055   (eval $ac_try) 2>&5
7056   ac_status=$?
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); }; }; then
7059   ac_cv_type_pid_t=yes
7060 else
7061   echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7063
7064 ac_cv_type_pid_t=no
7065 fi
7066 rm -f conftest.$ac_objext conftest.$ac_ext
7067 fi
7068 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7069 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7070 if test $ac_cv_type_pid_t = yes; then
7071   :
7072 else
7073
7074 cat >>confdefs.h <<_ACEOF
7075 #define pid_t int
7076 _ACEOF
7077
7078 fi
7079
7080
7081
7082 for ac_header in unistd.h vfork.h
7083 do
7084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7085 echo "$as_me:$LINENO: checking for $ac_header" >&5
7086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   cat >conftest.$ac_ext <<_ACEOF
7091 #line $LINENO "configure"
7092 /* confdefs.h.  */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h.  */
7097 #include <$ac_header>
7098 _ACEOF
7099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7101   ac_status=$?
7102   grep -v '^ *+' conftest.er1 >conftest.err
7103   rm -f conftest.er1
7104   cat conftest.err >&5
7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106   (exit $ac_status); } >/dev/null; then
7107   if test -s conftest.err; then
7108     ac_cpp_err=$ac_c_preproc_warn_flag
7109   else
7110     ac_cpp_err=
7111   fi
7112 else
7113   ac_cpp_err=yes
7114 fi
7115 if test -z "$ac_cpp_err"; then
7116   eval "$as_ac_Header=yes"
7117 else
7118   echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7120
7121   eval "$as_ac_Header=no"
7122 fi
7123 rm -f conftest.err conftest.$ac_ext
7124 fi
7125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7128   cat >>confdefs.h <<_ACEOF
7129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7130 _ACEOF
7131
7132 fi
7133 done
7134
7135
7136
7137 for ac_func in fork vfork
7138 do
7139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7140 echo "$as_me:$LINENO: checking for $ac_func" >&5
7141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7142 if eval "test \"\${$as_ac_var+set}\" = set"; then
7143   echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145   cat >conftest.$ac_ext <<_ACEOF
7146 #line $LINENO "configure"
7147 /* confdefs.h.  */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h.  */
7152 /* System header to define __stub macros and hopefully few prototypes,
7153     which can conflict with char $ac_func (); below.
7154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155     <limits.h> exists even on freestanding compilers.  */
7156 #ifdef __STDC__
7157 # include <limits.h>
7158 #else
7159 # include <assert.h>
7160 #endif
7161 /* Override any gcc2 internal prototype to avoid an error.  */
7162 #ifdef __cplusplus
7163 extern "C"
7164 {
7165 #endif
7166 /* We use char because int might match the return type of a gcc2
7167    builtin and then its argument prototype would still apply.  */
7168 char $ac_func ();
7169 /* The GNU C library defines this for functions which it implements
7170     to always fail with ENOSYS.  Some functions are actually named
7171     something starting with __ and the normal name is an alias.  */
7172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7173 choke me
7174 #else
7175 char (*f) () = $ac_func;
7176 #endif
7177 #ifdef __cplusplus
7178 }
7179 #endif
7180
7181 int
7182 main ()
7183 {
7184 return f != $ac_func;
7185   ;
7186   return 0;
7187 }
7188 _ACEOF
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191   (eval $ac_link) 2>&5
7192   ac_status=$?
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); } &&
7195          { ac_try='test -s conftest$ac_exeext'
7196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197   (eval $ac_try) 2>&5
7198   ac_status=$?
7199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200   (exit $ac_status); }; }; then
7201   eval "$as_ac_var=yes"
7202 else
7203   echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206 eval "$as_ac_var=no"
7207 fi
7208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7209 fi
7210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7212 if test `eval echo '${'$as_ac_var'}'` = yes; then
7213   cat >>confdefs.h <<_ACEOF
7214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7215 _ACEOF
7216
7217 fi
7218 done
7219
7220 if test "x$ac_cv_func_fork" = xyes; then
7221   echo "$as_me:$LINENO: checking for working fork" >&5
7222 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7223 if test "${ac_cv_func_fork_works+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   if test "$cross_compiling" = yes; then
7227   ac_cv_func_fork_works=cross
7228 else
7229   cat >conftest.$ac_ext <<_ACEOF
7230 /* By Ruediger Kuhlmann. */
7231       #include <sys/types.h>
7232       #if HAVE_UNISTD_H
7233       # include <unistd.h>
7234       #endif
7235       /* Some systems only have a dummy stub for fork() */
7236       int main ()
7237       {
7238         if (fork() < 0)
7239           exit (1);
7240         exit (0);
7241       }
7242 _ACEOF
7243 rm -f conftest$ac_exeext
7244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7245   (eval $ac_link) 2>&5
7246   ac_status=$?
7247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250   (eval $ac_try) 2>&5
7251   ac_status=$?
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); }; }; then
7254   ac_cv_func_fork_works=yes
7255 else
7256   echo "$as_me: program exited with status $ac_status" >&5
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7259
7260 ( exit $ac_status )
7261 ac_cv_func_fork_works=no
7262 fi
7263 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7264 fi
7265 fi
7266 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7267 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7268
7269 else
7270   ac_cv_func_fork_works=$ac_cv_func_fork
7271 fi
7272 if test "x$ac_cv_func_fork_works" = xcross; then
7273   case $host in
7274     *-*-amigaos* | *-*-msdosdjgpp*)
7275       # Override, as these systems have only a dummy fork() stub
7276       ac_cv_func_fork_works=no
7277       ;;
7278     *)
7279       ac_cv_func_fork_works=yes
7280       ;;
7281   esac
7282   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7283 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7284 fi
7285 ac_cv_func_vfork_works=$ac_cv_func_vfork
7286 if test "x$ac_cv_func_vfork" = xyes; then
7287   echo "$as_me:$LINENO: checking for working vfork" >&5
7288 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7289 if test "${ac_cv_func_vfork_works+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   if test "$cross_compiling" = yes; then
7293   ac_cv_func_vfork_works=cross
7294 else
7295   cat >conftest.$ac_ext <<_ACEOF
7296 #line $LINENO "configure"
7297 /* confdefs.h.  */
7298 _ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h.  */
7302 /* Thanks to Paul Eggert for this test.  */
7303 #include <stdio.h>
7304 #include <stdlib.h>
7305 #include <sys/types.h>
7306 #include <sys/stat.h>
7307 #include <sys/wait.h>
7308 #if HAVE_UNISTD_H
7309 # include <unistd.h>
7310 #endif
7311 #if HAVE_VFORK_H
7312 # include <vfork.h>
7313 #endif
7314 /* On some sparc systems, changes by the child to local and incoming
7315    argument registers are propagated back to the parent.  The compiler
7316    is told about this with #include <vfork.h>, but some compilers
7317    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7318    static variable whose address is put into a register that is
7319    clobbered by the vfork.  */
7320 static void
7321 #ifdef __cplusplus
7322 sparc_address_test (int arg)
7323 # else
7324 sparc_address_test (arg) int arg;
7325 #endif
7326 {
7327   static pid_t child;
7328   if (!child) {
7329     child = vfork ();
7330     if (child < 0) {
7331       perror ("vfork");
7332       _exit(2);
7333     }
7334     if (!child) {
7335       arg = getpid();
7336       write(-1, "", 0);
7337       _exit (arg);
7338     }
7339   }
7340 }
7341
7342 int
7343 main ()
7344 {
7345   pid_t parent = getpid ();
7346   pid_t child;
7347
7348   sparc_address_test (0);
7349
7350   child = vfork ();
7351
7352   if (child == 0) {
7353     /* Here is another test for sparc vfork register problems.  This
7354        test uses lots of local variables, at least as many local
7355        variables as main has allocated so far including compiler
7356        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7357        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7358        reuse the register of parent for one of the local variables,
7359        since it will think that parent can't possibly be used any more
7360        in this routine.  Assigning to the local variable will thus
7361        munge parent in the parent process.  */
7362     pid_t
7363       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7364       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7365     /* Convince the compiler that p..p7 are live; otherwise, it might
7366        use the same hardware register for all 8 local variables.  */
7367     if (p != p1 || p != p2 || p != p3 || p != p4
7368         || p != p5 || p != p6 || p != p7)
7369       _exit(1);
7370
7371     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7372        from child file descriptors.  If the child closes a descriptor
7373        before it execs or exits, this munges the parent's descriptor
7374        as well.  Test for this by closing stdout in the child.  */
7375     _exit(close(fileno(stdout)) != 0);
7376   } else {
7377     int status;
7378     struct stat st;
7379
7380     while (wait(&status) != child)
7381       ;
7382     exit(
7383          /* Was there some problem with vforking?  */
7384          child < 0
7385
7386          /* Did the child fail?  (This shouldn't happen.)  */
7387          || status
7388
7389          /* Did the vfork/compiler bug occur?  */
7390          || parent != getpid()
7391
7392          /* Did the file descriptor bug occur?  */
7393          || fstat(fileno(stdout), &st) != 0
7394          );
7395   }
7396 }
7397 _ACEOF
7398 rm -f conftest$ac_exeext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7400   (eval $ac_link) 2>&5
7401   ac_status=$?
7402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405   (eval $ac_try) 2>&5
7406   ac_status=$?
7407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408   (exit $ac_status); }; }; then
7409   ac_cv_func_vfork_works=yes
7410 else
7411   echo "$as_me: program exited with status $ac_status" >&5
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7414
7415 ( exit $ac_status )
7416 ac_cv_func_vfork_works=no
7417 fi
7418 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7419 fi
7420 fi
7421 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7422 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7423
7424 fi;
7425 if test "x$ac_cv_func_fork_works" = xcross; then
7426   ac_cv_func_vfork_works=ac_cv_func_vfork
7427   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7428 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7429 fi
7430
7431 if test "x$ac_cv_func_vfork_works" = xyes; then
7432
7433 cat >>confdefs.h <<\_ACEOF
7434 #define HAVE_WORKING_VFORK 1
7435 _ACEOF
7436
7437 else
7438
7439 cat >>confdefs.h <<\_ACEOF
7440 #define vfork fork
7441 _ACEOF
7442
7443 fi
7444 if test "x$ac_cv_func_fork_works" = xyes; then
7445
7446 cat >>confdefs.h <<\_ACEOF
7447 #define HAVE_WORKING_FORK 1
7448 _ACEOF
7449
7450 fi
7451
7452
7453
7454
7455   am_cv_lib_iconv_ldpath=
7456
7457 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7458 if test "${with_libiconv_prefix+set}" = set; then
7459   withval="$with_libiconv_prefix"
7460
7461     for dir in `echo "$withval" | tr : ' '`; do
7462       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7463       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7464     done
7465
7466 fi;
7467
7468
7469 for ac_header in iconv.h
7470 do
7471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7472 echo "$as_me:$LINENO: checking for $ac_header" >&5
7473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7475   echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477   cat >conftest.$ac_ext <<_ACEOF
7478 #line $LINENO "configure"
7479 /* confdefs.h.  */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h.  */
7484 #include <$ac_header>
7485 _ACEOF
7486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7488   ac_status=$?
7489   grep -v '^ *+' conftest.er1 >conftest.err
7490   rm -f conftest.er1
7491   cat conftest.err >&5
7492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493   (exit $ac_status); } >/dev/null; then
7494   if test -s conftest.err; then
7495     ac_cpp_err=$ac_c_preproc_warn_flag
7496   else
7497     ac_cpp_err=
7498   fi
7499 else
7500   ac_cpp_err=yes
7501 fi
7502 if test -z "$ac_cpp_err"; then
7503   eval "$as_ac_Header=yes"
7504 else
7505   echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508   eval "$as_ac_Header=no"
7509 fi
7510 rm -f conftest.err conftest.$ac_ext
7511 fi
7512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7515   cat >>confdefs.h <<_ACEOF
7516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7517 _ACEOF
7518
7519 fi
7520 done
7521
7522
7523   echo "$as_me:$LINENO: checking for iconv" >&5
7524 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7525 if test "${am_cv_func_iconv+set}" = set; then
7526   echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528
7529     am_cv_func_iconv="no, consider installing GNU libiconv"
7530     am_cv_lib_iconv=no
7531     cat >conftest.$ac_ext <<_ACEOF
7532 #line $LINENO "configure"
7533 /* confdefs.h.  */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h.  */
7538 #include <stdlib.h>
7539 #include <iconv.h>
7540 int
7541 main ()
7542 {
7543 iconv_t cd = iconv_open("","");
7544        iconv(cd,NULL,NULL,NULL,NULL);
7545        iconv_close(cd);
7546   ;
7547   return 0;
7548 }
7549 _ACEOF
7550 rm -f conftest.$ac_objext conftest$ac_exeext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7552   (eval $ac_link) 2>&5
7553   ac_status=$?
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); } &&
7556          { ac_try='test -s conftest$ac_exeext'
7557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558   (eval $ac_try) 2>&5
7559   ac_status=$?
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); }; }; then
7562   am_cv_func_iconv=yes
7563 else
7564   echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567 fi
7568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7569     if test "$am_cv_func_iconv" != yes; then
7570       am_save_LIBS="$LIBS"
7571       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7572       cat >conftest.$ac_ext <<_ACEOF
7573 #line $LINENO "configure"
7574 /* confdefs.h.  */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h.  */
7579 #include <stdlib.h>
7580 #include <iconv.h>
7581 int
7582 main ()
7583 {
7584 iconv_t cd = iconv_open("","");
7585          iconv(cd,NULL,NULL,NULL,NULL);
7586          iconv_close(cd);
7587   ;
7588   return 0;
7589 }
7590 _ACEOF
7591 rm -f conftest.$ac_objext conftest$ac_exeext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7593   (eval $ac_link) 2>&5
7594   ac_status=$?
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); } &&
7597          { ac_try='test -s conftest$ac_exeext'
7598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599   (eval $ac_try) 2>&5
7600   ac_status=$?
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); }; }; then
7603   am_cv_lib_iconv=yes
7604         am_cv_func_iconv=yes
7605 else
7606   echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7608
7609 fi
7610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7611       LIBS="$am_save_LIBS"
7612     fi
7613
7614 fi
7615 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7616 echo "${ECHO_T}$am_cv_func_iconv" >&6
7617   if test "$am_cv_func_iconv" = yes; then
7618
7619 cat >>confdefs.h <<\_ACEOF
7620 #define HAVE_ICONV 1
7621 _ACEOF
7622
7623     echo "$as_me:$LINENO: checking for iconv declaration" >&5
7624 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7625     if test "${am_cv_proto_iconv+set}" = set; then
7626   echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628
7629       cat >conftest.$ac_ext <<_ACEOF
7630 #line $LINENO "configure"
7631 /* confdefs.h.  */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h.  */
7636
7637 #include <stdlib.h>
7638 #include <iconv.h>
7639 extern
7640 #ifdef __cplusplus
7641 "C"
7642 #endif
7643 #if defined(__STDC__) || defined(__cplusplus)
7644 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7645 #else
7646 size_t iconv();
7647 #endif
7648
7649 int
7650 main ()
7651 {
7652
7653   ;
7654   return 0;
7655 }
7656 _ACEOF
7657 rm -f conftest.$ac_objext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7659   (eval $ac_compile) 2>&5
7660   ac_status=$?
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); } &&
7663          { ac_try='test -s conftest.$ac_objext'
7664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665   (eval $ac_try) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); }; }; then
7669   am_cv_proto_iconv_arg1=""
7670 else
7671   echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674 am_cv_proto_iconv_arg1="const"
7675 fi
7676 rm -f conftest.$ac_objext conftest.$ac_ext
7677       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7678 fi
7679
7680     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7681     echo "$as_me:$LINENO: result: ${ac_t:-
7682          }$am_cv_proto_iconv" >&5
7683 echo "${ECHO_T}${ac_t:-
7684          }$am_cv_proto_iconv" >&6
7685
7686 cat >>confdefs.h <<_ACEOF
7687 #define ICONV_CONST $am_cv_proto_iconv_arg1
7688 _ACEOF
7689
7690   fi
7691   LIBICONV=
7692   if test "$am_cv_lib_iconv" = yes; then
7693     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
7694   fi
7695
7696
7697 # Until we have in-tree GNU iconv:
7698 LIBICONV_DEP=
7699
7700
7701
7702   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7703 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7704 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   cat >conftest.$ac_ext <<_ACEOF
7708 #line $LINENO "configure"
7709 /* confdefs.h.  */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h.  */
7714 #include <locale.h>
7715 int
7716 main ()
7717 {
7718 return LC_MESSAGES
7719   ;
7720   return 0;
7721 }
7722 _ACEOF
7723 rm -f conftest.$ac_objext conftest$ac_exeext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7725   (eval $ac_link) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); } &&
7729          { ac_try='test -s conftest$ac_exeext'
7730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731   (eval $ac_try) 2>&5
7732   ac_status=$?
7733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); }; }; then
7735   am_cv_val_LC_MESSAGES=yes
7736 else
7737   echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7739
7740 am_cv_val_LC_MESSAGES=no
7741 fi
7742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7743 fi
7744 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7745 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7746   if test $am_cv_val_LC_MESSAGES = yes; then
7747
7748 cat >>confdefs.h <<\_ACEOF
7749 #define HAVE_LC_MESSAGES 1
7750 _ACEOF
7751
7752   fi
7753
7754
7755 # We will need to find libiberty.h and ansidecl.h
7756 saved_CFLAGS="$CFLAGS"
7757 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
7758 for ac_func in getenv atol sbrk abort atof getcwd getwd \
7759         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
7760         fprintf_unlocked strstr errno snprintf vasprintf \
7761         malloc realloc calloc free basename getopt clock
7762 do
7763   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7764 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7765 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7766 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7767   echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769   cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 /* confdefs.h.  */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h.  */
7776 #undef $ac_tr_decl
7777 #define $ac_tr_decl 1
7778
7779 #include "ansidecl.h"
7780 #include "system.h"
7781
7782 int
7783 main ()
7784 {
7785 #ifndef $ac_func
7786 char *(*pfn) = (char *(*)) $ac_func ;
7787 #endif
7788   ;
7789   return 0;
7790 }
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7794   (eval $ac_compile) 2>&5
7795   ac_status=$?
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); } &&
7798          { ac_try='test -s conftest.$ac_objext'
7799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800   (eval $ac_try) 2>&5
7801   ac_status=$?
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); }; }; then
7804   eval "gcc_cv_have_decl_$ac_func=yes"
7805 else
7806   echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7808
7809 eval "gcc_cv_have_decl_$ac_func=no"
7810 fi
7811 rm -f conftest.$ac_objext conftest.$ac_ext
7812 fi
7813
7814 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7815   echo "$as_me:$LINENO: result: yes" >&5
7816 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
7817 #define $ac_tr_decl 1
7818 _ACEOF
7819
7820 else
7821   echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
7823 #define $ac_tr_decl 0
7824 _ACEOF
7825
7826 fi
7827
7828 done
7829 if test x = y ; then
7830
7831 cat >>confdefs.h <<\_ACEOF
7832 #define HAVE_DECL_GETENV 1
7833 _ACEOF
7834
7835 cat >>confdefs.h <<\_ACEOF
7836 #define HAVE_DECL_ATOL 1
7837 _ACEOF
7838
7839 cat >>confdefs.h <<\_ACEOF
7840 #define HAVE_DECL_SBRK 1
7841 _ACEOF
7842
7843 cat >>confdefs.h <<\_ACEOF
7844 #define HAVE_DECL_ABORT 1
7845 _ACEOF
7846
7847 cat >>confdefs.h <<\_ACEOF
7848 #define HAVE_DECL_ATOF 1
7849 _ACEOF
7850
7851 cat >>confdefs.h <<\_ACEOF
7852 #define HAVE_DECL_GETCWD 1
7853 _ACEOF
7854
7855 cat >>confdefs.h <<\_ACEOF
7856 #define HAVE_DECL_GETWD 1
7857 _ACEOF
7858  \
7859
7860 cat >>confdefs.h <<\_ACEOF
7861 #define HAVE_DECL_STRSIGNAL 1
7862 _ACEOF
7863
7864 cat >>confdefs.h <<\_ACEOF
7865 #define HAVE_DECL_PUTC_UNLOCKED 1
7866 _ACEOF
7867
7868 cat >>confdefs.h <<\_ACEOF
7869 #define HAVE_DECL_FPUTS_UNLOCKED 1
7870 _ACEOF
7871
7872 cat >>confdefs.h <<\_ACEOF
7873 #define HAVE_DECL_FWRITE_UNLOCKED 1
7874 _ACEOF
7875  \
7876
7877 cat >>confdefs.h <<\_ACEOF
7878 #define HAVE_DECL_FPRINTF_UNLOCKED 1
7879 _ACEOF
7880
7881 cat >>confdefs.h <<\_ACEOF
7882 #define HAVE_DECL_STRSTR 1
7883 _ACEOF
7884
7885 cat >>confdefs.h <<\_ACEOF
7886 #define HAVE_DECL_ERRNO 1
7887 _ACEOF
7888
7889 cat >>confdefs.h <<\_ACEOF
7890 #define HAVE_DECL_SNPRINTF 1
7891 _ACEOF
7892
7893 cat >>confdefs.h <<\_ACEOF
7894 #define HAVE_DECL_VASPRINTF 1
7895 _ACEOF
7896  \
7897
7898 cat >>confdefs.h <<\_ACEOF
7899 #define HAVE_DECL_MALLOC 1
7900 _ACEOF
7901
7902 cat >>confdefs.h <<\_ACEOF
7903 #define HAVE_DECL_REALLOC 1
7904 _ACEOF
7905
7906 cat >>confdefs.h <<\_ACEOF
7907 #define HAVE_DECL_CALLOC 1
7908 _ACEOF
7909
7910 cat >>confdefs.h <<\_ACEOF
7911 #define HAVE_DECL_FREE 1
7912 _ACEOF
7913
7914 cat >>confdefs.h <<\_ACEOF
7915 #define HAVE_DECL_BASENAME 1
7916 _ACEOF
7917
7918 cat >>confdefs.h <<\_ACEOF
7919 #define HAVE_DECL_GETOPT 1
7920 _ACEOF
7921
7922 cat >>confdefs.h <<\_ACEOF
7923 #define HAVE_DECL_CLOCK 1
7924 _ACEOF
7925 fi
7926
7927
7928 for ac_func in getrlimit setrlimit getrusage
7929 do
7930   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7931 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7932 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7933 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7934   echo $ECHO_N "(cached) $ECHO_C" >&6
7935 else
7936   cat >conftest.$ac_ext <<_ACEOF
7937 #line $LINENO "configure"
7938 /* confdefs.h.  */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h.  */
7943 #undef $ac_tr_decl
7944 #define $ac_tr_decl 1
7945
7946 #include "ansidecl.h"
7947 #include "system.h"
7948 #ifdef HAVE_SYS_RESOURCE_H
7949 #include <sys/resource.h>
7950 #endif
7951
7952
7953 int
7954 main ()
7955 {
7956 #ifndef $ac_func
7957 char *(*pfn) = (char *(*)) $ac_func ;
7958 #endif
7959   ;
7960   return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest.$ac_objext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7965   (eval $ac_compile) 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); } &&
7969          { ac_try='test -s conftest.$ac_objext'
7970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971   (eval $ac_try) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; }; then
7975   eval "gcc_cv_have_decl_$ac_func=yes"
7976 else
7977   echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7979
7980 eval "gcc_cv_have_decl_$ac_func=no"
7981 fi
7982 rm -f conftest.$ac_objext conftest.$ac_ext
7983 fi
7984
7985 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7986   echo "$as_me:$LINENO: result: yes" >&5
7987 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
7988 #define $ac_tr_decl 1
7989 _ACEOF
7990
7991 else
7992   echo "$as_me:$LINENO: result: no" >&5
7993 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
7994 #define $ac_tr_decl 0
7995 _ACEOF
7996
7997 fi
7998
7999 done
8000 if test x = y ; then
8001
8002 cat >>confdefs.h <<\_ACEOF
8003 #define HAVE_DECL_GETRLIMIT 1
8004 _ACEOF
8005
8006 cat >>confdefs.h <<\_ACEOF
8007 #define HAVE_DECL_SETRLIMIT 1
8008 _ACEOF
8009
8010 cat >>confdefs.h <<\_ACEOF
8011 #define HAVE_DECL_GETRUSAGE 1
8012 _ACEOF
8013 fi
8014
8015
8016 cat >conftest.$ac_ext <<_ACEOF
8017 #line $LINENO "configure"
8018 /* confdefs.h.  */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h.  */
8023
8024 #include "ansidecl.h"
8025 #include "system.h"
8026 #ifdef HAVE_SYS_RESOURCE_H
8027 #include <sys/resource.h>
8028 #endif
8029
8030 int
8031 main ()
8032 {
8033 rlim_t l = 0;
8034   ;
8035   return 0;
8036 }
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8040   (eval $ac_compile) 2>&5
8041   ac_status=$?
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); } &&
8044          { ac_try='test -s conftest.$ac_objext'
8045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046   (eval $ac_try) 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); }; }; then
8050   :
8051 else
8052   echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8054
8055
8056 cat >>confdefs.h <<\_ACEOF
8057 #define rlim_t long
8058 _ACEOF
8059
8060 fi
8061 rm -f conftest.$ac_objext conftest.$ac_ext
8062
8063 for ac_func in ldgetname
8064 do
8065   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8066 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8067 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8068 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8069   echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071   cat >conftest.$ac_ext <<_ACEOF
8072 #line $LINENO "configure"
8073 /* confdefs.h.  */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h.  */
8078 #undef $ac_tr_decl
8079 #define $ac_tr_decl 1
8080
8081 #include "ansidecl.h"
8082 #include "system.h"
8083 #ifdef HAVE_LDFCN_H
8084 #include <ldfcn.h>
8085 #endif
8086
8087
8088 int
8089 main ()
8090 {
8091 #ifndef $ac_func
8092 char *(*pfn) = (char *(*)) $ac_func ;
8093 #endif
8094   ;
8095   return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8100   (eval $ac_compile) 2>&5
8101   ac_status=$?
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); } &&
8104          { ac_try='test -s conftest.$ac_objext'
8105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106   (eval $ac_try) 2>&5
8107   ac_status=$?
8108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); }; }; then
8110   eval "gcc_cv_have_decl_$ac_func=yes"
8111 else
8112   echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8114
8115 eval "gcc_cv_have_decl_$ac_func=no"
8116 fi
8117 rm -f conftest.$ac_objext conftest.$ac_ext
8118 fi
8119
8120 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8121   echo "$as_me:$LINENO: result: yes" >&5
8122 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8123 #define $ac_tr_decl 1
8124 _ACEOF
8125
8126 else
8127   echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8129 #define $ac_tr_decl 0
8130 _ACEOF
8131
8132 fi
8133
8134 done
8135 if test x = y ; then
8136
8137 cat >>confdefs.h <<\_ACEOF
8138 #define HAVE_DECL_LDGETNAME 1
8139 _ACEOF
8140 fi
8141
8142
8143 for ac_func in times
8144 do
8145   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8146 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8147 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8148 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8149   echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151   cat >conftest.$ac_ext <<_ACEOF
8152 #line $LINENO "configure"
8153 /* confdefs.h.  */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h.  */
8158 #undef $ac_tr_decl
8159 #define $ac_tr_decl 1
8160
8161 #include "ansidecl.h"
8162 #include "system.h"
8163 #ifdef HAVE_SYS_TIMES_H
8164 #include <sys/times.h>
8165 #endif
8166
8167
8168 int
8169 main ()
8170 {
8171 #ifndef $ac_func
8172 char *(*pfn) = (char *(*)) $ac_func ;
8173 #endif
8174   ;
8175   return 0;
8176 }
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180   (eval $ac_compile) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); } &&
8184          { ac_try='test -s conftest.$ac_objext'
8185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186   (eval $ac_try) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   eval "gcc_cv_have_decl_$ac_func=yes"
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 eval "gcc_cv_have_decl_$ac_func=no"
8196 fi
8197 rm -f conftest.$ac_objext conftest.$ac_ext
8198 fi
8199
8200 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8201   echo "$as_me:$LINENO: result: yes" >&5
8202 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8203 #define $ac_tr_decl 1
8204 _ACEOF
8205
8206 else
8207   echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8209 #define $ac_tr_decl 0
8210 _ACEOF
8211
8212 fi
8213
8214 done
8215 if test x = y ; then
8216
8217 cat >>confdefs.h <<\_ACEOF
8218 #define HAVE_DECL_TIMES 1
8219 _ACEOF
8220 fi
8221
8222
8223 # More time-related stuff.
8224 echo "$as_me:$LINENO: checking for struct tms" >&5
8225 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8226 if test "${ac_cv_struct_tms+set}" = set; then
8227   echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229
8230 cat >conftest.$ac_ext <<_ACEOF
8231 #line $LINENO "configure"
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237
8238 #include "ansidecl.h"
8239 #include "system.h"
8240 #ifdef HAVE_SYS_TIMES_H
8241 #include <sys/times.h>
8242 #endif
8243
8244 int
8245 main ()
8246 {
8247 struct tms tms;
8248   ;
8249   return 0;
8250 }
8251 _ACEOF
8252 rm -f conftest.$ac_objext
8253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8254   (eval $ac_compile) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); } &&
8258          { ac_try='test -s conftest.$ac_objext'
8259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260   (eval $ac_try) 2>&5
8261   ac_status=$?
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); }; }; then
8264   ac_cv_struct_tms=yes
8265 else
8266   echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269 ac_cv_struct_tms=no
8270 fi
8271 rm -f conftest.$ac_objext conftest.$ac_ext
8272 fi
8273 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8274 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8275 if test $ac_cv_struct_tms = yes; then
8276
8277 cat >>confdefs.h <<\_ACEOF
8278 #define HAVE_STRUCT_TMS 1
8279 _ACEOF
8280
8281 fi
8282
8283 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8284 # revisit after autoconf 2.50.
8285 echo "$as_me:$LINENO: checking for clock_t" >&5
8286 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8287 if test "${gcc_cv_type_clock_t+set}" = set; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290
8291 cat >conftest.$ac_ext <<_ACEOF
8292 #line $LINENO "configure"
8293 /* confdefs.h.  */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h.  */
8298
8299 #include "ansidecl.h"
8300 #include "system.h"
8301
8302 int
8303 main ()
8304 {
8305 clock_t x;
8306   ;
8307   return 0;
8308 }
8309 _ACEOF
8310 rm -f conftest.$ac_objext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8312   (eval $ac_compile) 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); } &&
8316          { ac_try='test -s conftest.$ac_objext'
8317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318   (eval $ac_try) 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; }; then
8322   gcc_cv_type_clock_t=yes
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327 gcc_cv_type_clock_t=no
8328 fi
8329 rm -f conftest.$ac_objext conftest.$ac_ext
8330 fi
8331 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8332 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8333 if test $gcc_cv_type_clock_t = yes; then
8334
8335 cat >>confdefs.h <<\_ACEOF
8336 #define HAVE_CLOCK_T 1
8337 _ACEOF
8338
8339 fi
8340
8341 echo "$as_me:$LINENO: checking for uchar" >&5
8342 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8343 if test "${gcc_cv_type_uchar+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346   cat >conftest.$ac_ext <<_ACEOF
8347 #line $LINENO "configure"
8348 /* confdefs.h.  */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h.  */
8353
8354 #include "ansidecl.h"
8355 #include "system.h"
8356
8357 int
8358 main ()
8359 {
8360 if ((uchar *)0) return 0;
8361  if (sizeof(uchar)) return 0;
8362   ;
8363   return 0;
8364 }
8365 _ACEOF
8366 rm -f conftest.$ac_objext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8368   (eval $ac_compile) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } &&
8372          { ac_try='test -s conftest.$ac_objext'
8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374   (eval $ac_try) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378   ac_cv_type_uchar=yes
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_cv_type_uchar=no
8384 fi
8385 rm -f conftest.$ac_objext conftest.$ac_ext
8386 fi
8387 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8388 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8389 if test $ac_cv_type_uchar = yes; then
8390
8391 cat >>confdefs.h <<\_ACEOF
8392 #define HAVE_UCHAR 1
8393 _ACEOF
8394
8395 fi
8396
8397 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8398 CFLAGS="$saved_CFLAGS"
8399
8400 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8401 if test "${enable_initfini_array+set}" = set; then
8402   enableval="$enable_initfini_array"
8403
8404 else
8405
8406 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8407 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8408 if test "${gcc_cv_initfini_array+set}" = set; then
8409   echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411     if test "$cross_compiling" = yes; then
8412   gcc_cv_initfini_array=no
8413 else
8414   cat >conftest.$ac_ext <<_ACEOF
8415 #line $LINENO "configure"
8416 /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421
8422 static int x = -1;
8423 int main (void) { return x; }
8424 int foo (void) { x = 0; }
8425 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8426 _ACEOF
8427 rm -f conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429   (eval $ac_link) 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434   (eval $ac_try) 2>&5
8435   ac_status=$?
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); }; }; then
8438   gcc_cv_initfini_array=yes
8439 else
8440   echo "$as_me: program exited with status $ac_status" >&5
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8443
8444 ( exit $ac_status )
8445 gcc_cv_initfini_array=no
8446 fi
8447 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8448 fi
8449 fi
8450 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8451 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8452   enable_initfini_array=$gcc_cv_initfini_array
8453
8454 fi;
8455 if test $enable_initfini_array = yes; then
8456
8457 cat >>confdefs.h <<\_ACEOF
8458 #define HAVE_INITFINI_ARRAY 1
8459 _ACEOF
8460
8461 fi
8462
8463 # mkdir takes a single argument on some systems.
8464 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8465 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8466 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8467   echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469   cat >conftest.$ac_ext <<_ACEOF
8470 #line $LINENO "configure"
8471 /* confdefs.h.  */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h.  */
8476
8477 #include <sys/types.h>
8478 #ifdef HAVE_SYS_STAT_H
8479 # include <sys/stat.h>
8480 #endif
8481 #ifdef HAVE_UNISTD_H
8482 # include <unistd.h>
8483 #endif
8484 #ifdef HAVE_DIRECT_H
8485 # include <direct.h>
8486 #endif
8487 int
8488 main ()
8489 {
8490 mkdir ("foo", 0);
8491   ;
8492   return 0;
8493 }
8494 _ACEOF
8495 rm -f conftest.$ac_objext
8496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8497   (eval $ac_compile) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); } &&
8501          { ac_try='test -s conftest.$ac_objext'
8502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503   (eval $ac_try) 2>&5
8504   ac_status=$?
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); }; }; then
8507   gcc_cv_mkdir_takes_one_arg=no
8508 else
8509   echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8511
8512 gcc_cv_mkdir_takes_one_arg=yes
8513 fi
8514 rm -f conftest.$ac_objext conftest.$ac_ext
8515 fi
8516 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8517 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8518 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8519
8520 cat >>confdefs.h <<\_ACEOF
8521 #define MKDIR_TAKES_ONE_ARG 1
8522 _ACEOF
8523
8524 fi
8525
8526
8527 # File extensions
8528 manext='.1'
8529 objext='.o'
8530
8531
8532
8533 # With Setjmp/Longjmp based exception handling.
8534 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8535 if test "${enable_sjlj_exceptions+set}" = set; then
8536   enableval="$enable_sjlj_exceptions"
8537   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8538
8539 cat >>confdefs.h <<_ACEOF
8540 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8541 _ACEOF
8542
8543 fi;
8544
8545 if test x$host = x$target; then
8546    echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8547 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8548 if test "${ac_cv_lib_unwind_main+set}" = set; then
8549   echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551   ac_check_lib_save_LIBS=$LIBS
8552 LIBS="-lunwind  $LIBS"
8553 cat >conftest.$ac_ext <<_ACEOF
8554 #line $LINENO "configure"
8555 /* confdefs.h.  */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h.  */
8560
8561
8562 int
8563 main ()
8564 {
8565 main ();
8566   ;
8567   return 0;
8568 }
8569 _ACEOF
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8572   (eval $ac_link) 2>&5
8573   ac_status=$?
8574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   (exit $ac_status); } &&
8576          { ac_try='test -s conftest$ac_exeext'
8577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578   (eval $ac_try) 2>&5
8579   ac_status=$?
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); }; }; then
8582   ac_cv_lib_unwind_main=yes
8583 else
8584   echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587 ac_cv_lib_unwind_main=no
8588 fi
8589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8590 LIBS=$ac_check_lib_save_LIBS
8591 fi
8592 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8593 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8594 if test $ac_cv_lib_unwind_main = yes; then
8595   use_libunwind_default=yes
8596 else
8597   use_libunwind_default=no
8598 fi
8599
8600 else
8601    use_libunwind_default=no
8602 fi
8603 # Use libunwind based exception handling.
8604 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8605 if test "${enable_libunwind_exceptions+set}" = set; then
8606   enableval="$enable_libunwind_exceptions"
8607   use_libunwind_exceptions=$enableval
8608 else
8609   use_libunwind_exceptions=$use_libunwind_default
8610 fi;
8611 if test x"$use_libunwind_exceptions" = xyes; then
8612
8613 cat >>confdefs.h <<\_ACEOF
8614 #define USE_LIBUNWIND_EXCEPTIONS 1
8615 _ACEOF
8616
8617 fi
8618
8619 # --------------------------------------------------------
8620 # Build, host, and target specific configuration fragments
8621 # --------------------------------------------------------
8622
8623 # Collect build-machine-specific information.
8624 . ${srcdir}/config.build
8625
8626 # Collect host-machine-specific information.
8627 . ${srcdir}/config.host
8628
8629 target_gtfiles=
8630
8631 # Collect target-machine-specific information.
8632 . ${srcdir}/config.gcc
8633
8634 extra_objs="${host_extra_objs} ${extra_objs}"
8635
8636 # Default the target-machine variables that were not explicitly set.
8637 if test x"$tm_file" = x
8638 then tm_file=$cpu_type/$cpu_type.h; fi
8639
8640 if test x"$extra_headers" = x
8641 then extra_headers=; fi
8642
8643 if test x$md_file = x
8644 then md_file=$cpu_type/$cpu_type.md; fi
8645
8646 if test x$out_file = x
8647 then out_file=$cpu_type/$cpu_type.c; fi
8648
8649 if test x"$tmake_file" = x
8650 then tmake_file=$cpu_type/t-$cpu_type
8651 fi
8652
8653 if test x"$dwarf2" = xyes
8654 then tm_file="$tm_file tm-dwarf2.h"
8655 fi
8656
8657 # Say what files are being used for the output code and MD file.
8658 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
8659 echo "Using \`$srcdir/config/$md_file' as machine description file."
8660
8661 # If any of the xm_file variables contain nonexistent files, warn
8662 # about them and drop them.
8663
8664 bx=
8665 for x in $build_xm_file; do
8666   if    test -f $srcdir/config/$x
8667   then      bx="$bx $x"
8668   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8669 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8670   fi
8671 done
8672 build_xm_file="$bx"
8673
8674 hx=
8675 for x in $host_xm_file; do
8676   if    test -f $srcdir/config/$x
8677   then      hx="$hx $x"
8678   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8679 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8680   fi
8681 done
8682 host_xm_file="$hx"
8683
8684 tx=
8685 for x in $xm_file; do
8686   if    test -f $srcdir/config/$x
8687   then      tx="$tx $x"
8688   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8689 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8690   fi
8691 done
8692 xm_file="$tx"
8693
8694 count=a
8695 for f in $tm_file; do
8696         count=${count}x
8697 done
8698 if test $count = ax; then
8699         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
8700 else
8701         echo "Using the following target machine macro files:"
8702         for f in $tm_file; do
8703                 echo "  $srcdir/config/$f"
8704         done
8705 fi
8706
8707 if test x$need_64bit_hwint = xyes; then
8708
8709 cat >>confdefs.h <<\_ACEOF
8710 #define NEED_64BIT_HOST_WIDE_INT 1
8711 _ACEOF
8712
8713 fi
8714
8715 count=a
8716 for f in $host_xm_file; do
8717         count=${count}x
8718 done
8719 if test $count = a; then
8720         :
8721 elif test $count = ax; then
8722         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
8723 else
8724         echo "Using the following host machine macro files:"
8725         for f in $host_xm_file; do
8726                 echo "  $srcdir/config/$f"
8727         done
8728 fi
8729 echo "Using ${out_host_hook_obj} for host machine hooks."
8730
8731 if test "$host_xm_file" != "$build_xm_file"; then
8732         count=a
8733         for f in $build_xm_file; do
8734                 count=${count}x
8735         done
8736         if test $count = a; then
8737                 :
8738         elif test $count = ax; then
8739                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
8740         else
8741                 echo "Using the following build machine macro files:"
8742                 for f in $build_xm_file; do
8743                         echo "  $srcdir/config/$f"
8744                 done
8745         fi
8746 fi
8747
8748 # Check if a valid thread package
8749 case ${enable_threads_flag} in
8750   "" | no)
8751     # No threads
8752     target_thread_file='single'
8753     ;;
8754   yes)
8755     # default
8756     target_thread_file='single'
8757     ;;
8758   aix | dce | gnat | irix | posix | rtems | \
8759   single | solaris | vxworks | win32 )
8760     target_thread_file=${enable_threads_flag}
8761     ;;
8762   *)
8763     echo "${enable_threads_flag} is an unknown thread package" 1>&2
8764     exit 1
8765     ;;
8766 esac
8767
8768 if test x${thread_file} = x; then
8769   # No thread file set by target-specific clauses in config.gcc,
8770   # so use file chosen by default logic above
8771   thread_file=${target_thread_file}
8772 fi
8773
8774 if test x$enable___cxa_atexit = xyes || \
8775    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
8776    echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
8777 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
8778 if test "${ac_cv_func___cxa_atexit+set}" = set; then
8779   echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781   cat >conftest.$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8783 /* confdefs.h.  */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h.  */
8788 /* System header to define __stub macros and hopefully few prototypes,
8789     which can conflict with char __cxa_atexit (); below.
8790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8791     <limits.h> exists even on freestanding compilers.  */
8792 #ifdef __STDC__
8793 # include <limits.h>
8794 #else
8795 # include <assert.h>
8796 #endif
8797 /* Override any gcc2 internal prototype to avoid an error.  */
8798 #ifdef __cplusplus
8799 extern "C"
8800 {
8801 #endif
8802 /* We use char because int might match the return type of a gcc2
8803    builtin and then its argument prototype would still apply.  */
8804 char __cxa_atexit ();
8805 /* The GNU C library defines this for functions which it implements
8806     to always fail with ENOSYS.  Some functions are actually named
8807     something starting with __ and the normal name is an alias.  */
8808 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
8809 choke me
8810 #else
8811 char (*f) () = __cxa_atexit;
8812 #endif
8813 #ifdef __cplusplus
8814 }
8815 #endif
8816
8817 int
8818 main ()
8819 {
8820 return f != __cxa_atexit;
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827   (eval $ac_link) 2>&5
8828   ac_status=$?
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } &&
8831          { ac_try='test -s conftest$ac_exeext'
8832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833   (eval $ac_try) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); }; }; then
8837   ac_cv_func___cxa_atexit=yes
8838 else
8839   echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8841
8842 ac_cv_func___cxa_atexit=no
8843 fi
8844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8845 fi
8846 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
8847 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
8848 if test $ac_cv_func___cxa_atexit = yes; then
8849
8850 cat >>confdefs.h <<\_ACEOF
8851 #define DEFAULT_USE_CXA_ATEXIT 1
8852 _ACEOF
8853
8854 else
8855   echo "__cxa_atexit can't be enabled on this target"
8856 fi
8857
8858 fi
8859
8860 # Look for a file containing extra machine modes.
8861 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
8862   extra_modes_file='$(srcdir)'/config/${extra_modes}
8863
8864
8865 cat >>confdefs.h <<_ACEOF
8866 #define EXTRA_MODES_FILE "config/$extra_modes"
8867 _ACEOF
8868
8869 fi
8870
8871 # auto-host.h is the file containing items generated by autoconf and is
8872 # the first file included by config.h.
8873 # If host=build, it is correct to have bconfig include auto-host.h
8874 # as well.  If host!=build, we are in error and need to do more
8875 # work to find out the build config parameters.
8876 if test x$host = x$build
8877 then
8878         build_auto=auto-host.h
8879         FORBUILD=..
8880 else
8881         # We create a subdir, then run autoconf in the subdir.
8882         # To prevent recursion we set host and build for the new
8883         # invocation of configure to the build for this invocation
8884         # of configure.
8885         tempdir=build.$$
8886         rm -rf $tempdir
8887         mkdir $tempdir
8888         cd $tempdir
8889         case ${srcdir} in
8890         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
8891         *) realsrcdir=../${srcdir};;
8892         esac
8893         saved_CFLAGS="${CFLAGS}"
8894         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
8895         ${realsrcdir}/configure \
8896                 --enable-languages=${enable_languages} \
8897                 --target=$target_alias --host=$build_alias --build=$build_alias
8898         CFLAGS="${saved_CFLAGS}"
8899
8900         # We just finished tests for the build machine, so rename
8901         # the file auto-build.h in the gcc directory.
8902         mv auto-host.h ../auto-build.h
8903         cd ..
8904         rm -rf $tempdir
8905         build_auto=auto-build.h
8906         FORBUILD=../${build_subdir}
8907 fi
8908
8909
8910 tm_file="${tm_file} defaults.h"
8911 tm_p_file="${tm_p_file} tm-preds.h"
8912 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
8913 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
8914 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
8915 # put this back in temporarily.
8916 xm_file="ansidecl.h ${xm_file}"
8917
8918 # --------
8919 # UNSORTED
8920 # --------
8921
8922 # Get the version trigger filename from the toplevel
8923 if test "${with_gcc_version_trigger+set}" = set; then
8924         gcc_version_trigger=$with_gcc_version_trigger
8925 else
8926         gcc_version_trigger=${srcdir}/version.c
8927 fi
8928 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
8929 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8930
8931 # Compile in configure arguments.
8932 if test -f configargs.h ; then
8933         # Being re-configured.
8934         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
8935         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
8936 else
8937         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
8938 fi
8939
8940 # Double all backslashes and backslash all quotes to turn
8941 # gcc_config_arguments into a C string.
8942 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
8943 $gcc_config_arguments
8944 EOF
8945 gcc_config_arguments_str=`cat conftest.out`
8946 rm -f conftest.out
8947
8948 cat > configargs.h <<EOF
8949 /* Generated automatically. */
8950 static const char configuration_arguments[] = "$gcc_config_arguments_str";
8951 static const char thread_model[] = "$thread_file";
8952
8953 static const struct {
8954   const char *name, *value;
8955 } configure_default_options[] = $configure_default_options;
8956 EOF
8957
8958 # Internationalization
8959 PACKAGE=gcc
8960 VERSION="$gcc_version"
8961
8962
8963
8964 # If we haven't got the data from the intl directory,
8965 # assume NLS is disabled.
8966 USE_NLS=no
8967 LIBINTL=
8968 LIBINTL_DEP=
8969 INCINTL=
8970 XGETTEXT=
8971 GMSGFMT=
8972 POSUB=
8973 if test -f ../intl/config.intl; then
8974   . ../intl/config.intl
8975 fi
8976 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8977 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8978 if test x"$USE_NLS" != xyes; then
8979   echo "$as_me:$LINENO: result: no" >&5
8980 echo "${ECHO_T}no" >&6
8981 else
8982   echo "$as_me:$LINENO: result: yes" >&5
8983 echo "${ECHO_T}yes" >&6
8984
8985 cat >>confdefs.h <<\_ACEOF
8986 #define ENABLE_NLS 1
8987 _ACEOF
8988
8989
8990   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8991 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8992   # Look for .po and .gmo files in the source directory.
8993   CATALOGS=
8994   XLINGUAS=
8995   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8996     # If there aren't any .gmo files the shell will give us the
8997     # literal string "../path/to/srcdir/po/*.gmo" which has to be
8998     # weeded out.
8999     case "$cat" in *\**)
9000       continue;;
9001     esac
9002     # The quadruple backslash is collapsed to a double backslash
9003     # by the backticks, then collapsed again by the double quotes,
9004     # leaving us with one backslash in the sed expression (right
9005     # before the dot that mustn't act as a wildcard).
9006     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9007     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9008     # The user is allowed to set LINGUAS to a list of languages to
9009     # install catalogs for.  If it's empty that means "all of them."
9010     if test "x$LINGUAS" = x; then
9011       CATALOGS="$CATALOGS $cat"
9012       XLINGUAS="$XLINGUAS $lang"
9013     else
9014       case "$LINGUAS" in *$lang*)
9015         CATALOGS="$CATALOGS $cat"
9016         XLINGUAS="$XLINGUAS $lang"
9017         ;;
9018       esac
9019     fi
9020   done
9021   LINGUAS="$XLINGUAS"
9022   echo "$as_me:$LINENO: result: $LINGUAS" >&5
9023 echo "${ECHO_T}$LINGUAS" >&6
9024 fi
9025
9026 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9027 # -liconv on the link line twice.
9028 case "$LIBINTL" in *$LIBICONV*)
9029         LIBICONV= ;;
9030 esac
9031
9032 # Windows32 Registry support for specifying GCC installation paths.
9033 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9034 if test "${enable_win32_registry+set}" = set; then
9035   enableval="$enable_win32_registry"
9036
9037 fi;
9038 case $host_os in
9039         win32 | pe | cygwin* | mingw32* | uwin*)
9040 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9041 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9042 if test "x$enable_win32_registry" != xno; then
9043
9044 cat >>confdefs.h <<\_ACEOF
9045 #define ENABLE_WIN32_REGISTRY 1
9046 _ACEOF
9047
9048   echo "$as_me:$LINENO: result: yes" >&5
9049 echo "${ECHO_T}yes" >&6
9050   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9051 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9052 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9053   echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055   ac_func_search_save_LIBS=$LIBS
9056 ac_cv_search_RegOpenKeyExA=no
9057 cat >conftest.$ac_ext <<_ACEOF
9058 #line $LINENO "configure"
9059 /* confdefs.h.  */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h.  */
9064
9065 /* Override any gcc2 internal prototype to avoid an error.  */
9066 #ifdef __cplusplus
9067 extern "C"
9068 #endif
9069 /* We use char because int might match the return type of a gcc2
9070    builtin and then its argument prototype would still apply.  */
9071 char RegOpenKeyExA ();
9072 int
9073 main ()
9074 {
9075 RegOpenKeyExA ();
9076   ;
9077   return 0;
9078 }
9079 _ACEOF
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9082   (eval $ac_link) 2>&5
9083   ac_status=$?
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); } &&
9086          { ac_try='test -s conftest$ac_exeext'
9087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088   (eval $ac_try) 2>&5
9089   ac_status=$?
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); }; }; then
9092   ac_cv_search_RegOpenKeyExA="none required"
9093 else
9094   echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9096
9097 fi
9098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9099 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9100   for ac_lib in advapi32; do
9101     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9102     cat >conftest.$ac_ext <<_ACEOF
9103 #line $LINENO "configure"
9104 /* confdefs.h.  */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h.  */
9109
9110 /* Override any gcc2 internal prototype to avoid an error.  */
9111 #ifdef __cplusplus
9112 extern "C"
9113 #endif
9114 /* We use char because int might match the return type of a gcc2
9115    builtin and then its argument prototype would still apply.  */
9116 char RegOpenKeyExA ();
9117 int
9118 main ()
9119 {
9120 RegOpenKeyExA ();
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 rm -f conftest.$ac_objext conftest$ac_exeext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127   (eval $ac_link) 2>&5
9128   ac_status=$?
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); } &&
9131          { ac_try='test -s conftest$ac_exeext'
9132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133   (eval $ac_try) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); }; }; then
9137   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9138 break
9139 else
9140   echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9142
9143 fi
9144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9145   done
9146 fi
9147 LIBS=$ac_func_search_save_LIBS
9148 fi
9149 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9150 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9151 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9152   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9153
9154 fi
9155
9156 else
9157   echo "$as_me:$LINENO: result: no" >&5
9158 echo "${ECHO_T}no" >&6
9159 fi
9160
9161 # Check if user specified a different registry key.
9162 case "x${enable_win32_registry}" in
9163 x | xyes)
9164   # default.
9165   gcc_cv_win32_registry_key="$VERSION"
9166   ;;
9167 xno)
9168   # no registry lookup.
9169   gcc_cv_win32_registry_key=''
9170   ;;
9171 *)
9172   # user-specified key.
9173   gcc_cv_win32_registry_key="$enable_win32_registry"
9174   ;;
9175 esac
9176
9177 if test "x$enable_win32_registry" != xno; then
9178   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9179 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9180
9181 cat >>confdefs.h <<_ACEOF
9182 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9183 _ACEOF
9184
9185   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9186 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9187 fi
9188 ;;
9189 esac
9190
9191 # Get an absolute path to the GCC top-level source directory
9192 holddir=`${PWDCMD-pwd}`
9193 cd $srcdir
9194 topdir=`${PWDCMD-pwd}`
9195 cd $holddir
9196
9197 # Conditionalize the makefile for this host machine.
9198 xmake_file=
9199 for f in ${host_xmake_file}
9200 do
9201         if test -f ${srcdir}/config/$f
9202         then
9203                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9204         fi
9205 done
9206
9207 # Conditionalize the makefile for this target machine.
9208 tmake_file_=
9209 for f in ${tmake_file}
9210 do
9211         if test -f ${srcdir}/config/$f
9212         then
9213                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9214         fi
9215 done
9216 tmake_file="${tmake_file_}"
9217
9218 symbolic_link='ln -s'
9219
9220 # If the host doesn't support symlinks, modify CC in
9221 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9222 # Otherwise, we can use "CC=$(CC)".
9223 rm -f symtest.tem
9224 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9225 then
9226         cc_set_by_configure="\$(CC)"
9227         quoted_cc_set_by_configure="\$(CC)"
9228         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9229         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9230 else
9231         rm -f symtest.tem
9232         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9233         then
9234                 symbolic_link="cp -p"
9235         else
9236                 symbolic_link="cp"
9237         fi
9238         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9239         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9240         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9241         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9242 fi
9243 rm -f symtest.tem
9244
9245 out_object_file=`basename $out_file .c`.o
9246
9247 tm_file_list=
9248 tm_include_list=
9249 for f in $tm_file; do
9250   case $f in
9251     defaults.h )
9252        tm_file_list="${tm_file_list} \$(srcdir)/$f"
9253        tm_include_list="${tm_include_list} $f"
9254        ;;
9255     * )
9256        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9257        tm_include_list="${tm_include_list} config/$f"
9258        ;;
9259   esac
9260 done
9261
9262 tm_p_file_list=
9263 tm_p_include_list=
9264 for f in $tm_p_file; do
9265   case $f in
9266     tm-preds.h )
9267        tm_p_file_list="${tm_p_file_list} $f"
9268        tm_p_include_list="${tm_p_include_list} $f"
9269        ;;
9270     * )
9271        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9272        tm_p_include_list="${tm_p_include_list} config/$f"
9273   esac
9274 done
9275
9276 xm_file_list=
9277 xm_include_list=
9278 for f in $xm_file; do
9279   case $f in
9280     ansidecl.h )
9281        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9282        xm_include_list="${xm_include_list} $f"
9283        ;;
9284     auto-host.h )
9285        xm_file_list="${xm_file_list} $f"
9286        xm_include_list="${xm_include_list} $f"
9287        ;;
9288     * )
9289        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9290        xm_include_list="${xm_include_list} config/$f"
9291        ;;
9292   esac
9293 done
9294
9295 host_xm_file_list=
9296 host_xm_include_list=
9297 for f in $host_xm_file; do
9298   case $f in
9299     ansidecl.h )
9300        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9301        host_xm_include_list="${host_xm_include_list} $f"
9302        ;;
9303     auto-host.h )
9304        host_xm_file_list="${host_xm_file_list} $f"
9305        host_xm_include_list="${host_xm_include_list} $f"
9306        ;;
9307     * )
9308        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9309        host_xm_include_list="${host_xm_include_list} config/$f"
9310        ;;
9311   esac
9312 done
9313
9314 build_xm_file_list=
9315 for f in $build_xm_file; do
9316   case $f in
9317     ansidecl.h )
9318        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9319        build_xm_include_list="${build_xm_include_list} $f"
9320        ;;
9321     auto-build.h | auto-host.h )
9322        build_xm_file_list="${build_xm_file_list} $f"
9323        build_xm_include_list="${build_xm_include_list} $f"
9324        ;;
9325     * )
9326        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9327        build_xm_include_list="${build_xm_include_list} config/$f"
9328        ;;
9329   esac
9330 done
9331
9332 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9333 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9334 CROSS=
9335 ALL=all.internal
9336 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9337 if test x$host != x$target
9338 then
9339         CROSS="-DCROSS_COMPILE"
9340         ALL=all.cross
9341         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9342         case "$host","$target" in
9343         # Darwin crosses can use the host system's libraries and headers,
9344         # because of the fat library support.  Of course, it must be the
9345         # same version of Darwin on both sides.  Allow the user to
9346         # just say --target=foo-darwin without a version number to mean
9347         # "the version on this system".
9348             *-*-darwin*,*-*-darwin*)
9349                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9350                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9351                 if test $hostos = $targetos -o $targetos = darwin ; then
9352                     CROSS=
9353                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9354                     with_headers=yes
9355                 fi
9356                 ;;
9357
9358             i?86-*-*,x86_64-*-* \
9359             | powerpc*-*-*,powerpc64*-*-*)
9360                 CROSS="$CROSS -DNATIVE_CROSS" ;;
9361         esac
9362 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9363         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9364         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9365 fi
9366
9367 # If this is a cross-compiler that does not
9368 # have its own set of headers then define
9369 # inhibit_libc
9370
9371 # If this is using newlib, without having the headers available now,
9372 # then define inhibit_libc in LIBGCC2_CFLAGS.
9373 # This prevents libgcc2 from containing any code which requires libc
9374 # support.
9375 inhibit_libc=
9376 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9377        test x$with_newlib = xyes ; } &&
9378      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9379        inhibit_libc=-Dinhibit_libc
9380 fi
9381
9382
9383 # When building gcc with a cross-compiler, we need to adjust things so
9384 # that the generator programs are still built with the native compiler.
9385 # Also, we cannot run fixincludes or fix-header.
9386
9387 # These are the normal (build=host) settings:
9388 BUILD_PREFIX=
9389 BUILD_PREFIX_1=ignore-
9390 CC_FOR_BUILD='$(CC)'
9391 BUILD_CFLAGS='$(ALL_CFLAGS)'
9392
9393 STMP_FIXINC=stmp-fixinc
9394
9395 # Possibly disable fixproto, on a per-target basis.
9396 case ${use_fixproto} in
9397   no)
9398     STMP_FIXPROTO=
9399     ;;
9400   yes)
9401     STMP_FIXPROTO=stmp-fixproto
9402     ;;
9403 esac
9404
9405
9406 # And these apply if build != host, or we are generating coverage data
9407 if test x$build != x$host || test "x$coverage_flags" != x
9408 then
9409     BUILD_PREFIX=build-
9410     BUILD_PREFIX_1=build-
9411     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9412
9413     if test "x$TARGET_SYSTEM_ROOT" = x; then
9414         STMP_FIXINC=
9415         STMP_FIXPROTO=
9416     fi
9417 fi
9418
9419 # Expand extra_headers to include complete path.
9420 # This substitutes for lots of t-* files.
9421 extra_headers_list=
9422 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9423 for file in ${extra_headers} ; do
9424   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9425 done
9426
9427 # Add a definition of USE_COLLECT2 if system wants one.
9428 case $use_collect2 in
9429   no) use_collect2= ;;
9430   "") ;;
9431   *)
9432     host_xm_defines="${host_xm_defines} USE_COLLECT2"
9433     xm_defines="${xm_defines} USE_COLLECT2"
9434     ;;
9435 esac
9436
9437 # Identify the assembler which will work hand-in-glove with the newly
9438 # built GCC, so that we can examine its features.  This is the assembler
9439 # which will be driven by the driver program.
9440 #
9441 # If build != host, and we aren't building gas in-tree, we identify a
9442 # build->target assembler and hope that it will have the same features
9443 # as the host->target assembler we'll be using.
9444 echo "$as_me:$LINENO: checking what assembler to use" >&5
9445 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9446 in_tree_gas=no
9447 gcc_cv_as=
9448 gcc_cv_gas_major_version=
9449 gcc_cv_gas_minor_version=
9450 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9451 if test -x "$DEFAULT_ASSEMBLER"; then
9452         gcc_cv_as="$DEFAULT_ASSEMBLER"
9453 elif test -x "$AS"; then
9454         gcc_cv_as="$AS"
9455 elif test -x as$host_exeext; then
9456         # Build using assembler in the current directory.
9457         gcc_cv_as=./as$host_exeext
9458 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9459      && test -f ../gas/Makefile; then
9460   # Single tree build which includes gas.
9461   in_tree_gas=yes
9462   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9463 for f in $gcc_cv_as_bfd_srcdir/configure \
9464          $gcc_cv_as_gas_srcdir/configure \
9465          $gcc_cv_as_gas_srcdir/configure.in \
9466          $gcc_cv_as_gas_srcdir/Makefile.in ; do
9467   gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9468   if test x$gcc_cv_gas_version != x; then
9469     break
9470   fi
9471 done
9472 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9473 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9474 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9475 case $gcc_cv_gas_patch_version in
9476   "") gcc_cv_gas_patch_version="0" ;;
9477 esac
9478 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9479                             + $gcc_cv_gas_minor_version \) \* 1000 \
9480                             + $gcc_cv_gas_patch_version`
9481
9482   rm -f as$host_exeext
9483   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9484   in_tree_gas_is_elf=no
9485   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9486      || (grep 'obj_format = multi' ../gas/Makefile \
9487          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9488   then
9489     in_tree_gas_is_elf=yes
9490   fi
9491 fi
9492
9493 if test "x$gcc_cv_as" = x; then
9494         # Search the same directories that the installed compiler will
9495         # search.  Else we may find the wrong assembler and lose.  If we
9496         # do not find a suitable assembler binary, then try the user's
9497         # path.
9498         #
9499         # Also note we have to check MD_EXEC_PREFIX before checking the
9500         # user's path.  Unfortunately, there is no good way to get at the
9501         # value of MD_EXEC_PREFIX here.  So we do a brute force search
9502         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
9503         # to be fixed as part of the make/configure rewrite too.
9504
9505         if test "x$exec_prefix" = xNONE; then
9506                 if test "x$prefix" = xNONE; then
9507                         test_prefix=/usr/local
9508                 else
9509                         test_prefix=$prefix
9510                 fi
9511         else
9512                 test_prefix=$exec_prefix
9513         fi
9514
9515         # If the loop below does not find an assembler, then use whatever
9516         # one we can find in the users's path.
9517         # user's path.
9518         if test "x$program_prefix" != xNONE; then
9519                 gcc_cv_as=${program_prefix}as$host_exeext
9520         else
9521                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
9522         fi
9523
9524         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9525                    $test_prefix/libexec/gcc/$target_noncanonical \
9526                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
9527                    /usr/lib/gcc/$target_noncanonical \
9528                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9529                    $test_prefix/$target_noncanonical/bin"
9530
9531         if test x$host = x$target; then
9532             test_dirs="$test_dirs \
9533                    /usr/libexec \
9534                    /usr/ccs/gcc \
9535                    /usr/ccs/bin \
9536                    /udk/usr/ccs/bin \
9537                    /bsd43/usr/lib/cmplrs/cc \
9538                    /usr/cross64/usr/bin \
9539                    /usr/lib/cmplrs/cc \
9540                    /sysv/usr/lib/cmplrs/cc \
9541                    /svr4/usr/lib/cmplrs/cc \
9542                    /usr/bin"
9543         fi
9544
9545         for dir in $test_dirs; do
9546                 if test -x $dir/as$host_exeext; then
9547                         gcc_cv_as=$dir/as$host_exeext
9548                         break;
9549                 fi
9550         done
9551 fi
9552 case $in_tree_gas in
9553   yes)
9554     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9555 echo "${ECHO_T}\"newly built gas\"" >&6
9556     ;;
9557   no)
9558     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9559 echo "${ECHO_T}$gcc_cv_as" >&6
9560     ;;
9561 esac
9562
9563 # Identify the linker which will work hand-in-glove with the newly
9564 # built GCC, so that we can examine its features.  This is the linker
9565 # which will be driven by the driver program.
9566 #
9567 # If build != host, and we aren't building gas in-tree, we identify a
9568 # build->target linker and hope that it will have the same features
9569 # as the host->target linker we'll be using.
9570 echo "$as_me:$LINENO: checking what linker to use" >&5
9571 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9572 in_tree_ld=no
9573 gcc_cv_ld=
9574 gcc_cv_gld_major_version=
9575 gcc_cv_gld_minor_version=
9576 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9577 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9578 if test -x "$DEFAULT_LINKER"; then
9579         gcc_cv_ld="$DEFAULT_LINKER"
9580 elif test -x "$LD_FOR_TARGET"; then
9581         gcc_cv_ld="$LD_FOR_TARGET"
9582 elif test -x "$LD" && test x$host = x$target; then
9583         gcc_cv_ld="$LD"
9584 elif test -x collect-ld$host_exeext; then
9585         # Build using linker in the current directory.
9586         gcc_cv_ld=./collect-ld$host_exeext
9587 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9588      && test -f ../ld/Makefile; then
9589         # Single tree build which includes ld.
9590         in_tree_ld=yes
9591         in_tree_ld_is_elf=no
9592         if (grep 'EMUL = .*elf' ../ld/Makefile \
9593             || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
9594           in_tree_ld_is_elf=yes
9595         fi
9596         for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
9597         do
9598                 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9599                 if test x$gcc_cv_gld_version != x; then
9600                         break
9601                 fi
9602         done
9603         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9604         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9605         rm -f collect-ld$host_exeext
9606         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
9607                 2>/dev/null
9608 fi
9609
9610 if test "x$gcc_cv_ld" = x; then
9611         # Search the same directories that the installed compiler will
9612         # search.  Else we may find the wrong linker and lose.  If we
9613         # do not find a suitable linker binary, then try the user's
9614         # path.
9615         #
9616         # Also note we have to check MD_EXEC_PREFIX before checking the
9617         # user's path.  Unfortunately, there is no good way to get at the
9618         # value of MD_EXEC_PREFIX here.  So we do a brute force search
9619         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
9620         # to be fixed as part of the make/configure rewrite too.
9621
9622         if test "x$exec_prefix" = xNONE; then
9623                 if test "x$prefix" = xNONE; then
9624                         test_prefix=/usr/local
9625                 else
9626                         test_prefix=$prefix
9627                 fi
9628         else
9629                 test_prefix=$exec_prefix
9630         fi
9631
9632         # If the loop below does not find an linker, then use whatever
9633         # one we can find in the users's path.
9634         # user's path.
9635         if test "x$program_prefix" != xNONE; then
9636                 gcc_cv_ld=${program_prefix}ld$host_exeext
9637         else
9638                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
9639         fi
9640
9641         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9642                    $test_prefix/libexec/gcc/$target_noncanonical \
9643                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
9644                    /usr/lib/gcc/$target_noncanonical \
9645                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9646                    $test_prefix/$target_noncanonical/bin"
9647
9648         if test x$host = x$target; then
9649             test_dirs="$test_dirs \
9650                    /usr/libexec \
9651                    /usr/ccs/gcc \
9652                    /usr/ccs/bin \
9653                    /udk/usr/ccs/bin \
9654                    /bsd43/usr/lib/cmplrs/cc \
9655                    /usr/cross64/usr/bin \
9656                    /usr/lib/cmplrs/cc \
9657                    /sysv/usr/lib/cmplrs/cc \
9658                    /svr4/usr/lib/cmplrs/cc \
9659                    /usr/bin"
9660         fi
9661
9662         for dir in $test_dirs; do
9663                 if test -x $dir/ld$host_exeext; then
9664                         gcc_cv_ld=$dir/ld$host_exeext
9665                         break;
9666                 fi
9667         done
9668 fi
9669 case $in_tree_ld in
9670   yes)
9671     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
9672 echo "${ECHO_T}\"newly built ld\"" >&6
9673     ;;
9674   no)
9675     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
9676 echo "${ECHO_T}$gcc_cv_ld" >&6
9677     ;;
9678 esac
9679
9680 # Figure out what nm we will be using.
9681 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
9682 echo "$as_me:$LINENO: checking what nm to use" >&5
9683 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
9684 in_tree_nm=no
9685 if test -x nm$host_exeext; then
9686         gcc_cv_nm=./nm$host_exeext
9687 elif test -f $gcc_cv_binutils_srcdir/configure.in \
9688      && test -f ../binutils/Makefile; then
9689         # Single tree build which includes binutils.
9690         in_tree_nm=yes
9691         gcc_cv_nm=./nm$host_exeext
9692         rm -f nm$host_exeext
9693         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
9694 elif test "x$program_prefix" != xNONE; then
9695         gcc_cv_nm=${program_prefix}nm$host_exeext
9696 else
9697         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
9698 fi
9699 case $in_tree_nm in
9700   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
9701 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
9702   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
9703 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
9704 esac
9705
9706 # Figure out what objdump we will be using.
9707 echo "$as_me:$LINENO: checking what objdump to use" >&5
9708 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
9709 in_tree_objdump=no
9710 if test -x objdump$host_exeext; then
9711         gcc_cv_objdump=./objdump$host_exeext
9712 elif test -f $gcc_cv_binutils_srcdir/configure.in \
9713      && test -f ../binutils/Makefile; then
9714         # Single tree build which includes binutils.
9715         in_tree_objdump=yes
9716         gcc_cv_objdump=./objdump$host_exeext
9717         rm -f objdump$host_exeext
9718         $symbolic_link ../binutils/objdump$host_exeext \
9719                 objdump$host_exeext 2>/dev/null
9720 elif test "x$program_prefix" != xNONE; then
9721         gcc_cv_objdump=${program_prefix}objdump$host_exeext
9722 else
9723         gcc_cv_objdump=`echo objdump | \
9724                 sed "${program_transform_name}"`$host_exeext
9725 fi
9726 case $in_tree_objdump in
9727   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
9728 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
9729   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
9730 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
9731 esac
9732
9733 # Figure out what assembler alignment features are present.
9734 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
9735 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
9736 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
9737   echo $ECHO_N "(cached) $ECHO_C" >&6
9738 else
9739   gcc_cv_as_balign_and_p2align=no
9740     if test $in_tree_gas = yes; then
9741     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
9742   then gcc_cv_as_balign_and_p2align=yes
9743 fi
9744   elif test x$gcc_cv_as != x; then
9745     echo '.balign 4
9746 .p2align 2' > conftest.s
9747     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
9748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749   (eval $ac_try) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; }
9753     then
9754         gcc_cv_as_balign_and_p2align=yes
9755     else
9756       echo "configure: failed program was" >&5
9757       cat conftest.s >&5
9758     fi
9759     rm -f conftest.o conftest.s
9760   fi
9761 fi
9762 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
9763 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
9764 if test $gcc_cv_as_balign_and_p2align = yes; then
9765
9766 cat >>confdefs.h <<\_ACEOF
9767 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9768 _ACEOF
9769
9770 fi
9771
9772 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
9773 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
9774 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
9775   echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9777   gcc_cv_as_max_skip_p2align=no
9778     if test $in_tree_gas = yes; then
9779     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
9780   then gcc_cv_as_max_skip_p2align=yes
9781 fi
9782   elif test x$gcc_cv_as != x; then
9783     echo '.p2align 4,,7' > conftest.s
9784     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
9785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786   (eval $ac_try) 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); }; }
9790     then
9791         gcc_cv_as_max_skip_p2align=yes
9792     else
9793       echo "configure: failed program was" >&5
9794       cat conftest.s >&5
9795     fi
9796     rm -f conftest.o conftest.s
9797   fi
9798 fi
9799 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
9800 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
9801 if test $gcc_cv_as_max_skip_p2align = yes; then
9802
9803 cat >>confdefs.h <<\_ACEOF
9804 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9805 _ACEOF
9806
9807 fi
9808
9809 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
9810 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
9811 if test "${gcc_cv_as_subsection_m1+set}" = set; then
9812   echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814   gcc_cv_as_subsection_m1=no
9815     if test $in_tree_gas = yes; then
9816     if test $in_tree_gas_is_elf = yes \
9817   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
9818   then gcc_cv_as_subsection_m1=yes
9819 fi
9820   elif test x$gcc_cv_as != x; then
9821     echo 'conftest_label1: .word 0
9822 .subsection -1
9823 conftest_label2: .word 0
9824 .previous' > conftest.s
9825     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
9826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827   (eval $ac_try) 2>&5
9828   ac_status=$?
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); }; }
9831     then
9832         if test x$gcc_cv_nm != x; then
9833     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
9834     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
9835     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
9836     then :
9837     else gcc_cv_as_subsection_m1=yes
9838     fi
9839     rm -f conftest.nm1 conftest.nm2
9840   fi
9841     else
9842       echo "configure: failed program was" >&5
9843       cat conftest.s >&5
9844     fi
9845     rm -f conftest.o conftest.s
9846   fi
9847 fi
9848 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
9849 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
9850 if test $gcc_cv_as_subsection_m1 = yes; then
9851
9852 cat >>confdefs.h <<\_ACEOF
9853 #define HAVE_GAS_SUBSECTION_ORDERING 1
9854 _ACEOF
9855
9856 fi
9857
9858 echo "$as_me:$LINENO: checking assembler for .weak" >&5
9859 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
9860 if test "${gcc_cv_as_weak+set}" = set; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   gcc_cv_as_weak=no
9864     if test $in_tree_gas = yes; then
9865     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
9866   then gcc_cv_as_weak=yes
9867 fi
9868   elif test x$gcc_cv_as != x; then
9869     echo '      .weak foobar' > conftest.s
9870     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
9871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872   (eval $ac_try) 2>&5
9873   ac_status=$?
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); }; }
9876     then
9877         gcc_cv_as_weak=yes
9878     else
9879       echo "configure: failed program was" >&5
9880       cat conftest.s >&5
9881     fi
9882     rm -f conftest.o conftest.s
9883   fi
9884 fi
9885 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
9886 echo "${ECHO_T}$gcc_cv_as_weak" >&6
9887 if test $gcc_cv_as_weak = yes; then
9888
9889 cat >>confdefs.h <<\_ACEOF
9890 #define HAVE_GAS_WEAK 1
9891 _ACEOF
9892
9893 fi
9894
9895 # .hidden needs to be supported in both the assembler and the linker,
9896 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
9897 # This is irritatingly difficult to feature test for; we have to check the
9898 # date string after the version number.  If we've got an in-tree
9899 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
9900 # to be safe.
9901 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
9902 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
9903 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
9904 if test "${gcc_cv_as_hidden+set}" = set; then
9905   echo $ECHO_N "(cached) $ECHO_C" >&6
9906 else
9907   gcc_cv_as_hidden=no
9908     if test $in_tree_gas = yes; then
9909     if test $in_tree_gas_is_elf = yes \
9910   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
9911   then gcc_cv_as_hidden=yes
9912 fi
9913   elif test x$gcc_cv_as != x; then
9914     echo '      .hidden foobar
9915 foobar:' > conftest.s
9916     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
9917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918   (eval $ac_try) 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; }
9922     then
9923         gcc_cv_as_hidden=yes
9924     else
9925       echo "configure: failed program was" >&5
9926       cat conftest.s >&5
9927     fi
9928     rm -f conftest.o conftest.s
9929   fi
9930 fi
9931 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
9932 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
9933
9934
9935 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
9936 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
9937 if test "${gcc_cv_ld_hidden+set}" = set; then
9938   echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940   if test $in_tree_ld = yes ; then
9941   gcc_cv_ld_hidden=no
9942   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
9943      && test $in_tree_ld_is_elf = yes; then
9944      gcc_cv_ld_hidden=yes
9945   fi
9946 else
9947   gcc_cv_ld_hidden=yes
9948   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
9949   if echo "$ld_ver" | grep GNU > /dev/null; then
9950     ld_vers=`echo $ld_ver | sed -n \
9951         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9952         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9953         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9954         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
9955         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
9956         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
9957     ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
9958     if test 0"$ld_date" -lt 20020404; then
9959       if test -n "$ld_date"; then
9960         # If there was date string, but was earlier than 2002-04-04, fail
9961         gcc_cv_ld_hidden=no
9962       elif test -z "$ld_vers"; then
9963         # If there was no date string nor ld version number, something is wrong
9964         gcc_cv_ld_hidden=no
9965       else
9966         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
9967         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
9968         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9969         test -z "$ld_vers_patch" && ld_vers_patch=0
9970         if test "$ld_vers_major" -lt 2; then
9971           gcc_cv_ld_hidden=no
9972         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
9973           gcc_cv_ld_hidden="no"
9974         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
9975           gcc_cv_ld_hidden=no
9976         fi
9977       fi
9978     fi
9979   else
9980     case "${target}" in
9981       hppa64*-*-hpux* | ia64*-*-hpux*)
9982         gcc_cv_ld_hidden=yes
9983         ;;
9984       *)
9985         gcc_cv_ld_hidden=no
9986         ;;
9987     esac
9988   fi
9989 fi
9990 fi
9991 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
9992 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
9993 libgcc_visibility=no
9994
9995 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
9996   libgcc_visibility=yes
9997
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_GAS_HIDDEN 1
10000 _ACEOF
10001
10002 fi
10003
10004 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10005 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10006 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10007 if test "${gcc_cv_as_leb128+set}" = set; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   gcc_cv_as_leb128=no
10011     if test $in_tree_gas = yes; then
10012     if test $in_tree_gas_is_elf = yes \
10013   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10014   then gcc_cv_as_leb128=yes
10015 fi
10016   elif test x$gcc_cv_as != x; then
10017     echo '      .data
10018         .uleb128 L2 - L1
10019 L1:
10020         .uleb128 1280
10021         .sleb128 -1010
10022 L2:' > conftest.s
10023     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025   (eval $ac_try) 2>&5
10026   ac_status=$?
10027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028   (exit $ac_status); }; }
10029     then
10030         # GAS versions before 2.11 do not support uleb128,
10031   # despite appearing to.
10032   # ??? There exists an elf-specific test that will crash
10033   # the assembler.  Perhaps it's better to figure out whether
10034   # arbitrary sections are supported and try the test.
10035   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10036   if echo "$as_ver" | grep GNU > /dev/null; then
10037     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10038     as_major=`echo $as_ver | sed 's/\..*//'`
10039     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10040     if test $as_major -eq 2 && test $as_minor -lt 11
10041     then :
10042     else gcc_cv_as_leb128=yes
10043     fi
10044   fi
10045     else
10046       echo "configure: failed program was" >&5
10047       cat conftest.s >&5
10048     fi
10049     rm -f conftest.o conftest.s
10050   fi
10051 fi
10052 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10053 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10054 if test $gcc_cv_as_leb128 = yes; then
10055
10056 cat >>confdefs.h <<\_ACEOF
10057 #define HAVE_AS_LEB128 1
10058 _ACEOF
10059
10060 fi
10061
10062 # GAS versions up to and including 2.11.0 may mis-optimize
10063 # .eh_frame data.
10064 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10065 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10066 if test "${gcc_cv_as_eh_frame+set}" = set; then
10067   echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069   gcc_cv_as_eh_frame=no
10070     if test $in_tree_gas = yes; then
10071     if test $in_tree_gas_is_elf = yes \
10072   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10073   then gcc_cv_as_eh_frame=yes
10074 fi
10075   elif test x$gcc_cv_as != x; then
10076     echo '      .text
10077 .LFB1:
10078         .4byte  0
10079 .L1:
10080         .4byte  0
10081 .LFE1:
10082         .section        .eh_frame,"aw",@progbits
10083 __FRAME_BEGIN__:
10084         .4byte  .LECIE1-.LSCIE1
10085 .LSCIE1:
10086         .4byte  0x0
10087         .byte   0x1
10088         .ascii "z\0"
10089         .byte   0x1
10090         .byte   0x78
10091         .byte   0x1a
10092         .byte   0x0
10093         .byte   0x4
10094         .4byte  1
10095         .p2align 1
10096 .LECIE1:
10097 .LSFDE1:
10098         .4byte  .LEFDE1-.LASFDE1
10099 .LASFDE1:
10100         .4byte  .LASFDE1-__FRAME_BEGIN__
10101         .4byte  .LFB1
10102         .4byte  .LFE1-.LFB1
10103         .byte   0x4
10104         .4byte  .LFE1-.LFB1
10105         .byte   0x4
10106         .4byte  .L1-.LFB1
10107 .LEFDE1:' > conftest.s
10108     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110   (eval $ac_try) 2>&5
10111   ac_status=$?
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); }; }
10114     then
10115           cat > conftest.lit <<EOF
10116  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10117  0010 01000000 12000000 18000000 00000000  ................
10118  0020 08000000 04080000 0044               .........D      
10119 EOF
10120 cat > conftest.big <<EOF
10121  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10122  0010 00000001 00000012 00000018 00000000  ................
10123  0020 00000008 04000000 0844               .........D      
10124 EOF
10125   # If the assembler didn't choke, and we can objdump,
10126   # and we got the correct data, then succeed.
10127   if test x$gcc_cv_objdump != x \
10128   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10129      | tail -3 > conftest.got \
10130   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10131     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10132   then
10133     gcc_cv_as_eh_frame=yes
10134   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136   (eval $ac_try) 2>&5
10137   ac_status=$?
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); }; }; then
10140     gcc_cv_as_eh_frame=buggy
10141   else
10142     # Uh oh, what do we do now?
10143     gcc_cv_as_eh_frame=no
10144   fi
10145     else
10146       echo "configure: failed program was" >&5
10147       cat conftest.s >&5
10148     fi
10149     rm -f conftest.o conftest.s
10150   fi
10151 fi
10152 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10153 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10154
10155
10156 if test $gcc_cv_as_eh_frame = buggy; then
10157
10158 cat >>confdefs.h <<\_ACEOF
10159 #define USE_AS_TRADITIONAL_FORMAT 1
10160 _ACEOF
10161
10162 fi
10163
10164 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10165 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10166 if test "${gcc_cv_as_shf_merge+set}" = set; then
10167   echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169   gcc_cv_as_shf_merge=no
10170     if test $in_tree_gas = yes; then
10171     if test $in_tree_gas_is_elf = yes \
10172   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10173   then gcc_cv_as_shf_merge=yes
10174 fi
10175   elif test x$gcc_cv_as != x; then
10176     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10177     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179   (eval $ac_try) 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); }; }
10183     then
10184         gcc_cv_as_shf_merge=yes
10185     else
10186       echo "configure: failed program was" >&5
10187       cat conftest.s >&5
10188     fi
10189     rm -f conftest.o conftest.s
10190   fi
10191 fi
10192 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10193 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10194
10195
10196 cat >>confdefs.h <<_ACEOF
10197 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10198 _ACEOF
10199
10200
10201 # Thread-local storage - the check is heavily parametrized.
10202 conftest_s=
10203 tls_first_major=
10204 tls_first_minor=
10205 tls_as_opt=
10206 case "$target" in
10207   alpha*-*-*)
10208     conftest_s='
10209         .section ".tdata","awT",@progbits
10210 foo:    .long   25
10211         .text
10212         ldq     $27,__tls_get_addr($29)         !literal!1
10213         lda     $16,foo($29)                    !tlsgd!1
10214         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
10215         ldq     $27,__tls_get_addr($29)         !literal!2
10216         lda     $16,foo($29)                    !tlsldm!2
10217         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
10218         ldq     $1,foo($29)                     !gotdtprel
10219         ldah    $2,foo($29)                     !dtprelhi
10220         lda     $3,foo($2)                      !dtprello
10221         lda     $4,foo($29)                     !dtprel
10222         ldq     $1,foo($29)                     !gottprel
10223         ldah    $2,foo($29)                     !tprelhi
10224         lda     $3,foo($2)                      !tprello
10225         lda     $4,foo($29)                     !tprel'
10226         tls_first_major=2
10227         tls_first_minor=13
10228         tls_as_opt=--fatal-warnings
10229         ;;
10230   i[34567]86-*-*)
10231     conftest_s='
10232         .section ".tdata","awT",@progbits
10233 foo:    .long   25
10234         .text
10235         movl    %gs:0, %eax
10236         leal    foo@TLSGD(,%ebx,1), %eax
10237         leal    foo@TLSLDM(%ebx), %eax
10238         leal    foo@DTPOFF(%eax), %edx
10239         movl    foo@GOTTPOFF(%ebx), %eax
10240         subl    foo@GOTTPOFF(%ebx), %eax
10241         addl    foo@GOTNTPOFF(%ebx), %eax
10242         movl    foo@INDNTPOFF, %eax
10243         movl    $foo@TPOFF, %eax
10244         subl    $foo@TPOFF, %eax
10245         leal    foo@NTPOFF(%ecx), %eax'
10246         tls_first_major=2
10247         tls_first_minor=14
10248         tls_as_opt=--fatal-warnings
10249         ;;
10250   x86_64-*-*)
10251     conftest_s='
10252         .section ".tdata","awT",@progbits
10253 foo:    .long   25
10254         .text
10255         movq    %fs:0, %rax
10256         leaq    foo@TLSGD(%rip), %rdi
10257         leaq    foo@TLSLD(%rip), %rdi
10258         leaq    foo@DTPOFF(%rax), %rdx
10259         movq    foo@GOTTPOFF(%rip), %rax
10260         movq    $foo@TPOFF, %rax'
10261         tls_first_major=2
10262         tls_first_minor=14
10263         tls_as_opt=--fatal-warnings
10264         ;;
10265   ia64-*-*)
10266     conftest_s='
10267         .section ".tdata","awT",@progbits
10268 foo:    data8   25
10269         .text
10270         addl    r16 = @ltoff(@dtpmod(foo#)), gp
10271         addl    r17 = @ltoff(@dtprel(foo#)), gp
10272         addl    r18 = @ltoff(@tprel(foo#)), gp
10273         addl    r19 = @dtprel(foo#), gp
10274         adds    r21 = @dtprel(foo#), r13
10275         movl    r23 = @dtprel(foo#)
10276         addl    r20 = @tprel(foo#), gp
10277         adds    r22 = @tprel(foo#), r13
10278         movl    r24 = @tprel(foo#)'
10279         tls_first_major=2
10280         tls_first_minor=13
10281         tls_as_opt=--fatal-warnings
10282         ;;
10283   powerpc-*-*)
10284     conftest_s='
10285         .section ".tdata","awT",@progbits
10286         .align 2
10287 ld0:    .space 4
10288 ld1:    .space 4
10289 x1:     .space 4
10290 x2:     .space 4
10291 x3:     .space 4
10292         .text
10293         addi 3,31,ld0@got@tlsgd
10294         bl __tls_get_addr
10295         addi 3,31,x1@got@tlsld
10296         bl __tls_get_addr
10297         addi 9,3,x1@dtprel
10298         addis 9,3,x2@dtprel@ha
10299         addi 9,9,x2@dtprel@l
10300         lwz 9,x3@got@tprel(31)
10301         add 9,9,x@tls
10302         addi 9,2,x1@tprel
10303         addis 9,2,x2@tprel@ha
10304         addi 9,9,x2@tprel@l'
10305         tls_first_major=2
10306         tls_first_minor=14
10307         tls_as_opt="-a32 --fatal-warnings"
10308         ;;
10309   powerpc64-*-*)
10310     conftest_s='
10311         .section ".tdata","awT",@progbits
10312         .align 3
10313 ld0:    .space 8
10314 ld1:    .space 8
10315 x1:     .space 8
10316 x2:     .space 8
10317 x3:     .space 8
10318         .text
10319         addi 3,2,ld0@got@tlsgd
10320         bl .__tls_get_addr
10321         nop
10322         addi 3,2,ld1@toc
10323         bl .__tls_get_addr
10324         nop
10325         addi 3,2,x1@got@tlsld
10326         bl .__tls_get_addr
10327         nop
10328         addi 9,3,x1@dtprel
10329         bl .__tls_get_addr
10330         nop
10331         addis 9,3,x2@dtprel@ha
10332         addi 9,9,x2@dtprel@l
10333         bl .__tls_get_addr
10334         nop
10335         ld 9,x3@got@dtprel(2)
10336         add 9,9,3
10337         bl .__tls_get_addr
10338         nop'
10339         tls_first_major=2
10340         tls_first_minor=14
10341         tls_as_opt="-a64 --fatal-warnings"
10342         ;;
10343   s390-*-*)
10344     conftest_s='
10345         .section ".tdata","awT",@progbits
10346 foo:    .long   25
10347         .text
10348         .long   foo@TLSGD
10349         .long   foo@TLSLDM
10350         .long   foo@DTPOFF
10351         .long   foo@NTPOFF
10352         .long   foo@GOTNTPOFF
10353         .long   foo@INDNTPOFF
10354         l       %r1,foo@GOTNTPOFF(%r12)
10355         l       %r1,0(%r1):tls_load:foo
10356         bas     %r14,0(%r1,%r13):tls_gdcall:foo
10357         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
10358         tls_first_major=2
10359         tls_first_minor=14
10360         tls_as_opt="-m31 --fatal-warnings"
10361         ;;
10362   s390x-*-*)
10363     conftest_s='
10364         .section ".tdata","awT",@progbits
10365 foo:    .long   25
10366         .text
10367         .quad   foo@TLSGD
10368         .quad   foo@TLSLDM
10369         .quad   foo@DTPOFF
10370         .quad   foo@NTPOFF
10371         .quad   foo@GOTNTPOFF
10372         lg      %r1,foo@GOTNTPOFF(%r12)
10373         larl    %r1,foo@INDNTPOFF
10374         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
10375         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10376         tls_first_major=2
10377         tls_first_minor=14
10378         tls_as_opt="-m64 -Aesame --fatal-warnings"
10379         ;;
10380   sh-*-* | sh[34]-*-*)
10381     conftest_s='
10382         .section ".tdata","awT",@progbits
10383 foo:    .long   25
10384         .text
10385         .long   foo@TLSGD
10386         .long   foo@TLSLDM
10387         .long   foo@DTPOFF
10388         .long   foo@GOTTPOFF
10389         .long   foo@TPOFF'
10390         tls_first_major=2
10391         tls_first_minor=13
10392         tls_as_opt=--fatal-warnings
10393         ;;
10394   sparc*-*-*)
10395     case "$target" in
10396       sparc*-sun-solaris2.*)
10397         on_solaris=yes
10398         ;;
10399       *)
10400         on_solaris=no
10401         ;;
10402     esac
10403     if test x$on_solaris = xyes && test x$gas_flag = xno; then
10404       conftest_s='
10405         .section ".tdata",#alloc,#write,#tls
10406 foo:    .long   25
10407         .text
10408         sethi   %tgd_hi22(foo), %o0
10409         add     %o0, %tgd_lo10(foo), %o1
10410         add     %l7, %o1, %o0, %tgd_add(foo)
10411         call    __tls_get_addr, %tgd_call(foo)
10412         sethi   %tldm_hi22(foo), %l1
10413         add     %l1, %tldm_lo10(foo), %l2
10414         add     %l7, %l2, %o0, %tldm_add(foo)
10415         call    __tls_get_addr, %tldm_call(foo)
10416         sethi   %tldo_hix22(foo), %l3
10417         xor     %l3, %tldo_lox10(foo), %l4
10418         add     %o0, %l4, %l5, %tldo_add(foo)
10419         sethi   %tie_hi22(foo), %o3
10420         add     %o3, %tie_lo10(foo), %o3
10421         ld      [%l7 + %o3], %o2, %tie_ld(foo)
10422         add     %g7, %o2, %o4, %tie_add(foo)
10423         sethi   %tle_hix22(foo), %l1
10424         xor     %l1, %tle_lox10(foo), %o5
10425         ld      [%g7 + %o5], %o1'
10426         tls_first_major=0
10427         tls_first_minor=0
10428     else
10429       conftest_s='
10430         .section ".tdata","awT",@progbits
10431 foo:    .long   25
10432         .text
10433         sethi   %tgd_hi22(foo), %o0
10434         add     %o0, %tgd_lo10(foo), %o1
10435         add     %l7, %o1, %o0, %tgd_add(foo)
10436         call    __tls_get_addr, %tgd_call(foo)
10437         sethi   %tldm_hi22(foo), %l1
10438         add     %l1, %tldm_lo10(foo), %l2
10439         add     %l7, %l2, %o0, %tldm_add(foo)
10440         call    __tls_get_addr, %tldm_call(foo)
10441         sethi   %tldo_hix22(foo), %l3
10442         xor     %l3, %tldo_lox10(foo), %l4
10443         add     %o0, %l4, %l5, %tldo_add(foo)
10444         sethi   %tie_hi22(foo), %o3
10445         add     %o3, %tie_lo10(foo), %o3
10446         ld      [%l7 + %o3], %o2, %tie_ld(foo)
10447         add     %g7, %o2, %o4, %tie_add(foo)
10448         sethi   %tle_hix22(foo), %l1
10449         xor     %l1, %tle_lox10(foo), %o5
10450         ld      [%g7 + %o5], %o1'
10451         tls_first_major=2
10452         tls_first_minor=14
10453         tls_as_opt="-32 --fatal-warnings"
10454       fi
10455         ;;
10456 esac
10457 if test -z "$tls_first_major"; then
10458   : # If we don't have a check, assume no support.
10459 else
10460   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10461 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10462 if test "${gcc_cv_as_tls+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   gcc_cv_as_tls=no
10466     if test $in_tree_gas = yes; then
10467     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10468   then gcc_cv_as_tls=yes
10469 fi
10470   elif test x$gcc_cv_as != x; then
10471     echo "$conftest_s" > conftest.s
10472     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474   (eval $ac_try) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); }; }
10478     then
10479         gcc_cv_as_tls=yes
10480     else
10481       echo "configure: failed program was" >&5
10482       cat conftest.s >&5
10483     fi
10484     rm -f conftest.o conftest.s
10485   fi
10486 fi
10487 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10488 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10489 if test $gcc_cv_as_tls = yes; then
10490
10491 cat >>confdefs.h <<\_ACEOF
10492 #define HAVE_AS_TLS 1
10493 _ACEOF
10494
10495 fi
10496 fi
10497
10498 # Target-specific assembler checks.
10499
10500 case "$target" in
10501   # All TARGET_ABI_OSF targets.
10502   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10503     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10504 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10505 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10506   echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508   gcc_cv_as_alpha_explicit_relocs=no
10509     if test $in_tree_gas = yes; then
10510     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10511   then gcc_cv_as_alpha_explicit_relocs=yes
10512 fi
10513   elif test x$gcc_cv_as != x; then
10514     echo '      .set nomacro
10515         .text
10516         extbl   $3, $2, $3      !lituse_bytoff!1
10517         ldq     $2, a($29)      !literal!1
10518         ldq     $4, b($29)      !literal!2
10519         ldq_u   $3, 0($2)       !lituse_base!1
10520         ldq     $27, f($29)     !literal!5
10521         jsr     $26, ($27), f   !lituse_jsr!5
10522         ldah    $29, 0($26)     !gpdisp!3
10523         lda     $0, c($29)      !gprel
10524         ldah    $1, d($29)      !gprelhigh
10525         lda     $1, d($1)       !gprellow
10526         lda     $29, 0($29)     !gpdisp!3' > conftest.s
10527     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529   (eval $ac_try) 2>&5
10530   ac_status=$?
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); }; }
10533     then
10534         gcc_cv_as_alpha_explicit_relocs=yes
10535     else
10536       echo "configure: failed program was" >&5
10537       cat conftest.s >&5
10538     fi
10539     rm -f conftest.o conftest.s
10540   fi
10541 fi
10542 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10543 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10544 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10545
10546 cat >>confdefs.h <<\_ACEOF
10547 #define HAVE_AS_EXPLICIT_RELOCS 1
10548 _ACEOF
10549
10550 fi
10551     ;;
10552
10553   sparc*-*-*)
10554     echo "$as_me:$LINENO: checking assembler for .register" >&5
10555 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10556 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10557   echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559   gcc_cv_as_sparc_register_op=no
10560   if test x$gcc_cv_as != x; then
10561     echo '.register %g2, #scratch' > conftest.s
10562     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564   (eval $ac_try) 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); }; }
10568     then
10569         gcc_cv_as_sparc_register_op=yes
10570     else
10571       echo "configure: failed program was" >&5
10572       cat conftest.s >&5
10573     fi
10574     rm -f conftest.o conftest.s
10575   fi
10576 fi
10577 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10578 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10579 if test $gcc_cv_as_sparc_register_op = yes; then
10580
10581 cat >>confdefs.h <<\_ACEOF
10582 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10583 _ACEOF
10584
10585 fi
10586
10587     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10588 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10589 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10590   echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592   gcc_cv_as_sparc_relax=no
10593   if test x$gcc_cv_as != x; then
10594     echo '.text' > conftest.s
10595     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597   (eval $ac_try) 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); }; }
10601     then
10602         gcc_cv_as_sparc_relax=yes
10603     else
10604       echo "configure: failed program was" >&5
10605       cat conftest.s >&5
10606     fi
10607     rm -f conftest.o conftest.s
10608   fi
10609 fi
10610 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10611 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10612 if test $gcc_cv_as_sparc_relax = yes; then
10613
10614 cat >>confdefs.h <<\_ACEOF
10615 #define HAVE_AS_RELAX_OPTION 1
10616 _ACEOF
10617
10618 fi
10619
10620     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10621 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10622 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10623   echo $ECHO_N "(cached) $ECHO_C" >&6
10624 else
10625   gcc_cv_as_sparc_ua_pcrel=no
10626   if test x$gcc_cv_as != x; then
10627     echo '.text
10628 foo:
10629         nop
10630 .data
10631 .align 4
10632 .byte 0
10633 .uaword %r_disp32(foo)' > conftest.s
10634     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636   (eval $ac_try) 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); }; }
10640     then
10641         if test x$gcc_cv_ld != x \
10642        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
10643          gcc_cv_as_sparc_ua_pcrel=yes
10644        fi
10645        rm -f conftest
10646     else
10647       echo "configure: failed program was" >&5
10648       cat conftest.s >&5
10649     fi
10650     rm -f conftest.o conftest.s
10651   fi
10652 fi
10653 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10654 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10655 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10656
10657 cat >>confdefs.h <<\_ACEOF
10658 #define HAVE_AS_SPARC_UA_PCREL 1
10659 _ACEOF
10660
10661
10662       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10663 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10664 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10665   echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667   gcc_cv_as_sparc_ua_pcrel_hidden=no
10668   if test x$gcc_cv_as != x; then
10669     echo '.data
10670 .align 4
10671 .byte 0x31
10672 .uaword %r_disp32(foo)
10673 .byte 0x32, 0x33, 0x34
10674 .global foo
10675 .hidden foo
10676 foo:
10677 .skip 4' > conftest.s
10678     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680   (eval $ac_try) 2>&5
10681   ac_status=$?
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); }; }
10684     then
10685         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
10686          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
10687          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
10688             | grep ' 31000000 07323334' > /dev/null 2>&1; then
10689             if $gcc_cv_objdump -R conftest 2> /dev/null \
10690                | grep 'DISP32' > /dev/null 2>&1; then
10691                 :
10692             else
10693                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
10694             fi
10695          fi
10696          rm -f conftest
10697     else
10698       echo "configure: failed program was" >&5
10699       cat conftest.s >&5
10700     fi
10701     rm -f conftest.o conftest.s
10702   fi
10703 fi
10704 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10705 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10706 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
10707
10708 cat >>confdefs.h <<\_ACEOF
10709 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
10710 _ACEOF
10711
10712 fi
10713
10714 fi # unaligned pcrel relocs
10715
10716     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
10717 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
10718 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
10719   echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721   gcc_cv_as_sparc_offsetable_lo10=no
10722   if test x$gcc_cv_as != x; then
10723     echo '.text
10724         or %g1, %lo(ab) + 12, %g1
10725         or %g1, %lo(ab + 12), %g1' > conftest.s
10726     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
10727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728   (eval $ac_try) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; }
10732     then
10733         if test x$gcc_cv_objdump != x \
10734        && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
10735           | grep ' 82106000 82106000' > /dev/null 2>&1; then
10736          gcc_cv_as_offsetable_lo10=yes
10737        fi
10738     else
10739       echo "configure: failed program was" >&5
10740       cat conftest.s >&5
10741     fi
10742     rm -f conftest.o conftest.s
10743   fi
10744 fi
10745 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
10746 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
10747 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
10748
10749 cat >>confdefs.h <<\_ACEOF
10750 #define HAVE_AS_OFFSETABLE_LO10 1
10751 _ACEOF
10752
10753 fi
10754     ;;
10755
10756   i[34567]86-*-* | x86_64-*-*)
10757     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
10758 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
10759 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
10760   echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
10762   gcc_cv_as_ix86_filds_fists=no
10763     if test $in_tree_gas = yes; then
10764     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10765   then gcc_cv_as_ix86_filds_fists=yes
10766 fi
10767   elif test x$gcc_cv_as != x; then
10768     echo 'filds mem; fists mem' > conftest.s
10769     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771   (eval $ac_try) 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); }; }
10775     then
10776         gcc_cv_as_ix86_filds_fists=yes
10777     else
10778       echo "configure: failed program was" >&5
10779       cat conftest.s >&5
10780     fi
10781     rm -f conftest.o conftest.s
10782   fi
10783 fi
10784 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
10785 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
10786 if test $gcc_cv_as_ix86_filds_fists = yes; then
10787
10788 cat >>confdefs.h <<\_ACEOF
10789 #define HAVE_GAS_FILDS_FISTS 1
10790 _ACEOF
10791
10792 fi
10793
10794     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
10795 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
10796 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
10797   echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799   gcc_cv_as_ix86_cmov_sun_syntax=no
10800   if test x$gcc_cv_as != x; then
10801     echo 'cmovl.l %edx, %eax' > conftest.s
10802     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804   (eval $ac_try) 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; }
10808     then
10809         gcc_cv_as_ix86_cmov_sun_syntax=yes
10810     else
10811       echo "configure: failed program was" >&5
10812       cat conftest.s >&5
10813     fi
10814     rm -f conftest.o conftest.s
10815   fi
10816 fi
10817 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
10818 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
10819 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
10820
10821 cat >>confdefs.h <<\_ACEOF
10822 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
10823 _ACEOF
10824
10825 fi
10826
10827     # This one is used unconditionally by i386.[ch]; it is to be defined
10828     # to 1 if the feature is present, 0 otherwise.
10829     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
10830 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
10831 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
10832   echo $ECHO_N "(cached) $ECHO_C" >&6
10833 else
10834   gcc_cv_as_ix86_gotoff_in_data=no
10835     if test $in_tree_gas = yes; then
10836     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10837   then gcc_cv_as_ix86_gotoff_in_data=yes
10838 fi
10839   elif test x$gcc_cv_as != x; then
10840     echo '      .text
10841 .L0:
10842         nop
10843         .data
10844         .long .L0@GOTOFF' > conftest.s
10845     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847   (eval $ac_try) 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); }; }
10851     then
10852         gcc_cv_as_ix86_gotoff_in_data=yes
10853     else
10854       echo "configure: failed program was" >&5
10855       cat conftest.s >&5
10856     fi
10857     rm -f conftest.o conftest.s
10858   fi
10859 fi
10860 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
10861 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
10862
10863
10864 cat >>confdefs.h <<_ACEOF
10865 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
10866 _ACEOF
10867
10868     ;;
10869
10870   ia64*-*-*)
10871     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
10872 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
10873 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
10874   echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
10877     if test $in_tree_gas = yes; then
10878     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10879   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
10880 fi
10881   elif test x$gcc_cv_as != x; then
10882     echo '      .text
10883         addl r15 = @ltoffx(x#), gp
10884         ;;
10885         ld8.mov r16 = [r15], x#' > conftest.s
10886     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888   (eval $ac_try) 2>&5
10889   ac_status=$?
10890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); }; }
10892     then
10893         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
10894     else
10895       echo "configure: failed program was" >&5
10896       cat conftest.s >&5
10897     fi
10898     rm -f conftest.o conftest.s
10899   fi
10900 fi
10901 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
10902 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
10903 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
10904
10905 cat >>confdefs.h <<\_ACEOF
10906 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
10907 _ACEOF
10908
10909 fi
10910
10911     ;;
10912
10913   powerpc*-*-*)
10914     case $target in
10915       *-*-aix*) conftest_s='    .csect .text[PR]
10916         mfcr 3,128';;
10917       *-*-darwin*) conftest_s=' .text
10918         mfcr r3,128';;
10919       *)       conftest_s='     .text
10920         mfcr 3,128';;
10921     esac
10922
10923     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
10924 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
10925 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
10926   echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928   gcc_cv_as_powerpc_mfcrf=no
10929     if test $in_tree_gas = yes; then
10930     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10931   then gcc_cv_as_powerpc_mfcrf=yes
10932 fi
10933   elif test x$gcc_cv_as != x; then
10934     echo "$conftest_s" > conftest.s
10935     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937   (eval $ac_try) 2>&5
10938   ac_status=$?
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); }; }
10941     then
10942         gcc_cv_as_powerpc_mfcrf=yes
10943     else
10944       echo "configure: failed program was" >&5
10945       cat conftest.s >&5
10946     fi
10947     rm -f conftest.o conftest.s
10948   fi
10949 fi
10950 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
10951 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
10952 if test $gcc_cv_as_powerpc_mfcrf = yes; then
10953
10954 cat >>confdefs.h <<\_ACEOF
10955 #define HAVE_AS_MFCRF 1
10956 _ACEOF
10957
10958 fi
10959     ;;
10960
10961   mips*-*-*)
10962     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10963 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10964 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
10965   echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967   gcc_cv_as_mips_explicit_relocs=no
10968     if test $in_tree_gas = yes; then
10969     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10970   then gcc_cv_as_mips_explicit_relocs=yes
10971 fi
10972   elif test x$gcc_cv_as != x; then
10973     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
10974     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976   (eval $ac_try) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); }; }
10980     then
10981         gcc_cv_as_mips_explicit_relocs=yes
10982     else
10983       echo "configure: failed program was" >&5
10984       cat conftest.s >&5
10985     fi
10986     rm -f conftest.o conftest.s
10987   fi
10988 fi
10989 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
10990 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
10991 if test $gcc_cv_as_mips_explicit_relocs = yes; then
10992   if test x$target_cpu_default = x
10993        then target_cpu_default=MASK_EXPLICIT_RELOCS
10994        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
10995        fi
10996 fi
10997
10998     ;;
10999 esac
11000 # ??? Not all targets support dwarf2 debug_line, even within a version
11001 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11002 # info to the output file.  So, as supported targets are added to gas 2.11,
11003 # add some instruction here to (also) show we expect this might work.
11004 # ??? Once 2.11 is released, probably need to add first known working
11005 # version to the per-target configury.
11006 case "$target" in
11007   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11008   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11009   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11010     insn="nop"
11011     ;;
11012   ia64*-*-* | s390*-*-*)
11013     insn="nop 0"
11014     ;;
11015   mmix-*-*)
11016     insn="swym 0"
11017     ;;
11018 esac
11019 if test x"$insn" != x; then
11020  conftest_s="\
11021         .file 1 \"conftest.s\"
11022         .loc 1 3 0
11023         $insn"
11024  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11025 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11026 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11027   echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029   gcc_cv_as_dwarf2_debug_line=no
11030     if test $in_tree_gas = yes; then
11031     if test $in_tree_gas_is_elf = yes \
11032   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11033   then gcc_cv_as_dwarf2_debug_line=yes
11034 fi
11035   elif test x$gcc_cv_as != x; then
11036     echo "$conftest_s" > conftest.s
11037     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039   (eval $ac_try) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); }; }
11043     then
11044         # ??? This fails with non-gnu grep.  Maybe use objdump?
11045    if grep debug_line conftest.o > /dev/null 2>&1; then
11046      gcc_cv_as_dwarf2_debug_line=yes
11047    fi
11048     else
11049       echo "configure: failed program was" >&5
11050       cat conftest.s >&5
11051     fi
11052     rm -f conftest.o conftest.s
11053   fi
11054 fi
11055 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11056 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11057
11058
11059 # The .debug_line file table must be in the exact order that
11060 # we specified the files, since these indices are also used
11061 # by DW_AT_decl_file.  Approximate this test by testing if
11062 # the assembler bitches if the same index is assigned twice.
11063  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11064 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11065 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11066   echo $ECHO_N "(cached) $ECHO_C" >&6
11067 else
11068   gcc_cv_as_dwarf2_file_buggy=no
11069   if test x$gcc_cv_as != x; then
11070     echo '      .file 1 "foo.s"
11071         .file 1 "bar.s"' > conftest.s
11072     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074   (eval $ac_try) 2>&5
11075   ac_status=$?
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); }; }
11078     then
11079         gcc_cv_as_dwarf2_file_buggy=yes
11080     else
11081       echo "configure: failed program was" >&5
11082       cat conftest.s >&5
11083     fi
11084     rm -f conftest.o conftest.s
11085   fi
11086 fi
11087 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11088 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11089
11090
11091  if test $gcc_cv_as_dwarf2_debug_line = yes \
11092  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11093
11094 cat >>confdefs.h <<\_ACEOF
11095 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11096 _ACEOF
11097
11098  fi
11099
11100  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11101 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11102 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11103   echo $ECHO_N "(cached) $ECHO_C" >&6
11104 else
11105   gcc_cv_as_gdwarf2_flag=no
11106     if test $in_tree_gas = yes; then
11107     if test $in_tree_gas_is_elf = yes \
11108   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11109   then gcc_cv_as_gdwarf2_flag=yes
11110 fi
11111   elif test x$gcc_cv_as != x; then
11112     echo "$insn" > conftest.s
11113     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115   (eval $ac_try) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; }
11119     then
11120         gcc_cv_as_gdwarf2_flag=yes
11121     else
11122       echo "configure: failed program was" >&5
11123       cat conftest.s >&5
11124     fi
11125     rm -f conftest.o conftest.s
11126   fi
11127 fi
11128 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11129 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11130 if test $gcc_cv_as_gdwarf2_flag = yes; then
11131
11132 cat >>confdefs.h <<\_ACEOF
11133 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11134 _ACEOF
11135
11136 fi
11137
11138  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11139 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11140 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11141   echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143   gcc_cv_as_gstabs_flag=no
11144     if test $in_tree_gas = yes; then
11145     if test $in_tree_gas_is_elf = yes \
11146   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11147   then gcc_cv_as_gstabs_flag=yes
11148 fi
11149   elif test x$gcc_cv_as != x; then
11150     echo "$insn" > conftest.s
11151     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153   (eval $ac_try) 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); }; }
11157     then
11158         # The native Solaris 9/Intel assembler doesn't understand --gstabs
11159    # and warns about it, but still exits successfully.  So check for
11160    # this.
11161    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163   (eval $ac_try) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; }
11167    then :
11168    else gcc_cv_as_gstabs_flag=yes
11169    fi
11170     else
11171       echo "configure: failed program was" >&5
11172       cat conftest.s >&5
11173     fi
11174     rm -f conftest.o conftest.s
11175   fi
11176 fi
11177 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11178 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11179 if test $gcc_cv_as_gstabs_flag = yes; then
11180
11181 cat >>confdefs.h <<\_ACEOF
11182 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11183 _ACEOF
11184
11185 fi
11186 fi
11187
11188 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11189 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11190 gcc_cv_ld_ro_rw_mix=unknown
11191 if test $in_tree_ld = yes ; then
11192   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
11193      && test $in_tree_ld_is_elf = yes; then
11194     gcc_cv_ld_ro_rw_mix=read-write
11195   fi
11196 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11197   echo '.section myfoosect, "a"' > conftest1.s
11198   echo '.section myfoosect, "aw"' > conftest2.s
11199   echo '.byte 1' >> conftest2.s
11200   echo '.section myfoosect, "a"' > conftest3.s
11201   echo '.byte 0' >> conftest3.s
11202   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11203      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11204      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11205      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11206         conftest2.o conftest3.o > /dev/null 2>&1; then
11207     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11208                          | sed -e '/myfoosect/!d' -e N`
11209     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11210       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11211         gcc_cv_ld_ro_rw_mix=read-only
11212       else
11213         gcc_cv_ld_ro_rw_mix=read-write
11214       fi
11215     fi
11216   fi
11217   rm -f conftest.* conftest[123].*
11218 fi
11219 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11220
11221 cat >>confdefs.h <<\_ACEOF
11222 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11223 _ACEOF
11224
11225 fi
11226 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11227 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11228
11229 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11230 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11231 gcc_cv_ld_eh_frame_hdr=no
11232 if test $in_tree_ld = yes ; then
11233   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
11234      && test $in_tree_ld_is_elf = yes; then
11235     gcc_cv_ld_eh_frame_hdr=yes
11236   fi
11237 elif test x$gcc_cv_ld != x; then
11238         # Check if linker supports --eh-frame-hdr option
11239         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11240                 gcc_cv_ld_eh_frame_hdr=yes
11241         fi
11242 fi
11243 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11244
11245 cat >>confdefs.h <<\_ACEOF
11246 #define HAVE_LD_EH_FRAME_HDR 1
11247 _ACEOF
11248
11249 fi
11250 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11251 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11252
11253 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11254 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11255 gcc_cv_ld_pie=no
11256 if test $in_tree_ld = yes ; then
11257   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
11258      && test $in_tree_ld_is_elf = yes; then
11259     gcc_cv_ld_pie=yes
11260   fi
11261 elif test x$gcc_cv_ld != x; then
11262         # Check if linker supports -pie option
11263         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11264                 gcc_cv_ld_pie=yes
11265         fi
11266 fi
11267 if test x"$gcc_cv_ld_pie" = xyes; then
11268
11269 cat >>confdefs.h <<\_ACEOF
11270 #define HAVE_LD_PIE 1
11271 _ACEOF
11272
11273 fi
11274 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11275 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11276
11277 if test x$with_sysroot = x && test x$host = x$target \
11278    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11279
11280 cat >>confdefs.h <<_ACEOF
11281 #define PREFIX_INCLUDE_DIR "$prefix/include"
11282 _ACEOF
11283
11284 fi
11285
11286 # Figure out what language subdirectories are present.
11287 # Look if the user specified --enable-languages="..."; if not, use
11288 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11289 # go away some day.
11290 # NB:  embedded tabs in this IF block -- do not untabify
11291 if test x"${enable_languages+set}" != xset; then
11292         if test x"${LANGUAGES+set}" = xset; then
11293                 enable_languages="${LANGUAGES}"
11294                 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11295 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11296
11297         else
11298                 enable_languages=all
11299         fi
11300 else
11301         if test x"${enable_languages}" = x \
11302         || test x"${enable_languages}" = xyes;
11303         then
11304                 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11305 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11306    { (exit 1); exit 1; }; }
11307         fi
11308 fi
11309 enable_languages=`echo "${enable_languages}" | sed -e 's/[      ,][     ,]*/,/g' -e 's/,$//'`
11310
11311 # First scan to see if an enabled language requires some other language.
11312 # We assume that a given config-lang.in will list all the language
11313 # front ends it requires, even if some are required indirectly.
11314 for lang in ${srcdir}/*/config-lang.in
11315 do
11316    case $lang in
11317     # The odd quoting in the next line works around
11318     # an apparent bug in bash 1.12 on linux.
11319     ${srcdir}/[*]/config-lang.in)
11320        ;;
11321     *)
11322        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^      ]*\).*$,\1,p' $lang`
11323        this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^    ]*\).*$,\1,p' $lang`
11324        for other in $this_lang_requires
11325        do
11326           case ,${enable_languages}, in
11327            *,$other,*)
11328               ;;
11329            *,all,*)
11330               ;;
11331            *,$lang_alias,*)
11332               enable_languages="$enable_languages,$other"
11333               ;;
11334           esac
11335        done
11336        ;;
11337    esac
11338 done
11339
11340 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's:  *: :g' -e 's:  *: :g' -e 's:^ ::' -e 's: $::'`
11341 found_languages=
11342 subdirs=
11343 for lang in ${srcdir}/*/config-lang.in
11344 do
11345         case $lang in
11346         # The odd quoting in the next line works around
11347         # an apparent bug in bash 1.12 on linux.
11348         ${srcdir}/[*]/config-lang.in) ;;
11349         *)
11350           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
11351           this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^         ]*\).*$,\1,p' $lang`
11352           build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^     ]*\).*$,\1,p' $lang`
11353           if test "x$lang_alias" = x
11354           then
11355                 echo "$lang doesn't set \$language." 1>&2
11356                 exit 1
11357           fi
11358           case ${build_by_default},${enable_languages}, in
11359           *,$lang_alias,*) add_this_lang=yes ;;
11360           no,*) add_this_lang=no ;;
11361           *,all,*) add_this_lang=yes ;;
11362           *) add_this_lang=no ;;
11363           esac
11364           found_languages="${found_languages} ${lang_alias}"
11365           if test x"${add_this_lang}" = xyes; then
11366                 case $lang in
11367                     ${srcdir}/ada/config-lang.in)
11368                         if test x$have_gnat = xyes ; then
11369                                 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11370                         fi
11371                         ;;
11372                     *)
11373                         subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11374                         ;;
11375                 esac
11376           fi
11377           ;;
11378         esac
11379 done
11380
11381 missing_languages=
11382 for expected_language in ${expected_languages} ..
11383 do
11384     if test "${expected_language}" != ..; then
11385         missing_language="${expected_language}"
11386         if test "${expected_language}" = "c" \
11387            || test "${expected_language}" = "all"; then
11388                 missing_language=
11389         fi
11390         for found_language in ${found_languages} ..
11391         do
11392             if test "${found_language}" != ..; then
11393                 if test "${expected_language}" = "${found_language}"; then
11394                     missing_language=
11395                 fi
11396             fi
11397         done
11398         if test "x${missing_language}" != x; then
11399            missing_languages="${missing_languages} ${missing_language}"
11400         fi
11401     fi
11402 done
11403
11404 if test "x$missing_languages" != x; then
11405   { { echo "$as_me:$LINENO: error:
11406 The following requested languages were not found:${missing_languages}
11407 The following languages were available: c${found_languages}" >&5
11408 echo "$as_me: error:
11409 The following requested languages were not found:${missing_languages}
11410 The following languages were available: c${found_languages}" >&2;}
11411    { (exit 1); exit 1; }; }
11412 fi
11413
11414 # Make gthr-default.h if we have a thread file.
11415 gthread_flags=
11416 if test $thread_file != single; then
11417     rm -f gthr-default.h
11418     echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11419     gthread_flags=-DHAVE_GTHR_DEFAULT
11420 fi
11421
11422
11423 # Find out what GC implementation we want, or may, use.
11424
11425 # Check whether --with-gc or --without-gc was given.
11426 if test "${with_gc+set}" = set; then
11427   withval="$with_gc"
11428   case "$withval" in
11429   page | zone)
11430     GGC=ggc-$withval
11431     ;;
11432   *)
11433     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11434 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11435    { (exit 1); exit 1; }; }
11436     ;;
11437 esac
11438 else
11439   GGC=ggc-page
11440 fi;
11441
11442 echo "Using $GGC for garbage collection."
11443
11444 # Use the system's zlib library.
11445 zlibdir=-L../zlib
11446 zlibinc="-I\$(srcdir)/../zlib"
11447
11448 # Check whether --with-system-zlib or --without-system-zlib was given.
11449 if test "${with_system_zlib+set}" = set; then
11450   withval="$with_system_zlib"
11451   zlibdir=
11452 zlibinc=
11453
11454 fi;
11455
11456
11457
11458
11459 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11460 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11461     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11462 if test "${enable_maintainer_mode+set}" = set; then
11463   enableval="$enable_maintainer_mode"
11464   maintainer_mode=$enableval
11465 else
11466   maintainer_mode=no
11467 fi;
11468
11469 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11470 echo "${ECHO_T}$maintainer_mode" >&6
11471
11472 if test "$maintainer_mode" = "yes"; then
11473   MAINT=''
11474 else
11475   MAINT='#'
11476 fi
11477
11478 # Make empty files to contain the specs and options for each language.
11479 # Then add #include lines to for a compiler that has specs and/or options.
11480
11481 lang_opt_files=
11482 lang_specs_files=
11483 lang_tree_files=
11484 for subdir in . $subdirs
11485 do
11486         if test -f $srcdir/$subdir/lang.opt; then
11487             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11488         fi
11489         if test -f $srcdir/$subdir/lang-specs.h; then
11490             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11491         fi
11492         if test -f $srcdir/$subdir/$subdir-tree.def; then
11493             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11494         fi
11495 done
11496
11497 # These (without "all_") are set in each config-lang.in.
11498 # `language' must be a single word so is spelled singularly.
11499 all_languages=
11500 all_boot_languages=
11501 all_compilers=
11502 all_stagestuff=
11503 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11504 # List of language makefile fragments.
11505 all_lang_makefrags=
11506 # List of language subdirectory makefiles.  Deprecated.
11507 all_lang_makefiles=
11508 # Files for gengtype
11509 all_gtfiles="$target_gtfiles"
11510 # Files for gengtype with language
11511 all_gtfiles_files_langs=
11512 all_gtfiles_files_files=
11513
11514 # Add the language fragments.
11515 # Languages are added via two mechanisms.  Some information must be
11516 # recorded in makefile variables, these are defined in config-lang.in.
11517 # We accumulate them and plug them into the main Makefile.
11518 # The other mechanism is a set of hooks for each of the main targets
11519 # like `clean', `install', etc.
11520
11521 language_hooks="Make-hooks"
11522
11523 for s in $subdirs
11524 do
11525                 language=
11526                 boot_language=
11527                 compilers=
11528                 stagestuff=
11529                 outputs=
11530                 gtfiles=
11531                 . ${srcdir}/$s/config-lang.in
11532                 if test "x$language" = x
11533                 then
11534                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11535                         exit 1
11536                 fi
11537                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11538                 if test -f ${srcdir}/$s/Makefile.in
11539                 then all_lang_makefiles="$s/Makefile"
11540                 fi
11541                 all_languages="$all_languages $language"
11542                 if test "x$boot_language" = xyes
11543                 then
11544                         all_boot_languages="$all_boot_languages $language"
11545                 fi
11546                 all_compilers="$all_compilers $compilers"
11547                 all_stagestuff="$all_stagestuff $stagestuff"
11548                 all_outputs="$all_outputs $outputs"
11549                 all_gtfiles="$all_gtfiles $gtfiles"
11550                 for f in $gtfiles
11551                 do
11552                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11553                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11554                 done
11555 done
11556
11557 # Pick up gtfiles for c
11558 gtfiles=
11559 s="c"
11560 . ${srcdir}/c-config-lang.in
11561 all_gtfiles="$all_gtfiles $gtfiles"
11562 for f in $gtfiles
11563 do
11564         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11565         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11566 done
11567
11568 check_languages=
11569 for language in $all_languages
11570 do
11571                 check_languages="$check_languages check-$language"
11572 done
11573
11574 # We link each language in with a set of hooks, reached indirectly via
11575 # lang.${target}.
11576
11577 rm -f Make-hooks
11578 touch Make-hooks
11579 target_list="all.build all.cross start.encap rest.encap tags \
11580         install-normal install-common install-man \
11581         uninstall info man srcextra srcman srcinfo \
11582         mostlyclean clean distclean maintainer-clean \
11583         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11584 for t in $target_list
11585 do
11586         x=
11587         for lang in $all_languages
11588         do
11589                         x="$x $lang.$t"
11590         done
11591         echo "lang.$t: $x" >> Make-hooks
11592 done
11593
11594 # Create .gdbinit.
11595
11596 echo "dir ." > .gdbinit
11597 echo "dir ${srcdir}" >> .gdbinit
11598 if test x$gdb_needs_out_file_path = xyes
11599 then
11600         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11601 fi
11602 if test "x$subdirs" != x; then
11603         for s in $subdirs
11604         do
11605                 echo "dir ${srcdir}/$s" >> .gdbinit
11606         done
11607 fi
11608 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11609
11610 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11611 # absolute path for gcc_tooldir based on inserting the number of up-directory
11612 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11613 # $(libsubdir)/@(unlibsubdir) based path.
11614 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11615 # make and thus we'd get different behavior depending on where we built the
11616 # sources.
11617 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
11618     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11619 else
11620 # An explanation of the sed strings:
11621 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
11622 #  -e 's|/$||'            match a trailing forward slash and eliminates it
11623 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
11624 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
11625 #
11626 # (*) Note this pattern overwrites the first character of the string
11627 # with a forward slash if one is not already present.  This is not a
11628 # problem because the exact names of the sub-directories concerned is
11629 # unimportant, just the number of them matters.
11630 #
11631 # The practical upshot of these patterns is like this:
11632 #
11633 #  prefix     exec_prefix        result
11634 #  ------     -----------        ------
11635 #   /foo        /foo/bar          ../
11636 #   /foo/       /foo/bar          ../
11637 #   /foo        /foo/bar/         ../
11638 #   /foo/       /foo/bar/         ../
11639 #   /foo        /foo/bar/ugg      ../../
11640 #
11641     dollar='$$'
11642     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11643 fi
11644
11645
11646
11647 # Find a directory in which to install a shared libgcc.
11648
11649 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11650 if test "${enable_version_specific_runtime_libs+set}" = set; then
11651   enableval="$enable_version_specific_runtime_libs"
11652
11653 fi;
11654
11655
11656 # Check whether --with-slibdir or --without-slibdir was given.
11657 if test "${with_slibdir+set}" = set; then
11658   withval="$with_slibdir"
11659   slibdir="$with_slibdir"
11660 else
11661   if test "${enable_version_specific_runtime_libs+set}" = set; then
11662   slibdir='$(libsubdir)'
11663 elif test "$host" != "$target"; then
11664   slibdir='$(build_tooldir)/lib'
11665 else
11666   slibdir='$(libdir)'
11667 fi
11668 fi;
11669
11670
11671 objdir=`${PWDCMD-pwd}`
11672
11673
11674 # Substitute configuration variables
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743 # If it doesn't already exist, create document directory
11744 echo "checking for the document directory." 1>&2
11745 if test -d doc ; then
11746   true
11747 else
11748   mkdir doc
11749 fi
11750
11751 # Echo link setup.
11752 if test x${build} = x${host} ; then
11753   if test x${host} = x${target} ; then
11754     echo "Links are now set up to build a native compiler for ${target}." 1>&2
11755   else
11756     echo "Links are now set up to build a cross-compiler" 1>&2
11757     echo " from ${host} to ${target}." 1>&2
11758   fi
11759 else
11760   if test x${host} = x${target} ; then
11761     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
11762     echo " for ${target}." 1>&2
11763   else
11764     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
11765     echo " from ${host} to ${target}." 1>&2
11766   fi
11767 fi
11768
11769 # Configure the subdirectories
11770 # AC_CONFIG_SUBDIRS($subdirs)
11771
11772 # Create the Makefile
11773 # and configure language subdirectories
11774           ac_config_files="$ac_config_files $all_outputs"
11775
11776
11777           ac_config_commands="$ac_config_commands default"
11778
11779 cat >confcache <<\_ACEOF
11780 # This file is a shell script that caches the results of configure
11781 # tests run on this system so they can be shared between configure
11782 # scripts and configure runs, see configure's option --config-cache.
11783 # It is not useful on other systems.  If it contains results you don't
11784 # want to keep, you may remove or edit it.
11785 #
11786 # config.status only pays attention to the cache file if you give it
11787 # the --recheck option to rerun configure.
11788 #
11789 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11790 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11791 # following values.
11792
11793 _ACEOF
11794
11795 # The following way of writing the cache mishandles newlines in values,
11796 # but we know of no workaround that is simple, portable, and efficient.
11797 # So, don't put newlines in cache variables' values.
11798 # Ultrix sh set writes to stderr and can't be redirected directly,
11799 # and sets the high bit in the cache file unless we assign to the vars.
11800 {
11801   (set) 2>&1 |
11802     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11803     *ac_space=\ *)
11804       # `set' does not quote correctly, so add quotes (double-quote
11805       # substitution turns \\\\ into \\, and sed turns \\ into \).
11806       sed -n \
11807         "s/'/'\\\\''/g;
11808           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11809       ;;
11810     *)
11811       # `set' quotes correctly as required by POSIX, so do not add quotes.
11812       sed -n \
11813         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11814       ;;
11815     esac;
11816 } |
11817   sed '
11818      t clear
11819      : clear
11820      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11821      t end
11822      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11823      : end' >>confcache
11824 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11825   if test -w $cache_file; then
11826     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11827     cat confcache >$cache_file
11828   else
11829     echo "not updating unwritable cache $cache_file"
11830   fi
11831 fi
11832 rm -f confcache
11833
11834 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11835 # Let make expand exec_prefix.
11836 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11837
11838 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11839 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11840 # trailing colons and then remove the whole line if VPATH becomes empty
11841 # (actually we leave an empty line to preserve line numbers).
11842 if test "x$srcdir" = x.; then
11843   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11844 s/:*\$(srcdir):*/:/;
11845 s/:*\${srcdir}:*/:/;
11846 s/:*@srcdir@:*/:/;
11847 s/^\([^=]*=[    ]*\):*/\1/;
11848 s/:*$//;
11849 s/^[^=]*=[      ]*$//;
11850 }'
11851 fi
11852
11853 DEFS=-DHAVE_CONFIG_H
11854
11855 ac_libobjs=
11856 ac_ltlibobjs=
11857 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11858   # 1. Remove the extension, and $U if already installed.
11859   ac_i=`echo "$ac_i" |
11860          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11861   # 2. Add them.
11862   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11863   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11864 done
11865 LIBOBJS=$ac_libobjs
11866
11867 LTLIBOBJS=$ac_ltlibobjs
11868
11869
11870
11871 : ${CONFIG_STATUS=./config.status}
11872 ac_clean_files_save=$ac_clean_files
11873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11874 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11875 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11876 cat >$CONFIG_STATUS <<_ACEOF
11877 #! $SHELL
11878 # Generated by $as_me.
11879 # Run this file to recreate the current configuration.
11880 # Compiler output produced by configure, useful for debugging
11881 # configure, is in config.log if it exists.
11882
11883 debug=false
11884 ac_cs_recheck=false
11885 ac_cs_silent=false
11886 SHELL=\${CONFIG_SHELL-$SHELL}
11887 _ACEOF
11888
11889 cat >>$CONFIG_STATUS <<\_ACEOF
11890 ## --------------------- ##
11891 ## M4sh Initialization.  ##
11892 ## --------------------- ##
11893
11894 # Be Bourne compatible
11895 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11896   emulate sh
11897   NULLCMD=:
11898   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11899   # is contrary to our usage.  Disable this feature.
11900   alias -g '${1+"$@"}'='"$@"'
11901 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11902   set -o posix
11903 fi
11904
11905 # Support unset when possible.
11906 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11907   as_unset=unset
11908 else
11909   as_unset=false
11910 fi
11911
11912
11913 # Work around bugs in pre-3.0 UWIN ksh.
11914 $as_unset ENV MAIL MAILPATH
11915 PS1='$ '
11916 PS2='> '
11917 PS4='+ '
11918
11919 # NLS nuisances.
11920 for as_var in \
11921   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11922   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11923   LC_TELEPHONE LC_TIME
11924 do
11925   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11926     eval $as_var=C; export $as_var
11927   else
11928     $as_unset $as_var
11929   fi
11930 done
11931
11932 # Required to use basename.
11933 if expr a : '\(a\)' >/dev/null 2>&1; then
11934   as_expr=expr
11935 else
11936   as_expr=false
11937 fi
11938
11939 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11940   as_basename=basename
11941 else
11942   as_basename=false
11943 fi
11944
11945
11946 # Name of the executable.
11947 as_me=`$as_basename "$0" ||
11948 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11949          X"$0" : 'X\(//\)$' \| \
11950          X"$0" : 'X\(/\)$' \| \
11951          .     : '\(.\)' 2>/dev/null ||
11952 echo X/"$0" |
11953     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11954           /^X\/\(\/\/\)$/{ s//\1/; q; }
11955           /^X\/\(\/\).*/{ s//\1/; q; }
11956           s/.*/./; q'`
11957
11958
11959 # PATH needs CR, and LINENO needs CR and PATH.
11960 # Avoid depending upon Character Ranges.
11961 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11962 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11963 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11964 as_cr_digits='0123456789'
11965 as_cr_alnum=$as_cr_Letters$as_cr_digits
11966
11967 # The user is always right.
11968 if test "${PATH_SEPARATOR+set}" != set; then
11969   echo "#! /bin/sh" >conf$$.sh
11970   echo  "exit 0"   >>conf$$.sh
11971   chmod +x conf$$.sh
11972   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11973     PATH_SEPARATOR=';'
11974   else
11975     PATH_SEPARATOR=:
11976   fi
11977   rm -f conf$$.sh
11978 fi
11979
11980
11981   as_lineno_1=$LINENO
11982   as_lineno_2=$LINENO
11983   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11984   test "x$as_lineno_1" != "x$as_lineno_2" &&
11985   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11986   # Find who we are.  Look in the path if we contain no path at all
11987   # relative or not.
11988   case $0 in
11989     *[\\/]* ) as_myself=$0 ;;
11990     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11992 do
11993   IFS=$as_save_IFS
11994   test -z "$as_dir" && as_dir=.
11995   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11996 done
11997
11998        ;;
11999   esac
12000   # We did not find ourselves, most probably we were run as `sh COMMAND'
12001   # in which case we are not to be found in the path.
12002   if test "x$as_myself" = x; then
12003     as_myself=$0
12004   fi
12005   if test ! -f "$as_myself"; then
12006     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12007 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12008    { (exit 1); exit 1; }; }
12009   fi
12010   case $CONFIG_SHELL in
12011   '')
12012     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12013 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12014 do
12015   IFS=$as_save_IFS
12016   test -z "$as_dir" && as_dir=.
12017   for as_base in sh bash ksh sh5; do
12018          case $as_dir in
12019          /*)
12020            if ("$as_dir/$as_base" -c '
12021   as_lineno_1=$LINENO
12022   as_lineno_2=$LINENO
12023   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12024   test "x$as_lineno_1" != "x$as_lineno_2" &&
12025   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12026              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12027              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12028              CONFIG_SHELL=$as_dir/$as_base
12029              export CONFIG_SHELL
12030              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12031            fi;;
12032          esac
12033        done
12034 done
12035 ;;
12036   esac
12037
12038   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12039   # uniformly replaced by the line number.  The first 'sed' inserts a
12040   # line-number line before each line; the second 'sed' does the real
12041   # work.  The second script uses 'N' to pair each line-number line
12042   # with the numbered line, and appends trailing '-' during
12043   # substitution so that $LINENO is not a special case at line end.
12044   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12045   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12046   sed '=' <$as_myself |
12047     sed '
12048       N
12049       s,$,-,
12050       : loop
12051       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12052       t loop
12053       s,-$,,
12054       s,^['$as_cr_digits']*\n,,
12055     ' >$as_me.lineno &&
12056   chmod +x $as_me.lineno ||
12057     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12058 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12059    { (exit 1); exit 1; }; }
12060
12061   # Don't try to exec as it changes $[0], causing all sort of problems
12062   # (the dirname of $[0] is not the place where we might find the
12063   # original and so on.  Autoconf is especially sensible to this).
12064   . ./$as_me.lineno
12065   # Exit status is that of the last command.
12066   exit
12067 }
12068
12069
12070 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12071   *c*,-n*) ECHO_N= ECHO_C='
12072 ' ECHO_T='      ' ;;
12073   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12074   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12075 esac
12076
12077 if expr a : '\(a\)' >/dev/null 2>&1; then
12078   as_expr=expr
12079 else
12080   as_expr=false
12081 fi
12082
12083 rm -f conf$$ conf$$.exe conf$$.file
12084 echo >conf$$.file
12085 if ln -s conf$$.file conf$$ 2>/dev/null; then
12086   # We could just check for DJGPP; but this test a) works b) is more generic
12087   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12088   if test -f conf$$.exe; then
12089     # Don't use ln at all; we don't have any links
12090     as_ln_s='cp -p'
12091   else
12092     as_ln_s='ln -s'
12093   fi
12094 elif ln conf$$.file conf$$ 2>/dev/null; then
12095   as_ln_s=ln
12096 else
12097   as_ln_s='cp -p'
12098 fi
12099 rm -f conf$$ conf$$.exe conf$$.file
12100
12101 if mkdir -p . 2>/dev/null; then
12102   as_mkdir_p=:
12103 else
12104   as_mkdir_p=false
12105 fi
12106
12107 as_executable_p="test -f"
12108
12109 # Sed expression to map a string onto a valid CPP name.
12110 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12111
12112 # Sed expression to map a string onto a valid variable name.
12113 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12114
12115
12116 # IFS
12117 # We need space, tab and new line, in precisely that order.
12118 as_nl='
12119 '
12120 IFS="   $as_nl"
12121
12122 # CDPATH.
12123 $as_unset CDPATH
12124
12125 exec 6>&1
12126
12127 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12128 # report actual input values of CONFIG_FILES etc. instead of their
12129 # values after options handling.  Logging --version etc. is OK.
12130 exec 5>>config.log
12131 {
12132   echo
12133   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12134 ## Running $as_me. ##
12135 _ASBOX
12136 } >&5
12137 cat >&5 <<_CSEOF
12138
12139 This file was extended by $as_me, which was
12140 generated by GNU Autoconf 2.57.  Invocation command line was
12141
12142   CONFIG_FILES    = $CONFIG_FILES
12143   CONFIG_HEADERS  = $CONFIG_HEADERS
12144   CONFIG_LINKS    = $CONFIG_LINKS
12145   CONFIG_COMMANDS = $CONFIG_COMMANDS
12146   $ $0 $@
12147
12148 _CSEOF
12149 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12150 echo >&5
12151 _ACEOF
12152
12153 # Files that config.status was made for.
12154 if test -n "$ac_config_files"; then
12155   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12156 fi
12157
12158 if test -n "$ac_config_headers"; then
12159   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12160 fi
12161
12162 if test -n "$ac_config_links"; then
12163   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12164 fi
12165
12166 if test -n "$ac_config_commands"; then
12167   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12168 fi
12169
12170 cat >>$CONFIG_STATUS <<\_ACEOF
12171
12172 ac_cs_usage="\
12173 \`$as_me' instantiates files from templates according to the
12174 current configuration.
12175
12176 Usage: $0 [OPTIONS] [FILE]...
12177
12178   -h, --help       print this help, then exit
12179   -V, --version    print version number, then exit
12180   -q, --quiet      do not print progress messages
12181   -d, --debug      don't remove temporary files
12182       --recheck    update $as_me by reconfiguring in the same conditions
12183   --file=FILE[:TEMPLATE]
12184                    instantiate the configuration file FILE
12185   --header=FILE[:TEMPLATE]
12186                    instantiate the configuration header FILE
12187
12188 Configuration files:
12189 $config_files
12190
12191 Configuration headers:
12192 $config_headers
12193
12194 Configuration commands:
12195 $config_commands
12196
12197 Report bugs to <bug-autoconf@gnu.org>."
12198 _ACEOF
12199
12200 cat >>$CONFIG_STATUS <<_ACEOF
12201 ac_cs_version="\\
12202 config.status
12203 configured by $0, generated by GNU Autoconf 2.57,
12204   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12205
12206 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12207 Free Software Foundation, Inc.
12208 This config.status script is free software; the Free Software Foundation
12209 gives unlimited permission to copy, distribute and modify it."
12210 srcdir=$srcdir
12211 _ACEOF
12212
12213 cat >>$CONFIG_STATUS <<\_ACEOF
12214 # If no file are specified by the user, then we need to provide default
12215 # value.  By we need to know if files were specified by the user.
12216 ac_need_defaults=:
12217 while test $# != 0
12218 do
12219   case $1 in
12220   --*=*)
12221     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12222     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12223     ac_shift=:
12224     ;;
12225   -*)
12226     ac_option=$1
12227     ac_optarg=$2
12228     ac_shift=shift
12229     ;;
12230   *) # This is not an option, so the user has probably given explicit
12231      # arguments.
12232      ac_option=$1
12233      ac_need_defaults=false;;
12234   esac
12235
12236   case $ac_option in
12237   # Handling of the options.
12238 _ACEOF
12239 cat >>$CONFIG_STATUS <<\_ACEOF
12240   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12241     ac_cs_recheck=: ;;
12242   --version | --vers* | -V )
12243     echo "$ac_cs_version"; exit 0 ;;
12244   --he | --h)
12245     # Conflict between --help and --header
12246     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12247 Try \`$0 --help' for more information." >&5
12248 echo "$as_me: error: ambiguous option: $1
12249 Try \`$0 --help' for more information." >&2;}
12250    { (exit 1); exit 1; }; };;
12251   --help | --hel | -h )
12252     echo "$ac_cs_usage"; exit 0 ;;
12253   --debug | --d* | -d )
12254     debug=: ;;
12255   --file | --fil | --fi | --f )
12256     $ac_shift
12257     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12258     ac_need_defaults=false;;
12259   --header | --heade | --head | --hea )
12260     $ac_shift
12261     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12262     ac_need_defaults=false;;
12263   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12264   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12265     ac_cs_silent=: ;;
12266
12267   # This is an error.
12268   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12269 Try \`$0 --help' for more information." >&5
12270 echo "$as_me: error: unrecognized option: $1
12271 Try \`$0 --help' for more information." >&2;}
12272    { (exit 1); exit 1; }; } ;;
12273
12274   *) ac_config_targets="$ac_config_targets $1" ;;
12275
12276   esac
12277   shift
12278 done
12279
12280 ac_configure_extra_args=
12281
12282 if $ac_cs_silent; then
12283   exec 6>/dev/null
12284   ac_configure_extra_args="$ac_configure_extra_args --silent"
12285 fi
12286
12287 _ACEOF
12288 cat >>$CONFIG_STATUS <<_ACEOF
12289 if \$ac_cs_recheck; then
12290   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12291   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12292 fi
12293
12294 _ACEOF
12295
12296 cat >>$CONFIG_STATUS <<_ACEOF
12297 #
12298 # INIT-COMMANDS section.
12299 #
12300
12301 subdirs='$subdirs'
12302 symbolic_link='$symbolic_link'
12303
12304
12305 _ACEOF
12306
12307
12308
12309 cat >>$CONFIG_STATUS <<\_ACEOF
12310 for ac_config_target in $ac_config_targets
12311 do
12312   case "$ac_config_target" in
12313   # Handling of arguments.
12314   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12315   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12316   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12317   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12318 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12319    { (exit 1); exit 1; }; };;
12320   esac
12321 done
12322
12323 # If the user did not use the arguments to specify the items to instantiate,
12324 # then the envvar interface is used.  Set only those that are not.
12325 # We use the long form for the default assignment because of an extremely
12326 # bizarre bug on SunOS 4.1.3.
12327 if $ac_need_defaults; then
12328   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12329   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12330   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12331 fi
12332
12333 # Have a temporary directory for convenience.  Make it in the build tree
12334 # simply because there is no reason to put it here, and in addition,
12335 # creating and moving files from /tmp can sometimes cause problems.
12336 # Create a temporary directory, and hook for its removal unless debugging.
12337 $debug ||
12338 {
12339   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12340   trap '{ (exit 1); exit 1; }' 1 2 13 15
12341 }
12342
12343 # Create a (secure) tmp directory for tmp files.
12344
12345 {
12346   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12347   test -n "$tmp" && test -d "$tmp"
12348 }  ||
12349 {
12350   tmp=./confstat$$-$RANDOM
12351   (umask 077 && mkdir $tmp)
12352 } ||
12353 {
12354    echo "$me: cannot create a temporary directory in ." >&2
12355    { (exit 1); exit 1; }
12356 }
12357
12358 _ACEOF
12359
12360 cat >>$CONFIG_STATUS <<_ACEOF
12361
12362 #
12363 # CONFIG_FILES section.
12364 #
12365
12366 # No need to generate the scripts if there are no CONFIG_FILES.
12367 # This happens for instance when ./config.status config.h
12368 if test -n "\$CONFIG_FILES"; then
12369   # Protect against being on the right side of a sed subst in config.status.
12370   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12371    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12372 s,@SHELL@,$SHELL,;t t
12373 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12374 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12375 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12376 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12377 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12378 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12379 s,@exec_prefix@,$exec_prefix,;t t
12380 s,@prefix@,$prefix,;t t
12381 s,@program_transform_name@,$program_transform_name,;t t
12382 s,@bindir@,$bindir,;t t
12383 s,@sbindir@,$sbindir,;t t
12384 s,@libexecdir@,$libexecdir,;t t
12385 s,@datadir@,$datadir,;t t
12386 s,@sysconfdir@,$sysconfdir,;t t
12387 s,@sharedstatedir@,$sharedstatedir,;t t
12388 s,@localstatedir@,$localstatedir,;t t
12389 s,@libdir@,$libdir,;t t
12390 s,@includedir@,$includedir,;t t
12391 s,@oldincludedir@,$oldincludedir,;t t
12392 s,@infodir@,$infodir,;t t
12393 s,@mandir@,$mandir,;t t
12394 s,@build_alias@,$build_alias,;t t
12395 s,@host_alias@,$host_alias,;t t
12396 s,@target_alias@,$target_alias,;t t
12397 s,@DEFS@,$DEFS,;t t
12398 s,@ECHO_C@,$ECHO_C,;t t
12399 s,@ECHO_N@,$ECHO_N,;t t
12400 s,@ECHO_T@,$ECHO_T,;t t
12401 s,@LIBS@,$LIBS,;t t
12402 s,@build@,$build,;t t
12403 s,@build_cpu@,$build_cpu,;t t
12404 s,@build_vendor@,$build_vendor,;t t
12405 s,@build_os@,$build_os,;t t
12406 s,@host@,$host,;t t
12407 s,@host_cpu@,$host_cpu,;t t
12408 s,@host_vendor@,$host_vendor,;t t
12409 s,@host_os@,$host_os,;t t
12410 s,@target@,$target,;t t
12411 s,@target_cpu@,$target_cpu,;t t
12412 s,@target_vendor@,$target_vendor,;t t
12413 s,@target_os@,$target_os,;t t
12414 s,@build_subdir@,$build_subdir,;t t
12415 s,@host_subdir@,$host_subdir,;t t
12416 s,@target_subdir@,$target_subdir,;t t
12417 s,@GENINSRC@,$GENINSRC,;t t
12418 s,@CC@,$CC,;t t
12419 s,@CFLAGS@,$CFLAGS,;t t
12420 s,@LDFLAGS@,$LDFLAGS,;t t
12421 s,@CPPFLAGS@,$CPPFLAGS,;t t
12422 s,@ac_ct_CC@,$ac_ct_CC,;t t
12423 s,@EXEEXT@,$EXEEXT,;t t
12424 s,@OBJEXT@,$OBJEXT,;t t
12425 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12426 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12427 s,@CPP@,$CPP,;t t
12428 s,@GNATBIND@,$GNATBIND,;t t
12429 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12430 s,@strict1_warn@,$strict1_warn,;t t
12431 s,@warn_cflags@,$warn_cflags,;t t
12432 s,@WERROR@,$WERROR,;t t
12433 s,@nocommon_flag@,$nocommon_flag,;t t
12434 s,@EGREP@,$EGREP,;t t
12435 s,@valgrind_path@,$valgrind_path,;t t
12436 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12437 s,@valgrind_command@,$valgrind_command,;t t
12438 s,@coverage_flags@,$coverage_flags,;t t
12439 s,@enable_multilib@,$enable_multilib,;t t
12440 s,@enable_shared@,$enable_shared,;t t
12441 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12442 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12443 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12444 s,@onestep@,$onestep,;t t
12445 s,@SET_MAKE@,$SET_MAKE,;t t
12446 s,@AWK@,$AWK,;t t
12447 s,@LN@,$LN,;t t
12448 s,@LN_S@,$LN_S,;t t
12449 s,@RANLIB@,$RANLIB,;t t
12450 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12451 s,@INSTALL@,$INSTALL,;t t
12452 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12453 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12454 s,@make_compare_target@,$make_compare_target,;t t
12455 s,@have_mktemp_command@,$have_mktemp_command,;t t
12456 s,@MAKEINFO@,$MAKEINFO,;t t
12457 s,@BUILD_INFO@,$BUILD_INFO,;t t
12458 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12459 s,@FLEX@,$FLEX,;t t
12460 s,@BISON@,$BISON,;t t
12461 s,@stage1_cflags@,$stage1_cflags,;t t
12462 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12463 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12464 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12465 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12466 s,@LIBICONV@,$LIBICONV,;t t
12467 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12468 s,@manext@,$manext,;t t
12469 s,@objext@,$objext,;t t
12470 s,@extra_modes_file@,$extra_modes_file,;t t
12471 s,@FORBUILD@,$FORBUILD,;t t
12472 s,@PACKAGE@,$PACKAGE,;t t
12473 s,@VERSION@,$VERSION,;t t
12474 s,@USE_NLS@,$USE_NLS,;t t
12475 s,@LIBINTL@,$LIBINTL,;t t
12476 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12477 s,@INCINTL@,$INCINTL,;t t
12478 s,@XGETTEXT@,$XGETTEXT,;t t
12479 s,@GMSGFMT@,$GMSGFMT,;t t
12480 s,@POSUB@,$POSUB,;t t
12481 s,@CATALOGS@,$CATALOGS,;t t
12482 s,@CROSS@,$CROSS,;t t
12483 s,@ALL@,$ALL,;t t
12484 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12485 s,@inhibit_libc@,$inhibit_libc,;t t
12486 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12487 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12488 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12489 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12490 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12491 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12492 s,@libgcc_visibility@,$libgcc_visibility,;t t
12493 s,@gthread_flags@,$gthread_flags,;t t
12494 s,@GGC@,$GGC,;t t
12495 s,@zlibdir@,$zlibdir,;t t
12496 s,@zlibinc@,$zlibinc,;t t
12497 s,@MAINT@,$MAINT,;t t
12498 s,@gcc_tooldir@,$gcc_tooldir,;t t
12499 s,@dollar@,$dollar,;t t
12500 s,@slibdir@,$slibdir,;t t
12501 s,@objdir@,$objdir,;t t
12502 s,@subdirs@,$subdirs,;t t
12503 s,@srcdir@,$srcdir,;t t
12504 s,@all_boot_languages@,$all_boot_languages,;t t
12505 s,@all_compilers@,$all_compilers,;t t
12506 s,@all_gtfiles@,$all_gtfiles,;t t
12507 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12508 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12509 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12510 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12511 s,@all_languages@,$all_languages,;t t
12512 s,@all_stagestuff@,$all_stagestuff,;t t
12513 s,@build_exeext@,$build_exeext,;t t
12514 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12515 s,@build_xm_file_list@,$build_xm_file_list,;t t
12516 s,@build_xm_include_list@,$build_xm_include_list,;t t
12517 s,@build_xm_defines@,$build_xm_defines,;t t
12518 s,@check_languages@,$check_languages,;t t
12519 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12520 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12521 s,@cpp_install_dir@,$cpp_install_dir,;t t
12522 s,@xmake_file@,$xmake_file,;t t
12523 s,@tmake_file@,$tmake_file,;t t
12524 s,@extra_headers_list@,$extra_headers_list,;t t
12525 s,@extra_objs@,$extra_objs,;t t
12526 s,@extra_parts@,$extra_parts,;t t
12527 s,@extra_passes@,$extra_passes,;t t
12528 s,@extra_programs@,$extra_programs,;t t
12529 s,@float_h_file@,$float_h_file,;t t
12530 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12531 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12532 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12533 s,@gcc_version@,$gcc_version,;t t
12534 s,@gcc_version_full@,$gcc_version_full,;t t
12535 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12536 s,@host_exeext@,$host_exeext,;t t
12537 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
12538 s,@host_xm_file_list@,$host_xm_file_list,;t t
12539 s,@host_xm_include_list@,$host_xm_include_list,;t t
12540 s,@host_xm_defines@,$host_xm_defines,;t t
12541 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12542 s,@install@,$install,;t t
12543 s,@lang_opt_files@,$lang_opt_files,;t t
12544 s,@lang_specs_files@,$lang_specs_files,;t t
12545 s,@lang_tree_files@,$lang_tree_files,;t t
12546 s,@local_prefix@,$local_prefix,;t t
12547 s,@md_file@,$md_file,;t t
12548 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12549 s,@out_file@,$out_file,;t t
12550 s,@out_object_file@,$out_object_file,;t t
12551 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12552 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12553 s,@symbolic_link@,$symbolic_link,;t t
12554 s,@thread_file@,$thread_file,;t t
12555 s,@tm_file_list@,$tm_file_list,;t t
12556 s,@tm_include_list@,$tm_include_list,;t t
12557 s,@tm_defines@,$tm_defines,;t t
12558 s,@tm_p_file_list@,$tm_p_file_list,;t t
12559 s,@tm_p_include_list@,$tm_p_include_list,;t t
12560 s,@xm_file_list@,$xm_file_list,;t t
12561 s,@xm_include_list@,$xm_include_list,;t t
12562 s,@xm_defines@,$xm_defines,;t t
12563 s,@target_noncanonical@,$target_noncanonical,;t t
12564 s,@c_target_objs@,$c_target_objs,;t t
12565 s,@cxx_target_objs@,$cxx_target_objs,;t t
12566 s,@target_cpu_default@,$target_cpu_default,;t t
12567 s,@LIBOBJS@,$LIBOBJS,;t t
12568 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12569 /@language_hooks@/r $language_hooks
12570 s,@language_hooks@,,;t t
12571 CEOF
12572
12573 _ACEOF
12574
12575   cat >>$CONFIG_STATUS <<\_ACEOF
12576   # Split the substitutions into bite-sized pieces for seds with
12577   # small command number limits, like on Digital OSF/1 and HP-UX.
12578   ac_max_sed_lines=48
12579   ac_sed_frag=1 # Number of current file.
12580   ac_beg=1 # First line for current file.
12581   ac_end=$ac_max_sed_lines # Line after last line for current file.
12582   ac_more_lines=:
12583   ac_sed_cmds=
12584   while $ac_more_lines; do
12585     if test $ac_beg -gt 1; then
12586       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12587     else
12588       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12589     fi
12590     if test ! -s $tmp/subs.frag; then
12591       ac_more_lines=false
12592     else
12593       # The purpose of the label and of the branching condition is to
12594       # speed up the sed processing (if there are no `@' at all, there
12595       # is no need to browse any of the substitutions).
12596       # These are the two extra sed commands mentioned above.
12597       (echo ':t
12598   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12599       if test -z "$ac_sed_cmds"; then
12600         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12601       else
12602         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12603       fi
12604       ac_sed_frag=`expr $ac_sed_frag + 1`
12605       ac_beg=$ac_end
12606       ac_end=`expr $ac_end + $ac_max_sed_lines`
12607     fi
12608   done
12609   if test -z "$ac_sed_cmds"; then
12610     ac_sed_cmds=cat
12611   fi
12612 fi # test -n "$CONFIG_FILES"
12613
12614 _ACEOF
12615 cat >>$CONFIG_STATUS <<\_ACEOF
12616 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12617   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12618   case $ac_file in
12619   - | *:- | *:-:* ) # input from stdin
12620         cat >$tmp/stdin
12621         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12622         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12623   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12624         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12625   * )   ac_file_in=$ac_file.in ;;
12626   esac
12627
12628   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12629   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12631          X"$ac_file" : 'X\(//\)[^/]' \| \
12632          X"$ac_file" : 'X\(//\)$' \| \
12633          X"$ac_file" : 'X\(/\)' \| \
12634          .     : '\(.\)' 2>/dev/null ||
12635 echo X"$ac_file" |
12636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12637           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12638           /^X\(\/\/\)$/{ s//\1/; q; }
12639           /^X\(\/\).*/{ s//\1/; q; }
12640           s/.*/./; q'`
12641   { if $as_mkdir_p; then
12642     mkdir -p "$ac_dir"
12643   else
12644     as_dir="$ac_dir"
12645     as_dirs=
12646     while test ! -d "$as_dir"; do
12647       as_dirs="$as_dir $as_dirs"
12648       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12650          X"$as_dir" : 'X\(//\)[^/]' \| \
12651          X"$as_dir" : 'X\(//\)$' \| \
12652          X"$as_dir" : 'X\(/\)' \| \
12653          .     : '\(.\)' 2>/dev/null ||
12654 echo X"$as_dir" |
12655     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12656           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12657           /^X\(\/\/\)$/{ s//\1/; q; }
12658           /^X\(\/\).*/{ s//\1/; q; }
12659           s/.*/./; q'`
12660     done
12661     test ! -n "$as_dirs" || mkdir $as_dirs
12662   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12663 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12664    { (exit 1); exit 1; }; }; }
12665
12666   ac_builddir=.
12667
12668 if test "$ac_dir" != .; then
12669   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12670   # A "../" for each directory in $ac_dir_suffix.
12671   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12672 else
12673   ac_dir_suffix= ac_top_builddir=
12674 fi
12675
12676 case $srcdir in
12677   .)  # No --srcdir option.  We are building in place.
12678     ac_srcdir=.
12679     if test -z "$ac_top_builddir"; then
12680        ac_top_srcdir=.
12681     else
12682        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12683     fi ;;
12684   [\\/]* | ?:[\\/]* )  # Absolute path.
12685     ac_srcdir=$srcdir$ac_dir_suffix;
12686     ac_top_srcdir=$srcdir ;;
12687   *) # Relative path.
12688     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12689     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12690 esac
12691 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12692 # absolute.
12693 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12694 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12695 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12696 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12697
12698
12699
12700   if test x"$ac_file" != x-; then
12701     { echo "$as_me:$LINENO: creating $ac_file" >&5
12702 echo "$as_me: creating $ac_file" >&6;}
12703     rm -f "$ac_file"
12704   fi
12705   # Let's still pretend it is `configure' which instantiates (i.e., don't
12706   # use $as_me), people would be surprised to read:
12707   #    /* config.h.  Generated by config.status.  */
12708   if test x"$ac_file" = x-; then
12709     configure_input=
12710   else
12711     configure_input="$ac_file.  "
12712   fi
12713   configure_input=$configure_input"Generated from `echo $ac_file_in |
12714                                      sed 's,.*/,,'` by configure."
12715
12716   # First look for the input files in the build tree, otherwise in the
12717   # src tree.
12718   ac_file_inputs=`IFS=:
12719     for f in $ac_file_in; do
12720       case $f in
12721       -) echo $tmp/stdin ;;
12722       [\\/$]*)
12723          # Absolute (can't be DOS-style, as IFS=:)
12724          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12725 echo "$as_me: error: cannot find input file: $f" >&2;}
12726    { (exit 1); exit 1; }; }
12727          echo $f;;
12728       *) # Relative
12729          if test -f "$f"; then
12730            # Build tree
12731            echo $f
12732          elif test -f "$srcdir/$f"; then
12733            # Source tree
12734            echo $srcdir/$f
12735          else
12736            # /dev/null tree
12737            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12738 echo "$as_me: error: cannot find input file: $f" >&2;}
12739    { (exit 1); exit 1; }; }
12740          fi;;
12741       esac
12742     done` || { (exit 1); exit 1; }
12743 _ACEOF
12744 cat >>$CONFIG_STATUS <<_ACEOF
12745   sed "$ac_vpsub
12746 $extrasub
12747 _ACEOF
12748 cat >>$CONFIG_STATUS <<\_ACEOF
12749 :t
12750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12751 s,@configure_input@,$configure_input,;t t
12752 s,@srcdir@,$ac_srcdir,;t t
12753 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12754 s,@top_srcdir@,$ac_top_srcdir,;t t
12755 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12756 s,@builddir@,$ac_builddir,;t t
12757 s,@abs_builddir@,$ac_abs_builddir,;t t
12758 s,@top_builddir@,$ac_top_builddir,;t t
12759 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12760 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12761   rm -f $tmp/stdin
12762   if test x"$ac_file" != x-; then
12763     mv $tmp/out $ac_file
12764   else
12765     cat $tmp/out
12766     rm -f $tmp/out
12767   fi
12768
12769 done
12770 _ACEOF
12771 cat >>$CONFIG_STATUS <<\_ACEOF
12772
12773 #
12774 # CONFIG_HEADER section.
12775 #
12776
12777 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12778 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12779 #
12780 # ac_d sets the value in "#define NAME VALUE" lines.
12781 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12782 ac_dB='[        ].*$,\1#\2'
12783 ac_dC=' '
12784 ac_dD=',;t'
12785 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12786 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12787 ac_uB='$,\1#\2define\3'
12788 ac_uC=' '
12789 ac_uD=',;t'
12790
12791 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12792   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12793   case $ac_file in
12794   - | *:- | *:-:* ) # input from stdin
12795         cat >$tmp/stdin
12796         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12797         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12798   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12799         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12800   * )   ac_file_in=$ac_file.in ;;
12801   esac
12802
12803   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12804 echo "$as_me: creating $ac_file" >&6;}
12805
12806   # First look for the input files in the build tree, otherwise in the
12807   # src tree.
12808   ac_file_inputs=`IFS=:
12809     for f in $ac_file_in; do
12810       case $f in
12811       -) echo $tmp/stdin ;;
12812       [\\/$]*)
12813          # Absolute (can't be DOS-style, as IFS=:)
12814          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12815 echo "$as_me: error: cannot find input file: $f" >&2;}
12816    { (exit 1); exit 1; }; }
12817          echo $f;;
12818       *) # Relative
12819          if test -f "$f"; then
12820            # Build tree
12821            echo $f
12822          elif test -f "$srcdir/$f"; then
12823            # Source tree
12824            echo $srcdir/$f
12825          else
12826            # /dev/null tree
12827            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12828 echo "$as_me: error: cannot find input file: $f" >&2;}
12829    { (exit 1); exit 1; }; }
12830          fi;;
12831       esac
12832     done` || { (exit 1); exit 1; }
12833   # Remove the trailing spaces.
12834   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12835
12836 _ACEOF
12837
12838 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12839 # `conftest.undefs', that substitutes the proper values into
12840 # config.h.in to produce config.h.  The first handles `#define'
12841 # templates, and the second `#undef' templates.
12842 # And first: Protect against being on the right side of a sed subst in
12843 # config.status.  Protect against being in an unquoted here document
12844 # in config.status.
12845 rm -f conftest.defines conftest.undefs
12846 # Using a here document instead of a string reduces the quoting nightmare.
12847 # Putting comments in sed scripts is not portable.
12848 #
12849 # `end' is used to avoid that the second main sed command (meant for
12850 # 0-ary CPP macros) applies to n-ary macro definitions.
12851 # See the Autoconf documentation for `clear'.
12852 cat >confdef2sed.sed <<\_ACEOF
12853 s/[\\&,]/\\&/g
12854 s,[\\$`],\\&,g
12855 t clear
12856 : clear
12857 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12858 t end
12859 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12860 : end
12861 _ACEOF
12862 # If some macros were called several times there might be several times
12863 # the same #defines, which is useless.  Nevertheless, we may not want to
12864 # sort them, since we want the *last* AC-DEFINE to be honored.
12865 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12866 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12867 rm -f confdef2sed.sed
12868
12869 # This sed command replaces #undef with comments.  This is necessary, for
12870 # example, in the case of _POSIX_SOURCE, which is predefined and required
12871 # on some systems where configure will not decide to define it.
12872 cat >>conftest.undefs <<\_ACEOF
12873 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12874 _ACEOF
12875
12876 # Break up conftest.defines because some shells have a limit on the size
12877 # of here documents, and old seds have small limits too (100 cmds).
12878 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12879 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12880 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12881 echo '  :' >>$CONFIG_STATUS
12882 rm -f conftest.tail
12883 while grep . conftest.defines >/dev/null
12884 do
12885   # Write a limited-size here document to $tmp/defines.sed.
12886   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12887   # Speed up: don't consider the non `#define' lines.
12888   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12889   # Work around the forget-to-reset-the-flag bug.
12890   echo 't clr' >>$CONFIG_STATUS
12891   echo ': clr' >>$CONFIG_STATUS
12892   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12893   echo 'CEOF
12894   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12895   rm -f $tmp/in
12896   mv $tmp/out $tmp/in
12897 ' >>$CONFIG_STATUS
12898   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12899   rm -f conftest.defines
12900   mv conftest.tail conftest.defines
12901 done
12902 rm -f conftest.defines
12903 echo '  fi # grep' >>$CONFIG_STATUS
12904 echo >>$CONFIG_STATUS
12905
12906 # Break up conftest.undefs because some shells have a limit on the size
12907 # of here documents, and old seds have small limits too (100 cmds).
12908 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12909 rm -f conftest.tail
12910 while grep . conftest.undefs >/dev/null
12911 do
12912   # Write a limited-size here document to $tmp/undefs.sed.
12913   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12914   # Speed up: don't consider the non `#undef'
12915   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12916   # Work around the forget-to-reset-the-flag bug.
12917   echo 't clr' >>$CONFIG_STATUS
12918   echo ': clr' >>$CONFIG_STATUS
12919   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12920   echo 'CEOF
12921   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12922   rm -f $tmp/in
12923   mv $tmp/out $tmp/in
12924 ' >>$CONFIG_STATUS
12925   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12926   rm -f conftest.undefs
12927   mv conftest.tail conftest.undefs
12928 done
12929 rm -f conftest.undefs
12930
12931 cat >>$CONFIG_STATUS <<\_ACEOF
12932   # Let's still pretend it is `configure' which instantiates (i.e., don't
12933   # use $as_me), people would be surprised to read:
12934   #    /* config.h.  Generated by config.status.  */
12935   if test x"$ac_file" = x-; then
12936     echo "/* Generated by configure.  */" >$tmp/config.h
12937   else
12938     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12939   fi
12940   cat $tmp/in >>$tmp/config.h
12941   rm -f $tmp/in
12942   if test x"$ac_file" != x-; then
12943     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12944       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12945 echo "$as_me: $ac_file is unchanged" >&6;}
12946     else
12947       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12948 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12949          X"$ac_file" : 'X\(//\)[^/]' \| \
12950          X"$ac_file" : 'X\(//\)$' \| \
12951          X"$ac_file" : 'X\(/\)' \| \
12952          .     : '\(.\)' 2>/dev/null ||
12953 echo X"$ac_file" |
12954     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12955           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12956           /^X\(\/\/\)$/{ s//\1/; q; }
12957           /^X\(\/\).*/{ s//\1/; q; }
12958           s/.*/./; q'`
12959       { if $as_mkdir_p; then
12960     mkdir -p "$ac_dir"
12961   else
12962     as_dir="$ac_dir"
12963     as_dirs=
12964     while test ! -d "$as_dir"; do
12965       as_dirs="$as_dir $as_dirs"
12966       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12968          X"$as_dir" : 'X\(//\)[^/]' \| \
12969          X"$as_dir" : 'X\(//\)$' \| \
12970          X"$as_dir" : 'X\(/\)' \| \
12971          .     : '\(.\)' 2>/dev/null ||
12972 echo X"$as_dir" |
12973     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12974           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12975           /^X\(\/\/\)$/{ s//\1/; q; }
12976           /^X\(\/\).*/{ s//\1/; q; }
12977           s/.*/./; q'`
12978     done
12979     test ! -n "$as_dirs" || mkdir $as_dirs
12980   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12981 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12982    { (exit 1); exit 1; }; }; }
12983
12984       rm -f $ac_file
12985       mv $tmp/config.h $ac_file
12986     fi
12987   else
12988     cat $tmp/config.h
12989     rm -f $tmp/config.h
12990   fi
12991 done
12992 _ACEOF
12993 cat >>$CONFIG_STATUS <<\_ACEOF
12994
12995 #
12996 # CONFIG_COMMANDS section.
12997 #
12998 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12999   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13000   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13001   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13002 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13003          X"$ac_dest" : 'X\(//\)[^/]' \| \
13004          X"$ac_dest" : 'X\(//\)$' \| \
13005          X"$ac_dest" : 'X\(/\)' \| \
13006          .     : '\(.\)' 2>/dev/null ||
13007 echo X"$ac_dest" |
13008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13009           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13010           /^X\(\/\/\)$/{ s//\1/; q; }
13011           /^X\(\/\).*/{ s//\1/; q; }
13012           s/.*/./; q'`
13013   ac_builddir=.
13014
13015 if test "$ac_dir" != .; then
13016   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13017   # A "../" for each directory in $ac_dir_suffix.
13018   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13019 else
13020   ac_dir_suffix= ac_top_builddir=
13021 fi
13022
13023 case $srcdir in
13024   .)  # No --srcdir option.  We are building in place.
13025     ac_srcdir=.
13026     if test -z "$ac_top_builddir"; then
13027        ac_top_srcdir=.
13028     else
13029        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13030     fi ;;
13031   [\\/]* | ?:[\\/]* )  # Absolute path.
13032     ac_srcdir=$srcdir$ac_dir_suffix;
13033     ac_top_srcdir=$srcdir ;;
13034   *) # Relative path.
13035     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13036     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13037 esac
13038 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13039 # absolute.
13040 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13041 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13042 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13043 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13044
13045
13046   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13047 echo "$as_me: executing $ac_dest commands" >&6;}
13048   case $ac_dest in
13049     default )
13050 case ${CONFIG_HEADERS} in
13051   *auto-host.h:config.in*)
13052   echo > cstamp-h ;;
13053 esac
13054 # Make sure all the subdirs exist.
13055 for d in $subdirs
13056 do
13057     test -d $d || mkdir $d
13058 done
13059 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13060 # bootstrapping and the installation procedure can still use
13061 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13062 # FLAGS_TO_PASS has been modified to solve the problem there.
13063 # This is virtually a duplicate of what happens in configure.lang; we do
13064 # an extra check to make sure this only happens if ln -s can be used.
13065 if test "$symbolic_link" = "ln -s"; then
13066  for d in ${subdirs} fixinc ; do
13067         STARTDIR=`${PWDCMD-pwd}`
13068         cd $d
13069         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13070         do
13071                 rm -f $t
13072                 $symbolic_link ../$t $t 2>/dev/null
13073         done
13074         cd $STARTDIR
13075  done
13076 else true ; fi
13077  ;;
13078   esac
13079 done
13080 _ACEOF
13081
13082 cat >>$CONFIG_STATUS <<\_ACEOF
13083
13084 { (exit 0); exit 0; }
13085 _ACEOF
13086 chmod +x $CONFIG_STATUS
13087 ac_clean_files=$ac_clean_files_save
13088
13089
13090 # configure is writing to config.log, and then calls config.status.
13091 # config.status does its own redirection, appending to config.log.
13092 # Unfortunately, on DOS this fails, as config.log is still kept open
13093 # by configure, so config.status won't be able to write to it; its
13094 # output is simply discarded.  So we exec the FD to /dev/null,
13095 # effectively closing config.log, so it can be properly (re)opened and
13096 # appended to by config.status.  When coming back to configure, we
13097 # need to make the FD available again.
13098 if test "$no_create" != yes; then
13099   ac_cs_success=:
13100   ac_config_status_args=
13101   test "$silent" = yes &&
13102     ac_config_status_args="$ac_config_status_args --quiet"
13103   exec 5>/dev/null
13104   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13105   exec 5>>config.log
13106   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13107   # would make configure fail if this is the last instruction.
13108   $ac_cs_success || { (exit 1); exit 1; }
13109 fi
13110