OSDN Git Service

Missed in last commit:
[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 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 docobjdir parsedir 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  Put generated files in source dir
853   --enable-werror         enable -Werror in bootstrap stage2 and later
854   --enable-checking=LIST
855                           enable expensive run-time checks.  With LIST,
856                           enable only specific categories of checks.
857                           Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
858                           default is misc,tree,gc,rtlflag
859   --enable-coverage=LEVEL
860                           enable compiler\'s code coverage collection.
861                           Use to measure compiler performance and locate
862                           unused parts of the compiler. With LEVEL, specify
863                           optimization. Values are opt, noopt,
864                           default is noopt
865   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
866   --enable-multilib       enable library support for multiple ABIs
867   --enable-__cxa_atexit   enable __cxa_atexit for C++
868   --enable-threads        enable thread usage for target GCC
869   --enable-threads=LIB    use LIB thread package for target GCC
870   --enable-objc-gc        enable the use of Boehm's garbage collector with
871                           the GNU Objective-C runtime
872   --disable-shared        don't provide a shared libgcc
873   --enable-intermodule    build the compiler in one step
874   --enable-initfini-array       use .init_array/.fini_array sections
875   --enable-sjlj-exceptions
876                           arrange to use setjmp/longjmp exception handling
877   --enable-libunwind-exceptions  force use libunwind for exceptions
878   --disable-win32-registry
879                           disable lookup of installation paths in the
880                           Registry on Windows hosts
881   --enable-win32-registry enable registry lookup (default)
882   --enable-win32-registry=KEY
883                           use KEY instead of GCC version as the last portion
884                           of the registry key
885   --enable-maintainer-mode
886                           enable make rules and dependencies not useful
887                           (and sometimes confusing) to the casual installer
888   --enable-version-specific-runtime-libs
889                           specify that runtime libraries should be
890                           installed in a compiler-specific directory
891
892 Optional Packages:
893   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
894   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
895   --with-local-prefix=DIR specifies directory to put local include
896   --with-gxx-include-dir=DIR
897                           specifies directory to put g++ header files
898   --with-cpp-install-dir=DIR
899                           install the user visible C preprocessor in DIR
900                           (relative to PREFIX) as well as PREFIX/bin
901   --with-gnu-ld           arrange to work with GNU ld.
902   --with-ld               arrange to use the specified ld (full pathname)
903   --with-gnu-as           arrange to work with GNU as
904   --with-as               arrange to use the specified as (full pathname)
905   --with-stabs            arrange to use stabs instead of host debug format
906   --with-dwarf2           force the default debug format to be DWARF 2
907   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
908   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
909   --with-gc={simple,page,zone} choose the garbage collection mechanism to use
910                           with the compiler
911   --with-system-zlib      use installed libz
912   --with-slibdir=DIR      shared libraries in DIR LIBDIR
913
914 Some influential environment variables:
915   CC          C compiler command
916   CFLAGS      C compiler flags
917   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
918               nonstandard directory <lib dir>
919   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
920               headers in a nonstandard directory <include dir>
921   CPP         C preprocessor
922
923 Use these variables to override the choices made by `configure' or to help
924 it to find libraries and programs with nonstandard names/locations.
925
926 _ACEOF
927 fi
928
929 if test "$ac_init_help" = "recursive"; then
930   # If there are subdirs, report their specific --help.
931   ac_popdir=`pwd`
932   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
933     test -d $ac_dir || continue
934     ac_builddir=.
935
936 if test "$ac_dir" != .; then
937   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
938   # A "../" for each directory in $ac_dir_suffix.
939   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
940 else
941   ac_dir_suffix= ac_top_builddir=
942 fi
943
944 case $srcdir in
945   .)  # No --srcdir option.  We are building in place.
946     ac_srcdir=.
947     if test -z "$ac_top_builddir"; then
948        ac_top_srcdir=.
949     else
950        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
951     fi ;;
952   [\\/]* | ?:[\\/]* )  # Absolute path.
953     ac_srcdir=$srcdir$ac_dir_suffix;
954     ac_top_srcdir=$srcdir ;;
955   *) # Relative path.
956     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
957     ac_top_srcdir=$ac_top_builddir$srcdir ;;
958 esac
959 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
960 # absolute.
961 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
962 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
963 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
964 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
965
966     cd $ac_dir
967     # Check for guested configure; otherwise get Cygnus style configure.
968     if test -f $ac_srcdir/configure.gnu; then
969       echo
970       $SHELL $ac_srcdir/configure.gnu  --help=recursive
971     elif test -f $ac_srcdir/configure; then
972       echo
973       $SHELL $ac_srcdir/configure  --help=recursive
974     elif test -f $ac_srcdir/configure.ac ||
975            test -f $ac_srcdir/configure.in; then
976       echo
977       $ac_configure --help
978     else
979       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980     fi
981     cd "$ac_popdir"
982   done
983 fi
984
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
987   cat <<\_ACEOF
988
989 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
990 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994   exit 0
995 fi
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1000
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.57.  Invocation command line was
1003
1004   $ $0 $@
1005
1006 _ACEOF
1007 {
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1012
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1021
1022 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1023 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1026 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1027 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1028 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1029
1030 _ASUNAME
1031
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1034 do
1035   IFS=$as_save_IFS
1036   test -z "$as_dir" && as_dir=.
1037   echo "PATH: $as_dir"
1038 done
1039
1040 } >&5
1041
1042 cat >&5 <<_ACEOF
1043
1044
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1048
1049 _ACEOF
1050
1051
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1063 do
1064   for ac_arg
1065   do
1066     case $ac_arg in
1067     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069     | -silent | --silent | --silen | --sile | --sil)
1070       continue ;;
1071     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073     esac
1074     case $ac_pass in
1075     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076     2)
1077       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078       if test $ac_must_keep_next = true; then
1079         ac_must_keep_next=false # Got value, back to normal.
1080       else
1081         case $ac_arg in
1082           *=* | --config-cache | -C | -disable-* | --disable-* \
1083           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085           | -with-* | --with-* | -without-* | --without-* | --x)
1086             case "$ac_configure_args0 " in
1087               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088             esac
1089             ;;
1090           -* ) ac_must_keep_next=true ;;
1091         esac
1092       fi
1093       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094       # Get rid of the leading space.
1095       ac_sep=" "
1096       ;;
1097     esac
1098   done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log.  We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109   # Save into config.log some information that might help in debugging.
1110   {
1111     echo
1112
1113     cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118     echo
1119     # The following way of writing the cache mishandles newlines in values,
1120 {
1121   (set) 2>&1 |
1122     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123     *ac_space=\ *)
1124       sed -n \
1125         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127       ;;
1128     *)
1129       sed -n \
1130         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131       ;;
1132     esac;
1133 }
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141     echo
1142     for ac_var in $ac_subst_vars
1143     do
1144       eval ac_val=$`echo $ac_var`
1145       echo "$ac_var='"'"'$ac_val'"'"'"
1146     done | sort
1147     echo
1148
1149     if test -n "$ac_subst_files"; then
1150       cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155       echo
1156       for ac_var in $ac_subst_files
1157       do
1158         eval ac_val=$`echo $ac_var`
1159         echo "$ac_var='"'"'$ac_val'"'"'"
1160       done | sort
1161       echo
1162     fi
1163
1164     if test -s confdefs.h; then
1165       cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170       echo
1171       sed "/^$/d" confdefs.h | sort
1172       echo
1173     fi
1174     test "$ac_signal" != 0 &&
1175       echo "$as_me: caught signal $ac_signal"
1176     echo "$as_me: exit $exit_status"
1177   } >&5
1178   rm -f core *.core &&
1179   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180     exit $exit_status
1181      ' 0
1182 for ac_signal in 1 2 13 15; do
1183   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1186
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1191
1192 # Predefined preprocessor variables.
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1217
1218
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222   if test "x$prefix" != xNONE; then
1223     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224   else
1225     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226   fi
1227 fi
1228 for ac_site_file in $CONFIG_SITE; do
1229   if test -r "$ac_site_file"; then
1230     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232     sed 's/^/| /' "$ac_site_file" >&5
1233     . "$ac_site_file"
1234   fi
1235 done
1236
1237 if test -r "$cache_file"; then
1238   # Some versions of bash will fail to source /dev/null (special
1239   # files actually), so we avoid doing that.
1240   if test -f "$cache_file"; then
1241     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243     case $cache_file in
1244       [\\/]* | ?:[\\/]* ) . $cache_file;;
1245       *)                      . ./$cache_file;;
1246     esac
1247   fi
1248 else
1249   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251   >$cache_file
1252 fi
1253
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260   eval ac_new_set=\$ac_env_${ac_var}_set
1261   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262   eval ac_new_val="\$ac_env_${ac_var}_value"
1263   case $ac_old_set,$ac_new_set in
1264     set,)
1265       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267       ac_cache_corrupted=: ;;
1268     ,set)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,);;
1273     *)
1274       if test "x$ac_old_val" != "x$ac_new_val"; then
1275         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1278 echo "$as_me:   former value:  $ac_old_val" >&2;}
1279         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1280 echo "$as_me:   current value: $ac_new_val" >&2;}
1281         ac_cache_corrupted=:
1282       fi;;
1283   esac
1284   # Pass precious variables to config.status.
1285   if test "$ac_new_set" = set; then
1286     case $ac_new_val in
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     *) ac_arg=$ac_var=$ac_new_val ;;
1290     esac
1291     case " $ac_configure_args " in
1292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1293       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294     esac
1295   fi
1296 done
1297 if $ac_cache_corrupted; then
1298   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1330
1331
1332 # Determine the host, build, and target systems
1333 ac_aux_dir=
1334 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1335   if test -f $ac_dir/install-sh; then
1336     ac_aux_dir=$ac_dir
1337     ac_install_sh="$ac_aux_dir/install-sh -c"
1338     break
1339   elif 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/shtool; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/shtool install -c"
1346     break
1347   fi
1348 done
1349 if test -z "$ac_aux_dir"; then
1350   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1351 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1352    { (exit 1); exit 1; }; }
1353 fi
1354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1357
1358 # Make sure we can run config.sub.
1359 $ac_config_sub sun4 >/dev/null 2>&1 ||
1360   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1361 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1362    { (exit 1); exit 1; }; }
1363
1364 echo "$as_me:$LINENO: checking build system type" >&5
1365 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1366 if test "${ac_cv_build+set}" = set; then
1367   echo $ECHO_N "(cached) $ECHO_C" >&6
1368 else
1369   ac_cv_build_alias=$build_alias
1370 test -z "$ac_cv_build_alias" &&
1371   ac_cv_build_alias=`$ac_config_guess`
1372 test -z "$ac_cv_build_alias" &&
1373   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1374 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1375    { (exit 1); exit 1; }; }
1376 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1377   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1378 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1379    { (exit 1); exit 1; }; }
1380
1381 fi
1382 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1383 echo "${ECHO_T}$ac_cv_build" >&6
1384 build=$ac_cv_build
1385 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388
1389
1390 echo "$as_me:$LINENO: checking host system type" >&5
1391 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1392 if test "${ac_cv_host+set}" = set; then
1393   echo $ECHO_N "(cached) $ECHO_C" >&6
1394 else
1395   ac_cv_host_alias=$host_alias
1396 test -z "$ac_cv_host_alias" &&
1397   ac_cv_host_alias=$ac_cv_build_alias
1398 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1399   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1400 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1401    { (exit 1); exit 1; }; }
1402
1403 fi
1404 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1405 echo "${ECHO_T}$ac_cv_host" >&6
1406 host=$ac_cv_host
1407 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1408 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1409 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1410
1411
1412 echo "$as_me:$LINENO: checking target system type" >&5
1413 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1414 if test "${ac_cv_target+set}" = set; then
1415   echo $ECHO_N "(cached) $ECHO_C" >&6
1416 else
1417   ac_cv_target_alias=$target_alias
1418 test "x$ac_cv_target_alias" = "x" &&
1419   ac_cv_target_alias=$ac_cv_host_alias
1420 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1421   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1422 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1423    { (exit 1); exit 1; }; }
1424
1425 fi
1426 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1427 echo "${ECHO_T}$ac_cv_target" >&6
1428 target=$ac_cv_target
1429 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432
1433
1434 # The aliases save the names the user supplied, while $host etc.
1435 # will get canonicalized.
1436 test -n "$target_alias" &&
1437   test "$program_prefix$program_suffix$program_transform_name" = \
1438     NONENONEs,x,x, &&
1439   program_prefix=${target_alias}-
1440
1441 # Determine the noncanonical target name, for directory use.
1442  case ${build_alias} in
1443   "") build_noncanonical=${build} ;;
1444   *) build_noncanonical=${build_alias} ;;
1445 esac
1446
1447  case ${host_alias} in
1448   "") host_noncanonical=${build_noncanonical} ;;
1449   *) host_noncanonical=${host_alias} ;;
1450 esac
1451
1452  case ${target_alias} in
1453   "") target_noncanonical=${host_noncanonical} ;;
1454   *) target_noncanonical=${target_alias} ;;
1455 esac
1456
1457
1458 # Determine the target- and build-specific subdirectories
1459   # Prefix 'build-' so this never conflicts with target_subdir.
1460 build_subdir="build-${build_noncanonical}"
1461 # Not really a subdirectory, but here for completeness.
1462 host_subdir=.
1463 # No prefix.
1464 target_subdir=${target_noncanonical}
1465
1466
1467 # Set program_transform_name
1468 test "$program_prefix" != NONE &&
1469   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1470 # Use a double $ so make ignores it.
1471 test "$program_suffix" != NONE &&
1472   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1473 # Double any \ or $.  echo might interpret backslashes.
1474 # By default was `s,x,x', remove it if useless.
1475 cat <<\_ACEOF >conftest.sed
1476 s/[\\$]/&&/g;s/;s,x,x,$//
1477 _ACEOF
1478 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1479 rm conftest.sed
1480
1481
1482 # Check for bogus environment variables.
1483 # Test if LIBRARY_PATH contains the notation for the current directory
1484 # since this would lead to problems installing/building glibc.
1485 # LIBRARY_PATH contains the current directory if one of the following
1486 # is true:
1487 # - one of the terminals (":" and ";") is the first or last sign
1488 # - two terminals occur directly after each other
1489 # - the path contains an element with a dot in it
1490 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1491 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1492 case ${LIBRARY_PATH} in
1493   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1494     library_path_setting="contains current directory"
1495     ;;
1496   *)
1497     library_path_setting="ok"
1498     ;;
1499 esac
1500 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1501 echo "${ECHO_T}$library_path_setting" >&6
1502 if test "$library_path_setting" != "ok"; then
1503 { { echo "$as_me:$LINENO: error:
1504 *** LIBRARY_PATH shouldn't contain the current directory when
1505 *** building gcc. Please change the environment variable
1506 *** and run configure again." >&5
1507 echo "$as_me: error:
1508 *** LIBRARY_PATH shouldn't contain the current directory when
1509 *** building gcc. Please change the environment variable
1510 *** and run configure again." >&2;}
1511    { (exit 1); exit 1; }; }
1512 fi
1513
1514 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1515 # since this would lead to problems installing/building glibc.
1516 # GCC_EXEC_PREFIX contains the current directory if one of the following
1517 # is true:
1518 # - one of the terminals (":" and ";") is the first or last sign
1519 # - two terminals occur directly after each other
1520 # - the path contains an element with a dot in it
1521 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1522 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1523 case ${GCC_EXEC_PREFIX} in
1524   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1525     gcc_exec_prefix_setting="contains current directory"
1526     ;;
1527   *)
1528     gcc_exec_prefix_setting="ok"
1529     ;;
1530 esac
1531 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1532 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1533 if test "$gcc_exec_prefix_setting" != "ok"; then
1534 { { echo "$as_me:$LINENO: error:
1535 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1536 *** building gcc. Please change the environment variable
1537 *** and run configure again." >&5
1538 echo "$as_me: 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." >&2;}
1542    { (exit 1); exit 1; }; }
1543 fi
1544
1545 # -----------
1546 # Directories
1547 # -----------
1548
1549 # Specify the local prefix
1550 local_prefix=
1551
1552 # Check whether --with-local-prefix or --without-local-prefix was given.
1553 if test "${with_local_prefix+set}" = set; then
1554   withval="$with_local_prefix"
1555   case "${withval}" in
1556 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1557 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1558    { (exit 1); exit 1; }; } ;;
1559 no)     ;;
1560 *)      local_prefix=$with_local_prefix ;;
1561 esac
1562 fi;
1563
1564 # Default local prefix if it is empty
1565 if test x$local_prefix = x; then
1566         local_prefix=/usr/local
1567 fi
1568
1569 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1570 # passed in by the toplevel make and thus we'd get different behavior
1571 # depending on where we built the sources.
1572 gcc_gxx_include_dir=
1573 # Specify the g++ header file directory
1574
1575 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1576 if test "${with_gxx_include_dir+set}" = set; then
1577   withval="$with_gxx_include_dir"
1578   case "${withval}" in
1579 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1580 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1581    { (exit 1); exit 1; }; } ;;
1582 no)     ;;
1583 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1584 esac
1585 fi;
1586
1587 if test x${gcc_gxx_include_dir} = x; then
1588   if test x${enable_version_specific_runtime_libs} = xyes; then
1589     gcc_gxx_include_dir='${libsubdir}/include/c++'
1590   else
1591     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1592     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1593   fi
1594 fi
1595
1596
1597 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1598 if test "${with_cpp_install_dir+set}" = set; then
1599   withval="$with_cpp_install_dir"
1600   if test x$withval = xyes; then
1601   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1602 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1603    { (exit 1); exit 1; }; }
1604 elif test x$withval != xno; then
1605   cpp_install_dir=$withval
1606 fi
1607 fi;
1608
1609 # We would like to our source tree to be readonly.  However when releases or
1610 # pre-releases are generated, the flex/bison generated files as well as the
1611 # various formats of manuals need to be included along with the rest of the
1612 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1613 # just that.
1614
1615 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1616 if test "${enable_generated_files_in_srcdir+set}" = set; then
1617   enableval="$enable_generated_files_in_srcdir"
1618   case ${enableval} in
1619   no)    parsedir='$(objdir)'; docobjdir='$(objdir)/doc';;
1620   *)     parsedir='$(srcdir)'; docobjdir='$(srcdir)/doc';;
1621 esac
1622 else
1623   parsedir='$(objdir)'; docobjdir='$(objdir)/doc';
1624 fi;
1625
1626 # -------------------
1627 # Find default linker
1628 # -------------------
1629
1630 # With GNU ld
1631
1632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1633 if test "${with_gnu_ld+set}" = set; then
1634   withval="$with_gnu_ld"
1635   gnu_ld_flag="$with_gnu_ld"
1636 else
1637   gnu_ld_flag=no
1638 fi;
1639
1640 # With pre-defined ld
1641
1642 # Check whether --with-ld or --without-ld was given.
1643 if test "${with_ld+set}" = set; then
1644   withval="$with_ld"
1645   DEFAULT_LINKER="$with_ld"
1646 fi;
1647 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1648   if test ! -x "$DEFAULT_LINKER"; then
1649     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1650 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1651   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1652     gnu_ld_flag=yes
1653   fi
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1657 _ACEOF
1658
1659 fi
1660
1661 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1662 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1663 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1664   if test x"$gnu_ld_flag" = x"no"; then
1665     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1666 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1667   else
1668     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1669 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1670   fi
1671 else
1672   echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1674 fi
1675
1676 # ----------------------
1677 # Find default assembler
1678 # ----------------------
1679
1680 # With GNU as
1681
1682 # Check whether --with-gnu-as or --without-gnu-as was given.
1683 if test "${with_gnu_as+set}" = set; then
1684   withval="$with_gnu_as"
1685   gas_flag="$with_gnu_as"
1686 else
1687   gas_flag=no
1688 fi;
1689
1690
1691 # Check whether --with-as or --without-as was given.
1692 if test "${with_as+set}" = set; then
1693   withval="$with_as"
1694   DEFAULT_ASSEMBLER="$with_as"
1695 fi;
1696 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1697   if test ! -x "$DEFAULT_ASSEMBLER"; then
1698     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1699 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1700   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1701     gas_flag=yes
1702   fi
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1706 _ACEOF
1707
1708 fi
1709
1710 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1711 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1712 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1713   if test x"$gas_flag" = x"no"; then
1714     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1715 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1716   else
1717     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1718 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1719   fi
1720 else
1721   echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725 # ---------------
1726 # Find C compiler
1727 # ---------------
1728
1729 # Find the native compiler
1730 ac_ext=c
1731 ac_cpp='$CPP $CPPFLAGS'
1732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1735 if test -n "$ac_tool_prefix"; then
1736   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1738 echo "$as_me:$LINENO: checking for $ac_word" >&5
1739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740 if test "${ac_cv_prog_CC+set}" = set; then
1741   echo $ECHO_N "(cached) $ECHO_C" >&6
1742 else
1743   if test -n "$CC"; then
1744   ac_cv_prog_CC="$CC" # Let the user override the test.
1745 else
1746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 for as_dir in $PATH
1748 do
1749   IFS=$as_save_IFS
1750   test -z "$as_dir" && as_dir=.
1751   for ac_exec_ext in '' $ac_executable_extensions; do
1752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755     break 2
1756   fi
1757 done
1758 done
1759
1760 fi
1761 fi
1762 CC=$ac_cv_prog_CC
1763 if test -n "$CC"; then
1764   echo "$as_me:$LINENO: result: $CC" >&5
1765 echo "${ECHO_T}$CC" >&6
1766 else
1767   echo "$as_me:$LINENO: result: no" >&5
1768 echo "${ECHO_T}no" >&6
1769 fi
1770
1771 fi
1772 if test -z "$ac_cv_prog_CC"; then
1773   ac_ct_CC=$CC
1774   # Extract the first word of "gcc", so it can be a program name with args.
1775 set dummy gcc; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1779   echo $ECHO_N "(cached) $ECHO_C" >&6
1780 else
1781   if test -n "$ac_ct_CC"; then
1782   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1783 else
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 for as_dir in $PATH
1786 do
1787   IFS=$as_save_IFS
1788   test -z "$as_dir" && as_dir=.
1789   for ac_exec_ext in '' $ac_executable_extensions; do
1790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791     ac_cv_prog_ac_ct_CC="gcc"
1792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793     break 2
1794   fi
1795 done
1796 done
1797
1798 fi
1799 fi
1800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1801 if test -n "$ac_ct_CC"; then
1802   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1803 echo "${ECHO_T}$ac_ct_CC" >&6
1804 else
1805   echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1807 fi
1808
1809   CC=$ac_ct_CC
1810 else
1811   CC="$ac_cv_prog_CC"
1812 fi
1813
1814 if test -z "$CC"; then
1815   if test -n "$ac_tool_prefix"; then
1816   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1817 set dummy ${ac_tool_prefix}cc; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   if test -n "$CC"; then
1824   ac_cv_prog_CC="$CC" # Let the user override the test.
1825 else
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829   IFS=$as_save_IFS
1830   test -z "$as_dir" && as_dir=.
1831   for ac_exec_ext in '' $ac_executable_extensions; do
1832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833     ac_cv_prog_CC="${ac_tool_prefix}cc"
1834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835     break 2
1836   fi
1837 done
1838 done
1839
1840 fi
1841 fi
1842 CC=$ac_cv_prog_CC
1843 if test -n "$CC"; then
1844   echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1846 else
1847   echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1849 fi
1850
1851 fi
1852 if test -z "$ac_cv_prog_CC"; then
1853   ac_ct_CC=$CC
1854   # Extract the first word of "cc", so it can be a program name with args.
1855 set dummy cc; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859   echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861   if test -n "$ac_ct_CC"; then
1862   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867   IFS=$as_save_IFS
1868   test -z "$as_dir" && as_dir=.
1869   for ac_exec_ext in '' $ac_executable_extensions; do
1870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871     ac_cv_prog_ac_ct_CC="cc"
1872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873     break 2
1874   fi
1875 done
1876 done
1877
1878 fi
1879 fi
1880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881 if test -n "$ac_ct_CC"; then
1882   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883 echo "${ECHO_T}$ac_ct_CC" >&6
1884 else
1885   echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1888
1889   CC=$ac_ct_CC
1890 else
1891   CC="$ac_cv_prog_CC"
1892 fi
1893
1894 fi
1895 if test -z "$CC"; then
1896   # Extract the first word of "cc", so it can be a program name with args.
1897 set dummy cc; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_CC+set}" = set; then
1901   echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903   if test -n "$CC"; then
1904   ac_cv_prog_CC="$CC" # Let the user override the test.
1905 else
1906   ac_prog_rejected=no
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910   IFS=$as_save_IFS
1911   test -z "$as_dir" && as_dir=.
1912   for ac_exec_ext in '' $ac_executable_extensions; do
1913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1915        ac_prog_rejected=yes
1916        continue
1917      fi
1918     ac_cv_prog_CC="cc"
1919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920     break 2
1921   fi
1922 done
1923 done
1924
1925 if test $ac_prog_rejected = yes; then
1926   # We found a bogon in the path, so make sure we never use it.
1927   set dummy $ac_cv_prog_CC
1928   shift
1929   if test $# != 0; then
1930     # We chose a different compiler from the bogus one.
1931     # However, it has the same basename, so the bogon will be chosen
1932     # first if we set CC to just the basename; use the full file name.
1933     shift
1934     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1935   fi
1936 fi
1937 fi
1938 fi
1939 CC=$ac_cv_prog_CC
1940 if test -n "$CC"; then
1941   echo "$as_me:$LINENO: result: $CC" >&5
1942 echo "${ECHO_T}$CC" >&6
1943 else
1944   echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1947
1948 fi
1949 if test -z "$CC"; then
1950   if test -n "$ac_tool_prefix"; then
1951   for ac_prog in cl
1952   do
1953     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_CC+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   if test -n "$CC"; then
1961   ac_cv_prog_CC="$CC" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966   IFS=$as_save_IFS
1967   test -z "$as_dir" && as_dir=.
1968   for ac_exec_ext in '' $ac_executable_extensions; do
1969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972     break 2
1973   fi
1974 done
1975 done
1976
1977 fi
1978 fi
1979 CC=$ac_cv_prog_CC
1980 if test -n "$CC"; then
1981   echo "$as_me:$LINENO: result: $CC" >&5
1982 echo "${ECHO_T}$CC" >&6
1983 else
1984   echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1986 fi
1987
1988     test -n "$CC" && break
1989   done
1990 fi
1991 if test -z "$CC"; then
1992   ac_ct_CC=$CC
1993   for ac_prog in cl
1994 do
1995   # Extract the first word of "$ac_prog", so it can be a program name with args.
1996 set dummy $ac_prog; ac_word=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   if test -n "$ac_ct_CC"; then
2003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008   IFS=$as_save_IFS
2009   test -z "$as_dir" && as_dir=.
2010   for ac_exec_ext in '' $ac_executable_extensions; do
2011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012     ac_cv_prog_ac_ct_CC="$ac_prog"
2013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014     break 2
2015   fi
2016 done
2017 done
2018
2019 fi
2020 fi
2021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2022 if test -n "$ac_ct_CC"; then
2023   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2024 echo "${ECHO_T}$ac_ct_CC" >&6
2025 else
2026   echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2028 fi
2029
2030   test -n "$ac_ct_CC" && break
2031 done
2032
2033   CC=$ac_ct_CC
2034 fi
2035
2036 fi
2037
2038
2039 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2040 See \`config.log' for more details." >&5
2041 echo "$as_me: error: no acceptable C compiler found in \$PATH
2042 See \`config.log' for more details." >&2;}
2043    { (exit 1); exit 1; }; }
2044
2045 # Provide some information about the compiler.
2046 echo "$as_me:$LINENO:" \
2047      "checking for C compiler version" >&5
2048 ac_compiler=`set X $ac_compile; echo $2`
2049 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2050   (eval $ac_compiler --version </dev/null >&5) 2>&5
2051   ac_status=$?
2052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053   (exit $ac_status); }
2054 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2055   (eval $ac_compiler -v </dev/null >&5) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); }
2059 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2060   (eval $ac_compiler -V </dev/null >&5) 2>&5
2061   ac_status=$?
2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063   (exit $ac_status); }
2064
2065 cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2067 /* confdefs.h.  */
2068 _ACEOF
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h.  */
2072
2073 int
2074 main ()
2075 {
2076
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 ac_clean_files_save=$ac_clean_files
2082 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2083 # Try to create an executable without -o first, disregard a.out.
2084 # It will help us diagnose broken compilers, and finding out an intuition
2085 # of exeext.
2086 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2087 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2088 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2089 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2090   (eval $ac_link_default) 2>&5
2091   ac_status=$?
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); }; then
2094   # Find the output, starting from the most likely.  This scheme is
2095 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2096 # resort.
2097
2098 # Be careful to initialize this variable, since it used to be cached.
2099 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2100 ac_cv_exeext=
2101 # b.out is created by i960 compilers.
2102 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2103 do
2104   test -f "$ac_file" || continue
2105   case $ac_file in
2106     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2107         ;;
2108     conftest.$ac_ext )
2109         # This is the source file.
2110         ;;
2111     [ab].out )
2112         # We found the default executable, but exeext='' is most
2113         # certainly right.
2114         break;;
2115     *.* )
2116         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2117         # FIXME: I believe we export ac_cv_exeext for Libtool,
2118         # but it would be cool to find out if it's true.  Does anybody
2119         # maintain Libtool? --akim.
2120         export ac_cv_exeext
2121         break;;
2122     * )
2123         break;;
2124   esac
2125 done
2126 else
2127   echo "$as_me: failed program was:" >&5
2128 sed 's/^/| /' conftest.$ac_ext >&5
2129
2130 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: C compiler cannot create executables
2133 See \`config.log' for more details." >&2;}
2134    { (exit 77); exit 77; }; }
2135 fi
2136
2137 ac_exeext=$ac_cv_exeext
2138 echo "$as_me:$LINENO: result: $ac_file" >&5
2139 echo "${ECHO_T}$ac_file" >&6
2140
2141 # Check the compiler produces executables we can run.  If not, either
2142 # the compiler is broken, or we cross compile.
2143 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2144 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2145 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2146 # If not cross compiling, check that we can run a simple program.
2147 if test "$cross_compiling" != yes; then
2148   if { ac_try='./$ac_file'
2149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150   (eval $ac_try) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }; }; then
2154     cross_compiling=no
2155   else
2156     if test "$cross_compiling" = maybe; then
2157         cross_compiling=yes
2158     else
2159         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2160 If you meant to cross compile, use \`--host'.
2161 See \`config.log' for more details." >&5
2162 echo "$as_me: error: cannot run C compiled programs.
2163 If you meant to cross compile, use \`--host'.
2164 See \`config.log' for more details." >&2;}
2165    { (exit 1); exit 1; }; }
2166     fi
2167   fi
2168 fi
2169 echo "$as_me:$LINENO: result: yes" >&5
2170 echo "${ECHO_T}yes" >&6
2171
2172 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2173 ac_clean_files=$ac_clean_files_save
2174 # Check the compiler produces executables we can run.  If not, either
2175 # the compiler is broken, or we cross compile.
2176 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2177 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2178 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2179 echo "${ECHO_T}$cross_compiling" >&6
2180
2181 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2182 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2184   (eval $ac_link) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }; then
2188   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2189 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2190 # work properly (i.e., refer to `conftest.exe'), while it won't with
2191 # `rm'.
2192 for ac_file in conftest.exe conftest conftest.*; do
2193   test -f "$ac_file" || continue
2194   case $ac_file in
2195     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2196     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197           export ac_cv_exeext
2198           break;;
2199     * ) break;;
2200   esac
2201 done
2202 else
2203   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2204 See \`config.log' for more details." >&5
2205 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2206 See \`config.log' for more details." >&2;}
2207    { (exit 1); exit 1; }; }
2208 fi
2209
2210 rm -f conftest$ac_cv_exeext
2211 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2212 echo "${ECHO_T}$ac_cv_exeext" >&6
2213
2214 rm -f conftest.$ac_ext
2215 EXEEXT=$ac_cv_exeext
2216 ac_exeext=$EXEEXT
2217 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2218 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2219 if test "${ac_cv_objext+set}" = set; then
2220   echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222   cat >conftest.$ac_ext <<_ACEOF
2223 #line $LINENO "configure"
2224 /* confdefs.h.  */
2225 _ACEOF
2226 cat confdefs.h >>conftest.$ac_ext
2227 cat >>conftest.$ac_ext <<_ACEOF
2228 /* end confdefs.h.  */
2229
2230 int
2231 main ()
2232 {
2233
2234   ;
2235   return 0;
2236 }
2237 _ACEOF
2238 rm -f conftest.o conftest.obj
2239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240   (eval $ac_compile) 2>&5
2241   ac_status=$?
2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); }; then
2244   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2245   case $ac_file in
2246     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2247     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2248        break;;
2249   esac
2250 done
2251 else
2252   echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2254
2255 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2258 See \`config.log' for more details." >&2;}
2259    { (exit 1); exit 1; }; }
2260 fi
2261
2262 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2263 fi
2264 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2265 echo "${ECHO_T}$ac_cv_objext" >&6
2266 OBJEXT=$ac_cv_objext
2267 ac_objext=$OBJEXT
2268 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2269 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2270 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2275 /* confdefs.h.  */
2276 _ACEOF
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h.  */
2280
2281 int
2282 main ()
2283 {
2284 #ifndef __GNUC__
2285        choke me
2286 #endif
2287
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 rm -f conftest.$ac_objext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294   (eval $ac_compile) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); } &&
2298          { ac_try='test -s conftest.$ac_objext'
2299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300   (eval $ac_try) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); }; }; then
2304   ac_compiler_gnu=yes
2305 else
2306   echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2308
2309 ac_compiler_gnu=no
2310 fi
2311 rm -f conftest.$ac_objext conftest.$ac_ext
2312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2313
2314 fi
2315 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2316 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2317 GCC=`test $ac_compiler_gnu = yes && echo yes`
2318 ac_test_CFLAGS=${CFLAGS+set}
2319 ac_save_CFLAGS=$CFLAGS
2320 CFLAGS="-g"
2321 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2322 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2323 if test "${ac_cv_prog_cc_g+set}" = set; then
2324   echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326   cat >conftest.$ac_ext <<_ACEOF
2327 #line $LINENO "configure"
2328 /* confdefs.h.  */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h.  */
2333
2334 int
2335 main ()
2336 {
2337
2338   ;
2339   return 0;
2340 }
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344   (eval $ac_compile) 2>&5
2345   ac_status=$?
2346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347   (exit $ac_status); } &&
2348          { ac_try='test -s conftest.$ac_objext'
2349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350   (eval $ac_try) 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); }; }; then
2354   ac_cv_prog_cc_g=yes
2355 else
2356   echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359 ac_cv_prog_cc_g=no
2360 fi
2361 rm -f conftest.$ac_objext conftest.$ac_ext
2362 fi
2363 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2364 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2365 if test "$ac_test_CFLAGS" = set; then
2366   CFLAGS=$ac_save_CFLAGS
2367 elif test $ac_cv_prog_cc_g = yes; then
2368   if test "$GCC" = yes; then
2369     CFLAGS="-g -O2"
2370   else
2371     CFLAGS="-g"
2372   fi
2373 else
2374   if test "$GCC" = yes; then
2375     CFLAGS="-O2"
2376   else
2377     CFLAGS=
2378   fi
2379 fi
2380 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2381 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2382 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   ac_cv_prog_cc_stdc=no
2386 ac_save_CC=$CC
2387 cat >conftest.$ac_ext <<_ACEOF
2388 #line $LINENO "configure"
2389 /* confdefs.h.  */
2390 _ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h.  */
2394 #include <stdarg.h>
2395 #include <stdio.h>
2396 #include <sys/types.h>
2397 #include <sys/stat.h>
2398 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2399 struct buf { int x; };
2400 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2401 static char *e (p, i)
2402      char **p;
2403      int i;
2404 {
2405   return p[i];
2406 }
2407 static char *f (char * (*g) (char **, int), char **p, ...)
2408 {
2409   char *s;
2410   va_list v;
2411   va_start (v,p);
2412   s = g (p, va_arg (v,int));
2413   va_end (v);
2414   return s;
2415 }
2416 int test (int i, double x);
2417 struct s1 {int (*f) (int a);};
2418 struct s2 {int (*f) (double a);};
2419 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2420 int argc;
2421 char **argv;
2422 int
2423 main ()
2424 {
2425 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2426   ;
2427   return 0;
2428 }
2429 _ACEOF
2430 # Don't try gcc -ansi; that turns off useful extensions and
2431 # breaks some systems' header files.
2432 # AIX                   -qlanglvl=ansi
2433 # Ultrix and OSF/1      -std1
2434 # HP-UX 10.20 and later -Ae
2435 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2436 # SVR4                  -Xc -D__EXTENSIONS__
2437 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2438 do
2439   CC="$ac_save_CC $ac_arg"
2440   rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442   (eval $ac_compile) 2>&5
2443   ac_status=$?
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); } &&
2446          { ac_try='test -s conftest.$ac_objext'
2447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448   (eval $ac_try) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }; }; then
2452   ac_cv_prog_cc_stdc=$ac_arg
2453 break
2454 else
2455   echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2457
2458 fi
2459 rm -f conftest.$ac_objext
2460 done
2461 rm -f conftest.$ac_ext conftest.$ac_objext
2462 CC=$ac_save_CC
2463
2464 fi
2465
2466 case "x$ac_cv_prog_cc_stdc" in
2467   x|xno)
2468     echo "$as_me:$LINENO: result: none needed" >&5
2469 echo "${ECHO_T}none needed" >&6 ;;
2470   *)
2471     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2472 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2473     CC="$CC $ac_cv_prog_cc_stdc" ;;
2474 esac
2475
2476 # Some people use a C++ compiler to compile C.  Since we use `exit',
2477 # in C++ we need to declare it.  In case someone uses the same compiler
2478 # for both compiling C and C++ we need to have the C++ compiler decide
2479 # the declaration of exit, since it's the most demanding environment.
2480 cat >conftest.$ac_ext <<_ACEOF
2481 #ifndef __cplusplus
2482   choke me
2483 #endif
2484 _ACEOF
2485 rm -f conftest.$ac_objext
2486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487   (eval $ac_compile) 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); } &&
2491          { ac_try='test -s conftest.$ac_objext'
2492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493   (eval $ac_try) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; }; then
2497   for ac_declaration in \
2498    '' \
2499    'extern "C" void std::exit (int) throw (); using std::exit;' \
2500    'extern "C" void std::exit (int); using std::exit;' \
2501    'extern "C" void exit (int) throw ();' \
2502    'extern "C" void exit (int);' \
2503    'void exit (int);'
2504 do
2505   cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2507 /* confdefs.h.  */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h.  */
2512 $ac_declaration
2513 #include <stdlib.h>
2514 int
2515 main ()
2516 {
2517 exit (42);
2518   ;
2519   return 0;
2520 }
2521 _ACEOF
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524   (eval $ac_compile) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); } &&
2528          { ac_try='test -s conftest.$ac_objext'
2529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530   (eval $ac_try) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; }; then
2534   :
2535 else
2536   echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 continue
2540 fi
2541 rm -f conftest.$ac_objext conftest.$ac_ext
2542   cat >conftest.$ac_ext <<_ACEOF
2543 #line $LINENO "configure"
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549 $ac_declaration
2550 int
2551 main ()
2552 {
2553 exit (42);
2554   ;
2555   return 0;
2556 }
2557 _ACEOF
2558 rm -f conftest.$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560   (eval $ac_compile) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); } &&
2564          { ac_try='test -s conftest.$ac_objext'
2565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566   (eval $ac_try) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; }; then
2570   break
2571 else
2572   echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575 fi
2576 rm -f conftest.$ac_objext conftest.$ac_ext
2577 done
2578 rm -f conftest*
2579 if test -n "$ac_declaration"; then
2580   echo '#ifdef __cplusplus' >>confdefs.h
2581   echo $ac_declaration      >>confdefs.h
2582   echo '#endif'             >>confdefs.h
2583 fi
2584
2585 else
2586   echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2588
2589 fi
2590 rm -f conftest.$ac_objext conftest.$ac_ext
2591 ac_ext=c
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596
2597 if test "x$CC" != xcc; then
2598   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2599 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2600 else
2601   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2602 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2603 fi
2604 set dummy $CC; ac_cc=`echo $2 |
2605                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2606 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2607   echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609   cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2611 /* confdefs.h.  */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h.  */
2616
2617 int
2618 main ()
2619 {
2620
2621   ;
2622   return 0;
2623 }
2624 _ACEOF
2625 # Make sure it works both with $CC and with simple cc.
2626 # We do the test twice because some compilers refuse to overwrite an
2627 # existing .o file with -o, though they will create one.
2628 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2629 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630   (eval $ac_try) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); } &&
2634    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); };
2639 then
2640   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2641   if test "x$CC" != xcc; then
2642     # Test first that cc exists at all.
2643     if { ac_try='cc -c conftest.$ac_ext >&5'
2644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645   (eval $ac_try) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; }; then
2649       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2650       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651   (eval $ac_try) 2>&5
2652   ac_status=$?
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); } &&
2655          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656   (eval $ac_try) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); };
2660       then
2661         # cc works too.
2662         :
2663       else
2664         # cc exists but doesn't like -o.
2665         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2666       fi
2667     fi
2668   fi
2669 else
2670   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2671 fi
2672 rm -f conftest*
2673
2674 fi
2675 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2676   echo "$as_me:$LINENO: result: yes" >&5
2677 echo "${ECHO_T}yes" >&6
2678 else
2679   echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6
2681
2682 cat >>confdefs.h <<\_ACEOF
2683 #define NO_MINUS_C_MINUS_O 1
2684 _ACEOF
2685
2686 fi
2687
2688 # autoconf is lame and doesn't give us any substitution variable for this.
2689 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2690   NO_MINUS_C_MINUS_O=yes
2691 else
2692   OUTPUT_OPTION='-o $@'
2693 fi
2694
2695
2696
2697 # -------------------------
2698 # Check C compiler features
2699 # -------------------------
2700
2701
2702 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2703 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2704 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707   save_CFLAGS="$CFLAGS"
2708 CFLAGS="-Wno-long-long"
2709 cat >conftest.$ac_ext <<_ACEOF
2710 #line $LINENO "configure"
2711 /* confdefs.h.  */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h.  */
2716
2717 int
2718 main ()
2719 {
2720
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727   (eval $ac_compile) 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); } &&
2731          { ac_try='test -s conftest.$ac_objext'
2732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733   (eval $ac_try) 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; }; then
2737   ac_cv_prog_cc_no_long_long=yes
2738 else
2739   echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742 ac_cv_prog_cc_no_long_long=no
2743 fi
2744 rm -f conftest.$ac_objext conftest.$ac_ext
2745 CFLAGS="$save_CFLAGS"
2746 fi
2747 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2748 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2749
2750 ac_ext=c
2751 ac_cpp='$CPP $CPPFLAGS'
2752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2756 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2757 # On Suns, sometimes $CPP names a directory.
2758 if test -n "$CPP" && test -d "$CPP"; then
2759   CPP=
2760 fi
2761 if test -z "$CPP"; then
2762   if test "${ac_cv_prog_CPP+set}" = set; then
2763   echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765       # Double quotes because CPP needs to be expanded
2766     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2767     do
2768       ac_preproc_ok=false
2769 for ac_c_preproc_warn_flag in '' yes
2770 do
2771   # Use a header file that comes with gcc, so configuring glibc
2772   # with a fresh cross-compiler works.
2773   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2774   # <limits.h> exists even on freestanding compilers.
2775   # On the NeXT, cc -E runs the code through the compiler's parser,
2776   # not just through cpp. "Syntax error" is here to catch this case.
2777   cat >conftest.$ac_ext <<_ACEOF
2778 #line $LINENO "configure"
2779 /* confdefs.h.  */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h.  */
2784 #ifdef __STDC__
2785 # include <limits.h>
2786 #else
2787 # include <assert.h>
2788 #endif
2789                      Syntax error
2790 _ACEOF
2791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2792   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2793   ac_status=$?
2794   grep -v '^ *+' conftest.er1 >conftest.err
2795   rm -f conftest.er1
2796   cat conftest.err >&5
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); } >/dev/null; then
2799   if test -s conftest.err; then
2800     ac_cpp_err=$ac_c_preproc_warn_flag
2801   else
2802     ac_cpp_err=
2803   fi
2804 else
2805   ac_cpp_err=yes
2806 fi
2807 if test -z "$ac_cpp_err"; then
2808   :
2809 else
2810   echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2812
2813   # Broken: fails on valid input.
2814 continue
2815 fi
2816 rm -f conftest.err conftest.$ac_ext
2817
2818   # OK, works on sane cases.  Now check whether non-existent headers
2819   # can be detected and how.
2820   cat >conftest.$ac_ext <<_ACEOF
2821 #line $LINENO "configure"
2822 /* confdefs.h.  */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h.  */
2827 #include <ac_nonexistent.h>
2828 _ACEOF
2829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2830   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2831   ac_status=$?
2832   grep -v '^ *+' conftest.er1 >conftest.err
2833   rm -f conftest.er1
2834   cat conftest.err >&5
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); } >/dev/null; then
2837   if test -s conftest.err; then
2838     ac_cpp_err=$ac_c_preproc_warn_flag
2839   else
2840     ac_cpp_err=
2841   fi
2842 else
2843   ac_cpp_err=yes
2844 fi
2845 if test -z "$ac_cpp_err"; then
2846   # Broken: success on invalid input.
2847 continue
2848 else
2849   echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852   # Passes both tests.
2853 ac_preproc_ok=:
2854 break
2855 fi
2856 rm -f conftest.err conftest.$ac_ext
2857
2858 done
2859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2860 rm -f conftest.err conftest.$ac_ext
2861 if $ac_preproc_ok; then
2862   break
2863 fi
2864
2865     done
2866     ac_cv_prog_CPP=$CPP
2867
2868 fi
2869   CPP=$ac_cv_prog_CPP
2870 else
2871   ac_cv_prog_CPP=$CPP
2872 fi
2873 echo "$as_me:$LINENO: result: $CPP" >&5
2874 echo "${ECHO_T}$CPP" >&6
2875 ac_preproc_ok=false
2876 for ac_c_preproc_warn_flag in '' yes
2877 do
2878   # Use a header file that comes with gcc, so configuring glibc
2879   # with a fresh cross-compiler works.
2880   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2881   # <limits.h> exists even on freestanding compilers.
2882   # On the NeXT, cc -E runs the code through the compiler's parser,
2883   # not just through cpp. "Syntax error" is here to catch this case.
2884   cat >conftest.$ac_ext <<_ACEOF
2885 #line $LINENO "configure"
2886 /* confdefs.h.  */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h.  */
2891 #ifdef __STDC__
2892 # include <limits.h>
2893 #else
2894 # include <assert.h>
2895 #endif
2896                      Syntax error
2897 _ACEOF
2898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2900   ac_status=$?
2901   grep -v '^ *+' conftest.er1 >conftest.err
2902   rm -f conftest.er1
2903   cat conftest.err >&5
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); } >/dev/null; then
2906   if test -s conftest.err; then
2907     ac_cpp_err=$ac_c_preproc_warn_flag
2908   else
2909     ac_cpp_err=
2910   fi
2911 else
2912   ac_cpp_err=yes
2913 fi
2914 if test -z "$ac_cpp_err"; then
2915   :
2916 else
2917   echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920   # Broken: fails on valid input.
2921 continue
2922 fi
2923 rm -f conftest.err conftest.$ac_ext
2924
2925   # OK, works on sane cases.  Now check whether non-existent headers
2926   # can be detected and how.
2927   cat >conftest.$ac_ext <<_ACEOF
2928 #line $LINENO "configure"
2929 /* confdefs.h.  */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h.  */
2934 #include <ac_nonexistent.h>
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938   ac_status=$?
2939   grep -v '^ *+' conftest.er1 >conftest.err
2940   rm -f conftest.er1
2941   cat conftest.err >&5
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); } >/dev/null; then
2944   if test -s conftest.err; then
2945     ac_cpp_err=$ac_c_preproc_warn_flag
2946   else
2947     ac_cpp_err=
2948   fi
2949 else
2950   ac_cpp_err=yes
2951 fi
2952 if test -z "$ac_cpp_err"; then
2953   # Broken: success on invalid input.
2954 continue
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959   # Passes both tests.
2960 ac_preproc_ok=:
2961 break
2962 fi
2963 rm -f conftest.err conftest.$ac_ext
2964
2965 done
2966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2967 rm -f conftest.err conftest.$ac_ext
2968 if $ac_preproc_ok; then
2969   :
2970 else
2971   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2972 See \`config.log' for more details." >&5
2973 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2974 See \`config.log' for more details." >&2;}
2975    { (exit 1); exit 1; }; }
2976 fi
2977
2978 ac_ext=c
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983
2984 echo "$as_me:$LINENO: checking for inline" >&5
2985 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2986 if test "${ac_cv_c_inline+set}" = set; then
2987   echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989   ac_cv_c_inline=no
2990 for ac_kw in inline __inline__ __inline; do
2991   cat >conftest.$ac_ext <<_ACEOF
2992 #line $LINENO "configure"
2993 /* confdefs.h.  */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h.  */
2998 #ifndef __cplusplus
2999 typedef int foo_t;
3000 static $ac_kw foo_t static_foo () {return 0; }
3001 $ac_kw foo_t foo () {return 0; }
3002 #endif
3003
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007   (eval $ac_compile) 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); } &&
3011          { ac_try='test -s conftest.$ac_objext'
3012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013   (eval $ac_try) 2>&5
3014   ac_status=$?
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); }; }; then
3017   ac_cv_c_inline=$ac_kw; break
3018 else
3019   echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 fi
3023 rm -f conftest.$ac_objext conftest.$ac_ext
3024 done
3025
3026 fi
3027 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3028 echo "${ECHO_T}$ac_cv_c_inline" >&6
3029 case $ac_cv_c_inline in
3030   inline | yes) ;;
3031   no)
3032 cat >>confdefs.h <<\_ACEOF
3033 #define inline
3034 _ACEOF
3035  ;;
3036   *)  cat >>confdefs.h <<_ACEOF
3037 #define inline $ac_cv_c_inline
3038 _ACEOF
3039  ;;
3040 esac
3041
3042
3043 echo "$as_me:$LINENO: checking for long long int" >&5
3044 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3045 if test "${ac_cv_c_long_long+set}" = set; then
3046   echo $ECHO_N "(cached) $ECHO_C" >&6
3047 else
3048   cat >conftest.$ac_ext <<_ACEOF
3049 #line $LINENO "configure"
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055
3056 int
3057 main ()
3058 {
3059 long long int i;
3060   ;
3061   return 0;
3062 }
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066   (eval $ac_compile) 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } &&
3070          { ac_try='test -s conftest.$ac_objext'
3071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072   (eval $ac_try) 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }; }; then
3076   ac_cv_c_long_long=yes
3077 else
3078   echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 ac_cv_c_long_long=no
3082 fi
3083 rm -f conftest.$ac_objext conftest.$ac_ext
3084 fi
3085 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3086 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3087   if test $ac_cv_c_long_long = yes; then
3088
3089 cat >>confdefs.h <<\_ACEOF
3090 #define HAVE_LONG_LONG 1
3091 _ACEOF
3092
3093   fi
3094 echo "$as_me:$LINENO: checking for __int64" >&5
3095 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3096 if test "${ac_cv_c___int64+set}" = set; then
3097   echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099   cat >conftest.$ac_ext <<_ACEOF
3100 #line $LINENO "configure"
3101 /* confdefs.h.  */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h.  */
3106
3107 int
3108 main ()
3109 {
3110 __int64 i;
3111   ;
3112   return 0;
3113 }
3114 _ACEOF
3115 rm -f conftest.$ac_objext
3116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3117   (eval $ac_compile) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); } &&
3121          { ac_try='test -s conftest.$ac_objext'
3122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123   (eval $ac_try) 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; }; then
3127   ac_cv_c___int64=yes
3128 else
3129   echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 ac_cv_c___int64=no
3133 fi
3134 rm -f conftest.$ac_objext conftest.$ac_ext
3135 fi
3136 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3137 echo "${ECHO_T}$ac_cv_c___int64" >&6
3138   if test $ac_cv_c___int64 = yes; then
3139
3140 cat >>confdefs.h <<\_ACEOF
3141 #define HAVE___INT64 1
3142 _ACEOF
3143
3144   fi
3145
3146 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3147 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3148 if test "${gcc_cv_c__bool+set}" = set; then
3149   echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151   cat >conftest.$ac_ext <<_ACEOF
3152 #line $LINENO "configure"
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158
3159 int
3160 main ()
3161 {
3162 _Bool foo;
3163   ;
3164   return 0;
3165 }
3166 _ACEOF
3167 rm -f conftest.$ac_objext
3168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169   (eval $ac_compile) 2>&5
3170   ac_status=$?
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } &&
3173          { ac_try='test -s conftest.$ac_objext'
3174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175   (eval $ac_try) 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; }; then
3179   gcc_cv_c__bool=yes
3180 else
3181   echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 gcc_cv_c__bool=no
3185 fi
3186 rm -f conftest.$ac_objext conftest.$ac_ext
3187
3188 fi
3189 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3190 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3191 if test $gcc_cv_c__bool = yes; then
3192
3193 cat >>confdefs.h <<\_ACEOF
3194 #define HAVE__BOOL 1
3195 _ACEOF
3196
3197 fi
3198
3199
3200 # sizeof(char) is 1 by definition.
3201 echo "$as_me:$LINENO: checking size of void *" >&5
3202 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3203 if test "${ac_cv_sizeof_void_p+set}" = set; then
3204   echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3207   cat >conftest.$ac_ext <<_ACEOF
3208 #line $LINENO "configure"
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214 #include "confdefs.h"
3215 #include <sys/types.h>
3216
3217
3218 int
3219 main ()
3220 {
3221 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3222   ;
3223   return 0;
3224 }
3225 _ACEOF
3226 rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228   (eval $ac_compile) 2>&5
3229   ac_status=$?
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } &&
3232          { ac_try='test -s conftest.$ac_objext'
3233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234   (eval $ac_try) 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; }; then
3238   ac_cv_sizeof_void_p=$ac_size
3239 else
3240   echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243 fi
3244 rm -f conftest.$ac_objext conftest.$ac_ext
3245   if test x$ac_cv_sizeof_void_p != x ; then break; fi
3246 done
3247
3248 fi
3249
3250 if test x$ac_cv_sizeof_void_p = x ; then
3251   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3252 echo "$as_me: error: cannot determine a size for void *" >&2;}
3253    { (exit 1); exit 1; }; }
3254 fi
3255 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3256 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3257
3258 cat >>confdefs.h <<_ACEOF
3259 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3260 _ACEOF
3261
3262
3263 echo "$as_me:$LINENO: checking size of short" >&5
3264 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3265 if test "${ac_cv_sizeof_short+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3269   cat >conftest.$ac_ext <<_ACEOF
3270 #line $LINENO "configure"
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276 #include "confdefs.h"
3277 #include <sys/types.h>
3278
3279
3280 int
3281 main ()
3282 {
3283 switch (0) case 0: case (sizeof (short) == $ac_size):;
3284   ;
3285   return 0;
3286 }
3287 _ACEOF
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290   (eval $ac_compile) 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); } &&
3294          { ac_try='test -s conftest.$ac_objext'
3295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296   (eval $ac_try) 2>&5
3297   ac_status=$?
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); }; }; then
3300   ac_cv_sizeof_short=$ac_size
3301 else
3302   echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 fi
3306 rm -f conftest.$ac_objext conftest.$ac_ext
3307   if test x$ac_cv_sizeof_short != x ; then break; fi
3308 done
3309
3310 fi
3311
3312 if test x$ac_cv_sizeof_short = x ; then
3313   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3314 echo "$as_me: error: cannot determine a size for short" >&2;}
3315    { (exit 1); exit 1; }; }
3316 fi
3317 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3318 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3319
3320 cat >>confdefs.h <<_ACEOF
3321 #define SIZEOF_SHORT $ac_cv_sizeof_short
3322 _ACEOF
3323
3324
3325 echo "$as_me:$LINENO: checking size of int" >&5
3326 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3327 if test "${ac_cv_sizeof_int+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3331   cat >conftest.$ac_ext <<_ACEOF
3332 #line $LINENO "configure"
3333 /* confdefs.h.  */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h.  */
3338 #include "confdefs.h"
3339 #include <sys/types.h>
3340
3341
3342 int
3343 main ()
3344 {
3345 switch (0) case 0: case (sizeof (int) == $ac_size):;
3346   ;
3347   return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.$ac_objext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3352   (eval $ac_compile) 2>&5
3353   ac_status=$?
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); } &&
3356          { ac_try='test -s conftest.$ac_objext'
3357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358   (eval $ac_try) 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; }; then
3362   ac_cv_sizeof_int=$ac_size
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 fi
3368 rm -f conftest.$ac_objext conftest.$ac_ext
3369   if test x$ac_cv_sizeof_int != x ; then break; fi
3370 done
3371
3372 fi
3373
3374 if test x$ac_cv_sizeof_int = x ; then
3375   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3376 echo "$as_me: error: cannot determine a size for int" >&2;}
3377    { (exit 1); exit 1; }; }
3378 fi
3379 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3380 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define SIZEOF_INT $ac_cv_sizeof_int
3384 _ACEOF
3385
3386
3387 echo "$as_me:$LINENO: checking size of long" >&5
3388 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3389 if test "${ac_cv_sizeof_long+set}" = set; then
3390   echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3393   cat >conftest.$ac_ext <<_ACEOF
3394 #line $LINENO "configure"
3395 /* confdefs.h.  */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h.  */
3400 #include "confdefs.h"
3401 #include <sys/types.h>
3402
3403
3404 int
3405 main ()
3406 {
3407 switch (0) case 0: case (sizeof (long) == $ac_size):;
3408   ;
3409   return 0;
3410 }
3411 _ACEOF
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414   (eval $ac_compile) 2>&5
3415   ac_status=$?
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } &&
3418          { ac_try='test -s conftest.$ac_objext'
3419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420   (eval $ac_try) 2>&5
3421   ac_status=$?
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); }; }; then
3424   ac_cv_sizeof_long=$ac_size
3425 else
3426   echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429 fi
3430 rm -f conftest.$ac_objext conftest.$ac_ext
3431   if test x$ac_cv_sizeof_long != x ; then break; fi
3432 done
3433
3434 fi
3435
3436 if test x$ac_cv_sizeof_long = x ; then
3437   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3438 echo "$as_me: error: cannot determine a size for long" >&2;}
3439    { (exit 1); exit 1; }; }
3440 fi
3441 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3442 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3443
3444 cat >>confdefs.h <<_ACEOF
3445 #define SIZEOF_LONG $ac_cv_sizeof_long
3446 _ACEOF
3447
3448
3449 if test $ac_cv_c_long_long = yes; then
3450   echo "$as_me:$LINENO: checking size of long long" >&5
3451 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3452 if test "${ac_cv_sizeof_long_long+set}" = set; then
3453   echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3456   cat >conftest.$ac_ext <<_ACEOF
3457 #line $LINENO "configure"
3458 /* confdefs.h.  */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h.  */
3463 #include "confdefs.h"
3464 #include <sys/types.h>
3465
3466
3467 int
3468 main ()
3469 {
3470 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3471   ;
3472   return 0;
3473 }
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477   (eval $ac_compile) 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); } &&
3481          { ac_try='test -s conftest.$ac_objext'
3482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483   (eval $ac_try) 2>&5
3484   ac_status=$?
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); }; }; then
3487   ac_cv_sizeof_long_long=$ac_size
3488 else
3489   echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492 fi
3493 rm -f conftest.$ac_objext conftest.$ac_ext
3494   if test x$ac_cv_sizeof_long_long != x ; then break; fi
3495 done
3496
3497 fi
3498
3499 if test x$ac_cv_sizeof_long_long = x ; then
3500   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3501 echo "$as_me: error: cannot determine a size for long long" >&2;}
3502    { (exit 1); exit 1; }; }
3503 fi
3504 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3505 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3506
3507 cat >>confdefs.h <<_ACEOF
3508 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3509 _ACEOF
3510
3511
3512 fi
3513 if test $ac_cv_c___int64 = yes; then
3514   echo "$as_me:$LINENO: checking size of __int64" >&5
3515 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3516 if test "${ac_cv_sizeof___int64+set}" = set; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3520   cat >conftest.$ac_ext <<_ACEOF
3521 #line $LINENO "configure"
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527 #include "confdefs.h"
3528 #include <sys/types.h>
3529
3530
3531 int
3532 main ()
3533 {
3534 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541   (eval $ac_compile) 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } &&
3545          { ac_try='test -s conftest.$ac_objext'
3546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547   (eval $ac_try) 2>&5
3548   ac_status=$?
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); }; }; then
3551   ac_cv_sizeof___int64=$ac_size
3552 else
3553   echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 fi
3557 rm -f conftest.$ac_objext conftest.$ac_ext
3558   if test x$ac_cv_sizeof___int64 != x ; then break; fi
3559 done
3560
3561 fi
3562
3563 if test x$ac_cv_sizeof___int64 = x ; then
3564   { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3565 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3566    { (exit 1); exit 1; }; }
3567 fi
3568 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3569 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3570
3571 cat >>confdefs.h <<_ACEOF
3572 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3573 _ACEOF
3574
3575
3576 fi
3577
3578 # -----------------
3579 # Find Ada compiler
3580 # -----------------
3581
3582 # See if GNAT has been installed
3583
3584
3585
3586 if test -n "$ac_tool_prefix"; then
3587   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3588 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3589 echo "$as_me:$LINENO: checking for $ac_word" >&5
3590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3591 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   if test -n "$GNATBIND"; then
3595   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600   IFS=$as_save_IFS
3601   test -z "$as_dir" && as_dir=.
3602   for ac_exec_ext in '' $ac_executable_extensions; do
3603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3604     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3606     break 2
3607   fi
3608 done
3609 done
3610
3611 fi
3612 fi
3613 GNATBIND=$ac_cv_prog_GNATBIND
3614 if test -n "$GNATBIND"; then
3615   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3616 echo "${ECHO_T}$GNATBIND" >&6
3617 else
3618   echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6
3620 fi
3621
3622 fi
3623 if test -z "$ac_cv_prog_GNATBIND"; then
3624   ac_ct_GNATBIND=$GNATBIND
3625   # Extract the first word of "gnatbind", so it can be a program name with args.
3626 set dummy gnatbind; ac_word=$2
3627 echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3629 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   if test -n "$ac_ct_GNATBIND"; then
3633   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638   IFS=$as_save_IFS
3639   test -z "$as_dir" && as_dir=.
3640   for ac_exec_ext in '' $ac_executable_extensions; do
3641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644     break 2
3645   fi
3646 done
3647 done
3648
3649   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3650 fi
3651 fi
3652 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3653 if test -n "$ac_ct_GNATBIND"; then
3654   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3655 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3656 else
3657   echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6
3659 fi
3660
3661   GNATBIND=$ac_ct_GNATBIND
3662 else
3663   GNATBIND="$ac_cv_prog_GNATBIND"
3664 fi
3665
3666 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3667 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3668 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   cat >conftest.adb <<EOF
3672 procedure conftest is begin null; end conftest;
3673 EOF
3674 gcc_cv_cc_supports_ada=no
3675 # There is a bug in old released versions of GCC which causes the
3676 # driver to exit successfully when the appropriate language module
3677 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
3678 # Therefore we must check for the error message as well as an
3679 # unsuccessful exit.
3680 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3681 if test x"$errors" = x; then
3682   gcc_cv_cc_supports_ada=yes
3683   break
3684 fi
3685 rm -f conftest.*
3686 fi
3687 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3688 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3689
3690 if test x$GNATBIND != xno && test x$gcc_cv_supports_ada != xno; then
3691   have_gnat=yes
3692 else
3693   have_gnat=no
3694 fi
3695
3696
3697 # ---------------------
3698 # Warnings and checking
3699 # ---------------------
3700
3701 strict1_warn=
3702 if test $ac_cv_prog_cc_no_long_long = yes ; then
3703   strict1_warn="-pedantic -Wno-long-long"
3704 fi
3705
3706
3707 # If the native compiler is GCC, we can enable warnings even in stage1.
3708 # That's useful for people building cross-compilers, or just running a
3709 # quick `make'.
3710 warn_cflags=
3711 if test "x$GCC" = "xyes"; then
3712   warn_cflags='$(GCC_WARN_CFLAGS)'
3713 fi
3714
3715
3716 # Enable -Werror in bootstrap stage2 and later.
3717 # Change the default to "no" on release branches.
3718 # Check whether --enable-werror or --disable-werror was given.
3719 if test "${enable_werror+set}" = set; then
3720   enableval="$enable_werror"
3721
3722 else
3723   enable_werror=yes
3724 fi;
3725 if test x$enable_werror = xyes ; then
3726   WERROR=-Werror
3727 fi
3728
3729
3730 # Enable expensive internal checks
3731 # Check whether --enable-checking or --disable-checking was given.
3732 if test "${enable_checking+set}" = set; then
3733   enableval="$enable_checking"
3734   ac_checking=
3735 ac_tree_checking=
3736 ac_rtl_checking=
3737 ac_rtlflag_checking=
3738 ac_gc_checking=
3739 ac_gc_always_collect=
3740 ac_fold_checking=
3741 case "${enableval}" in
3742 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3743         ac_rtlflag_checking=1 ;;
3744 no)     ;;
3745 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3746         set fnord $enableval; shift
3747         IFS="$ac_save_IFS"
3748         for check
3749         do
3750                 case $check in
3751                 misc)   ac_checking=1 ;;
3752                 tree)   ac_tree_checking=1 ;;
3753                 rtlflag)        ac_rtlflag_checking=1 ;;
3754                 rtl)    ac_rtl_checking=1 ;;
3755                 gc)     ac_gc_checking=1 ;;
3756                 gcac)   ac_gc_always_collect=1 ;;
3757                 fold)   ac_fold_checking=1 ;;
3758                 valgrind)       ac_checking_valgrind=1 ;;
3759                 *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3760 echo "$as_me: error: unknown check category $check" >&2;}
3761    { (exit 1); exit 1; }; } ;;
3762                 esac
3763         done
3764         ;;
3765 esac
3766
3767 else
3768   # Enable some checks by default for development versions of GCC
3769 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3770 fi;
3771 nocommon_flag=""
3772 if test x$ac_checking != x ; then
3773
3774 cat >>confdefs.h <<\_ACEOF
3775 #define ENABLE_CHECKING 1
3776 _ACEOF
3777
3778   nocommon_flag=-fno-common
3779 fi
3780
3781 if test x$ac_tree_checking != x ; then
3782
3783 cat >>confdefs.h <<\_ACEOF
3784 #define ENABLE_TREE_CHECKING 1
3785 _ACEOF
3786
3787 fi
3788 if test x$ac_rtl_checking != x ; then
3789
3790 cat >>confdefs.h <<\_ACEOF
3791 #define ENABLE_RTL_CHECKING 1
3792 _ACEOF
3793
3794 fi
3795 if test x$ac_rtlflag_checking != x ; then
3796
3797 cat >>confdefs.h <<\_ACEOF
3798 #define ENABLE_RTL_FLAG_CHECKING 1
3799 _ACEOF
3800
3801 fi
3802 if test x$ac_gc_checking != x ; then
3803
3804 cat >>confdefs.h <<\_ACEOF
3805 #define ENABLE_GC_CHECKING 1
3806 _ACEOF
3807
3808 fi
3809 if test x$ac_gc_always_collect != x ; then
3810
3811 cat >>confdefs.h <<\_ACEOF
3812 #define ENABLE_GC_ALWAYS_COLLECT 1
3813 _ACEOF
3814
3815 fi
3816 if test x$ac_fold_checking != x ; then
3817
3818 cat >>confdefs.h <<\_ACEOF
3819 #define ENABLE_FOLD_CHECKING 1
3820 _ACEOF
3821
3822 fi
3823 valgrind_path_defines=
3824 valgrind_command=
3825
3826
3827 echo "$as_me:$LINENO: checking for egrep" >&5
3828 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3829 if test "${ac_cv_prog_egrep+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3833     then ac_cv_prog_egrep='grep -E'
3834     else ac_cv_prog_egrep='egrep'
3835     fi
3836 fi
3837 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3838 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3839  EGREP=$ac_cv_prog_egrep
3840
3841
3842 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3843 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3844 if test "${ac_cv_header_stdc+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   cat >conftest.$ac_ext <<_ACEOF
3848 #line $LINENO "configure"
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854 #include <stdlib.h>
3855 #include <stdarg.h>
3856 #include <string.h>
3857 #include <float.h>
3858
3859 int
3860 main ()
3861 {
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869   (eval $ac_compile) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); } &&
3873          { ac_try='test -s conftest.$ac_objext'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   ac_cv_header_stdc=yes
3880 else
3881   echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 ac_cv_header_stdc=no
3885 fi
3886 rm -f conftest.$ac_objext conftest.$ac_ext
3887
3888 if test $ac_cv_header_stdc = yes; then
3889   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3890   cat >conftest.$ac_ext <<_ACEOF
3891 #line $LINENO "configure"
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897 #include <string.h>
3898
3899 _ACEOF
3900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3901   $EGREP "memchr" >/dev/null 2>&1; then
3902   :
3903 else
3904   ac_cv_header_stdc=no
3905 fi
3906 rm -f conftest*
3907
3908 fi
3909
3910 if test $ac_cv_header_stdc = yes; then
3911   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3912   cat >conftest.$ac_ext <<_ACEOF
3913 #line $LINENO "configure"
3914 /* confdefs.h.  */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h.  */
3919 #include <stdlib.h>
3920
3921 _ACEOF
3922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3923   $EGREP "free" >/dev/null 2>&1; then
3924   :
3925 else
3926   ac_cv_header_stdc=no
3927 fi
3928 rm -f conftest*
3929
3930 fi
3931
3932 if test $ac_cv_header_stdc = yes; then
3933   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3934   if test "$cross_compiling" = yes; then
3935   :
3936 else
3937   cat >conftest.$ac_ext <<_ACEOF
3938 #line $LINENO "configure"
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944 #include <ctype.h>
3945 #if ((' ' & 0x0FF) == 0x020)
3946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3948 #else
3949 # define ISLOWER(c) \
3950                    (('a' <= (c) && (c) <= 'i') \
3951                      || ('j' <= (c) && (c) <= 'r') \
3952                      || ('s' <= (c) && (c) <= 'z'))
3953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3954 #endif
3955
3956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3957 int
3958 main ()
3959 {
3960   int i;
3961   for (i = 0; i < 256; i++)
3962     if (XOR (islower (i), ISLOWER (i))
3963         || toupper (i) != TOUPPER (i))
3964       exit(2);
3965   exit (0);
3966 }
3967 _ACEOF
3968 rm -f conftest$ac_exeext
3969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3970   (eval $ac_link) 2>&5
3971   ac_status=$?
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975   (eval $ac_try) 2>&5
3976   ac_status=$?
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); }; }; then
3979   :
3980 else
3981   echo "$as_me: program exited with status $ac_status" >&5
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985 ( exit $ac_status )
3986 ac_cv_header_stdc=no
3987 fi
3988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989 fi
3990 fi
3991 fi
3992 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3993 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3994 if test $ac_cv_header_stdc = yes; then
3995
3996 cat >>confdefs.h <<\_ACEOF
3997 #define STDC_HEADERS 1
3998 _ACEOF
3999
4000 fi
4001
4002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4013                   inttypes.h stdint.h unistd.h
4014 do
4015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016 echo "$as_me:$LINENO: checking for $ac_header" >&5
4017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4019   echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021   cat >conftest.$ac_ext <<_ACEOF
4022 #line $LINENO "configure"
4023 /* confdefs.h.  */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h.  */
4028 $ac_includes_default
4029
4030 #include <$ac_header>
4031 _ACEOF
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034   (eval $ac_compile) 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); } &&
4038          { ac_try='test -s conftest.$ac_objext'
4039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040   (eval $ac_try) 2>&5
4041   ac_status=$?
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); }; }; then
4044   eval "$as_ac_Header=yes"
4045 else
4046   echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 eval "$as_ac_Header=no"
4050 fi
4051 rm -f conftest.$ac_objext conftest.$ac_ext
4052 fi
4053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4056   cat >>confdefs.h <<_ACEOF
4057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4058 _ACEOF
4059
4060 fi
4061
4062 done
4063
4064
4065 if test "${ac_cv_header_valgrind_h+set}" = set; then
4066   echo "$as_me:$LINENO: checking for valgrind.h" >&5
4067 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4068 if test "${ac_cv_header_valgrind_h+set}" = set; then
4069   echo $ECHO_N "(cached) $ECHO_C" >&6
4070 fi
4071 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4072 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4073 else
4074   # Is the header compilable?
4075 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4076 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4077 cat >conftest.$ac_ext <<_ACEOF
4078 #line $LINENO "configure"
4079 /* confdefs.h.  */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h.  */
4084 $ac_includes_default
4085 #include <valgrind.h>
4086 _ACEOF
4087 rm -f conftest.$ac_objext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089   (eval $ac_compile) 2>&5
4090   ac_status=$?
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } &&
4093          { ac_try='test -s conftest.$ac_objext'
4094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095   (eval $ac_try) 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; }; then
4099   ac_header_compiler=yes
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 ac_header_compiler=no
4105 fi
4106 rm -f conftest.$ac_objext conftest.$ac_ext
4107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4108 echo "${ECHO_T}$ac_header_compiler" >&6
4109
4110 # Is the header present?
4111 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4112 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4113 cat >conftest.$ac_ext <<_ACEOF
4114 #line $LINENO "configure"
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 #include <valgrind.h>
4121 _ACEOF
4122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4123   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4124   ac_status=$?
4125   grep -v '^ *+' conftest.er1 >conftest.err
4126   rm -f conftest.er1
4127   cat conftest.err >&5
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); } >/dev/null; then
4130   if test -s conftest.err; then
4131     ac_cpp_err=$ac_c_preproc_warn_flag
4132   else
4133     ac_cpp_err=
4134   fi
4135 else
4136   ac_cpp_err=yes
4137 fi
4138 if test -z "$ac_cpp_err"; then
4139   ac_header_preproc=yes
4140 else
4141   echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4143
4144   ac_header_preproc=no
4145 fi
4146 rm -f conftest.err conftest.$ac_ext
4147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4148 echo "${ECHO_T}$ac_header_preproc" >&6
4149
4150 # So?  What about this header?
4151 case $ac_header_compiler:$ac_header_preproc in
4152   yes:no )
4153     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4154 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4155     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4156 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4157     (
4158       cat <<\_ASBOX
4159 ## ------------------------------------ ##
4160 ## Report this to bug-autoconf@gnu.org. ##
4161 ## ------------------------------------ ##
4162 _ASBOX
4163     ) |
4164       sed "s/^/$as_me: WARNING:     /" >&2
4165     ;;
4166   no:yes )
4167     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4168 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4169     { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4170 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4171     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4172 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4173     (
4174       cat <<\_ASBOX
4175 ## ------------------------------------ ##
4176 ## Report this to bug-autoconf@gnu.org. ##
4177 ## ------------------------------------ ##
4178 _ASBOX
4179     ) |
4180       sed "s/^/$as_me: WARNING:     /" >&2
4181     ;;
4182 esac
4183 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4184 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4185 if test "${ac_cv_header_valgrind_h+set}" = set; then
4186   echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188   ac_cv_header_valgrind_h=$ac_header_preproc
4189 fi
4190 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4191 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4192
4193 fi
4194 if test $ac_cv_header_valgrind_h = yes; then
4195   have_valgrind_h=yes
4196 else
4197   have_valgrind_h=no
4198 fi
4199
4200
4201
4202 if test x$ac_checking_valgrind != x ; then
4203   # It is certainly possible that there's valgrind but no valgrind.h.
4204   # GCC relies on making annotations so we must have both.
4205   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4206 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4207   cat >conftest.$ac_ext <<_ACEOF
4208 #line $LINENO "configure"
4209 /* confdefs.h.  */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h.  */
4214 #include <valgrind/memcheck.h>
4215 #ifndef VALGRIND_DISCARD
4216 #error VALGRIND_DISCARD not defined
4217 #endif
4218 _ACEOF
4219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4220   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4221   ac_status=$?
4222   grep -v '^ *+' conftest.er1 >conftest.err
4223   rm -f conftest.er1
4224   cat conftest.err >&5
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } >/dev/null; then
4227   if test -s conftest.err; then
4228     ac_cpp_err=$ac_c_preproc_warn_flag
4229   else
4230     ac_cpp_err=
4231   fi
4232 else
4233   ac_cpp_err=yes
4234 fi
4235 if test -z "$ac_cpp_err"; then
4236   gcc_cv_header_valgrind_memcheck_h=yes
4237 else
4238   echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241   gcc_cv_header_valgrind_memcheck_h=no
4242 fi
4243 rm -f conftest.err conftest.$ac_ext
4244   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4245 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4246   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4247 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4248   cat >conftest.$ac_ext <<_ACEOF
4249 #line $LINENO "configure"
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255 #include <memcheck.h>
4256 #ifndef VALGRIND_DISCARD
4257 #error VALGRIND_DISCARD not defined
4258 #endif
4259 _ACEOF
4260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4261   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4262   ac_status=$?
4263   grep -v '^ *+' conftest.er1 >conftest.err
4264   rm -f conftest.er1
4265   cat conftest.err >&5
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); } >/dev/null; then
4268   if test -s conftest.err; then
4269     ac_cpp_err=$ac_c_preproc_warn_flag
4270   else
4271     ac_cpp_err=
4272   fi
4273 else
4274   ac_cpp_err=yes
4275 fi
4276 if test -z "$ac_cpp_err"; then
4277   gcc_cv_header_memcheck_h=yes
4278 else
4279   echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282   gcc_cv_header_memcheck_h=no
4283 fi
4284 rm -f conftest.err conftest.$ac_ext
4285   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4286 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4287
4288 # Prepare PATH_SEPARATOR.
4289 # The user is always right.
4290 if test "${PATH_SEPARATOR+set}" != set; then
4291   echo "#! /bin/sh" >conf$$.sh
4292   echo  "exit 0"   >>conf$$.sh
4293   chmod +x conf$$.sh
4294   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4295     PATH_SEPARATOR=';'
4296   else
4297     PATH_SEPARATOR=:
4298   fi
4299   rm -f conf$$.sh
4300 fi
4301
4302 # Find out how to test for executable files. Don't use a zero-byte file,
4303 # as systems may use methods other than mode bits to determine executability.
4304 cat >conf$$.file <<_ASEOF
4305 #! /bin/sh
4306 exit 0
4307 _ASEOF
4308 chmod +x conf$$.file
4309 if test -x conf$$.file >/dev/null 2>&1; then
4310   ac_executable_p="test -x"
4311 else
4312   ac_executable_p="test -f"
4313 fi
4314 rm -f conf$$.file
4315
4316 # Extract the first word of "valgrind", so it can be a program name with args.
4317 set dummy valgrind; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_path_valgrind_path+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   case "$valgrind_path" in
4324   [\\/]* | ?:[\\/]*)
4325     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4326     ;;
4327   *)
4328     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4329     for ac_dir in $PATH; do
4330       IFS="$ac_save_IFS"
4331       test -z "$ac_dir" && ac_dir=.
4332       for ac_exec_ext in '' $ac_executable_extensions; do
4333         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4334           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4335             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4336             break 2
4337           fi
4338         fi
4339       done
4340     done
4341     IFS="$ac_save_IFS"
4342     ;;
4343 esac
4344 fi
4345 valgrind_path="$ac_cv_path_valgrind_path"
4346 if test -n "$valgrind_path"; then
4347   echo "$as_me:$LINENO: result: $valgrind_path" >&5
4348 echo "${ECHO_T}$valgrind_path" >&6
4349 else
4350   echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4352 fi
4353
4354   if test "x$valgrind_path" = "x" \
4355     || (test $have_valgrind_h = no \
4356         && test $gcc_cv_header_memcheck_h = no \
4357         && test $gcc_cv_header_valgrind_memcheck_h = no); then
4358         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4359 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4360    { (exit 1); exit 1; }; }
4361   fi
4362   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4363   valgrind_command="$valgrind_path -q"
4364
4365 cat >>confdefs.h <<\_ACEOF
4366 #define ENABLE_VALGRIND_CHECKING 1
4367 _ACEOF
4368
4369   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4370
4371 cat >>confdefs.h <<\_ACEOF
4372 #define HAVE_VALGRIND_MEMCHECK_H 1
4373 _ACEOF
4374
4375   fi
4376   if test $gcc_cv_header_memcheck_h = yes; then
4377
4378 cat >>confdefs.h <<\_ACEOF
4379 #define HAVE_MEMCHECK_H 1
4380 _ACEOF
4381
4382   fi
4383 fi
4384
4385
4386
4387 # Enable code coverage collection
4388 # Check whether --enable-coverage or --disable-coverage was given.
4389 if test "${enable_coverage+set}" = set; then
4390   enableval="$enable_coverage"
4391   case "${enableval}" in
4392 yes|noopt)
4393         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4394         ;;
4395 opt)
4396         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4397         ;;
4398 *)
4399         { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4400 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4401    { (exit 1); exit 1; }; }
4402         ;;
4403 esac
4404 else
4405   coverage_flags=""
4406 fi;
4407
4408
4409 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4410 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4411   enableval="$enable_gather_detailed_mem_stats"
4412
4413 else
4414   enable_gather_detailed_mem_stats=no
4415 fi;
4416 if test x$enable_gather_detailed_mem_stats = xyes ; then
4417
4418 cat >>confdefs.h <<\_ACEOF
4419 #define GATHER_STATISTICS 1
4420 _ACEOF
4421
4422 fi
4423
4424 # -------------------------------
4425 # Miscenalleous configure options
4426 # -------------------------------
4427
4428 # With stabs
4429
4430 # Check whether --with-stabs or --without-stabs was given.
4431 if test "${with_stabs+set}" = set; then
4432   withval="$with_stabs"
4433   stabs="$with_stabs"
4434 else
4435   stabs=no
4436 fi;
4437
4438 # Determine whether or not multilibs are enabled.
4439 # Check whether --enable-multilib or --disable-multilib was given.
4440 if test "${enable_multilib+set}" = set; then
4441   enableval="$enable_multilib"
4442
4443 else
4444   enable_multilib=yes
4445 fi;
4446
4447
4448 # Enable __cxa_atexit for C++.
4449 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4450 if test "${enable___cxa_atexit+set}" = set; then
4451   enableval="$enable___cxa_atexit"
4452
4453 fi;
4454
4455 # Enable threads
4456 # Pass with no value to take the default
4457 # Pass with a value to specify a thread package
4458 # Check whether --enable-threads or --disable-threads was given.
4459 if test "${enable_threads+set}" = set; then
4460   enableval="$enable_threads"
4461
4462 else
4463   enable_threads=''
4464 fi;
4465 # Save in case it gets overwritten in config.gcc
4466 enable_threads_flag=$enable_threads
4467
4468 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4469 if test "${enable_objc_gc+set}" = set; then
4470   enableval="$enable_objc_gc"
4471   if test x$enable_objc_gc = xno; then
4472         objc_boehm_gc=''
4473 else
4474         objc_boehm_gc=1
4475 fi
4476 else
4477   objc_boehm_gc=''
4478 fi;
4479
4480
4481 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4482 if test "${with_dwarf2+set}" = set; then
4483   withval="$with_dwarf2"
4484   dwarf2="$with_dwarf2"
4485 else
4486   dwarf2=no
4487 fi;
4488
4489 # Check whether --enable-shared or --disable-shared was given.
4490 if test "${enable_shared+set}" = set; then
4491   enableval="$enable_shared"
4492
4493   case $enable_shared in
4494   yes | no) ;;
4495   *)
4496     enable_shared=no
4497     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4498     for pkg in $enableval; do
4499       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4500         enable_shared=yes
4501       fi
4502     done
4503     IFS="$ac_save_ifs"
4504     ;;
4505   esac
4506
4507 else
4508   enable_shared=yes
4509 fi;
4510
4511
4512
4513 # Check whether --with-sysroot or --without-sysroot was given.
4514 if test "${with_sysroot+set}" = set; then
4515   withval="$with_sysroot"
4516
4517  case ${with_sysroot} in
4518  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4519  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4520  esac
4521
4522  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4523  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4524
4525  if test "x$exec_prefix" = xNONE; then
4526   if test "x$prefix" = xNONE; then
4527    test_prefix=/usr/local
4528   else
4529    test_prefix=$prefix
4530   fi
4531  else
4532   test_prefix=$exec_prefix
4533  fi
4534  case ${TARGET_SYSTEM_ROOT} in
4535  "${test_prefix}"|"${test_prefix}/"*|\
4536  '${exec_prefix}'|'${exec_prefix}/'*)
4537    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4538    TARGET_SYSTEM_ROOT_DEFINE="$t"
4539    ;;
4540  esac
4541
4542 else
4543
4544  TARGET_SYSTEM_ROOT=
4545  TARGET_SYSTEM_ROOT_DEFINE=
4546  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4547
4548 fi;
4549
4550
4551
4552
4553 # Build with intermodule optimisations
4554 # Check whether --enable-intermodule or --disable-intermodule was given.
4555 if test "${enable_intermodule+set}" = set; then
4556   enableval="$enable_intermodule"
4557   case ${enable_intermodule} in
4558   yes) onestep="-onestep";;
4559   *) onestep="";;
4560 esac
4561 else
4562   onestep=""
4563 fi;
4564
4565
4566 # -------------------------
4567 # Checks for other programs
4568 # -------------------------
4569
4570 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4571 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4572 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4573 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   cat >conftest.make <<\_ACEOF
4577 all:
4578         @echo 'ac_maketemp="$(MAKE)"'
4579 _ACEOF
4580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4581 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4582 if test -n "$ac_maketemp"; then
4583   eval ac_cv_prog_make_${ac_make}_set=yes
4584 else
4585   eval ac_cv_prog_make_${ac_make}_set=no
4586 fi
4587 rm -f conftest.make
4588 fi
4589 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4590   echo "$as_me:$LINENO: result: yes" >&5
4591 echo "${ECHO_T}yes" >&6
4592   SET_MAKE=
4593 else
4594   echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6
4596   SET_MAKE="MAKE=${MAKE-make}"
4597 fi
4598
4599
4600 # Find some useful tools
4601 for ac_prog in gawk mawk nawk awk
4602 do
4603   # Extract the first word of "$ac_prog", so it can be a program name with args.
4604 set dummy $ac_prog; ac_word=$2
4605 echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4607 if test "${ac_cv_prog_AWK+set}" = set; then
4608   echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610   if test -n "$AWK"; then
4611   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616   IFS=$as_save_IFS
4617   test -z "$as_dir" && as_dir=.
4618   for ac_exec_ext in '' $ac_executable_extensions; do
4619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620     ac_cv_prog_AWK="$ac_prog"
4621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622     break 2
4623   fi
4624 done
4625 done
4626
4627 fi
4628 fi
4629 AWK=$ac_cv_prog_AWK
4630 if test -n "$AWK"; then
4631   echo "$as_me:$LINENO: result: $AWK" >&5
4632 echo "${ECHO_T}$AWK" >&6
4633 else
4634   echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4636 fi
4637
4638   test -n "$AWK" && break
4639 done
4640
4641 # We need awk to run opts.sh (to create options.c and options.h).
4642 # Bail out if it's missing.
4643 case ${AWK} in
4644   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4645 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4646    { (exit 1); exit 1; }; } ;;
4647 esac
4648
4649 echo "$as_me:$LINENO: checking whether ln works" >&5
4650 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4651 if test "${gcc_cv_prog_LN+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   rm -f conftestdata_t
4655 echo >conftestdata_f
4656 if ln conftestdata_f conftestdata_t 2>/dev/null
4657 then
4658   gcc_cv_prog_LN="ln"
4659 else
4660   if ln -s conftestdata_f conftestdata_t 2>/dev/null
4661   then
4662     gcc_cv_prog_LN="ln -s"
4663   else
4664     gcc_cv_prog_LN=cp
4665   fi
4666 fi
4667 rm -f conftestdata_f conftestdata_t
4668
4669 fi
4670 LN="$gcc_cv_prog_LN"
4671 if test "$gcc_cv_prog_LN" = "ln"; then
4672   echo "$as_me:$LINENO: result: yes" >&5
4673 echo "${ECHO_T}yes" >&6
4674 else
4675   if test "$gcc_cv_prog_LN" = "ln -s"; then
4676     echo "$as_me:$LINENO: result: no, using ln -s" >&5
4677 echo "${ECHO_T}no, using ln -s" >&6
4678   else
4679     echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4680 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4681   fi
4682 fi
4683
4684 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4685 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4686 if test "${gcc_cv_prog_LN_S+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   rm -f conftestdata_t
4690 echo >conftestdata_f
4691 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4692 then
4693   gcc_cv_prog_LN_S="ln -s"
4694 else
4695   if ln conftestdata_f conftestdata_t 2>/dev/null
4696   then
4697     gcc_cv_prog_LN_S=ln
4698   else
4699     gcc_cv_prog_LN_S=cp
4700   fi
4701 fi
4702 rm -f conftestdata_f conftestdata_t
4703
4704 fi
4705 LN_S="$gcc_cv_prog_LN_S"
4706 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4707   echo "$as_me:$LINENO: result: yes" >&5
4708 echo "${ECHO_T}yes" >&6
4709 else
4710   if test "$gcc_cv_prog_LN_S" = "ln"; then
4711     echo "$as_me:$LINENO: result: no, using ln" >&5
4712 echo "${ECHO_T}no, using ln" >&6
4713   else
4714     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4715 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4716   fi
4717 fi
4718
4719 if test -n "$ac_tool_prefix"; then
4720   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4721 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4722 echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4724 if test "${ac_cv_prog_RANLIB+set}" = set; then
4725   echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727   if test -n "$RANLIB"; then
4728   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4732 do
4733   IFS=$as_save_IFS
4734   test -z "$as_dir" && as_dir=.
4735   for ac_exec_ext in '' $ac_executable_extensions; do
4736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739     break 2
4740   fi
4741 done
4742 done
4743
4744 fi
4745 fi
4746 RANLIB=$ac_cv_prog_RANLIB
4747 if test -n "$RANLIB"; then
4748   echo "$as_me:$LINENO: result: $RANLIB" >&5
4749 echo "${ECHO_T}$RANLIB" >&6
4750 else
4751   echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6
4753 fi
4754
4755 fi
4756 if test -z "$ac_cv_prog_RANLIB"; then
4757   ac_ct_RANLIB=$RANLIB
4758   # Extract the first word of "ranlib", so it can be a program name with args.
4759 set dummy ranlib; ac_word=$2
4760 echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4762 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4763   echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765   if test -n "$ac_ct_RANLIB"; then
4766   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773   for ac_exec_ext in '' $ac_executable_extensions; do
4774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775     ac_cv_prog_ac_ct_RANLIB="ranlib"
4776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780 done
4781
4782   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4783 fi
4784 fi
4785 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4786 if test -n "$ac_ct_RANLIB"; then
4787   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4788 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4789 else
4790   echo "$as_me:$LINENO: result: no" >&5
4791 echo "${ECHO_T}no" >&6
4792 fi
4793
4794   RANLIB=$ac_ct_RANLIB
4795 else
4796   RANLIB="$ac_cv_prog_RANLIB"
4797 fi
4798
4799 # Find a good install program.  We prefer a C program (faster),
4800 # so one script is as good as another.  But avoid the broken or
4801 # incompatible versions:
4802 # SysV /etc/install, /usr/sbin/install
4803 # SunOS /usr/etc/install
4804 # IRIX /sbin/install
4805 # AIX /bin/install
4806 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4807 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4808 # ./install, which can be erroneously created by make from ./install.sh.
4809 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4810 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4811 if test -z "$INSTALL"; then
4812 if test "${ac_cv_path_install+set}" = set; then
4813   echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4816   for ac_dir in $PATH; do
4817     # Account for people who put trailing slashes in PATH elements.
4818     case "$ac_dir/" in
4819     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4820     *)
4821       # OSF1 and SCO ODT 3.0 have their own names for install.
4822       for ac_prog in ginstall scoinst install; do
4823         if test -f $ac_dir/$ac_prog; then
4824           if test $ac_prog = install &&
4825             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4826             # AIX install.  It has an incompatible calling convention.
4827             # OSF/1 installbsd also uses dspmsg, but is usable.
4828             :
4829           else
4830             ac_cv_path_install="$ac_dir/$ac_prog -c"
4831             break 2
4832           fi
4833         fi
4834       done
4835       ;;
4836     esac
4837   done
4838   IFS="$ac_save_IFS"
4839
4840 fi
4841   if test "${ac_cv_path_install+set}" = set; then
4842     INSTALL="$ac_cv_path_install"
4843   else
4844     # As a last resort, use the slow shell script.  We don't cache a
4845     # path for INSTALL within a source directory, because that will
4846     # break other packages using the cache if that directory is
4847     # removed, or if the path is relative.
4848     INSTALL="$ac_install_sh"
4849   fi
4850 fi
4851 echo "$as_me:$LINENO: result: $INSTALL" >&5
4852 echo "${ECHO_T}$INSTALL" >&6
4853
4854 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4855 # It thinks the first close brace ends the variable substitution.
4856 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4857
4858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4859
4860
4861 # See if cmp has --ignore-initial.
4862 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4863 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4864 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867    echo abfoo >t1
4868   echo cdfoo >t2
4869   gcc_cv_prog_cmp_skip=slowcompare
4870   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4871     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4872       :
4873     else
4874       gcc_cv_prog_cmp_skip=gnucompare
4875     fi
4876   fi
4877   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
4878     if cmp t1 t2 2 2 > /dev/null 2>&1; then
4879       if cmp t1 t2 1 1 > /dev/null 2>&1; then
4880         :
4881       else
4882         gcc_cv_prog_cmp_skip=fastcompare
4883       fi
4884     fi
4885   fi
4886   rm t1 t2
4887
4888 fi
4889 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4890 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4891 make_compare_target=$gcc_cv_prog_cmp_skip
4892
4893
4894
4895 # See if we have the mktemp command.
4896 # Extract the first word of "mktemp", so it can be a program name with args.
4897 set dummy mktemp; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   if test -n "$have_mktemp_command"; then
4904   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911   for ac_exec_ext in '' $ac_executable_extensions; do
4912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913     ac_cv_prog_have_mktemp_command="yes"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919
4920   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
4921 fi
4922 fi
4923 have_mktemp_command=$ac_cv_prog_have_mktemp_command
4924 if test -n "$have_mktemp_command"; then
4925   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4926 echo "${ECHO_T}$have_mktemp_command" >&6
4927 else
4928   echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4930 fi
4931
4932
4933 # Do we have a single-tree copy of texinfo?
4934 if test -f $srcdir/../texinfo/Makefile.in; then
4935   MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
4936   gcc_cv_prog_makeinfo_modern=yes
4937   echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4938 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4939 else
4940   # See if makeinfo has been installed and is modern enough
4941   # that we can use it.
4942   # Extract the first word of "makeinfo", so it can be a program name with args.
4943 set dummy makeinfo; ac_word=$2
4944 echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4946 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   if test -n "$MAKEINFO"; then
4950   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955   IFS=$as_save_IFS
4956   test -z "$as_dir" && as_dir=.
4957   for ac_exec_ext in '' $ac_executable_extensions; do
4958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959     ac_cv_prog_MAKEINFO="makeinfo"
4960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961     break 2
4962   fi
4963 done
4964 done
4965
4966 fi
4967 fi
4968 MAKEINFO=$ac_cv_prog_MAKEINFO
4969 if test -n "$MAKEINFO"; then
4970   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4971 echo "${ECHO_T}$MAKEINFO" >&6
4972 else
4973   echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4975 fi
4976
4977 if test -n "$MAKEINFO"; then
4978   # Found it, now check the version.
4979   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
4980 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
4981 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984     ac_prog_version=`$MAKEINFO --version 2>&1 |
4985                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4986   echo "configure:4986: version of makeinfo is $ac_prog_version" >&5
4987   case $ac_prog_version in
4988     '')     gcc_cv_prog_makeinfo_modern=no;;
4989     4.[2-9]*)
4990             gcc_cv_prog_makeinfo_modern=yes;;
4991     *)      gcc_cv_prog_makeinfo_modern=no;;
4992   esac
4993
4994 fi
4995 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
4996 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
4997 else
4998   gcc_cv_prog_makeinfo_modern=no
4999 fi
5000
5001 fi
5002
5003 if test $gcc_cv_prog_makeinfo_modern = no; then
5004   { echo "$as_me:$LINENO: WARNING:
5005 *** Makeinfo is missing or too old.
5006 *** Info documentation will not be built." >&5
5007 echo "$as_me: WARNING:
5008 *** Makeinfo is missing or too old.
5009 *** Info documentation will not be built." >&2;}
5010   BUILD_INFO=
5011 else
5012   BUILD_INFO=info
5013 fi
5014
5015 # Is pod2man recent enough to regenerate manpages?
5016 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5017 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5018 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5019   echo "$as_me:$LINENO: result: yes" >&5
5020 echo "${ECHO_T}yes" >&6
5021   GENERATED_MANPAGES=generated-manpages
5022 else
5023   echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6
5025   GENERATED_MANPAGES=
5026 fi
5027
5028 # How about lex?
5029 if test -f $srcdir/../flex/skel.c; then
5030   FLEX='$(objdir)/../flex/flex'
5031 else
5032   # Extract the first word of "flex", so it can be a program name with args.
5033 set dummy flex; ac_word=$2
5034 echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5036 if test "${ac_cv_prog_FLEX+set}" = set; then
5037   echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039   if test -n "$FLEX"; then
5040   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047   for ac_exec_ext in '' $ac_executable_extensions; do
5048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049     ac_cv_prog_FLEX="flex"
5050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054 done
5055
5056   test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5057 fi
5058 fi
5059 FLEX=$ac_cv_prog_FLEX
5060 if test -n "$FLEX"; then
5061   echo "$as_me:$LINENO: result: $FLEX" >&5
5062 echo "${ECHO_T}$FLEX" >&6
5063 else
5064   echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6
5066 fi
5067
5068 fi
5069
5070 # Bison?
5071 # The -L switch is so bison can find its skeleton file.
5072 if test -f $srcdir/../bison/bison.simple; then
5073   BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5074 else
5075   # Extract the first word of "bison", so it can be a program name with args.
5076 set dummy bison; ac_word=$2
5077 echo "$as_me:$LINENO: checking for $ac_word" >&5
5078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5079 if test "${ac_cv_prog_BISON+set}" = set; then
5080   echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082   if test -n "$BISON"; then
5083   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088   IFS=$as_save_IFS
5089   test -z "$as_dir" && as_dir=.
5090   for ac_exec_ext in '' $ac_executable_extensions; do
5091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5092     ac_cv_prog_BISON="bison"
5093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5094     break 2
5095   fi
5096 done
5097 done
5098
5099   test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5100 fi
5101 fi
5102 BISON=$ac_cv_prog_BISON
5103 if test -n "$BISON"; then
5104   echo "$as_me:$LINENO: result: $BISON" >&5
5105 echo "${ECHO_T}$BISON" >&6
5106 else
5107   echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6
5109 fi
5110
5111 fi
5112
5113 # --------------------
5114 # Checks for C headers
5115 # --------------------
5116
5117 echo "$as_me:$LINENO: checking for GNU C library" >&5
5118 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5119 if test "${gcc_cv_glibc+set}" = set; then
5120   echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122   cat >conftest.$ac_ext <<_ACEOF
5123 #line $LINENO "configure"
5124 /* confdefs.h.  */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h.  */
5129 #include <features.h>
5130 int
5131 main ()
5132 {
5133
5134 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5135 #error Not a GNU C library system
5136 #endif
5137   ;
5138   return 0;
5139 }
5140 _ACEOF
5141 rm -f conftest.$ac_objext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143   (eval $ac_compile) 2>&5
5144   ac_status=$?
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); } &&
5147          { ac_try='test -s conftest.$ac_objext'
5148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149   (eval $ac_try) 2>&5
5150   ac_status=$?
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); }; }; then
5153   gcc_cv_glibc=yes
5154 else
5155   echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5157
5158 gcc_cv_glibc=no
5159 fi
5160 rm -f conftest.$ac_objext conftest.$ac_ext
5161 fi
5162
5163 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5164 echo "${ECHO_T}$gcc_cv_glibc" >&6
5165 if test $gcc_cv_glibc = yes; then
5166
5167 cat >>confdefs.h <<\_ACEOF
5168 #define _GNU_SOURCE 1
5169 _ACEOF
5170
5171 fi
5172
5173 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5174 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5175 if test "${ac_cv_header_stdc+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   cat >conftest.$ac_ext <<_ACEOF
5179 #line $LINENO "configure"
5180 /* confdefs.h.  */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h.  */
5185 #include <stdlib.h>
5186 #include <stdarg.h>
5187 #include <string.h>
5188 #include <float.h>
5189
5190 int
5191 main ()
5192 {
5193
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200   (eval $ac_compile) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); } &&
5204          { ac_try='test -s conftest.$ac_objext'
5205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206   (eval $ac_try) 2>&5
5207   ac_status=$?
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }; }; then
5210   ac_cv_header_stdc=yes
5211 else
5212   echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 ac_cv_header_stdc=no
5216 fi
5217 rm -f conftest.$ac_objext conftest.$ac_ext
5218
5219 if test $ac_cv_header_stdc = yes; then
5220   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5221   cat >conftest.$ac_ext <<_ACEOF
5222 #line $LINENO "configure"
5223 /* confdefs.h.  */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h.  */
5228 #include <string.h>
5229
5230 _ACEOF
5231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5232   $EGREP "memchr" >/dev/null 2>&1; then
5233   :
5234 else
5235   ac_cv_header_stdc=no
5236 fi
5237 rm -f conftest*
5238
5239 fi
5240
5241 if test $ac_cv_header_stdc = yes; then
5242   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5243   cat >conftest.$ac_ext <<_ACEOF
5244 #line $LINENO "configure"
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 #include <stdlib.h>
5251
5252 _ACEOF
5253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5254   $EGREP "free" >/dev/null 2>&1; then
5255   :
5256 else
5257   ac_cv_header_stdc=no
5258 fi
5259 rm -f conftest*
5260
5261 fi
5262
5263 if test $ac_cv_header_stdc = yes; then
5264   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5265   if test "$cross_compiling" = yes; then
5266   :
5267 else
5268   cat >conftest.$ac_ext <<_ACEOF
5269 #line $LINENO "configure"
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275 #include <ctype.h>
5276 #if ((' ' & 0x0FF) == 0x020)
5277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5279 #else
5280 # define ISLOWER(c) \
5281                    (('a' <= (c) && (c) <= 'i') \
5282                      || ('j' <= (c) && (c) <= 'r') \
5283                      || ('s' <= (c) && (c) <= 'z'))
5284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5285 #endif
5286
5287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5288 int
5289 main ()
5290 {
5291   int i;
5292   for (i = 0; i < 256; i++)
5293     if (XOR (islower (i), ISLOWER (i))
5294         || toupper (i) != TOUPPER (i))
5295       exit(2);
5296   exit (0);
5297 }
5298 _ACEOF
5299 rm -f conftest$ac_exeext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5301   (eval $ac_link) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306   (eval $ac_try) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }; }; then
5310   :
5311 else
5312   echo "$as_me: program exited with status $ac_status" >&5
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 ( exit $ac_status )
5317 ac_cv_header_stdc=no
5318 fi
5319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5320 fi
5321 fi
5322 fi
5323 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5324 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5325 if test $ac_cv_header_stdc = yes; then
5326
5327 cat >>confdefs.h <<\_ACEOF
5328 #define STDC_HEADERS 1
5329 _ACEOF
5330
5331 fi
5332
5333 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5334 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5335 if test "${ac_cv_header_time+set}" = set; then
5336   echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338   cat >conftest.$ac_ext <<_ACEOF
5339 #line $LINENO "configure"
5340 /* confdefs.h.  */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h.  */
5345 #include <sys/types.h>
5346 #include <sys/time.h>
5347 #include <time.h>
5348
5349 int
5350 main ()
5351 {
5352 if ((struct tm *) 0)
5353 return 0;
5354   ;
5355   return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360   (eval $ac_compile) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); } &&
5364          { ac_try='test -s conftest.$ac_objext'
5365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366   (eval $ac_try) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; }; then
5370   ac_cv_header_time=yes
5371 else
5372   echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 ac_cv_header_time=no
5376 fi
5377 rm -f conftest.$ac_objext conftest.$ac_ext
5378 fi
5379 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5380 echo "${ECHO_T}$ac_cv_header_time" >&6
5381 if test $ac_cv_header_time = yes; then
5382
5383 cat >>confdefs.h <<\_ACEOF
5384 #define TIME_WITH_SYS_TIME 1
5385 _ACEOF
5386
5387 fi
5388
5389 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5390 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5391 if test "${ac_cv_header_stdbool_h+set}" = set; then
5392   echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394   cat >conftest.$ac_ext <<_ACEOF
5395 #line $LINENO "configure"
5396 /* confdefs.h.  */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h.  */
5401 #include <stdbool.h>
5402 int
5403 main ()
5404 {
5405 bool foo = false;
5406   ;
5407   return 0;
5408 }
5409 _ACEOF
5410 rm -f conftest.$ac_objext
5411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5412   (eval $ac_compile) 2>&5
5413   ac_status=$?
5414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415   (exit $ac_status); } &&
5416          { ac_try='test -s conftest.$ac_objext'
5417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418   (eval $ac_try) 2>&5
5419   ac_status=$?
5420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421   (exit $ac_status); }; }; then
5422   ac_cv_header_stdbool_h=yes
5423 else
5424   echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5426
5427 ac_cv_header_stdbool_h=no
5428 fi
5429 rm -f conftest.$ac_objext conftest.$ac_ext
5430 fi
5431 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5432 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5433 if test $ac_cv_header_stdbool_h = yes; then
5434
5435 cat >>confdefs.h <<\_ACEOF
5436 #define HAVE_STDBOOL_H 1
5437 _ACEOF
5438
5439 fi
5440
5441 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5442 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5443 if test "${gcc_cv_header_string+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   cat >conftest.$ac_ext <<_ACEOF
5447 #line $LINENO "configure"
5448 /* confdefs.h.  */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h.  */
5453 #include <string.h>
5454 #include <strings.h>
5455 int
5456 main ()
5457 {
5458
5459   ;
5460   return 0;
5461 }
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5465   (eval $ac_compile) 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); } &&
5469          { ac_try='test -s conftest.$ac_objext'
5470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471   (eval $ac_try) 2>&5
5472   ac_status=$?
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); }; }; then
5475   gcc_cv_header_string=yes
5476 else
5477   echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5479
5480 gcc_cv_header_string=no
5481 fi
5482 rm -f conftest.$ac_objext conftest.$ac_ext
5483 fi
5484 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5485 echo "${ECHO_T}$gcc_cv_header_string" >&6
5486 if test $gcc_cv_header_string = yes; then
5487
5488 cat >>confdefs.h <<\_ACEOF
5489 #define STRING_WITH_STRINGS 1
5490 _ACEOF
5491
5492 fi
5493
5494 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5495 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5496 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5497   echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499   cat >conftest.$ac_ext <<_ACEOF
5500 #line $LINENO "configure"
5501 /* confdefs.h.  */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h.  */
5506 #include <sys/types.h>
5507 #include <sys/wait.h>
5508 #ifndef WEXITSTATUS
5509 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5510 #endif
5511 #ifndef WIFEXITED
5512 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5513 #endif
5514
5515 int
5516 main ()
5517 {
5518   int s;
5519   wait (&s);
5520   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5521   ;
5522   return 0;
5523 }
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5527   (eval $ac_compile) 2>&5
5528   ac_status=$?
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); } &&
5531          { ac_try='test -s conftest.$ac_objext'
5532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533   (eval $ac_try) 2>&5
5534   ac_status=$?
5535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); }; }; then
5537   ac_cv_header_sys_wait_h=yes
5538 else
5539   echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5541
5542 ac_cv_header_sys_wait_h=no
5543 fi
5544 rm -f conftest.$ac_objext conftest.$ac_ext
5545 fi
5546 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5547 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5548 if test $ac_cv_header_sys_wait_h = yes; then
5549
5550 cat >>confdefs.h <<\_ACEOF
5551 #define HAVE_SYS_WAIT_H 1
5552 _ACEOF
5553
5554 fi
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5578                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5579                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
5580                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5581 do
5582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5584   echo "$as_me:$LINENO: checking for $ac_header" >&5
5585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5587   echo $ECHO_N "(cached) $ECHO_C" >&6
5588 fi
5589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5591 else
5592   # Is the header compilable?
5593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5595 cat >conftest.$ac_ext <<_ACEOF
5596 #line $LINENO "configure"
5597 /* confdefs.h.  */
5598 _ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h.  */
5602 $ac_includes_default
5603 #include <$ac_header>
5604 _ACEOF
5605 rm -f conftest.$ac_objext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607   (eval $ac_compile) 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); } &&
5611          { ac_try='test -s conftest.$ac_objext'
5612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613   (eval $ac_try) 2>&5
5614   ac_status=$?
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); }; }; then
5617   ac_header_compiler=yes
5618 else
5619   echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622 ac_header_compiler=no
5623 fi
5624 rm -f conftest.$ac_objext conftest.$ac_ext
5625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5626 echo "${ECHO_T}$ac_header_compiler" >&6
5627
5628 # Is the header present?
5629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5631 cat >conftest.$ac_ext <<_ACEOF
5632 #line $LINENO "configure"
5633 /* confdefs.h.  */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h.  */
5638 #include <$ac_header>
5639 _ACEOF
5640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5641   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5642   ac_status=$?
5643   grep -v '^ *+' conftest.er1 >conftest.err
5644   rm -f conftest.er1
5645   cat conftest.err >&5
5646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647   (exit $ac_status); } >/dev/null; then
5648   if test -s conftest.err; then
5649     ac_cpp_err=$ac_c_preproc_warn_flag
5650   else
5651     ac_cpp_err=
5652   fi
5653 else
5654   ac_cpp_err=yes
5655 fi
5656 if test -z "$ac_cpp_err"; then
5657   ac_header_preproc=yes
5658 else
5659   echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5661
5662   ac_header_preproc=no
5663 fi
5664 rm -f conftest.err conftest.$ac_ext
5665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5666 echo "${ECHO_T}$ac_header_preproc" >&6
5667
5668 # So?  What about this header?
5669 case $ac_header_compiler:$ac_header_preproc in
5670   yes:no )
5671     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5675     (
5676       cat <<\_ASBOX
5677 ## ------------------------------------ ##
5678 ## Report this to bug-autoconf@gnu.org. ##
5679 ## ------------------------------------ ##
5680 _ASBOX
5681     ) |
5682       sed "s/^/$as_me: WARNING:     /" >&2
5683     ;;
5684   no:yes )
5685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5687     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5691     (
5692       cat <<\_ASBOX
5693 ## ------------------------------------ ##
5694 ## Report this to bug-autoconf@gnu.org. ##
5695 ## ------------------------------------ ##
5696 _ASBOX
5697     ) |
5698       sed "s/^/$as_me: WARNING:     /" >&2
5699     ;;
5700 esac
5701 echo "$as_me:$LINENO: checking for $ac_header" >&5
5702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5704   echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706   eval "$as_ac_Header=$ac_header_preproc"
5707 fi
5708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5710
5711 fi
5712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5713   cat >>confdefs.h <<_ACEOF
5714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5715 _ACEOF
5716
5717 fi
5718
5719 done
5720
5721
5722 # Check for thread headers.
5723 if test "${ac_cv_header_thread_h+set}" = set; then
5724   echo "$as_me:$LINENO: checking for thread.h" >&5
5725 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5726 if test "${ac_cv_header_thread_h+set}" = set; then
5727   echo $ECHO_N "(cached) $ECHO_C" >&6
5728 fi
5729 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5730 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5731 else
5732   # Is the header compilable?
5733 echo "$as_me:$LINENO: checking thread.h usability" >&5
5734 echo $ECHO_N "checking thread.h usability... $ECHO_C" >&6
5735 cat >conftest.$ac_ext <<_ACEOF
5736 #line $LINENO "configure"
5737 /* confdefs.h.  */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h.  */
5742 $ac_includes_default
5743 #include <thread.h>
5744 _ACEOF
5745 rm -f conftest.$ac_objext
5746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5747   (eval $ac_compile) 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); } &&
5751          { ac_try='test -s conftest.$ac_objext'
5752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753   (eval $ac_try) 2>&5
5754   ac_status=$?
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); }; }; then
5757   ac_header_compiler=yes
5758 else
5759   echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5761
5762 ac_header_compiler=no
5763 fi
5764 rm -f conftest.$ac_objext conftest.$ac_ext
5765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5766 echo "${ECHO_T}$ac_header_compiler" >&6
5767
5768 # Is the header present?
5769 echo "$as_me:$LINENO: checking thread.h presence" >&5
5770 echo $ECHO_N "checking thread.h presence... $ECHO_C" >&6
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5773 /* confdefs.h.  */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h.  */
5778 #include <thread.h>
5779 _ACEOF
5780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5781   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5782   ac_status=$?
5783   grep -v '^ *+' conftest.er1 >conftest.err
5784   rm -f conftest.er1
5785   cat conftest.err >&5
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); } >/dev/null; then
5788   if test -s conftest.err; then
5789     ac_cpp_err=$ac_c_preproc_warn_flag
5790   else
5791     ac_cpp_err=
5792   fi
5793 else
5794   ac_cpp_err=yes
5795 fi
5796 if test -z "$ac_cpp_err"; then
5797   ac_header_preproc=yes
5798 else
5799   echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802   ac_header_preproc=no
5803 fi
5804 rm -f conftest.err conftest.$ac_ext
5805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5806 echo "${ECHO_T}$ac_header_preproc" >&6
5807
5808 # So?  What about this header?
5809 case $ac_header_compiler:$ac_header_preproc in
5810   yes:no )
5811     { echo "$as_me:$LINENO: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5812 echo "$as_me: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5813     { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5814 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5815     (
5816       cat <<\_ASBOX
5817 ## ------------------------------------ ##
5818 ## Report this to bug-autoconf@gnu.org. ##
5819 ## ------------------------------------ ##
5820 _ASBOX
5821     ) |
5822       sed "s/^/$as_me: WARNING:     /" >&2
5823     ;;
5824   no:yes )
5825     { echo "$as_me:$LINENO: WARNING: thread.h: present but cannot be compiled" >&5
5826 echo "$as_me: WARNING: thread.h: present but cannot be compiled" >&2;}
5827     { echo "$as_me:$LINENO: WARNING: thread.h: check for missing prerequisite headers?" >&5
5828 echo "$as_me: WARNING: thread.h: check for missing prerequisite headers?" >&2;}
5829     { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5830 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5831     (
5832       cat <<\_ASBOX
5833 ## ------------------------------------ ##
5834 ## Report this to bug-autoconf@gnu.org. ##
5835 ## ------------------------------------ ##
5836 _ASBOX
5837     ) |
5838       sed "s/^/$as_me: WARNING:     /" >&2
5839     ;;
5840 esac
5841 echo "$as_me:$LINENO: checking for thread.h" >&5
5842 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5843 if test "${ac_cv_header_thread_h+set}" = set; then
5844   echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846   ac_cv_header_thread_h=$ac_header_preproc
5847 fi
5848 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5849 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5850
5851 fi
5852 if test $ac_cv_header_thread_h = yes; then
5853   have_thread_h=yes
5854 else
5855   have_thread_h=
5856 fi
5857
5858
5859 if test "${ac_cv_header_pthread_h+set}" = set; then
5860   echo "$as_me:$LINENO: checking for pthread.h" >&5
5861 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5862 if test "${ac_cv_header_pthread_h+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 fi
5865 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5866 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5867 else
5868   # Is the header compilable?
5869 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5870 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5871 cat >conftest.$ac_ext <<_ACEOF
5872 #line $LINENO "configure"
5873 /* confdefs.h.  */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h.  */
5878 $ac_includes_default
5879 #include <pthread.h>
5880 _ACEOF
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883   (eval $ac_compile) 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); } &&
5887          { ac_try='test -s conftest.$ac_objext'
5888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889   (eval $ac_try) 2>&5
5890   ac_status=$?
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); }; }; then
5893   ac_header_compiler=yes
5894 else
5895   echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5897
5898 ac_header_compiler=no
5899 fi
5900 rm -f conftest.$ac_objext conftest.$ac_ext
5901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5902 echo "${ECHO_T}$ac_header_compiler" >&6
5903
5904 # Is the header present?
5905 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5906 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5907 cat >conftest.$ac_ext <<_ACEOF
5908 #line $LINENO "configure"
5909 /* confdefs.h.  */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h.  */
5914 #include <pthread.h>
5915 _ACEOF
5916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5918   ac_status=$?
5919   grep -v '^ *+' conftest.er1 >conftest.err
5920   rm -f conftest.er1
5921   cat conftest.err >&5
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); } >/dev/null; then
5924   if test -s conftest.err; then
5925     ac_cpp_err=$ac_c_preproc_warn_flag
5926   else
5927     ac_cpp_err=
5928   fi
5929 else
5930   ac_cpp_err=yes
5931 fi
5932 if test -z "$ac_cpp_err"; then
5933   ac_header_preproc=yes
5934 else
5935   echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938   ac_header_preproc=no
5939 fi
5940 rm -f conftest.err conftest.$ac_ext
5941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5942 echo "${ECHO_T}$ac_header_preproc" >&6
5943
5944 # So?  What about this header?
5945 case $ac_header_compiler:$ac_header_preproc in
5946   yes:no )
5947     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5948 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5949     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5950 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5951     (
5952       cat <<\_ASBOX
5953 ## ------------------------------------ ##
5954 ## Report this to bug-autoconf@gnu.org. ##
5955 ## ------------------------------------ ##
5956 _ASBOX
5957     ) |
5958       sed "s/^/$as_me: WARNING:     /" >&2
5959     ;;
5960   no:yes )
5961     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5962 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5963     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5964 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5965     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5966 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5967     (
5968       cat <<\_ASBOX
5969 ## ------------------------------------ ##
5970 ## Report this to bug-autoconf@gnu.org. ##
5971 ## ------------------------------------ ##
5972 _ASBOX
5973     ) |
5974       sed "s/^/$as_me: WARNING:     /" >&2
5975     ;;
5976 esac
5977 echo "$as_me:$LINENO: checking for pthread.h" >&5
5978 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5979 if test "${ac_cv_header_pthread_h+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982   ac_cv_header_pthread_h=$ac_header_preproc
5983 fi
5984 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5985 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5986
5987 fi
5988 if test $ac_cv_header_pthread_h = yes; then
5989   have_pthread_h=yes
5990 else
5991   have_pthread_h=
5992 fi
5993
5994
5995
5996 # These tests can't be done till we know if we have limits.h.
5997 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5998 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5999 if test "${gcc_cv_decl_char_bit+set}" = set; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002   cat >conftest.$ac_ext <<_ACEOF
6003 #line $LINENO "configure"
6004 /* confdefs.h.  */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h.  */
6009 #ifdef HAVE_LIMITS_H
6010 #include <limits.h>
6011 #endif
6012 #ifdef CHAR_BIT
6013 found
6014 #endif
6015 _ACEOF
6016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6017   $EGREP "found" >/dev/null 2>&1; then
6018   gcc_cv_decl_char_bit=yes
6019 else
6020   gcc_cv_decl_char_bit=no
6021 fi
6022 rm -f conftest*
6023
6024
6025 fi
6026 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6027 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6028 if test $gcc_cv_decl_char_bit = no; then
6029   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6030 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6031 if test "${gcc_cv_c_nbby+set}" = set; then
6032   echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034   i=8
6035  gcc_cv_c_nbby=
6036  while test $i -lt 65; do
6037    cat >conftest.$ac_ext <<_ACEOF
6038 #line $LINENO "configure"
6039 /* confdefs.h.  */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h.  */
6044
6045 int
6046 main ()
6047 {
6048 switch(0) {
6049   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6050   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6051   ; }
6052   ;
6053   return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058   (eval $ac_compile) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); } &&
6062          { ac_try='test -s conftest.$ac_objext'
6063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064   (eval $ac_try) 2>&5
6065   ac_status=$?
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); }; }; then
6068   gcc_cv_c_nbby=$i; break
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073 fi
6074 rm -f conftest.$ac_objext conftest.$ac_ext
6075    i=`expr $i + 1`
6076  done
6077  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6078
6079 fi
6080 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6081 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6082 if test $gcc_cv_c_nbby = failed; then
6083   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6084 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6085    { (exit 1); exit 1; }; }
6086 else
6087
6088 cat >>confdefs.h <<_ACEOF
6089 #define CHAR_BIT $gcc_cv_c_nbby
6090 _ACEOF
6091
6092 fi
6093 fi
6094 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6095 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6096 if test "${ac_cv_c_bigendian+set}" = set; then
6097   echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099   ac_cv_c_bigendian=unknown
6100 # See if sys/param.h defines the BYTE_ORDER macro.
6101 cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6103 /* confdefs.h.  */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h.  */
6108 #include <sys/types.h>
6109 #include <sys/param.h>
6110 int
6111 main ()
6112 {
6113
6114 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6115  bogus endian macros
6116 #endif
6117   ;
6118   return 0;
6119 }
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123   (eval $ac_compile) 2>&5
6124   ac_status=$?
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); } &&
6127          { ac_try='test -s conftest.$ac_objext'
6128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129   (eval $ac_try) 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); }; }; then
6133   # It does; now see whether it defined to BIG_ENDIAN or not.
6134 cat >conftest.$ac_ext <<_ACEOF
6135 #line $LINENO "configure"
6136 /* confdefs.h.  */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h.  */
6141 #include <sys/types.h>
6142 #include <sys/param.h>
6143 int
6144 main ()
6145 {
6146
6147 #if BYTE_ORDER != BIG_ENDIAN
6148  not big endian
6149 #endif
6150   ;
6151   return 0;
6152 }
6153 _ACEOF
6154 rm -f conftest.$ac_objext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156   (eval $ac_compile) 2>&5
6157   ac_status=$?
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); } &&
6160          { ac_try='test -s conftest.$ac_objext'
6161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162   (eval $ac_try) 2>&5
6163   ac_status=$?
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); }; }; then
6166   ac_cv_c_bigendian=yes
6167 else
6168   echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6170
6171 ac_cv_c_bigendian=no
6172 fi
6173 rm -f conftest.$ac_objext conftest.$ac_ext
6174 else
6175   echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6177
6178 fi
6179 rm -f conftest.$ac_objext conftest.$ac_ext
6180 if test $ac_cv_c_bigendian = unknown; then
6181 if test "$cross_compiling" = yes; then
6182    echo $ac_n "cross-compiling... " 2>&6
6183 else
6184   cat >conftest.$ac_ext <<_ACEOF
6185 #line $LINENO "configure"
6186 /* confdefs.h.  */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h.  */
6191 main () {
6192   /* Are we little or big endian?  From Harbison&Steele.  */
6193   union
6194   {
6195     long l;
6196     char c[sizeof (long)];
6197   } u;
6198   u.l = 1;
6199   exit (u.c[sizeof (long) - 1] == 1);
6200 }
6201 _ACEOF
6202 rm -f conftest$ac_exeext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6204   (eval $ac_link) 2>&5
6205   ac_status=$?
6206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209   (eval $ac_try) 2>&5
6210   ac_status=$?
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); }; }; then
6213   ac_cv_c_bigendian=no
6214 else
6215   echo "$as_me: program exited with status $ac_status" >&5
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 ( exit $ac_status )
6220 ac_cv_c_bigendian=yes
6221 fi
6222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6223 fi
6224 fi
6225 fi
6226 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6227 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6228 if test $ac_cv_c_bigendian = unknown; then
6229 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6230 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6231
6232 cat >conftest.c <<EOF
6233 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6234 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6235 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6236 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6237 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6238 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6239 int main() { _ascii (); _ebcdic (); return 0; }
6240 EOF
6241  if test -f conftest.c ; then
6242      if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6243         if test `grep -l BIGenDianSyS conftest.o` ; then
6244            echo $ac_n ' big endian probe OK, ' 1>&6
6245            ac_cv_c_bigendian=yes
6246         fi
6247         if test `grep -l LiTTleEnDian conftest.o` ; then
6248            echo $ac_n ' little endian probe OK, ' 1>&6
6249            if test $ac_cv_c_bigendian = yes ; then
6250             ac_cv_c_bigendian=unknown;
6251            else
6252             ac_cv_c_bigendian=no
6253            fi
6254         fi
6255         echo $ac_n 'guessing bigendian ...  ' >&6
6256      fi
6257   fi
6258 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6259 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6260 fi
6261 if test $ac_cv_c_bigendian = yes; then
6262
6263 cat >>confdefs.h <<\_ACEOF
6264 #define WORDS_BIGENDIAN 1
6265 _ACEOF
6266
6267
6268 cat >>confdefs.h <<\_ACEOF
6269 #define HOST_WORDS_BIG_ENDIAN 1
6270 _ACEOF
6271
6272   BYTEORDER=4321
6273 else
6274   BYTEORDER=1234
6275 fi
6276
6277 cat >>confdefs.h <<_ACEOF
6278 #define BYTEORDER $BYTEORDER
6279 _ACEOF
6280
6281 if test $ac_cv_c_bigendian = unknown; then
6282   { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6283 echo "$as_me: error: unknown endianess - sorry" >&2;}
6284    { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6285 fi
6286
6287
6288 # --------
6289 # UNSORTED
6290 # --------
6291
6292 # Stage specific cflags for build.
6293 stage1_cflags=
6294 case $build in
6295 vax-*-*)
6296   if test x$GCC = xyes
6297   then
6298     stage1_cflags="-Wa,-J"
6299   else
6300     stage1_cflags="-J"
6301   fi
6302   ;;
6303 powerpc-*-darwin*)
6304   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6305   # sources; use -no-cpp-precomp to get to GNU cpp.
6306   # Apple's GCC has bugs in designated initializer handling, so disable
6307   # that too.
6308   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6309   ;;
6310 esac
6311
6312
6313 # These libraries may be used by collect2.
6314 # We may need a special search path to get them linked.
6315 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6316 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6317 if test "${gcc_cv_collect2_libs+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   save_LIBS="$LIBS"
6321 for libs in '' -lld -lmld \
6322                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6323                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6324 do
6325         LIBS="$libs"
6326         cat >conftest.$ac_ext <<_ACEOF
6327 #line $LINENO "configure"
6328 /* confdefs.h.  */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h.  */
6333
6334 /* Override any gcc2 internal prototype to avoid an error.  */
6335 #ifdef __cplusplus
6336 extern "C"
6337 #endif
6338 /* We use char because int might match the return type of a gcc2
6339    builtin and then its argument prototype would still apply.  */
6340 char ldopen ();
6341 int
6342 main ()
6343 {
6344 ldopen ();
6345   ;
6346   return 0;
6347 }
6348 _ACEOF
6349 rm -f conftest.$ac_objext conftest$ac_exeext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6351   (eval $ac_link) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); } &&
6355          { ac_try='test -s conftest$ac_exeext'
6356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357   (eval $ac_try) 2>&5
6358   ac_status=$?
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); }; }; then
6361   gcc_cv_collect2_libs="$libs"; break
6362 else
6363   echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 fi
6367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6368 done
6369 LIBS="$save_LIBS"
6370 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6371 fi
6372 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6373 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6374 case $gcc_cv_collect2_libs in
6375         "none required")        ;;
6376         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6377 esac
6378
6379
6380 # When building Ada code on Alpha, we need exc_resume which is usually in
6381 # -lexc.  So test for it.
6382 save_LIBS="$LIBS"
6383 LIBS=
6384 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6385 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6386 if test "${ac_cv_search_exc_resume+set}" = set; then
6387   echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389   ac_func_search_save_LIBS=$LIBS
6390 ac_cv_search_exc_resume=no
6391 cat >conftest.$ac_ext <<_ACEOF
6392 #line $LINENO "configure"
6393 /* confdefs.h.  */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h.  */
6398
6399 /* Override any gcc2 internal prototype to avoid an error.  */
6400 #ifdef __cplusplus
6401 extern "C"
6402 #endif
6403 /* We use char because int might match the return type of a gcc2
6404    builtin and then its argument prototype would still apply.  */
6405 char exc_resume ();
6406 int
6407 main ()
6408 {
6409 exc_resume ();
6410   ;
6411   return 0;
6412 }
6413 _ACEOF
6414 rm -f conftest.$ac_objext conftest$ac_exeext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416   (eval $ac_link) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } &&
6420          { ac_try='test -s conftest$ac_exeext'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }; then
6426   ac_cv_search_exc_resume="none required"
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 fi
6432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6433 if test "$ac_cv_search_exc_resume" = no; then
6434   for ac_lib in exc; do
6435     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6436     cat >conftest.$ac_ext <<_ACEOF
6437 #line $LINENO "configure"
6438 /* confdefs.h.  */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h.  */
6443
6444 /* Override any gcc2 internal prototype to avoid an error.  */
6445 #ifdef __cplusplus
6446 extern "C"
6447 #endif
6448 /* We use char because int might match the return type of a gcc2
6449    builtin and then its argument prototype would still apply.  */
6450 char exc_resume ();
6451 int
6452 main ()
6453 {
6454 exc_resume ();
6455   ;
6456   return 0;
6457 }
6458 _ACEOF
6459 rm -f conftest.$ac_objext conftest$ac_exeext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461   (eval $ac_link) 2>&5
6462   ac_status=$?
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); } &&
6465          { ac_try='test -s conftest$ac_exeext'
6466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467   (eval $ac_try) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; }; then
6471   ac_cv_search_exc_resume="-l$ac_lib"
6472 break
6473 else
6474   echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6476
6477 fi
6478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6479   done
6480 fi
6481 LIBS=$ac_func_search_save_LIBS
6482 fi
6483 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6484 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6485 if test "$ac_cv_search_exc_resume" != no; then
6486   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6487
6488 fi
6489
6490 GNAT_LIBEXC="$LIBS"
6491 LIBS="$save_LIBS"
6492
6493
6494 # Some systems put ldexp and frexp in libm instead of libc; assume
6495 # they're both in the same place.  jcf-dump needs them.
6496 save_LIBS="$LIBS"
6497 LIBS=
6498 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6499 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6500 if test "${ac_cv_search_ldexp+set}" = set; then
6501   echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503   ac_func_search_save_LIBS=$LIBS
6504 ac_cv_search_ldexp=no
6505 cat >conftest.$ac_ext <<_ACEOF
6506 #line $LINENO "configure"
6507 /* confdefs.h.  */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h.  */
6512
6513 /* Override any gcc2 internal prototype to avoid an error.  */
6514 #ifdef __cplusplus
6515 extern "C"
6516 #endif
6517 /* We use char because int might match the return type of a gcc2
6518    builtin and then its argument prototype would still apply.  */
6519 char ldexp ();
6520 int
6521 main ()
6522 {
6523 ldexp ();
6524   ;
6525   return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530   (eval $ac_link) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); } &&
6534          { ac_try='test -s conftest$ac_exeext'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   ac_cv_search_ldexp="none required"
6541 else
6542   echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 fi
6546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6547 if test "$ac_cv_search_ldexp" = no; then
6548   for ac_lib in m; do
6549     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6550     cat >conftest.$ac_ext <<_ACEOF
6551 #line $LINENO "configure"
6552 /* confdefs.h.  */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h.  */
6557
6558 /* Override any gcc2 internal prototype to avoid an error.  */
6559 #ifdef __cplusplus
6560 extern "C"
6561 #endif
6562 /* We use char because int might match the return type of a gcc2
6563    builtin and then its argument prototype would still apply.  */
6564 char ldexp ();
6565 int
6566 main ()
6567 {
6568 ldexp ();
6569   ;
6570   return 0;
6571 }
6572 _ACEOF
6573 rm -f conftest.$ac_objext conftest$ac_exeext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575   (eval $ac_link) 2>&5
6576   ac_status=$?
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); } &&
6579          { ac_try='test -s conftest$ac_exeext'
6580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581   (eval $ac_try) 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); }; }; then
6585   ac_cv_search_ldexp="-l$ac_lib"
6586 break
6587 else
6588   echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6590
6591 fi
6592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6593   done
6594 fi
6595 LIBS=$ac_func_search_save_LIBS
6596 fi
6597 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6598 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6599 if test "$ac_cv_search_ldexp" != no; then
6600   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6601
6602 fi
6603
6604 LDEXP_LIB="$LIBS"
6605 LIBS="$save_LIBS"
6606
6607
6608 # Use <inttypes.h> only if it exists,
6609 # doesn't clash with <sys/types.h>, and declares intmax_t.
6610 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6611 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6612 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6613   echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615   cat >conftest.$ac_ext <<_ACEOF
6616 #line $LINENO "configure"
6617 /* confdefs.h.  */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h.  */
6622 #include <sys/types.h>
6623 #include <inttypes.h>
6624 int
6625 main ()
6626 {
6627 intmax_t i = -1;
6628   ;
6629   return 0;
6630 }
6631 _ACEOF
6632 rm -f conftest.$ac_objext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6634   (eval $ac_compile) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); } &&
6638          { ac_try='test -s conftest.$ac_objext'
6639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640   (eval $ac_try) 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); }; }; then
6644   gcc_cv_header_inttypes_h=yes
6645 else
6646   echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 gcc_cv_header_inttypes_h=no
6650 fi
6651 rm -f conftest.$ac_objext conftest.$ac_ext
6652 fi
6653
6654 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6655 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6656 if test $gcc_cv_header_inttypes_h = yes; then
6657
6658 cat >>confdefs.h <<\_ACEOF
6659 #define HAVE_INTTYPES_H 1
6660 _ACEOF
6661
6662 fi
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6691         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6692         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6693         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6694         setlocale
6695 do
6696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6697 echo "$as_me:$LINENO: checking for $ac_func" >&5
6698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6699 if eval "test \"\${$as_ac_var+set}\" = set"; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702   cat >conftest.$ac_ext <<_ACEOF
6703 #line $LINENO "configure"
6704 /* confdefs.h.  */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h.  */
6709 /* System header to define __stub macros and hopefully few prototypes,
6710     which can conflict with char $ac_func (); below.
6711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6712     <limits.h> exists even on freestanding compilers.  */
6713 #ifdef __STDC__
6714 # include <limits.h>
6715 #else
6716 # include <assert.h>
6717 #endif
6718 /* Override any gcc2 internal prototype to avoid an error.  */
6719 #ifdef __cplusplus
6720 extern "C"
6721 {
6722 #endif
6723 /* We use char because int might match the return type of a gcc2
6724    builtin and then its argument prototype would still apply.  */
6725 char $ac_func ();
6726 /* The GNU C library defines this for functions which it implements
6727     to always fail with ENOSYS.  Some functions are actually named
6728     something starting with __ and the normal name is an alias.  */
6729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6730 choke me
6731 #else
6732 char (*f) () = $ac_func;
6733 #endif
6734 #ifdef __cplusplus
6735 }
6736 #endif
6737
6738 int
6739 main ()
6740 {
6741 return f != $ac_func;
6742   ;
6743   return 0;
6744 }
6745 _ACEOF
6746 rm -f conftest.$ac_objext conftest$ac_exeext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6748   (eval $ac_link) 2>&5
6749   ac_status=$?
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); } &&
6752          { ac_try='test -s conftest$ac_exeext'
6753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754   (eval $ac_try) 2>&5
6755   ac_status=$?
6756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757   (exit $ac_status); }; }; then
6758   eval "$as_ac_var=yes"
6759 else
6760   echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 eval "$as_ac_var=no"
6764 fi
6765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6766 fi
6767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6769 if test `eval echo '${'$as_ac_var'}'` = yes; then
6770   cat >>confdefs.h <<_ACEOF
6771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6772 _ACEOF
6773
6774 fi
6775 done
6776
6777
6778 if test x$ac_cv_func_mbstowcs = xyes; then
6779   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6780 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6781 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784       if test "$cross_compiling" = yes; then
6785   gcc_cv_func_mbstowcs_works=yes
6786 else
6787   cat >conftest.$ac_ext <<_ACEOF
6788 #line $LINENO "configure"
6789 /* confdefs.h.  */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h.  */
6794 #include <stdlib.h>
6795 int main()
6796 {
6797   mbstowcs(0, "", 0);
6798   return 0;
6799 }
6800 _ACEOF
6801 rm -f conftest$ac_exeext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6803   (eval $ac_link) 2>&5
6804   ac_status=$?
6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808   (eval $ac_try) 2>&5
6809   ac_status=$?
6810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811   (exit $ac_status); }; }; then
6812   gcc_cv_func_mbstowcs_works=yes
6813 else
6814   echo "$as_me: program exited with status $ac_status" >&5
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818 ( exit $ac_status )
6819 gcc_cv_func_mbstowcs_works=no
6820 fi
6821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6822 fi
6823 fi
6824 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6825 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6826   if test x$gcc_cv_func_mbstowcs_works = xyes; then
6827
6828 cat >>confdefs.h <<\_ACEOF
6829 #define HAVE_WORKING_MBSTOWCS 1
6830 _ACEOF
6831
6832   fi
6833 fi
6834
6835 echo "$as_me:$LINENO: checking for ssize_t" >&5
6836 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6837 if test "${ac_cv_type_ssize_t+set}" = set; then
6838   echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840   cat >conftest.$ac_ext <<_ACEOF
6841 #line $LINENO "configure"
6842 /* confdefs.h.  */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h.  */
6847 $ac_includes_default
6848 int
6849 main ()
6850 {
6851 if ((ssize_t *) 0)
6852   return 0;
6853 if (sizeof (ssize_t))
6854   return 0;
6855   ;
6856   return 0;
6857 }
6858 _ACEOF
6859 rm -f conftest.$ac_objext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861   (eval $ac_compile) 2>&5
6862   ac_status=$?
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); } &&
6865          { ac_try='test -s conftest.$ac_objext'
6866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867   (eval $ac_try) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); }; }; then
6871   ac_cv_type_ssize_t=yes
6872 else
6873   echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6875
6876 ac_cv_type_ssize_t=no
6877 fi
6878 rm -f conftest.$ac_objext conftest.$ac_ext
6879 fi
6880 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6881 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6882 if test $ac_cv_type_ssize_t = yes; then
6883   :
6884 else
6885
6886 cat >>confdefs.h <<_ACEOF
6887 #define ssize_t int
6888 _ACEOF
6889
6890 fi
6891
6892
6893 # Try to determine the array type of the second argument of getgroups
6894 # for the target system (int or gid_t).
6895 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6896 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6897 if test "${ac_cv_type_uid_t+set}" = set; then
6898   echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900   cat >conftest.$ac_ext <<_ACEOF
6901 #line $LINENO "configure"
6902 /* confdefs.h.  */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h.  */
6907 #include <sys/types.h>
6908
6909 _ACEOF
6910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6911   $EGREP "uid_t" >/dev/null 2>&1; then
6912   ac_cv_type_uid_t=yes
6913 else
6914   ac_cv_type_uid_t=no
6915 fi
6916 rm -f conftest*
6917
6918 fi
6919 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6920 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6921 if test $ac_cv_type_uid_t = no; then
6922
6923 cat >>confdefs.h <<\_ACEOF
6924 #define uid_t int
6925 _ACEOF
6926
6927
6928 cat >>confdefs.h <<\_ACEOF
6929 #define gid_t int
6930 _ACEOF
6931
6932 fi
6933
6934 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6935 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6936 if test "${ac_cv_type_getgroups+set}" = set; then
6937   echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939   if test "$cross_compiling" = yes; then
6940   ac_cv_type_getgroups=cross
6941 else
6942   cat >conftest.$ac_ext <<_ACEOF
6943 #line $LINENO "configure"
6944 /* confdefs.h.  */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h.  */
6949 /* Thanks to Mike Rendell for this test.  */
6950 #include <sys/types.h>
6951 #define NGID 256
6952 #undef MAX
6953 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6954
6955 int
6956 main ()
6957 {
6958   gid_t gidset[NGID];
6959   int i, n;
6960   union { gid_t gval; long lval; }  val;
6961
6962   val.lval = -1;
6963   for (i = 0; i < NGID; i++)
6964     gidset[i] = val.gval;
6965   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6966                  gidset);
6967   /* Exit non-zero if getgroups seems to require an array of ints.  This
6968      happens when gid_t is short but getgroups modifies an array of ints.  */
6969   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6970 }
6971 _ACEOF
6972 rm -f conftest$ac_exeext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974   (eval $ac_link) 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979   (eval $ac_try) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); }; }; then
6983   ac_cv_type_getgroups=gid_t
6984 else
6985   echo "$as_me: program exited with status $ac_status" >&5
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6988
6989 ( exit $ac_status )
6990 ac_cv_type_getgroups=int
6991 fi
6992 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6993 fi
6994 if test $ac_cv_type_getgroups = cross; then
6995         cat >conftest.$ac_ext <<_ACEOF
6996 #line $LINENO "configure"
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002 #include <unistd.h>
7003
7004 _ACEOF
7005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7006   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7007   ac_cv_type_getgroups=gid_t
7008 else
7009   ac_cv_type_getgroups=int
7010 fi
7011 rm -f conftest*
7012
7013 fi
7014 fi
7015 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7016 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7017
7018 cat >>confdefs.h <<_ACEOF
7019 #define GETGROUPS_T $ac_cv_type_getgroups
7020 _ACEOF
7021
7022
7023 if test "${target}" = "${build}"; then
7024   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7025 else
7026   case "${target}" in
7027         # This condition may need some tweaking.  It should include all
7028         # targets where the array type of the second argument of getgroups
7029         # is int and the type of gid_t is not equivalent to int.
7030         *-*-sunos* | *-*-ultrix*)
7031                 TARGET_GETGROUPS_T=int
7032                 ;;
7033         *)
7034                 TARGET_GETGROUPS_T=gid_t
7035                 ;;
7036   esac
7037 fi
7038
7039
7040 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7041 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7042 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   if test "$cross_compiling" = yes; then
7046   gcc_cv_func_printf_ptr=no
7047 else
7048   cat >conftest.$ac_ext <<_ACEOF
7049 #line $LINENO "configure"
7050 /* confdefs.h.  */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h.  */
7055 #include <stdio.h>
7056
7057 int main()
7058 {
7059   char buf[64];
7060   char *p = buf, *q = NULL;
7061   sprintf(buf, "%p", p);
7062   sscanf(buf, "%p", &q);
7063   return (p != q);
7064 }
7065 _ACEOF
7066 rm -f conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068   (eval $ac_link) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073   (eval $ac_try) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); }; }; then
7077   gcc_cv_func_printf_ptr=yes
7078 else
7079   echo "$as_me: program exited with status $ac_status" >&5
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 ( exit $ac_status )
7084 gcc_cv_func_printf_ptr=no
7085 fi
7086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7087 fi
7088 rm -f core core.* *.core
7089 fi
7090 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7091 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7092 if test $gcc_cv_func_printf_ptr = yes ; then
7093
7094 cat >>confdefs.h <<\_ACEOF
7095 #define HAVE_PRINTF_PTR 1
7096 _ACEOF
7097
7098 fi
7099
7100 if test $ac_cv_header_sys_mman_h != yes \
7101  || test $ac_cv_func_mmap != yes; then
7102    gcc_cv_func_mmap_file=no
7103    gcc_cv_func_mmap_dev_zero=no
7104    gcc_cv_func_mmap_anon=no
7105 else
7106    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7107 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7108 if test "${gcc_cv_func_mmap_file+set}" = set; then
7109   echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111   # Add a system to this blacklist if
7112    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7113    # memory area containing the same data that you'd get if you applied
7114    # read() to the same fd.  The only system known to have a problem here
7115    # is VMS, where text files have record structure.
7116    case "$host_os" in
7117      vms* | ultrix*)
7118         gcc_cv_func_mmap_file=no ;;
7119      *)
7120         gcc_cv_func_mmap_file=yes;;
7121    esac
7122 fi
7123 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7124 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7125    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7126 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7127 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   # Add a system to this blacklist if it has mmap() but /dev/zero
7131    # does not exist, or if mmapping /dev/zero does not give anonymous
7132    # zeroed pages with both the following properties:
7133    # 1. If you map N consecutive pages in with one call, and then
7134    #    unmap any subset of those pages, the pages that were not
7135    #    explicitly unmapped remain accessible.
7136    # 2. If you map two adjacent blocks of memory and then unmap them
7137    #    both at once, they must both go away.
7138    # Systems known to be in this category are Windows (all variants),
7139    # VMS, and Darwin.
7140    case "$host_os" in
7141      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7142         gcc_cv_func_mmap_dev_zero=no ;;
7143      *)
7144         gcc_cv_func_mmap_dev_zero=yes;;
7145    esac
7146 fi
7147 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7148 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7149
7150    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7151    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7152 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7153 if test "${gcc_cv_decl_map_anon+set}" = set; then
7154   echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156   cat >conftest.$ac_ext <<_ACEOF
7157 #line $LINENO "configure"
7158 /* confdefs.h.  */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h.  */
7163 #include <sys/types.h>
7164 #include <sys/mman.h>
7165 #include <unistd.h>
7166
7167 #ifndef MAP_ANONYMOUS
7168 #define MAP_ANONYMOUS MAP_ANON
7169 #endif
7170
7171 int
7172 main ()
7173 {
7174 int n = MAP_ANONYMOUS;
7175   ;
7176   return 0;
7177 }
7178 _ACEOF
7179 rm -f conftest.$ac_objext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7181   (eval $ac_compile) 2>&5
7182   ac_status=$?
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); } &&
7185          { ac_try='test -s conftest.$ac_objext'
7186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187   (eval $ac_try) 2>&5
7188   ac_status=$?
7189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); }; }; then
7191   gcc_cv_decl_map_anon=yes
7192 else
7193   echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7195
7196 gcc_cv_decl_map_anon=no
7197 fi
7198 rm -f conftest.$ac_objext conftest.$ac_ext
7199 fi
7200 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7201 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7202
7203    if test $gcc_cv_decl_map_anon = no; then
7204      gcc_cv_func_mmap_anon=no
7205    else
7206      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7207 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7208 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7209   echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211   # Add a system to this blacklist if it has mmap() and MAP_ANON or
7212    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7213    # doesn't give anonymous zeroed pages with the same properties listed
7214    # above for use of /dev/zero.
7215    # Systems known to be in this category are Windows, VMS, and SCO Unix.
7216    case "$host_os" in
7217      vms* | cygwin* | pe | mingw* | sco* | udk* )
7218         gcc_cv_func_mmap_anon=no ;;
7219      *)
7220         gcc_cv_func_mmap_anon=yes;;
7221    esac
7222 fi
7223 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7224 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7225    fi
7226 fi
7227
7228 if test $gcc_cv_func_mmap_file = yes; then
7229
7230 cat >>confdefs.h <<\_ACEOF
7231 #define HAVE_MMAP_FILE 1
7232 _ACEOF
7233
7234 fi
7235 if test $gcc_cv_func_mmap_dev_zero = yes; then
7236
7237 cat >>confdefs.h <<\_ACEOF
7238 #define HAVE_MMAP_DEV_ZERO 1
7239 _ACEOF
7240
7241 fi
7242 if test $gcc_cv_func_mmap_anon = yes; then
7243
7244 cat >>confdefs.h <<\_ACEOF
7245 #define HAVE_MMAP_ANON 1
7246 _ACEOF
7247
7248 fi
7249
7250
7251 case "${host}" in
7252 *-*-*vms*)
7253   # Under VMS, vfork works very differently than on Unix. The standard test
7254   # won't work, and it isn't easily adaptable. It makes more sense to
7255   # just force it.
7256   ac_cv_func_vfork_works=yes
7257   ;;
7258 esac
7259 echo "$as_me:$LINENO: checking for pid_t" >&5
7260 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7261 if test "${ac_cv_type_pid_t+set}" = set; then
7262   echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264   cat >conftest.$ac_ext <<_ACEOF
7265 #line $LINENO "configure"
7266 /* confdefs.h.  */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h.  */
7271 $ac_includes_default
7272 int
7273 main ()
7274 {
7275 if ((pid_t *) 0)
7276   return 0;
7277 if (sizeof (pid_t))
7278   return 0;
7279   ;
7280   return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285   (eval $ac_compile) 2>&5
7286   ac_status=$?
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); } &&
7289          { ac_try='test -s conftest.$ac_objext'
7290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291   (eval $ac_try) 2>&5
7292   ac_status=$?
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); }; }; then
7295   ac_cv_type_pid_t=yes
7296 else
7297   echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7299
7300 ac_cv_type_pid_t=no
7301 fi
7302 rm -f conftest.$ac_objext conftest.$ac_ext
7303 fi
7304 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7305 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7306 if test $ac_cv_type_pid_t = yes; then
7307   :
7308 else
7309
7310 cat >>confdefs.h <<_ACEOF
7311 #define pid_t int
7312 _ACEOF
7313
7314 fi
7315
7316
7317
7318 for ac_header in unistd.h vfork.h
7319 do
7320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7322   echo "$as_me:$LINENO: checking for $ac_header" >&5
7323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7325   echo $ECHO_N "(cached) $ECHO_C" >&6
7326 fi
7327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7329 else
7330   # Is the header compilable?
7331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7333 cat >conftest.$ac_ext <<_ACEOF
7334 #line $LINENO "configure"
7335 /* confdefs.h.  */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h.  */
7340 $ac_includes_default
7341 #include <$ac_header>
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345   (eval $ac_compile) 2>&5
7346   ac_status=$?
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); } &&
7349          { ac_try='test -s conftest.$ac_objext'
7350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351   (eval $ac_try) 2>&5
7352   ac_status=$?
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); }; }; then
7355   ac_header_compiler=yes
7356 else
7357   echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7359
7360 ac_header_compiler=no
7361 fi
7362 rm -f conftest.$ac_objext conftest.$ac_ext
7363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7364 echo "${ECHO_T}$ac_header_compiler" >&6
7365
7366 # Is the header present?
7367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7369 cat >conftest.$ac_ext <<_ACEOF
7370 #line $LINENO "configure"
7371 /* confdefs.h.  */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h.  */
7376 #include <$ac_header>
7377 _ACEOF
7378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7379   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7380   ac_status=$?
7381   grep -v '^ *+' conftest.er1 >conftest.err
7382   rm -f conftest.er1
7383   cat conftest.err >&5
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); } >/dev/null; then
7386   if test -s conftest.err; then
7387     ac_cpp_err=$ac_c_preproc_warn_flag
7388   else
7389     ac_cpp_err=
7390   fi
7391 else
7392   ac_cpp_err=yes
7393 fi
7394 if test -z "$ac_cpp_err"; then
7395   ac_header_preproc=yes
7396 else
7397   echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7399
7400   ac_header_preproc=no
7401 fi
7402 rm -f conftest.err conftest.$ac_ext
7403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7404 echo "${ECHO_T}$ac_header_preproc" >&6
7405
7406 # So?  What about this header?
7407 case $ac_header_compiler:$ac_header_preproc in
7408   yes:no )
7409     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7413     (
7414       cat <<\_ASBOX
7415 ## ------------------------------------ ##
7416 ## Report this to bug-autoconf@gnu.org. ##
7417 ## ------------------------------------ ##
7418 _ASBOX
7419     ) |
7420       sed "s/^/$as_me: WARNING:     /" >&2
7421     ;;
7422   no:yes )
7423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7425     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7429     (
7430       cat <<\_ASBOX
7431 ## ------------------------------------ ##
7432 ## Report this to bug-autoconf@gnu.org. ##
7433 ## ------------------------------------ ##
7434 _ASBOX
7435     ) |
7436       sed "s/^/$as_me: WARNING:     /" >&2
7437     ;;
7438 esac
7439 echo "$as_me:$LINENO: checking for $ac_header" >&5
7440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   eval "$as_ac_Header=$ac_header_preproc"
7445 fi
7446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7448
7449 fi
7450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7451   cat >>confdefs.h <<_ACEOF
7452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7453 _ACEOF
7454
7455 fi
7456
7457 done
7458
7459
7460
7461 for ac_func in fork vfork
7462 do
7463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7464 echo "$as_me:$LINENO: checking for $ac_func" >&5
7465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7466 if eval "test \"\${$as_ac_var+set}\" = set"; then
7467   echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469   cat >conftest.$ac_ext <<_ACEOF
7470 #line $LINENO "configure"
7471 /* confdefs.h.  */
7472 _ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h.  */
7476 /* System header to define __stub macros and hopefully few prototypes,
7477     which can conflict with char $ac_func (); below.
7478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7479     <limits.h> exists even on freestanding compilers.  */
7480 #ifdef __STDC__
7481 # include <limits.h>
7482 #else
7483 # include <assert.h>
7484 #endif
7485 /* Override any gcc2 internal prototype to avoid an error.  */
7486 #ifdef __cplusplus
7487 extern "C"
7488 {
7489 #endif
7490 /* We use char because int might match the return type of a gcc2
7491    builtin and then its argument prototype would still apply.  */
7492 char $ac_func ();
7493 /* The GNU C library defines this for functions which it implements
7494     to always fail with ENOSYS.  Some functions are actually named
7495     something starting with __ and the normal name is an alias.  */
7496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7497 choke me
7498 #else
7499 char (*f) () = $ac_func;
7500 #endif
7501 #ifdef __cplusplus
7502 }
7503 #endif
7504
7505 int
7506 main ()
7507 {
7508 return f != $ac_func;
7509   ;
7510   return 0;
7511 }
7512 _ACEOF
7513 rm -f conftest.$ac_objext conftest$ac_exeext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7515   (eval $ac_link) 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); } &&
7519          { ac_try='test -s conftest$ac_exeext'
7520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521   (eval $ac_try) 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); }; }; then
7525   eval "$as_ac_var=yes"
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530 eval "$as_ac_var=no"
7531 fi
7532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7533 fi
7534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7536 if test `eval echo '${'$as_ac_var'}'` = yes; then
7537   cat >>confdefs.h <<_ACEOF
7538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7539 _ACEOF
7540
7541 fi
7542 done
7543
7544 if test "x$ac_cv_func_fork" = xyes; then
7545   echo "$as_me:$LINENO: checking for working fork" >&5
7546 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7547 if test "${ac_cv_func_fork_works+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   if test "$cross_compiling" = yes; then
7551   ac_cv_func_fork_works=cross
7552 else
7553   cat >conftest.$ac_ext <<_ACEOF
7554 /* By Ruediger Kuhlmann. */
7555       #include <sys/types.h>
7556       #if HAVE_UNISTD_H
7557       # include <unistd.h>
7558       #endif
7559       /* Some systems only have a dummy stub for fork() */
7560       int main ()
7561       {
7562         if (fork() < 0)
7563           exit (1);
7564         exit (0);
7565       }
7566 _ACEOF
7567 rm -f conftest$ac_exeext
7568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7569   (eval $ac_link) 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574   (eval $ac_try) 2>&5
7575   ac_status=$?
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); }; }; then
7578   ac_cv_func_fork_works=yes
7579 else
7580   echo "$as_me: program exited with status $ac_status" >&5
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7583
7584 ( exit $ac_status )
7585 ac_cv_func_fork_works=no
7586 fi
7587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7588 fi
7589 fi
7590 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7591 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7592
7593 else
7594   ac_cv_func_fork_works=$ac_cv_func_fork
7595 fi
7596 if test "x$ac_cv_func_fork_works" = xcross; then
7597   case $host in
7598     *-*-amigaos* | *-*-msdosdjgpp*)
7599       # Override, as these systems have only a dummy fork() stub
7600       ac_cv_func_fork_works=no
7601       ;;
7602     *)
7603       ac_cv_func_fork_works=yes
7604       ;;
7605   esac
7606   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7607 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7608 fi
7609 ac_cv_func_vfork_works=$ac_cv_func_vfork
7610 if test "x$ac_cv_func_vfork" = xyes; then
7611   echo "$as_me:$LINENO: checking for working vfork" >&5
7612 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7613 if test "${ac_cv_func_vfork_works+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   if test "$cross_compiling" = yes; then
7617   ac_cv_func_vfork_works=cross
7618 else
7619   cat >conftest.$ac_ext <<_ACEOF
7620 #line $LINENO "configure"
7621 /* confdefs.h.  */
7622 _ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h.  */
7626 /* Thanks to Paul Eggert for this test.  */
7627 #include <stdio.h>
7628 #include <stdlib.h>
7629 #include <sys/types.h>
7630 #include <sys/stat.h>
7631 #include <sys/wait.h>
7632 #if HAVE_UNISTD_H
7633 # include <unistd.h>
7634 #endif
7635 #if HAVE_VFORK_H
7636 # include <vfork.h>
7637 #endif
7638 /* On some sparc systems, changes by the child to local and incoming
7639    argument registers are propagated back to the parent.  The compiler
7640    is told about this with #include <vfork.h>, but some compilers
7641    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7642    static variable whose address is put into a register that is
7643    clobbered by the vfork.  */
7644 static void
7645 #ifdef __cplusplus
7646 sparc_address_test (int arg)
7647 # else
7648 sparc_address_test (arg) int arg;
7649 #endif
7650 {
7651   static pid_t child;
7652   if (!child) {
7653     child = vfork ();
7654     if (child < 0) {
7655       perror ("vfork");
7656       _exit(2);
7657     }
7658     if (!child) {
7659       arg = getpid();
7660       write(-1, "", 0);
7661       _exit (arg);
7662     }
7663   }
7664 }
7665
7666 int
7667 main ()
7668 {
7669   pid_t parent = getpid ();
7670   pid_t child;
7671
7672   sparc_address_test (0);
7673
7674   child = vfork ();
7675
7676   if (child == 0) {
7677     /* Here is another test for sparc vfork register problems.  This
7678        test uses lots of local variables, at least as many local
7679        variables as main has allocated so far including compiler
7680        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7681        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7682        reuse the register of parent for one of the local variables,
7683        since it will think that parent can't possibly be used any more
7684        in this routine.  Assigning to the local variable will thus
7685        munge parent in the parent process.  */
7686     pid_t
7687       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7688       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7689     /* Convince the compiler that p..p7 are live; otherwise, it might
7690        use the same hardware register for all 8 local variables.  */
7691     if (p != p1 || p != p2 || p != p3 || p != p4
7692         || p != p5 || p != p6 || p != p7)
7693       _exit(1);
7694
7695     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7696        from child file descriptors.  If the child closes a descriptor
7697        before it execs or exits, this munges the parent's descriptor
7698        as well.  Test for this by closing stdout in the child.  */
7699     _exit(close(fileno(stdout)) != 0);
7700   } else {
7701     int status;
7702     struct stat st;
7703
7704     while (wait(&status) != child)
7705       ;
7706     exit(
7707          /* Was there some problem with vforking?  */
7708          child < 0
7709
7710          /* Did the child fail?  (This shouldn't happen.)  */
7711          || status
7712
7713          /* Did the vfork/compiler bug occur?  */
7714          || parent != getpid()
7715
7716          /* Did the file descriptor bug occur?  */
7717          || fstat(fileno(stdout), &st) != 0
7718          );
7719   }
7720 }
7721 _ACEOF
7722 rm -f conftest$ac_exeext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724   (eval $ac_link) 2>&5
7725   ac_status=$?
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729   (eval $ac_try) 2>&5
7730   ac_status=$?
7731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); }; }; then
7733   ac_cv_func_vfork_works=yes
7734 else
7735   echo "$as_me: program exited with status $ac_status" >&5
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7738
7739 ( exit $ac_status )
7740 ac_cv_func_vfork_works=no
7741 fi
7742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7743 fi
7744 fi
7745 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7746 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7747
7748 fi;
7749 if test "x$ac_cv_func_fork_works" = xcross; then
7750   ac_cv_func_vfork_works=ac_cv_func_vfork
7751   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7752 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7753 fi
7754
7755 if test "x$ac_cv_func_vfork_works" = xyes; then
7756
7757 cat >>confdefs.h <<\_ACEOF
7758 #define HAVE_WORKING_VFORK 1
7759 _ACEOF
7760
7761 else
7762
7763 cat >>confdefs.h <<\_ACEOF
7764 #define vfork fork
7765 _ACEOF
7766
7767 fi
7768 if test "x$ac_cv_func_fork_works" = xyes; then
7769
7770 cat >>confdefs.h <<\_ACEOF
7771 #define HAVE_WORKING_FORK 1
7772 _ACEOF
7773
7774 fi
7775
7776
7777
7778
7779   am_cv_lib_iconv_ldpath=
7780
7781 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7782 if test "${with_libiconv_prefix+set}" = set; then
7783   withval="$with_libiconv_prefix"
7784
7785     for dir in `echo "$withval" | tr : ' '`; do
7786       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7787       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7788     done
7789
7790 fi;
7791
7792
7793 for ac_header in iconv.h
7794 do
7795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7797   echo "$as_me:$LINENO: checking for $ac_header" >&5
7798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 fi
7802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7804 else
7805   # Is the header compilable?
7806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7808 cat >conftest.$ac_ext <<_ACEOF
7809 #line $LINENO "configure"
7810 /* confdefs.h.  */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h.  */
7815 $ac_includes_default
7816 #include <$ac_header>
7817 _ACEOF
7818 rm -f conftest.$ac_objext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820   (eval $ac_compile) 2>&5
7821   ac_status=$?
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); } &&
7824          { ac_try='test -s conftest.$ac_objext'
7825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826   (eval $ac_try) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; }; then
7830   ac_header_compiler=yes
7831 else
7832   echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835 ac_header_compiler=no
7836 fi
7837 rm -f conftest.$ac_objext conftest.$ac_ext
7838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7839 echo "${ECHO_T}$ac_header_compiler" >&6
7840
7841 # Is the header present?
7842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7844 cat >conftest.$ac_ext <<_ACEOF
7845 #line $LINENO "configure"
7846 /* confdefs.h.  */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h.  */
7851 #include <$ac_header>
7852 _ACEOF
7853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7855   ac_status=$?
7856   grep -v '^ *+' conftest.er1 >conftest.err
7857   rm -f conftest.er1
7858   cat conftest.err >&5
7859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); } >/dev/null; then
7861   if test -s conftest.err; then
7862     ac_cpp_err=$ac_c_preproc_warn_flag
7863   else
7864     ac_cpp_err=
7865   fi
7866 else
7867   ac_cpp_err=yes
7868 fi
7869 if test -z "$ac_cpp_err"; then
7870   ac_header_preproc=yes
7871 else
7872   echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7874
7875   ac_header_preproc=no
7876 fi
7877 rm -f conftest.err conftest.$ac_ext
7878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7879 echo "${ECHO_T}$ac_header_preproc" >&6
7880
7881 # So?  What about this header?
7882 case $ac_header_compiler:$ac_header_preproc in
7883   yes:no )
7884     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7888     (
7889       cat <<\_ASBOX
7890 ## ------------------------------------ ##
7891 ## Report this to bug-autoconf@gnu.org. ##
7892 ## ------------------------------------ ##
7893 _ASBOX
7894     ) |
7895       sed "s/^/$as_me: WARNING:     /" >&2
7896     ;;
7897   no:yes )
7898     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7900     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7904     (
7905       cat <<\_ASBOX
7906 ## ------------------------------------ ##
7907 ## Report this to bug-autoconf@gnu.org. ##
7908 ## ------------------------------------ ##
7909 _ASBOX
7910     ) |
7911       sed "s/^/$as_me: WARNING:     /" >&2
7912     ;;
7913 esac
7914 echo "$as_me:$LINENO: checking for $ac_header" >&5
7915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919   eval "$as_ac_Header=$ac_header_preproc"
7920 fi
7921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7923
7924 fi
7925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7926   cat >>confdefs.h <<_ACEOF
7927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7928 _ACEOF
7929
7930 fi
7931
7932 done
7933
7934
7935   echo "$as_me:$LINENO: checking for iconv" >&5
7936 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7937 if test "${am_cv_func_iconv+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940
7941     am_cv_func_iconv="no, consider installing GNU libiconv"
7942     am_cv_lib_iconv=no
7943     cat >conftest.$ac_ext <<_ACEOF
7944 #line $LINENO "configure"
7945 /* confdefs.h.  */
7946 _ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h.  */
7950 #include <stdlib.h>
7951 #include <iconv.h>
7952 int
7953 main ()
7954 {
7955 iconv_t cd = iconv_open("","");
7956        iconv(cd,NULL,NULL,NULL,NULL);
7957        iconv_close(cd);
7958   ;
7959   return 0;
7960 }
7961 _ACEOF
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964   (eval $ac_link) 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); } &&
7968          { ac_try='test -s conftest$ac_exeext'
7969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970   (eval $ac_try) 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); }; }; then
7974   am_cv_func_iconv=yes
7975 else
7976   echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7978
7979 fi
7980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7981     if test "$am_cv_func_iconv" != yes; then
7982       am_save_LIBS="$LIBS"
7983       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7984       cat >conftest.$ac_ext <<_ACEOF
7985 #line $LINENO "configure"
7986 /* confdefs.h.  */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h.  */
7991 #include <stdlib.h>
7992 #include <iconv.h>
7993 int
7994 main ()
7995 {
7996 iconv_t cd = iconv_open("","");
7997          iconv(cd,NULL,NULL,NULL,NULL);
7998          iconv_close(cd);
7999   ;
8000   return 0;
8001 }
8002 _ACEOF
8003 rm -f conftest.$ac_objext conftest$ac_exeext
8004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8005   (eval $ac_link) 2>&5
8006   ac_status=$?
8007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008   (exit $ac_status); } &&
8009          { ac_try='test -s conftest$ac_exeext'
8010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011   (eval $ac_try) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); }; }; then
8015   am_cv_lib_iconv=yes
8016         am_cv_func_iconv=yes
8017 else
8018   echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8020
8021 fi
8022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8023       LIBS="$am_save_LIBS"
8024     fi
8025
8026 fi
8027 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8028 echo "${ECHO_T}$am_cv_func_iconv" >&6
8029   if test "$am_cv_func_iconv" = yes; then
8030
8031 cat >>confdefs.h <<\_ACEOF
8032 #define HAVE_ICONV 1
8033 _ACEOF
8034
8035     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8036 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8037     if test "${am_cv_proto_iconv+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040
8041       cat >conftest.$ac_ext <<_ACEOF
8042 #line $LINENO "configure"
8043 /* confdefs.h.  */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h.  */
8048
8049 #include <stdlib.h>
8050 #include <iconv.h>
8051 extern
8052 #ifdef __cplusplus
8053 "C"
8054 #endif
8055 #if defined(__STDC__) || defined(__cplusplus)
8056 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8057 #else
8058 size_t iconv();
8059 #endif
8060
8061 int
8062 main ()
8063 {
8064
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8071   (eval $ac_compile) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); } &&
8075          { ac_try='test -s conftest.$ac_objext'
8076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077   (eval $ac_try) 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); }; }; then
8081   am_cv_proto_iconv_arg1=""
8082 else
8083   echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086 am_cv_proto_iconv_arg1="const"
8087 fi
8088 rm -f conftest.$ac_objext conftest.$ac_ext
8089       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);"
8090 fi
8091
8092     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8093     echo "$as_me:$LINENO: result: ${ac_t:-
8094          }$am_cv_proto_iconv" >&5
8095 echo "${ECHO_T}${ac_t:-
8096          }$am_cv_proto_iconv" >&6
8097
8098 cat >>confdefs.h <<_ACEOF
8099 #define ICONV_CONST $am_cv_proto_iconv_arg1
8100 _ACEOF
8101
8102   fi
8103   LIBICONV=
8104   if test "$am_cv_lib_iconv" = yes; then
8105     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8106   fi
8107
8108
8109 # Until we have in-tree GNU iconv:
8110 LIBICONV_DEP=
8111
8112
8113
8114   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8115 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8116 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8117   echo $ECHO_N "(cached) $ECHO_C" >&6
8118 else
8119   cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 /* confdefs.h.  */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h.  */
8126 #include <locale.h>
8127 int
8128 main ()
8129 {
8130 return LC_MESSAGES
8131   ;
8132   return 0;
8133 }
8134 _ACEOF
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8137   (eval $ac_link) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); } &&
8141          { ac_try='test -s conftest$ac_exeext'
8142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143   (eval $ac_try) 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; }; then
8147   am_cv_val_LC_MESSAGES=yes
8148 else
8149   echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8151
8152 am_cv_val_LC_MESSAGES=no
8153 fi
8154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8155 fi
8156 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8157 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8158   if test $am_cv_val_LC_MESSAGES = yes; then
8159
8160 cat >>confdefs.h <<\_ACEOF
8161 #define HAVE_LC_MESSAGES 1
8162 _ACEOF
8163
8164   fi
8165
8166
8167 # We will need to find libiberty.h and ansidecl.h
8168 saved_CFLAGS="$CFLAGS"
8169 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8170 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8171         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8172         fprintf_unlocked strstr errno snprintf vasprintf \
8173         malloc realloc calloc free basename getopt clock
8174 do
8175   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8176 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8177 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8178 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181   cat >conftest.$ac_ext <<_ACEOF
8182 #line $LINENO "configure"
8183 /* confdefs.h.  */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h.  */
8188 #undef $ac_tr_decl
8189 #define $ac_tr_decl 1
8190
8191 #include "ansidecl.h"
8192 #include "system.h"
8193
8194 int
8195 main ()
8196 {
8197 #ifndef $ac_func
8198 char *(*pfn) = (char *(*)) $ac_func ;
8199 #endif
8200   ;
8201   return 0;
8202 }
8203 _ACEOF
8204 rm -f conftest.$ac_objext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8206   (eval $ac_compile) 2>&5
8207   ac_status=$?
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } &&
8210          { ac_try='test -s conftest.$ac_objext'
8211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212   (eval $ac_try) 2>&5
8213   ac_status=$?
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); }; }; then
8216   eval "gcc_cv_have_decl_$ac_func=yes"
8217 else
8218   echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8220
8221 eval "gcc_cv_have_decl_$ac_func=no"
8222 fi
8223 rm -f conftest.$ac_objext conftest.$ac_ext
8224 fi
8225
8226 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8227   echo "$as_me:$LINENO: result: yes" >&5
8228 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8229 #define $ac_tr_decl 1
8230 _ACEOF
8231
8232 else
8233   echo "$as_me:$LINENO: result: no" >&5
8234 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8235 #define $ac_tr_decl 0
8236 _ACEOF
8237
8238 fi
8239
8240 done
8241 if test x = y ; then
8242
8243 cat >>confdefs.h <<\_ACEOF
8244 #define HAVE_DECL_GETENV 1
8245 _ACEOF
8246
8247 cat >>confdefs.h <<\_ACEOF
8248 #define HAVE_DECL_ATOL 1
8249 _ACEOF
8250
8251 cat >>confdefs.h <<\_ACEOF
8252 #define HAVE_DECL_SBRK 1
8253 _ACEOF
8254
8255 cat >>confdefs.h <<\_ACEOF
8256 #define HAVE_DECL_ABORT 1
8257 _ACEOF
8258
8259 cat >>confdefs.h <<\_ACEOF
8260 #define HAVE_DECL_ATOF 1
8261 _ACEOF
8262
8263 cat >>confdefs.h <<\_ACEOF
8264 #define HAVE_DECL_GETCWD 1
8265 _ACEOF
8266
8267 cat >>confdefs.h <<\_ACEOF
8268 #define HAVE_DECL_GETWD 1
8269 _ACEOF
8270  \
8271
8272 cat >>confdefs.h <<\_ACEOF
8273 #define HAVE_DECL_STRSIGNAL 1
8274 _ACEOF
8275
8276 cat >>confdefs.h <<\_ACEOF
8277 #define HAVE_DECL_PUTC_UNLOCKED 1
8278 _ACEOF
8279
8280 cat >>confdefs.h <<\_ACEOF
8281 #define HAVE_DECL_FPUTS_UNLOCKED 1
8282 _ACEOF
8283
8284 cat >>confdefs.h <<\_ACEOF
8285 #define HAVE_DECL_FWRITE_UNLOCKED 1
8286 _ACEOF
8287  \
8288
8289 cat >>confdefs.h <<\_ACEOF
8290 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8291 _ACEOF
8292
8293 cat >>confdefs.h <<\_ACEOF
8294 #define HAVE_DECL_STRSTR 1
8295 _ACEOF
8296
8297 cat >>confdefs.h <<\_ACEOF
8298 #define HAVE_DECL_ERRNO 1
8299 _ACEOF
8300
8301 cat >>confdefs.h <<\_ACEOF
8302 #define HAVE_DECL_SNPRINTF 1
8303 _ACEOF
8304
8305 cat >>confdefs.h <<\_ACEOF
8306 #define HAVE_DECL_VASPRINTF 1
8307 _ACEOF
8308  \
8309
8310 cat >>confdefs.h <<\_ACEOF
8311 #define HAVE_DECL_MALLOC 1
8312 _ACEOF
8313
8314 cat >>confdefs.h <<\_ACEOF
8315 #define HAVE_DECL_REALLOC 1
8316 _ACEOF
8317
8318 cat >>confdefs.h <<\_ACEOF
8319 #define HAVE_DECL_CALLOC 1
8320 _ACEOF
8321
8322 cat >>confdefs.h <<\_ACEOF
8323 #define HAVE_DECL_FREE 1
8324 _ACEOF
8325
8326 cat >>confdefs.h <<\_ACEOF
8327 #define HAVE_DECL_BASENAME 1
8328 _ACEOF
8329
8330 cat >>confdefs.h <<\_ACEOF
8331 #define HAVE_DECL_GETOPT 1
8332 _ACEOF
8333
8334 cat >>confdefs.h <<\_ACEOF
8335 #define HAVE_DECL_CLOCK 1
8336 _ACEOF
8337 fi
8338
8339
8340 for ac_func in getrlimit setrlimit getrusage
8341 do
8342   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8343 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8344 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8345 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   cat >conftest.$ac_ext <<_ACEOF
8349 #line $LINENO "configure"
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355 #undef $ac_tr_decl
8356 #define $ac_tr_decl 1
8357
8358 #include "ansidecl.h"
8359 #include "system.h"
8360 #ifdef HAVE_SYS_RESOURCE_H
8361 #include <sys/resource.h>
8362 #endif
8363
8364
8365 int
8366 main ()
8367 {
8368 #ifndef $ac_func
8369 char *(*pfn) = (char *(*)) $ac_func ;
8370 #endif
8371   ;
8372   return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest.$ac_objext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377   (eval $ac_compile) 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -s conftest.$ac_objext'
8382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383   (eval $ac_try) 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; }; then
8387   eval "gcc_cv_have_decl_$ac_func=yes"
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392 eval "gcc_cv_have_decl_$ac_func=no"
8393 fi
8394 rm -f conftest.$ac_objext conftest.$ac_ext
8395 fi
8396
8397 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8398   echo "$as_me:$LINENO: result: yes" >&5
8399 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8400 #define $ac_tr_decl 1
8401 _ACEOF
8402
8403 else
8404   echo "$as_me:$LINENO: result: no" >&5
8405 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8406 #define $ac_tr_decl 0
8407 _ACEOF
8408
8409 fi
8410
8411 done
8412 if test x = y ; then
8413
8414 cat >>confdefs.h <<\_ACEOF
8415 #define HAVE_DECL_GETRLIMIT 1
8416 _ACEOF
8417
8418 cat >>confdefs.h <<\_ACEOF
8419 #define HAVE_DECL_SETRLIMIT 1
8420 _ACEOF
8421
8422 cat >>confdefs.h <<\_ACEOF
8423 #define HAVE_DECL_GETRUSAGE 1
8424 _ACEOF
8425 fi
8426
8427
8428 cat >conftest.$ac_ext <<_ACEOF
8429 #line $LINENO "configure"
8430 /* confdefs.h.  */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h.  */
8435
8436 #include "ansidecl.h"
8437 #include "system.h"
8438 #ifdef HAVE_SYS_RESOURCE_H
8439 #include <sys/resource.h>
8440 #endif
8441
8442 int
8443 main ()
8444 {
8445 rlim_t l = 0;
8446   ;
8447   return 0;
8448 }
8449 _ACEOF
8450 rm -f conftest.$ac_objext
8451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8452   (eval $ac_compile) 2>&5
8453   ac_status=$?
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); } &&
8456          { ac_try='test -s conftest.$ac_objext'
8457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458   (eval $ac_try) 2>&5
8459   ac_status=$?
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); }; }; then
8462   :
8463 else
8464   echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8466
8467
8468 cat >>confdefs.h <<\_ACEOF
8469 #define rlim_t long
8470 _ACEOF
8471
8472 fi
8473 rm -f conftest.$ac_objext conftest.$ac_ext
8474
8475 for ac_func in ldgetname
8476 do
8477   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8478 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8479 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8480 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8481   echo $ECHO_N "(cached) $ECHO_C" >&6
8482 else
8483   cat >conftest.$ac_ext <<_ACEOF
8484 #line $LINENO "configure"
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490 #undef $ac_tr_decl
8491 #define $ac_tr_decl 1
8492
8493 #include "ansidecl.h"
8494 #include "system.h"
8495 #ifdef HAVE_LDFCN_H
8496 #include <ldfcn.h>
8497 #endif
8498
8499
8500 int
8501 main ()
8502 {
8503 #ifndef $ac_func
8504 char *(*pfn) = (char *(*)) $ac_func ;
8505 #endif
8506   ;
8507   return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8512   (eval $ac_compile) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } &&
8516          { ac_try='test -s conftest.$ac_objext'
8517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518   (eval $ac_try) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); }; }; then
8522   eval "gcc_cv_have_decl_$ac_func=yes"
8523 else
8524   echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527 eval "gcc_cv_have_decl_$ac_func=no"
8528 fi
8529 rm -f conftest.$ac_objext conftest.$ac_ext
8530 fi
8531
8532 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8533   echo "$as_me:$LINENO: result: yes" >&5
8534 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8535 #define $ac_tr_decl 1
8536 _ACEOF
8537
8538 else
8539   echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8541 #define $ac_tr_decl 0
8542 _ACEOF
8543
8544 fi
8545
8546 done
8547 if test x = y ; then
8548
8549 cat >>confdefs.h <<\_ACEOF
8550 #define HAVE_DECL_LDGETNAME 1
8551 _ACEOF
8552 fi
8553
8554
8555 for ac_func in times
8556 do
8557   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8558 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8559 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8560 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8561   echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563   cat >conftest.$ac_ext <<_ACEOF
8564 #line $LINENO "configure"
8565 /* confdefs.h.  */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h.  */
8570 #undef $ac_tr_decl
8571 #define $ac_tr_decl 1
8572
8573 #include "ansidecl.h"
8574 #include "system.h"
8575 #ifdef HAVE_SYS_TIMES_H
8576 #include <sys/times.h>
8577 #endif
8578
8579
8580 int
8581 main ()
8582 {
8583 #ifndef $ac_func
8584 char *(*pfn) = (char *(*)) $ac_func ;
8585 #endif
8586   ;
8587   return 0;
8588 }
8589 _ACEOF
8590 rm -f conftest.$ac_objext
8591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8592   (eval $ac_compile) 2>&5
8593   ac_status=$?
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); } &&
8596          { ac_try='test -s conftest.$ac_objext'
8597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598   (eval $ac_try) 2>&5
8599   ac_status=$?
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); }; }; then
8602   eval "gcc_cv_have_decl_$ac_func=yes"
8603 else
8604   echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8606
8607 eval "gcc_cv_have_decl_$ac_func=no"
8608 fi
8609 rm -f conftest.$ac_objext conftest.$ac_ext
8610 fi
8611
8612 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8613   echo "$as_me:$LINENO: result: yes" >&5
8614 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8615 #define $ac_tr_decl 1
8616 _ACEOF
8617
8618 else
8619   echo "$as_me:$LINENO: result: no" >&5
8620 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8621 #define $ac_tr_decl 0
8622 _ACEOF
8623
8624 fi
8625
8626 done
8627 if test x = y ; then
8628
8629 cat >>confdefs.h <<\_ACEOF
8630 #define HAVE_DECL_TIMES 1
8631 _ACEOF
8632 fi
8633
8634
8635 # More time-related stuff.
8636 echo "$as_me:$LINENO: checking for struct tms" >&5
8637 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8638 if test "${ac_cv_struct_tms+set}" = set; then
8639   echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641
8642 cat >conftest.$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649
8650 #include "ansidecl.h"
8651 #include "system.h"
8652 #ifdef HAVE_SYS_TIMES_H
8653 #include <sys/times.h>
8654 #endif
8655
8656 int
8657 main ()
8658 {
8659 struct tms tms;
8660   ;
8661   return 0;
8662 }
8663 _ACEOF
8664 rm -f conftest.$ac_objext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666   (eval $ac_compile) 2>&5
8667   ac_status=$?
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); } &&
8670          { ac_try='test -s conftest.$ac_objext'
8671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672   (eval $ac_try) 2>&5
8673   ac_status=$?
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); }; }; then
8676   ac_cv_struct_tms=yes
8677 else
8678   echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8680
8681 ac_cv_struct_tms=no
8682 fi
8683 rm -f conftest.$ac_objext conftest.$ac_ext
8684 fi
8685 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8686 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8687 if test $ac_cv_struct_tms = yes; then
8688
8689 cat >>confdefs.h <<\_ACEOF
8690 #define HAVE_STRUCT_TMS 1
8691 _ACEOF
8692
8693 fi
8694
8695 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8696 # revisit after autoconf 2.50.
8697 echo "$as_me:$LINENO: checking for clock_t" >&5
8698 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8699 if test "${gcc_cv_type_clock_t+set}" = set; then
8700   echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702
8703 cat >conftest.$ac_ext <<_ACEOF
8704 #line $LINENO "configure"
8705 /* confdefs.h.  */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h.  */
8710
8711 #include "ansidecl.h"
8712 #include "system.h"
8713
8714 int
8715 main ()
8716 {
8717 clock_t x;
8718   ;
8719   return 0;
8720 }
8721 _ACEOF
8722 rm -f conftest.$ac_objext
8723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8724   (eval $ac_compile) 2>&5
8725   ac_status=$?
8726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727   (exit $ac_status); } &&
8728          { ac_try='test -s conftest.$ac_objext'
8729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730   (eval $ac_try) 2>&5
8731   ac_status=$?
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); }; }; then
8734   gcc_cv_type_clock_t=yes
8735 else
8736   echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8738
8739 gcc_cv_type_clock_t=no
8740 fi
8741 rm -f conftest.$ac_objext conftest.$ac_ext
8742 fi
8743 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8744 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8745 if test $gcc_cv_type_clock_t = yes; then
8746
8747 cat >>confdefs.h <<\_ACEOF
8748 #define HAVE_CLOCK_T 1
8749 _ACEOF
8750
8751 fi
8752
8753 echo "$as_me:$LINENO: checking for uchar" >&5
8754 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8755 if test "${gcc_cv_type_uchar+set}" = set; then
8756   echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758   cat >conftest.$ac_ext <<_ACEOF
8759 #line $LINENO "configure"
8760 /* confdefs.h.  */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h.  */
8765
8766 #include "ansidecl.h"
8767 #include "system.h"
8768
8769 int
8770 main ()
8771 {
8772 if ((uchar *)0) return 0;
8773  if (sizeof(uchar)) return 0;
8774   ;
8775   return 0;
8776 }
8777 _ACEOF
8778 rm -f conftest.$ac_objext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8780   (eval $ac_compile) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); } &&
8784          { ac_try='test -s conftest.$ac_objext'
8785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786   (eval $ac_try) 2>&5
8787   ac_status=$?
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); }; }; then
8790   ac_cv_type_uchar=yes
8791 else
8792   echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 ac_cv_type_uchar=no
8796 fi
8797 rm -f conftest.$ac_objext conftest.$ac_ext
8798 fi
8799 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8800 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8801 if test $ac_cv_type_uchar = yes; then
8802
8803 cat >>confdefs.h <<\_ACEOF
8804 #define HAVE_UCHAR 1
8805 _ACEOF
8806
8807 fi
8808
8809 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8810 CFLAGS="$saved_CFLAGS"
8811
8812 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8813 if test "${enable_initfini_array+set}" = set; then
8814   enableval="$enable_initfini_array"
8815
8816 else
8817
8818 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8819 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8820 if test "${gcc_cv_initfini_array+set}" = set; then
8821   echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823     if test "$cross_compiling" = yes; then
8824   gcc_cv_initfini_array=no
8825 else
8826   cat >conftest.$ac_ext <<_ACEOF
8827 #line $LINENO "configure"
8828 /* confdefs.h.  */
8829 _ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h.  */
8833
8834 static int x = -1;
8835 int main (void) { return x; }
8836 int foo (void) { x = 0; }
8837 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8838 _ACEOF
8839 rm -f conftest$ac_exeext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841   (eval $ac_link) 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846   (eval $ac_try) 2>&5
8847   ac_status=$?
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); }; }; then
8850   gcc_cv_initfini_array=yes
8851 else
8852   echo "$as_me: program exited with status $ac_status" >&5
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856 ( exit $ac_status )
8857 gcc_cv_initfini_array=no
8858 fi
8859 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8860 fi
8861 fi
8862 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8863 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8864   enable_initfini_array=$gcc_cv_initfini_array
8865
8866 fi;
8867 if test $enable_initfini_array = yes; then
8868
8869 cat >>confdefs.h <<\_ACEOF
8870 #define HAVE_INITFINI_ARRAY 1
8871 _ACEOF
8872
8873 fi
8874
8875 # mkdir takes a single argument on some systems.
8876 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8877 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8878 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8879   echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881   cat >conftest.$ac_ext <<_ACEOF
8882 #line $LINENO "configure"
8883 /* confdefs.h.  */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h.  */
8888
8889 #include <sys/types.h>
8890 #ifdef HAVE_SYS_STAT_H
8891 # include <sys/stat.h>
8892 #endif
8893 #ifdef HAVE_UNISTD_H
8894 # include <unistd.h>
8895 #endif
8896 #ifdef HAVE_DIRECT_H
8897 # include <direct.h>
8898 #endif
8899 int
8900 main ()
8901 {
8902 mkdir ("foo", 0);
8903   ;
8904   return 0;
8905 }
8906 _ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909   (eval $ac_compile) 2>&5
8910   ac_status=$?
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); } &&
8913          { ac_try='test -s conftest.$ac_objext'
8914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915   (eval $ac_try) 2>&5
8916   ac_status=$?
8917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918   (exit $ac_status); }; }; then
8919   gcc_cv_mkdir_takes_one_arg=no
8920 else
8921   echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8923
8924 gcc_cv_mkdir_takes_one_arg=yes
8925 fi
8926 rm -f conftest.$ac_objext conftest.$ac_ext
8927 fi
8928 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8929 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8930 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8931
8932 cat >>confdefs.h <<\_ACEOF
8933 #define MKDIR_TAKES_ONE_ARG 1
8934 _ACEOF
8935
8936 fi
8937
8938
8939 # File extensions
8940 manext='.1'
8941 objext='.o'
8942
8943
8944
8945 # With Setjmp/Longjmp based exception handling.
8946 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8947 if test "${enable_sjlj_exceptions+set}" = set; then
8948   enableval="$enable_sjlj_exceptions"
8949   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8950
8951 cat >>confdefs.h <<_ACEOF
8952 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8953 _ACEOF
8954
8955 fi;
8956
8957 if test x$host = x$target; then
8958    echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8959 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8960 if test "${ac_cv_lib_unwind_main+set}" = set; then
8961   echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963   ac_check_lib_save_LIBS=$LIBS
8964 LIBS="-lunwind  $LIBS"
8965 cat >conftest.$ac_ext <<_ACEOF
8966 #line $LINENO "configure"
8967 /* confdefs.h.  */
8968 _ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h.  */
8972
8973
8974 int
8975 main ()
8976 {
8977 main ();
8978   ;
8979   return 0;
8980 }
8981 _ACEOF
8982 rm -f conftest.$ac_objext conftest$ac_exeext
8983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8984   (eval $ac_link) 2>&5
8985   ac_status=$?
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); } &&
8988          { ac_try='test -s conftest$ac_exeext'
8989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990   (eval $ac_try) 2>&5
8991   ac_status=$?
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); }; }; then
8994   ac_cv_lib_unwind_main=yes
8995 else
8996   echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8998
8999 ac_cv_lib_unwind_main=no
9000 fi
9001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9002 LIBS=$ac_check_lib_save_LIBS
9003 fi
9004 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9005 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9006 if test $ac_cv_lib_unwind_main = yes; then
9007   use_libunwind_default=yes
9008 else
9009   use_libunwind_default=no
9010 fi
9011
9012 else
9013    use_libunwind_default=no
9014 fi
9015 # Use libunwind based exception handling.
9016 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9017 if test "${enable_libunwind_exceptions+set}" = set; then
9018   enableval="$enable_libunwind_exceptions"
9019   use_libunwind_exceptions=$enableval
9020 else
9021   use_libunwind_exceptions=$use_libunwind_default
9022 fi;
9023 if test x"$use_libunwind_exceptions" = xyes; then
9024
9025 cat >>confdefs.h <<\_ACEOF
9026 #define USE_LIBUNWIND_EXCEPTIONS 1
9027 _ACEOF
9028
9029 fi
9030
9031 # --------------------------------------------------------
9032 # Build, host, and target specific configuration fragments
9033 # --------------------------------------------------------
9034
9035 # Collect build-machine-specific information.
9036 . ${srcdir}/config.build
9037
9038 # Collect host-machine-specific information.
9039 . ${srcdir}/config.host
9040
9041 target_gtfiles=
9042
9043 # Collect target-machine-specific information.
9044 . ${srcdir}/config.gcc
9045
9046 extra_objs="${host_extra_objs} ${extra_objs}"
9047
9048 # Default the target-machine variables that were not explicitly set.
9049 if test x"$tm_file" = x
9050 then tm_file=$cpu_type/$cpu_type.h; fi
9051
9052 if test x"$extra_headers" = x
9053 then extra_headers=; fi
9054
9055 if test x$md_file = x
9056 then md_file=$cpu_type/$cpu_type.md; fi
9057
9058 if test x$out_file = x
9059 then out_file=$cpu_type/$cpu_type.c; fi
9060
9061 if test x"$tmake_file" = x
9062 then tmake_file=$cpu_type/t-$cpu_type
9063 fi
9064
9065 if test x"$dwarf2" = xyes
9066 then tm_file="$tm_file tm-dwarf2.h"
9067 fi
9068
9069 # Say what files are being used for the output code and MD file.
9070 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9071 echo "Using \`$srcdir/config/$md_file' as machine description file."
9072
9073 # If any of the xm_file variables contain nonexistent files, warn
9074 # about them and drop them.
9075
9076 bx=
9077 for x in $build_xm_file; do
9078   if    test -f $srcdir/config/$x
9079   then      bx="$bx $x"
9080   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9081 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9082   fi
9083 done
9084 build_xm_file="$bx"
9085
9086 hx=
9087 for x in $host_xm_file; do
9088   if    test -f $srcdir/config/$x
9089   then      hx="$hx $x"
9090   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9091 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9092   fi
9093 done
9094 host_xm_file="$hx"
9095
9096 tx=
9097 for x in $xm_file; do
9098   if    test -f $srcdir/config/$x
9099   then      tx="$tx $x"
9100   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9101 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9102   fi
9103 done
9104 xm_file="$tx"
9105
9106 count=a
9107 for f in $tm_file; do
9108         count=${count}x
9109 done
9110 if test $count = ax; then
9111         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9112 else
9113         echo "Using the following target machine macro files:"
9114         for f in $tm_file; do
9115                 echo "  $srcdir/config/$f"
9116         done
9117 fi
9118
9119 if test x$need_64bit_hwint = xyes; then
9120
9121 cat >>confdefs.h <<\_ACEOF
9122 #define NEED_64BIT_HOST_WIDE_INT 1
9123 _ACEOF
9124
9125 fi
9126
9127 count=a
9128 for f in $host_xm_file; do
9129         count=${count}x
9130 done
9131 if test $count = a; then
9132         :
9133 elif test $count = ax; then
9134         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9135 else
9136         echo "Using the following host machine macro files:"
9137         for f in $host_xm_file; do
9138                 echo "  $srcdir/config/$f"
9139         done
9140 fi
9141 echo "Using ${out_host_hook_obj} for host machine hooks."
9142
9143 if test "$host_xm_file" != "$build_xm_file"; then
9144         count=a
9145         for f in $build_xm_file; do
9146                 count=${count}x
9147         done
9148         if test $count = a; then
9149                 :
9150         elif test $count = ax; then
9151                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9152         else
9153                 echo "Using the following build machine macro files:"
9154                 for f in $build_xm_file; do
9155                         echo "  $srcdir/config/$f"
9156                 done
9157         fi
9158 fi
9159
9160 # Check if a valid thread package
9161 case ${enable_threads_flag} in
9162   "" | no)
9163     # No threads
9164     target_thread_file='single'
9165     ;;
9166   yes)
9167     # default
9168     target_thread_file='single'
9169     ;;
9170   aix | dce | gnat | irix | posix | rtems | \
9171   single | solaris | vxworks | win32 )
9172     target_thread_file=${enable_threads_flag}
9173     ;;
9174   *)
9175     echo "${enable_threads_flag} is an unknown thread package" 1>&2
9176     exit 1
9177     ;;
9178 esac
9179
9180 if test x${thread_file} = x; then
9181   # No thread file set by target-specific clauses in config.gcc,
9182   # so use file chosen by default logic above
9183   thread_file=${target_thread_file}
9184 fi
9185
9186 if test x$enable___cxa_atexit = xyes || \
9187    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9188
9189 cat >>confdefs.h <<\_ACEOF
9190 #define DEFAULT_USE_CXA_ATEXIT 1
9191 _ACEOF
9192
9193 fi
9194
9195 # Look for a file containing extra machine modes.
9196 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9197   extra_modes_file='$(srcdir)'/config/${extra_modes}
9198
9199
9200 cat >>confdefs.h <<_ACEOF
9201 #define EXTRA_MODES_FILE "config/$extra_modes"
9202 _ACEOF
9203
9204 fi
9205
9206 # auto-host.h is the file containing items generated by autoconf and is
9207 # the first file included by config.h.
9208 # If host=build, it is correct to have bconfig include auto-host.h
9209 # as well.  If host!=build, we are in error and need to do more
9210 # work to find out the build config parameters.
9211 if test x$host = x$build
9212 then
9213         build_auto=auto-host.h
9214         FORBUILD=..
9215 else
9216         # We create a subdir, then run autoconf in the subdir.
9217         # To prevent recursion we set host and build for the new
9218         # invocation of configure to the build for this invocation
9219         # of configure.
9220         tempdir=build.$$
9221         rm -rf $tempdir
9222         mkdir $tempdir
9223         cd $tempdir
9224         case ${srcdir} in
9225         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9226         *) realsrcdir=../${srcdir};;
9227         esac
9228         saved_CFLAGS="${CFLAGS}"
9229         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9230         ${realsrcdir}/configure \
9231                 --target=$target_alias --host=$build_alias --build=$build_alias
9232         CFLAGS="${saved_CFLAGS}"
9233
9234         # We just finished tests for the build machine, so rename
9235         # the file auto-build.h in the gcc directory.
9236         mv auto-host.h ../auto-build.h
9237         cd ..
9238         rm -rf $tempdir
9239         build_auto=auto-build.h
9240         FORBUILD=../${build_subdir}
9241 fi
9242
9243
9244 tm_file="${tm_file} defaults.h"
9245 tm_p_file="${tm_p_file} tm-preds.h"
9246 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9247 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9248 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9249 # put this back in temporarily.
9250 xm_file="ansidecl.h ${xm_file}"
9251
9252 # --------
9253 # UNSORTED
9254 # --------
9255
9256 # Get the version trigger filename from the toplevel
9257 if test "${with_gcc_version_trigger+set}" = set; then
9258         gcc_version_trigger=$with_gcc_version_trigger
9259 else
9260         gcc_version_trigger=${srcdir}/version.c
9261 fi
9262 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9263 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9264
9265 # Compile in configure arguments.
9266 if test -f configargs.h ; then
9267         # Being re-configured.
9268         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9269         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9270 else
9271         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9272 fi
9273
9274 # Double all backslashes and backslash all quotes to turn
9275 # gcc_config_arguments into a C string.
9276 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9277 $gcc_config_arguments
9278 EOF
9279 gcc_config_arguments_str=`cat conftest.out`
9280 rm -f conftest.out
9281
9282 cat > configargs.h <<EOF
9283 /* Generated automatically. */
9284 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9285 static const char thread_model[] = "$thread_file";
9286
9287 static const struct {
9288   const char *name, *value;
9289 } configure_default_options[] = $configure_default_options;
9290 EOF
9291
9292 # Internationalization
9293 PACKAGE=gcc
9294 VERSION="$gcc_version"
9295
9296
9297
9298 # If we haven't got the data from the intl directory,
9299 # assume NLS is disabled.
9300 USE_NLS=no
9301 LIBINTL=
9302 LIBINTL_DEP=
9303 INCINTL=
9304 XGETTEXT=
9305 GMSGFMT=
9306 POSUB=
9307 if test -f ../intl/config.intl; then
9308   . ../intl/config.intl
9309 fi
9310 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9311 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9312 if test x"$USE_NLS" != xyes; then
9313   echo "$as_me:$LINENO: result: no" >&5
9314 echo "${ECHO_T}no" >&6
9315 else
9316   echo "$as_me:$LINENO: result: yes" >&5
9317 echo "${ECHO_T}yes" >&6
9318
9319 cat >>confdefs.h <<\_ACEOF
9320 #define ENABLE_NLS 1
9321 _ACEOF
9322
9323
9324   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9325 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9326   # Look for .po and .gmo files in the source directory.
9327   CATALOGS=
9328   XLINGUAS=
9329   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9330     # If there aren't any .gmo files the shell will give us the
9331     # literal string "../path/to/srcdir/po/*.gmo" which has to be
9332     # weeded out.
9333     case "$cat" in *\**)
9334       continue;;
9335     esac
9336     # The quadruple backslash is collapsed to a double backslash
9337     # by the backticks, then collapsed again by the double quotes,
9338     # leaving us with one backslash in the sed expression (right
9339     # before the dot that mustn't act as a wildcard).
9340     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9341     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9342     # The user is allowed to set LINGUAS to a list of languages to
9343     # install catalogs for.  If it's empty that means "all of them."
9344     if test "x$LINGUAS" = x; then
9345       CATALOGS="$CATALOGS $cat"
9346       XLINGUAS="$XLINGUAS $lang"
9347     else
9348       case "$LINGUAS" in *$lang*)
9349         CATALOGS="$CATALOGS $cat"
9350         XLINGUAS="$XLINGUAS $lang"
9351         ;;
9352       esac
9353     fi
9354   done
9355   LINGUAS="$XLINGUAS"
9356   echo "$as_me:$LINENO: result: $LINGUAS" >&5
9357 echo "${ECHO_T}$LINGUAS" >&6
9358 fi
9359
9360 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9361 # -liconv on the link line twice.
9362 case "$LIBINTL" in *$LIBICONV*)
9363         LIBICONV= ;;
9364 esac
9365
9366 # Windows32 Registry support for specifying GCC installation paths.
9367 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9368 if test "${enable_win32_registry+set}" = set; then
9369   enableval="$enable_win32_registry"
9370
9371 fi;
9372 case $host_os in
9373         win32 | pe | cygwin* | mingw32* | uwin*)
9374 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9375 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9376 if test "x$enable_win32_registry" != xno; then
9377
9378 cat >>confdefs.h <<\_ACEOF
9379 #define ENABLE_WIN32_REGISTRY 1
9380 _ACEOF
9381
9382   echo "$as_me:$LINENO: result: yes" >&5
9383 echo "${ECHO_T}yes" >&6
9384   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9385 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9386 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9387   echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389   ac_func_search_save_LIBS=$LIBS
9390 ac_cv_search_RegOpenKeyExA=no
9391 cat >conftest.$ac_ext <<_ACEOF
9392 #line $LINENO "configure"
9393 /* confdefs.h.  */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h.  */
9398
9399 /* Override any gcc2 internal prototype to avoid an error.  */
9400 #ifdef __cplusplus
9401 extern "C"
9402 #endif
9403 /* We use char because int might match the return type of a gcc2
9404    builtin and then its argument prototype would still apply.  */
9405 char RegOpenKeyExA ();
9406 int
9407 main ()
9408 {
9409 RegOpenKeyExA ();
9410   ;
9411   return 0;
9412 }
9413 _ACEOF
9414 rm -f conftest.$ac_objext conftest$ac_exeext
9415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9416   (eval $ac_link) 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } &&
9420          { ac_try='test -s conftest$ac_exeext'
9421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422   (eval $ac_try) 2>&5
9423   ac_status=$?
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); }; }; then
9426   ac_cv_search_RegOpenKeyExA="none required"
9427 else
9428   echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9430
9431 fi
9432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9433 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9434   for ac_lib in advapi32; do
9435     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9436     cat >conftest.$ac_ext <<_ACEOF
9437 #line $LINENO "configure"
9438 /* confdefs.h.  */
9439 _ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h.  */
9443
9444 /* Override any gcc2 internal prototype to avoid an error.  */
9445 #ifdef __cplusplus
9446 extern "C"
9447 #endif
9448 /* We use char because int might match the return type of a gcc2
9449    builtin and then its argument prototype would still apply.  */
9450 char RegOpenKeyExA ();
9451 int
9452 main ()
9453 {
9454 RegOpenKeyExA ();
9455   ;
9456   return 0;
9457 }
9458 _ACEOF
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9461   (eval $ac_link) 2>&5
9462   ac_status=$?
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); } &&
9465          { ac_try='test -s conftest$ac_exeext'
9466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467   (eval $ac_try) 2>&5
9468   ac_status=$?
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); }; }; then
9471   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9472 break
9473 else
9474   echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9476
9477 fi
9478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9479   done
9480 fi
9481 LIBS=$ac_func_search_save_LIBS
9482 fi
9483 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9484 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9485 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9486   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9487
9488 fi
9489
9490 else
9491   echo "$as_me:$LINENO: result: no" >&5
9492 echo "${ECHO_T}no" >&6
9493 fi
9494
9495 # Check if user specified a different registry key.
9496 case "x${enable_win32_registry}" in
9497 x | xyes)
9498   # default.
9499   gcc_cv_win32_registry_key="$VERSION"
9500   ;;
9501 xno)
9502   # no registry lookup.
9503   gcc_cv_win32_registry_key=''
9504   ;;
9505 *)
9506   # user-specified key.
9507   gcc_cv_win32_registry_key="$enable_win32_registry"
9508   ;;
9509 esac
9510
9511 if test "x$enable_win32_registry" != xno; then
9512   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9513 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9514
9515 cat >>confdefs.h <<_ACEOF
9516 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9517 _ACEOF
9518
9519   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9520 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9521 fi
9522 ;;
9523 esac
9524
9525 # Get an absolute path to the GCC top-level source directory
9526 holddir=`${PWDCMD-pwd}`
9527 cd $srcdir
9528 topdir=`${PWDCMD-pwd}`
9529 cd $holddir
9530
9531 # Conditionalize the makefile for this host machine.
9532 xmake_file=
9533 for f in ${host_xmake_file}
9534 do
9535         if test -f ${srcdir}/config/$f
9536         then
9537                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9538         fi
9539 done
9540
9541 # Conditionalize the makefile for this target machine.
9542 tmake_file_=
9543 for f in ${tmake_file}
9544 do
9545         if test -f ${srcdir}/config/$f
9546         then
9547                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9548         fi
9549 done
9550 tmake_file="${tmake_file_}"
9551
9552 symbolic_link='ln -s'
9553
9554 # If the host doesn't support symlinks, modify CC in
9555 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9556 # Otherwise, we can use "CC=$(CC)".
9557 rm -f symtest.tem
9558 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9559 then
9560         cc_set_by_configure="\$(CC)"
9561         quoted_cc_set_by_configure="\$(CC)"
9562         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9563         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9564 else
9565         rm -f symtest.tem
9566         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9567         then
9568                 symbolic_link="cp -p"
9569         else
9570                 symbolic_link="cp"
9571         fi
9572         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9573         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9574         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9575         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9576 fi
9577 rm -f symtest.tem
9578
9579 out_object_file=`basename $out_file .c`.o
9580
9581 tm_file_list=
9582 tm_include_list=
9583 for f in $tm_file; do
9584   case $f in
9585     defaults.h )
9586        tm_file_list="${tm_file_list} \$(srcdir)/$f"
9587        tm_include_list="${tm_include_list} $f"
9588        ;;
9589     * )
9590        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9591        tm_include_list="${tm_include_list} config/$f"
9592        ;;
9593   esac
9594 done
9595
9596 tm_p_file_list=
9597 tm_p_include_list=
9598 for f in $tm_p_file; do
9599   case $f in
9600     tm-preds.h )
9601        tm_p_file_list="${tm_p_file_list} $f"
9602        tm_p_include_list="${tm_p_include_list} $f"
9603        ;;
9604     * )
9605        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9606        tm_p_include_list="${tm_p_include_list} config/$f"
9607   esac
9608 done
9609
9610 xm_file_list=
9611 xm_include_list=
9612 for f in $xm_file; do
9613   case $f in
9614     ansidecl.h )
9615        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9616        xm_include_list="${xm_include_list} $f"
9617        ;;
9618     auto-host.h )
9619        xm_file_list="${xm_file_list} $f"
9620        xm_include_list="${xm_include_list} $f"
9621        ;;
9622     * )
9623        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9624        xm_include_list="${xm_include_list} config/$f"
9625        ;;
9626   esac
9627 done
9628
9629 host_xm_file_list=
9630 host_xm_include_list=
9631 for f in $host_xm_file; do
9632   case $f in
9633     ansidecl.h )
9634        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9635        host_xm_include_list="${host_xm_include_list} $f"
9636        ;;
9637     auto-host.h )
9638        host_xm_file_list="${host_xm_file_list} $f"
9639        host_xm_include_list="${host_xm_include_list} $f"
9640        ;;
9641     * )
9642        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9643        host_xm_include_list="${host_xm_include_list} config/$f"
9644        ;;
9645   esac
9646 done
9647
9648 build_xm_file_list=
9649 for f in $build_xm_file; do
9650   case $f in
9651     ansidecl.h )
9652        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9653        build_xm_include_list="${build_xm_include_list} $f"
9654        ;;
9655     auto-build.h | auto-host.h )
9656        build_xm_file_list="${build_xm_file_list} $f"
9657        build_xm_include_list="${build_xm_include_list} $f"
9658        ;;
9659     * )
9660        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9661        build_xm_include_list="${build_xm_include_list} config/$f"
9662        ;;
9663   esac
9664 done
9665
9666 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9667 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9668 CROSS=
9669 ALL=all.internal
9670 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9671 if test x$host != x$target
9672 then
9673         CROSS="-DCROSS_COMPILE"
9674         ALL=all.cross
9675         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9676         case "$host","$target" in
9677         # Darwin crosses can use the host system's libraries and headers,
9678         # because of the fat library support.  Of course, it must be the
9679         # same version of Darwin on both sides.  Allow the user to
9680         # just say --target=foo-darwin without a version number to mean
9681         # "the version on this system".
9682             *-*-darwin*,*-*-darwin*)
9683                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9684                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9685                 if test $hostos = $targetos -o $targetos = darwin ; then
9686                     CROSS=
9687                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9688                     with_headers=yes
9689                 fi
9690                 ;;
9691
9692             i?86-*-*,x86_64-*-* \
9693             | powerpc*-*-*,powerpc64*-*-*)
9694                 CROSS="$CROSS -DNATIVE_CROSS" ;;
9695         esac
9696 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9697         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9698         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9699 fi
9700
9701 # If this is a cross-compiler that does not
9702 # have its own set of headers then define
9703 # inhibit_libc
9704
9705 # If this is using newlib, without having the headers available now,
9706 # then define inhibit_libc in LIBGCC2_CFLAGS.
9707 # This prevents libgcc2 from containing any code which requires libc
9708 # support.
9709 inhibit_libc=
9710 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9711        test x$with_newlib = xyes ; } &&
9712      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9713        inhibit_libc=-Dinhibit_libc
9714 fi
9715
9716
9717 # When building gcc with a cross-compiler, we need to adjust things so
9718 # that the generator programs are still built with the native compiler.
9719 # Also, we cannot run fixincludes or fix-header.
9720
9721 # These are the normal (build=host) settings:
9722 BUILD_PREFIX=
9723 BUILD_PREFIX_1=ignore-
9724 CC_FOR_BUILD='$(CC)'
9725 BUILD_CFLAGS='$(ALL_CFLAGS)'
9726
9727 STMP_FIXINC=stmp-fixinc
9728
9729 # Possibly disable fixproto, on a per-target basis.
9730 case ${use_fixproto} in
9731   no)
9732     STMP_FIXPROTO=
9733     ;;
9734   yes)
9735     STMP_FIXPROTO=stmp-fixproto
9736     ;;
9737 esac
9738
9739
9740 # And these apply if build != host, or we are generating coverage data
9741 if test x$build != x$host || test "x$coverage_flags" != x
9742 then
9743     BUILD_PREFIX=build-
9744     BUILD_PREFIX_1=build-
9745     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9746
9747     if test "x$TARGET_SYSTEM_ROOT" = x; then
9748         STMP_FIXINC=
9749         STMP_FIXPROTO=
9750     fi
9751 fi
9752
9753 # Expand extra_headers to include complete path.
9754 # This substitutes for lots of t-* files.
9755 extra_headers_list=
9756 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9757 for file in ${extra_headers} ; do
9758   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9759 done
9760
9761 # Add a definition of USE_COLLECT2 if system wants one.
9762 case $use_collect2 in
9763   no) use_collect2= ;;
9764   "") ;;
9765   *)
9766     host_xm_defines="${host_xm_defines} USE_COLLECT2"
9767     xm_defines="${xm_defines} USE_COLLECT2"
9768     ;;
9769 esac
9770
9771 # Identify the assembler which will work hand-in-glove with the newly
9772 # built GCC, so that we can examine its features.  This is the assembler
9773 # which will be driven by the driver program.
9774 #
9775 # If build != host, and we aren't building gas in-tree, we identify a
9776 # build->target assembler and hope that it will have the same features
9777 # as the host->target assembler we'll be using.
9778 echo "$as_me:$LINENO: checking what assembler to use" >&5
9779 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9780 in_tree_gas=no
9781 gcc_cv_as=
9782 gcc_cv_gas_major_version=
9783 gcc_cv_gas_minor_version=
9784 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9785 if test -x "$DEFAULT_ASSEMBLER"; then
9786         gcc_cv_as="$DEFAULT_ASSEMBLER"
9787 elif test -x "$AS"; then
9788         gcc_cv_as="$AS"
9789 elif test -x as$host_exeext; then
9790         # Build using assembler in the current directory.
9791         gcc_cv_as=./as$host_exeext
9792 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9793      && test -f ../gas/Makefile; then
9794   # Single tree build which includes gas.
9795   in_tree_gas=yes
9796   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9797 for f in $gcc_cv_as_bfd_srcdir/configure \
9798          $gcc_cv_as_gas_srcdir/configure \
9799          $gcc_cv_as_gas_srcdir/configure.in \
9800          $gcc_cv_as_gas_srcdir/Makefile.in ; do
9801   gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9802   if test x$gcc_cv_gas_version != x; then
9803     break
9804   fi
9805 done
9806 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9807 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9808 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9809 case $gcc_cv_gas_patch_version in
9810   "") gcc_cv_gas_patch_version="0" ;;
9811 esac
9812 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9813                             + $gcc_cv_gas_minor_version \) \* 1000 \
9814                             + $gcc_cv_gas_patch_version`
9815
9816   rm -f as$host_exeext
9817   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9818   in_tree_gas_is_elf=no
9819   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9820      || (grep 'obj_format = multi' ../gas/Makefile \
9821          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9822   then
9823     in_tree_gas_is_elf=yes
9824   fi
9825 fi
9826
9827 if test "x$gcc_cv_as" = x; then
9828         # Search the same directories that the installed compiler will
9829         # search.  Else we may find the wrong assembler and lose.  If we
9830         # do not find a suitable assembler binary, then try the user's
9831         # path.
9832         #
9833         # Also note we have to check MD_EXEC_PREFIX before checking the
9834         # user's path.  Unfortunately, there is no good way to get at the
9835         # value of MD_EXEC_PREFIX here.  So we do a brute force search
9836         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
9837         # to be fixed as part of the make/configure rewrite too.
9838
9839         if test "x$exec_prefix" = xNONE; then
9840                 if test "x$prefix" = xNONE; then
9841                         test_prefix=/usr/local
9842                 else
9843                         test_prefix=$prefix
9844                 fi
9845         else
9846                 test_prefix=$exec_prefix
9847         fi
9848
9849         # If the loop below does not find an assembler, then use whatever
9850         # one we can find in the users's path.
9851         # user's path.
9852         if test "x$program_prefix" != xNONE; then
9853                 gcc_cv_as=${program_prefix}as$host_exeext
9854         else
9855                 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
9856         fi
9857
9858         test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9859                    $test_prefix/lib/gcc-lib/$target_noncanonical \
9860                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
9861                    /usr/lib/gcc/$target_noncanonical \
9862                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9863                    $test_prefix/$target_noncanonical/bin"
9864
9865         if test x$host = x$target; then
9866             test_dirs="$test_dirs \
9867                    /usr/libexec \
9868                    /usr/ccs/gcc \
9869                    /usr/ccs/bin \
9870                    /udk/usr/ccs/bin \
9871                    /bsd43/usr/lib/cmplrs/cc \
9872                    /usr/cross64/usr/bin \
9873                    /usr/lib/cmplrs/cc \
9874                    /sysv/usr/lib/cmplrs/cc \
9875                    /svr4/usr/lib/cmplrs/cc \
9876                    /usr/bin"
9877         fi
9878
9879         for dir in $test_dirs; do
9880                 if test -x $dir/as$host_exeext; then
9881                         gcc_cv_as=$dir/as$host_exeext
9882                         break;
9883                 fi
9884         done
9885 fi
9886 case $in_tree_gas in
9887   yes)
9888     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9889 echo "${ECHO_T}\"newly built gas\"" >&6
9890     ;;
9891   no)
9892     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9893 echo "${ECHO_T}$gcc_cv_as" >&6
9894     ;;
9895 esac
9896
9897 # Identify the linker which will work hand-in-glove with the newly
9898 # built GCC, so that we can examine its features.  This is the linker
9899 # which will be driven by the driver program.
9900 #
9901 # If build != host, and we aren't building gas in-tree, we identify a
9902 # build->target linker and hope that it will have the same features
9903 # as the host->target linker we'll be using.
9904 echo "$as_me:$LINENO: checking what linker to use" >&5
9905 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9906 in_tree_ld=no
9907 gcc_cv_ld=
9908 gcc_cv_gld_major_version=
9909 gcc_cv_gld_minor_version=
9910 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9911 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9912 if test -x "$DEFAULT_LINKER"; then
9913         gcc_cv_ld="$DEFAULT_LINKER"
9914 elif test -x "$LD"; then
9915         gcc_cv_ld="$LD"
9916 elif test -x collect-ld$host_exeext; then
9917         # Build using linker in the current directory.
9918         gcc_cv_ld=./collect-ld$host_exeext
9919 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9920      && test -f ../ld/Makefile; then
9921         # Single tree build which includes ld.
9922         in_tree_ld=yes
9923         in_tree_ld_is_elf=no
9924         if (grep 'EMUL = .*elf' ../ld/Makefile \
9925             || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
9926           in_tree_ld_is_elf=yes
9927         fi
9928         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
9929         do
9930                 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9931                 if test x$gcc_cv_gld_version != x; then
9932                         break
9933                 fi
9934         done
9935         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9936         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9937         rm -f collect-ld$host_exeext
9938         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
9939                 2>/dev/null
9940 fi
9941
9942 if test "x$gcc_cv_ld" = x; then
9943         # Search the same directories that the installed compiler will
9944         # search.  Else we may find the wrong linker and lose.  If we
9945         # do not find a suitable linker binary, then try the user's
9946         # path.
9947         #
9948         # Also note we have to check MD_EXEC_PREFIX before checking the
9949         # user's path.  Unfortunately, there is no good way to get at the
9950         # value of MD_EXEC_PREFIX here.  So we do a brute force search
9951         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
9952         # to be fixed as part of the make/configure rewrite too.
9953
9954         if test "x$exec_prefix" = xNONE; then
9955                 if test "x$prefix" = xNONE; then
9956                         test_prefix=/usr/local
9957                 else
9958                         test_prefix=$prefix
9959                 fi
9960         else
9961                 test_prefix=$exec_prefix
9962         fi
9963
9964         # If the loop below does not find an linker, then use whatever
9965         # one we can find in the users's path.
9966         # user's path.
9967         if test "x$program_prefix" != xNONE; then
9968                 gcc_cv_ld=${program_prefix}ld$host_exeext
9969         else
9970                 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
9971         fi
9972
9973         test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9974                    $test_prefix/lib/gcc-lib/$target_noncanonical \
9975                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
9976                    /usr/lib/gcc/$target_noncanonical \
9977                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9978                    $test_prefix/$target_noncanonical/bin"
9979
9980         if test x$host = x$target; then
9981             test_dirs="$test_dirs \
9982                    /usr/libexec \
9983                    /usr/ccs/gcc \
9984                    /usr/ccs/bin \
9985                    /udk/usr/ccs/bin \
9986                    /bsd43/usr/lib/cmplrs/cc \
9987                    /usr/cross64/usr/bin \
9988                    /usr/lib/cmplrs/cc \
9989                    /sysv/usr/lib/cmplrs/cc \
9990                    /svr4/usr/lib/cmplrs/cc \
9991                    /usr/bin"
9992         fi
9993
9994         for dir in $test_dirs; do
9995                 if test -x $dir/ld$host_exeext; then
9996                         gcc_cv_ld=$dir/ld$host_exeext
9997                         break;
9998                 fi
9999         done
10000 fi
10001 case $in_tree_ld in
10002   yes)
10003     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10004 echo "${ECHO_T}\"newly built ld\"" >&6
10005     ;;
10006   no)
10007     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10008 echo "${ECHO_T}$gcc_cv_ld" >&6
10009     ;;
10010 esac
10011
10012 # Figure out what nm we will be using.
10013 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10014 echo "$as_me:$LINENO: checking what nm to use" >&5
10015 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10016 in_tree_nm=no
10017 if test -x nm$host_exeext; then
10018         gcc_cv_nm=./nm$host_exeext
10019 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10020      && test -f ../binutils/Makefile; then
10021         # Single tree build which includes binutils.
10022         in_tree_nm=yes
10023         gcc_cv_nm=./nm$host_exeext
10024         rm -f nm$host_exeext
10025         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10026 elif test "x$program_prefix" != xNONE; then
10027         gcc_cv_nm=${program_prefix}nm$host_exeext
10028 else
10029         gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
10030 fi
10031 case $in_tree_nm in
10032   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10033 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10034   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10035 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10036 esac
10037
10038 # Figure out what objdump we will be using.
10039 echo "$as_me:$LINENO: checking what objdump to use" >&5
10040 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10041 in_tree_objdump=no
10042 if test -x objdump$host_exeext; then
10043         gcc_cv_objdump=./objdump$host_exeext
10044 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10045      && test -f ../binutils/Makefile; then
10046         # Single tree build which includes binutils.
10047         in_tree_objdump=yes
10048         gcc_cv_objdump=./objdump$host_exeext
10049         rm -f objdump$host_exeext
10050         $symbolic_link ../binutils/objdump$host_exeext \
10051                 objdump$host_exeext 2>/dev/null
10052 elif test "x$program_prefix" != xNONE; then
10053         gcc_cv_objdump=${program_prefix}objdump$host_exeext
10054 else
10055         gcc_cv_objdump=`echo objdump | \
10056                 sed ${program_transform_name}`$host_exeext
10057 fi
10058 case $in_tree_objdump in
10059   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10060 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10061   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10062 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10063 esac
10064
10065 # Figure out what assembler alignment features are present.
10066 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10067 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10068 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10069   echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071   gcc_cv_as_balign_and_p2align=no
10072     if test $in_tree_gas = yes; then
10073     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10074   then gcc_cv_as_balign_and_p2align=yes
10075 fi
10076   elif test x$gcc_cv_as != x; then
10077     echo '.balign 4
10078 .p2align 2' > conftest.s
10079     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081   (eval $ac_try) 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; }
10085     then
10086         gcc_cv_as_balign_and_p2align=yes
10087     else
10088       echo "configure: failed program was" >&5
10089       cat conftest.s >&5
10090     fi
10091     rm -f conftest.o conftest.s
10092   fi
10093 fi
10094 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10095 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10096 if test $gcc_cv_as_balign_and_p2align = yes; then
10097
10098 cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10100 _ACEOF
10101
10102 fi
10103
10104 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10105 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10106 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10107   echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109   gcc_cv_as_max_skip_p2align=no
10110     if test $in_tree_gas = yes; then
10111     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10112   then gcc_cv_as_max_skip_p2align=yes
10113 fi
10114   elif test x$gcc_cv_as != x; then
10115     echo '.p2align 4,,7' > conftest.s
10116     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118   (eval $ac_try) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; }
10122     then
10123         gcc_cv_as_max_skip_p2align=yes
10124     else
10125       echo "configure: failed program was" >&5
10126       cat conftest.s >&5
10127     fi
10128     rm -f conftest.o conftest.s
10129   fi
10130 fi
10131 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10132 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10133 if test $gcc_cv_as_max_skip_p2align = yes; then
10134
10135 cat >>confdefs.h <<\_ACEOF
10136 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10137 _ACEOF
10138
10139 fi
10140
10141 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10142 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10143 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   gcc_cv_as_subsection_m1=no
10147     if test $in_tree_gas = yes; then
10148     if test $in_tree_gas_is_elf = yes \
10149   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10150   then gcc_cv_as_subsection_m1=yes
10151 fi
10152   elif test x$gcc_cv_as != x; then
10153     echo 'conftest_label1: .word 0
10154 .subsection -1
10155 conftest_label2: .word 0
10156 .previous' > conftest.s
10157     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159   (eval $ac_try) 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); }; }
10163     then
10164         if test x$gcc_cv_nm != x; then
10165     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10166     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10167     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10168     then :
10169     else gcc_cv_as_subsection_m1=yes
10170     fi
10171     rm -f conftest.nm1 conftest.nm2
10172   fi
10173     else
10174       echo "configure: failed program was" >&5
10175       cat conftest.s >&5
10176     fi
10177     rm -f conftest.o conftest.s
10178   fi
10179 fi
10180 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10181 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10182 if test $gcc_cv_as_subsection_m1 = yes; then
10183
10184 cat >>confdefs.h <<\_ACEOF
10185 #define HAVE_GAS_SUBSECTION_ORDERING 1
10186 _ACEOF
10187
10188 fi
10189
10190 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10191 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10192 if test "${gcc_cv_as_weak+set}" = set; then
10193   echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195   gcc_cv_as_weak=no
10196     if test $in_tree_gas = yes; then
10197     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10198   then gcc_cv_as_weak=yes
10199 fi
10200   elif test x$gcc_cv_as != x; then
10201     echo '      .weak foobar' > conftest.s
10202     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; }
10208     then
10209         gcc_cv_as_weak=yes
10210     else
10211       echo "configure: failed program was" >&5
10212       cat conftest.s >&5
10213     fi
10214     rm -f conftest.o conftest.s
10215   fi
10216 fi
10217 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10218 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10219 if test $gcc_cv_as_weak = yes; then
10220
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_GAS_WEAK 1
10223 _ACEOF
10224
10225 fi
10226
10227 # .hidden needs to be supported in both the assembler and the linker,
10228 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10229 # This is irritatingly difficult to feature test for; we have to check the
10230 # date string after the version number.  If we've got an in-tree
10231 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10232 # to be safe.
10233 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10234 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10235 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10236 if test "${gcc_cv_as_hidden+set}" = set; then
10237   echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239   gcc_cv_as_hidden=no
10240     if test $in_tree_gas = yes; then
10241     if test $in_tree_gas_is_elf = yes \
10242   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10243   then gcc_cv_as_hidden=yes
10244 fi
10245   elif test x$gcc_cv_as != x; then
10246     echo '      .hidden foobar
10247 foobar:' > conftest.s
10248     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250   (eval $ac_try) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; }
10254     then
10255         gcc_cv_as_hidden=yes
10256     else
10257       echo "configure: failed program was" >&5
10258       cat conftest.s >&5
10259     fi
10260     rm -f conftest.o conftest.s
10261   fi
10262 fi
10263 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10264 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10265
10266
10267 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10268 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10269 if test "${gcc_cv_ld_hidden+set}" = set; then
10270   echo $ECHO_N "(cached) $ECHO_C" >&6
10271 else
10272   if test $in_tree_ld = yes ; then
10273   gcc_cv_ld_hidden=no
10274   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 \
10275      && test $in_tree_ld_is_elf = yes; then
10276      gcc_cv_ld_hidden=yes
10277   fi
10278 else
10279   gcc_cv_ld_hidden=yes
10280   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10281   if echo "$ld_ver" | grep GNU > /dev/null; then
10282     ld_vers=`echo $ld_ver | sed -n \
10283         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10284         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10285         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10286         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
10287         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
10288         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
10289     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'`
10290     if test 0"$ld_date" -lt 20020404; then
10291       if test -n "$ld_date"; then
10292         # If there was date string, but was earlier than 2002-04-04, fail
10293         gcc_cv_ld_hidden=no
10294       elif test -z "$ld_vers"; then
10295         # If there was no date string nor ld version number, something is wrong
10296         gcc_cv_ld_hidden=no
10297       else
10298         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10299         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10300         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10301         test -z "$ld_vers_patch" && ld_vers_patch=0
10302         if test "$ld_vers_major" -lt 2; then
10303           gcc_cv_ld_hidden=no
10304         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10305           gcc_cv_ld_hidden="no"
10306         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10307           gcc_cv_ld_hidden=no
10308         fi
10309       fi
10310     fi
10311   else
10312     case "${target}" in
10313       hppa64*-*-hpux*)
10314         gcc_cv_ld_hidden=yes
10315         ;;
10316       *)
10317         gcc_cv_ld_hidden=no
10318         ;;
10319     esac
10320   fi
10321 fi
10322 fi
10323 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10324 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10325 libgcc_visibility=no
10326
10327 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10328   libgcc_visibility=yes
10329
10330 cat >>confdefs.h <<\_ACEOF
10331 #define HAVE_GAS_HIDDEN 1
10332 _ACEOF
10333
10334 fi
10335
10336 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10337 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10338 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10339 if test "${gcc_cv_as_leb128+set}" = set; then
10340   echo $ECHO_N "(cached) $ECHO_C" >&6
10341 else
10342   gcc_cv_as_leb128=no
10343     if test $in_tree_gas = yes; then
10344     if test $in_tree_gas_is_elf = yes \
10345   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10346   then gcc_cv_as_leb128=yes
10347 fi
10348   elif test x$gcc_cv_as != x; then
10349     echo '      .data
10350         .uleb128 L2 - L1
10351 L1:
10352         .uleb128 1280
10353         .sleb128 -1010
10354 L2:' > conftest.s
10355     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357   (eval $ac_try) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); }; }
10361     then
10362         # GAS versions before 2.11 do not support uleb128,
10363   # despite appearing to.
10364   # ??? There exists an elf-specific test that will crash
10365   # the assembler.  Perhaps it's better to figure out whether
10366   # arbitrary sections are supported and try the test.
10367   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10368   if echo "$as_ver" | grep GNU > /dev/null; then
10369     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10370     as_major=`echo $as_ver | sed 's/\..*//'`
10371     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10372     if test $as_major -eq 2 && test $as_minor -lt 11
10373     then :
10374     else gcc_cv_as_leb128=yes
10375     fi
10376   fi
10377     else
10378       echo "configure: failed program was" >&5
10379       cat conftest.s >&5
10380     fi
10381     rm -f conftest.o conftest.s
10382   fi
10383 fi
10384 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10385 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10386 if test $gcc_cv_as_leb128 = yes; then
10387
10388 cat >>confdefs.h <<\_ACEOF
10389 #define HAVE_AS_LEB128 1
10390 _ACEOF
10391
10392 fi
10393
10394 # GAS versions up to and including 2.11.0 may mis-optimize
10395 # .eh_frame data.
10396 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10397 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10398 if test "${gcc_cv_as_eh_frame+set}" = set; then
10399   echo $ECHO_N "(cached) $ECHO_C" >&6
10400 else
10401   gcc_cv_as_eh_frame=no
10402     if test $in_tree_gas = yes; then
10403     if test $in_tree_gas_is_elf = yes \
10404   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10405   then gcc_cv_as_eh_frame=yes
10406 fi
10407   elif test x$gcc_cv_as != x; then
10408     echo '      .text
10409 .LFB1:
10410         .4byte  0
10411 .L1:
10412         .4byte  0
10413 .LFE1:
10414         .section        .eh_frame,"aw",@progbits
10415 __FRAME_BEGIN__:
10416         .4byte  .LECIE1-.LSCIE1
10417 .LSCIE1:
10418         .4byte  0x0
10419         .byte   0x1
10420         .ascii "z\0"
10421         .byte   0x1
10422         .byte   0x78
10423         .byte   0x1a
10424         .byte   0x0
10425         .byte   0x4
10426         .4byte  1
10427         .p2align 1
10428 .LECIE1:
10429 .LSFDE1:
10430         .4byte  .LEFDE1-.LASFDE1
10431 .LASFDE1:
10432         .4byte  .LASFDE1-__FRAME_BEGIN__
10433         .4byte  .LFB1
10434         .4byte  .LFE1-.LFB1
10435         .byte   0x4
10436         .4byte  .LFE1-.LFB1
10437         .byte   0x4
10438         .4byte  .L1-.LFB1
10439 .LEFDE1:' > conftest.s
10440     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442   (eval $ac_try) 2>&5
10443   ac_status=$?
10444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445   (exit $ac_status); }; }
10446     then
10447           cat > conftest.lit <<EOF
10448  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10449  0010 01000000 12000000 18000000 00000000  ................
10450  0020 08000000 04080000 0044               .........D      
10451 EOF
10452 cat > conftest.big <<EOF
10453  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10454  0010 00000001 00000012 00000018 00000000  ................
10455  0020 00000008 04000000 0844               .........D      
10456 EOF
10457   # If the assembler didn't choke, and we can objdump,
10458   # and we got the correct data, then succeed.
10459   if test x$gcc_cv_objdump != x \
10460   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10461      | tail -3 > conftest.got \
10462   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10463     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10464   then
10465     gcc_cv_as_eh_frame=yes
10466   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468   (eval $ac_try) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }; }; then
10472     gcc_cv_as_eh_frame=buggy
10473   else
10474     # Uh oh, what do we do now?
10475     gcc_cv_as_eh_frame=no
10476   fi
10477     else
10478       echo "configure: failed program was" >&5
10479       cat conftest.s >&5
10480     fi
10481     rm -f conftest.o conftest.s
10482   fi
10483 fi
10484 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10485 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10486
10487
10488 if test $gcc_cv_as_eh_frame = buggy; then
10489
10490 cat >>confdefs.h <<\_ACEOF
10491 #define USE_AS_TRADITIONAL_FORMAT 1
10492 _ACEOF
10493
10494 fi
10495
10496 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10497 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10498 if test "${gcc_cv_as_shf_merge+set}" = set; then
10499   echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501   gcc_cv_as_shf_merge=no
10502     if test $in_tree_gas = yes; then
10503     if test $in_tree_gas_is_elf = yes \
10504   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10505   then gcc_cv_as_shf_merge=yes
10506 fi
10507   elif test x$gcc_cv_as != x; then
10508     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10509     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511   (eval $ac_try) 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; }
10515     then
10516         gcc_cv_as_shf_merge=yes
10517     else
10518       echo "configure: failed program was" >&5
10519       cat conftest.s >&5
10520     fi
10521     rm -f conftest.o conftest.s
10522   fi
10523 fi
10524 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10525 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10526
10527
10528 cat >>confdefs.h <<_ACEOF
10529 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10530 _ACEOF
10531
10532
10533 # Thread-local storage - the check is heavily parametrized.
10534 conftest_s=
10535 tls_first_major=
10536 tls_first_minor=
10537 tls_as_opt=
10538 case "$target" in
10539   alpha*-*-*)
10540     conftest_s='
10541         .section ".tdata","awT",@progbits
10542 foo:    .long   25
10543         .text
10544         ldq     $27,__tls_get_addr($29)         !literal!1
10545         lda     $16,foo($29)                    !tlsgd!1
10546         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
10547         ldq     $27,__tls_get_addr($29)         !literal!2
10548         lda     $16,foo($29)                    !tlsldm!2
10549         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
10550         ldq     $1,foo($29)                     !gotdtprel
10551         ldah    $2,foo($29)                     !dtprelhi
10552         lda     $3,foo($2)                      !dtprello
10553         lda     $4,foo($29)                     !dtprel
10554         ldq     $1,foo($29)                     !gottprel
10555         ldah    $2,foo($29)                     !tprelhi
10556         lda     $3,foo($2)                      !tprello
10557         lda     $4,foo($29)                     !tprel'
10558         tls_first_major=2
10559         tls_first_minor=13
10560         ;;
10561   i[34567]86-*-*)
10562     conftest_s='
10563         .section ".tdata","awT",@progbits
10564 foo:    .long   25
10565         .text
10566         movl    %gs:0, %eax
10567         leal    foo@TLSGD(,%ebx,1), %eax
10568         leal    foo@TLSLDM(%ebx), %eax
10569         leal    foo@DTPOFF(%eax), %edx
10570         movl    foo@GOTTPOFF(%ebx), %eax
10571         subl    foo@GOTTPOFF(%ebx), %eax
10572         addl    foo@GOTNTPOFF(%ebx), %eax
10573         movl    foo@INDNTPOFF, %eax
10574         movl    $foo@TPOFF, %eax
10575         subl    $foo@TPOFF, %eax
10576         leal    foo@NTPOFF(%ecx), %eax'
10577         tls_first_major=2
10578         tls_first_minor=14
10579         ;;
10580   x86_64-*-*)
10581     conftest_s='
10582         .section ".tdata","awT",@progbits
10583 foo:    .long   25
10584         .text
10585         movq    %fs:0, %rax
10586         leaq    foo@TLSGD(%rip), %rdi
10587         leaq    foo@TLSLD(%rip), %rdi
10588         leaq    foo@DTPOFF(%rax), %rdx
10589         movq    foo@GOTTPOFF(%rip), %rax
10590         movq    $foo@TPOFF, %rax'
10591         tls_first_major=2
10592         tls_first_minor=14
10593         ;;
10594   ia64-*-*)
10595     conftest_s='
10596         .section ".tdata","awT",@progbits
10597 foo:    data8   25
10598         .text
10599         addl    r16 = @ltoff(@dtpmod(foo#)), gp
10600         addl    r17 = @ltoff(@dtprel(foo#)), gp
10601         addl    r18 = @ltoff(@tprel(foo#)), gp
10602         addl    r19 = @dtprel(foo#), gp
10603         adds    r21 = @dtprel(foo#), r13
10604         movl    r23 = @dtprel(foo#)
10605         addl    r20 = @tprel(foo#), gp
10606         adds    r22 = @tprel(foo#), r13
10607         movl    r24 = @tprel(foo#)'
10608         tls_first_major=2
10609         tls_first_minor=13
10610         ;;
10611   powerpc-*-*)
10612     conftest_s='
10613         .section ".tdata","awT",@progbits
10614         .align 2
10615 ld0:    .space 4
10616 ld1:    .space 4
10617 x1:     .space 4
10618 x2:     .space 4
10619 x3:     .space 4
10620         .text
10621         addi 3,31,ld0@got@tlsgd
10622         bl __tls_get_addr
10623         addi 3,31,x1@got@tlsld
10624         bl __tls_get_addr
10625         addi 9,3,x1@dtprel
10626         addis 9,3,x2@dtprel@ha
10627         addi 9,9,x2@dtprel@l
10628         lwz 9,x3@got@tprel(31)
10629         add 9,9,x@tls
10630         addi 9,2,x1@tprel
10631         addis 9,2,x2@tprel@ha
10632         addi 9,9,x2@tprel@l'
10633         tls_first_major=2
10634         tls_first_minor=14
10635         tls_as_opt=-a32
10636         ;;
10637   powerpc64-*-*)
10638     conftest_s='
10639         .section ".tdata","awT",@progbits
10640         .align 3
10641 ld0:    .space 8
10642 ld1:    .space 8
10643 x1:     .space 8
10644 x2:     .space 8
10645 x3:     .space 8
10646         .text
10647         addi 3,2,ld0@got@tlsgd
10648         bl .__tls_get_addr
10649         nop
10650         addi 3,2,ld1@toc
10651         bl .__tls_get_addr
10652         nop
10653         addi 3,2,x1@got@tlsld
10654         bl .__tls_get_addr
10655         nop
10656         addi 9,3,x1@dtprel
10657         bl .__tls_get_addr
10658         nop
10659         addis 9,3,x2@dtprel@ha
10660         addi 9,9,x2@dtprel@l
10661         bl .__tls_get_addr
10662         nop
10663         ld 9,x3@got@dtprel(2)
10664         add 9,9,3
10665         bl .__tls_get_addr
10666         nop'
10667         tls_first_major=2
10668         tls_first_minor=14
10669         tls_as_opt=-a64
10670         ;;
10671   s390-*-*)
10672     conftest_s='
10673         .section ".tdata","awT",@progbits
10674 foo:    .long   25
10675         .text
10676         .long   foo@TLSGD
10677         .long   foo@TLSLDM
10678         .long   foo@DTPOFF
10679         .long   foo@NTPOFF
10680         .long   foo@GOTNTPOFF
10681         .long   foo@INDNTPOFF
10682         l       %r1,foo@GOTNTPOFF(%r12)
10683         l       %r1,0(%r1):tls_load:foo
10684         bas     %r14,0(%r1,%r13):tls_gdcall:foo
10685         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
10686         tls_first_major=2
10687         tls_first_minor=14
10688         tls_as_opt=-m31
10689         ;;
10690   s390x-*-*)
10691     conftest_s='
10692         .section ".tdata","awT",@progbits
10693 foo:    .long   25
10694         .text
10695         .quad   foo@TLSGD
10696         .quad   foo@TLSLDM
10697         .quad   foo@DTPOFF
10698         .quad   foo@NTPOFF
10699         .quad   foo@GOTNTPOFF
10700         lg      %r1,foo@GOTNTPOFF(%r12)
10701         larl    %r1,foo@INDNTPOFF
10702         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
10703         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10704         tls_first_major=2
10705         tls_first_minor=14
10706         tls_as_opt="-m64 -Aesame"
10707         ;;
10708   sh-*-* | sh[34]-*-*)
10709     conftest_s='
10710         .section ".tdata","awT",@progbits
10711 foo:    .long   25
10712         .text
10713         .long   foo@TLSGD
10714         .long   foo@TLSLDM
10715         .long   foo@DTPOFF
10716         .long   foo@GOTTPOFF
10717         .long   foo@TPOFF'
10718         tls_first_major=2
10719         tls_first_minor=13
10720         ;;
10721   sparc*-*-*)
10722     conftest_s='
10723         .section ".tdata","awT",@progbits
10724 foo:    .long   25
10725         .text
10726         sethi   %tgd_hi22(foo), %o0
10727         add     %o0, %tgd_lo10(foo), %o1
10728         add     %l7, %o1, %o0, %tgd_add(foo)
10729         call    __tls_get_addr, %tgd_call(foo)
10730         sethi   %tldm_hi22(foo), %l1
10731         add     %l1, %tldm_lo10(foo), %l2
10732         add     %l7, %l2, %o0, %tldm_add(foo)
10733         call    __tls_get_addr, %tldm_call(foo)
10734         sethi   %tldo_hix22(foo), %l3
10735         xor     %l3, %tldo_lox10(foo), %l4
10736         add     %o0, %l4, %l5, %tldo_add(foo)
10737         sethi   %tie_hi22(foo), %o3
10738         add     %o3, %tie_lo10(foo), %o3
10739         ld      [%l7 + %o3], %o2, %tie_ld(foo)
10740         add     %g7, %o2, %o4, %tie_add(foo)
10741         sethi   %tle_hix22(foo), %l1
10742         xor     %l1, %tle_lox10(foo), %o5
10743         ld      [%g7 + %o5], %o1'
10744         tls_first_major=2
10745         tls_first_minor=14
10746         tls_as_opt=-32
10747         ;;
10748 esac
10749 if test -z "$tls_first_major"; then
10750   : # If we don't have a check, assume no support.
10751 else
10752   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10753 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10754 if test "${gcc_cv_as_tls+set}" = set; then
10755   echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757   gcc_cv_as_tls=no
10758     if test $in_tree_gas = yes; then
10759     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10760   then gcc_cv_as_tls=yes
10761 fi
10762   elif test x$gcc_cv_as != x; then
10763     echo "$conftest_s" > conftest.s
10764     if { ac_try='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'
10765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766   (eval $ac_try) 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); }; }
10770     then
10771         gcc_cv_as_tls=yes
10772     else
10773       echo "configure: failed program was" >&5
10774       cat conftest.s >&5
10775     fi
10776     rm -f conftest.o conftest.s
10777   fi
10778 fi
10779 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10780 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10781 if test $gcc_cv_as_tls = yes; then
10782
10783 cat >>confdefs.h <<\_ACEOF
10784 #define HAVE_AS_TLS 1
10785 _ACEOF
10786
10787 fi
10788 fi
10789
10790 # Target-specific assembler checks.
10791
10792 case "$target" in
10793   # All TARGET_ABI_OSF targets.
10794   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10795     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10796 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10797 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10798   echo $ECHO_N "(cached) $ECHO_C" >&6
10799 else
10800   gcc_cv_as_alpha_explicit_relocs=no
10801     if test $in_tree_gas = yes; then
10802     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10803   then gcc_cv_as_alpha_explicit_relocs=yes
10804 fi
10805   elif test x$gcc_cv_as != x; then
10806     echo '      .set nomacro
10807         .text
10808         extbl   $3, $2, $3      !lituse_bytoff!1
10809         ldq     $2, a($29)      !literal!1
10810         ldq     $4, b($29)      !literal!2
10811         ldq_u   $3, 0($2)       !lituse_base!1
10812         ldq     $27, f($29)     !literal!5
10813         jsr     $26, ($27), f   !lituse_jsr!5
10814         ldah    $29, 0($26)     !gpdisp!3
10815         lda     $0, c($29)      !gprel
10816         ldah    $1, d($29)      !gprelhigh
10817         lda     $1, d($1)       !gprellow
10818         lda     $29, 0($29)     !gpdisp!3' > conftest.s
10819     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821   (eval $ac_try) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }
10825     then
10826         gcc_cv_as_alpha_explicit_relocs=yes
10827     else
10828       echo "configure: failed program was" >&5
10829       cat conftest.s >&5
10830     fi
10831     rm -f conftest.o conftest.s
10832   fi
10833 fi
10834 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10835 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10836 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10837
10838 cat >>confdefs.h <<\_ACEOF
10839 #define HAVE_AS_EXPLICIT_RELOCS 1
10840 _ACEOF
10841
10842 fi
10843     ;;
10844
10845   sparc*-*-*)
10846     echo "$as_me:$LINENO: checking assembler for .register" >&5
10847 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10848 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10849   echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851   gcc_cv_as_sparc_register_op=no
10852   if test x$gcc_cv_as != x; then
10853     echo '.register %g2, #scratch' > conftest.s
10854     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856   (eval $ac_try) 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); }; }
10860     then
10861         gcc_cv_as_sparc_register_op=yes
10862     else
10863       echo "configure: failed program was" >&5
10864       cat conftest.s >&5
10865     fi
10866     rm -f conftest.o conftest.s
10867   fi
10868 fi
10869 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10870 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10871 if test $gcc_cv_as_sparc_register_op = yes; then
10872
10873 cat >>confdefs.h <<\_ACEOF
10874 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10875 _ACEOF
10876
10877 fi
10878
10879     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10880 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10881 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10882   echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884   gcc_cv_as_sparc_relax=no
10885   if test x$gcc_cv_as != x; then
10886     echo '.text' > conftest.s
10887     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889   (eval $ac_try) 2>&5
10890   ac_status=$?
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); }; }
10893     then
10894         gcc_cv_as_sparc_relax=yes
10895     else
10896       echo "configure: failed program was" >&5
10897       cat conftest.s >&5
10898     fi
10899     rm -f conftest.o conftest.s
10900   fi
10901 fi
10902 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10903 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10904 if test $gcc_cv_as_sparc_relax = yes; then
10905
10906 cat >>confdefs.h <<\_ACEOF
10907 #define HAVE_AS_RELAX_OPTION 1
10908 _ACEOF
10909
10910 fi
10911
10912     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10913 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10914 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10915   echo $ECHO_N "(cached) $ECHO_C" >&6
10916 else
10917   gcc_cv_as_sparc_ua_pcrel=no
10918   if test x$gcc_cv_as != x; then
10919     echo '.text
10920 foo:
10921         nop
10922 .data
10923 .align 4
10924 .byte 0
10925 .uaword %r_disp32(foo)' > conftest.s
10926     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928   (eval $ac_try) 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); }; }
10932     then
10933         if test x$gcc_cv_ld != x \
10934        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
10935          gcc_cv_as_sparc_ua_pcrel=yes
10936        fi
10937        rm -f conftest
10938     else
10939       echo "configure: failed program was" >&5
10940       cat conftest.s >&5
10941     fi
10942     rm -f conftest.o conftest.s
10943   fi
10944 fi
10945 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10946 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10947 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10948
10949 cat >>confdefs.h <<\_ACEOF
10950 #define HAVE_AS_SPARC_UA_PCREL 1
10951 _ACEOF
10952
10953
10954       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10955 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10956 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10957   echo $ECHO_N "(cached) $ECHO_C" >&6
10958 else
10959   gcc_cv_as_sparc_ua_pcrel_hidden=no
10960   if test x$gcc_cv_as != x; then
10961     echo '.data
10962 .align 4
10963 .byte 0x31
10964 .uaword %r_disp32(foo)
10965 .byte 0x32, 0x33, 0x34
10966 .global foo
10967 .hidden foo
10968 foo:
10969 .skip 4' > conftest.s
10970     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972   (eval $ac_try) 2>&5
10973   ac_status=$?
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); }; }
10976     then
10977         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
10978          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
10979          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
10980             | grep ' 31000000 07323334' > /dev/null 2>&1; then
10981             if $gcc_cv_objdump -R conftest 2> /dev/null \
10982                | grep 'DISP32' > /dev/null 2>&1; then
10983                 :
10984             else
10985                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
10986             fi
10987          fi
10988          rm -f conftest
10989     else
10990       echo "configure: failed program was" >&5
10991       cat conftest.s >&5
10992     fi
10993     rm -f conftest.o conftest.s
10994   fi
10995 fi
10996 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10997 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10998 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
10999
11000 cat >>confdefs.h <<\_ACEOF
11001 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11002 _ACEOF
11003
11004 fi
11005
11006 fi # unaligned pcrel relocs
11007
11008     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11009 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11010 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11011   echo $ECHO_N "(cached) $ECHO_C" >&6
11012 else
11013   gcc_cv_as_sparc_offsetable_lo10=no
11014   if test x$gcc_cv_as != x; then
11015     echo '.text
11016         or %g1, %lo(ab) + 12, %g1
11017         or %g1, %lo(ab + 12), %g1' > conftest.s
11018     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020   (eval $ac_try) 2>&5
11021   ac_status=$?
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); }; }
11024     then
11025         if test x$gcc_cv_objdump != x \
11026        && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11027           | grep ' 82106000 82106000' > /dev/null 2>&1; then
11028          gcc_cv_as_offsetable_lo10=yes
11029        fi
11030     else
11031       echo "configure: failed program was" >&5
11032       cat conftest.s >&5
11033     fi
11034     rm -f conftest.o conftest.s
11035   fi
11036 fi
11037 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11038 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11039 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11040
11041 cat >>confdefs.h <<\_ACEOF
11042 #define HAVE_AS_OFFSETABLE_LO10 1
11043 _ACEOF
11044
11045 fi
11046     ;;
11047
11048   i[34567]86-*-* | x86_64-*-*)
11049     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11050 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11051 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11052   echo $ECHO_N "(cached) $ECHO_C" >&6
11053 else
11054   gcc_cv_as_ix86_filds_fists=no
11055     if test $in_tree_gas = yes; then
11056     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11057   then gcc_cv_as_ix86_filds_fists=yes
11058 fi
11059   elif test x$gcc_cv_as != x; then
11060     echo 'filds mem; fists mem' > conftest.s
11061     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063   (eval $ac_try) 2>&5
11064   ac_status=$?
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); }; }
11067     then
11068         gcc_cv_as_ix86_filds_fists=yes
11069     else
11070       echo "configure: failed program was" >&5
11071       cat conftest.s >&5
11072     fi
11073     rm -f conftest.o conftest.s
11074   fi
11075 fi
11076 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11077 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11078 if test $gcc_cv_as_ix86_filds_fists = yes; then
11079
11080 cat >>confdefs.h <<\_ACEOF
11081 #define HAVE_GAS_FILDS_FISTS 1
11082 _ACEOF
11083
11084 fi
11085
11086     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11087 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11088 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11089   echo $ECHO_N "(cached) $ECHO_C" >&6
11090 else
11091   gcc_cv_as_ix86_cmov_sun_syntax=no
11092   if test x$gcc_cv_as != x; then
11093     echo 'cmovl.l %edx, %eax' > conftest.s
11094     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096   (eval $ac_try) 2>&5
11097   ac_status=$?
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); }; }
11100     then
11101         gcc_cv_as_ix86_cmov_sun_syntax=yes
11102     else
11103       echo "configure: failed program was" >&5
11104       cat conftest.s >&5
11105     fi
11106     rm -f conftest.o conftest.s
11107   fi
11108 fi
11109 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11110 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11111 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11112
11113 cat >>confdefs.h <<\_ACEOF
11114 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11115 _ACEOF
11116
11117 fi
11118
11119     # This one is used unconditionally by i386.[ch]; it is to be defined
11120     # to 1 if the feature is present, 0 otherwise.
11121     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11122 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11123 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   gcc_cv_as_ix86_gotoff_in_data=no
11127     if test $in_tree_gas = yes; then
11128     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11129   then gcc_cv_as_ix86_gotoff_in_data=yes
11130 fi
11131   elif test x$gcc_cv_as != x; then
11132     echo '      .text
11133 .L0:
11134         nop
11135         .data
11136         .long .L0@GOTOFF' > conftest.s
11137     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139   (eval $ac_try) 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; }
11143     then
11144         gcc_cv_as_ix86_gotoff_in_data=yes
11145     else
11146       echo "configure: failed program was" >&5
11147       cat conftest.s >&5
11148     fi
11149     rm -f conftest.o conftest.s
11150   fi
11151 fi
11152 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11153 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11154
11155
11156 cat >>confdefs.h <<_ACEOF
11157 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11158 _ACEOF
11159
11160     ;;
11161
11162   ia64*-*-*)
11163     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11164 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11165 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11166   echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11169     if test $in_tree_gas = yes; then
11170     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11171   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11172 fi
11173   elif test x$gcc_cv_as != x; then
11174     echo '      .text
11175         addl r15 = @ltoffx(x#), gp
11176         ;;
11177         ld8.mov r16 = [r15], x#' > conftest.s
11178     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180   (eval $ac_try) 2>&5
11181   ac_status=$?
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); }; }
11184     then
11185         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11186     else
11187       echo "configure: failed program was" >&5
11188       cat conftest.s >&5
11189     fi
11190     rm -f conftest.o conftest.s
11191   fi
11192 fi
11193 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11194 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11195 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11196
11197 cat >>confdefs.h <<\_ACEOF
11198 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11199 _ACEOF
11200
11201 fi
11202
11203     ;;
11204
11205   powerpc*-*-*)
11206     case $target in
11207       *-*-aix) conftest_s='     .csect .textPR';;
11208       *)       conftest_s='     .text';;
11209     esac
11210     conftest_s="$conftest_s
11211         mfcr 3,128"
11212
11213     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11214 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11215 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11216   echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218   gcc_cv_as_powerpc_mfcrf=no
11219     if test $in_tree_gas = yes; then
11220     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11221   then gcc_cv_as_powerpc_mfcrf=yes
11222 fi
11223   elif test x$gcc_cv_as != x; then
11224     echo "$conftest_s" > conftest.s
11225     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227   (eval $ac_try) 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; }
11231     then
11232         gcc_cv_as_powerpc_mfcrf=yes
11233     else
11234       echo "configure: failed program was" >&5
11235       cat conftest.s >&5
11236     fi
11237     rm -f conftest.o conftest.s
11238   fi
11239 fi
11240 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11241 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11242 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11243
11244 cat >>confdefs.h <<\_ACEOF
11245 #define HAVE_AS_MFCRF 1
11246 _ACEOF
11247
11248 fi
11249     ;;
11250
11251   mips*-*-*)
11252     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11253 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11254 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11255   echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257   gcc_cv_as_mips_explicit_relocs=no
11258     if test $in_tree_gas = yes; then
11259     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11260   then gcc_cv_as_mips_explicit_relocs=yes
11261 fi
11262   elif test x$gcc_cv_as != x; then
11263     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
11264     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266   (eval $ac_try) 2>&5
11267   ac_status=$?
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); }; }
11270     then
11271         gcc_cv_as_mips_explicit_relocs=yes
11272     else
11273       echo "configure: failed program was" >&5
11274       cat conftest.s >&5
11275     fi
11276     rm -f conftest.o conftest.s
11277   fi
11278 fi
11279 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11280 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11281 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11282   if test x$target_cpu_default = x
11283        then target_cpu_default=MASK_EXPLICIT_RELOCS
11284        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11285        fi
11286 fi
11287
11288     ;;
11289 esac
11290 # ??? Not all targets support dwarf2 debug_line, even within a version
11291 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11292 # info to the output file.  So, as supported targets are added to gas 2.11,
11293 # add some instruction here to (also) show we expect this might work.
11294 # ??? Once 2.11 is released, probably need to add first known working
11295 # version to the per-target configury.
11296 case "$target" in
11297   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11298   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11299   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11300     insn="nop"
11301     ;;
11302   ia64*-*-*)
11303     insn="nop 0"
11304     ;;
11305   mmix-*-*)
11306     insn="swym 0"
11307     ;;
11308 esac
11309 if test x"$insn" != x; then
11310  conftest_s="\
11311         .file 1 \"conftest.s\"
11312         .loc 1 3 0
11313         $insn"
11314  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11315 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11316 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11317   echo $ECHO_N "(cached) $ECHO_C" >&6
11318 else
11319   gcc_cv_as_dwarf2_debug_line=no
11320     if test $in_tree_gas = yes; then
11321     if test $in_tree_gas_is_elf = yes \
11322   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11323   then gcc_cv_as_dwarf2_debug_line=yes
11324 fi
11325   elif test x$gcc_cv_as != x; then
11326     echo "$conftest_s" > conftest.s
11327     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329   (eval $ac_try) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); }; }
11333     then
11334         # ??? This fails with non-gnu grep.  Maybe use objdump?
11335    if grep debug_line conftest.o > /dev/null 2>&1; then
11336      gcc_cv_as_dwarf2_debug_line=yes
11337    fi
11338     else
11339       echo "configure: failed program was" >&5
11340       cat conftest.s >&5
11341     fi
11342     rm -f conftest.o conftest.s
11343   fi
11344 fi
11345 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11346 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11347
11348
11349 # The .debug_line file table must be in the exact order that
11350 # we specified the files, since these indices are also used
11351 # by DW_AT_decl_file.  Approximate this test by testing if
11352 # the assembler bitches if the same index is assigned twice.
11353  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11354 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11355 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11356   echo $ECHO_N "(cached) $ECHO_C" >&6
11357 else
11358   gcc_cv_as_dwarf2_file_buggy=no
11359   if test x$gcc_cv_as != x; then
11360     echo '      .file 1 "foo.s"
11361         .file 1 "bar.s"' > conftest.s
11362     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364   (eval $ac_try) 2>&5
11365   ac_status=$?
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); }; }
11368     then
11369         gcc_cv_as_dwarf2_file_buggy=yes
11370     else
11371       echo "configure: failed program was" >&5
11372       cat conftest.s >&5
11373     fi
11374     rm -f conftest.o conftest.s
11375   fi
11376 fi
11377 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11378 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11379
11380
11381  if test $gcc_cv_as_dwarf2_debug_line = yes \
11382  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11383
11384 cat >>confdefs.h <<\_ACEOF
11385 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11386 _ACEOF
11387
11388  fi
11389
11390  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11391 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11392 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11393   echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395   gcc_cv_as_gdwarf2_flag=no
11396     if test $in_tree_gas = yes; then
11397     if test $in_tree_gas_is_elf = yes \
11398   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11399   then gcc_cv_as_gdwarf2_flag=yes
11400 fi
11401   elif test x$gcc_cv_as != x; then
11402     echo "$insn" > conftest.s
11403     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405   (eval $ac_try) 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; }
11409     then
11410         gcc_cv_as_gdwarf2_flag=yes
11411     else
11412       echo "configure: failed program was" >&5
11413       cat conftest.s >&5
11414     fi
11415     rm -f conftest.o conftest.s
11416   fi
11417 fi
11418 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11419 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11420 if test $gcc_cv_as_gdwarf2_flag = yes; then
11421
11422 cat >>confdefs.h <<\_ACEOF
11423 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11424 _ACEOF
11425
11426 fi
11427
11428  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11429 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11430 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11431   echo $ECHO_N "(cached) $ECHO_C" >&6
11432 else
11433   gcc_cv_as_gstabs_flag=no
11434     if test $in_tree_gas = yes; then
11435     if test $in_tree_gas_is_elf = yes \
11436   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11437   then gcc_cv_as_gstabs_flag=yes
11438 fi
11439   elif test x$gcc_cv_as != x; then
11440     echo "$insn" > conftest.s
11441     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443   (eval $ac_try) 2>&5
11444   ac_status=$?
11445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446   (exit $ac_status); }; }
11447     then
11448         # The native Solaris 9/Intel assembler doesn't understand --gstabs
11449    # and warns about it, but still exits successfully.  So check for
11450    # this.
11451    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453   (eval $ac_try) 2>&5
11454   ac_status=$?
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); }; }
11457    then :
11458    else gcc_cv_as_gstabs_flag=yes
11459    fi
11460     else
11461       echo "configure: failed program was" >&5
11462       cat conftest.s >&5
11463     fi
11464     rm -f conftest.o conftest.s
11465   fi
11466 fi
11467 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11468 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11469 if test $gcc_cv_as_gstabs_flag = yes; then
11470
11471 cat >>confdefs.h <<\_ACEOF
11472 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11473 _ACEOF
11474
11475 fi
11476 fi
11477
11478 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11479 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11480 gcc_cv_ld_ro_rw_mix=unknown
11481 if test $in_tree_ld = yes ; then
11482   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 \
11483      && test $in_tree_ld_is_elf = yes; then
11484     gcc_cv_ld_ro_rw_mix=read-write
11485   fi
11486 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11487   echo '.section myfoosect, "a"' > conftest1.s
11488   echo '.section myfoosect, "aw"' > conftest2.s
11489   echo '.byte 1' >> conftest2.s
11490   echo '.section myfoosect, "a"' > conftest3.s
11491   echo '.byte 0' >> conftest3.s
11492   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11493      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11494      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11495      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11496         conftest2.o conftest3.o > /dev/null 2>&1; then
11497     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11498                          | sed -e '/myfoosect/!d' -e N`
11499     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11500       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11501         gcc_cv_ld_ro_rw_mix=read-only
11502       else
11503         gcc_cv_ld_ro_rw_mix=read-write
11504       fi
11505     fi
11506   fi
11507   rm -f conftest.* conftest[123].*
11508 fi
11509 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11510
11511 cat >>confdefs.h <<\_ACEOF
11512 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11513 _ACEOF
11514
11515 fi
11516 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11517 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11518
11519 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11520 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11521 gcc_cv_ld_eh_frame_hdr=no
11522 if test $in_tree_ld = yes ; then
11523   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 \
11524      && test $in_tree_ld_is_elf = yes; then
11525     gcc_cv_ld_eh_frame_hdr=yes
11526   fi
11527 elif test x$gcc_cv_ld != x; then
11528         # Check if linker supports --eh-frame-hdr option
11529         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11530                 gcc_cv_ld_eh_frame_hdr=yes
11531         fi
11532 fi
11533 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11534
11535 cat >>confdefs.h <<\_ACEOF
11536 #define HAVE_LD_EH_FRAME_HDR 1
11537 _ACEOF
11538
11539 fi
11540 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11541 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11542
11543 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11544 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11545 gcc_cv_ld_pie=no
11546 if test $in_tree_ld = yes ; then
11547   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 \
11548      && test $in_tree_ld_is_elf = yes; then
11549     gcc_cv_ld_pie=yes
11550   fi
11551 elif test x$gcc_cv_ld != x; then
11552         # Check if linker supports -pie option
11553         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11554                 gcc_cv_ld_pie=yes
11555         fi
11556 fi
11557 if test x"$gcc_cv_ld_pie" = xyes; then
11558
11559 cat >>confdefs.h <<\_ACEOF
11560 #define HAVE_LD_PIE 1
11561 _ACEOF
11562
11563 fi
11564 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11565 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11566
11567 if test x$with_sysroot = x && test x$host = x$target \
11568    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11569
11570 cat >>confdefs.h <<_ACEOF
11571 #define PREFIX_INCLUDE_DIR "$prefix/include"
11572 _ACEOF
11573
11574 fi
11575
11576 # Figure out what language subdirectories are present.
11577 # Look if the user specified --enable-languages="..."; if not, use
11578 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11579 # go away some day.
11580 # NB:  embedded tabs in this IF block -- do not untabify
11581 if test x"${enable_languages+set}" != xset; then
11582         if test x"${LANGUAGES+set}" = xset; then
11583                 enable_languages="${LANGUAGES}"
11584                 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11585 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11586
11587         else
11588                 enable_languages=all
11589         fi
11590 else
11591         if test x"${enable_languages}" = x \
11592         || test x"${enable_languages}" = xyes;
11593         then
11594                 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11595 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11596    { (exit 1); exit 1; }; }
11597         fi
11598 fi
11599 enable_languages=`echo "${enable_languages}" | sed -e 's/[      ,][     ,]*/,/g' -e 's/,$//'`
11600
11601 # First scan to see if an enabled language requires some other language.
11602 # We assume that a given config-lang.in will list all the language
11603 # front ends it requires, even if some are required indirectly.
11604 for lang in ${srcdir}/*/config-lang.in
11605 do
11606    case $lang in
11607     # The odd quoting in the next line works around
11608     # an apparent bug in bash 1.12 on linux.
11609     ${srcdir}/[*]/config-lang.in)
11610        ;;
11611     *)
11612        lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^      ]*\).*$,\1,p' $lang`
11613        this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^    ]*\).*$,\1,p' $lang`
11614        for other in $this_lang_requires
11615        do
11616           case ,${enable_languages}, in
11617            *,$other,*)
11618               ;;
11619            *,all,*)
11620               ;;
11621            *,$lang_alias,*)
11622               enable_languages="$enable_languages,$other"
11623               ;;
11624           esac
11625        done
11626        ;;
11627    esac
11628 done
11629
11630 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's:  *: :g' -e 's:  *: :g' -e 's:^ ::' -e 's: $::'`
11631 found_languages=
11632 subdirs=
11633 for lang in ${srcdir}/*/config-lang.in
11634 do
11635         case $lang in
11636         # The odd quoting in the next line works around
11637         # an apparent bug in bash 1.12 on linux.
11638         ${srcdir}/[*]/config-lang.in) ;;
11639         *)
11640           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
11641           this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^         ]*\).*$,\1,p' $lang`
11642           build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^     ]*\).*$,\1,p' $lang`
11643           if test "x$lang_alias" = x
11644           then
11645                 echo "$lang doesn't set \$language." 1>&2
11646                 exit 1
11647           fi
11648           case ${build_by_default},${enable_languages}, in
11649           *,$lang_alias,*) add_this_lang=yes ;;
11650           no,*) add_this_lang=no ;;
11651           *,all,*) add_this_lang=yes ;;
11652           *) add_this_lang=no ;;
11653           esac
11654           found_languages="${found_languages} ${lang_alias}"
11655           if test x"${add_this_lang}" = xyes; then
11656                 case $lang in
11657                     ${srcdir}/ada/config-lang.in)
11658                         if test x$have_gnat = xyes ; then
11659                                 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11660                         fi
11661                         ;;
11662                     *)
11663                         subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11664                         ;;
11665                 esac
11666           fi
11667           ;;
11668         esac
11669 done
11670
11671 missing_languages=
11672 for expected_language in ${expected_languages} ..
11673 do
11674     if test "${expected_language}" != ..; then
11675         missing_language="${expected_language}"
11676         if test "${expected_language}" = "c" \
11677            || test "${expected_language}" = "all"; then
11678                 missing_language=
11679         fi
11680         for found_language in ${found_languages} ..
11681         do
11682             if test "${found_language}" != ..; then
11683                 if test "${expected_language}" = "${found_language}"; then
11684                     missing_language=
11685                 fi
11686             fi
11687         done
11688         if test "x${missing_language}" != x; then
11689            missing_languages="${missing_languages} ${missing_language}"
11690         fi
11691     fi
11692 done
11693
11694 if test "x$missing_languages" != x; then
11695   { { echo "$as_me:$LINENO: error:
11696 The following requested languages were not found:${missing_languages}
11697 The following languages were available: c${found_languages}" >&5
11698 echo "$as_me: error:
11699 The following requested languages were not found:${missing_languages}
11700 The following languages were available: c${found_languages}" >&2;}
11701    { (exit 1); exit 1; }; }
11702 fi
11703
11704 # Make gthr-default.h if we have a thread file.
11705 gthread_flags=
11706 if test $thread_file != single; then
11707     rm -f gthr-default.h
11708     echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11709     gthread_flags=-DHAVE_GTHR_DEFAULT
11710 fi
11711
11712
11713 # Find out what GC implementation we want, or may, use.
11714
11715 # Check whether --with-gc or --without-gc was given.
11716 if test "${with_gc+set}" = set; then
11717   withval="$with_gc"
11718   case "$withval" in
11719   simple | page | zone)
11720     GGC=ggc-$withval
11721     ;;
11722   *)
11723     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11724 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11725    { (exit 1); exit 1; }; }
11726     ;;
11727 esac
11728 else
11729   GGC=ggc-page
11730 fi;
11731
11732 echo "Using $GGC for garbage collection."
11733
11734 # Use the system's zlib library.
11735 zlibdir=-L../zlib
11736 zlibinc="-I\$(srcdir)/../zlib"
11737
11738 # Check whether --with-system-zlib or --without-system-zlib was given.
11739 if test "${with_system_zlib+set}" = set; then
11740   withval="$with_system_zlib"
11741   zlibdir=
11742 zlibinc=
11743
11744 fi;
11745
11746
11747
11748
11749 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11750 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11751     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11752 if test "${enable_maintainer_mode+set}" = set; then
11753   enableval="$enable_maintainer_mode"
11754   maintainer_mode=$enableval
11755 else
11756   maintainer_mode=no
11757 fi;
11758
11759 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11760 echo "${ECHO_T}$maintainer_mode" >&6
11761
11762 if test "$maintainer_mode" = "yes"; then
11763   MAINT=''
11764 else
11765   MAINT='#'
11766 fi
11767
11768 # Make empty files to contain the specs and options for each language.
11769 # Then add #include lines to for a compiler that has specs and/or options.
11770
11771 lang_opt_files=
11772 lang_specs_files=
11773 lang_tree_files=
11774 for subdir in . $subdirs
11775 do
11776         if test -f $srcdir/$subdir/lang.opt; then
11777             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11778         fi
11779         if test -f $srcdir/$subdir/lang-specs.h; then
11780             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11781         fi
11782         if test -f $srcdir/$subdir/$subdir-tree.def; then
11783             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11784         fi
11785 done
11786
11787 # These (without "all_") are set in each config-lang.in.
11788 # `language' must be a single word so is spelled singularly.
11789 all_languages=
11790 all_boot_languages=
11791 all_compilers=
11792 all_stagestuff=
11793 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11794 # List of language makefile fragments.
11795 all_lang_makefrags=
11796 # List of language subdirectory makefiles.  Deprecated.
11797 all_lang_makefiles=
11798 # Files for gengtype
11799 all_gtfiles="$target_gtfiles"
11800 # Files for gengtype with language
11801 all_gtfiles_files_langs=
11802 all_gtfiles_files_files=
11803
11804 # Add the language fragments.
11805 # Languages are added via two mechanisms.  Some information must be
11806 # recorded in makefile variables, these are defined in config-lang.in.
11807 # We accumulate them and plug them into the main Makefile.
11808 # The other mechanism is a set of hooks for each of the main targets
11809 # like `clean', `install', etc.
11810
11811 language_hooks="Make-hooks"
11812
11813 for s in $subdirs
11814 do
11815                 language=
11816                 boot_language=
11817                 compilers=
11818                 stagestuff=
11819                 outputs=
11820                 gtfiles=
11821                 . ${srcdir}/$s/config-lang.in
11822                 if test "x$language" = x
11823                 then
11824                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11825                         exit 1
11826                 fi
11827                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11828                 if test -f ${srcdir}/$s/Makefile.in
11829                 then all_lang_makefiles="$s/Makefile"
11830                 fi
11831                 all_languages="$all_languages $language"
11832                 if test "x$boot_language" = xyes
11833                 then
11834                         all_boot_languages="$all_boot_languages $language"
11835                 fi
11836                 all_compilers="$all_compilers $compilers"
11837                 all_stagestuff="$all_stagestuff $stagestuff"
11838                 all_outputs="$all_outputs $outputs"
11839                 all_gtfiles="$all_gtfiles $gtfiles"
11840                 for f in $gtfiles
11841                 do
11842                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11843                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11844                 done
11845 done
11846
11847 # Pick up gtfiles for c
11848 gtfiles=
11849 s="c"
11850 . ${srcdir}/c-config-lang.in
11851 all_gtfiles="$all_gtfiles $gtfiles"
11852 for f in $gtfiles
11853 do
11854         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11855         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11856 done
11857
11858 check_languages=
11859 for language in $all_languages
11860 do
11861                 check_languages="$check_languages check-$language"
11862 done
11863
11864 # We link each language in with a set of hooks, reached indirectly via
11865 # lang.${target}.
11866
11867 rm -f Make-hooks
11868 touch Make-hooks
11869 target_list="all.build all.cross start.encap rest.encap tags \
11870         install-normal install-common install-man \
11871         uninstall \
11872         mostlyclean clean distclean maintainer-clean \
11873         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11874 for t in $target_list
11875 do
11876         x=
11877         for lang in $all_languages
11878         do
11879                         x="$x $lang.$t"
11880         done
11881         echo "lang.$t: $x" >> Make-hooks
11882 done
11883
11884 # Create .gdbinit.
11885
11886 echo "dir ." > .gdbinit
11887 echo "dir ${srcdir}" >> .gdbinit
11888 if test x$gdb_needs_out_file_path = xyes
11889 then
11890         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11891 fi
11892 if test "x$subdirs" != x; then
11893         for s in $subdirs
11894         do
11895                 echo "dir ${srcdir}/$s" >> .gdbinit
11896         done
11897 fi
11898 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11899
11900 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11901 # absolute path for gcc_tooldir based on inserting the number of up-directory
11902 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11903 # $(libsubdir)/@(unlibsubdir) based path.
11904 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11905 # make and thus we'd get different behavior depending on where we built the
11906 # sources.
11907 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
11908     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11909 else
11910 # An explanation of the sed strings:
11911 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
11912 #  -e 's|/$||'            match a trailing forward slash and eliminates it
11913 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
11914 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
11915 #
11916 # (*) Note this pattern overwrites the first character of the string
11917 # with a forward slash if one is not already present.  This is not a
11918 # problem because the exact names of the sub-directories concerned is
11919 # unimportant, just the number of them matters.
11920 #
11921 # The practical upshot of these patterns is like this:
11922 #
11923 #  prefix     exec_prefix        result
11924 #  ------     -----------        ------
11925 #   /foo        /foo/bar          ../
11926 #   /foo/       /foo/bar          ../
11927 #   /foo        /foo/bar/         ../
11928 #   /foo/       /foo/bar/         ../
11929 #   /foo        /foo/bar/ugg      ../../
11930 #
11931     dollar='$$'
11932     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11933 fi
11934
11935
11936
11937 # Find a directory in which to install a shared libgcc.
11938
11939 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11940 if test "${enable_version_specific_runtime_libs+set}" = set; then
11941   enableval="$enable_version_specific_runtime_libs"
11942
11943 fi;
11944
11945
11946 # Check whether --with-slibdir or --without-slibdir was given.
11947 if test "${with_slibdir+set}" = set; then
11948   withval="$with_slibdir"
11949   slibdir="$with_slibdir"
11950 else
11951   if test "${enable_version_specific_runtime_libs+set}" = set; then
11952   slibdir='$(libsubdir)'
11953 elif test "$host" != "$target"; then
11954   slibdir='$(build_tooldir)/lib'
11955 else
11956   slibdir='$(libdir)'
11957 fi
11958 fi;
11959
11960
11961 objdir=`${PWDCMD-pwd}`
11962
11963
11964 # Substitute configuration variables
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035 # Echo link setup.
12036 if test x${build} = x${host} ; then
12037   if test x${host} = x${target} ; then
12038     echo "Links are now set up to build a native compiler for ${target}." 1>&2
12039   else
12040     echo "Links are now set up to build a cross-compiler" 1>&2
12041     echo " from ${host} to ${target}." 1>&2
12042   fi
12043 else
12044   if test x${host} = x${target} ; then
12045     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12046     echo " for ${target}." 1>&2
12047   else
12048     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12049     echo " from ${host} to ${target}." 1>&2
12050   fi
12051 fi
12052
12053 # Configure the subdirectories
12054 # AC_CONFIG_SUBDIRS($subdirs)
12055
12056 # Create the Makefile
12057 # and configure language subdirectories
12058           ac_config_files="$ac_config_files $all_outputs"
12059           ac_config_commands="$ac_config_commands default"
12060 cat >confcache <<\_ACEOF
12061 # This file is a shell script that caches the results of configure
12062 # tests run on this system so they can be shared between configure
12063 # scripts and configure runs, see configure's option --config-cache.
12064 # It is not useful on other systems.  If it contains results you don't
12065 # want to keep, you may remove or edit it.
12066 #
12067 # config.status only pays attention to the cache file if you give it
12068 # the --recheck option to rerun configure.
12069 #
12070 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12071 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12072 # following values.
12073
12074 _ACEOF
12075
12076 # The following way of writing the cache mishandles newlines in values,
12077 # but we know of no workaround that is simple, portable, and efficient.
12078 # So, don't put newlines in cache variables' values.
12079 # Ultrix sh set writes to stderr and can't be redirected directly,
12080 # and sets the high bit in the cache file unless we assign to the vars.
12081 {
12082   (set) 2>&1 |
12083     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12084     *ac_space=\ *)
12085       # `set' does not quote correctly, so add quotes (double-quote
12086       # substitution turns \\\\ into \\, and sed turns \\ into \).
12087       sed -n \
12088         "s/'/'\\\\''/g;
12089           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12090       ;;
12091     *)
12092       # `set' quotes correctly as required by POSIX, so do not add quotes.
12093       sed -n \
12094         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12095       ;;
12096     esac;
12097 } |
12098   sed '
12099      t clear
12100      : clear
12101      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12102      t end
12103      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12104      : end' >>confcache
12105 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12106   if test -w $cache_file; then
12107     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12108     cat confcache >$cache_file
12109   else
12110     echo "not updating unwritable cache $cache_file"
12111   fi
12112 fi
12113 rm -f confcache
12114
12115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12116 # Let make expand exec_prefix.
12117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12118
12119 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12120 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12121 # trailing colons and then remove the whole line if VPATH becomes empty
12122 # (actually we leave an empty line to preserve line numbers).
12123 if test "x$srcdir" = x.; then
12124   ac_vpsub='/^[         ]*VPATH[        ]*=/{
12125 s/:*\$(srcdir):*/:/;
12126 s/:*\${srcdir}:*/:/;
12127 s/:*@srcdir@:*/:/;
12128 s/^\([^=]*=[    ]*\):*/\1/;
12129 s/:*$//;
12130 s/^[^=]*=[      ]*$//;
12131 }'
12132 fi
12133
12134 DEFS=-DHAVE_CONFIG_H
12135
12136 ac_libobjs=
12137 ac_ltlibobjs=
12138 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12139   # 1. Remove the extension, and $U if already installed.
12140   ac_i=`echo "$ac_i" |
12141          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12142   # 2. Add them.
12143   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12144   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12145 done
12146 LIBOBJS=$ac_libobjs
12147
12148 LTLIBOBJS=$ac_ltlibobjs
12149
12150
12151
12152 : ${CONFIG_STATUS=./config.status}
12153 ac_clean_files_save=$ac_clean_files
12154 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12155 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12156 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12157 cat >$CONFIG_STATUS <<_ACEOF
12158 #! $SHELL
12159 # Generated by $as_me.
12160 # Run this file to recreate the current configuration.
12161 # Compiler output produced by configure, useful for debugging
12162 # configure, is in config.log if it exists.
12163
12164 debug=false
12165 ac_cs_recheck=false
12166 ac_cs_silent=false
12167 SHELL=\${CONFIG_SHELL-$SHELL}
12168 _ACEOF
12169
12170 cat >>$CONFIG_STATUS <<\_ACEOF
12171 ## --------------------- ##
12172 ## M4sh Initialization.  ##
12173 ## --------------------- ##
12174
12175 # Be Bourne compatible
12176 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12177   emulate sh
12178   NULLCMD=:
12179   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12180   # is contrary to our usage.  Disable this feature.
12181   alias -g '${1+"$@"}'='"$@"'
12182 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12183   set -o posix
12184 fi
12185
12186 # Support unset when possible.
12187 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12188   as_unset=unset
12189 else
12190   as_unset=false
12191 fi
12192
12193
12194 # Work around bugs in pre-3.0 UWIN ksh.
12195 $as_unset ENV MAIL MAILPATH
12196 PS1='$ '
12197 PS2='> '
12198 PS4='+ '
12199
12200 # NLS nuisances.
12201 for as_var in \
12202   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12203   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12204   LC_TELEPHONE LC_TIME
12205 do
12206   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12207     eval $as_var=C; export $as_var
12208   else
12209     $as_unset $as_var
12210   fi
12211 done
12212
12213 # Required to use basename.
12214 if expr a : '\(a\)' >/dev/null 2>&1; then
12215   as_expr=expr
12216 else
12217   as_expr=false
12218 fi
12219
12220 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12221   as_basename=basename
12222 else
12223   as_basename=false
12224 fi
12225
12226
12227 # Name of the executable.
12228 as_me=`$as_basename "$0" ||
12229 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12230          X"$0" : 'X\(//\)$' \| \
12231          X"$0" : 'X\(/\)$' \| \
12232          .     : '\(.\)' 2>/dev/null ||
12233 echo X/"$0" |
12234     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12235           /^X\/\(\/\/\)$/{ s//\1/; q; }
12236           /^X\/\(\/\).*/{ s//\1/; q; }
12237           s/.*/./; q'`
12238
12239
12240 # PATH needs CR, and LINENO needs CR and PATH.
12241 # Avoid depending upon Character Ranges.
12242 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12243 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12244 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12245 as_cr_digits='0123456789'
12246 as_cr_alnum=$as_cr_Letters$as_cr_digits
12247
12248 # The user is always right.
12249 if test "${PATH_SEPARATOR+set}" != set; then
12250   echo "#! /bin/sh" >conf$$.sh
12251   echo  "exit 0"   >>conf$$.sh
12252   chmod +x conf$$.sh
12253   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12254     PATH_SEPARATOR=';'
12255   else
12256     PATH_SEPARATOR=:
12257   fi
12258   rm -f conf$$.sh
12259 fi
12260
12261
12262   as_lineno_1=$LINENO
12263   as_lineno_2=$LINENO
12264   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12265   test "x$as_lineno_1" != "x$as_lineno_2" &&
12266   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12267   # Find who we are.  Look in the path if we contain no path at all
12268   # relative or not.
12269   case $0 in
12270     *[\\/]* ) as_myself=$0 ;;
12271     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $PATH
12273 do
12274   IFS=$as_save_IFS
12275   test -z "$as_dir" && as_dir=.
12276   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12277 done
12278
12279        ;;
12280   esac
12281   # We did not find ourselves, most probably we were run as `sh COMMAND'
12282   # in which case we are not to be found in the path.
12283   if test "x$as_myself" = x; then
12284     as_myself=$0
12285   fi
12286   if test ! -f "$as_myself"; then
12287     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12288 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12289    { (exit 1); exit 1; }; }
12290   fi
12291   case $CONFIG_SHELL in
12292   '')
12293     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12295 do
12296   IFS=$as_save_IFS
12297   test -z "$as_dir" && as_dir=.
12298   for as_base in sh bash ksh sh5; do
12299          case $as_dir in
12300          /*)
12301            if ("$as_dir/$as_base" -c '
12302   as_lineno_1=$LINENO
12303   as_lineno_2=$LINENO
12304   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12305   test "x$as_lineno_1" != "x$as_lineno_2" &&
12306   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12307              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12308              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12309              CONFIG_SHELL=$as_dir/$as_base
12310              export CONFIG_SHELL
12311              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12312            fi;;
12313          esac
12314        done
12315 done
12316 ;;
12317   esac
12318
12319   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12320   # uniformly replaced by the line number.  The first 'sed' inserts a
12321   # line-number line before each line; the second 'sed' does the real
12322   # work.  The second script uses 'N' to pair each line-number line
12323   # with the numbered line, and appends trailing '-' during
12324   # substitution so that $LINENO is not a special case at line end.
12325   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12326   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12327   sed '=' <$as_myself |
12328     sed '
12329       N
12330       s,$,-,
12331       : loop
12332       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12333       t loop
12334       s,-$,,
12335       s,^['$as_cr_digits']*\n,,
12336     ' >$as_me.lineno &&
12337   chmod +x $as_me.lineno ||
12338     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12339 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12340    { (exit 1); exit 1; }; }
12341
12342   # Don't try to exec as it changes $[0], causing all sort of problems
12343   # (the dirname of $[0] is not the place where we might find the
12344   # original and so on.  Autoconf is especially sensible to this).
12345   . ./$as_me.lineno
12346   # Exit status is that of the last command.
12347   exit
12348 }
12349
12350
12351 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12352   *c*,-n*) ECHO_N= ECHO_C='
12353 ' ECHO_T='      ' ;;
12354   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12355   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12356 esac
12357
12358 if expr a : '\(a\)' >/dev/null 2>&1; then
12359   as_expr=expr
12360 else
12361   as_expr=false
12362 fi
12363
12364 rm -f conf$$ conf$$.exe conf$$.file
12365 echo >conf$$.file
12366 if ln -s conf$$.file conf$$ 2>/dev/null; then
12367   # We could just check for DJGPP; but this test a) works b) is more generic
12368   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12369   if test -f conf$$.exe; then
12370     # Don't use ln at all; we don't have any links
12371     as_ln_s='cp -p'
12372   else
12373     as_ln_s='ln -s'
12374   fi
12375 elif ln conf$$.file conf$$ 2>/dev/null; then
12376   as_ln_s=ln
12377 else
12378   as_ln_s='cp -p'
12379 fi
12380 rm -f conf$$ conf$$.exe conf$$.file
12381
12382 if mkdir -p . 2>/dev/null; then
12383   as_mkdir_p=:
12384 else
12385   as_mkdir_p=false
12386 fi
12387
12388 as_executable_p="test -f"
12389
12390 # Sed expression to map a string onto a valid CPP name.
12391 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12392
12393 # Sed expression to map a string onto a valid variable name.
12394 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12395
12396
12397 # IFS
12398 # We need space, tab and new line, in precisely that order.
12399 as_nl='
12400 '
12401 IFS="   $as_nl"
12402
12403 # CDPATH.
12404 $as_unset CDPATH
12405
12406 exec 6>&1
12407
12408 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12409 # report actual input values of CONFIG_FILES etc. instead of their
12410 # values after options handling.  Logging --version etc. is OK.
12411 exec 5>>config.log
12412 {
12413   echo
12414   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12415 ## Running $as_me. ##
12416 _ASBOX
12417 } >&5
12418 cat >&5 <<_CSEOF
12419
12420 This file was extended by $as_me, which was
12421 generated by GNU Autoconf 2.57.  Invocation command line was
12422
12423   CONFIG_FILES    = $CONFIG_FILES
12424   CONFIG_HEADERS  = $CONFIG_HEADERS
12425   CONFIG_LINKS    = $CONFIG_LINKS
12426   CONFIG_COMMANDS = $CONFIG_COMMANDS
12427   $ $0 $@
12428
12429 _CSEOF
12430 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12431 echo >&5
12432 _ACEOF
12433
12434 # Files that config.status was made for.
12435 if test -n "$ac_config_files"; then
12436   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12437 fi
12438
12439 if test -n "$ac_config_headers"; then
12440   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12441 fi
12442
12443 if test -n "$ac_config_links"; then
12444   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12445 fi
12446
12447 if test -n "$ac_config_commands"; then
12448   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12449 fi
12450
12451 cat >>$CONFIG_STATUS <<\_ACEOF
12452
12453 ac_cs_usage="\
12454 \`$as_me' instantiates files from templates according to the
12455 current configuration.
12456
12457 Usage: $0 [OPTIONS] [FILE]...
12458
12459   -h, --help       print this help, then exit
12460   -V, --version    print version number, then exit
12461   -q, --quiet      do not print progress messages
12462   -d, --debug      don't remove temporary files
12463       --recheck    update $as_me by reconfiguring in the same conditions
12464   --file=FILE[:TEMPLATE]
12465                    instantiate the configuration file FILE
12466   --header=FILE[:TEMPLATE]
12467                    instantiate the configuration header FILE
12468
12469 Configuration files:
12470 $config_files
12471
12472 Configuration headers:
12473 $config_headers
12474
12475 Configuration commands:
12476 $config_commands
12477
12478 Report bugs to <bug-autoconf@gnu.org>."
12479 _ACEOF
12480
12481 cat >>$CONFIG_STATUS <<_ACEOF
12482 ac_cs_version="\\
12483 config.status
12484 configured by $0, generated by GNU Autoconf 2.57,
12485   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12486
12487 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12488 Free Software Foundation, Inc.
12489 This config.status script is free software; the Free Software Foundation
12490 gives unlimited permission to copy, distribute and modify it."
12491 srcdir=$srcdir
12492 _ACEOF
12493
12494 cat >>$CONFIG_STATUS <<\_ACEOF
12495 # If no file are specified by the user, then we need to provide default
12496 # value.  By we need to know if files were specified by the user.
12497 ac_need_defaults=:
12498 while test $# != 0
12499 do
12500   case $1 in
12501   --*=*)
12502     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12503     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12504     ac_shift=:
12505     ;;
12506   -*)
12507     ac_option=$1
12508     ac_optarg=$2
12509     ac_shift=shift
12510     ;;
12511   *) # This is not an option, so the user has probably given explicit
12512      # arguments.
12513      ac_option=$1
12514      ac_need_defaults=false;;
12515   esac
12516
12517   case $ac_option in
12518   # Handling of the options.
12519 _ACEOF
12520 cat >>$CONFIG_STATUS <<\_ACEOF
12521   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12522     ac_cs_recheck=: ;;
12523   --version | --vers* | -V )
12524     echo "$ac_cs_version"; exit 0 ;;
12525   --he | --h)
12526     # Conflict between --help and --header
12527     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12528 Try \`$0 --help' for more information." >&5
12529 echo "$as_me: error: ambiguous option: $1
12530 Try \`$0 --help' for more information." >&2;}
12531    { (exit 1); exit 1; }; };;
12532   --help | --hel | -h )
12533     echo "$ac_cs_usage"; exit 0 ;;
12534   --debug | --d* | -d )
12535     debug=: ;;
12536   --file | --fil | --fi | --f )
12537     $ac_shift
12538     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12539     ac_need_defaults=false;;
12540   --header | --heade | --head | --hea )
12541     $ac_shift
12542     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12543     ac_need_defaults=false;;
12544   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12545   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12546     ac_cs_silent=: ;;
12547
12548   # This is an error.
12549   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12550 Try \`$0 --help' for more information." >&5
12551 echo "$as_me: error: unrecognized option: $1
12552 Try \`$0 --help' for more information." >&2;}
12553    { (exit 1); exit 1; }; } ;;
12554
12555   *) ac_config_targets="$ac_config_targets $1" ;;
12556
12557   esac
12558   shift
12559 done
12560
12561 ac_configure_extra_args=
12562
12563 if $ac_cs_silent; then
12564   exec 6>/dev/null
12565   ac_configure_extra_args="$ac_configure_extra_args --silent"
12566 fi
12567
12568 _ACEOF
12569 cat >>$CONFIG_STATUS <<_ACEOF
12570 if \$ac_cs_recheck; then
12571   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12572   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12573 fi
12574
12575 _ACEOF
12576
12577 cat >>$CONFIG_STATUS <<_ACEOF
12578 #
12579 # INIT-COMMANDS section.
12580 #
12581
12582 subdirs='$subdirs'
12583 symbolic_link='$symbolic_link'
12584
12585
12586 _ACEOF
12587
12588
12589
12590 cat >>$CONFIG_STATUS <<\_ACEOF
12591 for ac_config_target in $ac_config_targets
12592 do
12593   case "$ac_config_target" in
12594   # Handling of arguments.
12595   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12596   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12597   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12598   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12599 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12600    { (exit 1); exit 1; }; };;
12601   esac
12602 done
12603
12604 # If the user did not use the arguments to specify the items to instantiate,
12605 # then the envvar interface is used.  Set only those that are not.
12606 # We use the long form for the default assignment because of an extremely
12607 # bizarre bug on SunOS 4.1.3.
12608 if $ac_need_defaults; then
12609   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12610   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12611   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12612 fi
12613
12614 # Have a temporary directory for convenience.  Make it in the build tree
12615 # simply because there is no reason to put it here, and in addition,
12616 # creating and moving files from /tmp can sometimes cause problems.
12617 # Create a temporary directory, and hook for its removal unless debugging.
12618 $debug ||
12619 {
12620   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12621   trap '{ (exit 1); exit 1; }' 1 2 13 15
12622 }
12623
12624 # Create a (secure) tmp directory for tmp files.
12625
12626 {
12627   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12628   test -n "$tmp" && test -d "$tmp"
12629 }  ||
12630 {
12631   tmp=./confstat$$-$RANDOM
12632   (umask 077 && mkdir $tmp)
12633 } ||
12634 {
12635    echo "$me: cannot create a temporary directory in ." >&2
12636    { (exit 1); exit 1; }
12637 }
12638
12639 _ACEOF
12640
12641 cat >>$CONFIG_STATUS <<_ACEOF
12642
12643 #
12644 # CONFIG_FILES section.
12645 #
12646
12647 # No need to generate the scripts if there are no CONFIG_FILES.
12648 # This happens for instance when ./config.status config.h
12649 if test -n "\$CONFIG_FILES"; then
12650   # Protect against being on the right side of a sed subst in config.status.
12651   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12652    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12653 s,@SHELL@,$SHELL,;t t
12654 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12655 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12656 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12657 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12658 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12659 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12660 s,@exec_prefix@,$exec_prefix,;t t
12661 s,@prefix@,$prefix,;t t
12662 s,@program_transform_name@,$program_transform_name,;t t
12663 s,@bindir@,$bindir,;t t
12664 s,@sbindir@,$sbindir,;t t
12665 s,@libexecdir@,$libexecdir,;t t
12666 s,@datadir@,$datadir,;t t
12667 s,@sysconfdir@,$sysconfdir,;t t
12668 s,@sharedstatedir@,$sharedstatedir,;t t
12669 s,@localstatedir@,$localstatedir,;t t
12670 s,@libdir@,$libdir,;t t
12671 s,@includedir@,$includedir,;t t
12672 s,@oldincludedir@,$oldincludedir,;t t
12673 s,@infodir@,$infodir,;t t
12674 s,@mandir@,$mandir,;t t
12675 s,@build_alias@,$build_alias,;t t
12676 s,@host_alias@,$host_alias,;t t
12677 s,@target_alias@,$target_alias,;t t
12678 s,@DEFS@,$DEFS,;t t
12679 s,@ECHO_C@,$ECHO_C,;t t
12680 s,@ECHO_N@,$ECHO_N,;t t
12681 s,@ECHO_T@,$ECHO_T,;t t
12682 s,@LIBS@,$LIBS,;t t
12683 s,@build@,$build,;t t
12684 s,@build_cpu@,$build_cpu,;t t
12685 s,@build_vendor@,$build_vendor,;t t
12686 s,@build_os@,$build_os,;t t
12687 s,@host@,$host,;t t
12688 s,@host_cpu@,$host_cpu,;t t
12689 s,@host_vendor@,$host_vendor,;t t
12690 s,@host_os@,$host_os,;t t
12691 s,@target@,$target,;t t
12692 s,@target_cpu@,$target_cpu,;t t
12693 s,@target_vendor@,$target_vendor,;t t
12694 s,@target_os@,$target_os,;t t
12695 s,@build_subdir@,$build_subdir,;t t
12696 s,@host_subdir@,$host_subdir,;t t
12697 s,@target_subdir@,$target_subdir,;t t
12698 s,@CC@,$CC,;t t
12699 s,@CFLAGS@,$CFLAGS,;t t
12700 s,@LDFLAGS@,$LDFLAGS,;t t
12701 s,@CPPFLAGS@,$CPPFLAGS,;t t
12702 s,@ac_ct_CC@,$ac_ct_CC,;t t
12703 s,@EXEEXT@,$EXEEXT,;t t
12704 s,@OBJEXT@,$OBJEXT,;t t
12705 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12706 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12707 s,@CPP@,$CPP,;t t
12708 s,@GNATBIND@,$GNATBIND,;t t
12709 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12710 s,@strict1_warn@,$strict1_warn,;t t
12711 s,@warn_cflags@,$warn_cflags,;t t
12712 s,@WERROR@,$WERROR,;t t
12713 s,@nocommon_flag@,$nocommon_flag,;t t
12714 s,@EGREP@,$EGREP,;t t
12715 s,@valgrind_path@,$valgrind_path,;t t
12716 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12717 s,@valgrind_command@,$valgrind_command,;t t
12718 s,@coverage_flags@,$coverage_flags,;t t
12719 s,@enable_multilib@,$enable_multilib,;t t
12720 s,@enable_shared@,$enable_shared,;t t
12721 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12722 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12723 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12724 s,@onestep@,$onestep,;t t
12725 s,@SET_MAKE@,$SET_MAKE,;t t
12726 s,@AWK@,$AWK,;t t
12727 s,@LN@,$LN,;t t
12728 s,@LN_S@,$LN_S,;t t
12729 s,@RANLIB@,$RANLIB,;t t
12730 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12731 s,@INSTALL@,$INSTALL,;t t
12732 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12733 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12734 s,@make_compare_target@,$make_compare_target,;t t
12735 s,@have_mktemp_command@,$have_mktemp_command,;t t
12736 s,@MAKEINFO@,$MAKEINFO,;t t
12737 s,@BUILD_INFO@,$BUILD_INFO,;t t
12738 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12739 s,@FLEX@,$FLEX,;t t
12740 s,@BISON@,$BISON,;t t
12741 s,@stage1_cflags@,$stage1_cflags,;t t
12742 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12743 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12744 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12745 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12746 s,@LIBICONV@,$LIBICONV,;t t
12747 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12748 s,@manext@,$manext,;t t
12749 s,@objext@,$objext,;t t
12750 s,@extra_modes_file@,$extra_modes_file,;t t
12751 s,@FORBUILD@,$FORBUILD,;t t
12752 s,@PACKAGE@,$PACKAGE,;t t
12753 s,@VERSION@,$VERSION,;t t
12754 s,@USE_NLS@,$USE_NLS,;t t
12755 s,@LIBINTL@,$LIBINTL,;t t
12756 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12757 s,@INCINTL@,$INCINTL,;t t
12758 s,@XGETTEXT@,$XGETTEXT,;t t
12759 s,@GMSGFMT@,$GMSGFMT,;t t
12760 s,@POSUB@,$POSUB,;t t
12761 s,@CATALOGS@,$CATALOGS,;t t
12762 s,@CROSS@,$CROSS,;t t
12763 s,@ALL@,$ALL,;t t
12764 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12765 s,@inhibit_libc@,$inhibit_libc,;t t
12766 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12767 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12768 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12769 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12770 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12771 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12772 s,@libgcc_visibility@,$libgcc_visibility,;t t
12773 s,@gthread_flags@,$gthread_flags,;t t
12774 s,@GGC@,$GGC,;t t
12775 s,@zlibdir@,$zlibdir,;t t
12776 s,@zlibinc@,$zlibinc,;t t
12777 s,@MAINT@,$MAINT,;t t
12778 s,@gcc_tooldir@,$gcc_tooldir,;t t
12779 s,@dollar@,$dollar,;t t
12780 s,@slibdir@,$slibdir,;t t
12781 s,@objdir@,$objdir,;t t
12782 s,@subdirs@,$subdirs,;t t
12783 s,@srcdir@,$srcdir,;t t
12784 s,@docobjdir@,$docobjdir,;t t
12785 s,@parsedir@,$parsedir,;t t
12786 s,@all_boot_languages@,$all_boot_languages,;t t
12787 s,@all_compilers@,$all_compilers,;t t
12788 s,@all_gtfiles@,$all_gtfiles,;t t
12789 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12790 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12791 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12792 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12793 s,@all_languages@,$all_languages,;t t
12794 s,@all_stagestuff@,$all_stagestuff,;t t
12795 s,@build_exeext@,$build_exeext,;t t
12796 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12797 s,@build_xm_file_list@,$build_xm_file_list,;t t
12798 s,@build_xm_include_list@,$build_xm_include_list,;t t
12799 s,@build_xm_defines@,$build_xm_defines,;t t
12800 s,@check_languages@,$check_languages,;t t
12801 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12802 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12803 s,@cpp_install_dir@,$cpp_install_dir,;t t
12804 s,@xmake_file@,$xmake_file,;t t
12805 s,@tmake_file@,$tmake_file,;t t
12806 s,@extra_headers_list@,$extra_headers_list,;t t
12807 s,@extra_objs@,$extra_objs,;t t
12808 s,@extra_parts@,$extra_parts,;t t
12809 s,@extra_passes@,$extra_passes,;t t
12810 s,@extra_programs@,$extra_programs,;t t
12811 s,@float_h_file@,$float_h_file,;t t
12812 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12813 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12814 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12815 s,@gcc_version@,$gcc_version,;t t
12816 s,@gcc_version_full@,$gcc_version_full,;t t
12817 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12818 s,@host_exeext@,$host_exeext,;t t
12819 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
12820 s,@host_xm_file_list@,$host_xm_file_list,;t t
12821 s,@host_xm_include_list@,$host_xm_include_list,;t t
12822 s,@host_xm_defines@,$host_xm_defines,;t t
12823 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12824 s,@install@,$install,;t t
12825 s,@lang_opt_files@,$lang_opt_files,;t t
12826 s,@lang_specs_files@,$lang_specs_files,;t t
12827 s,@lang_tree_files@,$lang_tree_files,;t t
12828 s,@local_prefix@,$local_prefix,;t t
12829 s,@md_file@,$md_file,;t t
12830 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12831 s,@out_file@,$out_file,;t t
12832 s,@out_object_file@,$out_object_file,;t t
12833 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12834 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12835 s,@symbolic_link@,$symbolic_link,;t t
12836 s,@thread_file@,$thread_file,;t t
12837 s,@tm_file_list@,$tm_file_list,;t t
12838 s,@tm_include_list@,$tm_include_list,;t t
12839 s,@tm_defines@,$tm_defines,;t t
12840 s,@tm_p_file_list@,$tm_p_file_list,;t t
12841 s,@tm_p_include_list@,$tm_p_include_list,;t t
12842 s,@xm_file_list@,$xm_file_list,;t t
12843 s,@xm_include_list@,$xm_include_list,;t t
12844 s,@xm_defines@,$xm_defines,;t t
12845 s,@target_noncanonical@,$target_noncanonical,;t t
12846 s,@c_target_objs@,$c_target_objs,;t t
12847 s,@cxx_target_objs@,$cxx_target_objs,;t t
12848 s,@target_cpu_default@,$target_cpu_default,;t t
12849 s,@LIBOBJS@,$LIBOBJS,;t t
12850 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12851 /@language_hooks@/r $language_hooks
12852 s,@language_hooks@,,;t t
12853 CEOF
12854
12855 _ACEOF
12856
12857   cat >>$CONFIG_STATUS <<\_ACEOF
12858   # Split the substitutions into bite-sized pieces for seds with
12859   # small command number limits, like on Digital OSF/1 and HP-UX.
12860   ac_max_sed_lines=48
12861   ac_sed_frag=1 # Number of current file.
12862   ac_beg=1 # First line for current file.
12863   ac_end=$ac_max_sed_lines # Line after last line for current file.
12864   ac_more_lines=:
12865   ac_sed_cmds=
12866   while $ac_more_lines; do
12867     if test $ac_beg -gt 1; then
12868       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12869     else
12870       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12871     fi
12872     if test ! -s $tmp/subs.frag; then
12873       ac_more_lines=false
12874     else
12875       # The purpose of the label and of the branching condition is to
12876       # speed up the sed processing (if there are no `@' at all, there
12877       # is no need to browse any of the substitutions).
12878       # These are the two extra sed commands mentioned above.
12879       (echo ':t
12880   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12881       if test -z "$ac_sed_cmds"; then
12882         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12883       else
12884         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12885       fi
12886       ac_sed_frag=`expr $ac_sed_frag + 1`
12887       ac_beg=$ac_end
12888       ac_end=`expr $ac_end + $ac_max_sed_lines`
12889     fi
12890   done
12891   if test -z "$ac_sed_cmds"; then
12892     ac_sed_cmds=cat
12893   fi
12894 fi # test -n "$CONFIG_FILES"
12895
12896 _ACEOF
12897 cat >>$CONFIG_STATUS <<\_ACEOF
12898 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12899   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12900   case $ac_file in
12901   - | *:- | *:-:* ) # input from stdin
12902         cat >$tmp/stdin
12903         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12904         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12905   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12906         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12907   * )   ac_file_in=$ac_file.in ;;
12908   esac
12909
12910   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12911   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12912 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12913          X"$ac_file" : 'X\(//\)[^/]' \| \
12914          X"$ac_file" : 'X\(//\)$' \| \
12915          X"$ac_file" : 'X\(/\)' \| \
12916          .     : '\(.\)' 2>/dev/null ||
12917 echo X"$ac_file" |
12918     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12919           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12920           /^X\(\/\/\)$/{ s//\1/; q; }
12921           /^X\(\/\).*/{ s//\1/; q; }
12922           s/.*/./; q'`
12923   { if $as_mkdir_p; then
12924     mkdir -p "$ac_dir"
12925   else
12926     as_dir="$ac_dir"
12927     as_dirs=
12928     while test ! -d "$as_dir"; do
12929       as_dirs="$as_dir $as_dirs"
12930       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12932          X"$as_dir" : 'X\(//\)[^/]' \| \
12933          X"$as_dir" : 'X\(//\)$' \| \
12934          X"$as_dir" : 'X\(/\)' \| \
12935          .     : '\(.\)' 2>/dev/null ||
12936 echo X"$as_dir" |
12937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12938           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12939           /^X\(\/\/\)$/{ s//\1/; q; }
12940           /^X\(\/\).*/{ s//\1/; q; }
12941           s/.*/./; q'`
12942     done
12943     test ! -n "$as_dirs" || mkdir $as_dirs
12944   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12945 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12946    { (exit 1); exit 1; }; }; }
12947
12948   ac_builddir=.
12949
12950 if test "$ac_dir" != .; then
12951   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12952   # A "../" for each directory in $ac_dir_suffix.
12953   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12954 else
12955   ac_dir_suffix= ac_top_builddir=
12956 fi
12957
12958 case $srcdir in
12959   .)  # No --srcdir option.  We are building in place.
12960     ac_srcdir=.
12961     if test -z "$ac_top_builddir"; then
12962        ac_top_srcdir=.
12963     else
12964        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12965     fi ;;
12966   [\\/]* | ?:[\\/]* )  # Absolute path.
12967     ac_srcdir=$srcdir$ac_dir_suffix;
12968     ac_top_srcdir=$srcdir ;;
12969   *) # Relative path.
12970     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12971     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12972 esac
12973 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12974 # absolute.
12975 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12976 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12977 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12978 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12979
12980
12981
12982   if test x"$ac_file" != x-; then
12983     { echo "$as_me:$LINENO: creating $ac_file" >&5
12984 echo "$as_me: creating $ac_file" >&6;}
12985     rm -f "$ac_file"
12986   fi
12987   # Let's still pretend it is `configure' which instantiates (i.e., don't
12988   # use $as_me), people would be surprised to read:
12989   #    /* config.h.  Generated by config.status.  */
12990   if test x"$ac_file" = x-; then
12991     configure_input=
12992   else
12993     configure_input="$ac_file.  "
12994   fi
12995   configure_input=$configure_input"Generated from `echo $ac_file_in |
12996                                      sed 's,.*/,,'` by configure."
12997
12998   # First look for the input files in the build tree, otherwise in the
12999   # src tree.
13000   ac_file_inputs=`IFS=:
13001     for f in $ac_file_in; do
13002       case $f in
13003       -) echo $tmp/stdin ;;
13004       [\\/$]*)
13005          # Absolute (can't be DOS-style, as IFS=:)
13006          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13007 echo "$as_me: error: cannot find input file: $f" >&2;}
13008    { (exit 1); exit 1; }; }
13009          echo $f;;
13010       *) # Relative
13011          if test -f "$f"; then
13012            # Build tree
13013            echo $f
13014          elif test -f "$srcdir/$f"; then
13015            # Source tree
13016            echo $srcdir/$f
13017          else
13018            # /dev/null tree
13019            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13020 echo "$as_me: error: cannot find input file: $f" >&2;}
13021    { (exit 1); exit 1; }; }
13022          fi;;
13023       esac
13024     done` || { (exit 1); exit 1; }
13025 _ACEOF
13026 cat >>$CONFIG_STATUS <<_ACEOF
13027   sed "$ac_vpsub
13028 $extrasub
13029 _ACEOF
13030 cat >>$CONFIG_STATUS <<\_ACEOF
13031 :t
13032 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13033 s,@configure_input@,$configure_input,;t t
13034 s,@srcdir@,$ac_srcdir,;t t
13035 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13036 s,@top_srcdir@,$ac_top_srcdir,;t t
13037 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13038 s,@builddir@,$ac_builddir,;t t
13039 s,@abs_builddir@,$ac_abs_builddir,;t t
13040 s,@top_builddir@,$ac_top_builddir,;t t
13041 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13042 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13043   rm -f $tmp/stdin
13044   if test x"$ac_file" != x-; then
13045     mv $tmp/out $ac_file
13046   else
13047     cat $tmp/out
13048     rm -f $tmp/out
13049   fi
13050
13051 done
13052 _ACEOF
13053 cat >>$CONFIG_STATUS <<\_ACEOF
13054
13055 #
13056 # CONFIG_HEADER section.
13057 #
13058
13059 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13060 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13061 #
13062 # ac_d sets the value in "#define NAME VALUE" lines.
13063 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
13064 ac_dB='[        ].*$,\1#\2'
13065 ac_dC=' '
13066 ac_dD=',;t'
13067 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13068 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13069 ac_uB='$,\1#\2define\3'
13070 ac_uC=' '
13071 ac_uD=',;t'
13072
13073 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13074   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13075   case $ac_file in
13076   - | *:- | *:-:* ) # input from stdin
13077         cat >$tmp/stdin
13078         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13079         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13080   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13081         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13082   * )   ac_file_in=$ac_file.in ;;
13083   esac
13084
13085   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13086 echo "$as_me: creating $ac_file" >&6;}
13087
13088   # First look for the input files in the build tree, otherwise in the
13089   # src tree.
13090   ac_file_inputs=`IFS=:
13091     for f in $ac_file_in; do
13092       case $f in
13093       -) echo $tmp/stdin ;;
13094       [\\/$]*)
13095          # Absolute (can't be DOS-style, as IFS=:)
13096          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13097 echo "$as_me: error: cannot find input file: $f" >&2;}
13098    { (exit 1); exit 1; }; }
13099          echo $f;;
13100       *) # Relative
13101          if test -f "$f"; then
13102            # Build tree
13103            echo $f
13104          elif test -f "$srcdir/$f"; then
13105            # Source tree
13106            echo $srcdir/$f
13107          else
13108            # /dev/null tree
13109            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13110 echo "$as_me: error: cannot find input file: $f" >&2;}
13111    { (exit 1); exit 1; }; }
13112          fi;;
13113       esac
13114     done` || { (exit 1); exit 1; }
13115   # Remove the trailing spaces.
13116   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
13117
13118 _ACEOF
13119
13120 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13121 # `conftest.undefs', that substitutes the proper values into
13122 # config.h.in to produce config.h.  The first handles `#define'
13123 # templates, and the second `#undef' templates.
13124 # And first: Protect against being on the right side of a sed subst in
13125 # config.status.  Protect against being in an unquoted here document
13126 # in config.status.
13127 rm -f conftest.defines conftest.undefs
13128 # Using a here document instead of a string reduces the quoting nightmare.
13129 # Putting comments in sed scripts is not portable.
13130 #
13131 # `end' is used to avoid that the second main sed command (meant for
13132 # 0-ary CPP macros) applies to n-ary macro definitions.
13133 # See the Autoconf documentation for `clear'.
13134 cat >confdef2sed.sed <<\_ACEOF
13135 s/[\\&,]/\\&/g
13136 s,[\\$`],\\&,g
13137 t clear
13138 : clear
13139 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13140 t end
13141 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13142 : end
13143 _ACEOF
13144 # If some macros were called several times there might be several times
13145 # the same #defines, which is useless.  Nevertheless, we may not want to
13146 # sort them, since we want the *last* AC-DEFINE to be honored.
13147 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13148 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13149 rm -f confdef2sed.sed
13150
13151 # This sed command replaces #undef with comments.  This is necessary, for
13152 # example, in the case of _POSIX_SOURCE, which is predefined and required
13153 # on some systems where configure will not decide to define it.
13154 cat >>conftest.undefs <<\_ACEOF
13155 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13156 _ACEOF
13157
13158 # Break up conftest.defines because some shells have a limit on the size
13159 # of here documents, and old seds have small limits too (100 cmds).
13160 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13161 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13162 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13163 echo '  :' >>$CONFIG_STATUS
13164 rm -f conftest.tail
13165 while grep . conftest.defines >/dev/null
13166 do
13167   # Write a limited-size here document to $tmp/defines.sed.
13168   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13169   # Speed up: don't consider the non `#define' lines.
13170   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
13171   # Work around the forget-to-reset-the-flag bug.
13172   echo 't clr' >>$CONFIG_STATUS
13173   echo ': clr' >>$CONFIG_STATUS
13174   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13175   echo 'CEOF
13176   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13177   rm -f $tmp/in
13178   mv $tmp/out $tmp/in
13179 ' >>$CONFIG_STATUS
13180   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13181   rm -f conftest.defines
13182   mv conftest.tail conftest.defines
13183 done
13184 rm -f conftest.defines
13185 echo '  fi # grep' >>$CONFIG_STATUS
13186 echo >>$CONFIG_STATUS
13187
13188 # Break up conftest.undefs because some shells have a limit on the size
13189 # of here documents, and old seds have small limits too (100 cmds).
13190 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13191 rm -f conftest.tail
13192 while grep . conftest.undefs >/dev/null
13193 do
13194   # Write a limited-size here document to $tmp/undefs.sed.
13195   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13196   # Speed up: don't consider the non `#undef'
13197   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13198   # Work around the forget-to-reset-the-flag bug.
13199   echo 't clr' >>$CONFIG_STATUS
13200   echo ': clr' >>$CONFIG_STATUS
13201   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13202   echo 'CEOF
13203   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13204   rm -f $tmp/in
13205   mv $tmp/out $tmp/in
13206 ' >>$CONFIG_STATUS
13207   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13208   rm -f conftest.undefs
13209   mv conftest.tail conftest.undefs
13210 done
13211 rm -f conftest.undefs
13212
13213 cat >>$CONFIG_STATUS <<\_ACEOF
13214   # Let's still pretend it is `configure' which instantiates (i.e., don't
13215   # use $as_me), people would be surprised to read:
13216   #    /* config.h.  Generated by config.status.  */
13217   if test x"$ac_file" = x-; then
13218     echo "/* Generated by configure.  */" >$tmp/config.h
13219   else
13220     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13221   fi
13222   cat $tmp/in >>$tmp/config.h
13223   rm -f $tmp/in
13224   if test x"$ac_file" != x-; then
13225     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13226       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13227 echo "$as_me: $ac_file is unchanged" >&6;}
13228     else
13229       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13231          X"$ac_file" : 'X\(//\)[^/]' \| \
13232          X"$ac_file" : 'X\(//\)$' \| \
13233          X"$ac_file" : 'X\(/\)' \| \
13234          .     : '\(.\)' 2>/dev/null ||
13235 echo X"$ac_file" |
13236     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13237           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13238           /^X\(\/\/\)$/{ s//\1/; q; }
13239           /^X\(\/\).*/{ s//\1/; q; }
13240           s/.*/./; q'`
13241       { if $as_mkdir_p; then
13242     mkdir -p "$ac_dir"
13243   else
13244     as_dir="$ac_dir"
13245     as_dirs=
13246     while test ! -d "$as_dir"; do
13247       as_dirs="$as_dir $as_dirs"
13248       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13250          X"$as_dir" : 'X\(//\)[^/]' \| \
13251          X"$as_dir" : 'X\(//\)$' \| \
13252          X"$as_dir" : 'X\(/\)' \| \
13253          .     : '\(.\)' 2>/dev/null ||
13254 echo X"$as_dir" |
13255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13256           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13257           /^X\(\/\/\)$/{ s//\1/; q; }
13258           /^X\(\/\).*/{ s//\1/; q; }
13259           s/.*/./; q'`
13260     done
13261     test ! -n "$as_dirs" || mkdir $as_dirs
13262   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13263 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13264    { (exit 1); exit 1; }; }; }
13265
13266       rm -f $ac_file
13267       mv $tmp/config.h $ac_file
13268     fi
13269   else
13270     cat $tmp/config.h
13271     rm -f $tmp/config.h
13272   fi
13273 done
13274 _ACEOF
13275 cat >>$CONFIG_STATUS <<\_ACEOF
13276
13277 #
13278 # CONFIG_COMMANDS section.
13279 #
13280 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13281   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13282   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13283   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13284 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13285          X"$ac_dest" : 'X\(//\)[^/]' \| \
13286          X"$ac_dest" : 'X\(//\)$' \| \
13287          X"$ac_dest" : 'X\(/\)' \| \
13288          .     : '\(.\)' 2>/dev/null ||
13289 echo X"$ac_dest" |
13290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13291           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13292           /^X\(\/\/\)$/{ s//\1/; q; }
13293           /^X\(\/\).*/{ s//\1/; q; }
13294           s/.*/./; q'`
13295   ac_builddir=.
13296
13297 if test "$ac_dir" != .; then
13298   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13299   # A "../" for each directory in $ac_dir_suffix.
13300   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13301 else
13302   ac_dir_suffix= ac_top_builddir=
13303 fi
13304
13305 case $srcdir in
13306   .)  # No --srcdir option.  We are building in place.
13307     ac_srcdir=.
13308     if test -z "$ac_top_builddir"; then
13309        ac_top_srcdir=.
13310     else
13311        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13312     fi ;;
13313   [\\/]* | ?:[\\/]* )  # Absolute path.
13314     ac_srcdir=$srcdir$ac_dir_suffix;
13315     ac_top_srcdir=$srcdir ;;
13316   *) # Relative path.
13317     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13318     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13319 esac
13320 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13321 # absolute.
13322 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13323 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13324 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13325 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13326
13327
13328   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13329 echo "$as_me: executing $ac_dest commands" >&6;}
13330   case $ac_dest in
13331     default )
13332 case ${CONFIG_HEADERS} in
13333   *auto-host.h:config.in*)
13334   echo > cstamp-h ;;
13335 esac
13336 # Make sure all the subdirs exist.
13337 for d in $subdirs
13338 do
13339     test -d $d || mkdir $d
13340 done
13341 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13342 # bootstrapping and the installation procedure can still use
13343 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13344 # FLAGS_TO_PASS has been modified to solve the problem there.
13345 # This is virtually a duplicate of what happens in configure.lang; we do
13346 # an extra check to make sure this only happens if ln -s can be used.
13347 if test "$symbolic_link" = "ln -s"; then
13348  for d in ${subdirs} fixinc ; do
13349         STARTDIR=`${PWDCMD-pwd}`
13350         cd $d
13351         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13352         do
13353                 rm -f $t
13354                 $symbolic_link ../$t $t 2>/dev/null
13355         done
13356         cd $STARTDIR
13357  done
13358 else true ; fi
13359  ;;
13360   esac
13361 done
13362 _ACEOF
13363
13364 cat >>$CONFIG_STATUS <<\_ACEOF
13365
13366 { (exit 0); exit 0; }
13367 _ACEOF
13368 chmod +x $CONFIG_STATUS
13369 ac_clean_files=$ac_clean_files_save
13370
13371
13372 # configure is writing to config.log, and then calls config.status.
13373 # config.status does its own redirection, appending to config.log.
13374 # Unfortunately, on DOS this fails, as config.log is still kept open
13375 # by configure, so config.status won't be able to write to it; its
13376 # output is simply discarded.  So we exec the FD to /dev/null,
13377 # effectively closing config.log, so it can be properly (re)opened and
13378 # appended to by config.status.  When coming back to configure, we
13379 # need to make the FD available again.
13380 if test "$no_create" != yes; then
13381   ac_cs_success=:
13382   ac_config_status_args=
13383   test "$silent" = yes &&
13384     ac_config_status_args="$ac_config_status_args --quiet"
13385   exec 5>/dev/null
13386   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13387   exec 5>>config.log
13388   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13389   # would make configure fail if this is the last instruction.
13390   $ac_cs_success || { (exit 1); exit 1; }
13391 fi
13392