OSDN Git Service

* c-tree.h (enum c_typespec_kind, struct c_typespec,
[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 LTLIBICONV 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 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 set_gcc_lib_path 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   --disable-rpath         do not hardcode runtime library paths
890   --enable-initfini-array       use .init_array/.fini_array sections
891   --enable-sjlj-exceptions
892                           arrange to use setjmp/longjmp exception handling
893   --disable-win32-registry
894                           disable lookup of installation paths in the
895                           Registry on Windows hosts
896   --enable-win32-registry enable registry lookup (default)
897   --enable-win32-registry=KEY
898                           use KEY instead of GCC version as the last portion
899                           of the registry key
900   --enable-maintainer-mode
901                           enable make rules and dependencies not useful
902                           (and sometimes confusing) to the casual installer
903   --enable-version-specific-runtime-libs
904                           specify that runtime libraries should be
905                           installed in a compiler-specific directory
906
907 Optional Packages:
908   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
909   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
910   --with-local-prefix=DIR specifies directory to put local include
911   --with-gxx-include-dir=DIR
912                           specifies directory to put g++ header files
913   --with-cpp-install-dir=DIR
914                           install the user visible C preprocessor in DIR
915                           (relative to PREFIX) as well as PREFIX/bin
916   --with-gnu-ld           arrange to work with GNU ld.
917   --with-ld               arrange to use the specified ld (full pathname)
918   --with-demangler-in-ld  try to use demangler in GNU ld.
919   --with-gnu-as           arrange to work with GNU as
920   --with-as               arrange to use the specified as (full pathname)
921   --with-stabs            arrange to use stabs instead of host debug format
922   --with-dwarf2           force the default debug format to be DWARF 2
923   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924   --with-gnu-ld           assume the C compiler uses GNU ld default=no
925   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
926   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
927   --with-system-libunwind use installed libunwind
928   --with-gc={page,zone}   choose the garbage collection mechanism to use
929                           with the compiler
930   --with-system-zlib      use installed libz
931   --with-slibdir=DIR      shared libraries in DIR LIBDIR
932
933 Some influential environment variables:
934   CC          C compiler command
935   CFLAGS      C compiler flags
936   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
937               nonstandard directory <lib dir>
938   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
939               headers in a nonstandard directory <include dir>
940   CPP         C preprocessor
941   GMPLIBS     How to link GMP
942   GMPINC      How to find GMP include files
943
944 Use these variables to override the choices made by `configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
946
947 _ACEOF
948 fi
949
950 if test "$ac_init_help" = "recursive"; then
951   # If there are subdirs, report their specific --help.
952   ac_popdir=`pwd`
953   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954     test -d $ac_dir || continue
955     ac_builddir=.
956
957 if test "$ac_dir" != .; then
958   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959   # A "../" for each directory in $ac_dir_suffix.
960   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
961 else
962   ac_dir_suffix= ac_top_builddir=
963 fi
964
965 case $srcdir in
966   .)  # No --srcdir option.  We are building in place.
967     ac_srcdir=.
968     if test -z "$ac_top_builddir"; then
969        ac_top_srcdir=.
970     else
971        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
972     fi ;;
973   [\\/]* | ?:[\\/]* )  # Absolute path.
974     ac_srcdir=$srcdir$ac_dir_suffix;
975     ac_top_srcdir=$srcdir ;;
976   *) # Relative path.
977     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978     ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 esac
980
981 # Do not use `cd foo && pwd` to compute absolute paths, because
982 # the directories may not exist.
983 case `pwd` in
984 .) ac_abs_builddir="$ac_dir";;
985 *)
986   case "$ac_dir" in
987   .) ac_abs_builddir=`pwd`;;
988   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989   *) ac_abs_builddir=`pwd`/"$ac_dir";;
990   esac;;
991 esac
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
994 *)
995   case ${ac_top_builddir}. in
996   .) ac_abs_top_builddir=$ac_abs_builddir;;
997   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999   esac;;
1000 esac
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1003 *)
1004   case $ac_srcdir in
1005   .) ac_abs_srcdir=$ac_abs_builddir;;
1006   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008   esac;;
1009 esac
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1012 *)
1013   case $ac_top_srcdir in
1014   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1017   esac;;
1018 esac
1019
1020     cd $ac_dir
1021     # Check for guested configure; otherwise get Cygnus style configure.
1022     if test -f $ac_srcdir/configure.gnu; then
1023       echo
1024       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1025     elif test -f $ac_srcdir/configure; then
1026       echo
1027       $SHELL $ac_srcdir/configure  --help=recursive
1028     elif test -f $ac_srcdir/configure.ac ||
1029            test -f $ac_srcdir/configure.in; then
1030       echo
1031       $ac_configure --help
1032     else
1033       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1034     fi
1035     cd "$ac_popdir"
1036   done
1037 fi
1038
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1041   cat <<\_ACEOF
1042
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1046 _ACEOF
1047   exit 0
1048 fi
1049 exec 5>config.log
1050 cat >&5 <<_ACEOF
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1053
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59.  Invocation command line was
1056
1057   $ $0 $@
1058
1059 _ACEOF
1060 {
1061 cat <<_ASUNAME
1062 ## --------- ##
1063 ## Platform. ##
1064 ## --------- ##
1065
1066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1071
1072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1073 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1074
1075 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1076 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1078 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1079 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1080 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1081 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1082
1083 _ASUNAME
1084
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1086 for as_dir in $PATH
1087 do
1088   IFS=$as_save_IFS
1089   test -z "$as_dir" && as_dir=.
1090   echo "PATH: $as_dir"
1091 done
1092
1093 } >&5
1094
1095 cat >&5 <<_ACEOF
1096
1097
1098 ## ----------- ##
1099 ## Core tests. ##
1100 ## ----------- ##
1101
1102 _ACEOF
1103
1104
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1110 ac_configure_args=
1111 ac_configure_args0=
1112 ac_configure_args1=
1113 ac_sep=
1114 ac_must_keep_next=false
1115 for ac_pass in 1 2
1116 do
1117   for ac_arg
1118   do
1119     case $ac_arg in
1120     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122     | -silent | --silent | --silen | --sile | --sil)
1123       continue ;;
1124     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126     esac
1127     case $ac_pass in
1128     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1129     2)
1130       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131       if test $ac_must_keep_next = true; then
1132         ac_must_keep_next=false # Got value, back to normal.
1133       else
1134         case $ac_arg in
1135           *=* | --config-cache | -C | -disable-* | --disable-* \
1136           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138           | -with-* | --with-* | -without-* | --without-* | --x)
1139             case "$ac_configure_args0 " in
1140               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141             esac
1142             ;;
1143           -* ) ac_must_keep_next=true ;;
1144         esac
1145       fi
1146       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147       # Get rid of the leading space.
1148       ac_sep=" "
1149       ;;
1150     esac
1151   done
1152 done
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1155
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log.  We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close' the trap.
1161 trap 'exit_status=$?
1162   # Save into config.log some information that might help in debugging.
1163   {
1164     echo
1165
1166     cat <<\_ASBOX
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1170 _ASBOX
1171     echo
1172     # The following way of writing the cache mishandles newlines in values,
1173 {
1174   (set) 2>&1 |
1175     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176     *ac_space=\ *)
1177       sed -n \
1178         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1180       ;;
1181     *)
1182       sed -n \
1183         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1184       ;;
1185     esac;
1186 }
1187     echo
1188
1189     cat <<\_ASBOX
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1193 _ASBOX
1194     echo
1195     for ac_var in $ac_subst_vars
1196     do
1197       eval ac_val=$`echo $ac_var`
1198       echo "$ac_var='"'"'$ac_val'"'"'"
1199     done | sort
1200     echo
1201
1202     if test -n "$ac_subst_files"; then
1203       cat <<\_ASBOX
1204 ## ------------- ##
1205 ## Output files. ##
1206 ## ------------- ##
1207 _ASBOX
1208       echo
1209       for ac_var in $ac_subst_files
1210       do
1211         eval ac_val=$`echo $ac_var`
1212         echo "$ac_var='"'"'$ac_val'"'"'"
1213       done | sort
1214       echo
1215     fi
1216
1217     if test -s confdefs.h; then
1218       cat <<\_ASBOX
1219 ## ----------- ##
1220 ## confdefs.h. ##
1221 ## ----------- ##
1222 _ASBOX
1223       echo
1224       sed "/^$/d" confdefs.h | sort
1225       echo
1226     fi
1227     test "$ac_signal" != 0 &&
1228       echo "$as_me: caught signal $ac_signal"
1229     echo "$as_me: exit $exit_status"
1230   } >&5
1231   rm -f core *.core &&
1232   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233     exit $exit_status
1234      ' 0
1235 for ac_signal in 1 2 13 15; do
1236   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 done
1238 ac_signal=0
1239
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 echo >confdefs.h
1244
1245 # Predefined preprocessor variables.
1246
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 _ACEOF
1250
1251
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 _ACEOF
1255
1256
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 _ACEOF
1260
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 _ACEOF
1270
1271
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275   if test "x$prefix" != xNONE; then
1276     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1277   else
1278     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279   fi
1280 fi
1281 for ac_site_file in $CONFIG_SITE; do
1282   if test -r "$ac_site_file"; then
1283     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285     sed 's/^/| /' "$ac_site_file" >&5
1286     . "$ac_site_file"
1287   fi
1288 done
1289
1290 if test -r "$cache_file"; then
1291   # Some versions of bash will fail to source /dev/null (special
1292   # files actually), so we avoid doing that.
1293   if test -f "$cache_file"; then
1294     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1296     case $cache_file in
1297       [\\/]* | ?:[\\/]* ) . $cache_file;;
1298       *)                      . ./$cache_file;;
1299     esac
1300   fi
1301 else
1302   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1304   >$cache_file
1305 fi
1306
1307 # Check that the precious variables saved in the cache have kept the same
1308 # value.
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1312   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313   eval ac_new_set=\$ac_env_${ac_var}_set
1314   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315   eval ac_new_val="\$ac_env_${ac_var}_value"
1316   case $ac_old_set,$ac_new_set in
1317     set,)
1318       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1320       ac_cache_corrupted=: ;;
1321     ,set)
1322       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324       ac_cache_corrupted=: ;;
1325     ,);;
1326     *)
1327       if test "x$ac_old_val" != "x$ac_new_val"; then
1328         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1329 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1330         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1331 echo "$as_me:   former value:  $ac_old_val" >&2;}
1332         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1333 echo "$as_me:   current value: $ac_new_val" >&2;}
1334         ac_cache_corrupted=:
1335       fi;;
1336   esac
1337   # Pass precious variables to config.status.
1338   if test "$ac_new_set" = set; then
1339     case $ac_new_val in
1340     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1342     *) ac_arg=$ac_var=$ac_new_val ;;
1343     esac
1344     case " $ac_configure_args " in
1345       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1346       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347     esac
1348   fi
1349 done
1350 if $ac_cache_corrupted; then
1351   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1354 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355    { (exit 1); exit 1; }; }
1356 fi
1357
1358 ac_ext=c
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1384
1385
1386 #Set to 1 on a release branch
1387 is_release=
1388
1389 # Determine the host, build, and target systems
1390 ac_aux_dir=
1391 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1392   if test -f $ac_dir/install-sh; then
1393     ac_aux_dir=$ac_dir
1394     ac_install_sh="$ac_aux_dir/install-sh -c"
1395     break
1396   elif test -f $ac_dir/install.sh; then
1397     ac_aux_dir=$ac_dir
1398     ac_install_sh="$ac_aux_dir/install.sh -c"
1399     break
1400   elif test -f $ac_dir/shtool; then
1401     ac_aux_dir=$ac_dir
1402     ac_install_sh="$ac_aux_dir/shtool install -c"
1403     break
1404   fi
1405 done
1406 if test -z "$ac_aux_dir"; then
1407   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1409    { (exit 1); exit 1; }; }
1410 fi
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1414
1415 # Make sure we can run config.sub.
1416 $ac_config_sub sun4 >/dev/null 2>&1 ||
1417   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1418 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1419    { (exit 1); exit 1; }; }
1420
1421 echo "$as_me:$LINENO: checking build system type" >&5
1422 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1423 if test "${ac_cv_build+set}" = set; then
1424   echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426   ac_cv_build_alias=$build_alias
1427 test -z "$ac_cv_build_alias" &&
1428   ac_cv_build_alias=`$ac_config_guess`
1429 test -z "$ac_cv_build_alias" &&
1430   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1432    { (exit 1); exit 1; }; }
1433 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1434   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1436    { (exit 1); exit 1; }; }
1437
1438 fi
1439 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1440 echo "${ECHO_T}$ac_cv_build" >&6
1441 build=$ac_cv_build
1442 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445
1446
1447 echo "$as_me:$LINENO: checking host system type" >&5
1448 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1449 if test "${ac_cv_host+set}" = set; then
1450   echo $ECHO_N "(cached) $ECHO_C" >&6
1451 else
1452   ac_cv_host_alias=$host_alias
1453 test -z "$ac_cv_host_alias" &&
1454   ac_cv_host_alias=$ac_cv_build_alias
1455 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1456   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1458    { (exit 1); exit 1; }; }
1459
1460 fi
1461 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1462 echo "${ECHO_T}$ac_cv_host" >&6
1463 host=$ac_cv_host
1464 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1465 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1466 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467
1468
1469 echo "$as_me:$LINENO: checking target system type" >&5
1470 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1471 if test "${ac_cv_target+set}" = set; then
1472   echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474   ac_cv_target_alias=$target_alias
1475 test "x$ac_cv_target_alias" = "x" &&
1476   ac_cv_target_alias=$ac_cv_host_alias
1477 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1478   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1480    { (exit 1); exit 1; }; }
1481
1482 fi
1483 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1484 echo "${ECHO_T}$ac_cv_target" >&6
1485 target=$ac_cv_target
1486 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1487 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1488 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1489
1490
1491 # The aliases save the names the user supplied, while $host etc.
1492 # will get canonicalized.
1493 test -n "$target_alias" &&
1494   test "$program_prefix$program_suffix$program_transform_name" = \
1495     NONENONEs,x,x, &&
1496   program_prefix=${target_alias}-
1497
1498 # Determine the noncanonical target name, for directory use.
1499  case ${build_alias} in
1500   "") build_noncanonical=${build} ;;
1501   *) build_noncanonical=${build_alias} ;;
1502 esac
1503
1504  case ${host_alias} in
1505   "") host_noncanonical=${build_noncanonical} ;;
1506   *) host_noncanonical=${host_alias} ;;
1507 esac
1508
1509  case ${target_alias} in
1510   "") target_noncanonical=${host_noncanonical} ;;
1511   *) target_noncanonical=${target_alias} ;;
1512 esac
1513
1514
1515
1516
1517 # Determine the target- and build-specific subdirectories
1518   # Prefix 'build-' so this never conflicts with target_subdir.
1519 build_subdir="build-${build_noncanonical}"
1520 # Not really a subdirectory, but here for completeness.
1521 host_subdir=.
1522 # No prefix.
1523 target_subdir=${target_noncanonical}
1524
1525
1526 # Set program_transform_name
1527 test "$program_prefix" != NONE &&
1528   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1529 # Use a double $ so make ignores it.
1530 test "$program_suffix" != NONE &&
1531   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1532 # Double any \ or $.  echo might interpret backslashes.
1533 # By default was `s,x,x', remove it if useless.
1534 cat <<\_ACEOF >conftest.sed
1535 s/[\\$]/&&/g;s/;s,x,x,$//
1536 _ACEOF
1537 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1538 rm conftest.sed
1539
1540
1541 # Check for bogus environment variables.
1542 # Test if LIBRARY_PATH contains the notation for the current directory
1543 # since this would lead to problems installing/building glibc.
1544 # LIBRARY_PATH contains the current directory if one of the following
1545 # is true:
1546 # - one of the terminals (":" and ";") is the first or last sign
1547 # - two terminals occur directly after each other
1548 # - the path contains an element with a dot in it
1549 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1550 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1551 case ${LIBRARY_PATH} in
1552   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1553     library_path_setting="contains current directory"
1554     ;;
1555   *)
1556     library_path_setting="ok"
1557     ;;
1558 esac
1559 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1560 echo "${ECHO_T}$library_path_setting" >&6
1561 if test "$library_path_setting" != "ok"; then
1562 { { echo "$as_me:$LINENO: error:
1563 *** LIBRARY_PATH shouldn't contain the current directory when
1564 *** building gcc. Please change the environment variable
1565 *** and run configure again." >&5
1566 echo "$as_me: error:
1567 *** LIBRARY_PATH shouldn't contain the current directory when
1568 *** building gcc. Please change the environment variable
1569 *** and run configure again." >&2;}
1570    { (exit 1); exit 1; }; }
1571 fi
1572
1573 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1574 # since this would lead to problems installing/building glibc.
1575 # GCC_EXEC_PREFIX contains the current directory if one of the following
1576 # is true:
1577 # - one of the terminals (":" and ";") is the first or last sign
1578 # - two terminals occur directly after each other
1579 # - the path contains an element with a dot in it
1580 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1581 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1582 case ${GCC_EXEC_PREFIX} in
1583   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1584     gcc_exec_prefix_setting="contains current directory"
1585     ;;
1586   *)
1587     gcc_exec_prefix_setting="ok"
1588     ;;
1589 esac
1590 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1591 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1592 if test "$gcc_exec_prefix_setting" != "ok"; then
1593 { { echo "$as_me:$LINENO: error:
1594 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1595 *** building gcc. Please change the environment variable
1596 *** and run configure again." >&5
1597 echo "$as_me: error:
1598 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1599 *** building gcc. Please change the environment variable
1600 *** and run configure again." >&2;}
1601    { (exit 1); exit 1; }; }
1602 fi
1603
1604 # -----------
1605 # Directories
1606 # -----------
1607
1608 # Specify the local prefix
1609 local_prefix=
1610
1611 # Check whether --with-local-prefix or --without-local-prefix was given.
1612 if test "${with_local_prefix+set}" = set; then
1613   withval="$with_local_prefix"
1614   case "${withval}" in
1615 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1616 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1617    { (exit 1); exit 1; }; } ;;
1618 no)     ;;
1619 *)      local_prefix=$with_local_prefix ;;
1620 esac
1621 fi;
1622
1623 # Default local prefix if it is empty
1624 if test x$local_prefix = x; then
1625         local_prefix=/usr/local
1626 fi
1627
1628 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1629 # passed in by the toplevel make and thus we'd get different behavior
1630 # depending on where we built the sources.
1631 gcc_gxx_include_dir=
1632 # Specify the g++ header file directory
1633
1634 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1635 if test "${with_gxx_include_dir+set}" = set; then
1636   withval="$with_gxx_include_dir"
1637   case "${withval}" in
1638 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1639 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1640    { (exit 1); exit 1; }; } ;;
1641 no)     ;;
1642 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1643 esac
1644 fi;
1645
1646 if test x${gcc_gxx_include_dir} = x; then
1647   if test x${enable_version_specific_runtime_libs} = xyes; then
1648     gcc_gxx_include_dir='${libsubdir}/include/c++'
1649   else
1650     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1651     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1652   fi
1653 fi
1654
1655
1656 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1657 if test "${with_cpp_install_dir+set}" = set; then
1658   withval="$with_cpp_install_dir"
1659   if test x$withval = xyes; then
1660   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1661 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1662    { (exit 1); exit 1; }; }
1663 elif test x$withval != xno; then
1664   cpp_install_dir=$withval
1665 fi
1666 fi;
1667
1668 # We would like to our source tree to be readonly.  However when releases or
1669 # pre-releases are generated, the flex/bison generated files as well as the
1670 # various formats of manuals need to be included along with the rest of the
1671 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1672 # just that.
1673
1674 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1675 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1676     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1677 if test "${enable_generated_files_in_srcdir+set}" = set; then
1678   enableval="$enable_generated_files_in_srcdir"
1679   generated_files_in_srcdir=$enableval
1680 else
1681   generated_files_in_srcdir=no
1682 fi;
1683
1684 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1685 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1686
1687 if test "$generated_files_in_srcdir" = "yes"; then
1688   GENINSRC=''
1689 else
1690   GENINSRC='#'
1691 fi
1692
1693
1694 # -------------------
1695 # Find default linker
1696 # -------------------
1697
1698 # With GNU ld
1699
1700 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1701 if test "${with_gnu_ld+set}" = set; then
1702   withval="$with_gnu_ld"
1703   gnu_ld_flag="$with_gnu_ld"
1704 else
1705   gnu_ld_flag=no
1706 fi;
1707
1708 # With pre-defined ld
1709
1710 # Check whether --with-ld or --without-ld was given.
1711 if test "${with_ld+set}" = set; then
1712   withval="$with_ld"
1713   DEFAULT_LINKER="$with_ld"
1714 fi;
1715 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1716   if test ! -x "$DEFAULT_LINKER"; then
1717     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1718 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1719    { (exit 1); exit 1; }; }
1720   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1721     gnu_ld_flag=yes
1722   fi
1723
1724 cat >>confdefs.h <<_ACEOF
1725 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1726 _ACEOF
1727
1728 fi
1729
1730 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1731 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1732 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1733   if test x"$gnu_ld_flag" = x"no"; then
1734     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1735 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1736   else
1737     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1738 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1739   fi
1740 else
1741   echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1743 fi
1744
1745 # With demangler in GNU ld
1746
1747 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1748 if test "${with_demangler_in_ld+set}" = set; then
1749   withval="$with_demangler_in_ld"
1750   demangler_in_ld="$with_demangler_in_ld"
1751 else
1752   demangler_in_ld=no
1753 fi;
1754
1755 # ----------------------
1756 # Find default assembler
1757 # ----------------------
1758
1759 # With GNU as
1760
1761 # Check whether --with-gnu-as or --without-gnu-as was given.
1762 if test "${with_gnu_as+set}" = set; then
1763   withval="$with_gnu_as"
1764   gas_flag="$with_gnu_as"
1765 else
1766   gas_flag=no
1767 fi;
1768
1769
1770 # Check whether --with-as or --without-as was given.
1771 if test "${with_as+set}" = set; then
1772   withval="$with_as"
1773   DEFAULT_ASSEMBLER="$with_as"
1774 fi;
1775 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1776   if test ! -x "$DEFAULT_ASSEMBLER"; then
1777     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1778 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1779    { (exit 1); exit 1; }; }
1780   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1781     gas_flag=yes
1782   fi
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1786 _ACEOF
1787
1788 fi
1789
1790 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1791 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1792 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1793   if test x"$gas_flag" = x"no"; then
1794     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1795 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1796   else
1797     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1798 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1799   fi
1800 else
1801   echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1803 fi
1804
1805 # ---------------
1806 # Find C compiler
1807 # ---------------
1808
1809 # If a non-executable a.out is present (e.g. created by GNU as above even if
1810 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1811 # file, even when creating an executable, so an execution test fails.
1812 # Remove possible default executable files to avoid this.
1813 #
1814 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1815 # Autoconf includes it.
1816 rm -f a.out a.exe b.out
1817
1818 # Find the native compiler
1819 ac_ext=c
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1824 if test -n "$ac_tool_prefix"; then
1825   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1826 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830   echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832   if test -n "$CC"; then
1833   ac_cv_prog_CC="$CC" # Let the user override the test.
1834 else
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1837 do
1838   IFS=$as_save_IFS
1839   test -z "$as_dir" && as_dir=.
1840   for ac_exec_ext in '' $ac_executable_extensions; do
1841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844     break 2
1845   fi
1846 done
1847 done
1848
1849 fi
1850 fi
1851 CC=$ac_cv_prog_CC
1852 if test -n "$CC"; then
1853   echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1855 else
1856   echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1858 fi
1859
1860 fi
1861 if test -z "$ac_cv_prog_CC"; then
1862   ac_ct_CC=$CC
1863   # Extract the first word of "gcc", so it can be a program name with args.
1864 set dummy gcc; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868   echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870   if test -n "$ac_ct_CC"; then
1871   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876   IFS=$as_save_IFS
1877   test -z "$as_dir" && as_dir=.
1878   for ac_exec_ext in '' $ac_executable_extensions; do
1879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880     ac_cv_prog_ac_ct_CC="gcc"
1881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882     break 2
1883   fi
1884 done
1885 done
1886
1887 fi
1888 fi
1889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890 if test -n "$ac_ct_CC"; then
1891   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892 echo "${ECHO_T}$ac_ct_CC" >&6
1893 else
1894   echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 fi
1897
1898   CC=$ac_ct_CC
1899 else
1900   CC="$ac_cv_prog_CC"
1901 fi
1902
1903 if test -z "$CC"; then
1904   if test -n "$ac_tool_prefix"; then
1905   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1906 set dummy ${ac_tool_prefix}cc; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_CC+set}" = set; then
1910   echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912   if test -n "$CC"; then
1913   ac_cv_prog_CC="$CC" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918   IFS=$as_save_IFS
1919   test -z "$as_dir" && as_dir=.
1920   for ac_exec_ext in '' $ac_executable_extensions; do
1921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922     ac_cv_prog_CC="${ac_tool_prefix}cc"
1923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924     break 2
1925   fi
1926 done
1927 done
1928
1929 fi
1930 fi
1931 CC=$ac_cv_prog_CC
1932 if test -n "$CC"; then
1933   echo "$as_me:$LINENO: result: $CC" >&5
1934 echo "${ECHO_T}$CC" >&6
1935 else
1936   echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938 fi
1939
1940 fi
1941 if test -z "$ac_cv_prog_CC"; then
1942   ac_ct_CC=$CC
1943   # Extract the first word of "cc", so it can be a program name with args.
1944 set dummy cc; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948   echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950   if test -n "$ac_ct_CC"; then
1951   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956   IFS=$as_save_IFS
1957   test -z "$as_dir" && as_dir=.
1958   for ac_exec_ext in '' $ac_executable_extensions; do
1959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960     ac_cv_prog_ac_ct_CC="cc"
1961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962     break 2
1963   fi
1964 done
1965 done
1966
1967 fi
1968 fi
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1973 else
1974   echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1976 fi
1977
1978   CC=$ac_ct_CC
1979 else
1980   CC="$ac_cv_prog_CC"
1981 fi
1982
1983 fi
1984 if test -z "$CC"; then
1985   # Extract the first word of "cc", so it can be a program name with args.
1986 set dummy cc; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990   echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992   if test -n "$CC"; then
1993   ac_cv_prog_CC="$CC" # Let the user override the test.
1994 else
1995   ac_prog_rejected=no
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999   IFS=$as_save_IFS
2000   test -z "$as_dir" && as_dir=.
2001   for ac_exec_ext in '' $ac_executable_extensions; do
2002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2004        ac_prog_rejected=yes
2005        continue
2006      fi
2007     ac_cv_prog_CC="cc"
2008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009     break 2
2010   fi
2011 done
2012 done
2013
2014 if test $ac_prog_rejected = yes; then
2015   # We found a bogon in the path, so make sure we never use it.
2016   set dummy $ac_cv_prog_CC
2017   shift
2018   if test $# != 0; then
2019     # We chose a different compiler from the bogus one.
2020     # However, it has the same basename, so the bogon will be chosen
2021     # first if we set CC to just the basename; use the full file name.
2022     shift
2023     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2024   fi
2025 fi
2026 fi
2027 fi
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030   echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2032 else
2033   echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037 fi
2038 if test -z "$CC"; then
2039   if test -n "$ac_tool_prefix"; then
2040   for ac_prog in cl
2041   do
2042     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_CC+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   if test -n "$CC"; then
2050   ac_cv_prog_CC="$CC" # Let the user override the test.
2051 else
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   for ac_exec_ext in '' $ac_executable_extensions; do
2058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061     break 2
2062   fi
2063 done
2064 done
2065
2066 fi
2067 fi
2068 CC=$ac_cv_prog_CC
2069 if test -n "$CC"; then
2070   echo "$as_me:$LINENO: result: $CC" >&5
2071 echo "${ECHO_T}$CC" >&6
2072 else
2073   echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2075 fi
2076
2077     test -n "$CC" && break
2078   done
2079 fi
2080 if test -z "$CC"; then
2081   ac_ct_CC=$CC
2082   for ac_prog in cl
2083 do
2084   # Extract the first word of "$ac_prog", so it can be a program name with args.
2085 set dummy $ac_prog; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   if test -n "$ac_ct_CC"; then
2092   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097   IFS=$as_save_IFS
2098   test -z "$as_dir" && as_dir=.
2099   for ac_exec_ext in '' $ac_executable_extensions; do
2100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101     ac_cv_prog_ac_ct_CC="$ac_prog"
2102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103     break 2
2104   fi
2105 done
2106 done
2107
2108 fi
2109 fi
2110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111 if test -n "$ac_ct_CC"; then
2112   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113 echo "${ECHO_T}$ac_ct_CC" >&6
2114 else
2115   echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2117 fi
2118
2119   test -n "$ac_ct_CC" && break
2120 done
2121
2122   CC=$ac_ct_CC
2123 fi
2124
2125 fi
2126
2127
2128 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2129 See \`config.log' for more details." >&5
2130 echo "$as_me: error: no acceptable C compiler found in \$PATH
2131 See \`config.log' for more details." >&2;}
2132    { (exit 1); exit 1; }; }
2133
2134 # Provide some information about the compiler.
2135 echo "$as_me:$LINENO:" \
2136      "checking for C compiler version" >&5
2137 ac_compiler=`set X $ac_compile; echo $2`
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2139   (eval $ac_compiler --version </dev/null >&5) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2144   (eval $ac_compiler -v </dev/null >&5) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2149   (eval $ac_compiler -V </dev/null >&5) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }
2153
2154 cat >conftest.$ac_ext <<_ACEOF
2155 /* confdefs.h.  */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h.  */
2160
2161 int
2162 main ()
2163 {
2164
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 ac_clean_files_save=$ac_clean_files
2170 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2171 # Try to create an executable without -o first, disregard a.out.
2172 # It will help us diagnose broken compilers, and finding out an intuition
2173 # of exeext.
2174 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2175 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2176 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2177 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2178   (eval $ac_link_default) 2>&5
2179   ac_status=$?
2180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181   (exit $ac_status); }; then
2182   # Find the output, starting from the most likely.  This scheme is
2183 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2184 # resort.
2185
2186 # Be careful to initialize this variable, since it used to be cached.
2187 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2188 ac_cv_exeext=
2189 # b.out is created by i960 compilers.
2190 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2191 do
2192   test -f "$ac_file" || continue
2193   case $ac_file in
2194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2195         ;;
2196     conftest.$ac_ext )
2197         # This is the source file.
2198         ;;
2199     [ab].out )
2200         # We found the default executable, but exeext='' is most
2201         # certainly right.
2202         break;;
2203     *.* )
2204         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205         # FIXME: I believe we export ac_cv_exeext for Libtool,
2206         # but it would be cool to find out if it's true.  Does anybody
2207         # maintain Libtool? --akim.
2208         export ac_cv_exeext
2209         break;;
2210     * )
2211         break;;
2212   esac
2213 done
2214 else
2215   echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2219 See \`config.log' for more details." >&5
2220 echo "$as_me: error: C compiler cannot create executables
2221 See \`config.log' for more details." >&2;}
2222    { (exit 77); exit 77; }; }
2223 fi
2224
2225 ac_exeext=$ac_cv_exeext
2226 echo "$as_me:$LINENO: result: $ac_file" >&5
2227 echo "${ECHO_T}$ac_file" >&6
2228
2229 # Check the compiler produces executables we can run.  If not, either
2230 # the compiler is broken, or we cross compile.
2231 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2232 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2233 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2234 # If not cross compiling, check that we can run a simple program.
2235 if test "$cross_compiling" != yes; then
2236   if { ac_try='./$ac_file'
2237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238   (eval $ac_try) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; }; then
2242     cross_compiling=no
2243   else
2244     if test "$cross_compiling" = maybe; then
2245         cross_compiling=yes
2246     else
2247         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&2;}
2253    { (exit 1); exit 1; }; }
2254     fi
2255   fi
2256 fi
2257 echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6
2259
2260 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261 ac_clean_files=$ac_clean_files_save
2262 # Check the compiler produces executables we can run.  If not, either
2263 # the compiler is broken, or we cross compile.
2264 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2266 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267 echo "${ECHO_T}$cross_compiling" >&6
2268
2269 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2272   (eval $ac_link) 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }; then
2276   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2277 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2278 # work properly (i.e., refer to `conftest.exe'), while it won't with
2279 # `rm'.
2280 for ac_file in conftest.exe conftest conftest.*; do
2281   test -f "$ac_file" || continue
2282   case $ac_file in
2283     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2284     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285           export ac_cv_exeext
2286           break;;
2287     * ) break;;
2288   esac
2289 done
2290 else
2291   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&2;}
2295    { (exit 1); exit 1; }; }
2296 fi
2297
2298 rm -f conftest$ac_cv_exeext
2299 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2300 echo "${ECHO_T}$ac_cv_exeext" >&6
2301
2302 rm -f conftest.$ac_ext
2303 EXEEXT=$ac_cv_exeext
2304 ac_exeext=$EXEEXT
2305 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2306 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2307 if test "${ac_cv_objext+set}" = set; then
2308   echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310   cat >conftest.$ac_ext <<_ACEOF
2311 /* confdefs.h.  */
2312 _ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h.  */
2316
2317 int
2318 main ()
2319 {
2320
2321   ;
2322   return 0;
2323 }
2324 _ACEOF
2325 rm -f conftest.o conftest.obj
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327   (eval $ac_compile) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; then
2331   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2332   case $ac_file in
2333     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2334     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335        break;;
2336   esac
2337 done
2338 else
2339   echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2341
2342 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&2;}
2346    { (exit 1); exit 1; }; }
2347 fi
2348
2349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2350 fi
2351 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352 echo "${ECHO_T}$ac_cv_objext" >&6
2353 OBJEXT=$ac_cv_objext
2354 ac_objext=$OBJEXT
2355 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2357 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   cat >conftest.$ac_ext <<_ACEOF
2361 /* confdefs.h.  */
2362 _ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h.  */
2366
2367 int
2368 main ()
2369 {
2370 #ifndef __GNUC__
2371        choke me
2372 #endif
2373
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380   (eval $ac_compile) 2>conftest.er1
2381   ac_status=$?
2382   grep -v '^ *+' conftest.er1 >conftest.err
2383   rm -f conftest.er1
2384   cat conftest.err >&5
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); } &&
2387          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389   (eval $ac_try) 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); }; } &&
2393          { ac_try='test -s conftest.$ac_objext'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; }; then
2399   ac_compiler_gnu=yes
2400 else
2401   echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 ac_compiler_gnu=no
2405 fi
2406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408
2409 fi
2410 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2411 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2412 GCC=`test $ac_compiler_gnu = yes && echo yes`
2413 ac_test_CFLAGS=${CFLAGS+set}
2414 ac_save_CFLAGS=$CFLAGS
2415 CFLAGS="-g"
2416 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2417 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2418 if test "${ac_cv_prog_cc_g+set}" = set; then
2419   echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421   cat >conftest.$ac_ext <<_ACEOF
2422 /* confdefs.h.  */
2423 _ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h.  */
2427
2428 int
2429 main ()
2430 {
2431
2432   ;
2433   return 0;
2434 }
2435 _ACEOF
2436 rm -f conftest.$ac_objext
2437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438   (eval $ac_compile) 2>conftest.er1
2439   ac_status=$?
2440   grep -v '^ *+' conftest.er1 >conftest.err
2441   rm -f conftest.er1
2442   cat conftest.err >&5
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); } &&
2445          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447   (eval $ac_try) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; } &&
2451          { ac_try='test -s conftest.$ac_objext'
2452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453   (eval $ac_try) 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); }; }; then
2457   ac_cv_prog_cc_g=yes
2458 else
2459   echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 ac_cv_prog_cc_g=no
2463 fi
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 fi
2466 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2467 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2468 if test "$ac_test_CFLAGS" = set; then
2469   CFLAGS=$ac_save_CFLAGS
2470 elif test $ac_cv_prog_cc_g = yes; then
2471   if test "$GCC" = yes; then
2472     CFLAGS="-g -O2"
2473   else
2474     CFLAGS="-g"
2475   fi
2476 else
2477   if test "$GCC" = yes; then
2478     CFLAGS="-O2"
2479   else
2480     CFLAGS=
2481   fi
2482 fi
2483 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2484 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2485 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   ac_cv_prog_cc_stdc=no
2489 ac_save_CC=$CC
2490 cat >conftest.$ac_ext <<_ACEOF
2491 /* confdefs.h.  */
2492 _ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h.  */
2496 #include <stdarg.h>
2497 #include <stdio.h>
2498 #include <sys/types.h>
2499 #include <sys/stat.h>
2500 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2501 struct buf { int x; };
2502 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2503 static char *e (p, i)
2504      char **p;
2505      int i;
2506 {
2507   return p[i];
2508 }
2509 static char *f (char * (*g) (char **, int), char **p, ...)
2510 {
2511   char *s;
2512   va_list v;
2513   va_start (v,p);
2514   s = g (p, va_arg (v,int));
2515   va_end (v);
2516   return s;
2517 }
2518
2519 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2520    function prototypes and stuff, but not '\xHH' hex character constants.
2521    These don't provoke an error unfortunately, instead are silently treated
2522    as 'x'.  The following induces an error, until -std1 is added to get
2523    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2524    array size at least.  It's necessary to write '\x00'==0 to get something
2525    that's true only with -std1.  */
2526 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2527
2528 int test (int i, double x);
2529 struct s1 {int (*f) (int a);};
2530 struct s2 {int (*f) (double a);};
2531 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2532 int argc;
2533 char **argv;
2534 int
2535 main ()
2536 {
2537 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 # Don't try gcc -ansi; that turns off useful extensions and
2543 # breaks some systems' header files.
2544 # AIX                   -qlanglvl=ansi
2545 # Ultrix and OSF/1      -std1
2546 # HP-UX 10.20 and later -Ae
2547 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2548 # SVR4                  -Xc -D__EXTENSIONS__
2549 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2550 do
2551   CC="$ac_save_CC $ac_arg"
2552   rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554   (eval $ac_compile) 2>conftest.er1
2555   ac_status=$?
2556   grep -v '^ *+' conftest.er1 >conftest.err
2557   rm -f conftest.er1
2558   cat conftest.err >&5
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); } &&
2561          { ac_try='test -z "$ac_c_werror_flag"                   || 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"                   || test ! -s conftest.err'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; } &&
2621          { ac_try='test -s conftest.$ac_objext'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; }; then
2627   for ac_declaration in \
2628    '' \
2629    'extern "C" void std::exit (int) throw (); using std::exit;' \
2630    'extern "C" void std::exit (int); using std::exit;' \
2631    'extern "C" void exit (int) throw ();' \
2632    'extern "C" void exit (int);' \
2633    'void exit (int);'
2634 do
2635   cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641 $ac_declaration
2642 #include <stdlib.h>
2643 int
2644 main ()
2645 {
2646 exit (42);
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653   (eval $ac_compile) 2>conftest.er1
2654   ac_status=$?
2655   grep -v '^ *+' conftest.er1 >conftest.err
2656   rm -f conftest.er1
2657   cat conftest.err >&5
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); } &&
2660          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; } &&
2666          { ac_try='test -s conftest.$ac_objext'
2667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668   (eval $ac_try) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; }; then
2672   :
2673 else
2674   echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 continue
2678 fi
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680   cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h.  */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h.  */
2686 $ac_declaration
2687 int
2688 main ()
2689 {
2690 exit (42);
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697   (eval $ac_compile) 2>conftest.er1
2698   ac_status=$?
2699   grep -v '^ *+' conftest.er1 >conftest.err
2700   rm -f conftest.er1
2701   cat conftest.err >&5
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); } &&
2704          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706   (eval $ac_try) 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); }; } &&
2710          { ac_try='test -s conftest.$ac_objext'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; }; then
2716   break
2717 else
2718   echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2720
2721 fi
2722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723 done
2724 rm -f conftest*
2725 if test -n "$ac_declaration"; then
2726   echo '#ifdef __cplusplus' >>confdefs.h
2727   echo $ac_declaration      >>confdefs.h
2728   echo '#endif'             >>confdefs.h
2729 fi
2730
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735 fi
2736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2737 ac_ext=c
2738 ac_cpp='$CPP $CPPFLAGS'
2739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742
2743 if test "x$CC" != xcc; then
2744   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2745 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2746 else
2747   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2748 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2749 fi
2750 set dummy $CC; ac_cc=`echo $2 |
2751                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2752 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2753   echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755   cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h.  */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h.  */
2761
2762 int
2763 main ()
2764 {
2765
2766   ;
2767   return 0;
2768 }
2769 _ACEOF
2770 # Make sure it works both with $CC and with simple cc.
2771 # We do the test twice because some compilers refuse to overwrite an
2772 # existing .o file with -o, though they will create one.
2773 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2774 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); } &&
2779    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); };
2784 then
2785   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2786   if test "x$CC" != xcc; then
2787     # Test first that cc exists at all.
2788     if { ac_try='cc -c conftest.$ac_ext >&5'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; }; then
2794       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2795       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); } &&
2800          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); };
2805       then
2806         # cc works too.
2807         :
2808       else
2809         # cc exists but doesn't like -o.
2810         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2811       fi
2812     fi
2813   fi
2814 else
2815   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2816 fi
2817 rm -f conftest*
2818
2819 fi
2820 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2821   echo "$as_me:$LINENO: result: yes" >&5
2822 echo "${ECHO_T}yes" >&6
2823 else
2824   echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6
2826
2827 cat >>confdefs.h <<\_ACEOF
2828 #define NO_MINUS_C_MINUS_O 1
2829 _ACEOF
2830
2831 fi
2832
2833 # expand $ac_aux_dir to an absolute path
2834 am_aux_dir=`cd $ac_aux_dir && pwd`
2835
2836 # FIXME: we rely on the cache variable name because
2837 # there is no other way.
2838 set dummy $CC
2839 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2840 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2841    # Losing compiler, so override with the script.
2842    # FIXME: It is wrong to rewrite CC.
2843    # But if we don't then we get into trouble of one sort or another.
2844    # A longer-term fix would be to have automake use am__CC in this case,
2845    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2846    CC="$am_aux_dir/compile $CC"
2847 fi
2848
2849 # autoconf is lame and doesn't give us any substitution variable for this.
2850 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2851   NO_MINUS_C_MINUS_O=yes
2852 else
2853   OUTPUT_OPTION='-o $@'
2854 fi
2855
2856
2857
2858 # -------------------------
2859 # Check C compiler features
2860 # -------------------------
2861
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2868 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2869 # On Suns, sometimes $CPP names a directory.
2870 if test -n "$CPP" && test -d "$CPP"; then
2871   CPP=
2872 fi
2873 if test -z "$CPP"; then
2874   if test "${ac_cv_prog_CPP+set}" = set; then
2875   echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877       # Double quotes because CPP needs to be expanded
2878     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2879     do
2880       ac_preproc_ok=false
2881 for ac_c_preproc_warn_flag in '' yes
2882 do
2883   # Use a header file that comes with gcc, so configuring glibc
2884   # with a fresh cross-compiler works.
2885   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2886   # <limits.h> exists even on freestanding compilers.
2887   # On the NeXT, cc -E runs the code through the compiler's parser,
2888   # not just through cpp. "Syntax error" is here to catch this case.
2889   cat >conftest.$ac_ext <<_ACEOF
2890 /* confdefs.h.  */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h.  */
2895 #ifdef __STDC__
2896 # include <limits.h>
2897 #else
2898 # include <assert.h>
2899 #endif
2900                      Syntax error
2901 _ACEOF
2902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2903   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2904   ac_status=$?
2905   grep -v '^ *+' conftest.er1 >conftest.err
2906   rm -f conftest.er1
2907   cat conftest.err >&5
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); } >/dev/null; then
2910   if test -s conftest.err; then
2911     ac_cpp_err=$ac_c_preproc_warn_flag
2912     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2913   else
2914     ac_cpp_err=
2915   fi
2916 else
2917   ac_cpp_err=yes
2918 fi
2919 if test -z "$ac_cpp_err"; then
2920   :
2921 else
2922   echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2924
2925   # Broken: fails on valid input.
2926 continue
2927 fi
2928 rm -f conftest.err conftest.$ac_ext
2929
2930   # OK, works on sane cases.  Now check whether non-existent headers
2931   # can be detected and how.
2932   cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938 #include <ac_nonexistent.h>
2939 _ACEOF
2940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2942   ac_status=$?
2943   grep -v '^ *+' conftest.er1 >conftest.err
2944   rm -f conftest.er1
2945   cat conftest.err >&5
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); } >/dev/null; then
2948   if test -s conftest.err; then
2949     ac_cpp_err=$ac_c_preproc_warn_flag
2950     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2951   else
2952     ac_cpp_err=
2953   fi
2954 else
2955   ac_cpp_err=yes
2956 fi
2957 if test -z "$ac_cpp_err"; then
2958   # Broken: success on invalid input.
2959 continue
2960 else
2961   echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964   # Passes both tests.
2965 ac_preproc_ok=:
2966 break
2967 fi
2968 rm -f conftest.err conftest.$ac_ext
2969
2970 done
2971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2972 rm -f conftest.err conftest.$ac_ext
2973 if $ac_preproc_ok; then
2974   break
2975 fi
2976
2977     done
2978     ac_cv_prog_CPP=$CPP
2979
2980 fi
2981   CPP=$ac_cv_prog_CPP
2982 else
2983   ac_cv_prog_CPP=$CPP
2984 fi
2985 echo "$as_me:$LINENO: result: $CPP" >&5
2986 echo "${ECHO_T}$CPP" >&6
2987 ac_preproc_ok=false
2988 for ac_c_preproc_warn_flag in '' yes
2989 do
2990   # Use a header file that comes with gcc, so configuring glibc
2991   # with a fresh cross-compiler works.
2992   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2993   # <limits.h> exists even on freestanding compilers.
2994   # On the NeXT, cc -E runs the code through the compiler's parser,
2995   # not just through cpp. "Syntax error" is here to catch this case.
2996   cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h.  */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h.  */
3002 #ifdef __STDC__
3003 # include <limits.h>
3004 #else
3005 # include <assert.h>
3006 #endif
3007                      Syntax error
3008 _ACEOF
3009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3011   ac_status=$?
3012   grep -v '^ *+' conftest.er1 >conftest.err
3013   rm -f conftest.er1
3014   cat conftest.err >&5
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); } >/dev/null; then
3017   if test -s conftest.err; then
3018     ac_cpp_err=$ac_c_preproc_warn_flag
3019     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3020   else
3021     ac_cpp_err=
3022   fi
3023 else
3024   ac_cpp_err=yes
3025 fi
3026 if test -z "$ac_cpp_err"; then
3027   :
3028 else
3029   echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3031
3032   # Broken: fails on valid input.
3033 continue
3034 fi
3035 rm -f conftest.err conftest.$ac_ext
3036
3037   # OK, works on sane cases.  Now check whether non-existent headers
3038   # can be detected and how.
3039   cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045 #include <ac_nonexistent.h>
3046 _ACEOF
3047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3049   ac_status=$?
3050   grep -v '^ *+' conftest.er1 >conftest.err
3051   rm -f conftest.er1
3052   cat conftest.err >&5
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } >/dev/null; then
3055   if test -s conftest.err; then
3056     ac_cpp_err=$ac_c_preproc_warn_flag
3057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3058   else
3059     ac_cpp_err=
3060   fi
3061 else
3062   ac_cpp_err=yes
3063 fi
3064 if test -z "$ac_cpp_err"; then
3065   # Broken: success on invalid input.
3066 continue
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071   # Passes both tests.
3072 ac_preproc_ok=:
3073 break
3074 fi
3075 rm -f conftest.err conftest.$ac_ext
3076
3077 done
3078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079 rm -f conftest.err conftest.$ac_ext
3080 if $ac_preproc_ok; then
3081   :
3082 else
3083   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3084 See \`config.log' for more details." >&5
3085 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3086 See \`config.log' for more details." >&2;}
3087    { (exit 1); exit 1; }; }
3088 fi
3089
3090 ac_ext=c
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095
3096
3097 echo "$as_me:$LINENO: checking for inline" >&5
3098 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3099 if test "${ac_cv_c_inline+set}" = set; then
3100   echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102   ac_cv_c_inline=no
3103 for ac_kw in inline __inline__ __inline; do
3104   cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h.  */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h.  */
3110 #ifndef __cplusplus
3111 typedef int foo_t;
3112 static $ac_kw foo_t static_foo () {return 0; }
3113 $ac_kw foo_t foo () {return 0; }
3114 #endif
3115
3116 _ACEOF
3117 rm -f conftest.$ac_objext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3119   (eval $ac_compile) 2>conftest.er1
3120   ac_status=$?
3121   grep -v '^ *+' conftest.er1 >conftest.err
3122   rm -f conftest.er1
3123   cat conftest.err >&5
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); } &&
3126          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128   (eval $ac_try) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; } &&
3132          { ac_try='test -s conftest.$ac_objext'
3133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134   (eval $ac_try) 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }; }; then
3138   ac_cv_c_inline=$ac_kw; break
3139 else
3140   echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 fi
3144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3145 done
3146
3147 fi
3148 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3149 echo "${ECHO_T}$ac_cv_c_inline" >&6
3150
3151
3152 case $ac_cv_c_inline in
3153   inline | yes) ;;
3154   *)
3155     case $ac_cv_c_inline in
3156       no) ac_val=;;
3157       *) ac_val=$ac_cv_c_inline;;
3158     esac
3159     cat >>confdefs.h <<_ACEOF
3160 #ifndef __cplusplus
3161 #define inline $ac_val
3162 #endif
3163 _ACEOF
3164     ;;
3165 esac
3166
3167
3168 echo "$as_me:$LINENO: checking for long long int" >&5
3169 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3170 if test "${ac_cv_c_long_long+set}" = set; then
3171   echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173   cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3179
3180 int
3181 main ()
3182 {
3183 long long int i;
3184   ;
3185   return 0;
3186 }
3187 _ACEOF
3188 rm -f conftest.$ac_objext
3189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190   (eval $ac_compile) 2>conftest.er1
3191   ac_status=$?
3192   grep -v '^ *+' conftest.er1 >conftest.err
3193   rm -f conftest.er1
3194   cat conftest.err >&5
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); } &&
3197          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199   (eval $ac_try) 2>&5
3200   ac_status=$?
3201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); }; } &&
3203          { ac_try='test -s conftest.$ac_objext'
3204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205   (eval $ac_try) 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }; }; then
3209   ac_cv_c_long_long=yes
3210 else
3211   echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214 ac_cv_c_long_long=no
3215 fi
3216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3217 fi
3218 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3219 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3220   if test $ac_cv_c_long_long = yes; then
3221
3222 cat >>confdefs.h <<\_ACEOF
3223 #define HAVE_LONG_LONG 1
3224 _ACEOF
3225
3226   fi
3227 echo "$as_me:$LINENO: checking for __int64" >&5
3228 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3229 if test "${ac_cv_c___int64+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238
3239 int
3240 main ()
3241 {
3242 __int64 i;
3243   ;
3244   return 0;
3245 }
3246 _ACEOF
3247 rm -f conftest.$ac_objext
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249   (eval $ac_compile) 2>conftest.er1
3250   ac_status=$?
3251   grep -v '^ *+' conftest.er1 >conftest.err
3252   rm -f conftest.er1
3253   cat conftest.err >&5
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); } &&
3256          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258   (eval $ac_try) 2>&5
3259   ac_status=$?
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }; } &&
3262          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3268   ac_cv_c___int64=yes
3269 else
3270   echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273 ac_cv_c___int64=no
3274 fi
3275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3276 fi
3277 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3278 echo "${ECHO_T}$ac_cv_c___int64" >&6
3279   if test $ac_cv_c___int64 = yes; then
3280
3281 cat >>confdefs.h <<\_ACEOF
3282 #define HAVE___INT64 1
3283 _ACEOF
3284
3285   fi
3286
3287
3288 # sizeof(char) is 1 by definition.
3289
3290 echo "$as_me:$LINENO: checking for egrep" >&5
3291 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3292 if test "${ac_cv_prog_egrep+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3296     then ac_cv_prog_egrep='grep -E'
3297     else ac_cv_prog_egrep='egrep'
3298     fi
3299 fi
3300 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3301 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3302  EGREP=$ac_cv_prog_egrep
3303
3304
3305 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3306 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3307 if test "${ac_cv_header_stdc+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310   cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h.  */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h.  */
3316 #include <stdlib.h>
3317 #include <stdarg.h>
3318 #include <string.h>
3319 #include <float.h>
3320
3321 int
3322 main ()
3323 {
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 rm -f conftest.$ac_objext
3330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3331   (eval $ac_compile) 2>conftest.er1
3332   ac_status=$?
3333   grep -v '^ *+' conftest.er1 >conftest.err
3334   rm -f conftest.er1
3335   cat conftest.err >&5
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); } &&
3338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340   (eval $ac_try) 2>&5
3341   ac_status=$?
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); }; } &&
3344          { ac_try='test -s conftest.$ac_objext'
3345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346   (eval $ac_try) 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }; }; then
3350   ac_cv_header_stdc=yes
3351 else
3352   echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355 ac_cv_header_stdc=no
3356 fi
3357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3358
3359 if test $ac_cv_header_stdc = yes; then
3360   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3361   cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h.  */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h.  */
3367 #include <string.h>
3368
3369 _ACEOF
3370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3371   $EGREP "memchr" >/dev/null 2>&1; then
3372   :
3373 else
3374   ac_cv_header_stdc=no
3375 fi
3376 rm -f conftest*
3377
3378 fi
3379
3380 if test $ac_cv_header_stdc = yes; then
3381   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3382   cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388 #include <stdlib.h>
3389
3390 _ACEOF
3391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3392   $EGREP "free" >/dev/null 2>&1; then
3393   :
3394 else
3395   ac_cv_header_stdc=no
3396 fi
3397 rm -f conftest*
3398
3399 fi
3400
3401 if test $ac_cv_header_stdc = yes; then
3402   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3403   if test "$cross_compiling" = yes; then
3404   :
3405 else
3406   cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412 #include <ctype.h>
3413 #if ((' ' & 0x0FF) == 0x020)
3414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3416 #else
3417 # define ISLOWER(c) \
3418                    (('a' <= (c) && (c) <= 'i') \
3419                      || ('j' <= (c) && (c) <= 'r') \
3420                      || ('s' <= (c) && (c) <= 'z'))
3421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3422 #endif
3423
3424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3425 int
3426 main ()
3427 {
3428   int i;
3429   for (i = 0; i < 256; i++)
3430     if (XOR (islower (i), ISLOWER (i))
3431         || toupper (i) != TOUPPER (i))
3432       exit(2);
3433   exit (0);
3434 }
3435 _ACEOF
3436 rm -f conftest$ac_exeext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438   (eval $ac_link) 2>&5
3439   ac_status=$?
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443   (eval $ac_try) 2>&5
3444   ac_status=$?
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); }; }; then
3447   :
3448 else
3449   echo "$as_me: program exited with status $ac_status" >&5
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 ( exit $ac_status )
3454 ac_cv_header_stdc=no
3455 fi
3456 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3457 fi
3458 fi
3459 fi
3460 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3461 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3462 if test $ac_cv_header_stdc = yes; then
3463
3464 cat >>confdefs.h <<\_ACEOF
3465 #define STDC_HEADERS 1
3466 _ACEOF
3467
3468 fi
3469
3470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3481                   inttypes.h stdint.h unistd.h
3482 do
3483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3484 echo "$as_me:$LINENO: checking for $ac_header" >&5
3485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3487   echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489   cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h.  */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h.  */
3495 $ac_includes_default
3496
3497 #include <$ac_header>
3498 _ACEOF
3499 rm -f conftest.$ac_objext
3500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501   (eval $ac_compile) 2>conftest.er1
3502   ac_status=$?
3503   grep -v '^ *+' conftest.er1 >conftest.err
3504   rm -f conftest.er1
3505   cat conftest.err >&5
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); } &&
3508          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510   (eval $ac_try) 2>&5
3511   ac_status=$?
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); }; } &&
3514          { ac_try='test -s conftest.$ac_objext'
3515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516   (eval $ac_try) 2>&5
3517   ac_status=$?
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); }; }; then
3520   eval "$as_ac_Header=yes"
3521 else
3522   echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 eval "$as_ac_Header=no"
3526 fi
3527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3528 fi
3529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3532   cat >>confdefs.h <<_ACEOF
3533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3534 _ACEOF
3535
3536 fi
3537
3538 done
3539
3540
3541 echo "$as_me:$LINENO: checking for void *" >&5
3542 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3543 if test "${ac_cv_type_void_p+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h.  */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h.  */
3552 $ac_includes_default
3553 int
3554 main ()
3555 {
3556 if ((void * *) 0)
3557   return 0;
3558 if (sizeof (void *))
3559   return 0;
3560   ;
3561   return 0;
3562 }
3563 _ACEOF
3564 rm -f conftest.$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566   (eval $ac_compile) 2>conftest.er1
3567   ac_status=$?
3568   grep -v '^ *+' conftest.er1 >conftest.err
3569   rm -f conftest.er1
3570   cat conftest.err >&5
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); } &&
3573          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575   (eval $ac_try) 2>&5
3576   ac_status=$?
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); }; } &&
3579          { ac_try='test -s conftest.$ac_objext'
3580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581   (eval $ac_try) 2>&5
3582   ac_status=$?
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); }; }; then
3585   ac_cv_type_void_p=yes
3586 else
3587   echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590 ac_cv_type_void_p=no
3591 fi
3592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3593 fi
3594 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3595 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3596
3597 echo "$as_me:$LINENO: checking size of void *" >&5
3598 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3599 if test "${ac_cv_sizeof_void_p+set}" = set; then
3600   echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602   if test "$ac_cv_type_void_p" = yes; then
3603   # The cast to unsigned long works around a bug in the HP C Compiler
3604   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3605   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3606   # This bug is HP SR number 8606223364.
3607   if test "$cross_compiling" = yes; then
3608   # Depending upon the size, compute the lo and hi bounds.
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h.  */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h.  */
3615 $ac_includes_default
3616 int
3617 main ()
3618 {
3619 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3620 test_array [0] = 0
3621
3622   ;
3623   return 0;
3624 }
3625 _ACEOF
3626 rm -f conftest.$ac_objext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628   (eval $ac_compile) 2>conftest.er1
3629   ac_status=$?
3630   grep -v '^ *+' conftest.er1 >conftest.err
3631   rm -f conftest.er1
3632   cat conftest.err >&5
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); } &&
3635          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637   (eval $ac_try) 2>&5
3638   ac_status=$?
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); }; } &&
3641          { ac_try='test -s conftest.$ac_objext'
3642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643   (eval $ac_try) 2>&5
3644   ac_status=$?
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); }; }; then
3647   ac_lo=0 ac_mid=0
3648   while :; do
3649     cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h.  */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h.  */
3655 $ac_includes_default
3656 int
3657 main ()
3658 {
3659 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3660 test_array [0] = 0
3661
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668   (eval $ac_compile) 2>conftest.er1
3669   ac_status=$?
3670   grep -v '^ *+' conftest.er1 >conftest.err
3671   rm -f conftest.er1
3672   cat conftest.err >&5
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); } &&
3675          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677   (eval $ac_try) 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); }; } &&
3681          { ac_try='test -s conftest.$ac_objext'
3682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683   (eval $ac_try) 2>&5
3684   ac_status=$?
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); }; }; then
3687   ac_hi=$ac_mid; break
3688 else
3689   echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3691
3692 ac_lo=`expr $ac_mid + 1`
3693                     if test $ac_lo -le $ac_mid; then
3694                       ac_lo= ac_hi=
3695                       break
3696                     fi
3697                     ac_mid=`expr 2 '*' $ac_mid + 1`
3698 fi
3699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3700   done
3701 else
3702   echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711 $ac_includes_default
3712 int
3713 main ()
3714 {
3715 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3716 test_array [0] = 0
3717
3718   ;
3719   return 0;
3720 }
3721 _ACEOF
3722 rm -f conftest.$ac_objext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3724   (eval $ac_compile) 2>conftest.er1
3725   ac_status=$?
3726   grep -v '^ *+' conftest.er1 >conftest.err
3727   rm -f conftest.er1
3728   cat conftest.err >&5
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); } &&
3731          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733   (eval $ac_try) 2>&5
3734   ac_status=$?
3735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736   (exit $ac_status); }; } &&
3737          { ac_try='test -s conftest.$ac_objext'
3738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739   (eval $ac_try) 2>&5
3740   ac_status=$?
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); }; }; then
3743   ac_hi=-1 ac_mid=-1
3744   while :; do
3745     cat >conftest.$ac_ext <<_ACEOF
3746 /* confdefs.h.  */
3747 _ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h.  */
3751 $ac_includes_default
3752 int
3753 main ()
3754 {
3755 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3756 test_array [0] = 0
3757
3758   ;
3759   return 0;
3760 }
3761 _ACEOF
3762 rm -f conftest.$ac_objext
3763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3764   (eval $ac_compile) 2>conftest.er1
3765   ac_status=$?
3766   grep -v '^ *+' conftest.er1 >conftest.err
3767   rm -f conftest.er1
3768   cat conftest.err >&5
3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); } &&
3771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773   (eval $ac_try) 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); }; } &&
3777          { ac_try='test -s conftest.$ac_objext'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; }; then
3783   ac_lo=$ac_mid; break
3784 else
3785   echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 ac_hi=`expr '(' $ac_mid ')' - 1`
3789                        if test $ac_mid -le $ac_hi; then
3790                          ac_lo= ac_hi=
3791                          break
3792                        fi
3793                        ac_mid=`expr 2 '*' $ac_mid`
3794 fi
3795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3796   done
3797 else
3798   echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3800
3801 ac_lo= ac_hi=
3802 fi
3803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3804 fi
3805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3806 # Binary search between lo and hi bounds.
3807 while test "x$ac_lo" != "x$ac_hi"; do
3808   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3809   cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h.  */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h.  */
3815 $ac_includes_default
3816 int
3817 main ()
3818 {
3819 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3820 test_array [0] = 0
3821
3822   ;
3823   return 0;
3824 }
3825 _ACEOF
3826 rm -f conftest.$ac_objext
3827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828   (eval $ac_compile) 2>conftest.er1
3829   ac_status=$?
3830   grep -v '^ *+' conftest.er1 >conftest.err
3831   rm -f conftest.er1
3832   cat conftest.err >&5
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); } &&
3835          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837   (eval $ac_try) 2>&5
3838   ac_status=$?
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); }; } &&
3841          { ac_try='test -s conftest.$ac_objext'
3842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843   (eval $ac_try) 2>&5
3844   ac_status=$?
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); }; }; then
3847   ac_hi=$ac_mid
3848 else
3849   echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3851
3852 ac_lo=`expr '(' $ac_mid ')' + 1`
3853 fi
3854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3855 done
3856 case $ac_lo in
3857 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3858 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3859 See \`config.log' for more details." >&5
3860 echo "$as_me: error: cannot compute sizeof (void *), 77
3861 See \`config.log' for more details." >&2;}
3862    { (exit 1); exit 1; }; } ;;
3863 esac
3864 else
3865   if test "$cross_compiling" = yes; then
3866   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3867 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3868    { (exit 1); exit 1; }; }
3869 else
3870   cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h.  */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h.  */
3876 $ac_includes_default
3877 long longval () { return (long) (sizeof (void *)); }
3878 unsigned long ulongval () { return (long) (sizeof (void *)); }
3879 #include <stdio.h>
3880 #include <stdlib.h>
3881 int
3882 main ()
3883 {
3884
3885   FILE *f = fopen ("conftest.val", "w");
3886   if (! f)
3887     exit (1);
3888   if (((long) (sizeof (void *))) < 0)
3889     {
3890       long i = longval ();
3891       if (i != ((long) (sizeof (void *))))
3892         exit (1);
3893       fprintf (f, "%ld\n", i);
3894     }
3895   else
3896     {
3897       unsigned long i = ulongval ();
3898       if (i != ((long) (sizeof (void *))))
3899         exit (1);
3900       fprintf (f, "%lu\n", i);
3901     }
3902   exit (ferror (f) || fclose (f) != 0);
3903
3904   ;
3905   return 0;
3906 }
3907 _ACEOF
3908 rm -f conftest$ac_exeext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910   (eval $ac_link) 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915   (eval $ac_try) 2>&5
3916   ac_status=$?
3917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918   (exit $ac_status); }; }; then
3919   ac_cv_sizeof_void_p=`cat conftest.val`
3920 else
3921   echo "$as_me: program exited with status $ac_status" >&5
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3924
3925 ( exit $ac_status )
3926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3927 See \`config.log' for more details." >&5
3928 echo "$as_me: error: cannot compute sizeof (void *), 77
3929 See \`config.log' for more details." >&2;}
3930    { (exit 1); exit 1; }; }
3931 fi
3932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3933 fi
3934 fi
3935 rm -f conftest.val
3936 else
3937   ac_cv_sizeof_void_p=0
3938 fi
3939 fi
3940 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3941 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3942 cat >>confdefs.h <<_ACEOF
3943 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3944 _ACEOF
3945
3946
3947 echo "$as_me:$LINENO: checking for short" >&5
3948 echo $ECHO_N "checking for short... $ECHO_C" >&6
3949 if test "${ac_cv_type_short+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   cat >conftest.$ac_ext <<_ACEOF
3953 /* confdefs.h.  */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h.  */
3958 $ac_includes_default
3959 int
3960 main ()
3961 {
3962 if ((short *) 0)
3963   return 0;
3964 if (sizeof (short))
3965   return 0;
3966   ;
3967   return 0;
3968 }
3969 _ACEOF
3970 rm -f conftest.$ac_objext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3972   (eval $ac_compile) 2>conftest.er1
3973   ac_status=$?
3974   grep -v '^ *+' conftest.er1 >conftest.err
3975   rm -f conftest.er1
3976   cat conftest.err >&5
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); } &&
3979          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981   (eval $ac_try) 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); }; } &&
3985          { ac_try='test -s conftest.$ac_objext'
3986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987   (eval $ac_try) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }; }; then
3991   ac_cv_type_short=yes
3992 else
3993   echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3995
3996 ac_cv_type_short=no
3997 fi
3998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3999 fi
4000 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4001 echo "${ECHO_T}$ac_cv_type_short" >&6
4002
4003 echo "$as_me:$LINENO: checking size of short" >&5
4004 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4005 if test "${ac_cv_sizeof_short+set}" = set; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008   if test "$ac_cv_type_short" = yes; then
4009   # The cast to unsigned long works around a bug in the HP C Compiler
4010   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4011   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4012   # This bug is HP SR number 8606223364.
4013   if test "$cross_compiling" = yes; then
4014   # Depending upon the size, compute the lo and hi bounds.
4015 cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021 $ac_includes_default
4022 int
4023 main ()
4024 {
4025 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4026 test_array [0] = 0
4027
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034   (eval $ac_compile) 2>conftest.er1
4035   ac_status=$?
4036   grep -v '^ *+' conftest.er1 >conftest.err
4037   rm -f conftest.er1
4038   cat conftest.err >&5
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); } &&
4041          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043   (eval $ac_try) 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; } &&
4047          { ac_try='test -s conftest.$ac_objext'
4048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049   (eval $ac_try) 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); }; }; then
4053   ac_lo=0 ac_mid=0
4054   while :; do
4055     cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h.  */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h.  */
4061 $ac_includes_default
4062 int
4063 main ()
4064 {
4065 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4066 test_array [0] = 0
4067
4068   ;
4069   return 0;
4070 }
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074   (eval $ac_compile) 2>conftest.er1
4075   ac_status=$?
4076   grep -v '^ *+' conftest.er1 >conftest.err
4077   rm -f conftest.er1
4078   cat conftest.err >&5
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); } &&
4081          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083   (eval $ac_try) 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }; } &&
4087          { ac_try='test -s conftest.$ac_objext'
4088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089   (eval $ac_try) 2>&5
4090   ac_status=$?
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); }; }; then
4093   ac_hi=$ac_mid; break
4094 else
4095   echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4097
4098 ac_lo=`expr $ac_mid + 1`
4099                     if test $ac_lo -le $ac_mid; then
4100                       ac_lo= ac_hi=
4101                       break
4102                     fi
4103                     ac_mid=`expr 2 '*' $ac_mid + 1`
4104 fi
4105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4106   done
4107 else
4108   echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4110
4111 cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h.  */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h.  */
4117 $ac_includes_default
4118 int
4119 main ()
4120 {
4121 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4122 test_array [0] = 0
4123
4124   ;
4125   return 0;
4126 }
4127 _ACEOF
4128 rm -f conftest.$ac_objext
4129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4130   (eval $ac_compile) 2>conftest.er1
4131   ac_status=$?
4132   grep -v '^ *+' conftest.er1 >conftest.err
4133   rm -f conftest.er1
4134   cat conftest.err >&5
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); } &&
4137          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139   (eval $ac_try) 2>&5
4140   ac_status=$?
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); }; } &&
4143          { ac_try='test -s conftest.$ac_objext'
4144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145   (eval $ac_try) 2>&5
4146   ac_status=$?
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); }; }; then
4149   ac_hi=-1 ac_mid=-1
4150   while :; do
4151     cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157 $ac_includes_default
4158 int
4159 main ()
4160 {
4161 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4162 test_array [0] = 0
4163
4164   ;
4165   return 0;
4166 }
4167 _ACEOF
4168 rm -f conftest.$ac_objext
4169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4170   (eval $ac_compile) 2>conftest.er1
4171   ac_status=$?
4172   grep -v '^ *+' conftest.er1 >conftest.err
4173   rm -f conftest.er1
4174   cat conftest.err >&5
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); } &&
4177          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179   (eval $ac_try) 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; } &&
4183          { ac_try='test -s conftest.$ac_objext'
4184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185   (eval $ac_try) 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }; }; then
4189   ac_lo=$ac_mid; break
4190 else
4191   echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4193
4194 ac_hi=`expr '(' $ac_mid ')' - 1`
4195                        if test $ac_mid -le $ac_hi; then
4196                          ac_lo= ac_hi=
4197                          break
4198                        fi
4199                        ac_mid=`expr 2 '*' $ac_mid`
4200 fi
4201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4202   done
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207 ac_lo= ac_hi=
4208 fi
4209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210 fi
4211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4212 # Binary search between lo and hi bounds.
4213 while test "x$ac_lo" != "x$ac_hi"; do
4214   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4215   cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h.  */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h.  */
4221 $ac_includes_default
4222 int
4223 main ()
4224 {
4225 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4226 test_array [0] = 0
4227
4228   ;
4229   return 0;
4230 }
4231 _ACEOF
4232 rm -f conftest.$ac_objext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234   (eval $ac_compile) 2>conftest.er1
4235   ac_status=$?
4236   grep -v '^ *+' conftest.er1 >conftest.err
4237   rm -f conftest.er1
4238   cat conftest.err >&5
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); } &&
4241          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243   (eval $ac_try) 2>&5
4244   ac_status=$?
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); }; } &&
4247          { ac_try='test -s conftest.$ac_objext'
4248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249   (eval $ac_try) 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; }; then
4253   ac_hi=$ac_mid
4254 else
4255   echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 ac_lo=`expr '(' $ac_mid ')' + 1`
4259 fi
4260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4261 done
4262 case $ac_lo in
4263 ?*) ac_cv_sizeof_short=$ac_lo;;
4264 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4265 See \`config.log' for more details." >&5
4266 echo "$as_me: error: cannot compute sizeof (short), 77
4267 See \`config.log' for more details." >&2;}
4268    { (exit 1); exit 1; }; } ;;
4269 esac
4270 else
4271   if test "$cross_compiling" = yes; then
4272   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4273 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4274    { (exit 1); exit 1; }; }
4275 else
4276   cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h.  */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h.  */
4282 $ac_includes_default
4283 long longval () { return (long) (sizeof (short)); }
4284 unsigned long ulongval () { return (long) (sizeof (short)); }
4285 #include <stdio.h>
4286 #include <stdlib.h>
4287 int
4288 main ()
4289 {
4290
4291   FILE *f = fopen ("conftest.val", "w");
4292   if (! f)
4293     exit (1);
4294   if (((long) (sizeof (short))) < 0)
4295     {
4296       long i = longval ();
4297       if (i != ((long) (sizeof (short))))
4298         exit (1);
4299       fprintf (f, "%ld\n", i);
4300     }
4301   else
4302     {
4303       unsigned long i = ulongval ();
4304       if (i != ((long) (sizeof (short))))
4305         exit (1);
4306       fprintf (f, "%lu\n", i);
4307     }
4308   exit (ferror (f) || fclose (f) != 0);
4309
4310   ;
4311   return 0;
4312 }
4313 _ACEOF
4314 rm -f conftest$ac_exeext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4316   (eval $ac_link) 2>&5
4317   ac_status=$?
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321   (eval $ac_try) 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); }; }; then
4325   ac_cv_sizeof_short=`cat conftest.val`
4326 else
4327   echo "$as_me: program exited with status $ac_status" >&5
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 ( exit $ac_status )
4332 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4333 See \`config.log' for more details." >&5
4334 echo "$as_me: error: cannot compute sizeof (short), 77
4335 See \`config.log' for more details." >&2;}
4336    { (exit 1); exit 1; }; }
4337 fi
4338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4339 fi
4340 fi
4341 rm -f conftest.val
4342 else
4343   ac_cv_sizeof_short=0
4344 fi
4345 fi
4346 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4347 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4348 cat >>confdefs.h <<_ACEOF
4349 #define SIZEOF_SHORT $ac_cv_sizeof_short
4350 _ACEOF
4351
4352
4353 echo "$as_me:$LINENO: checking for int" >&5
4354 echo $ECHO_N "checking for int... $ECHO_C" >&6
4355 if test "${ac_cv_type_int+set}" = set; then
4356   echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358   cat >conftest.$ac_ext <<_ACEOF
4359 /* confdefs.h.  */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h.  */
4364 $ac_includes_default
4365 int
4366 main ()
4367 {
4368 if ((int *) 0)
4369   return 0;
4370 if (sizeof (int))
4371   return 0;
4372   ;
4373   return 0;
4374 }
4375 _ACEOF
4376 rm -f conftest.$ac_objext
4377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4378   (eval $ac_compile) 2>conftest.er1
4379   ac_status=$?
4380   grep -v '^ *+' conftest.er1 >conftest.err
4381   rm -f conftest.er1
4382   cat conftest.err >&5
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); } &&
4385          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387   (eval $ac_try) 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; } &&
4391          { ac_try='test -s conftest.$ac_objext'
4392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393   (eval $ac_try) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; }; then
4397   ac_cv_type_int=yes
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 ac_cv_type_int=no
4403 fi
4404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4405 fi
4406 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4407 echo "${ECHO_T}$ac_cv_type_int" >&6
4408
4409 echo "$as_me:$LINENO: checking size of int" >&5
4410 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4411 if test "${ac_cv_sizeof_int+set}" = set; then
4412   echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414   if test "$ac_cv_type_int" = yes; then
4415   # The cast to unsigned long works around a bug in the HP C Compiler
4416   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4417   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4418   # This bug is HP SR number 8606223364.
4419   if test "$cross_compiling" = yes; then
4420   # Depending upon the size, compute the lo and hi bounds.
4421 cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h.  */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h.  */
4427 $ac_includes_default
4428 int
4429 main ()
4430 {
4431 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4432 test_array [0] = 0
4433
4434   ;
4435   return 0;
4436 }
4437 _ACEOF
4438 rm -f conftest.$ac_objext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440   (eval $ac_compile) 2>conftest.er1
4441   ac_status=$?
4442   grep -v '^ *+' conftest.er1 >conftest.err
4443   rm -f conftest.er1
4444   cat conftest.err >&5
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); } &&
4447          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449   (eval $ac_try) 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); }; } &&
4453          { ac_try='test -s conftest.$ac_objext'
4454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455   (eval $ac_try) 2>&5
4456   ac_status=$?
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); }; }; then
4459   ac_lo=0 ac_mid=0
4460   while :; do
4461     cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h.  */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h.  */
4467 $ac_includes_default
4468 int
4469 main ()
4470 {
4471 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4472 test_array [0] = 0
4473
4474   ;
4475   return 0;
4476 }
4477 _ACEOF
4478 rm -f conftest.$ac_objext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4480   (eval $ac_compile) 2>conftest.er1
4481   ac_status=$?
4482   grep -v '^ *+' conftest.er1 >conftest.err
4483   rm -f conftest.er1
4484   cat conftest.err >&5
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); } &&
4487          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489   (eval $ac_try) 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; } &&
4493          { ac_try='test -s conftest.$ac_objext'
4494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495   (eval $ac_try) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }; }; then
4499   ac_hi=$ac_mid; break
4500 else
4501   echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504 ac_lo=`expr $ac_mid + 1`
4505                     if test $ac_lo -le $ac_mid; then
4506                       ac_lo= ac_hi=
4507                       break
4508                     fi
4509                     ac_mid=`expr 2 '*' $ac_mid + 1`
4510 fi
4511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4512   done
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517 cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h.  */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h.  */
4523 $ac_includes_default
4524 int
4525 main ()
4526 {
4527 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4528 test_array [0] = 0
4529
4530   ;
4531   return 0;
4532 }
4533 _ACEOF
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536   (eval $ac_compile) 2>conftest.er1
4537   ac_status=$?
4538   grep -v '^ *+' conftest.er1 >conftest.err
4539   rm -f conftest.er1
4540   cat conftest.err >&5
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); } &&
4543          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545   (eval $ac_try) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }; } &&
4549          { ac_try='test -s conftest.$ac_objext'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; }; then
4555   ac_hi=-1 ac_mid=-1
4556   while :; do
4557     cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h.  */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h.  */
4563 $ac_includes_default
4564 int
4565 main ()
4566 {
4567 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4568 test_array [0] = 0
4569
4570   ;
4571   return 0;
4572 }
4573 _ACEOF
4574 rm -f conftest.$ac_objext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576   (eval $ac_compile) 2>conftest.er1
4577   ac_status=$?
4578   grep -v '^ *+' conftest.er1 >conftest.err
4579   rm -f conftest.er1
4580   cat conftest.err >&5
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); } &&
4583          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585   (eval $ac_try) 2>&5
4586   ac_status=$?
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); }; } &&
4589          { ac_try='test -s conftest.$ac_objext'
4590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591   (eval $ac_try) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); }; }; then
4595   ac_lo=$ac_mid; break
4596 else
4597   echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4599
4600 ac_hi=`expr '(' $ac_mid ')' - 1`
4601                        if test $ac_mid -le $ac_hi; then
4602                          ac_lo= ac_hi=
4603                          break
4604                        fi
4605                        ac_mid=`expr 2 '*' $ac_mid`
4606 fi
4607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4608   done
4609 else
4610   echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4612
4613 ac_lo= ac_hi=
4614 fi
4615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4616 fi
4617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618 # Binary search between lo and hi bounds.
4619 while test "x$ac_lo" != "x$ac_hi"; do
4620   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4621   cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h.  */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h.  */
4627 $ac_includes_default
4628 int
4629 main ()
4630 {
4631 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4632 test_array [0] = 0
4633
4634   ;
4635   return 0;
4636 }
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640   (eval $ac_compile) 2>conftest.er1
4641   ac_status=$?
4642   grep -v '^ *+' conftest.er1 >conftest.err
4643   rm -f conftest.er1
4644   cat conftest.err >&5
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); } &&
4647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649   (eval $ac_try) 2>&5
4650   ac_status=$?
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); }; } &&
4653          { ac_try='test -s conftest.$ac_objext'
4654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655   (eval $ac_try) 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); }; }; then
4659   ac_hi=$ac_mid
4660 else
4661   echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 ac_lo=`expr '(' $ac_mid ')' + 1`
4665 fi
4666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4667 done
4668 case $ac_lo in
4669 ?*) ac_cv_sizeof_int=$ac_lo;;
4670 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4671 See \`config.log' for more details." >&5
4672 echo "$as_me: error: cannot compute sizeof (int), 77
4673 See \`config.log' for more details." >&2;}
4674    { (exit 1); exit 1; }; } ;;
4675 esac
4676 else
4677   if test "$cross_compiling" = yes; then
4678   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4679 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4680    { (exit 1); exit 1; }; }
4681 else
4682   cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h.  */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h.  */
4688 $ac_includes_default
4689 long longval () { return (long) (sizeof (int)); }
4690 unsigned long ulongval () { return (long) (sizeof (int)); }
4691 #include <stdio.h>
4692 #include <stdlib.h>
4693 int
4694 main ()
4695 {
4696
4697   FILE *f = fopen ("conftest.val", "w");
4698   if (! f)
4699     exit (1);
4700   if (((long) (sizeof (int))) < 0)
4701     {
4702       long i = longval ();
4703       if (i != ((long) (sizeof (int))))
4704         exit (1);
4705       fprintf (f, "%ld\n", i);
4706     }
4707   else
4708     {
4709       unsigned long i = ulongval ();
4710       if (i != ((long) (sizeof (int))))
4711         exit (1);
4712       fprintf (f, "%lu\n", i);
4713     }
4714   exit (ferror (f) || fclose (f) != 0);
4715
4716   ;
4717   return 0;
4718 }
4719 _ACEOF
4720 rm -f conftest$ac_exeext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722   (eval $ac_link) 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727   (eval $ac_try) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); }; }; then
4731   ac_cv_sizeof_int=`cat conftest.val`
4732 else
4733   echo "$as_me: program exited with status $ac_status" >&5
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 ( exit $ac_status )
4738 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4739 See \`config.log' for more details." >&5
4740 echo "$as_me: error: cannot compute sizeof (int), 77
4741 See \`config.log' for more details." >&2;}
4742    { (exit 1); exit 1; }; }
4743 fi
4744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4745 fi
4746 fi
4747 rm -f conftest.val
4748 else
4749   ac_cv_sizeof_int=0
4750 fi
4751 fi
4752 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4753 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4754 cat >>confdefs.h <<_ACEOF
4755 #define SIZEOF_INT $ac_cv_sizeof_int
4756 _ACEOF
4757
4758
4759 echo "$as_me:$LINENO: checking for long" >&5
4760 echo $ECHO_N "checking for long... $ECHO_C" >&6
4761 if test "${ac_cv_type_long+set}" = set; then
4762   echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764   cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h.  */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h.  */
4770 $ac_includes_default
4771 int
4772 main ()
4773 {
4774 if ((long *) 0)
4775   return 0;
4776 if (sizeof (long))
4777   return 0;
4778   ;
4779   return 0;
4780 }
4781 _ACEOF
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784   (eval $ac_compile) 2>conftest.er1
4785   ac_status=$?
4786   grep -v '^ *+' conftest.er1 >conftest.err
4787   rm -f conftest.er1
4788   cat conftest.err >&5
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); } &&
4791          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793   (eval $ac_try) 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }; } &&
4797          { ac_try='test -s conftest.$ac_objext'
4798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799   (eval $ac_try) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; }; then
4803   ac_cv_type_long=yes
4804 else
4805   echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 ac_cv_type_long=no
4809 fi
4810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4811 fi
4812 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4813 echo "${ECHO_T}$ac_cv_type_long" >&6
4814
4815 echo "$as_me:$LINENO: checking size of long" >&5
4816 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4817 if test "${ac_cv_sizeof_long+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   if test "$ac_cv_type_long" = yes; then
4821   # The cast to unsigned long works around a bug in the HP C Compiler
4822   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4823   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4824   # This bug is HP SR number 8606223364.
4825   if test "$cross_compiling" = yes; then
4826   # Depending upon the size, compute the lo and hi bounds.
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h.  */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h.  */
4833 $ac_includes_default
4834 int
4835 main ()
4836 {
4837 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4838 test_array [0] = 0
4839
4840   ;
4841   return 0;
4842 }
4843 _ACEOF
4844 rm -f conftest.$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846   (eval $ac_compile) 2>conftest.er1
4847   ac_status=$?
4848   grep -v '^ *+' conftest.er1 >conftest.err
4849   rm -f conftest.er1
4850   cat conftest.err >&5
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); } &&
4853          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855   (eval $ac_try) 2>&5
4856   ac_status=$?
4857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); }; } &&
4859          { ac_try='test -s conftest.$ac_objext'
4860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861   (eval $ac_try) 2>&5
4862   ac_status=$?
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); }; }; then
4865   ac_lo=0 ac_mid=0
4866   while :; do
4867     cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h.  */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h.  */
4873 $ac_includes_default
4874 int
4875 main ()
4876 {
4877 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4878 test_array [0] = 0
4879
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886   (eval $ac_compile) 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } &&
4893          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
4899          { ac_try='test -s conftest.$ac_objext'
4900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901   (eval $ac_try) 2>&5
4902   ac_status=$?
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); }; }; then
4905   ac_hi=$ac_mid; break
4906 else
4907   echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4909
4910 ac_lo=`expr $ac_mid + 1`
4911                     if test $ac_lo -le $ac_mid; then
4912                       ac_lo= ac_hi=
4913                       break
4914                     fi
4915                     ac_mid=`expr 2 '*' $ac_mid + 1`
4916 fi
4917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4918   done
4919 else
4920   echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4922
4923 cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h.  */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h.  */
4929 $ac_includes_default
4930 int
4931 main ()
4932 {
4933 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4934 test_array [0] = 0
4935
4936   ;
4937   return 0;
4938 }
4939 _ACEOF
4940 rm -f conftest.$ac_objext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4942   (eval $ac_compile) 2>conftest.er1
4943   ac_status=$?
4944   grep -v '^ *+' conftest.er1 >conftest.err
4945   rm -f conftest.er1
4946   cat conftest.err >&5
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); } &&
4949          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951   (eval $ac_try) 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); }; } &&
4955          { ac_try='test -s conftest.$ac_objext'
4956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957   (eval $ac_try) 2>&5
4958   ac_status=$?
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); }; }; then
4961   ac_hi=-1 ac_mid=-1
4962   while :; do
4963     cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h.  */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h.  */
4969 $ac_includes_default
4970 int
4971 main ()
4972 {
4973 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4974 test_array [0] = 0
4975
4976   ;
4977   return 0;
4978 }
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982   (eval $ac_compile) 2>conftest.er1
4983   ac_status=$?
4984   grep -v '^ *+' conftest.er1 >conftest.err
4985   rm -f conftest.er1
4986   cat conftest.err >&5
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); } &&
4989          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991   (eval $ac_try) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; } &&
4995          { ac_try='test -s conftest.$ac_objext'
4996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997   (eval $ac_try) 2>&5
4998   ac_status=$?
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); }; }; then
5001   ac_lo=$ac_mid; break
5002 else
5003   echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 ac_hi=`expr '(' $ac_mid ')' - 1`
5007                        if test $ac_mid -le $ac_hi; then
5008                          ac_lo= ac_hi=
5009                          break
5010                        fi
5011                        ac_mid=`expr 2 '*' $ac_mid`
5012 fi
5013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5014   done
5015 else
5016   echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 ac_lo= ac_hi=
5020 fi
5021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5022 fi
5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5024 # Binary search between lo and hi bounds.
5025 while test "x$ac_lo" != "x$ac_hi"; do
5026   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5027   cat >conftest.$ac_ext <<_ACEOF
5028 /* confdefs.h.  */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h.  */
5033 $ac_includes_default
5034 int
5035 main ()
5036 {
5037 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5038 test_array [0] = 0
5039
5040   ;
5041   return 0;
5042 }
5043 _ACEOF
5044 rm -f conftest.$ac_objext
5045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5046   (eval $ac_compile) 2>conftest.er1
5047   ac_status=$?
5048   grep -v '^ *+' conftest.er1 >conftest.err
5049   rm -f conftest.er1
5050   cat conftest.err >&5
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); } &&
5053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055   (eval $ac_try) 2>&5
5056   ac_status=$?
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); }; } &&
5059          { ac_try='test -s conftest.$ac_objext'
5060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061   (eval $ac_try) 2>&5
5062   ac_status=$?
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); }; }; then
5065   ac_hi=$ac_mid
5066 else
5067   echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5069
5070 ac_lo=`expr '(' $ac_mid ')' + 1`
5071 fi
5072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5073 done
5074 case $ac_lo in
5075 ?*) ac_cv_sizeof_long=$ac_lo;;
5076 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5077 See \`config.log' for more details." >&5
5078 echo "$as_me: error: cannot compute sizeof (long), 77
5079 See \`config.log' for more details." >&2;}
5080    { (exit 1); exit 1; }; } ;;
5081 esac
5082 else
5083   if test "$cross_compiling" = yes; then
5084   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5085 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5086    { (exit 1); exit 1; }; }
5087 else
5088   cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h.  */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h.  */
5094 $ac_includes_default
5095 long longval () { return (long) (sizeof (long)); }
5096 unsigned long ulongval () { return (long) (sizeof (long)); }
5097 #include <stdio.h>
5098 #include <stdlib.h>
5099 int
5100 main ()
5101 {
5102
5103   FILE *f = fopen ("conftest.val", "w");
5104   if (! f)
5105     exit (1);
5106   if (((long) (sizeof (long))) < 0)
5107     {
5108       long i = longval ();
5109       if (i != ((long) (sizeof (long))))
5110         exit (1);
5111       fprintf (f, "%ld\n", i);
5112     }
5113   else
5114     {
5115       unsigned long i = ulongval ();
5116       if (i != ((long) (sizeof (long))))
5117         exit (1);
5118       fprintf (f, "%lu\n", i);
5119     }
5120   exit (ferror (f) || fclose (f) != 0);
5121
5122   ;
5123   return 0;
5124 }
5125 _ACEOF
5126 rm -f conftest$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128   (eval $ac_link) 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133   (eval $ac_try) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); }; }; then
5137   ac_cv_sizeof_long=`cat conftest.val`
5138 else
5139   echo "$as_me: program exited with status $ac_status" >&5
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143 ( exit $ac_status )
5144 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5145 See \`config.log' for more details." >&5
5146 echo "$as_me: error: cannot compute sizeof (long), 77
5147 See \`config.log' for more details." >&2;}
5148    { (exit 1); exit 1; }; }
5149 fi
5150 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5151 fi
5152 fi
5153 rm -f conftest.val
5154 else
5155   ac_cv_sizeof_long=0
5156 fi
5157 fi
5158 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5159 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5160 cat >>confdefs.h <<_ACEOF
5161 #define SIZEOF_LONG $ac_cv_sizeof_long
5162 _ACEOF
5163
5164
5165 if test $ac_cv_c_long_long = yes; then
5166   echo "$as_me:$LINENO: checking for long long" >&5
5167 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5168 if test "${ac_cv_type_long_long+set}" = set; then
5169   echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171   cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h.  */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h.  */
5177 $ac_includes_default
5178 int
5179 main ()
5180 {
5181 if ((long long *) 0)
5182   return 0;
5183 if (sizeof (long long))
5184   return 0;
5185   ;
5186   return 0;
5187 }
5188 _ACEOF
5189 rm -f conftest.$ac_objext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5191   (eval $ac_compile) 2>conftest.er1
5192   ac_status=$?
5193   grep -v '^ *+' conftest.er1 >conftest.err
5194   rm -f conftest.er1
5195   cat conftest.err >&5
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); } &&
5198          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200   (eval $ac_try) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); }; } &&
5204          { ac_try='test -s conftest.$ac_objext'
5205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206   (eval $ac_try) 2>&5
5207   ac_status=$?
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }; }; then
5210   ac_cv_type_long_long=yes
5211 else
5212   echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 ac_cv_type_long_long=no
5216 fi
5217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5218 fi
5219 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5220 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5221
5222 echo "$as_me:$LINENO: checking size of long long" >&5
5223 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5224 if test "${ac_cv_sizeof_long_long+set}" = set; then
5225   echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227   if test "$ac_cv_type_long_long" = yes; then
5228   # The cast to unsigned long works around a bug in the HP C Compiler
5229   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5230   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5231   # This bug is HP SR number 8606223364.
5232   if test "$cross_compiling" = yes; then
5233   # Depending upon the size, compute the lo and hi bounds.
5234 cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h.  */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h.  */
5240 $ac_includes_default
5241 int
5242 main ()
5243 {
5244 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5245 test_array [0] = 0
5246
5247   ;
5248   return 0;
5249 }
5250 _ACEOF
5251 rm -f conftest.$ac_objext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5253   (eval $ac_compile) 2>conftest.er1
5254   ac_status=$?
5255   grep -v '^ *+' conftest.er1 >conftest.err
5256   rm -f conftest.er1
5257   cat conftest.err >&5
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); } &&
5260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262   (eval $ac_try) 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); }; } &&
5266          { ac_try='test -s conftest.$ac_objext'
5267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268   (eval $ac_try) 2>&5
5269   ac_status=$?
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); }; }; then
5272   ac_lo=0 ac_mid=0
5273   while :; do
5274     cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h.  */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h.  */
5280 $ac_includes_default
5281 int
5282 main ()
5283 {
5284 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5285 test_array [0] = 0
5286
5287   ;
5288   return 0;
5289 }
5290 _ACEOF
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293   (eval $ac_compile) 2>conftest.er1
5294   ac_status=$?
5295   grep -v '^ *+' conftest.er1 >conftest.err
5296   rm -f conftest.er1
5297   cat conftest.err >&5
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); } &&
5300          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302   (eval $ac_try) 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); }; } &&
5306          { ac_try='test -s conftest.$ac_objext'
5307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308   (eval $ac_try) 2>&5
5309   ac_status=$?
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); }; }; then
5312   ac_hi=$ac_mid; break
5313 else
5314   echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5316
5317 ac_lo=`expr $ac_mid + 1`
5318                     if test $ac_lo -le $ac_mid; then
5319                       ac_lo= ac_hi=
5320                       break
5321                     fi
5322                     ac_mid=`expr 2 '*' $ac_mid + 1`
5323 fi
5324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5325   done
5326 else
5327   echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h.  */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h.  */
5336 $ac_includes_default
5337 int
5338 main ()
5339 {
5340 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5341 test_array [0] = 0
5342
5343   ;
5344   return 0;
5345 }
5346 _ACEOF
5347 rm -f conftest.$ac_objext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349   (eval $ac_compile) 2>conftest.er1
5350   ac_status=$?
5351   grep -v '^ *+' conftest.er1 >conftest.err
5352   rm -f conftest.er1
5353   cat conftest.err >&5
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); } &&
5356          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358   (eval $ac_try) 2>&5
5359   ac_status=$?
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); }; } &&
5362          { ac_try='test -s conftest.$ac_objext'
5363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364   (eval $ac_try) 2>&5
5365   ac_status=$?
5366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367   (exit $ac_status); }; }; then
5368   ac_hi=-1 ac_mid=-1
5369   while :; do
5370     cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376 $ac_includes_default
5377 int
5378 main ()
5379 {
5380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5381 test_array [0] = 0
5382
5383   ;
5384   return 0;
5385 }
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389   (eval $ac_compile) 2>conftest.er1
5390   ac_status=$?
5391   grep -v '^ *+' conftest.er1 >conftest.err
5392   rm -f conftest.er1
5393   cat conftest.err >&5
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); } &&
5396          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398   (eval $ac_try) 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); }; } &&
5402          { ac_try='test -s conftest.$ac_objext'
5403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404   (eval $ac_try) 2>&5
5405   ac_status=$?
5406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); }; }; then
5408   ac_lo=$ac_mid; break
5409 else
5410   echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413 ac_hi=`expr '(' $ac_mid ')' - 1`
5414                        if test $ac_mid -le $ac_hi; then
5415                          ac_lo= ac_hi=
5416                          break
5417                        fi
5418                        ac_mid=`expr 2 '*' $ac_mid`
5419 fi
5420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5421   done
5422 else
5423   echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426 ac_lo= ac_hi=
5427 fi
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5429 fi
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431 # Binary search between lo and hi bounds.
5432 while test "x$ac_lo" != "x$ac_hi"; do
5433   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5434   cat >conftest.$ac_ext <<_ACEOF
5435 /* confdefs.h.  */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h.  */
5440 $ac_includes_default
5441 int
5442 main ()
5443 {
5444 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5445 test_array [0] = 0
5446
5447   ;
5448   return 0;
5449 }
5450 _ACEOF
5451 rm -f conftest.$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453   (eval $ac_compile) 2>conftest.er1
5454   ac_status=$?
5455   grep -v '^ *+' conftest.er1 >conftest.err
5456   rm -f conftest.er1
5457   cat conftest.err >&5
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); } &&
5460          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462   (eval $ac_try) 2>&5
5463   ac_status=$?
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); }; } &&
5466          { ac_try='test -s conftest.$ac_objext'
5467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468   (eval $ac_try) 2>&5
5469   ac_status=$?
5470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471   (exit $ac_status); }; }; then
5472   ac_hi=$ac_mid
5473 else
5474   echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477 ac_lo=`expr '(' $ac_mid ')' + 1`
5478 fi
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5480 done
5481 case $ac_lo in
5482 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5483 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5484 See \`config.log' for more details." >&5
5485 echo "$as_me: error: cannot compute sizeof (long long), 77
5486 See \`config.log' for more details." >&2;}
5487    { (exit 1); exit 1; }; } ;;
5488 esac
5489 else
5490   if test "$cross_compiling" = yes; then
5491   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5492 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5493    { (exit 1); exit 1; }; }
5494 else
5495   cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h.  */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h.  */
5501 $ac_includes_default
5502 long longval () { return (long) (sizeof (long long)); }
5503 unsigned long ulongval () { return (long) (sizeof (long long)); }
5504 #include <stdio.h>
5505 #include <stdlib.h>
5506 int
5507 main ()
5508 {
5509
5510   FILE *f = fopen ("conftest.val", "w");
5511   if (! f)
5512     exit (1);
5513   if (((long) (sizeof (long long))) < 0)
5514     {
5515       long i = longval ();
5516       if (i != ((long) (sizeof (long long))))
5517         exit (1);
5518       fprintf (f, "%ld\n", i);
5519     }
5520   else
5521     {
5522       unsigned long i = ulongval ();
5523       if (i != ((long) (sizeof (long long))))
5524         exit (1);
5525       fprintf (f, "%lu\n", i);
5526     }
5527   exit (ferror (f) || fclose (f) != 0);
5528
5529   ;
5530   return 0;
5531 }
5532 _ACEOF
5533 rm -f conftest$ac_exeext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5535   (eval $ac_link) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540   (eval $ac_try) 2>&5
5541   ac_status=$?
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); }; }; then
5544   ac_cv_sizeof_long_long=`cat conftest.val`
5545 else
5546   echo "$as_me: program exited with status $ac_status" >&5
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5549
5550 ( exit $ac_status )
5551 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5552 See \`config.log' for more details." >&5
5553 echo "$as_me: error: cannot compute sizeof (long long), 77
5554 See \`config.log' for more details." >&2;}
5555    { (exit 1); exit 1; }; }
5556 fi
5557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5558 fi
5559 fi
5560 rm -f conftest.val
5561 else
5562   ac_cv_sizeof_long_long=0
5563 fi
5564 fi
5565 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5566 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5567 cat >>confdefs.h <<_ACEOF
5568 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5569 _ACEOF
5570
5571
5572 fi
5573 if test $ac_cv_c___int64 = yes; then
5574   echo "$as_me:$LINENO: checking for __int64" >&5
5575 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5576 if test "${ac_cv_type___int64+set}" = set; then
5577   echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579   cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h.  */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h.  */
5585 $ac_includes_default
5586 int
5587 main ()
5588 {
5589 if ((__int64 *) 0)
5590   return 0;
5591 if (sizeof (__int64))
5592   return 0;
5593   ;
5594   return 0;
5595 }
5596 _ACEOF
5597 rm -f conftest.$ac_objext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599   (eval $ac_compile) 2>conftest.er1
5600   ac_status=$?
5601   grep -v '^ *+' conftest.er1 >conftest.err
5602   rm -f conftest.er1
5603   cat conftest.err >&5
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); } &&
5606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608   (eval $ac_try) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); }; } &&
5612          { ac_try='test -s conftest.$ac_objext'
5613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614   (eval $ac_try) 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); }; }; then
5618   ac_cv_type___int64=yes
5619 else
5620   echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 ac_cv_type___int64=no
5624 fi
5625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5626 fi
5627 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5628 echo "${ECHO_T}$ac_cv_type___int64" >&6
5629
5630 echo "$as_me:$LINENO: checking size of __int64" >&5
5631 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5632 if test "${ac_cv_sizeof___int64+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   if test "$ac_cv_type___int64" = yes; then
5636   # The cast to unsigned long works around a bug in the HP C Compiler
5637   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5638   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5639   # This bug is HP SR number 8606223364.
5640   if test "$cross_compiling" = yes; then
5641   # Depending upon the size, compute the lo and hi bounds.
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h.  */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h.  */
5648 $ac_includes_default
5649 int
5650 main ()
5651 {
5652 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5653 test_array [0] = 0
5654
5655   ;
5656   return 0;
5657 }
5658 _ACEOF
5659 rm -f conftest.$ac_objext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661   (eval $ac_compile) 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } &&
5668          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670   (eval $ac_try) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }; } &&
5674          { ac_try='test -s conftest.$ac_objext'
5675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676   (eval $ac_try) 2>&5
5677   ac_status=$?
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); }; }; then
5680   ac_lo=0 ac_mid=0
5681   while :; do
5682     cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h.  */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h.  */
5688 $ac_includes_default
5689 int
5690 main ()
5691 {
5692 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5693 test_array [0] = 0
5694
5695   ;
5696   return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701   (eval $ac_compile) 2>conftest.er1
5702   ac_status=$?
5703   grep -v '^ *+' conftest.er1 >conftest.err
5704   rm -f conftest.er1
5705   cat conftest.err >&5
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); } &&
5708          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710   (eval $ac_try) 2>&5
5711   ac_status=$?
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); }; } &&
5714          { ac_try='test -s conftest.$ac_objext'
5715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716   (eval $ac_try) 2>&5
5717   ac_status=$?
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); }; }; then
5720   ac_hi=$ac_mid; break
5721 else
5722   echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5724
5725 ac_lo=`expr $ac_mid + 1`
5726                     if test $ac_lo -le $ac_mid; then
5727                       ac_lo= ac_hi=
5728                       break
5729                     fi
5730                     ac_mid=`expr 2 '*' $ac_mid + 1`
5731 fi
5732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5733   done
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 cat >conftest.$ac_ext <<_ACEOF
5739 /* confdefs.h.  */
5740 _ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h.  */
5744 $ac_includes_default
5745 int
5746 main ()
5747 {
5748 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5749 test_array [0] = 0
5750
5751   ;
5752   return 0;
5753 }
5754 _ACEOF
5755 rm -f conftest.$ac_objext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757   (eval $ac_compile) 2>conftest.er1
5758   ac_status=$?
5759   grep -v '^ *+' conftest.er1 >conftest.err
5760   rm -f conftest.er1
5761   cat conftest.err >&5
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); } &&
5764          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766   (eval $ac_try) 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); }; } &&
5770          { ac_try='test -s conftest.$ac_objext'
5771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772   (eval $ac_try) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); }; }; then
5776   ac_hi=-1 ac_mid=-1
5777   while :; do
5778     cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h.  */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h.  */
5784 $ac_includes_default
5785 int
5786 main ()
5787 {
5788 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5789 test_array [0] = 0
5790
5791   ;
5792   return 0;
5793 }
5794 _ACEOF
5795 rm -f conftest.$ac_objext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797   (eval $ac_compile) 2>conftest.er1
5798   ac_status=$?
5799   grep -v '^ *+' conftest.er1 >conftest.err
5800   rm -f conftest.er1
5801   cat conftest.err >&5
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); } &&
5804          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806   (eval $ac_try) 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); }; } &&
5810          { ac_try='test -s conftest.$ac_objext'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; }; then
5816   ac_lo=$ac_mid; break
5817 else
5818   echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5820
5821 ac_hi=`expr '(' $ac_mid ')' - 1`
5822                        if test $ac_mid -le $ac_hi; then
5823                          ac_lo= ac_hi=
5824                          break
5825                        fi
5826                        ac_mid=`expr 2 '*' $ac_mid`
5827 fi
5828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5829   done
5830 else
5831   echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5833
5834 ac_lo= ac_hi=
5835 fi
5836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5837 fi
5838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5839 # Binary search between lo and hi bounds.
5840 while test "x$ac_lo" != "x$ac_hi"; do
5841   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5842   cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h.  */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h.  */
5848 $ac_includes_default
5849 int
5850 main ()
5851 {
5852 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5853 test_array [0] = 0
5854
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861   (eval $ac_compile) 2>conftest.er1
5862   ac_status=$?
5863   grep -v '^ *+' conftest.er1 >conftest.err
5864   rm -f conftest.er1
5865   cat conftest.err >&5
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } &&
5868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870   (eval $ac_try) 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; } &&
5874          { ac_try='test -s conftest.$ac_objext'
5875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876   (eval $ac_try) 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; }; then
5880   ac_hi=$ac_mid
5881 else
5882   echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885 ac_lo=`expr '(' $ac_mid ')' + 1`
5886 fi
5887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5888 done
5889 case $ac_lo in
5890 ?*) ac_cv_sizeof___int64=$ac_lo;;
5891 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5892 See \`config.log' for more details." >&5
5893 echo "$as_me: error: cannot compute sizeof (__int64), 77
5894 See \`config.log' for more details." >&2;}
5895    { (exit 1); exit 1; }; } ;;
5896 esac
5897 else
5898   if test "$cross_compiling" = yes; then
5899   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5900 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5901    { (exit 1); exit 1; }; }
5902 else
5903   cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h.  */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h.  */
5909 $ac_includes_default
5910 long longval () { return (long) (sizeof (__int64)); }
5911 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5912 #include <stdio.h>
5913 #include <stdlib.h>
5914 int
5915 main ()
5916 {
5917
5918   FILE *f = fopen ("conftest.val", "w");
5919   if (! f)
5920     exit (1);
5921   if (((long) (sizeof (__int64))) < 0)
5922     {
5923       long i = longval ();
5924       if (i != ((long) (sizeof (__int64))))
5925         exit (1);
5926       fprintf (f, "%ld\n", i);
5927     }
5928   else
5929     {
5930       unsigned long i = ulongval ();
5931       if (i != ((long) (sizeof (__int64))))
5932         exit (1);
5933       fprintf (f, "%lu\n", i);
5934     }
5935   exit (ferror (f) || fclose (f) != 0);
5936
5937   ;
5938   return 0;
5939 }
5940 _ACEOF
5941 rm -f conftest$ac_exeext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5943   (eval $ac_link) 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948   (eval $ac_try) 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); }; }; then
5952   ac_cv_sizeof___int64=`cat conftest.val`
5953 else
5954   echo "$as_me: program exited with status $ac_status" >&5
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ( exit $ac_status )
5959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5960 See \`config.log' for more details." >&5
5961 echo "$as_me: error: cannot compute sizeof (__int64), 77
5962 See \`config.log' for more details." >&2;}
5963    { (exit 1); exit 1; }; }
5964 fi
5965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5966 fi
5967 fi
5968 rm -f conftest.val
5969 else
5970   ac_cv_sizeof___int64=0
5971 fi
5972 fi
5973 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5974 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5975 cat >>confdefs.h <<_ACEOF
5976 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5977 _ACEOF
5978
5979
5980 fi
5981
5982 # ---------------------
5983 # Warnings and checking
5984 # ---------------------
5985
5986 # Check $CC warning features (if it's GCC).
5987 # We want to use -pedantic, but we don't want warnings about
5988 # * 'long long'
5989 # * variadic macros
5990 # So, we only use -pedantic if we can disable those warnings.
5991
5992 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
5993 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
5994 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997   save_CFLAGS="$CFLAGS"
5998   CFLAGS="-Wno-long-long"
5999   cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h.  */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h.  */
6005
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009   (eval $ac_compile) 2>conftest.er1
6010   ac_status=$?
6011   grep -v '^ *+' conftest.er1 >conftest.err
6012   rm -f conftest.er1
6013   cat conftest.err >&5
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } &&
6016          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; } &&
6022          { ac_try='test -s conftest.$ac_objext'
6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; }; then
6028   ac_cv_prog_cc_w_no_long_long=yes
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033 ac_cv_prog_cc_w_no_long_long=no
6034 fi
6035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6036   CFLAGS="$save_CFLAGS"
6037
6038 fi
6039 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6040 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6041
6042 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6043 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6044 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   save_CFLAGS="$CFLAGS"
6048   CFLAGS="-Wno-variadic-macros"
6049   cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h.  */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h.  */
6055
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059   (eval $ac_compile) 2>conftest.er1
6060   ac_status=$?
6061   grep -v '^ *+' conftest.er1 >conftest.err
6062   rm -f conftest.er1
6063   cat conftest.err >&5
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); } &&
6066          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068   (eval $ac_try) 2>&5
6069   ac_status=$?
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); }; } &&
6072          { ac_try='test -s conftest.$ac_objext'
6073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074   (eval $ac_try) 2>&5
6075   ac_status=$?
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); }; }; then
6078   ac_cv_prog_cc_w_no_variadic_macros=yes
6079 else
6080   echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 ac_cv_prog_cc_w_no_variadic_macros=no
6084 fi
6085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086   CFLAGS="$save_CFLAGS"
6087
6088 fi
6089 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6090 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6091
6092 strict1_warn=
6093 if test $ac_cv_prog_cc_w_no_long_long = yes \
6094    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6095   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6096 fi
6097
6098
6099 # Add -Wold-style-definition if it's accepted
6100 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6101 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6102 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6103   echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105   save_CFLAGS="$CFLAGS"
6106   CFLAGS="-Wold-style-definition"
6107   cat >conftest.$ac_ext <<_ACEOF
6108 /* confdefs.h.  */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h.  */
6113
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117   (eval $ac_compile) 2>conftest.er1
6118   ac_status=$?
6119   grep -v '^ *+' conftest.er1 >conftest.err
6120   rm -f conftest.er1
6121   cat conftest.err >&5
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); } &&
6124          { ac_try='test -z "$ac_c_werror_flag"                   || 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_old_style_definition=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_old_style_definition=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_old_style_definition" >&5
6148 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6149 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6150   strict1_warn="${strict1_warn} -Wold-style-definition"
6151 fi
6152
6153 # Enable -Werror, period.
6154 # Check whether --enable-werror_always or --disable-werror_always was given.
6155 if test "${enable_werror_always+set}" = set; then
6156   enableval="$enable_werror_always"
6157
6158 else
6159   enable_werror_always=no
6160 fi;
6161 if test x${enable_werror_always} = xyes ; then
6162   strict1_warn="${strict1_warn} -Werror"
6163   WERROR=-Werror
6164 fi
6165
6166 # If the native compiler is GCC, we can enable warnings even in stage1.
6167 # That's useful for people building cross-compilers, or just running a
6168 # quick `make'.
6169 warn_cflags=
6170 if test "x$GCC" = "xyes"; then
6171   warn_cflags='$(GCC_WARN_CFLAGS)'
6172 fi
6173
6174
6175 # Enable -Werror in bootstrap stage2 and later.
6176 # Check whether --enable-werror or --disable-werror was given.
6177 if test "${enable_werror+set}" = set; then
6178   enableval="$enable_werror"
6179
6180 else
6181   if test x$is_release = x ; then
6182   # Default to "yes" on development branches.
6183   enable_werror=yes
6184 else
6185   # Default to "no" on release branches.
6186   enable_werror=no
6187 fi
6188 fi;
6189 if test x$enable_werror = xyes ; then
6190   WERROR=-Werror
6191 fi
6192
6193
6194 # Enable expensive internal checks
6195 # Check whether --enable-checking or --disable-checking was given.
6196 if test "${enable_checking+set}" = set; then
6197   enableval="$enable_checking"
6198   ac_checking_flags="${enableval}"
6199 else
6200
6201 # Determine the default checks.
6202 if test x$is_release = x ; then
6203   ac_checking_flags=yes
6204 else
6205   ac_checking_flags=release
6206 fi
6207 fi;
6208 ac_assert_checking=1
6209 ac_checking=
6210 ac_tree_checking=
6211 ac_rtl_checking=
6212 ac_rtlflag_checking=
6213 ac_gc_checking=
6214 ac_gc_always_collect=
6215 ac_fold_checking=
6216 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6217 for check in $ac_checking_flags
6218 do
6219         case $check in
6220         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6221                         ac_tree_checking=1 ; ac_gc_checking=1 ;
6222                         ac_rtlflag_checking=1 ;;
6223         no)             ac_assert_checking= ; ac_checking= ;
6224                         ac_tree_checking= ; ac_rtl_checking= ;
6225                         ac_rtlflag_checking= ; ac_gc_checking= ;
6226                         ac_gc_always_collect= ; ac_fold_checking= ;;
6227         all)            ac_assert_checking=1 ; ac_checking=1 ;
6228                         ac_tree_checking=1 ; ac_rtl_checking=1 ;
6229                         ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6230                         ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6231         release)        ac_assert_checking=1 ;;
6232         assert)         ac_assert_checking=1 ;;
6233         fold)           ac_fold_checking=1 ;;
6234         gc)             ac_gc_checking=1 ;;
6235         gcac)           ac_gc_always_collect=1 ;;
6236         misc)           ac_checking=1 ;;
6237         rtlflag)        ac_rtlflag_checking=1 ;;
6238         rtl)            ac_rtl_checking=1 ;;
6239         tree)           ac_tree_checking=1 ;;
6240         valgrind)       ac_checking_valgrind=1 ;;
6241         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6242 echo "$as_me: error: unknown check category $check" >&2;}
6243    { (exit 1); exit 1; }; } ;;
6244         esac
6245 done
6246 IFS="$ac_save_IFS"
6247
6248 nocommon_flag=""
6249 if test x$ac_checking != x ; then
6250
6251 cat >>confdefs.h <<\_ACEOF
6252 #define ENABLE_CHECKING 1
6253 _ACEOF
6254
6255   nocommon_flag=-fno-common
6256 fi
6257
6258 if test x$ac_assert_checking != x ; then
6259
6260 cat >>confdefs.h <<\_ACEOF
6261 #define ENABLE_ASSERT_CHECKING 1
6262 _ACEOF
6263
6264 fi
6265 if test x$ac_tree_checking != x ; then
6266
6267 cat >>confdefs.h <<\_ACEOF
6268 #define ENABLE_TREE_CHECKING 1
6269 _ACEOF
6270
6271   TREEBROWSER=tree-browser.o
6272 fi
6273
6274 if test x$ac_rtl_checking != x ; then
6275
6276 cat >>confdefs.h <<\_ACEOF
6277 #define ENABLE_RTL_CHECKING 1
6278 _ACEOF
6279
6280 fi
6281 if test x$ac_rtlflag_checking != x ; then
6282
6283 cat >>confdefs.h <<\_ACEOF
6284 #define ENABLE_RTL_FLAG_CHECKING 1
6285 _ACEOF
6286
6287 fi
6288 if test x$ac_gc_checking != x ; then
6289
6290 cat >>confdefs.h <<\_ACEOF
6291 #define ENABLE_GC_CHECKING 1
6292 _ACEOF
6293
6294 fi
6295 if test x$ac_gc_always_collect != x ; then
6296
6297 cat >>confdefs.h <<\_ACEOF
6298 #define ENABLE_GC_ALWAYS_COLLECT 1
6299 _ACEOF
6300
6301 fi
6302 if test x$ac_fold_checking != x ; then
6303
6304 cat >>confdefs.h <<\_ACEOF
6305 #define ENABLE_FOLD_CHECKING 1
6306 _ACEOF
6307
6308 fi
6309 valgrind_path_defines=
6310 valgrind_command=
6311
6312 if test "${ac_cv_header_valgrind_h+set}" = set; then
6313   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6314 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6315 if test "${ac_cv_header_valgrind_h+set}" = set; then
6316   echo $ECHO_N "(cached) $ECHO_C" >&6
6317 fi
6318 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6319 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6320 else
6321   # Is the header compilable?
6322 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6323 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6324 cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h.  */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h.  */
6330 $ac_includes_default
6331 #include <valgrind.h>
6332 _ACEOF
6333 rm -f conftest.$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335   (eval $ac_compile) 2>conftest.er1
6336   ac_status=$?
6337   grep -v '^ *+' conftest.er1 >conftest.err
6338   rm -f conftest.er1
6339   cat conftest.err >&5
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); } &&
6342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; } &&
6348          { ac_try='test -s conftest.$ac_objext'
6349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350   (eval $ac_try) 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; }; then
6354   ac_header_compiler=yes
6355 else
6356   echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6358
6359 ac_header_compiler=no
6360 fi
6361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6363 echo "${ECHO_T}$ac_header_compiler" >&6
6364
6365 # Is the header present?
6366 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6367 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h.  */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h.  */
6374 #include <valgrind.h>
6375 _ACEOF
6376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6378   ac_status=$?
6379   grep -v '^ *+' conftest.er1 >conftest.err
6380   rm -f conftest.er1
6381   cat conftest.err >&5
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); } >/dev/null; then
6384   if test -s conftest.err; then
6385     ac_cpp_err=$ac_c_preproc_warn_flag
6386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6387   else
6388     ac_cpp_err=
6389   fi
6390 else
6391   ac_cpp_err=yes
6392 fi
6393 if test -z "$ac_cpp_err"; then
6394   ac_header_preproc=yes
6395 else
6396   echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6398
6399   ac_header_preproc=no
6400 fi
6401 rm -f conftest.err conftest.$ac_ext
6402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6403 echo "${ECHO_T}$ac_header_preproc" >&6
6404
6405 # So?  What about this header?
6406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6407   yes:no: )
6408     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6409 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6410     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6411 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6412     ac_header_preproc=yes
6413     ;;
6414   no:yes:* )
6415     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6416 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6417     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6418 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6419     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6420 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6421     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6422 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6423     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6424 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6425     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6426 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6427     (
6428       cat <<\_ASBOX
6429 ## ------------------------------------------ ##
6430 ## Report this to the AC_PACKAGE_NAME lists.  ##
6431 ## ------------------------------------------ ##
6432 _ASBOX
6433     ) |
6434       sed "s/^/$as_me: WARNING:     /" >&2
6435     ;;
6436 esac
6437 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6438 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6439 if test "${ac_cv_header_valgrind_h+set}" = set; then
6440   echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442   ac_cv_header_valgrind_h=$ac_header_preproc
6443 fi
6444 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6445 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6446
6447 fi
6448 if test $ac_cv_header_valgrind_h = yes; then
6449   have_valgrind_h=yes
6450 else
6451   have_valgrind_h=no
6452 fi
6453
6454
6455
6456 if test x$ac_checking_valgrind != x ; then
6457   # It is certainly possible that there's valgrind but no valgrind.h.
6458   # GCC relies on making annotations so we must have both.
6459   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6460 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6461   cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467 #include <valgrind/memcheck.h>
6468 #ifndef VALGRIND_DISCARD
6469 #error VALGRIND_DISCARD not defined
6470 #endif
6471 _ACEOF
6472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6474   ac_status=$?
6475   grep -v '^ *+' conftest.er1 >conftest.err
6476   rm -f conftest.er1
6477   cat conftest.err >&5
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); } >/dev/null; then
6480   if test -s conftest.err; then
6481     ac_cpp_err=$ac_c_preproc_warn_flag
6482     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6483   else
6484     ac_cpp_err=
6485   fi
6486 else
6487   ac_cpp_err=yes
6488 fi
6489 if test -z "$ac_cpp_err"; then
6490   gcc_cv_header_valgrind_memcheck_h=yes
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495   gcc_cv_header_valgrind_memcheck_h=no
6496 fi
6497 rm -f conftest.err conftest.$ac_ext
6498   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6499 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6500   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6501 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6502   cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h.  */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h.  */
6508 #include <memcheck.h>
6509 #ifndef VALGRIND_DISCARD
6510 #error VALGRIND_DISCARD not defined
6511 #endif
6512 _ACEOF
6513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6514   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6515   ac_status=$?
6516   grep -v '^ *+' conftest.er1 >conftest.err
6517   rm -f conftest.er1
6518   cat conftest.err >&5
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); } >/dev/null; then
6521   if test -s conftest.err; then
6522     ac_cpp_err=$ac_c_preproc_warn_flag
6523     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6524   else
6525     ac_cpp_err=
6526   fi
6527 else
6528   ac_cpp_err=yes
6529 fi
6530 if test -z "$ac_cpp_err"; then
6531   gcc_cv_header_memcheck_h=yes
6532 else
6533   echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6535
6536   gcc_cv_header_memcheck_h=no
6537 fi
6538 rm -f conftest.err conftest.$ac_ext
6539   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6540 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6541
6542 # Prepare PATH_SEPARATOR.
6543 # The user is always right.
6544 if test "${PATH_SEPARATOR+set}" != set; then
6545   echo "#! /bin/sh" >conf$$.sh
6546   echo  "exit 0"   >>conf$$.sh
6547   chmod +x conf$$.sh
6548   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6549     PATH_SEPARATOR=';'
6550   else
6551     PATH_SEPARATOR=:
6552   fi
6553   rm -f conf$$.sh
6554 fi
6555
6556 # Find out how to test for executable files. Don't use a zero-byte file,
6557 # as systems may use methods other than mode bits to determine executability.
6558 cat >conf$$.file <<_ASEOF
6559 #! /bin/sh
6560 exit 0
6561 _ASEOF
6562 chmod +x conf$$.file
6563 if test -x conf$$.file >/dev/null 2>&1; then
6564   ac_executable_p="test -x"
6565 else
6566   ac_executable_p="test -f"
6567 fi
6568 rm -f conf$$.file
6569
6570 # Extract the first word of "valgrind", so it can be a program name with args.
6571 set dummy valgrind; ac_word=$2
6572 echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6574 if test "${ac_cv_path_valgrind_path+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   case "$valgrind_path" in
6578   [\\/]* | ?:[\\/]*)
6579     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6580     ;;
6581   *)
6582     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6583     for ac_dir in $PATH; do
6584       IFS="$ac_save_IFS"
6585       test -z "$ac_dir" && ac_dir=.
6586       for ac_exec_ext in '' $ac_executable_extensions; do
6587         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6588           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6589             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6590             break 2
6591           fi
6592         fi
6593       done
6594     done
6595     IFS="$ac_save_IFS"
6596     ;;
6597 esac
6598 fi
6599 valgrind_path="$ac_cv_path_valgrind_path"
6600 if test -n "$valgrind_path"; then
6601   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6602 echo "${ECHO_T}$valgrind_path" >&6
6603 else
6604   echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6
6606 fi
6607
6608   if test "x$valgrind_path" = "x" \
6609     || (test $have_valgrind_h = no \
6610         && test $gcc_cv_header_memcheck_h = no \
6611         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6612         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6613 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6614    { (exit 1); exit 1; }; }
6615   fi
6616   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6617   valgrind_command="$valgrind_path -q"
6618
6619 cat >>confdefs.h <<\_ACEOF
6620 #define ENABLE_VALGRIND_CHECKING 1
6621 _ACEOF
6622
6623   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6624
6625 cat >>confdefs.h <<\_ACEOF
6626 #define HAVE_VALGRIND_MEMCHECK_H 1
6627 _ACEOF
6628
6629   fi
6630   if test $gcc_cv_header_memcheck_h = yes; then
6631
6632 cat >>confdefs.h <<\_ACEOF
6633 #define HAVE_MEMCHECK_H 1
6634 _ACEOF
6635
6636   fi
6637 fi
6638
6639
6640
6641 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6642 if test "${enable_mapped_location+set}" = set; then
6643   enableval="$enable_mapped_location"
6644
6645 else
6646   enable_mapped_location=no
6647 fi;
6648
6649 if test "$enable_mapped_location" = yes ; then
6650
6651 cat >>confdefs.h <<\_ACEOF
6652 #define USE_MAPPED_LOCATION 1
6653 _ACEOF
6654
6655 fi
6656
6657 # Enable code coverage collection
6658 # Check whether --enable-coverage or --disable-coverage was given.
6659 if test "${enable_coverage+set}" = set; then
6660   enableval="$enable_coverage"
6661   case "${enableval}" in
6662   yes|noopt)
6663     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6664     ;;
6665   opt)
6666     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6667     ;;
6668   no)
6669     # a.k.a. --disable-coverage
6670     coverage_flags=""
6671     ;;
6672   *)
6673     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6674 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6675    { (exit 1); exit 1; }; }
6676     ;;
6677 esac
6678 else
6679   coverage_flags=""
6680 fi;
6681
6682
6683 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6684 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6685   enableval="$enable_gather_detailed_mem_stats"
6686
6687 else
6688   enable_gather_detailed_mem_stats=no
6689 fi;
6690 if test x$enable_gather_detailed_mem_stats = xyes ; then
6691
6692 cat >>confdefs.h <<\_ACEOF
6693 #define GATHER_STATISTICS 1
6694 _ACEOF
6695
6696 fi
6697
6698 # -------------------------------
6699 # Miscenalleous configure options
6700 # -------------------------------
6701
6702 # With stabs
6703
6704 # Check whether --with-stabs or --without-stabs was given.
6705 if test "${with_stabs+set}" = set; then
6706   withval="$with_stabs"
6707   stabs="$with_stabs"
6708 else
6709   stabs=no
6710 fi;
6711
6712 # Determine whether or not multilibs are enabled.
6713 # Check whether --enable-multilib or --disable-multilib was given.
6714 if test "${enable_multilib+set}" = set; then
6715   enableval="$enable_multilib"
6716
6717 else
6718   enable_multilib=yes
6719 fi;
6720
6721
6722 # Enable __cxa_atexit for C++.
6723 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6724 if test "${enable___cxa_atexit+set}" = set; then
6725   enableval="$enable___cxa_atexit"
6726
6727 fi;
6728
6729 # Enable threads
6730 # Pass with no value to take the default
6731 # Pass with a value to specify a thread package
6732 # Check whether --enable-threads or --disable-threads was given.
6733 if test "${enable_threads+set}" = set; then
6734   enableval="$enable_threads"
6735
6736 else
6737   enable_threads=''
6738 fi;
6739
6740 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6741 if test "${enable_objc_gc+set}" = set; then
6742   enableval="$enable_objc_gc"
6743   if test x$enable_objc_gc = xno; then
6744         objc_boehm_gc=''
6745 else
6746         objc_boehm_gc=1
6747 fi
6748 else
6749   objc_boehm_gc=''
6750 fi;
6751
6752
6753 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6754 if test "${with_dwarf2+set}" = set; then
6755   withval="$with_dwarf2"
6756   dwarf2="$with_dwarf2"
6757 else
6758   dwarf2=no
6759 fi;
6760
6761 # Check whether --enable-shared or --disable-shared was given.
6762 if test "${enable_shared+set}" = set; then
6763   enableval="$enable_shared"
6764
6765   case $enable_shared in
6766   yes | no) ;;
6767   *)
6768     enable_shared=no
6769     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6770     for pkg in $enableval; do
6771       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6772         enable_shared=yes
6773       fi
6774     done
6775     IFS="$ac_save_ifs"
6776     ;;
6777   esac
6778
6779 else
6780   enable_shared=yes
6781 fi;
6782
6783
6784
6785 # Check whether --with-sysroot or --without-sysroot was given.
6786 if test "${with_sysroot+set}" = set; then
6787   withval="$with_sysroot"
6788
6789  case ${with_sysroot} in
6790  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6791  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6792  esac
6793
6794  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6795  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6796
6797  if test "x$exec_prefix" = xNONE; then
6798   if test "x$prefix" = xNONE; then
6799    test_prefix=/usr/local
6800   else
6801    test_prefix=$prefix
6802   fi
6803  else
6804   test_prefix=$exec_prefix
6805  fi
6806  case ${TARGET_SYSTEM_ROOT} in
6807  "${test_prefix}"|"${test_prefix}/"*|\
6808  '${exec_prefix}'|'${exec_prefix}/'*)
6809    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6810    TARGET_SYSTEM_ROOT_DEFINE="$t"
6811    ;;
6812  esac
6813
6814 else
6815
6816  TARGET_SYSTEM_ROOT=
6817  TARGET_SYSTEM_ROOT_DEFINE=
6818  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6819
6820 fi;
6821
6822
6823
6824
6825 # Build with intermodule optimisations
6826 # Check whether --enable-intermodule or --disable-intermodule was given.
6827 if test "${enable_intermodule+set}" = set; then
6828   enableval="$enable_intermodule"
6829   case ${enable_intermodule} in
6830   yes) onestep="-onestep";;
6831   *) onestep="";;
6832 esac
6833 else
6834   onestep=""
6835 fi;
6836
6837
6838 # Sanity check enable_languages in case someone does not run the toplevel
6839 # configure # script.
6840 # Check whether --enable-languages or --disable-languages was given.
6841 if test "${enable_languages+set}" = set; then
6842   enableval="$enable_languages"
6843   case ,${enable_languages}, in
6844        ,,|,yes,)
6845                 # go safe -- we cannot be much sure without the toplevel
6846                 # configure's
6847                 # analysis of which target libs are present and usable
6848                 enable_languages=c
6849                 ;;
6850          *,all,*)
6851                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6852 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6853    { (exit 1); exit 1; }; }
6854                 ;;
6855         *,c,*)
6856                 ;;
6857         *)
6858                 enable_languages=c,${enable_languages}
6859                 ;;
6860 esac
6861 else
6862   enable_languages=c
6863 fi;
6864
6865 subdirs=
6866 for lang in ${srcdir}/*/config-lang.in
6867 do
6868         case $lang in
6869         # The odd quoting in the next line works around
6870         # an apparent bug in bash 1.12 on linux.
6871         ${srcdir}/[*]/config-lang.in) ;;
6872         *)
6873           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
6874           if test "x$lang_alias" = x
6875           then
6876                 echo "$lang doesn't set \$language." 1>&2
6877                 exit 1
6878           fi
6879           case ",$enable_languages," in
6880           *,$lang_alias,*)
6881             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6882           esac
6883           ;;
6884         esac
6885 done
6886
6887
6888 # -------------------------
6889 # Checks for other programs
6890 # -------------------------
6891
6892 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6893 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6894 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6895 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6896   echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898   cat >conftest.make <<\_ACEOF
6899 all:
6900         @echo 'ac_maketemp="$(MAKE)"'
6901 _ACEOF
6902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6903 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6904 if test -n "$ac_maketemp"; then
6905   eval ac_cv_prog_make_${ac_make}_set=yes
6906 else
6907   eval ac_cv_prog_make_${ac_make}_set=no
6908 fi
6909 rm -f conftest.make
6910 fi
6911 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6912   echo "$as_me:$LINENO: result: yes" >&5
6913 echo "${ECHO_T}yes" >&6
6914   SET_MAKE=
6915 else
6916   echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6
6918   SET_MAKE="MAKE=${MAKE-make}"
6919 fi
6920
6921
6922 # Find some useful tools
6923 for ac_prog in gawk mawk nawk awk
6924 do
6925   # Extract the first word of "$ac_prog", so it can be a program name with args.
6926 set dummy $ac_prog; ac_word=$2
6927 echo "$as_me:$LINENO: checking for $ac_word" >&5
6928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6929 if test "${ac_cv_prog_AWK+set}" = set; then
6930   echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932   if test -n "$AWK"; then
6933   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940   for ac_exec_ext in '' $ac_executable_extensions; do
6941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942     ac_cv_prog_AWK="$ac_prog"
6943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947 done
6948
6949 fi
6950 fi
6951 AWK=$ac_cv_prog_AWK
6952 if test -n "$AWK"; then
6953   echo "$as_me:$LINENO: result: $AWK" >&5
6954 echo "${ECHO_T}$AWK" >&6
6955 else
6956   echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6
6958 fi
6959
6960   test -n "$AWK" && break
6961 done
6962
6963 # We need awk to create options.c and options.h.
6964 # Bail out if it's missing.
6965 case ${AWK} in
6966   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
6967 echo "$as_me: error: can't build without awk, bailing out" >&2;}
6968    { (exit 1); exit 1; }; } ;;
6969 esac
6970
6971 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6972 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6973 if test "${gcc_cv_prog_LN_S+set}" = set; then
6974   echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976   rm -f conftestdata_t
6977 echo >conftestdata_f
6978 if ln -s conftestdata_f conftestdata_t 2>/dev/null
6979 then
6980   gcc_cv_prog_LN_S="ln -s"
6981 else
6982   if ln conftestdata_f conftestdata_t 2>/dev/null
6983   then
6984     gcc_cv_prog_LN_S=ln
6985   else
6986     if cp -p conftestdata_f conftestdata_t 2>/dev/null
6987     then
6988       gcc_cv_prog_LN_S="cp -p"
6989     else
6990       gcc_cv_prog_LN_S=cp
6991     fi
6992   fi
6993 fi
6994 rm -f conftestdata_f conftestdata_t
6995
6996 fi
6997 LN_S="$gcc_cv_prog_LN_S"
6998 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
6999   echo "$as_me:$LINENO: result: yes" >&5
7000 echo "${ECHO_T}yes" >&6
7001 else
7002   if test "$gcc_cv_prog_LN_S" = "ln"; then
7003     echo "$as_me:$LINENO: result: no, using ln" >&5
7004 echo "${ECHO_T}no, using ln" >&6
7005   else
7006     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7007 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7008   fi
7009 fi
7010
7011 echo "$as_me:$LINENO: checking whether ln works" >&5
7012 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7013 if test "${acx_cv_prog_LN+set}" = set; then
7014   echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016   rm -f conftestdata_t
7017 echo >conftestdata_f
7018 if ln conftestdata_f conftestdata_t 2>/dev/null
7019 then
7020   acx_cv_prog_LN=ln
7021 else
7022   acx_cv_prog_LN=no
7023 fi
7024 rm -f conftestdata_f conftestdata_t
7025
7026 fi
7027 if test $acx_cv_prog_LN = no; then
7028   LN="$LN_S"
7029   echo "$as_me:$LINENO: result: no, using $LN" >&5
7030 echo "${ECHO_T}no, using $LN" >&6
7031 else
7032   LN="$acx_cv_prog_LN"
7033   echo "$as_me:$LINENO: result: yes" >&5
7034 echo "${ECHO_T}yes" >&6
7035 fi
7036
7037 if test -n "$ac_tool_prefix"; then
7038   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7039 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7040 echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7042 if test "${ac_cv_prog_RANLIB+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   if test -n "$RANLIB"; then
7046   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051   IFS=$as_save_IFS
7052   test -z "$as_dir" && as_dir=.
7053   for ac_exec_ext in '' $ac_executable_extensions; do
7054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057     break 2
7058   fi
7059 done
7060 done
7061
7062 fi
7063 fi
7064 RANLIB=$ac_cv_prog_RANLIB
7065 if test -n "$RANLIB"; then
7066   echo "$as_me:$LINENO: result: $RANLIB" >&5
7067 echo "${ECHO_T}$RANLIB" >&6
7068 else
7069   echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6
7071 fi
7072
7073 fi
7074 if test -z "$ac_cv_prog_RANLIB"; then
7075   ac_ct_RANLIB=$RANLIB
7076   # Extract the first word of "ranlib", so it can be a program name with args.
7077 set dummy ranlib; ac_word=$2
7078 echo "$as_me:$LINENO: checking for $ac_word" >&5
7079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7080 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7081   echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083   if test -n "$ac_ct_RANLIB"; then
7084   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089   IFS=$as_save_IFS
7090   test -z "$as_dir" && as_dir=.
7091   for ac_exec_ext in '' $ac_executable_extensions; do
7092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093     ac_cv_prog_ac_ct_RANLIB="ranlib"
7094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095     break 2
7096   fi
7097 done
7098 done
7099
7100   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7101 fi
7102 fi
7103 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7104 if test -n "$ac_ct_RANLIB"; then
7105   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7106 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7107 else
7108   echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6
7110 fi
7111
7112   RANLIB=$ac_ct_RANLIB
7113 else
7114   RANLIB="$ac_cv_prog_RANLIB"
7115 fi
7116
7117 case "${host}" in
7118 *-*-darwin*)
7119   # By default, the Darwin ranlib will not treat common symbols as
7120   # definitions when  building the archive table of contents.  Other
7121   # ranlibs do that; pass an option to the Darwin ranlib that makes
7122   # it behave similarly.
7123   ranlib_flags="-c"
7124   ;;
7125 *)
7126   ranlib_flags=""
7127 esac
7128
7129
7130 # Find a good install program.  We prefer a C program (faster),
7131 # so one script is as good as another.  But avoid the broken or
7132 # incompatible versions:
7133 # SysV /etc/install, /usr/sbin/install
7134 # SunOS /usr/etc/install
7135 # IRIX /sbin/install
7136 # AIX /bin/install
7137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7139 # ./install, which can be erroneously created by make from ./install.sh.
7140 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7141 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7142 if test -z "$INSTALL"; then
7143 if test "${ac_cv_path_install+set}" = set; then
7144   echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7147   for ac_dir in $PATH; do
7148     # Account for people who put trailing slashes in PATH elements.
7149     case "$ac_dir/" in
7150     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7151     *)
7152       # OSF1 and SCO ODT 3.0 have their own names for install.
7153       for ac_prog in ginstall scoinst install; do
7154         if test -f $ac_dir/$ac_prog; then
7155           if test $ac_prog = install &&
7156             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7157             # AIX install.  It has an incompatible calling convention.
7158             # OSF/1 installbsd also uses dspmsg, but is usable.
7159             :
7160           else
7161             ac_cv_path_install="$ac_dir/$ac_prog -c"
7162             break 2
7163           fi
7164         fi
7165       done
7166       ;;
7167     esac
7168   done
7169   IFS="$ac_save_IFS"
7170
7171 fi
7172   if test "${ac_cv_path_install+set}" = set; then
7173     INSTALL="$ac_cv_path_install"
7174   else
7175     # As a last resort, use the slow shell script.  We don't cache a
7176     # path for INSTALL within a source directory, because that will
7177     # break other packages using the cache if that directory is
7178     # removed, or if the path is relative.
7179     INSTALL="$ac_install_sh"
7180   fi
7181 fi
7182 echo "$as_me:$LINENO: result: $INSTALL" >&5
7183 echo "${ECHO_T}$INSTALL" >&6
7184
7185 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7186 # It thinks the first close brace ends the variable substitution.
7187 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7188
7189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7190
7191
7192 # See if cmp has --ignore-initial.
7193 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7194 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7195 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7196   echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198    echo abfoo >t1
7199   echo cdfoo >t2
7200   gcc_cv_prog_cmp_skip=slowcompare
7201   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7202     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7203       :
7204     else
7205       gcc_cv_prog_cmp_skip=gnucompare
7206     fi
7207   fi
7208   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7209     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7210       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7211         :
7212       else
7213         gcc_cv_prog_cmp_skip=fastcompare
7214       fi
7215     fi
7216   fi
7217   rm t1 t2
7218
7219 fi
7220 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7221 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7222 make_compare_target=$gcc_cv_prog_cmp_skip
7223
7224
7225
7226 # See if we have the mktemp command.
7227 # Extract the first word of "mktemp", so it can be a program name with args.
7228 set dummy mktemp; ac_word=$2
7229 echo "$as_me:$LINENO: checking for $ac_word" >&5
7230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7231 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7232   echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234   if test -n "$have_mktemp_command"; then
7235   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242   for ac_exec_ext in '' $ac_executable_extensions; do
7243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244     ac_cv_prog_have_mktemp_command="yes"
7245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249 done
7250
7251   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7252 fi
7253 fi
7254 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7255 if test -n "$have_mktemp_command"; then
7256   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7257 echo "${ECHO_T}$have_mktemp_command" >&6
7258 else
7259   echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6
7261 fi
7262
7263
7264 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7265
7266 # See if makeinfo has been installed and is modern enough
7267 # that we can use it.
7268 # Extract the first word of "makeinfo", so it can be a program name with args.
7269 set dummy makeinfo; ac_word=$2
7270 echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7272 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275   if test -n "$MAKEINFO"; then
7276   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281   IFS=$as_save_IFS
7282   test -z "$as_dir" && as_dir=.
7283   for ac_exec_ext in '' $ac_executable_extensions; do
7284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285     ac_cv_prog_MAKEINFO="makeinfo"
7286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287     break 2
7288   fi
7289 done
7290 done
7291
7292 fi
7293 fi
7294 MAKEINFO=$ac_cv_prog_MAKEINFO
7295 if test -n "$MAKEINFO"; then
7296   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7297 echo "${ECHO_T}$MAKEINFO" >&6
7298 else
7299   echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6
7301 fi
7302
7303 if test -n "$MAKEINFO"; then
7304   # Found it, now check the version.
7305   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7306 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7307 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310     ac_prog_version=`$MAKEINFO --version 2>&1 |
7311                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7312   echo "configure:7312: version of makeinfo is $ac_prog_version" >&5
7313   case $ac_prog_version in
7314     '')     gcc_cv_prog_makeinfo_modern=no;;
7315     4.[2-9]*)
7316             gcc_cv_prog_makeinfo_modern=yes;;
7317     *)      gcc_cv_prog_makeinfo_modern=no;;
7318   esac
7319
7320 fi
7321 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7322 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7323 else
7324   gcc_cv_prog_makeinfo_modern=no
7325 fi
7326
7327 if test $gcc_cv_prog_makeinfo_modern = no; then
7328   MAKEINFO="$MISSING makeinfo"
7329   { echo "$as_me:$LINENO: WARNING:
7330 *** Makeinfo is missing or too old.
7331 *** Info documentation will not be built." >&5
7332 echo "$as_me: WARNING:
7333 *** Makeinfo is missing or too old.
7334 *** Info documentation will not be built." >&2;}
7335   BUILD_INFO=
7336 else
7337   BUILD_INFO=info
7338 fi
7339
7340
7341 # Is pod2man recent enough to regenerate manpages?
7342 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7343 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7344 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7345   echo "$as_me:$LINENO: result: yes" >&5
7346 echo "${ECHO_T}yes" >&6
7347   GENERATED_MANPAGES=generated-manpages
7348 else
7349   echo "$as_me:$LINENO: result: no" >&5
7350 echo "${ECHO_T}no" >&6
7351   GENERATED_MANPAGES=
7352 fi
7353
7354
7355 # How about lex?
7356 for ac_prog in flex
7357 do
7358   # Extract the first word of "$ac_prog", so it can be a program name with args.
7359 set dummy $ac_prog; ac_word=$2
7360 echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7362 if test "${ac_cv_prog_FLEX+set}" = set; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365   if test -n "$FLEX"; then
7366   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373   for ac_exec_ext in '' $ac_executable_extensions; do
7374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375     ac_cv_prog_FLEX="$ac_prog"
7376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380 done
7381
7382 fi
7383 fi
7384 FLEX=$ac_cv_prog_FLEX
7385 if test -n "$FLEX"; then
7386   echo "$as_me:$LINENO: result: $FLEX" >&5
7387 echo "${ECHO_T}$FLEX" >&6
7388 else
7389   echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6
7391 fi
7392
7393   test -n "$FLEX" && break
7394 done
7395 test -n "$FLEX" || FLEX="$MISSING flex"
7396
7397
7398 # Bison?
7399 for ac_prog in bison
7400 do
7401   # Extract the first word of "$ac_prog", so it can be a program name with args.
7402 set dummy $ac_prog; ac_word=$2
7403 echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7405 if test "${ac_cv_prog_BISON+set}" = set; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408   if test -n "$BISON"; then
7409   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416   for ac_exec_ext in '' $ac_executable_extensions; do
7417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418     ac_cv_prog_BISON="$ac_prog"
7419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423 done
7424
7425 fi
7426 fi
7427 BISON=$ac_cv_prog_BISON
7428 if test -n "$BISON"; then
7429   echo "$as_me:$LINENO: result: $BISON" >&5
7430 echo "${ECHO_T}$BISON" >&6
7431 else
7432   echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6
7434 fi
7435
7436   test -n "$BISON" && break
7437 done
7438 test -n "$BISON" || BISON="$MISSING bison"
7439
7440
7441 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7442 # check for build == host before using them.
7443
7444 # NM
7445 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7446   && test -d ../binutils ; then
7447   NM='$(objdir)/../binutils/nm-new'
7448 else
7449   # Extract the first word of "nm", so it can be a program name with args.
7450 set dummy nm; ac_word=$2
7451 echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7453 if test "${ac_cv_prog_NM+set}" = set; then
7454   echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456   if test -n "$NM"; then
7457   ac_cv_prog_NM="$NM" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464   for ac_exec_ext in '' $ac_executable_extensions; do
7465   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7466     ac_cv_prog_NM="nm"
7467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471 done
7472
7473   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7474 fi
7475 fi
7476 NM=$ac_cv_prog_NM
7477 if test -n "$NM"; then
7478   echo "$as_me:$LINENO: result: $NM" >&5
7479 echo "${ECHO_T}$NM" >&6
7480 else
7481   echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6
7483 fi
7484
7485 fi
7486
7487 # AR
7488 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7489   && test -d ../binutils ; then
7490   AR='$(objdir)/../binutils/ar'
7491 else
7492   # Extract the first word of "ar", so it can be a program name with args.
7493 set dummy ar; ac_word=$2
7494 echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7496 if test "${ac_cv_prog_AR+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   if test -n "$AR"; then
7500   ac_cv_prog_AR="$AR" # Let the user override the test.
7501 else
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507   for ac_exec_ext in '' $ac_executable_extensions; do
7508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509     ac_cv_prog_AR="ar"
7510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514 done
7515
7516   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7517 fi
7518 fi
7519 AR=$ac_cv_prog_AR
7520 if test -n "$AR"; then
7521   echo "$as_me:$LINENO: result: $AR" >&5
7522 echo "${ECHO_T}$AR" >&6
7523 else
7524   echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6
7526 fi
7527
7528 fi
7529
7530
7531 # --------------------
7532 # Checks for C headers
7533 # --------------------
7534
7535 echo "$as_me:$LINENO: checking for GNU C library" >&5
7536 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7537 if test "${gcc_cv_glibc+set}" = set; then
7538   echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540   cat >conftest.$ac_ext <<_ACEOF
7541 /* confdefs.h.  */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h.  */
7546 #include <features.h>
7547 int
7548 main ()
7549 {
7550
7551 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7552 #error Not a GNU C library system
7553 #endif
7554   ;
7555   return 0;
7556 }
7557 _ACEOF
7558 rm -f conftest.$ac_objext
7559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7560   (eval $ac_compile) 2>conftest.er1
7561   ac_status=$?
7562   grep -v '^ *+' conftest.er1 >conftest.err
7563   rm -f conftest.er1
7564   cat conftest.err >&5
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); } &&
7567          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569   (eval $ac_try) 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); }; } &&
7573          { ac_try='test -s conftest.$ac_objext'
7574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575   (eval $ac_try) 2>&5
7576   ac_status=$?
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); }; }; then
7579   gcc_cv_glibc=yes
7580 else
7581   echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7583
7584 gcc_cv_glibc=no
7585 fi
7586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7587 fi
7588
7589 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7590 echo "${ECHO_T}$gcc_cv_glibc" >&6
7591 if test $gcc_cv_glibc = yes; then
7592
7593 cat >>confdefs.h <<\_ACEOF
7594 #define _GNU_SOURCE 1
7595 _ACEOF
7596
7597 fi
7598
7599 # Need to reject headers which give warnings, so that the -Werror bootstrap
7600 # works later. *sigh*  This needs to come before all header checks.
7601
7602 ac_c_preproc_warn_flag=yes
7603
7604 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7605 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7606 if test "${ac_cv_header_stdc+set}" = set; then
7607   echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609   cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h.  */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h.  */
7615 #include <stdlib.h>
7616 #include <stdarg.h>
7617 #include <string.h>
7618 #include <float.h>
7619
7620 int
7621 main ()
7622 {
7623
7624   ;
7625   return 0;
7626 }
7627 _ACEOF
7628 rm -f conftest.$ac_objext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7630   (eval $ac_compile) 2>conftest.er1
7631   ac_status=$?
7632   grep -v '^ *+' conftest.er1 >conftest.err
7633   rm -f conftest.er1
7634   cat conftest.err >&5
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); } &&
7637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639   (eval $ac_try) 2>&5
7640   ac_status=$?
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); }; } &&
7643          { ac_try='test -s conftest.$ac_objext'
7644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645   (eval $ac_try) 2>&5
7646   ac_status=$?
7647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); }; }; then
7649   ac_cv_header_stdc=yes
7650 else
7651   echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7653
7654 ac_cv_header_stdc=no
7655 fi
7656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7657
7658 if test $ac_cv_header_stdc = yes; then
7659   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7660   cat >conftest.$ac_ext <<_ACEOF
7661 /* confdefs.h.  */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h.  */
7666 #include <string.h>
7667
7668 _ACEOF
7669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7670   $EGREP "memchr" >/dev/null 2>&1; then
7671   :
7672 else
7673   ac_cv_header_stdc=no
7674 fi
7675 rm -f conftest*
7676
7677 fi
7678
7679 if test $ac_cv_header_stdc = yes; then
7680   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7681   cat >conftest.$ac_ext <<_ACEOF
7682 /* confdefs.h.  */
7683 _ACEOF
7684 cat confdefs.h >>conftest.$ac_ext
7685 cat >>conftest.$ac_ext <<_ACEOF
7686 /* end confdefs.h.  */
7687 #include <stdlib.h>
7688
7689 _ACEOF
7690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7691   $EGREP "free" >/dev/null 2>&1; then
7692   :
7693 else
7694   ac_cv_header_stdc=no
7695 fi
7696 rm -f conftest*
7697
7698 fi
7699
7700 if test $ac_cv_header_stdc = yes; then
7701   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7702   if test "$cross_compiling" = yes; then
7703   :
7704 else
7705   cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h.  */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h.  */
7711 #include <ctype.h>
7712 #if ((' ' & 0x0FF) == 0x020)
7713 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7714 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7715 #else
7716 # define ISLOWER(c) \
7717                    (('a' <= (c) && (c) <= 'i') \
7718                      || ('j' <= (c) && (c) <= 'r') \
7719                      || ('s' <= (c) && (c) <= 'z'))
7720 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7721 #endif
7722
7723 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7724 int
7725 main ()
7726 {
7727   int i;
7728   for (i = 0; i < 256; i++)
7729     if (XOR (islower (i), ISLOWER (i))
7730         || toupper (i) != TOUPPER (i))
7731       exit(2);
7732   exit (0);
7733 }
7734 _ACEOF
7735 rm -f conftest$ac_exeext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7737   (eval $ac_link) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; }; then
7746   :
7747 else
7748   echo "$as_me: program exited with status $ac_status" >&5
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7751
7752 ( exit $ac_status )
7753 ac_cv_header_stdc=no
7754 fi
7755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7756 fi
7757 fi
7758 fi
7759 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7760 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7761 if test $ac_cv_header_stdc = yes; then
7762
7763 cat >>confdefs.h <<\_ACEOF
7764 #define STDC_HEADERS 1
7765 _ACEOF
7766
7767 fi
7768
7769 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7770 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7771 if test "${ac_cv_header_time+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h.  */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h.  */
7780 #include <sys/types.h>
7781 #include <sys/time.h>
7782 #include <time.h>
7783
7784 int
7785 main ()
7786 {
7787 if ((struct tm *) 0)
7788 return 0;
7789   ;
7790   return 0;
7791 }
7792 _ACEOF
7793 rm -f conftest.$ac_objext
7794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795   (eval $ac_compile) 2>conftest.er1
7796   ac_status=$?
7797   grep -v '^ *+' conftest.er1 >conftest.err
7798   rm -f conftest.er1
7799   cat conftest.err >&5
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); } &&
7802          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804   (eval $ac_try) 2>&5
7805   ac_status=$?
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); }; } &&
7808          { ac_try='test -s conftest.$ac_objext'
7809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810   (eval $ac_try) 2>&5
7811   ac_status=$?
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); }; }; then
7814   ac_cv_header_time=yes
7815 else
7816   echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7818
7819 ac_cv_header_time=no
7820 fi
7821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7822 fi
7823 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7824 echo "${ECHO_T}$ac_cv_header_time" >&6
7825 if test $ac_cv_header_time = yes; then
7826
7827 cat >>confdefs.h <<\_ACEOF
7828 #define TIME_WITH_SYS_TIME 1
7829 _ACEOF
7830
7831 fi
7832
7833 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7834 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7835 if test "${gcc_cv_header_string+set}" = set; then
7836   echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838   cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h.  */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h.  */
7844 #include <string.h>
7845 #include <strings.h>
7846 int
7847 main ()
7848 {
7849
7850   ;
7851   return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7856   (eval $ac_compile) 2>conftest.er1
7857   ac_status=$?
7858   grep -v '^ *+' conftest.er1 >conftest.err
7859   rm -f conftest.er1
7860   cat conftest.err >&5
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); } &&
7863          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865   (eval $ac_try) 2>&5
7866   ac_status=$?
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); }; } &&
7869          { ac_try='test -s conftest.$ac_objext'
7870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871   (eval $ac_try) 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }; }; then
7875   gcc_cv_header_string=yes
7876 else
7877   echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880 gcc_cv_header_string=no
7881 fi
7882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7883 fi
7884 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7885 echo "${ECHO_T}$gcc_cv_header_string" >&6
7886 if test $gcc_cv_header_string = yes; then
7887
7888 cat >>confdefs.h <<\_ACEOF
7889 #define STRING_WITH_STRINGS 1
7890 _ACEOF
7891
7892 fi
7893
7894 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7895 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7896 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7897   echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899   cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905 #include <sys/types.h>
7906 #include <sys/wait.h>
7907 #ifndef WEXITSTATUS
7908 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7909 #endif
7910 #ifndef WIFEXITED
7911 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7912 #endif
7913
7914 int
7915 main ()
7916 {
7917   int s;
7918   wait (&s);
7919   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7920   ;
7921   return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7926   (eval $ac_compile) 2>conftest.er1
7927   ac_status=$?
7928   grep -v '^ *+' conftest.er1 >conftest.err
7929   rm -f conftest.er1
7930   cat conftest.err >&5
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); } &&
7933          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935   (eval $ac_try) 2>&5
7936   ac_status=$?
7937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938   (exit $ac_status); }; } &&
7939          { ac_try='test -s conftest.$ac_objext'
7940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941   (eval $ac_try) 2>&5
7942   ac_status=$?
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); }; }; then
7945   ac_cv_header_sys_wait_h=yes
7946 else
7947   echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7949
7950 ac_cv_header_sys_wait_h=no
7951 fi
7952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7953 fi
7954 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7955 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7956 if test $ac_cv_header_sys_wait_h = yes; then
7957
7958 cat >>confdefs.h <<\_ACEOF
7959 #define HAVE_SYS_WAIT_H 1
7960 _ACEOF
7961
7962 fi
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7987                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7988                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
7989                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7990 do
7991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7992 echo "$as_me:$LINENO: checking for $ac_header" >&5
7993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997   cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h.  */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h.  */
8003 #include <$ac_header>
8004 _ACEOF
8005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8007   ac_status=$?
8008   grep -v '^ *+' conftest.er1 >conftest.err
8009   rm -f conftest.er1
8010   cat conftest.err >&5
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); } >/dev/null; then
8013   if test -s conftest.err; then
8014     ac_cpp_err=$ac_c_preproc_warn_flag
8015     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8016   else
8017     ac_cpp_err=
8018   fi
8019 else
8020   ac_cpp_err=yes
8021 fi
8022 if test -z "$ac_cpp_err"; then
8023   eval "$as_ac_Header=yes"
8024 else
8025   echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028   eval "$as_ac_Header=no"
8029 fi
8030 rm -f conftest.err conftest.$ac_ext
8031 fi
8032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8035   cat >>confdefs.h <<_ACEOF
8036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8037 _ACEOF
8038
8039 fi
8040 done
8041
8042
8043 # Check for thread headers.
8044 echo "$as_me:$LINENO: checking for thread.h" >&5
8045 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8046 if test "${ac_cv_header_thread_h+set}" = set; then
8047   echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049   cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h.  */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h.  */
8055 #include <thread.h>
8056 _ACEOF
8057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8059   ac_status=$?
8060   grep -v '^ *+' conftest.er1 >conftest.err
8061   rm -f conftest.er1
8062   cat conftest.err >&5
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); } >/dev/null; then
8065   if test -s conftest.err; then
8066     ac_cpp_err=$ac_c_preproc_warn_flag
8067     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8068   else
8069     ac_cpp_err=
8070   fi
8071 else
8072   ac_cpp_err=yes
8073 fi
8074 if test -z "$ac_cpp_err"; then
8075   ac_cv_header_thread_h=yes
8076 else
8077   echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8079
8080   ac_cv_header_thread_h=no
8081 fi
8082 rm -f conftest.err conftest.$ac_ext
8083 fi
8084 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8085 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8086 if test $ac_cv_header_thread_h = yes; then
8087   have_thread_h=yes
8088 else
8089   have_thread_h=
8090 fi
8091
8092 echo "$as_me:$LINENO: checking for pthread.h" >&5
8093 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8094 if test "${ac_cv_header_pthread_h+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103 #include <pthread.h>
8104 _ACEOF
8105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8107   ac_status=$?
8108   grep -v '^ *+' conftest.er1 >conftest.err
8109   rm -f conftest.er1
8110   cat conftest.err >&5
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); } >/dev/null; then
8113   if test -s conftest.err; then
8114     ac_cpp_err=$ac_c_preproc_warn_flag
8115     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8116   else
8117     ac_cpp_err=
8118   fi
8119 else
8120   ac_cpp_err=yes
8121 fi
8122 if test -z "$ac_cpp_err"; then
8123   ac_cv_header_pthread_h=yes
8124 else
8125   echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128   ac_cv_header_pthread_h=no
8129 fi
8130 rm -f conftest.err conftest.$ac_ext
8131 fi
8132 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8133 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8134 if test $ac_cv_header_pthread_h = yes; then
8135   have_pthread_h=yes
8136 else
8137   have_pthread_h=
8138 fi
8139
8140
8141 # These tests can't be done till we know if we have limits.h.
8142 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8143 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8144 if test "${gcc_cv_decl_char_bit+set}" = set; then
8145   echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147   cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h.  */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h.  */
8153 #ifdef HAVE_LIMITS_H
8154 #include <limits.h>
8155 #endif
8156 #ifdef CHAR_BIT
8157 found
8158 #endif
8159 _ACEOF
8160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8161   $EGREP "found" >/dev/null 2>&1; then
8162   gcc_cv_decl_char_bit=yes
8163 else
8164   gcc_cv_decl_char_bit=no
8165 fi
8166 rm -f conftest*
8167
8168
8169 fi
8170 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8171 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8172 if test $gcc_cv_decl_char_bit = no; then
8173   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8174 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8175 if test "${gcc_cv_c_nbby+set}" = set; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   i=8
8179  gcc_cv_c_nbby=
8180  while test $i -lt 65; do
8181    cat >conftest.$ac_ext <<_ACEOF
8182 /* confdefs.h.  */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h.  */
8187
8188 int
8189 main ()
8190 {
8191 switch(0) {
8192   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8193   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8194   ; }
8195   ;
8196   return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8201   (eval $ac_compile) 2>conftest.er1
8202   ac_status=$?
8203   grep -v '^ *+' conftest.er1 >conftest.err
8204   rm -f conftest.er1
8205   cat conftest.err >&5
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210   (eval $ac_try) 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; } &&
8214          { ac_try='test -s conftest.$ac_objext'
8215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216   (eval $ac_try) 2>&5
8217   ac_status=$?
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); }; }; then
8220   gcc_cv_c_nbby=$i; break
8221 else
8222   echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8224
8225 fi
8226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8227    i=`expr $i + 1`
8228  done
8229  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8230
8231 fi
8232 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8233 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8234 if test $gcc_cv_c_nbby = failed; then
8235   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8236 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8237    { (exit 1); exit 1; }; }
8238 else
8239
8240 cat >>confdefs.h <<_ACEOF
8241 #define CHAR_BIT $gcc_cv_c_nbby
8242 _ACEOF
8243
8244 fi
8245 fi
8246 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8247 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8248 if test "${ac_cv_c_bigendian+set}" = set; then
8249   echo $ECHO_N "(cached) $ECHO_C" >&6
8250 else
8251   ac_cv_c_bigendian=unknown
8252 # See if sys/param.h defines the BYTE_ORDER macro.
8253 cat >conftest.$ac_ext <<_ACEOF
8254 /* confdefs.h.  */
8255 _ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h.  */
8259 #include <sys/types.h>
8260 #include <sys/param.h>
8261 int
8262 main ()
8263 {
8264
8265 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8266  bogus endian macros
8267 #endif
8268   ;
8269   return 0;
8270 }
8271 _ACEOF
8272 rm -f conftest.$ac_objext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274   (eval $ac_compile) 2>conftest.er1
8275   ac_status=$?
8276   grep -v '^ *+' conftest.er1 >conftest.err
8277   rm -f conftest.er1
8278   cat conftest.err >&5
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); } &&
8281          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283   (eval $ac_try) 2>&5
8284   ac_status=$?
8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286   (exit $ac_status); }; } &&
8287          { ac_try='test -s conftest.$ac_objext'
8288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289   (eval $ac_try) 2>&5
8290   ac_status=$?
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); }; }; then
8293   # It does; now see whether it defined to BIG_ENDIAN or not.
8294 cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h.  */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h.  */
8300 #include <sys/types.h>
8301 #include <sys/param.h>
8302 int
8303 main ()
8304 {
8305
8306 #if BYTE_ORDER != BIG_ENDIAN
8307  not big endian
8308 #endif
8309   ;
8310   return 0;
8311 }
8312 _ACEOF
8313 rm -f conftest.$ac_objext
8314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8315   (eval $ac_compile) 2>conftest.er1
8316   ac_status=$?
8317   grep -v '^ *+' conftest.er1 >conftest.err
8318   rm -f conftest.er1
8319   cat conftest.err >&5
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); } &&
8322          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324   (eval $ac_try) 2>&5
8325   ac_status=$?
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); }; } &&
8328          { ac_try='test -s conftest.$ac_objext'
8329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330   (eval $ac_try) 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); }; }; then
8334   ac_cv_c_bigendian=yes
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339 ac_cv_c_bigendian=no
8340 fi
8341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8342 else
8343   echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346 fi
8347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8348 if test $ac_cv_c_bigendian = unknown; then
8349 if test "$cross_compiling" = yes; then
8350    echo $ac_n "cross-compiling... " 2>&6
8351 else
8352   cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358 main () {
8359   /* Are we little or big endian?  From Harbison&Steele.  */
8360   union
8361   {
8362     long l;
8363     char c[sizeof (long)];
8364   } u;
8365   u.l = 1;
8366   exit (u.c[sizeof (long) - 1] == 1);
8367 }
8368 _ACEOF
8369 rm -f conftest$ac_exeext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371   (eval $ac_link) 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376   (eval $ac_try) 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); }; }; then
8380   ac_cv_c_bigendian=no
8381 else
8382   echo "$as_me: program exited with status $ac_status" >&5
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8385
8386 ( exit $ac_status )
8387 ac_cv_c_bigendian=yes
8388 fi
8389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8390 fi
8391 fi
8392 fi
8393 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8394 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8395 if test $ac_cv_c_bigendian = unknown; then
8396 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8397 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8398
8399 cat >conftest.c <<EOF
8400 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8401 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8402 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8403 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8404 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8405 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8406 int main() { _ascii (); _ebcdic (); return 0; }
8407 EOF
8408  if test -f conftest.c ; then
8409      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8410         if test `grep -l BIGenDianSyS conftest.o` ; then
8411            echo $ac_n ' big endian probe OK, ' 1>&6
8412            ac_cv_c_bigendian=yes
8413         fi
8414         if test `grep -l LiTTleEnDian conftest.o` ; then
8415            echo $ac_n ' little endian probe OK, ' 1>&6
8416            if test $ac_cv_c_bigendian = yes ; then
8417             ac_cv_c_bigendian=unknown;
8418            else
8419             ac_cv_c_bigendian=no
8420            fi
8421         fi
8422         echo $ac_n 'guessing bigendian ...  ' >&6
8423      fi
8424   fi
8425 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8426 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8427 fi
8428 if test $ac_cv_c_bigendian = yes; then
8429
8430 cat >>confdefs.h <<\_ACEOF
8431 #define WORDS_BIGENDIAN 1
8432 _ACEOF
8433
8434
8435 cat >>confdefs.h <<\_ACEOF
8436 #define HOST_WORDS_BIG_ENDIAN 1
8437 _ACEOF
8438
8439   BYTEORDER=4321
8440 else
8441   BYTEORDER=1234
8442 fi
8443
8444 cat >>confdefs.h <<_ACEOF
8445 #define BYTEORDER $BYTEORDER
8446 _ACEOF
8447
8448 if test $ac_cv_c_bigendian = unknown; then
8449   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8450 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8451    { (exit 1); exit 1; }; }
8452 fi
8453
8454
8455 # --------
8456 # UNSORTED
8457 # --------
8458
8459 # Stage specific cflags for build.
8460 stage1_cflags=
8461 case $build in
8462 vax-*-*)
8463   if test x$GCC = xyes
8464   then
8465     stage1_cflags="-Wa,-J"
8466   else
8467     stage1_cflags="-J"
8468   fi
8469   ;;
8470 powerpc-*-darwin*)
8471   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8472   # sources; use -no-cpp-precomp to get to GNU cpp.
8473   # Apple's GCC has bugs in designated initializer handling, so disable
8474   # that too.
8475   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8476   ;;
8477 esac
8478
8479
8480 # These libraries may be used by collect2.
8481 # We may need a special search path to get them linked.
8482 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8483 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8484 if test "${gcc_cv_collect2_libs+set}" = set; then
8485   echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487   save_LIBS="$LIBS"
8488 for libs in '' -lld -lmld \
8489                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8490                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8491 do
8492         LIBS="$libs"
8493         cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h.  */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h.  */
8499
8500 /* Override any gcc2 internal prototype to avoid an error.  */
8501 #ifdef __cplusplus
8502 extern "C"
8503 #endif
8504 /* We use char because int might match the return type of a gcc2
8505    builtin and then its argument prototype would still apply.  */
8506 char ldopen ();
8507 int
8508 main ()
8509 {
8510 ldopen ();
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517   (eval $ac_link) 2>conftest.er1
8518   ac_status=$?
8519   grep -v '^ *+' conftest.er1 >conftest.err
8520   rm -f conftest.er1
8521   cat conftest.err >&5
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } &&
8524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526   (eval $ac_try) 2>&5
8527   ac_status=$?
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); }; } &&
8530          { ac_try='test -s conftest$ac_exeext'
8531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532   (eval $ac_try) 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; }; then
8536   gcc_cv_collect2_libs="$libs"; break
8537 else
8538   echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541 fi
8542 rm -f conftest.err conftest.$ac_objext \
8543       conftest$ac_exeext conftest.$ac_ext
8544 done
8545 LIBS="$save_LIBS"
8546 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8547 fi
8548 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8549 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8550 case $gcc_cv_collect2_libs in
8551         "none required")        ;;
8552         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8553 esac
8554
8555
8556 # When building Ada code on Alpha, we need exc_resume which is usually in
8557 # -lexc.  So test for it.
8558 save_LIBS="$LIBS"
8559 LIBS=
8560 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8561 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8562 if test "${ac_cv_search_exc_resume+set}" = set; then
8563   echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565   ac_func_search_save_LIBS=$LIBS
8566 ac_cv_search_exc_resume=no
8567 cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h.  */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h.  */
8573
8574 /* Override any gcc2 internal prototype to avoid an error.  */
8575 #ifdef __cplusplus
8576 extern "C"
8577 #endif
8578 /* We use char because int might match the return type of a gcc2
8579    builtin and then its argument prototype would still apply.  */
8580 char exc_resume ();
8581 int
8582 main ()
8583 {
8584 exc_resume ();
8585   ;
8586   return 0;
8587 }
8588 _ACEOF
8589 rm -f conftest.$ac_objext conftest$ac_exeext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8591   (eval $ac_link) 2>conftest.er1
8592   ac_status=$?
8593   grep -v '^ *+' conftest.er1 >conftest.err
8594   rm -f conftest.er1
8595   cat conftest.err >&5
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); } &&
8598          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600   (eval $ac_try) 2>&5
8601   ac_status=$?
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); }; } &&
8604          { ac_try='test -s conftest$ac_exeext'
8605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606   (eval $ac_try) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }; }; then
8610   ac_cv_search_exc_resume="none required"
8611 else
8612   echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8614
8615 fi
8616 rm -f conftest.err conftest.$ac_objext \
8617       conftest$ac_exeext conftest.$ac_ext
8618 if test "$ac_cv_search_exc_resume" = no; then
8619   for ac_lib in exc; do
8620     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8621     cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h.  */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h.  */
8627
8628 /* Override any gcc2 internal prototype to avoid an error.  */
8629 #ifdef __cplusplus
8630 extern "C"
8631 #endif
8632 /* We use char because int might match the return type of a gcc2
8633    builtin and then its argument prototype would still apply.  */
8634 char exc_resume ();
8635 int
8636 main ()
8637 {
8638 exc_resume ();
8639   ;
8640   return 0;
8641 }
8642 _ACEOF
8643 rm -f conftest.$ac_objext conftest$ac_exeext
8644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8645   (eval $ac_link) 2>conftest.er1
8646   ac_status=$?
8647   grep -v '^ *+' conftest.er1 >conftest.err
8648   rm -f conftest.er1
8649   cat conftest.err >&5
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); } &&
8652          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654   (eval $ac_try) 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); }; } &&
8658          { ac_try='test -s conftest$ac_exeext'
8659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660   (eval $ac_try) 2>&5
8661   ac_status=$?
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); }; }; then
8664   ac_cv_search_exc_resume="-l$ac_lib"
8665 break
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670 fi
8671 rm -f conftest.err conftest.$ac_objext \
8672       conftest$ac_exeext conftest.$ac_ext
8673   done
8674 fi
8675 LIBS=$ac_func_search_save_LIBS
8676 fi
8677 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8678 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8679 if test "$ac_cv_search_exc_resume" != no; then
8680   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8681
8682 fi
8683
8684 GNAT_LIBEXC="$LIBS"
8685 LIBS="$save_LIBS"
8686
8687
8688 # Some systems put ldexp and frexp in libm instead of libc; assume
8689 # they're both in the same place.  jcf-dump needs them.
8690 save_LIBS="$LIBS"
8691 LIBS=
8692 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8693 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8694 if test "${ac_cv_search_ldexp+set}" = set; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697   ac_func_search_save_LIBS=$LIBS
8698 ac_cv_search_ldexp=no
8699 cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h.  */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h.  */
8705
8706 /* Override any gcc2 internal prototype to avoid an error.  */
8707 #ifdef __cplusplus
8708 extern "C"
8709 #endif
8710 /* We use char because int might match the return type of a gcc2
8711    builtin and then its argument prototype would still apply.  */
8712 char ldexp ();
8713 int
8714 main ()
8715 {
8716 ldexp ();
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8723   (eval $ac_link) 2>conftest.er1
8724   ac_status=$?
8725   grep -v '^ *+' conftest.er1 >conftest.err
8726   rm -f conftest.er1
8727   cat conftest.err >&5
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } &&
8730          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732   (eval $ac_try) 2>&5
8733   ac_status=$?
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); }; } &&
8736          { ac_try='test -s conftest$ac_exeext'
8737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738   (eval $ac_try) 2>&5
8739   ac_status=$?
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); }; }; then
8742   ac_cv_search_ldexp="none required"
8743 else
8744   echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8746
8747 fi
8748 rm -f conftest.err conftest.$ac_objext \
8749       conftest$ac_exeext conftest.$ac_ext
8750 if test "$ac_cv_search_ldexp" = no; then
8751   for ac_lib in m; do
8752     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8753     cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h.  */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h.  */
8759
8760 /* Override any gcc2 internal prototype to avoid an error.  */
8761 #ifdef __cplusplus
8762 extern "C"
8763 #endif
8764 /* We use char because int might match the return type of a gcc2
8765    builtin and then its argument prototype would still apply.  */
8766 char ldexp ();
8767 int
8768 main ()
8769 {
8770 ldexp ();
8771   ;
8772   return 0;
8773 }
8774 _ACEOF
8775 rm -f conftest.$ac_objext conftest$ac_exeext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8777   (eval $ac_link) 2>conftest.er1
8778   ac_status=$?
8779   grep -v '^ *+' conftest.er1 >conftest.err
8780   rm -f conftest.er1
8781   cat conftest.err >&5
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); } &&
8784          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786   (eval $ac_try) 2>&5
8787   ac_status=$?
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); }; } &&
8790          { ac_try='test -s conftest$ac_exeext'
8791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792   (eval $ac_try) 2>&5
8793   ac_status=$?
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); }; }; then
8796   ac_cv_search_ldexp="-l$ac_lib"
8797 break
8798 else
8799   echo "$as_me: failed program was:" >&5
8800 sed 's/^/| /' conftest.$ac_ext >&5
8801
8802 fi
8803 rm -f conftest.err conftest.$ac_objext \
8804       conftest$ac_exeext conftest.$ac_ext
8805   done
8806 fi
8807 LIBS=$ac_func_search_save_LIBS
8808 fi
8809 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8810 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8811 if test "$ac_cv_search_ldexp" != no; then
8812   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8813
8814 fi
8815
8816 LDEXP_LIB="$LIBS"
8817 LIBS="$save_LIBS"
8818
8819
8820 # Use <inttypes.h> only if it exists,
8821 # doesn't clash with <sys/types.h>, and declares intmax_t.
8822 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8823 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8824 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8825   echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827   cat >conftest.$ac_ext <<_ACEOF
8828 /* confdefs.h.  */
8829 _ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h.  */
8833 #include <sys/types.h>
8834 #include <inttypes.h>
8835 int
8836 main ()
8837 {
8838 intmax_t i = -1;
8839   ;
8840   return 0;
8841 }
8842 _ACEOF
8843 rm -f conftest.$ac_objext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845   (eval $ac_compile) 2>conftest.er1
8846   ac_status=$?
8847   grep -v '^ *+' conftest.er1 >conftest.err
8848   rm -f conftest.er1
8849   cat conftest.err >&5
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); } &&
8852          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854   (eval $ac_try) 2>&5
8855   ac_status=$?
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); }; } &&
8858          { ac_try='test -s conftest.$ac_objext'
8859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860   (eval $ac_try) 2>&5
8861   ac_status=$?
8862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); }; }; then
8864   gcc_cv_header_inttypes_h=yes
8865 else
8866   echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8868
8869 gcc_cv_header_inttypes_h=no
8870 fi
8871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8872 fi
8873
8874 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8875 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8876 if test $gcc_cv_header_inttypes_h = yes; then
8877
8878 cat >>confdefs.h <<\_ACEOF
8879 #define HAVE_INTTYPES_H 1
8880 _ACEOF
8881
8882 fi
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
8911         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8912         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8913         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8914         setlocale
8915 do
8916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8917 echo "$as_me:$LINENO: checking for $ac_func" >&5
8918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8919 if eval "test \"\${$as_ac_var+set}\" = set"; then
8920   echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922   cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h.  */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h.  */
8928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8930 #define $ac_func innocuous_$ac_func
8931
8932 /* System header to define __stub macros and hopefully few prototypes,
8933     which can conflict with char $ac_func (); below.
8934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8935     <limits.h> exists even on freestanding compilers.  */
8936
8937 #ifdef __STDC__
8938 # include <limits.h>
8939 #else
8940 # include <assert.h>
8941 #endif
8942
8943 #undef $ac_func
8944
8945 /* Override any gcc2 internal prototype to avoid an error.  */
8946 #ifdef __cplusplus
8947 extern "C"
8948 {
8949 #endif
8950 /* We use char because int might match the return type of a gcc2
8951    builtin and then its argument prototype would still apply.  */
8952 char $ac_func ();
8953 /* The GNU C library defines this for functions which it implements
8954     to always fail with ENOSYS.  Some functions are actually named
8955     something starting with __ and the normal name is an alias.  */
8956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8957 choke me
8958 #else
8959 char (*f) () = $ac_func;
8960 #endif
8961 #ifdef __cplusplus
8962 }
8963 #endif
8964
8965 int
8966 main ()
8967 {
8968 return f != $ac_func;
8969   ;
8970   return 0;
8971 }
8972 _ACEOF
8973 rm -f conftest.$ac_objext conftest$ac_exeext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975   (eval $ac_link) 2>conftest.er1
8976   ac_status=$?
8977   grep -v '^ *+' conftest.er1 >conftest.err
8978   rm -f conftest.er1
8979   cat conftest.err >&5
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); } &&
8982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984   (eval $ac_try) 2>&5
8985   ac_status=$?
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); }; } &&
8988          { ac_try='test -s conftest$ac_exeext'
8989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990   (eval $ac_try) 2>&5
8991   ac_status=$?
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); }; }; then
8994   eval "$as_ac_var=yes"
8995 else
8996   echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8998
8999 eval "$as_ac_var=no"
9000 fi
9001 rm -f conftest.err conftest.$ac_objext \
9002       conftest$ac_exeext conftest.$ac_ext
9003 fi
9004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9006 if test `eval echo '${'$as_ac_var'}'` = yes; then
9007   cat >>confdefs.h <<_ACEOF
9008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9009 _ACEOF
9010
9011 fi
9012 done
9013
9014
9015 if test x$ac_cv_func_mbstowcs = xyes; then
9016   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9017 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9018 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021       if test "$cross_compiling" = yes; then
9022   gcc_cv_func_mbstowcs_works=yes
9023 else
9024   cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h.  */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h.  */
9030 #include <stdlib.h>
9031 int main()
9032 {
9033   mbstowcs(0, "", 0);
9034   return 0;
9035 }
9036 _ACEOF
9037 rm -f conftest$ac_exeext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039   (eval $ac_link) 2>&5
9040   ac_status=$?
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044   (eval $ac_try) 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); }; }; then
9048   gcc_cv_func_mbstowcs_works=yes
9049 else
9050   echo "$as_me: program exited with status $ac_status" >&5
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9053
9054 ( exit $ac_status )
9055 gcc_cv_func_mbstowcs_works=no
9056 fi
9057 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9058 fi
9059 fi
9060 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9061 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9062   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9063
9064 cat >>confdefs.h <<\_ACEOF
9065 #define HAVE_WORKING_MBSTOWCS 1
9066 _ACEOF
9067
9068   fi
9069 fi
9070
9071 echo "$as_me:$LINENO: checking for ssize_t" >&5
9072 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9073 if test "${ac_cv_type_ssize_t+set}" = set; then
9074   echo $ECHO_N "(cached) $ECHO_C" >&6
9075 else
9076   cat >conftest.$ac_ext <<_ACEOF
9077 /* confdefs.h.  */
9078 _ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h.  */
9082 $ac_includes_default
9083 int
9084 main ()
9085 {
9086 if ((ssize_t *) 0)
9087   return 0;
9088 if (sizeof (ssize_t))
9089   return 0;
9090   ;
9091   return 0;
9092 }
9093 _ACEOF
9094 rm -f conftest.$ac_objext
9095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9096   (eval $ac_compile) 2>conftest.er1
9097   ac_status=$?
9098   grep -v '^ *+' conftest.er1 >conftest.err
9099   rm -f conftest.er1
9100   cat conftest.err >&5
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); } &&
9103          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105   (eval $ac_try) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); }; } &&
9109          { ac_try='test -s conftest.$ac_objext'
9110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111   (eval $ac_try) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); }; }; then
9115   ac_cv_type_ssize_t=yes
9116 else
9117   echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9119
9120 ac_cv_type_ssize_t=no
9121 fi
9122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9123 fi
9124 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9125 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9126 if test $ac_cv_type_ssize_t = yes; then
9127   :
9128 else
9129
9130 cat >>confdefs.h <<_ACEOF
9131 #define ssize_t int
9132 _ACEOF
9133
9134 fi
9135
9136
9137 # Try to determine the array type of the second argument of getgroups
9138 # for the target system (int or gid_t).
9139 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9140 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9141 if test "${ac_cv_type_uid_t+set}" = set; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144   cat >conftest.$ac_ext <<_ACEOF
9145 /* confdefs.h.  */
9146 _ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h.  */
9150 #include <sys/types.h>
9151
9152 _ACEOF
9153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9154   $EGREP "uid_t" >/dev/null 2>&1; then
9155   ac_cv_type_uid_t=yes
9156 else
9157   ac_cv_type_uid_t=no
9158 fi
9159 rm -f conftest*
9160
9161 fi
9162 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9163 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9164 if test $ac_cv_type_uid_t = no; then
9165
9166 cat >>confdefs.h <<\_ACEOF
9167 #define uid_t int
9168 _ACEOF
9169
9170
9171 cat >>confdefs.h <<\_ACEOF
9172 #define gid_t int
9173 _ACEOF
9174
9175 fi
9176
9177 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9178 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9179 if test "${ac_cv_type_getgroups+set}" = set; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182   if test "$cross_compiling" = yes; then
9183   ac_cv_type_getgroups=cross
9184 else
9185   cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h.  */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h.  */
9191 /* Thanks to Mike Rendell for this test.  */
9192 #include <sys/types.h>
9193 #define NGID 256
9194 #undef MAX
9195 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9196
9197 int
9198 main ()
9199 {
9200   gid_t gidset[NGID];
9201   int i, n;
9202   union { gid_t gval; long lval; }  val;
9203
9204   val.lval = -1;
9205   for (i = 0; i < NGID; i++)
9206     gidset[i] = val.gval;
9207   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9208                  gidset);
9209   /* Exit non-zero if getgroups seems to require an array of ints.  This
9210      happens when gid_t is short but getgroups modifies an array of ints.  */
9211   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9212 }
9213 _ACEOF
9214 rm -f conftest$ac_exeext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9216   (eval $ac_link) 2>&5
9217   ac_status=$?
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221   (eval $ac_try) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); }; }; then
9225   ac_cv_type_getgroups=gid_t
9226 else
9227   echo "$as_me: program exited with status $ac_status" >&5
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231 ( exit $ac_status )
9232 ac_cv_type_getgroups=int
9233 fi
9234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9235 fi
9236 if test $ac_cv_type_getgroups = cross; then
9237         cat >conftest.$ac_ext <<_ACEOF
9238 /* confdefs.h.  */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h.  */
9243 #include <unistd.h>
9244
9245 _ACEOF
9246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9247   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9248   ac_cv_type_getgroups=gid_t
9249 else
9250   ac_cv_type_getgroups=int
9251 fi
9252 rm -f conftest*
9253
9254 fi
9255 fi
9256 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9257 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9258
9259 cat >>confdefs.h <<_ACEOF
9260 #define GETGROUPS_T $ac_cv_type_getgroups
9261 _ACEOF
9262
9263
9264 if test "${target}" = "${build}"; then
9265   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9266 else
9267   case "${target}" in
9268         # This condition may need some tweaking.  It should include all
9269         # targets where the array type of the second argument of getgroups
9270         # is int and the type of gid_t is not equivalent to int.
9271         *-*-sunos* | *-*-ultrix*)
9272                 TARGET_GETGROUPS_T=int
9273                 ;;
9274         *)
9275                 TARGET_GETGROUPS_T=gid_t
9276                 ;;
9277   esac
9278 fi
9279
9280
9281 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9282 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9283 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   if test "$cross_compiling" = yes; then
9287   gcc_cv_func_printf_ptr=no
9288 else
9289   cat >conftest.$ac_ext <<_ACEOF
9290 /* confdefs.h.  */
9291 _ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h.  */
9295 #include <stdio.h>
9296
9297 int main()
9298 {
9299   char buf[64];
9300   char *p = buf, *q = NULL;
9301   sprintf(buf, "%p", p);
9302   sscanf(buf, "%p", &q);
9303   return (p != q);
9304 }
9305 _ACEOF
9306 rm -f conftest$ac_exeext
9307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308   (eval $ac_link) 2>&5
9309   ac_status=$?
9310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313   (eval $ac_try) 2>&5
9314   ac_status=$?
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); }; }; then
9317   gcc_cv_func_printf_ptr=yes
9318 else
9319   echo "$as_me: program exited with status $ac_status" >&5
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9322
9323 ( exit $ac_status )
9324 gcc_cv_func_printf_ptr=no
9325 fi
9326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9327 fi
9328 rm -f core core.* *.core
9329 fi
9330 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9331 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9332 if test $gcc_cv_func_printf_ptr = yes ; then
9333
9334 cat >>confdefs.h <<\_ACEOF
9335 #define HAVE_PRINTF_PTR 1
9336 _ACEOF
9337
9338 fi
9339
9340
9341 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9342 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9343 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9344   echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346   cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h.  */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h.  */
9352 #include <sys/mman.h>
9353 _ACEOF
9354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } >/dev/null; then
9362   if test -s conftest.err; then
9363     ac_cpp_err=$ac_c_preproc_warn_flag
9364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9365   else
9366     ac_cpp_err=
9367   fi
9368 else
9369   ac_cpp_err=yes
9370 fi
9371 if test -z "$ac_cpp_err"; then
9372   ac_cv_header_sys_mman_h=yes
9373 else
9374   echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9376
9377   ac_cv_header_sys_mman_h=no
9378 fi
9379 rm -f conftest.err conftest.$ac_ext
9380 fi
9381 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9382 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9383 if test $ac_cv_header_sys_mman_h = yes; then
9384   gcc_header_sys_mman_h=yes
9385 else
9386   gcc_header_sys_mman_h=no
9387 fi
9388
9389 echo "$as_me:$LINENO: checking for mmap" >&5
9390 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9391 if test "${ac_cv_func_mmap+set}" = set; then
9392   echo $ECHO_N "(cached) $ECHO_C" >&6
9393 else
9394   cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h.  */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h.  */
9400 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9402 #define mmap innocuous_mmap
9403
9404 /* System header to define __stub macros and hopefully few prototypes,
9405     which can conflict with char mmap (); below.
9406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407     <limits.h> exists even on freestanding compilers.  */
9408
9409 #ifdef __STDC__
9410 # include <limits.h>
9411 #else
9412 # include <assert.h>
9413 #endif
9414
9415 #undef mmap
9416
9417 /* Override any gcc2 internal prototype to avoid an error.  */
9418 #ifdef __cplusplus
9419 extern "C"
9420 {
9421 #endif
9422 /* We use char because int might match the return type of a gcc2
9423    builtin and then its argument prototype would still apply.  */
9424 char mmap ();
9425 /* The GNU C library defines this for functions which it implements
9426     to always fail with ENOSYS.  Some functions are actually named
9427     something starting with __ and the normal name is an alias.  */
9428 #if defined (__stub_mmap) || defined (__stub___mmap)
9429 choke me
9430 #else
9431 char (*f) () = mmap;
9432 #endif
9433 #ifdef __cplusplus
9434 }
9435 #endif
9436
9437 int
9438 main ()
9439 {
9440 return f != mmap;
9441   ;
9442   return 0;
9443 }
9444 _ACEOF
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447   (eval $ac_link) 2>conftest.er1
9448   ac_status=$?
9449   grep -v '^ *+' conftest.er1 >conftest.err
9450   rm -f conftest.er1
9451   cat conftest.err >&5
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); } &&
9454          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456   (eval $ac_try) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); }; } &&
9460          { ac_try='test -s conftest$ac_exeext'
9461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462   (eval $ac_try) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); }; }; then
9466   ac_cv_func_mmap=yes
9467 else
9468   echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9470
9471 ac_cv_func_mmap=no
9472 fi
9473 rm -f conftest.err conftest.$ac_objext \
9474       conftest$ac_exeext conftest.$ac_ext
9475 fi
9476 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9477 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9478 if test $ac_cv_func_mmap = yes; then
9479   gcc_func_mmap=yes
9480 else
9481   gcc_func_mmap=no
9482 fi
9483
9484 if test "$gcc_header_sys_mman_h" != yes \
9485  || test "$gcc_func_mmap" != yes; then
9486    gcc_cv_func_mmap_file=no
9487    gcc_cv_func_mmap_dev_zero=no
9488    gcc_cv_func_mmap_anon=no
9489 else
9490    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9491 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9492 if test "${gcc_cv_func_mmap_file+set}" = set; then
9493   echo $ECHO_N "(cached) $ECHO_C" >&6
9494 else
9495   # Add a system to this blacklist if
9496    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9497    # memory area containing the same data that you'd get if you applied
9498    # read() to the same fd.  The only system known to have a problem here
9499    # is VMS, where text files have record structure.
9500    case "$host_os" in
9501      vms* | ultrix*)
9502         gcc_cv_func_mmap_file=no ;;
9503      *)
9504         gcc_cv_func_mmap_file=yes;;
9505    esac
9506 fi
9507 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9508 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9509    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9510 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9511 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9512   echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514   # Add a system to this blacklist if it has mmap() but /dev/zero
9515    # does not exist, or if mmapping /dev/zero does not give anonymous
9516    # zeroed pages with both the following properties:
9517    # 1. If you map N consecutive pages in with one call, and then
9518    #    unmap any subset of those pages, the pages that were not
9519    #    explicitly unmapped remain accessible.
9520    # 2. If you map two adjacent blocks of memory and then unmap them
9521    #    both at once, they must both go away.
9522    # Systems known to be in this category are Windows (all variants),
9523    # VMS, and Darwin.
9524    case "$host_os" in
9525      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9526         gcc_cv_func_mmap_dev_zero=no ;;
9527      *)
9528         gcc_cv_func_mmap_dev_zero=yes;;
9529    esac
9530 fi
9531 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9532 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9533
9534    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9535    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9536 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9537 if test "${gcc_cv_decl_map_anon+set}" = set; then
9538   echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540   cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h.  */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h.  */
9546 #include <sys/types.h>
9547 #include <sys/mman.h>
9548 #include <unistd.h>
9549
9550 #ifndef MAP_ANONYMOUS
9551 #define MAP_ANONYMOUS MAP_ANON
9552 #endif
9553
9554 int
9555 main ()
9556 {
9557 int n = MAP_ANONYMOUS;
9558   ;
9559   return 0;
9560 }
9561 _ACEOF
9562 rm -f conftest.$ac_objext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564   (eval $ac_compile) 2>conftest.er1
9565   ac_status=$?
9566   grep -v '^ *+' conftest.er1 >conftest.err
9567   rm -f conftest.er1
9568   cat conftest.err >&5
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); } &&
9571          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573   (eval $ac_try) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; } &&
9577          { ac_try='test -s conftest.$ac_objext'
9578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579   (eval $ac_try) 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); }; }; then
9583   gcc_cv_decl_map_anon=yes
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588 gcc_cv_decl_map_anon=no
9589 fi
9590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9591 fi
9592 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9593 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9594
9595    if test $gcc_cv_decl_map_anon = no; then
9596      gcc_cv_func_mmap_anon=no
9597    else
9598      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9599 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9600 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9601   echo $ECHO_N "(cached) $ECHO_C" >&6
9602 else
9603   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9604    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9605    # doesn't give anonymous zeroed pages with the same properties listed
9606    # above for use of /dev/zero.
9607    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9608    case "$host_os" in
9609      vms* | cygwin* | pe | mingw* | sco* | udk* )
9610         gcc_cv_func_mmap_anon=no ;;
9611      *)
9612         gcc_cv_func_mmap_anon=yes;;
9613    esac
9614 fi
9615 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9616 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9617    fi
9618 fi
9619
9620 if test $gcc_cv_func_mmap_file = yes; then
9621
9622 cat >>confdefs.h <<\_ACEOF
9623 #define HAVE_MMAP_FILE 1
9624 _ACEOF
9625
9626 fi
9627 if test $gcc_cv_func_mmap_dev_zero = yes; then
9628
9629 cat >>confdefs.h <<\_ACEOF
9630 #define HAVE_MMAP_DEV_ZERO 1
9631 _ACEOF
9632
9633 fi
9634 if test $gcc_cv_func_mmap_anon = yes; then
9635
9636 cat >>confdefs.h <<\_ACEOF
9637 #define HAVE_MMAP_ANON 1
9638 _ACEOF
9639
9640 fi
9641
9642
9643 case "${host}" in
9644 *-*-*vms*)
9645   # Under VMS, vfork works very differently than on Unix. The standard test
9646   # won't work, and it isn't easily adaptable. It makes more sense to
9647   # just force it.
9648   ac_cv_func_vfork_works=yes
9649   ;;
9650 esac
9651 echo "$as_me:$LINENO: checking for pid_t" >&5
9652 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9653 if test "${ac_cv_type_pid_t+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h.  */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h.  */
9662 $ac_includes_default
9663 int
9664 main ()
9665 {
9666 if ((pid_t *) 0)
9667   return 0;
9668 if (sizeof (pid_t))
9669   return 0;
9670   ;
9671   return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9676   (eval $ac_compile) 2>conftest.er1
9677   ac_status=$?
9678   grep -v '^ *+' conftest.er1 >conftest.err
9679   rm -f conftest.er1
9680   cat conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } &&
9683          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685   (eval $ac_try) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); }; } &&
9689          { ac_try='test -s conftest.$ac_objext'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_cv_type_pid_t=yes
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_cv_type_pid_t=no
9701 fi
9702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9703 fi
9704 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9705 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9706 if test $ac_cv_type_pid_t = yes; then
9707   :
9708 else
9709
9710 cat >>confdefs.h <<_ACEOF
9711 #define pid_t int
9712 _ACEOF
9713
9714 fi
9715
9716
9717
9718 for ac_header in unistd.h vfork.h
9719 do
9720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9721 echo "$as_me:$LINENO: checking for $ac_header" >&5
9722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 #include <$ac_header>
9733 _ACEOF
9734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9735   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9736   ac_status=$?
9737   grep -v '^ *+' conftest.er1 >conftest.err
9738   rm -f conftest.er1
9739   cat conftest.err >&5
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } >/dev/null; then
9742   if test -s conftest.err; then
9743     ac_cpp_err=$ac_c_preproc_warn_flag
9744     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9745   else
9746     ac_cpp_err=
9747   fi
9748 else
9749   ac_cpp_err=yes
9750 fi
9751 if test -z "$ac_cpp_err"; then
9752   eval "$as_ac_Header=yes"
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757   eval "$as_ac_Header=no"
9758 fi
9759 rm -f conftest.err conftest.$ac_ext
9760 fi
9761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9764   cat >>confdefs.h <<_ACEOF
9765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9766 _ACEOF
9767
9768 fi
9769 done
9770
9771
9772
9773 for ac_func in fork vfork
9774 do
9775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9776 echo "$as_me:$LINENO: checking for $ac_func" >&5
9777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9778 if eval "test \"\${$as_ac_var+set}\" = set"; then
9779   echo $ECHO_N "(cached) $ECHO_C" >&6
9780 else
9781   cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h.  */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h.  */
9787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9789 #define $ac_func innocuous_$ac_func
9790
9791 /* System header to define __stub macros and hopefully few prototypes,
9792     which can conflict with char $ac_func (); below.
9793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9794     <limits.h> exists even on freestanding compilers.  */
9795
9796 #ifdef __STDC__
9797 # include <limits.h>
9798 #else
9799 # include <assert.h>
9800 #endif
9801
9802 #undef $ac_func
9803
9804 /* Override any gcc2 internal prototype to avoid an error.  */
9805 #ifdef __cplusplus
9806 extern "C"
9807 {
9808 #endif
9809 /* We use char because int might match the return type of a gcc2
9810    builtin and then its argument prototype would still apply.  */
9811 char $ac_func ();
9812 /* The GNU C library defines this for functions which it implements
9813     to always fail with ENOSYS.  Some functions are actually named
9814     something starting with __ and the normal name is an alias.  */
9815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9816 choke me
9817 #else
9818 char (*f) () = $ac_func;
9819 #endif
9820 #ifdef __cplusplus
9821 }
9822 #endif
9823
9824 int
9825 main ()
9826 {
9827 return f != $ac_func;
9828   ;
9829   return 0;
9830 }
9831 _ACEOF
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9834   (eval $ac_link) 2>conftest.er1
9835   ac_status=$?
9836   grep -v '^ *+' conftest.er1 >conftest.err
9837   rm -f conftest.er1
9838   cat conftest.err >&5
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); } &&
9841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843   (eval $ac_try) 2>&5
9844   ac_status=$?
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); }; } &&
9847          { ac_try='test -s conftest$ac_exeext'
9848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849   (eval $ac_try) 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; }; then
9853   eval "$as_ac_var=yes"
9854 else
9855   echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9857
9858 eval "$as_ac_var=no"
9859 fi
9860 rm -f conftest.err conftest.$ac_objext \
9861       conftest$ac_exeext conftest.$ac_ext
9862 fi
9863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9865 if test `eval echo '${'$as_ac_var'}'` = yes; then
9866   cat >>confdefs.h <<_ACEOF
9867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9868 _ACEOF
9869
9870 fi
9871 done
9872
9873 if test "x$ac_cv_func_fork" = xyes; then
9874   echo "$as_me:$LINENO: checking for working fork" >&5
9875 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9876 if test "${ac_cv_func_fork_works+set}" = set; then
9877   echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879   if test "$cross_compiling" = yes; then
9880   ac_cv_func_fork_works=cross
9881 else
9882   cat >conftest.$ac_ext <<_ACEOF
9883 /* By Ruediger Kuhlmann. */
9884       #include <sys/types.h>
9885       #if HAVE_UNISTD_H
9886       # include <unistd.h>
9887       #endif
9888       /* Some systems only have a dummy stub for fork() */
9889       int main ()
9890       {
9891         if (fork() < 0)
9892           exit (1);
9893         exit (0);
9894       }
9895 _ACEOF
9896 rm -f conftest$ac_exeext
9897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9898   (eval $ac_link) 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903   (eval $ac_try) 2>&5
9904   ac_status=$?
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); }; }; then
9907   ac_cv_func_fork_works=yes
9908 else
9909   echo "$as_me: program exited with status $ac_status" >&5
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9912
9913 ( exit $ac_status )
9914 ac_cv_func_fork_works=no
9915 fi
9916 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9917 fi
9918 fi
9919 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9920 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9921
9922 else
9923   ac_cv_func_fork_works=$ac_cv_func_fork
9924 fi
9925 if test "x$ac_cv_func_fork_works" = xcross; then
9926   case $host in
9927     *-*-amigaos* | *-*-msdosdjgpp*)
9928       # Override, as these systems have only a dummy fork() stub
9929       ac_cv_func_fork_works=no
9930       ;;
9931     *)
9932       ac_cv_func_fork_works=yes
9933       ;;
9934   esac
9935   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9936 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9937 fi
9938 ac_cv_func_vfork_works=$ac_cv_func_vfork
9939 if test "x$ac_cv_func_vfork" = xyes; then
9940   echo "$as_me:$LINENO: checking for working vfork" >&5
9941 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9942 if test "${ac_cv_func_vfork_works+set}" = set; then
9943   echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945   if test "$cross_compiling" = yes; then
9946   ac_cv_func_vfork_works=cross
9947 else
9948   cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954 /* Thanks to Paul Eggert for this test.  */
9955 #include <stdio.h>
9956 #include <stdlib.h>
9957 #include <sys/types.h>
9958 #include <sys/stat.h>
9959 #include <sys/wait.h>
9960 #if HAVE_UNISTD_H
9961 # include <unistd.h>
9962 #endif
9963 #if HAVE_VFORK_H
9964 # include <vfork.h>
9965 #endif
9966 /* On some sparc systems, changes by the child to local and incoming
9967    argument registers are propagated back to the parent.  The compiler
9968    is told about this with #include <vfork.h>, but some compilers
9969    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9970    static variable whose address is put into a register that is
9971    clobbered by the vfork.  */
9972 static void
9973 #ifdef __cplusplus
9974 sparc_address_test (int arg)
9975 # else
9976 sparc_address_test (arg) int arg;
9977 #endif
9978 {
9979   static pid_t child;
9980   if (!child) {
9981     child = vfork ();
9982     if (child < 0) {
9983       perror ("vfork");
9984       _exit(2);
9985     }
9986     if (!child) {
9987       arg = getpid();
9988       write(-1, "", 0);
9989       _exit (arg);
9990     }
9991   }
9992 }
9993
9994 int
9995 main ()
9996 {
9997   pid_t parent = getpid ();
9998   pid_t child;
9999
10000   sparc_address_test (0);
10001
10002   child = vfork ();
10003
10004   if (child == 0) {
10005     /* Here is another test for sparc vfork register problems.  This
10006        test uses lots of local variables, at least as many local
10007        variables as main has allocated so far including compiler
10008        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10009        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10010        reuse the register of parent for one of the local variables,
10011        since it will think that parent can't possibly be used any more
10012        in this routine.  Assigning to the local variable will thus
10013        munge parent in the parent process.  */
10014     pid_t
10015       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10016       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10017     /* Convince the compiler that p..p7 are live; otherwise, it might
10018        use the same hardware register for all 8 local variables.  */
10019     if (p != p1 || p != p2 || p != p3 || p != p4
10020         || p != p5 || p != p6 || p != p7)
10021       _exit(1);
10022
10023     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10024        from child file descriptors.  If the child closes a descriptor
10025        before it execs or exits, this munges the parent's descriptor
10026        as well.  Test for this by closing stdout in the child.  */
10027     _exit(close(fileno(stdout)) != 0);
10028   } else {
10029     int status;
10030     struct stat st;
10031
10032     while (wait(&status) != child)
10033       ;
10034     exit(
10035          /* Was there some problem with vforking?  */
10036          child < 0
10037
10038          /* Did the child fail?  (This shouldn't happen.)  */
10039          || status
10040
10041          /* Did the vfork/compiler bug occur?  */
10042          || parent != getpid()
10043
10044          /* Did the file descriptor bug occur?  */
10045          || fstat(fileno(stdout), &st) != 0
10046          );
10047   }
10048 }
10049 _ACEOF
10050 rm -f conftest$ac_exeext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052   (eval $ac_link) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057   (eval $ac_try) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); }; }; then
10061   ac_cv_func_vfork_works=yes
10062 else
10063   echo "$as_me: program exited with status $ac_status" >&5
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10066
10067 ( exit $ac_status )
10068 ac_cv_func_vfork_works=no
10069 fi
10070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10071 fi
10072 fi
10073 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10074 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10075
10076 fi;
10077 if test "x$ac_cv_func_fork_works" = xcross; then
10078   ac_cv_func_vfork_works=$ac_cv_func_vfork
10079   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10080 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10081 fi
10082
10083 if test "x$ac_cv_func_vfork_works" = xyes; then
10084
10085 cat >>confdefs.h <<\_ACEOF
10086 #define HAVE_WORKING_VFORK 1
10087 _ACEOF
10088
10089 else
10090
10091 cat >>confdefs.h <<\_ACEOF
10092 #define vfork fork
10093 _ACEOF
10094
10095 fi
10096 if test "x$ac_cv_func_fork_works" = xyes; then
10097
10098 cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_WORKING_FORK 1
10100 _ACEOF
10101
10102 fi
10103
10104
10105
10106       if test "X$prefix" = "XNONE"; then
10107     acl_final_prefix="$ac_default_prefix"
10108   else
10109     acl_final_prefix="$prefix"
10110   fi
10111   if test "X$exec_prefix" = "XNONE"; then
10112     acl_final_exec_prefix='${prefix}'
10113   else
10114     acl_final_exec_prefix="$exec_prefix"
10115   fi
10116   acl_save_prefix="$prefix"
10117   prefix="$acl_final_prefix"
10118   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10119   prefix="$acl_save_prefix"
10120
10121
10122 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10123 if test "${with_gnu_ld+set}" = set; then
10124   withval="$with_gnu_ld"
10125   test "$withval" = no || with_gnu_ld=yes
10126 else
10127   with_gnu_ld=no
10128 fi;
10129 # Prepare PATH_SEPARATOR.
10130 # The user is always right.
10131 if test "${PATH_SEPARATOR+set}" != set; then
10132   echo "#! /bin/sh" >conf$$.sh
10133   echo  "exit 0"   >>conf$$.sh
10134   chmod +x conf$$.sh
10135   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10136     PATH_SEPARATOR=';'
10137   else
10138     PATH_SEPARATOR=:
10139   fi
10140   rm -f conf$$.sh
10141 fi
10142 ac_prog=ld
10143 if test "$GCC" = yes; then
10144   # Check if gcc -print-prog-name=ld gives a path.
10145   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10146 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10147   case $host in
10148   *-*-mingw*)
10149     # gcc leaves a trailing carriage return which upsets mingw
10150     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10151   *)
10152     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10153   esac
10154   case $ac_prog in
10155     # Accept absolute paths.
10156     [\\/]* | [A-Za-z]:[\\/]*)
10157       re_direlt='/[^/][^/]*/\.\./'
10158       # Canonicalize the path of ld
10159       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10160       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10161         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10162       done
10163       test -z "$LD" && LD="$ac_prog"
10164       ;;
10165   "")
10166     # If it fails, then pretend we aren't using GCC.
10167     ac_prog=ld
10168     ;;
10169   *)
10170     # If it is relative, then search for the first ld in PATH.
10171     with_gnu_ld=unknown
10172     ;;
10173   esac
10174 elif test "$with_gnu_ld" = yes; then
10175   echo "$as_me:$LINENO: checking for GNU ld" >&5
10176 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10177 else
10178   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10179 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10180 fi
10181 if test "${acl_cv_path_LD+set}" = set; then
10182   echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184   if test -z "$LD"; then
10185   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10186   for ac_dir in $PATH; do
10187     test -z "$ac_dir" && ac_dir=.
10188     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10189       acl_cv_path_LD="$ac_dir/$ac_prog"
10190       # Check to see if the program is GNU ld.  I'd rather use --version,
10191       # but apparently some GNU ld's only accept -v.
10192       # Break only if it was the GNU/non-GNU ld that we prefer.
10193       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10194         test "$with_gnu_ld" != no && break
10195       else
10196         test "$with_gnu_ld" != yes && break
10197       fi
10198     fi
10199   done
10200   IFS="$ac_save_ifs"
10201 else
10202   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10203 fi
10204 fi
10205
10206 LD="$acl_cv_path_LD"
10207 if test -n "$LD"; then
10208   echo "$as_me:$LINENO: result: $LD" >&5
10209 echo "${ECHO_T}$LD" >&6
10210 else
10211   echo "$as_me:$LINENO: result: no" >&5
10212 echo "${ECHO_T}no" >&6
10213 fi
10214 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10215 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10216    { (exit 1); exit 1; }; }
10217 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10218 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10219 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10220   echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10223 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10224   acl_cv_prog_gnu_ld=yes
10225 else
10226   acl_cv_prog_gnu_ld=no
10227 fi
10228 fi
10229 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10230 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10231 with_gnu_ld=$acl_cv_prog_gnu_ld
10232
10233
10234
10235                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10236 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10237 if test "${acl_cv_rpath+set}" = set; then
10238   echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240
10241     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10242     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10243     . ./conftest.sh
10244     rm -f ./conftest.sh
10245     acl_cv_rpath=done
10246
10247 fi
10248 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10249 echo "${ECHO_T}$acl_cv_rpath" >&6
10250   wl="$acl_cv_wl"
10251   libext="$acl_cv_libext"
10252   shlibext="$acl_cv_shlibext"
10253   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10254   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10255   hardcode_direct="$acl_cv_hardcode_direct"
10256   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10257     # Check whether --enable-rpath or --disable-rpath was given.
10258 if test "${enable_rpath+set}" = set; then
10259   enableval="$enable_rpath"
10260   :
10261 else
10262   enable_rpath=yes
10263 fi;
10264
10265
10266
10267
10268
10269
10270
10271     use_additional=yes
10272
10273   acl_save_prefix="$prefix"
10274   prefix="$acl_final_prefix"
10275   acl_save_exec_prefix="$exec_prefix"
10276   exec_prefix="$acl_final_exec_prefix"
10277
10278     eval additional_includedir=\"$includedir\"
10279     eval additional_libdir=\"$libdir\"
10280
10281   exec_prefix="$acl_save_exec_prefix"
10282   prefix="$acl_save_prefix"
10283
10284
10285 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10286 if test "${with_libiconv_prefix+set}" = set; then
10287   withval="$with_libiconv_prefix"
10288
10289     if test "X$withval" = "Xno"; then
10290       use_additional=no
10291     else
10292       if test "X$withval" = "X"; then
10293
10294   acl_save_prefix="$prefix"
10295   prefix="$acl_final_prefix"
10296   acl_save_exec_prefix="$exec_prefix"
10297   exec_prefix="$acl_final_exec_prefix"
10298
10299           eval additional_includedir=\"$includedir\"
10300           eval additional_libdir=\"$libdir\"
10301
10302   exec_prefix="$acl_save_exec_prefix"
10303   prefix="$acl_save_prefix"
10304
10305       else
10306         additional_includedir="$withval/include"
10307         additional_libdir="$withval/lib"
10308       fi
10309     fi
10310
10311 fi;
10312       LIBICONV=
10313   LTLIBICONV=
10314   INCICONV=
10315   rpathdirs=
10316   ltrpathdirs=
10317   names_already_handled=
10318   names_next_round='iconv '
10319   while test -n "$names_next_round"; do
10320     names_this_round="$names_next_round"
10321     names_next_round=
10322     for name in $names_this_round; do
10323       already_handled=
10324       for n in $names_already_handled; do
10325         if test "$n" = "$name"; then
10326           already_handled=yes
10327           break
10328         fi
10329       done
10330       if test -z "$already_handled"; then
10331         names_already_handled="$names_already_handled $name"
10332                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10333         eval value=\"\$HAVE_LIB$uppername\"
10334         if test -n "$value"; then
10335           if test "$value" = yes; then
10336             eval value=\"\$LIB$uppername\"
10337             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10338             eval value=\"\$LTLIB$uppername\"
10339             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10340           else
10341                                     :
10342           fi
10343         else
10344                               found_dir=
10345           found_la=
10346           found_so=
10347           found_a=
10348           if test $use_additional = yes; then
10349             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10350               found_dir="$additional_libdir"
10351               found_so="$additional_libdir/lib$name.$shlibext"
10352               if test -f "$additional_libdir/lib$name.la"; then
10353                 found_la="$additional_libdir/lib$name.la"
10354               fi
10355             else
10356               if test -f "$additional_libdir/lib$name.$libext"; then
10357                 found_dir="$additional_libdir"
10358                 found_a="$additional_libdir/lib$name.$libext"
10359                 if test -f "$additional_libdir/lib$name.la"; then
10360                   found_la="$additional_libdir/lib$name.la"
10361                 fi
10362               fi
10363             fi
10364           fi
10365           if test "X$found_dir" = "X"; then
10366             for x in $LDFLAGS $LTLIBICONV; do
10367
10368   acl_save_prefix="$prefix"
10369   prefix="$acl_final_prefix"
10370   acl_save_exec_prefix="$exec_prefix"
10371   exec_prefix="$acl_final_exec_prefix"
10372   eval x=\"$x\"
10373   exec_prefix="$acl_save_exec_prefix"
10374   prefix="$acl_save_prefix"
10375
10376               case "$x" in
10377                 -L*)
10378                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10379                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10380                     found_dir="$dir"
10381                     found_so="$dir/lib$name.$shlibext"
10382                     if test -f "$dir/lib$name.la"; then
10383                       found_la="$dir/lib$name.la"
10384                     fi
10385                   else
10386                     if test -f "$dir/lib$name.$libext"; then
10387                       found_dir="$dir"
10388                       found_a="$dir/lib$name.$libext"
10389                       if test -f "$dir/lib$name.la"; then
10390                         found_la="$dir/lib$name.la"
10391                       fi
10392                     fi
10393                   fi
10394                   ;;
10395               esac
10396               if test "X$found_dir" != "X"; then
10397                 break
10398               fi
10399             done
10400           fi
10401           if test "X$found_dir" != "X"; then
10402                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10403             if test "X$found_so" != "X"; then
10404                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10405                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10406               else
10407                                                                                 haveit=
10408                 for x in $ltrpathdirs; do
10409                   if test "X$x" = "X$found_dir"; then
10410                     haveit=yes
10411                     break
10412                   fi
10413                 done
10414                 if test -z "$haveit"; then
10415                   ltrpathdirs="$ltrpathdirs $found_dir"
10416                 fi
10417                                 if test "$hardcode_direct" = yes; then
10418                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10419                 else
10420                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10421                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10422                                                             haveit=
10423                     for x in $rpathdirs; do
10424                       if test "X$x" = "X$found_dir"; then
10425                         haveit=yes
10426                         break
10427                       fi
10428                     done
10429                     if test -z "$haveit"; then
10430                       rpathdirs="$rpathdirs $found_dir"
10431                     fi
10432                   else
10433                                                                                 haveit=
10434                     for x in $LDFLAGS $LIBICONV; do
10435
10436   acl_save_prefix="$prefix"
10437   prefix="$acl_final_prefix"
10438   acl_save_exec_prefix="$exec_prefix"
10439   exec_prefix="$acl_final_exec_prefix"
10440   eval x=\"$x\"
10441   exec_prefix="$acl_save_exec_prefix"
10442   prefix="$acl_save_prefix"
10443
10444                       if test "X$x" = "X-L$found_dir"; then
10445                         haveit=yes
10446                         break
10447                       fi
10448                     done
10449                     if test -z "$haveit"; then
10450                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10451                     fi
10452                     if test "$hardcode_minus_L" != no; then
10453                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10454                     else
10455                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10456                     fi
10457                   fi
10458                 fi
10459               fi
10460             else
10461               if test "X$found_a" != "X"; then
10462                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10463               else
10464                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10465               fi
10466             fi
10467                         additional_includedir=
10468             case "$found_dir" in
10469               */lib | */lib/)
10470                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10471                 additional_includedir="$basedir/include"
10472                 ;;
10473             esac
10474             if test "X$additional_includedir" != "X"; then
10475                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10476                 haveit=
10477                 if test "X$additional_includedir" = "X/usr/local/include"; then
10478                   if test -n "$GCC"; then
10479                     case $host_os in
10480                       linux*) haveit=yes;;
10481                     esac
10482                   fi
10483                 fi
10484                 if test -z "$haveit"; then
10485                   for x in $CPPFLAGS $INCICONV; do
10486
10487   acl_save_prefix="$prefix"
10488   prefix="$acl_final_prefix"
10489   acl_save_exec_prefix="$exec_prefix"
10490   exec_prefix="$acl_final_exec_prefix"
10491   eval x=\"$x\"
10492   exec_prefix="$acl_save_exec_prefix"
10493   prefix="$acl_save_prefix"
10494
10495                     if test "X$x" = "X-I$additional_includedir"; then
10496                       haveit=yes
10497                       break
10498                     fi
10499                   done
10500                   if test -z "$haveit"; then
10501                     if test -d "$additional_includedir"; then
10502                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10503                     fi
10504                   fi
10505                 fi
10506               fi
10507             fi
10508                         if test -n "$found_la"; then
10509                                                         save_libdir="$libdir"
10510               case "$found_la" in
10511                 */* | *\\*) . "$found_la" ;;
10512                 *) . "./$found_la" ;;
10513               esac
10514               libdir="$save_libdir"
10515                             for dep in $dependency_libs; do
10516                 case "$dep" in
10517                   -L*)
10518                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10519                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10520                       haveit=
10521                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10522                         if test -n "$GCC"; then
10523                           case $host_os in
10524                             linux*) haveit=yes;;
10525                           esac
10526                         fi
10527                       fi
10528                       if test -z "$haveit"; then
10529                         haveit=
10530                         for x in $LDFLAGS $LIBICONV; do
10531
10532   acl_save_prefix="$prefix"
10533   prefix="$acl_final_prefix"
10534   acl_save_exec_prefix="$exec_prefix"
10535   exec_prefix="$acl_final_exec_prefix"
10536   eval x=\"$x\"
10537   exec_prefix="$acl_save_exec_prefix"
10538   prefix="$acl_save_prefix"
10539
10540                           if test "X$x" = "X-L$additional_libdir"; then
10541                             haveit=yes
10542                             break
10543                           fi
10544                         done
10545                         if test -z "$haveit"; then
10546                           if test -d "$additional_libdir"; then
10547                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10548                           fi
10549                         fi
10550                         haveit=
10551                         for x in $LDFLAGS $LTLIBICONV; do
10552
10553   acl_save_prefix="$prefix"
10554   prefix="$acl_final_prefix"
10555   acl_save_exec_prefix="$exec_prefix"
10556   exec_prefix="$acl_final_exec_prefix"
10557   eval x=\"$x\"
10558   exec_prefix="$acl_save_exec_prefix"
10559   prefix="$acl_save_prefix"
10560
10561                           if test "X$x" = "X-L$additional_libdir"; then
10562                             haveit=yes
10563                             break
10564                           fi
10565                         done
10566                         if test -z "$haveit"; then
10567                           if test -d "$additional_libdir"; then
10568                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10569                           fi
10570                         fi
10571                       fi
10572                     fi
10573                     ;;
10574                   -R*)
10575                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10576                     if test "$enable_rpath" != no; then
10577                                                                   haveit=
10578                       for x in $rpathdirs; do
10579                         if test "X$x" = "X$dir"; then
10580                           haveit=yes
10581                           break
10582                         fi
10583                       done
10584                       if test -z "$haveit"; then
10585                         rpathdirs="$rpathdirs $dir"
10586                       fi
10587                                                                   haveit=
10588                       for x in $ltrpathdirs; do
10589                         if test "X$x" = "X$dir"; then
10590                           haveit=yes
10591                           break
10592                         fi
10593                       done
10594                       if test -z "$haveit"; then
10595                         ltrpathdirs="$ltrpathdirs $dir"
10596                       fi
10597                     fi
10598                     ;;
10599                   -l*)
10600                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10601                     ;;
10602                   *.la)
10603                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10604                     ;;
10605                   *)
10606                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10607                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10608                     ;;
10609                 esac
10610               done
10611             fi
10612           else
10613                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10614             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10615           fi
10616         fi
10617       fi
10618     done
10619   done
10620   if test "X$rpathdirs" != "X"; then
10621     if test -n "$hardcode_libdir_separator"; then
10622                         alldirs=
10623       for found_dir in $rpathdirs; do
10624         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10625       done
10626             acl_save_libdir="$libdir"
10627       libdir="$alldirs"
10628       eval flag=\"$hardcode_libdir_flag_spec\"
10629       libdir="$acl_save_libdir"
10630       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10631     else
10632             for found_dir in $rpathdirs; do
10633         acl_save_libdir="$libdir"
10634         libdir="$found_dir"
10635         eval flag=\"$hardcode_libdir_flag_spec\"
10636         libdir="$acl_save_libdir"
10637         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10638       done
10639     fi
10640   fi
10641   if test "X$ltrpathdirs" != "X"; then
10642             for found_dir in $ltrpathdirs; do
10643       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10644     done
10645   fi
10646
10647
10648
10649
10650
10651
10652
10653           am_save_CPPFLAGS="$CPPFLAGS"
10654
10655   for element in $INCICONV; do
10656     haveit=
10657     for x in $CPPFLAGS; do
10658
10659   acl_save_prefix="$prefix"
10660   prefix="$acl_final_prefix"
10661   acl_save_exec_prefix="$exec_prefix"
10662   exec_prefix="$acl_final_exec_prefix"
10663   eval x=\"$x\"
10664   exec_prefix="$acl_save_exec_prefix"
10665   prefix="$acl_save_prefix"
10666
10667       if test "X$x" = "X$element"; then
10668         haveit=yes
10669         break
10670       fi
10671     done
10672     if test -z "$haveit"; then
10673       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10674     fi
10675   done
10676
10677
10678   echo "$as_me:$LINENO: checking for iconv" >&5
10679 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10680 if test "${am_cv_func_iconv+set}" = set; then
10681   echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683
10684     am_cv_func_iconv="no, consider installing GNU libiconv"
10685     am_cv_lib_iconv=no
10686     cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h.  */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h.  */
10692 #include <stdlib.h>
10693 #include <iconv.h>
10694 int
10695 main ()
10696 {
10697 iconv_t cd = iconv_open("","");
10698        iconv(cd,NULL,NULL,NULL,NULL);
10699        iconv_close(cd);
10700   ;
10701   return 0;
10702 }
10703 _ACEOF
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706   (eval $ac_link) 2>conftest.er1
10707   ac_status=$?
10708   grep -v '^ *+' conftest.er1 >conftest.err
10709   rm -f conftest.er1
10710   cat conftest.err >&5
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); } &&
10713          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715   (eval $ac_try) 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; } &&
10719          { ac_try='test -s conftest$ac_exeext'
10720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721   (eval $ac_try) 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; }; then
10725   am_cv_func_iconv=yes
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730 fi
10731 rm -f conftest.err conftest.$ac_objext \
10732       conftest$ac_exeext conftest.$ac_ext
10733     if test "$am_cv_func_iconv" != yes; then
10734       am_save_LIBS="$LIBS"
10735       LIBS="$LIBS $LIBICONV"
10736       cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742 #include <stdlib.h>
10743 #include <iconv.h>
10744 int
10745 main ()
10746 {
10747 iconv_t cd = iconv_open("","");
10748          iconv(cd,NULL,NULL,NULL,NULL);
10749          iconv_close(cd);
10750   ;
10751   return 0;
10752 }
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756   (eval $ac_link) 2>conftest.er1
10757   ac_status=$?
10758   grep -v '^ *+' conftest.er1 >conftest.err
10759   rm -f conftest.er1
10760   cat conftest.err >&5
10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); } &&
10763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765   (eval $ac_try) 2>&5
10766   ac_status=$?
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); }; } &&
10769          { ac_try='test -s conftest$ac_exeext'
10770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771   (eval $ac_try) 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); }; }; then
10775   am_cv_lib_iconv=yes
10776         am_cv_func_iconv=yes
10777 else
10778   echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10780
10781 fi
10782 rm -f conftest.err conftest.$ac_objext \
10783       conftest$ac_exeext conftest.$ac_ext
10784       LIBS="$am_save_LIBS"
10785     fi
10786
10787 fi
10788 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10789 echo "${ECHO_T}$am_cv_func_iconv" >&6
10790   if test "$am_cv_func_iconv" = yes; then
10791
10792 cat >>confdefs.h <<\_ACEOF
10793 #define HAVE_ICONV 1
10794 _ACEOF
10795
10796   fi
10797   if test "$am_cv_lib_iconv" = yes; then
10798     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10799 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10800     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10801 echo "${ECHO_T}$LIBICONV" >&6
10802   else
10803             CPPFLAGS="$am_save_CPPFLAGS"
10804     LIBICONV=
10805     LTLIBICONV=
10806   fi
10807
10808
10809
10810   if test "$am_cv_func_iconv" = yes; then
10811     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10812 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10813     if test "${am_cv_proto_iconv+set}" = set; then
10814   echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816
10817       cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h.  */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h.  */
10823
10824 #include <stdlib.h>
10825 #include <iconv.h>
10826 extern
10827 #ifdef __cplusplus
10828 "C"
10829 #endif
10830 #if defined(__STDC__) || defined(__cplusplus)
10831 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10832 #else
10833 size_t iconv();
10834 #endif
10835
10836 int
10837 main ()
10838 {
10839
10840   ;
10841   return 0;
10842 }
10843 _ACEOF
10844 rm -f conftest.$ac_objext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10846   (eval $ac_compile) 2>conftest.er1
10847   ac_status=$?
10848   grep -v '^ *+' conftest.er1 >conftest.err
10849   rm -f conftest.er1
10850   cat conftest.err >&5
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } &&
10853          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855   (eval $ac_try) 2>&5
10856   ac_status=$?
10857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858   (exit $ac_status); }; } &&
10859          { ac_try='test -s conftest.$ac_objext'
10860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861   (eval $ac_try) 2>&5
10862   ac_status=$?
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); }; }; then
10865   am_cv_proto_iconv_arg1=""
10866 else
10867   echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10869
10870 am_cv_proto_iconv_arg1="const"
10871 fi
10872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10873       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);"
10874 fi
10875
10876     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10877     echo "$as_me:$LINENO: result: ${ac_t:-
10878          }$am_cv_proto_iconv" >&5
10879 echo "${ECHO_T}${ac_t:-
10880          }$am_cv_proto_iconv" >&6
10881
10882 cat >>confdefs.h <<_ACEOF
10883 #define ICONV_CONST $am_cv_proto_iconv_arg1
10884 _ACEOF
10885
10886   fi
10887
10888 # Until we have in-tree GNU iconv:
10889 LIBICONV_DEP=
10890
10891
10892
10893   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10894 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10895 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10896   echo $ECHO_N "(cached) $ECHO_C" >&6
10897 else
10898   cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h.  */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h.  */
10904 #include <locale.h>
10905 int
10906 main ()
10907 {
10908 return LC_MESSAGES
10909   ;
10910   return 0;
10911 }
10912 _ACEOF
10913 rm -f conftest.$ac_objext conftest$ac_exeext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10915   (eval $ac_link) 2>conftest.er1
10916   ac_status=$?
10917   grep -v '^ *+' conftest.er1 >conftest.err
10918   rm -f conftest.er1
10919   cat conftest.err >&5
10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921   (exit $ac_status); } &&
10922          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924   (eval $ac_try) 2>&5
10925   ac_status=$?
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); }; } &&
10928          { ac_try='test -s conftest$ac_exeext'
10929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930   (eval $ac_try) 2>&5
10931   ac_status=$?
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); }; }; then
10934   am_cv_val_LC_MESSAGES=yes
10935 else
10936   echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10938
10939 am_cv_val_LC_MESSAGES=no
10940 fi
10941 rm -f conftest.err conftest.$ac_objext \
10942       conftest$ac_exeext conftest.$ac_ext
10943 fi
10944 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10945 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10946   if test $am_cv_val_LC_MESSAGES = yes; then
10947
10948 cat >>confdefs.h <<\_ACEOF
10949 #define HAVE_LC_MESSAGES 1
10950 _ACEOF
10951
10952   fi
10953
10954
10955 # We will need to find libiberty.h and ansidecl.h
10956 saved_CFLAGS="$CFLAGS"
10957 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982 for ac_func in getenv atol sbrk abort atof getcwd getwd \
10983         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
10984         fprintf_unlocked strstr errno snprintf vasprintf \
10985         malloc realloc calloc free basename getopt clock getpagesize
10986 do
10987   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10988 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10989 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10990 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993   cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h.  */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h.  */
10999 #undef $ac_tr_decl
11000 #define $ac_tr_decl 1
11001
11002 #include "ansidecl.h"
11003 #include "system.h"
11004
11005 int
11006 main ()
11007 {
11008 #ifndef $ac_func
11009 char *(*pfn) = (char *(*)) $ac_func ;
11010 #endif
11011   ;
11012   return 0;
11013 }
11014 _ACEOF
11015 rm -f conftest.$ac_objext
11016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11017   (eval $ac_compile) 2>conftest.er1
11018   ac_status=$?
11019   grep -v '^ *+' conftest.er1 >conftest.err
11020   rm -f conftest.er1
11021   cat conftest.err >&5
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); } &&
11024          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026   (eval $ac_try) 2>&5
11027   ac_status=$?
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); }; } &&
11030          { ac_try='test -s conftest.$ac_objext'
11031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032   (eval $ac_try) 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }; }; then
11036   eval "gcc_cv_have_decl_$ac_func=yes"
11037 else
11038   echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041 eval "gcc_cv_have_decl_$ac_func=no"
11042 fi
11043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11044 fi
11045
11046 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11047   echo "$as_me:$LINENO: result: yes" >&5
11048 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11049 #define $ac_tr_decl 1
11050 _ACEOF
11051
11052 else
11053   echo "$as_me:$LINENO: result: no" >&5
11054 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11055 #define $ac_tr_decl 0
11056 _ACEOF
11057
11058 fi
11059
11060 done
11061
11062
11063
11064
11065
11066 for ac_func in getrlimit setrlimit getrusage
11067 do
11068   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11069 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11070 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11071 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11072   echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074   cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h.  */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h.  */
11080 #undef $ac_tr_decl
11081 #define $ac_tr_decl 1
11082
11083 #include "ansidecl.h"
11084 #include "system.h"
11085 #ifdef HAVE_SYS_RESOURCE_H
11086 #include <sys/resource.h>
11087 #endif
11088
11089
11090 int
11091 main ()
11092 {
11093 #ifndef $ac_func
11094 char *(*pfn) = (char *(*)) $ac_func ;
11095 #endif
11096   ;
11097   return 0;
11098 }
11099 _ACEOF
11100 rm -f conftest.$ac_objext
11101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11102   (eval $ac_compile) 2>conftest.er1
11103   ac_status=$?
11104   grep -v '^ *+' conftest.er1 >conftest.err
11105   rm -f conftest.er1
11106   cat conftest.err >&5
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); } &&
11109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
11115          { ac_try='test -s conftest.$ac_objext'
11116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117   (eval $ac_try) 2>&5
11118   ac_status=$?
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); }; }; then
11121   eval "gcc_cv_have_decl_$ac_func=yes"
11122 else
11123   echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11125
11126 eval "gcc_cv_have_decl_$ac_func=no"
11127 fi
11128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11129 fi
11130
11131 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11132   echo "$as_me:$LINENO: result: yes" >&5
11133 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11134 #define $ac_tr_decl 1
11135 _ACEOF
11136
11137 else
11138   echo "$as_me:$LINENO: result: no" >&5
11139 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11140 #define $ac_tr_decl 0
11141 _ACEOF
11142
11143 fi
11144
11145 done
11146
11147
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h.  */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h.  */
11154
11155 #include "ansidecl.h"
11156 #include "system.h"
11157 #ifdef HAVE_SYS_RESOURCE_H
11158 #include <sys/resource.h>
11159 #endif
11160
11161 int
11162 main ()
11163 {
11164 rlim_t l = 0;
11165   ;
11166   return 0;
11167 }
11168 _ACEOF
11169 rm -f conftest.$ac_objext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171   (eval $ac_compile) 2>conftest.er1
11172   ac_status=$?
11173   grep -v '^ *+' conftest.er1 >conftest.err
11174   rm -f conftest.er1
11175   cat conftest.err >&5
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); } &&
11178          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180   (eval $ac_try) 2>&5
11181   ac_status=$?
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); }; } &&
11184          { ac_try='test -s conftest.$ac_objext'
11185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186   (eval $ac_try) 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); }; }; then
11190   :
11191 else
11192   echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195
11196 cat >>confdefs.h <<\_ACEOF
11197 #define rlim_t long
11198 _ACEOF
11199
11200 fi
11201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202
11203
11204 for ac_func in ldgetname
11205 do
11206   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11207 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11208 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11209 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11210   echo $ECHO_N "(cached) $ECHO_C" >&6
11211 else
11212   cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h.  */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h.  */
11218 #undef $ac_tr_decl
11219 #define $ac_tr_decl 1
11220
11221 #include "ansidecl.h"
11222 #include "system.h"
11223 #ifdef HAVE_LDFCN_H
11224 #include <ldfcn.h>
11225 #endif
11226
11227
11228 int
11229 main ()
11230 {
11231 #ifndef $ac_func
11232 char *(*pfn) = (char *(*)) $ac_func ;
11233 #endif
11234   ;
11235   return 0;
11236 }
11237 _ACEOF
11238 rm -f conftest.$ac_objext
11239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11240   (eval $ac_compile) 2>conftest.er1
11241   ac_status=$?
11242   grep -v '^ *+' conftest.er1 >conftest.err
11243   rm -f conftest.er1
11244   cat conftest.err >&5
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); } &&
11247          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249   (eval $ac_try) 2>&5
11250   ac_status=$?
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); }; } &&
11253          { ac_try='test -s conftest.$ac_objext'
11254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255   (eval $ac_try) 2>&5
11256   ac_status=$?
11257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258   (exit $ac_status); }; }; then
11259   eval "gcc_cv_have_decl_$ac_func=yes"
11260 else
11261   echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11263
11264 eval "gcc_cv_have_decl_$ac_func=no"
11265 fi
11266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11267 fi
11268
11269 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11270   echo "$as_me:$LINENO: result: yes" >&5
11271 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11272 #define $ac_tr_decl 1
11273 _ACEOF
11274
11275 else
11276   echo "$as_me:$LINENO: result: no" >&5
11277 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11278 #define $ac_tr_decl 0
11279 _ACEOF
11280
11281 fi
11282
11283 done
11284
11285
11286
11287 for ac_func in times
11288 do
11289   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11290 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11291 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11292 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11293   echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295   cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301 #undef $ac_tr_decl
11302 #define $ac_tr_decl 1
11303
11304 #include "ansidecl.h"
11305 #include "system.h"
11306 #ifdef HAVE_SYS_TIMES_H
11307 #include <sys/times.h>
11308 #endif
11309
11310
11311 int
11312 main ()
11313 {
11314 #ifndef $ac_func
11315 char *(*pfn) = (char *(*)) $ac_func ;
11316 #endif
11317   ;
11318   return 0;
11319 }
11320 _ACEOF
11321 rm -f conftest.$ac_objext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11323   (eval $ac_compile) 2>conftest.er1
11324   ac_status=$?
11325   grep -v '^ *+' conftest.er1 >conftest.err
11326   rm -f conftest.er1
11327   cat conftest.err >&5
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); } &&
11330          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332   (eval $ac_try) 2>&5
11333   ac_status=$?
11334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335   (exit $ac_status); }; } &&
11336          { ac_try='test -s conftest.$ac_objext'
11337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338   (eval $ac_try) 2>&5
11339   ac_status=$?
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); }; }; then
11342   eval "gcc_cv_have_decl_$ac_func=yes"
11343 else
11344   echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11346
11347 eval "gcc_cv_have_decl_$ac_func=no"
11348 fi
11349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11350 fi
11351
11352 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11353   echo "$as_me:$LINENO: result: yes" >&5
11354 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11355 #define $ac_tr_decl 1
11356 _ACEOF
11357
11358 else
11359   echo "$as_me:$LINENO: result: no" >&5
11360 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11361 #define $ac_tr_decl 0
11362 _ACEOF
11363
11364 fi
11365
11366 done
11367
11368
11369 # More time-related stuff.
11370 echo "$as_me:$LINENO: checking for struct tms" >&5
11371 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11372 if test "${ac_cv_struct_tms+set}" = set; then
11373   echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h.  */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h.  */
11382
11383 #include "ansidecl.h"
11384 #include "system.h"
11385 #ifdef HAVE_SYS_TIMES_H
11386 #include <sys/times.h>
11387 #endif
11388
11389 int
11390 main ()
11391 {
11392 struct tms tms;
11393   ;
11394   return 0;
11395 }
11396 _ACEOF
11397 rm -f conftest.$ac_objext
11398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11399   (eval $ac_compile) 2>conftest.er1
11400   ac_status=$?
11401   grep -v '^ *+' conftest.er1 >conftest.err
11402   rm -f conftest.er1
11403   cat conftest.err >&5
11404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405   (exit $ac_status); } &&
11406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408   (eval $ac_try) 2>&5
11409   ac_status=$?
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); }; } &&
11412          { ac_try='test -s conftest.$ac_objext'
11413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414   (eval $ac_try) 2>&5
11415   ac_status=$?
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); }; }; then
11418   ac_cv_struct_tms=yes
11419 else
11420   echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11422
11423 ac_cv_struct_tms=no
11424 fi
11425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11426 fi
11427 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11428 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11429 if test $ac_cv_struct_tms = yes; then
11430
11431 cat >>confdefs.h <<\_ACEOF
11432 #define HAVE_STRUCT_TMS 1
11433 _ACEOF
11434
11435 fi
11436
11437 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11438 # revisit after autoconf 2.50.
11439 echo "$as_me:$LINENO: checking for clock_t" >&5
11440 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11441 if test "${gcc_cv_type_clock_t+set}" = set; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444
11445 cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h.  */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h.  */
11451
11452 #include "ansidecl.h"
11453 #include "system.h"
11454
11455 int
11456 main ()
11457 {
11458 clock_t x;
11459   ;
11460   return 0;
11461 }
11462 _ACEOF
11463 rm -f conftest.$ac_objext
11464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11465   (eval $ac_compile) 2>conftest.er1
11466   ac_status=$?
11467   grep -v '^ *+' conftest.er1 >conftest.err
11468   rm -f conftest.er1
11469   cat conftest.err >&5
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); } &&
11472          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474   (eval $ac_try) 2>&5
11475   ac_status=$?
11476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477   (exit $ac_status); }; } &&
11478          { ac_try='test -s conftest.$ac_objext'
11479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480   (eval $ac_try) 2>&5
11481   ac_status=$?
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); }; }; then
11484   gcc_cv_type_clock_t=yes
11485 else
11486   echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 gcc_cv_type_clock_t=no
11490 fi
11491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11492 fi
11493 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11494 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11495 if test $gcc_cv_type_clock_t = yes; then
11496
11497 cat >>confdefs.h <<\_ACEOF
11498 #define HAVE_CLOCK_T 1
11499 _ACEOF
11500
11501 fi
11502
11503 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11504 CFLAGS="$saved_CFLAGS"
11505
11506 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11507 if test "${enable_initfini_array+set}" = set; then
11508   enableval="$enable_initfini_array"
11509
11510 else
11511
11512 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11513 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11514 if test "${gcc_cv_initfini_array+set}" = set; then
11515   echo $ECHO_N "(cached) $ECHO_C" >&6
11516 else
11517     if test "$cross_compiling" = yes; then
11518   gcc_cv_initfini_array=no
11519 else
11520   cat >conftest.$ac_ext <<_ACEOF
11521 /* confdefs.h.  */
11522 _ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h.  */
11526
11527 static int x = -1;
11528 int main (void) { return x; }
11529 int foo (void) { x = 0; }
11530 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11531 _ACEOF
11532 rm -f conftest$ac_exeext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11534   (eval $ac_link) 2>&5
11535   ac_status=$?
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539   (eval $ac_try) 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); }; }; then
11543   gcc_cv_initfini_array=yes
11544 else
11545   echo "$as_me: program exited with status $ac_status" >&5
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11548
11549 ( exit $ac_status )
11550 gcc_cv_initfini_array=no
11551 fi
11552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11553 fi
11554 fi
11555 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11556 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11557   enable_initfini_array=$gcc_cv_initfini_array
11558
11559 fi;
11560 if test $enable_initfini_array = yes; then
11561
11562 cat >>confdefs.h <<\_ACEOF
11563 #define HAVE_INITFINI_ARRAY 1
11564 _ACEOF
11565
11566 fi
11567
11568 # mkdir takes a single argument on some systems.
11569 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11570 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11571 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11572   echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574   cat >conftest.$ac_ext <<_ACEOF
11575 /* confdefs.h.  */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h.  */
11580
11581 #include <sys/types.h>
11582 #ifdef HAVE_SYS_STAT_H
11583 # include <sys/stat.h>
11584 #endif
11585 #ifdef HAVE_UNISTD_H
11586 # include <unistd.h>
11587 #endif
11588 #ifdef HAVE_DIRECT_H
11589 # include <direct.h>
11590 #endif
11591 int
11592 main ()
11593 {
11594 mkdir ("foo", 0);
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 rm -f conftest.$ac_objext
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601   (eval $ac_compile) 2>conftest.er1
11602   ac_status=$?
11603   grep -v '^ *+' conftest.er1 >conftest.err
11604   rm -f conftest.er1
11605   cat conftest.err >&5
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); } &&
11608          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610   (eval $ac_try) 2>&5
11611   ac_status=$?
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); }; } &&
11614          { ac_try='test -s conftest.$ac_objext'
11615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616   (eval $ac_try) 2>&5
11617   ac_status=$?
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); }; }; then
11620   gcc_cv_mkdir_takes_one_arg=no
11621 else
11622   echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11624
11625 gcc_cv_mkdir_takes_one_arg=yes
11626 fi
11627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11628 fi
11629 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11630 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11631 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11632
11633 cat >>confdefs.h <<\_ACEOF
11634 #define MKDIR_TAKES_ONE_ARG 1
11635 _ACEOF
11636
11637 fi
11638
11639
11640 # File extensions
11641 manext='.1'
11642 objext='.o'
11643
11644
11645
11646 # With Setjmp/Longjmp based exception handling.
11647 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11648 if test "${enable_sjlj_exceptions+set}" = set; then
11649   enableval="$enable_sjlj_exceptions"
11650   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11651
11652 cat >>confdefs.h <<_ACEOF
11653 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11654 _ACEOF
11655
11656 fi;
11657
11658 # For platforms with the unwind ABI which includes an unwind library,
11659 # libunwind, we can choose to use the system libunwind.
11660
11661 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11662 if test "${with_system_libunwind+set}" = set; then
11663   withval="$with_system_libunwind"
11664
11665 fi;
11666
11667 # --------------------------------------------------------
11668 # Build, host, and target specific configuration fragments
11669 # --------------------------------------------------------
11670
11671 # Collect build-machine-specific information.
11672 . ${srcdir}/config.build
11673
11674 # Collect host-machine-specific information.
11675 . ${srcdir}/config.host
11676
11677 target_gtfiles=
11678
11679 # Collect target-machine-specific information.
11680 . ${srcdir}/config.gcc
11681
11682 extra_objs="${host_extra_objs} ${extra_objs}"
11683 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11684
11685 # Default the target-machine variables that were not explicitly set.
11686 if test x"$tm_file" = x
11687 then tm_file=$cpu_type/$cpu_type.h; fi
11688
11689 if test x"$extra_headers" = x
11690 then extra_headers=; fi
11691
11692 if test x$md_file = x
11693 then md_file=$cpu_type/$cpu_type.md; fi
11694
11695 if test x$out_file = x
11696 then out_file=$cpu_type/$cpu_type.c; fi
11697
11698 if test x"$tmake_file" = x
11699 then tmake_file=$cpu_type/t-$cpu_type
11700 fi
11701
11702 if test x"$dwarf2" = xyes
11703 then tm_file="$tm_file tm-dwarf2.h"
11704 fi
11705
11706 # Say what files are being used for the output code and MD file.
11707 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11708 echo "Using \`$srcdir/config/$md_file' as machine description file."
11709
11710 # If any of the xm_file variables contain nonexistent files, warn
11711 # about them and drop them.
11712
11713 bx=
11714 for x in $build_xm_file; do
11715   if    test -f $srcdir/config/$x
11716   then      bx="$bx $x"
11717   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11718 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11719   fi
11720 done
11721 build_xm_file="$bx"
11722
11723 hx=
11724 for x in $host_xm_file; do
11725   if    test -f $srcdir/config/$x
11726   then      hx="$hx $x"
11727   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11728 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11729   fi
11730 done
11731 host_xm_file="$hx"
11732
11733 tx=
11734 for x in $xm_file; do
11735   if    test -f $srcdir/config/$x
11736   then      tx="$tx $x"
11737   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11738 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11739   fi
11740 done
11741 xm_file="$tx"
11742
11743 count=a
11744 for f in $tm_file; do
11745         count=${count}x
11746 done
11747 if test $count = ax; then
11748         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11749 else
11750         echo "Using the following target machine macro files:"
11751         for f in $tm_file; do
11752                 echo "  $srcdir/config/$f"
11753         done
11754 fi
11755
11756 if test x$need_64bit_hwint = xyes; then
11757
11758 cat >>confdefs.h <<\_ACEOF
11759 #define NEED_64BIT_HOST_WIDE_INT 1
11760 _ACEOF
11761
11762 fi
11763
11764 if test x$use_long_long_for_widest_fast_int = xyes; then
11765
11766 cat >>confdefs.h <<\_ACEOF
11767 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11768 _ACEOF
11769
11770 fi
11771
11772 count=a
11773 for f in $host_xm_file; do
11774         count=${count}x
11775 done
11776 if test $count = a; then
11777         :
11778 elif test $count = ax; then
11779         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11780 else
11781         echo "Using the following host machine macro files:"
11782         for f in $host_xm_file; do
11783                 echo "  $srcdir/config/$f"
11784         done
11785 fi
11786 echo "Using ${out_host_hook_obj} for host machine hooks."
11787
11788 if test "$host_xm_file" != "$build_xm_file"; then
11789         count=a
11790         for f in $build_xm_file; do
11791                 count=${count}x
11792         done
11793         if test $count = a; then
11794                 :
11795         elif test $count = ax; then
11796                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11797         else
11798                 echo "Using the following build machine macro files:"
11799                 for f in $build_xm_file; do
11800                         echo "  $srcdir/config/$f"
11801                 done
11802         fi
11803 fi
11804
11805 # ---------
11806 # Threading
11807 # ---------
11808
11809 # Check if a valid thread package
11810 case ${enable_threads} in
11811   "" | no)
11812     # No threads
11813     target_thread_file='single'
11814     ;;
11815   yes)
11816     # default
11817     target_thread_file='single'
11818     ;;
11819   aix | dce | gnat | irix | posix | rtems | \
11820   single | solaris | vxworks | win32 )
11821     target_thread_file=${enable_threads}
11822     ;;
11823   *)
11824     echo "${enable_threads} is an unknown thread package" 1>&2
11825     exit 1
11826     ;;
11827 esac
11828
11829 if test x${thread_file} = x; then
11830   # No thread file set by target-specific clauses in config.gcc,
11831   # so use file chosen by default logic above
11832   thread_file=${target_thread_file}
11833 fi
11834
11835 # Make gthr-default.h if we have a thread file.
11836 gthread_flags=
11837 if test $thread_file != single; then
11838   rm -f gthr-default.h
11839   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11840   gthread_flags=-DHAVE_GTHR_DEFAULT
11841 fi
11842
11843
11844 # --------
11845 # UNSORTED
11846 # --------
11847
11848 if test x$enable___cxa_atexit = xyes || \
11849    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11850    echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
11851 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
11852 if test "${ac_cv_func___cxa_atexit+set}" = set; then
11853   echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855   cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h.  */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h.  */
11861 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
11862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11863 #define __cxa_atexit innocuous___cxa_atexit
11864
11865 /* System header to define __stub macros and hopefully few prototypes,
11866     which can conflict with char __cxa_atexit (); below.
11867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11868     <limits.h> exists even on freestanding compilers.  */
11869
11870 #ifdef __STDC__
11871 # include <limits.h>
11872 #else
11873 # include <assert.h>
11874 #endif
11875
11876 #undef __cxa_atexit
11877
11878 /* Override any gcc2 internal prototype to avoid an error.  */
11879 #ifdef __cplusplus
11880 extern "C"
11881 {
11882 #endif
11883 /* We use char because int might match the return type of a gcc2
11884    builtin and then its argument prototype would still apply.  */
11885 char __cxa_atexit ();
11886 /* The GNU C library defines this for functions which it implements
11887     to always fail with ENOSYS.  Some functions are actually named
11888     something starting with __ and the normal name is an alias.  */
11889 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
11890 choke me
11891 #else
11892 char (*f) () = __cxa_atexit;
11893 #endif
11894 #ifdef __cplusplus
11895 }
11896 #endif
11897
11898 int
11899 main ()
11900 {
11901 return f != __cxa_atexit;
11902   ;
11903   return 0;
11904 }
11905 _ACEOF
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908   (eval $ac_link) 2>conftest.er1
11909   ac_status=$?
11910   grep -v '^ *+' conftest.er1 >conftest.err
11911   rm -f conftest.er1
11912   cat conftest.err >&5
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); } &&
11915          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917   (eval $ac_try) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); }; } &&
11921          { ac_try='test -s conftest$ac_exeext'
11922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923   (eval $ac_try) 2>&5
11924   ac_status=$?
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); }; }; then
11927   ac_cv_func___cxa_atexit=yes
11928 else
11929   echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11931
11932 ac_cv_func___cxa_atexit=no
11933 fi
11934 rm -f conftest.err conftest.$ac_objext \
11935       conftest$ac_exeext conftest.$ac_ext
11936 fi
11937 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
11938 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
11939 if test $ac_cv_func___cxa_atexit = yes; then
11940
11941 cat >>confdefs.h <<\_ACEOF
11942 #define DEFAULT_USE_CXA_ATEXIT 1
11943 _ACEOF
11944
11945 else
11946   echo "__cxa_atexit can't be enabled on this target"
11947 fi
11948
11949 fi
11950
11951 # Look for a file containing extra machine modes.
11952 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11953   extra_modes_file='$(srcdir)'/config/${extra_modes}
11954
11955
11956 cat >>confdefs.h <<_ACEOF
11957 #define EXTRA_MODES_FILE "config/$extra_modes"
11958 _ACEOF
11959
11960 fi
11961
11962 # auto-host.h is the file containing items generated by autoconf and is
11963 # the first file included by config.h.
11964 # If host=build, it is correct to have bconfig include auto-host.h
11965 # as well.  If host!=build, we are in error and need to do more
11966 # work to find out the build config parameters.
11967 if test x$host = x$build
11968 then
11969         build_auto=auto-host.h
11970 else
11971         # We create a subdir, then run autoconf in the subdir.
11972         # To prevent recursion we set host and build for the new
11973         # invocation of configure to the build for this invocation
11974         # of configure.
11975         tempdir=build.$$
11976         rm -rf $tempdir
11977         mkdir $tempdir
11978         cd $tempdir
11979         case ${srcdir} in
11980         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11981         *) realsrcdir=../${srcdir};;
11982         esac
11983         saved_CFLAGS="${CFLAGS}"
11984         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11985         ${realsrcdir}/configure \
11986                 --enable-languages=${enable_languages-all} \
11987                 --target=$target_alias --host=$build_alias --build=$build_alias
11988         CFLAGS="${saved_CFLAGS}"
11989
11990         # We just finished tests for the build machine, so rename
11991         # the file auto-build.h in the gcc directory.
11992         mv auto-host.h ../auto-build.h
11993         cd ..
11994         rm -rf $tempdir
11995         build_auto=auto-build.h
11996 fi
11997
11998
11999 tm_file="${tm_file} defaults.h"
12000 tm_p_file="${tm_p_file} tm-preds.h"
12001 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12002 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12003 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12004 # put this back in temporarily.
12005 xm_file="ansidecl.h ${xm_file}"
12006
12007 # --------
12008 # UNSORTED
12009 # --------
12010
12011 # Get the version trigger filename from the toplevel
12012 if test "${with_gcc_version_trigger+set}" = set; then
12013         gcc_version_trigger=$with_gcc_version_trigger
12014 else
12015         gcc_version_trigger=${srcdir}/version.c
12016 fi
12017 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
12018 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
12019
12020 # Compile in configure arguments.
12021 if test -f configargs.h ; then
12022         # Being re-configured.
12023         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12024         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12025 else
12026         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12027 fi
12028
12029 # Double all backslashes and backslash all quotes to turn
12030 # gcc_config_arguments into a C string.
12031 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12032 $gcc_config_arguments
12033 EOF
12034 gcc_config_arguments_str=`cat conftest.out`
12035 rm -f conftest.out
12036
12037 cat > configargs.h <<EOF
12038 /* Generated automatically. */
12039 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12040 static const char thread_model[] = "$thread_file";
12041
12042 static const struct {
12043   const char *name, *value;
12044 } configure_default_options[] = $configure_default_options;
12045 EOF
12046
12047 # Internationalization
12048 PACKAGE=gcc
12049 VERSION="$gcc_version"
12050
12051 cat >>confdefs.h <<_ACEOF
12052 #define PACKAGE "$PACKAGE"
12053 _ACEOF
12054
12055
12056
12057
12058 # If we haven't got the data from the intl directory,
12059 # assume NLS is disabled.
12060 USE_NLS=no
12061 LIBINTL=
12062 LIBINTL_DEP=
12063 INCINTL=
12064 XGETTEXT=
12065 GMSGFMT=
12066 POSUB=
12067 if test -f ../intl/config.intl; then
12068   . ../intl/config.intl
12069 fi
12070 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12071 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12072 if test x"$USE_NLS" != xyes; then
12073   echo "$as_me:$LINENO: result: no" >&5
12074 echo "${ECHO_T}no" >&6
12075 else
12076   echo "$as_me:$LINENO: result: yes" >&5
12077 echo "${ECHO_T}yes" >&6
12078
12079 cat >>confdefs.h <<\_ACEOF
12080 #define ENABLE_NLS 1
12081 _ACEOF
12082
12083
12084   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12085 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12086   # Look for .po and .gmo files in the source directory.
12087   CATALOGS=
12088   XLINGUAS=
12089   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12090     # If there aren't any .gmo files the shell will give us the
12091     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12092     # weeded out.
12093     case "$cat" in *\**)
12094       continue;;
12095     esac
12096     # The quadruple backslash is collapsed to a double backslash
12097     # by the backticks, then collapsed again by the double quotes,
12098     # leaving us with one backslash in the sed expression (right
12099     # before the dot that mustn't act as a wildcard).
12100     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12101     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12102     # The user is allowed to set LINGUAS to a list of languages to
12103     # install catalogs for.  If it's empty that means "all of them."
12104     if test "x$LINGUAS" = x; then
12105       CATALOGS="$CATALOGS $cat"
12106       XLINGUAS="$XLINGUAS $lang"
12107     else
12108       case "$LINGUAS" in *$lang*)
12109         CATALOGS="$CATALOGS $cat"
12110         XLINGUAS="$XLINGUAS $lang"
12111         ;;
12112       esac
12113     fi
12114   done
12115   LINGUAS="$XLINGUAS"
12116   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12117 echo "${ECHO_T}$LINGUAS" >&6
12118 fi
12119
12120 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12121 # -liconv on the link line twice.
12122 case "$LIBINTL" in *$LIBICONV*)
12123         LIBICONV= ;;
12124 esac
12125
12126 # Windows32 Registry support for specifying GCC installation paths.
12127 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12128 if test "${enable_win32_registry+set}" = set; then
12129   enableval="$enable_win32_registry"
12130
12131 fi;
12132 case $host_os in
12133         win32 | pe | cygwin* | mingw32* | uwin*)
12134 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12135 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12136 if test "x$enable_win32_registry" != xno; then
12137
12138 cat >>confdefs.h <<\_ACEOF
12139 #define ENABLE_WIN32_REGISTRY 1
12140 _ACEOF
12141
12142   echo "$as_me:$LINENO: result: yes" >&5
12143 echo "${ECHO_T}yes" >&6
12144   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12145 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12146 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12147   echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149   ac_func_search_save_LIBS=$LIBS
12150 ac_cv_search_RegOpenKeyExA=no
12151 cat >conftest.$ac_ext <<_ACEOF
12152 /* confdefs.h.  */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h.  */
12157
12158 /* Override any gcc2 internal prototype to avoid an error.  */
12159 #ifdef __cplusplus
12160 extern "C"
12161 #endif
12162 /* We use char because int might match the return type of a gcc2
12163    builtin and then its argument prototype would still apply.  */
12164 char RegOpenKeyExA ();
12165 int
12166 main ()
12167 {
12168 RegOpenKeyExA ();
12169   ;
12170   return 0;
12171 }
12172 _ACEOF
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12175   (eval $ac_link) 2>conftest.er1
12176   ac_status=$?
12177   grep -v '^ *+' conftest.er1 >conftest.err
12178   rm -f conftest.er1
12179   cat conftest.err >&5
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); } &&
12182          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184   (eval $ac_try) 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); }; } &&
12188          { ac_try='test -s conftest$ac_exeext'
12189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190   (eval $ac_try) 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); }; }; then
12194   ac_cv_search_RegOpenKeyExA="none required"
12195 else
12196   echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12198
12199 fi
12200 rm -f conftest.err conftest.$ac_objext \
12201       conftest$ac_exeext conftest.$ac_ext
12202 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12203   for ac_lib in advapi32; do
12204     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12205     cat >conftest.$ac_ext <<_ACEOF
12206 /* confdefs.h.  */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h.  */
12211
12212 /* Override any gcc2 internal prototype to avoid an error.  */
12213 #ifdef __cplusplus
12214 extern "C"
12215 #endif
12216 /* We use char because int might match the return type of a gcc2
12217    builtin and then its argument prototype would still apply.  */
12218 char RegOpenKeyExA ();
12219 int
12220 main ()
12221 {
12222 RegOpenKeyExA ();
12223   ;
12224   return 0;
12225 }
12226 _ACEOF
12227 rm -f conftest.$ac_objext conftest$ac_exeext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12229   (eval $ac_link) 2>conftest.er1
12230   ac_status=$?
12231   grep -v '^ *+' conftest.er1 >conftest.err
12232   rm -f conftest.er1
12233   cat conftest.err >&5
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); } &&
12236          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238   (eval $ac_try) 2>&5
12239   ac_status=$?
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); }; } &&
12242          { ac_try='test -s conftest$ac_exeext'
12243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244   (eval $ac_try) 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; }; then
12248   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12249 break
12250 else
12251   echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12253
12254 fi
12255 rm -f conftest.err conftest.$ac_objext \
12256       conftest$ac_exeext conftest.$ac_ext
12257   done
12258 fi
12259 LIBS=$ac_func_search_save_LIBS
12260 fi
12261 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12262 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12263 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12264   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12265
12266 fi
12267
12268 else
12269   echo "$as_me:$LINENO: result: no" >&5
12270 echo "${ECHO_T}no" >&6
12271 fi
12272
12273 # Check if user specified a different registry key.
12274 case "x${enable_win32_registry}" in
12275 x | xyes)
12276   # default.
12277   gcc_cv_win32_registry_key="$VERSION"
12278   ;;
12279 xno)
12280   # no registry lookup.
12281   gcc_cv_win32_registry_key=''
12282   ;;
12283 *)
12284   # user-specified key.
12285   gcc_cv_win32_registry_key="$enable_win32_registry"
12286   ;;
12287 esac
12288
12289 if test "x$enable_win32_registry" != xno; then
12290   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12291 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12292
12293 cat >>confdefs.h <<_ACEOF
12294 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12295 _ACEOF
12296
12297   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12298 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12299 fi
12300 ;;
12301 esac
12302
12303 # Get an absolute path to the GCC top-level source directory
12304 holddir=`${PWDCMD-pwd}`
12305 cd $srcdir
12306 topdir=`${PWDCMD-pwd}`
12307 cd $holddir
12308
12309 # Conditionalize the makefile for this host machine.
12310 xmake_file=
12311 for f in ${host_xmake_file}
12312 do
12313         if test -f ${srcdir}/config/$f
12314         then
12315                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12316         fi
12317 done
12318
12319 # Conditionalize the makefile for this target machine.
12320 tmake_file_=
12321 for f in ${tmake_file}
12322 do
12323         if test -f ${srcdir}/config/$f
12324         then
12325                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12326         fi
12327 done
12328 tmake_file="${tmake_file_}"
12329
12330 # If the host doesn't support symlinks, modify CC in
12331 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12332 # Otherwise, we can use "CC=$(CC)".
12333 rm -f symtest.tem
12334 case "$LN_S" in
12335         *-s*)
12336                 cc_set_by_configure="\$(CC)"
12337                 quoted_cc_set_by_configure="\$(CC)"
12338                 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12339                 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12340                 ;;
12341         *)
12342                 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12343                 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12344                 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12345                 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12346                 ;;
12347 esac
12348
12349 out_object_file=`basename $out_file .c`.o
12350
12351 tm_file_list=
12352 tm_include_list=
12353 for f in $tm_file; do
12354   case $f in
12355     defaults.h )
12356        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12357        tm_include_list="${tm_include_list} $f"
12358        ;;
12359     * )
12360        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12361        tm_include_list="${tm_include_list} config/$f"
12362        ;;
12363   esac
12364 done
12365
12366 tm_p_file_list=
12367 tm_p_include_list=
12368 for f in $tm_p_file; do
12369   case $f in
12370     tm-preds.h )
12371        tm_p_file_list="${tm_p_file_list} $f"
12372        tm_p_include_list="${tm_p_include_list} $f"
12373        ;;
12374     * )
12375        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12376        tm_p_include_list="${tm_p_include_list} config/$f"
12377   esac
12378 done
12379
12380 xm_file_list=
12381 xm_include_list=
12382 for f in $xm_file; do
12383   case $f in
12384     ansidecl.h )
12385        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12386        xm_include_list="${xm_include_list} $f"
12387        ;;
12388     auto-host.h )
12389        xm_file_list="${xm_file_list} $f"
12390        xm_include_list="${xm_include_list} $f"
12391        ;;
12392     * )
12393        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12394        xm_include_list="${xm_include_list} config/$f"
12395        ;;
12396   esac
12397 done
12398
12399 host_xm_file_list=
12400 host_xm_include_list=
12401 for f in $host_xm_file; do
12402   case $f in
12403     ansidecl.h )
12404        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12405        host_xm_include_list="${host_xm_include_list} $f"
12406        ;;
12407     auto-host.h )
12408        host_xm_file_list="${host_xm_file_list} $f"
12409        host_xm_include_list="${host_xm_include_list} $f"
12410        ;;
12411     * )
12412        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12413        host_xm_include_list="${host_xm_include_list} config/$f"
12414        ;;
12415   esac
12416 done
12417
12418 build_xm_file_list=
12419 for f in $build_xm_file; do
12420   case $f in
12421     ansidecl.h )
12422        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12423        build_xm_include_list="${build_xm_include_list} $f"
12424        ;;
12425     auto-build.h | auto-host.h )
12426        build_xm_file_list="${build_xm_file_list} $f"
12427        build_xm_include_list="${build_xm_include_list} $f"
12428        ;;
12429     * )
12430        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12431        build_xm_include_list="${build_xm_include_list} config/$f"
12432        ;;
12433   esac
12434 done
12435
12436 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12437 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12438 CROSS=
12439 ALL=all.internal
12440 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12441 if test x$host != x$target
12442 then
12443         CROSS="-DCROSS_COMPILE"
12444         ALL=all.cross
12445         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12446         case "$host","$target" in
12447         # Darwin crosses can use the host system's libraries and headers,
12448         # because of the fat library support.  Of course, it must be the
12449         # same version of Darwin on both sides.  Allow the user to
12450         # just say --target=foo-darwin without a version number to mean
12451         # "the version on this system".
12452             *-*-darwin*,*-*-darwin*)
12453                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12454                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12455                 if test $hostos = $targetos -o $targetos = darwin ; then
12456                     CROSS=
12457                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12458                     with_headers=yes
12459                 fi
12460                 ;;
12461
12462             i?86-*-*,x86_64-*-* \
12463             | powerpc*-*-*,powerpc64*-*-*)
12464                 CROSS="$CROSS -DNATIVE_CROSS" ;;
12465         esac
12466 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12467         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12468         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12469 fi
12470
12471 # If this is a cross-compiler that does not
12472 # have its own set of headers then define
12473 # inhibit_libc
12474
12475 # If this is using newlib, without having the headers available now,
12476 # then define inhibit_libc in LIBGCC2_CFLAGS.
12477 # This prevents libgcc2 from containing any code which requires libc
12478 # support.
12479 inhibit_libc=
12480 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12481        test x$with_newlib = xyes ; } &&
12482      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12483        inhibit_libc=-Dinhibit_libc
12484 fi
12485
12486
12487 # When building gcc with a cross-compiler, we need to adjust things so
12488 # that the generator programs are still built with the native compiler.
12489 # Also, we cannot run fixincludes or fix-header.
12490
12491 # These are the normal (build=host) settings:
12492 CC_FOR_BUILD='$(CC)'
12493 BUILD_CFLAGS='$(ALL_CFLAGS)'
12494 STMP_FIXINC=stmp-fixinc
12495
12496 # Possibly disable fixproto, on a per-target basis.
12497 case ${use_fixproto} in
12498   no)
12499     STMP_FIXPROTO=
12500     ;;
12501   yes)
12502     STMP_FIXPROTO=stmp-fixproto
12503     ;;
12504 esac
12505
12506
12507 # And these apply if build != host, or we are generating coverage data
12508 if test x$build != x$host || test "x$coverage_flags" != x
12509 then
12510     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12511
12512     if test "x$TARGET_SYSTEM_ROOT" = x; then
12513         STMP_FIXINC=
12514         STMP_FIXPROTO=
12515     fi
12516 fi
12517
12518 # When bootstrapping from the toplevel, only run fixincludes during stage1
12519 if test -d ../prev-gcc
12520 then
12521     STMP_FIXINC=
12522     cp -R ../prev-gcc/include include
12523 fi
12524
12525 # Expand extra_headers to include complete path.
12526 # This substitutes for lots of t-* files.
12527 extra_headers_list=
12528 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12529 for file in ${extra_headers} ; do
12530   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12531 done
12532
12533 # Define collect2 in Makefile.
12534 case $host_can_use_collect2 in
12535   no) collect2= ;;
12536   *) collect2='collect2$(exeext)' ;;
12537 esac
12538
12539
12540 # Add a definition of USE_COLLECT2 if system wants one.
12541 case $use_collect2 in
12542   no) use_collect2= ;;
12543   "") ;;
12544   *)
12545     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12546     xm_defines="${xm_defines} USE_COLLECT2"
12547     case $host_can_use_collect2 in
12548       no)
12549         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12550 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12551    { (exit 1); exit 1; }; }
12552         ;;
12553     esac
12554     ;;
12555 esac
12556
12557 # ---------------------------
12558 # Assembler & linker features
12559 # ---------------------------
12560
12561 # Identify the assembler which will work hand-in-glove with the newly
12562 # built GCC, so that we can examine its features.  This is the assembler
12563 # which will be driven by the driver program.
12564 #
12565 # If build != host, and we aren't building gas in-tree, we identify a
12566 # build->target assembler and hope that it will have the same features
12567 # as the host->target assembler we'll be using.
12568 echo "$as_me:$LINENO: checking what assembler to use" >&5
12569 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12570 in_tree_gas=no
12571 gcc_cv_as=
12572 gcc_cv_gas_major_version=
12573 gcc_cv_gas_minor_version=
12574 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12575 if test -x "$DEFAULT_ASSEMBLER"; then
12576         gcc_cv_as="$DEFAULT_ASSEMBLER"
12577 elif test -x as$host_exeext; then
12578         # Build using assembler in the current directory.
12579         gcc_cv_as=./as$host_exeext
12580 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12581      && test -f ../gas/Makefile \
12582      && test x$build = x$host; then
12583   # Single tree build which includes gas.  We want to prefer it
12584   # over whatever linker top-level may have detected, since
12585   # we'll use what we're building after installation anyway.
12586   in_tree_gas=yes
12587   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12588 for f in $gcc_cv_as_bfd_srcdir/configure \
12589          $gcc_cv_as_gas_srcdir/configure \
12590          $gcc_cv_as_gas_srcdir/configure.in \
12591          $gcc_cv_as_gas_srcdir/Makefile.in ; do
12592   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12593   if test x$gcc_cv_gas_version != x; then
12594     break
12595   fi
12596 done
12597 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12598 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12599 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12600 case $gcc_cv_gas_patch_version in
12601   "") gcc_cv_gas_patch_version="0" ;;
12602 esac
12603 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12604                             + $gcc_cv_gas_minor_version \) \* 1000 \
12605                             + $gcc_cv_gas_patch_version`
12606
12607   rm -f as$host_exeext
12608   $LN ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
12609   in_tree_gas_is_elf=no
12610   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12611      || (grep 'obj_format = multi' ../gas/Makefile \
12612          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12613   then
12614     in_tree_gas_is_elf=yes
12615   fi
12616 elif test -x "$AS_FOR_TARGET"; then
12617         gcc_cv_as="$AS_FOR_TARGET"
12618 elif test -x "$AS" && test x$host = x$target; then
12619         gcc_cv_as="$AS"
12620 fi
12621
12622 if test "x$gcc_cv_as" = x; then
12623         # Search the same directories that the installed compiler will
12624         # search.  Else we may find the wrong assembler and lose.  If we
12625         # do not find a suitable assembler binary, then try the user's
12626         # path.
12627         #
12628         # Also note we have to check MD_EXEC_PREFIX before checking the
12629         # user's path.  Unfortunately, there is no good way to get at the
12630         # value of MD_EXEC_PREFIX here.  So we do a brute force search
12631         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
12632         # to be fixed as part of the make/configure rewrite too.
12633
12634         if test "x$exec_prefix" = xNONE; then
12635                 if test "x$prefix" = xNONE; then
12636                         test_prefix=/usr/local
12637                 else
12638                         test_prefix=$prefix
12639                 fi
12640         else
12641                 test_prefix=$exec_prefix
12642         fi
12643
12644         # If the loop below does not find an assembler, then use whatever
12645         # one we can find in the users's path.
12646         # user's path.
12647         if test "x$program_prefix" != xNONE; then
12648                 gcc_cv_as=${program_prefix}as$host_exeext
12649         else
12650                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
12651         fi
12652
12653         if test x$host = x$build; then
12654             test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12655                        $test_prefix/libexec/gcc/$target_noncanonical \
12656                        /usr/lib/gcc/$target_noncanonical/$gcc_version \
12657                        /usr/lib/gcc/$target_noncanonical \
12658                        $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12659                        $test_prefix/$target_noncanonical/bin"
12660         else
12661             test_dirs=
12662         fi
12663
12664         if test x$host = x$target; then
12665             test_dirs="$test_dirs \
12666                    /usr/libexec \
12667                    /usr/ccs/gcc \
12668                    /usr/ccs/bin \
12669                    /udk/usr/ccs/bin \
12670                    /bsd43/usr/lib/cmplrs/cc \
12671                    /usr/cross64/usr/bin \
12672                    /usr/lib/cmplrs/cc \
12673                    /sysv/usr/lib/cmplrs/cc \
12674                    /svr4/usr/lib/cmplrs/cc \
12675                    /usr/bin"
12676         fi
12677
12678         for dir in $test_dirs; do
12679                 if test -x $dir/as$host_exeext; then
12680                         gcc_cv_as=$dir/as$host_exeext
12681                         break;
12682                 fi
12683         done
12684 fi
12685 case $in_tree_gas in
12686   yes)
12687     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12688 echo "${ECHO_T}\"newly built gas\"" >&6
12689     ;;
12690   no)
12691     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12692 echo "${ECHO_T}$gcc_cv_as" >&6
12693     ;;
12694 esac
12695
12696 # Identify the linker which will work hand-in-glove with the newly
12697 # built GCC, so that we can examine its features.  This is the linker
12698 # which will be driven by the driver program.
12699 #
12700 # If build != host, and we aren't building gas in-tree, we identify a
12701 # build->target linker and hope that it will have the same features
12702 # as the host->target linker we'll be using.
12703 echo "$as_me:$LINENO: checking what linker to use" >&5
12704 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12705 in_tree_ld=no
12706 gcc_cv_ld=
12707 gcc_cv_gld_major_version=
12708 gcc_cv_gld_minor_version=
12709 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12710 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12711 if test -x "$DEFAULT_LINKER"; then
12712         gcc_cv_ld="$DEFAULT_LINKER"
12713 elif test -x collect-ld$host_exeext; then
12714         # Build using linker in the current directory.
12715         gcc_cv_ld=./collect-ld$host_exeext
12716 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12717      && test -f ../ld/Makefile \
12718      && test x$build = x$host; then
12719         # Single tree build which includes ld.  We want to prefer it
12720         # over whatever linker top-level may have detected, since
12721         # we'll use what we're building after installation anyway.
12722         in_tree_ld=yes
12723         in_tree_ld_is_elf=no
12724         if (grep 'EMUL = .*elf' ../ld/Makefile \
12725             || grep 'EMUL = .*linux' ../ld/Makefile \
12726             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12727           in_tree_ld_is_elf=yes
12728         fi
12729         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
12730         do
12731                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12732                 if test x$gcc_cv_gld_version != x; then
12733                         break
12734                 fi
12735         done
12736         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12737         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12738         rm -f collect-ld$host_exeext
12739         $LN ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
12740 elif test -x "$LD_FOR_TARGET"; then
12741         gcc_cv_ld="$LD_FOR_TARGET"
12742 elif test -x "$LD" && test x$host = x$target; then
12743         gcc_cv_ld="$LD"
12744 fi
12745
12746 if test "x$gcc_cv_ld" = x; then
12747         # Search the same directories that the installed compiler will
12748         # search.  Else we may find the wrong linker and lose.  If we
12749         # do not find a suitable linker binary, then try the user's
12750         # path.
12751         #
12752         # Also note we have to check MD_EXEC_PREFIX before checking the
12753         # user's path.  Unfortunately, there is no good way to get at the
12754         # value of MD_EXEC_PREFIX here.  So we do a brute force search
12755         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
12756         # to be fixed as part of the make/configure rewrite too.
12757
12758         if test "x$exec_prefix" = xNONE; then
12759                 if test "x$prefix" = xNONE; then
12760                         test_prefix=/usr/local
12761                 else
12762                         test_prefix=$prefix
12763                 fi
12764         else
12765                 test_prefix=$exec_prefix
12766         fi
12767
12768         # If the loop below does not find an linker, then use whatever
12769         # one we can find in the users's path.
12770         # user's path.
12771         if test "x$program_prefix" != xNONE; then
12772                 gcc_cv_ld=${program_prefix}ld$host_exeext
12773         else
12774                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
12775         fi
12776
12777         if test x$host = x$build; then
12778             test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12779                        $test_prefix/libexec/gcc/$target_noncanonical \
12780                        /usr/lib/gcc/$target_noncanonical/$gcc_version \
12781                        /usr/lib/gcc/$target_noncanonical \
12782                        $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12783                        $test_prefix/$target_noncanonical/bin"
12784         else
12785             test_dirs=
12786         fi
12787
12788         if test x$host = x$target; then
12789             test_dirs="$test_dirs \
12790                    /usr/libexec \
12791                    /usr/ccs/gcc \
12792                    /usr/ccs/bin \
12793                    /udk/usr/ccs/bin \
12794                    /bsd43/usr/lib/cmplrs/cc \
12795                    /usr/cross64/usr/bin \
12796                    /usr/lib/cmplrs/cc \
12797                    /sysv/usr/lib/cmplrs/cc \
12798                    /svr4/usr/lib/cmplrs/cc \
12799                    /usr/bin"
12800         fi
12801
12802         for dir in $test_dirs; do
12803                 if test -x $dir/ld$host_exeext; then
12804                         gcc_cv_ld=$dir/ld$host_exeext
12805                         break;
12806                 fi
12807         done
12808 fi
12809 case $in_tree_ld in
12810   yes)
12811     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12812 echo "${ECHO_T}\"newly built ld\"" >&6
12813     ;;
12814   no)
12815     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12816 echo "${ECHO_T}$gcc_cv_ld" >&6
12817     ;;
12818 esac
12819
12820 # Figure out what nm we will be using.
12821 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12822 echo "$as_me:$LINENO: checking what nm to use" >&5
12823 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12824 in_tree_nm=no
12825 if test -x nm$host_exeext; then
12826         gcc_cv_nm=./nm$host_exeext
12827 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12828      && test -f ../binutils/Makefile; then
12829         # Single tree build which includes binutils.
12830         in_tree_nm=yes
12831         gcc_cv_nm=./nm$host_exeext
12832         rm -f nm$host_exeext
12833         $LN ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
12834 elif test "x$program_prefix" != xNONE; then
12835         gcc_cv_nm=${program_prefix}nm$host_exeext
12836 else
12837         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
12838 fi
12839 case $in_tree_nm in
12840   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12841 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12842   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12843 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12844 esac
12845
12846 # Figure out what objdump we will be using.
12847 echo "$as_me:$LINENO: checking what objdump to use" >&5
12848 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12849 in_tree_objdump=no
12850 if test -x objdump$host_exeext; then
12851         gcc_cv_objdump=./objdump$host_exeext
12852 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12853      && test -f ../binutils/Makefile; then
12854         # Single tree build which includes binutils.
12855         in_tree_objdump=yes
12856         gcc_cv_objdump=./objdump$host_exeext
12857         rm -f objdump$host_exeext
12858         $LN ../binutils/objdump$host_exeext objdump$host_exeext 2>/dev/null
12859 elif test "x$program_prefix" != xNONE; then
12860         gcc_cv_objdump=${program_prefix}objdump$host_exeext
12861 else
12862         gcc_cv_objdump=`echo objdump | \
12863                 sed "${program_transform_name}"`$host_exeext
12864 fi
12865 case $in_tree_objdump in
12866   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12867 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12868   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12869 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12870 esac
12871
12872 # Figure out what assembler alignment features are present.
12873 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
12874 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
12875 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
12876   echo $ECHO_N "(cached) $ECHO_C" >&6
12877 else
12878   gcc_cv_as_balign_and_p2align=no
12879     if test $in_tree_gas = yes; then
12880     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
12881   then gcc_cv_as_balign_and_p2align=yes
12882 fi
12883   elif test x$gcc_cv_as != x; then
12884     echo '.balign 4
12885 .p2align 2' > conftest.s
12886     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
12887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888   (eval $ac_try) 2>&5
12889   ac_status=$?
12890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891   (exit $ac_status); }; }
12892     then
12893         gcc_cv_as_balign_and_p2align=yes
12894     else
12895       echo "configure: failed program was" >&5
12896       cat conftest.s >&5
12897     fi
12898     rm -f conftest.o conftest.s
12899   fi
12900 fi
12901 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
12902 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
12903 if test $gcc_cv_as_balign_and_p2align = yes; then
12904
12905 cat >>confdefs.h <<\_ACEOF
12906 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
12907 _ACEOF
12908
12909 fi
12910
12911 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
12912 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
12913 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
12914   echo $ECHO_N "(cached) $ECHO_C" >&6
12915 else
12916   gcc_cv_as_max_skip_p2align=no
12917     if test $in_tree_gas = yes; then
12918     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
12919   then gcc_cv_as_max_skip_p2align=yes
12920 fi
12921   elif test x$gcc_cv_as != x; then
12922     echo '.p2align 4,,7' > conftest.s
12923     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
12924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925   (eval $ac_try) 2>&5
12926   ac_status=$?
12927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928   (exit $ac_status); }; }
12929     then
12930         gcc_cv_as_max_skip_p2align=yes
12931     else
12932       echo "configure: failed program was" >&5
12933       cat conftest.s >&5
12934     fi
12935     rm -f conftest.o conftest.s
12936   fi
12937 fi
12938 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
12939 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
12940 if test $gcc_cv_as_max_skip_p2align = yes; then
12941
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
12944 _ACEOF
12945
12946 fi
12947
12948 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
12949 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
12950 if test "${gcc_cv_as_subsection_m1+set}" = set; then
12951   echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953   gcc_cv_as_subsection_m1=no
12954     if test $in_tree_gas = yes; then
12955     if test $in_tree_gas_is_elf = yes \
12956   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
12957   then gcc_cv_as_subsection_m1=yes
12958 fi
12959   elif test x$gcc_cv_as != x; then
12960     echo 'conftest_label1: .word 0
12961 .subsection -1
12962 conftest_label2: .word 0
12963 .previous' > conftest.s
12964     if { ac_try='$gcc_cv_as  -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         if test x$gcc_cv_nm != x; then
12972     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
12973     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
12974     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
12975     then :
12976     else gcc_cv_as_subsection_m1=yes
12977     fi
12978     rm -f conftest.nm1 conftest.nm2
12979   fi
12980     else
12981       echo "configure: failed program was" >&5
12982       cat conftest.s >&5
12983     fi
12984     rm -f conftest.o conftest.s
12985   fi
12986 fi
12987 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
12988 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
12989 if test $gcc_cv_as_subsection_m1 = yes; then
12990
12991 cat >>confdefs.h <<\_ACEOF
12992 #define HAVE_GAS_SUBSECTION_ORDERING 1
12993 _ACEOF
12994
12995 fi
12996
12997 echo "$as_me:$LINENO: checking assembler for .weak" >&5
12998 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
12999 if test "${gcc_cv_as_weak+set}" = set; then
13000   echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002   gcc_cv_as_weak=no
13003     if test $in_tree_gas = yes; then
13004     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13005   then gcc_cv_as_weak=yes
13006 fi
13007   elif test x$gcc_cv_as != x; then
13008     echo '      .weak foobar' > conftest.s
13009     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011   (eval $ac_try) 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); }; }
13015     then
13016         gcc_cv_as_weak=yes
13017     else
13018       echo "configure: failed program was" >&5
13019       cat conftest.s >&5
13020     fi
13021     rm -f conftest.o conftest.s
13022   fi
13023 fi
13024 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13025 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13026 if test $gcc_cv_as_weak = yes; then
13027
13028 cat >>confdefs.h <<\_ACEOF
13029 #define HAVE_GAS_WEAK 1
13030 _ACEOF
13031
13032 fi
13033
13034 # .hidden needs to be supported in both the assembler and the linker,
13035 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13036 # This is irritatingly difficult to feature test for; we have to check the
13037 # date string after the version number.  If we've got an in-tree
13038 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13039 # to be safe.
13040 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13041 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13042 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13043 if test "${gcc_cv_as_hidden+set}" = set; then
13044   echo $ECHO_N "(cached) $ECHO_C" >&6
13045 else
13046   gcc_cv_as_hidden=no
13047     if test $in_tree_gas = yes; then
13048     if test $in_tree_gas_is_elf = yes \
13049   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13050   then gcc_cv_as_hidden=yes
13051 fi
13052   elif test x$gcc_cv_as != x; then
13053     echo '      .hidden foobar
13054 foobar:' > conftest.s
13055     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057   (eval $ac_try) 2>&5
13058   ac_status=$?
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); }; }
13061     then
13062         gcc_cv_as_hidden=yes
13063     else
13064       echo "configure: failed program was" >&5
13065       cat conftest.s >&5
13066     fi
13067     rm -f conftest.o conftest.s
13068   fi
13069 fi
13070 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13071 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13072
13073
13074 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13075 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13076 if test "${gcc_cv_ld_hidden+set}" = set; then
13077   echo $ECHO_N "(cached) $ECHO_C" >&6
13078 else
13079   if test $in_tree_ld = yes ; then
13080   gcc_cv_ld_hidden=no
13081   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 \
13082      && test $in_tree_ld_is_elf = yes; then
13083      gcc_cv_ld_hidden=yes
13084   fi
13085 else
13086   gcc_cv_ld_hidden=yes
13087   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13088   if echo "$ld_ver" | grep GNU > /dev/null; then
13089     ld_vers=`echo $ld_ver | sed -n \
13090         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13091         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13092         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13093         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
13094         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
13095         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
13096     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'`
13097     if test 0"$ld_date" -lt 20020404; then
13098       if test -n "$ld_date"; then
13099         # If there was date string, but was earlier than 2002-04-04, fail
13100         gcc_cv_ld_hidden=no
13101       elif test -z "$ld_vers"; then
13102         # If there was no date string nor ld version number, something is wrong
13103         gcc_cv_ld_hidden=no
13104       else
13105         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13106         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13107         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13108         test -z "$ld_vers_patch" && ld_vers_patch=0
13109         if test "$ld_vers_major" -lt 2; then
13110           gcc_cv_ld_hidden=no
13111         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13112           gcc_cv_ld_hidden="no"
13113         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13114           gcc_cv_ld_hidden=no
13115         fi
13116       fi
13117     fi
13118   else
13119     case "${target}" in
13120       hppa64*-*-hpux* | ia64*-*-hpux*)
13121         gcc_cv_ld_hidden=yes
13122         ;;
13123       *)
13124         gcc_cv_ld_hidden=no
13125         ;;
13126     esac
13127   fi
13128 fi
13129 fi
13130 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13131 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13132 libgcc_visibility=no
13133
13134 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13135   libgcc_visibility=yes
13136
13137 cat >>confdefs.h <<\_ACEOF
13138 #define HAVE_GAS_HIDDEN 1
13139 _ACEOF
13140
13141 fi
13142
13143 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13144 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13145 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13146 if test "${gcc_cv_as_leb128+set}" = set; then
13147   echo $ECHO_N "(cached) $ECHO_C" >&6
13148 else
13149   gcc_cv_as_leb128=no
13150     if test $in_tree_gas = yes; then
13151     if test $in_tree_gas_is_elf = yes \
13152   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13153   then gcc_cv_as_leb128=yes
13154 fi
13155   elif test x$gcc_cv_as != x; then
13156     echo '      .data
13157         .uleb128 L2 - L1
13158 L1:
13159         .uleb128 1280
13160         .sleb128 -1010
13161 L2:' > conftest.s
13162     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164   (eval $ac_try) 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }; }
13168     then
13169         # GAS versions before 2.11 do not support uleb128,
13170   # despite appearing to.
13171   # ??? There exists an elf-specific test that will crash
13172   # the assembler.  Perhaps it's better to figure out whether
13173   # arbitrary sections are supported and try the test.
13174   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13175   if echo "$as_ver" | grep GNU > /dev/null; then
13176     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13177     as_major=`echo $as_ver | sed 's/\..*//'`
13178     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13179     if test $as_major -eq 2 && test $as_minor -lt 11
13180     then :
13181     else gcc_cv_as_leb128=yes
13182     fi
13183   fi
13184     else
13185       echo "configure: failed program was" >&5
13186       cat conftest.s >&5
13187     fi
13188     rm -f conftest.o conftest.s
13189   fi
13190 fi
13191 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13192 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13193 if test $gcc_cv_as_leb128 = yes; then
13194
13195 cat >>confdefs.h <<\_ACEOF
13196 #define HAVE_AS_LEB128 1
13197 _ACEOF
13198
13199 fi
13200
13201 # GAS versions up to and including 2.11.0 may mis-optimize
13202 # .eh_frame data.
13203 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13204 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13205 if test "${gcc_cv_as_eh_frame+set}" = set; then
13206   echo $ECHO_N "(cached) $ECHO_C" >&6
13207 else
13208   gcc_cv_as_eh_frame=no
13209     if test $in_tree_gas = yes; then
13210     if test $in_tree_gas_is_elf = yes \
13211   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13212   then gcc_cv_as_eh_frame=yes
13213 fi
13214   elif test x$gcc_cv_as != x; then
13215     echo '      .text
13216 .LFB1:
13217         .4byte  0
13218 .L1:
13219         .4byte  0
13220 .LFE1:
13221         .section        .eh_frame,"aw",@progbits
13222 __FRAME_BEGIN__:
13223         .4byte  .LECIE1-.LSCIE1
13224 .LSCIE1:
13225         .4byte  0x0
13226         .byte   0x1
13227         .ascii "z\0"
13228         .byte   0x1
13229         .byte   0x78
13230         .byte   0x1a
13231         .byte   0x0
13232         .byte   0x4
13233         .4byte  1
13234         .p2align 1
13235 .LECIE1:
13236 .LSFDE1:
13237         .4byte  .LEFDE1-.LASFDE1
13238 .LASFDE1:
13239         .4byte  .LASFDE1-__FRAME_BEGIN__
13240         .4byte  .LFB1
13241         .4byte  .LFE1-.LFB1
13242         .byte   0x4
13243         .4byte  .LFE1-.LFB1
13244         .byte   0x4
13245         .4byte  .L1-.LFB1
13246 .LEFDE1:' > conftest.s
13247     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249   (eval $ac_try) 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; }
13253     then
13254           cat > conftest.lit <<EOF
13255  0000 10000000 00000000 017a0001 781a0004  .........z..x...
13256  0010 01000000 12000000 18000000 00000000  ................
13257  0020 08000000 04080000 0044               .........D      
13258 EOF
13259 cat > conftest.big <<EOF
13260  0000 00000010 00000000 017a0001 781a0004  .........z..x...
13261  0010 00000001 00000012 00000018 00000000  ................
13262  0020 00000008 04000000 0844               .........D      
13263 EOF
13264   # If the assembler didn't choke, and we can objdump,
13265   # and we got the correct data, then succeed.
13266   if test x$gcc_cv_objdump != x \
13267   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13268      | tail -3 > conftest.got \
13269   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13270     || cmp conftest.big conftest.got > /dev/null 2>&1; }
13271   then
13272     gcc_cv_as_eh_frame=yes
13273   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275   (eval $ac_try) 2>&5
13276   ac_status=$?
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); }; }; then
13279     gcc_cv_as_eh_frame=buggy
13280   else
13281     # Uh oh, what do we do now?
13282     gcc_cv_as_eh_frame=no
13283   fi
13284     else
13285       echo "configure: failed program was" >&5
13286       cat conftest.s >&5
13287     fi
13288     rm -f conftest.o conftest.s
13289   fi
13290 fi
13291 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13292 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13293
13294
13295 if test $gcc_cv_as_eh_frame = buggy; then
13296
13297 cat >>confdefs.h <<\_ACEOF
13298 #define USE_AS_TRADITIONAL_FORMAT 1
13299 _ACEOF
13300
13301 fi
13302
13303 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13304 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13305 if test "${gcc_cv_as_shf_merge+set}" = set; then
13306   echo $ECHO_N "(cached) $ECHO_C" >&6
13307 else
13308   gcc_cv_as_shf_merge=no
13309     if test $in_tree_gas = yes; then
13310     if test $in_tree_gas_is_elf = yes \
13311   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13312   then gcc_cv_as_shf_merge=yes
13313 fi
13314   elif test x$gcc_cv_as != x; then
13315     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13316     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318   (eval $ac_try) 2>&5
13319   ac_status=$?
13320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321   (exit $ac_status); }; }
13322     then
13323         gcc_cv_as_shf_merge=yes
13324     else
13325       echo "configure: failed program was" >&5
13326       cat conftest.s >&5
13327     fi
13328     rm -f conftest.o conftest.s
13329   fi
13330 fi
13331 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13332 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13333
13334 if test $gcc_cv_as_shf_merge = no; then
13335   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13336 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13337 if test "${gcc_cv_as_shf_merge+set}" = set; then
13338   echo $ECHO_N "(cached) $ECHO_C" >&6
13339 else
13340   gcc_cv_as_shf_merge=no
13341     if test $in_tree_gas = yes; then
13342     if test $in_tree_gas_is_elf = yes \
13343   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13344   then gcc_cv_as_shf_merge=yes
13345 fi
13346   elif test x$gcc_cv_as != x; then
13347     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13348     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350   (eval $ac_try) 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); }; }
13354     then
13355         gcc_cv_as_shf_merge=yes
13356     else
13357       echo "configure: failed program was" >&5
13358       cat conftest.s >&5
13359     fi
13360     rm -f conftest.o conftest.s
13361   fi
13362 fi
13363 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13364 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13365
13366 fi
13367
13368 cat >>confdefs.h <<_ACEOF
13369 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13370 _ACEOF
13371
13372
13373 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13374 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13375 if test "${gcc_cv_as_comdat_group+set}" = set; then
13376   echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378   gcc_cv_as_comdat_group=no
13379     if test $in_tree_gas = yes; then
13380     if test $in_tree_gas_is_elf = yes \
13381   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13382   then gcc_cv_as_comdat_group=yes
13383 fi
13384   elif test x$gcc_cv_as != x; then
13385     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13386     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388   (eval $ac_try) 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); }; }
13392     then
13393         gcc_cv_as_comdat_group=yes
13394     else
13395       echo "configure: failed program was" >&5
13396       cat conftest.s >&5
13397     fi
13398     rm -f conftest.o conftest.s
13399   fi
13400 fi
13401 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13402 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13403
13404 if test $gcc_cv_as_comdat_group = yes; then
13405   gcc_cv_as_comdat_group_percent=no
13406 else
13407  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13408 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13409 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13410   echo $ECHO_N "(cached) $ECHO_C" >&6
13411 else
13412   gcc_cv_as_comdat_group_percent=no
13413     if test $in_tree_gas = yes; then
13414     if test $in_tree_gas_is_elf = yes \
13415   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13416   then gcc_cv_as_comdat_group_percent=yes
13417 fi
13418   elif test x$gcc_cv_as != x; then
13419     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13420     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422   (eval $ac_try) 2>&5
13423   ac_status=$?
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); }; }
13426     then
13427         gcc_cv_as_comdat_group_percent=yes
13428     else
13429       echo "configure: failed program was" >&5
13430       cat conftest.s >&5
13431     fi
13432     rm -f conftest.o conftest.s
13433   fi
13434 fi
13435 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13436 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13437
13438 fi
13439
13440 cat >>confdefs.h <<_ACEOF
13441 #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`
13442 _ACEOF
13443
13444
13445 # Thread-local storage - the check is heavily parametrized.
13446 conftest_s=
13447 tls_first_major=
13448 tls_first_minor=
13449 tls_as_opt=
13450 case "$target" in
13451   alpha*-*-*)
13452     conftest_s='
13453         .section ".tdata","awT",@progbits
13454 foo:    .long   25
13455         .text
13456         ldq     $27,__tls_get_addr($29)         !literal!1
13457         lda     $16,foo($29)                    !tlsgd!1
13458         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
13459         ldq     $27,__tls_get_addr($29)         !literal!2
13460         lda     $16,foo($29)                    !tlsldm!2
13461         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
13462         ldq     $1,foo($29)                     !gotdtprel
13463         ldah    $2,foo($29)                     !dtprelhi
13464         lda     $3,foo($2)                      !dtprello
13465         lda     $4,foo($29)                     !dtprel
13466         ldq     $1,foo($29)                     !gottprel
13467         ldah    $2,foo($29)                     !tprelhi
13468         lda     $3,foo($2)                      !tprello
13469         lda     $4,foo($29)                     !tprel'
13470         tls_first_major=2
13471         tls_first_minor=13
13472         tls_as_opt=--fatal-warnings
13473         ;;
13474   i[34567]86-*-*)
13475     conftest_s='
13476         .section ".tdata","awT",@progbits
13477 foo:    .long   25
13478         .text
13479         movl    %gs:0, %eax
13480         leal    foo@TLSGD(,%ebx,1), %eax
13481         leal    foo@TLSLDM(%ebx), %eax
13482         leal    foo@DTPOFF(%eax), %edx
13483         movl    foo@GOTTPOFF(%ebx), %eax
13484         subl    foo@GOTTPOFF(%ebx), %eax
13485         addl    foo@GOTNTPOFF(%ebx), %eax
13486         movl    foo@INDNTPOFF, %eax
13487         movl    $foo@TPOFF, %eax
13488         subl    $foo@TPOFF, %eax
13489         leal    foo@NTPOFF(%ecx), %eax'
13490         tls_first_major=2
13491         tls_first_minor=14
13492         tls_as_opt=--fatal-warnings
13493         ;;
13494   x86_64-*-*)
13495     conftest_s='
13496         .section ".tdata","awT",@progbits
13497 foo:    .long   25
13498         .text
13499         movq    %fs:0, %rax
13500         leaq    foo@TLSGD(%rip), %rdi
13501         leaq    foo@TLSLD(%rip), %rdi
13502         leaq    foo@DTPOFF(%rax), %rdx
13503         movq    foo@GOTTPOFF(%rip), %rax
13504         movq    $foo@TPOFF, %rax'
13505         tls_first_major=2
13506         tls_first_minor=14
13507         tls_as_opt=--fatal-warnings
13508         ;;
13509   ia64-*-*)
13510     conftest_s='
13511         .section ".tdata","awT",@progbits
13512 foo:    data8   25
13513         .text
13514         addl    r16 = @ltoff(@dtpmod(foo#)), gp
13515         addl    r17 = @ltoff(@dtprel(foo#)), gp
13516         addl    r18 = @ltoff(@tprel(foo#)), gp
13517         addl    r19 = @dtprel(foo#), gp
13518         adds    r21 = @dtprel(foo#), r13
13519         movl    r23 = @dtprel(foo#)
13520         addl    r20 = @tprel(foo#), gp
13521         adds    r22 = @tprel(foo#), r13
13522         movl    r24 = @tprel(foo#)'
13523         tls_first_major=2
13524         tls_first_minor=13
13525         tls_as_opt=--fatal-warnings
13526         ;;
13527   powerpc-*-*)
13528     conftest_s='
13529         .section ".tdata","awT",@progbits
13530         .align 2
13531 ld0:    .space 4
13532 ld1:    .space 4
13533 x1:     .space 4
13534 x2:     .space 4
13535 x3:     .space 4
13536         .text
13537         addi 3,31,ld0@got@tlsgd
13538         bl __tls_get_addr
13539         addi 3,31,x1@got@tlsld
13540         bl __tls_get_addr
13541         addi 9,3,x1@dtprel
13542         addis 9,3,x2@dtprel@ha
13543         addi 9,9,x2@dtprel@l
13544         lwz 9,x3@got@tprel(31)
13545         add 9,9,x@tls
13546         addi 9,2,x1@tprel
13547         addis 9,2,x2@tprel@ha
13548         addi 9,9,x2@tprel@l'
13549         tls_first_major=2
13550         tls_first_minor=14
13551         tls_as_opt="-a32 --fatal-warnings"
13552         ;;
13553   powerpc64-*-*)
13554     conftest_s='
13555         .section ".tdata","awT",@progbits
13556         .align 3
13557 ld0:    .space 8
13558 ld1:    .space 8
13559 x1:     .space 8
13560 x2:     .space 8
13561 x3:     .space 8
13562         .text
13563         addi 3,2,ld0@got@tlsgd
13564         bl .__tls_get_addr
13565         nop
13566         addi 3,2,ld1@toc
13567         bl .__tls_get_addr
13568         nop
13569         addi 3,2,x1@got@tlsld
13570         bl .__tls_get_addr
13571         nop
13572         addi 9,3,x1@dtprel
13573         bl .__tls_get_addr
13574         nop
13575         addis 9,3,x2@dtprel@ha
13576         addi 9,9,x2@dtprel@l
13577         bl .__tls_get_addr
13578         nop
13579         ld 9,x3@got@dtprel(2)
13580         add 9,9,3
13581         bl .__tls_get_addr
13582         nop'
13583         tls_first_major=2
13584         tls_first_minor=14
13585         tls_as_opt="-a64 --fatal-warnings"
13586         ;;
13587   s390-*-*)
13588     conftest_s='
13589         .section ".tdata","awT",@progbits
13590 foo:    .long   25
13591         .text
13592         .long   foo@TLSGD
13593         .long   foo@TLSLDM
13594         .long   foo@DTPOFF
13595         .long   foo@NTPOFF
13596         .long   foo@GOTNTPOFF
13597         .long   foo@INDNTPOFF
13598         l       %r1,foo@GOTNTPOFF(%r12)
13599         l       %r1,0(%r1):tls_load:foo
13600         bas     %r14,0(%r1,%r13):tls_gdcall:foo
13601         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
13602         tls_first_major=2
13603         tls_first_minor=14
13604         tls_as_opt="-m31 --fatal-warnings"
13605         ;;
13606   s390x-*-*)
13607     conftest_s='
13608         .section ".tdata","awT",@progbits
13609 foo:    .long   25
13610         .text
13611         .quad   foo@TLSGD
13612         .quad   foo@TLSLDM
13613         .quad   foo@DTPOFF
13614         .quad   foo@NTPOFF
13615         .quad   foo@GOTNTPOFF
13616         lg      %r1,foo@GOTNTPOFF(%r12)
13617         larl    %r1,foo@INDNTPOFF
13618         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
13619         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13620         tls_first_major=2
13621         tls_first_minor=14
13622         tls_as_opt="-m64 -Aesame --fatal-warnings"
13623         ;;
13624   sh-*-* | sh[34]-*-*)
13625     conftest_s='
13626         .section ".tdata","awT",@progbits
13627 foo:    .long   25
13628         .text
13629         .long   foo@TLSGD
13630         .long   foo@TLSLDM
13631         .long   foo@DTPOFF
13632         .long   foo@GOTTPOFF
13633         .long   foo@TPOFF'
13634         tls_first_major=2
13635         tls_first_minor=13
13636         tls_as_opt=--fatal-warnings
13637         ;;
13638   sparc*-*-*)
13639     case "$target" in
13640       sparc*-sun-solaris2.*)
13641         on_solaris=yes
13642         ;;
13643       *)
13644         on_solaris=no
13645         ;;
13646     esac
13647     if test x$on_solaris = xyes && test x$gas_flag = xno; then
13648       conftest_s='
13649         .section ".tdata",#alloc,#write,#tls
13650 foo:    .long   25
13651         .text
13652         sethi   %tgd_hi22(foo), %o0
13653         add     %o0, %tgd_lo10(foo), %o1
13654         add     %l7, %o1, %o0, %tgd_add(foo)
13655         call    __tls_get_addr, %tgd_call(foo)
13656         sethi   %tldm_hi22(foo), %l1
13657         add     %l1, %tldm_lo10(foo), %l2
13658         add     %l7, %l2, %o0, %tldm_add(foo)
13659         call    __tls_get_addr, %tldm_call(foo)
13660         sethi   %tldo_hix22(foo), %l3
13661         xor     %l3, %tldo_lox10(foo), %l4
13662         add     %o0, %l4, %l5, %tldo_add(foo)
13663         sethi   %tie_hi22(foo), %o3
13664         add     %o3, %tie_lo10(foo), %o3
13665         ld      [%l7 + %o3], %o2, %tie_ld(foo)
13666         add     %g7, %o2, %o4, %tie_add(foo)
13667         sethi   %tle_hix22(foo), %l1
13668         xor     %l1, %tle_lox10(foo), %o5
13669         ld      [%g7 + %o5], %o1'
13670         tls_first_major=0
13671         tls_first_minor=0
13672     else
13673       conftest_s='
13674         .section ".tdata","awT",@progbits
13675 foo:    .long   25
13676         .text
13677         sethi   %tgd_hi22(foo), %o0
13678         add     %o0, %tgd_lo10(foo), %o1
13679         add     %l7, %o1, %o0, %tgd_add(foo)
13680         call    __tls_get_addr, %tgd_call(foo)
13681         sethi   %tldm_hi22(foo), %l1
13682         add     %l1, %tldm_lo10(foo), %l2
13683         add     %l7, %l2, %o0, %tldm_add(foo)
13684         call    __tls_get_addr, %tldm_call(foo)
13685         sethi   %tldo_hix22(foo), %l3
13686         xor     %l3, %tldo_lox10(foo), %l4
13687         add     %o0, %l4, %l5, %tldo_add(foo)
13688         sethi   %tie_hi22(foo), %o3
13689         add     %o3, %tie_lo10(foo), %o3
13690         ld      [%l7 + %o3], %o2, %tie_ld(foo)
13691         add     %g7, %o2, %o4, %tie_add(foo)
13692         sethi   %tle_hix22(foo), %l1
13693         xor     %l1, %tle_lox10(foo), %o5
13694         ld      [%g7 + %o5], %o1'
13695         tls_first_major=2
13696         tls_first_minor=14
13697         tls_as_opt="-32 --fatal-warnings"
13698       fi
13699         ;;
13700 esac
13701 if test -z "$tls_first_major"; then
13702   : # If we don't have a check, assume no support.
13703 else
13704   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13705 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13706 if test "${gcc_cv_as_tls+set}" = set; then
13707   echo $ECHO_N "(cached) $ECHO_C" >&6
13708 else
13709   gcc_cv_as_tls=no
13710     if test $in_tree_gas = yes; then
13711     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13712   then gcc_cv_as_tls=yes
13713 fi
13714   elif test x$gcc_cv_as != x; then
13715     echo "$conftest_s" > conftest.s
13716     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718   (eval $ac_try) 2>&5
13719   ac_status=$?
13720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); }; }
13722     then
13723         gcc_cv_as_tls=yes
13724     else
13725       echo "configure: failed program was" >&5
13726       cat conftest.s >&5
13727     fi
13728     rm -f conftest.o conftest.s
13729   fi
13730 fi
13731 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13732 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13733 if test $gcc_cv_as_tls = yes; then
13734
13735 cat >>confdefs.h <<\_ACEOF
13736 #define HAVE_AS_TLS 1
13737 _ACEOF
13738
13739 fi
13740 fi
13741
13742 # Target-specific assembler checks.
13743
13744 if test x"$demangler_in_ld" = xyes; then
13745   echo "$as_me:$LINENO: checking linker --demangle support" >&5
13746 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13747   gcc_cv_ld_demangle=no
13748   if test $in_tree_ld = yes; then
13749     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 \
13750       gcc_cv_ld_demangle=yes
13751     fi
13752   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
13753     # Check if the GNU linker supports --demangle option
13754     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
13755       gcc_cv_ld_demangle=yes
13756     fi
13757   fi
13758   if test x"$gcc_cv_ld_demangle" = xyes; then
13759
13760 cat >>confdefs.h <<\_ACEOF
13761 #define HAVE_LD_DEMANGLE 1
13762 _ACEOF
13763
13764   fi
13765   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13766 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
13767 fi
13768
13769 case "$target" in
13770   # All TARGET_ABI_OSF targets.
13771   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
13772     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13773 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13774 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
13775   echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777   gcc_cv_as_alpha_explicit_relocs=no
13778     if test $in_tree_gas = yes; then
13779     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13780   then gcc_cv_as_alpha_explicit_relocs=yes
13781 fi
13782   elif test x$gcc_cv_as != x; then
13783     echo '      .set nomacro
13784         .text
13785         extbl   $3, $2, $3      !lituse_bytoff!1
13786         ldq     $2, a($29)      !literal!1
13787         ldq     $4, b($29)      !literal!2
13788         ldq_u   $3, 0($2)       !lituse_base!1
13789         ldq     $27, f($29)     !literal!5
13790         jsr     $26, ($27), f   !lituse_jsr!5
13791         ldah    $29, 0($26)     !gpdisp!3
13792         lda     $0, c($29)      !gprel
13793         ldah    $1, d($29)      !gprelhigh
13794         lda     $1, d($1)       !gprellow
13795         lda     $29, 0($29)     !gpdisp!3' > conftest.s
13796     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798   (eval $ac_try) 2>&5
13799   ac_status=$?
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); }; }
13802     then
13803         gcc_cv_as_alpha_explicit_relocs=yes
13804     else
13805       echo "configure: failed program was" >&5
13806       cat conftest.s >&5
13807     fi
13808     rm -f conftest.o conftest.s
13809   fi
13810 fi
13811 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
13812 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
13813 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
13814
13815 cat >>confdefs.h <<\_ACEOF
13816 #define HAVE_AS_EXPLICIT_RELOCS 1
13817 _ACEOF
13818
13819 fi
13820     ;;
13821
13822   cris-*-*)
13823     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
13824 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
13825 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
13826   echo $ECHO_N "(cached) $ECHO_C" >&6
13827 else
13828   gcc_cv_as_cris_no_mul_bug=no
13829     if test $in_tree_gas = yes; then
13830     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13831   then gcc_cv_as_cris_no_mul_bug=yes
13832 fi
13833   elif test x$gcc_cv_as != x; then
13834     echo '.text' > conftest.s
13835     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
13836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837   (eval $ac_try) 2>&5
13838   ac_status=$?
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); }; }
13841     then
13842         gcc_cv_as_cris_no_mul_bug=yes
13843     else
13844       echo "configure: failed program was" >&5
13845       cat conftest.s >&5
13846     fi
13847     rm -f conftest.o conftest.s
13848   fi
13849 fi
13850 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
13851 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
13852 if test $gcc_cv_as_cris_no_mul_bug = yes; then
13853
13854 cat >>confdefs.h <<\_ACEOF
13855 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
13856 _ACEOF
13857
13858 fi
13859     ;;
13860
13861   sparc*-*-*)
13862     echo "$as_me:$LINENO: checking assembler for .register" >&5
13863 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
13864 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
13865   echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867   gcc_cv_as_sparc_register_op=no
13868   if test x$gcc_cv_as != x; then
13869     echo '.register %g2, #scratch' > 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_sparc_register_op=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_sparc_register_op" >&5
13886 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
13887 if test $gcc_cv_as_sparc_register_op = yes; then
13888
13889 cat >>confdefs.h <<\_ACEOF
13890 #define HAVE_AS_REGISTER_PSEUDO_OP 1
13891 _ACEOF
13892
13893 fi
13894
13895     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
13896 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
13897 if test "${gcc_cv_as_sparc_relax+set}" = set; then
13898   echo $ECHO_N "(cached) $ECHO_C" >&6
13899 else
13900   gcc_cv_as_sparc_relax=no
13901   if test x$gcc_cv_as != x; then
13902     echo '.text' > conftest.s
13903     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
13904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905   (eval $ac_try) 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; }
13909     then
13910         gcc_cv_as_sparc_relax=yes
13911     else
13912       echo "configure: failed program was" >&5
13913       cat conftest.s >&5
13914     fi
13915     rm -f conftest.o conftest.s
13916   fi
13917 fi
13918 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
13919 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
13920 if test $gcc_cv_as_sparc_relax = yes; then
13921
13922 cat >>confdefs.h <<\_ACEOF
13923 #define HAVE_AS_RELAX_OPTION 1
13924 _ACEOF
13925
13926 fi
13927
13928     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
13929 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
13930 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
13931   echo $ECHO_N "(cached) $ECHO_C" >&6
13932 else
13933   gcc_cv_as_sparc_ua_pcrel=no
13934   if test x$gcc_cv_as != x; then
13935     echo '.text
13936 foo:
13937         nop
13938 .data
13939 .align 4
13940 .byte 0
13941 .uaword %r_disp32(foo)' > conftest.s
13942     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
13943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944   (eval $ac_try) 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); }; }
13948     then
13949         if test x$gcc_cv_ld != x \
13950        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
13951          gcc_cv_as_sparc_ua_pcrel=yes
13952        fi
13953        rm -f conftest
13954     else
13955       echo "configure: failed program was" >&5
13956       cat conftest.s >&5
13957     fi
13958     rm -f conftest.o conftest.s
13959   fi
13960 fi
13961 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
13962 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
13963 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
13964
13965 cat >>confdefs.h <<\_ACEOF
13966 #define HAVE_AS_SPARC_UA_PCREL 1
13967 _ACEOF
13968
13969
13970       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
13971 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
13972 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
13973   echo $ECHO_N "(cached) $ECHO_C" >&6
13974 else
13975   gcc_cv_as_sparc_ua_pcrel_hidden=no
13976   if test x$gcc_cv_as != x; then
13977     echo '.data
13978 .align 4
13979 .byte 0x31
13980 .uaword %r_disp32(foo)
13981 .byte 0x32, 0x33, 0x34
13982 .global foo
13983 .hidden foo
13984 foo:
13985 .skip 4' > conftest.s
13986     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
13987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988   (eval $ac_try) 2>&5
13989   ac_status=$?
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); }; }
13992     then
13993         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
13994          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
13995          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
13996             | grep ' 31000000 07323334' > /dev/null 2>&1; then
13997             if $gcc_cv_objdump -R conftest 2> /dev/null \
13998                | grep 'DISP32' > /dev/null 2>&1; then
13999                 :
14000             else
14001                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14002             fi
14003          fi
14004          rm -f conftest
14005     else
14006       echo "configure: failed program was" >&5
14007       cat conftest.s >&5
14008     fi
14009     rm -f conftest.o conftest.s
14010   fi
14011 fi
14012 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14013 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14014 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14015
14016 cat >>confdefs.h <<\_ACEOF
14017 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14018 _ACEOF
14019
14020 fi
14021
14022 fi # unaligned pcrel relocs
14023
14024     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14025 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14026 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14027   echo $ECHO_N "(cached) $ECHO_C" >&6
14028 else
14029   gcc_cv_as_sparc_offsetable_lo10=no
14030   if test x$gcc_cv_as != x; then
14031     echo '.text
14032         or %g1, %lo(ab) + 12, %g1
14033         or %g1, %lo(ab + 12), %g1' > conftest.s
14034     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036   (eval $ac_try) 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; }
14040     then
14041         if test x$gcc_cv_objdump != x \
14042        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14043           | grep ' 82106000 82106000' > /dev/null 2>&1; then
14044          gcc_cv_as_offsetable_lo10=yes
14045        fi
14046     else
14047       echo "configure: failed program was" >&5
14048       cat conftest.s >&5
14049     fi
14050     rm -f conftest.o conftest.s
14051   fi
14052 fi
14053 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14054 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14055 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14056
14057 cat >>confdefs.h <<\_ACEOF
14058 #define HAVE_AS_OFFSETABLE_LO10 1
14059 _ACEOF
14060
14061 fi
14062     ;;
14063
14064   i[34567]86-*-* | x86_64-*-*)
14065     case $target_os in
14066       cygwin* | pe | mingw32*)
14067         # Used for DWARF 2 in PE
14068         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14069 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14070 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14071   echo $ECHO_N "(cached) $ECHO_C" >&6
14072 else
14073   gcc_cv_as_ix86_pe_secrel32=no
14074     if test $in_tree_gas = yes; then
14075     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14076   then gcc_cv_as_ix86_pe_secrel32=yes
14077 fi
14078   elif test x$gcc_cv_as != x; then
14079     echo '.text
14080 foo:    nop
14081 .data
14082         .secrel32 foo' > conftest.s
14083     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085   (eval $ac_try) 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); }; }
14089     then
14090         if test x$gcc_cv_ld != x \
14091            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14092              gcc_cv_as_ix86_pe_secrel32=yes
14093            fi
14094            rm -f conftest
14095     else
14096       echo "configure: failed program was" >&5
14097       cat conftest.s >&5
14098     fi
14099     rm -f conftest.o conftest.s
14100   fi
14101 fi
14102 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14103 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14104 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14105
14106 cat >>confdefs.h <<\_ACEOF
14107 #define HAVE_GAS_PE_SECREL32_RELOC 1
14108 _ACEOF
14109
14110 fi
14111         ;;
14112     esac
14113
14114     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14115 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14116 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14117   echo $ECHO_N "(cached) $ECHO_C" >&6
14118 else
14119   gcc_cv_as_ix86_filds_fists=no
14120     if test $in_tree_gas = yes; then
14121     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14122   then gcc_cv_as_ix86_filds_fists=yes
14123 fi
14124   elif test x$gcc_cv_as != x; then
14125     echo 'filds mem; fists mem' > conftest.s
14126     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128   (eval $ac_try) 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); }; }
14132     then
14133         gcc_cv_as_ix86_filds_fists=yes
14134     else
14135       echo "configure: failed program was" >&5
14136       cat conftest.s >&5
14137     fi
14138     rm -f conftest.o conftest.s
14139   fi
14140 fi
14141 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14142 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14143 if test $gcc_cv_as_ix86_filds_fists = yes; then
14144
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_GAS_FILDS_FISTS 1
14147 _ACEOF
14148
14149 fi
14150
14151     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14152 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14153 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14154   echo $ECHO_N "(cached) $ECHO_C" >&6
14155 else
14156   gcc_cv_as_ix86_cmov_sun_syntax=no
14157   if test x$gcc_cv_as != x; then
14158     echo 'cmovl.l %edx, %eax' > conftest.s
14159     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161   (eval $ac_try) 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); }; }
14165     then
14166         gcc_cv_as_ix86_cmov_sun_syntax=yes
14167     else
14168       echo "configure: failed program was" >&5
14169       cat conftest.s >&5
14170     fi
14171     rm -f conftest.o conftest.s
14172   fi
14173 fi
14174 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14175 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14176 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14177
14178 cat >>confdefs.h <<\_ACEOF
14179 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14180 _ACEOF
14181
14182 fi
14183
14184     # This one is used unconditionally by i386.[ch]; it is to be defined
14185     # to 1 if the feature is present, 0 otherwise.
14186     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14187 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14188 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14189   echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191   gcc_cv_as_ix86_gotoff_in_data=no
14192     if test $in_tree_gas = yes; then
14193     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14194   then gcc_cv_as_ix86_gotoff_in_data=yes
14195 fi
14196   elif test x$gcc_cv_as != x; then
14197     echo '      .text
14198 .L0:
14199         nop
14200         .data
14201         .long .L0@GOTOFF' > conftest.s
14202     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204   (eval $ac_try) 2>&5
14205   ac_status=$?
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); }; }
14208     then
14209         gcc_cv_as_ix86_gotoff_in_data=yes
14210     else
14211       echo "configure: failed program was" >&5
14212       cat conftest.s >&5
14213     fi
14214     rm -f conftest.o conftest.s
14215   fi
14216 fi
14217 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14218 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14219
14220
14221 cat >>confdefs.h <<_ACEOF
14222 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14223 _ACEOF
14224
14225     ;;
14226
14227   ia64*-*-*)
14228     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14229 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14230 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14231   echo $ECHO_N "(cached) $ECHO_C" >&6
14232 else
14233   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14234     if test $in_tree_gas = yes; then
14235     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14236   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14237 fi
14238   elif test x$gcc_cv_as != x; then
14239     echo '      .text
14240         addl r15 = @ltoffx(x#), gp
14241         ;;
14242         ld8.mov r16 = [r15], x#' > conftest.s
14243     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245   (eval $ac_try) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }; }
14249     then
14250         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14251     else
14252       echo "configure: failed program was" >&5
14253       cat conftest.s >&5
14254     fi
14255     rm -f conftest.o conftest.s
14256   fi
14257 fi
14258 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14259 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14260 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14261
14262 cat >>confdefs.h <<\_ACEOF
14263 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14264 _ACEOF
14265
14266 fi
14267
14268     ;;
14269
14270   powerpc*-*-*)
14271     case $target in
14272       *-*-aix*) conftest_s='    .csect .text[PR]
14273         mfcr 3,128';;
14274       *-*-darwin*) conftest_s=' .text
14275         mfcr r3,128';;
14276       *)       conftest_s='     .text
14277         mfcr 3,128';;
14278     esac
14279
14280     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14281 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14282 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14283   echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285   gcc_cv_as_powerpc_mfcrf=no
14286     if test $in_tree_gas = yes; then
14287     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14288   then gcc_cv_as_powerpc_mfcrf=yes
14289 fi
14290   elif test x$gcc_cv_as != x; then
14291     echo "$conftest_s" > conftest.s
14292     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294   (eval $ac_try) 2>&5
14295   ac_status=$?
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); }; }
14298     then
14299         gcc_cv_as_powerpc_mfcrf=yes
14300     else
14301       echo "configure: failed program was" >&5
14302       cat conftest.s >&5
14303     fi
14304     rm -f conftest.o conftest.s
14305   fi
14306 fi
14307 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14308 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14309 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14310
14311 cat >>confdefs.h <<\_ACEOF
14312 #define HAVE_AS_MFCRF 1
14313 _ACEOF
14314
14315 fi
14316     ;;
14317
14318   mips*-*-*)
14319     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14320 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14321 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14322   echo $ECHO_N "(cached) $ECHO_C" >&6
14323 else
14324   gcc_cv_as_mips_explicit_relocs=no
14325     if test $in_tree_gas = yes; then
14326     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14327   then gcc_cv_as_mips_explicit_relocs=yes
14328 fi
14329   elif test x$gcc_cv_as != x; then
14330     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
14331     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333   (eval $ac_try) 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }; }
14337     then
14338         gcc_cv_as_mips_explicit_relocs=yes
14339     else
14340       echo "configure: failed program was" >&5
14341       cat conftest.s >&5
14342     fi
14343     rm -f conftest.o conftest.s
14344   fi
14345 fi
14346 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14347 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14348 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14349   if test x$target_cpu_default = x
14350        then target_cpu_default=MASK_EXPLICIT_RELOCS
14351        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14352        fi
14353 fi
14354
14355     if test x$gas_flag = xyes \
14356        || test x"$host" != x"$build" \
14357        || test ! -x "$gcc_cv_as" \
14358        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14359       :
14360     else
14361       echo "*** This configuration requires the GNU assembler" >&2
14362       exit 1
14363     fi
14364     ;;
14365 esac
14366 # ??? Not all targets support dwarf2 debug_line, even within a version
14367 # of gas.  Moreover, we need to emit a valid instruction to trigger any
14368 # info to the output file.  So, as supported targets are added to gas 2.11,
14369 # add some instruction here to (also) show we expect this might work.
14370 # ??? Once 2.11 is released, probably need to add first known working
14371 # version to the per-target configury.
14372 case "$target" in
14373   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14374   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14375   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14376     insn="nop"
14377     ;;
14378   ia64*-*-* | s390*-*-*)
14379     insn="nop 0"
14380     ;;
14381   mmix-*-*)
14382     insn="swym 0"
14383     ;;
14384 esac
14385 if test x"$insn" != x; then
14386  conftest_s="\
14387         .file 1 \"conftest.s\"
14388         .loc 1 3 0
14389         $insn"
14390  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14391 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14392 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14393   echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395   gcc_cv_as_dwarf2_debug_line=no
14396     if test $in_tree_gas = yes; then
14397     if test $in_tree_gas_is_elf = yes \
14398   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14399   then gcc_cv_as_dwarf2_debug_line=yes
14400 fi
14401   elif test x$gcc_cv_as != x; then
14402     echo "$conftest_s" > conftest.s
14403     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405   (eval $ac_try) 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; }
14409     then
14410         # ??? This fails with non-gnu grep.  Maybe use objdump?
14411    if grep debug_line conftest.o > /dev/null 2>&1; then
14412      gcc_cv_as_dwarf2_debug_line=yes
14413    fi
14414     else
14415       echo "configure: failed program was" >&5
14416       cat conftest.s >&5
14417     fi
14418     rm -f conftest.o conftest.s
14419   fi
14420 fi
14421 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14422 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14423
14424
14425 # The .debug_line file table must be in the exact order that
14426 # we specified the files, since these indices are also used
14427 # by DW_AT_decl_file.  Approximate this test by testing if
14428 # the assembler bitches if the same index is assigned twice.
14429  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14430 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14431 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14432   echo $ECHO_N "(cached) $ECHO_C" >&6
14433 else
14434   gcc_cv_as_dwarf2_file_buggy=no
14435   if test x$gcc_cv_as != x; then
14436     echo '      .file 1 "foo.s"
14437         .file 1 "bar.s"' > conftest.s
14438     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440   (eval $ac_try) 2>&5
14441   ac_status=$?
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); }; }
14444     then
14445         gcc_cv_as_dwarf2_file_buggy=yes
14446     else
14447       echo "configure: failed program was" >&5
14448       cat conftest.s >&5
14449     fi
14450     rm -f conftest.o conftest.s
14451   fi
14452 fi
14453 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14454 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14455
14456
14457  if test $gcc_cv_as_dwarf2_debug_line = yes \
14458  && test $gcc_cv_as_dwarf2_file_buggy = no; then
14459
14460 cat >>confdefs.h <<\_ACEOF
14461 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14462 _ACEOF
14463
14464  fi
14465
14466  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14467 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14468 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14469   echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471   gcc_cv_as_gdwarf2_flag=no
14472     if test $in_tree_gas = yes; then
14473     if test $in_tree_gas_is_elf = yes \
14474   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14475   then gcc_cv_as_gdwarf2_flag=yes
14476 fi
14477   elif test x$gcc_cv_as != x; then
14478     echo "$insn" > conftest.s
14479     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481   (eval $ac_try) 2>&5
14482   ac_status=$?
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); }; }
14485     then
14486         gcc_cv_as_gdwarf2_flag=yes
14487     else
14488       echo "configure: failed program was" >&5
14489       cat conftest.s >&5
14490     fi
14491     rm -f conftest.o conftest.s
14492   fi
14493 fi
14494 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14495 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14496 if test $gcc_cv_as_gdwarf2_flag = yes; then
14497
14498 cat >>confdefs.h <<\_ACEOF
14499 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14500 _ACEOF
14501
14502 fi
14503
14504  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14505 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14506 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14507   echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509   gcc_cv_as_gstabs_flag=no
14510     if test $in_tree_gas = yes; then
14511     if test $in_tree_gas_is_elf = yes \
14512   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14513   then gcc_cv_as_gstabs_flag=yes
14514 fi
14515   elif test x$gcc_cv_as != x; then
14516     echo "$insn" > conftest.s
14517     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519   (eval $ac_try) 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; }
14523     then
14524         # The native Solaris 9/Intel assembler doesn't understand --gstabs
14525    # and warns about it, but still exits successfully.  So check for
14526    # this.
14527    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529   (eval $ac_try) 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; }
14533    then :
14534    else gcc_cv_as_gstabs_flag=yes
14535    fi
14536     else
14537       echo "configure: failed program was" >&5
14538       cat conftest.s >&5
14539     fi
14540     rm -f conftest.o conftest.s
14541   fi
14542 fi
14543 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14544 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14545 if test $gcc_cv_as_gstabs_flag = yes; then
14546
14547 cat >>confdefs.h <<\_ACEOF
14548 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14549 _ACEOF
14550
14551 fi
14552 fi
14553
14554 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14555 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14556 gcc_cv_ld_ro_rw_mix=unknown
14557 if test $in_tree_ld = yes ; then
14558   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 \
14559      && test $in_tree_ld_is_elf = yes; then
14560     gcc_cv_ld_ro_rw_mix=read-write
14561   fi
14562 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14563   echo '.section myfoosect, "a"' > conftest1.s
14564   echo '.section myfoosect, "aw"' > conftest2.s
14565   echo '.byte 1' >> conftest2.s
14566   echo '.section myfoosect, "a"' > conftest3.s
14567   echo '.byte 0' >> conftest3.s
14568   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14569      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14570      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14571      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14572         conftest2.o conftest3.o > /dev/null 2>&1; then
14573     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14574                          | sed -e '/myfoosect/!d' -e N`
14575     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14576       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14577         gcc_cv_ld_ro_rw_mix=read-only
14578       else
14579         gcc_cv_ld_ro_rw_mix=read-write
14580       fi
14581     fi
14582   fi
14583   rm -f conftest.* conftest[123].*
14584 fi
14585 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14586
14587 cat >>confdefs.h <<\_ACEOF
14588 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14589 _ACEOF
14590
14591 fi
14592 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14593 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14594
14595 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14596 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14597 gcc_cv_ld_eh_frame_hdr=no
14598 if test $in_tree_ld = yes ; then
14599   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 \
14600      && test $in_tree_ld_is_elf = yes; then
14601     gcc_cv_ld_eh_frame_hdr=yes
14602   fi
14603 elif test x$gcc_cv_ld != x; then
14604         # Check if linker supports --eh-frame-hdr option
14605         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14606                 gcc_cv_ld_eh_frame_hdr=yes
14607         fi
14608 fi
14609 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14610
14611 cat >>confdefs.h <<\_ACEOF
14612 #define HAVE_LD_EH_FRAME_HDR 1
14613 _ACEOF
14614
14615 fi
14616 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14617 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14618
14619 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14620 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14621 gcc_cv_ld_pie=no
14622 if test $in_tree_ld = yes ; then
14623   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 \
14624      && test $in_tree_ld_is_elf = yes; then
14625     gcc_cv_ld_pie=yes
14626   fi
14627 elif test x$gcc_cv_ld != x; then
14628         # Check if linker supports -pie option
14629         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14630                 gcc_cv_ld_pie=yes
14631         fi
14632 fi
14633 if test x"$gcc_cv_ld_pie" = xyes; then
14634
14635 cat >>confdefs.h <<\_ACEOF
14636 #define HAVE_LD_PIE 1
14637 _ACEOF
14638
14639 fi
14640 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14641 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14642
14643 # --------
14644 # UNSORTED
14645 # --------
14646
14647 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14648 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14649 if test "${gcc_cv_ld_as_needed+set}" = set; then
14650   echo $ECHO_N "(cached) $ECHO_C" >&6
14651 else
14652   gcc_cv_ld_as_needed=no
14653 if test $in_tree_ld = yes ; then
14654   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 \
14655      && test $in_tree_ld_is_elf = yes; then
14656     gcc_cv_ld_as_needed=yes
14657   fi
14658 elif test x$gcc_cv_ld != x; then
14659         # Check if linker supports --as-needed and --no-as-needed options
14660         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14661                 gcc_cv_ld_as_needed=yes
14662         fi
14663 fi
14664
14665 fi
14666 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14667 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14668 if test x"$gcc_cv_ld_as_needed" = xyes; then
14669
14670 cat >>confdefs.h <<\_ACEOF
14671 #define HAVE_LD_AS_NEEDED 1
14672 _ACEOF
14673
14674 fi
14675
14676 case "$target" in
14677   powerpc64*-*-linux*)
14678     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14679 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14680 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14681   echo $ECHO_N "(cached) $ECHO_C" >&6
14682 else
14683   gcc_cv_ld_no_dot_syms=no
14684     if test $in_tree_ld = yes ; then
14685       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
14686         gcc_cv_ld_no_dot_syms=yes
14687       fi
14688     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14689       cat > conftest1.s <<EOF
14690         .text
14691         bl .foo
14692 EOF
14693       cat > conftest2.s <<EOF
14694         .section ".opd","aw"
14695         .align 3
14696         .globl foo
14697         .type foo,@function
14698 foo:
14699         .quad .LEfoo,.TOC.@tocbase,0
14700         .text
14701 .LEfoo:
14702         blr
14703         .size foo,.-.LEfoo
14704 EOF
14705       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
14706          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
14707          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
14708         gcc_cv_ld_no_dot_syms=yes
14709       fi
14710       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14711     fi
14712
14713 fi
14714 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14715 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14716     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
14717
14718 cat >>confdefs.h <<\_ACEOF
14719 #define HAVE_LD_NO_DOT_SYMS 1
14720 _ACEOF
14721
14722     fi
14723     ;;
14724 esac
14725
14726 if test x$with_sysroot = x && test x$host = x$target \
14727    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
14728
14729 cat >>confdefs.h <<_ACEOF
14730 #define PREFIX_INCLUDE_DIR "$prefix/include"
14731 _ACEOF
14732
14733 fi
14734
14735 # Find out what GC implementation we want, or may, use.
14736
14737 # Check whether --with-gc or --without-gc was given.
14738 if test "${with_gc+set}" = set; then
14739   withval="$with_gc"
14740   case "$withval" in
14741   page | zone)
14742     GGC=ggc-$withval
14743     ;;
14744   *)
14745     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
14746 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
14747    { (exit 1); exit 1; }; }
14748     ;;
14749 esac
14750 else
14751   GGC=ggc-page
14752 fi;
14753
14754 echo "Using $GGC for garbage collection."
14755
14756 # Use the system's zlib library.
14757 zlibdir=-L../zlib
14758 zlibinc="-I\$(srcdir)/../zlib"
14759
14760 # Check whether --with-system-zlib or --without-system-zlib was given.
14761 if test "${with_system_zlib+set}" = set; then
14762   withval="$with_system_zlib"
14763   zlibdir=
14764 zlibinc=
14765
14766 fi;
14767
14768
14769
14770
14771 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14772 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14773     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14774 if test "${enable_maintainer_mode+set}" = set; then
14775   enableval="$enable_maintainer_mode"
14776   maintainer_mode=$enableval
14777 else
14778   maintainer_mode=no
14779 fi;
14780
14781 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
14782 echo "${ECHO_T}$maintainer_mode" >&6
14783
14784 if test "$maintainer_mode" = "yes"; then
14785   MAINT=''
14786 else
14787   MAINT='#'
14788 fi
14789
14790 # --------------
14791 # Language hooks
14792 # --------------
14793
14794 # Make empty files to contain the specs and options for each language.
14795 # Then add #include lines to for a compiler that has specs and/or options.
14796
14797 lang_opt_files=
14798 lang_specs_files=
14799 lang_tree_files=
14800 for subdir in . $subdirs
14801 do
14802         if test -f $srcdir/$subdir/lang.opt; then
14803             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
14804         fi
14805         if test -f $srcdir/$subdir/lang-specs.h; then
14806             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
14807         fi
14808         if test -f $srcdir/$subdir/$subdir-tree.def; then
14809             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
14810         fi
14811 done
14812
14813 # These (without "all_") are set in each config-lang.in.
14814 # `language' must be a single word so is spelled singularly.
14815 all_languages=
14816 all_boot_languages=
14817 all_compilers=
14818 all_stagestuff=
14819 all_outputs='Makefile gccbug mklibgcc mkheaders libada-mk'
14820 # List of language makefile fragments.
14821 all_lang_makefrags=
14822 # List of language subdirectory makefiles.  Deprecated.
14823 all_lang_makefiles=
14824 # Files for gengtype
14825 all_gtfiles="$target_gtfiles"
14826 # Files for gengtype with language
14827 all_gtfiles_files_langs=
14828 all_gtfiles_files_files=
14829
14830 # Add the language fragments.
14831 # Languages are added via two mechanisms.  Some information must be
14832 # recorded in makefile variables, these are defined in config-lang.in.
14833 # We accumulate them and plug them into the main Makefile.
14834 # The other mechanism is a set of hooks for each of the main targets
14835 # like `clean', `install', etc.
14836
14837 language_hooks="Make-hooks"
14838
14839 for s in $subdirs
14840 do
14841                 language=
14842                 boot_language=
14843                 compilers=
14844                 stagestuff=
14845                 outputs=
14846                 gtfiles=
14847                 . ${srcdir}/$s/config-lang.in
14848                 if test "x$language" = x
14849                 then
14850                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
14851                         exit 1
14852                 fi
14853                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
14854                 if test -f ${srcdir}/$s/Makefile.in
14855                 then all_lang_makefiles="$s/Makefile"
14856                 fi
14857                 all_languages="$all_languages $language"
14858                 if test "x$boot_language" = xyes
14859                 then
14860                         all_boot_languages="$all_boot_languages $language"
14861                 fi
14862                 all_compilers="$all_compilers $compilers"
14863                 all_stagestuff="$all_stagestuff $stagestuff"
14864                 all_outputs="$all_outputs $outputs"
14865                 all_gtfiles="$all_gtfiles $gtfiles"
14866                 for f in $gtfiles
14867                 do
14868                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
14869                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
14870                 done
14871 done
14872
14873 # Pick up gtfiles for c
14874 gtfiles=
14875 s="c"
14876 . ${srcdir}/c-config-lang.in
14877 all_gtfiles="$all_gtfiles $gtfiles"
14878 for f in $gtfiles
14879 do
14880         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
14881         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
14882 done
14883
14884 check_languages=
14885 for language in $all_languages
14886 do
14887                 check_languages="$check_languages check-$language"
14888 done
14889
14890 # We link each language in with a set of hooks, reached indirectly via
14891 # lang.${target}.
14892
14893 rm -f Make-hooks
14894 touch Make-hooks
14895 target_list="all.build all.cross start.encap rest.encap tags \
14896         install-normal install-common install-man \
14897         uninstall info man srcextra srcman srcinfo \
14898         mostlyclean clean distclean maintainer-clean \
14899         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
14900 for t in $target_list
14901 do
14902         x=
14903         for lang in $all_languages
14904         do
14905                         x="$x $lang.$t"
14906         done
14907         echo "lang.$t: $x" >> Make-hooks
14908 done
14909
14910 # --------
14911 # UNSORTED
14912 # --------
14913
14914 # Create .gdbinit.
14915
14916 echo "dir ." > .gdbinit
14917 echo "dir ${srcdir}" >> .gdbinit
14918 if test x$gdb_needs_out_file_path = xyes
14919 then
14920         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
14921 fi
14922 if test "x$subdirs" != x; then
14923         for s in $subdirs
14924         do
14925                 echo "dir ${srcdir}/$s" >> .gdbinit
14926         done
14927 fi
14928 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
14929
14930 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
14931 # absolute path for gcc_tooldir based on inserting the number of up-directory
14932 # movements required to get from $(exec_prefix) to $(prefix) into the basic
14933 # $(libsubdir)/@(unlibsubdir) based path.
14934 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
14935 # make and thus we'd get different behavior depending on where we built the
14936 # sources.
14937 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
14938     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
14939 else
14940 # An explanation of the sed strings:
14941 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
14942 #  -e 's|/$||'            match a trailing forward slash and eliminates it
14943 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
14944 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
14945 #
14946 # (*) Note this pattern overwrites the first character of the string
14947 # with a forward slash if one is not already present.  This is not a
14948 # problem because the exact names of the sub-directories concerned is
14949 # unimportant, just the number of them matters.
14950 #
14951 # The practical upshot of these patterns is like this:
14952 #
14953 #  prefix     exec_prefix        result
14954 #  ------     -----------        ------
14955 #   /foo        /foo/bar          ../
14956 #   /foo/       /foo/bar          ../
14957 #   /foo        /foo/bar/         ../
14958 #   /foo/       /foo/bar/         ../
14959 #   /foo        /foo/bar/ugg      ../../
14960 #
14961     dollar='$$'
14962     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
14963 fi
14964
14965
14966
14967 # Find a directory in which to install a shared libgcc.
14968
14969 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
14970 if test "${enable_version_specific_runtime_libs+set}" = set; then
14971   enableval="$enable_version_specific_runtime_libs"
14972
14973 fi;
14974
14975
14976 # Check whether --with-slibdir or --without-slibdir was given.
14977 if test "${with_slibdir+set}" = set; then
14978   withval="$with_slibdir"
14979   slibdir="$with_slibdir"
14980 else
14981   if test "${enable_version_specific_runtime_libs+set}" = set; then
14982   slibdir='$(libsubdir)'
14983 elif test "$host" != "$target"; then
14984   slibdir='$(build_tooldir)/lib'
14985 else
14986   slibdir='$(libdir)'
14987 fi
14988 fi;
14989
14990
14991 objdir=`${PWDCMD-pwd}`
14992
14993
14994 # Substitute configuration variables
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062 if test x"$SET_GCC_LIB_PATH_CMD" != x; then
15063   # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15064   #
15065   #     eval "set_gcc_lib_path=XXX=path; export XXX;"
15066   #
15067   eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15068   # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15069   set_gcc_lib_path="export $set_gcc_lib_path"
15070 else
15071   set_gcc_lib_path=
15072 fi
15073
15074
15075
15076 # Echo link setup.
15077 if test x${build} = x${host} ; then
15078   if test x${host} = x${target} ; then
15079     echo "Links are now set up to build a native compiler for ${target}." 1>&2
15080   else
15081     echo "Links are now set up to build a cross-compiler" 1>&2
15082     echo " from ${host} to ${target}." 1>&2
15083   fi
15084 else
15085   if test x${host} = x${target} ; then
15086     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15087     echo " for ${target}." 1>&2
15088   else
15089     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15090     echo " from ${host} to ${target}." 1>&2
15091   fi
15092 fi
15093
15094
15095
15096
15097 # Configure the subdirectories
15098 # AC_CONFIG_SUBDIRS($subdirs)
15099
15100 # Create the Makefile
15101 # and configure language subdirectories
15102           ac_config_files="$ac_config_files $all_outputs"
15103
15104
15105           ac_config_commands="$ac_config_commands default"
15106
15107 cat >confcache <<\_ACEOF
15108 # This file is a shell script that caches the results of configure
15109 # tests run on this system so they can be shared between configure
15110 # scripts and configure runs, see configure's option --config-cache.
15111 # It is not useful on other systems.  If it contains results you don't
15112 # want to keep, you may remove or edit it.
15113 #
15114 # config.status only pays attention to the cache file if you give it
15115 # the --recheck option to rerun configure.
15116 #
15117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15119 # following values.
15120
15121 _ACEOF
15122
15123 # The following way of writing the cache mishandles newlines in values,
15124 # but we know of no workaround that is simple, portable, and efficient.
15125 # So, don't put newlines in cache variables' values.
15126 # Ultrix sh set writes to stderr and can't be redirected directly,
15127 # and sets the high bit in the cache file unless we assign to the vars.
15128 {
15129   (set) 2>&1 |
15130     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15131     *ac_space=\ *)
15132       # `set' does not quote correctly, so add quotes (double-quote
15133       # substitution turns \\\\ into \\, and sed turns \\ into \).
15134       sed -n \
15135         "s/'/'\\\\''/g;
15136           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15137       ;;
15138     *)
15139       # `set' quotes correctly as required by POSIX, so do not add quotes.
15140       sed -n \
15141         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15142       ;;
15143     esac;
15144 } |
15145   sed '
15146      t clear
15147      : clear
15148      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15149      t end
15150      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15151      : end' >>confcache
15152 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15153   if test -w $cache_file; then
15154     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15155     cat confcache >$cache_file
15156   else
15157     echo "not updating unwritable cache $cache_file"
15158   fi
15159 fi
15160 rm -f confcache
15161
15162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15163 # Let make expand exec_prefix.
15164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15165
15166 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15167 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15168 # trailing colons and then remove the whole line if VPATH becomes empty
15169 # (actually we leave an empty line to preserve line numbers).
15170 if test "x$srcdir" = x.; then
15171   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15172 s/:*\$(srcdir):*/:/;
15173 s/:*\${srcdir}:*/:/;
15174 s/:*@srcdir@:*/:/;
15175 s/^\([^=]*=[     ]*\):*/\1/;
15176 s/:*$//;
15177 s/^[^=]*=[       ]*$//;
15178 }'
15179 fi
15180
15181 DEFS=-DHAVE_CONFIG_H
15182
15183 ac_libobjs=
15184 ac_ltlibobjs=
15185 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15186   # 1. Remove the extension, and $U if already installed.
15187   ac_i=`echo "$ac_i" |
15188          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15189   # 2. Add them.
15190   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15191   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15192 done
15193 LIBOBJS=$ac_libobjs
15194
15195 LTLIBOBJS=$ac_ltlibobjs
15196
15197
15198
15199 : ${CONFIG_STATUS=./config.status}
15200 ac_clean_files_save=$ac_clean_files
15201 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15202 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15203 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15204 cat >$CONFIG_STATUS <<_ACEOF
15205 #! $SHELL
15206 # Generated by $as_me.
15207 # Run this file to recreate the current configuration.
15208 # Compiler output produced by configure, useful for debugging
15209 # configure, is in config.log if it exists.
15210
15211 debug=false
15212 ac_cs_recheck=false
15213 ac_cs_silent=false
15214 SHELL=\${CONFIG_SHELL-$SHELL}
15215 _ACEOF
15216
15217 cat >>$CONFIG_STATUS <<\_ACEOF
15218 ## --------------------- ##
15219 ## M4sh Initialization.  ##
15220 ## --------------------- ##
15221
15222 # Be Bourne compatible
15223 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15224   emulate sh
15225   NULLCMD=:
15226   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15227   # is contrary to our usage.  Disable this feature.
15228   alias -g '${1+"$@"}'='"$@"'
15229 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15230   set -o posix
15231 fi
15232 DUALCASE=1; export DUALCASE # for MKS sh
15233
15234 # Support unset when possible.
15235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15236   as_unset=unset
15237 else
15238   as_unset=false
15239 fi
15240
15241
15242 # Work around bugs in pre-3.0 UWIN ksh.
15243 $as_unset ENV MAIL MAILPATH
15244 PS1='$ '
15245 PS2='> '
15246 PS4='+ '
15247
15248 # NLS nuisances.
15249 for as_var in \
15250   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15251   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15252   LC_TELEPHONE LC_TIME
15253 do
15254   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15255     eval $as_var=C; export $as_var
15256   else
15257     $as_unset $as_var
15258   fi
15259 done
15260
15261 # Required to use basename.
15262 if expr a : '\(a\)' >/dev/null 2>&1; then
15263   as_expr=expr
15264 else
15265   as_expr=false
15266 fi
15267
15268 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15269   as_basename=basename
15270 else
15271   as_basename=false
15272 fi
15273
15274
15275 # Name of the executable.
15276 as_me=`$as_basename "$0" ||
15277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15278          X"$0" : 'X\(//\)$' \| \
15279          X"$0" : 'X\(/\)$' \| \
15280          .     : '\(.\)' 2>/dev/null ||
15281 echo X/"$0" |
15282     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15283           /^X\/\(\/\/\)$/{ s//\1/; q; }
15284           /^X\/\(\/\).*/{ s//\1/; q; }
15285           s/.*/./; q'`
15286
15287
15288 # PATH needs CR, and LINENO needs CR and PATH.
15289 # Avoid depending upon Character Ranges.
15290 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15291 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15292 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15293 as_cr_digits='0123456789'
15294 as_cr_alnum=$as_cr_Letters$as_cr_digits
15295
15296 # The user is always right.
15297 if test "${PATH_SEPARATOR+set}" != set; then
15298   echo "#! /bin/sh" >conf$$.sh
15299   echo  "exit 0"   >>conf$$.sh
15300   chmod +x conf$$.sh
15301   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15302     PATH_SEPARATOR=';'
15303   else
15304     PATH_SEPARATOR=:
15305   fi
15306   rm -f conf$$.sh
15307 fi
15308
15309
15310   as_lineno_1=$LINENO
15311   as_lineno_2=$LINENO
15312   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15313   test "x$as_lineno_1" != "x$as_lineno_2" &&
15314   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15315   # Find who we are.  Look in the path if we contain no path at all
15316   # relative or not.
15317   case $0 in
15318     *[\\/]* ) as_myself=$0 ;;
15319     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15320 for as_dir in $PATH
15321 do
15322   IFS=$as_save_IFS
15323   test -z "$as_dir" && as_dir=.
15324   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15325 done
15326
15327        ;;
15328   esac
15329   # We did not find ourselves, most probably we were run as `sh COMMAND'
15330   # in which case we are not to be found in the path.
15331   if test "x$as_myself" = x; then
15332     as_myself=$0
15333   fi
15334   if test ! -f "$as_myself"; then
15335     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15336 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15337    { (exit 1); exit 1; }; }
15338   fi
15339   case $CONFIG_SHELL in
15340   '')
15341     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15342 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15343 do
15344   IFS=$as_save_IFS
15345   test -z "$as_dir" && as_dir=.
15346   for as_base in sh bash ksh sh5; do
15347          case $as_dir in
15348          /*)
15349            if ("$as_dir/$as_base" -c '
15350   as_lineno_1=$LINENO
15351   as_lineno_2=$LINENO
15352   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15353   test "x$as_lineno_1" != "x$as_lineno_2" &&
15354   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15355              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15356              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15357              CONFIG_SHELL=$as_dir/$as_base
15358              export CONFIG_SHELL
15359              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15360            fi;;
15361          esac
15362        done
15363 done
15364 ;;
15365   esac
15366
15367   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15368   # uniformly replaced by the line number.  The first 'sed' inserts a
15369   # line-number line before each line; the second 'sed' does the real
15370   # work.  The second script uses 'N' to pair each line-number line
15371   # with the numbered line, and appends trailing '-' during
15372   # substitution so that $LINENO is not a special case at line end.
15373   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15374   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15375   sed '=' <$as_myself |
15376     sed '
15377       N
15378       s,$,-,
15379       : loop
15380       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15381       t loop
15382       s,-$,,
15383       s,^['$as_cr_digits']*\n,,
15384     ' >$as_me.lineno &&
15385   chmod +x $as_me.lineno ||
15386     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15387 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15388    { (exit 1); exit 1; }; }
15389
15390   # Don't try to exec as it changes $[0], causing all sort of problems
15391   # (the dirname of $[0] is not the place where we might find the
15392   # original and so on.  Autoconf is especially sensible to this).
15393   . ./$as_me.lineno
15394   # Exit status is that of the last command.
15395   exit
15396 }
15397
15398
15399 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15400   *c*,-n*) ECHO_N= ECHO_C='
15401 ' ECHO_T='      ' ;;
15402   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15403   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15404 esac
15405
15406 if expr a : '\(a\)' >/dev/null 2>&1; then
15407   as_expr=expr
15408 else
15409   as_expr=false
15410 fi
15411
15412 rm -f conf$$ conf$$.exe conf$$.file
15413 echo >conf$$.file
15414 if ln -s conf$$.file conf$$ 2>/dev/null; then
15415   # We could just check for DJGPP; but this test a) works b) is more generic
15416   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15417   if test -f conf$$.exe; then
15418     # Don't use ln at all; we don't have any links
15419     as_ln_s='cp -p'
15420   else
15421     as_ln_s='ln -s'
15422   fi
15423 elif ln conf$$.file conf$$ 2>/dev/null; then
15424   as_ln_s=ln
15425 else
15426   as_ln_s='cp -p'
15427 fi
15428 rm -f conf$$ conf$$.exe conf$$.file
15429
15430 if mkdir -p . 2>/dev/null; then
15431   as_mkdir_p=:
15432 else
15433   test -d ./-p && rmdir ./-p
15434   as_mkdir_p=false
15435 fi
15436
15437 as_executable_p="test -f"
15438
15439 # Sed expression to map a string onto a valid CPP name.
15440 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15441
15442 # Sed expression to map a string onto a valid variable name.
15443 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15444
15445
15446 # IFS
15447 # We need space, tab and new line, in precisely that order.
15448 as_nl='
15449 '
15450 IFS="   $as_nl"
15451
15452 # CDPATH.
15453 $as_unset CDPATH
15454
15455 exec 6>&1
15456
15457 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15458 # report actual input values of CONFIG_FILES etc. instead of their
15459 # values after options handling.  Logging --version etc. is OK.
15460 exec 5>>config.log
15461 {
15462   echo
15463   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15464 ## Running $as_me. ##
15465 _ASBOX
15466 } >&5
15467 cat >&5 <<_CSEOF
15468
15469 This file was extended by $as_me, which was
15470 generated by GNU Autoconf 2.59.  Invocation command line was
15471
15472   CONFIG_FILES    = $CONFIG_FILES
15473   CONFIG_HEADERS  = $CONFIG_HEADERS
15474   CONFIG_LINKS    = $CONFIG_LINKS
15475   CONFIG_COMMANDS = $CONFIG_COMMANDS
15476   $ $0 $@
15477
15478 _CSEOF
15479 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15480 echo >&5
15481 _ACEOF
15482
15483 # Files that config.status was made for.
15484 if test -n "$ac_config_files"; then
15485   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15486 fi
15487
15488 if test -n "$ac_config_headers"; then
15489   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15490 fi
15491
15492 if test -n "$ac_config_links"; then
15493   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15494 fi
15495
15496 if test -n "$ac_config_commands"; then
15497   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15498 fi
15499
15500 cat >>$CONFIG_STATUS <<\_ACEOF
15501
15502 ac_cs_usage="\
15503 \`$as_me' instantiates files from templates according to the
15504 current configuration.
15505
15506 Usage: $0 [OPTIONS] [FILE]...
15507
15508   -h, --help       print this help, then exit
15509   -V, --version    print version number, then exit
15510   -q, --quiet      do not print progress messages
15511   -d, --debug      don't remove temporary files
15512       --recheck    update $as_me by reconfiguring in the same conditions
15513   --file=FILE[:TEMPLATE]
15514                    instantiate the configuration file FILE
15515   --header=FILE[:TEMPLATE]
15516                    instantiate the configuration header FILE
15517
15518 Configuration files:
15519 $config_files
15520
15521 Configuration headers:
15522 $config_headers
15523
15524 Configuration commands:
15525 $config_commands
15526
15527 Report bugs to <bug-autoconf@gnu.org>."
15528 _ACEOF
15529
15530 cat >>$CONFIG_STATUS <<_ACEOF
15531 ac_cs_version="\\
15532 config.status
15533 configured by $0, generated by GNU Autoconf 2.59,
15534   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15535
15536 Copyright (C) 2003 Free Software Foundation, Inc.
15537 This config.status script is free software; the Free Software Foundation
15538 gives unlimited permission to copy, distribute and modify it."
15539 srcdir=$srcdir
15540 _ACEOF
15541
15542 cat >>$CONFIG_STATUS <<\_ACEOF
15543 # If no file are specified by the user, then we need to provide default
15544 # value.  By we need to know if files were specified by the user.
15545 ac_need_defaults=:
15546 while test $# != 0
15547 do
15548   case $1 in
15549   --*=*)
15550     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15551     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15552     ac_shift=:
15553     ;;
15554   -*)
15555     ac_option=$1
15556     ac_optarg=$2
15557     ac_shift=shift
15558     ;;
15559   *) # This is not an option, so the user has probably given explicit
15560      # arguments.
15561      ac_option=$1
15562      ac_need_defaults=false;;
15563   esac
15564
15565   case $ac_option in
15566   # Handling of the options.
15567 _ACEOF
15568 cat >>$CONFIG_STATUS <<\_ACEOF
15569   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15570     ac_cs_recheck=: ;;
15571   --version | --vers* | -V )
15572     echo "$ac_cs_version"; exit 0 ;;
15573   --he | --h)
15574     # Conflict between --help and --header
15575     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15576 Try \`$0 --help' for more information." >&5
15577 echo "$as_me: error: ambiguous option: $1
15578 Try \`$0 --help' for more information." >&2;}
15579    { (exit 1); exit 1; }; };;
15580   --help | --hel | -h )
15581     echo "$ac_cs_usage"; exit 0 ;;
15582   --debug | --d* | -d )
15583     debug=: ;;
15584   --file | --fil | --fi | --f )
15585     $ac_shift
15586     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15587     ac_need_defaults=false;;
15588   --header | --heade | --head | --hea )
15589     $ac_shift
15590     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15591     ac_need_defaults=false;;
15592   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15593   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15594     ac_cs_silent=: ;;
15595
15596   # This is an error.
15597   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15598 Try \`$0 --help' for more information." >&5
15599 echo "$as_me: error: unrecognized option: $1
15600 Try \`$0 --help' for more information." >&2;}
15601    { (exit 1); exit 1; }; } ;;
15602
15603   *) ac_config_targets="$ac_config_targets $1" ;;
15604
15605   esac
15606   shift
15607 done
15608
15609 ac_configure_extra_args=
15610
15611 if $ac_cs_silent; then
15612   exec 6>/dev/null
15613   ac_configure_extra_args="$ac_configure_extra_args --silent"
15614 fi
15615
15616 _ACEOF
15617 cat >>$CONFIG_STATUS <<_ACEOF
15618 if \$ac_cs_recheck; then
15619   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15620   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15621 fi
15622
15623 _ACEOF
15624
15625 cat >>$CONFIG_STATUS <<_ACEOF
15626 #
15627 # INIT-COMMANDS section.
15628 #
15629
15630 subdirs='$subdirs'
15631
15632 _ACEOF
15633
15634
15635
15636 cat >>$CONFIG_STATUS <<\_ACEOF
15637 for ac_config_target in $ac_config_targets
15638 do
15639   case "$ac_config_target" in
15640   # Handling of arguments.
15641   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15642   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15643   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15644   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15645 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15646    { (exit 1); exit 1; }; };;
15647   esac
15648 done
15649
15650 # If the user did not use the arguments to specify the items to instantiate,
15651 # then the envvar interface is used.  Set only those that are not.
15652 # We use the long form for the default assignment because of an extremely
15653 # bizarre bug on SunOS 4.1.3.
15654 if $ac_need_defaults; then
15655   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15656   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15657   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15658 fi
15659
15660 # Have a temporary directory for convenience.  Make it in the build tree
15661 # simply because there is no reason to put it here, and in addition,
15662 # creating and moving files from /tmp can sometimes cause problems.
15663 # Create a temporary directory, and hook for its removal unless debugging.
15664 $debug ||
15665 {
15666   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15667   trap '{ (exit 1); exit 1; }' 1 2 13 15
15668 }
15669
15670 # Create a (secure) tmp directory for tmp files.
15671
15672 {
15673   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15674   test -n "$tmp" && test -d "$tmp"
15675 }  ||
15676 {
15677   tmp=./confstat$$-$RANDOM
15678   (umask 077 && mkdir $tmp)
15679 } ||
15680 {
15681    echo "$me: cannot create a temporary directory in ." >&2
15682    { (exit 1); exit 1; }
15683 }
15684
15685 _ACEOF
15686
15687 cat >>$CONFIG_STATUS <<_ACEOF
15688
15689 #
15690 # CONFIG_FILES section.
15691 #
15692
15693 # No need to generate the scripts if there are no CONFIG_FILES.
15694 # This happens for instance when ./config.status config.h
15695 if test -n "\$CONFIG_FILES"; then
15696   # Protect against being on the right side of a sed subst in config.status.
15697   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15698    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15699 s,@SHELL@,$SHELL,;t t
15700 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15701 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15702 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15703 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15704 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15705 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15706 s,@exec_prefix@,$exec_prefix,;t t
15707 s,@prefix@,$prefix,;t t
15708 s,@program_transform_name@,$program_transform_name,;t t
15709 s,@bindir@,$bindir,;t t
15710 s,@sbindir@,$sbindir,;t t
15711 s,@libexecdir@,$libexecdir,;t t
15712 s,@datadir@,$datadir,;t t
15713 s,@sysconfdir@,$sysconfdir,;t t
15714 s,@sharedstatedir@,$sharedstatedir,;t t
15715 s,@localstatedir@,$localstatedir,;t t
15716 s,@libdir@,$libdir,;t t
15717 s,@includedir@,$includedir,;t t
15718 s,@oldincludedir@,$oldincludedir,;t t
15719 s,@infodir@,$infodir,;t t
15720 s,@mandir@,$mandir,;t t
15721 s,@build_alias@,$build_alias,;t t
15722 s,@host_alias@,$host_alias,;t t
15723 s,@target_alias@,$target_alias,;t t
15724 s,@DEFS@,$DEFS,;t t
15725 s,@ECHO_C@,$ECHO_C,;t t
15726 s,@ECHO_N@,$ECHO_N,;t t
15727 s,@ECHO_T@,$ECHO_T,;t t
15728 s,@LIBS@,$LIBS,;t t
15729 s,@build@,$build,;t t
15730 s,@build_cpu@,$build_cpu,;t t
15731 s,@build_vendor@,$build_vendor,;t t
15732 s,@build_os@,$build_os,;t t
15733 s,@host@,$host,;t t
15734 s,@host_cpu@,$host_cpu,;t t
15735 s,@host_vendor@,$host_vendor,;t t
15736 s,@host_os@,$host_os,;t t
15737 s,@target@,$target,;t t
15738 s,@target_cpu@,$target_cpu,;t t
15739 s,@target_vendor@,$target_vendor,;t t
15740 s,@target_os@,$target_os,;t t
15741 s,@target_noncanonical@,$target_noncanonical,;t t
15742 s,@build_subdir@,$build_subdir,;t t
15743 s,@host_subdir@,$host_subdir,;t t
15744 s,@target_subdir@,$target_subdir,;t t
15745 s,@GENINSRC@,$GENINSRC,;t t
15746 s,@CC@,$CC,;t t
15747 s,@CFLAGS@,$CFLAGS,;t t
15748 s,@LDFLAGS@,$LDFLAGS,;t t
15749 s,@CPPFLAGS@,$CPPFLAGS,;t t
15750 s,@ac_ct_CC@,$ac_ct_CC,;t t
15751 s,@EXEEXT@,$EXEEXT,;t t
15752 s,@OBJEXT@,$OBJEXT,;t t
15753 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
15754 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
15755 s,@CPP@,$CPP,;t t
15756 s,@EGREP@,$EGREP,;t t
15757 s,@strict1_warn@,$strict1_warn,;t t
15758 s,@warn_cflags@,$warn_cflags,;t t
15759 s,@WERROR@,$WERROR,;t t
15760 s,@nocommon_flag@,$nocommon_flag,;t t
15761 s,@TREEBROWSER@,$TREEBROWSER,;t t
15762 s,@valgrind_path@,$valgrind_path,;t t
15763 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
15764 s,@valgrind_command@,$valgrind_command,;t t
15765 s,@coverage_flags@,$coverage_flags,;t t
15766 s,@enable_multilib@,$enable_multilib,;t t
15767 s,@enable_shared@,$enable_shared,;t t
15768 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
15769 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
15770 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
15771 s,@onestep@,$onestep,;t t
15772 s,@SET_MAKE@,$SET_MAKE,;t t
15773 s,@AWK@,$AWK,;t t
15774 s,@LN_S@,$LN_S,;t t
15775 s,@LN@,$LN,;t t
15776 s,@RANLIB@,$RANLIB,;t t
15777 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15778 s,@ranlib_flags@,$ranlib_flags,;t t
15779 s,@INSTALL@,$INSTALL,;t t
15780 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15781 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15782 s,@make_compare_target@,$make_compare_target,;t t
15783 s,@have_mktemp_command@,$have_mktemp_command,;t t
15784 s,@MAKEINFO@,$MAKEINFO,;t t
15785 s,@BUILD_INFO@,$BUILD_INFO,;t t
15786 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
15787 s,@FLEX@,$FLEX,;t t
15788 s,@BISON@,$BISON,;t t
15789 s,@NM@,$NM,;t t
15790 s,@AR@,$AR,;t t
15791 s,@stage1_cflags@,$stage1_cflags,;t t
15792 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
15793 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
15794 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
15795 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
15796 s,@LIBICONV@,$LIBICONV,;t t
15797 s,@LTLIBICONV@,$LTLIBICONV,;t t
15798 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
15799 s,@manext@,$manext,;t t
15800 s,@objext@,$objext,;t t
15801 s,@gthread_flags@,$gthread_flags,;t t
15802 s,@extra_modes_file@,$extra_modes_file,;t t
15803 s,@PACKAGE@,$PACKAGE,;t t
15804 s,@VERSION@,$VERSION,;t t
15805 s,@USE_NLS@,$USE_NLS,;t t
15806 s,@LIBINTL@,$LIBINTL,;t t
15807 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15808 s,@INCINTL@,$INCINTL,;t t
15809 s,@XGETTEXT@,$XGETTEXT,;t t
15810 s,@GMSGFMT@,$GMSGFMT,;t t
15811 s,@POSUB@,$POSUB,;t t
15812 s,@CATALOGS@,$CATALOGS,;t t
15813 s,@CROSS@,$CROSS,;t t
15814 s,@ALL@,$ALL,;t t
15815 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
15816 s,@inhibit_libc@,$inhibit_libc,;t t
15817 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15818 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
15819 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
15820 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
15821 s,@collect2@,$collect2,;t t
15822 s,@libgcc_visibility@,$libgcc_visibility,;t t
15823 s,@GGC@,$GGC,;t t
15824 s,@zlibdir@,$zlibdir,;t t
15825 s,@zlibinc@,$zlibinc,;t t
15826 s,@MAINT@,$MAINT,;t t
15827 s,@gcc_tooldir@,$gcc_tooldir,;t t
15828 s,@dollar@,$dollar,;t t
15829 s,@slibdir@,$slibdir,;t t
15830 s,@objdir@,$objdir,;t t
15831 s,@subdirs@,$subdirs,;t t
15832 s,@srcdir@,$srcdir,;t t
15833 s,@all_boot_languages@,$all_boot_languages,;t t
15834 s,@all_compilers@,$all_compilers,;t t
15835 s,@all_gtfiles@,$all_gtfiles,;t t
15836 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
15837 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
15838 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
15839 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
15840 s,@all_languages@,$all_languages,;t t
15841 s,@all_stagestuff@,$all_stagestuff,;t t
15842 s,@build_exeext@,$build_exeext,;t t
15843 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
15844 s,@build_xm_file_list@,$build_xm_file_list,;t t
15845 s,@build_xm_include_list@,$build_xm_include_list,;t t
15846 s,@build_xm_defines@,$build_xm_defines,;t t
15847 s,@check_languages@,$check_languages,;t t
15848 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
15849 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
15850 s,@cpp_install_dir@,$cpp_install_dir,;t t
15851 s,@xmake_file@,$xmake_file,;t t
15852 s,@tmake_file@,$tmake_file,;t t
15853 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
15854 s,@extra_headers_list@,$extra_headers_list,;t t
15855 s,@extra_objs@,$extra_objs,;t t
15856 s,@extra_parts@,$extra_parts,;t t
15857 s,@extra_passes@,$extra_passes,;t t
15858 s,@extra_programs@,$extra_programs,;t t
15859 s,@float_h_file@,$float_h_file,;t t
15860 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
15861 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
15862 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
15863 s,@gcc_version@,$gcc_version,;t t
15864 s,@gcc_version_full@,$gcc_version_full,;t t
15865 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
15866 s,@host_exeext@,$host_exeext,;t t
15867 s,@host_xm_file_list@,$host_xm_file_list,;t t
15868 s,@host_xm_include_list@,$host_xm_include_list,;t t
15869 s,@host_xm_defines@,$host_xm_defines,;t t
15870 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
15871 s,@install@,$install,;t t
15872 s,@lang_opt_files@,$lang_opt_files,;t t
15873 s,@lang_specs_files@,$lang_specs_files,;t t
15874 s,@lang_tree_files@,$lang_tree_files,;t t
15875 s,@local_prefix@,$local_prefix,;t t
15876 s,@md_file@,$md_file,;t t
15877 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
15878 s,@out_file@,$out_file,;t t
15879 s,@out_object_file@,$out_object_file,;t t
15880 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
15881 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
15882 s,@thread_file@,$thread_file,;t t
15883 s,@tm_file_list@,$tm_file_list,;t t
15884 s,@tm_include_list@,$tm_include_list,;t t
15885 s,@tm_defines@,$tm_defines,;t t
15886 s,@tm_p_file_list@,$tm_p_file_list,;t t
15887 s,@tm_p_include_list@,$tm_p_include_list,;t t
15888 s,@xm_file_list@,$xm_file_list,;t t
15889 s,@xm_include_list@,$xm_include_list,;t t
15890 s,@xm_defines@,$xm_defines,;t t
15891 s,@c_target_objs@,$c_target_objs,;t t
15892 s,@cxx_target_objs@,$cxx_target_objs,;t t
15893 s,@target_cpu_default@,$target_cpu_default,;t t
15894 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
15895 s,@GMPLIBS@,$GMPLIBS,;t t
15896 s,@GMPINC@,$GMPINC,;t t
15897 s,@LIBOBJS@,$LIBOBJS,;t t
15898 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15899 /@language_hooks@/r $language_hooks
15900 s,@language_hooks@,,;t t
15901 CEOF
15902
15903 _ACEOF
15904
15905   cat >>$CONFIG_STATUS <<\_ACEOF
15906   # Split the substitutions into bite-sized pieces for seds with
15907   # small command number limits, like on Digital OSF/1 and HP-UX.
15908   ac_max_sed_lines=48
15909   ac_sed_frag=1 # Number of current file.
15910   ac_beg=1 # First line for current file.
15911   ac_end=$ac_max_sed_lines # Line after last line for current file.
15912   ac_more_lines=:
15913   ac_sed_cmds=
15914   while $ac_more_lines; do
15915     if test $ac_beg -gt 1; then
15916       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15917     else
15918       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15919     fi
15920     if test ! -s $tmp/subs.frag; then
15921       ac_more_lines=false
15922     else
15923       # The purpose of the label and of the branching condition is to
15924       # speed up the sed processing (if there are no `@' at all, there
15925       # is no need to browse any of the substitutions).
15926       # These are the two extra sed commands mentioned above.
15927       (echo ':t
15928   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15929       if test -z "$ac_sed_cmds"; then
15930         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15931       else
15932         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15933       fi
15934       ac_sed_frag=`expr $ac_sed_frag + 1`
15935       ac_beg=$ac_end
15936       ac_end=`expr $ac_end + $ac_max_sed_lines`
15937     fi
15938   done
15939   if test -z "$ac_sed_cmds"; then
15940     ac_sed_cmds=cat
15941   fi
15942 fi # test -n "$CONFIG_FILES"
15943
15944 _ACEOF
15945 cat >>$CONFIG_STATUS <<\_ACEOF
15946 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15947   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15948   case $ac_file in
15949   - | *:- | *:-:* ) # input from stdin
15950         cat >$tmp/stdin
15951         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15952         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15953   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15954         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15955   * )   ac_file_in=$ac_file.in ;;
15956   esac
15957
15958   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15959   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15961          X"$ac_file" : 'X\(//\)[^/]' \| \
15962          X"$ac_file" : 'X\(//\)$' \| \
15963          X"$ac_file" : 'X\(/\)' \| \
15964          .     : '\(.\)' 2>/dev/null ||
15965 echo X"$ac_file" |
15966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15967           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15968           /^X\(\/\/\)$/{ s//\1/; q; }
15969           /^X\(\/\).*/{ s//\1/; q; }
15970           s/.*/./; q'`
15971   { if $as_mkdir_p; then
15972     mkdir -p "$ac_dir"
15973   else
15974     as_dir="$ac_dir"
15975     as_dirs=
15976     while test ! -d "$as_dir"; do
15977       as_dirs="$as_dir $as_dirs"
15978       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15979 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15980          X"$as_dir" : 'X\(//\)[^/]' \| \
15981          X"$as_dir" : 'X\(//\)$' \| \
15982          X"$as_dir" : 'X\(/\)' \| \
15983          .     : '\(.\)' 2>/dev/null ||
15984 echo X"$as_dir" |
15985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15986           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15987           /^X\(\/\/\)$/{ s//\1/; q; }
15988           /^X\(\/\).*/{ s//\1/; q; }
15989           s/.*/./; q'`
15990     done
15991     test ! -n "$as_dirs" || mkdir $as_dirs
15992   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15993 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15994    { (exit 1); exit 1; }; }; }
15995
15996   ac_builddir=.
15997
15998 if test "$ac_dir" != .; then
15999   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16000   # A "../" for each directory in $ac_dir_suffix.
16001   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16002 else
16003   ac_dir_suffix= ac_top_builddir=
16004 fi
16005
16006 case $srcdir in
16007   .)  # No --srcdir option.  We are building in place.
16008     ac_srcdir=.
16009     if test -z "$ac_top_builddir"; then
16010        ac_top_srcdir=.
16011     else
16012        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16013     fi ;;
16014   [\\/]* | ?:[\\/]* )  # Absolute path.
16015     ac_srcdir=$srcdir$ac_dir_suffix;
16016     ac_top_srcdir=$srcdir ;;
16017   *) # Relative path.
16018     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16019     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16020 esac
16021
16022 # Do not use `cd foo && pwd` to compute absolute paths, because
16023 # the directories may not exist.
16024 case `pwd` in
16025 .) ac_abs_builddir="$ac_dir";;
16026 *)
16027   case "$ac_dir" in
16028   .) ac_abs_builddir=`pwd`;;
16029   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16030   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16031   esac;;
16032 esac
16033 case $ac_abs_builddir in
16034 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16035 *)
16036   case ${ac_top_builddir}. in
16037   .) ac_abs_top_builddir=$ac_abs_builddir;;
16038   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16039   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16040   esac;;
16041 esac
16042 case $ac_abs_builddir in
16043 .) ac_abs_srcdir=$ac_srcdir;;
16044 *)
16045   case $ac_srcdir in
16046   .) ac_abs_srcdir=$ac_abs_builddir;;
16047   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16048   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16049   esac;;
16050 esac
16051 case $ac_abs_builddir in
16052 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16053 *)
16054   case $ac_top_srcdir in
16055   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16056   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16057   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16058   esac;;
16059 esac
16060
16061
16062
16063   # Let's still pretend it is `configure' which instantiates (i.e., don't
16064   # use $as_me), people would be surprised to read:
16065   #    /* config.h.  Generated by config.status.  */
16066   if test x"$ac_file" = x-; then
16067     configure_input=
16068   else
16069     configure_input="$ac_file.  "
16070   fi
16071   configure_input=$configure_input"Generated from `echo $ac_file_in |
16072                                      sed 's,.*/,,'` by configure."
16073
16074   # First look for the input files in the build tree, otherwise in the
16075   # src tree.
16076   ac_file_inputs=`IFS=:
16077     for f in $ac_file_in; do
16078       case $f in
16079       -) echo $tmp/stdin ;;
16080       [\\/$]*)
16081          # Absolute (can't be DOS-style, as IFS=:)
16082          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16083 echo "$as_me: error: cannot find input file: $f" >&2;}
16084    { (exit 1); exit 1; }; }
16085          echo "$f";;
16086       *) # Relative
16087          if test -f "$f"; then
16088            # Build tree
16089            echo "$f"
16090          elif test -f "$srcdir/$f"; then
16091            # Source tree
16092            echo "$srcdir/$f"
16093          else
16094            # /dev/null tree
16095            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16096 echo "$as_me: error: cannot find input file: $f" >&2;}
16097    { (exit 1); exit 1; }; }
16098          fi;;
16099       esac
16100     done` || { (exit 1); exit 1; }
16101
16102   if test x"$ac_file" != x-; then
16103     { echo "$as_me:$LINENO: creating $ac_file" >&5
16104 echo "$as_me: creating $ac_file" >&6;}
16105     rm -f "$ac_file"
16106   fi
16107 _ACEOF
16108 cat >>$CONFIG_STATUS <<_ACEOF
16109   sed "$ac_vpsub
16110 $extrasub
16111 _ACEOF
16112 cat >>$CONFIG_STATUS <<\_ACEOF
16113 :t
16114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16115 s,@configure_input@,$configure_input,;t t
16116 s,@srcdir@,$ac_srcdir,;t t
16117 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16118 s,@top_srcdir@,$ac_top_srcdir,;t t
16119 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16120 s,@builddir@,$ac_builddir,;t t
16121 s,@abs_builddir@,$ac_abs_builddir,;t t
16122 s,@top_builddir@,$ac_top_builddir,;t t
16123 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16124 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16125   rm -f $tmp/stdin
16126   if test x"$ac_file" != x-; then
16127     mv $tmp/out $ac_file
16128   else
16129     cat $tmp/out
16130     rm -f $tmp/out
16131   fi
16132
16133 done
16134 _ACEOF
16135 cat >>$CONFIG_STATUS <<\_ACEOF
16136
16137 #
16138 # CONFIG_HEADER section.
16139 #
16140
16141 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16142 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16143 #
16144 # ac_d sets the value in "#define NAME VALUE" lines.
16145 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
16146 ac_dB='[         ].*$,\1#\2'
16147 ac_dC=' '
16148 ac_dD=',;t'
16149 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16150 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16151 ac_uB='$,\1#\2define\3'
16152 ac_uC=' '
16153 ac_uD=',;t'
16154
16155 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16156   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16157   case $ac_file in
16158   - | *:- | *:-:* ) # input from stdin
16159         cat >$tmp/stdin
16160         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16161         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16162   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16163         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16164   * )   ac_file_in=$ac_file.in ;;
16165   esac
16166
16167   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16168 echo "$as_me: creating $ac_file" >&6;}
16169
16170   # First look for the input files in the build tree, otherwise in the
16171   # src tree.
16172   ac_file_inputs=`IFS=:
16173     for f in $ac_file_in; do
16174       case $f in
16175       -) echo $tmp/stdin ;;
16176       [\\/$]*)
16177          # Absolute (can't be DOS-style, as IFS=:)
16178          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16179 echo "$as_me: error: cannot find input file: $f" >&2;}
16180    { (exit 1); exit 1; }; }
16181          # Do quote $f, to prevent DOS paths from being IFS'd.
16182          echo "$f";;
16183       *) # Relative
16184          if test -f "$f"; then
16185            # Build tree
16186            echo "$f"
16187          elif test -f "$srcdir/$f"; then
16188            # Source tree
16189            echo "$srcdir/$f"
16190          else
16191            # /dev/null tree
16192            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16193 echo "$as_me: error: cannot find input file: $f" >&2;}
16194    { (exit 1); exit 1; }; }
16195          fi;;
16196       esac
16197     done` || { (exit 1); exit 1; }
16198   # Remove the trailing spaces.
16199   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
16200
16201 _ACEOF
16202
16203 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16204 # `conftest.undefs', that substitutes the proper values into
16205 # config.h.in to produce config.h.  The first handles `#define'
16206 # templates, and the second `#undef' templates.
16207 # And first: Protect against being on the right side of a sed subst in
16208 # config.status.  Protect against being in an unquoted here document
16209 # in config.status.
16210 rm -f conftest.defines conftest.undefs
16211 # Using a here document instead of a string reduces the quoting nightmare.
16212 # Putting comments in sed scripts is not portable.
16213 #
16214 # `end' is used to avoid that the second main sed command (meant for
16215 # 0-ary CPP macros) applies to n-ary macro definitions.
16216 # See the Autoconf documentation for `clear'.
16217 cat >confdef2sed.sed <<\_ACEOF
16218 s/[\\&,]/\\&/g
16219 s,[\\$`],\\&,g
16220 t clear
16221 : clear
16222 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16223 t end
16224 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16225 : end
16226 _ACEOF
16227 # If some macros were called several times there might be several times
16228 # the same #defines, which is useless.  Nevertheless, we may not want to
16229 # sort them, since we want the *last* AC-DEFINE to be honored.
16230 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16231 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16232 rm -f confdef2sed.sed
16233
16234 # This sed command replaces #undef with comments.  This is necessary, for
16235 # example, in the case of _POSIX_SOURCE, which is predefined and required
16236 # on some systems where configure will not decide to define it.
16237 cat >>conftest.undefs <<\_ACEOF
16238 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16239 _ACEOF
16240
16241 # Break up conftest.defines because some shells have a limit on the size
16242 # of here documents, and old seds have small limits too (100 cmds).
16243 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16244 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16245 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16246 echo '  :' >>$CONFIG_STATUS
16247 rm -f conftest.tail
16248 while grep . conftest.defines >/dev/null
16249 do
16250   # Write a limited-size here document to $tmp/defines.sed.
16251   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16252   # Speed up: don't consider the non `#define' lines.
16253   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
16254   # Work around the forget-to-reset-the-flag bug.
16255   echo 't clr' >>$CONFIG_STATUS
16256   echo ': clr' >>$CONFIG_STATUS
16257   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16258   echo 'CEOF
16259   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16260   rm -f $tmp/in
16261   mv $tmp/out $tmp/in
16262 ' >>$CONFIG_STATUS
16263   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16264   rm -f conftest.defines
16265   mv conftest.tail conftest.defines
16266 done
16267 rm -f conftest.defines
16268 echo '  fi # grep' >>$CONFIG_STATUS
16269 echo >>$CONFIG_STATUS
16270
16271 # Break up conftest.undefs because some shells have a limit on the size
16272 # of here documents, and old seds have small limits too (100 cmds).
16273 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16274 rm -f conftest.tail
16275 while grep . conftest.undefs >/dev/null
16276 do
16277   # Write a limited-size here document to $tmp/undefs.sed.
16278   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16279   # Speed up: don't consider the non `#undef'
16280   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16281   # Work around the forget-to-reset-the-flag bug.
16282   echo 't clr' >>$CONFIG_STATUS
16283   echo ': clr' >>$CONFIG_STATUS
16284   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16285   echo 'CEOF
16286   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16287   rm -f $tmp/in
16288   mv $tmp/out $tmp/in
16289 ' >>$CONFIG_STATUS
16290   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16291   rm -f conftest.undefs
16292   mv conftest.tail conftest.undefs
16293 done
16294 rm -f conftest.undefs
16295
16296 cat >>$CONFIG_STATUS <<\_ACEOF
16297   # Let's still pretend it is `configure' which instantiates (i.e., don't
16298   # use $as_me), people would be surprised to read:
16299   #    /* config.h.  Generated by config.status.  */
16300   if test x"$ac_file" = x-; then
16301     echo "/* Generated by configure.  */" >$tmp/config.h
16302   else
16303     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16304   fi
16305   cat $tmp/in >>$tmp/config.h
16306   rm -f $tmp/in
16307   if test x"$ac_file" != x-; then
16308     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16309       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16310 echo "$as_me: $ac_file is unchanged" >&6;}
16311     else
16312       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16314          X"$ac_file" : 'X\(//\)[^/]' \| \
16315          X"$ac_file" : 'X\(//\)$' \| \
16316          X"$ac_file" : 'X\(/\)' \| \
16317          .     : '\(.\)' 2>/dev/null ||
16318 echo X"$ac_file" |
16319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16320           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16321           /^X\(\/\/\)$/{ s//\1/; q; }
16322           /^X\(\/\).*/{ s//\1/; q; }
16323           s/.*/./; q'`
16324       { if $as_mkdir_p; then
16325     mkdir -p "$ac_dir"
16326   else
16327     as_dir="$ac_dir"
16328     as_dirs=
16329     while test ! -d "$as_dir"; do
16330       as_dirs="$as_dir $as_dirs"
16331       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16333          X"$as_dir" : 'X\(//\)[^/]' \| \
16334          X"$as_dir" : 'X\(//\)$' \| \
16335          X"$as_dir" : 'X\(/\)' \| \
16336          .     : '\(.\)' 2>/dev/null ||
16337 echo X"$as_dir" |
16338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16339           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16340           /^X\(\/\/\)$/{ s//\1/; q; }
16341           /^X\(\/\).*/{ s//\1/; q; }
16342           s/.*/./; q'`
16343     done
16344     test ! -n "$as_dirs" || mkdir $as_dirs
16345   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16346 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16347    { (exit 1); exit 1; }; }; }
16348
16349       rm -f $ac_file
16350       mv $tmp/config.h $ac_file
16351     fi
16352   else
16353     cat $tmp/config.h
16354     rm -f $tmp/config.h
16355   fi
16356 done
16357 _ACEOF
16358 cat >>$CONFIG_STATUS <<\_ACEOF
16359
16360 #
16361 # CONFIG_COMMANDS section.
16362 #
16363 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16364   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16365   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16366   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16367 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16368          X"$ac_dest" : 'X\(//\)[^/]' \| \
16369          X"$ac_dest" : 'X\(//\)$' \| \
16370          X"$ac_dest" : 'X\(/\)' \| \
16371          .     : '\(.\)' 2>/dev/null ||
16372 echo X"$ac_dest" |
16373     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16374           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16375           /^X\(\/\/\)$/{ s//\1/; q; }
16376           /^X\(\/\).*/{ s//\1/; q; }
16377           s/.*/./; q'`
16378   { if $as_mkdir_p; then
16379     mkdir -p "$ac_dir"
16380   else
16381     as_dir="$ac_dir"
16382     as_dirs=
16383     while test ! -d "$as_dir"; do
16384       as_dirs="$as_dir $as_dirs"
16385       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16387          X"$as_dir" : 'X\(//\)[^/]' \| \
16388          X"$as_dir" : 'X\(//\)$' \| \
16389          X"$as_dir" : 'X\(/\)' \| \
16390          .     : '\(.\)' 2>/dev/null ||
16391 echo X"$as_dir" |
16392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16393           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16394           /^X\(\/\/\)$/{ s//\1/; q; }
16395           /^X\(\/\).*/{ s//\1/; q; }
16396           s/.*/./; q'`
16397     done
16398     test ! -n "$as_dirs" || mkdir $as_dirs
16399   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16400 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16401    { (exit 1); exit 1; }; }; }
16402
16403   ac_builddir=.
16404
16405 if test "$ac_dir" != .; then
16406   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16407   # A "../" for each directory in $ac_dir_suffix.
16408   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16409 else
16410   ac_dir_suffix= ac_top_builddir=
16411 fi
16412
16413 case $srcdir in
16414   .)  # No --srcdir option.  We are building in place.
16415     ac_srcdir=.
16416     if test -z "$ac_top_builddir"; then
16417        ac_top_srcdir=.
16418     else
16419        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16420     fi ;;
16421   [\\/]* | ?:[\\/]* )  # Absolute path.
16422     ac_srcdir=$srcdir$ac_dir_suffix;
16423     ac_top_srcdir=$srcdir ;;
16424   *) # Relative path.
16425     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16426     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16427 esac
16428
16429 # Do not use `cd foo && pwd` to compute absolute paths, because
16430 # the directories may not exist.
16431 case `pwd` in
16432 .) ac_abs_builddir="$ac_dir";;
16433 *)
16434   case "$ac_dir" in
16435   .) ac_abs_builddir=`pwd`;;
16436   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16437   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16438   esac;;
16439 esac
16440 case $ac_abs_builddir in
16441 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16442 *)
16443   case ${ac_top_builddir}. in
16444   .) ac_abs_top_builddir=$ac_abs_builddir;;
16445   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16446   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16447   esac;;
16448 esac
16449 case $ac_abs_builddir in
16450 .) ac_abs_srcdir=$ac_srcdir;;
16451 *)
16452   case $ac_srcdir in
16453   .) ac_abs_srcdir=$ac_abs_builddir;;
16454   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16455   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16456   esac;;
16457 esac
16458 case $ac_abs_builddir in
16459 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16460 *)
16461   case $ac_top_srcdir in
16462   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16463   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16464   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16465   esac;;
16466 esac
16467
16468
16469   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16470 echo "$as_me: executing $ac_dest commands" >&6;}
16471   case $ac_dest in
16472     default )
16473 case ${CONFIG_HEADERS} in
16474   *auto-host.h:config.in*)
16475   echo > cstamp-h ;;
16476 esac
16477 # Make sure all the subdirs exist.
16478 for d in $subdirs doc build
16479 do
16480     test -d $d || mkdir $d
16481 done
16482 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16483 # bootstrapping and the installation procedure can still use
16484 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
16485 # FLAGS_TO_PASS has been modified to solve the problem there.
16486 # This is virtually a duplicate of what happens in configure.lang; we do
16487 # an extra check to make sure this only happens if ln -s can be used.
16488 case "$LN_S" in
16489   *-s*)
16490     for d in ${subdirs} ; do
16491         STARTDIR=`${PWDCMD-pwd}`
16492         cd $d
16493         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16494         do
16495                 rm -f $t
16496                 $LN_S ../$t $t 2>/dev/null
16497         done
16498         cd $STARTDIR
16499     done
16500   ;;
16501 esac
16502  ;;
16503   esac
16504 done
16505 _ACEOF
16506
16507 cat >>$CONFIG_STATUS <<\_ACEOF
16508
16509 { (exit 0); exit 0; }
16510 _ACEOF
16511 chmod +x $CONFIG_STATUS
16512 ac_clean_files=$ac_clean_files_save
16513
16514
16515 # configure is writing to config.log, and then calls config.status.
16516 # config.status does its own redirection, appending to config.log.
16517 # Unfortunately, on DOS this fails, as config.log is still kept open
16518 # by configure, so config.status won't be able to write to it; its
16519 # output is simply discarded.  So we exec the FD to /dev/null,
16520 # effectively closing config.log, so it can be properly (re)opened and
16521 # appended to by config.status.  When coming back to configure, we
16522 # need to make the FD available again.
16523 if test "$no_create" != yes; then
16524   ac_cs_success=:
16525   ac_config_status_args=
16526   test "$silent" = yes &&
16527     ac_config_status_args="$ac_config_status_args --quiet"
16528   exec 5>/dev/null
16529   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16530   exec 5>>config.log
16531   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16532   # would make configure fail if this is the last instruction.
16533   $ac_cs_success || { (exit 1); exit 1; }
16534 fi
16535