OSDN Git Service

2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
[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.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP 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 gthread_flags 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 GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs 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_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'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 System types:
840   --build=BUILD     configure for building on BUILD [guessed]
841   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842   --target=TARGET   configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848   cat <<\_ACEOF
849
850 Optional Features:
851   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853   --enable-generated-files-in-srcdir
854                           put copies of generated files in source dir
855                           intended for creating source tarballs for users
856                           without texinfo bison or flex.
857   --enable-werror         enable -Werror in bootstrap stage2 and later
858   --enable-checking=LIST
859                           enable expensive run-time checks.  With LIST,
860                           enable only specific categories of checks.
861                           Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
862                           default is misc,tree,gc,rtlflag
863   --enable-coverage=LEVEL
864                           enable compiler\'s code coverage collection.
865                           Use to measure compiler performance and locate
866                           unused parts of the compiler. With LEVEL, specify
867                           optimization. Values are opt, noopt,
868                           default is noopt
869   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
870   --enable-multilib       enable library support for multiple ABIs
871   --enable-__cxa_atexit   enable __cxa_atexit for C++
872   --enable-threads        enable thread usage for target GCC
873   --enable-threads=LIB    use LIB thread package for target GCC
874   --enable-objc-gc        enable the use of Boehm's garbage collector with
875                           the GNU Objective-C runtime
876   --disable-shared        don't provide a shared libgcc
877   --enable-intermodule    build the compiler in one step
878   --enable-languages=LIST specify which front-ends to build
879   --enable-initfini-array       use .init_array/.fini_array sections
880   --enable-sjlj-exceptions
881                           arrange to use setjmp/longjmp exception handling
882   --enable-libunwind-exceptions  force use libunwind for exceptions
883   --disable-win32-registry
884                           disable lookup of installation paths in the
885                           Registry on Windows hosts
886   --enable-win32-registry enable registry lookup (default)
887   --enable-win32-registry=KEY
888                           use KEY instead of GCC version as the last portion
889                           of the registry key
890   --enable-maintainer-mode
891                           enable make rules and dependencies not useful
892                           (and sometimes confusing) to the casual installer
893   --enable-version-specific-runtime-libs
894                           specify that runtime libraries should be
895                           installed in a compiler-specific directory
896
897 Optional Packages:
898   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
899   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
900   --with-local-prefix=DIR specifies directory to put local include
901   --with-gxx-include-dir=DIR
902                           specifies directory to put g++ header files
903   --with-cpp-install-dir=DIR
904                           install the user visible C preprocessor in DIR
905                           (relative to PREFIX) as well as PREFIX/bin
906   --with-gnu-ld           arrange to work with GNU ld.
907   --with-ld               arrange to use the specified ld (full pathname)
908   --with-gnu-as           arrange to work with GNU as
909   --with-as               arrange to use the specified as (full pathname)
910   --with-stabs            arrange to use stabs instead of host debug format
911   --with-dwarf2           force the default debug format to be DWARF 2
912   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
913   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
914   --with-gc={page,zone}   choose the garbage collection mechanism to use
915                           with the compiler
916   --with-system-zlib      use installed libz
917   --with-slibdir=DIR      shared libraries in DIR LIBDIR
918
919 Some influential environment variables:
920   CC          C compiler command
921   CFLAGS      C compiler flags
922   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
923               nonstandard directory <lib dir>
924   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
925               headers in a nonstandard directory <include dir>
926   CPP         C preprocessor
927
928 Use these variables to override the choices made by `configure' or to help
929 it to find libraries and programs with nonstandard names/locations.
930
931 _ACEOF
932 fi
933
934 if test "$ac_init_help" = "recursive"; then
935   # If there are subdirs, report their specific --help.
936   ac_popdir=`pwd`
937   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
938     test -d $ac_dir || continue
939     ac_builddir=.
940
941 if test "$ac_dir" != .; then
942   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
943   # A "../" for each directory in $ac_dir_suffix.
944   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
945 else
946   ac_dir_suffix= ac_top_builddir=
947 fi
948
949 case $srcdir in
950   .)  # No --srcdir option.  We are building in place.
951     ac_srcdir=.
952     if test -z "$ac_top_builddir"; then
953        ac_top_srcdir=.
954     else
955        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
956     fi ;;
957   [\\/]* | ?:[\\/]* )  # Absolute path.
958     ac_srcdir=$srcdir$ac_dir_suffix;
959     ac_top_srcdir=$srcdir ;;
960   *) # Relative path.
961     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
962     ac_top_srcdir=$ac_top_builddir$srcdir ;;
963 esac
964
965 # Do not use `cd foo && pwd` to compute absolute paths, because
966 # the directories may not exist.
967 case `pwd` in
968 .) ac_abs_builddir="$ac_dir";;
969 *)
970   case "$ac_dir" in
971   .) ac_abs_builddir=`pwd`;;
972   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
973   *) ac_abs_builddir=`pwd`/"$ac_dir";;
974   esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
978 *)
979   case ${ac_top_builddir}. in
980   .) ac_abs_top_builddir=$ac_abs_builddir;;
981   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
982   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
983   esac;;
984 esac
985 case $ac_abs_builddir in
986 .) ac_abs_srcdir=$ac_srcdir;;
987 *)
988   case $ac_srcdir in
989   .) ac_abs_srcdir=$ac_abs_builddir;;
990   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
991   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
992   esac;;
993 esac
994 case $ac_abs_builddir in
995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
996 *)
997   case $ac_top_srcdir in
998   .) ac_abs_top_srcdir=$ac_abs_builddir;;
999   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1000   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1001   esac;;
1002 esac
1003
1004     cd $ac_dir
1005     # Check for guested configure; otherwise get Cygnus style configure.
1006     if test -f $ac_srcdir/configure.gnu; then
1007       echo
1008       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1009     elif test -f $ac_srcdir/configure; then
1010       echo
1011       $SHELL $ac_srcdir/configure  --help=recursive
1012     elif test -f $ac_srcdir/configure.ac ||
1013            test -f $ac_srcdir/configure.in; then
1014       echo
1015       $ac_configure --help
1016     else
1017       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1018     fi
1019     cd "$ac_popdir"
1020   done
1021 fi
1022
1023 test -n "$ac_init_help" && exit 0
1024 if $ac_init_version; then
1025   cat <<\_ACEOF
1026
1027 Copyright (C) 2003 Free Software Foundation, Inc.
1028 This configure script is free software; the Free Software Foundation
1029 gives unlimited permission to copy, distribute and modify it.
1030 _ACEOF
1031   exit 0
1032 fi
1033 exec 5>config.log
1034 cat >&5 <<_ACEOF
1035 This file contains any messages produced by compilers while
1036 running configure, to aid debugging if configure makes a mistake.
1037
1038 It was created by $as_me, which was
1039 generated by GNU Autoconf 2.59.  Invocation command line was
1040
1041   $ $0 $@
1042
1043 _ACEOF
1044 {
1045 cat <<_ASUNAME
1046 ## --------- ##
1047 ## Platform. ##
1048 ## --------- ##
1049
1050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1055
1056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1057 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1058
1059 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1060 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1062 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1063 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1064 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1065 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1066
1067 _ASUNAME
1068
1069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1070 for as_dir in $PATH
1071 do
1072   IFS=$as_save_IFS
1073   test -z "$as_dir" && as_dir=.
1074   echo "PATH: $as_dir"
1075 done
1076
1077 } >&5
1078
1079 cat >&5 <<_ACEOF
1080
1081
1082 ## ----------- ##
1083 ## Core tests. ##
1084 ## ----------- ##
1085
1086 _ACEOF
1087
1088
1089 # Keep a trace of the command line.
1090 # Strip out --no-create and --no-recursion so they do not pile up.
1091 # Strip out --silent because we don't want to record it for future runs.
1092 # Also quote any args containing shell meta-characters.
1093 # Make two passes to allow for proper duplicate-argument suppression.
1094 ac_configure_args=
1095 ac_configure_args0=
1096 ac_configure_args1=
1097 ac_sep=
1098 ac_must_keep_next=false
1099 for ac_pass in 1 2
1100 do
1101   for ac_arg
1102   do
1103     case $ac_arg in
1104     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1105     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106     | -silent | --silent | --silen | --sile | --sil)
1107       continue ;;
1108     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1109       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1110     esac
1111     case $ac_pass in
1112     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1113     2)
1114       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1115       if test $ac_must_keep_next = true; then
1116         ac_must_keep_next=false # Got value, back to normal.
1117       else
1118         case $ac_arg in
1119           *=* | --config-cache | -C | -disable-* | --disable-* \
1120           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1121           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1122           | -with-* | --with-* | -without-* | --without-* | --x)
1123             case "$ac_configure_args0 " in
1124               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1125             esac
1126             ;;
1127           -* ) ac_must_keep_next=true ;;
1128         esac
1129       fi
1130       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1131       # Get rid of the leading space.
1132       ac_sep=" "
1133       ;;
1134     esac
1135   done
1136 done
1137 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1138 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1139
1140 # When interrupted or exit'd, cleanup temporary files, and complete
1141 # config.log.  We remove comments because anyway the quotes in there
1142 # would cause problems or look ugly.
1143 # WARNING: Be sure not to use single quotes in there, as some shells,
1144 # such as our DU 5.0 friend, will then `close' the trap.
1145 trap 'exit_status=$?
1146   # Save into config.log some information that might help in debugging.
1147   {
1148     echo
1149
1150     cat <<\_ASBOX
1151 ## ---------------- ##
1152 ## Cache variables. ##
1153 ## ---------------- ##
1154 _ASBOX
1155     echo
1156     # The following way of writing the cache mishandles newlines in values,
1157 {
1158   (set) 2>&1 |
1159     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1160     *ac_space=\ *)
1161       sed -n \
1162         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1163           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1164       ;;
1165     *)
1166       sed -n \
1167         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1168       ;;
1169     esac;
1170 }
1171     echo
1172
1173     cat <<\_ASBOX
1174 ## ----------------- ##
1175 ## Output variables. ##
1176 ## ----------------- ##
1177 _ASBOX
1178     echo
1179     for ac_var in $ac_subst_vars
1180     do
1181       eval ac_val=$`echo $ac_var`
1182       echo "$ac_var='"'"'$ac_val'"'"'"
1183     done | sort
1184     echo
1185
1186     if test -n "$ac_subst_files"; then
1187       cat <<\_ASBOX
1188 ## ------------- ##
1189 ## Output files. ##
1190 ## ------------- ##
1191 _ASBOX
1192       echo
1193       for ac_var in $ac_subst_files
1194       do
1195         eval ac_val=$`echo $ac_var`
1196         echo "$ac_var='"'"'$ac_val'"'"'"
1197       done | sort
1198       echo
1199     fi
1200
1201     if test -s confdefs.h; then
1202       cat <<\_ASBOX
1203 ## ----------- ##
1204 ## confdefs.h. ##
1205 ## ----------- ##
1206 _ASBOX
1207       echo
1208       sed "/^$/d" confdefs.h | sort
1209       echo
1210     fi
1211     test "$ac_signal" != 0 &&
1212       echo "$as_me: caught signal $ac_signal"
1213     echo "$as_me: exit $exit_status"
1214   } >&5
1215   rm -f core *.core &&
1216   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1217     exit $exit_status
1218      ' 0
1219 for ac_signal in 1 2 13 15; do
1220   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1221 done
1222 ac_signal=0
1223
1224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1225 rm -rf conftest* confdefs.h
1226 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1227 echo >confdefs.h
1228
1229 # Predefined preprocessor variables.
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_NAME "$PACKAGE_NAME"
1233 _ACEOF
1234
1235
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1238 _ACEOF
1239
1240
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1243 _ACEOF
1244
1245
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_STRING "$PACKAGE_STRING"
1248 _ACEOF
1249
1250
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1253 _ACEOF
1254
1255
1256 # Let the site file select an alternate cache file if it wants to.
1257 # Prefer explicitly selected file to automatically selected ones.
1258 if test -z "$CONFIG_SITE"; then
1259   if test "x$prefix" != xNONE; then
1260     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1261   else
1262     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1263   fi
1264 fi
1265 for ac_site_file in $CONFIG_SITE; do
1266   if test -r "$ac_site_file"; then
1267     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1268 echo "$as_me: loading site script $ac_site_file" >&6;}
1269     sed 's/^/| /' "$ac_site_file" >&5
1270     . "$ac_site_file"
1271   fi
1272 done
1273
1274 if test -r "$cache_file"; then
1275   # Some versions of bash will fail to source /dev/null (special
1276   # files actually), so we avoid doing that.
1277   if test -f "$cache_file"; then
1278     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1279 echo "$as_me: loading cache $cache_file" >&6;}
1280     case $cache_file in
1281       [\\/]* | ?:[\\/]* ) . $cache_file;;
1282       *)                      . ./$cache_file;;
1283     esac
1284   fi
1285 else
1286   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1287 echo "$as_me: creating cache $cache_file" >&6;}
1288   >$cache_file
1289 fi
1290
1291 # Check that the precious variables saved in the cache have kept the same
1292 # value.
1293 ac_cache_corrupted=false
1294 for ac_var in `(set) 2>&1 |
1295                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1296   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1297   eval ac_new_set=\$ac_env_${ac_var}_set
1298   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1299   eval ac_new_val="\$ac_env_${ac_var}_value"
1300   case $ac_old_set,$ac_new_set in
1301     set,)
1302       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1303 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1304       ac_cache_corrupted=: ;;
1305     ,set)
1306       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1307 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1308       ac_cache_corrupted=: ;;
1309     ,);;
1310     *)
1311       if test "x$ac_old_val" != "x$ac_new_val"; then
1312         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1313 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1314         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1315 echo "$as_me:   former value:  $ac_old_val" >&2;}
1316         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1317 echo "$as_me:   current value: $ac_new_val" >&2;}
1318         ac_cache_corrupted=:
1319       fi;;
1320   esac
1321   # Pass precious variables to config.status.
1322   if test "$ac_new_set" = set; then
1323     case $ac_new_val in
1324     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1326     *) ac_arg=$ac_var=$ac_new_val ;;
1327     esac
1328     case " $ac_configure_args " in
1329       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1330       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1331     esac
1332   fi
1333 done
1334 if $ac_cache_corrupted; then
1335   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1336 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1337   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1338 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1339    { (exit 1); exit 1; }; }
1340 fi
1341
1342 ac_ext=c
1343 ac_cpp='$CPP $CPPFLAGS'
1344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1368
1369
1370 # Determine the host, build, and target systems
1371 ac_aux_dir=
1372 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1373   if test -f $ac_dir/install-sh; then
1374     ac_aux_dir=$ac_dir
1375     ac_install_sh="$ac_aux_dir/install-sh -c"
1376     break
1377   elif test -f $ac_dir/install.sh; then
1378     ac_aux_dir=$ac_dir
1379     ac_install_sh="$ac_aux_dir/install.sh -c"
1380     break
1381   elif test -f $ac_dir/shtool; then
1382     ac_aux_dir=$ac_dir
1383     ac_install_sh="$ac_aux_dir/shtool install -c"
1384     break
1385   fi
1386 done
1387 if test -z "$ac_aux_dir"; then
1388   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1390    { (exit 1); exit 1; }; }
1391 fi
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395
1396 # Make sure we can run config.sub.
1397 $ac_config_sub sun4 >/dev/null 2>&1 ||
1398   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400    { (exit 1); exit 1; }; }
1401
1402 echo "$as_me:$LINENO: checking build system type" >&5
1403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404 if test "${ac_cv_build+set}" = set; then
1405   echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407   ac_cv_build_alias=$build_alias
1408 test -z "$ac_cv_build_alias" &&
1409   ac_cv_build_alias=`$ac_config_guess`
1410 test -z "$ac_cv_build_alias" &&
1411   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413    { (exit 1); exit 1; }; }
1414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417    { (exit 1); exit 1; }; }
1418
1419 fi
1420 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421 echo "${ECHO_T}$ac_cv_build" >&6
1422 build=$ac_cv_build
1423 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428 echo "$as_me:$LINENO: checking host system type" >&5
1429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430 if test "${ac_cv_host+set}" = set; then
1431   echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433   ac_cv_host_alias=$host_alias
1434 test -z "$ac_cv_host_alias" &&
1435   ac_cv_host_alias=$ac_cv_build_alias
1436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439    { (exit 1); exit 1; }; }
1440
1441 fi
1442 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443 echo "${ECHO_T}$ac_cv_host" >&6
1444 host=$ac_cv_host
1445 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450 echo "$as_me:$LINENO: checking target system type" >&5
1451 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1452 if test "${ac_cv_target+set}" = set; then
1453   echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455   ac_cv_target_alias=$target_alias
1456 test "x$ac_cv_target_alias" = "x" &&
1457   ac_cv_target_alias=$ac_cv_host_alias
1458 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1459   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1461    { (exit 1); exit 1; }; }
1462
1463 fi
1464 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1465 echo "${ECHO_T}$ac_cv_target" >&6
1466 target=$ac_cv_target
1467 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
1471
1472 # The aliases save the names the user supplied, while $host etc.
1473 # will get canonicalized.
1474 test -n "$target_alias" &&
1475   test "$program_prefix$program_suffix$program_transform_name" = \
1476     NONENONEs,x,x, &&
1477   program_prefix=${target_alias}-
1478
1479 # Determine the noncanonical target name, for directory use.
1480  case ${build_alias} in
1481   "") build_noncanonical=${build} ;;
1482   *) build_noncanonical=${build_alias} ;;
1483 esac
1484
1485  case ${host_alias} in
1486   "") host_noncanonical=${build_noncanonical} ;;
1487   *) host_noncanonical=${host_alias} ;;
1488 esac
1489
1490  case ${target_alias} in
1491   "") target_noncanonical=${host_noncanonical} ;;
1492   *) target_noncanonical=${target_alias} ;;
1493 esac
1494
1495
1496 # Determine the target- and build-specific subdirectories
1497   # Prefix 'build-' so this never conflicts with target_subdir.
1498 build_subdir="build-${build_noncanonical}"
1499 # Not really a subdirectory, but here for completeness.
1500 host_subdir=.
1501 # No prefix.
1502 target_subdir=${target_noncanonical}
1503
1504
1505 # Set program_transform_name
1506 test "$program_prefix" != NONE &&
1507   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1508 # Use a double $ so make ignores it.
1509 test "$program_suffix" != NONE &&
1510   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1511 # Double any \ or $.  echo might interpret backslashes.
1512 # By default was `s,x,x', remove it if useless.
1513 cat <<\_ACEOF >conftest.sed
1514 s/[\\$]/&&/g;s/;s,x,x,$//
1515 _ACEOF
1516 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1517 rm conftest.sed
1518
1519
1520 # Check for bogus environment variables.
1521 # Test if LIBRARY_PATH contains the notation for the current directory
1522 # since this would lead to problems installing/building glibc.
1523 # LIBRARY_PATH contains the current directory if one of the following
1524 # is true:
1525 # - one of the terminals (":" and ";") is the first or last sign
1526 # - two terminals occur directly after each other
1527 # - the path contains an element with a dot in it
1528 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1529 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1530 case ${LIBRARY_PATH} in
1531   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1532     library_path_setting="contains current directory"
1533     ;;
1534   *)
1535     library_path_setting="ok"
1536     ;;
1537 esac
1538 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1539 echo "${ECHO_T}$library_path_setting" >&6
1540 if test "$library_path_setting" != "ok"; then
1541 { { echo "$as_me:$LINENO: error:
1542 *** LIBRARY_PATH shouldn't contain the current directory when
1543 *** building gcc. Please change the environment variable
1544 *** and run configure again." >&5
1545 echo "$as_me: error:
1546 *** LIBRARY_PATH shouldn't contain the current directory when
1547 *** building gcc. Please change the environment variable
1548 *** and run configure again." >&2;}
1549    { (exit 1); exit 1; }; }
1550 fi
1551
1552 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1553 # since this would lead to problems installing/building glibc.
1554 # GCC_EXEC_PREFIX contains the current directory if one of the following
1555 # is true:
1556 # - one of the terminals (":" and ";") is the first or last sign
1557 # - two terminals occur directly after each other
1558 # - the path contains an element with a dot in it
1559 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1560 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1561 case ${GCC_EXEC_PREFIX} in
1562   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1563     gcc_exec_prefix_setting="contains current directory"
1564     ;;
1565   *)
1566     gcc_exec_prefix_setting="ok"
1567     ;;
1568 esac
1569 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1570 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1571 if test "$gcc_exec_prefix_setting" != "ok"; then
1572 { { echo "$as_me:$LINENO: error:
1573 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1574 *** building gcc. Please change the environment variable
1575 *** and run configure again." >&5
1576 echo "$as_me: error:
1577 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1578 *** building gcc. Please change the environment variable
1579 *** and run configure again." >&2;}
1580    { (exit 1); exit 1; }; }
1581 fi
1582
1583 # -----------
1584 # Directories
1585 # -----------
1586
1587 # Specify the local prefix
1588 local_prefix=
1589
1590 # Check whether --with-local-prefix or --without-local-prefix was given.
1591 if test "${with_local_prefix+set}" = set; then
1592   withval="$with_local_prefix"
1593   case "${withval}" in
1594 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1595 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1596    { (exit 1); exit 1; }; } ;;
1597 no)     ;;
1598 *)      local_prefix=$with_local_prefix ;;
1599 esac
1600 fi;
1601
1602 # Default local prefix if it is empty
1603 if test x$local_prefix = x; then
1604         local_prefix=/usr/local
1605 fi
1606
1607 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1608 # passed in by the toplevel make and thus we'd get different behavior
1609 # depending on where we built the sources.
1610 gcc_gxx_include_dir=
1611 # Specify the g++ header file directory
1612
1613 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1614 if test "${with_gxx_include_dir+set}" = set; then
1615   withval="$with_gxx_include_dir"
1616   case "${withval}" in
1617 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1618 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1619    { (exit 1); exit 1; }; } ;;
1620 no)     ;;
1621 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1622 esac
1623 fi;
1624
1625 if test x${gcc_gxx_include_dir} = x; then
1626   if test x${enable_version_specific_runtime_libs} = xyes; then
1627     gcc_gxx_include_dir='${libsubdir}/include/c++'
1628   else
1629     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1630     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1631   fi
1632 fi
1633
1634
1635 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1636 if test "${with_cpp_install_dir+set}" = set; then
1637   withval="$with_cpp_install_dir"
1638   if test x$withval = xyes; then
1639   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1640 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1641    { (exit 1); exit 1; }; }
1642 elif test x$withval != xno; then
1643   cpp_install_dir=$withval
1644 fi
1645 fi;
1646
1647 # We would like to our source tree to be readonly.  However when releases or
1648 # pre-releases are generated, the flex/bison generated files as well as the
1649 # various formats of manuals need to be included along with the rest of the
1650 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1651 # just that.
1652
1653 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1654 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1655     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1656 if test "${enable_generated_files_in_srcdir+set}" = set; then
1657   enableval="$enable_generated_files_in_srcdir"
1658   generated_files_in_srcdir=$enableval
1659 else
1660   generated_files_in_srcdir=no
1661 fi;
1662
1663 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1664 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1665
1666 if test "$generated_files_in_srcdir" = "yes"; then
1667   GENINSRC=''
1668 else
1669   GENINSRC='#'
1670 fi
1671
1672
1673 # -------------------
1674 # Find default linker
1675 # -------------------
1676
1677 # With GNU ld
1678
1679 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1680 if test "${with_gnu_ld+set}" = set; then
1681   withval="$with_gnu_ld"
1682   gnu_ld_flag="$with_gnu_ld"
1683 else
1684   gnu_ld_flag=no
1685 fi;
1686
1687 # With pre-defined ld
1688
1689 # Check whether --with-ld or --without-ld was given.
1690 if test "${with_ld+set}" = set; then
1691   withval="$with_ld"
1692   DEFAULT_LINKER="$with_ld"
1693 fi;
1694 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1695   if test ! -x "$DEFAULT_LINKER"; then
1696     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1697 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1698   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1699     gnu_ld_flag=yes
1700   fi
1701
1702 cat >>confdefs.h <<_ACEOF
1703 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1704 _ACEOF
1705
1706 fi
1707
1708 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1709 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1710 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1711   if test x"$gnu_ld_flag" = x"no"; then
1712     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1713 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1714   else
1715     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1716 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1717   fi
1718 else
1719   echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723 # ----------------------
1724 # Find default assembler
1725 # ----------------------
1726
1727 # With GNU as
1728
1729 # Check whether --with-gnu-as or --without-gnu-as was given.
1730 if test "${with_gnu_as+set}" = set; then
1731   withval="$with_gnu_as"
1732   gas_flag="$with_gnu_as"
1733 else
1734   gas_flag=no
1735 fi;
1736
1737
1738 # Check whether --with-as or --without-as was given.
1739 if test "${with_as+set}" = set; then
1740   withval="$with_as"
1741   DEFAULT_ASSEMBLER="$with_as"
1742 fi;
1743 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1744   if test ! -x "$DEFAULT_ASSEMBLER"; then
1745     { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1746 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1747   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1748     gas_flag=yes
1749   fi
1750
1751 cat >>confdefs.h <<_ACEOF
1752 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1753 _ACEOF
1754
1755 fi
1756
1757 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1758 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1759 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1760   if test x"$gas_flag" = x"no"; then
1761     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1762 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1763   else
1764     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1765 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1766   fi
1767 else
1768   echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 fi
1771
1772 # ---------------
1773 # Find C compiler
1774 # ---------------
1775
1776 # If a non-executable a.out is present (e.g. created by GNU as above even if
1777 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1778 # file, even when creating an executable, so an execution test fails.
1779 # Remove possible default executable files to avoid this.
1780 #
1781 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1782 # Autoconf includes it.
1783 rm -f a.out a.exe b.out
1784
1785 # Find the native compiler
1786 ac_ext=c
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1791 if test -n "$ac_tool_prefix"; then
1792   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_CC+set}" = set; then
1797   echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799   if test -n "$CC"; then
1800   ac_cv_prog_CC="$CC" # Let the user override the test.
1801 else
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 for as_dir in $PATH
1804 do
1805   IFS=$as_save_IFS
1806   test -z "$as_dir" && as_dir=.
1807   for ac_exec_ext in '' $ac_executable_extensions; do
1808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811     break 2
1812   fi
1813 done
1814 done
1815
1816 fi
1817 fi
1818 CC=$ac_cv_prog_CC
1819 if test -n "$CC"; then
1820   echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1822 else
1823   echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 fi
1826
1827 fi
1828 if test -z "$ac_cv_prog_CC"; then
1829   ac_ct_CC=$CC
1830   # Extract the first word of "gcc", so it can be a program name with args.
1831 set dummy gcc; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1835   echo $ECHO_N "(cached) $ECHO_C" >&6
1836 else
1837   if test -n "$ac_ct_CC"; then
1838   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1839 else
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843   IFS=$as_save_IFS
1844   test -z "$as_dir" && as_dir=.
1845   for ac_exec_ext in '' $ac_executable_extensions; do
1846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847     ac_cv_prog_ac_ct_CC="gcc"
1848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849     break 2
1850   fi
1851 done
1852 done
1853
1854 fi
1855 fi
1856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857 if test -n "$ac_ct_CC"; then
1858   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859 echo "${ECHO_T}$ac_ct_CC" >&6
1860 else
1861   echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1863 fi
1864
1865   CC=$ac_ct_CC
1866 else
1867   CC="$ac_cv_prog_CC"
1868 fi
1869
1870 if test -z "$CC"; then
1871   if test -n "$ac_tool_prefix"; then
1872   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1873 set dummy ${ac_tool_prefix}cc; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877   echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879   if test -n "$CC"; then
1880   ac_cv_prog_CC="$CC" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885   IFS=$as_save_IFS
1886   test -z "$as_dir" && as_dir=.
1887   for ac_exec_ext in '' $ac_executable_extensions; do
1888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889     ac_cv_prog_CC="${ac_tool_prefix}cc"
1890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891     break 2
1892   fi
1893 done
1894 done
1895
1896 fi
1897 fi
1898 CC=$ac_cv_prog_CC
1899 if test -n "$CC"; then
1900   echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1902 else
1903   echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905 fi
1906
1907 fi
1908 if test -z "$ac_cv_prog_CC"; then
1909   ac_ct_CC=$CC
1910   # Extract the first word of "cc", so it can be a program name with args.
1911 set dummy cc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915   echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917   if test -n "$ac_ct_CC"; then
1918   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1922 do
1923   IFS=$as_save_IFS
1924   test -z "$as_dir" && as_dir=.
1925   for ac_exec_ext in '' $ac_executable_extensions; do
1926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927     ac_cv_prog_ac_ct_CC="cc"
1928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929     break 2
1930   fi
1931 done
1932 done
1933
1934 fi
1935 fi
1936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6
1940 else
1941   echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943 fi
1944
1945   CC=$ac_ct_CC
1946 else
1947   CC="$ac_cv_prog_CC"
1948 fi
1949
1950 fi
1951 if test -z "$CC"; then
1952   # Extract the first word of "cc", so it can be a program name with args.
1953 set dummy cc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   if test -n "$CC"; then
1960   ac_cv_prog_CC="$CC" # Let the user override the test.
1961 else
1962   ac_prog_rejected=no
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     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1971        ac_prog_rejected=yes
1972        continue
1973      fi
1974     ac_cv_prog_CC="cc"
1975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976     break 2
1977   fi
1978 done
1979 done
1980
1981 if test $ac_prog_rejected = yes; then
1982   # We found a bogon in the path, so make sure we never use it.
1983   set dummy $ac_cv_prog_CC
1984   shift
1985   if test $# != 0; then
1986     # We chose a different compiler from the bogus one.
1987     # However, it has the same basename, so the bogon will be chosen
1988     # first if we set CC to just the basename; use the full file name.
1989     shift
1990     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1991   fi
1992 fi
1993 fi
1994 fi
1995 CC=$ac_cv_prog_CC
1996 if test -n "$CC"; then
1997   echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6
1999 else
2000   echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2003
2004 fi
2005 if test -z "$CC"; then
2006   if test -n "$ac_tool_prefix"; then
2007   for ac_prog in cl
2008   do
2009     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   if test -n "$CC"; then
2017   ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022   IFS=$as_save_IFS
2023   test -z "$as_dir" && as_dir=.
2024   for ac_exec_ext in '' $ac_executable_extensions; do
2025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028     break 2
2029   fi
2030 done
2031 done
2032
2033 fi
2034 fi
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037   echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040   echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2042 fi
2043
2044     test -n "$CC" && break
2045   done
2046 fi
2047 if test -z "$CC"; then
2048   ac_ct_CC=$CC
2049   for ac_prog in cl
2050 do
2051   # Extract the first word of "$ac_prog", so it can be a program name with args.
2052 set dummy $ac_prog; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$ac_ct_CC"; then
2059   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068     ac_cv_prog_ac_ct_CC="$ac_prog"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074
2075 fi
2076 fi
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2081 else
2082   echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084 fi
2085
2086   test -n "$ac_ct_CC" && break
2087 done
2088
2089   CC=$ac_ct_CC
2090 fi
2091
2092 fi
2093
2094
2095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: no acceptable C compiler found in \$PATH
2098 See \`config.log' for more details." >&2;}
2099    { (exit 1); exit 1; }; }
2100
2101 # Provide some information about the compiler.
2102 echo "$as_me:$LINENO:" \
2103      "checking for C compiler version" >&5
2104 ac_compiler=`set X $ac_compile; echo $2`
2105 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2106   (eval $ac_compiler --version </dev/null >&5) 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }
2110 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2111   (eval $ac_compiler -v </dev/null >&5) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2116   (eval $ac_compiler -V </dev/null >&5) 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }
2120
2121 cat >conftest.$ac_ext <<_ACEOF
2122 /* confdefs.h.  */
2123 _ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h.  */
2127
2128 int
2129 main ()
2130 {
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 ac_clean_files_save=$ac_clean_files
2137 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2138 # Try to create an executable without -o first, disregard a.out.
2139 # It will help us diagnose broken compilers, and finding out an intuition
2140 # of exeext.
2141 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2142 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2143 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2145   (eval $ac_link_default) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; then
2149   # Find the output, starting from the most likely.  This scheme is
2150 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2151 # resort.
2152
2153 # Be careful to initialize this variable, since it used to be cached.
2154 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2155 ac_cv_exeext=
2156 # b.out is created by i960 compilers.
2157 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2158 do
2159   test -f "$ac_file" || continue
2160   case $ac_file in
2161     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2162         ;;
2163     conftest.$ac_ext )
2164         # This is the source file.
2165         ;;
2166     [ab].out )
2167         # We found the default executable, but exeext='' is most
2168         # certainly right.
2169         break;;
2170     *.* )
2171         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172         # FIXME: I believe we export ac_cv_exeext for Libtool,
2173         # but it would be cool to find out if it's true.  Does anybody
2174         # maintain Libtool? --akim.
2175         export ac_cv_exeext
2176         break;;
2177     * )
2178         break;;
2179   esac
2180 done
2181 else
2182   echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2184
2185 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: C compiler cannot create executables
2188 See \`config.log' for more details." >&2;}
2189    { (exit 77); exit 77; }; }
2190 fi
2191
2192 ac_exeext=$ac_cv_exeext
2193 echo "$as_me:$LINENO: result: $ac_file" >&5
2194 echo "${ECHO_T}$ac_file" >&6
2195
2196 # Check the compiler produces executables we can run.  If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2199 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2200 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2201 # If not cross compiling, check that we can run a simple program.
2202 if test "$cross_compiling" != yes; then
2203   if { ac_try='./$ac_file'
2204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205   (eval $ac_try) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; }; then
2209     cross_compiling=no
2210   else
2211     if test "$cross_compiling" = maybe; then
2212         cross_compiling=yes
2213     else
2214         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2215 If you meant to cross compile, use \`--host'.
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot run C compiled programs.
2218 If you meant to cross compile, use \`--host'.
2219 See \`config.log' for more details." >&2;}
2220    { (exit 1); exit 1; }; }
2221     fi
2222   fi
2223 fi
2224 echo "$as_me:$LINENO: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6
2226
2227 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2228 ac_clean_files=$ac_clean_files_save
2229 # Check the compiler produces executables we can run.  If not, either
2230 # the compiler is broken, or we cross compile.
2231 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2232 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2233 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2234 echo "${ECHO_T}$cross_compiling" >&6
2235
2236 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2237 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239   (eval $ac_link) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; then
2243   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2244 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2245 # work properly (i.e., refer to `conftest.exe'), while it won't with
2246 # `rm'.
2247 for ac_file in conftest.exe conftest conftest.*; do
2248   test -f "$ac_file" || continue
2249   case $ac_file in
2250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2251     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2252           export ac_cv_exeext
2253           break;;
2254     * ) break;;
2255   esac
2256 done
2257 else
2258   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2261 See \`config.log' for more details." >&2;}
2262    { (exit 1); exit 1; }; }
2263 fi
2264
2265 rm -f conftest$ac_cv_exeext
2266 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2267 echo "${ECHO_T}$ac_cv_exeext" >&6
2268
2269 rm -f conftest.$ac_ext
2270 EXEEXT=$ac_cv_exeext
2271 ac_exeext=$EXEEXT
2272 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2273 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2274 if test "${ac_cv_objext+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   cat >conftest.$ac_ext <<_ACEOF
2278 /* confdefs.h.  */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h.  */
2283
2284 int
2285 main ()
2286 {
2287
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 rm -f conftest.o conftest.obj
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); }; then
2298   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2299   case $ac_file in
2300     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2301     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2302        break;;
2303   esac
2304 done
2305 else
2306   echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2308
2309 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2312 See \`config.log' for more details." >&2;}
2313    { (exit 1); exit 1; }; }
2314 fi
2315
2316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2317 fi
2318 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2319 echo "${ECHO_T}$ac_cv_objext" >&6
2320 OBJEXT=$ac_cv_objext
2321 ac_objext=$OBJEXT
2322 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2323 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2324 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2325   echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327   cat >conftest.$ac_ext <<_ACEOF
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 #ifndef __GNUC__
2338        choke me
2339 #endif
2340
2341   ;
2342   return 0;
2343 }
2344 _ACEOF
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347   (eval $ac_compile) 2>conftest.er1
2348   ac_status=$?
2349   grep -v '^ *+' conftest.er1 >conftest.err
2350   rm -f conftest.er1
2351   cat conftest.err >&5
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); } &&
2354          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356   (eval $ac_try) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }; } &&
2360          { ac_try='test -s conftest.$ac_objext'
2361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362   (eval $ac_try) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; }; then
2366   ac_compiler_gnu=yes
2367 else
2368   echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 ac_compiler_gnu=no
2372 fi
2373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2374 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2375
2376 fi
2377 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2378 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2379 GCC=`test $ac_compiler_gnu = yes && echo yes`
2380 ac_test_CFLAGS=${CFLAGS+set}
2381 ac_save_CFLAGS=$CFLAGS
2382 CFLAGS="-g"
2383 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2384 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2385 if test "${ac_cv_prog_cc_g+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   cat >conftest.$ac_ext <<_ACEOF
2389 /* confdefs.h.  */
2390 _ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h.  */
2394
2395 int
2396 main ()
2397 {
2398
2399   ;
2400   return 0;
2401 }
2402 _ACEOF
2403 rm -f conftest.$ac_objext
2404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405   (eval $ac_compile) 2>conftest.er1
2406   ac_status=$?
2407   grep -v '^ *+' conftest.er1 >conftest.err
2408   rm -f conftest.er1
2409   cat conftest.err >&5
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); } &&
2412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414   (eval $ac_try) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; } &&
2418          { ac_try='test -s conftest.$ac_objext'
2419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; }; then
2424   ac_cv_prog_cc_g=yes
2425 else
2426   echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 ac_cv_prog_cc_g=no
2430 fi
2431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2432 fi
2433 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2434 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2435 if test "$ac_test_CFLAGS" = set; then
2436   CFLAGS=$ac_save_CFLAGS
2437 elif test $ac_cv_prog_cc_g = yes; then
2438   if test "$GCC" = yes; then
2439     CFLAGS="-g -O2"
2440   else
2441     CFLAGS="-g"
2442   fi
2443 else
2444   if test "$GCC" = yes; then
2445     CFLAGS="-O2"
2446   else
2447     CFLAGS=
2448   fi
2449 fi
2450 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2451 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2452 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2453   echo $ECHO_N "(cached) $ECHO_C" >&6
2454 else
2455   ac_cv_prog_cc_stdc=no
2456 ac_save_CC=$CC
2457 cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h.  */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h.  */
2463 #include <stdarg.h>
2464 #include <stdio.h>
2465 #include <sys/types.h>
2466 #include <sys/stat.h>
2467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2468 struct buf { int x; };
2469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2470 static char *e (p, i)
2471      char **p;
2472      int i;
2473 {
2474   return p[i];
2475 }
2476 static char *f (char * (*g) (char **, int), char **p, ...)
2477 {
2478   char *s;
2479   va_list v;
2480   va_start (v,p);
2481   s = g (p, va_arg (v,int));
2482   va_end (v);
2483   return s;
2484 }
2485
2486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2487    function prototypes and stuff, but not '\xHH' hex character constants.
2488    These don't provoke an error unfortunately, instead are silently treated
2489    as 'x'.  The following induces an error, until -std1 is added to get
2490    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2491    array size at least.  It's necessary to write '\x00'==0 to get something
2492    that's true only with -std1.  */
2493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2494
2495 int test (int i, double x);
2496 struct s1 {int (*f) (int a);};
2497 struct s2 {int (*f) (double a);};
2498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2499 int argc;
2500 char **argv;
2501 int
2502 main ()
2503 {
2504 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 # Don't try gcc -ansi; that turns off useful extensions and
2510 # breaks some systems' header files.
2511 # AIX                   -qlanglvl=ansi
2512 # Ultrix and OSF/1      -std1
2513 # HP-UX 10.20 and later -Ae
2514 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2515 # SVR4                  -Xc -D__EXTENSIONS__
2516 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2517 do
2518   CC="$ac_save_CC $ac_arg"
2519   rm -f conftest.$ac_objext
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521   (eval $ac_compile) 2>conftest.er1
2522   ac_status=$?
2523   grep -v '^ *+' conftest.er1 >conftest.err
2524   rm -f conftest.er1
2525   cat conftest.err >&5
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); } &&
2528          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
2534          { ac_try='test -s conftest.$ac_objext'
2535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536   (eval $ac_try) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; }; then
2540   ac_cv_prog_cc_stdc=$ac_arg
2541 break
2542 else
2543   echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545
2546 fi
2547 rm -f conftest.err conftest.$ac_objext
2548 done
2549 rm -f conftest.$ac_ext conftest.$ac_objext
2550 CC=$ac_save_CC
2551
2552 fi
2553
2554 case "x$ac_cv_prog_cc_stdc" in
2555   x|xno)
2556     echo "$as_me:$LINENO: result: none needed" >&5
2557 echo "${ECHO_T}none needed" >&6 ;;
2558   *)
2559     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2560 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2561     CC="$CC $ac_cv_prog_cc_stdc" ;;
2562 esac
2563
2564 # Some people use a C++ compiler to compile C.  Since we use `exit',
2565 # in C++ we need to declare it.  In case someone uses the same compiler
2566 # for both compiling C and C++ we need to have the C++ compiler decide
2567 # the declaration of exit, since it's the most demanding environment.
2568 cat >conftest.$ac_ext <<_ACEOF
2569 #ifndef __cplusplus
2570   choke me
2571 #endif
2572 _ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575   (eval $ac_compile) 2>conftest.er1
2576   ac_status=$?
2577   grep -v '^ *+' conftest.er1 >conftest.err
2578   rm -f conftest.er1
2579   cat conftest.err >&5
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); } &&
2582          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; } &&
2588          { ac_try='test -s conftest.$ac_objext'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   for ac_declaration in \
2595    '' \
2596    'extern "C" void std::exit (int) throw (); using std::exit;' \
2597    'extern "C" void std::exit (int); using std::exit;' \
2598    'extern "C" void exit (int) throw ();' \
2599    'extern "C" void exit (int);' \
2600    'void exit (int);'
2601 do
2602   cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h.  */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h.  */
2608 $ac_declaration
2609 #include <stdlib.h>
2610 int
2611 main ()
2612 {
2613 exit (42);
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620   (eval $ac_compile) 2>conftest.er1
2621   ac_status=$?
2622   grep -v '^ *+' conftest.er1 >conftest.err
2623   rm -f conftest.er1
2624   cat conftest.err >&5
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); } &&
2627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (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); }; }; then
2639   :
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 continue
2645 fi
2646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647   cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h.  */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h.  */
2653 $ac_declaration
2654 int
2655 main ()
2656 {
2657 exit (42);
2658   ;
2659   return 0;
2660 }
2661 _ACEOF
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664   (eval $ac_compile) 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } &&
2671          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; } &&
2677          { ac_try='test -s conftest.$ac_objext'
2678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679   (eval $ac_try) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; }; then
2683   break
2684 else
2685   echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2687
2688 fi
2689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690 done
2691 rm -f conftest*
2692 if test -n "$ac_declaration"; then
2693   echo '#ifdef __cplusplus' >>confdefs.h
2694   echo $ac_declaration      >>confdefs.h
2695   echo '#endif'             >>confdefs.h
2696 fi
2697
2698 else
2699   echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2701
2702 fi
2703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704 ac_ext=c
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709
2710 if test "x$CC" != xcc; then
2711   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2712 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2713 else
2714   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2715 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2716 fi
2717 set dummy $CC; ac_cc=`echo $2 |
2718                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2719 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h.  */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h.  */
2728
2729 int
2730 main ()
2731 {
2732
2733   ;
2734   return 0;
2735 }
2736 _ACEOF
2737 # Make sure it works both with $CC and with simple cc.
2738 # We do the test twice because some compilers refuse to overwrite an
2739 # existing .o file with -o, though they will create one.
2740 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2741 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742   (eval $ac_try) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } &&
2746    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747   (eval $ac_try) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); };
2751 then
2752   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2753   if test "x$CC" != xcc; then
2754     # Test first that cc exists at all.
2755     if { ac_try='cc -c conftest.$ac_ext >&5'
2756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757   (eval $ac_try) 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2762       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); } &&
2767          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); };
2772       then
2773         # cc works too.
2774         :
2775       else
2776         # cc exists but doesn't like -o.
2777         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2778       fi
2779     fi
2780   fi
2781 else
2782   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2783 fi
2784 rm -f conftest*
2785
2786 fi
2787 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2788   echo "$as_me:$LINENO: result: yes" >&5
2789 echo "${ECHO_T}yes" >&6
2790 else
2791   echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2793
2794 cat >>confdefs.h <<\_ACEOF
2795 #define NO_MINUS_C_MINUS_O 1
2796 _ACEOF
2797
2798 fi
2799
2800 # autoconf is lame and doesn't give us any substitution variable for this.
2801 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2802   NO_MINUS_C_MINUS_O=yes
2803 else
2804   OUTPUT_OPTION='-o $@'
2805 fi
2806
2807
2808
2809 # -------------------------
2810 # Check C compiler features
2811 # -------------------------
2812
2813
2814 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2815 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2816 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2817   echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819   save_CFLAGS="$CFLAGS"
2820 CFLAGS="-Wno-long-long"
2821 cat >conftest.$ac_ext <<_ACEOF
2822 /* confdefs.h.  */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h.  */
2827
2828 int
2829 main ()
2830 {
2831
2832   ;
2833   return 0;
2834 }
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838   (eval $ac_compile) 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } &&
2845          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; } &&
2851          { ac_try='test -s conftest.$ac_objext'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; }; then
2857   ac_cv_prog_cc_no_long_long=yes
2858 else
2859   echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862 ac_cv_prog_cc_no_long_long=no
2863 fi
2864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865 CFLAGS="$save_CFLAGS"
2866 fi
2867 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2868 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2869
2870 ac_ext=c
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2877 # On Suns, sometimes $CPP names a directory.
2878 if test -n "$CPP" && test -d "$CPP"; then
2879   CPP=
2880 fi
2881 if test -z "$CPP"; then
2882   if test "${ac_cv_prog_CPP+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885       # Double quotes because CPP needs to be expanded
2886     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2887     do
2888       ac_preproc_ok=false
2889 for ac_c_preproc_warn_flag in '' yes
2890 do
2891   # Use a header file that comes with gcc, so configuring glibc
2892   # with a fresh cross-compiler works.
2893   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894   # <limits.h> exists even on freestanding compilers.
2895   # On the NeXT, cc -E runs the code through the compiler's parser,
2896   # not just through cpp. "Syntax error" is here to catch this case.
2897   cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h.  */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h.  */
2903 #ifdef __STDC__
2904 # include <limits.h>
2905 #else
2906 # include <assert.h>
2907 #endif
2908                      Syntax error
2909 _ACEOF
2910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2912   ac_status=$?
2913   grep -v '^ *+' conftest.er1 >conftest.err
2914   rm -f conftest.er1
2915   cat conftest.err >&5
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } >/dev/null; then
2918   if test -s conftest.err; then
2919     ac_cpp_err=$ac_c_preproc_warn_flag
2920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2921   else
2922     ac_cpp_err=
2923   fi
2924 else
2925   ac_cpp_err=yes
2926 fi
2927 if test -z "$ac_cpp_err"; then
2928   :
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933   # Broken: fails on valid input.
2934 continue
2935 fi
2936 rm -f conftest.err conftest.$ac_ext
2937
2938   # OK, works on sane cases.  Now check whether non-existent headers
2939   # can be detected and how.
2940   cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946 #include <ac_nonexistent.h>
2947 _ACEOF
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950   ac_status=$?
2951   grep -v '^ *+' conftest.er1 >conftest.err
2952   rm -f conftest.er1
2953   cat conftest.err >&5
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); } >/dev/null; then
2956   if test -s conftest.err; then
2957     ac_cpp_err=$ac_c_preproc_warn_flag
2958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959   else
2960     ac_cpp_err=
2961   fi
2962 else
2963   ac_cpp_err=yes
2964 fi
2965 if test -z "$ac_cpp_err"; then
2966   # Broken: success on invalid input.
2967 continue
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972   # Passes both tests.
2973 ac_preproc_ok=:
2974 break
2975 fi
2976 rm -f conftest.err conftest.$ac_ext
2977
2978 done
2979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980 rm -f conftest.err conftest.$ac_ext
2981 if $ac_preproc_ok; then
2982   break
2983 fi
2984
2985     done
2986     ac_cv_prog_CPP=$CPP
2987
2988 fi
2989   CPP=$ac_cv_prog_CPP
2990 else
2991   ac_cv_prog_CPP=$CPP
2992 fi
2993 echo "$as_me:$LINENO: result: $CPP" >&5
2994 echo "${ECHO_T}$CPP" >&6
2995 ac_preproc_ok=false
2996 for ac_c_preproc_warn_flag in '' yes
2997 do
2998   # Use a header file that comes with gcc, so configuring glibc
2999   # with a fresh cross-compiler works.
3000   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001   # <limits.h> exists even on freestanding compilers.
3002   # On the NeXT, cc -E runs the code through the compiler's parser,
3003   # not just through cpp. "Syntax error" is here to catch this case.
3004   cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h.  */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h.  */
3010 #ifdef __STDC__
3011 # include <limits.h>
3012 #else
3013 # include <assert.h>
3014 #endif
3015                      Syntax error
3016 _ACEOF
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3019   ac_status=$?
3020   grep -v '^ *+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } >/dev/null; then
3025   if test -s conftest.err; then
3026     ac_cpp_err=$ac_c_preproc_warn_flag
3027     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3028   else
3029     ac_cpp_err=
3030   fi
3031 else
3032   ac_cpp_err=yes
3033 fi
3034 if test -z "$ac_cpp_err"; then
3035   :
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040   # Broken: fails on valid input.
3041 continue
3042 fi
3043 rm -f conftest.err conftest.$ac_ext
3044
3045   # OK, works on sane cases.  Now check whether non-existent headers
3046   # can be detected and how.
3047   cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053 #include <ac_nonexistent.h>
3054 _ACEOF
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } >/dev/null; then
3063   if test -s conftest.err; then
3064     ac_cpp_err=$ac_c_preproc_warn_flag
3065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066   else
3067     ac_cpp_err=
3068   fi
3069 else
3070   ac_cpp_err=yes
3071 fi
3072 if test -z "$ac_cpp_err"; then
3073   # Broken: success on invalid input.
3074 continue
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079   # Passes both tests.
3080 ac_preproc_ok=:
3081 break
3082 fi
3083 rm -f conftest.err conftest.$ac_ext
3084
3085 done
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.$ac_ext
3088 if $ac_preproc_ok; then
3089   :
3090 else
3091   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&5
3093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&2;}
3095    { (exit 1); exit 1; }; }
3096 fi
3097
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
3104 echo "$as_me:$LINENO: checking for inline" >&5
3105 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3106 if test "${ac_cv_c_inline+set}" = set; then
3107   echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109   ac_cv_c_inline=no
3110 for ac_kw in inline __inline__ __inline; do
3111   cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117 #ifndef __cplusplus
3118 typedef int foo_t;
3119 static $ac_kw foo_t static_foo () {return 0; }
3120 $ac_kw foo_t foo () {return 0; }
3121 #endif
3122
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3126   (eval $ac_compile) 2>conftest.er1
3127   ac_status=$?
3128   grep -v '^ *+' conftest.er1 >conftest.err
3129   rm -f conftest.er1
3130   cat conftest.err >&5
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); } &&
3133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135   (eval $ac_try) 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }; } &&
3139          { ac_try='test -s conftest.$ac_objext'
3140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141   (eval $ac_try) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; }; then
3145   ac_cv_c_inline=$ac_kw; break
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 fi
3151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3152 done
3153
3154 fi
3155 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3156 echo "${ECHO_T}$ac_cv_c_inline" >&6
3157
3158
3159 case $ac_cv_c_inline in
3160   inline | yes) ;;
3161   *)
3162     case $ac_cv_c_inline in
3163       no) ac_val=;;
3164       *) ac_val=$ac_cv_c_inline;;
3165     esac
3166     cat >>confdefs.h <<_ACEOF
3167 #ifndef __cplusplus
3168 #define inline $ac_val
3169 #endif
3170 _ACEOF
3171     ;;
3172 esac
3173
3174
3175 echo "$as_me:$LINENO: checking for long long int" >&5
3176 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3177 if test "${ac_cv_c_long_long+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186
3187 int
3188 main ()
3189 {
3190 long long int i;
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3197   (eval $ac_compile) 2>conftest.er1
3198   ac_status=$?
3199   grep -v '^ *+' conftest.er1 >conftest.err
3200   rm -f conftest.er1
3201   cat conftest.err >&5
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); } &&
3204          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206   (eval $ac_try) 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }; } &&
3210          { ac_try='test -s conftest.$ac_objext'
3211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212   (eval $ac_try) 2>&5
3213   ac_status=$?
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); }; }; then
3216   ac_cv_c_long_long=yes
3217 else
3218   echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3220
3221 ac_cv_c_long_long=no
3222 fi
3223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3224 fi
3225 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3226 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3227   if test $ac_cv_c_long_long = yes; then
3228
3229 cat >>confdefs.h <<\_ACEOF
3230 #define HAVE_LONG_LONG 1
3231 _ACEOF
3232
3233   fi
3234 echo "$as_me:$LINENO: checking for __int64" >&5
3235 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3236 if test "${ac_cv_c___int64+set}" = set; then
3237   echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239   cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h.  */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h.  */
3245
3246 int
3247 main ()
3248 {
3249 __int64 i;
3250   ;
3251   return 0;
3252 }
3253 _ACEOF
3254 rm -f conftest.$ac_objext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3256   (eval $ac_compile) 2>conftest.er1
3257   ac_status=$?
3258   grep -v '^ *+' conftest.er1 >conftest.err
3259   rm -f conftest.er1
3260   cat conftest.err >&5
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } &&
3263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265   (eval $ac_try) 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }; } &&
3269          { ac_try='test -s conftest.$ac_objext'
3270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271   (eval $ac_try) 2>&5
3272   ac_status=$?
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); }; }; then
3275   ac_cv_c___int64=yes
3276 else
3277   echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 ac_cv_c___int64=no
3281 fi
3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3285 echo "${ECHO_T}$ac_cv_c___int64" >&6
3286   if test $ac_cv_c___int64 = yes; then
3287
3288 cat >>confdefs.h <<\_ACEOF
3289 #define HAVE___INT64 1
3290 _ACEOF
3291
3292   fi
3293
3294 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3295 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3296 if test "${gcc_cv_c__bool+set}" = set; then
3297   echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299   cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h.  */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h.  */
3305
3306 int
3307 main ()
3308 {
3309 _Bool foo;
3310   ;
3311   return 0;
3312 }
3313 _ACEOF
3314 rm -f conftest.$ac_objext
3315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3316   (eval $ac_compile) 2>conftest.er1
3317   ac_status=$?
3318   grep -v '^ *+' conftest.er1 >conftest.err
3319   rm -f conftest.er1
3320   cat conftest.err >&5
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); } &&
3323          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325   (eval $ac_try) 2>&5
3326   ac_status=$?
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); }; } &&
3329          { ac_try='test -s conftest.$ac_objext'
3330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331   (eval $ac_try) 2>&5
3332   ac_status=$?
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); }; }; then
3335   gcc_cv_c__bool=yes
3336 else
3337   echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340 gcc_cv_c__bool=no
3341 fi
3342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3343
3344 fi
3345 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3346 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3347 if test $gcc_cv_c__bool = yes; then
3348
3349 cat >>confdefs.h <<\_ACEOF
3350 #define HAVE__BOOL 1
3351 _ACEOF
3352
3353 fi
3354
3355
3356 # sizeof(char) is 1 by definition.
3357 echo "$as_me:$LINENO: checking size of void *" >&5
3358 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3359 if test "${ac_cv_sizeof_void_p+set}" = set; then
3360   echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3363   cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h.  */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h.  */
3369 #include "confdefs.h"
3370 #include <sys/types.h>
3371
3372
3373 int
3374 main ()
3375 {
3376 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383   (eval $ac_compile) 2>conftest.er1
3384   ac_status=$?
3385   grep -v '^ *+' conftest.er1 >conftest.err
3386   rm -f conftest.er1
3387   cat conftest.err >&5
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); } &&
3390          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392   (eval $ac_try) 2>&5
3393   ac_status=$?
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); }; } &&
3396          { ac_try='test -s conftest.$ac_objext'
3397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398   (eval $ac_try) 2>&5
3399   ac_status=$?
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); }; }; then
3402   ac_cv_sizeof_void_p=$ac_size
3403 else
3404   echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407 fi
3408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409   if test x$ac_cv_sizeof_void_p != x ; then break; fi
3410 done
3411
3412 fi
3413
3414 if test x$ac_cv_sizeof_void_p = x ; then
3415   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3416 echo "$as_me: error: cannot determine a size for void *" >&2;}
3417    { (exit 1); exit 1; }; }
3418 fi
3419 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3420 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3421
3422 cat >>confdefs.h <<_ACEOF
3423 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3424 _ACEOF
3425
3426
3427 echo "$as_me:$LINENO: checking size of short" >&5
3428 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3429 if test "${ac_cv_sizeof_short+set}" = set; then
3430   echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3433   cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h.  */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h.  */
3439 #include "confdefs.h"
3440 #include <sys/types.h>
3441
3442
3443 int
3444 main ()
3445 {
3446 switch (0) case 0: case (sizeof (short) == $ac_size):;
3447   ;
3448   return 0;
3449 }
3450 _ACEOF
3451 rm -f conftest.$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453   (eval $ac_compile) 2>conftest.er1
3454   ac_status=$?
3455   grep -v '^ *+' conftest.er1 >conftest.err
3456   rm -f conftest.er1
3457   cat conftest.err >&5
3458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459   (exit $ac_status); } &&
3460          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462   (eval $ac_try) 2>&5
3463   ac_status=$?
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); }; } &&
3466          { ac_try='test -s conftest.$ac_objext'
3467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468   (eval $ac_try) 2>&5
3469   ac_status=$?
3470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471   (exit $ac_status); }; }; then
3472   ac_cv_sizeof_short=$ac_size
3473 else
3474   echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3476
3477 fi
3478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3479   if test x$ac_cv_sizeof_short != x ; then break; fi
3480 done
3481
3482 fi
3483
3484 if test x$ac_cv_sizeof_short = x ; then
3485   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3486 echo "$as_me: error: cannot determine a size for short" >&2;}
3487    { (exit 1); exit 1; }; }
3488 fi
3489 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3490 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3491
3492 cat >>confdefs.h <<_ACEOF
3493 #define SIZEOF_SHORT $ac_cv_sizeof_short
3494 _ACEOF
3495
3496
3497 echo "$as_me:$LINENO: checking size of int" >&5
3498 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3499 if test "${ac_cv_sizeof_int+set}" = set; then
3500   echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3503   cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h.  */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h.  */
3509 #include "confdefs.h"
3510 #include <sys/types.h>
3511
3512
3513 int
3514 main ()
3515 {
3516 switch (0) case 0: case (sizeof (int) == $ac_size):;
3517   ;
3518   return 0;
3519 }
3520 _ACEOF
3521 rm -f conftest.$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523   (eval $ac_compile) 2>conftest.er1
3524   ac_status=$?
3525   grep -v '^ *+' conftest.er1 >conftest.err
3526   rm -f conftest.er1
3527   cat conftest.err >&5
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); } &&
3530          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532   (eval $ac_try) 2>&5
3533   ac_status=$?
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); }; } &&
3536          { ac_try='test -s conftest.$ac_objext'
3537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538   (eval $ac_try) 2>&5
3539   ac_status=$?
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); }; }; then
3542   ac_cv_sizeof_int=$ac_size
3543 else
3544   echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 fi
3548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3549   if test x$ac_cv_sizeof_int != x ; then break; fi
3550 done
3551
3552 fi
3553
3554 if test x$ac_cv_sizeof_int = x ; then
3555   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3556 echo "$as_me: error: cannot determine a size for int" >&2;}
3557    { (exit 1); exit 1; }; }
3558 fi
3559 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3560 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3561
3562 cat >>confdefs.h <<_ACEOF
3563 #define SIZEOF_INT $ac_cv_sizeof_int
3564 _ACEOF
3565
3566
3567 echo "$as_me:$LINENO: checking size of long" >&5
3568 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3569 if test "${ac_cv_sizeof_long+set}" = set; then
3570   echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3573   cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579 #include "confdefs.h"
3580 #include <sys/types.h>
3581
3582
3583 int
3584 main ()
3585 {
3586 switch (0) case 0: case (sizeof (long) == $ac_size):;
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 rm -f conftest.$ac_objext
3592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3593   (eval $ac_compile) 2>conftest.er1
3594   ac_status=$?
3595   grep -v '^ *+' conftest.er1 >conftest.err
3596   rm -f conftest.er1
3597   cat conftest.err >&5
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } &&
3600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602   (eval $ac_try) 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); }; } &&
3606          { ac_try='test -s conftest.$ac_objext'
3607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608   (eval $ac_try) 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); }; }; then
3612   ac_cv_sizeof_long=$ac_size
3613 else
3614   echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 fi
3618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3619   if test x$ac_cv_sizeof_long != x ; then break; fi
3620 done
3621
3622 fi
3623
3624 if test x$ac_cv_sizeof_long = x ; then
3625   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3626 echo "$as_me: error: cannot determine a size for long" >&2;}
3627    { (exit 1); exit 1; }; }
3628 fi
3629 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3630 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3631
3632 cat >>confdefs.h <<_ACEOF
3633 #define SIZEOF_LONG $ac_cv_sizeof_long
3634 _ACEOF
3635
3636
3637 if test $ac_cv_c_long_long = yes; then
3638   echo "$as_me:$LINENO: checking size of long long" >&5
3639 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3640 if test "${ac_cv_sizeof_long_long+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3644   cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h.  */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h.  */
3650 #include "confdefs.h"
3651 #include <sys/types.h>
3652
3653
3654 int
3655 main ()
3656 {
3657 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 rm -f conftest.$ac_objext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664   (eval $ac_compile) 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } &&
3671          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673   (eval $ac_try) 2>&5
3674   ac_status=$?
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); }; } &&
3677          { ac_try='test -s conftest.$ac_objext'
3678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679   (eval $ac_try) 2>&5
3680   ac_status=$?
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); }; }; then
3683   ac_cv_sizeof_long_long=$ac_size
3684 else
3685   echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 fi
3689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3690   if test x$ac_cv_sizeof_long_long != x ; then break; fi
3691 done
3692
3693 fi
3694
3695 if test x$ac_cv_sizeof_long_long = x ; then
3696   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3697 echo "$as_me: error: cannot determine a size for long long" >&2;}
3698    { (exit 1); exit 1; }; }
3699 fi
3700 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3701 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3702
3703 cat >>confdefs.h <<_ACEOF
3704 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3705 _ACEOF
3706
3707
3708 fi
3709 if test $ac_cv_c___int64 = yes; then
3710   echo "$as_me:$LINENO: checking size of __int64" >&5
3711 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3712 if test "${ac_cv_sizeof___int64+set}" = set; then
3713   echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
3716   cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h.  */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h.  */
3722 #include "confdefs.h"
3723 #include <sys/types.h>
3724
3725
3726 int
3727 main ()
3728 {
3729 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3730   ;
3731   return 0;
3732 }
3733 _ACEOF
3734 rm -f conftest.$ac_objext
3735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3736   (eval $ac_compile) 2>conftest.er1
3737   ac_status=$?
3738   grep -v '^ *+' conftest.er1 >conftest.err
3739   rm -f conftest.er1
3740   cat conftest.err >&5
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } &&
3743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745   (eval $ac_try) 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); }; } &&
3749          { ac_try='test -s conftest.$ac_objext'
3750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751   (eval $ac_try) 2>&5
3752   ac_status=$?
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); }; }; then
3755   ac_cv_sizeof___int64=$ac_size
3756 else
3757   echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3759
3760 fi
3761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3762   if test x$ac_cv_sizeof___int64 != x ; then break; fi
3763 done
3764
3765 fi
3766
3767 if test x$ac_cv_sizeof___int64 = x ; then
3768   { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3769 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3770    { (exit 1); exit 1; }; }
3771 fi
3772 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3773 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3774
3775 cat >>confdefs.h <<_ACEOF
3776 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3777 _ACEOF
3778
3779
3780 fi
3781
3782 # ---------------------
3783 # Warnings and checking
3784 # ---------------------
3785
3786 strict1_warn=
3787 if test $ac_cv_prog_cc_no_long_long = yes ; then
3788   strict1_warn="-pedantic -Wno-long-long"
3789 fi
3790
3791
3792 # If the native compiler is GCC, we can enable warnings even in stage1.
3793 # That's useful for people building cross-compilers, or just running a
3794 # quick `make'.
3795 warn_cflags=
3796 if test "x$GCC" = "xyes"; then
3797   warn_cflags='$(GCC_WARN_CFLAGS)'
3798 fi
3799
3800
3801 # Enable -Werror in bootstrap stage2 and later.
3802 # Change the default to "no" on release branches.
3803 # Check whether --enable-werror or --disable-werror was given.
3804 if test "${enable_werror+set}" = set; then
3805   enableval="$enable_werror"
3806
3807 else
3808   enable_werror=yes
3809 fi;
3810 if test x$enable_werror = xyes ; then
3811   WERROR=-Werror
3812 fi
3813
3814
3815 # Enable expensive internal checks
3816 # Check whether --enable-checking or --disable-checking was given.
3817 if test "${enable_checking+set}" = set; then
3818   enableval="$enable_checking"
3819   ac_checking=
3820 ac_tree_checking=
3821 ac_rtl_checking=
3822 ac_rtlflag_checking=
3823 ac_gc_checking=
3824 ac_gc_always_collect=
3825 ac_fold_checking=
3826 case "${enableval}" in
3827 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3828         ac_rtlflag_checking=1 ;;
3829 no)     ;;
3830 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3831         set fnord $enableval; shift
3832         IFS="$ac_save_IFS"
3833         for check
3834         do
3835                 case $check in
3836                 misc)   ac_checking=1 ;;
3837                 tree)   ac_tree_checking=1 ;;
3838                 rtlflag)        ac_rtlflag_checking=1 ;;
3839                 rtl)    ac_rtl_checking=1 ;;
3840                 gc)     ac_gc_checking=1 ;;
3841                 gcac)   ac_gc_always_collect=1 ;;
3842                 fold)   ac_fold_checking=1 ;;
3843                 valgrind)       ac_checking_valgrind=1 ;;
3844                 *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3845 echo "$as_me: error: unknown check category $check" >&2;}
3846    { (exit 1); exit 1; }; } ;;
3847                 esac
3848         done
3849         ;;
3850 esac
3851
3852 else
3853   # Enable some checks by default for development versions of GCC
3854 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3855 fi;
3856 nocommon_flag=""
3857 if test x$ac_checking != x ; then
3858
3859 cat >>confdefs.h <<\_ACEOF
3860 #define ENABLE_CHECKING 1
3861 _ACEOF
3862
3863   nocommon_flag=-fno-common
3864 fi
3865
3866 if test x$ac_tree_checking != x ; then
3867
3868 cat >>confdefs.h <<\_ACEOF
3869 #define ENABLE_TREE_CHECKING 1
3870 _ACEOF
3871
3872 fi
3873 if test x$ac_rtl_checking != x ; then
3874
3875 cat >>confdefs.h <<\_ACEOF
3876 #define ENABLE_RTL_CHECKING 1
3877 _ACEOF
3878
3879 fi
3880 if test x$ac_rtlflag_checking != x ; then
3881
3882 cat >>confdefs.h <<\_ACEOF
3883 #define ENABLE_RTL_FLAG_CHECKING 1
3884 _ACEOF
3885
3886 fi
3887 if test x$ac_gc_checking != x ; then
3888
3889 cat >>confdefs.h <<\_ACEOF
3890 #define ENABLE_GC_CHECKING 1
3891 _ACEOF
3892
3893 fi
3894 if test x$ac_gc_always_collect != x ; then
3895
3896 cat >>confdefs.h <<\_ACEOF
3897 #define ENABLE_GC_ALWAYS_COLLECT 1
3898 _ACEOF
3899
3900 fi
3901 if test x$ac_fold_checking != x ; then
3902
3903 cat >>confdefs.h <<\_ACEOF
3904 #define ENABLE_FOLD_CHECKING 1
3905 _ACEOF
3906
3907 fi
3908 valgrind_path_defines=
3909 valgrind_command=
3910
3911
3912 echo "$as_me:$LINENO: checking for egrep" >&5
3913 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3914 if test "${ac_cv_prog_egrep+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3918     then ac_cv_prog_egrep='grep -E'
3919     else ac_cv_prog_egrep='egrep'
3920     fi
3921 fi
3922 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3923 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3924  EGREP=$ac_cv_prog_egrep
3925
3926
3927 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3928 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3929 if test "${ac_cv_header_stdc+set}" = set; then
3930   echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932   cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h.  */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h.  */
3938 #include <stdlib.h>
3939 #include <stdarg.h>
3940 #include <string.h>
3941 #include <float.h>
3942
3943 int
3944 main ()
3945 {
3946
3947   ;
3948   return 0;
3949 }
3950 _ACEOF
3951 rm -f conftest.$ac_objext
3952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3953   (eval $ac_compile) 2>conftest.er1
3954   ac_status=$?
3955   grep -v '^ *+' conftest.er1 >conftest.err
3956   rm -f conftest.er1
3957   cat conftest.err >&5
3958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959   (exit $ac_status); } &&
3960          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962   (eval $ac_try) 2>&5
3963   ac_status=$?
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); }; } &&
3966          { ac_try='test -s conftest.$ac_objext'
3967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968   (eval $ac_try) 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); }; }; then
3972   ac_cv_header_stdc=yes
3973 else
3974   echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977 ac_cv_header_stdc=no
3978 fi
3979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980
3981 if test $ac_cv_header_stdc = yes; then
3982   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3983   cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h.  */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h.  */
3989 #include <string.h>
3990
3991 _ACEOF
3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993   $EGREP "memchr" >/dev/null 2>&1; then
3994   :
3995 else
3996   ac_cv_header_stdc=no
3997 fi
3998 rm -f conftest*
3999
4000 fi
4001
4002 if test $ac_cv_header_stdc = yes; then
4003   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4004   cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h.  */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h.  */
4010 #include <stdlib.h>
4011
4012 _ACEOF
4013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014   $EGREP "free" >/dev/null 2>&1; then
4015   :
4016 else
4017   ac_cv_header_stdc=no
4018 fi
4019 rm -f conftest*
4020
4021 fi
4022
4023 if test $ac_cv_header_stdc = yes; then
4024   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4025   if test "$cross_compiling" = yes; then
4026   :
4027 else
4028   cat >conftest.$ac_ext <<_ACEOF
4029 /* confdefs.h.  */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h.  */
4034 #include <ctype.h>
4035 #if ((' ' & 0x0FF) == 0x020)
4036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4038 #else
4039 # define ISLOWER(c) \
4040                    (('a' <= (c) && (c) <= 'i') \
4041                      || ('j' <= (c) && (c) <= 'r') \
4042                      || ('s' <= (c) && (c) <= 'z'))
4043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4044 #endif
4045
4046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4047 int
4048 main ()
4049 {
4050   int i;
4051   for (i = 0; i < 256; i++)
4052     if (XOR (islower (i), ISLOWER (i))
4053         || toupper (i) != TOUPPER (i))
4054       exit(2);
4055   exit (0);
4056 }
4057 _ACEOF
4058 rm -f conftest$ac_exeext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4060   (eval $ac_link) 2>&5
4061   ac_status=$?
4062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065   (eval $ac_try) 2>&5
4066   ac_status=$?
4067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068   (exit $ac_status); }; }; then
4069   :
4070 else
4071   echo "$as_me: program exited with status $ac_status" >&5
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075 ( exit $ac_status )
4076 ac_cv_header_stdc=no
4077 fi
4078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4079 fi
4080 fi
4081 fi
4082 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4083 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4084 if test $ac_cv_header_stdc = yes; then
4085
4086 cat >>confdefs.h <<\_ACEOF
4087 #define STDC_HEADERS 1
4088 _ACEOF
4089
4090 fi
4091
4092 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4103                   inttypes.h stdint.h unistd.h
4104 do
4105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4106 echo "$as_me:$LINENO: checking for $ac_header" >&5
4107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h.  */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h.  */
4117 $ac_includes_default
4118
4119 #include <$ac_header>
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123   (eval $ac_compile) 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); } &&
4130          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132   (eval $ac_try) 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; } &&
4136          { ac_try='test -s conftest.$ac_objext'
4137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138   (eval $ac_try) 2>&5
4139   ac_status=$?
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); }; }; then
4142   eval "$as_ac_Header=yes"
4143 else
4144   echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 eval "$as_ac_Header=no"
4148 fi
4149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150 fi
4151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4154   cat >>confdefs.h <<_ACEOF
4155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4156 _ACEOF
4157
4158 fi
4159
4160 done
4161
4162
4163 if test "${ac_cv_header_valgrind_h+set}" = set; then
4164   echo "$as_me:$LINENO: checking for valgrind.h" >&5
4165 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4166 if test "${ac_cv_header_valgrind_h+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 fi
4169 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4170 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4171 else
4172   # Is the header compilable?
4173 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4174 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4175 cat >conftest.$ac_ext <<_ACEOF
4176 /* confdefs.h.  */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h.  */
4181 $ac_includes_default
4182 #include <valgrind.h>
4183 _ACEOF
4184 rm -f conftest.$ac_objext
4185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4186   (eval $ac_compile) 2>conftest.er1
4187   ac_status=$?
4188   grep -v '^ *+' conftest.er1 >conftest.err
4189   rm -f conftest.er1
4190   cat conftest.err >&5
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); } &&
4193          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195   (eval $ac_try) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); }; } &&
4199          { ac_try='test -s conftest.$ac_objext'
4200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201   (eval $ac_try) 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); }; }; then
4205   ac_header_compiler=yes
4206 else
4207   echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 ac_header_compiler=no
4211 fi
4212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4214 echo "${ECHO_T}$ac_header_compiler" >&6
4215
4216 # Is the header present?
4217 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4218 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4219 cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h.  */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h.  */
4225 #include <valgrind.h>
4226 _ACEOF
4227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4229   ac_status=$?
4230   grep -v '^ *+' conftest.er1 >conftest.err
4231   rm -f conftest.er1
4232   cat conftest.err >&5
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } >/dev/null; then
4235   if test -s conftest.err; then
4236     ac_cpp_err=$ac_c_preproc_warn_flag
4237     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4238   else
4239     ac_cpp_err=
4240   fi
4241 else
4242   ac_cpp_err=yes
4243 fi
4244 if test -z "$ac_cpp_err"; then
4245   ac_header_preproc=yes
4246 else
4247   echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4249
4250   ac_header_preproc=no
4251 fi
4252 rm -f conftest.err conftest.$ac_ext
4253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4254 echo "${ECHO_T}$ac_header_preproc" >&6
4255
4256 # So?  What about this header?
4257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4258   yes:no: )
4259     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4260 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4261     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4262 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4263     ac_header_preproc=yes
4264     ;;
4265   no:yes:* )
4266     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4267 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4268     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
4269 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
4270     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4271 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4272     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
4273 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4274     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4275 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4276     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4277 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4278     (
4279       cat <<\_ASBOX
4280 ## ------------------------------------------ ##
4281 ## Report this to the AC_PACKAGE_NAME lists.  ##
4282 ## ------------------------------------------ ##
4283 _ASBOX
4284     ) |
4285       sed "s/^/$as_me: WARNING:     /" >&2
4286     ;;
4287 esac
4288 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4289 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4290 if test "${ac_cv_header_valgrind_h+set}" = set; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   ac_cv_header_valgrind_h=$ac_header_preproc
4294 fi
4295 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4296 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4297
4298 fi
4299 if test $ac_cv_header_valgrind_h = yes; then
4300   have_valgrind_h=yes
4301 else
4302   have_valgrind_h=no
4303 fi
4304
4305
4306
4307 if test x$ac_checking_valgrind != x ; then
4308   # It is certainly possible that there's valgrind but no valgrind.h.
4309   # GCC relies on making annotations so we must have both.
4310   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4311 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4312   cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318 #include <valgrind/memcheck.h>
4319 #ifndef VALGRIND_DISCARD
4320 #error VALGRIND_DISCARD not defined
4321 #endif
4322 _ACEOF
4323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4325   ac_status=$?
4326   grep -v '^ *+' conftest.er1 >conftest.err
4327   rm -f conftest.er1
4328   cat conftest.err >&5
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } >/dev/null; then
4331   if test -s conftest.err; then
4332     ac_cpp_err=$ac_c_preproc_warn_flag
4333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4334   else
4335     ac_cpp_err=
4336   fi
4337 else
4338   ac_cpp_err=yes
4339 fi
4340 if test -z "$ac_cpp_err"; then
4341   gcc_cv_header_valgrind_memcheck_h=yes
4342 else
4343   echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346   gcc_cv_header_valgrind_memcheck_h=no
4347 fi
4348 rm -f conftest.err conftest.$ac_ext
4349   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4350 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4351   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4352 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4353   cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h.  */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h.  */
4359 #include <memcheck.h>
4360 #ifndef VALGRIND_DISCARD
4361 #error VALGRIND_DISCARD not defined
4362 #endif
4363 _ACEOF
4364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4366   ac_status=$?
4367   grep -v '^ *+' conftest.er1 >conftest.err
4368   rm -f conftest.er1
4369   cat conftest.err >&5
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); } >/dev/null; then
4372   if test -s conftest.err; then
4373     ac_cpp_err=$ac_c_preproc_warn_flag
4374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4375   else
4376     ac_cpp_err=
4377   fi
4378 else
4379   ac_cpp_err=yes
4380 fi
4381 if test -z "$ac_cpp_err"; then
4382   gcc_cv_header_memcheck_h=yes
4383 else
4384   echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4386
4387   gcc_cv_header_memcheck_h=no
4388 fi
4389 rm -f conftest.err conftest.$ac_ext
4390   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4391 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4392
4393 # Prepare PATH_SEPARATOR.
4394 # The user is always right.
4395 if test "${PATH_SEPARATOR+set}" != set; then
4396   echo "#! /bin/sh" >conf$$.sh
4397   echo  "exit 0"   >>conf$$.sh
4398   chmod +x conf$$.sh
4399   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4400     PATH_SEPARATOR=';'
4401   else
4402     PATH_SEPARATOR=:
4403   fi
4404   rm -f conf$$.sh
4405 fi
4406
4407 # Find out how to test for executable files. Don't use a zero-byte file,
4408 # as systems may use methods other than mode bits to determine executability.
4409 cat >conf$$.file <<_ASEOF
4410 #! /bin/sh
4411 exit 0
4412 _ASEOF
4413 chmod +x conf$$.file
4414 if test -x conf$$.file >/dev/null 2>&1; then
4415   ac_executable_p="test -x"
4416 else
4417   ac_executable_p="test -f"
4418 fi
4419 rm -f conf$$.file
4420
4421 # Extract the first word of "valgrind", so it can be a program name with args.
4422 set dummy valgrind; ac_word=$2
4423 echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425 if test "${ac_cv_path_valgrind_path+set}" = set; then
4426   echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428   case "$valgrind_path" in
4429   [\\/]* | ?:[\\/]*)
4430     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4431     ;;
4432   *)
4433     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4434     for ac_dir in $PATH; do
4435       IFS="$ac_save_IFS"
4436       test -z "$ac_dir" && ac_dir=.
4437       for ac_exec_ext in '' $ac_executable_extensions; do
4438         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4439           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4440             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4441             break 2
4442           fi
4443         fi
4444       done
4445     done
4446     IFS="$ac_save_IFS"
4447     ;;
4448 esac
4449 fi
4450 valgrind_path="$ac_cv_path_valgrind_path"
4451 if test -n "$valgrind_path"; then
4452   echo "$as_me:$LINENO: result: $valgrind_path" >&5
4453 echo "${ECHO_T}$valgrind_path" >&6
4454 else
4455   echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4457 fi
4458
4459   if test "x$valgrind_path" = "x" \
4460     || (test $have_valgrind_h = no \
4461         && test $gcc_cv_header_memcheck_h = no \
4462         && test $gcc_cv_header_valgrind_memcheck_h = no); then
4463         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4464 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4465    { (exit 1); exit 1; }; }
4466   fi
4467   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4468   valgrind_command="$valgrind_path -q"
4469
4470 cat >>confdefs.h <<\_ACEOF
4471 #define ENABLE_VALGRIND_CHECKING 1
4472 _ACEOF
4473
4474   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4475
4476 cat >>confdefs.h <<\_ACEOF
4477 #define HAVE_VALGRIND_MEMCHECK_H 1
4478 _ACEOF
4479
4480   fi
4481   if test $gcc_cv_header_memcheck_h = yes; then
4482
4483 cat >>confdefs.h <<\_ACEOF
4484 #define HAVE_MEMCHECK_H 1
4485 _ACEOF
4486
4487   fi
4488 fi
4489
4490
4491
4492 # Enable code coverage collection
4493 # Check whether --enable-coverage or --disable-coverage was given.
4494 if test "${enable_coverage+set}" = set; then
4495   enableval="$enable_coverage"
4496   case "${enableval}" in
4497 yes|noopt)
4498         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4499         ;;
4500 opt)
4501         coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4502         ;;
4503 *)
4504         { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4505 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4506    { (exit 1); exit 1; }; }
4507         ;;
4508 esac
4509 else
4510   coverage_flags=""
4511 fi;
4512
4513
4514 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4515 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4516   enableval="$enable_gather_detailed_mem_stats"
4517
4518 else
4519   enable_gather_detailed_mem_stats=no
4520 fi;
4521 if test x$enable_gather_detailed_mem_stats = xyes ; then
4522
4523 cat >>confdefs.h <<\_ACEOF
4524 #define GATHER_STATISTICS 1
4525 _ACEOF
4526
4527 fi
4528
4529 # -------------------------------
4530 # Miscenalleous configure options
4531 # -------------------------------
4532
4533 # With stabs
4534
4535 # Check whether --with-stabs or --without-stabs was given.
4536 if test "${with_stabs+set}" = set; then
4537   withval="$with_stabs"
4538   stabs="$with_stabs"
4539 else
4540   stabs=no
4541 fi;
4542
4543 # Determine whether or not multilibs are enabled.
4544 # Check whether --enable-multilib or --disable-multilib was given.
4545 if test "${enable_multilib+set}" = set; then
4546   enableval="$enable_multilib"
4547
4548 else
4549   enable_multilib=yes
4550 fi;
4551
4552
4553 # Enable __cxa_atexit for C++.
4554 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4555 if test "${enable___cxa_atexit+set}" = set; then
4556   enableval="$enable___cxa_atexit"
4557
4558 fi;
4559
4560 # Enable threads
4561 # Pass with no value to take the default
4562 # Pass with a value to specify a thread package
4563 # Check whether --enable-threads or --disable-threads was given.
4564 if test "${enable_threads+set}" = set; then
4565   enableval="$enable_threads"
4566
4567 else
4568   enable_threads=''
4569 fi;
4570 # Save in case it gets overwritten in config.gcc
4571 enable_threads_flag=$enable_threads
4572
4573 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4574 if test "${enable_objc_gc+set}" = set; then
4575   enableval="$enable_objc_gc"
4576   if test x$enable_objc_gc = xno; then
4577         objc_boehm_gc=''
4578 else
4579         objc_boehm_gc=1
4580 fi
4581 else
4582   objc_boehm_gc=''
4583 fi;
4584
4585
4586 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4587 if test "${with_dwarf2+set}" = set; then
4588   withval="$with_dwarf2"
4589   dwarf2="$with_dwarf2"
4590 else
4591   dwarf2=no
4592 fi;
4593
4594 # Check whether --enable-shared or --disable-shared was given.
4595 if test "${enable_shared+set}" = set; then
4596   enableval="$enable_shared"
4597
4598   case $enable_shared in
4599   yes | no) ;;
4600   *)
4601     enable_shared=no
4602     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4603     for pkg in $enableval; do
4604       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4605         enable_shared=yes
4606       fi
4607     done
4608     IFS="$ac_save_ifs"
4609     ;;
4610   esac
4611
4612 else
4613   enable_shared=yes
4614 fi;
4615
4616
4617
4618 # Check whether --with-sysroot or --without-sysroot was given.
4619 if test "${with_sysroot+set}" = set; then
4620   withval="$with_sysroot"
4621
4622  case ${with_sysroot} in
4623  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4624  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4625  esac
4626
4627  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4628  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4629
4630  if test "x$exec_prefix" = xNONE; then
4631   if test "x$prefix" = xNONE; then
4632    test_prefix=/usr/local
4633   else
4634    test_prefix=$prefix
4635   fi
4636  else
4637   test_prefix=$exec_prefix
4638  fi
4639  case ${TARGET_SYSTEM_ROOT} in
4640  "${test_prefix}"|"${test_prefix}/"*|\
4641  '${exec_prefix}'|'${exec_prefix}/'*)
4642    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4643    TARGET_SYSTEM_ROOT_DEFINE="$t"
4644    ;;
4645  esac
4646
4647 else
4648
4649  TARGET_SYSTEM_ROOT=
4650  TARGET_SYSTEM_ROOT_DEFINE=
4651  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4652
4653 fi;
4654
4655
4656
4657
4658 # Build with intermodule optimisations
4659 # Check whether --enable-intermodule or --disable-intermodule was given.
4660 if test "${enable_intermodule+set}" = set; then
4661   enableval="$enable_intermodule"
4662   case ${enable_intermodule} in
4663   yes) onestep="-onestep";;
4664   *) onestep="";;
4665 esac
4666 else
4667   onestep=""
4668 fi;
4669
4670
4671 # Sanity check enable_languages in case someone does not run the toplevel
4672 # configure # script.
4673 # Check whether --enable-languages or --disable-languages was given.
4674 if test "${enable_languages+set}" = set; then
4675   enableval="$enable_languages"
4676   case ,${enable_languages}, in
4677        ,,|,yes,)
4678                 # go safe -- we cannot be much sure without the toplevel
4679                 # configure's
4680                 # analysis of which target libs are present and usable
4681                 enable_languages=c
4682                 ;;
4683          *,all,*)
4684                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4685 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4686    { (exit 1); exit 1; }; }
4687                 ;;
4688         *,c,*)
4689                 ;;
4690         *)
4691                 enable_languages=c,${enable_languages}
4692                 ;;
4693 esac
4694 else
4695   enable_languages=c
4696 fi;
4697
4698 subdirs=
4699 for lang in ${srcdir}/*/config-lang.in
4700 do
4701         case $lang in
4702         # The odd quoting in the next line works around
4703         # an apparent bug in bash 1.12 on linux.
4704         ${srcdir}/[*]/config-lang.in) ;;
4705         *)
4706           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
4707           if test "x$lang_alias" = x
4708           then
4709                 echo "$lang doesn't set \$language." 1>&2
4710                 exit 1
4711           fi
4712           case ",$enable_languages," in
4713           *,$lang_alias,*)
4714             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4715           esac
4716           ;;
4717         esac
4718 done
4719
4720
4721 # -------------------------
4722 # Checks for other programs
4723 # -------------------------
4724
4725 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4726 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4727 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4728 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4729   echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731   cat >conftest.make <<\_ACEOF
4732 all:
4733         @echo 'ac_maketemp="$(MAKE)"'
4734 _ACEOF
4735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4736 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4737 if test -n "$ac_maketemp"; then
4738   eval ac_cv_prog_make_${ac_make}_set=yes
4739 else
4740   eval ac_cv_prog_make_${ac_make}_set=no
4741 fi
4742 rm -f conftest.make
4743 fi
4744 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4745   echo "$as_me:$LINENO: result: yes" >&5
4746 echo "${ECHO_T}yes" >&6
4747   SET_MAKE=
4748 else
4749   echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6
4751   SET_MAKE="MAKE=${MAKE-make}"
4752 fi
4753
4754
4755 # Find some useful tools
4756 for ac_prog in gawk mawk nawk awk
4757 do
4758   # Extract the first word of "$ac_prog", so it can be a program name with args.
4759 set dummy $ac_prog; 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_AWK+set}" = set; then
4763   echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765   if test -n "$AWK"; then
4766   ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
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 fi
4783 fi
4784 AWK=$ac_cv_prog_AWK
4785 if test -n "$AWK"; then
4786   echo "$as_me:$LINENO: result: $AWK" >&5
4787 echo "${ECHO_T}$AWK" >&6
4788 else
4789   echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6
4791 fi
4792
4793   test -n "$AWK" && break
4794 done
4795
4796 # We need awk to run opts.sh (to create options.c and options.h).
4797 # Bail out if it's missing.
4798 case ${AWK} in
4799   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4800 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4801    { (exit 1); exit 1; }; } ;;
4802 esac
4803
4804 echo "$as_me:$LINENO: checking whether ln works" >&5
4805 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4806 if test "${gcc_cv_prog_LN+set}" = set; then
4807   echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809   rm -f conftestdata_t
4810 echo >conftestdata_f
4811 if ln conftestdata_f conftestdata_t 2>/dev/null
4812 then
4813   gcc_cv_prog_LN="ln"
4814 else
4815   if ln -s conftestdata_f conftestdata_t 2>/dev/null
4816   then
4817     gcc_cv_prog_LN="ln -s"
4818   else
4819     gcc_cv_prog_LN=cp
4820   fi
4821 fi
4822 rm -f conftestdata_f conftestdata_t
4823
4824 fi
4825 LN="$gcc_cv_prog_LN"
4826 if test "$gcc_cv_prog_LN" = "ln"; then
4827   echo "$as_me:$LINENO: result: yes" >&5
4828 echo "${ECHO_T}yes" >&6
4829 else
4830   if test "$gcc_cv_prog_LN" = "ln -s"; then
4831     echo "$as_me:$LINENO: result: no, using ln -s" >&5
4832 echo "${ECHO_T}no, using ln -s" >&6
4833   else
4834     echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4835 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4836   fi
4837 fi
4838
4839 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4840 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4841 if test "${gcc_cv_prog_LN_S+set}" = set; then
4842   echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844   rm -f conftestdata_t
4845 echo >conftestdata_f
4846 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4847 then
4848   gcc_cv_prog_LN_S="ln -s"
4849 else
4850   if ln conftestdata_f conftestdata_t 2>/dev/null
4851   then
4852     gcc_cv_prog_LN_S=ln
4853   else
4854     gcc_cv_prog_LN_S=cp
4855   fi
4856 fi
4857 rm -f conftestdata_f conftestdata_t
4858
4859 fi
4860 LN_S="$gcc_cv_prog_LN_S"
4861 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4862   echo "$as_me:$LINENO: result: yes" >&5
4863 echo "${ECHO_T}yes" >&6
4864 else
4865   if test "$gcc_cv_prog_LN_S" = "ln"; then
4866     echo "$as_me:$LINENO: result: no, using ln" >&5
4867 echo "${ECHO_T}no, using ln" >&6
4868   else
4869     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4870 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4871   fi
4872 fi
4873
4874 if test -n "$ac_tool_prefix"; then
4875   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4876 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4877 echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879 if test "${ac_cv_prog_RANLIB+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   if test -n "$RANLIB"; then
4883   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888   IFS=$as_save_IFS
4889   test -z "$as_dir" && as_dir=.
4890   for ac_exec_ext in '' $ac_executable_extensions; do
4891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894     break 2
4895   fi
4896 done
4897 done
4898
4899 fi
4900 fi
4901 RANLIB=$ac_cv_prog_RANLIB
4902 if test -n "$RANLIB"; then
4903   echo "$as_me:$LINENO: result: $RANLIB" >&5
4904 echo "${ECHO_T}$RANLIB" >&6
4905 else
4906   echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6
4908 fi
4909
4910 fi
4911 if test -z "$ac_cv_prog_RANLIB"; then
4912   ac_ct_RANLIB=$RANLIB
4913   # Extract the first word of "ranlib", so it can be a program name with args.
4914 set dummy ranlib; ac_word=$2
4915 echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4917 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4918   echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920   if test -n "$ac_ct_RANLIB"; then
4921   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926   IFS=$as_save_IFS
4927   test -z "$as_dir" && as_dir=.
4928   for ac_exec_ext in '' $ac_executable_extensions; do
4929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930     ac_cv_prog_ac_ct_RANLIB="ranlib"
4931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932     break 2
4933   fi
4934 done
4935 done
4936
4937   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4938 fi
4939 fi
4940 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4941 if test -n "$ac_ct_RANLIB"; then
4942   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4943 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4944 else
4945   echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6
4947 fi
4948
4949   RANLIB=$ac_ct_RANLIB
4950 else
4951   RANLIB="$ac_cv_prog_RANLIB"
4952 fi
4953
4954 # Find a good install program.  We prefer a C program (faster),
4955 # so one script is as good as another.  But avoid the broken or
4956 # incompatible versions:
4957 # SysV /etc/install, /usr/sbin/install
4958 # SunOS /usr/etc/install
4959 # IRIX /sbin/install
4960 # AIX /bin/install
4961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4963 # ./install, which can be erroneously created by make from ./install.sh.
4964 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4965 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4966 if test -z "$INSTALL"; then
4967 if test "${ac_cv_path_install+set}" = set; then
4968   echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4971   for ac_dir in $PATH; do
4972     # Account for people who put trailing slashes in PATH elements.
4973     case "$ac_dir/" in
4974     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4975     *)
4976       # OSF1 and SCO ODT 3.0 have their own names for install.
4977       for ac_prog in ginstall scoinst install; do
4978         if test -f $ac_dir/$ac_prog; then
4979           if test $ac_prog = install &&
4980             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4981             # AIX install.  It has an incompatible calling convention.
4982             # OSF/1 installbsd also uses dspmsg, but is usable.
4983             :
4984           else
4985             ac_cv_path_install="$ac_dir/$ac_prog -c"
4986             break 2
4987           fi
4988         fi
4989       done
4990       ;;
4991     esac
4992   done
4993   IFS="$ac_save_IFS"
4994
4995 fi
4996   if test "${ac_cv_path_install+set}" = set; then
4997     INSTALL="$ac_cv_path_install"
4998   else
4999     # As a last resort, use the slow shell script.  We don't cache a
5000     # path for INSTALL within a source directory, because that will
5001     # break other packages using the cache if that directory is
5002     # removed, or if the path is relative.
5003     INSTALL="$ac_install_sh"
5004   fi
5005 fi
5006 echo "$as_me:$LINENO: result: $INSTALL" >&5
5007 echo "${ECHO_T}$INSTALL" >&6
5008
5009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5010 # It thinks the first close brace ends the variable substitution.
5011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5012
5013 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5014
5015
5016 # See if cmp has --ignore-initial.
5017 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5018 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5019 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5020   echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022    echo abfoo >t1
5023   echo cdfoo >t2
5024   gcc_cv_prog_cmp_skip=slowcompare
5025   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5026     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5027       :
5028     else
5029       gcc_cv_prog_cmp_skip=gnucompare
5030     fi
5031   fi
5032   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5033     if cmp t1 t2 2 2 > /dev/null 2>&1; then
5034       if cmp t1 t2 1 1 > /dev/null 2>&1; then
5035         :
5036       else
5037         gcc_cv_prog_cmp_skip=fastcompare
5038       fi
5039     fi
5040   fi
5041   rm t1 t2
5042
5043 fi
5044 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5045 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5046 make_compare_target=$gcc_cv_prog_cmp_skip
5047
5048
5049
5050 # See if we have the mktemp command.
5051 # Extract the first word of "mktemp", so it can be a program name with args.
5052 set dummy mktemp; ac_word=$2
5053 echo "$as_me:$LINENO: checking for $ac_word" >&5
5054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5055 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5056   echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058   if test -n "$have_mktemp_command"; then
5059   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5063 do
5064   IFS=$as_save_IFS
5065   test -z "$as_dir" && as_dir=.
5066   for ac_exec_ext in '' $ac_executable_extensions; do
5067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068     ac_cv_prog_have_mktemp_command="yes"
5069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070     break 2
5071   fi
5072 done
5073 done
5074
5075   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5076 fi
5077 fi
5078 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5079 if test -n "$have_mktemp_command"; then
5080   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5081 echo "${ECHO_T}$have_mktemp_command" >&6
5082 else
5083   echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6
5085 fi
5086
5087
5088 # Do we have a single-tree copy of texinfo?
5089 if test -f $srcdir/../texinfo/Makefile.in; then
5090   MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5091   gcc_cv_prog_makeinfo_modern=yes
5092   echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5093 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5094 else
5095   # See if makeinfo has been installed and is modern enough
5096   # that we can use it.
5097   # Extract the first word of "makeinfo", so it can be a program name with args.
5098 set dummy makeinfo; ac_word=$2
5099 echo "$as_me:$LINENO: checking for $ac_word" >&5
5100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5101 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5102   echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104   if test -n "$MAKEINFO"; then
5105   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5106 else
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5109 do
5110   IFS=$as_save_IFS
5111   test -z "$as_dir" && as_dir=.
5112   for ac_exec_ext in '' $ac_executable_extensions; do
5113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114     ac_cv_prog_MAKEINFO="makeinfo"
5115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116     break 2
5117   fi
5118 done
5119 done
5120
5121 fi
5122 fi
5123 MAKEINFO=$ac_cv_prog_MAKEINFO
5124 if test -n "$MAKEINFO"; then
5125   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5126 echo "${ECHO_T}$MAKEINFO" >&6
5127 else
5128   echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6
5130 fi
5131
5132 if test -n "$MAKEINFO"; then
5133   # Found it, now check the version.
5134   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5135 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5136 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5137   echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139     ac_prog_version=`$MAKEINFO --version 2>&1 |
5140                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5141   echo "configure:5141: version of makeinfo is $ac_prog_version" >&5
5142   case $ac_prog_version in
5143     '')     gcc_cv_prog_makeinfo_modern=no;;
5144     4.[2-9]*)
5145             gcc_cv_prog_makeinfo_modern=yes;;
5146     *)      gcc_cv_prog_makeinfo_modern=no;;
5147   esac
5148
5149 fi
5150 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5151 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5152 else
5153   gcc_cv_prog_makeinfo_modern=no
5154 fi
5155
5156 fi
5157
5158 if test $gcc_cv_prog_makeinfo_modern = no; then
5159   { echo "$as_me:$LINENO: WARNING:
5160 *** Makeinfo is missing or too old.
5161 *** Info documentation will not be built." >&5
5162 echo "$as_me: WARNING:
5163 *** Makeinfo is missing or too old.
5164 *** Info documentation will not be built." >&2;}
5165   BUILD_INFO=
5166 else
5167   BUILD_INFO=info
5168 fi
5169
5170 # Is pod2man recent enough to regenerate manpages?
5171 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5172 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5173 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5174   echo "$as_me:$LINENO: result: yes" >&5
5175 echo "${ECHO_T}yes" >&6
5176   GENERATED_MANPAGES=generated-manpages
5177 else
5178   echo "$as_me:$LINENO: result: no" >&5
5179 echo "${ECHO_T}no" >&6
5180   GENERATED_MANPAGES=
5181 fi
5182
5183 # How about lex?
5184 if test -f $srcdir/../flex/skel.c; then
5185   FLEX='$(objdir)/../flex/flex'
5186 else
5187   # Extract the first word of "flex", so it can be a program name with args.
5188 set dummy flex; ac_word=$2
5189 echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5191 if test "${ac_cv_prog_FLEX+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   if test -n "$FLEX"; then
5195   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200   IFS=$as_save_IFS
5201   test -z "$as_dir" && as_dir=.
5202   for ac_exec_ext in '' $ac_executable_extensions; do
5203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204     ac_cv_prog_FLEX="flex"
5205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206     break 2
5207   fi
5208 done
5209 done
5210
5211   test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5212 fi
5213 fi
5214 FLEX=$ac_cv_prog_FLEX
5215 if test -n "$FLEX"; then
5216   echo "$as_me:$LINENO: result: $FLEX" >&5
5217 echo "${ECHO_T}$FLEX" >&6
5218 else
5219   echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5221 fi
5222
5223 fi
5224
5225 # Bison?
5226 # The -L switch is so bison can find its skeleton file.
5227 if test -f $srcdir/../bison/bison.simple; then
5228   BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5229 else
5230   # Extract the first word of "bison", so it can be a program name with args.
5231 set dummy bison; ac_word=$2
5232 echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234 if test "${ac_cv_prog_BISON+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   if test -n "$BISON"; then
5238   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243   IFS=$as_save_IFS
5244   test -z "$as_dir" && as_dir=.
5245   for ac_exec_ext in '' $ac_executable_extensions; do
5246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247     ac_cv_prog_BISON="bison"
5248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249     break 2
5250   fi
5251 done
5252 done
5253
5254   test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5255 fi
5256 fi
5257 BISON=$ac_cv_prog_BISON
5258 if test -n "$BISON"; then
5259   echo "$as_me:$LINENO: result: $BISON" >&5
5260 echo "${ECHO_T}$BISON" >&6
5261 else
5262   echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6
5264 fi
5265
5266 fi
5267
5268 # --------------------
5269 # Checks for C headers
5270 # --------------------
5271
5272 echo "$as_me:$LINENO: checking for GNU C library" >&5
5273 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5274 if test "${gcc_cv_glibc+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h.  */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h.  */
5283 #include <features.h>
5284 int
5285 main ()
5286 {
5287
5288 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5289 #error Not a GNU C library system
5290 #endif
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 rm -f conftest.$ac_objext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297   (eval $ac_compile) 2>conftest.er1
5298   ac_status=$?
5299   grep -v '^ *+' conftest.er1 >conftest.err
5300   rm -f conftest.er1
5301   cat conftest.err >&5
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); } &&
5304          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
5310          { ac_try='test -s conftest.$ac_objext'
5311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312   (eval $ac_try) 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); }; }; then
5316   gcc_cv_glibc=yes
5317 else
5318   echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5320
5321 gcc_cv_glibc=no
5322 fi
5323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5324 fi
5325
5326 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5327 echo "${ECHO_T}$gcc_cv_glibc" >&6
5328 if test $gcc_cv_glibc = yes; then
5329
5330 cat >>confdefs.h <<\_ACEOF
5331 #define _GNU_SOURCE 1
5332 _ACEOF
5333
5334 fi
5335
5336 # Need to reject headers which give warnings, so that the -Werror bootstrap
5337 # works later. *sigh*  This needs to come before all header checks.
5338
5339 ac_c_preproc_warn_flag=yes
5340
5341 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5342 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5343 if test "${ac_cv_header_stdc+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h.  */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h.  */
5352 #include <stdlib.h>
5353 #include <stdarg.h>
5354 #include <string.h>
5355 #include <float.h>
5356
5357 int
5358 main ()
5359 {
5360
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.$ac_objext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367   (eval $ac_compile) 2>conftest.er1
5368   ac_status=$?
5369   grep -v '^ *+' conftest.er1 >conftest.err
5370   rm -f conftest.er1
5371   cat conftest.err >&5
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); } &&
5374          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376   (eval $ac_try) 2>&5
5377   ac_status=$?
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); }; } &&
5380          { ac_try='test -s conftest.$ac_objext'
5381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382   (eval $ac_try) 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); }; }; then
5386   ac_cv_header_stdc=yes
5387 else
5388   echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 ac_cv_header_stdc=no
5392 fi
5393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5394
5395 if test $ac_cv_header_stdc = yes; then
5396   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5397   cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h.  */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h.  */
5403 #include <string.h>
5404
5405 _ACEOF
5406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5407   $EGREP "memchr" >/dev/null 2>&1; then
5408   :
5409 else
5410   ac_cv_header_stdc=no
5411 fi
5412 rm -f conftest*
5413
5414 fi
5415
5416 if test $ac_cv_header_stdc = yes; then
5417   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5418   cat >conftest.$ac_ext <<_ACEOF
5419 /* confdefs.h.  */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h.  */
5424 #include <stdlib.h>
5425
5426 _ACEOF
5427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5428   $EGREP "free" >/dev/null 2>&1; then
5429   :
5430 else
5431   ac_cv_header_stdc=no
5432 fi
5433 rm -f conftest*
5434
5435 fi
5436
5437 if test $ac_cv_header_stdc = yes; then
5438   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5439   if test "$cross_compiling" = yes; then
5440   :
5441 else
5442   cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h.  */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h.  */
5448 #include <ctype.h>
5449 #if ((' ' & 0x0FF) == 0x020)
5450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5452 #else
5453 # define ISLOWER(c) \
5454                    (('a' <= (c) && (c) <= 'i') \
5455                      || ('j' <= (c) && (c) <= 'r') \
5456                      || ('s' <= (c) && (c) <= 'z'))
5457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5458 #endif
5459
5460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5461 int
5462 main ()
5463 {
5464   int i;
5465   for (i = 0; i < 256; i++)
5466     if (XOR (islower (i), ISLOWER (i))
5467         || toupper (i) != TOUPPER (i))
5468       exit(2);
5469   exit (0);
5470 }
5471 _ACEOF
5472 rm -f conftest$ac_exeext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5474   (eval $ac_link) 2>&5
5475   ac_status=$?
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479   (eval $ac_try) 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); }; }; then
5483   :
5484 else
5485   echo "$as_me: program exited with status $ac_status" >&5
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 ( exit $ac_status )
5490 ac_cv_header_stdc=no
5491 fi
5492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5493 fi
5494 fi
5495 fi
5496 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5497 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5498 if test $ac_cv_header_stdc = yes; then
5499
5500 cat >>confdefs.h <<\_ACEOF
5501 #define STDC_HEADERS 1
5502 _ACEOF
5503
5504 fi
5505
5506 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5507 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5508 if test "${ac_cv_header_time+set}" = set; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511   cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h.  */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h.  */
5517 #include <sys/types.h>
5518 #include <sys/time.h>
5519 #include <time.h>
5520
5521 int
5522 main ()
5523 {
5524 if ((struct tm *) 0)
5525 return 0;
5526   ;
5527   return 0;
5528 }
5529 _ACEOF
5530 rm -f conftest.$ac_objext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532   (eval $ac_compile) 2>conftest.er1
5533   ac_status=$?
5534   grep -v '^ *+' conftest.er1 >conftest.err
5535   rm -f conftest.er1
5536   cat conftest.err >&5
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } &&
5539          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541   (eval $ac_try) 2>&5
5542   ac_status=$?
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); }; } &&
5545          { ac_try='test -s conftest.$ac_objext'
5546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547   (eval $ac_try) 2>&5
5548   ac_status=$?
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); }; }; then
5551   ac_cv_header_time=yes
5552 else
5553   echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556 ac_cv_header_time=no
5557 fi
5558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5559 fi
5560 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5561 echo "${ECHO_T}$ac_cv_header_time" >&6
5562 if test $ac_cv_header_time = yes; then
5563
5564 cat >>confdefs.h <<\_ACEOF
5565 #define TIME_WITH_SYS_TIME 1
5566 _ACEOF
5567
5568 fi
5569
5570 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5571 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5572 if test "${ac_cv_header_stdbool_h+set}" = set; then
5573   echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575   cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h.  */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h.  */
5581 #include <stdbool.h>
5582 int
5583 main ()
5584 {
5585 bool foo = false;
5586   ;
5587   return 0;
5588 }
5589 _ACEOF
5590 rm -f conftest.$ac_objext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592   (eval $ac_compile) 2>conftest.er1
5593   ac_status=$?
5594   grep -v '^ *+' conftest.er1 >conftest.err
5595   rm -f conftest.er1
5596   cat conftest.err >&5
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); } &&
5599          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601   (eval $ac_try) 2>&5
5602   ac_status=$?
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); }; } &&
5605          { ac_try='test -s conftest.$ac_objext'
5606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607   (eval $ac_try) 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); }; }; then
5611   ac_cv_header_stdbool_h=yes
5612 else
5613   echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5615
5616 ac_cv_header_stdbool_h=no
5617 fi
5618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5619 fi
5620 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5621 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5622 if test $ac_cv_header_stdbool_h = yes; then
5623
5624 cat >>confdefs.h <<\_ACEOF
5625 #define HAVE_STDBOOL_H 1
5626 _ACEOF
5627
5628 fi
5629
5630 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5631 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5632 if test "${gcc_cv_header_string+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h.  */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h.  */
5641 #include <string.h>
5642 #include <strings.h>
5643 int
5644 main ()
5645 {
5646
5647   ;
5648   return 0;
5649 }
5650 _ACEOF
5651 rm -f conftest.$ac_objext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653   (eval $ac_compile) 2>conftest.er1
5654   ac_status=$?
5655   grep -v '^ *+' conftest.er1 >conftest.err
5656   rm -f conftest.er1
5657   cat conftest.err >&5
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } &&
5660          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662   (eval $ac_try) 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); }; } &&
5666          { ac_try='test -s conftest.$ac_objext'
5667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668   (eval $ac_try) 2>&5
5669   ac_status=$?
5670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671   (exit $ac_status); }; }; then
5672   gcc_cv_header_string=yes
5673 else
5674   echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677 gcc_cv_header_string=no
5678 fi
5679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5680 fi
5681 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5682 echo "${ECHO_T}$gcc_cv_header_string" >&6
5683 if test $gcc_cv_header_string = yes; then
5684
5685 cat >>confdefs.h <<\_ACEOF
5686 #define STRING_WITH_STRINGS 1
5687 _ACEOF
5688
5689 fi
5690
5691 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5692 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5693 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h.  */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h.  */
5702 #include <sys/types.h>
5703 #include <sys/wait.h>
5704 #ifndef WEXITSTATUS
5705 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5706 #endif
5707 #ifndef WIFEXITED
5708 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5709 #endif
5710
5711 int
5712 main ()
5713 {
5714   int s;
5715   wait (&s);
5716   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5717   ;
5718   return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723   (eval $ac_compile) 2>conftest.er1
5724   ac_status=$?
5725   grep -v '^ *+' conftest.er1 >conftest.err
5726   rm -f conftest.er1
5727   cat conftest.err >&5
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); } &&
5730          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732   (eval $ac_try) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; } &&
5736          { ac_try='test -s conftest.$ac_objext'
5737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738   (eval $ac_try) 2>&5
5739   ac_status=$?
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); }; }; then
5742   ac_cv_header_sys_wait_h=yes
5743 else
5744   echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747 ac_cv_header_sys_wait_h=no
5748 fi
5749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5750 fi
5751 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5752 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5753 if test $ac_cv_header_sys_wait_h = yes; then
5754
5755 cat >>confdefs.h <<\_ACEOF
5756 #define HAVE_SYS_WAIT_H 1
5757 _ACEOF
5758
5759 fi
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5783                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5784                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
5785                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5786 do
5787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5788 echo "$as_me:$LINENO: checking for $ac_header" >&5
5789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h.  */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h.  */
5799 #include <$ac_header>
5800 _ACEOF
5801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5802   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5803   ac_status=$?
5804   grep -v '^ *+' conftest.er1 >conftest.err
5805   rm -f conftest.er1
5806   cat conftest.err >&5
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); } >/dev/null; then
5809   if test -s conftest.err; then
5810     ac_cpp_err=$ac_c_preproc_warn_flag
5811     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5812   else
5813     ac_cpp_err=
5814   fi
5815 else
5816   ac_cpp_err=yes
5817 fi
5818 if test -z "$ac_cpp_err"; then
5819   eval "$as_ac_Header=yes"
5820 else
5821   echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824   eval "$as_ac_Header=no"
5825 fi
5826 rm -f conftest.err conftest.$ac_ext
5827 fi
5828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5831   cat >>confdefs.h <<_ACEOF
5832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5833 _ACEOF
5834
5835 fi
5836 done
5837
5838
5839 # Check for thread headers.
5840 echo "$as_me:$LINENO: checking for thread.h" >&5
5841 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5842 if test "${ac_cv_header_thread_h+set}" = set; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h.  */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h.  */
5851 #include <thread.h>
5852 _ACEOF
5853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5855   ac_status=$?
5856   grep -v '^ *+' conftest.er1 >conftest.err
5857   rm -f conftest.er1
5858   cat conftest.err >&5
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); } >/dev/null; then
5861   if test -s conftest.err; then
5862     ac_cpp_err=$ac_c_preproc_warn_flag
5863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5864   else
5865     ac_cpp_err=
5866   fi
5867 else
5868   ac_cpp_err=yes
5869 fi
5870 if test -z "$ac_cpp_err"; then
5871   ac_cv_header_thread_h=yes
5872 else
5873   echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5875
5876   ac_cv_header_thread_h=no
5877 fi
5878 rm -f conftest.err conftest.$ac_ext
5879 fi
5880 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5881 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5882 if test $ac_cv_header_thread_h = yes; then
5883   have_thread_h=yes
5884 else
5885   have_thread_h=
5886 fi
5887
5888 echo "$as_me:$LINENO: checking for pthread.h" >&5
5889 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5890 if test "${ac_cv_header_pthread_h+set}" = set; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893   cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h.  */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h.  */
5899 #include <pthread.h>
5900 _ACEOF
5901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5902   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } >/dev/null; then
5909   if test -s conftest.err; then
5910     ac_cpp_err=$ac_c_preproc_warn_flag
5911     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5912   else
5913     ac_cpp_err=
5914   fi
5915 else
5916   ac_cpp_err=yes
5917 fi
5918 if test -z "$ac_cpp_err"; then
5919   ac_cv_header_pthread_h=yes
5920 else
5921   echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5923
5924   ac_cv_header_pthread_h=no
5925 fi
5926 rm -f conftest.err conftest.$ac_ext
5927 fi
5928 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5929 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5930 if test $ac_cv_header_pthread_h = yes; then
5931   have_pthread_h=yes
5932 else
5933   have_pthread_h=
5934 fi
5935
5936
5937 # These tests can't be done till we know if we have limits.h.
5938 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5939 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5940 if test "${gcc_cv_decl_char_bit+set}" = set; then
5941   echo $ECHO_N "(cached) $ECHO_C" >&6
5942 else
5943   cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h.  */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h.  */
5949 #ifdef HAVE_LIMITS_H
5950 #include <limits.h>
5951 #endif
5952 #ifdef CHAR_BIT
5953 found
5954 #endif
5955 _ACEOF
5956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5957   $EGREP "found" >/dev/null 2>&1; then
5958   gcc_cv_decl_char_bit=yes
5959 else
5960   gcc_cv_decl_char_bit=no
5961 fi
5962 rm -f conftest*
5963
5964
5965 fi
5966 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5967 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
5968 if test $gcc_cv_decl_char_bit = no; then
5969   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5970 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
5971 if test "${gcc_cv_c_nbby+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974   i=8
5975  gcc_cv_c_nbby=
5976  while test $i -lt 65; do
5977    cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h.  */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h.  */
5983
5984 int
5985 main ()
5986 {
5987 switch(0) {
5988   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5989   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5990   ; }
5991   ;
5992   return 0;
5993 }
5994 _ACEOF
5995 rm -f conftest.$ac_objext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997   (eval $ac_compile) 2>conftest.er1
5998   ac_status=$?
5999   grep -v '^ *+' conftest.er1 >conftest.err
6000   rm -f conftest.er1
6001   cat conftest.err >&5
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); } &&
6004          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006   (eval $ac_try) 2>&5
6007   ac_status=$?
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); }; } &&
6010          { ac_try='test -s conftest.$ac_objext'
6011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012   (eval $ac_try) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); }; }; then
6016   gcc_cv_c_nbby=$i; break
6017 else
6018   echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6020
6021 fi
6022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6023    i=`expr $i + 1`
6024  done
6025  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6026
6027 fi
6028 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6029 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6030 if test $gcc_cv_c_nbby = failed; then
6031   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6032 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6033    { (exit 1); exit 1; }; }
6034 else
6035
6036 cat >>confdefs.h <<_ACEOF
6037 #define CHAR_BIT $gcc_cv_c_nbby
6038 _ACEOF
6039
6040 fi
6041 fi
6042 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6043 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6044 if test "${ac_cv_c_bigendian+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   ac_cv_c_bigendian=unknown
6048 # See if sys/param.h defines the BYTE_ORDER macro.
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h.  */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h.  */
6055 #include <sys/types.h>
6056 #include <sys/param.h>
6057 int
6058 main ()
6059 {
6060
6061 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6062  bogus endian macros
6063 #endif
6064   ;
6065   return 0;
6066 }
6067 _ACEOF
6068 rm -f conftest.$ac_objext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070   (eval $ac_compile) 2>conftest.er1
6071   ac_status=$?
6072   grep -v '^ *+' conftest.er1 >conftest.err
6073   rm -f conftest.er1
6074   cat conftest.err >&5
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); } &&
6077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079   (eval $ac_try) 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); }; } &&
6083          { ac_try='test -s conftest.$ac_objext'
6084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085   (eval $ac_try) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }; }; then
6089   # It does; now see whether it defined to BIG_ENDIAN or not.
6090 cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h.  */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h.  */
6096 #include <sys/types.h>
6097 #include <sys/param.h>
6098 int
6099 main ()
6100 {
6101
6102 #if BYTE_ORDER != BIG_ENDIAN
6103  not big endian
6104 #endif
6105   ;
6106   return 0;
6107 }
6108 _ACEOF
6109 rm -f conftest.$ac_objext
6110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6111   (eval $ac_compile) 2>conftest.er1
6112   ac_status=$?
6113   grep -v '^ *+' conftest.er1 >conftest.err
6114   rm -f conftest.er1
6115   cat conftest.err >&5
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); } &&
6118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120   (eval $ac_try) 2>&5
6121   ac_status=$?
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); }; } &&
6124          { ac_try='test -s conftest.$ac_objext'
6125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126   (eval $ac_try) 2>&5
6127   ac_status=$?
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); }; }; then
6130   ac_cv_c_bigendian=yes
6131 else
6132   echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6134
6135 ac_cv_c_bigendian=no
6136 fi
6137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6138 else
6139   echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142 fi
6143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6144 if test $ac_cv_c_bigendian = unknown; then
6145 if test "$cross_compiling" = yes; then
6146    echo $ac_n "cross-compiling... " 2>&6
6147 else
6148   cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h.  */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h.  */
6154 main () {
6155   /* Are we little or big endian?  From Harbison&Steele.  */
6156   union
6157   {
6158     long l;
6159     char c[sizeof (long)];
6160   } u;
6161   u.l = 1;
6162   exit (u.c[sizeof (long) - 1] == 1);
6163 }
6164 _ACEOF
6165 rm -f conftest$ac_exeext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6167   (eval $ac_link) 2>&5
6168   ac_status=$?
6169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172   (eval $ac_try) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }; }; then
6176   ac_cv_c_bigendian=no
6177 else
6178   echo "$as_me: program exited with status $ac_status" >&5
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6181
6182 ( exit $ac_status )
6183 ac_cv_c_bigendian=yes
6184 fi
6185 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6186 fi
6187 fi
6188 fi
6189 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6190 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6191 if test $ac_cv_c_bigendian = unknown; then
6192 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6193 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6194
6195 cat >conftest.c <<EOF
6196 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6197 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6198 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6199 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6200 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6201 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6202 int main() { _ascii (); _ebcdic (); return 0; }
6203 EOF
6204  if test -f conftest.c ; then
6205      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6206         if test `grep -l BIGenDianSyS conftest.o` ; then
6207            echo $ac_n ' big endian probe OK, ' 1>&6
6208            ac_cv_c_bigendian=yes
6209         fi
6210         if test `grep -l LiTTleEnDian conftest.o` ; then
6211            echo $ac_n ' little endian probe OK, ' 1>&6
6212            if test $ac_cv_c_bigendian = yes ; then
6213             ac_cv_c_bigendian=unknown;
6214            else
6215             ac_cv_c_bigendian=no
6216            fi
6217         fi
6218         echo $ac_n 'guessing bigendian ...  ' >&6
6219      fi
6220   fi
6221 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6222 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6223 fi
6224 if test $ac_cv_c_bigendian = yes; then
6225
6226 cat >>confdefs.h <<\_ACEOF
6227 #define WORDS_BIGENDIAN 1
6228 _ACEOF
6229
6230
6231 cat >>confdefs.h <<\_ACEOF
6232 #define HOST_WORDS_BIG_ENDIAN 1
6233 _ACEOF
6234
6235   BYTEORDER=4321
6236 else
6237   BYTEORDER=1234
6238 fi
6239
6240 cat >>confdefs.h <<_ACEOF
6241 #define BYTEORDER $BYTEORDER
6242 _ACEOF
6243
6244 if test $ac_cv_c_bigendian = unknown; then
6245   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6246 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6247    { (exit 1); exit 1; }; }
6248 fi
6249
6250
6251 # --------
6252 # UNSORTED
6253 # --------
6254
6255 # Stage specific cflags for build.
6256 stage1_cflags=
6257 case $build in
6258 vax-*-*)
6259   if test x$GCC = xyes
6260   then
6261     stage1_cflags="-Wa,-J"
6262   else
6263     stage1_cflags="-J"
6264   fi
6265   ;;
6266 powerpc-*-darwin*)
6267   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6268   # sources; use -no-cpp-precomp to get to GNU cpp.
6269   # Apple's GCC has bugs in designated initializer handling, so disable
6270   # that too.
6271   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6272   ;;
6273 esac
6274
6275
6276 # These libraries may be used by collect2.
6277 # We may need a special search path to get them linked.
6278 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6279 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6280 if test "${gcc_cv_collect2_libs+set}" = set; then
6281   echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283   save_LIBS="$LIBS"
6284 for libs in '' -lld -lmld \
6285                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6286                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6287 do
6288         LIBS="$libs"
6289         cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h.  */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h.  */
6295
6296 /* Override any gcc2 internal prototype to avoid an error.  */
6297 #ifdef __cplusplus
6298 extern "C"
6299 #endif
6300 /* We use char because int might match the return type of a gcc2
6301    builtin and then its argument prototype would still apply.  */
6302 char ldopen ();
6303 int
6304 main ()
6305 {
6306 ldopen ();
6307   ;
6308   return 0;
6309 }
6310 _ACEOF
6311 rm -f conftest.$ac_objext conftest$ac_exeext
6312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6313   (eval $ac_link) 2>conftest.er1
6314   ac_status=$?
6315   grep -v '^ *+' conftest.er1 >conftest.err
6316   rm -f conftest.er1
6317   cat conftest.err >&5
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); } &&
6320          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322   (eval $ac_try) 2>&5
6323   ac_status=$?
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); }; } &&
6326          { ac_try='test -s conftest$ac_exeext'
6327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328   (eval $ac_try) 2>&5
6329   ac_status=$?
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); }; }; then
6332   gcc_cv_collect2_libs="$libs"; break
6333 else
6334   echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 fi
6338 rm -f conftest.err conftest.$ac_objext \
6339       conftest$ac_exeext conftest.$ac_ext
6340 done
6341 LIBS="$save_LIBS"
6342 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6343 fi
6344 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6345 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6346 case $gcc_cv_collect2_libs in
6347         "none required")        ;;
6348         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6349 esac
6350
6351
6352 # When building Ada code on Alpha, we need exc_resume which is usually in
6353 # -lexc.  So test for it.
6354 save_LIBS="$LIBS"
6355 LIBS=
6356 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6357 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6358 if test "${ac_cv_search_exc_resume+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361   ac_func_search_save_LIBS=$LIBS
6362 ac_cv_search_exc_resume=no
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h.  */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h.  */
6369
6370 /* Override any gcc2 internal prototype to avoid an error.  */
6371 #ifdef __cplusplus
6372 extern "C"
6373 #endif
6374 /* We use char because int might match the return type of a gcc2
6375    builtin and then its argument prototype would still apply.  */
6376 char exc_resume ();
6377 int
6378 main ()
6379 {
6380 exc_resume ();
6381   ;
6382   return 0;
6383 }
6384 _ACEOF
6385 rm -f conftest.$ac_objext conftest$ac_exeext
6386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6387   (eval $ac_link) 2>conftest.er1
6388   ac_status=$?
6389   grep -v '^ *+' conftest.er1 >conftest.err
6390   rm -f conftest.er1
6391   cat conftest.err >&5
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); } &&
6394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396   (eval $ac_try) 2>&5
6397   ac_status=$?
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); }; } &&
6400          { ac_try='test -s conftest$ac_exeext'
6401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402   (eval $ac_try) 2>&5
6403   ac_status=$?
6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); }; }; then
6406   ac_cv_search_exc_resume="none required"
6407 else
6408   echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6410
6411 fi
6412 rm -f conftest.err conftest.$ac_objext \
6413       conftest$ac_exeext conftest.$ac_ext
6414 if test "$ac_cv_search_exc_resume" = no; then
6415   for ac_lib in exc; do
6416     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6417     cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h.  */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h.  */
6423
6424 /* Override any gcc2 internal prototype to avoid an error.  */
6425 #ifdef __cplusplus
6426 extern "C"
6427 #endif
6428 /* We use char because int might match the return type of a gcc2
6429    builtin and then its argument prototype would still apply.  */
6430 char exc_resume ();
6431 int
6432 main ()
6433 {
6434 exc_resume ();
6435   ;
6436   return 0;
6437 }
6438 _ACEOF
6439 rm -f conftest.$ac_objext conftest$ac_exeext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6441   (eval $ac_link) 2>conftest.er1
6442   ac_status=$?
6443   grep -v '^ *+' conftest.er1 >conftest.err
6444   rm -f conftest.er1
6445   cat conftest.err >&5
6446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447   (exit $ac_status); } &&
6448          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450   (eval $ac_try) 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; } &&
6454          { ac_try='test -s conftest$ac_exeext'
6455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456   (eval $ac_try) 2>&5
6457   ac_status=$?
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); }; }; then
6460   ac_cv_search_exc_resume="-l$ac_lib"
6461 break
6462 else
6463   echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6465
6466 fi
6467 rm -f conftest.err conftest.$ac_objext \
6468       conftest$ac_exeext conftest.$ac_ext
6469   done
6470 fi
6471 LIBS=$ac_func_search_save_LIBS
6472 fi
6473 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6474 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6475 if test "$ac_cv_search_exc_resume" != no; then
6476   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6477
6478 fi
6479
6480 GNAT_LIBEXC="$LIBS"
6481 LIBS="$save_LIBS"
6482
6483
6484 # Some systems put ldexp and frexp in libm instead of libc; assume
6485 # they're both in the same place.  jcf-dump needs them.
6486 save_LIBS="$LIBS"
6487 LIBS=
6488 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6489 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6490 if test "${ac_cv_search_ldexp+set}" = set; then
6491   echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493   ac_func_search_save_LIBS=$LIBS
6494 ac_cv_search_ldexp=no
6495 cat >conftest.$ac_ext <<_ACEOF
6496 /* confdefs.h.  */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h.  */
6501
6502 /* Override any gcc2 internal prototype to avoid an error.  */
6503 #ifdef __cplusplus
6504 extern "C"
6505 #endif
6506 /* We use char because int might match the return type of a gcc2
6507    builtin and then its argument prototype would still apply.  */
6508 char ldexp ();
6509 int
6510 main ()
6511 {
6512 ldexp ();
6513   ;
6514   return 0;
6515 }
6516 _ACEOF
6517 rm -f conftest.$ac_objext conftest$ac_exeext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6519   (eval $ac_link) 2>conftest.er1
6520   ac_status=$?
6521   grep -v '^ *+' conftest.er1 >conftest.err
6522   rm -f conftest.er1
6523   cat conftest.err >&5
6524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525   (exit $ac_status); } &&
6526          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528   (eval $ac_try) 2>&5
6529   ac_status=$?
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); }; } &&
6532          { ac_try='test -s conftest$ac_exeext'
6533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534   (eval $ac_try) 2>&5
6535   ac_status=$?
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); }; }; then
6538   ac_cv_search_ldexp="none required"
6539 else
6540   echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6542
6543 fi
6544 rm -f conftest.err conftest.$ac_objext \
6545       conftest$ac_exeext conftest.$ac_ext
6546 if test "$ac_cv_search_ldexp" = no; then
6547   for ac_lib in m; do
6548     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6549     cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h.  */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h.  */
6555
6556 /* Override any gcc2 internal prototype to avoid an error.  */
6557 #ifdef __cplusplus
6558 extern "C"
6559 #endif
6560 /* We use char because int might match the return type of a gcc2
6561    builtin and then its argument prototype would still apply.  */
6562 char ldexp ();
6563 int
6564 main ()
6565 {
6566 ldexp ();
6567   ;
6568   return 0;
6569 }
6570 _ACEOF
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573   (eval $ac_link) 2>conftest.er1
6574   ac_status=$?
6575   grep -v '^ *+' conftest.er1 >conftest.err
6576   rm -f conftest.er1
6577   cat conftest.err >&5
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); } &&
6580          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582   (eval $ac_try) 2>&5
6583   ac_status=$?
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); }; } &&
6586          { ac_try='test -s conftest$ac_exeext'
6587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588   (eval $ac_try) 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; }; then
6592   ac_cv_search_ldexp="-l$ac_lib"
6593 break
6594 else
6595   echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 fi
6599 rm -f conftest.err conftest.$ac_objext \
6600       conftest$ac_exeext conftest.$ac_ext
6601   done
6602 fi
6603 LIBS=$ac_func_search_save_LIBS
6604 fi
6605 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6606 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6607 if test "$ac_cv_search_ldexp" != no; then
6608   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6609
6610 fi
6611
6612 LDEXP_LIB="$LIBS"
6613 LIBS="$save_LIBS"
6614
6615
6616 # Use <inttypes.h> only if it exists,
6617 # doesn't clash with <sys/types.h>, and declares intmax_t.
6618 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6619 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6620 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h.  */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h.  */
6629 #include <sys/types.h>
6630 #include <inttypes.h>
6631 int
6632 main ()
6633 {
6634 intmax_t i = -1;
6635   ;
6636   return 0;
6637 }
6638 _ACEOF
6639 rm -f conftest.$ac_objext
6640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6641   (eval $ac_compile) 2>conftest.er1
6642   ac_status=$?
6643   grep -v '^ *+' conftest.er1 >conftest.err
6644   rm -f conftest.er1
6645   cat conftest.err >&5
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); } &&
6648          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650   (eval $ac_try) 2>&5
6651   ac_status=$?
6652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653   (exit $ac_status); }; } &&
6654          { ac_try='test -s conftest.$ac_objext'
6655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656   (eval $ac_try) 2>&5
6657   ac_status=$?
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); }; }; then
6660   gcc_cv_header_inttypes_h=yes
6661 else
6662   echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.$ac_ext >&5
6664
6665 gcc_cv_header_inttypes_h=no
6666 fi
6667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6668 fi
6669
6670 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6671 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6672 if test $gcc_cv_header_inttypes_h = yes; then
6673
6674 cat >>confdefs.h <<\_ACEOF
6675 #define HAVE_INTTYPES_H 1
6676 _ACEOF
6677
6678 fi
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6707         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6708         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6709         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6710         setlocale
6711 do
6712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6713 echo "$as_me:$LINENO: checking for $ac_func" >&5
6714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6715 if eval "test \"\${$as_ac_var+set}\" = set"; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h.  */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h.  */
6724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6726 #define $ac_func innocuous_$ac_func
6727
6728 /* System header to define __stub macros and hopefully few prototypes,
6729     which can conflict with char $ac_func (); below.
6730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6731     <limits.h> exists even on freestanding compilers.  */
6732
6733 #ifdef __STDC__
6734 # include <limits.h>
6735 #else
6736 # include <assert.h>
6737 #endif
6738
6739 #undef $ac_func
6740
6741 /* Override any gcc2 internal prototype to avoid an error.  */
6742 #ifdef __cplusplus
6743 extern "C"
6744 {
6745 #endif
6746 /* We use char because int might match the return type of a gcc2
6747    builtin and then its argument prototype would still apply.  */
6748 char $ac_func ();
6749 /* The GNU C library defines this for functions which it implements
6750     to always fail with ENOSYS.  Some functions are actually named
6751     something starting with __ and the normal name is an alias.  */
6752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6753 choke me
6754 #else
6755 char (*f) () = $ac_func;
6756 #endif
6757 #ifdef __cplusplus
6758 }
6759 #endif
6760
6761 int
6762 main ()
6763 {
6764 return f != $ac_func;
6765   ;
6766   return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771   (eval $ac_link) 2>conftest.er1
6772   ac_status=$?
6773   grep -v '^ *+' conftest.er1 >conftest.err
6774   rm -f conftest.er1
6775   cat conftest.err >&5
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } &&
6778          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780   (eval $ac_try) 2>&5
6781   ac_status=$?
6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); }; } &&
6784          { ac_try='test -s conftest$ac_exeext'
6785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786   (eval $ac_try) 2>&5
6787   ac_status=$?
6788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789   (exit $ac_status); }; }; then
6790   eval "$as_ac_var=yes"
6791 else
6792   echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6794
6795 eval "$as_ac_var=no"
6796 fi
6797 rm -f conftest.err conftest.$ac_objext \
6798       conftest$ac_exeext conftest.$ac_ext
6799 fi
6800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6802 if test `eval echo '${'$as_ac_var'}'` = yes; then
6803   cat >>confdefs.h <<_ACEOF
6804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6805 _ACEOF
6806
6807 fi
6808 done
6809
6810
6811 if test x$ac_cv_func_mbstowcs = xyes; then
6812   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6813 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6814 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6815   echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817       if test "$cross_compiling" = yes; then
6818   gcc_cv_func_mbstowcs_works=yes
6819 else
6820   cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h.  */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h.  */
6826 #include <stdlib.h>
6827 int main()
6828 {
6829   mbstowcs(0, "", 0);
6830   return 0;
6831 }
6832 _ACEOF
6833 rm -f conftest$ac_exeext
6834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6835   (eval $ac_link) 2>&5
6836   ac_status=$?
6837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840   (eval $ac_try) 2>&5
6841   ac_status=$?
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); }; }; then
6844   gcc_cv_func_mbstowcs_works=yes
6845 else
6846   echo "$as_me: program exited with status $ac_status" >&5
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6849
6850 ( exit $ac_status )
6851 gcc_cv_func_mbstowcs_works=no
6852 fi
6853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6854 fi
6855 fi
6856 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6857 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6858   if test x$gcc_cv_func_mbstowcs_works = xyes; then
6859
6860 cat >>confdefs.h <<\_ACEOF
6861 #define HAVE_WORKING_MBSTOWCS 1
6862 _ACEOF
6863
6864   fi
6865 fi
6866
6867 echo "$as_me:$LINENO: checking for ssize_t" >&5
6868 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6869 if test "${ac_cv_type_ssize_t+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h.  */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h.  */
6878 $ac_includes_default
6879 int
6880 main ()
6881 {
6882 if ((ssize_t *) 0)
6883   return 0;
6884 if (sizeof (ssize_t))
6885   return 0;
6886   ;
6887   return 0;
6888 }
6889 _ACEOF
6890 rm -f conftest.$ac_objext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892   (eval $ac_compile) 2>conftest.er1
6893   ac_status=$?
6894   grep -v '^ *+' conftest.er1 >conftest.err
6895   rm -f conftest.er1
6896   cat conftest.err >&5
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); } &&
6899          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901   (eval $ac_try) 2>&5
6902   ac_status=$?
6903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904   (exit $ac_status); }; } &&
6905          { ac_try='test -s conftest.$ac_objext'
6906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907   (eval $ac_try) 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); }; }; then
6911   ac_cv_type_ssize_t=yes
6912 else
6913   echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6915
6916 ac_cv_type_ssize_t=no
6917 fi
6918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6919 fi
6920 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6921 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6922 if test $ac_cv_type_ssize_t = yes; then
6923   :
6924 else
6925
6926 cat >>confdefs.h <<_ACEOF
6927 #define ssize_t int
6928 _ACEOF
6929
6930 fi
6931
6932
6933 # Try to determine the array type of the second argument of getgroups
6934 # for the target system (int or gid_t).
6935 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6936 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6937 if test "${ac_cv_type_uid_t+set}" = set; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h.  */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h.  */
6946 #include <sys/types.h>
6947
6948 _ACEOF
6949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6950   $EGREP "uid_t" >/dev/null 2>&1; then
6951   ac_cv_type_uid_t=yes
6952 else
6953   ac_cv_type_uid_t=no
6954 fi
6955 rm -f conftest*
6956
6957 fi
6958 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6959 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6960 if test $ac_cv_type_uid_t = no; then
6961
6962 cat >>confdefs.h <<\_ACEOF
6963 #define uid_t int
6964 _ACEOF
6965
6966
6967 cat >>confdefs.h <<\_ACEOF
6968 #define gid_t int
6969 _ACEOF
6970
6971 fi
6972
6973 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6974 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6975 if test "${ac_cv_type_getgroups+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   if test "$cross_compiling" = yes; then
6979   ac_cv_type_getgroups=cross
6980 else
6981   cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h.  */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h.  */
6987 /* Thanks to Mike Rendell for this test.  */
6988 #include <sys/types.h>
6989 #define NGID 256
6990 #undef MAX
6991 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6992
6993 int
6994 main ()
6995 {
6996   gid_t gidset[NGID];
6997   int i, n;
6998   union { gid_t gval; long lval; }  val;
6999
7000   val.lval = -1;
7001   for (i = 0; i < NGID; i++)
7002     gidset[i] = val.gval;
7003   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7004                  gidset);
7005   /* Exit non-zero if getgroups seems to require an array of ints.  This
7006      happens when gid_t is short but getgroups modifies an array of ints.  */
7007   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7008 }
7009 _ACEOF
7010 rm -f conftest$ac_exeext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012   (eval $ac_link) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017   (eval $ac_try) 2>&5
7018   ac_status=$?
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); }; }; then
7021   ac_cv_type_getgroups=gid_t
7022 else
7023   echo "$as_me: program exited with status $ac_status" >&5
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7026
7027 ( exit $ac_status )
7028 ac_cv_type_getgroups=int
7029 fi
7030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7031 fi
7032 if test $ac_cv_type_getgroups = cross; then
7033         cat >conftest.$ac_ext <<_ACEOF
7034 /* confdefs.h.  */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h.  */
7039 #include <unistd.h>
7040
7041 _ACEOF
7042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7043   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7044   ac_cv_type_getgroups=gid_t
7045 else
7046   ac_cv_type_getgroups=int
7047 fi
7048 rm -f conftest*
7049
7050 fi
7051 fi
7052 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7053 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7054
7055 cat >>confdefs.h <<_ACEOF
7056 #define GETGROUPS_T $ac_cv_type_getgroups
7057 _ACEOF
7058
7059
7060 if test "${target}" = "${build}"; then
7061   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7062 else
7063   case "${target}" in
7064         # This condition may need some tweaking.  It should include all
7065         # targets where the array type of the second argument of getgroups
7066         # is int and the type of gid_t is not equivalent to int.
7067         *-*-sunos* | *-*-ultrix*)
7068                 TARGET_GETGROUPS_T=int
7069                 ;;
7070         *)
7071                 TARGET_GETGROUPS_T=gid_t
7072                 ;;
7073   esac
7074 fi
7075
7076
7077 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7078 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7079 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   if test "$cross_compiling" = yes; then
7083   gcc_cv_func_printf_ptr=no
7084 else
7085   cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h.  */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h.  */
7091 #include <stdio.h>
7092
7093 int main()
7094 {
7095   char buf[64];
7096   char *p = buf, *q = NULL;
7097   sprintf(buf, "%p", p);
7098   sscanf(buf, "%p", &q);
7099   return (p != q);
7100 }
7101 _ACEOF
7102 rm -f conftest$ac_exeext
7103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7104   (eval $ac_link) 2>&5
7105   ac_status=$?
7106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109   (eval $ac_try) 2>&5
7110   ac_status=$?
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); }; }; then
7113   gcc_cv_func_printf_ptr=yes
7114 else
7115   echo "$as_me: program exited with status $ac_status" >&5
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 ( exit $ac_status )
7120 gcc_cv_func_printf_ptr=no
7121 fi
7122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7123 fi
7124 rm -f core core.* *.core
7125 fi
7126 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7127 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7128 if test $gcc_cv_func_printf_ptr = yes ; then
7129
7130 cat >>confdefs.h <<\_ACEOF
7131 #define HAVE_PRINTF_PTR 1
7132 _ACEOF
7133
7134 fi
7135
7136 if test $ac_cv_header_sys_mman_h != yes \
7137  || test $ac_cv_func_mmap != yes; then
7138    gcc_cv_func_mmap_file=no
7139    gcc_cv_func_mmap_dev_zero=no
7140    gcc_cv_func_mmap_anon=no
7141 else
7142    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7143 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7144 if test "${gcc_cv_func_mmap_file+set}" = set; then
7145   echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147   # Add a system to this blacklist if
7148    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7149    # memory area containing the same data that you'd get if you applied
7150    # read() to the same fd.  The only system known to have a problem here
7151    # is VMS, where text files have record structure.
7152    case "$host_os" in
7153      vms* | ultrix*)
7154         gcc_cv_func_mmap_file=no ;;
7155      *)
7156         gcc_cv_func_mmap_file=yes;;
7157    esac
7158 fi
7159 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7160 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7161    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7162 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7163 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   # Add a system to this blacklist if it has mmap() but /dev/zero
7167    # does not exist, or if mmapping /dev/zero does not give anonymous
7168    # zeroed pages with both the following properties:
7169    # 1. If you map N consecutive pages in with one call, and then
7170    #    unmap any subset of those pages, the pages that were not
7171    #    explicitly unmapped remain accessible.
7172    # 2. If you map two adjacent blocks of memory and then unmap them
7173    #    both at once, they must both go away.
7174    # Systems known to be in this category are Windows (all variants),
7175    # VMS, and Darwin.
7176    case "$host_os" in
7177      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7178         gcc_cv_func_mmap_dev_zero=no ;;
7179      *)
7180         gcc_cv_func_mmap_dev_zero=yes;;
7181    esac
7182 fi
7183 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7184 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7185
7186    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7187    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7188 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7189 if test "${gcc_cv_decl_map_anon+set}" = set; then
7190   echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192   cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h.  */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h.  */
7198 #include <sys/types.h>
7199 #include <sys/mman.h>
7200 #include <unistd.h>
7201
7202 #ifndef MAP_ANONYMOUS
7203 #define MAP_ANONYMOUS MAP_ANON
7204 #endif
7205
7206 int
7207 main ()
7208 {
7209 int n = MAP_ANONYMOUS;
7210   ;
7211   return 0;
7212 }
7213 _ACEOF
7214 rm -f conftest.$ac_objext
7215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7216   (eval $ac_compile) 2>conftest.er1
7217   ac_status=$?
7218   grep -v '^ *+' conftest.er1 >conftest.err
7219   rm -f conftest.er1
7220   cat conftest.err >&5
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); } &&
7223          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225   (eval $ac_try) 2>&5
7226   ac_status=$?
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); }; } &&
7229          { ac_try='test -s conftest.$ac_objext'
7230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231   (eval $ac_try) 2>&5
7232   ac_status=$?
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); }; }; then
7235   gcc_cv_decl_map_anon=yes
7236 else
7237   echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7239
7240 gcc_cv_decl_map_anon=no
7241 fi
7242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243 fi
7244 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7245 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7246
7247    if test $gcc_cv_decl_map_anon = no; then
7248      gcc_cv_func_mmap_anon=no
7249    else
7250      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7251 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7252 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7253   echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255   # Add a system to this blacklist if it has mmap() and MAP_ANON or
7256    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7257    # doesn't give anonymous zeroed pages with the same properties listed
7258    # above for use of /dev/zero.
7259    # Systems known to be in this category are Windows, VMS, and SCO Unix.
7260    case "$host_os" in
7261      vms* | cygwin* | pe | mingw* | sco* | udk* )
7262         gcc_cv_func_mmap_anon=no ;;
7263      *)
7264         gcc_cv_func_mmap_anon=yes;;
7265    esac
7266 fi
7267 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7268 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7269    fi
7270 fi
7271
7272 if test $gcc_cv_func_mmap_file = yes; then
7273
7274 cat >>confdefs.h <<\_ACEOF
7275 #define HAVE_MMAP_FILE 1
7276 _ACEOF
7277
7278 fi
7279 if test $gcc_cv_func_mmap_dev_zero = yes; then
7280
7281 cat >>confdefs.h <<\_ACEOF
7282 #define HAVE_MMAP_DEV_ZERO 1
7283 _ACEOF
7284
7285 fi
7286 if test $gcc_cv_func_mmap_anon = yes; then
7287
7288 cat >>confdefs.h <<\_ACEOF
7289 #define HAVE_MMAP_ANON 1
7290 _ACEOF
7291
7292 fi
7293
7294
7295 case "${host}" in
7296 *-*-*vms*)
7297   # Under VMS, vfork works very differently than on Unix. The standard test
7298   # won't work, and it isn't easily adaptable. It makes more sense to
7299   # just force it.
7300   ac_cv_func_vfork_works=yes
7301   ;;
7302 esac
7303 echo "$as_me:$LINENO: checking for pid_t" >&5
7304 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7305 if test "${ac_cv_type_pid_t+set}" = set; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h.  */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h.  */
7314 $ac_includes_default
7315 int
7316 main ()
7317 {
7318 if ((pid_t *) 0)
7319   return 0;
7320 if (sizeof (pid_t))
7321   return 0;
7322   ;
7323   return 0;
7324 }
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328   (eval $ac_compile) 2>conftest.er1
7329   ac_status=$?
7330   grep -v '^ *+' conftest.er1 >conftest.err
7331   rm -f conftest.er1
7332   cat conftest.err >&5
7333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334   (exit $ac_status); } &&
7335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337   (eval $ac_try) 2>&5
7338   ac_status=$?
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); }; } &&
7341          { ac_try='test -s conftest.$ac_objext'
7342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343   (eval $ac_try) 2>&5
7344   ac_status=$?
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); }; }; then
7347   ac_cv_type_pid_t=yes
7348 else
7349   echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7351
7352 ac_cv_type_pid_t=no
7353 fi
7354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7355 fi
7356 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7357 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7358 if test $ac_cv_type_pid_t = yes; then
7359   :
7360 else
7361
7362 cat >>confdefs.h <<_ACEOF
7363 #define pid_t int
7364 _ACEOF
7365
7366 fi
7367
7368
7369
7370 for ac_header in unistd.h vfork.h
7371 do
7372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7373 echo "$as_me:$LINENO: checking for $ac_header" >&5
7374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376   echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378   cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h.  */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h.  */
7384 #include <$ac_header>
7385 _ACEOF
7386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7387   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7388   ac_status=$?
7389   grep -v '^ *+' conftest.er1 >conftest.err
7390   rm -f conftest.er1
7391   cat conftest.err >&5
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); } >/dev/null; then
7394   if test -s conftest.err; then
7395     ac_cpp_err=$ac_c_preproc_warn_flag
7396     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7397   else
7398     ac_cpp_err=
7399   fi
7400 else
7401   ac_cpp_err=yes
7402 fi
7403 if test -z "$ac_cpp_err"; then
7404   eval "$as_ac_Header=yes"
7405 else
7406   echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7408
7409   eval "$as_ac_Header=no"
7410 fi
7411 rm -f conftest.err conftest.$ac_ext
7412 fi
7413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7416   cat >>confdefs.h <<_ACEOF
7417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7418 _ACEOF
7419
7420 fi
7421 done
7422
7423
7424
7425 for ac_func in fork vfork
7426 do
7427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7428 echo "$as_me:$LINENO: checking for $ac_func" >&5
7429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7430 if eval "test \"\${$as_ac_var+set}\" = set"; then
7431   echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433   cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h.  */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h.  */
7439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7441 #define $ac_func innocuous_$ac_func
7442
7443 /* System header to define __stub macros and hopefully few prototypes,
7444     which can conflict with char $ac_func (); below.
7445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7446     <limits.h> exists even on freestanding compilers.  */
7447
7448 #ifdef __STDC__
7449 # include <limits.h>
7450 #else
7451 # include <assert.h>
7452 #endif
7453
7454 #undef $ac_func
7455
7456 /* Override any gcc2 internal prototype to avoid an error.  */
7457 #ifdef __cplusplus
7458 extern "C"
7459 {
7460 #endif
7461 /* We use char because int might match the return type of a gcc2
7462    builtin and then its argument prototype would still apply.  */
7463 char $ac_func ();
7464 /* The GNU C library defines this for functions which it implements
7465     to always fail with ENOSYS.  Some functions are actually named
7466     something starting with __ and the normal name is an alias.  */
7467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7468 choke me
7469 #else
7470 char (*f) () = $ac_func;
7471 #endif
7472 #ifdef __cplusplus
7473 }
7474 #endif
7475
7476 int
7477 main ()
7478 {
7479 return f != $ac_func;
7480   ;
7481   return 0;
7482 }
7483 _ACEOF
7484 rm -f conftest.$ac_objext conftest$ac_exeext
7485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7486   (eval $ac_link) 2>conftest.er1
7487   ac_status=$?
7488   grep -v '^ *+' conftest.er1 >conftest.err
7489   rm -f conftest.er1
7490   cat conftest.err >&5
7491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492   (exit $ac_status); } &&
7493          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495   (eval $ac_try) 2>&5
7496   ac_status=$?
7497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498   (exit $ac_status); }; } &&
7499          { ac_try='test -s conftest$ac_exeext'
7500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501   (eval $ac_try) 2>&5
7502   ac_status=$?
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); }; }; then
7505   eval "$as_ac_var=yes"
7506 else
7507   echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7509
7510 eval "$as_ac_var=no"
7511 fi
7512 rm -f conftest.err conftest.$ac_objext \
7513       conftest$ac_exeext conftest.$ac_ext
7514 fi
7515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7517 if test `eval echo '${'$as_ac_var'}'` = yes; then
7518   cat >>confdefs.h <<_ACEOF
7519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7520 _ACEOF
7521
7522 fi
7523 done
7524
7525 if test "x$ac_cv_func_fork" = xyes; then
7526   echo "$as_me:$LINENO: checking for working fork" >&5
7527 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7528 if test "${ac_cv_func_fork_works+set}" = set; then
7529   echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531   if test "$cross_compiling" = yes; then
7532   ac_cv_func_fork_works=cross
7533 else
7534   cat >conftest.$ac_ext <<_ACEOF
7535 /* By Ruediger Kuhlmann. */
7536       #include <sys/types.h>
7537       #if HAVE_UNISTD_H
7538       # include <unistd.h>
7539       #endif
7540       /* Some systems only have a dummy stub for fork() */
7541       int main ()
7542       {
7543         if (fork() < 0)
7544           exit (1);
7545         exit (0);
7546       }
7547 _ACEOF
7548 rm -f conftest$ac_exeext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7550   (eval $ac_link) 2>&5
7551   ac_status=$?
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555   (eval $ac_try) 2>&5
7556   ac_status=$?
7557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558   (exit $ac_status); }; }; then
7559   ac_cv_func_fork_works=yes
7560 else
7561   echo "$as_me: program exited with status $ac_status" >&5
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7564
7565 ( exit $ac_status )
7566 ac_cv_func_fork_works=no
7567 fi
7568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7569 fi
7570 fi
7571 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7572 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7573
7574 else
7575   ac_cv_func_fork_works=$ac_cv_func_fork
7576 fi
7577 if test "x$ac_cv_func_fork_works" = xcross; then
7578   case $host in
7579     *-*-amigaos* | *-*-msdosdjgpp*)
7580       # Override, as these systems have only a dummy fork() stub
7581       ac_cv_func_fork_works=no
7582       ;;
7583     *)
7584       ac_cv_func_fork_works=yes
7585       ;;
7586   esac
7587   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7588 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7589 fi
7590 ac_cv_func_vfork_works=$ac_cv_func_vfork
7591 if test "x$ac_cv_func_vfork" = xyes; then
7592   echo "$as_me:$LINENO: checking for working vfork" >&5
7593 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7594 if test "${ac_cv_func_vfork_works+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597   if test "$cross_compiling" = yes; then
7598   ac_cv_func_vfork_works=cross
7599 else
7600   cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h.  */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h.  */
7606 /* Thanks to Paul Eggert for this test.  */
7607 #include <stdio.h>
7608 #include <stdlib.h>
7609 #include <sys/types.h>
7610 #include <sys/stat.h>
7611 #include <sys/wait.h>
7612 #if HAVE_UNISTD_H
7613 # include <unistd.h>
7614 #endif
7615 #if HAVE_VFORK_H
7616 # include <vfork.h>
7617 #endif
7618 /* On some sparc systems, changes by the child to local and incoming
7619    argument registers are propagated back to the parent.  The compiler
7620    is told about this with #include <vfork.h>, but some compilers
7621    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7622    static variable whose address is put into a register that is
7623    clobbered by the vfork.  */
7624 static void
7625 #ifdef __cplusplus
7626 sparc_address_test (int arg)
7627 # else
7628 sparc_address_test (arg) int arg;
7629 #endif
7630 {
7631   static pid_t child;
7632   if (!child) {
7633     child = vfork ();
7634     if (child < 0) {
7635       perror ("vfork");
7636       _exit(2);
7637     }
7638     if (!child) {
7639       arg = getpid();
7640       write(-1, "", 0);
7641       _exit (arg);
7642     }
7643   }
7644 }
7645
7646 int
7647 main ()
7648 {
7649   pid_t parent = getpid ();
7650   pid_t child;
7651
7652   sparc_address_test (0);
7653
7654   child = vfork ();
7655
7656   if (child == 0) {
7657     /* Here is another test for sparc vfork register problems.  This
7658        test uses lots of local variables, at least as many local
7659        variables as main has allocated so far including compiler
7660        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7661        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7662        reuse the register of parent for one of the local variables,
7663        since it will think that parent can't possibly be used any more
7664        in this routine.  Assigning to the local variable will thus
7665        munge parent in the parent process.  */
7666     pid_t
7667       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7668       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7669     /* Convince the compiler that p..p7 are live; otherwise, it might
7670        use the same hardware register for all 8 local variables.  */
7671     if (p != p1 || p != p2 || p != p3 || p != p4
7672         || p != p5 || p != p6 || p != p7)
7673       _exit(1);
7674
7675     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7676        from child file descriptors.  If the child closes a descriptor
7677        before it execs or exits, this munges the parent's descriptor
7678        as well.  Test for this by closing stdout in the child.  */
7679     _exit(close(fileno(stdout)) != 0);
7680   } else {
7681     int status;
7682     struct stat st;
7683
7684     while (wait(&status) != child)
7685       ;
7686     exit(
7687          /* Was there some problem with vforking?  */
7688          child < 0
7689
7690          /* Did the child fail?  (This shouldn't happen.)  */
7691          || status
7692
7693          /* Did the vfork/compiler bug occur?  */
7694          || parent != getpid()
7695
7696          /* Did the file descriptor bug occur?  */
7697          || fstat(fileno(stdout), &st) != 0
7698          );
7699   }
7700 }
7701 _ACEOF
7702 rm -f conftest$ac_exeext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7704   (eval $ac_link) 2>&5
7705   ac_status=$?
7706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709   (eval $ac_try) 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); }; }; then
7713   ac_cv_func_vfork_works=yes
7714 else
7715   echo "$as_me: program exited with status $ac_status" >&5
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7718
7719 ( exit $ac_status )
7720 ac_cv_func_vfork_works=no
7721 fi
7722 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7723 fi
7724 fi
7725 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7726 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7727
7728 fi;
7729 if test "x$ac_cv_func_fork_works" = xcross; then
7730   ac_cv_func_vfork_works=$ac_cv_func_vfork
7731   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7732 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7733 fi
7734
7735 if test "x$ac_cv_func_vfork_works" = xyes; then
7736
7737 cat >>confdefs.h <<\_ACEOF
7738 #define HAVE_WORKING_VFORK 1
7739 _ACEOF
7740
7741 else
7742
7743 cat >>confdefs.h <<\_ACEOF
7744 #define vfork fork
7745 _ACEOF
7746
7747 fi
7748 if test "x$ac_cv_func_fork_works" = xyes; then
7749
7750 cat >>confdefs.h <<\_ACEOF
7751 #define HAVE_WORKING_FORK 1
7752 _ACEOF
7753
7754 fi
7755
7756
7757
7758
7759   am_cv_lib_iconv_ldpath=
7760
7761 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7762 if test "${with_libiconv_prefix+set}" = set; then
7763   withval="$with_libiconv_prefix"
7764
7765     for dir in `echo "$withval" | tr : ' '`; do
7766       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7767       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7768     done
7769
7770 fi;
7771
7772
7773 for ac_header in iconv.h
7774 do
7775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7776 echo "$as_me:$LINENO: checking for $ac_header" >&5
7777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7779   echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781   cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h.  */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h.  */
7787 #include <$ac_header>
7788 _ACEOF
7789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7791   ac_status=$?
7792   grep -v '^ *+' conftest.er1 >conftest.err
7793   rm -f conftest.er1
7794   cat conftest.err >&5
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); } >/dev/null; then
7797   if test -s conftest.err; then
7798     ac_cpp_err=$ac_c_preproc_warn_flag
7799     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7800   else
7801     ac_cpp_err=
7802   fi
7803 else
7804   ac_cpp_err=yes
7805 fi
7806 if test -z "$ac_cpp_err"; then
7807   eval "$as_ac_Header=yes"
7808 else
7809   echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7811
7812   eval "$as_ac_Header=no"
7813 fi
7814 rm -f conftest.err conftest.$ac_ext
7815 fi
7816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7819   cat >>confdefs.h <<_ACEOF
7820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7821 _ACEOF
7822
7823 fi
7824 done
7825
7826
7827   echo "$as_me:$LINENO: checking for iconv" >&5
7828 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7829 if test "${am_cv_func_iconv+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832
7833     am_cv_func_iconv="no, consider installing GNU libiconv"
7834     am_cv_lib_iconv=no
7835     cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h.  */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h.  */
7841 #include <stdlib.h>
7842 #include <iconv.h>
7843 int
7844 main ()
7845 {
7846 iconv_t cd = iconv_open("","");
7847        iconv(cd,NULL,NULL,NULL,NULL);
7848        iconv_close(cd);
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7855   (eval $ac_link) 2>conftest.er1
7856   ac_status=$?
7857   grep -v '^ *+' conftest.er1 >conftest.err
7858   rm -f conftest.er1
7859   cat conftest.err >&5
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); } &&
7862          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864   (eval $ac_try) 2>&5
7865   ac_status=$?
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); }; } &&
7868          { ac_try='test -s conftest$ac_exeext'
7869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870   (eval $ac_try) 2>&5
7871   ac_status=$?
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); }; }; then
7874   am_cv_func_iconv=yes
7875 else
7876   echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879 fi
7880 rm -f conftest.err conftest.$ac_objext \
7881       conftest$ac_exeext conftest.$ac_ext
7882     if test "$am_cv_func_iconv" != yes; then
7883       am_save_LIBS="$LIBS"
7884       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7885       cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h.  */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h.  */
7891 #include <stdlib.h>
7892 #include <iconv.h>
7893 int
7894 main ()
7895 {
7896 iconv_t cd = iconv_open("","");
7897          iconv(cd,NULL,NULL,NULL,NULL);
7898          iconv_close(cd);
7899   ;
7900   return 0;
7901 }
7902 _ACEOF
7903 rm -f conftest.$ac_objext conftest$ac_exeext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7905   (eval $ac_link) 2>conftest.er1
7906   ac_status=$?
7907   grep -v '^ *+' conftest.er1 >conftest.err
7908   rm -f conftest.er1
7909   cat conftest.err >&5
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); } &&
7912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914   (eval $ac_try) 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; } &&
7918          { ac_try='test -s conftest$ac_exeext'
7919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920   (eval $ac_try) 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); }; }; then
7924   am_cv_lib_iconv=yes
7925         am_cv_func_iconv=yes
7926 else
7927   echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7929
7930 fi
7931 rm -f conftest.err conftest.$ac_objext \
7932       conftest$ac_exeext conftest.$ac_ext
7933       LIBS="$am_save_LIBS"
7934     fi
7935
7936 fi
7937 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7938 echo "${ECHO_T}$am_cv_func_iconv" >&6
7939   if test "$am_cv_func_iconv" = yes; then
7940
7941 cat >>confdefs.h <<\_ACEOF
7942 #define HAVE_ICONV 1
7943 _ACEOF
7944
7945     echo "$as_me:$LINENO: checking for iconv declaration" >&5
7946 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7947     if test "${am_cv_proto_iconv+set}" = set; then
7948   echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950
7951       cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h.  */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h.  */
7957
7958 #include <stdlib.h>
7959 #include <iconv.h>
7960 extern
7961 #ifdef __cplusplus
7962 "C"
7963 #endif
7964 #if defined(__STDC__) || defined(__cplusplus)
7965 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7966 #else
7967 size_t iconv();
7968 #endif
7969
7970 int
7971 main ()
7972 {
7973
7974   ;
7975   return 0;
7976 }
7977 _ACEOF
7978 rm -f conftest.$ac_objext
7979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7980   (eval $ac_compile) 2>conftest.er1
7981   ac_status=$?
7982   grep -v '^ *+' conftest.er1 >conftest.err
7983   rm -f conftest.er1
7984   cat conftest.err >&5
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); } &&
7987          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989   (eval $ac_try) 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; } &&
7993          { ac_try='test -s conftest.$ac_objext'
7994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995   (eval $ac_try) 2>&5
7996   ac_status=$?
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); }; }; then
7999   am_cv_proto_iconv_arg1=""
8000 else
8001   echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8003
8004 am_cv_proto_iconv_arg1="const"
8005 fi
8006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8007       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);"
8008 fi
8009
8010     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8011     echo "$as_me:$LINENO: result: ${ac_t:-
8012          }$am_cv_proto_iconv" >&5
8013 echo "${ECHO_T}${ac_t:-
8014          }$am_cv_proto_iconv" >&6
8015
8016 cat >>confdefs.h <<_ACEOF
8017 #define ICONV_CONST $am_cv_proto_iconv_arg1
8018 _ACEOF
8019
8020   fi
8021   LIBICONV=
8022   if test "$am_cv_lib_iconv" = yes; then
8023     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8024   fi
8025
8026
8027 # Until we have in-tree GNU iconv:
8028 LIBICONV_DEP=
8029
8030
8031
8032   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8033 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8034 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8035   echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037   cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043 #include <locale.h>
8044 int
8045 main ()
8046 {
8047 return LC_MESSAGES
8048   ;
8049   return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8054   (eval $ac_link) 2>conftest.er1
8055   ac_status=$?
8056   grep -v '^ *+' conftest.er1 >conftest.err
8057   rm -f conftest.er1
8058   cat conftest.err >&5
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } &&
8061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063   (eval $ac_try) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }; } &&
8067          { ac_try='test -s conftest$ac_exeext'
8068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069   (eval $ac_try) 2>&5
8070   ac_status=$?
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); }; }; then
8073   am_cv_val_LC_MESSAGES=yes
8074 else
8075   echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8077
8078 am_cv_val_LC_MESSAGES=no
8079 fi
8080 rm -f conftest.err conftest.$ac_objext \
8081       conftest$ac_exeext conftest.$ac_ext
8082 fi
8083 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8084 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8085   if test $am_cv_val_LC_MESSAGES = yes; then
8086
8087 cat >>confdefs.h <<\_ACEOF
8088 #define HAVE_LC_MESSAGES 1
8089 _ACEOF
8090
8091   fi
8092
8093
8094 # We will need to find libiberty.h and ansidecl.h
8095 saved_CFLAGS="$CFLAGS"
8096 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8097 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8098         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8099         fprintf_unlocked strstr errno snprintf vasprintf \
8100         malloc realloc calloc free basename getopt clock
8101 do
8102   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8103 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8104 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8105 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108   cat >conftest.$ac_ext <<_ACEOF
8109 /* confdefs.h.  */
8110 _ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h.  */
8114 #undef $ac_tr_decl
8115 #define $ac_tr_decl 1
8116
8117 #include "ansidecl.h"
8118 #include "system.h"
8119
8120 int
8121 main ()
8122 {
8123 #ifndef $ac_func
8124 char *(*pfn) = (char *(*)) $ac_func ;
8125 #endif
8126   ;
8127   return 0;
8128 }
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132   (eval $ac_compile) 2>conftest.er1
8133   ac_status=$?
8134   grep -v '^ *+' conftest.er1 >conftest.err
8135   rm -f conftest.er1
8136   cat conftest.err >&5
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); } &&
8139          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141   (eval $ac_try) 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }; } &&
8145          { ac_try='test -s conftest.$ac_objext'
8146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147   (eval $ac_try) 2>&5
8148   ac_status=$?
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); }; }; then
8151   eval "gcc_cv_have_decl_$ac_func=yes"
8152 else
8153   echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8155
8156 eval "gcc_cv_have_decl_$ac_func=no"
8157 fi
8158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8159 fi
8160
8161 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8162   echo "$as_me:$LINENO: result: yes" >&5
8163 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8164 #define $ac_tr_decl 1
8165 _ACEOF
8166
8167 else
8168   echo "$as_me:$LINENO: result: no" >&5
8169 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8170 #define $ac_tr_decl 0
8171 _ACEOF
8172
8173 fi
8174
8175 done
8176 if test x = y ; then
8177
8178 cat >>confdefs.h <<\_ACEOF
8179 #define HAVE_DECL_GETENV 1
8180 _ACEOF
8181
8182 cat >>confdefs.h <<\_ACEOF
8183 #define HAVE_DECL_ATOL 1
8184 _ACEOF
8185
8186 cat >>confdefs.h <<\_ACEOF
8187 #define HAVE_DECL_SBRK 1
8188 _ACEOF
8189
8190 cat >>confdefs.h <<\_ACEOF
8191 #define HAVE_DECL_ABORT 1
8192 _ACEOF
8193
8194 cat >>confdefs.h <<\_ACEOF
8195 #define HAVE_DECL_ATOF 1
8196 _ACEOF
8197
8198 cat >>confdefs.h <<\_ACEOF
8199 #define HAVE_DECL_GETCWD 1
8200 _ACEOF
8201
8202 cat >>confdefs.h <<\_ACEOF
8203 #define HAVE_DECL_GETWD 1
8204 _ACEOF
8205  \
8206
8207 cat >>confdefs.h <<\_ACEOF
8208 #define HAVE_DECL_STRSIGNAL 1
8209 _ACEOF
8210
8211 cat >>confdefs.h <<\_ACEOF
8212 #define HAVE_DECL_PUTC_UNLOCKED 1
8213 _ACEOF
8214
8215 cat >>confdefs.h <<\_ACEOF
8216 #define HAVE_DECL_FPUTS_UNLOCKED 1
8217 _ACEOF
8218
8219 cat >>confdefs.h <<\_ACEOF
8220 #define HAVE_DECL_FWRITE_UNLOCKED 1
8221 _ACEOF
8222  \
8223
8224 cat >>confdefs.h <<\_ACEOF
8225 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8226 _ACEOF
8227
8228 cat >>confdefs.h <<\_ACEOF
8229 #define HAVE_DECL_STRSTR 1
8230 _ACEOF
8231
8232 cat >>confdefs.h <<\_ACEOF
8233 #define HAVE_DECL_ERRNO 1
8234 _ACEOF
8235
8236 cat >>confdefs.h <<\_ACEOF
8237 #define HAVE_DECL_SNPRINTF 1
8238 _ACEOF
8239
8240 cat >>confdefs.h <<\_ACEOF
8241 #define HAVE_DECL_VASPRINTF 1
8242 _ACEOF
8243  \
8244
8245 cat >>confdefs.h <<\_ACEOF
8246 #define HAVE_DECL_MALLOC 1
8247 _ACEOF
8248
8249 cat >>confdefs.h <<\_ACEOF
8250 #define HAVE_DECL_REALLOC 1
8251 _ACEOF
8252
8253 cat >>confdefs.h <<\_ACEOF
8254 #define HAVE_DECL_CALLOC 1
8255 _ACEOF
8256
8257 cat >>confdefs.h <<\_ACEOF
8258 #define HAVE_DECL_FREE 1
8259 _ACEOF
8260
8261 cat >>confdefs.h <<\_ACEOF
8262 #define HAVE_DECL_BASENAME 1
8263 _ACEOF
8264
8265 cat >>confdefs.h <<\_ACEOF
8266 #define HAVE_DECL_GETOPT 1
8267 _ACEOF
8268
8269 cat >>confdefs.h <<\_ACEOF
8270 #define HAVE_DECL_CLOCK 1
8271 _ACEOF
8272 fi
8273
8274
8275 for ac_func in getrlimit setrlimit getrusage
8276 do
8277   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8278 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8279 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8280 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8281   echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283   cat >conftest.$ac_ext <<_ACEOF
8284 /* confdefs.h.  */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h.  */
8289 #undef $ac_tr_decl
8290 #define $ac_tr_decl 1
8291
8292 #include "ansidecl.h"
8293 #include "system.h"
8294 #ifdef HAVE_SYS_RESOURCE_H
8295 #include <sys/resource.h>
8296 #endif
8297
8298
8299 int
8300 main ()
8301 {
8302 #ifndef $ac_func
8303 char *(*pfn) = (char *(*)) $ac_func ;
8304 #endif
8305   ;
8306   return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8311   (eval $ac_compile) 2>conftest.er1
8312   ac_status=$?
8313   grep -v '^ *+' conftest.er1 >conftest.err
8314   rm -f conftest.er1
8315   cat conftest.err >&5
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } &&
8318          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320   (eval $ac_try) 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); }; } &&
8324          { ac_try='test -s conftest.$ac_objext'
8325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326   (eval $ac_try) 2>&5
8327   ac_status=$?
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); }; }; then
8330   eval "gcc_cv_have_decl_$ac_func=yes"
8331 else
8332   echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 eval "gcc_cv_have_decl_$ac_func=no"
8336 fi
8337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8338 fi
8339
8340 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8341   echo "$as_me:$LINENO: result: yes" >&5
8342 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8343 #define $ac_tr_decl 1
8344 _ACEOF
8345
8346 else
8347   echo "$as_me:$LINENO: result: no" >&5
8348 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8349 #define $ac_tr_decl 0
8350 _ACEOF
8351
8352 fi
8353
8354 done
8355 if test x = y ; then
8356
8357 cat >>confdefs.h <<\_ACEOF
8358 #define HAVE_DECL_GETRLIMIT 1
8359 _ACEOF
8360
8361 cat >>confdefs.h <<\_ACEOF
8362 #define HAVE_DECL_SETRLIMIT 1
8363 _ACEOF
8364
8365 cat >>confdefs.h <<\_ACEOF
8366 #define HAVE_DECL_GETRUSAGE 1
8367 _ACEOF
8368 fi
8369
8370
8371 cat >conftest.$ac_ext <<_ACEOF
8372 /* confdefs.h.  */
8373 _ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h.  */
8377
8378 #include "ansidecl.h"
8379 #include "system.h"
8380 #ifdef HAVE_SYS_RESOURCE_H
8381 #include <sys/resource.h>
8382 #endif
8383
8384 int
8385 main ()
8386 {
8387 rlim_t l = 0;
8388   ;
8389   return 0;
8390 }
8391 _ACEOF
8392 rm -f conftest.$ac_objext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8394   (eval $ac_compile) 2>conftest.er1
8395   ac_status=$?
8396   grep -v '^ *+' conftest.er1 >conftest.err
8397   rm -f conftest.er1
8398   cat conftest.err >&5
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); } &&
8401          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403   (eval $ac_try) 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); }; } &&
8407          { ac_try='test -s conftest.$ac_objext'
8408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409   (eval $ac_try) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; }; then
8413   :
8414 else
8415   echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8417
8418
8419 cat >>confdefs.h <<\_ACEOF
8420 #define rlim_t long
8421 _ACEOF
8422
8423 fi
8424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8425
8426 for ac_func in ldgetname
8427 do
8428   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8429 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8430 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8431 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8432   echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434   cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h.  */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h.  */
8440 #undef $ac_tr_decl
8441 #define $ac_tr_decl 1
8442
8443 #include "ansidecl.h"
8444 #include "system.h"
8445 #ifdef HAVE_LDFCN_H
8446 #include <ldfcn.h>
8447 #endif
8448
8449
8450 int
8451 main ()
8452 {
8453 #ifndef $ac_func
8454 char *(*pfn) = (char *(*)) $ac_func ;
8455 #endif
8456   ;
8457   return 0;
8458 }
8459 _ACEOF
8460 rm -f conftest.$ac_objext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8462   (eval $ac_compile) 2>conftest.er1
8463   ac_status=$?
8464   grep -v '^ *+' conftest.er1 >conftest.err
8465   rm -f conftest.er1
8466   cat conftest.err >&5
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); } &&
8469          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; } &&
8475          { ac_try='test -s conftest.$ac_objext'
8476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477   (eval $ac_try) 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }; }; then
8481   eval "gcc_cv_have_decl_$ac_func=yes"
8482 else
8483   echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8485
8486 eval "gcc_cv_have_decl_$ac_func=no"
8487 fi
8488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8489 fi
8490
8491 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8492   echo "$as_me:$LINENO: result: yes" >&5
8493 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8494 #define $ac_tr_decl 1
8495 _ACEOF
8496
8497 else
8498   echo "$as_me:$LINENO: result: no" >&5
8499 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8500 #define $ac_tr_decl 0
8501 _ACEOF
8502
8503 fi
8504
8505 done
8506 if test x = y ; then
8507
8508 cat >>confdefs.h <<\_ACEOF
8509 #define HAVE_DECL_LDGETNAME 1
8510 _ACEOF
8511 fi
8512
8513
8514 for ac_func in times
8515 do
8516   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8517 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8518 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8519 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8520   echo $ECHO_N "(cached) $ECHO_C" >&6
8521 else
8522   cat >conftest.$ac_ext <<_ACEOF
8523 /* confdefs.h.  */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h.  */
8528 #undef $ac_tr_decl
8529 #define $ac_tr_decl 1
8530
8531 #include "ansidecl.h"
8532 #include "system.h"
8533 #ifdef HAVE_SYS_TIMES_H
8534 #include <sys/times.h>
8535 #endif
8536
8537
8538 int
8539 main ()
8540 {
8541 #ifndef $ac_func
8542 char *(*pfn) = (char *(*)) $ac_func ;
8543 #endif
8544   ;
8545   return 0;
8546 }
8547 _ACEOF
8548 rm -f conftest.$ac_objext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8550   (eval $ac_compile) 2>conftest.er1
8551   ac_status=$?
8552   grep -v '^ *+' conftest.er1 >conftest.err
8553   rm -f conftest.er1
8554   cat conftest.err >&5
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); } &&
8557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559   (eval $ac_try) 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); }; } &&
8563          { ac_try='test -s conftest.$ac_objext'
8564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565   (eval $ac_try) 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; }; then
8569   eval "gcc_cv_have_decl_$ac_func=yes"
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8573
8574 eval "gcc_cv_have_decl_$ac_func=no"
8575 fi
8576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8577 fi
8578
8579 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8580   echo "$as_me:$LINENO: result: yes" >&5
8581 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8582 #define $ac_tr_decl 1
8583 _ACEOF
8584
8585 else
8586   echo "$as_me:$LINENO: result: no" >&5
8587 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8588 #define $ac_tr_decl 0
8589 _ACEOF
8590
8591 fi
8592
8593 done
8594 if test x = y ; then
8595
8596 cat >>confdefs.h <<\_ACEOF
8597 #define HAVE_DECL_TIMES 1
8598 _ACEOF
8599 fi
8600
8601
8602 # More time-related stuff.
8603 echo "$as_me:$LINENO: checking for struct tms" >&5
8604 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8605 if test "${ac_cv_struct_tms+set}" = set; then
8606   echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h.  */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h.  */
8615
8616 #include "ansidecl.h"
8617 #include "system.h"
8618 #ifdef HAVE_SYS_TIMES_H
8619 #include <sys/times.h>
8620 #endif
8621
8622 int
8623 main ()
8624 {
8625 struct tms tms;
8626   ;
8627   return 0;
8628 }
8629 _ACEOF
8630 rm -f conftest.$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632   (eval $ac_compile) 2>conftest.er1
8633   ac_status=$?
8634   grep -v '^ *+' conftest.er1 >conftest.err
8635   rm -f conftest.er1
8636   cat conftest.err >&5
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } &&
8639          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641   (eval $ac_try) 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); }; } &&
8645          { ac_try='test -s conftest.$ac_objext'
8646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647   (eval $ac_try) 2>&5
8648   ac_status=$?
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); }; }; then
8651   ac_cv_struct_tms=yes
8652 else
8653   echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8655
8656 ac_cv_struct_tms=no
8657 fi
8658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8659 fi
8660 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8661 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8662 if test $ac_cv_struct_tms = yes; then
8663
8664 cat >>confdefs.h <<\_ACEOF
8665 #define HAVE_STRUCT_TMS 1
8666 _ACEOF
8667
8668 fi
8669
8670 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8671 # revisit after autoconf 2.50.
8672 echo "$as_me:$LINENO: checking for clock_t" >&5
8673 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8674 if test "${gcc_cv_type_clock_t+set}" = set; then
8675   echo $ECHO_N "(cached) $ECHO_C" >&6
8676 else
8677
8678 cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684
8685 #include "ansidecl.h"
8686 #include "system.h"
8687
8688 int
8689 main ()
8690 {
8691 clock_t x;
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8698   (eval $ac_compile) 2>conftest.er1
8699   ac_status=$?
8700   grep -v '^ *+' conftest.er1 >conftest.err
8701   rm -f conftest.er1
8702   cat conftest.err >&5
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } &&
8705          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; } &&
8711          { ac_try='test -s conftest.$ac_objext'
8712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; }; then
8717   gcc_cv_type_clock_t=yes
8718 else
8719   echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722 gcc_cv_type_clock_t=no
8723 fi
8724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8725 fi
8726 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8727 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8728 if test $gcc_cv_type_clock_t = yes; then
8729
8730 cat >>confdefs.h <<\_ACEOF
8731 #define HAVE_CLOCK_T 1
8732 _ACEOF
8733
8734 fi
8735
8736 echo "$as_me:$LINENO: checking for uchar" >&5
8737 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8738 if test "${gcc_cv_type_uchar+set}" = set; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741   cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h.  */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h.  */
8747
8748 #include "ansidecl.h"
8749 #include "system.h"
8750
8751 int
8752 main ()
8753 {
8754 if ((uchar *)0) return 0;
8755  if (sizeof(uchar)) return 0;
8756   ;
8757   return 0;
8758 }
8759 _ACEOF
8760 rm -f conftest.$ac_objext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8762   (eval $ac_compile) 2>conftest.er1
8763   ac_status=$?
8764   grep -v '^ *+' conftest.er1 >conftest.err
8765   rm -f conftest.er1
8766   cat conftest.err >&5
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); } &&
8769          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771   (eval $ac_try) 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); }; } &&
8775          { ac_try='test -s conftest.$ac_objext'
8776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777   (eval $ac_try) 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); }; }; then
8781   ac_cv_type_uchar=yes
8782 else
8783   echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8785
8786 ac_cv_type_uchar=no
8787 fi
8788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8789 fi
8790 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8791 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8792 if test $ac_cv_type_uchar = yes; then
8793
8794 cat >>confdefs.h <<\_ACEOF
8795 #define HAVE_UCHAR 1
8796 _ACEOF
8797
8798 fi
8799
8800 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8801 CFLAGS="$saved_CFLAGS"
8802
8803 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8804 if test "${enable_initfini_array+set}" = set; then
8805   enableval="$enable_initfini_array"
8806
8807 else
8808
8809 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8810 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8811 if test "${gcc_cv_initfini_array+set}" = set; then
8812   echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814     if test "$cross_compiling" = yes; then
8815   gcc_cv_initfini_array=no
8816 else
8817   cat >conftest.$ac_ext <<_ACEOF
8818 /* confdefs.h.  */
8819 _ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h.  */
8823
8824 static int x = -1;
8825 int main (void) { return x; }
8826 int foo (void) { x = 0; }
8827 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8828 _ACEOF
8829 rm -f conftest$ac_exeext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8831   (eval $ac_link) 2>&5
8832   ac_status=$?
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836   (eval $ac_try) 2>&5
8837   ac_status=$?
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); }; }; then
8840   gcc_cv_initfini_array=yes
8841 else
8842   echo "$as_me: program exited with status $ac_status" >&5
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846 ( exit $ac_status )
8847 gcc_cv_initfini_array=no
8848 fi
8849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8850 fi
8851 fi
8852 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8853 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8854   enable_initfini_array=$gcc_cv_initfini_array
8855
8856 fi;
8857 if test $enable_initfini_array = yes; then
8858
8859 cat >>confdefs.h <<\_ACEOF
8860 #define HAVE_INITFINI_ARRAY 1
8861 _ACEOF
8862
8863 fi
8864
8865 # mkdir takes a single argument on some systems.
8866 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8867 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8868 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8869   echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871   cat >conftest.$ac_ext <<_ACEOF
8872 /* confdefs.h.  */
8873 _ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h.  */
8877
8878 #include <sys/types.h>
8879 #ifdef HAVE_SYS_STAT_H
8880 # include <sys/stat.h>
8881 #endif
8882 #ifdef HAVE_UNISTD_H
8883 # include <unistd.h>
8884 #endif
8885 #ifdef HAVE_DIRECT_H
8886 # include <direct.h>
8887 #endif
8888 int
8889 main ()
8890 {
8891 mkdir ("foo", 0);
8892   ;
8893   return 0;
8894 }
8895 _ACEOF
8896 rm -f conftest.$ac_objext
8897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8898   (eval $ac_compile) 2>conftest.er1
8899   ac_status=$?
8900   grep -v '^ *+' conftest.er1 >conftest.err
8901   rm -f conftest.er1
8902   cat conftest.err >&5
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); } &&
8905          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907   (eval $ac_try) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }; } &&
8911          { ac_try='test -s conftest.$ac_objext'
8912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913   (eval $ac_try) 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); }; }; then
8917   gcc_cv_mkdir_takes_one_arg=no
8918 else
8919   echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8921
8922 gcc_cv_mkdir_takes_one_arg=yes
8923 fi
8924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8925 fi
8926 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8927 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8928 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8929
8930 cat >>confdefs.h <<\_ACEOF
8931 #define MKDIR_TAKES_ONE_ARG 1
8932 _ACEOF
8933
8934 fi
8935
8936
8937 # File extensions
8938 manext='.1'
8939 objext='.o'
8940
8941
8942
8943 # With Setjmp/Longjmp based exception handling.
8944 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8945 if test "${enable_sjlj_exceptions+set}" = set; then
8946   enableval="$enable_sjlj_exceptions"
8947   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8948
8949 cat >>confdefs.h <<_ACEOF
8950 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8951 _ACEOF
8952
8953 fi;
8954
8955 if test x$host = x$target; then
8956    echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8957 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8958 if test "${ac_cv_lib_unwind_main+set}" = set; then
8959   echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961   ac_check_lib_save_LIBS=$LIBS
8962 LIBS="-lunwind  $LIBS"
8963 cat >conftest.$ac_ext <<_ACEOF
8964 /* confdefs.h.  */
8965 _ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h.  */
8969
8970
8971 int
8972 main ()
8973 {
8974 main ();
8975   ;
8976   return 0;
8977 }
8978 _ACEOF
8979 rm -f conftest.$ac_objext conftest$ac_exeext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8981   (eval $ac_link) 2>conftest.er1
8982   ac_status=$?
8983   grep -v '^ *+' conftest.er1 >conftest.err
8984   rm -f conftest.er1
8985   cat conftest.err >&5
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); } &&
8988          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
8994          { ac_try='test -s conftest$ac_exeext'
8995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996   (eval $ac_try) 2>&5
8997   ac_status=$?
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); }; }; then
9000   ac_cv_lib_unwind_main=yes
9001 else
9002   echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9004
9005 ac_cv_lib_unwind_main=no
9006 fi
9007 rm -f conftest.err conftest.$ac_objext \
9008       conftest$ac_exeext conftest.$ac_ext
9009 LIBS=$ac_check_lib_save_LIBS
9010 fi
9011 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9012 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9013 if test $ac_cv_lib_unwind_main = yes; then
9014   use_libunwind_default=yes
9015 else
9016   use_libunwind_default=no
9017 fi
9018
9019 else
9020    use_libunwind_default=no
9021 fi
9022 # Use libunwind based exception handling.
9023 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9024 if test "${enable_libunwind_exceptions+set}" = set; then
9025   enableval="$enable_libunwind_exceptions"
9026   use_libunwind_exceptions=$enableval
9027 else
9028   use_libunwind_exceptions=$use_libunwind_default
9029 fi;
9030 if test x"$use_libunwind_exceptions" = xyes; then
9031
9032 cat >>confdefs.h <<\_ACEOF
9033 #define USE_LIBUNWIND_EXCEPTIONS 1
9034 _ACEOF
9035
9036 fi
9037
9038 # --------------------------------------------------------
9039 # Build, host, and target specific configuration fragments
9040 # --------------------------------------------------------
9041
9042 # Collect build-machine-specific information.
9043 . ${srcdir}/config.build
9044
9045 # Collect host-machine-specific information.
9046 . ${srcdir}/config.host
9047
9048 target_gtfiles=
9049
9050 # Collect target-machine-specific information.
9051 . ${srcdir}/config.gcc
9052
9053 extra_objs="${host_extra_objs} ${extra_objs}"
9054 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9055
9056 # Default the target-machine variables that were not explicitly set.
9057 if test x"$tm_file" = x
9058 then tm_file=$cpu_type/$cpu_type.h; fi
9059
9060 if test x"$extra_headers" = x
9061 then extra_headers=; fi
9062
9063 if test x$md_file = x
9064 then md_file=$cpu_type/$cpu_type.md; fi
9065
9066 if test x$out_file = x
9067 then out_file=$cpu_type/$cpu_type.c; fi
9068
9069 if test x"$tmake_file" = x
9070 then tmake_file=$cpu_type/t-$cpu_type
9071 fi
9072
9073 if test x"$dwarf2" = xyes
9074 then tm_file="$tm_file tm-dwarf2.h"
9075 fi
9076
9077 # Say what files are being used for the output code and MD file.
9078 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9079 echo "Using \`$srcdir/config/$md_file' as machine description file."
9080
9081 # If any of the xm_file variables contain nonexistent files, warn
9082 # about them and drop them.
9083
9084 bx=
9085 for x in $build_xm_file; do
9086   if    test -f $srcdir/config/$x
9087   then      bx="$bx $x"
9088   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9089 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9090   fi
9091 done
9092 build_xm_file="$bx"
9093
9094 hx=
9095 for x in $host_xm_file; do
9096   if    test -f $srcdir/config/$x
9097   then      hx="$hx $x"
9098   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9099 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9100   fi
9101 done
9102 host_xm_file="$hx"
9103
9104 tx=
9105 for x in $xm_file; do
9106   if    test -f $srcdir/config/$x
9107   then      tx="$tx $x"
9108   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9109 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9110   fi
9111 done
9112 xm_file="$tx"
9113
9114 count=a
9115 for f in $tm_file; do
9116         count=${count}x
9117 done
9118 if test $count = ax; then
9119         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9120 else
9121         echo "Using the following target machine macro files:"
9122         for f in $tm_file; do
9123                 echo "  $srcdir/config/$f"
9124         done
9125 fi
9126
9127 if test x$need_64bit_hwint = xyes; then
9128
9129 cat >>confdefs.h <<\_ACEOF
9130 #define NEED_64BIT_HOST_WIDE_INT 1
9131 _ACEOF
9132
9133 fi
9134
9135 count=a
9136 for f in $host_xm_file; do
9137         count=${count}x
9138 done
9139 if test $count = a; then
9140         :
9141 elif test $count = ax; then
9142         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9143 else
9144         echo "Using the following host machine macro files:"
9145         for f in $host_xm_file; do
9146                 echo "  $srcdir/config/$f"
9147         done
9148 fi
9149 echo "Using ${out_host_hook_obj} for host machine hooks."
9150
9151 if test "$host_xm_file" != "$build_xm_file"; then
9152         count=a
9153         for f in $build_xm_file; do
9154                 count=${count}x
9155         done
9156         if test $count = a; then
9157                 :
9158         elif test $count = ax; then
9159                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9160         else
9161                 echo "Using the following build machine macro files:"
9162                 for f in $build_xm_file; do
9163                         echo "  $srcdir/config/$f"
9164                 done
9165         fi
9166 fi
9167
9168 # ---------
9169 # Threading
9170 # ---------
9171
9172 # Check if a valid thread package
9173 case ${enable_threads_flag} in
9174   "" | no)
9175     # No threads
9176     target_thread_file='single'
9177     ;;
9178   yes)
9179     # default
9180     target_thread_file='single'
9181     ;;
9182   aix | dce | gnat | irix | posix | rtems | \
9183   single | solaris | vxworks | win32 )
9184     target_thread_file=${enable_threads_flag}
9185     ;;
9186   *)
9187     echo "${enable_threads_flag} is an unknown thread package" 1>&2
9188     exit 1
9189     ;;
9190 esac
9191
9192 if test x${thread_file} = x; then
9193   # No thread file set by target-specific clauses in config.gcc,
9194   # so use file chosen by default logic above
9195   thread_file=${target_thread_file}
9196 fi
9197
9198 # Make gthr-default.h if we have a thread file.
9199 gthread_flags=
9200 if test $thread_file != single; then
9201   rm -f gthr-default.h
9202   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9203   gthread_flags=-DHAVE_GTHR_DEFAULT
9204 fi
9205
9206
9207 # --------
9208 # UNSORTED
9209 # --------
9210
9211 if test x$enable___cxa_atexit = xyes || \
9212    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9213    echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9214 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9215 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h.  */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h.  */
9224 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9226 #define __cxa_atexit innocuous___cxa_atexit
9227
9228 /* System header to define __stub macros and hopefully few prototypes,
9229     which can conflict with char __cxa_atexit (); below.
9230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9231     <limits.h> exists even on freestanding compilers.  */
9232
9233 #ifdef __STDC__
9234 # include <limits.h>
9235 #else
9236 # include <assert.h>
9237 #endif
9238
9239 #undef __cxa_atexit
9240
9241 /* Override any gcc2 internal prototype to avoid an error.  */
9242 #ifdef __cplusplus
9243 extern "C"
9244 {
9245 #endif
9246 /* We use char because int might match the return type of a gcc2
9247    builtin and then its argument prototype would still apply.  */
9248 char __cxa_atexit ();
9249 /* The GNU C library defines this for functions which it implements
9250     to always fail with ENOSYS.  Some functions are actually named
9251     something starting with __ and the normal name is an alias.  */
9252 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9253 choke me
9254 #else
9255 char (*f) () = __cxa_atexit;
9256 #endif
9257 #ifdef __cplusplus
9258 }
9259 #endif
9260
9261 int
9262 main ()
9263 {
9264 return f != __cxa_atexit;
9265   ;
9266   return 0;
9267 }
9268 _ACEOF
9269 rm -f conftest.$ac_objext conftest$ac_exeext
9270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9271   (eval $ac_link) 2>conftest.er1
9272   ac_status=$?
9273   grep -v '^ *+' conftest.er1 >conftest.err
9274   rm -f conftest.er1
9275   cat conftest.err >&5
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); } &&
9278          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280   (eval $ac_try) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; } &&
9284          { ac_try='test -s conftest$ac_exeext'
9285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286   (eval $ac_try) 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); }; }; then
9290   ac_cv_func___cxa_atexit=yes
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295 ac_cv_func___cxa_atexit=no
9296 fi
9297 rm -f conftest.err conftest.$ac_objext \
9298       conftest$ac_exeext conftest.$ac_ext
9299 fi
9300 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9301 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9302 if test $ac_cv_func___cxa_atexit = yes; then
9303
9304 cat >>confdefs.h <<\_ACEOF
9305 #define DEFAULT_USE_CXA_ATEXIT 1
9306 _ACEOF
9307
9308 else
9309   echo "__cxa_atexit can't be enabled on this target"
9310 fi
9311
9312 fi
9313
9314 # Look for a file containing extra machine modes.
9315 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9316   extra_modes_file='$(srcdir)'/config/${extra_modes}
9317
9318
9319 cat >>confdefs.h <<_ACEOF
9320 #define EXTRA_MODES_FILE "config/$extra_modes"
9321 _ACEOF
9322
9323 fi
9324
9325 # auto-host.h is the file containing items generated by autoconf and is
9326 # the first file included by config.h.
9327 # If host=build, it is correct to have bconfig include auto-host.h
9328 # as well.  If host!=build, we are in error and need to do more
9329 # work to find out the build config parameters.
9330 if test x$host = x$build
9331 then
9332         build_auto=auto-host.h
9333         FORBUILD=..
9334 else
9335         # We create a subdir, then run autoconf in the subdir.
9336         # To prevent recursion we set host and build for the new
9337         # invocation of configure to the build for this invocation
9338         # of configure.
9339         tempdir=build.$$
9340         rm -rf $tempdir
9341         mkdir $tempdir
9342         cd $tempdir
9343         case ${srcdir} in
9344         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9345         *) realsrcdir=../${srcdir};;
9346         esac
9347         saved_CFLAGS="${CFLAGS}"
9348         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9349         ${realsrcdir}/configure \
9350                 --enable-languages=${enable_languages-all} \
9351                 --target=$target_alias --host=$build_alias --build=$build_alias
9352         CFLAGS="${saved_CFLAGS}"
9353
9354         # We just finished tests for the build machine, so rename
9355         # the file auto-build.h in the gcc directory.
9356         mv auto-host.h ../auto-build.h
9357         cd ..
9358         rm -rf $tempdir
9359         build_auto=auto-build.h
9360         FORBUILD=../${build_subdir}
9361 fi
9362
9363
9364 tm_file="${tm_file} defaults.h"
9365 tm_p_file="${tm_p_file} tm-preds.h"
9366 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9367 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9368 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9369 # put this back in temporarily.
9370 xm_file="ansidecl.h ${xm_file}"
9371
9372 # --------
9373 # UNSORTED
9374 # --------
9375
9376 # Get the version trigger filename from the toplevel
9377 if test "${with_gcc_version_trigger+set}" = set; then
9378         gcc_version_trigger=$with_gcc_version_trigger
9379 else
9380         gcc_version_trigger=${srcdir}/version.c
9381 fi
9382 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9383 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9384
9385 # Compile in configure arguments.
9386 if test -f configargs.h ; then
9387         # Being re-configured.
9388         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9389         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9390 else
9391         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9392 fi
9393
9394 # Double all backslashes and backslash all quotes to turn
9395 # gcc_config_arguments into a C string.
9396 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9397 $gcc_config_arguments
9398 EOF
9399 gcc_config_arguments_str=`cat conftest.out`
9400 rm -f conftest.out
9401
9402 cat > configargs.h <<EOF
9403 /* Generated automatically. */
9404 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9405 static const char thread_model[] = "$thread_file";
9406
9407 static const struct {
9408   const char *name, *value;
9409 } configure_default_options[] = $configure_default_options;
9410 EOF
9411
9412 # Internationalization
9413 PACKAGE=gcc
9414 VERSION="$gcc_version"
9415
9416
9417
9418 # If we haven't got the data from the intl directory,
9419 # assume NLS is disabled.
9420 USE_NLS=no
9421 LIBINTL=
9422 LIBINTL_DEP=
9423 INCINTL=
9424 XGETTEXT=
9425 GMSGFMT=
9426 POSUB=
9427 if test -f ../intl/config.intl; then
9428   . ../intl/config.intl
9429 fi
9430 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9431 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9432 if test x"$USE_NLS" != xyes; then
9433   echo "$as_me:$LINENO: result: no" >&5
9434 echo "${ECHO_T}no" >&6
9435 else
9436   echo "$as_me:$LINENO: result: yes" >&5
9437 echo "${ECHO_T}yes" >&6
9438
9439 cat >>confdefs.h <<\_ACEOF
9440 #define ENABLE_NLS 1
9441 _ACEOF
9442
9443
9444   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9445 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9446   # Look for .po and .gmo files in the source directory.
9447   CATALOGS=
9448   XLINGUAS=
9449   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9450     # If there aren't any .gmo files the shell will give us the
9451     # literal string "../path/to/srcdir/po/*.gmo" which has to be
9452     # weeded out.
9453     case "$cat" in *\**)
9454       continue;;
9455     esac
9456     # The quadruple backslash is collapsed to a double backslash
9457     # by the backticks, then collapsed again by the double quotes,
9458     # leaving us with one backslash in the sed expression (right
9459     # before the dot that mustn't act as a wildcard).
9460     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9461     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9462     # The user is allowed to set LINGUAS to a list of languages to
9463     # install catalogs for.  If it's empty that means "all of them."
9464     if test "x$LINGUAS" = x; then
9465       CATALOGS="$CATALOGS $cat"
9466       XLINGUAS="$XLINGUAS $lang"
9467     else
9468       case "$LINGUAS" in *$lang*)
9469         CATALOGS="$CATALOGS $cat"
9470         XLINGUAS="$XLINGUAS $lang"
9471         ;;
9472       esac
9473     fi
9474   done
9475   LINGUAS="$XLINGUAS"
9476   echo "$as_me:$LINENO: result: $LINGUAS" >&5
9477 echo "${ECHO_T}$LINGUAS" >&6
9478 fi
9479
9480 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9481 # -liconv on the link line twice.
9482 case "$LIBINTL" in *$LIBICONV*)
9483         LIBICONV= ;;
9484 esac
9485
9486 # Windows32 Registry support for specifying GCC installation paths.
9487 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9488 if test "${enable_win32_registry+set}" = set; then
9489   enableval="$enable_win32_registry"
9490
9491 fi;
9492 case $host_os in
9493         win32 | pe | cygwin* | mingw32* | uwin*)
9494 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9495 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9496 if test "x$enable_win32_registry" != xno; then
9497
9498 cat >>confdefs.h <<\_ACEOF
9499 #define ENABLE_WIN32_REGISTRY 1
9500 _ACEOF
9501
9502   echo "$as_me:$LINENO: result: yes" >&5
9503 echo "${ECHO_T}yes" >&6
9504   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9505 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9506 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9507   echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509   ac_func_search_save_LIBS=$LIBS
9510 ac_cv_search_RegOpenKeyExA=no
9511 cat >conftest.$ac_ext <<_ACEOF
9512 /* confdefs.h.  */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h.  */
9517
9518 /* Override any gcc2 internal prototype to avoid an error.  */
9519 #ifdef __cplusplus
9520 extern "C"
9521 #endif
9522 /* We use char because int might match the return type of a gcc2
9523    builtin and then its argument prototype would still apply.  */
9524 char RegOpenKeyExA ();
9525 int
9526 main ()
9527 {
9528 RegOpenKeyExA ();
9529   ;
9530   return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535   (eval $ac_link) 2>conftest.er1
9536   ac_status=$?
9537   grep -v '^ *+' conftest.er1 >conftest.err
9538   rm -f conftest.er1
9539   cat conftest.err >&5
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); } &&
9542          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544   (eval $ac_try) 2>&5
9545   ac_status=$?
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); }; } &&
9548          { ac_try='test -s conftest$ac_exeext'
9549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550   (eval $ac_try) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); }; }; then
9554   ac_cv_search_RegOpenKeyExA="none required"
9555 else
9556   echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559 fi
9560 rm -f conftest.err conftest.$ac_objext \
9561       conftest$ac_exeext conftest.$ac_ext
9562 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9563   for ac_lib in advapi32; do
9564     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9565     cat >conftest.$ac_ext <<_ACEOF
9566 /* confdefs.h.  */
9567 _ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h.  */
9571
9572 /* Override any gcc2 internal prototype to avoid an error.  */
9573 #ifdef __cplusplus
9574 extern "C"
9575 #endif
9576 /* We use char because int might match the return type of a gcc2
9577    builtin and then its argument prototype would still apply.  */
9578 char RegOpenKeyExA ();
9579 int
9580 main ()
9581 {
9582 RegOpenKeyExA ();
9583   ;
9584   return 0;
9585 }
9586 _ACEOF
9587 rm -f conftest.$ac_objext conftest$ac_exeext
9588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9589   (eval $ac_link) 2>conftest.er1
9590   ac_status=$?
9591   grep -v '^ *+' conftest.er1 >conftest.err
9592   rm -f conftest.er1
9593   cat conftest.err >&5
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); } &&
9596          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598   (eval $ac_try) 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); }; } &&
9602          { ac_try='test -s conftest$ac_exeext'
9603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604   (eval $ac_try) 2>&5
9605   ac_status=$?
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); }; }; then
9608   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9609 break
9610 else
9611   echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9613
9614 fi
9615 rm -f conftest.err conftest.$ac_objext \
9616       conftest$ac_exeext conftest.$ac_ext
9617   done
9618 fi
9619 LIBS=$ac_func_search_save_LIBS
9620 fi
9621 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9622 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9623 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9624   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9625
9626 fi
9627
9628 else
9629   echo "$as_me:$LINENO: result: no" >&5
9630 echo "${ECHO_T}no" >&6
9631 fi
9632
9633 # Check if user specified a different registry key.
9634 case "x${enable_win32_registry}" in
9635 x | xyes)
9636   # default.
9637   gcc_cv_win32_registry_key="$VERSION"
9638   ;;
9639 xno)
9640   # no registry lookup.
9641   gcc_cv_win32_registry_key=''
9642   ;;
9643 *)
9644   # user-specified key.
9645   gcc_cv_win32_registry_key="$enable_win32_registry"
9646   ;;
9647 esac
9648
9649 if test "x$enable_win32_registry" != xno; then
9650   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9651 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9652
9653 cat >>confdefs.h <<_ACEOF
9654 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9655 _ACEOF
9656
9657   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9658 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9659 fi
9660 ;;
9661 esac
9662
9663 # Get an absolute path to the GCC top-level source directory
9664 holddir=`${PWDCMD-pwd}`
9665 cd $srcdir
9666 topdir=`${PWDCMD-pwd}`
9667 cd $holddir
9668
9669 # Conditionalize the makefile for this host machine.
9670 xmake_file=
9671 for f in ${host_xmake_file}
9672 do
9673         if test -f ${srcdir}/config/$f
9674         then
9675                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9676         fi
9677 done
9678
9679 # Conditionalize the makefile for this target machine.
9680 tmake_file_=
9681 for f in ${tmake_file}
9682 do
9683         if test -f ${srcdir}/config/$f
9684         then
9685                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9686         fi
9687 done
9688 tmake_file="${tmake_file_}"
9689
9690 symbolic_link='ln -s'
9691
9692 # If the host doesn't support symlinks, modify CC in
9693 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9694 # Otherwise, we can use "CC=$(CC)".
9695 rm -f symtest.tem
9696 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9697 then
9698         cc_set_by_configure="\$(CC)"
9699         quoted_cc_set_by_configure="\$(CC)"
9700         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9701         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9702 else
9703         rm -f symtest.tem
9704         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9705         then
9706                 symbolic_link="cp -p"
9707         else
9708                 symbolic_link="cp"
9709         fi
9710         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9711         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9712         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9713         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9714 fi
9715 rm -f symtest.tem
9716
9717 out_object_file=`basename $out_file .c`.o
9718
9719 tm_file_list=
9720 tm_include_list=
9721 for f in $tm_file; do
9722   case $f in
9723     defaults.h )
9724        tm_file_list="${tm_file_list} \$(srcdir)/$f"
9725        tm_include_list="${tm_include_list} $f"
9726        ;;
9727     * )
9728        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9729        tm_include_list="${tm_include_list} config/$f"
9730        ;;
9731   esac
9732 done
9733
9734 tm_p_file_list=
9735 tm_p_include_list=
9736 for f in $tm_p_file; do
9737   case $f in
9738     tm-preds.h )
9739        tm_p_file_list="${tm_p_file_list} $f"
9740        tm_p_include_list="${tm_p_include_list} $f"
9741        ;;
9742     * )
9743        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9744        tm_p_include_list="${tm_p_include_list} config/$f"
9745   esac
9746 done
9747
9748 xm_file_list=
9749 xm_include_list=
9750 for f in $xm_file; do
9751   case $f in
9752     ansidecl.h )
9753        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9754        xm_include_list="${xm_include_list} $f"
9755        ;;
9756     auto-host.h )
9757        xm_file_list="${xm_file_list} $f"
9758        xm_include_list="${xm_include_list} $f"
9759        ;;
9760     * )
9761        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9762        xm_include_list="${xm_include_list} config/$f"
9763        ;;
9764   esac
9765 done
9766
9767 host_xm_file_list=
9768 host_xm_include_list=
9769 for f in $host_xm_file; do
9770   case $f in
9771     ansidecl.h )
9772        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9773        host_xm_include_list="${host_xm_include_list} $f"
9774        ;;
9775     auto-host.h )
9776        host_xm_file_list="${host_xm_file_list} $f"
9777        host_xm_include_list="${host_xm_include_list} $f"
9778        ;;
9779     * )
9780        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9781        host_xm_include_list="${host_xm_include_list} config/$f"
9782        ;;
9783   esac
9784 done
9785
9786 build_xm_file_list=
9787 for f in $build_xm_file; do
9788   case $f in
9789     ansidecl.h )
9790        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9791        build_xm_include_list="${build_xm_include_list} $f"
9792        ;;
9793     auto-build.h | auto-host.h )
9794        build_xm_file_list="${build_xm_file_list} $f"
9795        build_xm_include_list="${build_xm_include_list} $f"
9796        ;;
9797     * )
9798        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9799        build_xm_include_list="${build_xm_include_list} config/$f"
9800        ;;
9801   esac
9802 done
9803
9804 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9805 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9806 CROSS=
9807 ALL=all.internal
9808 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9809 if test x$host != x$target
9810 then
9811         CROSS="-DCROSS_COMPILE"
9812         ALL=all.cross
9813         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9814         case "$host","$target" in
9815         # Darwin crosses can use the host system's libraries and headers,
9816         # because of the fat library support.  Of course, it must be the
9817         # same version of Darwin on both sides.  Allow the user to
9818         # just say --target=foo-darwin without a version number to mean
9819         # "the version on this system".
9820             *-*-darwin*,*-*-darwin*)
9821                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9822                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9823                 if test $hostos = $targetos -o $targetos = darwin ; then
9824                     CROSS=
9825                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9826                     with_headers=yes
9827                 fi
9828                 ;;
9829
9830             i?86-*-*,x86_64-*-* \
9831             | powerpc*-*-*,powerpc64*-*-*)
9832                 CROSS="$CROSS -DNATIVE_CROSS" ;;
9833         esac
9834 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9835         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9836         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9837 fi
9838
9839 # If this is a cross-compiler that does not
9840 # have its own set of headers then define
9841 # inhibit_libc
9842
9843 # If this is using newlib, without having the headers available now,
9844 # then define inhibit_libc in LIBGCC2_CFLAGS.
9845 # This prevents libgcc2 from containing any code which requires libc
9846 # support.
9847 inhibit_libc=
9848 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9849        test x$with_newlib = xyes ; } &&
9850      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9851        inhibit_libc=-Dinhibit_libc
9852 fi
9853
9854
9855 # When building gcc with a cross-compiler, we need to adjust things so
9856 # that the generator programs are still built with the native compiler.
9857 # Also, we cannot run fixincludes or fix-header.
9858
9859 # These are the normal (build=host) settings:
9860 BUILD_PREFIX=
9861 BUILD_PREFIX_1=ignore-
9862 CC_FOR_BUILD='$(CC)'
9863 BUILD_CFLAGS='$(ALL_CFLAGS)'
9864
9865 STMP_FIXINC=stmp-fixinc
9866
9867 # Possibly disable fixproto, on a per-target basis.
9868 case ${use_fixproto} in
9869   no)
9870     STMP_FIXPROTO=
9871     ;;
9872   yes)
9873     STMP_FIXPROTO=stmp-fixproto
9874     ;;
9875 esac
9876
9877
9878 # And these apply if build != host, or we are generating coverage data
9879 if test x$build != x$host || test "x$coverage_flags" != x
9880 then
9881     BUILD_PREFIX=build-
9882     BUILD_PREFIX_1=build-
9883     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9884
9885     if test "x$TARGET_SYSTEM_ROOT" = x; then
9886         STMP_FIXINC=
9887         STMP_FIXPROTO=
9888     fi
9889 fi
9890
9891 # Expand extra_headers to include complete path.
9892 # This substitutes for lots of t-* files.
9893 extra_headers_list=
9894 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9895 for file in ${extra_headers} ; do
9896   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9897 done
9898
9899 # Add a definition of USE_COLLECT2 if system wants one.
9900 case $use_collect2 in
9901   no) use_collect2= ;;
9902   "") ;;
9903   *)
9904     host_xm_defines="${host_xm_defines} USE_COLLECT2"
9905     xm_defines="${xm_defines} USE_COLLECT2"
9906     ;;
9907 esac
9908
9909 # ---------------------------
9910 # Assembler & linker features
9911 # ---------------------------
9912
9913 # Identify the assembler which will work hand-in-glove with the newly
9914 # built GCC, so that we can examine its features.  This is the assembler
9915 # which will be driven by the driver program.
9916 #
9917 # If build != host, and we aren't building gas in-tree, we identify a
9918 # build->target assembler and hope that it will have the same features
9919 # as the host->target assembler we'll be using.
9920 echo "$as_me:$LINENO: checking what assembler to use" >&5
9921 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9922 in_tree_gas=no
9923 gcc_cv_as=
9924 gcc_cv_gas_major_version=
9925 gcc_cv_gas_minor_version=
9926 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9927 if test -x "$DEFAULT_ASSEMBLER"; then
9928         gcc_cv_as="$DEFAULT_ASSEMBLER"
9929 elif test -x "$AS"; then
9930         gcc_cv_as="$AS"
9931 elif test -x as$host_exeext; then
9932         # Build using assembler in the current directory.
9933         gcc_cv_as=./as$host_exeext
9934 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9935      && test -f ../gas/Makefile; then
9936   # Single tree build which includes gas.
9937   in_tree_gas=yes
9938   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9939 for f in $gcc_cv_as_bfd_srcdir/configure \
9940          $gcc_cv_as_gas_srcdir/configure \
9941          $gcc_cv_as_gas_srcdir/configure.in \
9942          $gcc_cv_as_gas_srcdir/Makefile.in ; do
9943   gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9944   if test x$gcc_cv_gas_version != x; then
9945     break
9946   fi
9947 done
9948 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9949 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9950 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9951 case $gcc_cv_gas_patch_version in
9952   "") gcc_cv_gas_patch_version="0" ;;
9953 esac
9954 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9955                             + $gcc_cv_gas_minor_version \) \* 1000 \
9956                             + $gcc_cv_gas_patch_version`
9957
9958   rm -f as$host_exeext
9959   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9960   in_tree_gas_is_elf=no
9961   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9962      || (grep 'obj_format = multi' ../gas/Makefile \
9963          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9964   then
9965     in_tree_gas_is_elf=yes
9966   fi
9967 fi
9968
9969 if test "x$gcc_cv_as" = x; then
9970         # Search the same directories that the installed compiler will
9971         # search.  Else we may find the wrong assembler and lose.  If we
9972         # do not find a suitable assembler binary, then try the user's
9973         # path.
9974         #
9975         # Also note we have to check MD_EXEC_PREFIX before checking the
9976         # user's path.  Unfortunately, there is no good way to get at the
9977         # value of MD_EXEC_PREFIX here.  So we do a brute force search
9978         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
9979         # to be fixed as part of the make/configure rewrite too.
9980
9981         if test "x$exec_prefix" = xNONE; then
9982                 if test "x$prefix" = xNONE; then
9983                         test_prefix=/usr/local
9984                 else
9985                         test_prefix=$prefix
9986                 fi
9987         else
9988                 test_prefix=$exec_prefix
9989         fi
9990
9991         # If the loop below does not find an assembler, then use whatever
9992         # one we can find in the users's path.
9993         # user's path.
9994         if test "x$program_prefix" != xNONE; then
9995                 gcc_cv_as=${program_prefix}as$host_exeext
9996         else
9997                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
9998         fi
9999
10000         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10001                    $test_prefix/libexec/gcc/$target_noncanonical \
10002                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10003                    /usr/lib/gcc/$target_noncanonical \
10004                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10005                    $test_prefix/$target_noncanonical/bin"
10006
10007         if test x$host = x$target; then
10008             test_dirs="$test_dirs \
10009                    /usr/libexec \
10010                    /usr/ccs/gcc \
10011                    /usr/ccs/bin \
10012                    /udk/usr/ccs/bin \
10013                    /bsd43/usr/lib/cmplrs/cc \
10014                    /usr/cross64/usr/bin \
10015                    /usr/lib/cmplrs/cc \
10016                    /sysv/usr/lib/cmplrs/cc \
10017                    /svr4/usr/lib/cmplrs/cc \
10018                    /usr/bin"
10019         fi
10020
10021         for dir in $test_dirs; do
10022                 if test -x $dir/as$host_exeext; then
10023                         gcc_cv_as=$dir/as$host_exeext
10024                         break;
10025                 fi
10026         done
10027 fi
10028 case $in_tree_gas in
10029   yes)
10030     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10031 echo "${ECHO_T}\"newly built gas\"" >&6
10032     ;;
10033   no)
10034     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10035 echo "${ECHO_T}$gcc_cv_as" >&6
10036     ;;
10037 esac
10038
10039 # Identify the linker which will work hand-in-glove with the newly
10040 # built GCC, so that we can examine its features.  This is the linker
10041 # which will be driven by the driver program.
10042 #
10043 # If build != host, and we aren't building gas in-tree, we identify a
10044 # build->target linker and hope that it will have the same features
10045 # as the host->target linker we'll be using.
10046 echo "$as_me:$LINENO: checking what linker to use" >&5
10047 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10048 in_tree_ld=no
10049 gcc_cv_ld=
10050 gcc_cv_gld_major_version=
10051 gcc_cv_gld_minor_version=
10052 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10053 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10054 if test -x "$DEFAULT_LINKER"; then
10055         gcc_cv_ld="$DEFAULT_LINKER"
10056 elif test -x "$LD_FOR_TARGET"; then
10057         gcc_cv_ld="$LD_FOR_TARGET"
10058 elif test -x "$LD" && test x$host = x$target; then
10059         gcc_cv_ld="$LD"
10060 elif test -x collect-ld$host_exeext; then
10061         # Build using linker in the current directory.
10062         gcc_cv_ld=./collect-ld$host_exeext
10063 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10064      && test -f ../ld/Makefile; then
10065         # Single tree build which includes ld.
10066         in_tree_ld=yes
10067         in_tree_ld_is_elf=no
10068         if (grep 'EMUL = .*elf' ../ld/Makefile \
10069             || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10070           in_tree_ld_is_elf=yes
10071         fi
10072         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
10073         do
10074                 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10075                 if test x$gcc_cv_gld_version != x; then
10076                         break
10077                 fi
10078         done
10079         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10080         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10081         rm -f collect-ld$host_exeext
10082         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10083                 2>/dev/null
10084 fi
10085
10086 if test "x$gcc_cv_ld" = x; then
10087         # Search the same directories that the installed compiler will
10088         # search.  Else we may find the wrong linker and lose.  If we
10089         # do not find a suitable linker binary, then try the user's
10090         # path.
10091         #
10092         # Also note we have to check MD_EXEC_PREFIX before checking the
10093         # user's path.  Unfortunately, there is no good way to get at the
10094         # value of MD_EXEC_PREFIX here.  So we do a brute force search
10095         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
10096         # to be fixed as part of the make/configure rewrite too.
10097
10098         if test "x$exec_prefix" = xNONE; then
10099                 if test "x$prefix" = xNONE; then
10100                         test_prefix=/usr/local
10101                 else
10102                         test_prefix=$prefix
10103                 fi
10104         else
10105                 test_prefix=$exec_prefix
10106         fi
10107
10108         # If the loop below does not find an linker, then use whatever
10109         # one we can find in the users's path.
10110         # user's path.
10111         if test "x$program_prefix" != xNONE; then
10112                 gcc_cv_ld=${program_prefix}ld$host_exeext
10113         else
10114                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10115         fi
10116
10117         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10118                    $test_prefix/libexec/gcc/$target_noncanonical \
10119                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
10120                    /usr/lib/gcc/$target_noncanonical \
10121                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10122                    $test_prefix/$target_noncanonical/bin"
10123
10124         if test x$host = x$target; then
10125             test_dirs="$test_dirs \
10126                    /usr/libexec \
10127                    /usr/ccs/gcc \
10128                    /usr/ccs/bin \
10129                    /udk/usr/ccs/bin \
10130                    /bsd43/usr/lib/cmplrs/cc \
10131                    /usr/cross64/usr/bin \
10132                    /usr/lib/cmplrs/cc \
10133                    /sysv/usr/lib/cmplrs/cc \
10134                    /svr4/usr/lib/cmplrs/cc \
10135                    /usr/bin"
10136         fi
10137
10138         for dir in $test_dirs; do
10139                 if test -x $dir/ld$host_exeext; then
10140                         gcc_cv_ld=$dir/ld$host_exeext
10141                         break;
10142                 fi
10143         done
10144 fi
10145 case $in_tree_ld in
10146   yes)
10147     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10148 echo "${ECHO_T}\"newly built ld\"" >&6
10149     ;;
10150   no)
10151     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10152 echo "${ECHO_T}$gcc_cv_ld" >&6
10153     ;;
10154 esac
10155
10156 # Figure out what nm we will be using.
10157 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10158 echo "$as_me:$LINENO: checking what nm to use" >&5
10159 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10160 in_tree_nm=no
10161 if test -x nm$host_exeext; then
10162         gcc_cv_nm=./nm$host_exeext
10163 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10164      && test -f ../binutils/Makefile; then
10165         # Single tree build which includes binutils.
10166         in_tree_nm=yes
10167         gcc_cv_nm=./nm$host_exeext
10168         rm -f nm$host_exeext
10169         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10170 elif test "x$program_prefix" != xNONE; then
10171         gcc_cv_nm=${program_prefix}nm$host_exeext
10172 else
10173         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10174 fi
10175 case $in_tree_nm in
10176   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10177 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10178   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10179 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10180 esac
10181
10182 # Figure out what objdump we will be using.
10183 echo "$as_me:$LINENO: checking what objdump to use" >&5
10184 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10185 in_tree_objdump=no
10186 if test -x objdump$host_exeext; then
10187         gcc_cv_objdump=./objdump$host_exeext
10188 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10189      && test -f ../binutils/Makefile; then
10190         # Single tree build which includes binutils.
10191         in_tree_objdump=yes
10192         gcc_cv_objdump=./objdump$host_exeext
10193         rm -f objdump$host_exeext
10194         $symbolic_link ../binutils/objdump$host_exeext \
10195                 objdump$host_exeext 2>/dev/null
10196 elif test "x$program_prefix" != xNONE; then
10197         gcc_cv_objdump=${program_prefix}objdump$host_exeext
10198 else
10199         gcc_cv_objdump=`echo objdump | \
10200                 sed "${program_transform_name}"`$host_exeext
10201 fi
10202 case $in_tree_objdump in
10203   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10204 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10205   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10206 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10207 esac
10208
10209 # Figure out what assembler alignment features are present.
10210 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10211 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10212 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10213   echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215   gcc_cv_as_balign_and_p2align=no
10216     if test $in_tree_gas = yes; then
10217     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10218   then gcc_cv_as_balign_and_p2align=yes
10219 fi
10220   elif test x$gcc_cv_as != x; then
10221     echo '.balign 4
10222 .p2align 2' > conftest.s
10223     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225   (eval $ac_try) 2>&5
10226   ac_status=$?
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); }; }
10229     then
10230         gcc_cv_as_balign_and_p2align=yes
10231     else
10232       echo "configure: failed program was" >&5
10233       cat conftest.s >&5
10234     fi
10235     rm -f conftest.o conftest.s
10236   fi
10237 fi
10238 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10239 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10240 if test $gcc_cv_as_balign_and_p2align = yes; then
10241
10242 cat >>confdefs.h <<\_ACEOF
10243 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10244 _ACEOF
10245
10246 fi
10247
10248 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10249 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10250 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10251   echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253   gcc_cv_as_max_skip_p2align=no
10254     if test $in_tree_gas = yes; then
10255     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10256   then gcc_cv_as_max_skip_p2align=yes
10257 fi
10258   elif test x$gcc_cv_as != x; then
10259     echo '.p2align 4,,7' > conftest.s
10260     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262   (eval $ac_try) 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); }; }
10266     then
10267         gcc_cv_as_max_skip_p2align=yes
10268     else
10269       echo "configure: failed program was" >&5
10270       cat conftest.s >&5
10271     fi
10272     rm -f conftest.o conftest.s
10273   fi
10274 fi
10275 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10276 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10277 if test $gcc_cv_as_max_skip_p2align = yes; then
10278
10279 cat >>confdefs.h <<\_ACEOF
10280 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10281 _ACEOF
10282
10283 fi
10284
10285 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10286 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10287 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10288   echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290   gcc_cv_as_subsection_m1=no
10291     if test $in_tree_gas = yes; then
10292     if test $in_tree_gas_is_elf = yes \
10293   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10294   then gcc_cv_as_subsection_m1=yes
10295 fi
10296   elif test x$gcc_cv_as != x; then
10297     echo 'conftest_label1: .word 0
10298 .subsection -1
10299 conftest_label2: .word 0
10300 .previous' > conftest.s
10301     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303   (eval $ac_try) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; }
10307     then
10308         if test x$gcc_cv_nm != x; then
10309     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10310     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10311     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10312     then :
10313     else gcc_cv_as_subsection_m1=yes
10314     fi
10315     rm -f conftest.nm1 conftest.nm2
10316   fi
10317     else
10318       echo "configure: failed program was" >&5
10319       cat conftest.s >&5
10320     fi
10321     rm -f conftest.o conftest.s
10322   fi
10323 fi
10324 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10325 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10326 if test $gcc_cv_as_subsection_m1 = yes; then
10327
10328 cat >>confdefs.h <<\_ACEOF
10329 #define HAVE_GAS_SUBSECTION_ORDERING 1
10330 _ACEOF
10331
10332 fi
10333
10334 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10335 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10336 if test "${gcc_cv_as_weak+set}" = set; then
10337   echo $ECHO_N "(cached) $ECHO_C" >&6
10338 else
10339   gcc_cv_as_weak=no
10340     if test $in_tree_gas = yes; then
10341     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10342   then gcc_cv_as_weak=yes
10343 fi
10344   elif test x$gcc_cv_as != x; then
10345     echo '      .weak foobar' > conftest.s
10346     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348   (eval $ac_try) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); }; }
10352     then
10353         gcc_cv_as_weak=yes
10354     else
10355       echo "configure: failed program was" >&5
10356       cat conftest.s >&5
10357     fi
10358     rm -f conftest.o conftest.s
10359   fi
10360 fi
10361 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10362 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10363 if test $gcc_cv_as_weak = yes; then
10364
10365 cat >>confdefs.h <<\_ACEOF
10366 #define HAVE_GAS_WEAK 1
10367 _ACEOF
10368
10369 fi
10370
10371 # .hidden needs to be supported in both the assembler and the linker,
10372 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10373 # This is irritatingly difficult to feature test for; we have to check the
10374 # date string after the version number.  If we've got an in-tree
10375 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10376 # to be safe.
10377 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10378 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10379 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10380 if test "${gcc_cv_as_hidden+set}" = set; then
10381   echo $ECHO_N "(cached) $ECHO_C" >&6
10382 else
10383   gcc_cv_as_hidden=no
10384     if test $in_tree_gas = yes; then
10385     if test $in_tree_gas_is_elf = yes \
10386   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10387   then gcc_cv_as_hidden=yes
10388 fi
10389   elif test x$gcc_cv_as != x; then
10390     echo '      .hidden foobar
10391 foobar:' > conftest.s
10392     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394   (eval $ac_try) 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); }; }
10398     then
10399         gcc_cv_as_hidden=yes
10400     else
10401       echo "configure: failed program was" >&5
10402       cat conftest.s >&5
10403     fi
10404     rm -f conftest.o conftest.s
10405   fi
10406 fi
10407 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10408 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10409
10410
10411 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10412 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10413 if test "${gcc_cv_ld_hidden+set}" = set; then
10414   echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10416   if test $in_tree_ld = yes ; then
10417   gcc_cv_ld_hidden=no
10418   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 \
10419      && test $in_tree_ld_is_elf = yes; then
10420      gcc_cv_ld_hidden=yes
10421   fi
10422 else
10423   gcc_cv_ld_hidden=yes
10424   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10425   if echo "$ld_ver" | grep GNU > /dev/null; then
10426     ld_vers=`echo $ld_ver | sed -n \
10427         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10428         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10429         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10430         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
10431         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
10432         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
10433     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'`
10434     if test 0"$ld_date" -lt 20020404; then
10435       if test -n "$ld_date"; then
10436         # If there was date string, but was earlier than 2002-04-04, fail
10437         gcc_cv_ld_hidden=no
10438       elif test -z "$ld_vers"; then
10439         # If there was no date string nor ld version number, something is wrong
10440         gcc_cv_ld_hidden=no
10441       else
10442         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10443         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10444         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10445         test -z "$ld_vers_patch" && ld_vers_patch=0
10446         if test "$ld_vers_major" -lt 2; then
10447           gcc_cv_ld_hidden=no
10448         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10449           gcc_cv_ld_hidden="no"
10450         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10451           gcc_cv_ld_hidden=no
10452         fi
10453       fi
10454     fi
10455   else
10456     case "${target}" in
10457       hppa64*-*-hpux* | ia64*-*-hpux*)
10458         gcc_cv_ld_hidden=yes
10459         ;;
10460       *)
10461         gcc_cv_ld_hidden=no
10462         ;;
10463     esac
10464   fi
10465 fi
10466 fi
10467 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10468 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10469 libgcc_visibility=no
10470
10471 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10472   libgcc_visibility=yes
10473
10474 cat >>confdefs.h <<\_ACEOF
10475 #define HAVE_GAS_HIDDEN 1
10476 _ACEOF
10477
10478 fi
10479
10480 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10481 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10482 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10483 if test "${gcc_cv_as_leb128+set}" = set; then
10484   echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486   gcc_cv_as_leb128=no
10487     if test $in_tree_gas = yes; then
10488     if test $in_tree_gas_is_elf = yes \
10489   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10490   then gcc_cv_as_leb128=yes
10491 fi
10492   elif test x$gcc_cv_as != x; then
10493     echo '      .data
10494         .uleb128 L2 - L1
10495 L1:
10496         .uleb128 1280
10497         .sleb128 -1010
10498 L2:' > conftest.s
10499     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501   (eval $ac_try) 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); }; }
10505     then
10506         # GAS versions before 2.11 do not support uleb128,
10507   # despite appearing to.
10508   # ??? There exists an elf-specific test that will crash
10509   # the assembler.  Perhaps it's better to figure out whether
10510   # arbitrary sections are supported and try the test.
10511   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10512   if echo "$as_ver" | grep GNU > /dev/null; then
10513     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10514     as_major=`echo $as_ver | sed 's/\..*//'`
10515     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10516     if test $as_major -eq 2 && test $as_minor -lt 11
10517     then :
10518     else gcc_cv_as_leb128=yes
10519     fi
10520   fi
10521     else
10522       echo "configure: failed program was" >&5
10523       cat conftest.s >&5
10524     fi
10525     rm -f conftest.o conftest.s
10526   fi
10527 fi
10528 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10529 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10530 if test $gcc_cv_as_leb128 = yes; then
10531
10532 cat >>confdefs.h <<\_ACEOF
10533 #define HAVE_AS_LEB128 1
10534 _ACEOF
10535
10536 fi
10537
10538 # GAS versions up to and including 2.11.0 may mis-optimize
10539 # .eh_frame data.
10540 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10541 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10542 if test "${gcc_cv_as_eh_frame+set}" = set; then
10543   echo $ECHO_N "(cached) $ECHO_C" >&6
10544 else
10545   gcc_cv_as_eh_frame=no
10546     if test $in_tree_gas = yes; then
10547     if test $in_tree_gas_is_elf = yes \
10548   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10549   then gcc_cv_as_eh_frame=yes
10550 fi
10551   elif test x$gcc_cv_as != x; then
10552     echo '      .text
10553 .LFB1:
10554         .4byte  0
10555 .L1:
10556         .4byte  0
10557 .LFE1:
10558         .section        .eh_frame,"aw",@progbits
10559 __FRAME_BEGIN__:
10560         .4byte  .LECIE1-.LSCIE1
10561 .LSCIE1:
10562         .4byte  0x0
10563         .byte   0x1
10564         .ascii "z\0"
10565         .byte   0x1
10566         .byte   0x78
10567         .byte   0x1a
10568         .byte   0x0
10569         .byte   0x4
10570         .4byte  1
10571         .p2align 1
10572 .LECIE1:
10573 .LSFDE1:
10574         .4byte  .LEFDE1-.LASFDE1
10575 .LASFDE1:
10576         .4byte  .LASFDE1-__FRAME_BEGIN__
10577         .4byte  .LFB1
10578         .4byte  .LFE1-.LFB1
10579         .byte   0x4
10580         .4byte  .LFE1-.LFB1
10581         .byte   0x4
10582         .4byte  .L1-.LFB1
10583 .LEFDE1:' > conftest.s
10584     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
10585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586   (eval $ac_try) 2>&5
10587   ac_status=$?
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); }; }
10590     then
10591           cat > conftest.lit <<EOF
10592  0000 10000000 00000000 017a0001 781a0004  .........z..x...
10593  0010 01000000 12000000 18000000 00000000  ................
10594  0020 08000000 04080000 0044               .........D      
10595 EOF
10596 cat > conftest.big <<EOF
10597  0000 00000010 00000000 017a0001 781a0004  .........z..x...
10598  0010 00000001 00000012 00000018 00000000  ................
10599  0020 00000008 04000000 0844               .........D      
10600 EOF
10601   # If the assembler didn't choke, and we can objdump,
10602   # and we got the correct data, then succeed.
10603   if test x$gcc_cv_objdump != x \
10604   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10605      | tail -3 > conftest.got \
10606   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10607     || cmp conftest.big conftest.got > /dev/null 2>&1; }
10608   then
10609     gcc_cv_as_eh_frame=yes
10610   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612   (eval $ac_try) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); }; }; then
10616     gcc_cv_as_eh_frame=buggy
10617   else
10618     # Uh oh, what do we do now?
10619     gcc_cv_as_eh_frame=no
10620   fi
10621     else
10622       echo "configure: failed program was" >&5
10623       cat conftest.s >&5
10624     fi
10625     rm -f conftest.o conftest.s
10626   fi
10627 fi
10628 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10629 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10630
10631
10632 if test $gcc_cv_as_eh_frame = buggy; then
10633
10634 cat >>confdefs.h <<\_ACEOF
10635 #define USE_AS_TRADITIONAL_FORMAT 1
10636 _ACEOF
10637
10638 fi
10639
10640 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10641 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10642 if test "${gcc_cv_as_shf_merge+set}" = set; then
10643   echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645   gcc_cv_as_shf_merge=no
10646     if test $in_tree_gas = yes; then
10647     if test $in_tree_gas_is_elf = yes \
10648   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10649   then gcc_cv_as_shf_merge=yes
10650 fi
10651   elif test x$gcc_cv_as != x; then
10652     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10653     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655   (eval $ac_try) 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; }
10659     then
10660         gcc_cv_as_shf_merge=yes
10661     else
10662       echo "configure: failed program was" >&5
10663       cat conftest.s >&5
10664     fi
10665     rm -f conftest.o conftest.s
10666   fi
10667 fi
10668 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10669 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10670
10671
10672 cat >>confdefs.h <<_ACEOF
10673 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10674 _ACEOF
10675
10676
10677 # Thread-local storage - the check is heavily parametrized.
10678 conftest_s=
10679 tls_first_major=
10680 tls_first_minor=
10681 tls_as_opt=
10682 case "$target" in
10683   alpha*-*-*)
10684     conftest_s='
10685         .section ".tdata","awT",@progbits
10686 foo:    .long   25
10687         .text
10688         ldq     $27,__tls_get_addr($29)         !literal!1
10689         lda     $16,foo($29)                    !tlsgd!1
10690         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
10691         ldq     $27,__tls_get_addr($29)         !literal!2
10692         lda     $16,foo($29)                    !tlsldm!2
10693         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
10694         ldq     $1,foo($29)                     !gotdtprel
10695         ldah    $2,foo($29)                     !dtprelhi
10696         lda     $3,foo($2)                      !dtprello
10697         lda     $4,foo($29)                     !dtprel
10698         ldq     $1,foo($29)                     !gottprel
10699         ldah    $2,foo($29)                     !tprelhi
10700         lda     $3,foo($2)                      !tprello
10701         lda     $4,foo($29)                     !tprel'
10702         tls_first_major=2
10703         tls_first_minor=13
10704         tls_as_opt=--fatal-warnings
10705         ;;
10706   i[34567]86-*-*)
10707     conftest_s='
10708         .section ".tdata","awT",@progbits
10709 foo:    .long   25
10710         .text
10711         movl    %gs:0, %eax
10712         leal    foo@TLSGD(,%ebx,1), %eax
10713         leal    foo@TLSLDM(%ebx), %eax
10714         leal    foo@DTPOFF(%eax), %edx
10715         movl    foo@GOTTPOFF(%ebx), %eax
10716         subl    foo@GOTTPOFF(%ebx), %eax
10717         addl    foo@GOTNTPOFF(%ebx), %eax
10718         movl    foo@INDNTPOFF, %eax
10719         movl    $foo@TPOFF, %eax
10720         subl    $foo@TPOFF, %eax
10721         leal    foo@NTPOFF(%ecx), %eax'
10722         tls_first_major=2
10723         tls_first_minor=14
10724         tls_as_opt=--fatal-warnings
10725         ;;
10726   x86_64-*-*)
10727     conftest_s='
10728         .section ".tdata","awT",@progbits
10729 foo:    .long   25
10730         .text
10731         movq    %fs:0, %rax
10732         leaq    foo@TLSGD(%rip), %rdi
10733         leaq    foo@TLSLD(%rip), %rdi
10734         leaq    foo@DTPOFF(%rax), %rdx
10735         movq    foo@GOTTPOFF(%rip), %rax
10736         movq    $foo@TPOFF, %rax'
10737         tls_first_major=2
10738         tls_first_minor=14
10739         tls_as_opt=--fatal-warnings
10740         ;;
10741   ia64-*-*)
10742     conftest_s='
10743         .section ".tdata","awT",@progbits
10744 foo:    data8   25
10745         .text
10746         addl    r16 = @ltoff(@dtpmod(foo#)), gp
10747         addl    r17 = @ltoff(@dtprel(foo#)), gp
10748         addl    r18 = @ltoff(@tprel(foo#)), gp
10749         addl    r19 = @dtprel(foo#), gp
10750         adds    r21 = @dtprel(foo#), r13
10751         movl    r23 = @dtprel(foo#)
10752         addl    r20 = @tprel(foo#), gp
10753         adds    r22 = @tprel(foo#), r13
10754         movl    r24 = @tprel(foo#)'
10755         tls_first_major=2
10756         tls_first_minor=13
10757         tls_as_opt=--fatal-warnings
10758         ;;
10759   powerpc-*-*)
10760     conftest_s='
10761         .section ".tdata","awT",@progbits
10762         .align 2
10763 ld0:    .space 4
10764 ld1:    .space 4
10765 x1:     .space 4
10766 x2:     .space 4
10767 x3:     .space 4
10768         .text
10769         addi 3,31,ld0@got@tlsgd
10770         bl __tls_get_addr
10771         addi 3,31,x1@got@tlsld
10772         bl __tls_get_addr
10773         addi 9,3,x1@dtprel
10774         addis 9,3,x2@dtprel@ha
10775         addi 9,9,x2@dtprel@l
10776         lwz 9,x3@got@tprel(31)
10777         add 9,9,x@tls
10778         addi 9,2,x1@tprel
10779         addis 9,2,x2@tprel@ha
10780         addi 9,9,x2@tprel@l'
10781         tls_first_major=2
10782         tls_first_minor=14
10783         tls_as_opt="-a32 --fatal-warnings"
10784         ;;
10785   powerpc64-*-*)
10786     conftest_s='
10787         .section ".tdata","awT",@progbits
10788         .align 3
10789 ld0:    .space 8
10790 ld1:    .space 8
10791 x1:     .space 8
10792 x2:     .space 8
10793 x3:     .space 8
10794         .text
10795         addi 3,2,ld0@got@tlsgd
10796         bl .__tls_get_addr
10797         nop
10798         addi 3,2,ld1@toc
10799         bl .__tls_get_addr
10800         nop
10801         addi 3,2,x1@got@tlsld
10802         bl .__tls_get_addr
10803         nop
10804         addi 9,3,x1@dtprel
10805         bl .__tls_get_addr
10806         nop
10807         addis 9,3,x2@dtprel@ha
10808         addi 9,9,x2@dtprel@l
10809         bl .__tls_get_addr
10810         nop
10811         ld 9,x3@got@dtprel(2)
10812         add 9,9,3
10813         bl .__tls_get_addr
10814         nop'
10815         tls_first_major=2
10816         tls_first_minor=14
10817         tls_as_opt="-a64 --fatal-warnings"
10818         ;;
10819   s390-*-*)
10820     conftest_s='
10821         .section ".tdata","awT",@progbits
10822 foo:    .long   25
10823         .text
10824         .long   foo@TLSGD
10825         .long   foo@TLSLDM
10826         .long   foo@DTPOFF
10827         .long   foo@NTPOFF
10828         .long   foo@GOTNTPOFF
10829         .long   foo@INDNTPOFF
10830         l       %r1,foo@GOTNTPOFF(%r12)
10831         l       %r1,0(%r1):tls_load:foo
10832         bas     %r14,0(%r1,%r13):tls_gdcall:foo
10833         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
10834         tls_first_major=2
10835         tls_first_minor=14
10836         tls_as_opt="-m31 --fatal-warnings"
10837         ;;
10838   s390x-*-*)
10839     conftest_s='
10840         .section ".tdata","awT",@progbits
10841 foo:    .long   25
10842         .text
10843         .quad   foo@TLSGD
10844         .quad   foo@TLSLDM
10845         .quad   foo@DTPOFF
10846         .quad   foo@NTPOFF
10847         .quad   foo@GOTNTPOFF
10848         lg      %r1,foo@GOTNTPOFF(%r12)
10849         larl    %r1,foo@INDNTPOFF
10850         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
10851         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10852         tls_first_major=2
10853         tls_first_minor=14
10854         tls_as_opt="-m64 -Aesame --fatal-warnings"
10855         ;;
10856   sh-*-* | sh[34]-*-*)
10857     conftest_s='
10858         .section ".tdata","awT",@progbits
10859 foo:    .long   25
10860         .text
10861         .long   foo@TLSGD
10862         .long   foo@TLSLDM
10863         .long   foo@DTPOFF
10864         .long   foo@GOTTPOFF
10865         .long   foo@TPOFF'
10866         tls_first_major=2
10867         tls_first_minor=13
10868         tls_as_opt=--fatal-warnings
10869         ;;
10870   sparc*-*-*)
10871     case "$target" in
10872       sparc*-sun-solaris2.*)
10873         on_solaris=yes
10874         ;;
10875       *)
10876         on_solaris=no
10877         ;;
10878     esac
10879     if test x$on_solaris = xyes && test x$gas_flag = xno; then
10880       conftest_s='
10881         .section ".tdata",#alloc,#write,#tls
10882 foo:    .long   25
10883         .text
10884         sethi   %tgd_hi22(foo), %o0
10885         add     %o0, %tgd_lo10(foo), %o1
10886         add     %l7, %o1, %o0, %tgd_add(foo)
10887         call    __tls_get_addr, %tgd_call(foo)
10888         sethi   %tldm_hi22(foo), %l1
10889         add     %l1, %tldm_lo10(foo), %l2
10890         add     %l7, %l2, %o0, %tldm_add(foo)
10891         call    __tls_get_addr, %tldm_call(foo)
10892         sethi   %tldo_hix22(foo), %l3
10893         xor     %l3, %tldo_lox10(foo), %l4
10894         add     %o0, %l4, %l5, %tldo_add(foo)
10895         sethi   %tie_hi22(foo), %o3
10896         add     %o3, %tie_lo10(foo), %o3
10897         ld      [%l7 + %o3], %o2, %tie_ld(foo)
10898         add     %g7, %o2, %o4, %tie_add(foo)
10899         sethi   %tle_hix22(foo), %l1
10900         xor     %l1, %tle_lox10(foo), %o5
10901         ld      [%g7 + %o5], %o1'
10902         tls_first_major=0
10903         tls_first_minor=0
10904     else
10905       conftest_s='
10906         .section ".tdata","awT",@progbits
10907 foo:    .long   25
10908         .text
10909         sethi   %tgd_hi22(foo), %o0
10910         add     %o0, %tgd_lo10(foo), %o1
10911         add     %l7, %o1, %o0, %tgd_add(foo)
10912         call    __tls_get_addr, %tgd_call(foo)
10913         sethi   %tldm_hi22(foo), %l1
10914         add     %l1, %tldm_lo10(foo), %l2
10915         add     %l7, %l2, %o0, %tldm_add(foo)
10916         call    __tls_get_addr, %tldm_call(foo)
10917         sethi   %tldo_hix22(foo), %l3
10918         xor     %l3, %tldo_lox10(foo), %l4
10919         add     %o0, %l4, %l5, %tldo_add(foo)
10920         sethi   %tie_hi22(foo), %o3
10921         add     %o3, %tie_lo10(foo), %o3
10922         ld      [%l7 + %o3], %o2, %tie_ld(foo)
10923         add     %g7, %o2, %o4, %tie_add(foo)
10924         sethi   %tle_hix22(foo), %l1
10925         xor     %l1, %tle_lox10(foo), %o5
10926         ld      [%g7 + %o5], %o1'
10927         tls_first_major=2
10928         tls_first_minor=14
10929         tls_as_opt="-32 --fatal-warnings"
10930       fi
10931         ;;
10932 esac
10933 if test -z "$tls_first_major"; then
10934   : # If we don't have a check, assume no support.
10935 else
10936   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10937 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10938 if test "${gcc_cv_as_tls+set}" = set; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941   gcc_cv_as_tls=no
10942     if test $in_tree_gas = yes; then
10943     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10944   then gcc_cv_as_tls=yes
10945 fi
10946   elif test x$gcc_cv_as != x; then
10947     echo "$conftest_s" > conftest.s
10948     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950   (eval $ac_try) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; }
10954     then
10955         gcc_cv_as_tls=yes
10956     else
10957       echo "configure: failed program was" >&5
10958       cat conftest.s >&5
10959     fi
10960     rm -f conftest.o conftest.s
10961   fi
10962 fi
10963 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10964 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10965 if test $gcc_cv_as_tls = yes; then
10966
10967 cat >>confdefs.h <<\_ACEOF
10968 #define HAVE_AS_TLS 1
10969 _ACEOF
10970
10971 fi
10972 fi
10973
10974 # Target-specific assembler checks.
10975
10976 case "$target" in
10977   # All TARGET_ABI_OSF targets.
10978   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10979     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10980 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10981 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10982   echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984   gcc_cv_as_alpha_explicit_relocs=no
10985     if test $in_tree_gas = yes; then
10986     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10987   then gcc_cv_as_alpha_explicit_relocs=yes
10988 fi
10989   elif test x$gcc_cv_as != x; then
10990     echo '      .set nomacro
10991         .text
10992         extbl   $3, $2, $3      !lituse_bytoff!1
10993         ldq     $2, a($29)      !literal!1
10994         ldq     $4, b($29)      !literal!2
10995         ldq_u   $3, 0($2)       !lituse_base!1
10996         ldq     $27, f($29)     !literal!5
10997         jsr     $26, ($27), f   !lituse_jsr!5
10998         ldah    $29, 0($26)     !gpdisp!3
10999         lda     $0, c($29)      !gprel
11000         ldah    $1, d($29)      !gprelhigh
11001         lda     $1, d($1)       !gprellow
11002         lda     $29, 0($29)     !gpdisp!3' > conftest.s
11003     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005   (eval $ac_try) 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); }; }
11009     then
11010         gcc_cv_as_alpha_explicit_relocs=yes
11011     else
11012       echo "configure: failed program was" >&5
11013       cat conftest.s >&5
11014     fi
11015     rm -f conftest.o conftest.s
11016   fi
11017 fi
11018 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11019 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11020 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11021
11022 cat >>confdefs.h <<\_ACEOF
11023 #define HAVE_AS_EXPLICIT_RELOCS 1
11024 _ACEOF
11025
11026 fi
11027     ;;
11028
11029   cris-*-*)
11030     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11031 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11032 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11033   echo $ECHO_N "(cached) $ECHO_C" >&6
11034 else
11035   gcc_cv_as_cris_no_mul_bug=no
11036     if test $in_tree_gas = yes; then
11037     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11038   then gcc_cv_as_cris_no_mul_bug=yes
11039 fi
11040   elif test x$gcc_cv_as != x; then
11041     echo '.text' > conftest.s
11042     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044   (eval $ac_try) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); }; }
11048     then
11049         gcc_cv_as_cris_no_mul_bug=yes
11050     else
11051       echo "configure: failed program was" >&5
11052       cat conftest.s >&5
11053     fi
11054     rm -f conftest.o conftest.s
11055   fi
11056 fi
11057 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11058 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11059 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11060
11061 cat >>confdefs.h <<\_ACEOF
11062 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11063 _ACEOF
11064
11065 fi
11066     ;;
11067
11068   sparc*-*-*)
11069     echo "$as_me:$LINENO: checking assembler for .register" >&5
11070 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11071 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11072   echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074   gcc_cv_as_sparc_register_op=no
11075   if test x$gcc_cv_as != x; then
11076     echo '.register %g2, #scratch' > conftest.s
11077     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079   (eval $ac_try) 2>&5
11080   ac_status=$?
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); }; }
11083     then
11084         gcc_cv_as_sparc_register_op=yes
11085     else
11086       echo "configure: failed program was" >&5
11087       cat conftest.s >&5
11088     fi
11089     rm -f conftest.o conftest.s
11090   fi
11091 fi
11092 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11093 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11094 if test $gcc_cv_as_sparc_register_op = yes; then
11095
11096 cat >>confdefs.h <<\_ACEOF
11097 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11098 _ACEOF
11099
11100 fi
11101
11102     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11103 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11104 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11105   echo $ECHO_N "(cached) $ECHO_C" >&6
11106 else
11107   gcc_cv_as_sparc_relax=no
11108   if test x$gcc_cv_as != x; then
11109     echo '.text' > conftest.s
11110     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112   (eval $ac_try) 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); }; }
11116     then
11117         gcc_cv_as_sparc_relax=yes
11118     else
11119       echo "configure: failed program was" >&5
11120       cat conftest.s >&5
11121     fi
11122     rm -f conftest.o conftest.s
11123   fi
11124 fi
11125 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11126 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11127 if test $gcc_cv_as_sparc_relax = yes; then
11128
11129 cat >>confdefs.h <<\_ACEOF
11130 #define HAVE_AS_RELAX_OPTION 1
11131 _ACEOF
11132
11133 fi
11134
11135     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11136 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11137 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11138   echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140   gcc_cv_as_sparc_ua_pcrel=no
11141   if test x$gcc_cv_as != x; then
11142     echo '.text
11143 foo:
11144         nop
11145 .data
11146 .align 4
11147 .byte 0
11148 .uaword %r_disp32(foo)' > conftest.s
11149     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151   (eval $ac_try) 2>&5
11152   ac_status=$?
11153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154   (exit $ac_status); }; }
11155     then
11156         if test x$gcc_cv_ld != x \
11157        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11158          gcc_cv_as_sparc_ua_pcrel=yes
11159        fi
11160        rm -f conftest
11161     else
11162       echo "configure: failed program was" >&5
11163       cat conftest.s >&5
11164     fi
11165     rm -f conftest.o conftest.s
11166   fi
11167 fi
11168 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11169 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11170 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11171
11172 cat >>confdefs.h <<\_ACEOF
11173 #define HAVE_AS_SPARC_UA_PCREL 1
11174 _ACEOF
11175
11176
11177       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11178 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11179 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11180   echo $ECHO_N "(cached) $ECHO_C" >&6
11181 else
11182   gcc_cv_as_sparc_ua_pcrel_hidden=no
11183   if test x$gcc_cv_as != x; then
11184     echo '.data
11185 .align 4
11186 .byte 0x31
11187 .uaword %r_disp32(foo)
11188 .byte 0x32, 0x33, 0x34
11189 .global foo
11190 .hidden foo
11191 foo:
11192 .skip 4' > conftest.s
11193     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195   (eval $ac_try) 2>&5
11196   ac_status=$?
11197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198   (exit $ac_status); }; }
11199     then
11200         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11201          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11202          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11203             | grep ' 31000000 07323334' > /dev/null 2>&1; then
11204             if $gcc_cv_objdump -R conftest 2> /dev/null \
11205                | grep 'DISP32' > /dev/null 2>&1; then
11206                 :
11207             else
11208                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11209             fi
11210          fi
11211          rm -f conftest
11212     else
11213       echo "configure: failed program was" >&5
11214       cat conftest.s >&5
11215     fi
11216     rm -f conftest.o conftest.s
11217   fi
11218 fi
11219 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11220 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11221 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11222
11223 cat >>confdefs.h <<\_ACEOF
11224 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11225 _ACEOF
11226
11227 fi
11228
11229 fi # unaligned pcrel relocs
11230
11231     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11232 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11233 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236   gcc_cv_as_sparc_offsetable_lo10=no
11237   if test x$gcc_cv_as != x; then
11238     echo '.text
11239         or %g1, %lo(ab) + 12, %g1
11240         or %g1, %lo(ab + 12), %g1' > conftest.s
11241     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243   (eval $ac_try) 2>&5
11244   ac_status=$?
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); }; }
11247     then
11248         if test x$gcc_cv_objdump != x \
11249        && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11250           | grep ' 82106000 82106000' > /dev/null 2>&1; then
11251          gcc_cv_as_offsetable_lo10=yes
11252        fi
11253     else
11254       echo "configure: failed program was" >&5
11255       cat conftest.s >&5
11256     fi
11257     rm -f conftest.o conftest.s
11258   fi
11259 fi
11260 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11261 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11262 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11263
11264 cat >>confdefs.h <<\_ACEOF
11265 #define HAVE_AS_OFFSETABLE_LO10 1
11266 _ACEOF
11267
11268 fi
11269     ;;
11270
11271   i[34567]86-*-* | x86_64-*-*)
11272     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11273 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11274 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11275   echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277   gcc_cv_as_ix86_filds_fists=no
11278     if test $in_tree_gas = yes; then
11279     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11280   then gcc_cv_as_ix86_filds_fists=yes
11281 fi
11282   elif test x$gcc_cv_as != x; then
11283     echo 'filds mem; fists mem' > conftest.s
11284     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286   (eval $ac_try) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); }; }
11290     then
11291         gcc_cv_as_ix86_filds_fists=yes
11292     else
11293       echo "configure: failed program was" >&5
11294       cat conftest.s >&5
11295     fi
11296     rm -f conftest.o conftest.s
11297   fi
11298 fi
11299 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11300 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11301 if test $gcc_cv_as_ix86_filds_fists = yes; then
11302
11303 cat >>confdefs.h <<\_ACEOF
11304 #define HAVE_GAS_FILDS_FISTS 1
11305 _ACEOF
11306
11307 fi
11308
11309     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11310 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11311 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11312   echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314   gcc_cv_as_ix86_cmov_sun_syntax=no
11315   if test x$gcc_cv_as != x; then
11316     echo 'cmovl.l %edx, %eax' > conftest.s
11317     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319   (eval $ac_try) 2>&5
11320   ac_status=$?
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); }; }
11323     then
11324         gcc_cv_as_ix86_cmov_sun_syntax=yes
11325     else
11326       echo "configure: failed program was" >&5
11327       cat conftest.s >&5
11328     fi
11329     rm -f conftest.o conftest.s
11330   fi
11331 fi
11332 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11333 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11334 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11335
11336 cat >>confdefs.h <<\_ACEOF
11337 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11338 _ACEOF
11339
11340 fi
11341
11342     # This one is used unconditionally by i386.[ch]; it is to be defined
11343     # to 1 if the feature is present, 0 otherwise.
11344     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11345 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11346 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11347   echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349   gcc_cv_as_ix86_gotoff_in_data=no
11350     if test $in_tree_gas = yes; then
11351     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11352   then gcc_cv_as_ix86_gotoff_in_data=yes
11353 fi
11354   elif test x$gcc_cv_as != x; then
11355     echo '      .text
11356 .L0:
11357         nop
11358         .data
11359         .long .L0@GOTOFF' > conftest.s
11360     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362   (eval $ac_try) 2>&5
11363   ac_status=$?
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); }; }
11366     then
11367         gcc_cv_as_ix86_gotoff_in_data=yes
11368     else
11369       echo "configure: failed program was" >&5
11370       cat conftest.s >&5
11371     fi
11372     rm -f conftest.o conftest.s
11373   fi
11374 fi
11375 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11376 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11377
11378
11379 cat >>confdefs.h <<_ACEOF
11380 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11381 _ACEOF
11382
11383     ;;
11384
11385   ia64*-*-*)
11386     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11387 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11388 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11389   echo $ECHO_N "(cached) $ECHO_C" >&6
11390 else
11391   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11392     if test $in_tree_gas = yes; then
11393     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11394   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11395 fi
11396   elif test x$gcc_cv_as != x; then
11397     echo '      .text
11398         addl r15 = @ltoffx(x#), gp
11399         ;;
11400         ld8.mov r16 = [r15], x#' > conftest.s
11401     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403   (eval $ac_try) 2>&5
11404   ac_status=$?
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); }; }
11407     then
11408         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11409     else
11410       echo "configure: failed program was" >&5
11411       cat conftest.s >&5
11412     fi
11413     rm -f conftest.o conftest.s
11414   fi
11415 fi
11416 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11417 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11418 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11419
11420 cat >>confdefs.h <<\_ACEOF
11421 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11422 _ACEOF
11423
11424 fi
11425
11426     ;;
11427
11428   powerpc*-*-*)
11429     case $target in
11430       *-*-aix*) conftest_s='    .csect .text[PR]
11431         mfcr 3,128';;
11432       *-*-darwin*) conftest_s=' .text
11433         mfcr r3,128';;
11434       *)       conftest_s='     .text
11435         mfcr 3,128';;
11436     esac
11437
11438     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11439 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11440 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11441   echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443   gcc_cv_as_powerpc_mfcrf=no
11444     if test $in_tree_gas = yes; then
11445     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11446   then gcc_cv_as_powerpc_mfcrf=yes
11447 fi
11448   elif test x$gcc_cv_as != x; then
11449     echo "$conftest_s" > conftest.s
11450     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452   (eval $ac_try) 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; }
11456     then
11457         gcc_cv_as_powerpc_mfcrf=yes
11458     else
11459       echo "configure: failed program was" >&5
11460       cat conftest.s >&5
11461     fi
11462     rm -f conftest.o conftest.s
11463   fi
11464 fi
11465 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11466 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11467 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11468
11469 cat >>confdefs.h <<\_ACEOF
11470 #define HAVE_AS_MFCRF 1
11471 _ACEOF
11472
11473 fi
11474     ;;
11475
11476   mips*-*-*)
11477     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11478 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11479 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11480   echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482   gcc_cv_as_mips_explicit_relocs=no
11483     if test $in_tree_gas = yes; then
11484     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11485   then gcc_cv_as_mips_explicit_relocs=yes
11486 fi
11487   elif test x$gcc_cv_as != x; then
11488     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
11489     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491   (eval $ac_try) 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); }; }
11495     then
11496         gcc_cv_as_mips_explicit_relocs=yes
11497     else
11498       echo "configure: failed program was" >&5
11499       cat conftest.s >&5
11500     fi
11501     rm -f conftest.o conftest.s
11502   fi
11503 fi
11504 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11505 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11506 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11507   if test x$target_cpu_default = x
11508        then target_cpu_default=MASK_EXPLICIT_RELOCS
11509        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11510        fi
11511 fi
11512
11513     ;;
11514 esac
11515 # ??? Not all targets support dwarf2 debug_line, even within a version
11516 # of gas.  Moreover, we need to emit a valid instruction to trigger any
11517 # info to the output file.  So, as supported targets are added to gas 2.11,
11518 # add some instruction here to (also) show we expect this might work.
11519 # ??? Once 2.11 is released, probably need to add first known working
11520 # version to the per-target configury.
11521 case "$target" in
11522   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11523   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11524   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11525     insn="nop"
11526     ;;
11527   ia64*-*-* | s390*-*-*)
11528     insn="nop 0"
11529     ;;
11530   mmix-*-*)
11531     insn="swym 0"
11532     ;;
11533 esac
11534 if test x"$insn" != x; then
11535  conftest_s="\
11536         .file 1 \"conftest.s\"
11537         .loc 1 3 0
11538         $insn"
11539  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11540 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11541 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11542   echo $ECHO_N "(cached) $ECHO_C" >&6
11543 else
11544   gcc_cv_as_dwarf2_debug_line=no
11545     if test $in_tree_gas = yes; then
11546     if test $in_tree_gas_is_elf = yes \
11547   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11548   then gcc_cv_as_dwarf2_debug_line=yes
11549 fi
11550   elif test x$gcc_cv_as != x; then
11551     echo "$conftest_s" > conftest.s
11552     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554   (eval $ac_try) 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); }; }
11558     then
11559         # ??? This fails with non-gnu grep.  Maybe use objdump?
11560    if grep debug_line conftest.o > /dev/null 2>&1; then
11561      gcc_cv_as_dwarf2_debug_line=yes
11562    fi
11563     else
11564       echo "configure: failed program was" >&5
11565       cat conftest.s >&5
11566     fi
11567     rm -f conftest.o conftest.s
11568   fi
11569 fi
11570 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11571 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11572
11573
11574 # The .debug_line file table must be in the exact order that
11575 # we specified the files, since these indices are also used
11576 # by DW_AT_decl_file.  Approximate this test by testing if
11577 # the assembler bitches if the same index is assigned twice.
11578  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11579 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11580 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11581   echo $ECHO_N "(cached) $ECHO_C" >&6
11582 else
11583   gcc_cv_as_dwarf2_file_buggy=no
11584   if test x$gcc_cv_as != x; then
11585     echo '      .file 1 "foo.s"
11586         .file 1 "bar.s"' > conftest.s
11587     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
11588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589   (eval $ac_try) 2>&5
11590   ac_status=$?
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); }; }
11593     then
11594         gcc_cv_as_dwarf2_file_buggy=yes
11595     else
11596       echo "configure: failed program was" >&5
11597       cat conftest.s >&5
11598     fi
11599     rm -f conftest.o conftest.s
11600   fi
11601 fi
11602 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11603 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11604
11605
11606  if test $gcc_cv_as_dwarf2_debug_line = yes \
11607  && test $gcc_cv_as_dwarf2_file_buggy = no; then
11608
11609 cat >>confdefs.h <<\_ACEOF
11610 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11611 _ACEOF
11612
11613  fi
11614
11615  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11616 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11617 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11618   echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620   gcc_cv_as_gdwarf2_flag=no
11621     if test $in_tree_gas = yes; then
11622     if test $in_tree_gas_is_elf = yes \
11623   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11624   then gcc_cv_as_gdwarf2_flag=yes
11625 fi
11626   elif test x$gcc_cv_as != x; then
11627     echo "$insn" > conftest.s
11628     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630   (eval $ac_try) 2>&5
11631   ac_status=$?
11632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); }; }
11634     then
11635         gcc_cv_as_gdwarf2_flag=yes
11636     else
11637       echo "configure: failed program was" >&5
11638       cat conftest.s >&5
11639     fi
11640     rm -f conftest.o conftest.s
11641   fi
11642 fi
11643 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11644 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11645 if test $gcc_cv_as_gdwarf2_flag = yes; then
11646
11647 cat >>confdefs.h <<\_ACEOF
11648 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11649 _ACEOF
11650
11651 fi
11652
11653  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11654 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11655 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11656   echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658   gcc_cv_as_gstabs_flag=no
11659     if test $in_tree_gas = yes; then
11660     if test $in_tree_gas_is_elf = yes \
11661   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11662   then gcc_cv_as_gstabs_flag=yes
11663 fi
11664   elif test x$gcc_cv_as != x; then
11665     echo "$insn" > conftest.s
11666     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668   (eval $ac_try) 2>&5
11669   ac_status=$?
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); }; }
11672     then
11673         # The native Solaris 9/Intel assembler doesn't understand --gstabs
11674    # and warns about it, but still exits successfully.  So check for
11675    # this.
11676    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678   (eval $ac_try) 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); }; }
11682    then :
11683    else gcc_cv_as_gstabs_flag=yes
11684    fi
11685     else
11686       echo "configure: failed program was" >&5
11687       cat conftest.s >&5
11688     fi
11689     rm -f conftest.o conftest.s
11690   fi
11691 fi
11692 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11693 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11694 if test $gcc_cv_as_gstabs_flag = yes; then
11695
11696 cat >>confdefs.h <<\_ACEOF
11697 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11698 _ACEOF
11699
11700 fi
11701 fi
11702
11703 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11704 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11705 gcc_cv_ld_ro_rw_mix=unknown
11706 if test $in_tree_ld = yes ; then
11707   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 \
11708      && test $in_tree_ld_is_elf = yes; then
11709     gcc_cv_ld_ro_rw_mix=read-write
11710   fi
11711 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11712   echo '.section myfoosect, "a"' > conftest1.s
11713   echo '.section myfoosect, "aw"' > conftest2.s
11714   echo '.byte 1' >> conftest2.s
11715   echo '.section myfoosect, "a"' > conftest3.s
11716   echo '.byte 0' >> conftest3.s
11717   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11718      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11719      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11720      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11721         conftest2.o conftest3.o > /dev/null 2>&1; then
11722     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11723                          | sed -e '/myfoosect/!d' -e N`
11724     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11725       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11726         gcc_cv_ld_ro_rw_mix=read-only
11727       else
11728         gcc_cv_ld_ro_rw_mix=read-write
11729       fi
11730     fi
11731   fi
11732   rm -f conftest.* conftest[123].*
11733 fi
11734 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11735
11736 cat >>confdefs.h <<\_ACEOF
11737 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11738 _ACEOF
11739
11740 fi
11741 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11742 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11743
11744 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11745 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11746 gcc_cv_ld_eh_frame_hdr=no
11747 if test $in_tree_ld = yes ; then
11748   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 \
11749      && test $in_tree_ld_is_elf = yes; then
11750     gcc_cv_ld_eh_frame_hdr=yes
11751   fi
11752 elif test x$gcc_cv_ld != x; then
11753         # Check if linker supports --eh-frame-hdr option
11754         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11755                 gcc_cv_ld_eh_frame_hdr=yes
11756         fi
11757 fi
11758 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11759
11760 cat >>confdefs.h <<\_ACEOF
11761 #define HAVE_LD_EH_FRAME_HDR 1
11762 _ACEOF
11763
11764 fi
11765 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11766 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11767
11768 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11769 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11770 gcc_cv_ld_pie=no
11771 if test $in_tree_ld = yes ; then
11772   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 \
11773      && test $in_tree_ld_is_elf = yes; then
11774     gcc_cv_ld_pie=yes
11775   fi
11776 elif test x$gcc_cv_ld != x; then
11777         # Check if linker supports -pie option
11778         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11779                 gcc_cv_ld_pie=yes
11780         fi
11781 fi
11782 if test x"$gcc_cv_ld_pie" = xyes; then
11783
11784 cat >>confdefs.h <<\_ACEOF
11785 #define HAVE_LD_PIE 1
11786 _ACEOF
11787
11788 fi
11789 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11790 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11791
11792 # --------
11793 # UNSORTED
11794 # --------
11795
11796 if test x$with_sysroot = x && test x$host = x$target \
11797    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11798
11799 cat >>confdefs.h <<_ACEOF
11800 #define PREFIX_INCLUDE_DIR "$prefix/include"
11801 _ACEOF
11802
11803 fi
11804
11805 # Find out what GC implementation we want, or may, use.
11806
11807 # Check whether --with-gc or --without-gc was given.
11808 if test "${with_gc+set}" = set; then
11809   withval="$with_gc"
11810   case "$withval" in
11811   page | zone)
11812     GGC=ggc-$withval
11813     ;;
11814   *)
11815     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11816 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11817    { (exit 1); exit 1; }; }
11818     ;;
11819 esac
11820 else
11821   GGC=ggc-page
11822 fi;
11823
11824 echo "Using $GGC for garbage collection."
11825
11826 # Use the system's zlib library.
11827 zlibdir=-L../zlib
11828 zlibinc="-I\$(srcdir)/../zlib"
11829
11830 # Check whether --with-system-zlib or --without-system-zlib was given.
11831 if test "${with_system_zlib+set}" = set; then
11832   withval="$with_system_zlib"
11833   zlibdir=
11834 zlibinc=
11835
11836 fi;
11837
11838
11839
11840
11841 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11842 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11843     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11844 if test "${enable_maintainer_mode+set}" = set; then
11845   enableval="$enable_maintainer_mode"
11846   maintainer_mode=$enableval
11847 else
11848   maintainer_mode=no
11849 fi;
11850
11851 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11852 echo "${ECHO_T}$maintainer_mode" >&6
11853
11854 if test "$maintainer_mode" = "yes"; then
11855   MAINT=''
11856 else
11857   MAINT='#'
11858 fi
11859
11860 # --------------
11861 # Language hooks
11862 # --------------
11863
11864 # Make empty files to contain the specs and options for each language.
11865 # Then add #include lines to for a compiler that has specs and/or options.
11866
11867 lang_opt_files=
11868 lang_specs_files=
11869 lang_tree_files=
11870 for subdir in . $subdirs
11871 do
11872         if test -f $srcdir/$subdir/lang.opt; then
11873             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11874         fi
11875         if test -f $srcdir/$subdir/lang-specs.h; then
11876             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11877         fi
11878         if test -f $srcdir/$subdir/$subdir-tree.def; then
11879             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11880         fi
11881 done
11882
11883 # These (without "all_") are set in each config-lang.in.
11884 # `language' must be a single word so is spelled singularly.
11885 all_languages=
11886 all_boot_languages=
11887 all_compilers=
11888 all_stagestuff=
11889 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11890 # List of language makefile fragments.
11891 all_lang_makefrags=
11892 # List of language subdirectory makefiles.  Deprecated.
11893 all_lang_makefiles=
11894 # Files for gengtype
11895 all_gtfiles="$target_gtfiles"
11896 # Files for gengtype with language
11897 all_gtfiles_files_langs=
11898 all_gtfiles_files_files=
11899
11900 # Add the language fragments.
11901 # Languages are added via two mechanisms.  Some information must be
11902 # recorded in makefile variables, these are defined in config-lang.in.
11903 # We accumulate them and plug them into the main Makefile.
11904 # The other mechanism is a set of hooks for each of the main targets
11905 # like `clean', `install', etc.
11906
11907 language_hooks="Make-hooks"
11908
11909 for s in $subdirs
11910 do
11911                 language=
11912                 boot_language=
11913                 compilers=
11914                 stagestuff=
11915                 outputs=
11916                 gtfiles=
11917                 . ${srcdir}/$s/config-lang.in
11918                 if test "x$language" = x
11919                 then
11920                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11921                         exit 1
11922                 fi
11923                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11924                 if test -f ${srcdir}/$s/Makefile.in
11925                 then all_lang_makefiles="$s/Makefile"
11926                 fi
11927                 all_languages="$all_languages $language"
11928                 if test "x$boot_language" = xyes
11929                 then
11930                         all_boot_languages="$all_boot_languages $language"
11931                 fi
11932                 all_compilers="$all_compilers $compilers"
11933                 all_stagestuff="$all_stagestuff $stagestuff"
11934                 all_outputs="$all_outputs $outputs"
11935                 all_gtfiles="$all_gtfiles $gtfiles"
11936                 for f in $gtfiles
11937                 do
11938                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11939                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11940                 done
11941 done
11942
11943 # Pick up gtfiles for c
11944 gtfiles=
11945 s="c"
11946 . ${srcdir}/c-config-lang.in
11947 all_gtfiles="$all_gtfiles $gtfiles"
11948 for f in $gtfiles
11949 do
11950         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11951         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11952 done
11953
11954 check_languages=
11955 for language in $all_languages
11956 do
11957                 check_languages="$check_languages check-$language"
11958 done
11959
11960 # We link each language in with a set of hooks, reached indirectly via
11961 # lang.${target}.
11962
11963 rm -f Make-hooks
11964 touch Make-hooks
11965 target_list="all.build all.cross start.encap rest.encap tags \
11966         install-normal install-common install-man \
11967         uninstall info man srcextra srcman srcinfo \
11968         mostlyclean clean distclean maintainer-clean \
11969         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11970 for t in $target_list
11971 do
11972         x=
11973         for lang in $all_languages
11974         do
11975                         x="$x $lang.$t"
11976         done
11977         echo "lang.$t: $x" >> Make-hooks
11978 done
11979
11980 # --------
11981 # UNSORTED
11982 # --------
11983
11984 # Create .gdbinit.
11985
11986 echo "dir ." > .gdbinit
11987 echo "dir ${srcdir}" >> .gdbinit
11988 if test x$gdb_needs_out_file_path = xyes
11989 then
11990         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11991 fi
11992 if test "x$subdirs" != x; then
11993         for s in $subdirs
11994         do
11995                 echo "dir ${srcdir}/$s" >> .gdbinit
11996         done
11997 fi
11998 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11999
12000 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12001 # absolute path for gcc_tooldir based on inserting the number of up-directory
12002 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12003 # $(libsubdir)/@(unlibsubdir) based path.
12004 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12005 # make and thus we'd get different behavior depending on where we built the
12006 # sources.
12007 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12008     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12009 else
12010 # An explanation of the sed strings:
12011 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
12012 #  -e 's|/$||'            match a trailing forward slash and eliminates it
12013 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
12014 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
12015 #
12016 # (*) Note this pattern overwrites the first character of the string
12017 # with a forward slash if one is not already present.  This is not a
12018 # problem because the exact names of the sub-directories concerned is
12019 # unimportant, just the number of them matters.
12020 #
12021 # The practical upshot of these patterns is like this:
12022 #
12023 #  prefix     exec_prefix        result
12024 #  ------     -----------        ------
12025 #   /foo        /foo/bar          ../
12026 #   /foo/       /foo/bar          ../
12027 #   /foo        /foo/bar/         ../
12028 #   /foo/       /foo/bar/         ../
12029 #   /foo        /foo/bar/ugg      ../../
12030 #
12031     dollar='$$'
12032     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12033 fi
12034
12035
12036
12037 # Find a directory in which to install a shared libgcc.
12038
12039 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12040 if test "${enable_version_specific_runtime_libs+set}" = set; then
12041   enableval="$enable_version_specific_runtime_libs"
12042
12043 fi;
12044
12045
12046 # Check whether --with-slibdir or --without-slibdir was given.
12047 if test "${with_slibdir+set}" = set; then
12048   withval="$with_slibdir"
12049   slibdir="$with_slibdir"
12050 else
12051   if test "${enable_version_specific_runtime_libs+set}" = set; then
12052   slibdir='$(libsubdir)'
12053 elif test "$host" != "$target"; then
12054   slibdir='$(build_tooldir)/lib'
12055 else
12056   slibdir='$(libdir)'
12057 fi
12058 fi;
12059
12060
12061 objdir=`${PWDCMD-pwd}`
12062
12063
12064 # Substitute configuration variables
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133 # If it doesn't already exist, create document directory
12134 echo "checking for the document directory." 1>&2
12135 if test -d doc ; then
12136   true
12137 else
12138   mkdir doc
12139 fi
12140
12141 # Echo link setup.
12142 if test x${build} = x${host} ; then
12143   if test x${host} = x${target} ; then
12144     echo "Links are now set up to build a native compiler for ${target}." 1>&2
12145   else
12146     echo "Links are now set up to build a cross-compiler" 1>&2
12147     echo " from ${host} to ${target}." 1>&2
12148   fi
12149 else
12150   if test x${host} = x${target} ; then
12151     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12152     echo " for ${target}." 1>&2
12153   else
12154     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12155     echo " from ${host} to ${target}." 1>&2
12156   fi
12157 fi
12158
12159 # Configure the subdirectories
12160 # AC_CONFIG_SUBDIRS($subdirs)
12161
12162 # Create the Makefile
12163 # and configure language subdirectories
12164           ac_config_files="$ac_config_files $all_outputs"
12165
12166
12167           ac_config_commands="$ac_config_commands default"
12168
12169 cat >confcache <<\_ACEOF
12170 # This file is a shell script that caches the results of configure
12171 # tests run on this system so they can be shared between configure
12172 # scripts and configure runs, see configure's option --config-cache.
12173 # It is not useful on other systems.  If it contains results you don't
12174 # want to keep, you may remove or edit it.
12175 #
12176 # config.status only pays attention to the cache file if you give it
12177 # the --recheck option to rerun configure.
12178 #
12179 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12180 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12181 # following values.
12182
12183 _ACEOF
12184
12185 # The following way of writing the cache mishandles newlines in values,
12186 # but we know of no workaround that is simple, portable, and efficient.
12187 # So, don't put newlines in cache variables' values.
12188 # Ultrix sh set writes to stderr and can't be redirected directly,
12189 # and sets the high bit in the cache file unless we assign to the vars.
12190 {
12191   (set) 2>&1 |
12192     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12193     *ac_space=\ *)
12194       # `set' does not quote correctly, so add quotes (double-quote
12195       # substitution turns \\\\ into \\, and sed turns \\ into \).
12196       sed -n \
12197         "s/'/'\\\\''/g;
12198           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12199       ;;
12200     *)
12201       # `set' quotes correctly as required by POSIX, so do not add quotes.
12202       sed -n \
12203         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12204       ;;
12205     esac;
12206 } |
12207   sed '
12208      t clear
12209      : clear
12210      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12211      t end
12212      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12213      : end' >>confcache
12214 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12215   if test -w $cache_file; then
12216     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12217     cat confcache >$cache_file
12218   else
12219     echo "not updating unwritable cache $cache_file"
12220   fi
12221 fi
12222 rm -f confcache
12223
12224 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12225 # Let make expand exec_prefix.
12226 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12227
12228 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12229 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12230 # trailing colons and then remove the whole line if VPATH becomes empty
12231 # (actually we leave an empty line to preserve line numbers).
12232 if test "x$srcdir" = x.; then
12233   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12234 s/:*\$(srcdir):*/:/;
12235 s/:*\${srcdir}:*/:/;
12236 s/:*@srcdir@:*/:/;
12237 s/^\([^=]*=[     ]*\):*/\1/;
12238 s/:*$//;
12239 s/^[^=]*=[       ]*$//;
12240 }'
12241 fi
12242
12243 DEFS=-DHAVE_CONFIG_H
12244
12245 ac_libobjs=
12246 ac_ltlibobjs=
12247 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12248   # 1. Remove the extension, and $U if already installed.
12249   ac_i=`echo "$ac_i" |
12250          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12251   # 2. Add them.
12252   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12253   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12254 done
12255 LIBOBJS=$ac_libobjs
12256
12257 LTLIBOBJS=$ac_ltlibobjs
12258
12259
12260
12261 : ${CONFIG_STATUS=./config.status}
12262 ac_clean_files_save=$ac_clean_files
12263 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12264 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12265 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12266 cat >$CONFIG_STATUS <<_ACEOF
12267 #! $SHELL
12268 # Generated by $as_me.
12269 # Run this file to recreate the current configuration.
12270 # Compiler output produced by configure, useful for debugging
12271 # configure, is in config.log if it exists.
12272
12273 debug=false
12274 ac_cs_recheck=false
12275 ac_cs_silent=false
12276 SHELL=\${CONFIG_SHELL-$SHELL}
12277 _ACEOF
12278
12279 cat >>$CONFIG_STATUS <<\_ACEOF
12280 ## --------------------- ##
12281 ## M4sh Initialization.  ##
12282 ## --------------------- ##
12283
12284 # Be Bourne compatible
12285 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12286   emulate sh
12287   NULLCMD=:
12288   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12289   # is contrary to our usage.  Disable this feature.
12290   alias -g '${1+"$@"}'='"$@"'
12291 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12292   set -o posix
12293 fi
12294 DUALCASE=1; export DUALCASE # for MKS sh
12295
12296 # Support unset when possible.
12297 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12298   as_unset=unset
12299 else
12300   as_unset=false
12301 fi
12302
12303
12304 # Work around bugs in pre-3.0 UWIN ksh.
12305 $as_unset ENV MAIL MAILPATH
12306 PS1='$ '
12307 PS2='> '
12308 PS4='+ '
12309
12310 # NLS nuisances.
12311 for as_var in \
12312   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12313   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12314   LC_TELEPHONE LC_TIME
12315 do
12316   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12317     eval $as_var=C; export $as_var
12318   else
12319     $as_unset $as_var
12320   fi
12321 done
12322
12323 # Required to use basename.
12324 if expr a : '\(a\)' >/dev/null 2>&1; then
12325   as_expr=expr
12326 else
12327   as_expr=false
12328 fi
12329
12330 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12331   as_basename=basename
12332 else
12333   as_basename=false
12334 fi
12335
12336
12337 # Name of the executable.
12338 as_me=`$as_basename "$0" ||
12339 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12340          X"$0" : 'X\(//\)$' \| \
12341          X"$0" : 'X\(/\)$' \| \
12342          .     : '\(.\)' 2>/dev/null ||
12343 echo X/"$0" |
12344     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12345           /^X\/\(\/\/\)$/{ s//\1/; q; }
12346           /^X\/\(\/\).*/{ s//\1/; q; }
12347           s/.*/./; q'`
12348
12349
12350 # PATH needs CR, and LINENO needs CR and PATH.
12351 # Avoid depending upon Character Ranges.
12352 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12353 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12354 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12355 as_cr_digits='0123456789'
12356 as_cr_alnum=$as_cr_Letters$as_cr_digits
12357
12358 # The user is always right.
12359 if test "${PATH_SEPARATOR+set}" != set; then
12360   echo "#! /bin/sh" >conf$$.sh
12361   echo  "exit 0"   >>conf$$.sh
12362   chmod +x conf$$.sh
12363   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12364     PATH_SEPARATOR=';'
12365   else
12366     PATH_SEPARATOR=:
12367   fi
12368   rm -f conf$$.sh
12369 fi
12370
12371
12372   as_lineno_1=$LINENO
12373   as_lineno_2=$LINENO
12374   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12375   test "x$as_lineno_1" != "x$as_lineno_2" &&
12376   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12377   # Find who we are.  Look in the path if we contain no path at all
12378   # relative or not.
12379   case $0 in
12380     *[\\/]* ) as_myself=$0 ;;
12381     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12383 do
12384   IFS=$as_save_IFS
12385   test -z "$as_dir" && as_dir=.
12386   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12387 done
12388
12389        ;;
12390   esac
12391   # We did not find ourselves, most probably we were run as `sh COMMAND'
12392   # in which case we are not to be found in the path.
12393   if test "x$as_myself" = x; then
12394     as_myself=$0
12395   fi
12396   if test ! -f "$as_myself"; then
12397     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12398 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12399    { (exit 1); exit 1; }; }
12400   fi
12401   case $CONFIG_SHELL in
12402   '')
12403     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12405 do
12406   IFS=$as_save_IFS
12407   test -z "$as_dir" && as_dir=.
12408   for as_base in sh bash ksh sh5; do
12409          case $as_dir in
12410          /*)
12411            if ("$as_dir/$as_base" -c '
12412   as_lineno_1=$LINENO
12413   as_lineno_2=$LINENO
12414   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12415   test "x$as_lineno_1" != "x$as_lineno_2" &&
12416   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12417              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12418              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12419              CONFIG_SHELL=$as_dir/$as_base
12420              export CONFIG_SHELL
12421              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12422            fi;;
12423          esac
12424        done
12425 done
12426 ;;
12427   esac
12428
12429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12430   # uniformly replaced by the line number.  The first 'sed' inserts a
12431   # line-number line before each line; the second 'sed' does the real
12432   # work.  The second script uses 'N' to pair each line-number line
12433   # with the numbered line, and appends trailing '-' during
12434   # substitution so that $LINENO is not a special case at line end.
12435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12436   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12437   sed '=' <$as_myself |
12438     sed '
12439       N
12440       s,$,-,
12441       : loop
12442       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12443       t loop
12444       s,-$,,
12445       s,^['$as_cr_digits']*\n,,
12446     ' >$as_me.lineno &&
12447   chmod +x $as_me.lineno ||
12448     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12449 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12450    { (exit 1); exit 1; }; }
12451
12452   # Don't try to exec as it changes $[0], causing all sort of problems
12453   # (the dirname of $[0] is not the place where we might find the
12454   # original and so on.  Autoconf is especially sensible to this).
12455   . ./$as_me.lineno
12456   # Exit status is that of the last command.
12457   exit
12458 }
12459
12460
12461 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12462   *c*,-n*) ECHO_N= ECHO_C='
12463 ' ECHO_T='      ' ;;
12464   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12465   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12466 esac
12467
12468 if expr a : '\(a\)' >/dev/null 2>&1; then
12469   as_expr=expr
12470 else
12471   as_expr=false
12472 fi
12473
12474 rm -f conf$$ conf$$.exe conf$$.file
12475 echo >conf$$.file
12476 if ln -s conf$$.file conf$$ 2>/dev/null; then
12477   # We could just check for DJGPP; but this test a) works b) is more generic
12478   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12479   if test -f conf$$.exe; then
12480     # Don't use ln at all; we don't have any links
12481     as_ln_s='cp -p'
12482   else
12483     as_ln_s='ln -s'
12484   fi
12485 elif ln conf$$.file conf$$ 2>/dev/null; then
12486   as_ln_s=ln
12487 else
12488   as_ln_s='cp -p'
12489 fi
12490 rm -f conf$$ conf$$.exe conf$$.file
12491
12492 if mkdir -p . 2>/dev/null; then
12493   as_mkdir_p=:
12494 else
12495   test -d ./-p && rmdir ./-p
12496   as_mkdir_p=false
12497 fi
12498
12499 as_executable_p="test -f"
12500
12501 # Sed expression to map a string onto a valid CPP name.
12502 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12503
12504 # Sed expression to map a string onto a valid variable name.
12505 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12506
12507
12508 # IFS
12509 # We need space, tab and new line, in precisely that order.
12510 as_nl='
12511 '
12512 IFS="   $as_nl"
12513
12514 # CDPATH.
12515 $as_unset CDPATH
12516
12517 exec 6>&1
12518
12519 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12520 # report actual input values of CONFIG_FILES etc. instead of their
12521 # values after options handling.  Logging --version etc. is OK.
12522 exec 5>>config.log
12523 {
12524   echo
12525   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12526 ## Running $as_me. ##
12527 _ASBOX
12528 } >&5
12529 cat >&5 <<_CSEOF
12530
12531 This file was extended by $as_me, which was
12532 generated by GNU Autoconf 2.59.  Invocation command line was
12533
12534   CONFIG_FILES    = $CONFIG_FILES
12535   CONFIG_HEADERS  = $CONFIG_HEADERS
12536   CONFIG_LINKS    = $CONFIG_LINKS
12537   CONFIG_COMMANDS = $CONFIG_COMMANDS
12538   $ $0 $@
12539
12540 _CSEOF
12541 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12542 echo >&5
12543 _ACEOF
12544
12545 # Files that config.status was made for.
12546 if test -n "$ac_config_files"; then
12547   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12548 fi
12549
12550 if test -n "$ac_config_headers"; then
12551   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12552 fi
12553
12554 if test -n "$ac_config_links"; then
12555   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12556 fi
12557
12558 if test -n "$ac_config_commands"; then
12559   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12560 fi
12561
12562 cat >>$CONFIG_STATUS <<\_ACEOF
12563
12564 ac_cs_usage="\
12565 \`$as_me' instantiates files from templates according to the
12566 current configuration.
12567
12568 Usage: $0 [OPTIONS] [FILE]...
12569
12570   -h, --help       print this help, then exit
12571   -V, --version    print version number, then exit
12572   -q, --quiet      do not print progress messages
12573   -d, --debug      don't remove temporary files
12574       --recheck    update $as_me by reconfiguring in the same conditions
12575   --file=FILE[:TEMPLATE]
12576                    instantiate the configuration file FILE
12577   --header=FILE[:TEMPLATE]
12578                    instantiate the configuration header FILE
12579
12580 Configuration files:
12581 $config_files
12582
12583 Configuration headers:
12584 $config_headers
12585
12586 Configuration commands:
12587 $config_commands
12588
12589 Report bugs to <bug-autoconf@gnu.org>."
12590 _ACEOF
12591
12592 cat >>$CONFIG_STATUS <<_ACEOF
12593 ac_cs_version="\\
12594 config.status
12595 configured by $0, generated by GNU Autoconf 2.59,
12596   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12597
12598 Copyright (C) 2003 Free Software Foundation, Inc.
12599 This config.status script is free software; the Free Software Foundation
12600 gives unlimited permission to copy, distribute and modify it."
12601 srcdir=$srcdir
12602 _ACEOF
12603
12604 cat >>$CONFIG_STATUS <<\_ACEOF
12605 # If no file are specified by the user, then we need to provide default
12606 # value.  By we need to know if files were specified by the user.
12607 ac_need_defaults=:
12608 while test $# != 0
12609 do
12610   case $1 in
12611   --*=*)
12612     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12613     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12614     ac_shift=:
12615     ;;
12616   -*)
12617     ac_option=$1
12618     ac_optarg=$2
12619     ac_shift=shift
12620     ;;
12621   *) # This is not an option, so the user has probably given explicit
12622      # arguments.
12623      ac_option=$1
12624      ac_need_defaults=false;;
12625   esac
12626
12627   case $ac_option in
12628   # Handling of the options.
12629 _ACEOF
12630 cat >>$CONFIG_STATUS <<\_ACEOF
12631   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12632     ac_cs_recheck=: ;;
12633   --version | --vers* | -V )
12634     echo "$ac_cs_version"; exit 0 ;;
12635   --he | --h)
12636     # Conflict between --help and --header
12637     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12638 Try \`$0 --help' for more information." >&5
12639 echo "$as_me: error: ambiguous option: $1
12640 Try \`$0 --help' for more information." >&2;}
12641    { (exit 1); exit 1; }; };;
12642   --help | --hel | -h )
12643     echo "$ac_cs_usage"; exit 0 ;;
12644   --debug | --d* | -d )
12645     debug=: ;;
12646   --file | --fil | --fi | --f )
12647     $ac_shift
12648     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12649     ac_need_defaults=false;;
12650   --header | --heade | --head | --hea )
12651     $ac_shift
12652     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12653     ac_need_defaults=false;;
12654   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12655   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12656     ac_cs_silent=: ;;
12657
12658   # This is an error.
12659   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12660 Try \`$0 --help' for more information." >&5
12661 echo "$as_me: error: unrecognized option: $1
12662 Try \`$0 --help' for more information." >&2;}
12663    { (exit 1); exit 1; }; } ;;
12664
12665   *) ac_config_targets="$ac_config_targets $1" ;;
12666
12667   esac
12668   shift
12669 done
12670
12671 ac_configure_extra_args=
12672
12673 if $ac_cs_silent; then
12674   exec 6>/dev/null
12675   ac_configure_extra_args="$ac_configure_extra_args --silent"
12676 fi
12677
12678 _ACEOF
12679 cat >>$CONFIG_STATUS <<_ACEOF
12680 if \$ac_cs_recheck; then
12681   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12682   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12683 fi
12684
12685 _ACEOF
12686
12687 cat >>$CONFIG_STATUS <<_ACEOF
12688 #
12689 # INIT-COMMANDS section.
12690 #
12691
12692 subdirs='$subdirs'
12693 symbolic_link='$symbolic_link'
12694
12695
12696 _ACEOF
12697
12698
12699
12700 cat >>$CONFIG_STATUS <<\_ACEOF
12701 for ac_config_target in $ac_config_targets
12702 do
12703   case "$ac_config_target" in
12704   # Handling of arguments.
12705   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12706   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12707   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12708   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12709 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12710    { (exit 1); exit 1; }; };;
12711   esac
12712 done
12713
12714 # If the user did not use the arguments to specify the items to instantiate,
12715 # then the envvar interface is used.  Set only those that are not.
12716 # We use the long form for the default assignment because of an extremely
12717 # bizarre bug on SunOS 4.1.3.
12718 if $ac_need_defaults; then
12719   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12720   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12721   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12722 fi
12723
12724 # Have a temporary directory for convenience.  Make it in the build tree
12725 # simply because there is no reason to put it here, and in addition,
12726 # creating and moving files from /tmp can sometimes cause problems.
12727 # Create a temporary directory, and hook for its removal unless debugging.
12728 $debug ||
12729 {
12730   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12731   trap '{ (exit 1); exit 1; }' 1 2 13 15
12732 }
12733
12734 # Create a (secure) tmp directory for tmp files.
12735
12736 {
12737   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12738   test -n "$tmp" && test -d "$tmp"
12739 }  ||
12740 {
12741   tmp=./confstat$$-$RANDOM
12742   (umask 077 && mkdir $tmp)
12743 } ||
12744 {
12745    echo "$me: cannot create a temporary directory in ." >&2
12746    { (exit 1); exit 1; }
12747 }
12748
12749 _ACEOF
12750
12751 cat >>$CONFIG_STATUS <<_ACEOF
12752
12753 #
12754 # CONFIG_FILES section.
12755 #
12756
12757 # No need to generate the scripts if there are no CONFIG_FILES.
12758 # This happens for instance when ./config.status config.h
12759 if test -n "\$CONFIG_FILES"; then
12760   # Protect against being on the right side of a sed subst in config.status.
12761   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12762    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12763 s,@SHELL@,$SHELL,;t t
12764 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12765 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12766 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12767 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12768 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12769 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12770 s,@exec_prefix@,$exec_prefix,;t t
12771 s,@prefix@,$prefix,;t t
12772 s,@program_transform_name@,$program_transform_name,;t t
12773 s,@bindir@,$bindir,;t t
12774 s,@sbindir@,$sbindir,;t t
12775 s,@libexecdir@,$libexecdir,;t t
12776 s,@datadir@,$datadir,;t t
12777 s,@sysconfdir@,$sysconfdir,;t t
12778 s,@sharedstatedir@,$sharedstatedir,;t t
12779 s,@localstatedir@,$localstatedir,;t t
12780 s,@libdir@,$libdir,;t t
12781 s,@includedir@,$includedir,;t t
12782 s,@oldincludedir@,$oldincludedir,;t t
12783 s,@infodir@,$infodir,;t t
12784 s,@mandir@,$mandir,;t t
12785 s,@build_alias@,$build_alias,;t t
12786 s,@host_alias@,$host_alias,;t t
12787 s,@target_alias@,$target_alias,;t t
12788 s,@DEFS@,$DEFS,;t t
12789 s,@ECHO_C@,$ECHO_C,;t t
12790 s,@ECHO_N@,$ECHO_N,;t t
12791 s,@ECHO_T@,$ECHO_T,;t t
12792 s,@LIBS@,$LIBS,;t t
12793 s,@build@,$build,;t t
12794 s,@build_cpu@,$build_cpu,;t t
12795 s,@build_vendor@,$build_vendor,;t t
12796 s,@build_os@,$build_os,;t t
12797 s,@host@,$host,;t t
12798 s,@host_cpu@,$host_cpu,;t t
12799 s,@host_vendor@,$host_vendor,;t t
12800 s,@host_os@,$host_os,;t t
12801 s,@target@,$target,;t t
12802 s,@target_cpu@,$target_cpu,;t t
12803 s,@target_vendor@,$target_vendor,;t t
12804 s,@target_os@,$target_os,;t t
12805 s,@build_subdir@,$build_subdir,;t t
12806 s,@host_subdir@,$host_subdir,;t t
12807 s,@target_subdir@,$target_subdir,;t t
12808 s,@GENINSRC@,$GENINSRC,;t t
12809 s,@CC@,$CC,;t t
12810 s,@CFLAGS@,$CFLAGS,;t t
12811 s,@LDFLAGS@,$LDFLAGS,;t t
12812 s,@CPPFLAGS@,$CPPFLAGS,;t t
12813 s,@ac_ct_CC@,$ac_ct_CC,;t t
12814 s,@EXEEXT@,$EXEEXT,;t t
12815 s,@OBJEXT@,$OBJEXT,;t t
12816 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12817 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12818 s,@CPP@,$CPP,;t t
12819 s,@strict1_warn@,$strict1_warn,;t t
12820 s,@warn_cflags@,$warn_cflags,;t t
12821 s,@WERROR@,$WERROR,;t t
12822 s,@nocommon_flag@,$nocommon_flag,;t t
12823 s,@EGREP@,$EGREP,;t t
12824 s,@valgrind_path@,$valgrind_path,;t t
12825 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12826 s,@valgrind_command@,$valgrind_command,;t t
12827 s,@coverage_flags@,$coverage_flags,;t t
12828 s,@enable_multilib@,$enable_multilib,;t t
12829 s,@enable_shared@,$enable_shared,;t t
12830 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12831 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12832 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12833 s,@onestep@,$onestep,;t t
12834 s,@SET_MAKE@,$SET_MAKE,;t t
12835 s,@AWK@,$AWK,;t t
12836 s,@LN@,$LN,;t t
12837 s,@LN_S@,$LN_S,;t t
12838 s,@RANLIB@,$RANLIB,;t t
12839 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12840 s,@INSTALL@,$INSTALL,;t t
12841 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12842 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12843 s,@make_compare_target@,$make_compare_target,;t t
12844 s,@have_mktemp_command@,$have_mktemp_command,;t t
12845 s,@MAKEINFO@,$MAKEINFO,;t t
12846 s,@BUILD_INFO@,$BUILD_INFO,;t t
12847 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12848 s,@FLEX@,$FLEX,;t t
12849 s,@BISON@,$BISON,;t t
12850 s,@stage1_cflags@,$stage1_cflags,;t t
12851 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12852 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12853 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12854 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12855 s,@LIBICONV@,$LIBICONV,;t t
12856 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12857 s,@manext@,$manext,;t t
12858 s,@objext@,$objext,;t t
12859 s,@gthread_flags@,$gthread_flags,;t t
12860 s,@extra_modes_file@,$extra_modes_file,;t t
12861 s,@FORBUILD@,$FORBUILD,;t t
12862 s,@PACKAGE@,$PACKAGE,;t t
12863 s,@VERSION@,$VERSION,;t t
12864 s,@USE_NLS@,$USE_NLS,;t t
12865 s,@LIBINTL@,$LIBINTL,;t t
12866 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12867 s,@INCINTL@,$INCINTL,;t t
12868 s,@XGETTEXT@,$XGETTEXT,;t t
12869 s,@GMSGFMT@,$GMSGFMT,;t t
12870 s,@POSUB@,$POSUB,;t t
12871 s,@CATALOGS@,$CATALOGS,;t t
12872 s,@CROSS@,$CROSS,;t t
12873 s,@ALL@,$ALL,;t t
12874 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12875 s,@inhibit_libc@,$inhibit_libc,;t t
12876 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12877 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12878 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12879 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12880 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12881 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12882 s,@libgcc_visibility@,$libgcc_visibility,;t t
12883 s,@GGC@,$GGC,;t t
12884 s,@zlibdir@,$zlibdir,;t t
12885 s,@zlibinc@,$zlibinc,;t t
12886 s,@MAINT@,$MAINT,;t t
12887 s,@gcc_tooldir@,$gcc_tooldir,;t t
12888 s,@dollar@,$dollar,;t t
12889 s,@slibdir@,$slibdir,;t t
12890 s,@objdir@,$objdir,;t t
12891 s,@subdirs@,$subdirs,;t t
12892 s,@srcdir@,$srcdir,;t t
12893 s,@all_boot_languages@,$all_boot_languages,;t t
12894 s,@all_compilers@,$all_compilers,;t t
12895 s,@all_gtfiles@,$all_gtfiles,;t t
12896 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12897 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12898 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12899 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12900 s,@all_languages@,$all_languages,;t t
12901 s,@all_stagestuff@,$all_stagestuff,;t t
12902 s,@build_exeext@,$build_exeext,;t t
12903 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12904 s,@build_xm_file_list@,$build_xm_file_list,;t t
12905 s,@build_xm_include_list@,$build_xm_include_list,;t t
12906 s,@build_xm_defines@,$build_xm_defines,;t t
12907 s,@check_languages@,$check_languages,;t t
12908 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12909 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12910 s,@cpp_install_dir@,$cpp_install_dir,;t t
12911 s,@xmake_file@,$xmake_file,;t t
12912 s,@tmake_file@,$tmake_file,;t t
12913 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
12914 s,@extra_headers_list@,$extra_headers_list,;t t
12915 s,@extra_objs@,$extra_objs,;t t
12916 s,@extra_parts@,$extra_parts,;t t
12917 s,@extra_passes@,$extra_passes,;t t
12918 s,@extra_programs@,$extra_programs,;t t
12919 s,@float_h_file@,$float_h_file,;t t
12920 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12921 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12922 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12923 s,@gcc_version@,$gcc_version,;t t
12924 s,@gcc_version_full@,$gcc_version_full,;t t
12925 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12926 s,@host_exeext@,$host_exeext,;t t
12927 s,@host_xm_file_list@,$host_xm_file_list,;t t
12928 s,@host_xm_include_list@,$host_xm_include_list,;t t
12929 s,@host_xm_defines@,$host_xm_defines,;t t
12930 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12931 s,@install@,$install,;t t
12932 s,@lang_opt_files@,$lang_opt_files,;t t
12933 s,@lang_specs_files@,$lang_specs_files,;t t
12934 s,@lang_tree_files@,$lang_tree_files,;t t
12935 s,@local_prefix@,$local_prefix,;t t
12936 s,@md_file@,$md_file,;t t
12937 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12938 s,@out_file@,$out_file,;t t
12939 s,@out_object_file@,$out_object_file,;t t
12940 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12941 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12942 s,@symbolic_link@,$symbolic_link,;t t
12943 s,@thread_file@,$thread_file,;t t
12944 s,@tm_file_list@,$tm_file_list,;t t
12945 s,@tm_include_list@,$tm_include_list,;t t
12946 s,@tm_defines@,$tm_defines,;t t
12947 s,@tm_p_file_list@,$tm_p_file_list,;t t
12948 s,@tm_p_include_list@,$tm_p_include_list,;t t
12949 s,@xm_file_list@,$xm_file_list,;t t
12950 s,@xm_include_list@,$xm_include_list,;t t
12951 s,@xm_defines@,$xm_defines,;t t
12952 s,@target_noncanonical@,$target_noncanonical,;t t
12953 s,@c_target_objs@,$c_target_objs,;t t
12954 s,@cxx_target_objs@,$cxx_target_objs,;t t
12955 s,@target_cpu_default@,$target_cpu_default,;t t
12956 s,@LIBOBJS@,$LIBOBJS,;t t
12957 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12958 /@language_hooks@/r $language_hooks
12959 s,@language_hooks@,,;t t
12960 CEOF
12961
12962 _ACEOF
12963
12964   cat >>$CONFIG_STATUS <<\_ACEOF
12965   # Split the substitutions into bite-sized pieces for seds with
12966   # small command number limits, like on Digital OSF/1 and HP-UX.
12967   ac_max_sed_lines=48
12968   ac_sed_frag=1 # Number of current file.
12969   ac_beg=1 # First line for current file.
12970   ac_end=$ac_max_sed_lines # Line after last line for current file.
12971   ac_more_lines=:
12972   ac_sed_cmds=
12973   while $ac_more_lines; do
12974     if test $ac_beg -gt 1; then
12975       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12976     else
12977       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12978     fi
12979     if test ! -s $tmp/subs.frag; then
12980       ac_more_lines=false
12981     else
12982       # The purpose of the label and of the branching condition is to
12983       # speed up the sed processing (if there are no `@' at all, there
12984       # is no need to browse any of the substitutions).
12985       # These are the two extra sed commands mentioned above.
12986       (echo ':t
12987   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12988       if test -z "$ac_sed_cmds"; then
12989         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12990       else
12991         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12992       fi
12993       ac_sed_frag=`expr $ac_sed_frag + 1`
12994       ac_beg=$ac_end
12995       ac_end=`expr $ac_end + $ac_max_sed_lines`
12996     fi
12997   done
12998   if test -z "$ac_sed_cmds"; then
12999     ac_sed_cmds=cat
13000   fi
13001 fi # test -n "$CONFIG_FILES"
13002
13003 _ACEOF
13004 cat >>$CONFIG_STATUS <<\_ACEOF
13005 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13006   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13007   case $ac_file in
13008   - | *:- | *:-:* ) # input from stdin
13009         cat >$tmp/stdin
13010         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13011         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13012   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13013         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13014   * )   ac_file_in=$ac_file.in ;;
13015   esac
13016
13017   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13018   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13020          X"$ac_file" : 'X\(//\)[^/]' \| \
13021          X"$ac_file" : 'X\(//\)$' \| \
13022          X"$ac_file" : 'X\(/\)' \| \
13023          .     : '\(.\)' 2>/dev/null ||
13024 echo X"$ac_file" |
13025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13026           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13027           /^X\(\/\/\)$/{ s//\1/; q; }
13028           /^X\(\/\).*/{ s//\1/; q; }
13029           s/.*/./; q'`
13030   { if $as_mkdir_p; then
13031     mkdir -p "$ac_dir"
13032   else
13033     as_dir="$ac_dir"
13034     as_dirs=
13035     while test ! -d "$as_dir"; do
13036       as_dirs="$as_dir $as_dirs"
13037       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13039          X"$as_dir" : 'X\(//\)[^/]' \| \
13040          X"$as_dir" : 'X\(//\)$' \| \
13041          X"$as_dir" : 'X\(/\)' \| \
13042          .     : '\(.\)' 2>/dev/null ||
13043 echo X"$as_dir" |
13044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13045           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13046           /^X\(\/\/\)$/{ s//\1/; q; }
13047           /^X\(\/\).*/{ s//\1/; q; }
13048           s/.*/./; q'`
13049     done
13050     test ! -n "$as_dirs" || mkdir $as_dirs
13051   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13052 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13053    { (exit 1); exit 1; }; }; }
13054
13055   ac_builddir=.
13056
13057 if test "$ac_dir" != .; then
13058   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13059   # A "../" for each directory in $ac_dir_suffix.
13060   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13061 else
13062   ac_dir_suffix= ac_top_builddir=
13063 fi
13064
13065 case $srcdir in
13066   .)  # No --srcdir option.  We are building in place.
13067     ac_srcdir=.
13068     if test -z "$ac_top_builddir"; then
13069        ac_top_srcdir=.
13070     else
13071        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13072     fi ;;
13073   [\\/]* | ?:[\\/]* )  # Absolute path.
13074     ac_srcdir=$srcdir$ac_dir_suffix;
13075     ac_top_srcdir=$srcdir ;;
13076   *) # Relative path.
13077     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13078     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13079 esac
13080
13081 # Do not use `cd foo && pwd` to compute absolute paths, because
13082 # the directories may not exist.
13083 case `pwd` in
13084 .) ac_abs_builddir="$ac_dir";;
13085 *)
13086   case "$ac_dir" in
13087   .) ac_abs_builddir=`pwd`;;
13088   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13089   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13090   esac;;
13091 esac
13092 case $ac_abs_builddir in
13093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13094 *)
13095   case ${ac_top_builddir}. in
13096   .) ac_abs_top_builddir=$ac_abs_builddir;;
13097   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13098   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13099   esac;;
13100 esac
13101 case $ac_abs_builddir in
13102 .) ac_abs_srcdir=$ac_srcdir;;
13103 *)
13104   case $ac_srcdir in
13105   .) ac_abs_srcdir=$ac_abs_builddir;;
13106   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13107   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13108   esac;;
13109 esac
13110 case $ac_abs_builddir in
13111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13112 *)
13113   case $ac_top_srcdir in
13114   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13115   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13116   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13117   esac;;
13118 esac
13119
13120
13121
13122   # Let's still pretend it is `configure' which instantiates (i.e., don't
13123   # use $as_me), people would be surprised to read:
13124   #    /* config.h.  Generated by config.status.  */
13125   if test x"$ac_file" = x-; then
13126     configure_input=
13127   else
13128     configure_input="$ac_file.  "
13129   fi
13130   configure_input=$configure_input"Generated from `echo $ac_file_in |
13131                                      sed 's,.*/,,'` by configure."
13132
13133   # First look for the input files in the build tree, otherwise in the
13134   # src tree.
13135   ac_file_inputs=`IFS=:
13136     for f in $ac_file_in; do
13137       case $f in
13138       -) echo $tmp/stdin ;;
13139       [\\/$]*)
13140          # Absolute (can't be DOS-style, as IFS=:)
13141          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13142 echo "$as_me: error: cannot find input file: $f" >&2;}
13143    { (exit 1); exit 1; }; }
13144          echo "$f";;
13145       *) # Relative
13146          if test -f "$f"; then
13147            # Build tree
13148            echo "$f"
13149          elif test -f "$srcdir/$f"; then
13150            # Source tree
13151            echo "$srcdir/$f"
13152          else
13153            # /dev/null tree
13154            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13155 echo "$as_me: error: cannot find input file: $f" >&2;}
13156    { (exit 1); exit 1; }; }
13157          fi;;
13158       esac
13159     done` || { (exit 1); exit 1; }
13160
13161   if test x"$ac_file" != x-; then
13162     { echo "$as_me:$LINENO: creating $ac_file" >&5
13163 echo "$as_me: creating $ac_file" >&6;}
13164     rm -f "$ac_file"
13165   fi
13166 _ACEOF
13167 cat >>$CONFIG_STATUS <<_ACEOF
13168   sed "$ac_vpsub
13169 $extrasub
13170 _ACEOF
13171 cat >>$CONFIG_STATUS <<\_ACEOF
13172 :t
13173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13174 s,@configure_input@,$configure_input,;t t
13175 s,@srcdir@,$ac_srcdir,;t t
13176 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13177 s,@top_srcdir@,$ac_top_srcdir,;t t
13178 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13179 s,@builddir@,$ac_builddir,;t t
13180 s,@abs_builddir@,$ac_abs_builddir,;t t
13181 s,@top_builddir@,$ac_top_builddir,;t t
13182 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13183 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13184   rm -f $tmp/stdin
13185   if test x"$ac_file" != x-; then
13186     mv $tmp/out $ac_file
13187   else
13188     cat $tmp/out
13189     rm -f $tmp/out
13190   fi
13191
13192 done
13193 _ACEOF
13194 cat >>$CONFIG_STATUS <<\_ACEOF
13195
13196 #
13197 # CONFIG_HEADER section.
13198 #
13199
13200 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13201 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13202 #
13203 # ac_d sets the value in "#define NAME VALUE" lines.
13204 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13205 ac_dB='[         ].*$,\1#\2'
13206 ac_dC=' '
13207 ac_dD=',;t'
13208 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13209 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13210 ac_uB='$,\1#\2define\3'
13211 ac_uC=' '
13212 ac_uD=',;t'
13213
13214 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13215   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13216   case $ac_file in
13217   - | *:- | *:-:* ) # input from stdin
13218         cat >$tmp/stdin
13219         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13220         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13221   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13222         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13223   * )   ac_file_in=$ac_file.in ;;
13224   esac
13225
13226   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13227 echo "$as_me: creating $ac_file" >&6;}
13228
13229   # First look for the input files in the build tree, otherwise in the
13230   # src tree.
13231   ac_file_inputs=`IFS=:
13232     for f in $ac_file_in; do
13233       case $f in
13234       -) echo $tmp/stdin ;;
13235       [\\/$]*)
13236          # Absolute (can't be DOS-style, as IFS=:)
13237          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13238 echo "$as_me: error: cannot find input file: $f" >&2;}
13239    { (exit 1); exit 1; }; }
13240          # Do quote $f, to prevent DOS paths from being IFS'd.
13241          echo "$f";;
13242       *) # Relative
13243          if test -f "$f"; then
13244            # Build tree
13245            echo "$f"
13246          elif test -f "$srcdir/$f"; then
13247            # Source tree
13248            echo "$srcdir/$f"
13249          else
13250            # /dev/null tree
13251            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13252 echo "$as_me: error: cannot find input file: $f" >&2;}
13253    { (exit 1); exit 1; }; }
13254          fi;;
13255       esac
13256     done` || { (exit 1); exit 1; }
13257   # Remove the trailing spaces.
13258   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13259
13260 _ACEOF
13261
13262 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13263 # `conftest.undefs', that substitutes the proper values into
13264 # config.h.in to produce config.h.  The first handles `#define'
13265 # templates, and the second `#undef' templates.
13266 # And first: Protect against being on the right side of a sed subst in
13267 # config.status.  Protect against being in an unquoted here document
13268 # in config.status.
13269 rm -f conftest.defines conftest.undefs
13270 # Using a here document instead of a string reduces the quoting nightmare.
13271 # Putting comments in sed scripts is not portable.
13272 #
13273 # `end' is used to avoid that the second main sed command (meant for
13274 # 0-ary CPP macros) applies to n-ary macro definitions.
13275 # See the Autoconf documentation for `clear'.
13276 cat >confdef2sed.sed <<\_ACEOF
13277 s/[\\&,]/\\&/g
13278 s,[\\$`],\\&,g
13279 t clear
13280 : clear
13281 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13282 t end
13283 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13284 : end
13285 _ACEOF
13286 # If some macros were called several times there might be several times
13287 # the same #defines, which is useless.  Nevertheless, we may not want to
13288 # sort them, since we want the *last* AC-DEFINE to be honored.
13289 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13290 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13291 rm -f confdef2sed.sed
13292
13293 # This sed command replaces #undef with comments.  This is necessary, for
13294 # example, in the case of _POSIX_SOURCE, which is predefined and required
13295 # on some systems where configure will not decide to define it.
13296 cat >>conftest.undefs <<\_ACEOF
13297 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13298 _ACEOF
13299
13300 # Break up conftest.defines because some shells have a limit on the size
13301 # of here documents, and old seds have small limits too (100 cmds).
13302 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13303 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13304 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13305 echo '  :' >>$CONFIG_STATUS
13306 rm -f conftest.tail
13307 while grep . conftest.defines >/dev/null
13308 do
13309   # Write a limited-size here document to $tmp/defines.sed.
13310   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13311   # Speed up: don't consider the non `#define' lines.
13312   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13313   # Work around the forget-to-reset-the-flag bug.
13314   echo 't clr' >>$CONFIG_STATUS
13315   echo ': clr' >>$CONFIG_STATUS
13316   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13317   echo 'CEOF
13318   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13319   rm -f $tmp/in
13320   mv $tmp/out $tmp/in
13321 ' >>$CONFIG_STATUS
13322   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13323   rm -f conftest.defines
13324   mv conftest.tail conftest.defines
13325 done
13326 rm -f conftest.defines
13327 echo '  fi # grep' >>$CONFIG_STATUS
13328 echo >>$CONFIG_STATUS
13329
13330 # Break up conftest.undefs because some shells have a limit on the size
13331 # of here documents, and old seds have small limits too (100 cmds).
13332 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13333 rm -f conftest.tail
13334 while grep . conftest.undefs >/dev/null
13335 do
13336   # Write a limited-size here document to $tmp/undefs.sed.
13337   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13338   # Speed up: don't consider the non `#undef'
13339   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13340   # Work around the forget-to-reset-the-flag bug.
13341   echo 't clr' >>$CONFIG_STATUS
13342   echo ': clr' >>$CONFIG_STATUS
13343   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13344   echo 'CEOF
13345   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13346   rm -f $tmp/in
13347   mv $tmp/out $tmp/in
13348 ' >>$CONFIG_STATUS
13349   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13350   rm -f conftest.undefs
13351   mv conftest.tail conftest.undefs
13352 done
13353 rm -f conftest.undefs
13354
13355 cat >>$CONFIG_STATUS <<\_ACEOF
13356   # Let's still pretend it is `configure' which instantiates (i.e., don't
13357   # use $as_me), people would be surprised to read:
13358   #    /* config.h.  Generated by config.status.  */
13359   if test x"$ac_file" = x-; then
13360     echo "/* Generated by configure.  */" >$tmp/config.h
13361   else
13362     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13363   fi
13364   cat $tmp/in >>$tmp/config.h
13365   rm -f $tmp/in
13366   if test x"$ac_file" != x-; then
13367     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13368       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13369 echo "$as_me: $ac_file is unchanged" >&6;}
13370     else
13371       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13372 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13373          X"$ac_file" : 'X\(//\)[^/]' \| \
13374          X"$ac_file" : 'X\(//\)$' \| \
13375          X"$ac_file" : 'X\(/\)' \| \
13376          .     : '\(.\)' 2>/dev/null ||
13377 echo X"$ac_file" |
13378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13379           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13380           /^X\(\/\/\)$/{ s//\1/; q; }
13381           /^X\(\/\).*/{ s//\1/; q; }
13382           s/.*/./; q'`
13383       { if $as_mkdir_p; then
13384     mkdir -p "$ac_dir"
13385   else
13386     as_dir="$ac_dir"
13387     as_dirs=
13388     while test ! -d "$as_dir"; do
13389       as_dirs="$as_dir $as_dirs"
13390       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13392          X"$as_dir" : 'X\(//\)[^/]' \| \
13393          X"$as_dir" : 'X\(//\)$' \| \
13394          X"$as_dir" : 'X\(/\)' \| \
13395          .     : '\(.\)' 2>/dev/null ||
13396 echo X"$as_dir" |
13397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13398           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13399           /^X\(\/\/\)$/{ s//\1/; q; }
13400           /^X\(\/\).*/{ s//\1/; q; }
13401           s/.*/./; q'`
13402     done
13403     test ! -n "$as_dirs" || mkdir $as_dirs
13404   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13405 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13406    { (exit 1); exit 1; }; }; }
13407
13408       rm -f $ac_file
13409       mv $tmp/config.h $ac_file
13410     fi
13411   else
13412     cat $tmp/config.h
13413     rm -f $tmp/config.h
13414   fi
13415 done
13416 _ACEOF
13417 cat >>$CONFIG_STATUS <<\_ACEOF
13418
13419 #
13420 # CONFIG_COMMANDS section.
13421 #
13422 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13423   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13424   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13425   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13426 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13427          X"$ac_dest" : 'X\(//\)[^/]' \| \
13428          X"$ac_dest" : 'X\(//\)$' \| \
13429          X"$ac_dest" : 'X\(/\)' \| \
13430          .     : '\(.\)' 2>/dev/null ||
13431 echo X"$ac_dest" |
13432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13433           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13434           /^X\(\/\/\)$/{ s//\1/; q; }
13435           /^X\(\/\).*/{ s//\1/; q; }
13436           s/.*/./; q'`
13437   { if $as_mkdir_p; then
13438     mkdir -p "$ac_dir"
13439   else
13440     as_dir="$ac_dir"
13441     as_dirs=
13442     while test ! -d "$as_dir"; do
13443       as_dirs="$as_dir $as_dirs"
13444       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13446          X"$as_dir" : 'X\(//\)[^/]' \| \
13447          X"$as_dir" : 'X\(//\)$' \| \
13448          X"$as_dir" : 'X\(/\)' \| \
13449          .     : '\(.\)' 2>/dev/null ||
13450 echo X"$as_dir" |
13451     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13452           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13453           /^X\(\/\/\)$/{ s//\1/; q; }
13454           /^X\(\/\).*/{ s//\1/; q; }
13455           s/.*/./; q'`
13456     done
13457     test ! -n "$as_dirs" || mkdir $as_dirs
13458   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13459 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13460    { (exit 1); exit 1; }; }; }
13461
13462   ac_builddir=.
13463
13464 if test "$ac_dir" != .; then
13465   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13466   # A "../" for each directory in $ac_dir_suffix.
13467   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13468 else
13469   ac_dir_suffix= ac_top_builddir=
13470 fi
13471
13472 case $srcdir in
13473   .)  # No --srcdir option.  We are building in place.
13474     ac_srcdir=.
13475     if test -z "$ac_top_builddir"; then
13476        ac_top_srcdir=.
13477     else
13478        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13479     fi ;;
13480   [\\/]* | ?:[\\/]* )  # Absolute path.
13481     ac_srcdir=$srcdir$ac_dir_suffix;
13482     ac_top_srcdir=$srcdir ;;
13483   *) # Relative path.
13484     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13485     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13486 esac
13487
13488 # Do not use `cd foo && pwd` to compute absolute paths, because
13489 # the directories may not exist.
13490 case `pwd` in
13491 .) ac_abs_builddir="$ac_dir";;
13492 *)
13493   case "$ac_dir" in
13494   .) ac_abs_builddir=`pwd`;;
13495   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13496   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13497   esac;;
13498 esac
13499 case $ac_abs_builddir in
13500 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13501 *)
13502   case ${ac_top_builddir}. in
13503   .) ac_abs_top_builddir=$ac_abs_builddir;;
13504   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13505   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13506   esac;;
13507 esac
13508 case $ac_abs_builddir in
13509 .) ac_abs_srcdir=$ac_srcdir;;
13510 *)
13511   case $ac_srcdir in
13512   .) ac_abs_srcdir=$ac_abs_builddir;;
13513   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13514   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13515   esac;;
13516 esac
13517 case $ac_abs_builddir in
13518 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13519 *)
13520   case $ac_top_srcdir in
13521   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13522   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13523   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13524   esac;;
13525 esac
13526
13527
13528   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13529 echo "$as_me: executing $ac_dest commands" >&6;}
13530   case $ac_dest in
13531     default )
13532 case ${CONFIG_HEADERS} in
13533   *auto-host.h:config.in*)
13534   echo > cstamp-h ;;
13535 esac
13536 # Make sure all the subdirs exist.
13537 for d in $subdirs
13538 do
13539     test -d $d || mkdir $d
13540 done
13541 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13542 # bootstrapping and the installation procedure can still use
13543 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
13544 # FLAGS_TO_PASS has been modified to solve the problem there.
13545 # This is virtually a duplicate of what happens in configure.lang; we do
13546 # an extra check to make sure this only happens if ln -s can be used.
13547 if test "$symbolic_link" = "ln -s"; then
13548  for d in ${subdirs} fixinc ; do
13549         STARTDIR=`${PWDCMD-pwd}`
13550         cd $d
13551         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13552         do
13553                 rm -f $t
13554                 $symbolic_link ../$t $t 2>/dev/null
13555         done
13556         cd $STARTDIR
13557  done
13558 else true ; fi
13559  ;;
13560   esac
13561 done
13562 _ACEOF
13563
13564 cat >>$CONFIG_STATUS <<\_ACEOF
13565
13566 { (exit 0); exit 0; }
13567 _ACEOF
13568 chmod +x $CONFIG_STATUS
13569 ac_clean_files=$ac_clean_files_save
13570
13571
13572 # configure is writing to config.log, and then calls config.status.
13573 # config.status does its own redirection, appending to config.log.
13574 # Unfortunately, on DOS this fails, as config.log is still kept open
13575 # by configure, so config.status won't be able to write to it; its
13576 # output is simply discarded.  So we exec the FD to /dev/null,
13577 # effectively closing config.log, so it can be properly (re)opened and
13578 # appended to by config.status.  When coming back to configure, we
13579 # need to make the FD available again.
13580 if test "$no_create" != yes; then
13581   ac_cs_success=:
13582   ac_config_status_args=
13583   test "$silent" = yes &&
13584     ac_config_status_args="$ac_config_status_args --quiet"
13585   exec 5>/dev/null
13586   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13587   exec 5>>config.log
13588   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13589   # would make configure fail if this is the last instruction.
13590   $ac_cs_success || { (exit 1); exit 1; }
13591 fi
13592