OSDN Git Service

* gcc.dg/20001012-1.c: Add prototypes for builtin functions.
[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 target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER 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_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 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 c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC 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 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850   --target=TARGET   configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-generated-files-in-srcdir
862                           put copies of generated files in source dir
863                           intended for creating source tarballs for users
864                           without texinfo bison or flex.
865   --enable-werror-always         enable -Werror always
866   --enable-werror         enable -Werror in bootstrap stage2 and later
867   --enable-checking=LIST
868                           enable expensive run-time checks.  With LIST,
869                           enable only specific categories of checks.
870                           Categories are: assert,fold,gc,gcac,misc,
871                           rtlflag,rtl,tree,valgrind,release,yes,all;
872   --enable-mapped-location   location_t is fileline integer cookie
873   --enable-coverage=LEVEL
874                           enable compiler's code coverage collection.
875                           Use to measure compiler performance and locate
876                           unused parts of the compiler. With LEVEL, specify
877                           optimization. Values are opt, noopt,
878                           default is noopt
879   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
880   --enable-multilib       enable library support for multiple ABIs
881   --enable-__cxa_atexit   enable __cxa_atexit for C++
882   --enable-threads        enable thread usage for target GCC
883   --enable-threads=LIB    use LIB thread package for target GCC
884   --enable-objc-gc        enable the use of Boehm's garbage collector with
885                           the GNU Objective-C runtime
886   --disable-shared        don't provide a shared libgcc
887   --enable-intermodule    build the compiler in one step
888   --enable-languages=LIST specify which front-ends to build
889   --enable-initfini-array       use .init_array/.fini_array sections
890   --enable-sjlj-exceptions
891                           arrange to use setjmp/longjmp exception handling
892   --disable-win32-registry
893                           disable lookup of installation paths in the
894                           Registry on Windows hosts
895   --enable-win32-registry enable registry lookup (default)
896   --enable-win32-registry=KEY
897                           use KEY instead of GCC version as the last portion
898                           of the registry key
899   --enable-maintainer-mode
900                           enable make rules and dependencies not useful
901                           (and sometimes confusing) to the casual installer
902   --enable-version-specific-runtime-libs
903                           specify that runtime libraries should be
904                           installed in a compiler-specific directory
905
906 Optional Packages:
907   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
908   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
909   --with-local-prefix=DIR specifies directory to put local include
910   --with-gxx-include-dir=DIR
911                           specifies directory to put g++ header files
912   --with-cpp-install-dir=DIR
913                           install the user visible C preprocessor in DIR
914                           (relative to PREFIX) as well as PREFIX/bin
915   --with-gnu-ld           arrange to work with GNU ld.
916   --with-ld               arrange to use the specified ld (full pathname)
917   --with-demangler-in-ld  try to use demangler in GNU ld.
918   --with-gnu-as           arrange to work with GNU as
919   --with-as               arrange to use the specified as (full pathname)
920   --with-stabs            arrange to use stabs instead of host debug format
921   --with-dwarf2           force the default debug format to be DWARF 2
922   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
923   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
924   --with-system-libunwind use installed libunwind
925   --with-gc={page,zone}   choose the garbage collection mechanism to use
926                           with the compiler
927   --with-system-zlib      use installed libz
928   --with-slibdir=DIR      shared libraries in DIR LIBDIR
929
930 Some influential environment variables:
931   CC          C compiler command
932   CFLAGS      C compiler flags
933   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
934               nonstandard directory <lib dir>
935   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
936               headers in a nonstandard directory <include dir>
937   CPP         C preprocessor
938   GMPLIBS     How to link GMP
939   GMPINC      How to find GMP include files
940
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
943
944 _ACEOF
945 fi
946
947 if test "$ac_init_help" = "recursive"; then
948   # If there are subdirs, report their specific --help.
949   ac_popdir=`pwd`
950   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951     test -d $ac_dir || continue
952     ac_builddir=.
953
954 if test "$ac_dir" != .; then
955   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
956   # A "../" for each directory in $ac_dir_suffix.
957   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 else
959   ac_dir_suffix= ac_top_builddir=
960 fi
961
962 case $srcdir in
963   .)  # No --srcdir option.  We are building in place.
964     ac_srcdir=.
965     if test -z "$ac_top_builddir"; then
966        ac_top_srcdir=.
967     else
968        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969     fi ;;
970   [\\/]* | ?:[\\/]* )  # Absolute path.
971     ac_srcdir=$srcdir$ac_dir_suffix;
972     ac_top_srcdir=$srcdir ;;
973   *) # Relative path.
974     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975     ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 esac
977
978 # Do not use `cd foo && pwd` to compute absolute paths, because
979 # the directories may not exist.
980 case `pwd` in
981 .) ac_abs_builddir="$ac_dir";;
982 *)
983   case "$ac_dir" in
984   .) ac_abs_builddir=`pwd`;;
985   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
986   *) ac_abs_builddir=`pwd`/"$ac_dir";;
987   esac;;
988 esac
989 case $ac_abs_builddir in
990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
991 *)
992   case ${ac_top_builddir}. in
993   .) ac_abs_top_builddir=$ac_abs_builddir;;
994   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
995   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
996   esac;;
997 esac
998 case $ac_abs_builddir in
999 .) ac_abs_srcdir=$ac_srcdir;;
1000 *)
1001   case $ac_srcdir in
1002   .) ac_abs_srcdir=$ac_abs_builddir;;
1003   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1004   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1005   esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1009 *)
1010   case $ac_top_srcdir in
1011   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1012   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1013   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1014   esac;;
1015 esac
1016
1017     cd $ac_dir
1018     # Check for guested configure; otherwise get Cygnus style configure.
1019     if test -f $ac_srcdir/configure.gnu; then
1020       echo
1021       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1022     elif test -f $ac_srcdir/configure; then
1023       echo
1024       $SHELL $ac_srcdir/configure  --help=recursive
1025     elif test -f $ac_srcdir/configure.ac ||
1026            test -f $ac_srcdir/configure.in; then
1027       echo
1028       $ac_configure --help
1029     else
1030       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1031     fi
1032     cd $ac_popdir
1033   done
1034 fi
1035
1036 test -n "$ac_init_help" && exit 0
1037 if $ac_init_version; then
1038   cat <<\_ACEOF
1039
1040 Copyright (C) 2003 Free Software Foundation, Inc.
1041 This configure script is free software; the Free Software Foundation
1042 gives unlimited permission to copy, distribute and modify it.
1043 _ACEOF
1044   exit 0
1045 fi
1046 exec 5>config.log
1047 cat >&5 <<_ACEOF
1048 This file contains any messages produced by compilers while
1049 running configure, to aid debugging if configure makes a mistake.
1050
1051 It was created by $as_me, which was
1052 generated by GNU Autoconf 2.59.  Invocation command line was
1053
1054   $ $0 $@
1055
1056 _ACEOF
1057 {
1058 cat <<_ASUNAME
1059 ## --------- ##
1060 ## Platform. ##
1061 ## --------- ##
1062
1063 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1064 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1065 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1066 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1067 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1068
1069 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1070 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1071
1072 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1073 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1074 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1075 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1076 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1077 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1078 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1079
1080 _ASUNAME
1081
1082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1083 for as_dir in $PATH
1084 do
1085   IFS=$as_save_IFS
1086   test -z "$as_dir" && as_dir=.
1087   echo "PATH: $as_dir"
1088 done
1089
1090 } >&5
1091
1092 cat >&5 <<_ACEOF
1093
1094
1095 ## ----------- ##
1096 ## Core tests. ##
1097 ## ----------- ##
1098
1099 _ACEOF
1100
1101
1102 # Keep a trace of the command line.
1103 # Strip out --no-create and --no-recursion so they do not pile up.
1104 # Strip out --silent because we don't want to record it for future runs.
1105 # Also quote any args containing shell meta-characters.
1106 # Make two passes to allow for proper duplicate-argument suppression.
1107 ac_configure_args=
1108 ac_configure_args0=
1109 ac_configure_args1=
1110 ac_sep=
1111 ac_must_keep_next=false
1112 for ac_pass in 1 2
1113 do
1114   for ac_arg
1115   do
1116     case $ac_arg in
1117     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1118     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119     | -silent | --silent | --silen | --sile | --sil)
1120       continue ;;
1121     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1122       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1123     esac
1124     case $ac_pass in
1125     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1126     2)
1127       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1128       if test $ac_must_keep_next = true; then
1129         ac_must_keep_next=false # Got value, back to normal.
1130       else
1131         case $ac_arg in
1132           *=* | --config-cache | -C | -disable-* | --disable-* \
1133           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1134           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1135           | -with-* | --with-* | -without-* | --without-* | --x)
1136             case "$ac_configure_args0 " in
1137               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1138             esac
1139             ;;
1140           -* ) ac_must_keep_next=true ;;
1141         esac
1142       fi
1143       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1144       # Get rid of the leading space.
1145       ac_sep=" "
1146       ;;
1147     esac
1148   done
1149 done
1150 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1151 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1152
1153 # When interrupted or exit'd, cleanup temporary files, and complete
1154 # config.log.  We remove comments because anyway the quotes in there
1155 # would cause problems or look ugly.
1156 # WARNING: Be sure not to use single quotes in there, as some shells,
1157 # such as our DU 5.0 friend, will then `close' the trap.
1158 trap 'exit_status=$?
1159   # Save into config.log some information that might help in debugging.
1160   {
1161     echo
1162
1163     cat <<\_ASBOX
1164 ## ---------------- ##
1165 ## Cache variables. ##
1166 ## ---------------- ##
1167 _ASBOX
1168     echo
1169     # The following way of writing the cache mishandles newlines in values,
1170 {
1171   (set) 2>&1 |
1172     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1173     *ac_space=\ *)
1174       sed -n \
1175         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1176           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1177       ;;
1178     *)
1179       sed -n \
1180         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1181       ;;
1182     esac;
1183 }
1184     echo
1185
1186     cat <<\_ASBOX
1187 ## ----------------- ##
1188 ## Output variables. ##
1189 ## ----------------- ##
1190 _ASBOX
1191     echo
1192     for ac_var in $ac_subst_vars
1193     do
1194       eval ac_val=$`echo $ac_var`
1195       echo "$ac_var='"'"'$ac_val'"'"'"
1196     done | sort
1197     echo
1198
1199     if test -n "$ac_subst_files"; then
1200       cat <<\_ASBOX
1201 ## ------------- ##
1202 ## Output files. ##
1203 ## ------------- ##
1204 _ASBOX
1205       echo
1206       for ac_var in $ac_subst_files
1207       do
1208         eval ac_val=$`echo $ac_var`
1209         echo "$ac_var='"'"'$ac_val'"'"'"
1210       done | sort
1211       echo
1212     fi
1213
1214     if test -s confdefs.h; then
1215       cat <<\_ASBOX
1216 ## ----------- ##
1217 ## confdefs.h. ##
1218 ## ----------- ##
1219 _ASBOX
1220       echo
1221       sed "/^$/d" confdefs.h | sort
1222       echo
1223     fi
1224     test "$ac_signal" != 0 &&
1225       echo "$as_me: caught signal $ac_signal"
1226     echo "$as_me: exit $exit_status"
1227   } >&5
1228   rm -f core *.core &&
1229   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1230     exit $exit_status
1231      ' 0
1232 for ac_signal in 1 2 13 15; do
1233   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1234 done
1235 ac_signal=0
1236
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1240 echo >confdefs.h
1241
1242 # Predefined preprocessor variables.
1243
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1246 _ACEOF
1247
1248
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1251 _ACEOF
1252
1253
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1256 _ACEOF
1257
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1266 _ACEOF
1267
1268
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272   if test "x$prefix" != xNONE; then
1273     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1274   else
1275     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1276   fi
1277 fi
1278 for ac_site_file in $CONFIG_SITE; do
1279   if test -r "$ac_site_file"; then
1280     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282     sed 's/^/| /' "$ac_site_file" >&5
1283     . "$ac_site_file"
1284   fi
1285 done
1286
1287 if test -r "$cache_file"; then
1288   # Some versions of bash will fail to source /dev/null (special
1289   # files actually), so we avoid doing that.
1290   if test -f "$cache_file"; then
1291     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1293     case $cache_file in
1294       [\\/]* | ?:[\\/]* ) . $cache_file;;
1295       *)                      . ./$cache_file;;
1296     esac
1297   fi
1298 else
1299   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1301   >$cache_file
1302 fi
1303
1304 # Check that the precious variables saved in the cache have kept the same
1305 # value.
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310   eval ac_new_set=\$ac_env_${ac_var}_set
1311   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312   eval ac_new_val="\$ac_env_${ac_var}_value"
1313   case $ac_old_set,$ac_new_set in
1314     set,)
1315       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317       ac_cache_corrupted=: ;;
1318     ,set)
1319       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321       ac_cache_corrupted=: ;;
1322     ,);;
1323     *)
1324       if test "x$ac_old_val" != "x$ac_new_val"; then
1325         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1328 echo "$as_me:   former value:  $ac_old_val" >&2;}
1329         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1330 echo "$as_me:   current value: $ac_new_val" >&2;}
1331         ac_cache_corrupted=:
1332       fi;;
1333   esac
1334   # Pass precious variables to config.status.
1335   if test "$ac_new_set" = set; then
1336     case $ac_new_val in
1337     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339     *) ac_arg=$ac_var=$ac_new_val ;;
1340     esac
1341     case " $ac_configure_args " in
1342       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1343       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344     esac
1345   fi
1346 done
1347 if $ac_cache_corrupted; then
1348   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 ac_ext=c
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1381
1382
1383 #Set to 1 on a release branch
1384 is_release=
1385
1386 # Determine the host, build, and target systems
1387 ac_aux_dir=
1388 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1389   if test -f $ac_dir/install-sh; then
1390     ac_aux_dir=$ac_dir
1391     ac_install_sh="$ac_aux_dir/install-sh -c"
1392     break
1393   elif test -f $ac_dir/install.sh; then
1394     ac_aux_dir=$ac_dir
1395     ac_install_sh="$ac_aux_dir/install.sh -c"
1396     break
1397   elif test -f $ac_dir/shtool; then
1398     ac_aux_dir=$ac_dir
1399     ac_install_sh="$ac_aux_dir/shtool install -c"
1400     break
1401   fi
1402 done
1403 if test -z "$ac_aux_dir"; then
1404   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1405 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1406    { (exit 1); exit 1; }; }
1407 fi
1408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1410 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1411
1412 # Make sure we can run config.sub.
1413 $ac_config_sub sun4 >/dev/null 2>&1 ||
1414   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1415 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1416    { (exit 1); exit 1; }; }
1417
1418 echo "$as_me:$LINENO: checking build system type" >&5
1419 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1420 if test "${ac_cv_build+set}" = set; then
1421   echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423   ac_cv_build_alias=$build_alias
1424 test -z "$ac_cv_build_alias" &&
1425   ac_cv_build_alias=`$ac_config_guess`
1426 test -z "$ac_cv_build_alias" &&
1427   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1429    { (exit 1); exit 1; }; }
1430 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1431   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1433    { (exit 1); exit 1; }; }
1434
1435 fi
1436 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1437 echo "${ECHO_T}$ac_cv_build" >&6
1438 build=$ac_cv_build
1439 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1442
1443
1444 echo "$as_me:$LINENO: checking host system type" >&5
1445 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1446 if test "${ac_cv_host+set}" = set; then
1447   echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449   ac_cv_host_alias=$host_alias
1450 test -z "$ac_cv_host_alias" &&
1451   ac_cv_host_alias=$ac_cv_build_alias
1452 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1453   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1454 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1455    { (exit 1); exit 1; }; }
1456
1457 fi
1458 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1459 echo "${ECHO_T}$ac_cv_host" >&6
1460 host=$ac_cv_host
1461 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1462 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1463 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464
1465
1466 echo "$as_me:$LINENO: checking target system type" >&5
1467 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1468 if test "${ac_cv_target+set}" = set; then
1469   echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471   ac_cv_target_alias=$target_alias
1472 test "x$ac_cv_target_alias" = "x" &&
1473   ac_cv_target_alias=$ac_cv_host_alias
1474 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1475   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1476 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1477    { (exit 1); exit 1; }; }
1478
1479 fi
1480 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1481 echo "${ECHO_T}$ac_cv_target" >&6
1482 target=$ac_cv_target
1483 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1484 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1485 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486
1487
1488 # The aliases save the names the user supplied, while $host etc.
1489 # will get canonicalized.
1490 test -n "$target_alias" &&
1491   test "$program_prefix$program_suffix$program_transform_name" = \
1492     NONENONEs,x,x, &&
1493   program_prefix=${target_alias}-
1494
1495 # Determine the noncanonical target name, for directory use.
1496  case ${build_alias} in
1497   "") build_noncanonical=${build} ;;
1498   *) build_noncanonical=${build_alias} ;;
1499 esac
1500
1501  case ${host_alias} in
1502   "") host_noncanonical=${build_noncanonical} ;;
1503   *) host_noncanonical=${host_alias} ;;
1504 esac
1505
1506  case ${target_alias} in
1507   "") target_noncanonical=${host_noncanonical} ;;
1508   *) target_noncanonical=${target_alias} ;;
1509 esac
1510
1511
1512
1513
1514 # Determine the target- and build-specific subdirectories
1515   # Prefix 'build-' so this never conflicts with target_subdir.
1516 build_subdir="build-${build_noncanonical}"
1517 # Not really a subdirectory, but here for completeness.
1518 host_subdir=.
1519 # No prefix.
1520 target_subdir=${target_noncanonical}
1521
1522
1523 # Set program_transform_name
1524 test "$program_prefix" != NONE &&
1525   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1526 # Use a double $ so make ignores it.
1527 test "$program_suffix" != NONE &&
1528   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1529 # Double any \ or $.  echo might interpret backslashes.
1530 # By default was `s,x,x', remove it if useless.
1531 cat <<\_ACEOF >conftest.sed
1532 s/[\\$]/&&/g;s/;s,x,x,$//
1533 _ACEOF
1534 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1535 rm conftest.sed
1536
1537
1538 # Check for bogus environment variables.
1539 # Test if LIBRARY_PATH contains the notation for the current directory
1540 # since this would lead to problems installing/building glibc.
1541 # LIBRARY_PATH contains the current directory if one of the following
1542 # is true:
1543 # - one of the terminals (":" and ";") is the first or last sign
1544 # - two terminals occur directly after each other
1545 # - the path contains an element with a dot in it
1546 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1547 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1548 case ${LIBRARY_PATH} in
1549   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1550     library_path_setting="contains current directory"
1551     ;;
1552   *)
1553     library_path_setting="ok"
1554     ;;
1555 esac
1556 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1557 echo "${ECHO_T}$library_path_setting" >&6
1558 if test "$library_path_setting" != "ok"; then
1559 { { echo "$as_me:$LINENO: error:
1560 *** LIBRARY_PATH shouldn't contain the current directory when
1561 *** building gcc. Please change the environment variable
1562 *** and run configure again." >&5
1563 echo "$as_me: error:
1564 *** LIBRARY_PATH shouldn't contain the current directory when
1565 *** building gcc. Please change the environment variable
1566 *** and run configure again." >&2;}
1567    { (exit 1); exit 1; }; }
1568 fi
1569
1570 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1571 # since this would lead to problems installing/building glibc.
1572 # GCC_EXEC_PREFIX contains the current directory if one of the following
1573 # is true:
1574 # - one of the terminals (":" and ";") is the first or last sign
1575 # - two terminals occur directly after each other
1576 # - the path contains an element with a dot in it
1577 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1578 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1579 case ${GCC_EXEC_PREFIX} in
1580   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1581     gcc_exec_prefix_setting="contains current directory"
1582     ;;
1583   *)
1584     gcc_exec_prefix_setting="ok"
1585     ;;
1586 esac
1587 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1588 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1589 if test "$gcc_exec_prefix_setting" != "ok"; then
1590 { { echo "$as_me:$LINENO: error:
1591 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1592 *** building gcc. Please change the environment variable
1593 *** and run configure again." >&5
1594 echo "$as_me: error:
1595 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1596 *** building gcc. Please change the environment variable
1597 *** and run configure again." >&2;}
1598    { (exit 1); exit 1; }; }
1599 fi
1600
1601 # -----------
1602 # Directories
1603 # -----------
1604
1605 # Specify the local prefix
1606 local_prefix=
1607
1608 # Check whether --with-local-prefix or --without-local-prefix was given.
1609 if test "${with_local_prefix+set}" = set; then
1610   withval="$with_local_prefix"
1611   case "${withval}" in
1612 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1613 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1614    { (exit 1); exit 1; }; } ;;
1615 no)     ;;
1616 *)      local_prefix=$with_local_prefix ;;
1617 esac
1618 fi;
1619
1620 # Default local prefix if it is empty
1621 if test x$local_prefix = x; then
1622         local_prefix=/usr/local
1623 fi
1624
1625 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1626 # passed in by the toplevel make and thus we'd get different behavior
1627 # depending on where we built the sources.
1628 gcc_gxx_include_dir=
1629 # Specify the g++ header file directory
1630
1631 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1632 if test "${with_gxx_include_dir+set}" = set; then
1633   withval="$with_gxx_include_dir"
1634   case "${withval}" in
1635 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1636 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1637    { (exit 1); exit 1; }; } ;;
1638 no)     ;;
1639 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1640 esac
1641 fi;
1642
1643 if test x${gcc_gxx_include_dir} = x; then
1644   if test x${enable_version_specific_runtime_libs} = xyes; then
1645     gcc_gxx_include_dir='${libsubdir}/include/c++'
1646   else
1647     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1648     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1649   fi
1650 fi
1651
1652
1653 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1654 if test "${with_cpp_install_dir+set}" = set; then
1655   withval="$with_cpp_install_dir"
1656   if test x$withval = xyes; then
1657   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1658 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1659    { (exit 1); exit 1; }; }
1660 elif test x$withval != xno; then
1661   cpp_install_dir=$withval
1662 fi
1663 fi;
1664
1665 # We would like to our source tree to be readonly.  However when releases or
1666 # pre-releases are generated, the flex/bison generated files as well as the
1667 # various formats of manuals need to be included along with the rest of the
1668 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1669 # just that.
1670
1671 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1672 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1673     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1674 if test "${enable_generated_files_in_srcdir+set}" = set; then
1675   enableval="$enable_generated_files_in_srcdir"
1676   generated_files_in_srcdir=$enableval
1677 else
1678   generated_files_in_srcdir=no
1679 fi;
1680
1681 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1682 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1683
1684 if test "$generated_files_in_srcdir" = "yes"; then
1685   GENINSRC=''
1686 else
1687   GENINSRC='#'
1688 fi
1689
1690
1691 # -------------------
1692 # Find default linker
1693 # -------------------
1694
1695 # With GNU ld
1696
1697 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1698 if test "${with_gnu_ld+set}" = set; then
1699   withval="$with_gnu_ld"
1700   gnu_ld_flag="$with_gnu_ld"
1701 else
1702   gnu_ld_flag=no
1703 fi;
1704
1705 # With pre-defined ld
1706
1707 # Check whether --with-ld or --without-ld was given.
1708 if test "${with_ld+set}" = set; then
1709   withval="$with_ld"
1710   DEFAULT_LINKER="$with_ld"
1711 fi;
1712 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1713   if test ! -x "$DEFAULT_LINKER"; then
1714     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1715 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1716    { (exit 1); exit 1; }; }
1717   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1718     gnu_ld_flag=yes
1719   fi
1720
1721 cat >>confdefs.h <<_ACEOF
1722 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1723 _ACEOF
1724
1725 fi
1726
1727 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1728 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1729 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1730   if test x"$gnu_ld_flag" = x"no"; then
1731     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1732 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1733   else
1734     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1735 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1736   fi
1737 else
1738   echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740 fi
1741
1742 # With demangler in GNU ld
1743
1744 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1745 if test "${with_demangler_in_ld+set}" = set; then
1746   withval="$with_demangler_in_ld"
1747   demangler_in_ld="$with_demangler_in_ld"
1748 else
1749   demangler_in_ld=no
1750 fi;
1751
1752 # ----------------------
1753 # Find default assembler
1754 # ----------------------
1755
1756 # With GNU as
1757
1758 # Check whether --with-gnu-as or --without-gnu-as was given.
1759 if test "${with_gnu_as+set}" = set; then
1760   withval="$with_gnu_as"
1761   gas_flag="$with_gnu_as"
1762 else
1763   gas_flag=no
1764 fi;
1765
1766
1767 # Check whether --with-as or --without-as was given.
1768 if test "${with_as+set}" = set; then
1769   withval="$with_as"
1770   DEFAULT_ASSEMBLER="$with_as"
1771 fi;
1772 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1773   if test ! -x "$DEFAULT_ASSEMBLER"; then
1774     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1775 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1776    { (exit 1); exit 1; }; }
1777   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1778     gas_flag=yes
1779   fi
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1783 _ACEOF
1784
1785 fi
1786
1787 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1788 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1789 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1790   if test x"$gas_flag" = x"no"; then
1791     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1792 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1793   else
1794     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1795 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1796   fi
1797 else
1798   echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1800 fi
1801
1802 # ---------------
1803 # Find C compiler
1804 # ---------------
1805
1806 # If a non-executable a.out is present (e.g. created by GNU as above even if
1807 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1808 # file, even when creating an executable, so an execution test fails.
1809 # Remove possible default executable files to avoid this.
1810 #
1811 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1812 # Autoconf includes it.
1813 rm -f a.out a.exe b.out
1814
1815 # Find the native compiler
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821 if test -n "$ac_tool_prefix"; then
1822   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1823 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_CC+set}" = set; then
1827   echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829   if test -n "$CC"; then
1830   ac_cv_prog_CC="$CC" # Let the user override the test.
1831 else
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1834 do
1835   IFS=$as_save_IFS
1836   test -z "$as_dir" && as_dir=.
1837   for ac_exec_ext in '' $ac_executable_extensions; do
1838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841     break 2
1842   fi
1843 done
1844 done
1845
1846 fi
1847 fi
1848 CC=$ac_cv_prog_CC
1849 if test -n "$CC"; then
1850   echo "$as_me:$LINENO: result: $CC" >&5
1851 echo "${ECHO_T}$CC" >&6
1852 else
1853   echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1855 fi
1856
1857 fi
1858 if test -z "$ac_cv_prog_CC"; then
1859   ac_ct_CC=$CC
1860   # Extract the first word of "gcc", so it can be a program name with args.
1861 set dummy gcc; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865   echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867   if test -n "$ac_ct_CC"; then
1868   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869 else
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1872 do
1873   IFS=$as_save_IFS
1874   test -z "$as_dir" && as_dir=.
1875   for ac_exec_ext in '' $ac_executable_extensions; do
1876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877     ac_cv_prog_ac_ct_CC="gcc"
1878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879     break 2
1880   fi
1881 done
1882 done
1883
1884 fi
1885 fi
1886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887 if test -n "$ac_ct_CC"; then
1888   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889 echo "${ECHO_T}$ac_ct_CC" >&6
1890 else
1891   echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1893 fi
1894
1895   CC=$ac_ct_CC
1896 else
1897   CC="$ac_cv_prog_CC"
1898 fi
1899
1900 if test -z "$CC"; then
1901   if test -n "$ac_tool_prefix"; then
1902   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1903 set dummy ${ac_tool_prefix}cc; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_CC+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   if test -n "$CC"; then
1910   ac_cv_prog_CC="$CC" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917   for ac_exec_ext in '' $ac_executable_extensions; do
1918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919     ac_cv_prog_CC="${ac_tool_prefix}cc"
1920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921     break 2
1922   fi
1923 done
1924 done
1925
1926 fi
1927 fi
1928 CC=$ac_cv_prog_CC
1929 if test -n "$CC"; then
1930   echo "$as_me:$LINENO: result: $CC" >&5
1931 echo "${ECHO_T}$CC" >&6
1932 else
1933   echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1935 fi
1936
1937 fi
1938 if test -z "$ac_cv_prog_CC"; then
1939   ac_ct_CC=$CC
1940   # Extract the first word of "cc", so it can be a program name with args.
1941 set dummy cc; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1945   echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947   if test -n "$ac_ct_CC"; then
1948   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1952 do
1953   IFS=$as_save_IFS
1954   test -z "$as_dir" && as_dir=.
1955   for ac_exec_ext in '' $ac_executable_extensions; do
1956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957     ac_cv_prog_ac_ct_CC="cc"
1958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959     break 2
1960   fi
1961 done
1962 done
1963
1964 fi
1965 fi
1966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1967 if test -n "$ac_ct_CC"; then
1968   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969 echo "${ECHO_T}$ac_ct_CC" >&6
1970 else
1971   echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1973 fi
1974
1975   CC=$ac_ct_CC
1976 else
1977   CC="$ac_cv_prog_CC"
1978 fi
1979
1980 fi
1981 if test -z "$CC"; then
1982   # Extract the first word of "cc", so it can be a program name with args.
1983 set dummy cc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   if test -n "$CC"; then
1990   ac_cv_prog_CC="$CC" # Let the user override the test.
1991 else
1992   ac_prog_rejected=no
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996   IFS=$as_save_IFS
1997   test -z "$as_dir" && as_dir=.
1998   for ac_exec_ext in '' $ac_executable_extensions; do
1999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2001        ac_prog_rejected=yes
2002        continue
2003      fi
2004     ac_cv_prog_CC="cc"
2005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006     break 2
2007   fi
2008 done
2009 done
2010
2011 if test $ac_prog_rejected = yes; then
2012   # We found a bogon in the path, so make sure we never use it.
2013   set dummy $ac_cv_prog_CC
2014   shift
2015   if test $# != 0; then
2016     # We chose a different compiler from the bogus one.
2017     # However, it has the same basename, so the bogon will be chosen
2018     # first if we set CC to just the basename; use the full file name.
2019     shift
2020     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2021   fi
2022 fi
2023 fi
2024 fi
2025 CC=$ac_cv_prog_CC
2026 if test -n "$CC"; then
2027   echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034 fi
2035 if test -z "$CC"; then
2036   if test -n "$ac_tool_prefix"; then
2037   for ac_prog in cl
2038   do
2039     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_CC+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   if test -n "$CC"; then
2047   ac_cv_prog_CC="$CC" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052   IFS=$as_save_IFS
2053   test -z "$as_dir" && as_dir=.
2054   for ac_exec_ext in '' $ac_executable_extensions; do
2055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062
2063 fi
2064 fi
2065 CC=$ac_cv_prog_CC
2066 if test -n "$CC"; then
2067   echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6
2069 else
2070   echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2072 fi
2073
2074     test -n "$CC" && break
2075   done
2076 fi
2077 if test -z "$CC"; then
2078   ac_ct_CC=$CC
2079   for ac_prog in cl
2080 do
2081   # Extract the first word of "$ac_prog", so it can be a program name with args.
2082 set dummy $ac_prog; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086   echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088   if test -n "$ac_ct_CC"; then
2089   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2093 do
2094   IFS=$as_save_IFS
2095   test -z "$as_dir" && as_dir=.
2096   for ac_exec_ext in '' $ac_executable_extensions; do
2097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098     ac_cv_prog_ac_ct_CC="$ac_prog"
2099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100     break 2
2101   fi
2102 done
2103 done
2104
2105 fi
2106 fi
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2111 else
2112   echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2114 fi
2115
2116   test -n "$ac_ct_CC" && break
2117 done
2118
2119   CC=$ac_ct_CC
2120 fi
2121
2122 fi
2123
2124
2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&2;}
2129    { (exit 1); exit 1; }; }
2130
2131 # Provide some information about the compiler.
2132 echo "$as_me:$LINENO:" \
2133      "checking for C compiler version" >&5
2134 ac_compiler=`set X $ac_compile; echo $2`
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2136   (eval $ac_compiler --version </dev/null >&5) 2>&5
2137   ac_status=$?
2138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139   (exit $ac_status); }
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2141   (eval $ac_compiler -v </dev/null >&5) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }
2145 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2146   (eval $ac_compiler -V </dev/null >&5) 2>&5
2147   ac_status=$?
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); }
2150
2151 cat >conftest.$ac_ext <<_ACEOF
2152 /* confdefs.h.  */
2153 _ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h.  */
2157
2158 int
2159 main ()
2160 {
2161
2162   ;
2163   return 0;
2164 }
2165 _ACEOF
2166 ac_clean_files_save=$ac_clean_files
2167 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2168 # Try to create an executable without -o first, disregard a.out.
2169 # It will help us diagnose broken compilers, and finding out an intuition
2170 # of exeext.
2171 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2172 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2173 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2174 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2175   (eval $ac_link_default) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); }; then
2179   # Find the output, starting from the most likely.  This scheme is
2180 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2181 # resort.
2182
2183 # Be careful to initialize this variable, since it used to be cached.
2184 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2185 ac_cv_exeext=
2186 # b.out is created by i960 compilers.
2187 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2188 do
2189   test -f "$ac_file" || continue
2190   case $ac_file in
2191     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2192         ;;
2193     conftest.$ac_ext )
2194         # This is the source file.
2195         ;;
2196     [ab].out )
2197         # We found the default executable, but exeext='' is most
2198         # certainly right.
2199         break;;
2200     *.* )
2201         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2202         # FIXME: I believe we export ac_cv_exeext for Libtool,
2203         # but it would be cool to find out if it's true.  Does anybody
2204         # maintain Libtool? --akim.
2205         export ac_cv_exeext
2206         break;;
2207     * )
2208         break;;
2209   esac
2210 done
2211 else
2212   echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&2;}
2219    { (exit 77); exit 77; }; }
2220 fi
2221
2222 ac_exeext=$ac_cv_exeext
2223 echo "$as_me:$LINENO: result: $ac_file" >&5
2224 echo "${ECHO_T}$ac_file" >&6
2225
2226 # Check the compiler produces executables we can run.  If not, either
2227 # the compiler is broken, or we cross compile.
2228 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2229 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2230 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2231 # If not cross compiling, check that we can run a simple program.
2232 if test "$cross_compiling" != yes; then
2233   if { ac_try='./$ac_file'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; }; then
2239     cross_compiling=no
2240   else
2241     if test "$cross_compiling" = maybe; then
2242         cross_compiling=yes
2243     else
2244         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&2;}
2250    { (exit 1); exit 1; }; }
2251     fi
2252   fi
2253 fi
2254 echo "$as_me:$LINENO: result: yes" >&5
2255 echo "${ECHO_T}yes" >&6
2256
2257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2258 ac_clean_files=$ac_clean_files_save
2259 # Check the compiler produces executables we can run.  If not, either
2260 # the compiler is broken, or we cross compile.
2261 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2263 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264 echo "${ECHO_T}$cross_compiling" >&6
2265
2266 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2269   (eval $ac_link) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; then
2273   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2274 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2275 # work properly (i.e., refer to `conftest.exe'), while it won't with
2276 # `rm'.
2277 for ac_file in conftest.exe conftest conftest.*; do
2278   test -f "$ac_file" || continue
2279   case $ac_file in
2280     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2281     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282           export ac_cv_exeext
2283           break;;
2284     * ) break;;
2285   esac
2286 done
2287 else
2288   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292    { (exit 1); exit 1; }; }
2293 fi
2294
2295 rm -f conftest$ac_cv_exeext
2296 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6
2298
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2301 ac_exeext=$EXEEXT
2302 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2304 if test "${ac_cv_objext+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h.  */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h.  */
2313
2314 int
2315 main ()
2316 {
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 rm -f conftest.o conftest.obj
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324   (eval $ac_compile) 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }; then
2328   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2329   case $ac_file in
2330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2331     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332        break;;
2333   esac
2334 done
2335 else
2336   echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2338
2339 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&2;}
2343    { (exit 1); exit 1; }; }
2344 fi
2345
2346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2347 fi
2348 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349 echo "${ECHO_T}$ac_cv_objext" >&6
2350 OBJEXT=$ac_cv_objext
2351 ac_objext=$OBJEXT
2352 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357   cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h.  */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h.  */
2363
2364 int
2365 main ()
2366 {
2367 #ifndef __GNUC__
2368        choke me
2369 #endif
2370
2371   ;
2372   return 0;
2373 }
2374 _ACEOF
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377   (eval $ac_compile) 2>conftest.er1
2378   ac_status=$?
2379   grep -v '^ *+' conftest.er1 >conftest.err
2380   rm -f conftest.er1
2381   cat conftest.err >&5
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); } &&
2384          { ac_try='test -z "$ac_c_werror_flag"
2385                          || test ! -s conftest.err'
2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387   (eval $ac_try) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; } &&
2391          { ac_try='test -s conftest.$ac_objext'
2392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393   (eval $ac_try) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; }; then
2397   ac_compiler_gnu=yes
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 ac_compiler_gnu=no
2403 fi
2404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2406
2407 fi
2408 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2413 CFLAGS="-g"
2414 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   cat >conftest.$ac_ext <<_ACEOF
2420 /* confdefs.h.  */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h.  */
2425
2426 int
2427 main ()
2428 {
2429
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436   (eval $ac_compile) 2>conftest.er1
2437   ac_status=$?
2438   grep -v '^ *+' conftest.er1 >conftest.err
2439   rm -f conftest.er1
2440   cat conftest.err >&5
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); } &&
2443          { ac_try='test -z "$ac_c_werror_flag"
2444                          || test ! -s conftest.err'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; } &&
2450          { ac_try='test -s conftest.$ac_objext'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456   ac_cv_prog_cc_g=yes
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 ac_cv_prog_cc_g=no
2462 fi
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 fi
2465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2467 if test "$ac_test_CFLAGS" = set; then
2468   CFLAGS=$ac_save_CFLAGS
2469 elif test $ac_cv_prog_cc_g = yes; then
2470   if test "$GCC" = yes; then
2471     CFLAGS="-g -O2"
2472   else
2473     CFLAGS="-g"
2474   fi
2475 else
2476   if test "$GCC" = yes; then
2477     CFLAGS="-O2"
2478   else
2479     CFLAGS=
2480   fi
2481 fi
2482 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2483 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2484 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   ac_cv_prog_cc_stdc=no
2488 ac_save_CC=$CC
2489 cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h.  */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h.  */
2495 #include <stdarg.h>
2496 #include <stdio.h>
2497 #include <sys/types.h>
2498 #include <sys/stat.h>
2499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2500 struct buf { int x; };
2501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2502 static char *e (p, i)
2503      char **p;
2504      int i;
2505 {
2506   return p[i];
2507 }
2508 static char *f (char * (*g) (char **, int), char **p, ...)
2509 {
2510   char *s;
2511   va_list v;
2512   va_start (v,p);
2513   s = g (p, va_arg (v,int));
2514   va_end (v);
2515   return s;
2516 }
2517
2518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2519    function prototypes and stuff, but not '\xHH' hex character constants.
2520    These don't provoke an error unfortunately, instead are silently treated
2521    as 'x'.  The following induces an error, until -std1 is added to get
2522    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2523    array size at least.  It's necessary to write '\x00'==0 to get something
2524    that's true only with -std1.  */
2525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2526
2527 int test (int i, double x);
2528 struct s1 {int (*f) (int a);};
2529 struct s2 {int (*f) (double a);};
2530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2531 int argc;
2532 char **argv;
2533 int
2534 main ()
2535 {
2536 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 # Don't try gcc -ansi; that turns off useful extensions and
2542 # breaks some systems' header files.
2543 # AIX                   -qlanglvl=ansi
2544 # Ultrix and OSF/1      -std1
2545 # HP-UX 10.20 and later -Ae
2546 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2547 # SVR4                  -Xc -D__EXTENSIONS__
2548 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2549 do
2550   CC="$ac_save_CC $ac_arg"
2551   rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553   (eval $ac_compile) 2>conftest.er1
2554   ac_status=$?
2555   grep -v '^ *+' conftest.er1 >conftest.err
2556   rm -f conftest.er1
2557   cat conftest.err >&5
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); } &&
2560          { ac_try='test -z "$ac_c_werror_flag"
2561                          || test ! -s conftest.err'
2562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; } &&
2567          { ac_try='test -s conftest.$ac_objext'
2568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569   (eval $ac_try) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; }; then
2573   ac_cv_prog_cc_stdc=$ac_arg
2574 break
2575 else
2576   echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578
2579 fi
2580 rm -f conftest.err conftest.$ac_objext
2581 done
2582 rm -f conftest.$ac_ext conftest.$ac_objext
2583 CC=$ac_save_CC
2584
2585 fi
2586
2587 case "x$ac_cv_prog_cc_stdc" in
2588   x|xno)
2589     echo "$as_me:$LINENO: result: none needed" >&5
2590 echo "${ECHO_T}none needed" >&6 ;;
2591   *)
2592     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2594     CC="$CC $ac_cv_prog_cc_stdc" ;;
2595 esac
2596
2597 # Some people use a C++ compiler to compile C.  Since we use `exit',
2598 # in C++ we need to declare it.  In case someone uses the same compiler
2599 # for both compiling C and C++ we need to have the C++ compiler decide
2600 # the declaration of exit, since it's the most demanding environment.
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #ifndef __cplusplus
2603   choke me
2604 #endif
2605 _ACEOF
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608   (eval $ac_compile) 2>conftest.er1
2609   ac_status=$?
2610   grep -v '^ *+' conftest.er1 >conftest.err
2611   rm -f conftest.er1
2612   cat conftest.err >&5
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -z "$ac_c_werror_flag"
2616                          || test ! -s conftest.err'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; } &&
2622          { ac_try='test -s conftest.$ac_objext'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; }; then
2628   for ac_declaration in \
2629    '' \
2630    'extern "C" void std::exit (int) throw (); using std::exit;' \
2631    'extern "C" void std::exit (int); using std::exit;' \
2632    'extern "C" void exit (int) throw ();' \
2633    'extern "C" void exit (int);' \
2634    'void exit (int);'
2635 do
2636   cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h.  */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h.  */
2642 $ac_declaration
2643 #include <stdlib.h>
2644 int
2645 main ()
2646 {
2647 exit (42);
2648   ;
2649   return 0;
2650 }
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654   (eval $ac_compile) 2>conftest.er1
2655   ac_status=$?
2656   grep -v '^ *+' conftest.er1 >conftest.err
2657   rm -f conftest.er1
2658   cat conftest.err >&5
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); } &&
2661          { ac_try='test -z "$ac_c_werror_flag"
2662                          || test ! -s conftest.err'
2663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664   (eval $ac_try) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; } &&
2668          { ac_try='test -s conftest.$ac_objext'
2669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670   (eval $ac_try) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }; }; then
2674   :
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679 continue
2680 fi
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682   cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688 $ac_declaration
2689 int
2690 main ()
2691 {
2692 exit (42);
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699   (eval $ac_compile) 2>conftest.er1
2700   ac_status=$?
2701   grep -v '^ *+' conftest.er1 >conftest.err
2702   rm -f conftest.er1
2703   cat conftest.err >&5
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); } &&
2706          { ac_try='test -z "$ac_c_werror_flag"
2707                          || test ! -s conftest.err'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; } &&
2713          { ac_try='test -s conftest.$ac_objext'
2714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; }; then
2719   break
2720 else
2721   echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724 fi
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 done
2727 rm -f conftest*
2728 if test -n "$ac_declaration"; then
2729   echo '#ifdef __cplusplus' >>confdefs.h
2730   echo $ac_declaration      >>confdefs.h
2731   echo '#endif'             >>confdefs.h
2732 fi
2733
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 fi
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_ext=c
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745
2746 if test "x$CC" != xcc; then
2747   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2748 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2749 else
2750   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2751 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2752 fi
2753 set dummy $CC; ac_cc=`echo $2 |
2754                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2755 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h.  */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h.  */
2764
2765 int
2766 main ()
2767 {
2768
2769   ;
2770   return 0;
2771 }
2772 _ACEOF
2773 # Make sure it works both with $CC and with simple cc.
2774 # We do the test twice because some compilers refuse to overwrite an
2775 # existing .o file with -o, though they will create one.
2776 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2777 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778   (eval $ac_try) 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); } &&
2782    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); };
2787 then
2788   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2789   if test "x$CC" != xcc; then
2790     # Test first that cc exists at all.
2791     if { ac_try='cc -c conftest.$ac_ext >&5'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; }; then
2797       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2798       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); } &&
2803          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); };
2808       then
2809         # cc works too.
2810         :
2811       else
2812         # cc exists but doesn't like -o.
2813         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2814       fi
2815     fi
2816   fi
2817 else
2818   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2819 fi
2820 rm -f conftest*
2821
2822 fi
2823 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2824   echo "$as_me:$LINENO: result: yes" >&5
2825 echo "${ECHO_T}yes" >&6
2826 else
2827   echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2829
2830 cat >>confdefs.h <<\_ACEOF
2831 #define NO_MINUS_C_MINUS_O 1
2832 _ACEOF
2833
2834 fi
2835
2836 # expand $ac_aux_dir to an absolute path
2837 am_aux_dir=`cd $ac_aux_dir && pwd`
2838
2839 # FIXME: we rely on the cache variable name because
2840 # there is no other way.
2841 set dummy $CC
2842 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2843 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2844    # Losing compiler, so override with the script.
2845    # FIXME: It is wrong to rewrite CC.
2846    # But if we don't then we get into trouble of one sort or another.
2847    # A longer-term fix would be to have automake use am__CC in this case,
2848    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2849    CC="$am_aux_dir/compile $CC"
2850 fi
2851
2852 # autoconf is lame and doesn't give us any substitution variable for this.
2853 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2854   NO_MINUS_C_MINUS_O=yes
2855 else
2856   OUTPUT_OPTION='-o $@'
2857 fi
2858
2859
2860
2861 # -------------------------
2862 # Check C compiler features
2863 # -------------------------
2864
2865 ac_ext=c
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2871 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2872 # On Suns, sometimes $CPP names a directory.
2873 if test -n "$CPP" && test -d "$CPP"; then
2874   CPP=
2875 fi
2876 if test -z "$CPP"; then
2877   if test "${ac_cv_prog_CPP+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880       # Double quotes because CPP needs to be expanded
2881     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2882     do
2883       ac_preproc_ok=false
2884 for ac_c_preproc_warn_flag in '' yes
2885 do
2886   # Use a header file that comes with gcc, so configuring glibc
2887   # with a fresh cross-compiler works.
2888   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2889   # <limits.h> exists even on freestanding compilers.
2890   # On the NeXT, cc -E runs the code through the compiler's parser,
2891   # not just through cpp. "Syntax error" is here to catch this case.
2892   cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h.  */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h.  */
2898 #ifdef __STDC__
2899 # include <limits.h>
2900 #else
2901 # include <assert.h>
2902 #endif
2903                      Syntax error
2904 _ACEOF
2905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2907   ac_status=$?
2908   grep -v '^ *+' conftest.er1 >conftest.err
2909   rm -f conftest.er1
2910   cat conftest.err >&5
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); } >/dev/null; then
2913   if test -s conftest.err; then
2914     ac_cpp_err=$ac_c_preproc_warn_flag
2915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2916   else
2917     ac_cpp_err=
2918   fi
2919 else
2920   ac_cpp_err=yes
2921 fi
2922 if test -z "$ac_cpp_err"; then
2923   :
2924 else
2925   echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2927
2928   # Broken: fails on valid input.
2929 continue
2930 fi
2931 rm -f conftest.err conftest.$ac_ext
2932
2933   # OK, works on sane cases.  Now check whether non-existent headers
2934   # can be detected and how.
2935   cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h.  */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h.  */
2941 #include <ac_nonexistent.h>
2942 _ACEOF
2943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2945   ac_status=$?
2946   grep -v '^ *+' conftest.er1 >conftest.err
2947   rm -f conftest.er1
2948   cat conftest.err >&5
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); } >/dev/null; then
2951   if test -s conftest.err; then
2952     ac_cpp_err=$ac_c_preproc_warn_flag
2953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2954   else
2955     ac_cpp_err=
2956   fi
2957 else
2958   ac_cpp_err=yes
2959 fi
2960 if test -z "$ac_cpp_err"; then
2961   # Broken: success on invalid input.
2962 continue
2963 else
2964   echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2966
2967   # Passes both tests.
2968 ac_preproc_ok=:
2969 break
2970 fi
2971 rm -f conftest.err conftest.$ac_ext
2972
2973 done
2974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2975 rm -f conftest.err conftest.$ac_ext
2976 if $ac_preproc_ok; then
2977   break
2978 fi
2979
2980     done
2981     ac_cv_prog_CPP=$CPP
2982
2983 fi
2984   CPP=$ac_cv_prog_CPP
2985 else
2986   ac_cv_prog_CPP=$CPP
2987 fi
2988 echo "$as_me:$LINENO: result: $CPP" >&5
2989 echo "${ECHO_T}$CPP" >&6
2990 ac_preproc_ok=false
2991 for ac_c_preproc_warn_flag in '' yes
2992 do
2993   # Use a header file that comes with gcc, so configuring glibc
2994   # with a fresh cross-compiler works.
2995   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2996   # <limits.h> exists even on freestanding compilers.
2997   # On the NeXT, cc -E runs the code through the compiler's parser,
2998   # not just through cpp. "Syntax error" is here to catch this case.
2999   cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h.  */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h.  */
3005 #ifdef __STDC__
3006 # include <limits.h>
3007 #else
3008 # include <assert.h>
3009 #endif
3010                      Syntax error
3011 _ACEOF
3012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3014   ac_status=$?
3015   grep -v '^ *+' conftest.er1 >conftest.err
3016   rm -f conftest.er1
3017   cat conftest.err >&5
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); } >/dev/null; then
3020   if test -s conftest.err; then
3021     ac_cpp_err=$ac_c_preproc_warn_flag
3022     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3023   else
3024     ac_cpp_err=
3025   fi
3026 else
3027   ac_cpp_err=yes
3028 fi
3029 if test -z "$ac_cpp_err"; then
3030   :
3031 else
3032   echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035   # Broken: fails on valid input.
3036 continue
3037 fi
3038 rm -f conftest.err conftest.$ac_ext
3039
3040   # OK, works on sane cases.  Now check whether non-existent headers
3041   # can be detected and how.
3042   cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h.  */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h.  */
3048 #include <ac_nonexistent.h>
3049 _ACEOF
3050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3051   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } >/dev/null; then
3058   if test -s conftest.err; then
3059     ac_cpp_err=$ac_c_preproc_warn_flag
3060     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3061   else
3062     ac_cpp_err=
3063   fi
3064 else
3065   ac_cpp_err=yes
3066 fi
3067 if test -z "$ac_cpp_err"; then
3068   # Broken: success on invalid input.
3069 continue
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074   # Passes both tests.
3075 ac_preproc_ok=:
3076 break
3077 fi
3078 rm -f conftest.err conftest.$ac_ext
3079
3080 done
3081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3082 rm -f conftest.err conftest.$ac_ext
3083 if $ac_preproc_ok; then
3084   :
3085 else
3086   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3087 See \`config.log' for more details." >&5
3088 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3089 See \`config.log' for more details." >&2;}
3090    { (exit 1); exit 1; }; }
3091 fi
3092
3093 ac_ext=c
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098
3099
3100 echo "$as_me:$LINENO: checking for inline" >&5
3101 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3102 if test "${ac_cv_c_inline+set}" = set; then
3103   echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105   ac_cv_c_inline=no
3106 for ac_kw in inline __inline__ __inline; do
3107   cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h.  */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h.  */
3113 #ifndef __cplusplus
3114 typedef int foo_t;
3115 static $ac_kw foo_t static_foo () {return 0; }
3116 $ac_kw foo_t foo () {return 0; }
3117 #endif
3118
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122   (eval $ac_compile) 2>conftest.er1
3123   ac_status=$?
3124   grep -v '^ *+' conftest.er1 >conftest.err
3125   rm -f conftest.er1
3126   cat conftest.err >&5
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); } &&
3129          { ac_try='test -z "$ac_c_werror_flag"
3130                          || test ! -s conftest.err'
3131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132   (eval $ac_try) 2>&5
3133   ac_status=$?
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); }; } &&
3136          { ac_try='test -s conftest.$ac_objext'
3137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138   (eval $ac_try) 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; }; then
3142   ac_cv_c_inline=$ac_kw; break
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 fi
3148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3149 done
3150
3151 fi
3152 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3153 echo "${ECHO_T}$ac_cv_c_inline" >&6
3154
3155
3156 case $ac_cv_c_inline in
3157   inline | yes) ;;
3158   *)
3159     case $ac_cv_c_inline in
3160       no) ac_val=;;
3161       *) ac_val=$ac_cv_c_inline;;
3162     esac
3163     cat >>confdefs.h <<_ACEOF
3164 #ifndef __cplusplus
3165 #define inline $ac_val
3166 #endif
3167 _ACEOF
3168     ;;
3169 esac
3170
3171
3172 echo "$as_me:$LINENO: checking for long long int" >&5
3173 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3174 if test "${ac_cv_c_long_long+set}" = set; then
3175   echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177   cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h.  */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h.  */
3183
3184 int
3185 main ()
3186 {
3187 long long int i;
3188   ;
3189   return 0;
3190 }
3191 _ACEOF
3192 rm -f conftest.$ac_objext
3193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3194   (eval $ac_compile) 2>conftest.er1
3195   ac_status=$?
3196   grep -v '^ *+' conftest.er1 >conftest.err
3197   rm -f conftest.er1
3198   cat conftest.err >&5
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); } &&
3201          { ac_try='test -z "$ac_c_werror_flag"
3202                          || test ! -s conftest.err'
3203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204   (eval $ac_try) 2>&5
3205   ac_status=$?
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); }; } &&
3208          { ac_try='test -s conftest.$ac_objext'
3209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210   (eval $ac_try) 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); }; }; then
3214   ac_cv_c_long_long=yes
3215 else
3216   echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 ac_cv_c_long_long=no
3220 fi
3221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3222 fi
3223 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3224 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3225   if test $ac_cv_c_long_long = yes; then
3226
3227 cat >>confdefs.h <<\_ACEOF
3228 #define HAVE_LONG_LONG 1
3229 _ACEOF
3230
3231   fi
3232 echo "$as_me:$LINENO: checking for __int64" >&5
3233 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3234 if test "${ac_cv_c___int64+set}" = set; then
3235   echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243
3244 int
3245 main ()
3246 {
3247 __int64 i;
3248   ;
3249   return 0;
3250 }
3251 _ACEOF
3252 rm -f conftest.$ac_objext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254   (eval $ac_compile) 2>conftest.er1
3255   ac_status=$?
3256   grep -v '^ *+' conftest.er1 >conftest.err
3257   rm -f conftest.er1
3258   cat conftest.err >&5
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); } &&
3261          { ac_try='test -z "$ac_c_werror_flag"
3262                          || test ! -s conftest.err'
3263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264   (eval $ac_try) 2>&5
3265   ac_status=$?
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); }; } &&
3268          { ac_try='test -s conftest.$ac_objext'
3269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270   (eval $ac_try) 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); }; }; then
3274   ac_cv_c___int64=yes
3275 else
3276   echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3278
3279 ac_cv_c___int64=no
3280 fi
3281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3282 fi
3283 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3284 echo "${ECHO_T}$ac_cv_c___int64" >&6
3285   if test $ac_cv_c___int64 = yes; then
3286
3287 cat >>confdefs.h <<\_ACEOF
3288 #define HAVE___INT64 1
3289 _ACEOF
3290
3291   fi
3292
3293
3294 # sizeof(char) is 1 by definition.
3295
3296 echo "$as_me:$LINENO: checking for egrep" >&5
3297 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3298 if test "${ac_cv_prog_egrep+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3302     then ac_cv_prog_egrep='grep -E'
3303     else ac_cv_prog_egrep='egrep'
3304     fi
3305 fi
3306 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3307 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3308  EGREP=$ac_cv_prog_egrep
3309
3310
3311 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3312 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3313 if test "${ac_cv_header_stdc+set}" = set; then
3314   echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316   cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h.  */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h.  */
3322 #include <stdlib.h>
3323 #include <stdarg.h>
3324 #include <string.h>
3325 #include <float.h>
3326
3327 int
3328 main ()
3329 {
3330
3331   ;
3332   return 0;
3333 }
3334 _ACEOF
3335 rm -f conftest.$ac_objext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337   (eval $ac_compile) 2>conftest.er1
3338   ac_status=$?
3339   grep -v '^ *+' conftest.er1 >conftest.err
3340   rm -f conftest.er1
3341   cat conftest.err >&5
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); } &&
3344          { ac_try='test -z "$ac_c_werror_flag"
3345                          || test ! -s conftest.err'
3346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347   (eval $ac_try) 2>&5
3348   ac_status=$?
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); }; } &&
3351          { ac_try='test -s conftest.$ac_objext'
3352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353   (eval $ac_try) 2>&5
3354   ac_status=$?
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); }; }; then
3357   ac_cv_header_stdc=yes
3358 else
3359   echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 ac_cv_header_stdc=no
3363 fi
3364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3365
3366 if test $ac_cv_header_stdc = yes; then
3367   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3368   cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h.  */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h.  */
3374 #include <string.h>
3375
3376 _ACEOF
3377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3378   $EGREP "memchr" >/dev/null 2>&1; then
3379   :
3380 else
3381   ac_cv_header_stdc=no
3382 fi
3383 rm -f conftest*
3384
3385 fi
3386
3387 if test $ac_cv_header_stdc = yes; then
3388   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3389   cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h.  */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h.  */
3395 #include <stdlib.h>
3396
3397 _ACEOF
3398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3399   $EGREP "free" >/dev/null 2>&1; then
3400   :
3401 else
3402   ac_cv_header_stdc=no
3403 fi
3404 rm -f conftest*
3405
3406 fi
3407
3408 if test $ac_cv_header_stdc = yes; then
3409   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3410   if test "$cross_compiling" = yes; then
3411   :
3412 else
3413   cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h.  */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h.  */
3419 #include <ctype.h>
3420 #if ((' ' & 0x0FF) == 0x020)
3421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3423 #else
3424 # define ISLOWER(c) \
3425                    (('a' <= (c) && (c) <= 'i') \
3426                      || ('j' <= (c) && (c) <= 'r') \
3427                      || ('s' <= (c) && (c) <= 'z'))
3428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3429 #endif
3430
3431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3432 int
3433 main ()
3434 {
3435   int i;
3436   for (i = 0; i < 256; i++)
3437     if (XOR (islower (i), ISLOWER (i))
3438         || toupper (i) != TOUPPER (i))
3439       exit(2);
3440   exit (0);
3441 }
3442 _ACEOF
3443 rm -f conftest$ac_exeext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3445   (eval $ac_link) 2>&5
3446   ac_status=$?
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450   (eval $ac_try) 2>&5
3451   ac_status=$?
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); }; }; then
3454   :
3455 else
3456   echo "$as_me: program exited with status $ac_status" >&5
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 ( exit $ac_status )
3461 ac_cv_header_stdc=no
3462 fi
3463 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3464 fi
3465 fi
3466 fi
3467 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3468 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3469 if test $ac_cv_header_stdc = yes; then
3470
3471 cat >>confdefs.h <<\_ACEOF
3472 #define STDC_HEADERS 1
3473 _ACEOF
3474
3475 fi
3476
3477 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3488                   inttypes.h stdint.h unistd.h
3489 do
3490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3491 echo "$as_me:$LINENO: checking for $ac_header" >&5
3492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496   cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h.  */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h.  */
3502 $ac_includes_default
3503
3504 #include <$ac_header>
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508   (eval $ac_compile) 2>conftest.er1
3509   ac_status=$?
3510   grep -v '^ *+' conftest.er1 >conftest.err
3511   rm -f conftest.er1
3512   cat conftest.err >&5
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); } &&
3515          { ac_try='test -z "$ac_c_werror_flag"
3516                          || test ! -s conftest.err'
3517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518   (eval $ac_try) 2>&5
3519   ac_status=$?
3520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521   (exit $ac_status); }; } &&
3522          { ac_try='test -s conftest.$ac_objext'
3523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524   (eval $ac_try) 2>&5
3525   ac_status=$?
3526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527   (exit $ac_status); }; }; then
3528   eval "$as_ac_Header=yes"
3529 else
3530   echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 eval "$as_ac_Header=no"
3534 fi
3535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536 fi
3537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3540   cat >>confdefs.h <<_ACEOF
3541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3542 _ACEOF
3543
3544 fi
3545
3546 done
3547
3548
3549 echo "$as_me:$LINENO: checking for void *" >&5
3550 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3551 if test "${ac_cv_type_void_p+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h.  */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h.  */
3560 $ac_includes_default
3561 int
3562 main ()
3563 {
3564 if ((void * *) 0)
3565   return 0;
3566 if (sizeof (void *))
3567   return 0;
3568   ;
3569   return 0;
3570 }
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574   (eval $ac_compile) 2>conftest.er1
3575   ac_status=$?
3576   grep -v '^ *+' conftest.er1 >conftest.err
3577   rm -f conftest.er1
3578   cat conftest.err >&5
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); } &&
3581          { ac_try='test -z "$ac_c_werror_flag"
3582                          || test ! -s conftest.err'
3583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584   (eval $ac_try) 2>&5
3585   ac_status=$?
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); }; } &&
3588          { ac_try='test -s conftest.$ac_objext'
3589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590   (eval $ac_try) 2>&5
3591   ac_status=$?
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); }; }; then
3594   ac_cv_type_void_p=yes
3595 else
3596   echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3598
3599 ac_cv_type_void_p=no
3600 fi
3601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3603 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3604 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3605
3606 echo "$as_me:$LINENO: checking size of void *" >&5
3607 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3608 if test "${ac_cv_sizeof_void_p+set}" = set; then
3609   echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611   if test "$ac_cv_type_void_p" = yes; then
3612   # The cast to unsigned long works around a bug in the HP C Compiler
3613   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3614   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3615   # This bug is HP SR number 8606223364.
3616   if test "$cross_compiling" = yes; then
3617   # Depending upon the size, compute the lo and hi bounds.
3618 cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h.  */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h.  */
3624 $ac_includes_default
3625 int
3626 main ()
3627 {
3628 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3629 test_array [0] = 0
3630
3631   ;
3632   return 0;
3633 }
3634 _ACEOF
3635 rm -f conftest.$ac_objext
3636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637   (eval $ac_compile) 2>conftest.er1
3638   ac_status=$?
3639   grep -v '^ *+' conftest.er1 >conftest.err
3640   rm -f conftest.er1
3641   cat conftest.err >&5
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); } &&
3644          { ac_try='test -z "$ac_c_werror_flag"
3645                          || test ! -s conftest.err'
3646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647   (eval $ac_try) 2>&5
3648   ac_status=$?
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); }; } &&
3651          { ac_try='test -s conftest.$ac_objext'
3652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653   (eval $ac_try) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); }; }; then
3657   ac_lo=0 ac_mid=0
3658   while :; do
3659     cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h.  */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h.  */
3665 $ac_includes_default
3666 int
3667 main ()
3668 {
3669 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3670 test_array [0] = 0
3671
3672   ;
3673   return 0;
3674 }
3675 _ACEOF
3676 rm -f conftest.$ac_objext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678   (eval $ac_compile) 2>conftest.er1
3679   ac_status=$?
3680   grep -v '^ *+' conftest.er1 >conftest.err
3681   rm -f conftest.er1
3682   cat conftest.err >&5
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); } &&
3685          { ac_try='test -z "$ac_c_werror_flag"
3686                          || test ! -s conftest.err'
3687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688   (eval $ac_try) 2>&5
3689   ac_status=$?
3690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); }; } &&
3692          { ac_try='test -s conftest.$ac_objext'
3693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694   (eval $ac_try) 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); }; }; then
3698   ac_hi=$ac_mid; break
3699 else
3700   echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703 ac_lo=`expr $ac_mid + 1`
3704                     if test $ac_lo -le $ac_mid; then
3705                       ac_lo= ac_hi=
3706                       break
3707                     fi
3708                     ac_mid=`expr 2 '*' $ac_mid + 1`
3709 fi
3710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3711   done
3712 else
3713   echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
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 $ac_includes_default
3723 int
3724 main ()
3725 {
3726 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3727 test_array [0] = 0
3728
3729   ;
3730   return 0;
3731 }
3732 _ACEOF
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735   (eval $ac_compile) 2>conftest.er1
3736   ac_status=$?
3737   grep -v '^ *+' conftest.er1 >conftest.err
3738   rm -f conftest.er1
3739   cat conftest.err >&5
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); } &&
3742          { ac_try='test -z "$ac_c_werror_flag"
3743                          || 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_hi=-1 ac_mid=-1
3756   while :; do
3757     cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h.  */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h.  */
3763 $ac_includes_default
3764 int
3765 main ()
3766 {
3767 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3768 test_array [0] = 0
3769
3770   ;
3771   return 0;
3772 }
3773 _ACEOF
3774 rm -f conftest.$ac_objext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3776   (eval $ac_compile) 2>conftest.er1
3777   ac_status=$?
3778   grep -v '^ *+' conftest.er1 >conftest.err
3779   rm -f conftest.er1
3780   cat conftest.err >&5
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); } &&
3783          { ac_try='test -z "$ac_c_werror_flag"
3784                          || test ! -s conftest.err'
3785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786   (eval $ac_try) 2>&5
3787   ac_status=$?
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); }; } &&
3790          { ac_try='test -s conftest.$ac_objext'
3791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792   (eval $ac_try) 2>&5
3793   ac_status=$?
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); }; }; then
3796   ac_lo=$ac_mid; break
3797 else
3798   echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3800
3801 ac_hi=`expr '(' $ac_mid ')' - 1`
3802                        if test $ac_mid -le $ac_hi; then
3803                          ac_lo= ac_hi=
3804                          break
3805                        fi
3806                        ac_mid=`expr 2 '*' $ac_mid`
3807 fi
3808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3809   done
3810 else
3811   echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814 ac_lo= ac_hi=
3815 fi
3816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3817 fi
3818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3819 # Binary search between lo and hi bounds.
3820 while test "x$ac_lo" != "x$ac_hi"; do
3821   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3822   cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h.  */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h.  */
3828 $ac_includes_default
3829 int
3830 main ()
3831 {
3832 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3833 test_array [0] = 0
3834
3835   ;
3836   return 0;
3837 }
3838 _ACEOF
3839 rm -f conftest.$ac_objext
3840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3841   (eval $ac_compile) 2>conftest.er1
3842   ac_status=$?
3843   grep -v '^ *+' conftest.er1 >conftest.err
3844   rm -f conftest.er1
3845   cat conftest.err >&5
3846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847   (exit $ac_status); } &&
3848          { ac_try='test -z "$ac_c_werror_flag"
3849                          || test ! -s conftest.err'
3850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851   (eval $ac_try) 2>&5
3852   ac_status=$?
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); }; } &&
3855          { ac_try='test -s conftest.$ac_objext'
3856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857   (eval $ac_try) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; }; then
3861   ac_hi=$ac_mid
3862 else
3863   echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866 ac_lo=`expr '(' $ac_mid ')' + 1`
3867 fi
3868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3869 done
3870 case $ac_lo in
3871 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3872 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3873 See \`config.log' for more details." >&5
3874 echo "$as_me: error: cannot compute sizeof (void *), 77
3875 See \`config.log' for more details." >&2;}
3876    { (exit 1); exit 1; }; } ;;
3877 esac
3878 else
3879   if test "$cross_compiling" = yes; then
3880   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3881 See \`config.log' for more details." >&5
3882 echo "$as_me: error: cannot run test program while cross compiling
3883 See \`config.log' for more details." >&2;}
3884    { (exit 1); exit 1; }; }
3885 else
3886   cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h.  */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h.  */
3892 $ac_includes_default
3893 long longval () { return (long) (sizeof (void *)); }
3894 unsigned long ulongval () { return (long) (sizeof (void *)); }
3895 #include <stdio.h>
3896 #include <stdlib.h>
3897 int
3898 main ()
3899 {
3900
3901   FILE *f = fopen ("conftest.val", "w");
3902   if (! f)
3903     exit (1);
3904   if (((long) (sizeof (void *))) < 0)
3905     {
3906       long i = longval ();
3907       if (i != ((long) (sizeof (void *))))
3908         exit (1);
3909       fprintf (f, "%ld\n", i);
3910     }
3911   else
3912     {
3913       unsigned long i = ulongval ();
3914       if (i != ((long) (sizeof (void *))))
3915         exit (1);
3916       fprintf (f, "%lu\n", i);
3917     }
3918   exit (ferror (f) || fclose (f) != 0);
3919
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest$ac_exeext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926   (eval $ac_link) 2>&5
3927   ac_status=$?
3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931   (eval $ac_try) 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); }; }; then
3935   ac_cv_sizeof_void_p=`cat conftest.val`
3936 else
3937   echo "$as_me: program exited with status $ac_status" >&5
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3940
3941 ( exit $ac_status )
3942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3943 See \`config.log' for more details." >&5
3944 echo "$as_me: error: cannot compute sizeof (void *), 77
3945 See \`config.log' for more details." >&2;}
3946    { (exit 1); exit 1; }; }
3947 fi
3948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3949 fi
3950 fi
3951 rm -f conftest.val
3952 else
3953   ac_cv_sizeof_void_p=0
3954 fi
3955 fi
3956 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3957 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3958 cat >>confdefs.h <<_ACEOF
3959 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3960 _ACEOF
3961
3962
3963 echo "$as_me:$LINENO: checking for short" >&5
3964 echo $ECHO_N "checking for short... $ECHO_C" >&6
3965 if test "${ac_cv_type_short+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h.  */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h.  */
3974 $ac_includes_default
3975 int
3976 main ()
3977 {
3978 if ((short *) 0)
3979   return 0;
3980 if (sizeof (short))
3981   return 0;
3982   ;
3983   return 0;
3984 }
3985 _ACEOF
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988   (eval $ac_compile) 2>conftest.er1
3989   ac_status=$?
3990   grep -v '^ *+' conftest.er1 >conftest.err
3991   rm -f conftest.er1
3992   cat conftest.err >&5
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); } &&
3995          { ac_try='test -z "$ac_c_werror_flag"
3996                          || test ! -s conftest.err'
3997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998   (eval $ac_try) 2>&5
3999   ac_status=$?
4000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001   (exit $ac_status); }; } &&
4002          { ac_try='test -s conftest.$ac_objext'
4003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004   (eval $ac_try) 2>&5
4005   ac_status=$?
4006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007   (exit $ac_status); }; }; then
4008   ac_cv_type_short=yes
4009 else
4010   echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4012
4013 ac_cv_type_short=no
4014 fi
4015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4016 fi
4017 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4018 echo "${ECHO_T}$ac_cv_type_short" >&6
4019
4020 echo "$as_me:$LINENO: checking size of short" >&5
4021 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4022 if test "${ac_cv_sizeof_short+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   if test "$ac_cv_type_short" = yes; then
4026   # The cast to unsigned long works around a bug in the HP C Compiler
4027   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4028   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4029   # This bug is HP SR number 8606223364.
4030   if test "$cross_compiling" = yes; then
4031   # Depending upon the size, compute the lo and hi bounds.
4032 cat >conftest.$ac_ext <<_ACEOF
4033 /* confdefs.h.  */
4034 _ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h.  */
4038 $ac_includes_default
4039 int
4040 main ()
4041 {
4042 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4043 test_array [0] = 0
4044
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 rm -f conftest.$ac_objext
4050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4051   (eval $ac_compile) 2>conftest.er1
4052   ac_status=$?
4053   grep -v '^ *+' conftest.er1 >conftest.err
4054   rm -f conftest.er1
4055   cat conftest.err >&5
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); } &&
4058          { ac_try='test -z "$ac_c_werror_flag"
4059                          || test ! -s conftest.err'
4060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061   (eval $ac_try) 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; } &&
4065          { ac_try='test -s conftest.$ac_objext'
4066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067   (eval $ac_try) 2>&5
4068   ac_status=$?
4069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070   (exit $ac_status); }; }; then
4071   ac_lo=0 ac_mid=0
4072   while :; do
4073     cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 $ac_includes_default
4080 int
4081 main ()
4082 {
4083 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4084 test_array [0] = 0
4085
4086   ;
4087   return 0;
4088 }
4089 _ACEOF
4090 rm -f conftest.$ac_objext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092   (eval $ac_compile) 2>conftest.er1
4093   ac_status=$?
4094   grep -v '^ *+' conftest.er1 >conftest.err
4095   rm -f conftest.er1
4096   cat conftest.err >&5
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); } &&
4099          { ac_try='test -z "$ac_c_werror_flag"
4100                          || test ! -s conftest.err'
4101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102   (eval $ac_try) 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); }; } &&
4106          { ac_try='test -s conftest.$ac_objext'
4107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108   (eval $ac_try) 2>&5
4109   ac_status=$?
4110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); }; }; then
4112   ac_hi=$ac_mid; break
4113 else
4114   echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4116
4117 ac_lo=`expr $ac_mid + 1`
4118                     if test $ac_lo -le $ac_mid; then
4119                       ac_lo= ac_hi=
4120                       break
4121                     fi
4122                     ac_mid=`expr 2 '*' $ac_mid + 1`
4123 fi
4124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4125   done
4126 else
4127   echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130 cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 $ac_includes_default
4137 int
4138 main ()
4139 {
4140 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4141 test_array [0] = 0
4142
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149   (eval $ac_compile) 2>conftest.er1
4150   ac_status=$?
4151   grep -v '^ *+' conftest.er1 >conftest.err
4152   rm -f conftest.er1
4153   cat conftest.err >&5
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); } &&
4156          { ac_try='test -z "$ac_c_werror_flag"
4157                          || test ! -s conftest.err'
4158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159   (eval $ac_try) 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); }; } &&
4163          { ac_try='test -s conftest.$ac_objext'
4164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165   (eval $ac_try) 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; }; then
4169   ac_hi=-1 ac_mid=-1
4170   while :; do
4171     cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177 $ac_includes_default
4178 int
4179 main ()
4180 {
4181 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4182 test_array [0] = 0
4183
4184   ;
4185   return 0;
4186 }
4187 _ACEOF
4188 rm -f conftest.$ac_objext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190   (eval $ac_compile) 2>conftest.er1
4191   ac_status=$?
4192   grep -v '^ *+' conftest.er1 >conftest.err
4193   rm -f conftest.er1
4194   cat conftest.err >&5
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); } &&
4197          { ac_try='test -z "$ac_c_werror_flag"
4198                          || test ! -s conftest.err'
4199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200   (eval $ac_try) 2>&5
4201   ac_status=$?
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); }; } &&
4204          { ac_try='test -s conftest.$ac_objext'
4205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206   (eval $ac_try) 2>&5
4207   ac_status=$?
4208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209   (exit $ac_status); }; }; then
4210   ac_lo=$ac_mid; break
4211 else
4212   echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4214
4215 ac_hi=`expr '(' $ac_mid ')' - 1`
4216                        if test $ac_mid -le $ac_hi; then
4217                          ac_lo= ac_hi=
4218                          break
4219                        fi
4220                        ac_mid=`expr 2 '*' $ac_mid`
4221 fi
4222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4223   done
4224 else
4225   echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 ac_lo= ac_hi=
4229 fi
4230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4231 fi
4232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4233 # Binary search between lo and hi bounds.
4234 while test "x$ac_lo" != "x$ac_hi"; do
4235   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4236   cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h.  */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h.  */
4242 $ac_includes_default
4243 int
4244 main ()
4245 {
4246 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4247 test_array [0] = 0
4248
4249   ;
4250   return 0;
4251 }
4252 _ACEOF
4253 rm -f conftest.$ac_objext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4255   (eval $ac_compile) 2>conftest.er1
4256   ac_status=$?
4257   grep -v '^ *+' conftest.er1 >conftest.err
4258   rm -f conftest.er1
4259   cat conftest.err >&5
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } &&
4262          { ac_try='test -z "$ac_c_werror_flag"
4263                          || test ! -s conftest.err'
4264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265   (eval $ac_try) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; } &&
4269          { ac_try='test -s conftest.$ac_objext'
4270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271   (eval $ac_try) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; }; then
4275   ac_hi=$ac_mid
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 ac_lo=`expr '(' $ac_mid ')' + 1`
4281 fi
4282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4283 done
4284 case $ac_lo in
4285 ?*) ac_cv_sizeof_short=$ac_lo;;
4286 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4287 See \`config.log' for more details." >&5
4288 echo "$as_me: error: cannot compute sizeof (short), 77
4289 See \`config.log' for more details." >&2;}
4290    { (exit 1); exit 1; }; } ;;
4291 esac
4292 else
4293   if test "$cross_compiling" = yes; then
4294   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4295 See \`config.log' for more details." >&5
4296 echo "$as_me: error: cannot run test program while cross compiling
4297 See \`config.log' for more details." >&2;}
4298    { (exit 1); exit 1; }; }
4299 else
4300   cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306 $ac_includes_default
4307 long longval () { return (long) (sizeof (short)); }
4308 unsigned long ulongval () { return (long) (sizeof (short)); }
4309 #include <stdio.h>
4310 #include <stdlib.h>
4311 int
4312 main ()
4313 {
4314
4315   FILE *f = fopen ("conftest.val", "w");
4316   if (! f)
4317     exit (1);
4318   if (((long) (sizeof (short))) < 0)
4319     {
4320       long i = longval ();
4321       if (i != ((long) (sizeof (short))))
4322         exit (1);
4323       fprintf (f, "%ld\n", i);
4324     }
4325   else
4326     {
4327       unsigned long i = ulongval ();
4328       if (i != ((long) (sizeof (short))))
4329         exit (1);
4330       fprintf (f, "%lu\n", i);
4331     }
4332   exit (ferror (f) || fclose (f) != 0);
4333
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 rm -f conftest$ac_exeext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340   (eval $ac_link) 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345   (eval $ac_try) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; }; then
4349   ac_cv_sizeof_short=`cat conftest.val`
4350 else
4351   echo "$as_me: program exited with status $ac_status" >&5
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4354
4355 ( exit $ac_status )
4356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4357 See \`config.log' for more details." >&5
4358 echo "$as_me: error: cannot compute sizeof (short), 77
4359 See \`config.log' for more details." >&2;}
4360    { (exit 1); exit 1; }; }
4361 fi
4362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4363 fi
4364 fi
4365 rm -f conftest.val
4366 else
4367   ac_cv_sizeof_short=0
4368 fi
4369 fi
4370 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4371 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4372 cat >>confdefs.h <<_ACEOF
4373 #define SIZEOF_SHORT $ac_cv_sizeof_short
4374 _ACEOF
4375
4376
4377 echo "$as_me:$LINENO: checking for int" >&5
4378 echo $ECHO_N "checking for int... $ECHO_C" >&6
4379 if test "${ac_cv_type_int+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388 $ac_includes_default
4389 int
4390 main ()
4391 {
4392 if ((int *) 0)
4393   return 0;
4394 if (sizeof (int))
4395   return 0;
4396   ;
4397   return 0;
4398 }
4399 _ACEOF
4400 rm -f conftest.$ac_objext
4401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402   (eval $ac_compile) 2>conftest.er1
4403   ac_status=$?
4404   grep -v '^ *+' conftest.er1 >conftest.err
4405   rm -f conftest.er1
4406   cat conftest.err >&5
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } &&
4409          { ac_try='test -z "$ac_c_werror_flag"
4410                          || test ! -s conftest.err'
4411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412   (eval $ac_try) 2>&5
4413   ac_status=$?
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); }; } &&
4416          { ac_try='test -s conftest.$ac_objext'
4417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418   (eval $ac_try) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; }; then
4422   ac_cv_type_int=yes
4423 else
4424   echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427 ac_cv_type_int=no
4428 fi
4429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4430 fi
4431 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4432 echo "${ECHO_T}$ac_cv_type_int" >&6
4433
4434 echo "$as_me:$LINENO: checking size of int" >&5
4435 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4436 if test "${ac_cv_sizeof_int+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   if test "$ac_cv_type_int" = yes; then
4440   # The cast to unsigned long works around a bug in the HP C Compiler
4441   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4442   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4443   # This bug is HP SR number 8606223364.
4444   if test "$cross_compiling" = yes; then
4445   # Depending upon the size, compute the lo and hi bounds.
4446 cat >conftest.$ac_ext <<_ACEOF
4447 /* confdefs.h.  */
4448 _ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h.  */
4452 $ac_includes_default
4453 int
4454 main ()
4455 {
4456 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4457 test_array [0] = 0
4458
4459   ;
4460   return 0;
4461 }
4462 _ACEOF
4463 rm -f conftest.$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465   (eval $ac_compile) 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } &&
4472          { ac_try='test -z "$ac_c_werror_flag"
4473                          || test ! -s conftest.err'
4474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475   (eval $ac_try) 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; } &&
4479          { ac_try='test -s conftest.$ac_objext'
4480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481   (eval $ac_try) 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); }; }; then
4485   ac_lo=0 ac_mid=0
4486   while :; do
4487     cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493 $ac_includes_default
4494 int
4495 main ()
4496 {
4497 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4498 test_array [0] = 0
4499
4500   ;
4501   return 0;
4502 }
4503 _ACEOF
4504 rm -f conftest.$ac_objext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506   (eval $ac_compile) 2>conftest.er1
4507   ac_status=$?
4508   grep -v '^ *+' conftest.er1 >conftest.err
4509   rm -f conftest.er1
4510   cat conftest.err >&5
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); } &&
4513          { ac_try='test -z "$ac_c_werror_flag"
4514                          || test ! -s conftest.err'
4515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516   (eval $ac_try) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); }; } &&
4520          { ac_try='test -s conftest.$ac_objext'
4521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522   (eval $ac_try) 2>&5
4523   ac_status=$?
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); }; }; then
4526   ac_hi=$ac_mid; break
4527 else
4528   echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4530
4531 ac_lo=`expr $ac_mid + 1`
4532                     if test $ac_lo -le $ac_mid; then
4533                       ac_lo= ac_hi=
4534                       break
4535                     fi
4536                     ac_mid=`expr 2 '*' $ac_mid + 1`
4537 fi
4538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4539   done
4540 else
4541   echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4543
4544 cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h.  */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h.  */
4550 $ac_includes_default
4551 int
4552 main ()
4553 {
4554 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4555 test_array [0] = 0
4556
4557   ;
4558   return 0;
4559 }
4560 _ACEOF
4561 rm -f conftest.$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563   (eval $ac_compile) 2>conftest.er1
4564   ac_status=$?
4565   grep -v '^ *+' conftest.er1 >conftest.err
4566   rm -f conftest.er1
4567   cat conftest.err >&5
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); } &&
4570          { ac_try='test -z "$ac_c_werror_flag"
4571                          || test ! -s conftest.err'
4572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573   (eval $ac_try) 2>&5
4574   ac_status=$?
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); }; } &&
4577          { ac_try='test -s conftest.$ac_objext'
4578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579   (eval $ac_try) 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; }; then
4583   ac_hi=-1 ac_mid=-1
4584   while :; do
4585     cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h.  */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h.  */
4591 $ac_includes_default
4592 int
4593 main ()
4594 {
4595 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4596 test_array [0] = 0
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604   (eval $ac_compile) 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -z "$ac_c_werror_flag"
4612                          || test ! -s conftest.err'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; } &&
4618          { ac_try='test -s conftest.$ac_objext'
4619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620   (eval $ac_try) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; }; then
4624   ac_lo=$ac_mid; break
4625 else
4626   echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 ac_hi=`expr '(' $ac_mid ')' - 1`
4630                        if test $ac_mid -le $ac_hi; then
4631                          ac_lo= ac_hi=
4632                          break
4633                        fi
4634                        ac_mid=`expr 2 '*' $ac_mid`
4635 fi
4636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4637   done
4638 else
4639   echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 ac_lo= ac_hi=
4643 fi
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645 fi
4646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4647 # Binary search between lo and hi bounds.
4648 while test "x$ac_lo" != "x$ac_hi"; do
4649   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4650   cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656 $ac_includes_default
4657 int
4658 main ()
4659 {
4660 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4661 test_array [0] = 0
4662
4663   ;
4664   return 0;
4665 }
4666 _ACEOF
4667 rm -f conftest.$ac_objext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669   (eval $ac_compile) 2>conftest.er1
4670   ac_status=$?
4671   grep -v '^ *+' conftest.er1 >conftest.err
4672   rm -f conftest.er1
4673   cat conftest.err >&5
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } &&
4676          { ac_try='test -z "$ac_c_werror_flag"
4677                          || test ! -s conftest.err'
4678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679   (eval $ac_try) 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; } &&
4683          { ac_try='test -s conftest.$ac_objext'
4684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685   (eval $ac_try) 2>&5
4686   ac_status=$?
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); }; }; then
4689   ac_hi=$ac_mid
4690 else
4691   echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4693
4694 ac_lo=`expr '(' $ac_mid ')' + 1`
4695 fi
4696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697 done
4698 case $ac_lo in
4699 ?*) ac_cv_sizeof_int=$ac_lo;;
4700 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4701 See \`config.log' for more details." >&5
4702 echo "$as_me: error: cannot compute sizeof (int), 77
4703 See \`config.log' for more details." >&2;}
4704    { (exit 1); exit 1; }; } ;;
4705 esac
4706 else
4707   if test "$cross_compiling" = yes; then
4708   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4709 See \`config.log' for more details." >&5
4710 echo "$as_me: error: cannot run test program while cross compiling
4711 See \`config.log' for more details." >&2;}
4712    { (exit 1); exit 1; }; }
4713 else
4714   cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h.  */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h.  */
4720 $ac_includes_default
4721 long longval () { return (long) (sizeof (int)); }
4722 unsigned long ulongval () { return (long) (sizeof (int)); }
4723 #include <stdio.h>
4724 #include <stdlib.h>
4725 int
4726 main ()
4727 {
4728
4729   FILE *f = fopen ("conftest.val", "w");
4730   if (! f)
4731     exit (1);
4732   if (((long) (sizeof (int))) < 0)
4733     {
4734       long i = longval ();
4735       if (i != ((long) (sizeof (int))))
4736         exit (1);
4737       fprintf (f, "%ld\n", i);
4738     }
4739   else
4740     {
4741       unsigned long i = ulongval ();
4742       if (i != ((long) (sizeof (int))))
4743         exit (1);
4744       fprintf (f, "%lu\n", i);
4745     }
4746   exit (ferror (f) || fclose (f) != 0);
4747
4748   ;
4749   return 0;
4750 }
4751 _ACEOF
4752 rm -f conftest$ac_exeext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4754   (eval $ac_link) 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759   (eval $ac_try) 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); }; }; then
4763   ac_cv_sizeof_int=`cat conftest.val`
4764 else
4765   echo "$as_me: program exited with status $ac_status" >&5
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769 ( exit $ac_status )
4770 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4771 See \`config.log' for more details." >&5
4772 echo "$as_me: error: cannot compute sizeof (int), 77
4773 See \`config.log' for more details." >&2;}
4774    { (exit 1); exit 1; }; }
4775 fi
4776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4777 fi
4778 fi
4779 rm -f conftest.val
4780 else
4781   ac_cv_sizeof_int=0
4782 fi
4783 fi
4784 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4785 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4786 cat >>confdefs.h <<_ACEOF
4787 #define SIZEOF_INT $ac_cv_sizeof_int
4788 _ACEOF
4789
4790
4791 echo "$as_me:$LINENO: checking for long" >&5
4792 echo $ECHO_N "checking for long... $ECHO_C" >&6
4793 if test "${ac_cv_type_long+set}" = set; then
4794   echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796   cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802 $ac_includes_default
4803 int
4804 main ()
4805 {
4806 if ((long *) 0)
4807   return 0;
4808 if (sizeof (long))
4809   return 0;
4810   ;
4811   return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816   (eval $ac_compile) 2>conftest.er1
4817   ac_status=$?
4818   grep -v '^ *+' conftest.er1 >conftest.err
4819   rm -f conftest.er1
4820   cat conftest.err >&5
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); } &&
4823          { ac_try='test -z "$ac_c_werror_flag"
4824                          || test ! -s conftest.err'
4825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826   (eval $ac_try) 2>&5
4827   ac_status=$?
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); }; } &&
4830          { ac_try='test -s conftest.$ac_objext'
4831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832   (eval $ac_try) 2>&5
4833   ac_status=$?
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); }; }; then
4836   ac_cv_type_long=yes
4837 else
4838   echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841 ac_cv_type_long=no
4842 fi
4843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844 fi
4845 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4846 echo "${ECHO_T}$ac_cv_type_long" >&6
4847
4848 echo "$as_me:$LINENO: checking size of long" >&5
4849 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4850 if test "${ac_cv_sizeof_long+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   if test "$ac_cv_type_long" = yes; then
4854   # The cast to unsigned long works around a bug in the HP C Compiler
4855   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4856   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4857   # This bug is HP SR number 8606223364.
4858   if test "$cross_compiling" = yes; then
4859   # Depending upon the size, compute the lo and hi bounds.
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h.  */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h.  */
4866 $ac_includes_default
4867 int
4868 main ()
4869 {
4870 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4871 test_array [0] = 0
4872
4873   ;
4874   return 0;
4875 }
4876 _ACEOF
4877 rm -f conftest.$ac_objext
4878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4879   (eval $ac_compile) 2>conftest.er1
4880   ac_status=$?
4881   grep -v '^ *+' conftest.er1 >conftest.err
4882   rm -f conftest.er1
4883   cat conftest.err >&5
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); } &&
4886          { ac_try='test -z "$ac_c_werror_flag"
4887                          || test ! -s conftest.err'
4888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889   (eval $ac_try) 2>&5
4890   ac_status=$?
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); }; } &&
4893          { ac_try='test -s conftest.$ac_objext'
4894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895   (eval $ac_try) 2>&5
4896   ac_status=$?
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); }; }; then
4899   ac_lo=0 ac_mid=0
4900   while :; do
4901     cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h.  */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h.  */
4907 $ac_includes_default
4908 int
4909 main ()
4910 {
4911 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4912 test_array [0] = 0
4913
4914   ;
4915   return 0;
4916 }
4917 _ACEOF
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920   (eval $ac_compile) 2>conftest.er1
4921   ac_status=$?
4922   grep -v '^ *+' conftest.er1 >conftest.err
4923   rm -f conftest.er1
4924   cat conftest.err >&5
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } &&
4927          { ac_try='test -z "$ac_c_werror_flag"
4928                          || test ! -s conftest.err'
4929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930   (eval $ac_try) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); }; } &&
4934          { ac_try='test -s conftest.$ac_objext'
4935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936   (eval $ac_try) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); }; }; then
4940   ac_hi=$ac_mid; break
4941 else
4942   echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 ac_lo=`expr $ac_mid + 1`
4946                     if test $ac_lo -le $ac_mid; then
4947                       ac_lo= ac_hi=
4948                       break
4949                     fi
4950                     ac_mid=`expr 2 '*' $ac_mid + 1`
4951 fi
4952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4953   done
4954 else
4955   echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h.  */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h.  */
4964 $ac_includes_default
4965 int
4966 main ()
4967 {
4968 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4969 test_array [0] = 0
4970
4971   ;
4972   return 0;
4973 }
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977   (eval $ac_compile) 2>conftest.er1
4978   ac_status=$?
4979   grep -v '^ *+' conftest.er1 >conftest.err
4980   rm -f conftest.er1
4981   cat conftest.err >&5
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); } &&
4984          { ac_try='test -z "$ac_c_werror_flag"
4985                          || test ! -s conftest.err'
4986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987   (eval $ac_try) 2>&5
4988   ac_status=$?
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); }; } &&
4991          { ac_try='test -s conftest.$ac_objext'
4992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993   (eval $ac_try) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); }; }; then
4997   ac_hi=-1 ac_mid=-1
4998   while :; do
4999     cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h.  */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h.  */
5005 $ac_includes_default
5006 int
5007 main ()
5008 {
5009 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5010 test_array [0] = 0
5011
5012   ;
5013   return 0;
5014 }
5015 _ACEOF
5016 rm -f conftest.$ac_objext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018   (eval $ac_compile) 2>conftest.er1
5019   ac_status=$?
5020   grep -v '^ *+' conftest.er1 >conftest.err
5021   rm -f conftest.er1
5022   cat conftest.err >&5
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); } &&
5025          { ac_try='test -z "$ac_c_werror_flag"
5026                          || test ! -s conftest.err'
5027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028   (eval $ac_try) 2>&5
5029   ac_status=$?
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); }; } &&
5032          { ac_try='test -s conftest.$ac_objext'
5033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034   (eval $ac_try) 2>&5
5035   ac_status=$?
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); }; }; then
5038   ac_lo=$ac_mid; break
5039 else
5040   echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5042
5043 ac_hi=`expr '(' $ac_mid ')' - 1`
5044                        if test $ac_mid -le $ac_hi; then
5045                          ac_lo= ac_hi=
5046                          break
5047                        fi
5048                        ac_mid=`expr 2 '*' $ac_mid`
5049 fi
5050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5051   done
5052 else
5053   echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5055
5056 ac_lo= ac_hi=
5057 fi
5058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5059 fi
5060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5061 # Binary search between lo and hi bounds.
5062 while test "x$ac_lo" != "x$ac_hi"; do
5063   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5064   cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h.  */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h.  */
5070 $ac_includes_default
5071 int
5072 main ()
5073 {
5074 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5075 test_array [0] = 0
5076
5077   ;
5078   return 0;
5079 }
5080 _ACEOF
5081 rm -f conftest.$ac_objext
5082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5083   (eval $ac_compile) 2>conftest.er1
5084   ac_status=$?
5085   grep -v '^ *+' conftest.er1 >conftest.err
5086   rm -f conftest.er1
5087   cat conftest.err >&5
5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); } &&
5090          { ac_try='test -z "$ac_c_werror_flag"
5091                          || test ! -s conftest.err'
5092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093   (eval $ac_try) 2>&5
5094   ac_status=$?
5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096   (exit $ac_status); }; } &&
5097          { ac_try='test -s conftest.$ac_objext'
5098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099   (eval $ac_try) 2>&5
5100   ac_status=$?
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); }; }; then
5103   ac_hi=$ac_mid
5104 else
5105   echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5107
5108 ac_lo=`expr '(' $ac_mid ')' + 1`
5109 fi
5110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5111 done
5112 case $ac_lo in
5113 ?*) ac_cv_sizeof_long=$ac_lo;;
5114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5115 See \`config.log' for more details." >&5
5116 echo "$as_me: error: cannot compute sizeof (long), 77
5117 See \`config.log' for more details." >&2;}
5118    { (exit 1); exit 1; }; } ;;
5119 esac
5120 else
5121   if test "$cross_compiling" = yes; then
5122   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5123 See \`config.log' for more details." >&5
5124 echo "$as_me: error: cannot run test program while cross compiling
5125 See \`config.log' for more details." >&2;}
5126    { (exit 1); exit 1; }; }
5127 else
5128   cat >conftest.$ac_ext <<_ACEOF
5129 /* confdefs.h.  */
5130 _ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h.  */
5134 $ac_includes_default
5135 long longval () { return (long) (sizeof (long)); }
5136 unsigned long ulongval () { return (long) (sizeof (long)); }
5137 #include <stdio.h>
5138 #include <stdlib.h>
5139 int
5140 main ()
5141 {
5142
5143   FILE *f = fopen ("conftest.val", "w");
5144   if (! f)
5145     exit (1);
5146   if (((long) (sizeof (long))) < 0)
5147     {
5148       long i = longval ();
5149       if (i != ((long) (sizeof (long))))
5150         exit (1);
5151       fprintf (f, "%ld\n", i);
5152     }
5153   else
5154     {
5155       unsigned long i = ulongval ();
5156       if (i != ((long) (sizeof (long))))
5157         exit (1);
5158       fprintf (f, "%lu\n", i);
5159     }
5160   exit (ferror (f) || fclose (f) != 0);
5161
5162   ;
5163   return 0;
5164 }
5165 _ACEOF
5166 rm -f conftest$ac_exeext
5167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5168   (eval $ac_link) 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173   (eval $ac_try) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; }; then
5177   ac_cv_sizeof_long=`cat conftest.val`
5178 else
5179   echo "$as_me: program exited with status $ac_status" >&5
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5182
5183 ( exit $ac_status )
5184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5185 See \`config.log' for more details." >&5
5186 echo "$as_me: error: cannot compute sizeof (long), 77
5187 See \`config.log' for more details." >&2;}
5188    { (exit 1); exit 1; }; }
5189 fi
5190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5191 fi
5192 fi
5193 rm -f conftest.val
5194 else
5195   ac_cv_sizeof_long=0
5196 fi
5197 fi
5198 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5199 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5200 cat >>confdefs.h <<_ACEOF
5201 #define SIZEOF_LONG $ac_cv_sizeof_long
5202 _ACEOF
5203
5204
5205 if test $ac_cv_c_long_long = yes; then
5206   echo "$as_me:$LINENO: checking for long long" >&5
5207 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5208 if test "${ac_cv_type_long_long+set}" = set; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211   cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h.  */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h.  */
5217 $ac_includes_default
5218 int
5219 main ()
5220 {
5221 if ((long long *) 0)
5222   return 0;
5223 if (sizeof (long long))
5224   return 0;
5225   ;
5226   return 0;
5227 }
5228 _ACEOF
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231   (eval $ac_compile) 2>conftest.er1
5232   ac_status=$?
5233   grep -v '^ *+' conftest.er1 >conftest.err
5234   rm -f conftest.er1
5235   cat conftest.err >&5
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); } &&
5238          { ac_try='test -z "$ac_c_werror_flag"
5239                          || test ! -s conftest.err'
5240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241   (eval $ac_try) 2>&5
5242   ac_status=$?
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); }; } &&
5245          { ac_try='test -s conftest.$ac_objext'
5246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247   (eval $ac_try) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); }; }; then
5251   ac_cv_type_long_long=yes
5252 else
5253   echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5255
5256 ac_cv_type_long_long=no
5257 fi
5258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5259 fi
5260 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5261 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5262
5263 echo "$as_me:$LINENO: checking size of long long" >&5
5264 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5265 if test "${ac_cv_sizeof_long_long+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268   if test "$ac_cv_type_long_long" = yes; then
5269   # The cast to unsigned long works around a bug in the HP C Compiler
5270   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5271   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5272   # This bug is HP SR number 8606223364.
5273   if test "$cross_compiling" = yes; then
5274   # Depending upon the size, compute the lo and hi bounds.
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h.  */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h.  */
5281 $ac_includes_default
5282 int
5283 main ()
5284 {
5285 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5286 test_array [0] = 0
5287
5288   ;
5289   return 0;
5290 }
5291 _ACEOF
5292 rm -f conftest.$ac_objext
5293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294   (eval $ac_compile) 2>conftest.er1
5295   ac_status=$?
5296   grep -v '^ *+' conftest.er1 >conftest.err
5297   rm -f conftest.er1
5298   cat conftest.err >&5
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); } &&
5301          { ac_try='test -z "$ac_c_werror_flag"
5302                          || test ! -s conftest.err'
5303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304   (eval $ac_try) 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); }; } &&
5308          { ac_try='test -s conftest.$ac_objext'
5309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; }; then
5314   ac_lo=0 ac_mid=0
5315   while :; do
5316     cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h.  */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h.  */
5322 $ac_includes_default
5323 int
5324 main ()
5325 {
5326 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5327 test_array [0] = 0
5328
5329   ;
5330   return 0;
5331 }
5332 _ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335   (eval $ac_compile) 2>conftest.er1
5336   ac_status=$?
5337   grep -v '^ *+' conftest.er1 >conftest.err
5338   rm -f conftest.er1
5339   cat conftest.err >&5
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); } &&
5342          { ac_try='test -z "$ac_c_werror_flag"
5343                          || test ! -s conftest.err'
5344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345   (eval $ac_try) 2>&5
5346   ac_status=$?
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); }; } &&
5349          { ac_try='test -s conftest.$ac_objext'
5350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351   (eval $ac_try) 2>&5
5352   ac_status=$?
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); }; }; then
5355   ac_hi=$ac_mid; break
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 ac_lo=`expr $ac_mid + 1`
5361                     if test $ac_lo -le $ac_mid; then
5362                       ac_lo= ac_hi=
5363                       break
5364                     fi
5365                     ac_mid=`expr 2 '*' $ac_mid + 1`
5366 fi
5367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5368   done
5369 else
5370   echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373 cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h.  */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h.  */
5379 $ac_includes_default
5380 int
5381 main ()
5382 {
5383 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5384 test_array [0] = 0
5385
5386   ;
5387   return 0;
5388 }
5389 _ACEOF
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392   (eval $ac_compile) 2>conftest.er1
5393   ac_status=$?
5394   grep -v '^ *+' conftest.er1 >conftest.err
5395   rm -f conftest.er1
5396   cat conftest.err >&5
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); } &&
5399          { ac_try='test -z "$ac_c_werror_flag"
5400                          || test ! -s conftest.err'
5401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402   (eval $ac_try) 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; } &&
5406          { ac_try='test -s conftest.$ac_objext'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; }; then
5412   ac_hi=-1 ac_mid=-1
5413   while :; do
5414     cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h.  */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h.  */
5420 $ac_includes_default
5421 int
5422 main ()
5423 {
5424 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5425 test_array [0] = 0
5426
5427   ;
5428   return 0;
5429 }
5430 _ACEOF
5431 rm -f conftest.$ac_objext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5433   (eval $ac_compile) 2>conftest.er1
5434   ac_status=$?
5435   grep -v '^ *+' conftest.er1 >conftest.err
5436   rm -f conftest.er1
5437   cat conftest.err >&5
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } &&
5440          { ac_try='test -z "$ac_c_werror_flag"
5441                          || test ! -s conftest.err'
5442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443   (eval $ac_try) 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }; } &&
5447          { ac_try='test -s conftest.$ac_objext'
5448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449   (eval $ac_try) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; }; then
5453   ac_lo=$ac_mid; break
5454 else
5455   echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 ac_hi=`expr '(' $ac_mid ')' - 1`
5459                        if test $ac_mid -le $ac_hi; then
5460                          ac_lo= ac_hi=
5461                          break
5462                        fi
5463                        ac_mid=`expr 2 '*' $ac_mid`
5464 fi
5465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5466   done
5467 else
5468   echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5470
5471 ac_lo= ac_hi=
5472 fi
5473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5474 fi
5475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5476 # Binary search between lo and hi bounds.
5477 while test "x$ac_lo" != "x$ac_hi"; do
5478   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5479   cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h.  */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h.  */
5485 $ac_includes_default
5486 int
5487 main ()
5488 {
5489 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5490 test_array [0] = 0
5491
5492   ;
5493   return 0;
5494 }
5495 _ACEOF
5496 rm -f conftest.$ac_objext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5498   (eval $ac_compile) 2>conftest.er1
5499   ac_status=$?
5500   grep -v '^ *+' conftest.er1 >conftest.err
5501   rm -f conftest.er1
5502   cat conftest.err >&5
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); } &&
5505          { ac_try='test -z "$ac_c_werror_flag"
5506                          || test ! -s conftest.err'
5507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508   (eval $ac_try) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }; } &&
5512          { ac_try='test -s conftest.$ac_objext'
5513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514   (eval $ac_try) 2>&5
5515   ac_status=$?
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); }; }; then
5518   ac_hi=$ac_mid
5519 else
5520   echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5522
5523 ac_lo=`expr '(' $ac_mid ')' + 1`
5524 fi
5525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5526 done
5527 case $ac_lo in
5528 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5529 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5530 See \`config.log' for more details." >&5
5531 echo "$as_me: error: cannot compute sizeof (long long), 77
5532 See \`config.log' for more details." >&2;}
5533    { (exit 1); exit 1; }; } ;;
5534 esac
5535 else
5536   if test "$cross_compiling" = yes; then
5537   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5538 See \`config.log' for more details." >&5
5539 echo "$as_me: error: cannot run test program while cross compiling
5540 See \`config.log' for more details." >&2;}
5541    { (exit 1); exit 1; }; }
5542 else
5543   cat >conftest.$ac_ext <<_ACEOF
5544 /* confdefs.h.  */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h.  */
5549 $ac_includes_default
5550 long longval () { return (long) (sizeof (long long)); }
5551 unsigned long ulongval () { return (long) (sizeof (long long)); }
5552 #include <stdio.h>
5553 #include <stdlib.h>
5554 int
5555 main ()
5556 {
5557
5558   FILE *f = fopen ("conftest.val", "w");
5559   if (! f)
5560     exit (1);
5561   if (((long) (sizeof (long long))) < 0)
5562     {
5563       long i = longval ();
5564       if (i != ((long) (sizeof (long long))))
5565         exit (1);
5566       fprintf (f, "%ld\n", i);
5567     }
5568   else
5569     {
5570       unsigned long i = ulongval ();
5571       if (i != ((long) (sizeof (long long))))
5572         exit (1);
5573       fprintf (f, "%lu\n", i);
5574     }
5575   exit (ferror (f) || fclose (f) != 0);
5576
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583   (eval $ac_link) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588   (eval $ac_try) 2>&5
5589   ac_status=$?
5590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591   (exit $ac_status); }; }; then
5592   ac_cv_sizeof_long_long=`cat conftest.val`
5593 else
5594   echo "$as_me: program exited with status $ac_status" >&5
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5597
5598 ( exit $ac_status )
5599 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5600 See \`config.log' for more details." >&5
5601 echo "$as_me: error: cannot compute sizeof (long long), 77
5602 See \`config.log' for more details." >&2;}
5603    { (exit 1); exit 1; }; }
5604 fi
5605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5606 fi
5607 fi
5608 rm -f conftest.val
5609 else
5610   ac_cv_sizeof_long_long=0
5611 fi
5612 fi
5613 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5614 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5615 cat >>confdefs.h <<_ACEOF
5616 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5617 _ACEOF
5618
5619
5620 fi
5621 if test $ac_cv_c___int64 = yes; then
5622   echo "$as_me:$LINENO: checking for __int64" >&5
5623 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5624 if test "${ac_cv_type___int64+set}" = set; then
5625   echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627   cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h.  */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h.  */
5633 $ac_includes_default
5634 int
5635 main ()
5636 {
5637 if ((__int64 *) 0)
5638   return 0;
5639 if (sizeof (__int64))
5640   return 0;
5641   ;
5642   return 0;
5643 }
5644 _ACEOF
5645 rm -f conftest.$ac_objext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647   (eval $ac_compile) 2>conftest.er1
5648   ac_status=$?
5649   grep -v '^ *+' conftest.er1 >conftest.err
5650   rm -f conftest.er1
5651   cat conftest.err >&5
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); } &&
5654          { ac_try='test -z "$ac_c_werror_flag"
5655                          || test ! -s conftest.err'
5656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657   (eval $ac_try) 2>&5
5658   ac_status=$?
5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660   (exit $ac_status); }; } &&
5661          { ac_try='test -s conftest.$ac_objext'
5662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663   (eval $ac_try) 2>&5
5664   ac_status=$?
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); }; }; then
5667   ac_cv_type___int64=yes
5668 else
5669   echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5671
5672 ac_cv_type___int64=no
5673 fi
5674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5675 fi
5676 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5677 echo "${ECHO_T}$ac_cv_type___int64" >&6
5678
5679 echo "$as_me:$LINENO: checking size of __int64" >&5
5680 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5681 if test "${ac_cv_sizeof___int64+set}" = set; then
5682   echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684   if test "$ac_cv_type___int64" = yes; then
5685   # The cast to unsigned long works around a bug in the HP C Compiler
5686   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5687   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5688   # This bug is HP SR number 8606223364.
5689   if test "$cross_compiling" = yes; then
5690   # Depending upon the size, compute the lo and hi bounds.
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h.  */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h.  */
5697 $ac_includes_default
5698 int
5699 main ()
5700 {
5701 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5702 test_array [0] = 0
5703
5704   ;
5705   return 0;
5706 }
5707 _ACEOF
5708 rm -f conftest.$ac_objext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710   (eval $ac_compile) 2>conftest.er1
5711   ac_status=$?
5712   grep -v '^ *+' conftest.er1 >conftest.err
5713   rm -f conftest.er1
5714   cat conftest.err >&5
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); } &&
5717          { ac_try='test -z "$ac_c_werror_flag"
5718                          || test ! -s conftest.err'
5719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720   (eval $ac_try) 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); }; } &&
5724          { ac_try='test -s conftest.$ac_objext'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; }; then
5730   ac_lo=0 ac_mid=0
5731   while :; do
5732     cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h.  */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h.  */
5738 $ac_includes_default
5739 int
5740 main ()
5741 {
5742 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5743 test_array [0] = 0
5744
5745   ;
5746   return 0;
5747 }
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751   (eval $ac_compile) 2>conftest.er1
5752   ac_status=$?
5753   grep -v '^ *+' conftest.er1 >conftest.err
5754   rm -f conftest.er1
5755   cat conftest.err >&5
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); } &&
5758          { ac_try='test -z "$ac_c_werror_flag"
5759                          || test ! -s conftest.err'
5760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761   (eval $ac_try) 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); }; } &&
5765          { ac_try='test -s conftest.$ac_objext'
5766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767   (eval $ac_try) 2>&5
5768   ac_status=$?
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); }; }; then
5771   ac_hi=$ac_mid; break
5772 else
5773   echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5775
5776 ac_lo=`expr $ac_mid + 1`
5777                     if test $ac_lo -le $ac_mid; then
5778                       ac_lo= ac_hi=
5779                       break
5780                     fi
5781                     ac_mid=`expr 2 '*' $ac_mid + 1`
5782 fi
5783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5784   done
5785 else
5786   echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789 cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795 $ac_includes_default
5796 int
5797 main ()
5798 {
5799 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5800 test_array [0] = 0
5801
5802   ;
5803   return 0;
5804 }
5805 _ACEOF
5806 rm -f conftest.$ac_objext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808   (eval $ac_compile) 2>conftest.er1
5809   ac_status=$?
5810   grep -v '^ *+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } &&
5815          { ac_try='test -z "$ac_c_werror_flag"
5816                          || test ! -s conftest.err'
5817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818   (eval $ac_try) 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; } &&
5822          { ac_try='test -s conftest.$ac_objext'
5823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824   (eval $ac_try) 2>&5
5825   ac_status=$?
5826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827   (exit $ac_status); }; }; then
5828   ac_hi=-1 ac_mid=-1
5829   while :; do
5830     cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h.  */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h.  */
5836 $ac_includes_default
5837 int
5838 main ()
5839 {
5840 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5841 test_array [0] = 0
5842
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849   (eval $ac_compile) 2>conftest.er1
5850   ac_status=$?
5851   grep -v '^ *+' conftest.er1 >conftest.err
5852   rm -f conftest.er1
5853   cat conftest.err >&5
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } &&
5856          { ac_try='test -z "$ac_c_werror_flag"
5857                          || test ! -s conftest.err'
5858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859   (eval $ac_try) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; } &&
5863          { ac_try='test -s conftest.$ac_objext'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; }; then
5869   ac_lo=$ac_mid; break
5870 else
5871   echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 ac_hi=`expr '(' $ac_mid ')' - 1`
5875                        if test $ac_mid -le $ac_hi; then
5876                          ac_lo= ac_hi=
5877                          break
5878                        fi
5879                        ac_mid=`expr 2 '*' $ac_mid`
5880 fi
5881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5882   done
5883 else
5884   echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 ac_lo= ac_hi=
5888 fi
5889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5890 fi
5891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5892 # Binary search between lo and hi bounds.
5893 while test "x$ac_lo" != "x$ac_hi"; do
5894   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5895   cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h.  */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h.  */
5901 $ac_includes_default
5902 int
5903 main ()
5904 {
5905 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5906 test_array [0] = 0
5907
5908   ;
5909   return 0;
5910 }
5911 _ACEOF
5912 rm -f conftest.$ac_objext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914   (eval $ac_compile) 2>conftest.er1
5915   ac_status=$?
5916   grep -v '^ *+' conftest.er1 >conftest.err
5917   rm -f conftest.er1
5918   cat conftest.err >&5
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); } &&
5921          { ac_try='test -z "$ac_c_werror_flag"
5922                          || test ! -s conftest.err'
5923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924   (eval $ac_try) 2>&5
5925   ac_status=$?
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); }; } &&
5928          { ac_try='test -s conftest.$ac_objext'
5929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930   (eval $ac_try) 2>&5
5931   ac_status=$?
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); }; }; then
5934   ac_hi=$ac_mid
5935 else
5936   echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 ac_lo=`expr '(' $ac_mid ')' + 1`
5940 fi
5941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5942 done
5943 case $ac_lo in
5944 ?*) ac_cv_sizeof___int64=$ac_lo;;
5945 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5946 See \`config.log' for more details." >&5
5947 echo "$as_me: error: cannot compute sizeof (__int64), 77
5948 See \`config.log' for more details." >&2;}
5949    { (exit 1); exit 1; }; } ;;
5950 esac
5951 else
5952   if test "$cross_compiling" = yes; then
5953   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5954 See \`config.log' for more details." >&5
5955 echo "$as_me: error: cannot run test program while cross compiling
5956 See \`config.log' for more details." >&2;}
5957    { (exit 1); exit 1; }; }
5958 else
5959   cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h.  */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h.  */
5965 $ac_includes_default
5966 long longval () { return (long) (sizeof (__int64)); }
5967 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5968 #include <stdio.h>
5969 #include <stdlib.h>
5970 int
5971 main ()
5972 {
5973
5974   FILE *f = fopen ("conftest.val", "w");
5975   if (! f)
5976     exit (1);
5977   if (((long) (sizeof (__int64))) < 0)
5978     {
5979       long i = longval ();
5980       if (i != ((long) (sizeof (__int64))))
5981         exit (1);
5982       fprintf (f, "%ld\n", i);
5983     }
5984   else
5985     {
5986       unsigned long i = ulongval ();
5987       if (i != ((long) (sizeof (__int64))))
5988         exit (1);
5989       fprintf (f, "%lu\n", i);
5990     }
5991   exit (ferror (f) || fclose (f) != 0);
5992
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004   (eval $ac_try) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; }; then
6008   ac_cv_sizeof___int64=`cat conftest.val`
6009 else
6010   echo "$as_me: program exited with status $ac_status" >&5
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 ( exit $ac_status )
6015 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6016 See \`config.log' for more details." >&5
6017 echo "$as_me: error: cannot compute sizeof (__int64), 77
6018 See \`config.log' for more details." >&2;}
6019    { (exit 1); exit 1; }; }
6020 fi
6021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6022 fi
6023 fi
6024 rm -f conftest.val
6025 else
6026   ac_cv_sizeof___int64=0
6027 fi
6028 fi
6029 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6030 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6031 cat >>confdefs.h <<_ACEOF
6032 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6033 _ACEOF
6034
6035
6036 fi
6037
6038 # ---------------------
6039 # Warnings and checking
6040 # ---------------------
6041
6042 # Check $CC warning features (if it's GCC).
6043 # We want to use -pedantic, but we don't want warnings about
6044 # * 'long long'
6045 # * variadic macros
6046 # So, we only use -pedantic if we can disable those warnings.
6047
6048 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6049 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6050 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   save_CFLAGS="$CFLAGS"
6054   CFLAGS="-Wno-long-long"
6055   cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h.  */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h.  */
6061
6062 _ACEOF
6063 rm -f conftest.$ac_objext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065   (eval $ac_compile) 2>conftest.er1
6066   ac_status=$?
6067   grep -v '^ *+' conftest.er1 >conftest.err
6068   rm -f conftest.er1
6069   cat conftest.err >&5
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); } &&
6072          { ac_try='test -z "$ac_c_werror_flag"
6073                          || test ! -s conftest.err'
6074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075   (eval $ac_try) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; } &&
6079          { ac_try='test -s conftest.$ac_objext'
6080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081   (eval $ac_try) 2>&5
6082   ac_status=$?
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); }; }; then
6085   ac_cv_prog_cc_w_no_long_long=yes
6086 else
6087   echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6089
6090 ac_cv_prog_cc_w_no_long_long=no
6091 fi
6092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6093   CFLAGS="$save_CFLAGS"
6094
6095 fi
6096 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6097 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6098
6099 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6100 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6101 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6102   echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104   save_CFLAGS="$CFLAGS"
6105   CFLAGS="-Wno-variadic-macros"
6106   cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h.  */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h.  */
6112
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116   (eval $ac_compile) 2>conftest.er1
6117   ac_status=$?
6118   grep -v '^ *+' conftest.er1 >conftest.err
6119   rm -f conftest.er1
6120   cat conftest.err >&5
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); } &&
6123          { ac_try='test -z "$ac_c_werror_flag"
6124                          || test ! -s conftest.err'
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); }; } &&
6130          { ac_try='test -s conftest.$ac_objext'
6131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132   (eval $ac_try) 2>&5
6133   ac_status=$?
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); }; }; then
6136   ac_cv_prog_cc_w_no_variadic_macros=yes
6137 else
6138   echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141 ac_cv_prog_cc_w_no_variadic_macros=no
6142 fi
6143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6144   CFLAGS="$save_CFLAGS"
6145
6146 fi
6147 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6148 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6149
6150 strict1_warn=
6151 if test $ac_cv_prog_cc_w_no_long_long = yes \
6152    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6153   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6154 fi
6155
6156
6157 # Add -Wold-style-definition if it's accepted
6158 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6159 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6160 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   save_CFLAGS="$CFLAGS"
6164   CFLAGS="-Wold-style-definition"
6165   cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h.  */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h.  */
6171
6172 _ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175   (eval $ac_compile) 2>conftest.er1
6176   ac_status=$?
6177   grep -v '^ *+' conftest.er1 >conftest.err
6178   rm -f conftest.er1
6179   cat conftest.err >&5
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); } &&
6182          { ac_try='test -z "$ac_c_werror_flag"
6183                          || test ! -s conftest.err'
6184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185   (eval $ac_try) 2>&5
6186   ac_status=$?
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); }; } &&
6189          { ac_try='test -s conftest.$ac_objext'
6190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191   (eval $ac_try) 2>&5
6192   ac_status=$?
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); }; }; then
6195   ac_cv_prog_cc_w_old_style_definition=yes
6196 else
6197   echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.$ac_ext >&5
6199
6200 ac_cv_prog_cc_w_old_style_definition=no
6201 fi
6202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6203   CFLAGS="$save_CFLAGS"
6204
6205 fi
6206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6207 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6208 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6209   strict1_warn="${strict1_warn} -Wold-style-definition"
6210 fi
6211
6212 # Enable -Werror, period.
6213 # Check whether --enable-werror_always or --disable-werror_always was given.
6214 if test "${enable_werror_always+set}" = set; then
6215   enableval="$enable_werror_always"
6216
6217 else
6218   enable_werror_always=no
6219 fi;
6220 if test x${enable_werror_always} = xyes ; then
6221   strict1_warn="${strict1_warn} -Werror"
6222   WERROR=-Werror
6223 fi
6224
6225 # If the native compiler is GCC, we can enable warnings even in stage1.
6226 # That's useful for people building cross-compilers, or just running a
6227 # quick `make'.
6228 warn_cflags=
6229 if test "x$GCC" = "xyes"; then
6230   warn_cflags='$(GCC_WARN_CFLAGS)'
6231 fi
6232
6233
6234 # Enable -Werror in bootstrap stage2 and later.
6235 # Check whether --enable-werror or --disable-werror was given.
6236 if test "${enable_werror+set}" = set; then
6237   enableval="$enable_werror"
6238
6239 else
6240   if test x$is_release = x ; then
6241   # Default to "yes" on development branches.
6242   enable_werror=yes
6243 else
6244   # Default to "no" on release branches.
6245   enable_werror=no
6246 fi
6247 fi;
6248 if test x$enable_werror = xyes ; then
6249   WERROR=-Werror
6250 fi
6251
6252
6253 # Enable expensive internal checks
6254 # Check whether --enable-checking or --disable-checking was given.
6255 if test "${enable_checking+set}" = set; then
6256   enableval="$enable_checking"
6257   ac_checking_flags="${enableval}"
6258 else
6259
6260 # Determine the default checks.
6261 if test x$is_release = x ; then
6262   ac_checking_flags=yes
6263 else
6264   ac_checking_flags=release
6265 fi
6266 fi;
6267 ac_assert_checking=1
6268 ac_checking=
6269 ac_tree_checking=
6270 ac_rtl_checking=
6271 ac_rtlflag_checking=
6272 ac_gc_checking=
6273 ac_gc_always_collect=
6274 ac_fold_checking=
6275 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6276 for check in $ac_checking_flags
6277 do
6278         case $check in
6279         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6280                         ac_tree_checking=1 ; ac_gc_checking=1 ;
6281                         ac_rtlflag_checking=1 ;;
6282         no)             ac_assert_checking= ; ac_checking= ;
6283                         ac_tree_checking= ; ac_rtl_checking= ;
6284                         ac_rtlflag_checking= ; ac_gc_checking= ;
6285                         ac_gc_always_collect= ; ac_fold_checking= ;;
6286         all)            ac_assert_checking=1 ; ac_checking=1 ;
6287                         ac_tree_checking=1 ; ac_rtl_checking=1 ;
6288                         ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6289                         ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6290         release)        ac_assert_checking=1 ;;
6291         assert)         ac_assert_checking=1 ;;
6292         fold)           ac_fold_checking=1 ;;
6293         gc)             ac_gc_checking=1 ;;
6294         gcac)           ac_gc_always_collect=1 ;;
6295         misc)           ac_checking=1 ;;
6296         rtlflag)        ac_rtlflag_checking=1 ;;
6297         rtl)            ac_rtl_checking=1 ;;
6298         tree)           ac_tree_checking=1 ;;
6299         valgrind)       ac_checking_valgrind=1 ;;
6300         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6301 echo "$as_me: error: unknown check category $check" >&2;}
6302    { (exit 1); exit 1; }; } ;;
6303         esac
6304 done
6305 IFS="$ac_save_IFS"
6306
6307 nocommon_flag=""
6308 if test x$ac_checking != x ; then
6309
6310 cat >>confdefs.h <<\_ACEOF
6311 #define ENABLE_CHECKING 1
6312 _ACEOF
6313
6314   nocommon_flag=-fno-common
6315 fi
6316
6317 if test x$ac_assert_checking != x ; then
6318
6319 cat >>confdefs.h <<\_ACEOF
6320 #define ENABLE_ASSERT_CHECKING 1
6321 _ACEOF
6322
6323 fi
6324 if test x$ac_tree_checking != x ; then
6325
6326 cat >>confdefs.h <<\_ACEOF
6327 #define ENABLE_TREE_CHECKING 1
6328 _ACEOF
6329
6330   TREEBROWSER=tree-browser.o
6331 fi
6332
6333 if test x$ac_rtl_checking != x ; then
6334
6335 cat >>confdefs.h <<\_ACEOF
6336 #define ENABLE_RTL_CHECKING 1
6337 _ACEOF
6338
6339 fi
6340 if test x$ac_rtlflag_checking != x ; then
6341
6342 cat >>confdefs.h <<\_ACEOF
6343 #define ENABLE_RTL_FLAG_CHECKING 1
6344 _ACEOF
6345
6346 fi
6347 if test x$ac_gc_checking != x ; then
6348
6349 cat >>confdefs.h <<\_ACEOF
6350 #define ENABLE_GC_CHECKING 1
6351 _ACEOF
6352
6353 fi
6354 if test x$ac_gc_always_collect != x ; then
6355
6356 cat >>confdefs.h <<\_ACEOF
6357 #define ENABLE_GC_ALWAYS_COLLECT 1
6358 _ACEOF
6359
6360 fi
6361 if test x$ac_fold_checking != x ; then
6362
6363 cat >>confdefs.h <<\_ACEOF
6364 #define ENABLE_FOLD_CHECKING 1
6365 _ACEOF
6366
6367 fi
6368 valgrind_path_defines=
6369 valgrind_command=
6370
6371 if test "${ac_cv_header_valgrind_h+set}" = set; then
6372   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6373 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6374 if test "${ac_cv_header_valgrind_h+set}" = set; then
6375   echo $ECHO_N "(cached) $ECHO_C" >&6
6376 fi
6377 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6378 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6379 else
6380   # Is the header compilable?
6381 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6382 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h.  */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h.  */
6389 $ac_includes_default
6390 #include <valgrind.h>
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394   (eval $ac_compile) 2>conftest.er1
6395   ac_status=$?
6396   grep -v '^ *+' conftest.er1 >conftest.err
6397   rm -f conftest.er1
6398   cat conftest.err >&5
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); } &&
6401          { ac_try='test -z "$ac_c_werror_flag"
6402                          || test ! -s conftest.err'
6403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404   (eval $ac_try) 2>&5
6405   ac_status=$?
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); }; } &&
6408          { ac_try='test -s conftest.$ac_objext'
6409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410   (eval $ac_try) 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); }; }; then
6414   ac_header_compiler=yes
6415 else
6416   echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 ac_header_compiler=no
6420 fi
6421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6423 echo "${ECHO_T}$ac_header_compiler" >&6
6424
6425 # Is the header present?
6426 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6427 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h.  */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h.  */
6434 #include <valgrind.h>
6435 _ACEOF
6436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6438   ac_status=$?
6439   grep -v '^ *+' conftest.er1 >conftest.err
6440   rm -f conftest.er1
6441   cat conftest.err >&5
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); } >/dev/null; then
6444   if test -s conftest.err; then
6445     ac_cpp_err=$ac_c_preproc_warn_flag
6446     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6447   else
6448     ac_cpp_err=
6449   fi
6450 else
6451   ac_cpp_err=yes
6452 fi
6453 if test -z "$ac_cpp_err"; then
6454   ac_header_preproc=yes
6455 else
6456   echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6458
6459   ac_header_preproc=no
6460 fi
6461 rm -f conftest.err conftest.$ac_ext
6462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6463 echo "${ECHO_T}$ac_header_preproc" >&6
6464
6465 # So?  What about this header?
6466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6467   yes:no: )
6468     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6469 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6470     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6471 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6472     ac_header_preproc=yes
6473     ;;
6474   no:yes:* )
6475     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6476 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6477     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6478 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6479     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6480 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6481     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6482 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6483     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6484 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6485     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6486 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6487     (
6488       cat <<\_ASBOX
6489 ## ------------------------------------------ ##
6490 ## Report this to the AC_PACKAGE_NAME lists.  ##
6491 ## ------------------------------------------ ##
6492 _ASBOX
6493     ) |
6494       sed "s/^/$as_me: WARNING:     /" >&2
6495     ;;
6496 esac
6497 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6498 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6499 if test "${ac_cv_header_valgrind_h+set}" = set; then
6500   echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
6502   ac_cv_header_valgrind_h=$ac_header_preproc
6503 fi
6504 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6505 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6506
6507 fi
6508 if test $ac_cv_header_valgrind_h = yes; then
6509   have_valgrind_h=yes
6510 else
6511   have_valgrind_h=no
6512 fi
6513
6514
6515
6516 if test x$ac_checking_valgrind != x ; then
6517   # It is certainly possible that there's valgrind but no valgrind.h.
6518   # GCC relies on making annotations so we must have both.
6519   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6520 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6521   cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h.  */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h.  */
6527 #include <valgrind/memcheck.h>
6528 #ifndef VALGRIND_DISCARD
6529 #error VALGRIND_DISCARD not defined
6530 #endif
6531 _ACEOF
6532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6534   ac_status=$?
6535   grep -v '^ *+' conftest.er1 >conftest.err
6536   rm -f conftest.er1
6537   cat conftest.err >&5
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); } >/dev/null; then
6540   if test -s conftest.err; then
6541     ac_cpp_err=$ac_c_preproc_warn_flag
6542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6543   else
6544     ac_cpp_err=
6545   fi
6546 else
6547   ac_cpp_err=yes
6548 fi
6549 if test -z "$ac_cpp_err"; then
6550   gcc_cv_header_valgrind_memcheck_h=yes
6551 else
6552   echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555   gcc_cv_header_valgrind_memcheck_h=no
6556 fi
6557 rm -f conftest.err conftest.$ac_ext
6558   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6559 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6560   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6561 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6562   cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h.  */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h.  */
6568 #include <memcheck.h>
6569 #ifndef VALGRIND_DISCARD
6570 #error VALGRIND_DISCARD not defined
6571 #endif
6572 _ACEOF
6573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6574   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6575   ac_status=$?
6576   grep -v '^ *+' conftest.er1 >conftest.err
6577   rm -f conftest.er1
6578   cat conftest.err >&5
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); } >/dev/null; then
6581   if test -s conftest.err; then
6582     ac_cpp_err=$ac_c_preproc_warn_flag
6583     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6584   else
6585     ac_cpp_err=
6586   fi
6587 else
6588   ac_cpp_err=yes
6589 fi
6590 if test -z "$ac_cpp_err"; then
6591   gcc_cv_header_memcheck_h=yes
6592 else
6593   echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6595
6596   gcc_cv_header_memcheck_h=no
6597 fi
6598 rm -f conftest.err conftest.$ac_ext
6599   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6600 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6601
6602 # Prepare PATH_SEPARATOR.
6603 # The user is always right.
6604 if test "${PATH_SEPARATOR+set}" != set; then
6605   echo "#! /bin/sh" >conf$$.sh
6606   echo  "exit 0"   >>conf$$.sh
6607   chmod +x conf$$.sh
6608   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6609     PATH_SEPARATOR=';'
6610   else
6611     PATH_SEPARATOR=:
6612   fi
6613   rm -f conf$$.sh
6614 fi
6615
6616 # Find out how to test for executable files. Don't use a zero-byte file,
6617 # as systems may use methods other than mode bits to determine executability.
6618 cat >conf$$.file <<_ASEOF
6619 #! /bin/sh
6620 exit 0
6621 _ASEOF
6622 chmod +x conf$$.file
6623 if test -x conf$$.file >/dev/null 2>&1; then
6624   ac_executable_p="test -x"
6625 else
6626   ac_executable_p="test -f"
6627 fi
6628 rm -f conf$$.file
6629
6630 # Extract the first word of "valgrind", so it can be a program name with args.
6631 set dummy valgrind; ac_word=$2
6632 echo "$as_me:$LINENO: checking for $ac_word" >&5
6633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6634 if test "${ac_cv_path_valgrind_path+set}" = set; then
6635   echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637   case "$valgrind_path" in
6638   [\\/]* | ?:[\\/]*)
6639     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6640     ;;
6641   *)
6642     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6643     for ac_dir in $PATH; do
6644       IFS="$ac_save_IFS"
6645       test -z "$ac_dir" && ac_dir=.
6646       for ac_exec_ext in '' $ac_executable_extensions; do
6647         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6648           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6649             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6650             break 2
6651           fi
6652         fi
6653       done
6654     done
6655     IFS="$ac_save_IFS"
6656     ;;
6657 esac
6658 fi
6659 valgrind_path="$ac_cv_path_valgrind_path"
6660 if test -n "$valgrind_path"; then
6661   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6662 echo "${ECHO_T}$valgrind_path" >&6
6663 else
6664   echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6
6666 fi
6667
6668   if test "x$valgrind_path" = "x" \
6669     || (test $have_valgrind_h = no \
6670         && test $gcc_cv_header_memcheck_h = no \
6671         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6672         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6673 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6674    { (exit 1); exit 1; }; }
6675   fi
6676   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6677   valgrind_command="$valgrind_path -q"
6678
6679 cat >>confdefs.h <<\_ACEOF
6680 #define ENABLE_VALGRIND_CHECKING 1
6681 _ACEOF
6682
6683   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6684
6685 cat >>confdefs.h <<\_ACEOF
6686 #define HAVE_VALGRIND_MEMCHECK_H 1
6687 _ACEOF
6688
6689   fi
6690   if test $gcc_cv_header_memcheck_h = yes; then
6691
6692 cat >>confdefs.h <<\_ACEOF
6693 #define HAVE_MEMCHECK_H 1
6694 _ACEOF
6695
6696   fi
6697 fi
6698
6699
6700
6701 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6702 if test "${enable_mapped_location+set}" = set; then
6703   enableval="$enable_mapped_location"
6704
6705 else
6706   enable_mapped_location=no
6707 fi;
6708
6709 if test "$enable_mapped_location" = yes ; then
6710
6711 cat >>confdefs.h <<\_ACEOF
6712 #define USE_MAPPED_LOCATION 1
6713 _ACEOF
6714
6715 fi
6716
6717 # Enable code coverage collection
6718 # Check whether --enable-coverage or --disable-coverage was given.
6719 if test "${enable_coverage+set}" = set; then
6720   enableval="$enable_coverage"
6721   case "${enableval}" in
6722   yes|noopt)
6723     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6724     ;;
6725   opt)
6726     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6727     ;;
6728   no)
6729     # a.k.a. --disable-coverage
6730     coverage_flags=""
6731     ;;
6732   *)
6733     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6734 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6735    { (exit 1); exit 1; }; }
6736     ;;
6737 esac
6738 else
6739   coverage_flags=""
6740 fi;
6741
6742
6743 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6744 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6745   enableval="$enable_gather_detailed_mem_stats"
6746
6747 else
6748   enable_gather_detailed_mem_stats=no
6749 fi;
6750 if test x$enable_gather_detailed_mem_stats = xyes ; then
6751
6752 cat >>confdefs.h <<\_ACEOF
6753 #define GATHER_STATISTICS 1
6754 _ACEOF
6755
6756 fi
6757
6758 # -------------------------------
6759 # Miscenalleous configure options
6760 # -------------------------------
6761
6762 # With stabs
6763
6764 # Check whether --with-stabs or --without-stabs was given.
6765 if test "${with_stabs+set}" = set; then
6766   withval="$with_stabs"
6767   stabs="$with_stabs"
6768 else
6769   stabs=no
6770 fi;
6771
6772 # Determine whether or not multilibs are enabled.
6773 # Check whether --enable-multilib or --disable-multilib was given.
6774 if test "${enable_multilib+set}" = set; then
6775   enableval="$enable_multilib"
6776
6777 else
6778   enable_multilib=yes
6779 fi;
6780
6781
6782 # Enable __cxa_atexit for C++.
6783 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6784 if test "${enable___cxa_atexit+set}" = set; then
6785   enableval="$enable___cxa_atexit"
6786
6787 fi;
6788
6789 # Enable threads
6790 # Pass with no value to take the default
6791 # Pass with a value to specify a thread package
6792 # Check whether --enable-threads or --disable-threads was given.
6793 if test "${enable_threads+set}" = set; then
6794   enableval="$enable_threads"
6795
6796 else
6797   enable_threads=''
6798 fi;
6799
6800 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6801 if test "${enable_objc_gc+set}" = set; then
6802   enableval="$enable_objc_gc"
6803   if test x$enable_objc_gc = xno; then
6804         objc_boehm_gc=''
6805 else
6806         objc_boehm_gc=1
6807 fi
6808 else
6809   objc_boehm_gc=''
6810 fi;
6811
6812
6813 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6814 if test "${with_dwarf2+set}" = set; then
6815   withval="$with_dwarf2"
6816   dwarf2="$with_dwarf2"
6817 else
6818   dwarf2=no
6819 fi;
6820
6821 # Check whether --enable-shared or --disable-shared was given.
6822 if test "${enable_shared+set}" = set; then
6823   enableval="$enable_shared"
6824
6825   case $enable_shared in
6826   yes | no) ;;
6827   *)
6828     enable_shared=no
6829     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6830     for pkg in $enableval; do
6831       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6832         enable_shared=yes
6833       fi
6834     done
6835     IFS="$ac_save_ifs"
6836     ;;
6837   esac
6838
6839 else
6840   enable_shared=yes
6841 fi;
6842
6843
6844
6845 # Check whether --with-sysroot or --without-sysroot was given.
6846 if test "${with_sysroot+set}" = set; then
6847   withval="$with_sysroot"
6848
6849  case ${with_sysroot} in
6850  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6851  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6852  esac
6853
6854  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6855  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6856
6857  if test "x$exec_prefix" = xNONE; then
6858   if test "x$prefix" = xNONE; then
6859    test_prefix=/usr/local
6860   else
6861    test_prefix=$prefix
6862   fi
6863  else
6864   test_prefix=$exec_prefix
6865  fi
6866  case ${TARGET_SYSTEM_ROOT} in
6867  "${test_prefix}"|"${test_prefix}/"*|\
6868  '${exec_prefix}'|'${exec_prefix}/'*)
6869    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6870    TARGET_SYSTEM_ROOT_DEFINE="$t"
6871    ;;
6872  esac
6873
6874 else
6875
6876  TARGET_SYSTEM_ROOT=
6877  TARGET_SYSTEM_ROOT_DEFINE=
6878  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6879
6880 fi;
6881
6882
6883
6884
6885 # Build with intermodule optimisations
6886 # Check whether --enable-intermodule or --disable-intermodule was given.
6887 if test "${enable_intermodule+set}" = set; then
6888   enableval="$enable_intermodule"
6889   case ${enable_intermodule} in
6890   yes) onestep="-onestep";;
6891   *) onestep="";;
6892 esac
6893 else
6894   onestep=""
6895 fi;
6896
6897
6898 # Sanity check enable_languages in case someone does not run the toplevel
6899 # configure # script.
6900 # Check whether --enable-languages or --disable-languages was given.
6901 if test "${enable_languages+set}" = set; then
6902   enableval="$enable_languages"
6903   case ,${enable_languages}, in
6904        ,,|,yes,)
6905                 # go safe -- we cannot be much sure without the toplevel
6906                 # configure's
6907                 # analysis of which target libs are present and usable
6908                 enable_languages=c
6909                 ;;
6910          *,all,*)
6911                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6912 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6913    { (exit 1); exit 1; }; }
6914                 ;;
6915         *,c,*)
6916                 ;;
6917         *)
6918                 enable_languages=c,${enable_languages}
6919                 ;;
6920 esac
6921 else
6922   enable_languages=c
6923 fi;
6924
6925 subdirs=
6926 for lang in ${srcdir}/*/config-lang.in
6927 do
6928         case $lang in
6929         # The odd quoting in the next line works around
6930         # an apparent bug in bash 1.12 on linux.
6931         ${srcdir}/[*]/config-lang.in) ;;
6932         *)
6933           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
6934           if test "x$lang_alias" = x
6935           then
6936                 echo "$lang doesn't set \$language." 1>&2
6937                 exit 1
6938           fi
6939           case ",$enable_languages," in
6940           *,$lang_alias,*)
6941             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6942           esac
6943           ;;
6944         esac
6945 done
6946
6947
6948 # -------------------------
6949 # Checks for other programs
6950 # -------------------------
6951
6952 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6953 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6954 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6955 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6956   echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958   cat >conftest.make <<\_ACEOF
6959 all:
6960         @echo 'ac_maketemp="$(MAKE)"'
6961 _ACEOF
6962 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6963 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6964 if test -n "$ac_maketemp"; then
6965   eval ac_cv_prog_make_${ac_make}_set=yes
6966 else
6967   eval ac_cv_prog_make_${ac_make}_set=no
6968 fi
6969 rm -f conftest.make
6970 fi
6971 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6972   echo "$as_me:$LINENO: result: yes" >&5
6973 echo "${ECHO_T}yes" >&6
6974   SET_MAKE=
6975 else
6976   echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6
6978   SET_MAKE="MAKE=${MAKE-make}"
6979 fi
6980
6981
6982 # Find some useful tools
6983 for ac_prog in gawk mawk nawk awk
6984 do
6985   # Extract the first word of "$ac_prog", so it can be a program name with args.
6986 set dummy $ac_prog; ac_word=$2
6987 echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6989 if test "${ac_cv_prog_AWK+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   if test -n "$AWK"; then
6993   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000   for ac_exec_ext in '' $ac_executable_extensions; do
7001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002     ac_cv_prog_AWK="$ac_prog"
7003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007 done
7008
7009 fi
7010 fi
7011 AWK=$ac_cv_prog_AWK
7012 if test -n "$AWK"; then
7013   echo "$as_me:$LINENO: result: $AWK" >&5
7014 echo "${ECHO_T}$AWK" >&6
7015 else
7016   echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6
7018 fi
7019
7020   test -n "$AWK" && break
7021 done
7022
7023 # We need awk to create options.c and options.h.
7024 # Bail out if it's missing.
7025 case ${AWK} in
7026   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7027 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7028    { (exit 1); exit 1; }; } ;;
7029 esac
7030
7031 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7032 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7033 if test "${gcc_cv_prog_LN_S+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   rm -f conftestdata_t
7037 echo >conftestdata_f
7038 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7039 then
7040   gcc_cv_prog_LN_S="ln -s"
7041 else
7042   if ln conftestdata_f conftestdata_t 2>/dev/null
7043   then
7044     gcc_cv_prog_LN_S=ln
7045   else
7046     gcc_cv_prog_LN_S=cp
7047   fi
7048 fi
7049 rm -f conftestdata_f conftestdata_t
7050
7051 fi
7052 LN_S="$gcc_cv_prog_LN_S"
7053 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7054   echo "$as_me:$LINENO: result: yes" >&5
7055 echo "${ECHO_T}yes" >&6
7056 else
7057   if test "$gcc_cv_prog_LN_S" = "ln"; then
7058     echo "$as_me:$LINENO: result: no, using ln" >&5
7059 echo "${ECHO_T}no, using ln" >&6
7060   else
7061     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
7062 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
7063   fi
7064 fi
7065
7066 echo "$as_me:$LINENO: checking whether ln works" >&5
7067 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7068 if test "${acx_cv_prog_LN+set}" = set; then
7069   echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071   rm -f conftestdata_t
7072 echo >conftestdata_f
7073 if ln conftestdata_f conftestdata_t 2>/dev/null
7074 then
7075   acx_cv_prog_LN=ln
7076 else
7077   acx_cv_prog_LN=no
7078 fi
7079 rm -f conftestdata_f conftestdata_t
7080
7081 fi
7082 if test $acx_cv_prog_LN = no; then
7083   LN="$LN_S"
7084   echo "$as_me:$LINENO: result: no, using $LN" >&5
7085 echo "${ECHO_T}no, using $LN" >&6
7086 else
7087   LN="$acx_cv_prog_LN"
7088   echo "$as_me:$LINENO: result: yes" >&5
7089 echo "${ECHO_T}yes" >&6
7090 fi
7091
7092 if test -n "$ac_tool_prefix"; then
7093   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7095 echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7097 if test "${ac_cv_prog_RANLIB+set}" = set; then
7098   echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100   if test -n "$RANLIB"; then
7101   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106   IFS=$as_save_IFS
7107   test -z "$as_dir" && as_dir=.
7108   for ac_exec_ext in '' $ac_executable_extensions; do
7109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112     break 2
7113   fi
7114 done
7115 done
7116
7117 fi
7118 fi
7119 RANLIB=$ac_cv_prog_RANLIB
7120 if test -n "$RANLIB"; then
7121   echo "$as_me:$LINENO: result: $RANLIB" >&5
7122 echo "${ECHO_T}$RANLIB" >&6
7123 else
7124   echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6
7126 fi
7127
7128 fi
7129 if test -z "$ac_cv_prog_RANLIB"; then
7130   ac_ct_RANLIB=$RANLIB
7131   # Extract the first word of "ranlib", so it can be a program name with args.
7132 set dummy ranlib; ac_word=$2
7133 echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7135 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7136   echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138   if test -n "$ac_ct_RANLIB"; then
7139   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144   IFS=$as_save_IFS
7145   test -z "$as_dir" && as_dir=.
7146   for ac_exec_ext in '' $ac_executable_extensions; do
7147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148     ac_cv_prog_ac_ct_RANLIB="ranlib"
7149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150     break 2
7151   fi
7152 done
7153 done
7154
7155   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7156 fi
7157 fi
7158 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7159 if test -n "$ac_ct_RANLIB"; then
7160   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7161 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7162 else
7163   echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7165 fi
7166
7167   RANLIB=$ac_ct_RANLIB
7168 else
7169   RANLIB="$ac_cv_prog_RANLIB"
7170 fi
7171
7172 case "${host}" in
7173 *-*-darwin*)
7174   # By default, the Darwin ranlib will not treat common symbols as
7175   # definitions when  building the archive table of contents.  Other
7176   # ranlibs do that; pass an option to the Darwin ranlib that makes
7177   # it behave similarly.
7178   ranlib_flags="-c"
7179   ;;
7180 *)
7181   ranlib_flags=""
7182 esac
7183
7184
7185 # Find a good install program.  We prefer a C program (faster),
7186 # so one script is as good as another.  But avoid the broken or
7187 # incompatible versions:
7188 # SysV /etc/install, /usr/sbin/install
7189 # SunOS /usr/etc/install
7190 # IRIX /sbin/install
7191 # AIX /bin/install
7192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7194 # ./install, which can be erroneously created by make from ./install.sh.
7195 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7196 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7197 if test -z "$INSTALL"; then
7198 if test "${ac_cv_path_install+set}" = set; then
7199   echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7202   for ac_dir in $PATH; do
7203     # Account for people who put trailing slashes in PATH elements.
7204     case "$ac_dir/" in
7205     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7206     *)
7207       # OSF1 and SCO ODT 3.0 have their own names for install.
7208       for ac_prog in ginstall scoinst install; do
7209         if test -f $ac_dir/$ac_prog; then
7210           if test $ac_prog = install &&
7211             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7212             # AIX install.  It has an incompatible calling convention.
7213             # OSF/1 installbsd also uses dspmsg, but is usable.
7214             :
7215           else
7216             ac_cv_path_install="$ac_dir/$ac_prog -c"
7217             break 2
7218           fi
7219         fi
7220       done
7221       ;;
7222     esac
7223   done
7224   IFS="$ac_save_IFS"
7225
7226 fi
7227   if test "${ac_cv_path_install+set}" = set; then
7228     INSTALL="$ac_cv_path_install"
7229   else
7230     # As a last resort, use the slow shell script.  We don't cache a
7231     # path for INSTALL within a source directory, because that will
7232     # break other packages using the cache if that directory is
7233     # removed, or if the path is relative.
7234     INSTALL="$ac_install_sh"
7235   fi
7236 fi
7237 echo "$as_me:$LINENO: result: $INSTALL" >&5
7238 echo "${ECHO_T}$INSTALL" >&6
7239
7240 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7241 # It thinks the first close brace ends the variable substitution.
7242 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7243
7244 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7245
7246
7247 # See if cmp has --ignore-initial.
7248 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7249 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7250 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253    echo abfoo >t1
7254   echo cdfoo >t2
7255   gcc_cv_prog_cmp_skip=slowcompare
7256   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7257     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7258       :
7259     else
7260       gcc_cv_prog_cmp_skip=gnucompare
7261     fi
7262   fi
7263   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7264     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7265       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7266         :
7267       else
7268         gcc_cv_prog_cmp_skip=fastcompare
7269       fi
7270     fi
7271   fi
7272   rm t1 t2
7273
7274 fi
7275 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7276 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7277 make_compare_target=$gcc_cv_prog_cmp_skip
7278
7279
7280
7281 # See if we have the mktemp command.
7282 # Extract the first word of "mktemp", so it can be a program name with args.
7283 set dummy mktemp; ac_word=$2
7284 echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7286 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   if test -n "$have_mktemp_command"; then
7290   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295   IFS=$as_save_IFS
7296   test -z "$as_dir" && as_dir=.
7297   for ac_exec_ext in '' $ac_executable_extensions; do
7298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299     ac_cv_prog_have_mktemp_command="yes"
7300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301     break 2
7302   fi
7303 done
7304 done
7305
7306   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7307 fi
7308 fi
7309 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7310 if test -n "$have_mktemp_command"; then
7311   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7312 echo "${ECHO_T}$have_mktemp_command" >&6
7313 else
7314   echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6
7316 fi
7317
7318
7319 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7320
7321 # See if makeinfo has been installed and is modern enough
7322 # that we can use it.
7323 # Extract the first word of "makeinfo", so it can be a program name with args.
7324 set dummy makeinfo; ac_word=$2
7325 echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7327 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7328   echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330   if test -n "$MAKEINFO"; then
7331   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336   IFS=$as_save_IFS
7337   test -z "$as_dir" && as_dir=.
7338   for ac_exec_ext in '' $ac_executable_extensions; do
7339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340     ac_cv_prog_MAKEINFO="makeinfo"
7341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342     break 2
7343   fi
7344 done
7345 done
7346
7347 fi
7348 fi
7349 MAKEINFO=$ac_cv_prog_MAKEINFO
7350 if test -n "$MAKEINFO"; then
7351   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7352 echo "${ECHO_T}$MAKEINFO" >&6
7353 else
7354   echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6
7356 fi
7357
7358 if test -n "$MAKEINFO"; then
7359   # Found it, now check the version.
7360   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7361 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7362 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365     ac_prog_version=`$MAKEINFO --version 2>&1 |
7366                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7367   echo "configure:7367: version of makeinfo is $ac_prog_version" >&5
7368   case $ac_prog_version in
7369     '')     gcc_cv_prog_makeinfo_modern=no;;
7370     4.[2-9]*)
7371             gcc_cv_prog_makeinfo_modern=yes;;
7372     *)      gcc_cv_prog_makeinfo_modern=no;;
7373   esac
7374
7375 fi
7376 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7377 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7378 else
7379   gcc_cv_prog_makeinfo_modern=no
7380 fi
7381
7382 if test $gcc_cv_prog_makeinfo_modern = no; then
7383   MAKEINFO="$MISSING makeinfo"
7384   { echo "$as_me:$LINENO: WARNING:
7385 *** Makeinfo is missing or too old.
7386 *** Info documentation will not be built." >&5
7387 echo "$as_me: WARNING:
7388 *** Makeinfo is missing or too old.
7389 *** Info documentation will not be built." >&2;}
7390   BUILD_INFO=
7391 else
7392   BUILD_INFO=info
7393 fi
7394
7395
7396 # Is pod2man recent enough to regenerate manpages?
7397 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7398 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7399 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7400   echo "$as_me:$LINENO: result: yes" >&5
7401 echo "${ECHO_T}yes" >&6
7402   GENERATED_MANPAGES=generated-manpages
7403 else
7404   echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6
7406   GENERATED_MANPAGES=
7407 fi
7408
7409
7410 # How about lex?
7411 for ac_prog in flex
7412 do
7413   # Extract the first word of "$ac_prog", so it can be a program name with args.
7414 set dummy $ac_prog; ac_word=$2
7415 echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7417 if test "${ac_cv_prog_FLEX+set}" = set; then
7418   echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420   if test -n "$FLEX"; then
7421   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428   for ac_exec_ext in '' $ac_executable_extensions; do
7429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430     ac_cv_prog_FLEX="$ac_prog"
7431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435 done
7436
7437 fi
7438 fi
7439 FLEX=$ac_cv_prog_FLEX
7440 if test -n "$FLEX"; then
7441   echo "$as_me:$LINENO: result: $FLEX" >&5
7442 echo "${ECHO_T}$FLEX" >&6
7443 else
7444   echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6
7446 fi
7447
7448   test -n "$FLEX" && break
7449 done
7450 test -n "$FLEX" || FLEX="$MISSING flex"
7451
7452
7453 # Bison?
7454 for ac_prog in bison
7455 do
7456   # Extract the first word of "$ac_prog", so it can be a program name with args.
7457 set dummy $ac_prog; ac_word=$2
7458 echo "$as_me:$LINENO: checking for $ac_word" >&5
7459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7460 if test "${ac_cv_prog_BISON+set}" = set; then
7461   echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463   if test -n "$BISON"; then
7464   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471   for ac_exec_ext in '' $ac_executable_extensions; do
7472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473     ac_cv_prog_BISON="$ac_prog"
7474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478 done
7479
7480 fi
7481 fi
7482 BISON=$ac_cv_prog_BISON
7483 if test -n "$BISON"; then
7484   echo "$as_me:$LINENO: result: $BISON" >&5
7485 echo "${ECHO_T}$BISON" >&6
7486 else
7487   echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6
7489 fi
7490
7491   test -n "$BISON" && break
7492 done
7493 test -n "$BISON" || BISON="$MISSING bison"
7494
7495
7496 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7497 # check for build == host before using them.
7498
7499 # NM
7500 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7501   && test -d ../binutils ; then
7502   NM='$(objdir)/../binutils/nm-new'
7503 else
7504   # Extract the first word of "nm", so it can be a program name with args.
7505 set dummy nm; ac_word=$2
7506 echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7508 if test "${ac_cv_prog_NM+set}" = set; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   if test -n "$NM"; then
7512   ac_cv_prog_NM="$NM" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519   for ac_exec_ext in '' $ac_executable_extensions; do
7520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521     ac_cv_prog_NM="nm"
7522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526 done
7527
7528   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7529 fi
7530 fi
7531 NM=$ac_cv_prog_NM
7532 if test -n "$NM"; then
7533   echo "$as_me:$LINENO: result: $NM" >&5
7534 echo "${ECHO_T}$NM" >&6
7535 else
7536   echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6
7538 fi
7539
7540 fi
7541
7542 # AR
7543 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7544   && test -d ../binutils ; then
7545   AR='$(objdir)/../binutils/ar'
7546 else
7547   # Extract the first word of "ar", so it can be a program name with args.
7548 set dummy ar; ac_word=$2
7549 echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7551 if test "${ac_cv_prog_AR+set}" = set; then
7552   echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554   if test -n "$AR"; then
7555   ac_cv_prog_AR="$AR" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560   IFS=$as_save_IFS
7561   test -z "$as_dir" && as_dir=.
7562   for ac_exec_ext in '' $ac_executable_extensions; do
7563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564     ac_cv_prog_AR="ar"
7565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566     break 2
7567   fi
7568 done
7569 done
7570
7571   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7572 fi
7573 fi
7574 AR=$ac_cv_prog_AR
7575 if test -n "$AR"; then
7576   echo "$as_me:$LINENO: result: $AR" >&5
7577 echo "${ECHO_T}$AR" >&6
7578 else
7579   echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6
7581 fi
7582
7583 fi
7584
7585
7586 # --------------------
7587 # Checks for C headers
7588 # --------------------
7589
7590 echo "$as_me:$LINENO: checking for GNU C library" >&5
7591 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7592 if test "${gcc_cv_glibc+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h.  */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h.  */
7601 #include <features.h>
7602 int
7603 main ()
7604 {
7605
7606 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7607 #error Not a GNU C library system
7608 #endif
7609   ;
7610   return 0;
7611 }
7612 _ACEOF
7613 rm -f conftest.$ac_objext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7615   (eval $ac_compile) 2>conftest.er1
7616   ac_status=$?
7617   grep -v '^ *+' conftest.er1 >conftest.err
7618   rm -f conftest.er1
7619   cat conftest.err >&5
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } &&
7622          { ac_try='test -z "$ac_c_werror_flag"
7623                          || test ! -s conftest.err'
7624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625   (eval $ac_try) 2>&5
7626   ac_status=$?
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); }; } &&
7629          { ac_try='test -s conftest.$ac_objext'
7630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631   (eval $ac_try) 2>&5
7632   ac_status=$?
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); }; }; then
7635   gcc_cv_glibc=yes
7636 else
7637   echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7639
7640 gcc_cv_glibc=no
7641 fi
7642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7643 fi
7644
7645 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7646 echo "${ECHO_T}$gcc_cv_glibc" >&6
7647 if test $gcc_cv_glibc = yes; then
7648
7649 cat >>confdefs.h <<\_ACEOF
7650 #define _GNU_SOURCE 1
7651 _ACEOF
7652
7653 fi
7654
7655 # Need to reject headers which give warnings, so that the -Werror bootstrap
7656 # works later. *sigh*  This needs to come before all header checks.
7657
7658 ac_c_preproc_warn_flag=yes
7659
7660 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7661 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7662 if test "${ac_cv_header_stdc+set}" = set; then
7663   echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665   cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h.  */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h.  */
7671 #include <stdlib.h>
7672 #include <stdarg.h>
7673 #include <string.h>
7674 #include <float.h>
7675
7676 int
7677 main ()
7678 {
7679
7680   ;
7681   return 0;
7682 }
7683 _ACEOF
7684 rm -f conftest.$ac_objext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686   (eval $ac_compile) 2>conftest.er1
7687   ac_status=$?
7688   grep -v '^ *+' conftest.er1 >conftest.err
7689   rm -f conftest.er1
7690   cat conftest.err >&5
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); } &&
7693          { ac_try='test -z "$ac_c_werror_flag"
7694                          || test ! -s conftest.err'
7695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696   (eval $ac_try) 2>&5
7697   ac_status=$?
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); }; } &&
7700          { ac_try='test -s conftest.$ac_objext'
7701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702   (eval $ac_try) 2>&5
7703   ac_status=$?
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); }; }; then
7706   ac_cv_header_stdc=yes
7707 else
7708   echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 ac_cv_header_stdc=no
7712 fi
7713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7714
7715 if test $ac_cv_header_stdc = yes; then
7716   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7717   cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h.  */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h.  */
7723 #include <string.h>
7724
7725 _ACEOF
7726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727   $EGREP "memchr" >/dev/null 2>&1; then
7728   :
7729 else
7730   ac_cv_header_stdc=no
7731 fi
7732 rm -f conftest*
7733
7734 fi
7735
7736 if test $ac_cv_header_stdc = yes; then
7737   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7738   cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h.  */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h.  */
7744 #include <stdlib.h>
7745
7746 _ACEOF
7747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7748   $EGREP "free" >/dev/null 2>&1; then
7749   :
7750 else
7751   ac_cv_header_stdc=no
7752 fi
7753 rm -f conftest*
7754
7755 fi
7756
7757 if test $ac_cv_header_stdc = yes; then
7758   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7759   if test "$cross_compiling" = yes; then
7760   :
7761 else
7762   cat >conftest.$ac_ext <<_ACEOF
7763 /* confdefs.h.  */
7764 _ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h.  */
7768 #include <ctype.h>
7769 #if ((' ' & 0x0FF) == 0x020)
7770 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7771 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7772 #else
7773 # define ISLOWER(c) \
7774                    (('a' <= (c) && (c) <= 'i') \
7775                      || ('j' <= (c) && (c) <= 'r') \
7776                      || ('s' <= (c) && (c) <= 'z'))
7777 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7778 #endif
7779
7780 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7781 int
7782 main ()
7783 {
7784   int i;
7785   for (i = 0; i < 256; i++)
7786     if (XOR (islower (i), ISLOWER (i))
7787         || toupper (i) != TOUPPER (i))
7788       exit(2);
7789   exit (0);
7790 }
7791 _ACEOF
7792 rm -f conftest$ac_exeext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7794   (eval $ac_link) 2>&5
7795   ac_status=$?
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799   (eval $ac_try) 2>&5
7800   ac_status=$?
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); }; }; then
7803   :
7804 else
7805   echo "$as_me: program exited with status $ac_status" >&5
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7808
7809 ( exit $ac_status )
7810 ac_cv_header_stdc=no
7811 fi
7812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7813 fi
7814 fi
7815 fi
7816 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7817 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7818 if test $ac_cv_header_stdc = yes; then
7819
7820 cat >>confdefs.h <<\_ACEOF
7821 #define STDC_HEADERS 1
7822 _ACEOF
7823
7824 fi
7825
7826 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7827 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7828 if test "${ac_cv_header_time+set}" = set; then
7829   echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831   cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h.  */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h.  */
7837 #include <sys/types.h>
7838 #include <sys/time.h>
7839 #include <time.h>
7840
7841 int
7842 main ()
7843 {
7844 if ((struct tm *) 0)
7845 return 0;
7846   ;
7847   return 0;
7848 }
7849 _ACEOF
7850 rm -f conftest.$ac_objext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7852   (eval $ac_compile) 2>conftest.er1
7853   ac_status=$?
7854   grep -v '^ *+' conftest.er1 >conftest.err
7855   rm -f conftest.er1
7856   cat conftest.err >&5
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); } &&
7859          { ac_try='test -z "$ac_c_werror_flag"
7860                          || test ! -s conftest.err'
7861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862   (eval $ac_try) 2>&5
7863   ac_status=$?
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); }; } &&
7866          { ac_try='test -s conftest.$ac_objext'
7867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868   (eval $ac_try) 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); }; }; then
7872   ac_cv_header_time=yes
7873 else
7874   echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7876
7877 ac_cv_header_time=no
7878 fi
7879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7880 fi
7881 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7882 echo "${ECHO_T}$ac_cv_header_time" >&6
7883 if test $ac_cv_header_time = yes; then
7884
7885 cat >>confdefs.h <<\_ACEOF
7886 #define TIME_WITH_SYS_TIME 1
7887 _ACEOF
7888
7889 fi
7890
7891 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7892 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7893 if test "${gcc_cv_header_string+set}" = set; then
7894   echo $ECHO_N "(cached) $ECHO_C" >&6
7895 else
7896   cat >conftest.$ac_ext <<_ACEOF
7897 /* confdefs.h.  */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h.  */
7902 #include <string.h>
7903 #include <strings.h>
7904 int
7905 main ()
7906 {
7907
7908   ;
7909   return 0;
7910 }
7911 _ACEOF
7912 rm -f conftest.$ac_objext
7913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7914   (eval $ac_compile) 2>conftest.er1
7915   ac_status=$?
7916   grep -v '^ *+' conftest.er1 >conftest.err
7917   rm -f conftest.er1
7918   cat conftest.err >&5
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); } &&
7921          { ac_try='test -z "$ac_c_werror_flag"
7922                          || test ! -s conftest.err'
7923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924   (eval $ac_try) 2>&5
7925   ac_status=$?
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); }; } &&
7928          { ac_try='test -s conftest.$ac_objext'
7929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930   (eval $ac_try) 2>&5
7931   ac_status=$?
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); }; }; then
7934   gcc_cv_header_string=yes
7935 else
7936   echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7938
7939 gcc_cv_header_string=no
7940 fi
7941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7942 fi
7943 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7944 echo "${ECHO_T}$gcc_cv_header_string" >&6
7945 if test $gcc_cv_header_string = yes; then
7946
7947 cat >>confdefs.h <<\_ACEOF
7948 #define STRING_WITH_STRINGS 1
7949 _ACEOF
7950
7951 fi
7952
7953 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7954 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7955 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h.  */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h.  */
7964 #include <sys/types.h>
7965 #include <sys/wait.h>
7966 #ifndef WEXITSTATUS
7967 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7968 #endif
7969 #ifndef WIFEXITED
7970 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7971 #endif
7972
7973 int
7974 main ()
7975 {
7976   int s;
7977   wait (&s);
7978   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7979   ;
7980   return 0;
7981 }
7982 _ACEOF
7983 rm -f conftest.$ac_objext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985   (eval $ac_compile) 2>conftest.er1
7986   ac_status=$?
7987   grep -v '^ *+' conftest.er1 >conftest.err
7988   rm -f conftest.er1
7989   cat conftest.err >&5
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); } &&
7992          { ac_try='test -z "$ac_c_werror_flag"
7993                          || test ! -s conftest.err'
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); }; } &&
7999          { ac_try='test -s conftest.$ac_objext'
8000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001   (eval $ac_try) 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); }; }; then
8005   ac_cv_header_sys_wait_h=yes
8006 else
8007   echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8009
8010 ac_cv_header_sys_wait_h=no
8011 fi
8012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8013 fi
8014 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8015 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8016 if test $ac_cv_header_sys_wait_h = yes; then
8017
8018 cat >>confdefs.h <<\_ACEOF
8019 #define HAVE_SYS_WAIT_H 1
8020 _ACEOF
8021
8022 fi
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
8046                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8047                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8048                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8049 do
8050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8051 echo "$as_me:$LINENO: checking for $ac_header" >&5
8052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8054   echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056   cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h.  */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h.  */
8062 #include <$ac_header>
8063 _ACEOF
8064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8066   ac_status=$?
8067   grep -v '^ *+' conftest.er1 >conftest.err
8068   rm -f conftest.er1
8069   cat conftest.err >&5
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); } >/dev/null; then
8072   if test -s conftest.err; then
8073     ac_cpp_err=$ac_c_preproc_warn_flag
8074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8075   else
8076     ac_cpp_err=
8077   fi
8078 else
8079   ac_cpp_err=yes
8080 fi
8081 if test -z "$ac_cpp_err"; then
8082   eval "$as_ac_Header=yes"
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087   eval "$as_ac_Header=no"
8088 fi
8089 rm -f conftest.err conftest.$ac_ext
8090 fi
8091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8094   cat >>confdefs.h <<_ACEOF
8095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8096 _ACEOF
8097
8098 fi
8099 done
8100
8101
8102 # Check for thread headers.
8103 echo "$as_me:$LINENO: checking for thread.h" >&5
8104 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8105 if test "${ac_cv_header_thread_h+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 #include <thread.h>
8115 _ACEOF
8116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8118   ac_status=$?
8119   grep -v '^ *+' conftest.er1 >conftest.err
8120   rm -f conftest.er1
8121   cat conftest.err >&5
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); } >/dev/null; then
8124   if test -s conftest.err; then
8125     ac_cpp_err=$ac_c_preproc_warn_flag
8126     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8127   else
8128     ac_cpp_err=
8129   fi
8130 else
8131   ac_cpp_err=yes
8132 fi
8133 if test -z "$ac_cpp_err"; then
8134   ac_cv_header_thread_h=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139   ac_cv_header_thread_h=no
8140 fi
8141 rm -f conftest.err conftest.$ac_ext
8142 fi
8143 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8144 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8145 if test $ac_cv_header_thread_h = yes; then
8146   have_thread_h=yes
8147 else
8148   have_thread_h=
8149 fi
8150
8151 echo "$as_me:$LINENO: checking for pthread.h" >&5
8152 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8153 if test "${ac_cv_header_pthread_h+set}" = set; then
8154   echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156   cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h.  */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h.  */
8162 #include <pthread.h>
8163 _ACEOF
8164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8165   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8166   ac_status=$?
8167   grep -v '^ *+' conftest.er1 >conftest.err
8168   rm -f conftest.er1
8169   cat conftest.err >&5
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); } >/dev/null; then
8172   if test -s conftest.err; then
8173     ac_cpp_err=$ac_c_preproc_warn_flag
8174     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8175   else
8176     ac_cpp_err=
8177   fi
8178 else
8179   ac_cpp_err=yes
8180 fi
8181 if test -z "$ac_cpp_err"; then
8182   ac_cv_header_pthread_h=yes
8183 else
8184   echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187   ac_cv_header_pthread_h=no
8188 fi
8189 rm -f conftest.err conftest.$ac_ext
8190 fi
8191 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8192 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8193 if test $ac_cv_header_pthread_h = yes; then
8194   have_pthread_h=yes
8195 else
8196   have_pthread_h=
8197 fi
8198
8199
8200 # These tests can't be done till we know if we have limits.h.
8201 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8202 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8203 if test "${gcc_cv_decl_char_bit+set}" = set; then
8204   echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206   cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h.  */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h.  */
8212 #ifdef HAVE_LIMITS_H
8213 #include <limits.h>
8214 #endif
8215 #ifdef CHAR_BIT
8216 found
8217 #endif
8218 _ACEOF
8219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8220   $EGREP "found" >/dev/null 2>&1; then
8221   gcc_cv_decl_char_bit=yes
8222 else
8223   gcc_cv_decl_char_bit=no
8224 fi
8225 rm -f conftest*
8226
8227
8228 fi
8229 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8230 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8231 if test $gcc_cv_decl_char_bit = no; then
8232   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8233 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8234 if test "${gcc_cv_c_nbby+set}" = set; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237   i=8
8238  gcc_cv_c_nbby=
8239  while test $i -lt 65; do
8240    cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h.  */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h.  */
8246
8247 int
8248 main ()
8249 {
8250 switch(0) {
8251   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8252   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8253   ; }
8254   ;
8255   return 0;
8256 }
8257 _ACEOF
8258 rm -f conftest.$ac_objext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8260   (eval $ac_compile) 2>conftest.er1
8261   ac_status=$?
8262   grep -v '^ *+' conftest.er1 >conftest.err
8263   rm -f conftest.er1
8264   cat conftest.err >&5
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); } &&
8267          { ac_try='test -z "$ac_c_werror_flag"
8268                          || test ! -s conftest.err'
8269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270   (eval $ac_try) 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); }; } &&
8274          { ac_try='test -s conftest.$ac_objext'
8275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276   (eval $ac_try) 2>&5
8277   ac_status=$?
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); }; }; then
8280   gcc_cv_c_nbby=$i; break
8281 else
8282   echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8284
8285 fi
8286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8287    i=`expr $i + 1`
8288  done
8289  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8290
8291 fi
8292 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8293 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8294 if test $gcc_cv_c_nbby = failed; then
8295   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8296 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8297    { (exit 1); exit 1; }; }
8298 else
8299
8300 cat >>confdefs.h <<_ACEOF
8301 #define CHAR_BIT $gcc_cv_c_nbby
8302 _ACEOF
8303
8304 fi
8305 fi
8306 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8307 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8308 if test "${ac_cv_c_bigendian+set}" = set; then
8309   echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311   ac_cv_c_bigendian=unknown
8312 # See if sys/param.h defines the BYTE_ORDER macro.
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h.  */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h.  */
8319 #include <sys/types.h>
8320 #include <sys/param.h>
8321 int
8322 main ()
8323 {
8324
8325 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8326  bogus endian macros
8327 #endif
8328   ;
8329   return 0;
8330 }
8331 _ACEOF
8332 rm -f conftest.$ac_objext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8334   (eval $ac_compile) 2>conftest.er1
8335   ac_status=$?
8336   grep -v '^ *+' conftest.er1 >conftest.err
8337   rm -f conftest.er1
8338   cat conftest.err >&5
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); } &&
8341          { ac_try='test -z "$ac_c_werror_flag"
8342                          || test ! -s conftest.err'
8343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344   (eval $ac_try) 2>&5
8345   ac_status=$?
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); }; } &&
8348          { ac_try='test -s conftest.$ac_objext'
8349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350   (eval $ac_try) 2>&5
8351   ac_status=$?
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); }; }; then
8354   # It does; now see whether it defined to BIG_ENDIAN or not.
8355 cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361 #include <sys/types.h>
8362 #include <sys/param.h>
8363 int
8364 main ()
8365 {
8366
8367 #if BYTE_ORDER != BIG_ENDIAN
8368  not big endian
8369 #endif
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8376   (eval $ac_compile) 2>conftest.er1
8377   ac_status=$?
8378   grep -v '^ *+' conftest.er1 >conftest.err
8379   rm -f conftest.er1
8380   cat conftest.err >&5
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -z "$ac_c_werror_flag"
8384                          || test ! -s conftest.err'
8385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386   (eval $ac_try) 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); }; } &&
8390          { ac_try='test -s conftest.$ac_objext'
8391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392   (eval $ac_try) 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); }; }; then
8396   ac_cv_c_bigendian=yes
8397 else
8398   echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8400
8401 ac_cv_c_bigendian=no
8402 fi
8403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8404 else
8405   echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408 fi
8409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8410 if test $ac_cv_c_bigendian = unknown; then
8411 if test "$cross_compiling" = yes; then
8412    echo $ac_n "cross-compiling... " 2>&6
8413 else
8414   cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h.  */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h.  */
8420 main () {
8421   /* Are we little or big endian?  From Harbison&Steele.  */
8422   union
8423   {
8424     long l;
8425     char c[sizeof (long)];
8426   } u;
8427   u.l = 1;
8428   exit (u.c[sizeof (long) - 1] == 1);
8429 }
8430 _ACEOF
8431 rm -f conftest$ac_exeext
8432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433   (eval $ac_link) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438   (eval $ac_try) 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; }; then
8442   ac_cv_c_bigendian=no
8443 else
8444   echo "$as_me: program exited with status $ac_status" >&5
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8447
8448 ( exit $ac_status )
8449 ac_cv_c_bigendian=yes
8450 fi
8451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8452 fi
8453 fi
8454 fi
8455 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8456 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8457 if test $ac_cv_c_bigendian = unknown; then
8458 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8459 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8460
8461 cat >conftest.c <<EOF
8462 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8463 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8464 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8465 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8466 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8467 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8468 int main() { _ascii (); _ebcdic (); return 0; }
8469 EOF
8470  if test -f conftest.c ; then
8471      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8472         if test `grep -l BIGenDianSyS conftest.o` ; then
8473            echo $ac_n ' big endian probe OK, ' 1>&6
8474            ac_cv_c_bigendian=yes
8475         fi
8476         if test `grep -l LiTTleEnDian conftest.o` ; then
8477            echo $ac_n ' little endian probe OK, ' 1>&6
8478            if test $ac_cv_c_bigendian = yes ; then
8479             ac_cv_c_bigendian=unknown;
8480            else
8481             ac_cv_c_bigendian=no
8482            fi
8483         fi
8484         echo $ac_n 'guessing bigendian ...  ' >&6
8485      fi
8486   fi
8487 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8488 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8489 fi
8490 if test $ac_cv_c_bigendian = yes; then
8491
8492 cat >>confdefs.h <<\_ACEOF
8493 #define WORDS_BIGENDIAN 1
8494 _ACEOF
8495
8496
8497 cat >>confdefs.h <<\_ACEOF
8498 #define HOST_WORDS_BIG_ENDIAN 1
8499 _ACEOF
8500
8501   BYTEORDER=4321
8502 else
8503   BYTEORDER=1234
8504 fi
8505
8506 cat >>confdefs.h <<_ACEOF
8507 #define BYTEORDER $BYTEORDER
8508 _ACEOF
8509
8510 if test $ac_cv_c_bigendian = unknown; then
8511   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8512 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8513    { (exit 1); exit 1; }; }
8514 fi
8515
8516
8517 # --------
8518 # UNSORTED
8519 # --------
8520
8521 # Stage specific cflags for build.
8522 stage1_cflags=
8523 case $build in
8524 vax-*-*)
8525   if test x$GCC = xyes
8526   then
8527     stage1_cflags="-Wa,-J"
8528   else
8529     stage1_cflags="-J"
8530   fi
8531   ;;
8532 powerpc-*-darwin*)
8533   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8534   # sources; use -no-cpp-precomp to get to GNU cpp.
8535   # Apple's GCC has bugs in designated initializer handling, so disable
8536   # that too.
8537   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8538   ;;
8539 esac
8540
8541
8542 # These libraries may be used by collect2.
8543 # We may need a special search path to get them linked.
8544 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8545 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8546 if test "${gcc_cv_collect2_libs+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   save_LIBS="$LIBS"
8550 for libs in '' -lld -lmld \
8551                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8552                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8553 do
8554         LIBS="$libs"
8555         cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h.  */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h.  */
8561
8562 /* Override any gcc2 internal prototype to avoid an error.  */
8563 #ifdef __cplusplus
8564 extern "C"
8565 #endif
8566 /* We use char because int might match the return type of a gcc2
8567    builtin and then its argument prototype would still apply.  */
8568 char ldopen ();
8569 int
8570 main ()
8571 {
8572 ldopen ();
8573   ;
8574   return 0;
8575 }
8576 _ACEOF
8577 rm -f conftest.$ac_objext conftest$ac_exeext
8578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8579   (eval $ac_link) 2>conftest.er1
8580   ac_status=$?
8581   grep -v '^ *+' conftest.er1 >conftest.err
8582   rm -f conftest.er1
8583   cat conftest.err >&5
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); } &&
8586          { ac_try='test -z "$ac_c_werror_flag"
8587                          || test ! -s conftest.err'
8588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589   (eval $ac_try) 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); }; } &&
8593          { ac_try='test -s conftest$ac_exeext'
8594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595   (eval $ac_try) 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; }; then
8599   gcc_cv_collect2_libs="$libs"; break
8600 else
8601   echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8603
8604 fi
8605 rm -f conftest.err conftest.$ac_objext \
8606       conftest$ac_exeext conftest.$ac_ext
8607 done
8608 LIBS="$save_LIBS"
8609 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8610 fi
8611 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8612 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8613 case $gcc_cv_collect2_libs in
8614         "none required")        ;;
8615         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8616 esac
8617
8618
8619 # When building Ada code on Alpha, we need exc_resume which is usually in
8620 # -lexc.  So test for it.
8621 save_LIBS="$LIBS"
8622 LIBS=
8623 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8624 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8625 if test "${ac_cv_search_exc_resume+set}" = set; then
8626   echo $ECHO_N "(cached) $ECHO_C" >&6
8627 else
8628   ac_func_search_save_LIBS=$LIBS
8629 ac_cv_search_exc_resume=no
8630 cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h.  */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h.  */
8636
8637 /* Override any gcc2 internal prototype to avoid an error.  */
8638 #ifdef __cplusplus
8639 extern "C"
8640 #endif
8641 /* We use char because int might match the return type of a gcc2
8642    builtin and then its argument prototype would still apply.  */
8643 char exc_resume ();
8644 int
8645 main ()
8646 {
8647 exc_resume ();
8648   ;
8649   return 0;
8650 }
8651 _ACEOF
8652 rm -f conftest.$ac_objext conftest$ac_exeext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8654   (eval $ac_link) 2>conftest.er1
8655   ac_status=$?
8656   grep -v '^ *+' conftest.er1 >conftest.err
8657   rm -f conftest.er1
8658   cat conftest.err >&5
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); } &&
8661          { ac_try='test -z "$ac_c_werror_flag"
8662                          || test ! -s conftest.err'
8663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664   (eval $ac_try) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); }; } &&
8668          { ac_try='test -s conftest$ac_exeext'
8669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670   (eval $ac_try) 2>&5
8671   ac_status=$?
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); }; }; then
8674   ac_cv_search_exc_resume="none required"
8675 else
8676   echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8678
8679 fi
8680 rm -f conftest.err conftest.$ac_objext \
8681       conftest$ac_exeext conftest.$ac_ext
8682 if test "$ac_cv_search_exc_resume" = no; then
8683   for ac_lib in exc; do
8684     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8685     cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h.  */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h.  */
8691
8692 /* Override any gcc2 internal prototype to avoid an error.  */
8693 #ifdef __cplusplus
8694 extern "C"
8695 #endif
8696 /* We use char because int might match the return type of a gcc2
8697    builtin and then its argument prototype would still apply.  */
8698 char exc_resume ();
8699 int
8700 main ()
8701 {
8702 exc_resume ();
8703   ;
8704   return 0;
8705 }
8706 _ACEOF
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709   (eval $ac_link) 2>conftest.er1
8710   ac_status=$?
8711   grep -v '^ *+' conftest.er1 >conftest.err
8712   rm -f conftest.er1
8713   cat conftest.err >&5
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } &&
8716          { ac_try='test -z "$ac_c_werror_flag"
8717                          || test ! -s conftest.err'
8718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; } &&
8723          { ac_try='test -s conftest$ac_exeext'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; }; then
8729   ac_cv_search_exc_resume="-l$ac_lib"
8730 break
8731 else
8732   echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735 fi
8736 rm -f conftest.err conftest.$ac_objext \
8737       conftest$ac_exeext conftest.$ac_ext
8738   done
8739 fi
8740 LIBS=$ac_func_search_save_LIBS
8741 fi
8742 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8743 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8744 if test "$ac_cv_search_exc_resume" != no; then
8745   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8746
8747 fi
8748
8749 GNAT_LIBEXC="$LIBS"
8750 LIBS="$save_LIBS"
8751
8752
8753 # Some systems put ldexp and frexp in libm instead of libc; assume
8754 # they're both in the same place.  jcf-dump needs them.
8755 save_LIBS="$LIBS"
8756 LIBS=
8757 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8758 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8759 if test "${ac_cv_search_ldexp+set}" = set; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762   ac_func_search_save_LIBS=$LIBS
8763 ac_cv_search_ldexp=no
8764 cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h.  */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h.  */
8770
8771 /* Override any gcc2 internal prototype to avoid an error.  */
8772 #ifdef __cplusplus
8773 extern "C"
8774 #endif
8775 /* We use char because int might match the return type of a gcc2
8776    builtin and then its argument prototype would still apply.  */
8777 char ldexp ();
8778 int
8779 main ()
8780 {
8781 ldexp ();
8782   ;
8783   return 0;
8784 }
8785 _ACEOF
8786 rm -f conftest.$ac_objext conftest$ac_exeext
8787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8788   (eval $ac_link) 2>conftest.er1
8789   ac_status=$?
8790   grep -v '^ *+' conftest.er1 >conftest.err
8791   rm -f conftest.er1
8792   cat conftest.err >&5
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); } &&
8795          { ac_try='test -z "$ac_c_werror_flag"
8796                          || test ! -s conftest.err'
8797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798   (eval $ac_try) 2>&5
8799   ac_status=$?
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); }; } &&
8802          { ac_try='test -s conftest$ac_exeext'
8803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804   (eval $ac_try) 2>&5
8805   ac_status=$?
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); }; }; then
8808   ac_cv_search_ldexp="none required"
8809 else
8810   echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8812
8813 fi
8814 rm -f conftest.err conftest.$ac_objext \
8815       conftest$ac_exeext conftest.$ac_ext
8816 if test "$ac_cv_search_ldexp" = no; then
8817   for ac_lib in m; do
8818     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8819     cat >conftest.$ac_ext <<_ACEOF
8820 /* confdefs.h.  */
8821 _ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h.  */
8825
8826 /* Override any gcc2 internal prototype to avoid an error.  */
8827 #ifdef __cplusplus
8828 extern "C"
8829 #endif
8830 /* We use char because int might match the return type of a gcc2
8831    builtin and then its argument prototype would still apply.  */
8832 char ldexp ();
8833 int
8834 main ()
8835 {
8836 ldexp ();
8837   ;
8838   return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843   (eval $ac_link) 2>conftest.er1
8844   ac_status=$?
8845   grep -v '^ *+' conftest.er1 >conftest.err
8846   rm -f conftest.er1
8847   cat conftest.err >&5
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); } &&
8850          { ac_try='test -z "$ac_c_werror_flag"
8851                          || test ! -s conftest.err'
8852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853   (eval $ac_try) 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); }; } &&
8857          { ac_try='test -s conftest$ac_exeext'
8858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859   (eval $ac_try) 2>&5
8860   ac_status=$?
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); }; }; then
8863   ac_cv_search_ldexp="-l$ac_lib"
8864 break
8865 else
8866   echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8868
8869 fi
8870 rm -f conftest.err conftest.$ac_objext \
8871       conftest$ac_exeext conftest.$ac_ext
8872   done
8873 fi
8874 LIBS=$ac_func_search_save_LIBS
8875 fi
8876 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8877 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8878 if test "$ac_cv_search_ldexp" != no; then
8879   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8880
8881 fi
8882
8883 LDEXP_LIB="$LIBS"
8884 LIBS="$save_LIBS"
8885
8886
8887 # Use <inttypes.h> only if it exists,
8888 # doesn't clash with <sys/types.h>, and declares intmax_t.
8889 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8890 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8891 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8892   echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894   cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900 #include <sys/types.h>
8901 #include <inttypes.h>
8902 int
8903 main ()
8904 {
8905 intmax_t i = -1;
8906   ;
8907   return 0;
8908 }
8909 _ACEOF
8910 rm -f conftest.$ac_objext
8911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8912   (eval $ac_compile) 2>conftest.er1
8913   ac_status=$?
8914   grep -v '^ *+' conftest.er1 >conftest.err
8915   rm -f conftest.er1
8916   cat conftest.err >&5
8917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918   (exit $ac_status); } &&
8919          { ac_try='test -z "$ac_c_werror_flag"
8920                          || test ! -s conftest.err'
8921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922   (eval $ac_try) 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); }; } &&
8926          { ac_try='test -s conftest.$ac_objext'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; }; then
8932   gcc_cv_header_inttypes_h=yes
8933 else
8934   echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8936
8937 gcc_cv_header_inttypes_h=no
8938 fi
8939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8940 fi
8941
8942 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8943 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8944 if test $gcc_cv_header_inttypes_h = yes; then
8945
8946 cat >>confdefs.h <<\_ACEOF
8947 #define HAVE_INTTYPES_H 1
8948 _ACEOF
8949
8950 fi
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
8979         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8980         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8981         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8982         setlocale
8983 do
8984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8985 echo "$as_me:$LINENO: checking for $ac_func" >&5
8986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8987 if eval "test \"\${$as_ac_var+set}\" = set"; then
8988   echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990   cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h.  */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h.  */
8996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8998 #define $ac_func innocuous_$ac_func
8999
9000 /* System header to define __stub macros and hopefully few prototypes,
9001     which can conflict with char $ac_func (); below.
9002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9003     <limits.h> exists even on freestanding compilers.  */
9004
9005 #ifdef __STDC__
9006 # include <limits.h>
9007 #else
9008 # include <assert.h>
9009 #endif
9010
9011 #undef $ac_func
9012
9013 /* Override any gcc2 internal prototype to avoid an error.  */
9014 #ifdef __cplusplus
9015 extern "C"
9016 {
9017 #endif
9018 /* We use char because int might match the return type of a gcc2
9019    builtin and then its argument prototype would still apply.  */
9020 char $ac_func ();
9021 /* The GNU C library defines this for functions which it implements
9022     to always fail with ENOSYS.  Some functions are actually named
9023     something starting with __ and the normal name is an alias.  */
9024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9025 choke me
9026 #else
9027 char (*f) () = $ac_func;
9028 #endif
9029 #ifdef __cplusplus
9030 }
9031 #endif
9032
9033 int
9034 main ()
9035 {
9036 return f != $ac_func;
9037   ;
9038   return 0;
9039 }
9040 _ACEOF
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043   (eval $ac_link) 2>conftest.er1
9044   ac_status=$?
9045   grep -v '^ *+' conftest.er1 >conftest.err
9046   rm -f conftest.er1
9047   cat conftest.err >&5
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); } &&
9050          { ac_try='test -z "$ac_c_werror_flag"
9051                          || test ! -s conftest.err'
9052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053   (eval $ac_try) 2>&5
9054   ac_status=$?
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); }; } &&
9057          { ac_try='test -s conftest$ac_exeext'
9058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059   (eval $ac_try) 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); }; }; then
9063   eval "$as_ac_var=yes"
9064 else
9065   echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9067
9068 eval "$as_ac_var=no"
9069 fi
9070 rm -f conftest.err conftest.$ac_objext \
9071       conftest$ac_exeext conftest.$ac_ext
9072 fi
9073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9075 if test `eval echo '${'$as_ac_var'}'` = yes; then
9076   cat >>confdefs.h <<_ACEOF
9077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9078 _ACEOF
9079
9080 fi
9081 done
9082
9083
9084 if test x$ac_cv_func_mbstowcs = xyes; then
9085   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9086 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9087 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9088   echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090       if test "$cross_compiling" = yes; then
9091   gcc_cv_func_mbstowcs_works=yes
9092 else
9093   cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099 #include <stdlib.h>
9100 int main()
9101 {
9102   mbstowcs(0, "", 0);
9103   return 0;
9104 }
9105 _ACEOF
9106 rm -f conftest$ac_exeext
9107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9108   (eval $ac_link) 2>&5
9109   ac_status=$?
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113   (eval $ac_try) 2>&5
9114   ac_status=$?
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); }; }; then
9117   gcc_cv_func_mbstowcs_works=yes
9118 else
9119   echo "$as_me: program exited with status $ac_status" >&5
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9122
9123 ( exit $ac_status )
9124 gcc_cv_func_mbstowcs_works=no
9125 fi
9126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9127 fi
9128 fi
9129 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9130 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9131   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9132
9133 cat >>confdefs.h <<\_ACEOF
9134 #define HAVE_WORKING_MBSTOWCS 1
9135 _ACEOF
9136
9137   fi
9138 fi
9139
9140 echo "$as_me:$LINENO: checking for ssize_t" >&5
9141 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9142 if test "${ac_cv_type_ssize_t+set}" = set; then
9143   echo $ECHO_N "(cached) $ECHO_C" >&6
9144 else
9145   cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h.  */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h.  */
9151 $ac_includes_default
9152 int
9153 main ()
9154 {
9155 if ((ssize_t *) 0)
9156   return 0;
9157 if (sizeof (ssize_t))
9158   return 0;
9159   ;
9160   return 0;
9161 }
9162 _ACEOF
9163 rm -f conftest.$ac_objext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9165   (eval $ac_compile) 2>conftest.er1
9166   ac_status=$?
9167   grep -v '^ *+' conftest.er1 >conftest.err
9168   rm -f conftest.er1
9169   cat conftest.err >&5
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); } &&
9172          { ac_try='test -z "$ac_c_werror_flag"
9173                          || test ! -s conftest.err'
9174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175   (eval $ac_try) 2>&5
9176   ac_status=$?
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); }; } &&
9179          { ac_try='test -s conftest.$ac_objext'
9180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181   (eval $ac_try) 2>&5
9182   ac_status=$?
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); }; }; then
9185   ac_cv_type_ssize_t=yes
9186 else
9187   echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9189
9190 ac_cv_type_ssize_t=no
9191 fi
9192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9193 fi
9194 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9195 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9196 if test $ac_cv_type_ssize_t = yes; then
9197   :
9198 else
9199
9200 cat >>confdefs.h <<_ACEOF
9201 #define ssize_t int
9202 _ACEOF
9203
9204 fi
9205
9206
9207 # Try to determine the array type of the second argument of getgroups
9208 # for the target system (int or gid_t).
9209 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9210 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9211 if test "${ac_cv_type_uid_t+set}" = set; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214   cat >conftest.$ac_ext <<_ACEOF
9215 /* confdefs.h.  */
9216 _ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h.  */
9220 #include <sys/types.h>
9221
9222 _ACEOF
9223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9224   $EGREP "uid_t" >/dev/null 2>&1; then
9225   ac_cv_type_uid_t=yes
9226 else
9227   ac_cv_type_uid_t=no
9228 fi
9229 rm -f conftest*
9230
9231 fi
9232 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9233 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9234 if test $ac_cv_type_uid_t = no; then
9235
9236 cat >>confdefs.h <<\_ACEOF
9237 #define uid_t int
9238 _ACEOF
9239
9240
9241 cat >>confdefs.h <<\_ACEOF
9242 #define gid_t int
9243 _ACEOF
9244
9245 fi
9246
9247 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9248 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9249 if test "${ac_cv_type_getgroups+set}" = set; then
9250   echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252   if test "$cross_compiling" = yes; then
9253   ac_cv_type_getgroups=cross
9254 else
9255   cat >conftest.$ac_ext <<_ACEOF
9256 /* confdefs.h.  */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h.  */
9261 /* Thanks to Mike Rendell for this test.  */
9262 #include <sys/types.h>
9263 #define NGID 256
9264 #undef MAX
9265 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9266
9267 int
9268 main ()
9269 {
9270   gid_t gidset[NGID];
9271   int i, n;
9272   union { gid_t gval; long lval; }  val;
9273
9274   val.lval = -1;
9275   for (i = 0; i < NGID; i++)
9276     gidset[i] = val.gval;
9277   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9278                  gidset);
9279   /* Exit non-zero if getgroups seems to require an array of ints.  This
9280      happens when gid_t is short but getgroups modifies an array of ints.  */
9281   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9282 }
9283 _ACEOF
9284 rm -f conftest$ac_exeext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286   (eval $ac_link) 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291   (eval $ac_try) 2>&5
9292   ac_status=$?
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); }; }; then
9295   ac_cv_type_getgroups=gid_t
9296 else
9297   echo "$as_me: program exited with status $ac_status" >&5
9298 echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9300
9301 ( exit $ac_status )
9302 ac_cv_type_getgroups=int
9303 fi
9304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9305 fi
9306 if test $ac_cv_type_getgroups = cross; then
9307         cat >conftest.$ac_ext <<_ACEOF
9308 /* confdefs.h.  */
9309 _ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h.  */
9313 #include <unistd.h>
9314
9315 _ACEOF
9316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9317   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9318   ac_cv_type_getgroups=gid_t
9319 else
9320   ac_cv_type_getgroups=int
9321 fi
9322 rm -f conftest*
9323
9324 fi
9325 fi
9326 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9327 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9328
9329 cat >>confdefs.h <<_ACEOF
9330 #define GETGROUPS_T $ac_cv_type_getgroups
9331 _ACEOF
9332
9333
9334 if test "${target}" = "${build}"; then
9335   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9336 else
9337   case "${target}" in
9338         # This condition may need some tweaking.  It should include all
9339         # targets where the array type of the second argument of getgroups
9340         # is int and the type of gid_t is not equivalent to int.
9341         *-*-sunos* | *-*-ultrix*)
9342                 TARGET_GETGROUPS_T=int
9343                 ;;
9344         *)
9345                 TARGET_GETGROUPS_T=gid_t
9346                 ;;
9347   esac
9348 fi
9349
9350
9351 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9352 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9353 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9354   echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356   if test "$cross_compiling" = yes; then
9357   gcc_cv_func_printf_ptr=no
9358 else
9359   cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h.  */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h.  */
9365 #include <stdio.h>
9366
9367 int main()
9368 {
9369   char buf[64];
9370   char *p = buf, *q = NULL;
9371   sprintf(buf, "%p", p);
9372   sscanf(buf, "%p", &q);
9373   return (p != q);
9374 }
9375 _ACEOF
9376 rm -f conftest$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378   (eval $ac_link) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383   (eval $ac_try) 2>&5
9384   ac_status=$?
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); }; }; then
9387   gcc_cv_func_printf_ptr=yes
9388 else
9389   echo "$as_me: program exited with status $ac_status" >&5
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 ( exit $ac_status )
9394 gcc_cv_func_printf_ptr=no
9395 fi
9396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9397 fi
9398 rm -f core core.* *.core
9399 fi
9400 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9401 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9402 if test $gcc_cv_func_printf_ptr = yes ; then
9403
9404 cat >>confdefs.h <<\_ACEOF
9405 #define HAVE_PRINTF_PTR 1
9406 _ACEOF
9407
9408 fi
9409
9410
9411 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9412 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9413 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9414   echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416   cat >conftest.$ac_ext <<_ACEOF
9417 /* confdefs.h.  */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h.  */
9422 #include <sys/mman.h>
9423 _ACEOF
9424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9425   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9426   ac_status=$?
9427   grep -v '^ *+' conftest.er1 >conftest.err
9428   rm -f conftest.er1
9429   cat conftest.err >&5
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } >/dev/null; then
9432   if test -s conftest.err; then
9433     ac_cpp_err=$ac_c_preproc_warn_flag
9434     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9435   else
9436     ac_cpp_err=
9437   fi
9438 else
9439   ac_cpp_err=yes
9440 fi
9441 if test -z "$ac_cpp_err"; then
9442   ac_cv_header_sys_mman_h=yes
9443 else
9444   echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9446
9447   ac_cv_header_sys_mman_h=no
9448 fi
9449 rm -f conftest.err conftest.$ac_ext
9450 fi
9451 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9452 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9453 if test $ac_cv_header_sys_mman_h = yes; then
9454   gcc_header_sys_mman_h=yes
9455 else
9456   gcc_header_sys_mman_h=no
9457 fi
9458
9459 echo "$as_me:$LINENO: checking for mmap" >&5
9460 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9461 if test "${ac_cv_func_mmap+set}" = set; then
9462   echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464   cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h.  */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h.  */
9470 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9472 #define mmap innocuous_mmap
9473
9474 /* System header to define __stub macros and hopefully few prototypes,
9475     which can conflict with char mmap (); below.
9476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9477     <limits.h> exists even on freestanding compilers.  */
9478
9479 #ifdef __STDC__
9480 # include <limits.h>
9481 #else
9482 # include <assert.h>
9483 #endif
9484
9485 #undef mmap
9486
9487 /* Override any gcc2 internal prototype to avoid an error.  */
9488 #ifdef __cplusplus
9489 extern "C"
9490 {
9491 #endif
9492 /* We use char because int might match the return type of a gcc2
9493    builtin and then its argument prototype would still apply.  */
9494 char mmap ();
9495 /* The GNU C library defines this for functions which it implements
9496     to always fail with ENOSYS.  Some functions are actually named
9497     something starting with __ and the normal name is an alias.  */
9498 #if defined (__stub_mmap) || defined (__stub___mmap)
9499 choke me
9500 #else
9501 char (*f) () = mmap;
9502 #endif
9503 #ifdef __cplusplus
9504 }
9505 #endif
9506
9507 int
9508 main ()
9509 {
9510 return f != mmap;
9511   ;
9512   return 0;
9513 }
9514 _ACEOF
9515 rm -f conftest.$ac_objext conftest$ac_exeext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9517   (eval $ac_link) 2>conftest.er1
9518   ac_status=$?
9519   grep -v '^ *+' conftest.er1 >conftest.err
9520   rm -f conftest.er1
9521   cat conftest.err >&5
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } &&
9524          { ac_try='test -z "$ac_c_werror_flag"
9525                          || test ! -s conftest.err'
9526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527   (eval $ac_try) 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); }; } &&
9531          { ac_try='test -s conftest$ac_exeext'
9532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533   (eval $ac_try) 2>&5
9534   ac_status=$?
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); }; }; then
9537   ac_cv_func_mmap=yes
9538 else
9539   echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9541
9542 ac_cv_func_mmap=no
9543 fi
9544 rm -f conftest.err conftest.$ac_objext \
9545       conftest$ac_exeext conftest.$ac_ext
9546 fi
9547 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9548 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9549 if test $ac_cv_func_mmap = yes; then
9550   gcc_func_mmap=yes
9551 else
9552   gcc_func_mmap=no
9553 fi
9554
9555 if test "$gcc_header_sys_mman_h" != yes \
9556  || test "$gcc_func_mmap" != yes; then
9557    gcc_cv_func_mmap_file=no
9558    gcc_cv_func_mmap_dev_zero=no
9559    gcc_cv_func_mmap_anon=no
9560 else
9561    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9562 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9563 if test "${gcc_cv_func_mmap_file+set}" = set; then
9564   echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566   # Add a system to this blacklist if
9567    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9568    # memory area containing the same data that you'd get if you applied
9569    # read() to the same fd.  The only system known to have a problem here
9570    # is VMS, where text files have record structure.
9571    case "$host_os" in
9572      vms* | ultrix*)
9573         gcc_cv_func_mmap_file=no ;;
9574      *)
9575         gcc_cv_func_mmap_file=yes;;
9576    esac
9577 fi
9578 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9579 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9580    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9581 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9582 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9583   echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585   # Add a system to this blacklist if it has mmap() but /dev/zero
9586    # does not exist, or if mmapping /dev/zero does not give anonymous
9587    # zeroed pages with both the following properties:
9588    # 1. If you map N consecutive pages in with one call, and then
9589    #    unmap any subset of those pages, the pages that were not
9590    #    explicitly unmapped remain accessible.
9591    # 2. If you map two adjacent blocks of memory and then unmap them
9592    #    both at once, they must both go away.
9593    # Systems known to be in this category are Windows (all variants),
9594    # VMS, and Darwin.
9595    case "$host_os" in
9596      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9597         gcc_cv_func_mmap_dev_zero=no ;;
9598      *)
9599         gcc_cv_func_mmap_dev_zero=yes;;
9600    esac
9601 fi
9602 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9603 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9604
9605    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9606    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9607 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9608 if test "${gcc_cv_decl_map_anon+set}" = set; then
9609   echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611   cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h.  */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h.  */
9617 #include <sys/types.h>
9618 #include <sys/mman.h>
9619 #include <unistd.h>
9620
9621 #ifndef MAP_ANONYMOUS
9622 #define MAP_ANONYMOUS MAP_ANON
9623 #endif
9624
9625 int
9626 main ()
9627 {
9628 int n = MAP_ANONYMOUS;
9629   ;
9630   return 0;
9631 }
9632 _ACEOF
9633 rm -f conftest.$ac_objext
9634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9635   (eval $ac_compile) 2>conftest.er1
9636   ac_status=$?
9637   grep -v '^ *+' conftest.er1 >conftest.err
9638   rm -f conftest.er1
9639   cat conftest.err >&5
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); } &&
9642          { ac_try='test -z "$ac_c_werror_flag"
9643                          || test ! -s conftest.err'
9644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645   (eval $ac_try) 2>&5
9646   ac_status=$?
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); }; } &&
9649          { ac_try='test -s conftest.$ac_objext'
9650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651   (eval $ac_try) 2>&5
9652   ac_status=$?
9653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654   (exit $ac_status); }; }; then
9655   gcc_cv_decl_map_anon=yes
9656 else
9657   echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9659
9660 gcc_cv_decl_map_anon=no
9661 fi
9662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9663 fi
9664 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9665 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9666
9667    if test $gcc_cv_decl_map_anon = no; then
9668      gcc_cv_func_mmap_anon=no
9669    else
9670      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9671 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9672 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9673   echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9676    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9677    # doesn't give anonymous zeroed pages with the same properties listed
9678    # above for use of /dev/zero.
9679    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9680    case "$host_os" in
9681      vms* | cygwin* | pe | mingw* | sco* | udk* )
9682         gcc_cv_func_mmap_anon=no ;;
9683      *)
9684         gcc_cv_func_mmap_anon=yes;;
9685    esac
9686 fi
9687 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9688 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9689    fi
9690 fi
9691
9692 if test $gcc_cv_func_mmap_file = yes; then
9693
9694 cat >>confdefs.h <<\_ACEOF
9695 #define HAVE_MMAP_FILE 1
9696 _ACEOF
9697
9698 fi
9699 if test $gcc_cv_func_mmap_dev_zero = yes; then
9700
9701 cat >>confdefs.h <<\_ACEOF
9702 #define HAVE_MMAP_DEV_ZERO 1
9703 _ACEOF
9704
9705 fi
9706 if test $gcc_cv_func_mmap_anon = yes; then
9707
9708 cat >>confdefs.h <<\_ACEOF
9709 #define HAVE_MMAP_ANON 1
9710 _ACEOF
9711
9712 fi
9713
9714
9715 case "${host}" in
9716 *-*-*vms*)
9717   # Under VMS, vfork works very differently than on Unix. The standard test
9718   # won't work, and it isn't easily adaptable. It makes more sense to
9719   # just force it.
9720   ac_cv_func_vfork_works=yes
9721   ;;
9722 esac
9723 echo "$as_me:$LINENO: checking for pid_t" >&5
9724 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9725 if test "${ac_cv_type_pid_t+set}" = set; then
9726   echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728   cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h.  */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h.  */
9734 $ac_includes_default
9735 int
9736 main ()
9737 {
9738 if ((pid_t *) 0)
9739   return 0;
9740 if (sizeof (pid_t))
9741   return 0;
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748   (eval $ac_compile) 2>conftest.er1
9749   ac_status=$?
9750   grep -v '^ *+' conftest.er1 >conftest.err
9751   rm -f conftest.er1
9752   cat conftest.err >&5
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); } &&
9755          { ac_try='test -z "$ac_c_werror_flag"
9756                          || test ! -s conftest.err'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; } &&
9762          { ac_try='test -s conftest.$ac_objext'
9763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764   (eval $ac_try) 2>&5
9765   ac_status=$?
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); }; }; then
9768   ac_cv_type_pid_t=yes
9769 else
9770   echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9772
9773 ac_cv_type_pid_t=no
9774 fi
9775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9776 fi
9777 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9778 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9779 if test $ac_cv_type_pid_t = yes; then
9780   :
9781 else
9782
9783 cat >>confdefs.h <<_ACEOF
9784 #define pid_t int
9785 _ACEOF
9786
9787 fi
9788
9789
9790
9791 for ac_header in unistd.h vfork.h
9792 do
9793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9794 echo "$as_me:$LINENO: checking for $ac_header" >&5
9795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9797   echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799   cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h.  */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h.  */
9805 #include <$ac_header>
9806 _ACEOF
9807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9809   ac_status=$?
9810   grep -v '^ *+' conftest.er1 >conftest.err
9811   rm -f conftest.er1
9812   cat conftest.err >&5
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); } >/dev/null; then
9815   if test -s conftest.err; then
9816     ac_cpp_err=$ac_c_preproc_warn_flag
9817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9818   else
9819     ac_cpp_err=
9820   fi
9821 else
9822   ac_cpp_err=yes
9823 fi
9824 if test -z "$ac_cpp_err"; then
9825   eval "$as_ac_Header=yes"
9826 else
9827   echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830   eval "$as_ac_Header=no"
9831 fi
9832 rm -f conftest.err conftest.$ac_ext
9833 fi
9834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9837   cat >>confdefs.h <<_ACEOF
9838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9839 _ACEOF
9840
9841 fi
9842 done
9843
9844
9845
9846 for ac_func in fork vfork
9847 do
9848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9849 echo "$as_me:$LINENO: checking for $ac_func" >&5
9850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9851 if eval "test \"\${$as_ac_var+set}\" = set"; then
9852   echo $ECHO_N "(cached) $ECHO_C" >&6
9853 else
9854   cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h.  */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h.  */
9860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9862 #define $ac_func innocuous_$ac_func
9863
9864 /* System header to define __stub macros and hopefully few prototypes,
9865     which can conflict with char $ac_func (); below.
9866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9867     <limits.h> exists even on freestanding compilers.  */
9868
9869 #ifdef __STDC__
9870 # include <limits.h>
9871 #else
9872 # include <assert.h>
9873 #endif
9874
9875 #undef $ac_func
9876
9877 /* Override any gcc2 internal prototype to avoid an error.  */
9878 #ifdef __cplusplus
9879 extern "C"
9880 {
9881 #endif
9882 /* We use char because int might match the return type of a gcc2
9883    builtin and then its argument prototype would still apply.  */
9884 char $ac_func ();
9885 /* The GNU C library defines this for functions which it implements
9886     to always fail with ENOSYS.  Some functions are actually named
9887     something starting with __ and the normal name is an alias.  */
9888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9889 choke me
9890 #else
9891 char (*f) () = $ac_func;
9892 #endif
9893 #ifdef __cplusplus
9894 }
9895 #endif
9896
9897 int
9898 main ()
9899 {
9900 return f != $ac_func;
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907   (eval $ac_link) 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_c_werror_flag"
9915                          || test ! -s conftest.err'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; } &&
9921          { ac_try='test -s conftest$ac_exeext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   eval "$as_ac_var=yes"
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 eval "$as_ac_var=no"
9933 fi
9934 rm -f conftest.err conftest.$ac_objext \
9935       conftest$ac_exeext conftest.$ac_ext
9936 fi
9937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9939 if test `eval echo '${'$as_ac_var'}'` = yes; then
9940   cat >>confdefs.h <<_ACEOF
9941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9942 _ACEOF
9943
9944 fi
9945 done
9946
9947 if test "x$ac_cv_func_fork" = xyes; then
9948   echo "$as_me:$LINENO: checking for working fork" >&5
9949 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9950 if test "${ac_cv_func_fork_works+set}" = set; then
9951   echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953   if test "$cross_compiling" = yes; then
9954   ac_cv_func_fork_works=cross
9955 else
9956   cat >conftest.$ac_ext <<_ACEOF
9957 /* By Ruediger Kuhlmann. */
9958       #include <sys/types.h>
9959       #if HAVE_UNISTD_H
9960       # include <unistd.h>
9961       #endif
9962       /* Some systems only have a dummy stub for fork() */
9963       int main ()
9964       {
9965         if (fork() < 0)
9966           exit (1);
9967         exit (0);
9968       }
9969 _ACEOF
9970 rm -f conftest$ac_exeext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9972   (eval $ac_link) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977   (eval $ac_try) 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); }; }; then
9981   ac_cv_func_fork_works=yes
9982 else
9983   echo "$as_me: program exited with status $ac_status" >&5
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987 ( exit $ac_status )
9988 ac_cv_func_fork_works=no
9989 fi
9990 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9991 fi
9992 fi
9993 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9994 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9995
9996 else
9997   ac_cv_func_fork_works=$ac_cv_func_fork
9998 fi
9999 if test "x$ac_cv_func_fork_works" = xcross; then
10000   case $host in
10001     *-*-amigaos* | *-*-msdosdjgpp*)
10002       # Override, as these systems have only a dummy fork() stub
10003       ac_cv_func_fork_works=no
10004       ;;
10005     *)
10006       ac_cv_func_fork_works=yes
10007       ;;
10008   esac
10009   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10010 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10011 fi
10012 ac_cv_func_vfork_works=$ac_cv_func_vfork
10013 if test "x$ac_cv_func_vfork" = xyes; then
10014   echo "$as_me:$LINENO: checking for working vfork" >&5
10015 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10016 if test "${ac_cv_func_vfork_works+set}" = set; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   if test "$cross_compiling" = yes; then
10020   ac_cv_func_vfork_works=cross
10021 else
10022   cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h.  */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h.  */
10028 /* Thanks to Paul Eggert for this test.  */
10029 #include <stdio.h>
10030 #include <stdlib.h>
10031 #include <sys/types.h>
10032 #include <sys/stat.h>
10033 #include <sys/wait.h>
10034 #if HAVE_UNISTD_H
10035 # include <unistd.h>
10036 #endif
10037 #if HAVE_VFORK_H
10038 # include <vfork.h>
10039 #endif
10040 /* On some sparc systems, changes by the child to local and incoming
10041    argument registers are propagated back to the parent.  The compiler
10042    is told about this with #include <vfork.h>, but some compilers
10043    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10044    static variable whose address is put into a register that is
10045    clobbered by the vfork.  */
10046 static void
10047 #ifdef __cplusplus
10048 sparc_address_test (int arg)
10049 # else
10050 sparc_address_test (arg) int arg;
10051 #endif
10052 {
10053   static pid_t child;
10054   if (!child) {
10055     child = vfork ();
10056     if (child < 0) {
10057       perror ("vfork");
10058       _exit(2);
10059     }
10060     if (!child) {
10061       arg = getpid();
10062       write(-1, "", 0);
10063       _exit (arg);
10064     }
10065   }
10066 }
10067
10068 int
10069 main ()
10070 {
10071   pid_t parent = getpid ();
10072   pid_t child;
10073
10074   sparc_address_test (0);
10075
10076   child = vfork ();
10077
10078   if (child == 0) {
10079     /* Here is another test for sparc vfork register problems.  This
10080        test uses lots of local variables, at least as many local
10081        variables as main has allocated so far including compiler
10082        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10083        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10084        reuse the register of parent for one of the local variables,
10085        since it will think that parent can't possibly be used any more
10086        in this routine.  Assigning to the local variable will thus
10087        munge parent in the parent process.  */
10088     pid_t
10089       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10090       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10091     /* Convince the compiler that p..p7 are live; otherwise, it might
10092        use the same hardware register for all 8 local variables.  */
10093     if (p != p1 || p != p2 || p != p3 || p != p4
10094         || p != p5 || p != p6 || p != p7)
10095       _exit(1);
10096
10097     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10098        from child file descriptors.  If the child closes a descriptor
10099        before it execs or exits, this munges the parent's descriptor
10100        as well.  Test for this by closing stdout in the child.  */
10101     _exit(close(fileno(stdout)) != 0);
10102   } else {
10103     int status;
10104     struct stat st;
10105
10106     while (wait(&status) != child)
10107       ;
10108     exit(
10109          /* Was there some problem with vforking?  */
10110          child < 0
10111
10112          /* Did the child fail?  (This shouldn't happen.)  */
10113          || status
10114
10115          /* Did the vfork/compiler bug occur?  */
10116          || parent != getpid()
10117
10118          /* Did the file descriptor bug occur?  */
10119          || fstat(fileno(stdout), &st) != 0
10120          );
10121   }
10122 }
10123 _ACEOF
10124 rm -f conftest$ac_exeext
10125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10126   (eval $ac_link) 2>&5
10127   ac_status=$?
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131   (eval $ac_try) 2>&5
10132   ac_status=$?
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); }; }; then
10135   ac_cv_func_vfork_works=yes
10136 else
10137   echo "$as_me: program exited with status $ac_status" >&5
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141 ( exit $ac_status )
10142 ac_cv_func_vfork_works=no
10143 fi
10144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10145 fi
10146 fi
10147 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10148 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10149
10150 fi;
10151 if test "x$ac_cv_func_fork_works" = xcross; then
10152   ac_cv_func_vfork_works=$ac_cv_func_vfork
10153   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10154 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10155 fi
10156
10157 if test "x$ac_cv_func_vfork_works" = xyes; then
10158
10159 cat >>confdefs.h <<\_ACEOF
10160 #define HAVE_WORKING_VFORK 1
10161 _ACEOF
10162
10163 else
10164
10165 cat >>confdefs.h <<\_ACEOF
10166 #define vfork fork
10167 _ACEOF
10168
10169 fi
10170 if test "x$ac_cv_func_fork_works" = xyes; then
10171
10172 cat >>confdefs.h <<\_ACEOF
10173 #define HAVE_WORKING_FORK 1
10174 _ACEOF
10175
10176 fi
10177
10178
10179
10180
10181   am_cv_lib_iconv_ldpath=
10182
10183 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10184 if test "${with_libiconv_prefix+set}" = set; then
10185   withval="$with_libiconv_prefix"
10186
10187     for dir in `echo "$withval" | tr : ' '`; do
10188       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
10189       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
10190     done
10191
10192 fi;
10193
10194
10195 for ac_header in iconv.h
10196 do
10197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10198 echo "$as_me:$LINENO: checking for $ac_header" >&5
10199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10201   echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203   cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h.  */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h.  */
10209 #include <$ac_header>
10210 _ACEOF
10211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10213   ac_status=$?
10214   grep -v '^ *+' conftest.er1 >conftest.err
10215   rm -f conftest.er1
10216   cat conftest.err >&5
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } >/dev/null; then
10219   if test -s conftest.err; then
10220     ac_cpp_err=$ac_c_preproc_warn_flag
10221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10222   else
10223     ac_cpp_err=
10224   fi
10225 else
10226   ac_cpp_err=yes
10227 fi
10228 if test -z "$ac_cpp_err"; then
10229   eval "$as_ac_Header=yes"
10230 else
10231   echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234   eval "$as_ac_Header=no"
10235 fi
10236 rm -f conftest.err conftest.$ac_ext
10237 fi
10238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10241   cat >>confdefs.h <<_ACEOF
10242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10243 _ACEOF
10244
10245 fi
10246 done
10247
10248
10249   echo "$as_me:$LINENO: checking for iconv" >&5
10250 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10251 if test "${am_cv_func_iconv+set}" = set; then
10252   echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10254
10255     am_cv_func_iconv="no, consider installing GNU libiconv"
10256     am_cv_lib_iconv=no
10257     cat >conftest.$ac_ext <<_ACEOF
10258 /* confdefs.h.  */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h.  */
10263 #include <stdlib.h>
10264 #include <iconv.h>
10265 int
10266 main ()
10267 {
10268 iconv_t cd = iconv_open("","");
10269        iconv(cd,NULL,NULL,NULL,NULL);
10270        iconv_close(cd);
10271   ;
10272   return 0;
10273 }
10274 _ACEOF
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277   (eval $ac_link) 2>conftest.er1
10278   ac_status=$?
10279   grep -v '^ *+' conftest.er1 >conftest.err
10280   rm -f conftest.er1
10281   cat conftest.err >&5
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); } &&
10284          { ac_try='test -z "$ac_c_werror_flag"
10285                          || test ! -s conftest.err'
10286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287   (eval $ac_try) 2>&5
10288   ac_status=$?
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); }; } &&
10291          { ac_try='test -s conftest$ac_exeext'
10292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293   (eval $ac_try) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); }; }; then
10297   am_cv_func_iconv=yes
10298 else
10299   echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302 fi
10303 rm -f conftest.err conftest.$ac_objext \
10304       conftest$ac_exeext conftest.$ac_ext
10305     if test "$am_cv_func_iconv" != yes; then
10306       am_save_LIBS="$LIBS"
10307       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
10308       cat >conftest.$ac_ext <<_ACEOF
10309 /* confdefs.h.  */
10310 _ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h.  */
10314 #include <stdlib.h>
10315 #include <iconv.h>
10316 int
10317 main ()
10318 {
10319 iconv_t cd = iconv_open("","");
10320          iconv(cd,NULL,NULL,NULL,NULL);
10321          iconv_close(cd);
10322   ;
10323   return 0;
10324 }
10325 _ACEOF
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10328   (eval $ac_link) 2>conftest.er1
10329   ac_status=$?
10330   grep -v '^ *+' conftest.er1 >conftest.err
10331   rm -f conftest.er1
10332   cat conftest.err >&5
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); } &&
10335          { ac_try='test -z "$ac_c_werror_flag"
10336                          || test ! -s conftest.err'
10337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338   (eval $ac_try) 2>&5
10339   ac_status=$?
10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341   (exit $ac_status); }; } &&
10342          { ac_try='test -s conftest$ac_exeext'
10343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344   (eval $ac_try) 2>&5
10345   ac_status=$?
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); }; }; then
10348   am_cv_lib_iconv=yes
10349         am_cv_func_iconv=yes
10350 else
10351   echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10353
10354 fi
10355 rm -f conftest.err conftest.$ac_objext \
10356       conftest$ac_exeext conftest.$ac_ext
10357       LIBS="$am_save_LIBS"
10358     fi
10359
10360 fi
10361 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10362 echo "${ECHO_T}$am_cv_func_iconv" >&6
10363   if test "$am_cv_func_iconv" = yes; then
10364
10365 cat >>confdefs.h <<\_ACEOF
10366 #define HAVE_ICONV 1
10367 _ACEOF
10368
10369     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10370 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10371     if test "${am_cv_proto_iconv+set}" = set; then
10372   echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374
10375       cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h.  */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h.  */
10381
10382 #include <stdlib.h>
10383 #include <iconv.h>
10384 extern
10385 #ifdef __cplusplus
10386 "C"
10387 #endif
10388 #if defined(__STDC__) || defined(__cplusplus)
10389 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10390 #else
10391 size_t iconv();
10392 #endif
10393
10394 int
10395 main ()
10396 {
10397
10398   ;
10399   return 0;
10400 }
10401 _ACEOF
10402 rm -f conftest.$ac_objext
10403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404   (eval $ac_compile) 2>conftest.er1
10405   ac_status=$?
10406   grep -v '^ *+' conftest.er1 >conftest.err
10407   rm -f conftest.er1
10408   cat conftest.err >&5
10409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); } &&
10411          { ac_try='test -z "$ac_c_werror_flag"
10412                          || test ! -s conftest.err'
10413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414   (eval $ac_try) 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); }; } &&
10418          { ac_try='test -s conftest.$ac_objext'
10419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420   (eval $ac_try) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }; }; then
10424   am_cv_proto_iconv_arg1=""
10425 else
10426   echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429 am_cv_proto_iconv_arg1="const"
10430 fi
10431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10432       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);"
10433 fi
10434
10435     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10436     echo "$as_me:$LINENO: result: ${ac_t:-
10437          }$am_cv_proto_iconv" >&5
10438 echo "${ECHO_T}${ac_t:-
10439          }$am_cv_proto_iconv" >&6
10440
10441 cat >>confdefs.h <<_ACEOF
10442 #define ICONV_CONST $am_cv_proto_iconv_arg1
10443 _ACEOF
10444
10445   fi
10446   LIBICONV=
10447   if test "$am_cv_lib_iconv" = yes; then
10448     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
10449   fi
10450
10451
10452 # Until we have in-tree GNU iconv:
10453 LIBICONV_DEP=
10454
10455
10456
10457   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10458 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10459 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10460   echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462   cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h.  */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h.  */
10468 #include <locale.h>
10469 int
10470 main ()
10471 {
10472 return LC_MESSAGES
10473   ;
10474   return 0;
10475 }
10476 _ACEOF
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10479   (eval $ac_link) 2>conftest.er1
10480   ac_status=$?
10481   grep -v '^ *+' conftest.er1 >conftest.err
10482   rm -f conftest.er1
10483   cat conftest.err >&5
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); } &&
10486          { ac_try='test -z "$ac_c_werror_flag"
10487                          || test ! -s conftest.err'
10488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489   (eval $ac_try) 2>&5
10490   ac_status=$?
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); }; } &&
10493          { ac_try='test -s conftest$ac_exeext'
10494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495   (eval $ac_try) 2>&5
10496   ac_status=$?
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); }; }; then
10499   am_cv_val_LC_MESSAGES=yes
10500 else
10501   echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10503
10504 am_cv_val_LC_MESSAGES=no
10505 fi
10506 rm -f conftest.err conftest.$ac_objext \
10507       conftest$ac_exeext conftest.$ac_ext
10508 fi
10509 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10510 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10511   if test $am_cv_val_LC_MESSAGES = yes; then
10512
10513 cat >>confdefs.h <<\_ACEOF
10514 #define HAVE_LC_MESSAGES 1
10515 _ACEOF
10516
10517   fi
10518
10519
10520 # We will need to find libiberty.h and ansidecl.h
10521 saved_CFLAGS="$CFLAGS"
10522 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547 for ac_func in getenv atol sbrk abort atof getcwd getwd \
10548         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
10549         fprintf_unlocked strstr errno snprintf vasprintf \
10550         malloc realloc calloc free basename getopt clock getpagesize
10551 do
10552   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10553 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10554 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10555 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10556   echo $ECHO_N "(cached) $ECHO_C" >&6
10557 else
10558   cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h.  */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h.  */
10564 #undef $ac_tr_decl
10565 #define $ac_tr_decl 1
10566
10567 #include "ansidecl.h"
10568 #include "system.h"
10569
10570 int
10571 main ()
10572 {
10573 #ifndef $ac_func
10574 char *(*pfn) = (char *(*)) $ac_func ;
10575 #endif
10576   ;
10577   return 0;
10578 }
10579 _ACEOF
10580 rm -f conftest.$ac_objext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582   (eval $ac_compile) 2>conftest.er1
10583   ac_status=$?
10584   grep -v '^ *+' conftest.er1 >conftest.err
10585   rm -f conftest.er1
10586   cat conftest.err >&5
10587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588   (exit $ac_status); } &&
10589          { ac_try='test -z "$ac_c_werror_flag"
10590                          || test ! -s conftest.err'
10591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592   (eval $ac_try) 2>&5
10593   ac_status=$?
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); }; } &&
10596          { ac_try='test -s conftest.$ac_objext'
10597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598   (eval $ac_try) 2>&5
10599   ac_status=$?
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); }; }; then
10602   eval "gcc_cv_have_decl_$ac_func=yes"
10603 else
10604   echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10606
10607 eval "gcc_cv_have_decl_$ac_func=no"
10608 fi
10609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10610 fi
10611
10612 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10613   echo "$as_me:$LINENO: result: yes" >&5
10614 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
10615 #define $ac_tr_decl 1
10616 _ACEOF
10617
10618 else
10619   echo "$as_me:$LINENO: result: no" >&5
10620 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
10621 #define $ac_tr_decl 0
10622 _ACEOF
10623
10624 fi
10625
10626 done
10627
10628
10629
10630
10631
10632 for ac_func in getrlimit setrlimit getrusage
10633 do
10634   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10635 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10636 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10637 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10638   echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640   cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h.  */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h.  */
10646 #undef $ac_tr_decl
10647 #define $ac_tr_decl 1
10648
10649 #include "ansidecl.h"
10650 #include "system.h"
10651 #ifdef HAVE_SYS_RESOURCE_H
10652 #include <sys/resource.h>
10653 #endif
10654
10655
10656 int
10657 main ()
10658 {
10659 #ifndef $ac_func
10660 char *(*pfn) = (char *(*)) $ac_func ;
10661 #endif
10662   ;
10663   return 0;
10664 }
10665 _ACEOF
10666 rm -f conftest.$ac_objext
10667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10668   (eval $ac_compile) 2>conftest.er1
10669   ac_status=$?
10670   grep -v '^ *+' conftest.er1 >conftest.err
10671   rm -f conftest.er1
10672   cat conftest.err >&5
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); } &&
10675          { ac_try='test -z "$ac_c_werror_flag"
10676                          || test ! -s conftest.err'
10677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678   (eval $ac_try) 2>&5
10679   ac_status=$?
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); }; } &&
10682          { ac_try='test -s conftest.$ac_objext'
10683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684   (eval $ac_try) 2>&5
10685   ac_status=$?
10686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687   (exit $ac_status); }; }; then
10688   eval "gcc_cv_have_decl_$ac_func=yes"
10689 else
10690   echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10692
10693 eval "gcc_cv_have_decl_$ac_func=no"
10694 fi
10695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10696 fi
10697
10698 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10699   echo "$as_me:$LINENO: result: yes" >&5
10700 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
10701 #define $ac_tr_decl 1
10702 _ACEOF
10703
10704 else
10705   echo "$as_me:$LINENO: result: no" >&5
10706 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
10707 #define $ac_tr_decl 0
10708 _ACEOF
10709
10710 fi
10711
10712 done
10713
10714
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h.  */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h.  */
10721
10722 #include "ansidecl.h"
10723 #include "system.h"
10724 #ifdef HAVE_SYS_RESOURCE_H
10725 #include <sys/resource.h>
10726 #endif
10727
10728 int
10729 main ()
10730 {
10731 rlim_t l = 0;
10732   ;
10733   return 0;
10734 }
10735 _ACEOF
10736 rm -f conftest.$ac_objext
10737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10738   (eval $ac_compile) 2>conftest.er1
10739   ac_status=$?
10740   grep -v '^ *+' conftest.er1 >conftest.err
10741   rm -f conftest.er1
10742   cat conftest.err >&5
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); } &&
10745          { ac_try='test -z "$ac_c_werror_flag"
10746                          || test ! -s conftest.err'
10747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748   (eval $ac_try) 2>&5
10749   ac_status=$?
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); }; } &&
10752          { ac_try='test -s conftest.$ac_objext'
10753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754   (eval $ac_try) 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; }; then
10758   :
10759 else
10760   echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763
10764 cat >>confdefs.h <<\_ACEOF
10765 #define rlim_t long
10766 _ACEOF
10767
10768 fi
10769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10770
10771
10772 for ac_func in ldgetname
10773 do
10774   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10775 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10776 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10777 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10778   echo $ECHO_N "(cached) $ECHO_C" >&6
10779 else
10780   cat >conftest.$ac_ext <<_ACEOF
10781 /* confdefs.h.  */
10782 _ACEOF
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h.  */
10786 #undef $ac_tr_decl
10787 #define $ac_tr_decl 1
10788
10789 #include "ansidecl.h"
10790 #include "system.h"
10791 #ifdef HAVE_LDFCN_H
10792 #include <ldfcn.h>
10793 #endif
10794
10795
10796 int
10797 main ()
10798 {
10799 #ifndef $ac_func
10800 char *(*pfn) = (char *(*)) $ac_func ;
10801 #endif
10802   ;
10803   return 0;
10804 }
10805 _ACEOF
10806 rm -f conftest.$ac_objext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808   (eval $ac_compile) 2>conftest.er1
10809   ac_status=$?
10810   grep -v '^ *+' conftest.er1 >conftest.err
10811   rm -f conftest.er1
10812   cat conftest.err >&5
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } &&
10815          { ac_try='test -z "$ac_c_werror_flag"
10816                          || test ! -s conftest.err'
10817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818   (eval $ac_try) 2>&5
10819   ac_status=$?
10820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821   (exit $ac_status); }; } &&
10822          { ac_try='test -s conftest.$ac_objext'
10823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824   (eval $ac_try) 2>&5
10825   ac_status=$?
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); }; }; then
10828   eval "gcc_cv_have_decl_$ac_func=yes"
10829 else
10830   echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10832
10833 eval "gcc_cv_have_decl_$ac_func=no"
10834 fi
10835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10836 fi
10837
10838 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10839   echo "$as_me:$LINENO: result: yes" >&5
10840 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
10841 #define $ac_tr_decl 1
10842 _ACEOF
10843
10844 else
10845   echo "$as_me:$LINENO: result: no" >&5
10846 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
10847 #define $ac_tr_decl 0
10848 _ACEOF
10849
10850 fi
10851
10852 done
10853
10854
10855
10856 for ac_func in times
10857 do
10858   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10859 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10860 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10861 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864   cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h.  */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h.  */
10870 #undef $ac_tr_decl
10871 #define $ac_tr_decl 1
10872
10873 #include "ansidecl.h"
10874 #include "system.h"
10875 #ifdef HAVE_SYS_TIMES_H
10876 #include <sys/times.h>
10877 #endif
10878
10879
10880 int
10881 main ()
10882 {
10883 #ifndef $ac_func
10884 char *(*pfn) = (char *(*)) $ac_func ;
10885 #endif
10886   ;
10887   return 0;
10888 }
10889 _ACEOF
10890 rm -f conftest.$ac_objext
10891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10892   (eval $ac_compile) 2>conftest.er1
10893   ac_status=$?
10894   grep -v '^ *+' conftest.er1 >conftest.err
10895   rm -f conftest.er1
10896   cat conftest.err >&5
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); } &&
10899          { ac_try='test -z "$ac_c_werror_flag"
10900                          || test ! -s conftest.err'
10901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902   (eval $ac_try) 2>&5
10903   ac_status=$?
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); }; } &&
10906          { ac_try='test -s conftest.$ac_objext'
10907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908   (eval $ac_try) 2>&5
10909   ac_status=$?
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); }; }; then
10912   eval "gcc_cv_have_decl_$ac_func=yes"
10913 else
10914   echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10916
10917 eval "gcc_cv_have_decl_$ac_func=no"
10918 fi
10919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10920 fi
10921
10922 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10923   echo "$as_me:$LINENO: result: yes" >&5
10924 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
10925 #define $ac_tr_decl 1
10926 _ACEOF
10927
10928 else
10929   echo "$as_me:$LINENO: result: no" >&5
10930 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
10931 #define $ac_tr_decl 0
10932 _ACEOF
10933
10934 fi
10935
10936 done
10937
10938
10939 # More time-related stuff.
10940 echo "$as_me:$LINENO: checking for struct tms" >&5
10941 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
10942 if test "${ac_cv_struct_tms+set}" = set; then
10943   echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945
10946 cat >conftest.$ac_ext <<_ACEOF
10947 /* confdefs.h.  */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h.  */
10952
10953 #include "ansidecl.h"
10954 #include "system.h"
10955 #ifdef HAVE_SYS_TIMES_H
10956 #include <sys/times.h>
10957 #endif
10958
10959 int
10960 main ()
10961 {
10962 struct tms tms;
10963   ;
10964   return 0;
10965 }
10966 _ACEOF
10967 rm -f conftest.$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969   (eval $ac_compile) 2>conftest.er1
10970   ac_status=$?
10971   grep -v '^ *+' conftest.er1 >conftest.err
10972   rm -f conftest.er1
10973   cat conftest.err >&5
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); } &&
10976          { ac_try='test -z "$ac_c_werror_flag"
10977                          || test ! -s conftest.err'
10978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979   (eval $ac_try) 2>&5
10980   ac_status=$?
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); }; } &&
10983          { ac_try='test -s conftest.$ac_objext'
10984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985   (eval $ac_try) 2>&5
10986   ac_status=$?
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); }; }; then
10989   ac_cv_struct_tms=yes
10990 else
10991   echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10993
10994 ac_cv_struct_tms=no
10995 fi
10996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10997 fi
10998 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
10999 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11000 if test $ac_cv_struct_tms = yes; then
11001
11002 cat >>confdefs.h <<\_ACEOF
11003 #define HAVE_STRUCT_TMS 1
11004 _ACEOF
11005
11006 fi
11007
11008 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11009 # revisit after autoconf 2.50.
11010 echo "$as_me:$LINENO: checking for clock_t" >&5
11011 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11012 if test "${gcc_cv_type_clock_t+set}" = set; then
11013   echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h.  */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h.  */
11022
11023 #include "ansidecl.h"
11024 #include "system.h"
11025
11026 int
11027 main ()
11028 {
11029 clock_t x;
11030   ;
11031   return 0;
11032 }
11033 _ACEOF
11034 rm -f conftest.$ac_objext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036   (eval $ac_compile) 2>conftest.er1
11037   ac_status=$?
11038   grep -v '^ *+' conftest.er1 >conftest.err
11039   rm -f conftest.er1
11040   cat conftest.err >&5
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } &&
11043          { ac_try='test -z "$ac_c_werror_flag"
11044                          || test ! -s conftest.err'
11045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046   (eval $ac_try) 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); }; } &&
11050          { ac_try='test -s conftest.$ac_objext'
11051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052   (eval $ac_try) 2>&5
11053   ac_status=$?
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); }; }; then
11056   gcc_cv_type_clock_t=yes
11057 else
11058   echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11060
11061 gcc_cv_type_clock_t=no
11062 fi
11063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11064 fi
11065 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11066 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11067 if test $gcc_cv_type_clock_t = yes; then
11068
11069 cat >>confdefs.h <<\_ACEOF
11070 #define HAVE_CLOCK_T 1
11071 _ACEOF
11072
11073 fi
11074
11075 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11076 CFLAGS="$saved_CFLAGS"
11077
11078 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11079 if test "${enable_initfini_array+set}" = set; then
11080   enableval="$enable_initfini_array"
11081
11082 else
11083
11084 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11085 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11086 if test "${gcc_cv_initfini_array+set}" = set; then
11087   echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089     if test "$cross_compiling" = yes; then
11090   gcc_cv_initfini_array=no
11091 else
11092   cat >conftest.$ac_ext <<_ACEOF
11093 /* confdefs.h.  */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h.  */
11098
11099 static int x = -1;
11100 int main (void) { return x; }
11101 int foo (void) { x = 0; }
11102 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11103 _ACEOF
11104 rm -f conftest$ac_exeext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106   (eval $ac_link) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111   (eval $ac_try) 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); }; }; then
11115   gcc_cv_initfini_array=yes
11116 else
11117   echo "$as_me: program exited with status $ac_status" >&5
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11120
11121 ( exit $ac_status )
11122 gcc_cv_initfini_array=no
11123 fi
11124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11125 fi
11126 fi
11127 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11128 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11129   enable_initfini_array=$gcc_cv_initfini_array
11130
11131 fi;
11132 if test $enable_initfini_array = yes; then
11133
11134 cat >>confdefs.h <<\_ACEOF
11135 #define HAVE_INITFINI_ARRAY 1
11136 _ACEOF
11137
11138 fi
11139
11140 # mkdir takes a single argument on some systems.
11141 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11142 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11143 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11144   echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146   cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h.  */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h.  */
11152
11153 #include <sys/types.h>
11154 #ifdef HAVE_SYS_STAT_H
11155 # include <sys/stat.h>
11156 #endif
11157 #ifdef HAVE_UNISTD_H
11158 # include <unistd.h>
11159 #endif
11160 #ifdef HAVE_DIRECT_H
11161 # include <direct.h>
11162 #endif
11163 int
11164 main ()
11165 {
11166 mkdir ("foo", 0);
11167   ;
11168   return 0;
11169 }
11170 _ACEOF
11171 rm -f conftest.$ac_objext
11172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11173   (eval $ac_compile) 2>conftest.er1
11174   ac_status=$?
11175   grep -v '^ *+' conftest.er1 >conftest.err
11176   rm -f conftest.er1
11177   cat conftest.err >&5
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); } &&
11180          { ac_try='test -z "$ac_c_werror_flag"
11181                          || test ! -s conftest.err'
11182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183   (eval $ac_try) 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; } &&
11187          { ac_try='test -s conftest.$ac_objext'
11188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189   (eval $ac_try) 2>&5
11190   ac_status=$?
11191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); }; }; then
11193   gcc_cv_mkdir_takes_one_arg=no
11194 else
11195   echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11197
11198 gcc_cv_mkdir_takes_one_arg=yes
11199 fi
11200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11201 fi
11202 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11203 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11204 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11205
11206 cat >>confdefs.h <<\_ACEOF
11207 #define MKDIR_TAKES_ONE_ARG 1
11208 _ACEOF
11209
11210 fi
11211
11212
11213 # File extensions
11214 manext='.1'
11215 objext='.o'
11216
11217
11218
11219 # With Setjmp/Longjmp based exception handling.
11220 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11221 if test "${enable_sjlj_exceptions+set}" = set; then
11222   enableval="$enable_sjlj_exceptions"
11223   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11224
11225 cat >>confdefs.h <<_ACEOF
11226 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11227 _ACEOF
11228
11229 fi;
11230
11231 # For platforms with the unwind ABI which includes an unwind library,
11232 # libunwind, we can choose to use the system libunwind.
11233
11234 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11235 if test "${with_system_libunwind+set}" = set; then
11236   withval="$with_system_libunwind"
11237
11238 fi;
11239
11240 # --------------------------------------------------------
11241 # Build, host, and target specific configuration fragments
11242 # --------------------------------------------------------
11243
11244 # Collect build-machine-specific information.
11245 . ${srcdir}/config.build
11246
11247 # Collect host-machine-specific information.
11248 . ${srcdir}/config.host
11249
11250 target_gtfiles=
11251
11252 # Collect target-machine-specific information.
11253 . ${srcdir}/config.gcc
11254
11255 extra_objs="${host_extra_objs} ${extra_objs}"
11256 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11257
11258 # Default the target-machine variables that were not explicitly set.
11259 if test x"$tm_file" = x
11260 then tm_file=$cpu_type/$cpu_type.h; fi
11261
11262 if test x"$extra_headers" = x
11263 then extra_headers=; fi
11264
11265 if test x$md_file = x
11266 then md_file=$cpu_type/$cpu_type.md; fi
11267
11268 if test x$out_file = x
11269 then out_file=$cpu_type/$cpu_type.c; fi
11270
11271 if test x"$tmake_file" = x
11272 then tmake_file=$cpu_type/t-$cpu_type
11273 fi
11274
11275 if test x"$dwarf2" = xyes
11276 then tm_file="$tm_file tm-dwarf2.h"
11277 fi
11278
11279 # Say what files are being used for the output code and MD file.
11280 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11281 echo "Using \`$srcdir/config/$md_file' as machine description file."
11282
11283 # If any of the xm_file variables contain nonexistent files, warn
11284 # about them and drop them.
11285
11286 bx=
11287 for x in $build_xm_file; do
11288   if    test -f $srcdir/config/$x
11289   then      bx="$bx $x"
11290   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11291 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11292   fi
11293 done
11294 build_xm_file="$bx"
11295
11296 hx=
11297 for x in $host_xm_file; do
11298   if    test -f $srcdir/config/$x
11299   then      hx="$hx $x"
11300   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11301 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11302   fi
11303 done
11304 host_xm_file="$hx"
11305
11306 tx=
11307 for x in $xm_file; do
11308   if    test -f $srcdir/config/$x
11309   then      tx="$tx $x"
11310   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11311 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11312   fi
11313 done
11314 xm_file="$tx"
11315
11316 count=a
11317 for f in $tm_file; do
11318         count=${count}x
11319 done
11320 if test $count = ax; then
11321         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11322 else
11323         echo "Using the following target machine macro files:"
11324         for f in $tm_file; do
11325                 echo "  $srcdir/config/$f"
11326         done
11327 fi
11328
11329 if test x$need_64bit_hwint = xyes; then
11330
11331 cat >>confdefs.h <<\_ACEOF
11332 #define NEED_64BIT_HOST_WIDE_INT 1
11333 _ACEOF
11334
11335 fi
11336
11337 if test x$use_long_long_for_widest_fast_int = xyes; then
11338
11339 cat >>confdefs.h <<\_ACEOF
11340 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11341 _ACEOF
11342
11343 fi
11344
11345 count=a
11346 for f in $host_xm_file; do
11347         count=${count}x
11348 done
11349 if test $count = a; then
11350         :
11351 elif test $count = ax; then
11352         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11353 else
11354         echo "Using the following host machine macro files:"
11355         for f in $host_xm_file; do
11356                 echo "  $srcdir/config/$f"
11357         done
11358 fi
11359 echo "Using ${out_host_hook_obj} for host machine hooks."
11360
11361 if test "$host_xm_file" != "$build_xm_file"; then
11362         count=a
11363         for f in $build_xm_file; do
11364                 count=${count}x
11365         done
11366         if test $count = a; then
11367                 :
11368         elif test $count = ax; then
11369                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11370         else
11371                 echo "Using the following build machine macro files:"
11372                 for f in $build_xm_file; do
11373                         echo "  $srcdir/config/$f"
11374                 done
11375         fi
11376 fi
11377
11378 # ---------
11379 # Threading
11380 # ---------
11381
11382 # Check if a valid thread package
11383 case ${enable_threads} in
11384   "" | no)
11385     # No threads
11386     target_thread_file='single'
11387     ;;
11388   yes)
11389     # default
11390     target_thread_file='single'
11391     ;;
11392   aix | dce | gnat | irix | posix | rtems | \
11393   single | solaris | vxworks | win32 )
11394     target_thread_file=${enable_threads}
11395     ;;
11396   *)
11397     echo "${enable_threads} is an unknown thread package" 1>&2
11398     exit 1
11399     ;;
11400 esac
11401
11402 if test x${thread_file} = x; then
11403   # No thread file set by target-specific clauses in config.gcc,
11404   # so use file chosen by default logic above
11405   thread_file=${target_thread_file}
11406 fi
11407
11408 # Make gthr-default.h if we have a thread file.
11409 gthread_flags=
11410 if test $thread_file != single; then
11411   rm -f gthr-default.h
11412   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11413   gthread_flags=-DHAVE_GTHR_DEFAULT
11414 fi
11415
11416
11417 # --------
11418 # UNSORTED
11419 # --------
11420
11421 if test x$enable___cxa_atexit = xyes || \
11422    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11423    echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
11424 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
11425 if test "${ac_cv_func___cxa_atexit+set}" = set; then
11426   echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428   cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h.  */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h.  */
11434 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
11435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11436 #define __cxa_atexit innocuous___cxa_atexit
11437
11438 /* System header to define __stub macros and hopefully few prototypes,
11439     which can conflict with char __cxa_atexit (); below.
11440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11441     <limits.h> exists even on freestanding compilers.  */
11442
11443 #ifdef __STDC__
11444 # include <limits.h>
11445 #else
11446 # include <assert.h>
11447 #endif
11448
11449 #undef __cxa_atexit
11450
11451 /* Override any gcc2 internal prototype to avoid an error.  */
11452 #ifdef __cplusplus
11453 extern "C"
11454 {
11455 #endif
11456 /* We use char because int might match the return type of a gcc2
11457    builtin and then its argument prototype would still apply.  */
11458 char __cxa_atexit ();
11459 /* The GNU C library defines this for functions which it implements
11460     to always fail with ENOSYS.  Some functions are actually named
11461     something starting with __ and the normal name is an alias.  */
11462 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
11463 choke me
11464 #else
11465 char (*f) () = __cxa_atexit;
11466 #endif
11467 #ifdef __cplusplus
11468 }
11469 #endif
11470
11471 int
11472 main ()
11473 {
11474 return f != __cxa_atexit;
11475   ;
11476   return 0;
11477 }
11478 _ACEOF
11479 rm -f conftest.$ac_objext conftest$ac_exeext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11481   (eval $ac_link) 2>conftest.er1
11482   ac_status=$?
11483   grep -v '^ *+' conftest.er1 >conftest.err
11484   rm -f conftest.er1
11485   cat conftest.err >&5
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); } &&
11488          { ac_try='test -z "$ac_c_werror_flag"
11489                          || test ! -s conftest.err'
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          { ac_try='test -s conftest$ac_exeext'
11496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497   (eval $ac_try) 2>&5
11498   ac_status=$?
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); }; }; then
11501   ac_cv_func___cxa_atexit=yes
11502 else
11503   echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11505
11506 ac_cv_func___cxa_atexit=no
11507 fi
11508 rm -f conftest.err conftest.$ac_objext \
11509       conftest$ac_exeext conftest.$ac_ext
11510 fi
11511 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
11512 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
11513 if test $ac_cv_func___cxa_atexit = yes; then
11514
11515 cat >>confdefs.h <<\_ACEOF
11516 #define DEFAULT_USE_CXA_ATEXIT 1
11517 _ACEOF
11518
11519 else
11520   echo "__cxa_atexit can't be enabled on this target"
11521 fi
11522
11523 fi
11524
11525 # Look for a file containing extra machine modes.
11526 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11527   extra_modes_file='$(srcdir)'/config/${extra_modes}
11528
11529
11530 cat >>confdefs.h <<_ACEOF
11531 #define EXTRA_MODES_FILE "config/$extra_modes"
11532 _ACEOF
11533
11534 fi
11535
11536 # auto-host.h is the file containing items generated by autoconf and is
11537 # the first file included by config.h.
11538 # If host=build, it is correct to have bconfig include auto-host.h
11539 # as well.  If host!=build, we are in error and need to do more
11540 # work to find out the build config parameters.
11541 if test x$host = x$build
11542 then
11543         build_auto=auto-host.h
11544 else
11545         # We create a subdir, then run autoconf in the subdir.
11546         # To prevent recursion we set host and build for the new
11547         # invocation of configure to the build for this invocation
11548         # of configure.
11549         tempdir=build.$$
11550         rm -rf $tempdir
11551         mkdir $tempdir
11552         cd $tempdir
11553         case ${srcdir} in
11554         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11555         *) realsrcdir=../${srcdir};;
11556         esac
11557         saved_CFLAGS="${CFLAGS}"
11558         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11559         ${realsrcdir}/configure \
11560                 --enable-languages=${enable_languages-all} \
11561                 --target=$target_alias --host=$build_alias --build=$build_alias
11562         CFLAGS="${saved_CFLAGS}"
11563
11564         # We just finished tests for the build machine, so rename
11565         # the file auto-build.h in the gcc directory.
11566         mv auto-host.h ../auto-build.h
11567         cd ..
11568         rm -rf $tempdir
11569         build_auto=auto-build.h
11570 fi
11571
11572
11573 tm_file="${tm_file} defaults.h"
11574 tm_p_file="${tm_p_file} tm-preds.h"
11575 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11576 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11577 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11578 # put this back in temporarily.
11579 xm_file="ansidecl.h ${xm_file}"
11580
11581 # --------
11582 # UNSORTED
11583 # --------
11584
11585 # Get the version trigger filename from the toplevel
11586 if test "${with_gcc_version_trigger+set}" = set; then
11587         gcc_version_trigger=$with_gcc_version_trigger
11588 else
11589         gcc_version_trigger=${srcdir}/version.c
11590 fi
11591 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
11592 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
11593
11594 # Compile in configure arguments.
11595 if test -f configargs.h ; then
11596         # Being re-configured.
11597         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11598         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11599 else
11600         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11601 fi
11602
11603 # Double all backslashes and backslash all quotes to turn
11604 # gcc_config_arguments into a C string.
11605 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11606 $gcc_config_arguments
11607 EOF
11608 gcc_config_arguments_str=`cat conftest.out`
11609 rm -f conftest.out
11610
11611 cat > configargs.h <<EOF
11612 /* Generated automatically. */
11613 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11614 static const char thread_model[] = "$thread_file";
11615
11616 static const struct {
11617   const char *name, *value;
11618 } configure_default_options[] = $configure_default_options;
11619 EOF
11620
11621 # Internationalization
11622 PACKAGE=gcc
11623 VERSION="$gcc_version"
11624
11625 cat >>confdefs.h <<_ACEOF
11626 #define PACKAGE "$PACKAGE"
11627 _ACEOF
11628
11629
11630
11631
11632 # If we haven't got the data from the intl directory,
11633 # assume NLS is disabled.
11634 USE_NLS=no
11635 LIBINTL=
11636 LIBINTL_DEP=
11637 INCINTL=
11638 XGETTEXT=
11639 GMSGFMT=
11640 POSUB=
11641 if test -f ../intl/config.intl; then
11642   . ../intl/config.intl
11643 fi
11644 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11645 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11646 if test x"$USE_NLS" != xyes; then
11647   echo "$as_me:$LINENO: result: no" >&5
11648 echo "${ECHO_T}no" >&6
11649 else
11650   echo "$as_me:$LINENO: result: yes" >&5
11651 echo "${ECHO_T}yes" >&6
11652
11653 cat >>confdefs.h <<\_ACEOF
11654 #define ENABLE_NLS 1
11655 _ACEOF
11656
11657
11658   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11659 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11660   # Look for .po and .gmo files in the source directory.
11661   CATALOGS=
11662   XLINGUAS=
11663   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11664     # If there aren't any .gmo files the shell will give us the
11665     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11666     # weeded out.
11667     case "$cat" in *\**)
11668       continue;;
11669     esac
11670     # The quadruple backslash is collapsed to a double backslash
11671     # by the backticks, then collapsed again by the double quotes,
11672     # leaving us with one backslash in the sed expression (right
11673     # before the dot that mustn't act as a wildcard).
11674     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
11675     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
11676     # The user is allowed to set LINGUAS to a list of languages to
11677     # install catalogs for.  If it's empty that means "all of them."
11678     if test "x$LINGUAS" = x; then
11679       CATALOGS="$CATALOGS $cat"
11680       XLINGUAS="$XLINGUAS $lang"
11681     else
11682       case "$LINGUAS" in *$lang*)
11683         CATALOGS="$CATALOGS $cat"
11684         XLINGUAS="$XLINGUAS $lang"
11685         ;;
11686       esac
11687     fi
11688   done
11689   LINGUAS="$XLINGUAS"
11690   echo "$as_me:$LINENO: result: $LINGUAS" >&5
11691 echo "${ECHO_T}$LINGUAS" >&6
11692 fi
11693
11694 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11695 # -liconv on the link line twice.
11696 case "$LIBINTL" in *$LIBICONV*)
11697         LIBICONV= ;;
11698 esac
11699
11700 # Windows32 Registry support for specifying GCC installation paths.
11701 # Check whether --enable-win32-registry or --disable-win32-registry was given.
11702 if test "${enable_win32_registry+set}" = set; then
11703   enableval="$enable_win32_registry"
11704
11705 fi;
11706 case $host_os in
11707         win32 | pe | cygwin* | mingw32* | uwin*)
11708 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
11709 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
11710 if test "x$enable_win32_registry" != xno; then
11711
11712 cat >>confdefs.h <<\_ACEOF
11713 #define ENABLE_WIN32_REGISTRY 1
11714 _ACEOF
11715
11716   echo "$as_me:$LINENO: result: yes" >&5
11717 echo "${ECHO_T}yes" >&6
11718   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
11719 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
11720 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
11721   echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723   ac_func_search_save_LIBS=$LIBS
11724 ac_cv_search_RegOpenKeyExA=no
11725 cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h.  */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h.  */
11731
11732 /* Override any gcc2 internal prototype to avoid an error.  */
11733 #ifdef __cplusplus
11734 extern "C"
11735 #endif
11736 /* We use char because int might match the return type of a gcc2
11737    builtin and then its argument prototype would still apply.  */
11738 char RegOpenKeyExA ();
11739 int
11740 main ()
11741 {
11742 RegOpenKeyExA ();
11743   ;
11744   return 0;
11745 }
11746 _ACEOF
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749   (eval $ac_link) 2>conftest.er1
11750   ac_status=$?
11751   grep -v '^ *+' conftest.er1 >conftest.err
11752   rm -f conftest.er1
11753   cat conftest.err >&5
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); } &&
11756          { ac_try='test -z "$ac_c_werror_flag"
11757                          || test ! -s conftest.err'
11758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759   (eval $ac_try) 2>&5
11760   ac_status=$?
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); }; } &&
11763          { ac_try='test -s conftest$ac_exeext'
11764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765   (eval $ac_try) 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; }; then
11769   ac_cv_search_RegOpenKeyExA="none required"
11770 else
11771   echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11773
11774 fi
11775 rm -f conftest.err conftest.$ac_objext \
11776       conftest$ac_exeext conftest.$ac_ext
11777 if test "$ac_cv_search_RegOpenKeyExA" = no; then
11778   for ac_lib in advapi32; do
11779     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11780     cat >conftest.$ac_ext <<_ACEOF
11781 /* confdefs.h.  */
11782 _ACEOF
11783 cat confdefs.h >>conftest.$ac_ext
11784 cat >>conftest.$ac_ext <<_ACEOF
11785 /* end confdefs.h.  */
11786
11787 /* Override any gcc2 internal prototype to avoid an error.  */
11788 #ifdef __cplusplus
11789 extern "C"
11790 #endif
11791 /* We use char because int might match the return type of a gcc2
11792    builtin and then its argument prototype would still apply.  */
11793 char RegOpenKeyExA ();
11794 int
11795 main ()
11796 {
11797 RegOpenKeyExA ();
11798   ;
11799   return 0;
11800 }
11801 _ACEOF
11802 rm -f conftest.$ac_objext conftest$ac_exeext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804   (eval $ac_link) 2>conftest.er1
11805   ac_status=$?
11806   grep -v '^ *+' conftest.er1 >conftest.err
11807   rm -f conftest.er1
11808   cat conftest.err >&5
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } &&
11811          { ac_try='test -z "$ac_c_werror_flag"
11812                          || test ! -s conftest.err'
11813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814   (eval $ac_try) 2>&5
11815   ac_status=$?
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); }; } &&
11818          { ac_try='test -s conftest$ac_exeext'
11819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820   (eval $ac_try) 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); }; }; then
11824   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
11825 break
11826 else
11827   echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11829
11830 fi
11831 rm -f conftest.err conftest.$ac_objext \
11832       conftest$ac_exeext conftest.$ac_ext
11833   done
11834 fi
11835 LIBS=$ac_func_search_save_LIBS
11836 fi
11837 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
11838 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
11839 if test "$ac_cv_search_RegOpenKeyExA" != no; then
11840   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
11841
11842 fi
11843
11844 else
11845   echo "$as_me:$LINENO: result: no" >&5
11846 echo "${ECHO_T}no" >&6
11847 fi
11848
11849 # Check if user specified a different registry key.
11850 case "x${enable_win32_registry}" in
11851 x | xyes)
11852   # default.
11853   gcc_cv_win32_registry_key="$VERSION"
11854   ;;
11855 xno)
11856   # no registry lookup.
11857   gcc_cv_win32_registry_key=''
11858   ;;
11859 *)
11860   # user-specified key.
11861   gcc_cv_win32_registry_key="$enable_win32_registry"
11862   ;;
11863 esac
11864
11865 if test "x$enable_win32_registry" != xno; then
11866   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
11867 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
11868
11869 cat >>confdefs.h <<_ACEOF
11870 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
11871 _ACEOF
11872
11873   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
11874 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
11875 fi
11876 ;;
11877 esac
11878
11879 # Get an absolute path to the GCC top-level source directory
11880 holddir=`${PWDCMD-pwd}`
11881 cd $srcdir
11882 topdir=`${PWDCMD-pwd}`
11883 cd $holddir
11884
11885 # Conditionalize the makefile for this host machine.
11886 xmake_file=
11887 for f in ${host_xmake_file}
11888 do
11889         if test -f ${srcdir}/config/$f
11890         then
11891                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11892         fi
11893 done
11894
11895 # Conditionalize the makefile for this target machine.
11896 tmake_file_=
11897 for f in ${tmake_file}
11898 do
11899         if test -f ${srcdir}/config/$f
11900         then
11901                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11902         fi
11903 done
11904 tmake_file="${tmake_file_}"
11905
11906 symbolic_link='ln -s'
11907
11908 # If the host doesn't support symlinks, modify CC in
11909 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
11910 # Otherwise, we can use "CC=$(CC)".
11911 rm -f symtest.tem
11912 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
11913 then
11914         cc_set_by_configure="\$(CC)"
11915         quoted_cc_set_by_configure="\$(CC)"
11916         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
11917         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
11918 else
11919         rm -f symtest.tem
11920         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
11921         then
11922                 symbolic_link="cp -p"
11923         else
11924                 symbolic_link="cp"
11925         fi
11926         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
11927         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
11928         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
11929         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
11930 fi
11931 rm -f symtest.tem
11932
11933 out_object_file=`basename $out_file .c`.o
11934
11935 tm_file_list=
11936 tm_include_list=
11937 for f in $tm_file; do
11938   case $f in
11939     defaults.h )
11940        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11941        tm_include_list="${tm_include_list} $f"
11942        ;;
11943     * )
11944        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11945        tm_include_list="${tm_include_list} config/$f"
11946        ;;
11947   esac
11948 done
11949
11950 tm_p_file_list=
11951 tm_p_include_list=
11952 for f in $tm_p_file; do
11953   case $f in
11954     tm-preds.h )
11955        tm_p_file_list="${tm_p_file_list} $f"
11956        tm_p_include_list="${tm_p_include_list} $f"
11957        ;;
11958     * )
11959        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11960        tm_p_include_list="${tm_p_include_list} config/$f"
11961   esac
11962 done
11963
11964 xm_file_list=
11965 xm_include_list=
11966 for f in $xm_file; do
11967   case $f in
11968     ansidecl.h )
11969        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11970        xm_include_list="${xm_include_list} $f"
11971        ;;
11972     auto-host.h )
11973        xm_file_list="${xm_file_list} $f"
11974        xm_include_list="${xm_include_list} $f"
11975        ;;
11976     * )
11977        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11978        xm_include_list="${xm_include_list} config/$f"
11979        ;;
11980   esac
11981 done
11982
11983 host_xm_file_list=
11984 host_xm_include_list=
11985 for f in $host_xm_file; do
11986   case $f in
11987     ansidecl.h )
11988        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11989        host_xm_include_list="${host_xm_include_list} $f"
11990        ;;
11991     auto-host.h )
11992        host_xm_file_list="${host_xm_file_list} $f"
11993        host_xm_include_list="${host_xm_include_list} $f"
11994        ;;
11995     * )
11996        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11997        host_xm_include_list="${host_xm_include_list} config/$f"
11998        ;;
11999   esac
12000 done
12001
12002 build_xm_file_list=
12003 for f in $build_xm_file; do
12004   case $f in
12005     ansidecl.h )
12006        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12007        build_xm_include_list="${build_xm_include_list} $f"
12008        ;;
12009     auto-build.h | auto-host.h )
12010        build_xm_file_list="${build_xm_file_list} $f"
12011        build_xm_include_list="${build_xm_include_list} $f"
12012        ;;
12013     * )
12014        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12015        build_xm_include_list="${build_xm_include_list} config/$f"
12016        ;;
12017   esac
12018 done
12019
12020 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12021 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12022 CROSS=
12023 ALL=all.internal
12024 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12025 if test x$host != x$target
12026 then
12027         CROSS="-DCROSS_COMPILE"
12028         ALL=all.cross
12029         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12030         case "$host","$target" in
12031         # Darwin crosses can use the host system's libraries and headers,
12032         # because of the fat library support.  Of course, it must be the
12033         # same version of Darwin on both sides.  Allow the user to
12034         # just say --target=foo-darwin without a version number to mean
12035         # "the version on this system".
12036             *-*-darwin*,*-*-darwin*)
12037                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12038                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12039                 if test $hostos = $targetos -o $targetos = darwin ; then
12040                     CROSS=
12041                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12042                     with_headers=yes
12043                 fi
12044                 ;;
12045
12046             i?86-*-*,x86_64-*-* \
12047             | powerpc*-*-*,powerpc64*-*-*)
12048                 CROSS="$CROSS -DNATIVE_CROSS" ;;
12049         esac
12050 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12051         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12052         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12053 fi
12054
12055 # If this is a cross-compiler that does not
12056 # have its own set of headers then define
12057 # inhibit_libc
12058
12059 # If this is using newlib, without having the headers available now,
12060 # then define inhibit_libc in LIBGCC2_CFLAGS.
12061 # This prevents libgcc2 from containing any code which requires libc
12062 # support.
12063 inhibit_libc=
12064 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12065        test x$with_newlib = xyes ; } &&
12066      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12067        inhibit_libc=-Dinhibit_libc
12068 fi
12069
12070
12071 # When building gcc with a cross-compiler, we need to adjust things so
12072 # that the generator programs are still built with the native compiler.
12073 # Also, we cannot run fixincludes or fix-header.
12074
12075 # These are the normal (build=host) settings:
12076 CC_FOR_BUILD='$(CC)'
12077 BUILD_CFLAGS='$(ALL_CFLAGS)'
12078 STMP_FIXINC=stmp-fixinc
12079
12080 # Possibly disable fixproto, on a per-target basis.
12081 case ${use_fixproto} in
12082   no)
12083     STMP_FIXPROTO=
12084     ;;
12085   yes)
12086     STMP_FIXPROTO=stmp-fixproto
12087     ;;
12088 esac
12089
12090
12091 # And these apply if build != host, or we are generating coverage data
12092 if test x$build != x$host || test "x$coverage_flags" != x
12093 then
12094     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12095
12096     if test "x$TARGET_SYSTEM_ROOT" = x; then
12097         STMP_FIXINC=
12098         STMP_FIXPROTO=
12099     fi
12100 fi
12101
12102 # When bootstrapping from the toplevel, only run fixincludes during stage1
12103 if test -d ../prev-gcc
12104 then
12105     STMP_FIXINC=
12106     cp -R ../prev-gcc/include include
12107 fi
12108
12109 # Expand extra_headers to include complete path.
12110 # This substitutes for lots of t-* files.
12111 extra_headers_list=
12112 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12113 for file in ${extra_headers} ; do
12114   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12115 done
12116
12117 # Define collect2 in Makefile.
12118 case $host_can_use_collect2 in
12119   no) collect2= ;;
12120   *) collect2='collect2$(exeext)' ;;
12121 esac
12122
12123
12124 # Add a definition of USE_COLLECT2 if system wants one.
12125 case $use_collect2 in
12126   no) use_collect2= ;;
12127   "") ;;
12128   *)
12129     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12130     xm_defines="${xm_defines} USE_COLLECT2"
12131     case $host_can_use_collect2 in
12132       no)
12133         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12134 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12135    { (exit 1); exit 1; }; }
12136         ;;
12137     esac
12138     ;;
12139 esac
12140
12141 # ---------------------------
12142 # Assembler & linker features
12143 # ---------------------------
12144
12145 # Identify the assembler which will work hand-in-glove with the newly
12146 # built GCC, so that we can examine its features.  This is the assembler
12147 # which will be driven by the driver program.
12148 #
12149 # If build != host, and we aren't building gas in-tree, we identify a
12150 # build->target assembler and hope that it will have the same features
12151 # as the host->target assembler we'll be using.
12152 echo "$as_me:$LINENO: checking what assembler to use" >&5
12153 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12154 in_tree_gas=no
12155 gcc_cv_as=
12156 gcc_cv_gas_major_version=
12157 gcc_cv_gas_minor_version=
12158 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12159 if test -x "$DEFAULT_ASSEMBLER"; then
12160         gcc_cv_as="$DEFAULT_ASSEMBLER"
12161 elif test -x as$host_exeext; then
12162         # Build using assembler in the current directory.
12163         gcc_cv_as=./as$host_exeext
12164 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12165      && test -f ../gas/Makefile \
12166      && test x$build = x$host; then
12167   # Single tree build which includes gas.  We want to prefer it
12168   # over whatever linker top-level may have detected, since
12169   # we'll use what we're building after installation anyway.
12170   in_tree_gas=yes
12171   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12172 for f in $gcc_cv_as_bfd_srcdir/configure \
12173          $gcc_cv_as_gas_srcdir/configure \
12174          $gcc_cv_as_gas_srcdir/configure.in \
12175          $gcc_cv_as_gas_srcdir/Makefile.in ; do
12176   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12177   if test x$gcc_cv_gas_version != x; then
12178     break
12179   fi
12180 done
12181 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12182 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12183 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12184 case $gcc_cv_gas_patch_version in
12185   "") gcc_cv_gas_patch_version="0" ;;
12186 esac
12187 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12188                             + $gcc_cv_gas_minor_version \) \* 1000 \
12189                             + $gcc_cv_gas_patch_version`
12190
12191   rm -f as$host_exeext
12192   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
12193   in_tree_gas_is_elf=no
12194   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12195      || (grep 'obj_format = multi' ../gas/Makefile \
12196          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12197   then
12198     in_tree_gas_is_elf=yes
12199   fi
12200 elif test -x "$AS_FOR_TARGET"; then
12201         gcc_cv_as="$AS_FOR_TARGET"
12202 elif test -x "$AS" && test x$host = x$target; then
12203         gcc_cv_as="$AS"
12204 fi
12205
12206 if test "x$gcc_cv_as" = x; then
12207         # Search the same directories that the installed compiler will
12208         # search.  Else we may find the wrong assembler and lose.  If we
12209         # do not find a suitable assembler binary, then try the user's
12210         # path.
12211         #
12212         # Also note we have to check MD_EXEC_PREFIX before checking the
12213         # user's path.  Unfortunately, there is no good way to get at the
12214         # value of MD_EXEC_PREFIX here.  So we do a brute force search
12215         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
12216         # to be fixed as part of the make/configure rewrite too.
12217
12218         if test "x$exec_prefix" = xNONE; then
12219                 if test "x$prefix" = xNONE; then
12220                         test_prefix=/usr/local
12221                 else
12222                         test_prefix=$prefix
12223                 fi
12224         else
12225                 test_prefix=$exec_prefix
12226         fi
12227
12228         # If the loop below does not find an assembler, then use whatever
12229         # one we can find in the users's path.
12230         # user's path.
12231         if test "x$program_prefix" != xNONE; then
12232                 gcc_cv_as=${program_prefix}as$host_exeext
12233         else
12234                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
12235         fi
12236
12237         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12238                    $test_prefix/libexec/gcc/$target_noncanonical \
12239                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
12240                    /usr/lib/gcc/$target_noncanonical \
12241                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12242                    $test_prefix/$target_noncanonical/bin"
12243
12244         if test x$host = x$target; then
12245             test_dirs="$test_dirs \
12246                    /usr/libexec \
12247                    /usr/ccs/gcc \
12248                    /usr/ccs/bin \
12249                    /udk/usr/ccs/bin \
12250                    /bsd43/usr/lib/cmplrs/cc \
12251                    /usr/cross64/usr/bin \
12252                    /usr/lib/cmplrs/cc \
12253                    /sysv/usr/lib/cmplrs/cc \
12254                    /svr4/usr/lib/cmplrs/cc \
12255                    /usr/bin"
12256         fi
12257
12258         for dir in $test_dirs; do
12259                 if test -x $dir/as$host_exeext; then
12260                         gcc_cv_as=$dir/as$host_exeext
12261                         break;
12262                 fi
12263         done
12264 fi
12265 case $in_tree_gas in
12266   yes)
12267     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12268 echo "${ECHO_T}\"newly built gas\"" >&6
12269     ;;
12270   no)
12271     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12272 echo "${ECHO_T}$gcc_cv_as" >&6
12273     ;;
12274 esac
12275
12276 # Identify the linker which will work hand-in-glove with the newly
12277 # built GCC, so that we can examine its features.  This is the linker
12278 # which will be driven by the driver program.
12279 #
12280 # If build != host, and we aren't building gas in-tree, we identify a
12281 # build->target linker and hope that it will have the same features
12282 # as the host->target linker we'll be using.
12283 echo "$as_me:$LINENO: checking what linker to use" >&5
12284 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12285 in_tree_ld=no
12286 gcc_cv_ld=
12287 gcc_cv_gld_major_version=
12288 gcc_cv_gld_minor_version=
12289 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12290 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12291 if test -x "$DEFAULT_LINKER"; then
12292         gcc_cv_ld="$DEFAULT_LINKER"
12293 elif test -x collect-ld$host_exeext; then
12294         # Build using linker in the current directory.
12295         gcc_cv_ld=./collect-ld$host_exeext
12296 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12297      && test -f ../ld/Makefile \
12298      && test x$build = x$host; then
12299         # Single tree build which includes ld.  We want to prefer it
12300         # over whatever linker top-level may have detected, since
12301         # we'll use what we're building after installation anyway.
12302         in_tree_ld=yes
12303         in_tree_ld_is_elf=no
12304         if (grep 'EMUL = .*elf' ../ld/Makefile \
12305             || grep 'EMUL = .*linux' ../ld/Makefile \
12306             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12307           in_tree_ld_is_elf=yes
12308         fi
12309         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
12310         do
12311                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12312                 if test x$gcc_cv_gld_version != x; then
12313                         break
12314                 fi
12315         done
12316         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12317         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12318         rm -f collect-ld$host_exeext
12319         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
12320                 2>/dev/null
12321 elif test -x "$LD_FOR_TARGET"; then
12322         gcc_cv_ld="$LD_FOR_TARGET"
12323 elif test -x "$LD" && test x$host = x$target; then
12324         gcc_cv_ld="$LD"
12325 fi
12326
12327 if test "x$gcc_cv_ld" = x; then
12328         # Search the same directories that the installed compiler will
12329         # search.  Else we may find the wrong linker and lose.  If we
12330         # do not find a suitable linker binary, then try the user's
12331         # path.
12332         #
12333         # Also note we have to check MD_EXEC_PREFIX before checking the
12334         # user's path.  Unfortunately, there is no good way to get at the
12335         # value of MD_EXEC_PREFIX here.  So we do a brute force search
12336         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
12337         # to be fixed as part of the make/configure rewrite too.
12338
12339         if test "x$exec_prefix" = xNONE; then
12340                 if test "x$prefix" = xNONE; then
12341                         test_prefix=/usr/local
12342                 else
12343                         test_prefix=$prefix
12344                 fi
12345         else
12346                 test_prefix=$exec_prefix
12347         fi
12348
12349         # If the loop below does not find an linker, then use whatever
12350         # one we can find in the users's path.
12351         # user's path.
12352         if test "x$program_prefix" != xNONE; then
12353                 gcc_cv_ld=${program_prefix}ld$host_exeext
12354         else
12355                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
12356         fi
12357
12358         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12359                    $test_prefix/libexec/gcc/$target_noncanonical \
12360                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
12361                    /usr/lib/gcc/$target_noncanonical \
12362                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12363                    $test_prefix/$target_noncanonical/bin"
12364
12365         if test x$host = x$target; then
12366             test_dirs="$test_dirs \
12367                    /usr/libexec \
12368                    /usr/ccs/gcc \
12369                    /usr/ccs/bin \
12370                    /udk/usr/ccs/bin \
12371                    /bsd43/usr/lib/cmplrs/cc \
12372                    /usr/cross64/usr/bin \
12373                    /usr/lib/cmplrs/cc \
12374                    /sysv/usr/lib/cmplrs/cc \
12375                    /svr4/usr/lib/cmplrs/cc \
12376                    /usr/bin"
12377         fi
12378
12379         for dir in $test_dirs; do
12380                 if test -x $dir/ld$host_exeext; then
12381                         gcc_cv_ld=$dir/ld$host_exeext
12382                         break;
12383                 fi
12384         done
12385 fi
12386 case $in_tree_ld in
12387   yes)
12388     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12389 echo "${ECHO_T}\"newly built ld\"" >&6
12390     ;;
12391   no)
12392     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12393 echo "${ECHO_T}$gcc_cv_ld" >&6
12394     ;;
12395 esac
12396
12397 # Figure out what nm we will be using.
12398 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12399 echo "$as_me:$LINENO: checking what nm to use" >&5
12400 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12401 in_tree_nm=no
12402 if test -x nm$host_exeext; then
12403         gcc_cv_nm=./nm$host_exeext
12404 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12405      && test -f ../binutils/Makefile; then
12406         # Single tree build which includes binutils.
12407         in_tree_nm=yes
12408         gcc_cv_nm=./nm$host_exeext
12409         rm -f nm$host_exeext
12410         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
12411 elif test "x$program_prefix" != xNONE; then
12412         gcc_cv_nm=${program_prefix}nm$host_exeext
12413 else
12414         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
12415 fi
12416 case $in_tree_nm in
12417   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12418 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12419   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12420 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12421 esac
12422
12423 # Figure out what objdump we will be using.
12424 echo "$as_me:$LINENO: checking what objdump to use" >&5
12425 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12426 in_tree_objdump=no
12427 if test -x objdump$host_exeext; then
12428         gcc_cv_objdump=./objdump$host_exeext
12429 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12430      && test -f ../binutils/Makefile; then
12431         # Single tree build which includes binutils.
12432         in_tree_objdump=yes
12433         gcc_cv_objdump=./objdump$host_exeext
12434         rm -f objdump$host_exeext
12435         $symbolic_link ../binutils/objdump$host_exeext \
12436                 objdump$host_exeext 2>/dev/null
12437 elif test "x$program_prefix" != xNONE; then
12438         gcc_cv_objdump=${program_prefix}objdump$host_exeext
12439 else
12440         gcc_cv_objdump=`echo objdump | \
12441                 sed "${program_transform_name}"`$host_exeext
12442 fi
12443 case $in_tree_objdump in
12444   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12445 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12446   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12447 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12448 esac
12449
12450 # Figure out what assembler alignment features are present.
12451 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
12452 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
12453 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
12454   echo $ECHO_N "(cached) $ECHO_C" >&6
12455 else
12456   gcc_cv_as_balign_and_p2align=no
12457     if test $in_tree_gas = yes; then
12458     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
12459   then gcc_cv_as_balign_and_p2align=yes
12460 fi
12461   elif test x$gcc_cv_as != x; then
12462     echo '.balign 4
12463 .p2align 2' > conftest.s
12464     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
12465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466   (eval $ac_try) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; }
12470     then
12471         gcc_cv_as_balign_and_p2align=yes
12472     else
12473       echo "configure: failed program was" >&5
12474       cat conftest.s >&5
12475     fi
12476     rm -f conftest.o conftest.s
12477   fi
12478 fi
12479 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
12480 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
12481 if test $gcc_cv_as_balign_and_p2align = yes; then
12482
12483 cat >>confdefs.h <<\_ACEOF
12484 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
12485 _ACEOF
12486
12487 fi
12488
12489 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
12490 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
12491 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
12492   echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494   gcc_cv_as_max_skip_p2align=no
12495     if test $in_tree_gas = yes; then
12496     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
12497   then gcc_cv_as_max_skip_p2align=yes
12498 fi
12499   elif test x$gcc_cv_as != x; then
12500     echo '.p2align 4,,7' > conftest.s
12501     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
12502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503   (eval $ac_try) 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; }
12507     then
12508         gcc_cv_as_max_skip_p2align=yes
12509     else
12510       echo "configure: failed program was" >&5
12511       cat conftest.s >&5
12512     fi
12513     rm -f conftest.o conftest.s
12514   fi
12515 fi
12516 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
12517 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
12518 if test $gcc_cv_as_max_skip_p2align = yes; then
12519
12520 cat >>confdefs.h <<\_ACEOF
12521 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
12522 _ACEOF
12523
12524 fi
12525
12526 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
12527 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
12528 if test "${gcc_cv_as_subsection_m1+set}" = set; then
12529   echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531   gcc_cv_as_subsection_m1=no
12532     if test $in_tree_gas = yes; then
12533     if test $in_tree_gas_is_elf = yes \
12534   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
12535   then gcc_cv_as_subsection_m1=yes
12536 fi
12537   elif test x$gcc_cv_as != x; then
12538     echo 'conftest_label1: .word 0
12539 .subsection -1
12540 conftest_label2: .word 0
12541 .previous' > conftest.s
12542     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
12543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544   (eval $ac_try) 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); }; }
12548     then
12549         if test x$gcc_cv_nm != x; then
12550     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
12551     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
12552     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
12553     then :
12554     else gcc_cv_as_subsection_m1=yes
12555     fi
12556     rm -f conftest.nm1 conftest.nm2
12557   fi
12558     else
12559       echo "configure: failed program was" >&5
12560       cat conftest.s >&5
12561     fi
12562     rm -f conftest.o conftest.s
12563   fi
12564 fi
12565 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
12566 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
12567 if test $gcc_cv_as_subsection_m1 = yes; then
12568
12569 cat >>confdefs.h <<\_ACEOF
12570 #define HAVE_GAS_SUBSECTION_ORDERING 1
12571 _ACEOF
12572
12573 fi
12574
12575 echo "$as_me:$LINENO: checking assembler for .weak" >&5
12576 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
12577 if test "${gcc_cv_as_weak+set}" = set; then
12578   echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580   gcc_cv_as_weak=no
12581     if test $in_tree_gas = yes; then
12582     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
12583   then gcc_cv_as_weak=yes
12584 fi
12585   elif test x$gcc_cv_as != x; then
12586     echo '      .weak foobar' > conftest.s
12587     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
12588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589   (eval $ac_try) 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; }
12593     then
12594         gcc_cv_as_weak=yes
12595     else
12596       echo "configure: failed program was" >&5
12597       cat conftest.s >&5
12598     fi
12599     rm -f conftest.o conftest.s
12600   fi
12601 fi
12602 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
12603 echo "${ECHO_T}$gcc_cv_as_weak" >&6
12604 if test $gcc_cv_as_weak = yes; then
12605
12606 cat >>confdefs.h <<\_ACEOF
12607 #define HAVE_GAS_WEAK 1
12608 _ACEOF
12609
12610 fi
12611
12612 # .hidden needs to be supported in both the assembler and the linker,
12613 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
12614 # This is irritatingly difficult to feature test for; we have to check the
12615 # date string after the version number.  If we've got an in-tree
12616 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
12617 # to be safe.
12618 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
12619 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
12620 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
12621 if test "${gcc_cv_as_hidden+set}" = set; then
12622   echo $ECHO_N "(cached) $ECHO_C" >&6
12623 else
12624   gcc_cv_as_hidden=no
12625     if test $in_tree_gas = yes; then
12626     if test $in_tree_gas_is_elf = yes \
12627   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
12628   then gcc_cv_as_hidden=yes
12629 fi
12630   elif test x$gcc_cv_as != x; then
12631     echo '      .hidden foobar
12632 foobar:' > conftest.s
12633     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
12634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635   (eval $ac_try) 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); }; }
12639     then
12640         gcc_cv_as_hidden=yes
12641     else
12642       echo "configure: failed program was" >&5
12643       cat conftest.s >&5
12644     fi
12645     rm -f conftest.o conftest.s
12646   fi
12647 fi
12648 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
12649 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
12650
12651
12652 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
12653 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
12654 if test "${gcc_cv_ld_hidden+set}" = set; then
12655   echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657   if test $in_tree_ld = yes ; then
12658   gcc_cv_ld_hidden=no
12659   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 \
12660      && test $in_tree_ld_is_elf = yes; then
12661      gcc_cv_ld_hidden=yes
12662   fi
12663 else
12664   gcc_cv_ld_hidden=yes
12665   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
12666   if echo "$ld_ver" | grep GNU > /dev/null; then
12667     ld_vers=`echo $ld_ver | sed -n \
12668         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
12669         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
12670         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
12671         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
12672         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
12673         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
12674     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'`
12675     if test 0"$ld_date" -lt 20020404; then
12676       if test -n "$ld_date"; then
12677         # If there was date string, but was earlier than 2002-04-04, fail
12678         gcc_cv_ld_hidden=no
12679       elif test -z "$ld_vers"; then
12680         # If there was no date string nor ld version number, something is wrong
12681         gcc_cv_ld_hidden=no
12682       else
12683         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
12684         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
12685         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
12686         test -z "$ld_vers_patch" && ld_vers_patch=0
12687         if test "$ld_vers_major" -lt 2; then
12688           gcc_cv_ld_hidden=no
12689         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
12690           gcc_cv_ld_hidden="no"
12691         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
12692           gcc_cv_ld_hidden=no
12693         fi
12694       fi
12695     fi
12696   else
12697     case "${target}" in
12698       hppa64*-*-hpux* | ia64*-*-hpux*)
12699         gcc_cv_ld_hidden=yes
12700         ;;
12701       *)
12702         gcc_cv_ld_hidden=no
12703         ;;
12704     esac
12705   fi
12706 fi
12707 fi
12708 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
12709 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
12710 libgcc_visibility=no
12711
12712 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
12713   libgcc_visibility=yes
12714
12715 cat >>confdefs.h <<\_ACEOF
12716 #define HAVE_GAS_HIDDEN 1
12717 _ACEOF
12718
12719 fi
12720
12721 # Check if we have .[us]leb128, and support symbol arithmetic with it.
12722 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
12723 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
12724 if test "${gcc_cv_as_leb128+set}" = set; then
12725   echo $ECHO_N "(cached) $ECHO_C" >&6
12726 else
12727   gcc_cv_as_leb128=no
12728     if test $in_tree_gas = yes; then
12729     if test $in_tree_gas_is_elf = yes \
12730   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
12731   then gcc_cv_as_leb128=yes
12732 fi
12733   elif test x$gcc_cv_as != x; then
12734     echo '      .data
12735         .uleb128 L2 - L1
12736 L1:
12737         .uleb128 1280
12738         .sleb128 -1010
12739 L2:' > conftest.s
12740     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
12741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742   (eval $ac_try) 2>&5
12743   ac_status=$?
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); }; }
12746     then
12747         # GAS versions before 2.11 do not support uleb128,
12748   # despite appearing to.
12749   # ??? There exists an elf-specific test that will crash
12750   # the assembler.  Perhaps it's better to figure out whether
12751   # arbitrary sections are supported and try the test.
12752   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
12753   if echo "$as_ver" | grep GNU > /dev/null; then
12754     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
12755     as_major=`echo $as_ver | sed 's/\..*//'`
12756     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
12757     if test $as_major -eq 2 && test $as_minor -lt 11
12758     then :
12759     else gcc_cv_as_leb128=yes
12760     fi
12761   fi
12762     else
12763       echo "configure: failed program was" >&5
12764       cat conftest.s >&5
12765     fi
12766     rm -f conftest.o conftest.s
12767   fi
12768 fi
12769 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
12770 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
12771 if test $gcc_cv_as_leb128 = yes; then
12772
12773 cat >>confdefs.h <<\_ACEOF
12774 #define HAVE_AS_LEB128 1
12775 _ACEOF
12776
12777 fi
12778
12779 # GAS versions up to and including 2.11.0 may mis-optimize
12780 # .eh_frame data.
12781 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
12782 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
12783 if test "${gcc_cv_as_eh_frame+set}" = set; then
12784   echo $ECHO_N "(cached) $ECHO_C" >&6
12785 else
12786   gcc_cv_as_eh_frame=no
12787     if test $in_tree_gas = yes; then
12788     if test $in_tree_gas_is_elf = yes \
12789   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
12790   then gcc_cv_as_eh_frame=yes
12791 fi
12792   elif test x$gcc_cv_as != x; then
12793     echo '      .text
12794 .LFB1:
12795         .4byte  0
12796 .L1:
12797         .4byte  0
12798 .LFE1:
12799         .section        .eh_frame,"aw",@progbits
12800 __FRAME_BEGIN__:
12801         .4byte  .LECIE1-.LSCIE1
12802 .LSCIE1:
12803         .4byte  0x0
12804         .byte   0x1
12805         .ascii "z\0"
12806         .byte   0x1
12807         .byte   0x78
12808         .byte   0x1a
12809         .byte   0x0
12810         .byte   0x4
12811         .4byte  1
12812         .p2align 1
12813 .LECIE1:
12814 .LSFDE1:
12815         .4byte  .LEFDE1-.LASFDE1
12816 .LASFDE1:
12817         .4byte  .LASFDE1-__FRAME_BEGIN__
12818         .4byte  .LFB1
12819         .4byte  .LFE1-.LFB1
12820         .byte   0x4
12821         .4byte  .LFE1-.LFB1
12822         .byte   0x4
12823         .4byte  .L1-.LFB1
12824 .LEFDE1:' > conftest.s
12825     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
12826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827   (eval $ac_try) 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; }
12831     then
12832           cat > conftest.lit <<EOF
12833  0000 10000000 00000000 017a0001 781a0004  .........z..x...
12834  0010 01000000 12000000 18000000 00000000  ................
12835  0020 08000000 04080000 0044               .........D      
12836 EOF
12837 cat > conftest.big <<EOF
12838  0000 00000010 00000000 017a0001 781a0004  .........z..x...
12839  0010 00000001 00000012 00000018 00000000  ................
12840  0020 00000008 04000000 0844               .........D      
12841 EOF
12842   # If the assembler didn't choke, and we can objdump,
12843   # and we got the correct data, then succeed.
12844   if test x$gcc_cv_objdump != x \
12845   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
12846      | tail -3 > conftest.got \
12847   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
12848     || cmp conftest.big conftest.got > /dev/null 2>&1; }
12849   then
12850     gcc_cv_as_eh_frame=yes
12851   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
12852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853   (eval $ac_try) 2>&5
12854   ac_status=$?
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); }; }; then
12857     gcc_cv_as_eh_frame=buggy
12858   else
12859     # Uh oh, what do we do now?
12860     gcc_cv_as_eh_frame=no
12861   fi
12862     else
12863       echo "configure: failed program was" >&5
12864       cat conftest.s >&5
12865     fi
12866     rm -f conftest.o conftest.s
12867   fi
12868 fi
12869 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
12870 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
12871
12872
12873 if test $gcc_cv_as_eh_frame = buggy; then
12874
12875 cat >>confdefs.h <<\_ACEOF
12876 #define USE_AS_TRADITIONAL_FORMAT 1
12877 _ACEOF
12878
12879 fi
12880
12881 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
12882 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
12883 if test "${gcc_cv_as_shf_merge+set}" = set; then
12884   echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886   gcc_cv_as_shf_merge=no
12887     if test $in_tree_gas = yes; then
12888     if test $in_tree_gas_is_elf = yes \
12889   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
12890   then gcc_cv_as_shf_merge=yes
12891 fi
12892   elif test x$gcc_cv_as != x; then
12893     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
12894     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
12895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896   (eval $ac_try) 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); }; }
12900     then
12901         gcc_cv_as_shf_merge=yes
12902     else
12903       echo "configure: failed program was" >&5
12904       cat conftest.s >&5
12905     fi
12906     rm -f conftest.o conftest.s
12907   fi
12908 fi
12909 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
12910 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
12911
12912 if test $gcc_cv_as_shf_merge = no; then
12913   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
12914 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
12915 if test "${gcc_cv_as_shf_merge+set}" = set; then
12916   echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918   gcc_cv_as_shf_merge=no
12919     if test $in_tree_gas = yes; then
12920     if test $in_tree_gas_is_elf = yes \
12921   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
12922   then gcc_cv_as_shf_merge=yes
12923 fi
12924   elif test x$gcc_cv_as != x; then
12925     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
12926     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
12927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928   (eval $ac_try) 2>&5
12929   ac_status=$?
12930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931   (exit $ac_status); }; }
12932     then
12933         gcc_cv_as_shf_merge=yes
12934     else
12935       echo "configure: failed program was" >&5
12936       cat conftest.s >&5
12937     fi
12938     rm -f conftest.o conftest.s
12939   fi
12940 fi
12941 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
12942 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
12943
12944 fi
12945
12946 cat >>confdefs.h <<_ACEOF
12947 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
12948 _ACEOF
12949
12950
12951 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
12952 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
12953 if test "${gcc_cv_as_comdat_group+set}" = set; then
12954   echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956   gcc_cv_as_comdat_group=no
12957     if test $in_tree_gas = yes; then
12958     if test $in_tree_gas_is_elf = yes \
12959   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
12960   then gcc_cv_as_comdat_group=yes
12961 fi
12962   elif test x$gcc_cv_as != x; then
12963     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
12964     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
12965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966   (eval $ac_try) 2>&5
12967   ac_status=$?
12968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969   (exit $ac_status); }; }
12970     then
12971         gcc_cv_as_comdat_group=yes
12972     else
12973       echo "configure: failed program was" >&5
12974       cat conftest.s >&5
12975     fi
12976     rm -f conftest.o conftest.s
12977   fi
12978 fi
12979 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
12980 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
12981
12982 if test $gcc_cv_as_comdat_group = yes; then
12983   gcc_cv_as_comdat_group_percent=no
12984 else
12985  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
12986 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
12987 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
12988   echo $ECHO_N "(cached) $ECHO_C" >&6
12989 else
12990   gcc_cv_as_comdat_group_percent=no
12991     if test $in_tree_gas = yes; then
12992     if test $in_tree_gas_is_elf = yes \
12993   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
12994   then gcc_cv_as_comdat_group_percent=yes
12995 fi
12996   elif test x$gcc_cv_as != x; then
12997     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
12998     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
12999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000   (eval $ac_try) 2>&5
13001   ac_status=$?
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); }; }
13004     then
13005         gcc_cv_as_comdat_group_percent=yes
13006     else
13007       echo "configure: failed program was" >&5
13008       cat conftest.s >&5
13009     fi
13010     rm -f conftest.o conftest.s
13011   fi
13012 fi
13013 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13014 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13015
13016 fi
13017
13018 cat >>confdefs.h <<_ACEOF
13019 #define HAVE_GAS_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
13020 _ACEOF
13021
13022
13023 # Thread-local storage - the check is heavily parametrized.
13024 conftest_s=
13025 tls_first_major=
13026 tls_first_minor=
13027 tls_as_opt=
13028 case "$target" in
13029   alpha*-*-*)
13030     conftest_s='
13031         .section ".tdata","awT",@progbits
13032 foo:    .long   25
13033         .text
13034         ldq     $27,__tls_get_addr($29)         !literal!1
13035         lda     $16,foo($29)                    !tlsgd!1
13036         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
13037         ldq     $27,__tls_get_addr($29)         !literal!2
13038         lda     $16,foo($29)                    !tlsldm!2
13039         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
13040         ldq     $1,foo($29)                     !gotdtprel
13041         ldah    $2,foo($29)                     !dtprelhi
13042         lda     $3,foo($2)                      !dtprello
13043         lda     $4,foo($29)                     !dtprel
13044         ldq     $1,foo($29)                     !gottprel
13045         ldah    $2,foo($29)                     !tprelhi
13046         lda     $3,foo($2)                      !tprello
13047         lda     $4,foo($29)                     !tprel'
13048         tls_first_major=2
13049         tls_first_minor=13
13050         tls_as_opt=--fatal-warnings
13051         ;;
13052   i[34567]86-*-*)
13053     conftest_s='
13054         .section ".tdata","awT",@progbits
13055 foo:    .long   25
13056         .text
13057         movl    %gs:0, %eax
13058         leal    foo@TLSGD(,%ebx,1), %eax
13059         leal    foo@TLSLDM(%ebx), %eax
13060         leal    foo@DTPOFF(%eax), %edx
13061         movl    foo@GOTTPOFF(%ebx), %eax
13062         subl    foo@GOTTPOFF(%ebx), %eax
13063         addl    foo@GOTNTPOFF(%ebx), %eax
13064         movl    foo@INDNTPOFF, %eax
13065         movl    $foo@TPOFF, %eax
13066         subl    $foo@TPOFF, %eax
13067         leal    foo@NTPOFF(%ecx), %eax'
13068         tls_first_major=2
13069         tls_first_minor=14
13070         tls_as_opt=--fatal-warnings
13071         ;;
13072   x86_64-*-*)
13073     conftest_s='
13074         .section ".tdata","awT",@progbits
13075 foo:    .long   25
13076         .text
13077         movq    %fs:0, %rax
13078         leaq    foo@TLSGD(%rip), %rdi
13079         leaq    foo@TLSLD(%rip), %rdi
13080         leaq    foo@DTPOFF(%rax), %rdx
13081         movq    foo@GOTTPOFF(%rip), %rax
13082         movq    $foo@TPOFF, %rax'
13083         tls_first_major=2
13084         tls_first_minor=14
13085         tls_as_opt=--fatal-warnings
13086         ;;
13087   ia64-*-*)
13088     conftest_s='
13089         .section ".tdata","awT",@progbits
13090 foo:    data8   25
13091         .text
13092         addl    r16 = @ltoff(@dtpmod(foo#)), gp
13093         addl    r17 = @ltoff(@dtprel(foo#)), gp
13094         addl    r18 = @ltoff(@tprel(foo#)), gp
13095         addl    r19 = @dtprel(foo#), gp
13096         adds    r21 = @dtprel(foo#), r13
13097         movl    r23 = @dtprel(foo#)
13098         addl    r20 = @tprel(foo#), gp
13099         adds    r22 = @tprel(foo#), r13
13100         movl    r24 = @tprel(foo#)'
13101         tls_first_major=2
13102         tls_first_minor=13
13103         tls_as_opt=--fatal-warnings
13104         ;;
13105   powerpc-*-*)
13106     conftest_s='
13107         .section ".tdata","awT",@progbits
13108         .align 2
13109 ld0:    .space 4
13110 ld1:    .space 4
13111 x1:     .space 4
13112 x2:     .space 4
13113 x3:     .space 4
13114         .text
13115         addi 3,31,ld0@got@tlsgd
13116         bl __tls_get_addr
13117         addi 3,31,x1@got@tlsld
13118         bl __tls_get_addr
13119         addi 9,3,x1@dtprel
13120         addis 9,3,x2@dtprel@ha
13121         addi 9,9,x2@dtprel@l
13122         lwz 9,x3@got@tprel(31)
13123         add 9,9,x@tls
13124         addi 9,2,x1@tprel
13125         addis 9,2,x2@tprel@ha
13126         addi 9,9,x2@tprel@l'
13127         tls_first_major=2
13128         tls_first_minor=14
13129         tls_as_opt="-a32 --fatal-warnings"
13130         ;;
13131   powerpc64-*-*)
13132     conftest_s='
13133         .section ".tdata","awT",@progbits
13134         .align 3
13135 ld0:    .space 8
13136 ld1:    .space 8
13137 x1:     .space 8
13138 x2:     .space 8
13139 x3:     .space 8
13140         .text
13141         addi 3,2,ld0@got@tlsgd
13142         bl .__tls_get_addr
13143         nop
13144         addi 3,2,ld1@toc
13145         bl .__tls_get_addr
13146         nop
13147         addi 3,2,x1@got@tlsld
13148         bl .__tls_get_addr
13149         nop
13150         addi 9,3,x1@dtprel
13151         bl .__tls_get_addr
13152         nop
13153         addis 9,3,x2@dtprel@ha
13154         addi 9,9,x2@dtprel@l
13155         bl .__tls_get_addr
13156         nop
13157         ld 9,x3@got@dtprel(2)
13158         add 9,9,3
13159         bl .__tls_get_addr
13160         nop'
13161         tls_first_major=2
13162         tls_first_minor=14
13163         tls_as_opt="-a64 --fatal-warnings"
13164         ;;
13165   s390-*-*)
13166     conftest_s='
13167         .section ".tdata","awT",@progbits
13168 foo:    .long   25
13169         .text
13170         .long   foo@TLSGD
13171         .long   foo@TLSLDM
13172         .long   foo@DTPOFF
13173         .long   foo@NTPOFF
13174         .long   foo@GOTNTPOFF
13175         .long   foo@INDNTPOFF
13176         l       %r1,foo@GOTNTPOFF(%r12)
13177         l       %r1,0(%r1):tls_load:foo
13178         bas     %r14,0(%r1,%r13):tls_gdcall:foo
13179         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
13180         tls_first_major=2
13181         tls_first_minor=14
13182         tls_as_opt="-m31 --fatal-warnings"
13183         ;;
13184   s390x-*-*)
13185     conftest_s='
13186         .section ".tdata","awT",@progbits
13187 foo:    .long   25
13188         .text
13189         .quad   foo@TLSGD
13190         .quad   foo@TLSLDM
13191         .quad   foo@DTPOFF
13192         .quad   foo@NTPOFF
13193         .quad   foo@GOTNTPOFF
13194         lg      %r1,foo@GOTNTPOFF(%r12)
13195         larl    %r1,foo@INDNTPOFF
13196         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
13197         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13198         tls_first_major=2
13199         tls_first_minor=14
13200         tls_as_opt="-m64 -Aesame --fatal-warnings"
13201         ;;
13202   sh-*-* | sh[34]-*-*)
13203     conftest_s='
13204         .section ".tdata","awT",@progbits
13205 foo:    .long   25
13206         .text
13207         .long   foo@TLSGD
13208         .long   foo@TLSLDM
13209         .long   foo@DTPOFF
13210         .long   foo@GOTTPOFF
13211         .long   foo@TPOFF'
13212         tls_first_major=2
13213         tls_first_minor=13
13214         tls_as_opt=--fatal-warnings
13215         ;;
13216   sparc*-*-*)
13217     case "$target" in
13218       sparc*-sun-solaris2.*)
13219         on_solaris=yes
13220         ;;
13221       *)
13222         on_solaris=no
13223         ;;
13224     esac
13225     if test x$on_solaris = xyes && test x$gas_flag = xno; then
13226       conftest_s='
13227         .section ".tdata",#alloc,#write,#tls
13228 foo:    .long   25
13229         .text
13230         sethi   %tgd_hi22(foo), %o0
13231         add     %o0, %tgd_lo10(foo), %o1
13232         add     %l7, %o1, %o0, %tgd_add(foo)
13233         call    __tls_get_addr, %tgd_call(foo)
13234         sethi   %tldm_hi22(foo), %l1
13235         add     %l1, %tldm_lo10(foo), %l2
13236         add     %l7, %l2, %o0, %tldm_add(foo)
13237         call    __tls_get_addr, %tldm_call(foo)
13238         sethi   %tldo_hix22(foo), %l3
13239         xor     %l3, %tldo_lox10(foo), %l4
13240         add     %o0, %l4, %l5, %tldo_add(foo)
13241         sethi   %tie_hi22(foo), %o3
13242         add     %o3, %tie_lo10(foo), %o3
13243         ld      [%l7 + %o3], %o2, %tie_ld(foo)
13244         add     %g7, %o2, %o4, %tie_add(foo)
13245         sethi   %tle_hix22(foo), %l1
13246         xor     %l1, %tle_lox10(foo), %o5
13247         ld      [%g7 + %o5], %o1'
13248         tls_first_major=0
13249         tls_first_minor=0
13250     else
13251       conftest_s='
13252         .section ".tdata","awT",@progbits
13253 foo:    .long   25
13254         .text
13255         sethi   %tgd_hi22(foo), %o0
13256         add     %o0, %tgd_lo10(foo), %o1
13257         add     %l7, %o1, %o0, %tgd_add(foo)
13258         call    __tls_get_addr, %tgd_call(foo)
13259         sethi   %tldm_hi22(foo), %l1
13260         add     %l1, %tldm_lo10(foo), %l2
13261         add     %l7, %l2, %o0, %tldm_add(foo)
13262         call    __tls_get_addr, %tldm_call(foo)
13263         sethi   %tldo_hix22(foo), %l3
13264         xor     %l3, %tldo_lox10(foo), %l4
13265         add     %o0, %l4, %l5, %tldo_add(foo)
13266         sethi   %tie_hi22(foo), %o3
13267         add     %o3, %tie_lo10(foo), %o3
13268         ld      [%l7 + %o3], %o2, %tie_ld(foo)
13269         add     %g7, %o2, %o4, %tie_add(foo)
13270         sethi   %tle_hix22(foo), %l1
13271         xor     %l1, %tle_lox10(foo), %o5
13272         ld      [%g7 + %o5], %o1'
13273         tls_first_major=2
13274         tls_first_minor=14
13275         tls_as_opt="-32 --fatal-warnings"
13276       fi
13277         ;;
13278 esac
13279 if test -z "$tls_first_major"; then
13280   : # If we don't have a check, assume no support.
13281 else
13282   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13283 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13284 if test "${gcc_cv_as_tls+set}" = set; then
13285   echo $ECHO_N "(cached) $ECHO_C" >&6
13286 else
13287   gcc_cv_as_tls=no
13288     if test $in_tree_gas = yes; then
13289     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13290   then gcc_cv_as_tls=yes
13291 fi
13292   elif test x$gcc_cv_as != x; then
13293     echo "$conftest_s" > conftest.s
13294     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296   (eval $ac_try) 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); }; }
13300     then
13301         gcc_cv_as_tls=yes
13302     else
13303       echo "configure: failed program was" >&5
13304       cat conftest.s >&5
13305     fi
13306     rm -f conftest.o conftest.s
13307   fi
13308 fi
13309 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13310 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13311 if test $gcc_cv_as_tls = yes; then
13312
13313 cat >>confdefs.h <<\_ACEOF
13314 #define HAVE_AS_TLS 1
13315 _ACEOF
13316
13317 fi
13318 fi
13319
13320 # Target-specific assembler checks.
13321
13322 if test x"$demangler_in_ld" = xyes; then
13323   echo "$as_me:$LINENO: checking linker --demangle support" >&5
13324 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13325   gcc_cv_ld_demangle=no
13326   if test $in_tree_ld = yes; then
13327     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
13328       gcc_cv_ld_demangle=yes
13329     fi
13330   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
13331     # Check if the GNU linker supports --demangle option
13332     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
13333       gcc_cv_ld_demangle=yes
13334     fi
13335   fi
13336   if test x"$gcc_cv_ld_demangle" = xyes; then
13337
13338 cat >>confdefs.h <<\_ACEOF
13339 #define HAVE_LD_DEMANGLE 1
13340 _ACEOF
13341
13342   fi
13343   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13344 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
13345 fi
13346
13347 case "$target" in
13348   # All TARGET_ABI_OSF targets.
13349   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
13350     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13351 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13352 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
13353   echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355   gcc_cv_as_alpha_explicit_relocs=no
13356     if test $in_tree_gas = yes; then
13357     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13358   then gcc_cv_as_alpha_explicit_relocs=yes
13359 fi
13360   elif test x$gcc_cv_as != x; then
13361     echo '      .set nomacro
13362         .text
13363         extbl   $3, $2, $3      !lituse_bytoff!1
13364         ldq     $2, a($29)      !literal!1
13365         ldq     $4, b($29)      !literal!2
13366         ldq_u   $3, 0($2)       !lituse_base!1
13367         ldq     $27, f($29)     !literal!5
13368         jsr     $26, ($27), f   !lituse_jsr!5
13369         ldah    $29, 0($26)     !gpdisp!3
13370         lda     $0, c($29)      !gprel
13371         ldah    $1, d($29)      !gprelhigh
13372         lda     $1, d($1)       !gprellow
13373         lda     $29, 0($29)     !gpdisp!3' > conftest.s
13374     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376   (eval $ac_try) 2>&5
13377   ac_status=$?
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); }; }
13380     then
13381         gcc_cv_as_alpha_explicit_relocs=yes
13382     else
13383       echo "configure: failed program was" >&5
13384       cat conftest.s >&5
13385     fi
13386     rm -f conftest.o conftest.s
13387   fi
13388 fi
13389 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
13390 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
13391 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
13392
13393 cat >>confdefs.h <<\_ACEOF
13394 #define HAVE_AS_EXPLICIT_RELOCS 1
13395 _ACEOF
13396
13397 fi
13398     ;;
13399
13400   cris-*-*)
13401     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
13402 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
13403 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
13404   echo $ECHO_N "(cached) $ECHO_C" >&6
13405 else
13406   gcc_cv_as_cris_no_mul_bug=no
13407     if test $in_tree_gas = yes; then
13408     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13409   then gcc_cv_as_cris_no_mul_bug=yes
13410 fi
13411   elif test x$gcc_cv_as != x; then
13412     echo '.text' > conftest.s
13413     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
13414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415   (eval $ac_try) 2>&5
13416   ac_status=$?
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); }; }
13419     then
13420         gcc_cv_as_cris_no_mul_bug=yes
13421     else
13422       echo "configure: failed program was" >&5
13423       cat conftest.s >&5
13424     fi
13425     rm -f conftest.o conftest.s
13426   fi
13427 fi
13428 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
13429 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
13430 if test $gcc_cv_as_cris_no_mul_bug = yes; then
13431
13432 cat >>confdefs.h <<\_ACEOF
13433 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
13434 _ACEOF
13435
13436 fi
13437     ;;
13438
13439   sparc*-*-*)
13440     echo "$as_me:$LINENO: checking assembler for .register" >&5
13441 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
13442 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
13443   echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445   gcc_cv_as_sparc_register_op=no
13446   if test x$gcc_cv_as != x; then
13447     echo '.register %g2, #scratch' > conftest.s
13448     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; }
13454     then
13455         gcc_cv_as_sparc_register_op=yes
13456     else
13457       echo "configure: failed program was" >&5
13458       cat conftest.s >&5
13459     fi
13460     rm -f conftest.o conftest.s
13461   fi
13462 fi
13463 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
13464 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
13465 if test $gcc_cv_as_sparc_register_op = yes; then
13466
13467 cat >>confdefs.h <<\_ACEOF
13468 #define HAVE_AS_REGISTER_PSEUDO_OP 1
13469 _ACEOF
13470
13471 fi
13472
13473     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
13474 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
13475 if test "${gcc_cv_as_sparc_relax+set}" = set; then
13476   echo $ECHO_N "(cached) $ECHO_C" >&6
13477 else
13478   gcc_cv_as_sparc_relax=no
13479   if test x$gcc_cv_as != x; then
13480     echo '.text' > conftest.s
13481     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
13482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483   (eval $ac_try) 2>&5
13484   ac_status=$?
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); }; }
13487     then
13488         gcc_cv_as_sparc_relax=yes
13489     else
13490       echo "configure: failed program was" >&5
13491       cat conftest.s >&5
13492     fi
13493     rm -f conftest.o conftest.s
13494   fi
13495 fi
13496 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
13497 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
13498 if test $gcc_cv_as_sparc_relax = yes; then
13499
13500 cat >>confdefs.h <<\_ACEOF
13501 #define HAVE_AS_RELAX_OPTION 1
13502 _ACEOF
13503
13504 fi
13505
13506     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
13507 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
13508 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
13509   echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511   gcc_cv_as_sparc_ua_pcrel=no
13512   if test x$gcc_cv_as != x; then
13513     echo '.text
13514 foo:
13515         nop
13516 .data
13517 .align 4
13518 .byte 0
13519 .uaword %r_disp32(foo)' > conftest.s
13520     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
13521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522   (eval $ac_try) 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); }; }
13526     then
13527         if test x$gcc_cv_ld != x \
13528        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
13529          gcc_cv_as_sparc_ua_pcrel=yes
13530        fi
13531        rm -f conftest
13532     else
13533       echo "configure: failed program was" >&5
13534       cat conftest.s >&5
13535     fi
13536     rm -f conftest.o conftest.s
13537   fi
13538 fi
13539 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
13540 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
13541 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
13542
13543 cat >>confdefs.h <<\_ACEOF
13544 #define HAVE_AS_SPARC_UA_PCREL 1
13545 _ACEOF
13546
13547
13548       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
13549 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
13550 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
13551   echo $ECHO_N "(cached) $ECHO_C" >&6
13552 else
13553   gcc_cv_as_sparc_ua_pcrel_hidden=no
13554   if test x$gcc_cv_as != x; then
13555     echo '.data
13556 .align 4
13557 .byte 0x31
13558 .uaword %r_disp32(foo)
13559 .byte 0x32, 0x33, 0x34
13560 .global foo
13561 .hidden foo
13562 foo:
13563 .skip 4' > conftest.s
13564     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
13565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566   (eval $ac_try) 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); }; }
13570     then
13571         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
13572          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
13573          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
13574             | grep ' 31000000 07323334' > /dev/null 2>&1; then
13575             if $gcc_cv_objdump -R conftest 2> /dev/null \
13576                | grep 'DISP32' > /dev/null 2>&1; then
13577                 :
13578             else
13579                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
13580             fi
13581          fi
13582          rm -f conftest
13583     else
13584       echo "configure: failed program was" >&5
13585       cat conftest.s >&5
13586     fi
13587     rm -f conftest.o conftest.s
13588   fi
13589 fi
13590 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
13591 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
13592 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
13593
13594 cat >>confdefs.h <<\_ACEOF
13595 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
13596 _ACEOF
13597
13598 fi
13599
13600 fi # unaligned pcrel relocs
13601
13602     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
13603 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
13604 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
13605   echo $ECHO_N "(cached) $ECHO_C" >&6
13606 else
13607   gcc_cv_as_sparc_offsetable_lo10=no
13608   if test x$gcc_cv_as != x; then
13609     echo '.text
13610         or %g1, %lo(ab) + 12, %g1
13611         or %g1, %lo(ab + 12), %g1' > conftest.s
13612     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
13613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614   (eval $ac_try) 2>&5
13615   ac_status=$?
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); }; }
13618     then
13619         if test x$gcc_cv_objdump != x \
13620        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
13621           | grep ' 82106000 82106000' > /dev/null 2>&1; then
13622          gcc_cv_as_offsetable_lo10=yes
13623        fi
13624     else
13625       echo "configure: failed program was" >&5
13626       cat conftest.s >&5
13627     fi
13628     rm -f conftest.o conftest.s
13629   fi
13630 fi
13631 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
13632 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
13633 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
13634
13635 cat >>confdefs.h <<\_ACEOF
13636 #define HAVE_AS_OFFSETABLE_LO10 1
13637 _ACEOF
13638
13639 fi
13640     ;;
13641
13642   i[34567]86-*-* | x86_64-*-*)
13643     case $target_os in
13644       cygwin* | pe | mingw32*)
13645         # Used for DWARF 2 in PE
13646         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
13647 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
13648 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
13649   echo $ECHO_N "(cached) $ECHO_C" >&6
13650 else
13651   gcc_cv_as_ix86_pe_secrel32=no
13652     if test $in_tree_gas = yes; then
13653     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13654   then gcc_cv_as_ix86_pe_secrel32=yes
13655 fi
13656   elif test x$gcc_cv_as != x; then
13657     echo '.text
13658 foo:    nop
13659 .data
13660         .secrel32 foo' > conftest.s
13661     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663   (eval $ac_try) 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); }; }
13667     then
13668         if test x$gcc_cv_ld != x \
13669            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
13670              gcc_cv_as_ix86_pe_secrel32=yes
13671            fi
13672            rm -f conftest
13673     else
13674       echo "configure: failed program was" >&5
13675       cat conftest.s >&5
13676     fi
13677     rm -f conftest.o conftest.s
13678   fi
13679 fi
13680 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
13681 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
13682 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
13683
13684 cat >>confdefs.h <<\_ACEOF
13685 #define HAVE_GAS_PE_SECREL32_RELOC 1
13686 _ACEOF
13687
13688 fi
13689         ;;
13690     esac
13691
13692     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
13693 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
13694 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
13695   echo $ECHO_N "(cached) $ECHO_C" >&6
13696 else
13697   gcc_cv_as_ix86_filds_fists=no
13698     if test $in_tree_gas = yes; then
13699     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13700   then gcc_cv_as_ix86_filds_fists=yes
13701 fi
13702   elif test x$gcc_cv_as != x; then
13703     echo 'filds mem; fists mem' > conftest.s
13704     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706   (eval $ac_try) 2>&5
13707   ac_status=$?
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); }; }
13710     then
13711         gcc_cv_as_ix86_filds_fists=yes
13712     else
13713       echo "configure: failed program was" >&5
13714       cat conftest.s >&5
13715     fi
13716     rm -f conftest.o conftest.s
13717   fi
13718 fi
13719 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
13720 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
13721 if test $gcc_cv_as_ix86_filds_fists = yes; then
13722
13723 cat >>confdefs.h <<\_ACEOF
13724 #define HAVE_GAS_FILDS_FISTS 1
13725 _ACEOF
13726
13727 fi
13728
13729     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
13730 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
13731 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
13732   echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734   gcc_cv_as_ix86_cmov_sun_syntax=no
13735   if test x$gcc_cv_as != x; then
13736     echo 'cmovl.l %edx, %eax' > conftest.s
13737     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }
13743     then
13744         gcc_cv_as_ix86_cmov_sun_syntax=yes
13745     else
13746       echo "configure: failed program was" >&5
13747       cat conftest.s >&5
13748     fi
13749     rm -f conftest.o conftest.s
13750   fi
13751 fi
13752 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
13753 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
13754 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
13755
13756 cat >>confdefs.h <<\_ACEOF
13757 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
13758 _ACEOF
13759
13760 fi
13761
13762     # This one is used unconditionally by i386.[ch]; it is to be defined
13763     # to 1 if the feature is present, 0 otherwise.
13764     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
13765 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
13766 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769   gcc_cv_as_ix86_gotoff_in_data=no
13770     if test $in_tree_gas = yes; then
13771     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13772   then gcc_cv_as_ix86_gotoff_in_data=yes
13773 fi
13774   elif test x$gcc_cv_as != x; then
13775     echo '      .text
13776 .L0:
13777         nop
13778         .data
13779         .long .L0@GOTOFF' > conftest.s
13780     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782   (eval $ac_try) 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); }; }
13786     then
13787         gcc_cv_as_ix86_gotoff_in_data=yes
13788     else
13789       echo "configure: failed program was" >&5
13790       cat conftest.s >&5
13791     fi
13792     rm -f conftest.o conftest.s
13793   fi
13794 fi
13795 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
13796 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
13797
13798
13799 cat >>confdefs.h <<_ACEOF
13800 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
13801 _ACEOF
13802
13803     ;;
13804
13805   ia64*-*-*)
13806     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
13807 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
13808 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
13809   echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
13812     if test $in_tree_gas = yes; then
13813     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
13814   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
13815 fi
13816   elif test x$gcc_cv_as != x; then
13817     echo '      .text
13818         addl r15 = @ltoffx(x#), gp
13819         ;;
13820         ld8.mov r16 = [r15], x#' > conftest.s
13821     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; }
13827     then
13828         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
13829     else
13830       echo "configure: failed program was" >&5
13831       cat conftest.s >&5
13832     fi
13833     rm -f conftest.o conftest.s
13834   fi
13835 fi
13836 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
13837 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
13838 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
13839
13840 cat >>confdefs.h <<\_ACEOF
13841 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
13842 _ACEOF
13843
13844 fi
13845
13846     ;;
13847
13848   powerpc*-*-*)
13849     case $target in
13850       *-*-aix*) conftest_s='    .csect .text[PR]
13851         mfcr 3,128';;
13852       *-*-darwin*) conftest_s=' .text
13853         mfcr r3,128';;
13854       *)       conftest_s='     .text
13855         mfcr 3,128';;
13856     esac
13857
13858     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
13859 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
13860 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
13861   echo $ECHO_N "(cached) $ECHO_C" >&6
13862 else
13863   gcc_cv_as_powerpc_mfcrf=no
13864     if test $in_tree_gas = yes; then
13865     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
13866   then gcc_cv_as_powerpc_mfcrf=yes
13867 fi
13868   elif test x$gcc_cv_as != x; then
13869     echo "$conftest_s" > conftest.s
13870     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872   (eval $ac_try) 2>&5
13873   ac_status=$?
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); }; }
13876     then
13877         gcc_cv_as_powerpc_mfcrf=yes
13878     else
13879       echo "configure: failed program was" >&5
13880       cat conftest.s >&5
13881     fi
13882     rm -f conftest.o conftest.s
13883   fi
13884 fi
13885 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
13886 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
13887 if test $gcc_cv_as_powerpc_mfcrf = yes; then
13888
13889 cat >>confdefs.h <<\_ACEOF
13890 #define HAVE_AS_MFCRF 1
13891 _ACEOF
13892
13893 fi
13894     ;;
13895
13896   mips*-*-*)
13897     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13898 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13899 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
13900   echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902   gcc_cv_as_mips_explicit_relocs=no
13903     if test $in_tree_gas = yes; then
13904     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
13905   then gcc_cv_as_mips_explicit_relocs=yes
13906 fi
13907   elif test x$gcc_cv_as != x; then
13908     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
13909     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911   (eval $ac_try) 2>&5
13912   ac_status=$?
13913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914   (exit $ac_status); }; }
13915     then
13916         gcc_cv_as_mips_explicit_relocs=yes
13917     else
13918       echo "configure: failed program was" >&5
13919       cat conftest.s >&5
13920     fi
13921     rm -f conftest.o conftest.s
13922   fi
13923 fi
13924 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
13925 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
13926 if test $gcc_cv_as_mips_explicit_relocs = yes; then
13927   if test x$target_cpu_default = x
13928        then target_cpu_default=MASK_EXPLICIT_RELOCS
13929        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
13930        fi
13931 fi
13932
13933     if test x$gas_flag = xyes \
13934        || test x"$host" != x"$build" \
13935        || test ! -x "$gcc_cv_as" \
13936        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
13937       :
13938     else
13939       echo "*** This configuration requires the GNU assembler" >&2
13940       exit 1
13941     fi
13942     ;;
13943 esac
13944 # ??? Not all targets support dwarf2 debug_line, even within a version
13945 # of gas.  Moreover, we need to emit a valid instruction to trigger any
13946 # info to the output file.  So, as supported targets are added to gas 2.11,
13947 # add some instruction here to (also) show we expect this might work.
13948 # ??? Once 2.11 is released, probably need to add first known working
13949 # version to the per-target configury.
13950 case "$target" in
13951   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
13952   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
13953   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
13954     insn="nop"
13955     ;;
13956   ia64*-*-* | s390*-*-*)
13957     insn="nop 0"
13958     ;;
13959   mmix-*-*)
13960     insn="swym 0"
13961     ;;
13962 esac
13963 if test x"$insn" != x; then
13964  conftest_s="\
13965         .file 1 \"conftest.s\"
13966         .loc 1 3 0
13967         $insn"
13968  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
13969 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
13970 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
13971   echo $ECHO_N "(cached) $ECHO_C" >&6
13972 else
13973   gcc_cv_as_dwarf2_debug_line=no
13974     if test $in_tree_gas = yes; then
13975     if test $in_tree_gas_is_elf = yes \
13976   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13977   then gcc_cv_as_dwarf2_debug_line=yes
13978 fi
13979   elif test x$gcc_cv_as != x; then
13980     echo "$conftest_s" > conftest.s
13981     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983   (eval $ac_try) 2>&5
13984   ac_status=$?
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); }; }
13987     then
13988         # ??? This fails with non-gnu grep.  Maybe use objdump?
13989    if grep debug_line conftest.o > /dev/null 2>&1; then
13990      gcc_cv_as_dwarf2_debug_line=yes
13991    fi
13992     else
13993       echo "configure: failed program was" >&5
13994       cat conftest.s >&5
13995     fi
13996     rm -f conftest.o conftest.s
13997   fi
13998 fi
13999 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14000 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14001
14002
14003 # The .debug_line file table must be in the exact order that
14004 # we specified the files, since these indices are also used
14005 # by DW_AT_decl_file.  Approximate this test by testing if
14006 # the assembler bitches if the same index is assigned twice.
14007  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14008 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14009 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14010   echo $ECHO_N "(cached) $ECHO_C" >&6
14011 else
14012   gcc_cv_as_dwarf2_file_buggy=no
14013   if test x$gcc_cv_as != x; then
14014     echo '      .file 1 "foo.s"
14015         .file 1 "bar.s"' > conftest.s
14016     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018   (eval $ac_try) 2>&5
14019   ac_status=$?
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); }; }
14022     then
14023         gcc_cv_as_dwarf2_file_buggy=yes
14024     else
14025       echo "configure: failed program was" >&5
14026       cat conftest.s >&5
14027     fi
14028     rm -f conftest.o conftest.s
14029   fi
14030 fi
14031 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14032 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14033
14034
14035  if test $gcc_cv_as_dwarf2_debug_line = yes \
14036  && test $gcc_cv_as_dwarf2_file_buggy = no; then
14037
14038 cat >>confdefs.h <<\_ACEOF
14039 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14040 _ACEOF
14041
14042  fi
14043
14044  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14045 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14046 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14047   echo $ECHO_N "(cached) $ECHO_C" >&6
14048 else
14049   gcc_cv_as_gdwarf2_flag=no
14050     if test $in_tree_gas = yes; then
14051     if test $in_tree_gas_is_elf = yes \
14052   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14053   then gcc_cv_as_gdwarf2_flag=yes
14054 fi
14055   elif test x$gcc_cv_as != x; then
14056     echo "$insn" > conftest.s
14057     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059   (eval $ac_try) 2>&5
14060   ac_status=$?
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); }; }
14063     then
14064         gcc_cv_as_gdwarf2_flag=yes
14065     else
14066       echo "configure: failed program was" >&5
14067       cat conftest.s >&5
14068     fi
14069     rm -f conftest.o conftest.s
14070   fi
14071 fi
14072 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14073 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14074 if test $gcc_cv_as_gdwarf2_flag = yes; then
14075
14076 cat >>confdefs.h <<\_ACEOF
14077 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14078 _ACEOF
14079
14080 fi
14081
14082  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14083 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14084 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14085   echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087   gcc_cv_as_gstabs_flag=no
14088     if test $in_tree_gas = yes; then
14089     if test $in_tree_gas_is_elf = yes \
14090   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14091   then gcc_cv_as_gstabs_flag=yes
14092 fi
14093   elif test x$gcc_cv_as != x; then
14094     echo "$insn" > conftest.s
14095     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097   (eval $ac_try) 2>&5
14098   ac_status=$?
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); }; }
14101     then
14102         # The native Solaris 9/Intel assembler doesn't understand --gstabs
14103    # and warns about it, but still exits successfully.  So check for
14104    # this.
14105    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107   (eval $ac_try) 2>&5
14108   ac_status=$?
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); }; }
14111    then :
14112    else gcc_cv_as_gstabs_flag=yes
14113    fi
14114     else
14115       echo "configure: failed program was" >&5
14116       cat conftest.s >&5
14117     fi
14118     rm -f conftest.o conftest.s
14119   fi
14120 fi
14121 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14122 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14123 if test $gcc_cv_as_gstabs_flag = yes; then
14124
14125 cat >>confdefs.h <<\_ACEOF
14126 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14127 _ACEOF
14128
14129 fi
14130 fi
14131
14132 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14133 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14134 gcc_cv_ld_ro_rw_mix=unknown
14135 if test $in_tree_ld = yes ; then
14136   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 \
14137      && test $in_tree_ld_is_elf = yes; then
14138     gcc_cv_ld_ro_rw_mix=read-write
14139   fi
14140 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14141   echo '.section myfoosect, "a"' > conftest1.s
14142   echo '.section myfoosect, "aw"' > conftest2.s
14143   echo '.byte 1' >> conftest2.s
14144   echo '.section myfoosect, "a"' > conftest3.s
14145   echo '.byte 0' >> conftest3.s
14146   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14147      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14148      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14149      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14150         conftest2.o conftest3.o > /dev/null 2>&1; then
14151     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14152                          | sed -e '/myfoosect/!d' -e N`
14153     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14154       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14155         gcc_cv_ld_ro_rw_mix=read-only
14156       else
14157         gcc_cv_ld_ro_rw_mix=read-write
14158       fi
14159     fi
14160   fi
14161   rm -f conftest.* conftest[123].*
14162 fi
14163 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14164
14165 cat >>confdefs.h <<\_ACEOF
14166 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14167 _ACEOF
14168
14169 fi
14170 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14171 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14172
14173 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14174 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14175 gcc_cv_ld_eh_frame_hdr=no
14176 if test $in_tree_ld = yes ; then
14177   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 \
14178      && test $in_tree_ld_is_elf = yes; then
14179     gcc_cv_ld_eh_frame_hdr=yes
14180   fi
14181 elif test x$gcc_cv_ld != x; then
14182         # Check if linker supports --eh-frame-hdr option
14183         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14184                 gcc_cv_ld_eh_frame_hdr=yes
14185         fi
14186 fi
14187 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14188
14189 cat >>confdefs.h <<\_ACEOF
14190 #define HAVE_LD_EH_FRAME_HDR 1
14191 _ACEOF
14192
14193 fi
14194 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14195 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14196
14197 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14198 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14199 gcc_cv_ld_pie=no
14200 if test $in_tree_ld = yes ; then
14201   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 \
14202      && test $in_tree_ld_is_elf = yes; then
14203     gcc_cv_ld_pie=yes
14204   fi
14205 elif test x$gcc_cv_ld != x; then
14206         # Check if linker supports -pie option
14207         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14208                 gcc_cv_ld_pie=yes
14209         fi
14210 fi
14211 if test x"$gcc_cv_ld_pie" = xyes; then
14212
14213 cat >>confdefs.h <<\_ACEOF
14214 #define HAVE_LD_PIE 1
14215 _ACEOF
14216
14217 fi
14218 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14219 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14220
14221 # --------
14222 # UNSORTED
14223 # --------
14224
14225 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14226 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14227 if test "${gcc_cv_ld_as_needed+set}" = set; then
14228   echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230   gcc_cv_ld_as_needed=no
14231 if test $in_tree_ld = yes ; then
14232   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
14233      && test $in_tree_ld_is_elf = yes; then
14234     gcc_cv_ld_as_needed=yes
14235   fi
14236 elif test x$gcc_cv_ld != x; then
14237         # Check if linker supports --as-needed and --no-as-needed options
14238         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14239                 gcc_cv_ld_as_needed=yes
14240         fi
14241 fi
14242
14243 fi
14244 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14245 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14246 if test x"$gcc_cv_ld_as_needed" = xyes; then
14247
14248 cat >>confdefs.h <<\_ACEOF
14249 #define HAVE_LD_AS_NEEDED 1
14250 _ACEOF
14251
14252 fi
14253
14254 case "$target" in
14255   powerpc64*-*-linux*)
14256     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14257 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14258 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14259   echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261   gcc_cv_ld_no_dot_syms=no
14262     if test $in_tree_ld = yes ; then
14263       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
14264         gcc_cv_ld_no_dot_syms=yes
14265       fi
14266     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14267       cat > conftest1.s <<EOF
14268         .text
14269         bl .foo
14270 EOF
14271       cat > conftest2.s <<EOF
14272         .section ".opd","aw"
14273         .align 3
14274         .globl foo
14275         .type foo,@function
14276 foo:
14277         .quad .LEfoo,.TOC.@tocbase,0
14278         .text
14279 .LEfoo:
14280         blr
14281         .size foo,.-.LEfoo
14282 EOF
14283       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
14284          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
14285          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
14286         gcc_cv_ld_no_dot_syms=yes
14287       fi
14288       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14289     fi
14290
14291 fi
14292 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14293 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14294     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
14295
14296 cat >>confdefs.h <<\_ACEOF
14297 #define HAVE_LD_NO_DOT_SYMS 1
14298 _ACEOF
14299
14300     fi
14301     ;;
14302 esac
14303
14304 if test x$with_sysroot = x && test x$host = x$target \
14305    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
14306
14307 cat >>confdefs.h <<_ACEOF
14308 #define PREFIX_INCLUDE_DIR "$prefix/include"
14309 _ACEOF
14310
14311 fi
14312
14313 # Find out what GC implementation we want, or may, use.
14314
14315 # Check whether --with-gc or --without-gc was given.
14316 if test "${with_gc+set}" = set; then
14317   withval="$with_gc"
14318   case "$withval" in
14319   page | zone)
14320     GGC=ggc-$withval
14321     ;;
14322   *)
14323     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
14324 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
14325    { (exit 1); exit 1; }; }
14326     ;;
14327 esac
14328 else
14329   GGC=ggc-page
14330 fi;
14331
14332 echo "Using $GGC for garbage collection."
14333
14334 # Use the system's zlib library.
14335 zlibdir=-L../zlib
14336 zlibinc="-I\$(srcdir)/../zlib"
14337
14338 # Check whether --with-system-zlib or --without-system-zlib was given.
14339 if test "${with_system_zlib+set}" = set; then
14340   withval="$with_system_zlib"
14341   zlibdir=
14342 zlibinc=
14343
14344 fi;
14345
14346
14347
14348
14349 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14350 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14351     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14352 if test "${enable_maintainer_mode+set}" = set; then
14353   enableval="$enable_maintainer_mode"
14354   maintainer_mode=$enableval
14355 else
14356   maintainer_mode=no
14357 fi;
14358
14359 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
14360 echo "${ECHO_T}$maintainer_mode" >&6
14361
14362 if test "$maintainer_mode" = "yes"; then
14363   MAINT=''
14364 else
14365   MAINT='#'
14366 fi
14367
14368 # --------------
14369 # Language hooks
14370 # --------------
14371
14372 # Make empty files to contain the specs and options for each language.
14373 # Then add #include lines to for a compiler that has specs and/or options.
14374
14375 lang_opt_files=
14376 lang_specs_files=
14377 lang_tree_files=
14378 for subdir in . $subdirs
14379 do
14380         if test -f $srcdir/$subdir/lang.opt; then
14381             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
14382         fi
14383         if test -f $srcdir/$subdir/lang-specs.h; then
14384             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
14385         fi
14386         if test -f $srcdir/$subdir/$subdir-tree.def; then
14387             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
14388         fi
14389 done
14390
14391 # These (without "all_") are set in each config-lang.in.
14392 # `language' must be a single word so is spelled singularly.
14393 all_languages=
14394 all_boot_languages=
14395 all_compilers=
14396 all_stagestuff=
14397 all_outputs='Makefile gccbug mklibgcc mkheaders libada-mk'
14398 # List of language makefile fragments.
14399 all_lang_makefrags=
14400 # List of language subdirectory makefiles.  Deprecated.
14401 all_lang_makefiles=
14402 # Files for gengtype
14403 all_gtfiles="$target_gtfiles"
14404 # Files for gengtype with language
14405 all_gtfiles_files_langs=
14406 all_gtfiles_files_files=
14407
14408 # Add the language fragments.
14409 # Languages are added via two mechanisms.  Some information must be
14410 # recorded in makefile variables, these are defined in config-lang.in.
14411 # We accumulate them and plug them into the main Makefile.
14412 # The other mechanism is a set of hooks for each of the main targets
14413 # like `clean', `install', etc.
14414
14415 language_hooks="Make-hooks"
14416
14417 for s in $subdirs
14418 do
14419                 language=
14420                 boot_language=
14421                 compilers=
14422                 stagestuff=
14423                 outputs=
14424                 gtfiles=
14425                 . ${srcdir}/$s/config-lang.in
14426                 if test "x$language" = x
14427                 then
14428                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
14429                         exit 1
14430                 fi
14431                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
14432                 if test -f ${srcdir}/$s/Makefile.in
14433                 then all_lang_makefiles="$s/Makefile"
14434                 fi
14435                 all_languages="$all_languages $language"
14436                 if test "x$boot_language" = xyes
14437                 then
14438                         all_boot_languages="$all_boot_languages $language"
14439                 fi
14440                 all_compilers="$all_compilers $compilers"
14441                 all_stagestuff="$all_stagestuff $stagestuff"
14442                 all_outputs="$all_outputs $outputs"
14443                 all_gtfiles="$all_gtfiles $gtfiles"
14444                 for f in $gtfiles
14445                 do
14446                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
14447                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
14448                 done
14449 done
14450
14451 # Pick up gtfiles for c
14452 gtfiles=
14453 s="c"
14454 . ${srcdir}/c-config-lang.in
14455 all_gtfiles="$all_gtfiles $gtfiles"
14456 for f in $gtfiles
14457 do
14458         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
14459         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
14460 done
14461
14462 check_languages=
14463 for language in $all_languages
14464 do
14465                 check_languages="$check_languages check-$language"
14466 done
14467
14468 # We link each language in with a set of hooks, reached indirectly via
14469 # lang.${target}.
14470
14471 rm -f Make-hooks
14472 touch Make-hooks
14473 target_list="all.build all.cross start.encap rest.encap tags \
14474         install-normal install-common install-man \
14475         uninstall info man srcextra srcman srcinfo \
14476         mostlyclean clean distclean maintainer-clean \
14477         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
14478 for t in $target_list
14479 do
14480         x=
14481         for lang in $all_languages
14482         do
14483                         x="$x $lang.$t"
14484         done
14485         echo "lang.$t: $x" >> Make-hooks
14486 done
14487
14488 # --------
14489 # UNSORTED
14490 # --------
14491
14492 # Create .gdbinit.
14493
14494 echo "dir ." > .gdbinit
14495 echo "dir ${srcdir}" >> .gdbinit
14496 if test x$gdb_needs_out_file_path = xyes
14497 then
14498         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
14499 fi
14500 if test "x$subdirs" != x; then
14501         for s in $subdirs
14502         do
14503                 echo "dir ${srcdir}/$s" >> .gdbinit
14504         done
14505 fi
14506 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
14507
14508 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
14509 # absolute path for gcc_tooldir based on inserting the number of up-directory
14510 # movements required to get from $(exec_prefix) to $(prefix) into the basic
14511 # $(libsubdir)/@(unlibsubdir) based path.
14512 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
14513 # make and thus we'd get different behavior depending on where we built the
14514 # sources.
14515 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
14516     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
14517 else
14518 # An explanation of the sed strings:
14519 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
14520 #  -e 's|/$||'            match a trailing forward slash and eliminates it
14521 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
14522 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
14523 #
14524 # (*) Note this pattern overwrites the first character of the string
14525 # with a forward slash if one is not already present.  This is not a
14526 # problem because the exact names of the sub-directories concerned is
14527 # unimportant, just the number of them matters.
14528 #
14529 # The practical upshot of these patterns is like this:
14530 #
14531 #  prefix     exec_prefix        result
14532 #  ------     -----------        ------
14533 #   /foo        /foo/bar          ../
14534 #   /foo/       /foo/bar          ../
14535 #   /foo        /foo/bar/         ../
14536 #   /foo/       /foo/bar/         ../
14537 #   /foo        /foo/bar/ugg      ../../
14538 #
14539     dollar='$$'
14540     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
14541 fi
14542
14543
14544
14545 # Find a directory in which to install a shared libgcc.
14546
14547 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
14548 if test "${enable_version_specific_runtime_libs+set}" = set; then
14549   enableval="$enable_version_specific_runtime_libs"
14550
14551 fi;
14552
14553
14554 # Check whether --with-slibdir or --without-slibdir was given.
14555 if test "${with_slibdir+set}" = set; then
14556   withval="$with_slibdir"
14557   slibdir="$with_slibdir"
14558 else
14559   if test "${enable_version_specific_runtime_libs+set}" = set; then
14560   slibdir='$(libsubdir)'
14561 elif test "$host" != "$target"; then
14562   slibdir='$(build_tooldir)/lib'
14563 else
14564   slibdir='$(libdir)'
14565 fi
14566 fi;
14567
14568
14569 objdir=`${PWDCMD-pwd}`
14570
14571
14572 # Substitute configuration variables
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640 # Echo link setup.
14641 if test x${build} = x${host} ; then
14642   if test x${host} = x${target} ; then
14643     echo "Links are now set up to build a native compiler for ${target}." 1>&2
14644   else
14645     echo "Links are now set up to build a cross-compiler" 1>&2
14646     echo " from ${host} to ${target}." 1>&2
14647   fi
14648 else
14649   if test x${host} = x${target} ; then
14650     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
14651     echo " for ${target}." 1>&2
14652   else
14653     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
14654     echo " from ${host} to ${target}." 1>&2
14655   fi
14656 fi
14657
14658
14659
14660
14661 # Configure the subdirectories
14662 # AC_CONFIG_SUBDIRS($subdirs)
14663
14664 # Create the Makefile
14665 # and configure language subdirectories
14666           ac_config_files="$ac_config_files $all_outputs"
14667
14668
14669           ac_config_commands="$ac_config_commands default"
14670
14671 cat >confcache <<\_ACEOF
14672 # This file is a shell script that caches the results of configure
14673 # tests run on this system so they can be shared between configure
14674 # scripts and configure runs, see configure's option --config-cache.
14675 # It is not useful on other systems.  If it contains results you don't
14676 # want to keep, you may remove or edit it.
14677 #
14678 # config.status only pays attention to the cache file if you give it
14679 # the --recheck option to rerun configure.
14680 #
14681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14683 # following values.
14684
14685 _ACEOF
14686
14687 # The following way of writing the cache mishandles newlines in values,
14688 # but we know of no workaround that is simple, portable, and efficient.
14689 # So, don't put newlines in cache variables' values.
14690 # Ultrix sh set writes to stderr and can't be redirected directly,
14691 # and sets the high bit in the cache file unless we assign to the vars.
14692 {
14693   (set) 2>&1 |
14694     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14695     *ac_space=\ *)
14696       # `set' does not quote correctly, so add quotes (double-quote
14697       # substitution turns \\\\ into \\, and sed turns \\ into \).
14698       sed -n \
14699         "s/'/'\\\\''/g;
14700           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14701       ;;
14702     *)
14703       # `set' quotes correctly as required by POSIX, so do not add quotes.
14704       sed -n \
14705         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14706       ;;
14707     esac;
14708 } |
14709   sed '
14710      t clear
14711      : clear
14712      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14713      t end
14714      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14715      : end' >>confcache
14716 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14717   if test -w $cache_file; then
14718     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14719     cat confcache >$cache_file
14720   else
14721     echo "not updating unwritable cache $cache_file"
14722   fi
14723 fi
14724 rm -f confcache
14725
14726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14727 # Let make expand exec_prefix.
14728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14729
14730 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14731 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14732 # trailing colons and then remove the whole line if VPATH becomes empty
14733 # (actually we leave an empty line to preserve line numbers).
14734 if test "x$srcdir" = x.; then
14735   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14736 s/:*\$(srcdir):*/:/;
14737 s/:*\${srcdir}:*/:/;
14738 s/:*@srcdir@:*/:/;
14739 s/^\([^=]*=[     ]*\):*/\1/;
14740 s/:*$//;
14741 s/^[^=]*=[       ]*$//;
14742 }'
14743 fi
14744
14745 DEFS=-DHAVE_CONFIG_H
14746
14747 ac_libobjs=
14748 ac_ltlibobjs=
14749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14750   # 1. Remove the extension, and $U if already installed.
14751   ac_i=`echo "$ac_i" |
14752          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14753   # 2. Add them.
14754   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14755   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14756 done
14757 LIBOBJS=$ac_libobjs
14758
14759 LTLIBOBJS=$ac_ltlibobjs
14760
14761
14762
14763 : ${CONFIG_STATUS=./config.status}
14764 ac_clean_files_save=$ac_clean_files
14765 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14766 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14767 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14768 cat >$CONFIG_STATUS <<_ACEOF
14769 #! $SHELL
14770 # Generated by $as_me.
14771 # Run this file to recreate the current configuration.
14772 # Compiler output produced by configure, useful for debugging
14773 # configure, is in config.log if it exists.
14774
14775 debug=false
14776 ac_cs_recheck=false
14777 ac_cs_silent=false
14778 SHELL=\${CONFIG_SHELL-$SHELL}
14779 _ACEOF
14780
14781 cat >>$CONFIG_STATUS <<\_ACEOF
14782 ## --------------------- ##
14783 ## M4sh Initialization.  ##
14784 ## --------------------- ##
14785
14786 # Be Bourne compatible
14787 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14788   emulate sh
14789   NULLCMD=:
14790   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14791   # is contrary to our usage.  Disable this feature.
14792   alias -g '${1+"$@"}'='"$@"'
14793 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14794   set -o posix
14795 fi
14796 DUALCASE=1; export DUALCASE # for MKS sh
14797
14798 # Support unset when possible.
14799 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14800   as_unset=unset
14801 else
14802   as_unset=false
14803 fi
14804
14805
14806 # Work around bugs in pre-3.0 UWIN ksh.
14807 $as_unset ENV MAIL MAILPATH
14808 PS1='$ '
14809 PS2='> '
14810 PS4='+ '
14811
14812 # NLS nuisances.
14813 for as_var in \
14814   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14815   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14816   LC_TELEPHONE LC_TIME
14817 do
14818   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14819     eval $as_var=C; export $as_var
14820   else
14821     $as_unset $as_var
14822   fi
14823 done
14824
14825 # Required to use basename.
14826 if expr a : '\(a\)' >/dev/null 2>&1; then
14827   as_expr=expr
14828 else
14829   as_expr=false
14830 fi
14831
14832 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14833   as_basename=basename
14834 else
14835   as_basename=false
14836 fi
14837
14838
14839 # Name of the executable.
14840 as_me=`$as_basename "$0" ||
14841 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14842          X"$0" : 'X\(//\)$' \| \
14843          X"$0" : 'X\(/\)$' \| \
14844          .     : '\(.\)' 2>/dev/null ||
14845 echo X/"$0" |
14846     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14847           /^X\/\(\/\/\)$/{ s//\1/; q; }
14848           /^X\/\(\/\).*/{ s//\1/; q; }
14849           s/.*/./; q'`
14850
14851
14852 # PATH needs CR, and LINENO needs CR and PATH.
14853 # Avoid depending upon Character Ranges.
14854 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14855 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14856 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14857 as_cr_digits='0123456789'
14858 as_cr_alnum=$as_cr_Letters$as_cr_digits
14859
14860 # The user is always right.
14861 if test "${PATH_SEPARATOR+set}" != set; then
14862   echo "#! /bin/sh" >conf$$.sh
14863   echo  "exit 0"   >>conf$$.sh
14864   chmod +x conf$$.sh
14865   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14866     PATH_SEPARATOR=';'
14867   else
14868     PATH_SEPARATOR=:
14869   fi
14870   rm -f conf$$.sh
14871 fi
14872
14873
14874   as_lineno_1=$LINENO
14875   as_lineno_2=$LINENO
14876   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14877   test "x$as_lineno_1" != "x$as_lineno_2" &&
14878   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14879   # Find who we are.  Look in the path if we contain no path at all
14880   # relative or not.
14881   case $0 in
14882     *[\\/]* ) as_myself=$0 ;;
14883     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14884 for as_dir in $PATH
14885 do
14886   IFS=$as_save_IFS
14887   test -z "$as_dir" && as_dir=.
14888   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14889 done
14890
14891        ;;
14892   esac
14893   # We did not find ourselves, most probably we were run as `sh COMMAND'
14894   # in which case we are not to be found in the path.
14895   if test "x$as_myself" = x; then
14896     as_myself=$0
14897   fi
14898   if test ! -f "$as_myself"; then
14899     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14900 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14901    { (exit 1); exit 1; }; }
14902   fi
14903   case $CONFIG_SHELL in
14904   '')
14905     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14907 do
14908   IFS=$as_save_IFS
14909   test -z "$as_dir" && as_dir=.
14910   for as_base in sh bash ksh sh5; do
14911          case $as_dir in
14912          /*)
14913            if ("$as_dir/$as_base" -c '
14914   as_lineno_1=$LINENO
14915   as_lineno_2=$LINENO
14916   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14917   test "x$as_lineno_1" != "x$as_lineno_2" &&
14918   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14919              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14920              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14921              CONFIG_SHELL=$as_dir/$as_base
14922              export CONFIG_SHELL
14923              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14924            fi;;
14925          esac
14926        done
14927 done
14928 ;;
14929   esac
14930
14931   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14932   # uniformly replaced by the line number.  The first 'sed' inserts a
14933   # line-number line before each line; the second 'sed' does the real
14934   # work.  The second script uses 'N' to pair each line-number line
14935   # with the numbered line, and appends trailing '-' during
14936   # substitution so that $LINENO is not a special case at line end.
14937   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14938   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14939   sed '=' <$as_myself |
14940     sed '
14941       N
14942       s,$,-,
14943       : loop
14944       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14945       t loop
14946       s,-$,,
14947       s,^['$as_cr_digits']*\n,,
14948     ' >$as_me.lineno &&
14949   chmod +x $as_me.lineno ||
14950     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14951 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14952    { (exit 1); exit 1; }; }
14953
14954   # Don't try to exec as it changes $[0], causing all sort of problems
14955   # (the dirname of $[0] is not the place where we might find the
14956   # original and so on.  Autoconf is especially sensible to this).
14957   . ./$as_me.lineno
14958   # Exit status is that of the last command.
14959   exit
14960 }
14961
14962
14963 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14964   *c*,-n*) ECHO_N= ECHO_C='
14965 ' ECHO_T='      ' ;;
14966   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14967   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14968 esac
14969
14970 if expr a : '\(a\)' >/dev/null 2>&1; then
14971   as_expr=expr
14972 else
14973   as_expr=false
14974 fi
14975
14976 rm -f conf$$ conf$$.exe conf$$.file
14977 echo >conf$$.file
14978 if ln -s conf$$.file conf$$ 2>/dev/null; then
14979   # We could just check for DJGPP; but this test a) works b) is more generic
14980   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14981   if test -f conf$$.exe; then
14982     # Don't use ln at all; we don't have any links
14983     as_ln_s='cp -p'
14984   else
14985     as_ln_s='ln -s'
14986   fi
14987 elif ln conf$$.file conf$$ 2>/dev/null; then
14988   as_ln_s=ln
14989 else
14990   as_ln_s='cp -p'
14991 fi
14992 rm -f conf$$ conf$$.exe conf$$.file
14993
14994 if mkdir -p . 2>/dev/null; then
14995   as_mkdir_p=:
14996 else
14997   test -d ./-p && rmdir ./-p
14998   as_mkdir_p=false
14999 fi
15000
15001 as_executable_p="test -f"
15002
15003 # Sed expression to map a string onto a valid CPP name.
15004 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15005
15006 # Sed expression to map a string onto a valid variable name.
15007 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15008
15009
15010 # IFS
15011 # We need space, tab and new line, in precisely that order.
15012 as_nl='
15013 '
15014 IFS="   $as_nl"
15015
15016 # CDPATH.
15017 $as_unset CDPATH
15018
15019 exec 6>&1
15020
15021 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15022 # report actual input values of CONFIG_FILES etc. instead of their
15023 # values after options handling.  Logging --version etc. is OK.
15024 exec 5>>config.log
15025 {
15026   echo
15027   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15028 ## Running $as_me. ##
15029 _ASBOX
15030 } >&5
15031 cat >&5 <<_CSEOF
15032
15033 This file was extended by $as_me, which was
15034 generated by GNU Autoconf 2.59.  Invocation command line was
15035
15036   CONFIG_FILES    = $CONFIG_FILES
15037   CONFIG_HEADERS  = $CONFIG_HEADERS
15038   CONFIG_LINKS    = $CONFIG_LINKS
15039   CONFIG_COMMANDS = $CONFIG_COMMANDS
15040   $ $0 $@
15041
15042 _CSEOF
15043 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15044 echo >&5
15045 _ACEOF
15046
15047 # Files that config.status was made for.
15048 if test -n "$ac_config_files"; then
15049   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15050 fi
15051
15052 if test -n "$ac_config_headers"; then
15053   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15054 fi
15055
15056 if test -n "$ac_config_links"; then
15057   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15058 fi
15059
15060 if test -n "$ac_config_commands"; then
15061   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15062 fi
15063
15064 cat >>$CONFIG_STATUS <<\_ACEOF
15065
15066 ac_cs_usage="\
15067 \`$as_me' instantiates files from templates according to the
15068 current configuration.
15069
15070 Usage: $0 [OPTIONS] [FILE]...
15071
15072   -h, --help       print this help, then exit
15073   -V, --version    print version number, then exit
15074   -q, --quiet      do not print progress messages
15075   -d, --debug      don't remove temporary files
15076       --recheck    update $as_me by reconfiguring in the same conditions
15077   --file=FILE[:TEMPLATE]
15078                    instantiate the configuration file FILE
15079   --header=FILE[:TEMPLATE]
15080                    instantiate the configuration header FILE
15081
15082 Configuration files:
15083 $config_files
15084
15085 Configuration headers:
15086 $config_headers
15087
15088 Configuration commands:
15089 $config_commands
15090
15091 Report bugs to <bug-autoconf@gnu.org>."
15092 _ACEOF
15093
15094 cat >>$CONFIG_STATUS <<_ACEOF
15095 ac_cs_version="\\
15096 config.status
15097 configured by $0, generated by GNU Autoconf 2.59,
15098   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15099
15100 Copyright (C) 2003 Free Software Foundation, Inc.
15101 This config.status script is free software; the Free Software Foundation
15102 gives unlimited permission to copy, distribute and modify it."
15103 srcdir=$srcdir
15104 _ACEOF
15105
15106 cat >>$CONFIG_STATUS <<\_ACEOF
15107 # If no file are specified by the user, then we need to provide default
15108 # value.  By we need to know if files were specified by the user.
15109 ac_need_defaults=:
15110 while test $# != 0
15111 do
15112   case $1 in
15113   --*=*)
15114     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15115     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15116     ac_shift=:
15117     ;;
15118   -*)
15119     ac_option=$1
15120     ac_optarg=$2
15121     ac_shift=shift
15122     ;;
15123   *) # This is not an option, so the user has probably given explicit
15124      # arguments.
15125      ac_option=$1
15126      ac_need_defaults=false;;
15127   esac
15128
15129   case $ac_option in
15130   # Handling of the options.
15131 _ACEOF
15132 cat >>$CONFIG_STATUS <<\_ACEOF
15133   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15134     ac_cs_recheck=: ;;
15135   --version | --vers* | -V )
15136     echo "$ac_cs_version"; exit 0 ;;
15137   --he | --h)
15138     # Conflict between --help and --header
15139     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15140 Try \`$0 --help' for more information." >&5
15141 echo "$as_me: error: ambiguous option: $1
15142 Try \`$0 --help' for more information." >&2;}
15143    { (exit 1); exit 1; }; };;
15144   --help | --hel | -h )
15145     echo "$ac_cs_usage"; exit 0 ;;
15146   --debug | --d* | -d )
15147     debug=: ;;
15148   --file | --fil | --fi | --f )
15149     $ac_shift
15150     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15151     ac_need_defaults=false;;
15152   --header | --heade | --head | --hea )
15153     $ac_shift
15154     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15155     ac_need_defaults=false;;
15156   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15157   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15158     ac_cs_silent=: ;;
15159
15160   # This is an error.
15161   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15162 Try \`$0 --help' for more information." >&5
15163 echo "$as_me: error: unrecognized option: $1
15164 Try \`$0 --help' for more information." >&2;}
15165    { (exit 1); exit 1; }; } ;;
15166
15167   *) ac_config_targets="$ac_config_targets $1" ;;
15168
15169   esac
15170   shift
15171 done
15172
15173 ac_configure_extra_args=
15174
15175 if $ac_cs_silent; then
15176   exec 6>/dev/null
15177   ac_configure_extra_args="$ac_configure_extra_args --silent"
15178 fi
15179
15180 _ACEOF
15181 cat >>$CONFIG_STATUS <<_ACEOF
15182 if \$ac_cs_recheck; then
15183   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15184   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15185 fi
15186
15187 _ACEOF
15188
15189 cat >>$CONFIG_STATUS <<_ACEOF
15190 #
15191 # INIT-COMMANDS section.
15192 #
15193
15194 subdirs='$subdirs'
15195 symbolic_link='$symbolic_link'
15196
15197
15198 _ACEOF
15199
15200
15201
15202 cat >>$CONFIG_STATUS <<\_ACEOF
15203 for ac_config_target in $ac_config_targets
15204 do
15205   case "$ac_config_target" in
15206   # Handling of arguments.
15207   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15208   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15209   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15210   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15211 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15212    { (exit 1); exit 1; }; };;
15213   esac
15214 done
15215
15216 # If the user did not use the arguments to specify the items to instantiate,
15217 # then the envvar interface is used.  Set only those that are not.
15218 # We use the long form for the default assignment because of an extremely
15219 # bizarre bug on SunOS 4.1.3.
15220 if $ac_need_defaults; then
15221   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15222   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15223   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15224 fi
15225
15226 # Have a temporary directory for convenience.  Make it in the build tree
15227 # simply because there is no reason to put it here, and in addition,
15228 # creating and moving files from /tmp can sometimes cause problems.
15229 # Create a temporary directory, and hook for its removal unless debugging.
15230 $debug ||
15231 {
15232   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15233   trap '{ (exit 1); exit 1; }' 1 2 13 15
15234 }
15235
15236 # Create a (secure) tmp directory for tmp files.
15237
15238 {
15239   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15240   test -n "$tmp" && test -d "$tmp"
15241 }  ||
15242 {
15243   tmp=./confstat$$-$RANDOM
15244   (umask 077 && mkdir $tmp)
15245 } ||
15246 {
15247    echo "$me: cannot create a temporary directory in ." >&2
15248    { (exit 1); exit 1; }
15249 }
15250
15251 _ACEOF
15252
15253 cat >>$CONFIG_STATUS <<_ACEOF
15254
15255 #
15256 # CONFIG_FILES section.
15257 #
15258
15259 # No need to generate the scripts if there are no CONFIG_FILES.
15260 # This happens for instance when ./config.status config.h
15261 if test -n "\$CONFIG_FILES"; then
15262   # Protect against being on the right side of a sed subst in config.status.
15263   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15264    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15265 s,@SHELL@,$SHELL,;t t
15266 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15267 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15268 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15269 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15270 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15271 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15272 s,@exec_prefix@,$exec_prefix,;t t
15273 s,@prefix@,$prefix,;t t
15274 s,@program_transform_name@,$program_transform_name,;t t
15275 s,@bindir@,$bindir,;t t
15276 s,@sbindir@,$sbindir,;t t
15277 s,@libexecdir@,$libexecdir,;t t
15278 s,@datadir@,$datadir,;t t
15279 s,@sysconfdir@,$sysconfdir,;t t
15280 s,@sharedstatedir@,$sharedstatedir,;t t
15281 s,@localstatedir@,$localstatedir,;t t
15282 s,@libdir@,$libdir,;t t
15283 s,@includedir@,$includedir,;t t
15284 s,@oldincludedir@,$oldincludedir,;t t
15285 s,@infodir@,$infodir,;t t
15286 s,@mandir@,$mandir,;t t
15287 s,@build_alias@,$build_alias,;t t
15288 s,@host_alias@,$host_alias,;t t
15289 s,@target_alias@,$target_alias,;t t
15290 s,@DEFS@,$DEFS,;t t
15291 s,@ECHO_C@,$ECHO_C,;t t
15292 s,@ECHO_N@,$ECHO_N,;t t
15293 s,@ECHO_T@,$ECHO_T,;t t
15294 s,@LIBS@,$LIBS,;t t
15295 s,@build@,$build,;t t
15296 s,@build_cpu@,$build_cpu,;t t
15297 s,@build_vendor@,$build_vendor,;t t
15298 s,@build_os@,$build_os,;t t
15299 s,@host@,$host,;t t
15300 s,@host_cpu@,$host_cpu,;t t
15301 s,@host_vendor@,$host_vendor,;t t
15302 s,@host_os@,$host_os,;t t
15303 s,@target@,$target,;t t
15304 s,@target_cpu@,$target_cpu,;t t
15305 s,@target_vendor@,$target_vendor,;t t
15306 s,@target_os@,$target_os,;t t
15307 s,@target_noncanonical@,$target_noncanonical,;t t
15308 s,@build_subdir@,$build_subdir,;t t
15309 s,@host_subdir@,$host_subdir,;t t
15310 s,@target_subdir@,$target_subdir,;t t
15311 s,@GENINSRC@,$GENINSRC,;t t
15312 s,@CC@,$CC,;t t
15313 s,@CFLAGS@,$CFLAGS,;t t
15314 s,@LDFLAGS@,$LDFLAGS,;t t
15315 s,@CPPFLAGS@,$CPPFLAGS,;t t
15316 s,@ac_ct_CC@,$ac_ct_CC,;t t
15317 s,@EXEEXT@,$EXEEXT,;t t
15318 s,@OBJEXT@,$OBJEXT,;t t
15319 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
15320 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
15321 s,@CPP@,$CPP,;t t
15322 s,@EGREP@,$EGREP,;t t
15323 s,@strict1_warn@,$strict1_warn,;t t
15324 s,@warn_cflags@,$warn_cflags,;t t
15325 s,@WERROR@,$WERROR,;t t
15326 s,@nocommon_flag@,$nocommon_flag,;t t
15327 s,@TREEBROWSER@,$TREEBROWSER,;t t
15328 s,@valgrind_path@,$valgrind_path,;t t
15329 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
15330 s,@valgrind_command@,$valgrind_command,;t t
15331 s,@coverage_flags@,$coverage_flags,;t t
15332 s,@enable_multilib@,$enable_multilib,;t t
15333 s,@enable_shared@,$enable_shared,;t t
15334 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
15335 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
15336 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
15337 s,@onestep@,$onestep,;t t
15338 s,@SET_MAKE@,$SET_MAKE,;t t
15339 s,@AWK@,$AWK,;t t
15340 s,@LN_S@,$LN_S,;t t
15341 s,@LN@,$LN,;t t
15342 s,@RANLIB@,$RANLIB,;t t
15343 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15344 s,@ranlib_flags@,$ranlib_flags,;t t
15345 s,@INSTALL@,$INSTALL,;t t
15346 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15347 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15348 s,@make_compare_target@,$make_compare_target,;t t
15349 s,@have_mktemp_command@,$have_mktemp_command,;t t
15350 s,@MAKEINFO@,$MAKEINFO,;t t
15351 s,@BUILD_INFO@,$BUILD_INFO,;t t
15352 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
15353 s,@FLEX@,$FLEX,;t t
15354 s,@BISON@,$BISON,;t t
15355 s,@NM@,$NM,;t t
15356 s,@AR@,$AR,;t t
15357 s,@stage1_cflags@,$stage1_cflags,;t t
15358 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
15359 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
15360 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
15361 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
15362 s,@LIBICONV@,$LIBICONV,;t t
15363 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
15364 s,@manext@,$manext,;t t
15365 s,@objext@,$objext,;t t
15366 s,@gthread_flags@,$gthread_flags,;t t
15367 s,@extra_modes_file@,$extra_modes_file,;t t
15368 s,@PACKAGE@,$PACKAGE,;t t
15369 s,@VERSION@,$VERSION,;t t
15370 s,@USE_NLS@,$USE_NLS,;t t
15371 s,@LIBINTL@,$LIBINTL,;t t
15372 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15373 s,@INCINTL@,$INCINTL,;t t
15374 s,@XGETTEXT@,$XGETTEXT,;t t
15375 s,@GMSGFMT@,$GMSGFMT,;t t
15376 s,@POSUB@,$POSUB,;t t
15377 s,@CATALOGS@,$CATALOGS,;t t
15378 s,@CROSS@,$CROSS,;t t
15379 s,@ALL@,$ALL,;t t
15380 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
15381 s,@inhibit_libc@,$inhibit_libc,;t t
15382 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15383 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
15384 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
15385 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
15386 s,@collect2@,$collect2,;t t
15387 s,@libgcc_visibility@,$libgcc_visibility,;t t
15388 s,@GGC@,$GGC,;t t
15389 s,@zlibdir@,$zlibdir,;t t
15390 s,@zlibinc@,$zlibinc,;t t
15391 s,@MAINT@,$MAINT,;t t
15392 s,@gcc_tooldir@,$gcc_tooldir,;t t
15393 s,@dollar@,$dollar,;t t
15394 s,@slibdir@,$slibdir,;t t
15395 s,@objdir@,$objdir,;t t
15396 s,@subdirs@,$subdirs,;t t
15397 s,@srcdir@,$srcdir,;t t
15398 s,@all_boot_languages@,$all_boot_languages,;t t
15399 s,@all_compilers@,$all_compilers,;t t
15400 s,@all_gtfiles@,$all_gtfiles,;t t
15401 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
15402 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
15403 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
15404 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
15405 s,@all_languages@,$all_languages,;t t
15406 s,@all_stagestuff@,$all_stagestuff,;t t
15407 s,@build_exeext@,$build_exeext,;t t
15408 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
15409 s,@build_xm_file_list@,$build_xm_file_list,;t t
15410 s,@build_xm_include_list@,$build_xm_include_list,;t t
15411 s,@build_xm_defines@,$build_xm_defines,;t t
15412 s,@check_languages@,$check_languages,;t t
15413 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
15414 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
15415 s,@cpp_install_dir@,$cpp_install_dir,;t t
15416 s,@xmake_file@,$xmake_file,;t t
15417 s,@tmake_file@,$tmake_file,;t t
15418 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
15419 s,@extra_headers_list@,$extra_headers_list,;t t
15420 s,@extra_objs@,$extra_objs,;t t
15421 s,@extra_parts@,$extra_parts,;t t
15422 s,@extra_passes@,$extra_passes,;t t
15423 s,@extra_programs@,$extra_programs,;t t
15424 s,@float_h_file@,$float_h_file,;t t
15425 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
15426 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
15427 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
15428 s,@gcc_version@,$gcc_version,;t t
15429 s,@gcc_version_full@,$gcc_version_full,;t t
15430 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
15431 s,@host_exeext@,$host_exeext,;t t
15432 s,@host_xm_file_list@,$host_xm_file_list,;t t
15433 s,@host_xm_include_list@,$host_xm_include_list,;t t
15434 s,@host_xm_defines@,$host_xm_defines,;t t
15435 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
15436 s,@install@,$install,;t t
15437 s,@lang_opt_files@,$lang_opt_files,;t t
15438 s,@lang_specs_files@,$lang_specs_files,;t t
15439 s,@lang_tree_files@,$lang_tree_files,;t t
15440 s,@local_prefix@,$local_prefix,;t t
15441 s,@md_file@,$md_file,;t t
15442 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
15443 s,@out_file@,$out_file,;t t
15444 s,@out_object_file@,$out_object_file,;t t
15445 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
15446 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
15447 s,@symbolic_link@,$symbolic_link,;t t
15448 s,@thread_file@,$thread_file,;t t
15449 s,@tm_file_list@,$tm_file_list,;t t
15450 s,@tm_include_list@,$tm_include_list,;t t
15451 s,@tm_defines@,$tm_defines,;t t
15452 s,@tm_p_file_list@,$tm_p_file_list,;t t
15453 s,@tm_p_include_list@,$tm_p_include_list,;t t
15454 s,@xm_file_list@,$xm_file_list,;t t
15455 s,@xm_include_list@,$xm_include_list,;t t
15456 s,@xm_defines@,$xm_defines,;t t
15457 s,@c_target_objs@,$c_target_objs,;t t
15458 s,@cxx_target_objs@,$cxx_target_objs,;t t
15459 s,@target_cpu_default@,$target_cpu_default,;t t
15460 s,@GMPLIBS@,$GMPLIBS,;t t
15461 s,@GMPINC@,$GMPINC,;t t
15462 s,@LIBOBJS@,$LIBOBJS,;t t
15463 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15464 /@language_hooks@/r $language_hooks
15465 s,@language_hooks@,,;t t
15466 CEOF
15467
15468 _ACEOF
15469
15470   cat >>$CONFIG_STATUS <<\_ACEOF
15471   # Split the substitutions into bite-sized pieces for seds with
15472   # small command number limits, like on Digital OSF/1 and HP-UX.
15473   ac_max_sed_lines=48
15474   ac_sed_frag=1 # Number of current file.
15475   ac_beg=1 # First line for current file.
15476   ac_end=$ac_max_sed_lines # Line after last line for current file.
15477   ac_more_lines=:
15478   ac_sed_cmds=
15479   while $ac_more_lines; do
15480     if test $ac_beg -gt 1; then
15481       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15482     else
15483       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15484     fi
15485     if test ! -s $tmp/subs.frag; then
15486       ac_more_lines=false
15487     else
15488       # The purpose of the label and of the branching condition is to
15489       # speed up the sed processing (if there are no `@' at all, there
15490       # is no need to browse any of the substitutions).
15491       # These are the two extra sed commands mentioned above.
15492       (echo ':t
15493   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15494       if test -z "$ac_sed_cmds"; then
15495         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15496       else
15497         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15498       fi
15499       ac_sed_frag=`expr $ac_sed_frag + 1`
15500       ac_beg=$ac_end
15501       ac_end=`expr $ac_end + $ac_max_sed_lines`
15502     fi
15503   done
15504   if test -z "$ac_sed_cmds"; then
15505     ac_sed_cmds=cat
15506   fi
15507 fi # test -n "$CONFIG_FILES"
15508
15509 _ACEOF
15510 cat >>$CONFIG_STATUS <<\_ACEOF
15511 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15512   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15513   case $ac_file in
15514   - | *:- | *:-:* ) # input from stdin
15515         cat >$tmp/stdin
15516         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15517         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15518   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15519         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15520   * )   ac_file_in=$ac_file.in ;;
15521   esac
15522
15523   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15524   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15525 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15526          X"$ac_file" : 'X\(//\)[^/]' \| \
15527          X"$ac_file" : 'X\(//\)$' \| \
15528          X"$ac_file" : 'X\(/\)' \| \
15529          .     : '\(.\)' 2>/dev/null ||
15530 echo X"$ac_file" |
15531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15532           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15533           /^X\(\/\/\)$/{ s//\1/; q; }
15534           /^X\(\/\).*/{ s//\1/; q; }
15535           s/.*/./; q'`
15536   { if $as_mkdir_p; then
15537     mkdir -p "$ac_dir"
15538   else
15539     as_dir="$ac_dir"
15540     as_dirs=
15541     while test ! -d "$as_dir"; do
15542       as_dirs="$as_dir $as_dirs"
15543       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15544 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15545          X"$as_dir" : 'X\(//\)[^/]' \| \
15546          X"$as_dir" : 'X\(//\)$' \| \
15547          X"$as_dir" : 'X\(/\)' \| \
15548          .     : '\(.\)' 2>/dev/null ||
15549 echo X"$as_dir" |
15550     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15551           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15552           /^X\(\/\/\)$/{ s//\1/; q; }
15553           /^X\(\/\).*/{ s//\1/; q; }
15554           s/.*/./; q'`
15555     done
15556     test ! -n "$as_dirs" || mkdir $as_dirs
15557   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15558 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15559    { (exit 1); exit 1; }; }; }
15560
15561   ac_builddir=.
15562
15563 if test "$ac_dir" != .; then
15564   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15565   # A "../" for each directory in $ac_dir_suffix.
15566   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15567 else
15568   ac_dir_suffix= ac_top_builddir=
15569 fi
15570
15571 case $srcdir in
15572   .)  # No --srcdir option.  We are building in place.
15573     ac_srcdir=.
15574     if test -z "$ac_top_builddir"; then
15575        ac_top_srcdir=.
15576     else
15577        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15578     fi ;;
15579   [\\/]* | ?:[\\/]* )  # Absolute path.
15580     ac_srcdir=$srcdir$ac_dir_suffix;
15581     ac_top_srcdir=$srcdir ;;
15582   *) # Relative path.
15583     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15584     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15585 esac
15586
15587 # Do not use `cd foo && pwd` to compute absolute paths, because
15588 # the directories may not exist.
15589 case `pwd` in
15590 .) ac_abs_builddir="$ac_dir";;
15591 *)
15592   case "$ac_dir" in
15593   .) ac_abs_builddir=`pwd`;;
15594   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15595   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15596   esac;;
15597 esac
15598 case $ac_abs_builddir in
15599 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15600 *)
15601   case ${ac_top_builddir}. in
15602   .) ac_abs_top_builddir=$ac_abs_builddir;;
15603   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15604   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15605   esac;;
15606 esac
15607 case $ac_abs_builddir in
15608 .) ac_abs_srcdir=$ac_srcdir;;
15609 *)
15610   case $ac_srcdir in
15611   .) ac_abs_srcdir=$ac_abs_builddir;;
15612   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15613   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15614   esac;;
15615 esac
15616 case $ac_abs_builddir in
15617 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15618 *)
15619   case $ac_top_srcdir in
15620   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15621   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15622   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15623   esac;;
15624 esac
15625
15626
15627
15628   if test x"$ac_file" != x-; then
15629     { echo "$as_me:$LINENO: creating $ac_file" >&5
15630 echo "$as_me: creating $ac_file" >&6;}
15631     rm -f "$ac_file"
15632   fi
15633   # Let's still pretend it is `configure' which instantiates (i.e., don't
15634   # use $as_me), people would be surprised to read:
15635   #    /* config.h.  Generated by config.status.  */
15636   if test x"$ac_file" = x-; then
15637     configure_input=
15638   else
15639     configure_input="$ac_file.  "
15640   fi
15641   configure_input=$configure_input"Generated from `echo $ac_file_in |
15642                                      sed 's,.*/,,'` by configure."
15643
15644   # First look for the input files in the build tree, otherwise in the
15645   # src tree.
15646   ac_file_inputs=`IFS=:
15647     for f in $ac_file_in; do
15648       case $f in
15649       -) echo $tmp/stdin ;;
15650       [\\/$]*)
15651          # Absolute (can't be DOS-style, as IFS=:)
15652          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15653 echo "$as_me: error: cannot find input file: $f" >&2;}
15654    { (exit 1); exit 1; }; }
15655          echo "$f";;
15656       *) # Relative
15657          if test -f "$f"; then
15658            # Build tree
15659            echo "$f"
15660          elif test -f "$srcdir/$f"; then
15661            # Source tree
15662            echo "$srcdir/$f"
15663          else
15664            # /dev/null tree
15665            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15666 echo "$as_me: error: cannot find input file: $f" >&2;}
15667    { (exit 1); exit 1; }; }
15668          fi;;
15669       esac
15670     done` || { (exit 1); exit 1; }
15671 _ACEOF
15672 cat >>$CONFIG_STATUS <<_ACEOF
15673   sed "$ac_vpsub
15674 $extrasub
15675 _ACEOF
15676 cat >>$CONFIG_STATUS <<\_ACEOF
15677 :t
15678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15679 s,@configure_input@,$configure_input,;t t
15680 s,@srcdir@,$ac_srcdir,;t t
15681 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15682 s,@top_srcdir@,$ac_top_srcdir,;t t
15683 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15684 s,@builddir@,$ac_builddir,;t t
15685 s,@abs_builddir@,$ac_abs_builddir,;t t
15686 s,@top_builddir@,$ac_top_builddir,;t t
15687 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15688 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15689   rm -f $tmp/stdin
15690   if test x"$ac_file" != x-; then
15691     mv $tmp/out $ac_file
15692   else
15693     cat $tmp/out
15694     rm -f $tmp/out
15695   fi
15696
15697 done
15698 _ACEOF
15699 cat >>$CONFIG_STATUS <<\_ACEOF
15700
15701 #
15702 # CONFIG_HEADER section.
15703 #
15704
15705 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15706 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15707 #
15708 # ac_d sets the value in "#define NAME VALUE" lines.
15709 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
15710 ac_dB='[         ].*$,\1#\2'
15711 ac_dC=' '
15712 ac_dD=',;t'
15713 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15714 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15715 ac_uB='$,\1#\2define\3'
15716 ac_uC=' '
15717 ac_uD=',;t'
15718
15719 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15720   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15721   case $ac_file in
15722   - | *:- | *:-:* ) # input from stdin
15723         cat >$tmp/stdin
15724         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15725         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15726   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15727         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15728   * )   ac_file_in=$ac_file.in ;;
15729   esac
15730
15731   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15732 echo "$as_me: creating $ac_file" >&6;}
15733
15734   # First look for the input files in the build tree, otherwise in the
15735   # src tree.
15736   ac_file_inputs=`IFS=:
15737     for f in $ac_file_in; do
15738       case $f in
15739       -) echo $tmp/stdin ;;
15740       [\\/$]*)
15741          # Absolute (can't be DOS-style, as IFS=:)
15742          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15743 echo "$as_me: error: cannot find input file: $f" >&2;}
15744    { (exit 1); exit 1; }; }
15745          # Do quote $f, to prevent DOS paths from being IFS'd.
15746          echo "$f";;
15747       *) # Relative
15748          if test -f "$f"; then
15749            # Build tree
15750            echo "$f"
15751          elif test -f "$srcdir/$f"; then
15752            # Source tree
15753            echo "$srcdir/$f"
15754          else
15755            # /dev/null tree
15756            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15757 echo "$as_me: error: cannot find input file: $f" >&2;}
15758    { (exit 1); exit 1; }; }
15759          fi;;
15760       esac
15761     done` || { (exit 1); exit 1; }
15762   # Remove the trailing spaces.
15763   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
15764
15765 _ACEOF
15766
15767 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15768 # `conftest.undefs', that substitutes the proper values into
15769 # config.h.in to produce config.h.  The first handles `#define'
15770 # templates, and the second `#undef' templates.
15771 # And first: Protect against being on the right side of a sed subst in
15772 # config.status.  Protect against being in an unquoted here document
15773 # in config.status.
15774 rm -f conftest.defines conftest.undefs
15775 # Using a here document instead of a string reduces the quoting nightmare.
15776 # Putting comments in sed scripts is not portable.
15777 #
15778 # `end' is used to avoid that the second main sed command (meant for
15779 # 0-ary CPP macros) applies to n-ary macro definitions.
15780 # See the Autoconf documentation for `clear'.
15781 cat >confdef2sed.sed <<\_ACEOF
15782 s/[\\&,]/\\&/g
15783 s,[\\$`],\\&,g
15784 t clear
15785 : clear
15786 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15787 t end
15788 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15789 : end
15790 _ACEOF
15791 # If some macros were called several times there might be several times
15792 # the same #defines, which is useless.  Nevertheless, we may not want to
15793 # sort them, since we want the *last* AC-DEFINE to be honored.
15794 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15795 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15796 rm -f confdef2sed.sed
15797
15798 # This sed command replaces #undef with comments.  This is necessary, for
15799 # example, in the case of _POSIX_SOURCE, which is predefined and required
15800 # on some systems where configure will not decide to define it.
15801 cat >>conftest.undefs <<\_ACEOF
15802 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15803 _ACEOF
15804
15805 # Break up conftest.defines because some shells have a limit on the size
15806 # of here documents, and old seds have small limits too (100 cmds).
15807 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15808 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15809 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15810 echo '  :' >>$CONFIG_STATUS
15811 rm -f conftest.tail
15812 while grep . conftest.defines >/dev/null
15813 do
15814   # Write a limited-size here document to $tmp/defines.sed.
15815   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15816   # Speed up: don't consider the non `#define' lines.
15817   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
15818   # Work around the forget-to-reset-the-flag bug.
15819   echo 't clr' >>$CONFIG_STATUS
15820   echo ': clr' >>$CONFIG_STATUS
15821   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15822   echo 'CEOF
15823   sed -f $tmp/defines.sed $tmp/in >$tmp/out
15824   rm -f $tmp/in
15825   mv $tmp/out $tmp/in
15826 ' >>$CONFIG_STATUS
15827   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15828   rm -f conftest.defines
15829   mv conftest.tail conftest.defines
15830 done
15831 rm -f conftest.defines
15832 echo '  fi # grep' >>$CONFIG_STATUS
15833 echo >>$CONFIG_STATUS
15834
15835 # Break up conftest.undefs because some shells have a limit on the size
15836 # of here documents, and old seds have small limits too (100 cmds).
15837 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15838 rm -f conftest.tail
15839 while grep . conftest.undefs >/dev/null
15840 do
15841   # Write a limited-size here document to $tmp/undefs.sed.
15842   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15843   # Speed up: don't consider the non `#undef'
15844   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15845   # Work around the forget-to-reset-the-flag bug.
15846   echo 't clr' >>$CONFIG_STATUS
15847   echo ': clr' >>$CONFIG_STATUS
15848   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15849   echo 'CEOF
15850   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15851   rm -f $tmp/in
15852   mv $tmp/out $tmp/in
15853 ' >>$CONFIG_STATUS
15854   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15855   rm -f conftest.undefs
15856   mv conftest.tail conftest.undefs
15857 done
15858 rm -f conftest.undefs
15859
15860 cat >>$CONFIG_STATUS <<\_ACEOF
15861   # Let's still pretend it is `configure' which instantiates (i.e., don't
15862   # use $as_me), people would be surprised to read:
15863   #    /* config.h.  Generated by config.status.  */
15864   if test x"$ac_file" = x-; then
15865     echo "/* Generated by configure.  */" >$tmp/config.h
15866   else
15867     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15868   fi
15869   cat $tmp/in >>$tmp/config.h
15870   rm -f $tmp/in
15871   if test x"$ac_file" != x-; then
15872     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15873       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15874 echo "$as_me: $ac_file is unchanged" >&6;}
15875     else
15876       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15878          X"$ac_file" : 'X\(//\)[^/]' \| \
15879          X"$ac_file" : 'X\(//\)$' \| \
15880          X"$ac_file" : 'X\(/\)' \| \
15881          .     : '\(.\)' 2>/dev/null ||
15882 echo X"$ac_file" |
15883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15885           /^X\(\/\/\)$/{ s//\1/; q; }
15886           /^X\(\/\).*/{ s//\1/; q; }
15887           s/.*/./; q'`
15888       { if $as_mkdir_p; then
15889     mkdir -p "$ac_dir"
15890   else
15891     as_dir="$ac_dir"
15892     as_dirs=
15893     while test ! -d "$as_dir"; do
15894       as_dirs="$as_dir $as_dirs"
15895       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15897          X"$as_dir" : 'X\(//\)[^/]' \| \
15898          X"$as_dir" : 'X\(//\)$' \| \
15899          X"$as_dir" : 'X\(/\)' \| \
15900          .     : '\(.\)' 2>/dev/null ||
15901 echo X"$as_dir" |
15902     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15903           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15904           /^X\(\/\/\)$/{ s//\1/; q; }
15905           /^X\(\/\).*/{ s//\1/; q; }
15906           s/.*/./; q'`
15907     done
15908     test ! -n "$as_dirs" || mkdir $as_dirs
15909   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15910 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15911    { (exit 1); exit 1; }; }; }
15912
15913       rm -f $ac_file
15914       mv $tmp/config.h $ac_file
15915     fi
15916   else
15917     cat $tmp/config.h
15918     rm -f $tmp/config.h
15919   fi
15920 done
15921 _ACEOF
15922 cat >>$CONFIG_STATUS <<\_ACEOF
15923
15924 #
15925 # CONFIG_COMMANDS section.
15926 #
15927 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15928   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15929   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15930   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15931 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15932          X"$ac_dest" : 'X\(//\)[^/]' \| \
15933          X"$ac_dest" : 'X\(//\)$' \| \
15934          X"$ac_dest" : 'X\(/\)' \| \
15935          .     : '\(.\)' 2>/dev/null ||
15936 echo X"$ac_dest" |
15937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15938           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15939           /^X\(\/\/\)$/{ s//\1/; q; }
15940           /^X\(\/\).*/{ s//\1/; q; }
15941           s/.*/./; q'`
15942   { if $as_mkdir_p; then
15943     mkdir -p "$ac_dir"
15944   else
15945     as_dir="$ac_dir"
15946     as_dirs=
15947     while test ! -d "$as_dir"; do
15948       as_dirs="$as_dir $as_dirs"
15949       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15951          X"$as_dir" : 'X\(//\)[^/]' \| \
15952          X"$as_dir" : 'X\(//\)$' \| \
15953          X"$as_dir" : 'X\(/\)' \| \
15954          .     : '\(.\)' 2>/dev/null ||
15955 echo X"$as_dir" |
15956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15957           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15958           /^X\(\/\/\)$/{ s//\1/; q; }
15959           /^X\(\/\).*/{ s//\1/; q; }
15960           s/.*/./; q'`
15961     done
15962     test ! -n "$as_dirs" || mkdir $as_dirs
15963   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15964 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15965    { (exit 1); exit 1; }; }; }
15966
15967   ac_builddir=.
15968
15969 if test "$ac_dir" != .; then
15970   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15971   # A "../" for each directory in $ac_dir_suffix.
15972   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15973 else
15974   ac_dir_suffix= ac_top_builddir=
15975 fi
15976
15977 case $srcdir in
15978   .)  # No --srcdir option.  We are building in place.
15979     ac_srcdir=.
15980     if test -z "$ac_top_builddir"; then
15981        ac_top_srcdir=.
15982     else
15983        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15984     fi ;;
15985   [\\/]* | ?:[\\/]* )  # Absolute path.
15986     ac_srcdir=$srcdir$ac_dir_suffix;
15987     ac_top_srcdir=$srcdir ;;
15988   *) # Relative path.
15989     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15990     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15991 esac
15992
15993 # Do not use `cd foo && pwd` to compute absolute paths, because
15994 # the directories may not exist.
15995 case `pwd` in
15996 .) ac_abs_builddir="$ac_dir";;
15997 *)
15998   case "$ac_dir" in
15999   .) ac_abs_builddir=`pwd`;;
16000   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16001   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16002   esac;;
16003 esac
16004 case $ac_abs_builddir in
16005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16006 *)
16007   case ${ac_top_builddir}. in
16008   .) ac_abs_top_builddir=$ac_abs_builddir;;
16009   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16010   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16011   esac;;
16012 esac
16013 case $ac_abs_builddir in
16014 .) ac_abs_srcdir=$ac_srcdir;;
16015 *)
16016   case $ac_srcdir in
16017   .) ac_abs_srcdir=$ac_abs_builddir;;
16018   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16019   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16020   esac;;
16021 esac
16022 case $ac_abs_builddir in
16023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16024 *)
16025   case $ac_top_srcdir in
16026   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16027   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16028   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16029   esac;;
16030 esac
16031
16032
16033   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16034 echo "$as_me: executing $ac_dest commands" >&6;}
16035   case $ac_dest in
16036     default )
16037 case ${CONFIG_HEADERS} in
16038   *auto-host.h:config.in*)
16039   echo > cstamp-h ;;
16040 esac
16041 # Make sure all the subdirs exist.
16042 for d in $subdirs doc build
16043 do
16044     test -d $d || mkdir $d
16045 done
16046 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16047 # bootstrapping and the installation procedure can still use
16048 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
16049 # FLAGS_TO_PASS has been modified to solve the problem there.
16050 # This is virtually a duplicate of what happens in configure.lang; we do
16051 # an extra check to make sure this only happens if ln -s can be used.
16052 if test "$symbolic_link" = "ln -s"; then
16053  for d in ${subdirs} ; do
16054         STARTDIR=`${PWDCMD-pwd}`
16055         cd $d
16056         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16057         do
16058                 rm -f $t
16059                 $symbolic_link ../$t $t 2>/dev/null
16060         done
16061         cd $STARTDIR
16062  done
16063 else true ; fi
16064  ;;
16065   esac
16066 done
16067 _ACEOF
16068
16069 cat >>$CONFIG_STATUS <<\_ACEOF
16070
16071 { (exit 0); exit 0; }
16072 _ACEOF
16073 chmod +x $CONFIG_STATUS
16074 ac_clean_files=$ac_clean_files_save
16075
16076
16077 # configure is writing to config.log, and then calls config.status.
16078 # config.status does its own redirection, appending to config.log.
16079 # Unfortunately, on DOS this fails, as config.log is still kept open
16080 # by configure, so config.status won't be able to write to it; its
16081 # output is simply discarded.  So we exec the FD to /dev/null,
16082 # effectively closing config.log, so it can be properly (re)opened and
16083 # appended to by config.status.  When coming back to configure, we
16084 # need to make the FD available again.
16085 if test "$no_create" != yes; then
16086   ac_cs_success=:
16087   ac_config_status_args=
16088   test "$silent" = yes &&
16089     ac_config_status_args="$ac_config_status_args --quiet"
16090   exec 5>/dev/null
16091   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16092   exec 5>>config.log
16093   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16094   # would make configure fail if this is the last instruction.
16095   $ac_cs_success || { (exit 1); exit 1; }
16096 fi
16097