OSDN Git Service

* c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
[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 symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default 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"
2388                          || test ! -s conftest.err'
2389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390   (eval $ac_try) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }; } &&
2394          { ac_try='test -s conftest.$ac_objext'
2395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396   (eval $ac_try) 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; }; then
2400   ac_compiler_gnu=yes
2401 else
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_compiler_gnu=no
2406 fi
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2409
2410 fi
2411 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2412 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2413 GCC=`test $ac_compiler_gnu = yes && echo yes`
2414 ac_test_CFLAGS=${CFLAGS+set}
2415 ac_save_CFLAGS=$CFLAGS
2416 CFLAGS="-g"
2417 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h.  */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h.  */
2428
2429 int
2430 main ()
2431 {
2432
2433   ;
2434   return 0;
2435 }
2436 _ACEOF
2437 rm -f conftest.$ac_objext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439   (eval $ac_compile) 2>conftest.er1
2440   ac_status=$?
2441   grep -v '^ *+' conftest.er1 >conftest.err
2442   rm -f conftest.er1
2443   cat conftest.err >&5
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); } &&
2446          { ac_try='test -z "$ac_c_werror_flag"
2447                          || test ! -s conftest.err'
2448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449   (eval $ac_try) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; } &&
2453          { ac_try='test -s conftest.$ac_objext'
2454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455   (eval $ac_try) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; }; then
2459   ac_cv_prog_cc_g=yes
2460 else
2461   echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 ac_cv_prog_cc_g=no
2465 fi
2466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2467 fi
2468 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2469 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2470 if test "$ac_test_CFLAGS" = set; then
2471   CFLAGS=$ac_save_CFLAGS
2472 elif test $ac_cv_prog_cc_g = yes; then
2473   if test "$GCC" = yes; then
2474     CFLAGS="-g -O2"
2475   else
2476     CFLAGS="-g"
2477   fi
2478 else
2479   if test "$GCC" = yes; then
2480     CFLAGS="-O2"
2481   else
2482     CFLAGS=
2483   fi
2484 fi
2485 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2486 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2487 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   ac_cv_prog_cc_stdc=no
2491 ac_save_CC=$CC
2492 cat >conftest.$ac_ext <<_ACEOF
2493 /* confdefs.h.  */
2494 _ACEOF
2495 cat confdefs.h >>conftest.$ac_ext
2496 cat >>conftest.$ac_ext <<_ACEOF
2497 /* end confdefs.h.  */
2498 #include <stdarg.h>
2499 #include <stdio.h>
2500 #include <sys/types.h>
2501 #include <sys/stat.h>
2502 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2503 struct buf { int x; };
2504 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2505 static char *e (p, i)
2506      char **p;
2507      int i;
2508 {
2509   return p[i];
2510 }
2511 static char *f (char * (*g) (char **, int), char **p, ...)
2512 {
2513   char *s;
2514   va_list v;
2515   va_start (v,p);
2516   s = g (p, va_arg (v,int));
2517   va_end (v);
2518   return s;
2519 }
2520
2521 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2522    function prototypes and stuff, but not '\xHH' hex character constants.
2523    These don't provoke an error unfortunately, instead are silently treated
2524    as 'x'.  The following induces an error, until -std1 is added to get
2525    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2526    array size at least.  It's necessary to write '\x00'==0 to get something
2527    that's true only with -std1.  */
2528 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2529
2530 int test (int i, double x);
2531 struct s1 {int (*f) (int a);};
2532 struct s2 {int (*f) (double a);};
2533 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2534 int argc;
2535 char **argv;
2536 int
2537 main ()
2538 {
2539 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 # Don't try gcc -ansi; that turns off useful extensions and
2545 # breaks some systems' header files.
2546 # AIX                   -qlanglvl=ansi
2547 # Ultrix and OSF/1      -std1
2548 # HP-UX 10.20 and later -Ae
2549 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2550 # SVR4                  -Xc -D__EXTENSIONS__
2551 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2552 do
2553   CC="$ac_save_CC $ac_arg"
2554   rm -f conftest.$ac_objext
2555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556   (eval $ac_compile) 2>conftest.er1
2557   ac_status=$?
2558   grep -v '^ *+' conftest.er1 >conftest.err
2559   rm -f conftest.er1
2560   cat conftest.err >&5
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); } &&
2563          { ac_try='test -z "$ac_c_werror_flag"
2564                          || test ! -s conftest.err'
2565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566   (eval $ac_try) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; } &&
2570          { ac_try='test -s conftest.$ac_objext'
2571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572   (eval $ac_try) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; }; then
2576   ac_cv_prog_cc_stdc=$ac_arg
2577 break
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 fi
2583 rm -f conftest.err conftest.$ac_objext
2584 done
2585 rm -f conftest.$ac_ext conftest.$ac_objext
2586 CC=$ac_save_CC
2587
2588 fi
2589
2590 case "x$ac_cv_prog_cc_stdc" in
2591   x|xno)
2592     echo "$as_me:$LINENO: result: none needed" >&5
2593 echo "${ECHO_T}none needed" >&6 ;;
2594   *)
2595     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2596 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2597     CC="$CC $ac_cv_prog_cc_stdc" ;;
2598 esac
2599
2600 # Some people use a C++ compiler to compile C.  Since we use `exit',
2601 # in C++ we need to declare it.  In case someone uses the same compiler
2602 # for both compiling C and C++ we need to have the C++ compiler decide
2603 # the declaration of exit, since it's the most demanding environment.
2604 cat >conftest.$ac_ext <<_ACEOF
2605 #ifndef __cplusplus
2606   choke me
2607 #endif
2608 _ACEOF
2609 rm -f conftest.$ac_objext
2610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611   (eval $ac_compile) 2>conftest.er1
2612   ac_status=$?
2613   grep -v '^ *+' conftest.er1 >conftest.err
2614   rm -f conftest.er1
2615   cat conftest.err >&5
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); } &&
2618          { ac_try='test -z "$ac_c_werror_flag"
2619                          || test ! -s conftest.err'
2620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621   (eval $ac_try) 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; } &&
2625          { ac_try='test -s conftest.$ac_objext'
2626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; }; then
2631   for ac_declaration in \
2632    '' \
2633    'extern "C" void std::exit (int) throw (); using std::exit;' \
2634    'extern "C" void std::exit (int); using std::exit;' \
2635    'extern "C" void exit (int) throw ();' \
2636    'extern "C" void exit (int);' \
2637    'void exit (int);'
2638 do
2639   cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645 $ac_declaration
2646 #include <stdlib.h>
2647 int
2648 main ()
2649 {
2650 exit (42);
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657   (eval $ac_compile) 2>conftest.er1
2658   ac_status=$?
2659   grep -v '^ *+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -z "$ac_c_werror_flag"
2665                          || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   :
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 continue
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685   cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691 $ac_declaration
2692 int
2693 main ()
2694 {
2695 exit (42);
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702   (eval $ac_compile) 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } &&
2709          { ac_try='test -z "$ac_c_werror_flag"
2710                          || test ! -s conftest.err'
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); }; } &&
2716          { ac_try='test -s conftest.$ac_objext'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722   break
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 fi
2728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729 done
2730 rm -f conftest*
2731 if test -n "$ac_declaration"; then
2732   echo '#ifdef __cplusplus' >>confdefs.h
2733   echo $ac_declaration      >>confdefs.h
2734   echo '#endif'             >>confdefs.h
2735 fi
2736
2737 else
2738   echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741 fi
2742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743 ac_ext=c
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748
2749 if test "x$CC" != xcc; then
2750   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2751 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2752 else
2753   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2754 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2755 fi
2756 set dummy $CC; ac_cc=`echo $2 |
2757                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2758 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2759   echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761   cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h.  */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h.  */
2767
2768 int
2769 main ()
2770 {
2771
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 # Make sure it works both with $CC and with simple cc.
2777 # We do the test twice because some compilers refuse to overwrite an
2778 # existing .o file with -o, though they will create one.
2779 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2780 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); } &&
2785    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); };
2790 then
2791   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2792   if test "x$CC" != xcc; then
2793     # Test first that cc exists at all.
2794     if { ac_try='cc -c conftest.$ac_ext >&5'
2795   { (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); }; }; then
2800       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2801       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802   (eval $ac_try) 2>&5
2803   ac_status=$?
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); } &&
2806          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); };
2811       then
2812         # cc works too.
2813         :
2814       else
2815         # cc exists but doesn't like -o.
2816         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2817       fi
2818     fi
2819   fi
2820 else
2821   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2822 fi
2823 rm -f conftest*
2824
2825 fi
2826 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2827   echo "$as_me:$LINENO: result: yes" >&5
2828 echo "${ECHO_T}yes" >&6
2829 else
2830   echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2832
2833 cat >>confdefs.h <<\_ACEOF
2834 #define NO_MINUS_C_MINUS_O 1
2835 _ACEOF
2836
2837 fi
2838
2839 # expand $ac_aux_dir to an absolute path
2840 am_aux_dir=`cd $ac_aux_dir && pwd`
2841
2842 # FIXME: we rely on the cache variable name because
2843 # there is no other way.
2844 set dummy $CC
2845 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2846 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2847    # Losing compiler, so override with the script.
2848    # FIXME: It is wrong to rewrite CC.
2849    # But if we don't then we get into trouble of one sort or another.
2850    # A longer-term fix would be to have automake use am__CC in this case,
2851    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2852    CC="$am_aux_dir/compile $CC"
2853 fi
2854
2855 # autoconf is lame and doesn't give us any substitution variable for this.
2856 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2857   NO_MINUS_C_MINUS_O=yes
2858 else
2859   OUTPUT_OPTION='-o $@'
2860 fi
2861
2862
2863
2864 # -------------------------
2865 # Check C compiler features
2866 # -------------------------
2867
2868 ac_ext=c
2869 ac_cpp='$CPP $CPPFLAGS'
2870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2874 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2875 # On Suns, sometimes $CPP names a directory.
2876 if test -n "$CPP" && test -d "$CPP"; then
2877   CPP=
2878 fi
2879 if test -z "$CPP"; then
2880   if test "${ac_cv_prog_CPP+set}" = set; then
2881   echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883       # Double quotes because CPP needs to be expanded
2884     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2885     do
2886       ac_preproc_ok=false
2887 for ac_c_preproc_warn_flag in '' yes
2888 do
2889   # Use a header file that comes with gcc, so configuring glibc
2890   # with a fresh cross-compiler works.
2891   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892   # <limits.h> exists even on freestanding compilers.
2893   # On the NeXT, cc -E runs the code through the compiler's parser,
2894   # not just through cpp. "Syntax error" is here to catch this case.
2895   cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h.  */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h.  */
2901 #ifdef __STDC__
2902 # include <limits.h>
2903 #else
2904 # include <assert.h>
2905 #endif
2906                      Syntax error
2907 _ACEOF
2908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2909   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2910   ac_status=$?
2911   grep -v '^ *+' conftest.er1 >conftest.err
2912   rm -f conftest.er1
2913   cat conftest.err >&5
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); } >/dev/null; then
2916   if test -s conftest.err; then
2917     ac_cpp_err=$ac_c_preproc_warn_flag
2918     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2919   else
2920     ac_cpp_err=
2921   fi
2922 else
2923   ac_cpp_err=yes
2924 fi
2925 if test -z "$ac_cpp_err"; then
2926   :
2927 else
2928   echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931   # Broken: fails on valid input.
2932 continue
2933 fi
2934 rm -f conftest.err conftest.$ac_ext
2935
2936   # OK, works on sane cases.  Now check whether non-existent headers
2937   # can be detected and how.
2938   cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h.  */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h.  */
2944 #include <ac_nonexistent.h>
2945 _ACEOF
2946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948   ac_status=$?
2949   grep -v '^ *+' conftest.er1 >conftest.err
2950   rm -f conftest.er1
2951   cat conftest.err >&5
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); } >/dev/null; then
2954   if test -s conftest.err; then
2955     ac_cpp_err=$ac_c_preproc_warn_flag
2956     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2957   else
2958     ac_cpp_err=
2959   fi
2960 else
2961   ac_cpp_err=yes
2962 fi
2963 if test -z "$ac_cpp_err"; then
2964   # Broken: success on invalid input.
2965 continue
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970   # Passes both tests.
2971 ac_preproc_ok=:
2972 break
2973 fi
2974 rm -f conftest.err conftest.$ac_ext
2975
2976 done
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.$ac_ext
2979 if $ac_preproc_ok; then
2980   break
2981 fi
2982
2983     done
2984     ac_cv_prog_CPP=$CPP
2985
2986 fi
2987   CPP=$ac_cv_prog_CPP
2988 else
2989   ac_cv_prog_CPP=$CPP
2990 fi
2991 echo "$as_me:$LINENO: result: $CPP" >&5
2992 echo "${ECHO_T}$CPP" >&6
2993 ac_preproc_ok=false
2994 for ac_c_preproc_warn_flag in '' yes
2995 do
2996   # Use a header file that comes with gcc, so configuring glibc
2997   # with a fresh cross-compiler works.
2998   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2999   # <limits.h> exists even on freestanding compilers.
3000   # On the NeXT, cc -E runs the code through the compiler's parser,
3001   # not just through cpp. "Syntax error" is here to catch this case.
3002   cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008 #ifdef __STDC__
3009 # include <limits.h>
3010 #else
3011 # include <assert.h>
3012 #endif
3013                      Syntax error
3014 _ACEOF
3015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3017   ac_status=$?
3018   grep -v '^ *+' conftest.er1 >conftest.err
3019   rm -f conftest.er1
3020   cat conftest.err >&5
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); } >/dev/null; then
3023   if test -s conftest.err; then
3024     ac_cpp_err=$ac_c_preproc_warn_flag
3025     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3026   else
3027     ac_cpp_err=
3028   fi
3029 else
3030   ac_cpp_err=yes
3031 fi
3032 if test -z "$ac_cpp_err"; then
3033   :
3034 else
3035   echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038   # Broken: fails on valid input.
3039 continue
3040 fi
3041 rm -f conftest.err conftest.$ac_ext
3042
3043   # OK, works on sane cases.  Now check whether non-existent headers
3044   # can be detected and how.
3045   cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051 #include <ac_nonexistent.h>
3052 _ACEOF
3053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055   ac_status=$?
3056   grep -v '^ *+' conftest.er1 >conftest.err
3057   rm -f conftest.er1
3058   cat conftest.err >&5
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); } >/dev/null; then
3061   if test -s conftest.err; then
3062     ac_cpp_err=$ac_c_preproc_warn_flag
3063     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3064   else
3065     ac_cpp_err=
3066   fi
3067 else
3068   ac_cpp_err=yes
3069 fi
3070 if test -z "$ac_cpp_err"; then
3071   # Broken: success on invalid input.
3072 continue
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077   # Passes both tests.
3078 ac_preproc_ok=:
3079 break
3080 fi
3081 rm -f conftest.err conftest.$ac_ext
3082
3083 done
3084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3085 rm -f conftest.err conftest.$ac_ext
3086 if $ac_preproc_ok; then
3087   :
3088 else
3089   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&5
3091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&2;}
3093    { (exit 1); exit 1; }; }
3094 fi
3095
3096 ac_ext=c
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101
3102
3103 echo "$as_me:$LINENO: checking for inline" >&5
3104 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3105 if test "${ac_cv_c_inline+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108   ac_cv_c_inline=no
3109 for ac_kw in inline __inline__ __inline; do
3110   cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116 #ifndef __cplusplus
3117 typedef int foo_t;
3118 static $ac_kw foo_t static_foo () {return 0; }
3119 $ac_kw foo_t foo () {return 0; }
3120 #endif
3121
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125   (eval $ac_compile) 2>conftest.er1
3126   ac_status=$?
3127   grep -v '^ *+' conftest.er1 >conftest.err
3128   rm -f conftest.er1
3129   cat conftest.err >&5
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } &&
3132          { ac_try='test -z "$ac_c_werror_flag"
3133                          || test ! -s conftest.err'
3134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135   (eval $ac_try) 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }; } &&
3139          { ac_try='test -s conftest.$ac_objext'
3140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141   (eval $ac_try) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; }; then
3145   ac_cv_c_inline=$ac_kw; break
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 fi
3151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3152 done
3153
3154 fi
3155 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3156 echo "${ECHO_T}$ac_cv_c_inline" >&6
3157
3158
3159 case $ac_cv_c_inline in
3160   inline | yes) ;;
3161   *)
3162     case $ac_cv_c_inline in
3163       no) ac_val=;;
3164       *) ac_val=$ac_cv_c_inline;;
3165     esac
3166     cat >>confdefs.h <<_ACEOF
3167 #ifndef __cplusplus
3168 #define inline $ac_val
3169 #endif
3170 _ACEOF
3171     ;;
3172 esac
3173
3174
3175 echo "$as_me:$LINENO: checking for long long int" >&5
3176 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3177 if test "${ac_cv_c_long_long+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186
3187 int
3188 main ()
3189 {
3190 long long int i;
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3197   (eval $ac_compile) 2>conftest.er1
3198   ac_status=$?
3199   grep -v '^ *+' conftest.er1 >conftest.err
3200   rm -f conftest.er1
3201   cat conftest.err >&5
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); } &&
3204          { ac_try='test -z "$ac_c_werror_flag"
3205                          || test ! -s conftest.err'
3206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207   (eval $ac_try) 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; } &&
3211          { ac_try='test -s conftest.$ac_objext'
3212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213   (eval $ac_try) 2>&5
3214   ac_status=$?
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); }; }; then
3217   ac_cv_c_long_long=yes
3218 else
3219   echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222 ac_cv_c_long_long=no
3223 fi
3224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3225 fi
3226 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3227 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3228   if test $ac_cv_c_long_long = yes; then
3229
3230 cat >>confdefs.h <<\_ACEOF
3231 #define HAVE_LONG_LONG 1
3232 _ACEOF
3233
3234   fi
3235 echo "$as_me:$LINENO: checking for __int64" >&5
3236 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3237 if test "${ac_cv_c___int64+set}" = set; then
3238   echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240   cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h.  */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h.  */
3246
3247 int
3248 main ()
3249 {
3250 __int64 i;
3251   ;
3252   return 0;
3253 }
3254 _ACEOF
3255 rm -f conftest.$ac_objext
3256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257   (eval $ac_compile) 2>conftest.er1
3258   ac_status=$?
3259   grep -v '^ *+' conftest.er1 >conftest.err
3260   rm -f conftest.er1
3261   cat conftest.err >&5
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); } &&
3264          { ac_try='test -z "$ac_c_werror_flag"
3265                          || test ! -s conftest.err'
3266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267   (eval $ac_try) 2>&5
3268   ac_status=$?
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); }; } &&
3271          { ac_try='test -s conftest.$ac_objext'
3272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273   (eval $ac_try) 2>&5
3274   ac_status=$?
3275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276   (exit $ac_status); }; }; then
3277   ac_cv_c___int64=yes
3278 else
3279   echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 ac_cv_c___int64=no
3283 fi
3284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3285 fi
3286 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3287 echo "${ECHO_T}$ac_cv_c___int64" >&6
3288   if test $ac_cv_c___int64 = yes; then
3289
3290 cat >>confdefs.h <<\_ACEOF
3291 #define HAVE___INT64 1
3292 _ACEOF
3293
3294   fi
3295
3296
3297 # sizeof(char) is 1 by definition.
3298
3299 echo "$as_me:$LINENO: checking for egrep" >&5
3300 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3301 if test "${ac_cv_prog_egrep+set}" = set; then
3302   echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3305     then ac_cv_prog_egrep='grep -E'
3306     else ac_cv_prog_egrep='egrep'
3307     fi
3308 fi
3309 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3310 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3311  EGREP=$ac_cv_prog_egrep
3312
3313
3314 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3316 if test "${ac_cv_header_stdc+set}" = set; then
3317   echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319   cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h.  */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h.  */
3325 #include <stdlib.h>
3326 #include <stdarg.h>
3327 #include <string.h>
3328 #include <float.h>
3329
3330 int
3331 main ()
3332 {
3333
3334   ;
3335   return 0;
3336 }
3337 _ACEOF
3338 rm -f conftest.$ac_objext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340   (eval $ac_compile) 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } &&
3347          { ac_try='test -z "$ac_c_werror_flag"
3348                          || test ! -s conftest.err'
3349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350   (eval $ac_try) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; } &&
3354          { ac_try='test -s conftest.$ac_objext'
3355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356   (eval $ac_try) 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; }; then
3360   ac_cv_header_stdc=yes
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 ac_cv_header_stdc=no
3366 fi
3367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3368
3369 if test $ac_cv_header_stdc = yes; then
3370   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3371   cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h.  */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h.  */
3377 #include <string.h>
3378
3379 _ACEOF
3380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3381   $EGREP "memchr" >/dev/null 2>&1; then
3382   :
3383 else
3384   ac_cv_header_stdc=no
3385 fi
3386 rm -f conftest*
3387
3388 fi
3389
3390 if test $ac_cv_header_stdc = yes; then
3391   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3392   cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h.  */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h.  */
3398 #include <stdlib.h>
3399
3400 _ACEOF
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402   $EGREP "free" >/dev/null 2>&1; then
3403   :
3404 else
3405   ac_cv_header_stdc=no
3406 fi
3407 rm -f conftest*
3408
3409 fi
3410
3411 if test $ac_cv_header_stdc = yes; then
3412   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3413   if test "$cross_compiling" = yes; then
3414   :
3415 else
3416   cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h.  */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h.  */
3422 #include <ctype.h>
3423 #if ((' ' & 0x0FF) == 0x020)
3424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3426 #else
3427 # define ISLOWER(c) \
3428                    (('a' <= (c) && (c) <= 'i') \
3429                      || ('j' <= (c) && (c) <= 'r') \
3430                      || ('s' <= (c) && (c) <= 'z'))
3431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3432 #endif
3433
3434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3435 int
3436 main ()
3437 {
3438   int i;
3439   for (i = 0; i < 256; i++)
3440     if (XOR (islower (i), ISLOWER (i))
3441         || toupper (i) != TOUPPER (i))
3442       exit(2);
3443   exit (0);
3444 }
3445 _ACEOF
3446 rm -f conftest$ac_exeext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3448   (eval $ac_link) 2>&5
3449   ac_status=$?
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; }; then
3457   :
3458 else
3459   echo "$as_me: program exited with status $ac_status" >&5
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 ( exit $ac_status )
3464 ac_cv_header_stdc=no
3465 fi
3466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3467 fi
3468 fi
3469 fi
3470 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3471 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3472 if test $ac_cv_header_stdc = yes; then
3473
3474 cat >>confdefs.h <<\_ACEOF
3475 #define STDC_HEADERS 1
3476 _ACEOF
3477
3478 fi
3479
3480 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3491                   inttypes.h stdint.h unistd.h
3492 do
3493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3494 echo "$as_me:$LINENO: checking for $ac_header" >&5
3495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3497   echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499   cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505 $ac_includes_default
3506
3507 #include <$ac_header>
3508 _ACEOF
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511   (eval $ac_compile) 2>conftest.er1
3512   ac_status=$?
3513   grep -v '^ *+' conftest.er1 >conftest.err
3514   rm -f conftest.er1
3515   cat conftest.err >&5
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); } &&
3518          { ac_try='test -z "$ac_c_werror_flag"
3519                          || test ! -s conftest.err'
3520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521   (eval $ac_try) 2>&5
3522   ac_status=$?
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); }; } &&
3525          { ac_try='test -s conftest.$ac_objext'
3526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527   (eval $ac_try) 2>&5
3528   ac_status=$?
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); }; }; then
3531   eval "$as_ac_Header=yes"
3532 else
3533   echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3535
3536 eval "$as_ac_Header=no"
3537 fi
3538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3539 fi
3540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3543   cat >>confdefs.h <<_ACEOF
3544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3545 _ACEOF
3546
3547 fi
3548
3549 done
3550
3551
3552 echo "$as_me:$LINENO: checking for void *" >&5
3553 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3554 if test "${ac_cv_type_void_p+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h.  */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h.  */
3563 $ac_includes_default
3564 int
3565 main ()
3566 {
3567 if ((void * *) 0)
3568   return 0;
3569 if (sizeof (void *))
3570   return 0;
3571   ;
3572   return 0;
3573 }
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577   (eval $ac_compile) 2>conftest.er1
3578   ac_status=$?
3579   grep -v '^ *+' conftest.er1 >conftest.err
3580   rm -f conftest.er1
3581   cat conftest.err >&5
3582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); } &&
3584          { ac_try='test -z "$ac_c_werror_flag"
3585                          || test ! -s conftest.err'
3586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587   (eval $ac_try) 2>&5
3588   ac_status=$?
3589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590   (exit $ac_status); }; } &&
3591          { ac_try='test -s conftest.$ac_objext'
3592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593   (eval $ac_try) 2>&5
3594   ac_status=$?
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); }; }; then
3597   ac_cv_type_void_p=yes
3598 else
3599   echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602 ac_cv_type_void_p=no
3603 fi
3604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3606 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3607 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3608
3609 echo "$as_me:$LINENO: checking size of void *" >&5
3610 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3611 if test "${ac_cv_sizeof_void_p+set}" = set; then
3612   echo $ECHO_N "(cached) $ECHO_C" >&6
3613 else
3614   if test "$ac_cv_type_void_p" = yes; then
3615   # The cast to unsigned long works around a bug in the HP C Compiler
3616   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3617   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3618   # This bug is HP SR number 8606223364.
3619   if test "$cross_compiling" = yes; then
3620   # Depending upon the size, compute the lo and hi bounds.
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h.  */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h.  */
3627 $ac_includes_default
3628 int
3629 main ()
3630 {
3631 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3632 test_array [0] = 0
3633
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3640   (eval $ac_compile) 2>conftest.er1
3641   ac_status=$?
3642   grep -v '^ *+' conftest.er1 >conftest.err
3643   rm -f conftest.er1
3644   cat conftest.err >&5
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); } &&
3647          { ac_try='test -z "$ac_c_werror_flag"
3648                          || test ! -s conftest.err'
3649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650   (eval $ac_try) 2>&5
3651   ac_status=$?
3652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); }; } &&
3654          { ac_try='test -s conftest.$ac_objext'
3655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656   (eval $ac_try) 2>&5
3657   ac_status=$?
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); }; }; then
3660   ac_lo=0 ac_mid=0
3661   while :; do
3662     cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 $ac_includes_default
3669 int
3670 main ()
3671 {
3672 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3673 test_array [0] = 0
3674
3675   ;
3676   return 0;
3677 }
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681   (eval $ac_compile) 2>conftest.er1
3682   ac_status=$?
3683   grep -v '^ *+' conftest.er1 >conftest.err
3684   rm -f conftest.er1
3685   cat conftest.err >&5
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); } &&
3688          { ac_try='test -z "$ac_c_werror_flag"
3689                          || test ! -s conftest.err'
3690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691   (eval $ac_try) 2>&5
3692   ac_status=$?
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); }; } &&
3695          { ac_try='test -s conftest.$ac_objext'
3696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697   (eval $ac_try) 2>&5
3698   ac_status=$?
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); }; }; then
3701   ac_hi=$ac_mid; break
3702 else
3703   echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 ac_lo=`expr $ac_mid + 1`
3707                     if test $ac_lo -le $ac_mid; then
3708                       ac_lo= ac_hi=
3709                       break
3710                     fi
3711                     ac_mid=`expr 2 '*' $ac_mid + 1`
3712 fi
3713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3714   done
3715 else
3716   echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h.  */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h.  */
3725 $ac_includes_default
3726 int
3727 main ()
3728 {
3729 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3730 test_array [0] = 0
3731
3732   ;
3733   return 0;
3734 }
3735 _ACEOF
3736 rm -f conftest.$ac_objext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738   (eval $ac_compile) 2>conftest.er1
3739   ac_status=$?
3740   grep -v '^ *+' conftest.er1 >conftest.err
3741   rm -f conftest.er1
3742   cat conftest.err >&5
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); } &&
3745          { ac_try='test -z "$ac_c_werror_flag"
3746                          || test ! -s conftest.err'
3747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748   (eval $ac_try) 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); }; } &&
3752          { ac_try='test -s conftest.$ac_objext'
3753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754   (eval $ac_try) 2>&5
3755   ac_status=$?
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); }; }; then
3758   ac_hi=-1 ac_mid=-1
3759   while :; do
3760     cat >conftest.$ac_ext <<_ACEOF
3761 /* confdefs.h.  */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h.  */
3766 $ac_includes_default
3767 int
3768 main ()
3769 {
3770 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3771 test_array [0] = 0
3772
3773   ;
3774   return 0;
3775 }
3776 _ACEOF
3777 rm -f conftest.$ac_objext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779   (eval $ac_compile) 2>conftest.er1
3780   ac_status=$?
3781   grep -v '^ *+' conftest.er1 >conftest.err
3782   rm -f conftest.er1
3783   cat conftest.err >&5
3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); } &&
3786          { ac_try='test -z "$ac_c_werror_flag"
3787                          || test ! -s conftest.err'
3788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789   (eval $ac_try) 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); }; } &&
3793          { ac_try='test -s conftest.$ac_objext'
3794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795   (eval $ac_try) 2>&5
3796   ac_status=$?
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); }; }; then
3799   ac_lo=$ac_mid; break
3800 else
3801   echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804 ac_hi=`expr '(' $ac_mid ')' - 1`
3805                        if test $ac_mid -le $ac_hi; then
3806                          ac_lo= ac_hi=
3807                          break
3808                        fi
3809                        ac_mid=`expr 2 '*' $ac_mid`
3810 fi
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812   done
3813 else
3814   echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817 ac_lo= ac_hi=
3818 fi
3819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3820 fi
3821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3822 # Binary search between lo and hi bounds.
3823 while test "x$ac_lo" != "x$ac_hi"; do
3824   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3825   cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h.  */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h.  */
3831 $ac_includes_default
3832 int
3833 main ()
3834 {
3835 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3836 test_array [0] = 0
3837
3838   ;
3839   return 0;
3840 }
3841 _ACEOF
3842 rm -f conftest.$ac_objext
3843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3844   (eval $ac_compile) 2>conftest.er1
3845   ac_status=$?
3846   grep -v '^ *+' conftest.er1 >conftest.err
3847   rm -f conftest.er1
3848   cat conftest.err >&5
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); } &&
3851          { ac_try='test -z "$ac_c_werror_flag"
3852                          || test ! -s conftest.err'
3853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854   (eval $ac_try) 2>&5
3855   ac_status=$?
3856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857   (exit $ac_status); }; } &&
3858          { ac_try='test -s conftest.$ac_objext'
3859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860   (eval $ac_try) 2>&5
3861   ac_status=$?
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); }; }; then
3864   ac_hi=$ac_mid
3865 else
3866   echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3868
3869 ac_lo=`expr '(' $ac_mid ')' + 1`
3870 fi
3871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3872 done
3873 case $ac_lo in
3874 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3875 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3876 See \`config.log' for more details." >&5
3877 echo "$as_me: error: cannot compute sizeof (void *), 77
3878 See \`config.log' for more details." >&2;}
3879    { (exit 1); exit 1; }; } ;;
3880 esac
3881 else
3882   if test "$cross_compiling" = yes; then
3883   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3884 See \`config.log' for more details." >&5
3885 echo "$as_me: error: cannot run test program while cross compiling
3886 See \`config.log' for more details." >&2;}
3887    { (exit 1); exit 1; }; }
3888 else
3889   cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h.  */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h.  */
3895 $ac_includes_default
3896 long longval () { return (long) (sizeof (void *)); }
3897 unsigned long ulongval () { return (long) (sizeof (void *)); }
3898 #include <stdio.h>
3899 #include <stdlib.h>
3900 int
3901 main ()
3902 {
3903
3904   FILE *f = fopen ("conftest.val", "w");
3905   if (! f)
3906     exit (1);
3907   if (((long) (sizeof (void *))) < 0)
3908     {
3909       long i = longval ();
3910       if (i != ((long) (sizeof (void *))))
3911         exit (1);
3912       fprintf (f, "%ld\n", i);
3913     }
3914   else
3915     {
3916       unsigned long i = ulongval ();
3917       if (i != ((long) (sizeof (void *))))
3918         exit (1);
3919       fprintf (f, "%lu\n", i);
3920     }
3921   exit (ferror (f) || fclose (f) != 0);
3922
3923   ;
3924   return 0;
3925 }
3926 _ACEOF
3927 rm -f conftest$ac_exeext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929   (eval $ac_link) 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934   (eval $ac_try) 2>&5
3935   ac_status=$?
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); }; }; then
3938   ac_cv_sizeof_void_p=`cat conftest.val`
3939 else
3940   echo "$as_me: program exited with status $ac_status" >&5
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944 ( exit $ac_status )
3945 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3946 See \`config.log' for more details." >&5
3947 echo "$as_me: error: cannot compute sizeof (void *), 77
3948 See \`config.log' for more details." >&2;}
3949    { (exit 1); exit 1; }; }
3950 fi
3951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3952 fi
3953 fi
3954 rm -f conftest.val
3955 else
3956   ac_cv_sizeof_void_p=0
3957 fi
3958 fi
3959 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3960 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3961 cat >>confdefs.h <<_ACEOF
3962 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3963 _ACEOF
3964
3965
3966 echo "$as_me:$LINENO: checking for short" >&5
3967 echo $ECHO_N "checking for short... $ECHO_C" >&6
3968 if test "${ac_cv_type_short+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h.  */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h.  */
3977 $ac_includes_default
3978 int
3979 main ()
3980 {
3981 if ((short *) 0)
3982   return 0;
3983 if (sizeof (short))
3984   return 0;
3985   ;
3986   return 0;
3987 }
3988 _ACEOF
3989 rm -f conftest.$ac_objext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991   (eval $ac_compile) 2>conftest.er1
3992   ac_status=$?
3993   grep -v '^ *+' conftest.er1 >conftest.err
3994   rm -f conftest.er1
3995   cat conftest.err >&5
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); } &&
3998          { ac_try='test -z "$ac_c_werror_flag"
3999                          || test ! -s conftest.err'
4000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001   (eval $ac_try) 2>&5
4002   ac_status=$?
4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); }; } &&
4005          { ac_try='test -s conftest.$ac_objext'
4006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007   (eval $ac_try) 2>&5
4008   ac_status=$?
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); }; }; then
4011   ac_cv_type_short=yes
4012 else
4013   echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4015
4016 ac_cv_type_short=no
4017 fi
4018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4019 fi
4020 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4021 echo "${ECHO_T}$ac_cv_type_short" >&6
4022
4023 echo "$as_me:$LINENO: checking size of short" >&5
4024 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4025 if test "${ac_cv_sizeof_short+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   if test "$ac_cv_type_short" = yes; then
4029   # The cast to unsigned long works around a bug in the HP C Compiler
4030   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4031   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4032   # This bug is HP SR number 8606223364.
4033   if test "$cross_compiling" = yes; then
4034   # Depending upon the size, compute the lo and hi bounds.
4035 cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h.  */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h.  */
4041 $ac_includes_default
4042 int
4043 main ()
4044 {
4045 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4046 test_array [0] = 0
4047
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
4052 rm -f conftest.$ac_objext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054   (eval $ac_compile) 2>conftest.er1
4055   ac_status=$?
4056   grep -v '^ *+' conftest.er1 >conftest.err
4057   rm -f conftest.er1
4058   cat conftest.err >&5
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); } &&
4061          { ac_try='test -z "$ac_c_werror_flag"
4062                          || test ! -s conftest.err'
4063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064   (eval $ac_try) 2>&5
4065   ac_status=$?
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); }; } &&
4068          { ac_try='test -s conftest.$ac_objext'
4069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070   (eval $ac_try) 2>&5
4071   ac_status=$?
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); }; }; then
4074   ac_lo=0 ac_mid=0
4075   while :; do
4076     cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h.  */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h.  */
4082 $ac_includes_default
4083 int
4084 main ()
4085 {
4086 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4087 test_array [0] = 0
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095   (eval $ac_compile) 2>conftest.er1
4096   ac_status=$?
4097   grep -v '^ *+' conftest.er1 >conftest.err
4098   rm -f conftest.er1
4099   cat conftest.err >&5
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); } &&
4102          { ac_try='test -z "$ac_c_werror_flag"
4103                          || test ! -s conftest.err'
4104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105   (eval $ac_try) 2>&5
4106   ac_status=$?
4107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108   (exit $ac_status); }; } &&
4109          { ac_try='test -s conftest.$ac_objext'
4110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111   (eval $ac_try) 2>&5
4112   ac_status=$?
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); }; }; then
4115   ac_hi=$ac_mid; break
4116 else
4117   echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 ac_lo=`expr $ac_mid + 1`
4121                     if test $ac_lo -le $ac_mid; then
4122                       ac_lo= ac_hi=
4123                       break
4124                     fi
4125                     ac_mid=`expr 2 '*' $ac_mid + 1`
4126 fi
4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4128   done
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 cat >conftest.$ac_ext <<_ACEOF
4134 /* confdefs.h.  */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h.  */
4139 $ac_includes_default
4140 int
4141 main ()
4142 {
4143 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4144 test_array [0] = 0
4145
4146   ;
4147   return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152   (eval $ac_compile) 2>conftest.er1
4153   ac_status=$?
4154   grep -v '^ *+' conftest.er1 >conftest.err
4155   rm -f conftest.er1
4156   cat conftest.err >&5
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); } &&
4159          { ac_try='test -z "$ac_c_werror_flag"
4160                          || test ! -s conftest.err'
4161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162   (eval $ac_try) 2>&5
4163   ac_status=$?
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); }; } &&
4166          { ac_try='test -s conftest.$ac_objext'
4167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168   (eval $ac_try) 2>&5
4169   ac_status=$?
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); }; }; then
4172   ac_hi=-1 ac_mid=-1
4173   while :; do
4174     cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h.  */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h.  */
4180 $ac_includes_default
4181 int
4182 main ()
4183 {
4184 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4185 test_array [0] = 0
4186
4187   ;
4188   return 0;
4189 }
4190 _ACEOF
4191 rm -f conftest.$ac_objext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193   (eval $ac_compile) 2>conftest.er1
4194   ac_status=$?
4195   grep -v '^ *+' conftest.er1 >conftest.err
4196   rm -f conftest.er1
4197   cat conftest.err >&5
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); } &&
4200          { ac_try='test -z "$ac_c_werror_flag"
4201                          || test ! -s conftest.err'
4202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203   (eval $ac_try) 2>&5
4204   ac_status=$?
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); }; } &&
4207          { ac_try='test -s conftest.$ac_objext'
4208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209   (eval $ac_try) 2>&5
4210   ac_status=$?
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); }; }; then
4213   ac_lo=$ac_mid; break
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 ac_hi=`expr '(' $ac_mid ')' - 1`
4219                        if test $ac_mid -le $ac_hi; then
4220                          ac_lo= ac_hi=
4221                          break
4222                        fi
4223                        ac_mid=`expr 2 '*' $ac_mid`
4224 fi
4225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4226   done
4227 else
4228   echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4230
4231 ac_lo= ac_hi=
4232 fi
4233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4234 fi
4235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4236 # Binary search between lo and hi bounds.
4237 while test "x$ac_lo" != "x$ac_hi"; do
4238   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4239   cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4245 $ac_includes_default
4246 int
4247 main ()
4248 {
4249 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4250 test_array [0] = 0
4251
4252   ;
4253   return 0;
4254 }
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4258   (eval $ac_compile) 2>conftest.er1
4259   ac_status=$?
4260   grep -v '^ *+' conftest.er1 >conftest.err
4261   rm -f conftest.er1
4262   cat conftest.err >&5
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); } &&
4265          { ac_try='test -z "$ac_c_werror_flag"
4266                          || test ! -s conftest.err'
4267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268   (eval $ac_try) 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }; } &&
4272          { ac_try='test -s conftest.$ac_objext'
4273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274   (eval $ac_try) 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; }; then
4278   ac_hi=$ac_mid
4279 else
4280   echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283 ac_lo=`expr '(' $ac_mid ')' + 1`
4284 fi
4285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4286 done
4287 case $ac_lo in
4288 ?*) ac_cv_sizeof_short=$ac_lo;;
4289 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4290 See \`config.log' for more details." >&5
4291 echo "$as_me: error: cannot compute sizeof (short), 77
4292 See \`config.log' for more details." >&2;}
4293    { (exit 1); exit 1; }; } ;;
4294 esac
4295 else
4296   if test "$cross_compiling" = yes; then
4297   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4298 See \`config.log' for more details." >&5
4299 echo "$as_me: error: cannot run test program while cross compiling
4300 See \`config.log' for more details." >&2;}
4301    { (exit 1); exit 1; }; }
4302 else
4303   cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h.  */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h.  */
4309 $ac_includes_default
4310 long longval () { return (long) (sizeof (short)); }
4311 unsigned long ulongval () { return (long) (sizeof (short)); }
4312 #include <stdio.h>
4313 #include <stdlib.h>
4314 int
4315 main ()
4316 {
4317
4318   FILE *f = fopen ("conftest.val", "w");
4319   if (! f)
4320     exit (1);
4321   if (((long) (sizeof (short))) < 0)
4322     {
4323       long i = longval ();
4324       if (i != ((long) (sizeof (short))))
4325         exit (1);
4326       fprintf (f, "%ld\n", i);
4327     }
4328   else
4329     {
4330       unsigned long i = ulongval ();
4331       if (i != ((long) (sizeof (short))))
4332         exit (1);
4333       fprintf (f, "%lu\n", i);
4334     }
4335   exit (ferror (f) || fclose (f) != 0);
4336
4337   ;
4338   return 0;
4339 }
4340 _ACEOF
4341 rm -f conftest$ac_exeext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4343   (eval $ac_link) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348   (eval $ac_try) 2>&5
4349   ac_status=$?
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); }; }; then
4352   ac_cv_sizeof_short=`cat conftest.val`
4353 else
4354   echo "$as_me: program exited with status $ac_status" >&5
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 ( exit $ac_status )
4359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4360 See \`config.log' for more details." >&5
4361 echo "$as_me: error: cannot compute sizeof (short), 77
4362 See \`config.log' for more details." >&2;}
4363    { (exit 1); exit 1; }; }
4364 fi
4365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4366 fi
4367 fi
4368 rm -f conftest.val
4369 else
4370   ac_cv_sizeof_short=0
4371 fi
4372 fi
4373 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4374 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4375 cat >>confdefs.h <<_ACEOF
4376 #define SIZEOF_SHORT $ac_cv_sizeof_short
4377 _ACEOF
4378
4379
4380 echo "$as_me:$LINENO: checking for int" >&5
4381 echo $ECHO_N "checking for int... $ECHO_C" >&6
4382 if test "${ac_cv_type_int+set}" = set; then
4383   echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385   cat >conftest.$ac_ext <<_ACEOF
4386 /* confdefs.h.  */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h.  */
4391 $ac_includes_default
4392 int
4393 main ()
4394 {
4395 if ((int *) 0)
4396   return 0;
4397 if (sizeof (int))
4398   return 0;
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.$ac_objext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405   (eval $ac_compile) 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } &&
4412          { ac_try='test -z "$ac_c_werror_flag"
4413                          || test ! -s conftest.err'
4414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415   (eval $ac_try) 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); }; } &&
4419          { ac_try='test -s conftest.$ac_objext'
4420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421   (eval $ac_try) 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); }; }; then
4425   ac_cv_type_int=yes
4426 else
4427   echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 ac_cv_type_int=no
4431 fi
4432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4433 fi
4434 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4435 echo "${ECHO_T}$ac_cv_type_int" >&6
4436
4437 echo "$as_me:$LINENO: checking size of int" >&5
4438 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4439 if test "${ac_cv_sizeof_int+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   if test "$ac_cv_type_int" = yes; then
4443   # The cast to unsigned long works around a bug in the HP C Compiler
4444   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4445   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4446   # This bug is HP SR number 8606223364.
4447   if test "$cross_compiling" = yes; then
4448   # Depending upon the size, compute the lo and hi bounds.
4449 cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 $ac_includes_default
4456 int
4457 main ()
4458 {
4459 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4460 test_array [0] = 0
4461
4462   ;
4463   return 0;
4464 }
4465 _ACEOF
4466 rm -f conftest.$ac_objext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468   (eval $ac_compile) 2>conftest.er1
4469   ac_status=$?
4470   grep -v '^ *+' conftest.er1 >conftest.err
4471   rm -f conftest.er1
4472   cat conftest.err >&5
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); } &&
4475          { ac_try='test -z "$ac_c_werror_flag"
4476                          || test ! -s conftest.err'
4477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478   (eval $ac_try) 2>&5
4479   ac_status=$?
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); }; } &&
4482          { ac_try='test -s conftest.$ac_objext'
4483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484   (eval $ac_try) 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); }; }; then
4488   ac_lo=0 ac_mid=0
4489   while :; do
4490     cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h.  */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h.  */
4496 $ac_includes_default
4497 int
4498 main ()
4499 {
4500 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4501 test_array [0] = 0
4502
4503   ;
4504   return 0;
4505 }
4506 _ACEOF
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509   (eval $ac_compile) 2>conftest.er1
4510   ac_status=$?
4511   grep -v '^ *+' conftest.er1 >conftest.err
4512   rm -f conftest.er1
4513   cat conftest.err >&5
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); } &&
4516          { ac_try='test -z "$ac_c_werror_flag"
4517                          || test ! -s conftest.err'
4518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519   (eval $ac_try) 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; } &&
4523          { ac_try='test -s conftest.$ac_objext'
4524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525   (eval $ac_try) 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); }; }; then
4529   ac_hi=$ac_mid; break
4530 else
4531   echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 ac_lo=`expr $ac_mid + 1`
4535                     if test $ac_lo -le $ac_mid; then
4536                       ac_lo= ac_hi=
4537                       break
4538                     fi
4539                     ac_mid=`expr 2 '*' $ac_mid + 1`
4540 fi
4541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4542   done
4543 else
4544   echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h.  */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h.  */
4553 $ac_includes_default
4554 int
4555 main ()
4556 {
4557 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4558 test_array [0] = 0
4559
4560   ;
4561   return 0;
4562 }
4563 _ACEOF
4564 rm -f conftest.$ac_objext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566   (eval $ac_compile) 2>conftest.er1
4567   ac_status=$?
4568   grep -v '^ *+' conftest.er1 >conftest.err
4569   rm -f conftest.er1
4570   cat conftest.err >&5
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); } &&
4573          { ac_try='test -z "$ac_c_werror_flag"
4574                          || test ! -s conftest.err'
4575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576   (eval $ac_try) 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; } &&
4580          { ac_try='test -s conftest.$ac_objext'
4581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582   (eval $ac_try) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); }; }; then
4586   ac_hi=-1 ac_mid=-1
4587   while :; do
4588     cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594 $ac_includes_default
4595 int
4596 main ()
4597 {
4598 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4599 test_array [0] = 0
4600
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607   (eval $ac_compile) 2>conftest.er1
4608   ac_status=$?
4609   grep -v '^ *+' conftest.er1 >conftest.err
4610   rm -f conftest.er1
4611   cat conftest.err >&5
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } &&
4614          { ac_try='test -z "$ac_c_werror_flag"
4615                          || test ! -s conftest.err'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest.$ac_objext'
4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623   (eval $ac_try) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; }; then
4627   ac_lo=$ac_mid; break
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 ac_hi=`expr '(' $ac_mid ')' - 1`
4633                        if test $ac_mid -le $ac_hi; then
4634                          ac_lo= ac_hi=
4635                          break
4636                        fi
4637                        ac_mid=`expr 2 '*' $ac_mid`
4638 fi
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640   done
4641 else
4642   echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645 ac_lo= ac_hi=
4646 fi
4647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4648 fi
4649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4650 # Binary search between lo and hi bounds.
4651 while test "x$ac_lo" != "x$ac_hi"; do
4652   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4653   cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h.  */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h.  */
4659 $ac_includes_default
4660 int
4661 main ()
4662 {
4663 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4664 test_array [0] = 0
4665
4666   ;
4667   return 0;
4668 }
4669 _ACEOF
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672   (eval $ac_compile) 2>conftest.er1
4673   ac_status=$?
4674   grep -v '^ *+' conftest.er1 >conftest.err
4675   rm -f conftest.er1
4676   cat conftest.err >&5
4677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678   (exit $ac_status); } &&
4679          { ac_try='test -z "$ac_c_werror_flag"
4680                          || test ! -s conftest.err'
4681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682   (eval $ac_try) 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; } &&
4686          { ac_try='test -s conftest.$ac_objext'
4687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688   (eval $ac_try) 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); }; }; then
4692   ac_hi=$ac_mid
4693 else
4694   echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ac_lo=`expr '(' $ac_mid ')' + 1`
4698 fi
4699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700 done
4701 case $ac_lo in
4702 ?*) ac_cv_sizeof_int=$ac_lo;;
4703 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4704 See \`config.log' for more details." >&5
4705 echo "$as_me: error: cannot compute sizeof (int), 77
4706 See \`config.log' for more details." >&2;}
4707    { (exit 1); exit 1; }; } ;;
4708 esac
4709 else
4710   if test "$cross_compiling" = yes; then
4711   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4712 See \`config.log' for more details." >&5
4713 echo "$as_me: error: cannot run test program while cross compiling
4714 See \`config.log' for more details." >&2;}
4715    { (exit 1); exit 1; }; }
4716 else
4717   cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h.  */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h.  */
4723 $ac_includes_default
4724 long longval () { return (long) (sizeof (int)); }
4725 unsigned long ulongval () { return (long) (sizeof (int)); }
4726 #include <stdio.h>
4727 #include <stdlib.h>
4728 int
4729 main ()
4730 {
4731
4732   FILE *f = fopen ("conftest.val", "w");
4733   if (! f)
4734     exit (1);
4735   if (((long) (sizeof (int))) < 0)
4736     {
4737       long i = longval ();
4738       if (i != ((long) (sizeof (int))))
4739         exit (1);
4740       fprintf (f, "%ld\n", i);
4741     }
4742   else
4743     {
4744       unsigned long i = ulongval ();
4745       if (i != ((long) (sizeof (int))))
4746         exit (1);
4747       fprintf (f, "%lu\n", i);
4748     }
4749   exit (ferror (f) || fclose (f) != 0);
4750
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest$ac_exeext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4757   (eval $ac_link) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762   (eval $ac_try) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; }; then
4766   ac_cv_sizeof_int=`cat conftest.val`
4767 else
4768   echo "$as_me: program exited with status $ac_status" >&5
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ( exit $ac_status )
4773 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4774 See \`config.log' for more details." >&5
4775 echo "$as_me: error: cannot compute sizeof (int), 77
4776 See \`config.log' for more details." >&2;}
4777    { (exit 1); exit 1; }; }
4778 fi
4779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4780 fi
4781 fi
4782 rm -f conftest.val
4783 else
4784   ac_cv_sizeof_int=0
4785 fi
4786 fi
4787 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4788 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4789 cat >>confdefs.h <<_ACEOF
4790 #define SIZEOF_INT $ac_cv_sizeof_int
4791 _ACEOF
4792
4793
4794 echo "$as_me:$LINENO: checking for long" >&5
4795 echo $ECHO_N "checking for long... $ECHO_C" >&6
4796 if test "${ac_cv_type_long+set}" = set; then
4797   echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799   cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h.  */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h.  */
4805 $ac_includes_default
4806 int
4807 main ()
4808 {
4809 if ((long *) 0)
4810   return 0;
4811 if (sizeof (long))
4812   return 0;
4813   ;
4814   return 0;
4815 }
4816 _ACEOF
4817 rm -f conftest.$ac_objext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819   (eval $ac_compile) 2>conftest.er1
4820   ac_status=$?
4821   grep -v '^ *+' conftest.er1 >conftest.err
4822   rm -f conftest.er1
4823   cat conftest.err >&5
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); } &&
4826          { ac_try='test -z "$ac_c_werror_flag"
4827                          || test ! -s conftest.err'
4828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829   (eval $ac_try) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); }; } &&
4833          { ac_try='test -s conftest.$ac_objext'
4834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835   (eval $ac_try) 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); }; }; then
4839   ac_cv_type_long=yes
4840 else
4841   echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4843
4844 ac_cv_type_long=no
4845 fi
4846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4847 fi
4848 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4849 echo "${ECHO_T}$ac_cv_type_long" >&6
4850
4851 echo "$as_me:$LINENO: checking size of long" >&5
4852 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4853 if test "${ac_cv_sizeof_long+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   if test "$ac_cv_type_long" = yes; then
4857   # The cast to unsigned long works around a bug in the HP C Compiler
4858   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4859   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4860   # This bug is HP SR number 8606223364.
4861   if test "$cross_compiling" = yes; then
4862   # Depending upon the size, compute the lo and hi bounds.
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h.  */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h.  */
4869 $ac_includes_default
4870 int
4871 main ()
4872 {
4873 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4874 test_array [0] = 0
4875
4876   ;
4877   return 0;
4878 }
4879 _ACEOF
4880 rm -f conftest.$ac_objext
4881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4882   (eval $ac_compile) 2>conftest.er1
4883   ac_status=$?
4884   grep -v '^ *+' conftest.er1 >conftest.err
4885   rm -f conftest.er1
4886   cat conftest.err >&5
4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888   (exit $ac_status); } &&
4889          { ac_try='test -z "$ac_c_werror_flag"
4890                          || test ! -s conftest.err'
4891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892   (eval $ac_try) 2>&5
4893   ac_status=$?
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); }; } &&
4896          { ac_try='test -s conftest.$ac_objext'
4897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898   (eval $ac_try) 2>&5
4899   ac_status=$?
4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901   (exit $ac_status); }; }; then
4902   ac_lo=0 ac_mid=0
4903   while :; do
4904     cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h.  */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h.  */
4910 $ac_includes_default
4911 int
4912 main ()
4913 {
4914 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4915 test_array [0] = 0
4916
4917   ;
4918   return 0;
4919 }
4920 _ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923   (eval $ac_compile) 2>conftest.er1
4924   ac_status=$?
4925   grep -v '^ *+' conftest.er1 >conftest.err
4926   rm -f conftest.er1
4927   cat conftest.err >&5
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); } &&
4930          { ac_try='test -z "$ac_c_werror_flag"
4931                          || test ! -s conftest.err'
4932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933   (eval $ac_try) 2>&5
4934   ac_status=$?
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); }; } &&
4937          { ac_try='test -s conftest.$ac_objext'
4938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939   (eval $ac_try) 2>&5
4940   ac_status=$?
4941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942   (exit $ac_status); }; }; then
4943   ac_hi=$ac_mid; break
4944 else
4945   echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 ac_lo=`expr $ac_mid + 1`
4949                     if test $ac_lo -le $ac_mid; then
4950                       ac_lo= ac_hi=
4951                       break
4952                     fi
4953                     ac_mid=`expr 2 '*' $ac_mid + 1`
4954 fi
4955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4956   done
4957 else
4958   echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4960
4961 cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h.  */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h.  */
4967 $ac_includes_default
4968 int
4969 main ()
4970 {
4971 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4972 test_array [0] = 0
4973
4974   ;
4975   return 0;
4976 }
4977 _ACEOF
4978 rm -f conftest.$ac_objext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980   (eval $ac_compile) 2>conftest.er1
4981   ac_status=$?
4982   grep -v '^ *+' conftest.er1 >conftest.err
4983   rm -f conftest.er1
4984   cat conftest.err >&5
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); } &&
4987          { ac_try='test -z "$ac_c_werror_flag"
4988                          || test ! -s conftest.err'
4989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990   (eval $ac_try) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); }; } &&
4994          { ac_try='test -s conftest.$ac_objext'
4995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996   (eval $ac_try) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }; }; then
5000   ac_hi=-1 ac_mid=-1
5001   while :; do
5002     cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h.  */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h.  */
5008 $ac_includes_default
5009 int
5010 main ()
5011 {
5012 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5013 test_array [0] = 0
5014
5015   ;
5016   return 0;
5017 }
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021   (eval $ac_compile) 2>conftest.er1
5022   ac_status=$?
5023   grep -v '^ *+' conftest.er1 >conftest.err
5024   rm -f conftest.er1
5025   cat conftest.err >&5
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); } &&
5028          { ac_try='test -z "$ac_c_werror_flag"
5029                          || test ! -s conftest.err'
5030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031   (eval $ac_try) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); }; } &&
5035          { ac_try='test -s conftest.$ac_objext'
5036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037   (eval $ac_try) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); }; }; then
5041   ac_lo=$ac_mid; break
5042 else
5043   echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046 ac_hi=`expr '(' $ac_mid ')' - 1`
5047                        if test $ac_mid -le $ac_hi; then
5048                          ac_lo= ac_hi=
5049                          break
5050                        fi
5051                        ac_mid=`expr 2 '*' $ac_mid`
5052 fi
5053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5054   done
5055 else
5056   echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5058
5059 ac_lo= ac_hi=
5060 fi
5061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5062 fi
5063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5064 # Binary search between lo and hi bounds.
5065 while test "x$ac_lo" != "x$ac_hi"; do
5066   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5067   cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073 $ac_includes_default
5074 int
5075 main ()
5076 {
5077 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5078 test_array [0] = 0
5079
5080   ;
5081   return 0;
5082 }
5083 _ACEOF
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086   (eval $ac_compile) 2>conftest.er1
5087   ac_status=$?
5088   grep -v '^ *+' conftest.er1 >conftest.err
5089   rm -f conftest.er1
5090   cat conftest.err >&5
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); } &&
5093          { ac_try='test -z "$ac_c_werror_flag"
5094                          || test ! -s conftest.err'
5095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096   (eval $ac_try) 2>&5
5097   ac_status=$?
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); }; } &&
5100          { ac_try='test -s conftest.$ac_objext'
5101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102   (eval $ac_try) 2>&5
5103   ac_status=$?
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); }; }; then
5106   ac_hi=$ac_mid
5107 else
5108   echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5110
5111 ac_lo=`expr '(' $ac_mid ')' + 1`
5112 fi
5113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5114 done
5115 case $ac_lo in
5116 ?*) ac_cv_sizeof_long=$ac_lo;;
5117 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5118 See \`config.log' for more details." >&5
5119 echo "$as_me: error: cannot compute sizeof (long), 77
5120 See \`config.log' for more details." >&2;}
5121    { (exit 1); exit 1; }; } ;;
5122 esac
5123 else
5124   if test "$cross_compiling" = yes; then
5125   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5126 See \`config.log' for more details." >&5
5127 echo "$as_me: error: cannot run test program while cross compiling
5128 See \`config.log' for more details." >&2;}
5129    { (exit 1); exit 1; }; }
5130 else
5131   cat >conftest.$ac_ext <<_ACEOF
5132 /* confdefs.h.  */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h.  */
5137 $ac_includes_default
5138 long longval () { return (long) (sizeof (long)); }
5139 unsigned long ulongval () { return (long) (sizeof (long)); }
5140 #include <stdio.h>
5141 #include <stdlib.h>
5142 int
5143 main ()
5144 {
5145
5146   FILE *f = fopen ("conftest.val", "w");
5147   if (! f)
5148     exit (1);
5149   if (((long) (sizeof (long))) < 0)
5150     {
5151       long i = longval ();
5152       if (i != ((long) (sizeof (long))))
5153         exit (1);
5154       fprintf (f, "%ld\n", i);
5155     }
5156   else
5157     {
5158       unsigned long i = ulongval ();
5159       if (i != ((long) (sizeof (long))))
5160         exit (1);
5161       fprintf (f, "%lu\n", i);
5162     }
5163   exit (ferror (f) || fclose (f) != 0);
5164
5165   ;
5166   return 0;
5167 }
5168 _ACEOF
5169 rm -f conftest$ac_exeext
5170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5171   (eval $ac_link) 2>&5
5172   ac_status=$?
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176   (eval $ac_try) 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); }; }; then
5180   ac_cv_sizeof_long=`cat conftest.val`
5181 else
5182   echo "$as_me: program exited with status $ac_status" >&5
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ( exit $ac_status )
5187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5188 See \`config.log' for more details." >&5
5189 echo "$as_me: error: cannot compute sizeof (long), 77
5190 See \`config.log' for more details." >&2;}
5191    { (exit 1); exit 1; }; }
5192 fi
5193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5194 fi
5195 fi
5196 rm -f conftest.val
5197 else
5198   ac_cv_sizeof_long=0
5199 fi
5200 fi
5201 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5202 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5203 cat >>confdefs.h <<_ACEOF
5204 #define SIZEOF_LONG $ac_cv_sizeof_long
5205 _ACEOF
5206
5207
5208 if test $ac_cv_c_long_long = yes; then
5209   echo "$as_me:$LINENO: checking for long long" >&5
5210 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5211 if test "${ac_cv_type_long_long+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h.  */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h.  */
5220 $ac_includes_default
5221 int
5222 main ()
5223 {
5224 if ((long long *) 0)
5225   return 0;
5226 if (sizeof (long long))
5227   return 0;
5228   ;
5229   return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest.$ac_objext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5234   (eval $ac_compile) 2>conftest.er1
5235   ac_status=$?
5236   grep -v '^ *+' conftest.er1 >conftest.err
5237   rm -f conftest.er1
5238   cat conftest.err >&5
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); } &&
5241          { ac_try='test -z "$ac_c_werror_flag"
5242                          || test ! -s conftest.err'
5243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244   (eval $ac_try) 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); }; } &&
5248          { ac_try='test -s conftest.$ac_objext'
5249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250   (eval $ac_try) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); }; }; then
5254   ac_cv_type_long_long=yes
5255 else
5256   echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 ac_cv_type_long_long=no
5260 fi
5261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5262 fi
5263 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5264 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5265
5266 echo "$as_me:$LINENO: checking size of long long" >&5
5267 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5268 if test "${ac_cv_sizeof_long_long+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   if test "$ac_cv_type_long_long" = yes; then
5272   # The cast to unsigned long works around a bug in the HP C Compiler
5273   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5274   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5275   # This bug is HP SR number 8606223364.
5276   if test "$cross_compiling" = yes; then
5277   # Depending upon the size, compute the lo and hi bounds.
5278 cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h.  */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h.  */
5284 $ac_includes_default
5285 int
5286 main ()
5287 {
5288 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5289 test_array [0] = 0
5290
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 rm -f conftest.$ac_objext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297   (eval $ac_compile) 2>conftest.er1
5298   ac_status=$?
5299   grep -v '^ *+' conftest.er1 >conftest.err
5300   rm -f conftest.er1
5301   cat conftest.err >&5
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); } &&
5304          { ac_try='test -z "$ac_c_werror_flag"
5305                          || test ! -s conftest.err'
5306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307   (eval $ac_try) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); }; } &&
5311          { ac_try='test -s conftest.$ac_objext'
5312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313   (eval $ac_try) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; }; then
5317   ac_lo=0 ac_mid=0
5318   while :; do
5319     cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325 $ac_includes_default
5326 int
5327 main ()
5328 {
5329 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5330 test_array [0] = 0
5331
5332   ;
5333   return 0;
5334 }
5335 _ACEOF
5336 rm -f conftest.$ac_objext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338   (eval $ac_compile) 2>conftest.er1
5339   ac_status=$?
5340   grep -v '^ *+' conftest.er1 >conftest.err
5341   rm -f conftest.er1
5342   cat conftest.err >&5
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); } &&
5345          { ac_try='test -z "$ac_c_werror_flag"
5346                          || test ! -s conftest.err'
5347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348   (eval $ac_try) 2>&5
5349   ac_status=$?
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); }; } &&
5352          { ac_try='test -s conftest.$ac_objext'
5353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354   (eval $ac_try) 2>&5
5355   ac_status=$?
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); }; }; then
5358   ac_hi=$ac_mid; break
5359 else
5360   echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363 ac_lo=`expr $ac_mid + 1`
5364                     if test $ac_lo -le $ac_mid; then
5365                       ac_lo= ac_hi=
5366                       break
5367                     fi
5368                     ac_mid=`expr 2 '*' $ac_mid + 1`
5369 fi
5370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5371   done
5372 else
5373   echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h.  */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h.  */
5382 $ac_includes_default
5383 int
5384 main ()
5385 {
5386 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5387 test_array [0] = 0
5388
5389   ;
5390   return 0;
5391 }
5392 _ACEOF
5393 rm -f conftest.$ac_objext
5394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5395   (eval $ac_compile) 2>conftest.er1
5396   ac_status=$?
5397   grep -v '^ *+' conftest.er1 >conftest.err
5398   rm -f conftest.er1
5399   cat conftest.err >&5
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } &&
5402          { ac_try='test -z "$ac_c_werror_flag"
5403                          || test ! -s conftest.err'
5404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405   (eval $ac_try) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }; } &&
5409          { ac_try='test -s conftest.$ac_objext'
5410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411   (eval $ac_try) 2>&5
5412   ac_status=$?
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); }; }; then
5415   ac_hi=-1 ac_mid=-1
5416   while :; do
5417     cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h.  */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h.  */
5423 $ac_includes_default
5424 int
5425 main ()
5426 {
5427 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5428 test_array [0] = 0
5429
5430   ;
5431   return 0;
5432 }
5433 _ACEOF
5434 rm -f conftest.$ac_objext
5435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5436   (eval $ac_compile) 2>conftest.er1
5437   ac_status=$?
5438   grep -v '^ *+' conftest.er1 >conftest.err
5439   rm -f conftest.er1
5440   cat conftest.err >&5
5441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442   (exit $ac_status); } &&
5443          { ac_try='test -z "$ac_c_werror_flag"
5444                          || test ! -s conftest.err'
5445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446   (eval $ac_try) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); }; } &&
5450          { ac_try='test -s conftest.$ac_objext'
5451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452   (eval $ac_try) 2>&5
5453   ac_status=$?
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); }; }; then
5456   ac_lo=$ac_mid; break
5457 else
5458   echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 ac_hi=`expr '(' $ac_mid ')' - 1`
5462                        if test $ac_mid -le $ac_hi; then
5463                          ac_lo= ac_hi=
5464                          break
5465                        fi
5466                        ac_mid=`expr 2 '*' $ac_mid`
5467 fi
5468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469   done
5470 else
5471   echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5473
5474 ac_lo= ac_hi=
5475 fi
5476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5477 fi
5478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5479 # Binary search between lo and hi bounds.
5480 while test "x$ac_lo" != "x$ac_hi"; do
5481   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5482   cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h.  */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h.  */
5488 $ac_includes_default
5489 int
5490 main ()
5491 {
5492 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5493 test_array [0] = 0
5494
5495   ;
5496   return 0;
5497 }
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501   (eval $ac_compile) 2>conftest.er1
5502   ac_status=$?
5503   grep -v '^ *+' conftest.er1 >conftest.err
5504   rm -f conftest.er1
5505   cat conftest.err >&5
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); } &&
5508          { ac_try='test -z "$ac_c_werror_flag"
5509                          || test ! -s conftest.err'
5510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511   (eval $ac_try) 2>&5
5512   ac_status=$?
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); }; } &&
5515          { ac_try='test -s conftest.$ac_objext'
5516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517   (eval $ac_try) 2>&5
5518   ac_status=$?
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); }; }; then
5521   ac_hi=$ac_mid
5522 else
5523   echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5525
5526 ac_lo=`expr '(' $ac_mid ')' + 1`
5527 fi
5528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5529 done
5530 case $ac_lo in
5531 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5532 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5533 See \`config.log' for more details." >&5
5534 echo "$as_me: error: cannot compute sizeof (long long), 77
5535 See \`config.log' for more details." >&2;}
5536    { (exit 1); exit 1; }; } ;;
5537 esac
5538 else
5539   if test "$cross_compiling" = yes; then
5540   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5541 See \`config.log' for more details." >&5
5542 echo "$as_me: error: cannot run test program while cross compiling
5543 See \`config.log' for more details." >&2;}
5544    { (exit 1); exit 1; }; }
5545 else
5546   cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h.  */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h.  */
5552 $ac_includes_default
5553 long longval () { return (long) (sizeof (long long)); }
5554 unsigned long ulongval () { return (long) (sizeof (long long)); }
5555 #include <stdio.h>
5556 #include <stdlib.h>
5557 int
5558 main ()
5559 {
5560
5561   FILE *f = fopen ("conftest.val", "w");
5562   if (! f)
5563     exit (1);
5564   if (((long) (sizeof (long long))) < 0)
5565     {
5566       long i = longval ();
5567       if (i != ((long) (sizeof (long long))))
5568         exit (1);
5569       fprintf (f, "%ld\n", i);
5570     }
5571   else
5572     {
5573       unsigned long i = ulongval ();
5574       if (i != ((long) (sizeof (long long))))
5575         exit (1);
5576       fprintf (f, "%lu\n", i);
5577     }
5578   exit (ferror (f) || fclose (f) != 0);
5579
5580   ;
5581   return 0;
5582 }
5583 _ACEOF
5584 rm -f conftest$ac_exeext
5585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5586   (eval $ac_link) 2>&5
5587   ac_status=$?
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591   (eval $ac_try) 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); }; }; then
5595   ac_cv_sizeof_long_long=`cat conftest.val`
5596 else
5597   echo "$as_me: program exited with status $ac_status" >&5
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601 ( exit $ac_status )
5602 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5603 See \`config.log' for more details." >&5
5604 echo "$as_me: error: cannot compute sizeof (long long), 77
5605 See \`config.log' for more details." >&2;}
5606    { (exit 1); exit 1; }; }
5607 fi
5608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5609 fi
5610 fi
5611 rm -f conftest.val
5612 else
5613   ac_cv_sizeof_long_long=0
5614 fi
5615 fi
5616 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5617 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5618 cat >>confdefs.h <<_ACEOF
5619 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5620 _ACEOF
5621
5622
5623 fi
5624 if test $ac_cv_c___int64 = yes; then
5625   echo "$as_me:$LINENO: checking for __int64" >&5
5626 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5627 if test "${ac_cv_type___int64+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630   cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h.  */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h.  */
5636 $ac_includes_default
5637 int
5638 main ()
5639 {
5640 if ((__int64 *) 0)
5641   return 0;
5642 if (sizeof (__int64))
5643   return 0;
5644   ;
5645   return 0;
5646 }
5647 _ACEOF
5648 rm -f conftest.$ac_objext
5649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5650   (eval $ac_compile) 2>conftest.er1
5651   ac_status=$?
5652   grep -v '^ *+' conftest.er1 >conftest.err
5653   rm -f conftest.er1
5654   cat conftest.err >&5
5655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656   (exit $ac_status); } &&
5657          { ac_try='test -z "$ac_c_werror_flag"
5658                          || test ! -s conftest.err'
5659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660   (eval $ac_try) 2>&5
5661   ac_status=$?
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); }; } &&
5664          { ac_try='test -s conftest.$ac_objext'
5665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666   (eval $ac_try) 2>&5
5667   ac_status=$?
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); }; }; then
5670   ac_cv_type___int64=yes
5671 else
5672   echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 ac_cv_type___int64=no
5676 fi
5677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5678 fi
5679 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5680 echo "${ECHO_T}$ac_cv_type___int64" >&6
5681
5682 echo "$as_me:$LINENO: checking size of __int64" >&5
5683 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5684 if test "${ac_cv_sizeof___int64+set}" = set; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687   if test "$ac_cv_type___int64" = yes; then
5688   # The cast to unsigned long works around a bug in the HP C Compiler
5689   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5690   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5691   # This bug is HP SR number 8606223364.
5692   if test "$cross_compiling" = yes; then
5693   # Depending upon the size, compute the lo and hi bounds.
5694 cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h.  */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h.  */
5700 $ac_includes_default
5701 int
5702 main ()
5703 {
5704 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5705 test_array [0] = 0
5706
5707   ;
5708   return 0;
5709 }
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713   (eval $ac_compile) 2>conftest.er1
5714   ac_status=$?
5715   grep -v '^ *+' conftest.er1 >conftest.err
5716   rm -f conftest.er1
5717   cat conftest.err >&5
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); } &&
5720          { ac_try='test -z "$ac_c_werror_flag"
5721                          || test ! -s conftest.err'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; } &&
5727          { ac_try='test -s conftest.$ac_objext'
5728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729   (eval $ac_try) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }; }; then
5733   ac_lo=0 ac_mid=0
5734   while :; do
5735     cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h.  */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h.  */
5741 $ac_includes_default
5742 int
5743 main ()
5744 {
5745 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5746 test_array [0] = 0
5747
5748   ;
5749   return 0;
5750 }
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754   (eval $ac_compile) 2>conftest.er1
5755   ac_status=$?
5756   grep -v '^ *+' conftest.er1 >conftest.err
5757   rm -f conftest.er1
5758   cat conftest.err >&5
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); } &&
5761          { ac_try='test -z "$ac_c_werror_flag"
5762                          || test ! -s conftest.err'
5763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764   (eval $ac_try) 2>&5
5765   ac_status=$?
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); }; } &&
5768          { ac_try='test -s conftest.$ac_objext'
5769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770   (eval $ac_try) 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }; }; then
5774   ac_hi=$ac_mid; break
5775 else
5776   echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5778
5779 ac_lo=`expr $ac_mid + 1`
5780                     if test $ac_lo -le $ac_mid; then
5781                       ac_lo= ac_hi=
5782                       break
5783                     fi
5784                     ac_mid=`expr 2 '*' $ac_mid + 1`
5785 fi
5786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5787   done
5788 else
5789   echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5791
5792 cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h.  */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h.  */
5798 $ac_includes_default
5799 int
5800 main ()
5801 {
5802 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5803 test_array [0] = 0
5804
5805   ;
5806   return 0;
5807 }
5808 _ACEOF
5809 rm -f conftest.$ac_objext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811   (eval $ac_compile) 2>conftest.er1
5812   ac_status=$?
5813   grep -v '^ *+' conftest.er1 >conftest.err
5814   rm -f conftest.er1
5815   cat conftest.err >&5
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); } &&
5818          { ac_try='test -z "$ac_c_werror_flag"
5819                          || test ! -s conftest.err'
5820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821   (eval $ac_try) 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }; } &&
5825          { ac_try='test -s conftest.$ac_objext'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; }; then
5831   ac_hi=-1 ac_mid=-1
5832   while :; do
5833     cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h.  */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h.  */
5839 $ac_includes_default
5840 int
5841 main ()
5842 {
5843 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5844 test_array [0] = 0
5845
5846   ;
5847   return 0;
5848 }
5849 _ACEOF
5850 rm -f conftest.$ac_objext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852   (eval $ac_compile) 2>conftest.er1
5853   ac_status=$?
5854   grep -v '^ *+' conftest.er1 >conftest.err
5855   rm -f conftest.er1
5856   cat conftest.err >&5
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); } &&
5859          { ac_try='test -z "$ac_c_werror_flag"
5860                          || test ! -s conftest.err'
5861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862   (eval $ac_try) 2>&5
5863   ac_status=$?
5864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865   (exit $ac_status); }; } &&
5866          { ac_try='test -s conftest.$ac_objext'
5867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868   (eval $ac_try) 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); }; }; then
5872   ac_lo=$ac_mid; break
5873 else
5874   echo "$as_me: failed program was:" >&5
5875 sed 's/^/| /' conftest.$ac_ext >&5
5876
5877 ac_hi=`expr '(' $ac_mid ')' - 1`
5878                        if test $ac_mid -le $ac_hi; then
5879                          ac_lo= ac_hi=
5880                          break
5881                        fi
5882                        ac_mid=`expr 2 '*' $ac_mid`
5883 fi
5884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5885   done
5886 else
5887   echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890 ac_lo= ac_hi=
5891 fi
5892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5893 fi
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 # Binary search between lo and hi bounds.
5896 while test "x$ac_lo" != "x$ac_hi"; do
5897   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5898   cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h.  */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h.  */
5904 $ac_includes_default
5905 int
5906 main ()
5907 {
5908 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5909 test_array [0] = 0
5910
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5917   (eval $ac_compile) 2>conftest.er1
5918   ac_status=$?
5919   grep -v '^ *+' conftest.er1 >conftest.err
5920   rm -f conftest.er1
5921   cat conftest.err >&5
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); } &&
5924          { ac_try='test -z "$ac_c_werror_flag"
5925                          || test ! -s conftest.err'
5926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927   (eval $ac_try) 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); }; } &&
5931          { ac_try='test -s conftest.$ac_objext'
5932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933   (eval $ac_try) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; }; then
5937   ac_hi=$ac_mid
5938 else
5939   echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 ac_lo=`expr '(' $ac_mid ')' + 1`
5943 fi
5944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5945 done
5946 case $ac_lo in
5947 ?*) ac_cv_sizeof___int64=$ac_lo;;
5948 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5949 See \`config.log' for more details." >&5
5950 echo "$as_me: error: cannot compute sizeof (__int64), 77
5951 See \`config.log' for more details." >&2;}
5952    { (exit 1); exit 1; }; } ;;
5953 esac
5954 else
5955   if test "$cross_compiling" = yes; then
5956   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5957 See \`config.log' for more details." >&5
5958 echo "$as_me: error: cannot run test program while cross compiling
5959 See \`config.log' for more details." >&2;}
5960    { (exit 1); exit 1; }; }
5961 else
5962   cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h.  */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h.  */
5968 $ac_includes_default
5969 long longval () { return (long) (sizeof (__int64)); }
5970 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5971 #include <stdio.h>
5972 #include <stdlib.h>
5973 int
5974 main ()
5975 {
5976
5977   FILE *f = fopen ("conftest.val", "w");
5978   if (! f)
5979     exit (1);
5980   if (((long) (sizeof (__int64))) < 0)
5981     {
5982       long i = longval ();
5983       if (i != ((long) (sizeof (__int64))))
5984         exit (1);
5985       fprintf (f, "%ld\n", i);
5986     }
5987   else
5988     {
5989       unsigned long i = ulongval ();
5990       if (i != ((long) (sizeof (__int64))))
5991         exit (1);
5992       fprintf (f, "%lu\n", i);
5993     }
5994   exit (ferror (f) || fclose (f) != 0);
5995
5996   ;
5997   return 0;
5998 }
5999 _ACEOF
6000 rm -f conftest$ac_exeext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6002   (eval $ac_link) 2>&5
6003   ac_status=$?
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007   (eval $ac_try) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }; }; then
6011   ac_cv_sizeof___int64=`cat conftest.val`
6012 else
6013   echo "$as_me: program exited with status $ac_status" >&5
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 ( exit $ac_status )
6018 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6019 See \`config.log' for more details." >&5
6020 echo "$as_me: error: cannot compute sizeof (__int64), 77
6021 See \`config.log' for more details." >&2;}
6022    { (exit 1); exit 1; }; }
6023 fi
6024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6025 fi
6026 fi
6027 rm -f conftest.val
6028 else
6029   ac_cv_sizeof___int64=0
6030 fi
6031 fi
6032 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6033 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6034 cat >>confdefs.h <<_ACEOF
6035 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6036 _ACEOF
6037
6038
6039 fi
6040
6041 # ---------------------
6042 # Warnings and checking
6043 # ---------------------
6044
6045 # Check $CC warning features (if it's GCC).
6046 # We want to use -pedantic, but we don't want warnings about
6047 # * 'long long'
6048 # * variadic macros
6049 # So, we only use -pedantic if we can disable those warnings.
6050
6051 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6052 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6053 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   save_CFLAGS="$CFLAGS"
6057   CFLAGS="-Wno-long-long"
6058   cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h.  */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h.  */
6064
6065 _ACEOF
6066 rm -f conftest.$ac_objext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068   (eval $ac_compile) 2>conftest.er1
6069   ac_status=$?
6070   grep -v '^ *+' conftest.er1 >conftest.err
6071   rm -f conftest.er1
6072   cat conftest.err >&5
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); } &&
6075          { ac_try='test -z "$ac_c_werror_flag"
6076                          || test ! -s conftest.err'
6077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078   (eval $ac_try) 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); }; } &&
6082          { ac_try='test -s conftest.$ac_objext'
6083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084   (eval $ac_try) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; }; then
6088   ac_cv_prog_cc_w_no_long_long=yes
6089 else
6090   echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093 ac_cv_prog_cc_w_no_long_long=no
6094 fi
6095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6096   CFLAGS="$save_CFLAGS"
6097
6098 fi
6099 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6100 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6101
6102 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6103 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6104 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6105   echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107   save_CFLAGS="$CFLAGS"
6108   CFLAGS="-Wno-variadic-macros"
6109   cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h.  */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h.  */
6115
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119   (eval $ac_compile) 2>conftest.er1
6120   ac_status=$?
6121   grep -v '^ *+' conftest.er1 >conftest.err
6122   rm -f conftest.er1
6123   cat conftest.err >&5
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); } &&
6126          { ac_try='test -z "$ac_c_werror_flag"
6127                          || test ! -s conftest.err'
6128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129   (eval $ac_try) 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); }; } &&
6133          { ac_try='test -s conftest.$ac_objext'
6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135   (eval $ac_try) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; }; then
6139   ac_cv_prog_cc_w_no_variadic_macros=yes
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 ac_cv_prog_cc_w_no_variadic_macros=no
6145 fi
6146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6147   CFLAGS="$save_CFLAGS"
6148
6149 fi
6150 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6151 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6152
6153 strict1_warn=
6154 if test $ac_cv_prog_cc_w_no_long_long = yes \
6155    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6156   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6157 fi
6158
6159
6160 # Add -Wold-style-definition if it's accepted
6161 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6162 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6163 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6164   echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166   save_CFLAGS="$CFLAGS"
6167   CFLAGS="-Wold-style-definition"
6168   cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174
6175 _ACEOF
6176 rm -f conftest.$ac_objext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178   (eval $ac_compile) 2>conftest.er1
6179   ac_status=$?
6180   grep -v '^ *+' conftest.er1 >conftest.err
6181   rm -f conftest.er1
6182   cat conftest.err >&5
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); } &&
6185          { ac_try='test -z "$ac_c_werror_flag"
6186                          || test ! -s conftest.err'
6187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188   (eval $ac_try) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); }; } &&
6192          { ac_try='test -s conftest.$ac_objext'
6193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194   (eval $ac_try) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; }; then
6198   ac_cv_prog_cc_w_old_style_definition=yes
6199 else
6200   echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203 ac_cv_prog_cc_w_old_style_definition=no
6204 fi
6205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6206   CFLAGS="$save_CFLAGS"
6207
6208 fi
6209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6210 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6211 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6212   strict1_warn="${strict1_warn} -Wold-style-definition"
6213 fi
6214
6215 # Enable -Werror, period.
6216 # Check whether --enable-werror_always or --disable-werror_always was given.
6217 if test "${enable_werror_always+set}" = set; then
6218   enableval="$enable_werror_always"
6219
6220 else
6221   enable_werror_always=no
6222 fi;
6223 if test x${enable_werror_always} = xyes ; then
6224   strict1_warn="${strict1_warn} -Werror"
6225   WERROR=-Werror
6226 fi
6227
6228 # If the native compiler is GCC, we can enable warnings even in stage1.
6229 # That's useful for people building cross-compilers, or just running a
6230 # quick `make'.
6231 warn_cflags=
6232 if test "x$GCC" = "xyes"; then
6233   warn_cflags='$(GCC_WARN_CFLAGS)'
6234 fi
6235
6236
6237 # Enable -Werror in bootstrap stage2 and later.
6238 # Check whether --enable-werror or --disable-werror was given.
6239 if test "${enable_werror+set}" = set; then
6240   enableval="$enable_werror"
6241
6242 else
6243   if test x$is_release = x ; then
6244   # Default to "yes" on development branches.
6245   enable_werror=yes
6246 else
6247   # Default to "no" on release branches.
6248   enable_werror=no
6249 fi
6250 fi;
6251 if test x$enable_werror = xyes ; then
6252   WERROR=-Werror
6253 fi
6254
6255
6256 # Enable expensive internal checks
6257 # Check whether --enable-checking or --disable-checking was given.
6258 if test "${enable_checking+set}" = set; then
6259   enableval="$enable_checking"
6260   ac_checking_flags="${enableval}"
6261 else
6262
6263 # Determine the default checks.
6264 if test x$is_release = x ; then
6265   ac_checking_flags=yes
6266 else
6267   ac_checking_flags=release
6268 fi
6269 fi;
6270 ac_assert_checking=1
6271 ac_checking=
6272 ac_tree_checking=
6273 ac_rtl_checking=
6274 ac_rtlflag_checking=
6275 ac_gc_checking=
6276 ac_gc_always_collect=
6277 ac_fold_checking=
6278 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6279 for check in $ac_checking_flags
6280 do
6281         case $check in
6282         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6283                         ac_tree_checking=1 ; ac_gc_checking=1 ;
6284                         ac_rtlflag_checking=1 ;;
6285         no)             ac_assert_checking= ; ac_checking= ;
6286                         ac_tree_checking= ; ac_rtl_checking= ;
6287                         ac_rtlflag_checking= ; ac_gc_checking= ;
6288                         ac_gc_always_collect= ; ac_fold_checking= ;;
6289         all)            ac_assert_checking=1 ; ac_checking=1 ;
6290                         ac_tree_checking=1 ; ac_rtl_checking=1 ;
6291                         ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6292                         ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6293         release)        ac_assert_checking=1 ;;
6294         assert)         ac_assert_checking=1 ;;
6295         fold)           ac_fold_checking=1 ;;
6296         gc)             ac_gc_checking=1 ;;
6297         gcac)           ac_gc_always_collect=1 ;;
6298         misc)           ac_checking=1 ;;
6299         rtlflag)        ac_rtlflag_checking=1 ;;
6300         rtl)            ac_rtl_checking=1 ;;
6301         tree)           ac_tree_checking=1 ;;
6302         valgrind)       ac_checking_valgrind=1 ;;
6303         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6304 echo "$as_me: error: unknown check category $check" >&2;}
6305    { (exit 1); exit 1; }; } ;;
6306         esac
6307 done
6308 IFS="$ac_save_IFS"
6309
6310 nocommon_flag=""
6311 if test x$ac_checking != x ; then
6312
6313 cat >>confdefs.h <<\_ACEOF
6314 #define ENABLE_CHECKING 1
6315 _ACEOF
6316
6317   nocommon_flag=-fno-common
6318 fi
6319
6320 if test x$ac_assert_checking != x ; then
6321
6322 cat >>confdefs.h <<\_ACEOF
6323 #define ENABLE_ASSERT_CHECKING 1
6324 _ACEOF
6325
6326 fi
6327 if test x$ac_tree_checking != x ; then
6328
6329 cat >>confdefs.h <<\_ACEOF
6330 #define ENABLE_TREE_CHECKING 1
6331 _ACEOF
6332
6333   TREEBROWSER=tree-browser.o
6334 fi
6335
6336 if test x$ac_rtl_checking != x ; then
6337
6338 cat >>confdefs.h <<\_ACEOF
6339 #define ENABLE_RTL_CHECKING 1
6340 _ACEOF
6341
6342 fi
6343 if test x$ac_rtlflag_checking != x ; then
6344
6345 cat >>confdefs.h <<\_ACEOF
6346 #define ENABLE_RTL_FLAG_CHECKING 1
6347 _ACEOF
6348
6349 fi
6350 if test x$ac_gc_checking != x ; then
6351
6352 cat >>confdefs.h <<\_ACEOF
6353 #define ENABLE_GC_CHECKING 1
6354 _ACEOF
6355
6356 fi
6357 if test x$ac_gc_always_collect != x ; then
6358
6359 cat >>confdefs.h <<\_ACEOF
6360 #define ENABLE_GC_ALWAYS_COLLECT 1
6361 _ACEOF
6362
6363 fi
6364 if test x$ac_fold_checking != x ; then
6365
6366 cat >>confdefs.h <<\_ACEOF
6367 #define ENABLE_FOLD_CHECKING 1
6368 _ACEOF
6369
6370 fi
6371 valgrind_path_defines=
6372 valgrind_command=
6373
6374 if test "${ac_cv_header_valgrind_h+set}" = set; then
6375   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6376 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6377 if test "${ac_cv_header_valgrind_h+set}" = set; then
6378   echo $ECHO_N "(cached) $ECHO_C" >&6
6379 fi
6380 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6381 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6382 else
6383   # Is the header compilable?
6384 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6385 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6386 cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h.  */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h.  */
6392 $ac_includes_default
6393 #include <valgrind.h>
6394 _ACEOF
6395 rm -f conftest.$ac_objext
6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397   (eval $ac_compile) 2>conftest.er1
6398   ac_status=$?
6399   grep -v '^ *+' conftest.er1 >conftest.err
6400   rm -f conftest.er1
6401   cat conftest.err >&5
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); } &&
6404          { ac_try='test -z "$ac_c_werror_flag"
6405                          || test ! -s conftest.err'
6406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407   (eval $ac_try) 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); }; } &&
6411          { ac_try='test -s conftest.$ac_objext'
6412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413   (eval $ac_try) 2>&5
6414   ac_status=$?
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); }; }; then
6417   ac_header_compiler=yes
6418 else
6419   echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6421
6422 ac_header_compiler=no
6423 fi
6424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6426 echo "${ECHO_T}$ac_header_compiler" >&6
6427
6428 # Is the header present?
6429 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6430 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h.  */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h.  */
6437 #include <valgrind.h>
6438 _ACEOF
6439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6441   ac_status=$?
6442   grep -v '^ *+' conftest.er1 >conftest.err
6443   rm -f conftest.er1
6444   cat conftest.err >&5
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); } >/dev/null; then
6447   if test -s conftest.err; then
6448     ac_cpp_err=$ac_c_preproc_warn_flag
6449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6450   else
6451     ac_cpp_err=
6452   fi
6453 else
6454   ac_cpp_err=yes
6455 fi
6456 if test -z "$ac_cpp_err"; then
6457   ac_header_preproc=yes
6458 else
6459   echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6461
6462   ac_header_preproc=no
6463 fi
6464 rm -f conftest.err conftest.$ac_ext
6465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6466 echo "${ECHO_T}$ac_header_preproc" >&6
6467
6468 # So?  What about this header?
6469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6470   yes:no: )
6471     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6472 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6473     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6474 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6475     ac_header_preproc=yes
6476     ;;
6477   no:yes:* )
6478     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6479 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6480     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6481 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6482     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6483 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6484     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6485 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6486     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6487 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6488     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6489 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6490     (
6491       cat <<\_ASBOX
6492 ## ------------------------------------------ ##
6493 ## Report this to the AC_PACKAGE_NAME lists.  ##
6494 ## ------------------------------------------ ##
6495 _ASBOX
6496     ) |
6497       sed "s/^/$as_me: WARNING:     /" >&2
6498     ;;
6499 esac
6500 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6501 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6502 if test "${ac_cv_header_valgrind_h+set}" = set; then
6503   echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505   ac_cv_header_valgrind_h=$ac_header_preproc
6506 fi
6507 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6508 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6509
6510 fi
6511 if test $ac_cv_header_valgrind_h = yes; then
6512   have_valgrind_h=yes
6513 else
6514   have_valgrind_h=no
6515 fi
6516
6517
6518
6519 if test x$ac_checking_valgrind != x ; then
6520   # It is certainly possible that there's valgrind but no valgrind.h.
6521   # GCC relies on making annotations so we must have both.
6522   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6523 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6524   cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h.  */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h.  */
6530 #include <valgrind/memcheck.h>
6531 #ifndef VALGRIND_DISCARD
6532 #error VALGRIND_DISCARD not defined
6533 #endif
6534 _ACEOF
6535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6536   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6537   ac_status=$?
6538   grep -v '^ *+' conftest.er1 >conftest.err
6539   rm -f conftest.er1
6540   cat conftest.err >&5
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); } >/dev/null; then
6543   if test -s conftest.err; then
6544     ac_cpp_err=$ac_c_preproc_warn_flag
6545     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6546   else
6547     ac_cpp_err=
6548   fi
6549 else
6550   ac_cpp_err=yes
6551 fi
6552 if test -z "$ac_cpp_err"; then
6553   gcc_cv_header_valgrind_memcheck_h=yes
6554 else
6555   echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6557
6558   gcc_cv_header_valgrind_memcheck_h=no
6559 fi
6560 rm -f conftest.err conftest.$ac_ext
6561   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6562 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6563   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6564 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6565   cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h.  */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h.  */
6571 #include <memcheck.h>
6572 #ifndef VALGRIND_DISCARD
6573 #error VALGRIND_DISCARD not defined
6574 #endif
6575 _ACEOF
6576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6578   ac_status=$?
6579   grep -v '^ *+' conftest.er1 >conftest.err
6580   rm -f conftest.er1
6581   cat conftest.err >&5
6582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583   (exit $ac_status); } >/dev/null; then
6584   if test -s conftest.err; then
6585     ac_cpp_err=$ac_c_preproc_warn_flag
6586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6587   else
6588     ac_cpp_err=
6589   fi
6590 else
6591   ac_cpp_err=yes
6592 fi
6593 if test -z "$ac_cpp_err"; then
6594   gcc_cv_header_memcheck_h=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599   gcc_cv_header_memcheck_h=no
6600 fi
6601 rm -f conftest.err conftest.$ac_ext
6602   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6603 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6604
6605 # Prepare PATH_SEPARATOR.
6606 # The user is always right.
6607 if test "${PATH_SEPARATOR+set}" != set; then
6608   echo "#! /bin/sh" >conf$$.sh
6609   echo  "exit 0"   >>conf$$.sh
6610   chmod +x conf$$.sh
6611   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6612     PATH_SEPARATOR=';'
6613   else
6614     PATH_SEPARATOR=:
6615   fi
6616   rm -f conf$$.sh
6617 fi
6618
6619 # Find out how to test for executable files. Don't use a zero-byte file,
6620 # as systems may use methods other than mode bits to determine executability.
6621 cat >conf$$.file <<_ASEOF
6622 #! /bin/sh
6623 exit 0
6624 _ASEOF
6625 chmod +x conf$$.file
6626 if test -x conf$$.file >/dev/null 2>&1; then
6627   ac_executable_p="test -x"
6628 else
6629   ac_executable_p="test -f"
6630 fi
6631 rm -f conf$$.file
6632
6633 # Extract the first word of "valgrind", so it can be a program name with args.
6634 set dummy valgrind; ac_word=$2
6635 echo "$as_me:$LINENO: checking for $ac_word" >&5
6636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6637 if test "${ac_cv_path_valgrind_path+set}" = set; then
6638   echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640   case "$valgrind_path" in
6641   [\\/]* | ?:[\\/]*)
6642     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6643     ;;
6644   *)
6645     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6646     for ac_dir in $PATH; do
6647       IFS="$ac_save_IFS"
6648       test -z "$ac_dir" && ac_dir=.
6649       for ac_exec_ext in '' $ac_executable_extensions; do
6650         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6651           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6652             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6653             break 2
6654           fi
6655         fi
6656       done
6657     done
6658     IFS="$ac_save_IFS"
6659     ;;
6660 esac
6661 fi
6662 valgrind_path="$ac_cv_path_valgrind_path"
6663 if test -n "$valgrind_path"; then
6664   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6665 echo "${ECHO_T}$valgrind_path" >&6
6666 else
6667   echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6
6669 fi
6670
6671   if test "x$valgrind_path" = "x" \
6672     || (test $have_valgrind_h = no \
6673         && test $gcc_cv_header_memcheck_h = no \
6674         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6675         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6676 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6677    { (exit 1); exit 1; }; }
6678   fi
6679   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6680   valgrind_command="$valgrind_path -q"
6681
6682 cat >>confdefs.h <<\_ACEOF
6683 #define ENABLE_VALGRIND_CHECKING 1
6684 _ACEOF
6685
6686   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6687
6688 cat >>confdefs.h <<\_ACEOF
6689 #define HAVE_VALGRIND_MEMCHECK_H 1
6690 _ACEOF
6691
6692   fi
6693   if test $gcc_cv_header_memcheck_h = yes; then
6694
6695 cat >>confdefs.h <<\_ACEOF
6696 #define HAVE_MEMCHECK_H 1
6697 _ACEOF
6698
6699   fi
6700 fi
6701
6702
6703
6704 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6705 if test "${enable_mapped_location+set}" = set; then
6706   enableval="$enable_mapped_location"
6707
6708 else
6709   enable_mapped_location=no
6710 fi;
6711
6712 if test "$enable_mapped_location" = yes ; then
6713
6714 cat >>confdefs.h <<\_ACEOF
6715 #define USE_MAPPED_LOCATION 1
6716 _ACEOF
6717
6718 fi
6719
6720 # Enable code coverage collection
6721 # Check whether --enable-coverage or --disable-coverage was given.
6722 if test "${enable_coverage+set}" = set; then
6723   enableval="$enable_coverage"
6724   case "${enableval}" in
6725   yes|noopt)
6726     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6727     ;;
6728   opt)
6729     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6730     ;;
6731   no)
6732     # a.k.a. --disable-coverage
6733     coverage_flags=""
6734     ;;
6735   *)
6736     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6737 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6738    { (exit 1); exit 1; }; }
6739     ;;
6740 esac
6741 else
6742   coverage_flags=""
6743 fi;
6744
6745
6746 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6747 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6748   enableval="$enable_gather_detailed_mem_stats"
6749
6750 else
6751   enable_gather_detailed_mem_stats=no
6752 fi;
6753 if test x$enable_gather_detailed_mem_stats = xyes ; then
6754
6755 cat >>confdefs.h <<\_ACEOF
6756 #define GATHER_STATISTICS 1
6757 _ACEOF
6758
6759 fi
6760
6761 # -------------------------------
6762 # Miscenalleous configure options
6763 # -------------------------------
6764
6765 # With stabs
6766
6767 # Check whether --with-stabs or --without-stabs was given.
6768 if test "${with_stabs+set}" = set; then
6769   withval="$with_stabs"
6770   stabs="$with_stabs"
6771 else
6772   stabs=no
6773 fi;
6774
6775 # Determine whether or not multilibs are enabled.
6776 # Check whether --enable-multilib or --disable-multilib was given.
6777 if test "${enable_multilib+set}" = set; then
6778   enableval="$enable_multilib"
6779
6780 else
6781   enable_multilib=yes
6782 fi;
6783
6784
6785 # Enable __cxa_atexit for C++.
6786 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6787 if test "${enable___cxa_atexit+set}" = set; then
6788   enableval="$enable___cxa_atexit"
6789
6790 fi;
6791
6792 # Enable threads
6793 # Pass with no value to take the default
6794 # Pass with a value to specify a thread package
6795 # Check whether --enable-threads or --disable-threads was given.
6796 if test "${enable_threads+set}" = set; then
6797   enableval="$enable_threads"
6798
6799 else
6800   enable_threads=''
6801 fi;
6802
6803 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6804 if test "${enable_objc_gc+set}" = set; then
6805   enableval="$enable_objc_gc"
6806   if test x$enable_objc_gc = xno; then
6807         objc_boehm_gc=''
6808 else
6809         objc_boehm_gc=1
6810 fi
6811 else
6812   objc_boehm_gc=''
6813 fi;
6814
6815
6816 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6817 if test "${with_dwarf2+set}" = set; then
6818   withval="$with_dwarf2"
6819   dwarf2="$with_dwarf2"
6820 else
6821   dwarf2=no
6822 fi;
6823
6824 # Check whether --enable-shared or --disable-shared was given.
6825 if test "${enable_shared+set}" = set; then
6826   enableval="$enable_shared"
6827
6828   case $enable_shared in
6829   yes | no) ;;
6830   *)
6831     enable_shared=no
6832     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6833     for pkg in $enableval; do
6834       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6835         enable_shared=yes
6836       fi
6837     done
6838     IFS="$ac_save_ifs"
6839     ;;
6840   esac
6841
6842 else
6843   enable_shared=yes
6844 fi;
6845
6846
6847
6848 # Check whether --with-sysroot or --without-sysroot was given.
6849 if test "${with_sysroot+set}" = set; then
6850   withval="$with_sysroot"
6851
6852  case ${with_sysroot} in
6853  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6854  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6855  esac
6856
6857  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6858  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6859
6860  if test "x$exec_prefix" = xNONE; then
6861   if test "x$prefix" = xNONE; then
6862    test_prefix=/usr/local
6863   else
6864    test_prefix=$prefix
6865   fi
6866  else
6867   test_prefix=$exec_prefix
6868  fi
6869  case ${TARGET_SYSTEM_ROOT} in
6870  "${test_prefix}"|"${test_prefix}/"*|\
6871  '${exec_prefix}'|'${exec_prefix}/'*)
6872    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6873    TARGET_SYSTEM_ROOT_DEFINE="$t"
6874    ;;
6875  esac
6876
6877 else
6878
6879  TARGET_SYSTEM_ROOT=
6880  TARGET_SYSTEM_ROOT_DEFINE=
6881  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6882
6883 fi;
6884
6885
6886
6887
6888 # Build with intermodule optimisations
6889 # Check whether --enable-intermodule or --disable-intermodule was given.
6890 if test "${enable_intermodule+set}" = set; then
6891   enableval="$enable_intermodule"
6892   case ${enable_intermodule} in
6893   yes) onestep="-onestep";;
6894   *) onestep="";;
6895 esac
6896 else
6897   onestep=""
6898 fi;
6899
6900
6901 # Sanity check enable_languages in case someone does not run the toplevel
6902 # configure # script.
6903 # Check whether --enable-languages or --disable-languages was given.
6904 if test "${enable_languages+set}" = set; then
6905   enableval="$enable_languages"
6906   case ,${enable_languages}, in
6907        ,,|,yes,)
6908                 # go safe -- we cannot be much sure without the toplevel
6909                 # configure's
6910                 # analysis of which target libs are present and usable
6911                 enable_languages=c
6912                 ;;
6913          *,all,*)
6914                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6915 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6916    { (exit 1); exit 1; }; }
6917                 ;;
6918         *,c,*)
6919                 ;;
6920         *)
6921                 enable_languages=c,${enable_languages}
6922                 ;;
6923 esac
6924 else
6925   enable_languages=c
6926 fi;
6927
6928 subdirs=
6929 for lang in ${srcdir}/*/config-lang.in
6930 do
6931         case $lang in
6932         # The odd quoting in the next line works around
6933         # an apparent bug in bash 1.12 on linux.
6934         ${srcdir}/[*]/config-lang.in) ;;
6935         *)
6936           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
6937           if test "x$lang_alias" = x
6938           then
6939                 echo "$lang doesn't set \$language." 1>&2
6940                 exit 1
6941           fi
6942           case ",$enable_languages," in
6943           *,$lang_alias,*)
6944             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6945           esac
6946           ;;
6947         esac
6948 done
6949
6950
6951 # -------------------------
6952 # Checks for other programs
6953 # -------------------------
6954
6955 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6956 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6957 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6958 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6959   echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961   cat >conftest.make <<\_ACEOF
6962 all:
6963         @echo 'ac_maketemp="$(MAKE)"'
6964 _ACEOF
6965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6966 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6967 if test -n "$ac_maketemp"; then
6968   eval ac_cv_prog_make_${ac_make}_set=yes
6969 else
6970   eval ac_cv_prog_make_${ac_make}_set=no
6971 fi
6972 rm -f conftest.make
6973 fi
6974 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6975   echo "$as_me:$LINENO: result: yes" >&5
6976 echo "${ECHO_T}yes" >&6
6977   SET_MAKE=
6978 else
6979   echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6
6981   SET_MAKE="MAKE=${MAKE-make}"
6982 fi
6983
6984
6985 # Find some useful tools
6986 for ac_prog in gawk mawk nawk awk
6987 do
6988   # Extract the first word of "$ac_prog", so it can be a program name with args.
6989 set dummy $ac_prog; ac_word=$2
6990 echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6992 if test "${ac_cv_prog_AWK+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   if test -n "$AWK"; then
6996   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003   for ac_exec_ext in '' $ac_executable_extensions; do
7004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005     ac_cv_prog_AWK="$ac_prog"
7006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010 done
7011
7012 fi
7013 fi
7014 AWK=$ac_cv_prog_AWK
7015 if test -n "$AWK"; then
7016   echo "$as_me:$LINENO: result: $AWK" >&5
7017 echo "${ECHO_T}$AWK" >&6
7018 else
7019   echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6
7021 fi
7022
7023   test -n "$AWK" && break
7024 done
7025
7026 # We need awk to create options.c and options.h.
7027 # Bail out if it's missing.
7028 case ${AWK} in
7029   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7030 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7031    { (exit 1); exit 1; }; } ;;
7032 esac
7033
7034 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7035 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7036 if test "${gcc_cv_prog_LN_S+set}" = set; then
7037   echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039   rm -f conftestdata_t
7040 echo >conftestdata_f
7041 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7042 then
7043   gcc_cv_prog_LN_S="ln -s"
7044 else
7045   if ln conftestdata_f conftestdata_t 2>/dev/null
7046   then
7047     gcc_cv_prog_LN_S=ln
7048   else
7049     gcc_cv_prog_LN_S=cp
7050   fi
7051 fi
7052 rm -f conftestdata_f conftestdata_t
7053
7054 fi
7055 LN_S="$gcc_cv_prog_LN_S"
7056 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7057   echo "$as_me:$LINENO: result: yes" >&5
7058 echo "${ECHO_T}yes" >&6
7059 else
7060   if test "$gcc_cv_prog_LN_S" = "ln"; then
7061     echo "$as_me:$LINENO: result: no, using ln" >&5
7062 echo "${ECHO_T}no, using ln" >&6
7063   else
7064     echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
7065 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
7066   fi
7067 fi
7068
7069 echo "$as_me:$LINENO: checking whether ln works" >&5
7070 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7071 if test "${acx_cv_prog_LN+set}" = set; then
7072   echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074   rm -f conftestdata_t
7075 echo >conftestdata_f
7076 if ln conftestdata_f conftestdata_t 2>/dev/null
7077 then
7078   acx_cv_prog_LN=ln
7079 else
7080   acx_cv_prog_LN=no
7081 fi
7082 rm -f conftestdata_f conftestdata_t
7083
7084 fi
7085 if test $acx_cv_prog_LN = no; then
7086   LN="$LN_S"
7087   echo "$as_me:$LINENO: result: no, using $LN" >&5
7088 echo "${ECHO_T}no, using $LN" >&6
7089 else
7090   LN="$acx_cv_prog_LN"
7091   echo "$as_me:$LINENO: result: yes" >&5
7092 echo "${ECHO_T}yes" >&6
7093 fi
7094
7095 if test -n "$ac_tool_prefix"; then
7096   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7097 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7098 echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7100 if test "${ac_cv_prog_RANLIB+set}" = set; then
7101   echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103   if test -n "$RANLIB"; then
7104   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109   IFS=$as_save_IFS
7110   test -z "$as_dir" && as_dir=.
7111   for ac_exec_ext in '' $ac_executable_extensions; do
7112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115     break 2
7116   fi
7117 done
7118 done
7119
7120 fi
7121 fi
7122 RANLIB=$ac_cv_prog_RANLIB
7123 if test -n "$RANLIB"; then
7124   echo "$as_me:$LINENO: result: $RANLIB" >&5
7125 echo "${ECHO_T}$RANLIB" >&6
7126 else
7127   echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6
7129 fi
7130
7131 fi
7132 if test -z "$ac_cv_prog_RANLIB"; then
7133   ac_ct_RANLIB=$RANLIB
7134   # Extract the first word of "ranlib", so it can be a program name with args.
7135 set dummy ranlib; ac_word=$2
7136 echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   if test -n "$ac_ct_RANLIB"; then
7142   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149   for ac_exec_ext in '' $ac_executable_extensions; do
7150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151     ac_cv_prog_ac_ct_RANLIB="ranlib"
7152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156 done
7157
7158   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7159 fi
7160 fi
7161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7162 if test -n "$ac_ct_RANLIB"; then
7163   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7164 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7165 else
7166   echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6
7168 fi
7169
7170   RANLIB=$ac_ct_RANLIB
7171 else
7172   RANLIB="$ac_cv_prog_RANLIB"
7173 fi
7174
7175 case "${host}" in
7176 *-*-darwin*)
7177   # By default, the Darwin ranlib will not treat common symbols as
7178   # definitions when  building the archive table of contents.  Other
7179   # ranlibs do that; pass an option to the Darwin ranlib that makes
7180   # it behave similarly.
7181   ranlib_flags="-c"
7182   ;;
7183 *)
7184   ranlib_flags=""
7185 esac
7186
7187
7188 # Find a good install program.  We prefer a C program (faster),
7189 # so one script is as good as another.  But avoid the broken or
7190 # incompatible versions:
7191 # SysV /etc/install, /usr/sbin/install
7192 # SunOS /usr/etc/install
7193 # IRIX /sbin/install
7194 # AIX /bin/install
7195 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7196 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7197 # ./install, which can be erroneously created by make from ./install.sh.
7198 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7199 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7200 if test -z "$INSTALL"; then
7201 if test "${ac_cv_path_install+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7205   for ac_dir in $PATH; do
7206     # Account for people who put trailing slashes in PATH elements.
7207     case "$ac_dir/" in
7208     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7209     *)
7210       # OSF1 and SCO ODT 3.0 have their own names for install.
7211       for ac_prog in ginstall scoinst install; do
7212         if test -f $ac_dir/$ac_prog; then
7213           if test $ac_prog = install &&
7214             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7215             # AIX install.  It has an incompatible calling convention.
7216             # OSF/1 installbsd also uses dspmsg, but is usable.
7217             :
7218           else
7219             ac_cv_path_install="$ac_dir/$ac_prog -c"
7220             break 2
7221           fi
7222         fi
7223       done
7224       ;;
7225     esac
7226   done
7227   IFS="$ac_save_IFS"
7228
7229 fi
7230   if test "${ac_cv_path_install+set}" = set; then
7231     INSTALL="$ac_cv_path_install"
7232   else
7233     # As a last resort, use the slow shell script.  We don't cache a
7234     # path for INSTALL within a source directory, because that will
7235     # break other packages using the cache if that directory is
7236     # removed, or if the path is relative.
7237     INSTALL="$ac_install_sh"
7238   fi
7239 fi
7240 echo "$as_me:$LINENO: result: $INSTALL" >&5
7241 echo "${ECHO_T}$INSTALL" >&6
7242
7243 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7244 # It thinks the first close brace ends the variable substitution.
7245 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7246
7247 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7248
7249
7250 # See if cmp has --ignore-initial.
7251 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7252 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7253 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7254   echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256    echo abfoo >t1
7257   echo cdfoo >t2
7258   gcc_cv_prog_cmp_skip=slowcompare
7259   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7260     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7261       :
7262     else
7263       gcc_cv_prog_cmp_skip=gnucompare
7264     fi
7265   fi
7266   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7267     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7268       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7269         :
7270       else
7271         gcc_cv_prog_cmp_skip=fastcompare
7272       fi
7273     fi
7274   fi
7275   rm t1 t2
7276
7277 fi
7278 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7279 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7280 make_compare_target=$gcc_cv_prog_cmp_skip
7281
7282
7283
7284 # See if we have the mktemp command.
7285 # Extract the first word of "mktemp", so it can be a program name with args.
7286 set dummy mktemp; ac_word=$2
7287 echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7289 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   if test -n "$have_mktemp_command"; then
7293   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298   IFS=$as_save_IFS
7299   test -z "$as_dir" && as_dir=.
7300   for ac_exec_ext in '' $ac_executable_extensions; do
7301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302     ac_cv_prog_have_mktemp_command="yes"
7303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304     break 2
7305   fi
7306 done
7307 done
7308
7309   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7310 fi
7311 fi
7312 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7313 if test -n "$have_mktemp_command"; then
7314   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7315 echo "${ECHO_T}$have_mktemp_command" >&6
7316 else
7317   echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6
7319 fi
7320
7321
7322 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7323
7324 # See if makeinfo has been installed and is modern enough
7325 # that we can use it.
7326 # Extract the first word of "makeinfo", so it can be a program name with args.
7327 set dummy makeinfo; ac_word=$2
7328 echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7330 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333   if test -n "$MAKEINFO"; then
7334   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339   IFS=$as_save_IFS
7340   test -z "$as_dir" && as_dir=.
7341   for ac_exec_ext in '' $ac_executable_extensions; do
7342   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343     ac_cv_prog_MAKEINFO="makeinfo"
7344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345     break 2
7346   fi
7347 done
7348 done
7349
7350 fi
7351 fi
7352 MAKEINFO=$ac_cv_prog_MAKEINFO
7353 if test -n "$MAKEINFO"; then
7354   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7355 echo "${ECHO_T}$MAKEINFO" >&6
7356 else
7357   echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6
7359 fi
7360
7361 if test -n "$MAKEINFO"; then
7362   # Found it, now check the version.
7363   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7364 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7365 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7366   echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368     ac_prog_version=`$MAKEINFO --version 2>&1 |
7369                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7370   echo "configure:7370: version of makeinfo is $ac_prog_version" >&5
7371   case $ac_prog_version in
7372     '')     gcc_cv_prog_makeinfo_modern=no;;
7373     4.[2-9]*)
7374             gcc_cv_prog_makeinfo_modern=yes;;
7375     *)      gcc_cv_prog_makeinfo_modern=no;;
7376   esac
7377
7378 fi
7379 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7380 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7381 else
7382   gcc_cv_prog_makeinfo_modern=no
7383 fi
7384
7385 if test $gcc_cv_prog_makeinfo_modern = no; then
7386   MAKEINFO="$MISSING makeinfo"
7387   { echo "$as_me:$LINENO: WARNING:
7388 *** Makeinfo is missing or too old.
7389 *** Info documentation will not be built." >&5
7390 echo "$as_me: WARNING:
7391 *** Makeinfo is missing or too old.
7392 *** Info documentation will not be built." >&2;}
7393   BUILD_INFO=
7394 else
7395   BUILD_INFO=info
7396 fi
7397
7398
7399 # Is pod2man recent enough to regenerate manpages?
7400 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7401 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7402 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7403   echo "$as_me:$LINENO: result: yes" >&5
7404 echo "${ECHO_T}yes" >&6
7405   GENERATED_MANPAGES=generated-manpages
7406 else
7407   echo "$as_me:$LINENO: result: no" >&5
7408 echo "${ECHO_T}no" >&6
7409   GENERATED_MANPAGES=
7410 fi
7411
7412
7413 # How about lex?
7414 for ac_prog in flex
7415 do
7416   # Extract the first word of "$ac_prog", so it can be a program name with args.
7417 set dummy $ac_prog; ac_word=$2
7418 echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7420 if test "${ac_cv_prog_FLEX+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   if test -n "$FLEX"; then
7424   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429   IFS=$as_save_IFS
7430   test -z "$as_dir" && as_dir=.
7431   for ac_exec_ext in '' $ac_executable_extensions; do
7432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7433     ac_cv_prog_FLEX="$ac_prog"
7434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435     break 2
7436   fi
7437 done
7438 done
7439
7440 fi
7441 fi
7442 FLEX=$ac_cv_prog_FLEX
7443 if test -n "$FLEX"; then
7444   echo "$as_me:$LINENO: result: $FLEX" >&5
7445 echo "${ECHO_T}$FLEX" >&6
7446 else
7447   echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6
7449 fi
7450
7451   test -n "$FLEX" && break
7452 done
7453 test -n "$FLEX" || FLEX="$MISSING flex"
7454
7455
7456 # Bison?
7457 for ac_prog in bison
7458 do
7459   # Extract the first word of "$ac_prog", so it can be a program name with args.
7460 set dummy $ac_prog; ac_word=$2
7461 echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7463 if test "${ac_cv_prog_BISON+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   if test -n "$BISON"; then
7467   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474   for ac_exec_ext in '' $ac_executable_extensions; do
7475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476     ac_cv_prog_BISON="$ac_prog"
7477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478     break 2
7479   fi
7480 done
7481 done
7482
7483 fi
7484 fi
7485 BISON=$ac_cv_prog_BISON
7486 if test -n "$BISON"; then
7487   echo "$as_me:$LINENO: result: $BISON" >&5
7488 echo "${ECHO_T}$BISON" >&6
7489 else
7490   echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7492 fi
7493
7494   test -n "$BISON" && break
7495 done
7496 test -n "$BISON" || BISON="$MISSING bison"
7497
7498
7499 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7500 # check for build == host before using them.
7501
7502 # NM
7503 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7504   && test -d ../binutils ; then
7505   NM='$(objdir)/../binutils/nm-new'
7506 else
7507   # Extract the first word of "nm", so it can be a program name with args.
7508 set dummy nm; ac_word=$2
7509 echo "$as_me:$LINENO: checking for $ac_word" >&5
7510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7511 if test "${ac_cv_prog_NM+set}" = set; then
7512   echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514   if test -n "$NM"; then
7515   ac_cv_prog_NM="$NM" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7519 do
7520   IFS=$as_save_IFS
7521   test -z "$as_dir" && as_dir=.
7522   for ac_exec_ext in '' $ac_executable_extensions; do
7523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524     ac_cv_prog_NM="nm"
7525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526     break 2
7527   fi
7528 done
7529 done
7530
7531   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7532 fi
7533 fi
7534 NM=$ac_cv_prog_NM
7535 if test -n "$NM"; then
7536   echo "$as_me:$LINENO: result: $NM" >&5
7537 echo "${ECHO_T}$NM" >&6
7538 else
7539   echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6
7541 fi
7542
7543 fi
7544
7545 # AR
7546 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7547   && test -d ../binutils ; then
7548   AR='$(objdir)/../binutils/ar'
7549 else
7550   # Extract the first word of "ar", so it can be a program name with args.
7551 set dummy ar; ac_word=$2
7552 echo "$as_me:$LINENO: checking for $ac_word" >&5
7553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7554 if test "${ac_cv_prog_AR+set}" = set; then
7555   echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7557   if test -n "$AR"; then
7558   ac_cv_prog_AR="$AR" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565   for ac_exec_ext in '' $ac_executable_extensions; do
7566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7567     ac_cv_prog_AR="ar"
7568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572 done
7573
7574   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7575 fi
7576 fi
7577 AR=$ac_cv_prog_AR
7578 if test -n "$AR"; then
7579   echo "$as_me:$LINENO: result: $AR" >&5
7580 echo "${ECHO_T}$AR" >&6
7581 else
7582   echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6
7584 fi
7585
7586 fi
7587
7588
7589 # --------------------
7590 # Checks for C headers
7591 # --------------------
7592
7593 echo "$as_me:$LINENO: checking for GNU C library" >&5
7594 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7595 if test "${gcc_cv_glibc+set}" = set; then
7596   echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598   cat >conftest.$ac_ext <<_ACEOF
7599 /* confdefs.h.  */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h.  */
7604 #include <features.h>
7605 int
7606 main ()
7607 {
7608
7609 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7610 #error Not a GNU C library system
7611 #endif
7612   ;
7613   return 0;
7614 }
7615 _ACEOF
7616 rm -f conftest.$ac_objext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7618   (eval $ac_compile) 2>conftest.er1
7619   ac_status=$?
7620   grep -v '^ *+' conftest.er1 >conftest.err
7621   rm -f conftest.er1
7622   cat conftest.err >&5
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); } &&
7625          { ac_try='test -z "$ac_c_werror_flag"
7626                          || test ! -s conftest.err'
7627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628   (eval $ac_try) 2>&5
7629   ac_status=$?
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); }; } &&
7632          { ac_try='test -s conftest.$ac_objext'
7633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634   (eval $ac_try) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); }; }; then
7638   gcc_cv_glibc=yes
7639 else
7640   echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7642
7643 gcc_cv_glibc=no
7644 fi
7645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7646 fi
7647
7648 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7649 echo "${ECHO_T}$gcc_cv_glibc" >&6
7650 if test $gcc_cv_glibc = yes; then
7651
7652 cat >>confdefs.h <<\_ACEOF
7653 #define _GNU_SOURCE 1
7654 _ACEOF
7655
7656 fi
7657
7658 # Need to reject headers which give warnings, so that the -Werror bootstrap
7659 # works later. *sigh*  This needs to come before all header checks.
7660
7661 ac_c_preproc_warn_flag=yes
7662
7663 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7664 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7665 if test "${ac_cv_header_stdc+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h.  */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h.  */
7674 #include <stdlib.h>
7675 #include <stdarg.h>
7676 #include <string.h>
7677 #include <float.h>
7678
7679 int
7680 main ()
7681 {
7682
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689   (eval $ac_compile) 2>conftest.er1
7690   ac_status=$?
7691   grep -v '^ *+' conftest.er1 >conftest.err
7692   rm -f conftest.er1
7693   cat conftest.err >&5
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); } &&
7696          { ac_try='test -z "$ac_c_werror_flag"
7697                          || test ! -s conftest.err'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; } &&
7703          { ac_try='test -s conftest.$ac_objext'
7704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705   (eval $ac_try) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); }; }; then
7709   ac_cv_header_stdc=yes
7710 else
7711   echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7713
7714 ac_cv_header_stdc=no
7715 fi
7716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7717
7718 if test $ac_cv_header_stdc = yes; then
7719   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7720   cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h.  */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h.  */
7726 #include <string.h>
7727
7728 _ACEOF
7729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7730   $EGREP "memchr" >/dev/null 2>&1; then
7731   :
7732 else
7733   ac_cv_header_stdc=no
7734 fi
7735 rm -f conftest*
7736
7737 fi
7738
7739 if test $ac_cv_header_stdc = yes; then
7740   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7741   cat >conftest.$ac_ext <<_ACEOF
7742 /* confdefs.h.  */
7743 _ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h.  */
7747 #include <stdlib.h>
7748
7749 _ACEOF
7750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7751   $EGREP "free" >/dev/null 2>&1; then
7752   :
7753 else
7754   ac_cv_header_stdc=no
7755 fi
7756 rm -f conftest*
7757
7758 fi
7759
7760 if test $ac_cv_header_stdc = yes; then
7761   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7762   if test "$cross_compiling" = yes; then
7763   :
7764 else
7765   cat >conftest.$ac_ext <<_ACEOF
7766 /* confdefs.h.  */
7767 _ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h.  */
7771 #include <ctype.h>
7772 #if ((' ' & 0x0FF) == 0x020)
7773 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7774 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7775 #else
7776 # define ISLOWER(c) \
7777                    (('a' <= (c) && (c) <= 'i') \
7778                      || ('j' <= (c) && (c) <= 'r') \
7779                      || ('s' <= (c) && (c) <= 'z'))
7780 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7781 #endif
7782
7783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7784 int
7785 main ()
7786 {
7787   int i;
7788   for (i = 0; i < 256; i++)
7789     if (XOR (islower (i), ISLOWER (i))
7790         || toupper (i) != TOUPPER (i))
7791       exit(2);
7792   exit (0);
7793 }
7794 _ACEOF
7795 rm -f conftest$ac_exeext
7796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7797   (eval $ac_link) 2>&5
7798   ac_status=$?
7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802   (eval $ac_try) 2>&5
7803   ac_status=$?
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); }; }; then
7806   :
7807 else
7808   echo "$as_me: program exited with status $ac_status" >&5
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7811
7812 ( exit $ac_status )
7813 ac_cv_header_stdc=no
7814 fi
7815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7816 fi
7817 fi
7818 fi
7819 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7820 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7821 if test $ac_cv_header_stdc = yes; then
7822
7823 cat >>confdefs.h <<\_ACEOF
7824 #define STDC_HEADERS 1
7825 _ACEOF
7826
7827 fi
7828
7829 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7830 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7831 if test "${ac_cv_header_time+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834   cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h.  */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h.  */
7840 #include <sys/types.h>
7841 #include <sys/time.h>
7842 #include <time.h>
7843
7844 int
7845 main ()
7846 {
7847 if ((struct tm *) 0)
7848 return 0;
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext
7854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7855   (eval $ac_compile) 2>conftest.er1
7856   ac_status=$?
7857   grep -v '^ *+' conftest.er1 >conftest.err
7858   rm -f conftest.er1
7859   cat conftest.err >&5
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); } &&
7862          { ac_try='test -z "$ac_c_werror_flag"
7863                          || 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   ac_cv_header_time=yes
7876 else
7877   echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880 ac_cv_header_time=no
7881 fi
7882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7883 fi
7884 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7885 echo "${ECHO_T}$ac_cv_header_time" >&6
7886 if test $ac_cv_header_time = yes; then
7887
7888 cat >>confdefs.h <<\_ACEOF
7889 #define TIME_WITH_SYS_TIME 1
7890 _ACEOF
7891
7892 fi
7893
7894 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7895 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7896 if test "${gcc_cv_header_string+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 <string.h>
7906 #include <strings.h>
7907 int
7908 main ()
7909 {
7910
7911   ;
7912   return 0;
7913 }
7914 _ACEOF
7915 rm -f conftest.$ac_objext
7916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7917   (eval $ac_compile) 2>conftest.er1
7918   ac_status=$?
7919   grep -v '^ *+' conftest.er1 >conftest.err
7920   rm -f conftest.er1
7921   cat conftest.err >&5
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); } &&
7924          { ac_try='test -z "$ac_c_werror_flag"
7925                          || test ! -s conftest.err'
7926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927   (eval $ac_try) 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); }; } &&
7931          { ac_try='test -s conftest.$ac_objext'
7932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933   (eval $ac_try) 2>&5
7934   ac_status=$?
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); }; }; then
7937   gcc_cv_header_string=yes
7938 else
7939   echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7941
7942 gcc_cv_header_string=no
7943 fi
7944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7945 fi
7946 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7947 echo "${ECHO_T}$gcc_cv_header_string" >&6
7948 if test $gcc_cv_header_string = yes; then
7949
7950 cat >>confdefs.h <<\_ACEOF
7951 #define STRING_WITH_STRINGS 1
7952 _ACEOF
7953
7954 fi
7955
7956 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7957 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7958 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7959   echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961   cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h.  */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h.  */
7967 #include <sys/types.h>
7968 #include <sys/wait.h>
7969 #ifndef WEXITSTATUS
7970 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7971 #endif
7972 #ifndef WIFEXITED
7973 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7974 #endif
7975
7976 int
7977 main ()
7978 {
7979   int s;
7980   wait (&s);
7981   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest.$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988   (eval $ac_compile) 2>conftest.er1
7989   ac_status=$?
7990   grep -v '^ *+' conftest.er1 >conftest.err
7991   rm -f conftest.er1
7992   cat conftest.err >&5
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); } &&
7995          { ac_try='test -z "$ac_c_werror_flag"
7996                          || test ! -s conftest.err'
7997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998   (eval $ac_try) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); }; } &&
8002          { ac_try='test -s conftest.$ac_objext'
8003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004   (eval $ac_try) 2>&5
8005   ac_status=$?
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); }; }; then
8008   ac_cv_header_sys_wait_h=yes
8009 else
8010   echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 ac_cv_header_sys_wait_h=no
8014 fi
8015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8016 fi
8017 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8018 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8019 if test $ac_cv_header_sys_wait_h = yes; then
8020
8021 cat >>confdefs.h <<\_ACEOF
8022 #define HAVE_SYS_WAIT_H 1
8023 _ACEOF
8024
8025 fi
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8050                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8051                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8052                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8053 do
8054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8055 echo "$as_me:$LINENO: checking for $ac_header" >&5
8056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8058   echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060   cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h.  */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h.  */
8066 #include <$ac_header>
8067 _ACEOF
8068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8069   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8070   ac_status=$?
8071   grep -v '^ *+' conftest.er1 >conftest.err
8072   rm -f conftest.er1
8073   cat conftest.err >&5
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); } >/dev/null; then
8076   if test -s conftest.err; then
8077     ac_cpp_err=$ac_c_preproc_warn_flag
8078     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8079   else
8080     ac_cpp_err=
8081   fi
8082 else
8083   ac_cpp_err=yes
8084 fi
8085 if test -z "$ac_cpp_err"; then
8086   eval "$as_ac_Header=yes"
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8090
8091   eval "$as_ac_Header=no"
8092 fi
8093 rm -f conftest.err conftest.$ac_ext
8094 fi
8095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8098   cat >>confdefs.h <<_ACEOF
8099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8100 _ACEOF
8101
8102 fi
8103 done
8104
8105
8106 # Check for thread headers.
8107 echo "$as_me:$LINENO: checking for thread.h" >&5
8108 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8109 if test "${ac_cv_header_thread_h+set}" = set; then
8110   echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112   cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h.  */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h.  */
8118 #include <thread.h>
8119 _ACEOF
8120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } >/dev/null; then
8128   if test -s conftest.err; then
8129     ac_cpp_err=$ac_c_preproc_warn_flag
8130     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8131   else
8132     ac_cpp_err=
8133   fi
8134 else
8135   ac_cpp_err=yes
8136 fi
8137 if test -z "$ac_cpp_err"; then
8138   ac_cv_header_thread_h=yes
8139 else
8140   echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8142
8143   ac_cv_header_thread_h=no
8144 fi
8145 rm -f conftest.err conftest.$ac_ext
8146 fi
8147 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8148 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8149 if test $ac_cv_header_thread_h = yes; then
8150   have_thread_h=yes
8151 else
8152   have_thread_h=
8153 fi
8154
8155 echo "$as_me:$LINENO: checking for pthread.h" >&5
8156 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8157 if test "${ac_cv_header_pthread_h+set}" = set; then
8158   echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160   cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166 #include <pthread.h>
8167 _ACEOF
8168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8169   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8170   ac_status=$?
8171   grep -v '^ *+' conftest.er1 >conftest.err
8172   rm -f conftest.er1
8173   cat conftest.err >&5
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); } >/dev/null; then
8176   if test -s conftest.err; then
8177     ac_cpp_err=$ac_c_preproc_warn_flag
8178     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8179   else
8180     ac_cpp_err=
8181   fi
8182 else
8183   ac_cpp_err=yes
8184 fi
8185 if test -z "$ac_cpp_err"; then
8186   ac_cv_header_pthread_h=yes
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191   ac_cv_header_pthread_h=no
8192 fi
8193 rm -f conftest.err conftest.$ac_ext
8194 fi
8195 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8196 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8197 if test $ac_cv_header_pthread_h = yes; then
8198   have_pthread_h=yes
8199 else
8200   have_pthread_h=
8201 fi
8202
8203
8204 # These tests can't be done till we know if we have limits.h.
8205 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8206 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8207 if test "${gcc_cv_decl_char_bit+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h.  */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h.  */
8216 #ifdef HAVE_LIMITS_H
8217 #include <limits.h>
8218 #endif
8219 #ifdef CHAR_BIT
8220 found
8221 #endif
8222 _ACEOF
8223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224   $EGREP "found" >/dev/null 2>&1; then
8225   gcc_cv_decl_char_bit=yes
8226 else
8227   gcc_cv_decl_char_bit=no
8228 fi
8229 rm -f conftest*
8230
8231
8232 fi
8233 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8234 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8235 if test $gcc_cv_decl_char_bit = no; then
8236   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8237 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8238 if test "${gcc_cv_c_nbby+set}" = set; then
8239   echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241   i=8
8242  gcc_cv_c_nbby=
8243  while test $i -lt 65; do
8244    cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h.  */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h.  */
8250
8251 int
8252 main ()
8253 {
8254 switch(0) {
8255   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8256   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8257   ; }
8258   ;
8259   return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest.$ac_objext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8264   (eval $ac_compile) 2>conftest.er1
8265   ac_status=$?
8266   grep -v '^ *+' conftest.er1 >conftest.err
8267   rm -f conftest.er1
8268   cat conftest.err >&5
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); } &&
8271          { ac_try='test -z "$ac_c_werror_flag"
8272                          || test ! -s conftest.err'
8273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274   (eval $ac_try) 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); }; } &&
8278          { ac_try='test -s conftest.$ac_objext'
8279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280   (eval $ac_try) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); }; }; then
8284   gcc_cv_c_nbby=$i; break
8285 else
8286   echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 fi
8290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8291    i=`expr $i + 1`
8292  done
8293  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8294
8295 fi
8296 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8297 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8298 if test $gcc_cv_c_nbby = failed; then
8299   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8300 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8301    { (exit 1); exit 1; }; }
8302 else
8303
8304 cat >>confdefs.h <<_ACEOF
8305 #define CHAR_BIT $gcc_cv_c_nbby
8306 _ACEOF
8307
8308 fi
8309 fi
8310 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8311 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8312 if test "${ac_cv_c_bigendian+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   ac_cv_c_bigendian=unknown
8316 # See if sys/param.h defines the BYTE_ORDER macro.
8317 cat >conftest.$ac_ext <<_ACEOF
8318 /* confdefs.h.  */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h.  */
8323 #include <sys/types.h>
8324 #include <sys/param.h>
8325 int
8326 main ()
8327 {
8328
8329 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8330  bogus endian macros
8331 #endif
8332   ;
8333   return 0;
8334 }
8335 _ACEOF
8336 rm -f conftest.$ac_objext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8338   (eval $ac_compile) 2>conftest.er1
8339   ac_status=$?
8340   grep -v '^ *+' conftest.er1 >conftest.err
8341   rm -f conftest.er1
8342   cat conftest.err >&5
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); } &&
8345          { ac_try='test -z "$ac_c_werror_flag"
8346                          || test ! -s conftest.err'
8347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348   (eval $ac_try) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); }; } &&
8352          { ac_try='test -s conftest.$ac_objext'
8353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354   (eval $ac_try) 2>&5
8355   ac_status=$?
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); }; }; then
8358   # It does; now see whether it defined to BIG_ENDIAN or not.
8359 cat >conftest.$ac_ext <<_ACEOF
8360 /* confdefs.h.  */
8361 _ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h.  */
8365 #include <sys/types.h>
8366 #include <sys/param.h>
8367 int
8368 main ()
8369 {
8370
8371 #if BYTE_ORDER != BIG_ENDIAN
8372  not big endian
8373 #endif
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8380   (eval $ac_compile) 2>conftest.er1
8381   ac_status=$?
8382   grep -v '^ *+' conftest.er1 >conftest.err
8383   rm -f conftest.er1
8384   cat conftest.err >&5
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); } &&
8387          { ac_try='test -z "$ac_c_werror_flag"
8388                          || test ! -s conftest.err'
8389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390   (eval $ac_try) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; } &&
8394          { ac_try='test -s conftest.$ac_objext'
8395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396   (eval $ac_try) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; }; then
8400   ac_cv_c_bigendian=yes
8401 else
8402   echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8404
8405 ac_cv_c_bigendian=no
8406 fi
8407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8408 else
8409   echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 fi
8413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414 if test $ac_cv_c_bigendian = unknown; then
8415 if test "$cross_compiling" = yes; then
8416    echo $ac_n "cross-compiling... " 2>&6
8417 else
8418   cat >conftest.$ac_ext <<_ACEOF
8419 /* confdefs.h.  */
8420 _ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h.  */
8424 main () {
8425   /* Are we little or big endian?  From Harbison&Steele.  */
8426   union
8427   {
8428     long l;
8429     char c[sizeof (long)];
8430   } u;
8431   u.l = 1;
8432   exit (u.c[sizeof (long) - 1] == 1);
8433 }
8434 _ACEOF
8435 rm -f conftest$ac_exeext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437   (eval $ac_link) 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442   (eval $ac_try) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); }; }; then
8446   ac_cv_c_bigendian=no
8447 else
8448   echo "$as_me: program exited with status $ac_status" >&5
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 ( exit $ac_status )
8453 ac_cv_c_bigendian=yes
8454 fi
8455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8456 fi
8457 fi
8458 fi
8459 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8460 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8461 if test $ac_cv_c_bigendian = unknown; then
8462 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8463 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8464
8465 cat >conftest.c <<EOF
8466 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8467 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8468 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8469 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8470 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8471 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8472 int main() { _ascii (); _ebcdic (); return 0; }
8473 EOF
8474  if test -f conftest.c ; then
8475      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8476         if test `grep -l BIGenDianSyS conftest.o` ; then
8477            echo $ac_n ' big endian probe OK, ' 1>&6
8478            ac_cv_c_bigendian=yes
8479         fi
8480         if test `grep -l LiTTleEnDian conftest.o` ; then
8481            echo $ac_n ' little endian probe OK, ' 1>&6
8482            if test $ac_cv_c_bigendian = yes ; then
8483             ac_cv_c_bigendian=unknown;
8484            else
8485             ac_cv_c_bigendian=no
8486            fi
8487         fi
8488         echo $ac_n 'guessing bigendian ...  ' >&6
8489      fi
8490   fi
8491 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8492 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8493 fi
8494 if test $ac_cv_c_bigendian = yes; then
8495
8496 cat >>confdefs.h <<\_ACEOF
8497 #define WORDS_BIGENDIAN 1
8498 _ACEOF
8499
8500
8501 cat >>confdefs.h <<\_ACEOF
8502 #define HOST_WORDS_BIG_ENDIAN 1
8503 _ACEOF
8504
8505   BYTEORDER=4321
8506 else
8507   BYTEORDER=1234
8508 fi
8509
8510 cat >>confdefs.h <<_ACEOF
8511 #define BYTEORDER $BYTEORDER
8512 _ACEOF
8513
8514 if test $ac_cv_c_bigendian = unknown; then
8515   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8516 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8517    { (exit 1); exit 1; }; }
8518 fi
8519
8520
8521 # --------
8522 # UNSORTED
8523 # --------
8524
8525 # Stage specific cflags for build.
8526 stage1_cflags=
8527 case $build in
8528 vax-*-*)
8529   if test x$GCC = xyes
8530   then
8531     stage1_cflags="-Wa,-J"
8532   else
8533     stage1_cflags="-J"
8534   fi
8535   ;;
8536 powerpc-*-darwin*)
8537   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8538   # sources; use -no-cpp-precomp to get to GNU cpp.
8539   # Apple's GCC has bugs in designated initializer handling, so disable
8540   # that too.
8541   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8542   ;;
8543 esac
8544
8545
8546 # These libraries may be used by collect2.
8547 # We may need a special search path to get them linked.
8548 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8549 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8550 if test "${gcc_cv_collect2_libs+set}" = set; then
8551   echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553   save_LIBS="$LIBS"
8554 for libs in '' -lld -lmld \
8555                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8556                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8557 do
8558         LIBS="$libs"
8559         cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h.  */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h.  */
8565
8566 /* Override any gcc2 internal prototype to avoid an error.  */
8567 #ifdef __cplusplus
8568 extern "C"
8569 #endif
8570 /* We use char because int might match the return type of a gcc2
8571    builtin and then its argument prototype would still apply.  */
8572 char ldopen ();
8573 int
8574 main ()
8575 {
8576 ldopen ();
8577   ;
8578   return 0;
8579 }
8580 _ACEOF
8581 rm -f conftest.$ac_objext conftest$ac_exeext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8583   (eval $ac_link) 2>conftest.er1
8584   ac_status=$?
8585   grep -v '^ *+' conftest.er1 >conftest.err
8586   rm -f conftest.er1
8587   cat conftest.err >&5
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); } &&
8590          { ac_try='test -z "$ac_c_werror_flag"
8591                          || test ! -s conftest.err'
8592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593   (eval $ac_try) 2>&5
8594   ac_status=$?
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); }; } &&
8597          { ac_try='test -s conftest$ac_exeext'
8598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599   (eval $ac_try) 2>&5
8600   ac_status=$?
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); }; }; then
8603   gcc_cv_collect2_libs="$libs"; break
8604 else
8605   echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8607
8608 fi
8609 rm -f conftest.err conftest.$ac_objext \
8610       conftest$ac_exeext conftest.$ac_ext
8611 done
8612 LIBS="$save_LIBS"
8613 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8614 fi
8615 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8616 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8617 case $gcc_cv_collect2_libs in
8618         "none required")        ;;
8619         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8620 esac
8621
8622
8623 # When building Ada code on Alpha, we need exc_resume which is usually in
8624 # -lexc.  So test for it.
8625 save_LIBS="$LIBS"
8626 LIBS=
8627 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8628 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8629 if test "${ac_cv_search_exc_resume+set}" = set; then
8630   echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632   ac_func_search_save_LIBS=$LIBS
8633 ac_cv_search_exc_resume=no
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640
8641 /* Override any gcc2 internal prototype to avoid an error.  */
8642 #ifdef __cplusplus
8643 extern "C"
8644 #endif
8645 /* We use char because int might match the return type of a gcc2
8646    builtin and then its argument prototype would still apply.  */
8647 char exc_resume ();
8648 int
8649 main ()
8650 {
8651 exc_resume ();
8652   ;
8653   return 0;
8654 }
8655 _ACEOF
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658   (eval $ac_link) 2>conftest.er1
8659   ac_status=$?
8660   grep -v '^ *+' conftest.er1 >conftest.err
8661   rm -f conftest.er1
8662   cat conftest.err >&5
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); } &&
8665          { ac_try='test -z "$ac_c_werror_flag"
8666                          || test ! -s conftest.err'
8667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668   (eval $ac_try) 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); }; } &&
8672          { ac_try='test -s conftest$ac_exeext'
8673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674   (eval $ac_try) 2>&5
8675   ac_status=$?
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); }; }; then
8678   ac_cv_search_exc_resume="none required"
8679 else
8680   echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 fi
8684 rm -f conftest.err conftest.$ac_objext \
8685       conftest$ac_exeext conftest.$ac_ext
8686 if test "$ac_cv_search_exc_resume" = no; then
8687   for ac_lib in exc; do
8688     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8689     cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h.  */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h.  */
8695
8696 /* Override any gcc2 internal prototype to avoid an error.  */
8697 #ifdef __cplusplus
8698 extern "C"
8699 #endif
8700 /* We use char because int might match the return type of a gcc2
8701    builtin and then its argument prototype would still apply.  */
8702 char exc_resume ();
8703 int
8704 main ()
8705 {
8706 exc_resume ();
8707   ;
8708   return 0;
8709 }
8710 _ACEOF
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713   (eval $ac_link) 2>conftest.er1
8714   ac_status=$?
8715   grep -v '^ *+' conftest.er1 >conftest.err
8716   rm -f conftest.er1
8717   cat conftest.err >&5
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); } &&
8720          { ac_try='test -z "$ac_c_werror_flag"
8721                          || test ! -s conftest.err'
8722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723   (eval $ac_try) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; } &&
8727          { ac_try='test -s conftest$ac_exeext'
8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729   (eval $ac_try) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733   ac_cv_search_exc_resume="-l$ac_lib"
8734 break
8735 else
8736   echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8738
8739 fi
8740 rm -f conftest.err conftest.$ac_objext \
8741       conftest$ac_exeext conftest.$ac_ext
8742   done
8743 fi
8744 LIBS=$ac_func_search_save_LIBS
8745 fi
8746 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8747 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8748 if test "$ac_cv_search_exc_resume" != no; then
8749   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8750
8751 fi
8752
8753 GNAT_LIBEXC="$LIBS"
8754 LIBS="$save_LIBS"
8755
8756
8757 # Some systems put ldexp and frexp in libm instead of libc; assume
8758 # they're both in the same place.  jcf-dump needs them.
8759 save_LIBS="$LIBS"
8760 LIBS=
8761 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8762 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8763 if test "${ac_cv_search_ldexp+set}" = set; then
8764   echo $ECHO_N "(cached) $ECHO_C" >&6
8765 else
8766   ac_func_search_save_LIBS=$LIBS
8767 ac_cv_search_ldexp=no
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h.  */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h.  */
8774
8775 /* Override any gcc2 internal prototype to avoid an error.  */
8776 #ifdef __cplusplus
8777 extern "C"
8778 #endif
8779 /* We use char because int might match the return type of a gcc2
8780    builtin and then its argument prototype would still apply.  */
8781 char ldexp ();
8782 int
8783 main ()
8784 {
8785 ldexp ();
8786   ;
8787   return 0;
8788 }
8789 _ACEOF
8790 rm -f conftest.$ac_objext conftest$ac_exeext
8791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8792   (eval $ac_link) 2>conftest.er1
8793   ac_status=$?
8794   grep -v '^ *+' conftest.er1 >conftest.err
8795   rm -f conftest.er1
8796   cat conftest.err >&5
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); } &&
8799          { ac_try='test -z "$ac_c_werror_flag"
8800                          || test ! -s conftest.err'
8801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802   (eval $ac_try) 2>&5
8803   ac_status=$?
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); }; } &&
8806          { ac_try='test -s conftest$ac_exeext'
8807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808   (eval $ac_try) 2>&5
8809   ac_status=$?
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); }; }; then
8812   ac_cv_search_ldexp="none required"
8813 else
8814   echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8816
8817 fi
8818 rm -f conftest.err conftest.$ac_objext \
8819       conftest$ac_exeext conftest.$ac_ext
8820 if test "$ac_cv_search_ldexp" = no; then
8821   for ac_lib in m; do
8822     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8823     cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h.  */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h.  */
8829
8830 /* Override any gcc2 internal prototype to avoid an error.  */
8831 #ifdef __cplusplus
8832 extern "C"
8833 #endif
8834 /* We use char because int might match the return type of a gcc2
8835    builtin and then its argument prototype would still apply.  */
8836 char ldexp ();
8837 int
8838 main ()
8839 {
8840 ldexp ();
8841   ;
8842   return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847   (eval $ac_link) 2>conftest.er1
8848   ac_status=$?
8849   grep -v '^ *+' conftest.er1 >conftest.err
8850   rm -f conftest.er1
8851   cat conftest.err >&5
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); } &&
8854          { ac_try='test -z "$ac_c_werror_flag"
8855                          || test ! -s conftest.err'
8856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857   (eval $ac_try) 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); }; } &&
8861          { ac_try='test -s conftest$ac_exeext'
8862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863   (eval $ac_try) 2>&5
8864   ac_status=$?
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   (exit $ac_status); }; }; then
8867   ac_cv_search_ldexp="-l$ac_lib"
8868 break
8869 else
8870   echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8872
8873 fi
8874 rm -f conftest.err conftest.$ac_objext \
8875       conftest$ac_exeext conftest.$ac_ext
8876   done
8877 fi
8878 LIBS=$ac_func_search_save_LIBS
8879 fi
8880 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8881 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8882 if test "$ac_cv_search_ldexp" != no; then
8883   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8884
8885 fi
8886
8887 LDEXP_LIB="$LIBS"
8888 LIBS="$save_LIBS"
8889
8890
8891 # Use <inttypes.h> only if it exists,
8892 # doesn't clash with <sys/types.h>, and declares intmax_t.
8893 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8894 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8895 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8896   echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898   cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h.  */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h.  */
8904 #include <sys/types.h>
8905 #include <inttypes.h>
8906 int
8907 main ()
8908 {
8909 intmax_t i = -1;
8910   ;
8911   return 0;
8912 }
8913 _ACEOF
8914 rm -f conftest.$ac_objext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8916   (eval $ac_compile) 2>conftest.er1
8917   ac_status=$?
8918   grep -v '^ *+' conftest.er1 >conftest.err
8919   rm -f conftest.er1
8920   cat conftest.err >&5
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); } &&
8923          { ac_try='test -z "$ac_c_werror_flag"
8924                          || test ! -s conftest.err'
8925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926   (eval $ac_try) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); }; } &&
8930          { ac_try='test -s conftest.$ac_objext'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; }; then
8936   gcc_cv_header_inttypes_h=yes
8937 else
8938   echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941 gcc_cv_header_inttypes_h=no
8942 fi
8943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8944 fi
8945
8946 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8947 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8948 if test $gcc_cv_header_inttypes_h = yes; then
8949
8950 cat >>confdefs.h <<\_ACEOF
8951 #define HAVE_INTTYPES_H 1
8952 _ACEOF
8953
8954 fi
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
8983         sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8984         fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8985         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8986         setlocale
8987 do
8988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8989 echo "$as_me:$LINENO: checking for $ac_func" >&5
8990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8991 if eval "test \"\${$as_ac_var+set}\" = set"; then
8992   echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994   cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h.  */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h.  */
9000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9002 #define $ac_func innocuous_$ac_func
9003
9004 /* System header to define __stub macros and hopefully few prototypes,
9005     which can conflict with char $ac_func (); below.
9006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9007     <limits.h> exists even on freestanding compilers.  */
9008
9009 #ifdef __STDC__
9010 # include <limits.h>
9011 #else
9012 # include <assert.h>
9013 #endif
9014
9015 #undef $ac_func
9016
9017 /* Override any gcc2 internal prototype to avoid an error.  */
9018 #ifdef __cplusplus
9019 extern "C"
9020 {
9021 #endif
9022 /* We use char because int might match the return type of a gcc2
9023    builtin and then its argument prototype would still apply.  */
9024 char $ac_func ();
9025 /* The GNU C library defines this for functions which it implements
9026     to always fail with ENOSYS.  Some functions are actually named
9027     something starting with __ and the normal name is an alias.  */
9028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9029 choke me
9030 #else
9031 char (*f) () = $ac_func;
9032 #endif
9033 #ifdef __cplusplus
9034 }
9035 #endif
9036
9037 int
9038 main ()
9039 {
9040 return f != $ac_func;
9041   ;
9042   return 0;
9043 }
9044 _ACEOF
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9047   (eval $ac_link) 2>conftest.er1
9048   ac_status=$?
9049   grep -v '^ *+' conftest.er1 >conftest.err
9050   rm -f conftest.er1
9051   cat conftest.err >&5
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); } &&
9054          { ac_try='test -z "$ac_c_werror_flag"
9055                          || test ! -s conftest.err'
9056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057   (eval $ac_try) 2>&5
9058   ac_status=$?
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); }; } &&
9061          { ac_try='test -s conftest$ac_exeext'
9062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063   (eval $ac_try) 2>&5
9064   ac_status=$?
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); }; }; then
9067   eval "$as_ac_var=yes"
9068 else
9069   echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9071
9072 eval "$as_ac_var=no"
9073 fi
9074 rm -f conftest.err conftest.$ac_objext \
9075       conftest$ac_exeext conftest.$ac_ext
9076 fi
9077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9079 if test `eval echo '${'$as_ac_var'}'` = yes; then
9080   cat >>confdefs.h <<_ACEOF
9081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9082 _ACEOF
9083
9084 fi
9085 done
9086
9087
9088 if test x$ac_cv_func_mbstowcs = xyes; then
9089   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9090 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9091 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9092   echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094       if test "$cross_compiling" = yes; then
9095   gcc_cv_func_mbstowcs_works=yes
9096 else
9097   cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h.  */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h.  */
9103 #include <stdlib.h>
9104 int main()
9105 {
9106   mbstowcs(0, "", 0);
9107   return 0;
9108 }
9109 _ACEOF
9110 rm -f conftest$ac_exeext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112   (eval $ac_link) 2>&5
9113   ac_status=$?
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117   (eval $ac_try) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); }; }; then
9121   gcc_cv_func_mbstowcs_works=yes
9122 else
9123   echo "$as_me: program exited with status $ac_status" >&5
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127 ( exit $ac_status )
9128 gcc_cv_func_mbstowcs_works=no
9129 fi
9130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9131 fi
9132 fi
9133 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9134 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9135   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9136
9137 cat >>confdefs.h <<\_ACEOF
9138 #define HAVE_WORKING_MBSTOWCS 1
9139 _ACEOF
9140
9141   fi
9142 fi
9143
9144 echo "$as_me:$LINENO: checking for ssize_t" >&5
9145 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9146 if test "${ac_cv_type_ssize_t+set}" = set; then
9147   echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
9149   cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h.  */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h.  */
9155 $ac_includes_default
9156 int
9157 main ()
9158 {
9159 if ((ssize_t *) 0)
9160   return 0;
9161 if (sizeof (ssize_t))
9162   return 0;
9163   ;
9164   return 0;
9165 }
9166 _ACEOF
9167 rm -f conftest.$ac_objext
9168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9169   (eval $ac_compile) 2>conftest.er1
9170   ac_status=$?
9171   grep -v '^ *+' conftest.er1 >conftest.err
9172   rm -f conftest.er1
9173   cat conftest.err >&5
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); } &&
9176          { ac_try='test -z "$ac_c_werror_flag"
9177                          || test ! -s conftest.err'
9178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179   (eval $ac_try) 2>&5
9180   ac_status=$?
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   (exit $ac_status); }; } &&
9183          { ac_try='test -s conftest.$ac_objext'
9184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185   (eval $ac_try) 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); }; }; then
9189   ac_cv_type_ssize_t=yes
9190 else
9191   echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 ac_cv_type_ssize_t=no
9195 fi
9196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9197 fi
9198 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9199 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9200 if test $ac_cv_type_ssize_t = yes; then
9201   :
9202 else
9203
9204 cat >>confdefs.h <<_ACEOF
9205 #define ssize_t int
9206 _ACEOF
9207
9208 fi
9209
9210
9211 # Try to determine the array type of the second argument of getgroups
9212 # for the target system (int or gid_t).
9213 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9214 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9215 if test "${ac_cv_type_uid_t+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h.  */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h.  */
9224 #include <sys/types.h>
9225
9226 _ACEOF
9227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9228   $EGREP "uid_t" >/dev/null 2>&1; then
9229   ac_cv_type_uid_t=yes
9230 else
9231   ac_cv_type_uid_t=no
9232 fi
9233 rm -f conftest*
9234
9235 fi
9236 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9237 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9238 if test $ac_cv_type_uid_t = no; then
9239
9240 cat >>confdefs.h <<\_ACEOF
9241 #define uid_t int
9242 _ACEOF
9243
9244
9245 cat >>confdefs.h <<\_ACEOF
9246 #define gid_t int
9247 _ACEOF
9248
9249 fi
9250
9251 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9252 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9253 if test "${ac_cv_type_getgroups+set}" = set; then
9254   echo $ECHO_N "(cached) $ECHO_C" >&6
9255 else
9256   if test "$cross_compiling" = yes; then
9257   ac_cv_type_getgroups=cross
9258 else
9259   cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h.  */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h.  */
9265 /* Thanks to Mike Rendell for this test.  */
9266 #include <sys/types.h>
9267 #define NGID 256
9268 #undef MAX
9269 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9270
9271 int
9272 main ()
9273 {
9274   gid_t gidset[NGID];
9275   int i, n;
9276   union { gid_t gval; long lval; }  val;
9277
9278   val.lval = -1;
9279   for (i = 0; i < NGID; i++)
9280     gidset[i] = val.gval;
9281   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9282                  gidset);
9283   /* Exit non-zero if getgroups seems to require an array of ints.  This
9284      happens when gid_t is short but getgroups modifies an array of ints.  */
9285   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9286 }
9287 _ACEOF
9288 rm -f conftest$ac_exeext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9290   (eval $ac_link) 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295   (eval $ac_try) 2>&5
9296   ac_status=$?
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); }; }; then
9299   ac_cv_type_getgroups=gid_t
9300 else
9301   echo "$as_me: program exited with status $ac_status" >&5
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9304
9305 ( exit $ac_status )
9306 ac_cv_type_getgroups=int
9307 fi
9308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9309 fi
9310 if test $ac_cv_type_getgroups = cross; then
9311         cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h.  */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h.  */
9317 #include <unistd.h>
9318
9319 _ACEOF
9320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9321   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9322   ac_cv_type_getgroups=gid_t
9323 else
9324   ac_cv_type_getgroups=int
9325 fi
9326 rm -f conftest*
9327
9328 fi
9329 fi
9330 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9331 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9332
9333 cat >>confdefs.h <<_ACEOF
9334 #define GETGROUPS_T $ac_cv_type_getgroups
9335 _ACEOF
9336
9337
9338 if test "${target}" = "${build}"; then
9339   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9340 else
9341   case "${target}" in
9342         # This condition may need some tweaking.  It should include all
9343         # targets where the array type of the second argument of getgroups
9344         # is int and the type of gid_t is not equivalent to int.
9345         *-*-sunos* | *-*-ultrix*)
9346                 TARGET_GETGROUPS_T=int
9347                 ;;
9348         *)
9349                 TARGET_GETGROUPS_T=gid_t
9350                 ;;
9351   esac
9352 fi
9353
9354
9355 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9356 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9357 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9358   echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360   if test "$cross_compiling" = yes; then
9361   gcc_cv_func_printf_ptr=no
9362 else
9363   cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h.  */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h.  */
9369 #include <stdio.h>
9370
9371 int main()
9372 {
9373   char buf[64];
9374   char *p = buf, *q = NULL;
9375   sprintf(buf, "%p", p);
9376   sscanf(buf, "%p", &q);
9377   return (p != q);
9378 }
9379 _ACEOF
9380 rm -f conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382   (eval $ac_link) 2>&5
9383   ac_status=$?
9384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387   (eval $ac_try) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); }; }; then
9391   gcc_cv_func_printf_ptr=yes
9392 else
9393   echo "$as_me: program exited with status $ac_status" >&5
9394 echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9396
9397 ( exit $ac_status )
9398 gcc_cv_func_printf_ptr=no
9399 fi
9400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9401 fi
9402 rm -f core core.* *.core
9403 fi
9404 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9405 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9406 if test $gcc_cv_func_printf_ptr = yes ; then
9407
9408 cat >>confdefs.h <<\_ACEOF
9409 #define HAVE_PRINTF_PTR 1
9410 _ACEOF
9411
9412 fi
9413
9414
9415 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9416 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9417 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420   cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h.  */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h.  */
9426 #include <sys/mman.h>
9427 _ACEOF
9428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9429   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9430   ac_status=$?
9431   grep -v '^ *+' conftest.er1 >conftest.err
9432   rm -f conftest.er1
9433   cat conftest.err >&5
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); } >/dev/null; then
9436   if test -s conftest.err; then
9437     ac_cpp_err=$ac_c_preproc_warn_flag
9438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9439   else
9440     ac_cpp_err=
9441   fi
9442 else
9443   ac_cpp_err=yes
9444 fi
9445 if test -z "$ac_cpp_err"; then
9446   ac_cv_header_sys_mman_h=yes
9447 else
9448   echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451   ac_cv_header_sys_mman_h=no
9452 fi
9453 rm -f conftest.err conftest.$ac_ext
9454 fi
9455 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9456 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9457 if test $ac_cv_header_sys_mman_h = yes; then
9458   gcc_header_sys_mman_h=yes
9459 else
9460   gcc_header_sys_mman_h=no
9461 fi
9462
9463 echo "$as_me:$LINENO: checking for mmap" >&5
9464 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9465 if test "${ac_cv_func_mmap+set}" = set; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468   cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9476 #define mmap innocuous_mmap
9477
9478 /* System header to define __stub macros and hopefully few prototypes,
9479     which can conflict with char mmap (); below.
9480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481     <limits.h> exists even on freestanding compilers.  */
9482
9483 #ifdef __STDC__
9484 # include <limits.h>
9485 #else
9486 # include <assert.h>
9487 #endif
9488
9489 #undef mmap
9490
9491 /* Override any gcc2 internal prototype to avoid an error.  */
9492 #ifdef __cplusplus
9493 extern "C"
9494 {
9495 #endif
9496 /* We use char because int might match the return type of a gcc2
9497    builtin and then its argument prototype would still apply.  */
9498 char mmap ();
9499 /* The GNU C library defines this for functions which it implements
9500     to always fail with ENOSYS.  Some functions are actually named
9501     something starting with __ and the normal name is an alias.  */
9502 #if defined (__stub_mmap) || defined (__stub___mmap)
9503 choke me
9504 #else
9505 char (*f) () = mmap;
9506 #endif
9507 #ifdef __cplusplus
9508 }
9509 #endif
9510
9511 int
9512 main ()
9513 {
9514 return f != mmap;
9515   ;
9516   return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521   (eval $ac_link) 2>conftest.er1
9522   ac_status=$?
9523   grep -v '^ *+' conftest.er1 >conftest.err
9524   rm -f conftest.er1
9525   cat conftest.err >&5
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); } &&
9528          { ac_try='test -z "$ac_c_werror_flag"
9529                          || test ! -s conftest.err'
9530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531   (eval $ac_try) 2>&5
9532   ac_status=$?
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); }; } &&
9535          { ac_try='test -s conftest$ac_exeext'
9536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537   (eval $ac_try) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; }; then
9541   ac_cv_func_mmap=yes
9542 else
9543   echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9545
9546 ac_cv_func_mmap=no
9547 fi
9548 rm -f conftest.err conftest.$ac_objext \
9549       conftest$ac_exeext conftest.$ac_ext
9550 fi
9551 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9552 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9553 if test $ac_cv_func_mmap = yes; then
9554   gcc_func_mmap=yes
9555 else
9556   gcc_func_mmap=no
9557 fi
9558
9559 if test "$gcc_header_sys_mman_h" != yes \
9560  || test "$gcc_func_mmap" != yes; then
9561    gcc_cv_func_mmap_file=no
9562    gcc_cv_func_mmap_dev_zero=no
9563    gcc_cv_func_mmap_anon=no
9564 else
9565    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9566 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9567 if test "${gcc_cv_func_mmap_file+set}" = set; then
9568   echo $ECHO_N "(cached) $ECHO_C" >&6
9569 else
9570   # Add a system to this blacklist if
9571    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9572    # memory area containing the same data that you'd get if you applied
9573    # read() to the same fd.  The only system known to have a problem here
9574    # is VMS, where text files have record structure.
9575    case "$host_os" in
9576      vms* | ultrix*)
9577         gcc_cv_func_mmap_file=no ;;
9578      *)
9579         gcc_cv_func_mmap_file=yes;;
9580    esac
9581 fi
9582 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9583 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9584    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9585 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9586 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9587   echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589   # Add a system to this blacklist if it has mmap() but /dev/zero
9590    # does not exist, or if mmapping /dev/zero does not give anonymous
9591    # zeroed pages with both the following properties:
9592    # 1. If you map N consecutive pages in with one call, and then
9593    #    unmap any subset of those pages, the pages that were not
9594    #    explicitly unmapped remain accessible.
9595    # 2. If you map two adjacent blocks of memory and then unmap them
9596    #    both at once, they must both go away.
9597    # Systems known to be in this category are Windows (all variants),
9598    # VMS, and Darwin.
9599    case "$host_os" in
9600      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9601         gcc_cv_func_mmap_dev_zero=no ;;
9602      *)
9603         gcc_cv_func_mmap_dev_zero=yes;;
9604    esac
9605 fi
9606 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9607 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9608
9609    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9610    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9611 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9612 if test "${gcc_cv_decl_map_anon+set}" = set; then
9613   echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615   cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h.  */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h.  */
9621 #include <sys/types.h>
9622 #include <sys/mman.h>
9623 #include <unistd.h>
9624
9625 #ifndef MAP_ANONYMOUS
9626 #define MAP_ANONYMOUS MAP_ANON
9627 #endif
9628
9629 int
9630 main ()
9631 {
9632 int n = MAP_ANONYMOUS;
9633   ;
9634   return 0;
9635 }
9636 _ACEOF
9637 rm -f conftest.$ac_objext
9638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9639   (eval $ac_compile) 2>conftest.er1
9640   ac_status=$?
9641   grep -v '^ *+' conftest.er1 >conftest.err
9642   rm -f conftest.er1
9643   cat conftest.err >&5
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); } &&
9646          { ac_try='test -z "$ac_c_werror_flag"
9647                          || test ! -s conftest.err'
9648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649   (eval $ac_try) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; } &&
9653          { ac_try='test -s conftest.$ac_objext'
9654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655   (eval $ac_try) 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); }; }; then
9659   gcc_cv_decl_map_anon=yes
9660 else
9661   echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9663
9664 gcc_cv_decl_map_anon=no
9665 fi
9666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9667 fi
9668 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9669 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9670
9671    if test $gcc_cv_decl_map_anon = no; then
9672      gcc_cv_func_mmap_anon=no
9673    else
9674      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9675 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9676 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9677   echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9680    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9681    # doesn't give anonymous zeroed pages with the same properties listed
9682    # above for use of /dev/zero.
9683    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9684    case "$host_os" in
9685      vms* | cygwin* | pe | mingw* | sco* | udk* )
9686         gcc_cv_func_mmap_anon=no ;;
9687      *)
9688         gcc_cv_func_mmap_anon=yes;;
9689    esac
9690 fi
9691 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9692 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9693    fi
9694 fi
9695
9696 if test $gcc_cv_func_mmap_file = yes; then
9697
9698 cat >>confdefs.h <<\_ACEOF
9699 #define HAVE_MMAP_FILE 1
9700 _ACEOF
9701
9702 fi
9703 if test $gcc_cv_func_mmap_dev_zero = yes; then
9704
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_MMAP_DEV_ZERO 1
9707 _ACEOF
9708
9709 fi
9710 if test $gcc_cv_func_mmap_anon = yes; then
9711
9712 cat >>confdefs.h <<\_ACEOF
9713 #define HAVE_MMAP_ANON 1
9714 _ACEOF
9715
9716 fi
9717
9718
9719 case "${host}" in
9720 *-*-*vms*)
9721   # Under VMS, vfork works very differently than on Unix. The standard test
9722   # won't work, and it isn't easily adaptable. It makes more sense to
9723   # just force it.
9724   ac_cv_func_vfork_works=yes
9725   ;;
9726 esac
9727 echo "$as_me:$LINENO: checking for pid_t" >&5
9728 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9729 if test "${ac_cv_type_pid_t+set}" = set; then
9730   echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732   cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h.  */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h.  */
9738 $ac_includes_default
9739 int
9740 main ()
9741 {
9742 if ((pid_t *) 0)
9743   return 0;
9744 if (sizeof (pid_t))
9745   return 0;
9746   ;
9747   return 0;
9748 }
9749 _ACEOF
9750 rm -f conftest.$ac_objext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9752   (eval $ac_compile) 2>conftest.er1
9753   ac_status=$?
9754   grep -v '^ *+' conftest.er1 >conftest.err
9755   rm -f conftest.er1
9756   cat conftest.err >&5
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } &&
9759          { ac_try='test -z "$ac_c_werror_flag"
9760                          || test ! -s conftest.err'
9761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762   (eval $ac_try) 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; } &&
9766          { ac_try='test -s conftest.$ac_objext'
9767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768   (eval $ac_try) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; }; then
9772   ac_cv_type_pid_t=yes
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 ac_cv_type_pid_t=no
9778 fi
9779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9780 fi
9781 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9782 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9783 if test $ac_cv_type_pid_t = yes; then
9784   :
9785 else
9786
9787 cat >>confdefs.h <<_ACEOF
9788 #define pid_t int
9789 _ACEOF
9790
9791 fi
9792
9793
9794
9795 for ac_header in unistd.h vfork.h
9796 do
9797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9798 echo "$as_me:$LINENO: checking for $ac_header" >&5
9799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9801   echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803   cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h.  */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h.  */
9809 #include <$ac_header>
9810 _ACEOF
9811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9813   ac_status=$?
9814   grep -v '^ *+' conftest.er1 >conftest.err
9815   rm -f conftest.er1
9816   cat conftest.err >&5
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); } >/dev/null; then
9819   if test -s conftest.err; then
9820     ac_cpp_err=$ac_c_preproc_warn_flag
9821     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9822   else
9823     ac_cpp_err=
9824   fi
9825 else
9826   ac_cpp_err=yes
9827 fi
9828 if test -z "$ac_cpp_err"; then
9829   eval "$as_ac_Header=yes"
9830 else
9831   echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834   eval "$as_ac_Header=no"
9835 fi
9836 rm -f conftest.err conftest.$ac_ext
9837 fi
9838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9841   cat >>confdefs.h <<_ACEOF
9842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9843 _ACEOF
9844
9845 fi
9846 done
9847
9848
9849
9850 for ac_func in fork vfork
9851 do
9852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9853 echo "$as_me:$LINENO: checking for $ac_func" >&5
9854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9855 if eval "test \"\${$as_ac_var+set}\" = set"; then
9856   echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858   cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h.  */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h.  */
9864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9866 #define $ac_func innocuous_$ac_func
9867
9868 /* System header to define __stub macros and hopefully few prototypes,
9869     which can conflict with char $ac_func (); below.
9870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9871     <limits.h> exists even on freestanding compilers.  */
9872
9873 #ifdef __STDC__
9874 # include <limits.h>
9875 #else
9876 # include <assert.h>
9877 #endif
9878
9879 #undef $ac_func
9880
9881 /* Override any gcc2 internal prototype to avoid an error.  */
9882 #ifdef __cplusplus
9883 extern "C"
9884 {
9885 #endif
9886 /* We use char because int might match the return type of a gcc2
9887    builtin and then its argument prototype would still apply.  */
9888 char $ac_func ();
9889 /* The GNU C library defines this for functions which it implements
9890     to always fail with ENOSYS.  Some functions are actually named
9891     something starting with __ and the normal name is an alias.  */
9892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9893 choke me
9894 #else
9895 char (*f) () = $ac_func;
9896 #endif
9897 #ifdef __cplusplus
9898 }
9899 #endif
9900
9901 int
9902 main ()
9903 {
9904 return f != $ac_func;
9905   ;
9906   return 0;
9907 }
9908 _ACEOF
9909 rm -f conftest.$ac_objext conftest$ac_exeext
9910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9911   (eval $ac_link) 2>conftest.er1
9912   ac_status=$?
9913   grep -v '^ *+' conftest.er1 >conftest.err
9914   rm -f conftest.er1
9915   cat conftest.err >&5
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); } &&
9918          { ac_try='test -z "$ac_c_werror_flag"
9919                          || test ! -s conftest.err'
9920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921   (eval $ac_try) 2>&5
9922   ac_status=$?
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); }; } &&
9925          { ac_try='test -s conftest$ac_exeext'
9926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927   (eval $ac_try) 2>&5
9928   ac_status=$?
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); }; }; then
9931   eval "$as_ac_var=yes"
9932 else
9933   echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9935
9936 eval "$as_ac_var=no"
9937 fi
9938 rm -f conftest.err conftest.$ac_objext \
9939       conftest$ac_exeext conftest.$ac_ext
9940 fi
9941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9943 if test `eval echo '${'$as_ac_var'}'` = yes; then
9944   cat >>confdefs.h <<_ACEOF
9945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9946 _ACEOF
9947
9948 fi
9949 done
9950
9951 if test "x$ac_cv_func_fork" = xyes; then
9952   echo "$as_me:$LINENO: checking for working fork" >&5
9953 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9954 if test "${ac_cv_func_fork_works+set}" = set; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957   if test "$cross_compiling" = yes; then
9958   ac_cv_func_fork_works=cross
9959 else
9960   cat >conftest.$ac_ext <<_ACEOF
9961 /* By Ruediger Kuhlmann. */
9962       #include <sys/types.h>
9963       #if HAVE_UNISTD_H
9964       # include <unistd.h>
9965       #endif
9966       /* Some systems only have a dummy stub for fork() */
9967       int main ()
9968       {
9969         if (fork() < 0)
9970           exit (1);
9971         exit (0);
9972       }
9973 _ACEOF
9974 rm -f conftest$ac_exeext
9975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9976   (eval $ac_link) 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981   (eval $ac_try) 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); }; }; then
9985   ac_cv_func_fork_works=yes
9986 else
9987   echo "$as_me: program exited with status $ac_status" >&5
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 ( exit $ac_status )
9992 ac_cv_func_fork_works=no
9993 fi
9994 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9995 fi
9996 fi
9997 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9998 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9999
10000 else
10001   ac_cv_func_fork_works=$ac_cv_func_fork
10002 fi
10003 if test "x$ac_cv_func_fork_works" = xcross; then
10004   case $host in
10005     *-*-amigaos* | *-*-msdosdjgpp*)
10006       # Override, as these systems have only a dummy fork() stub
10007       ac_cv_func_fork_works=no
10008       ;;
10009     *)
10010       ac_cv_func_fork_works=yes
10011       ;;
10012   esac
10013   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10014 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10015 fi
10016 ac_cv_func_vfork_works=$ac_cv_func_vfork
10017 if test "x$ac_cv_func_vfork" = xyes; then
10018   echo "$as_me:$LINENO: checking for working vfork" >&5
10019 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10020 if test "${ac_cv_func_vfork_works+set}" = set; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023   if test "$cross_compiling" = yes; then
10024   ac_cv_func_vfork_works=cross
10025 else
10026   cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h.  */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h.  */
10032 /* Thanks to Paul Eggert for this test.  */
10033 #include <stdio.h>
10034 #include <stdlib.h>
10035 #include <sys/types.h>
10036 #include <sys/stat.h>
10037 #include <sys/wait.h>
10038 #if HAVE_UNISTD_H
10039 # include <unistd.h>
10040 #endif
10041 #if HAVE_VFORK_H
10042 # include <vfork.h>
10043 #endif
10044 /* On some sparc systems, changes by the child to local and incoming
10045    argument registers are propagated back to the parent.  The compiler
10046    is told about this with #include <vfork.h>, but some compilers
10047    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10048    static variable whose address is put into a register that is
10049    clobbered by the vfork.  */
10050 static void
10051 #ifdef __cplusplus
10052 sparc_address_test (int arg)
10053 # else
10054 sparc_address_test (arg) int arg;
10055 #endif
10056 {
10057   static pid_t child;
10058   if (!child) {
10059     child = vfork ();
10060     if (child < 0) {
10061       perror ("vfork");
10062       _exit(2);
10063     }
10064     if (!child) {
10065       arg = getpid();
10066       write(-1, "", 0);
10067       _exit (arg);
10068     }
10069   }
10070 }
10071
10072 int
10073 main ()
10074 {
10075   pid_t parent = getpid ();
10076   pid_t child;
10077
10078   sparc_address_test (0);
10079
10080   child = vfork ();
10081
10082   if (child == 0) {
10083     /* Here is another test for sparc vfork register problems.  This
10084        test uses lots of local variables, at least as many local
10085        variables as main has allocated so far including compiler
10086        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10087        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10088        reuse the register of parent for one of the local variables,
10089        since it will think that parent can't possibly be used any more
10090        in this routine.  Assigning to the local variable will thus
10091        munge parent in the parent process.  */
10092     pid_t
10093       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10094       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10095     /* Convince the compiler that p..p7 are live; otherwise, it might
10096        use the same hardware register for all 8 local variables.  */
10097     if (p != p1 || p != p2 || p != p3 || p != p4
10098         || p != p5 || p != p6 || p != p7)
10099       _exit(1);
10100
10101     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10102        from child file descriptors.  If the child closes a descriptor
10103        before it execs or exits, this munges the parent's descriptor
10104        as well.  Test for this by closing stdout in the child.  */
10105     _exit(close(fileno(stdout)) != 0);
10106   } else {
10107     int status;
10108     struct stat st;
10109
10110     while (wait(&status) != child)
10111       ;
10112     exit(
10113          /* Was there some problem with vforking?  */
10114          child < 0
10115
10116          /* Did the child fail?  (This shouldn't happen.)  */
10117          || status
10118
10119          /* Did the vfork/compiler bug occur?  */
10120          || parent != getpid()
10121
10122          /* Did the file descriptor bug occur?  */
10123          || fstat(fileno(stdout), &st) != 0
10124          );
10125   }
10126 }
10127 _ACEOF
10128 rm -f conftest$ac_exeext
10129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10130   (eval $ac_link) 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135   (eval $ac_try) 2>&5
10136   ac_status=$?
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); }; }; then
10139   ac_cv_func_vfork_works=yes
10140 else
10141   echo "$as_me: program exited with status $ac_status" >&5
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145 ( exit $ac_status )
10146 ac_cv_func_vfork_works=no
10147 fi
10148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10149 fi
10150 fi
10151 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10152 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10153
10154 fi;
10155 if test "x$ac_cv_func_fork_works" = xcross; then
10156   ac_cv_func_vfork_works=$ac_cv_func_vfork
10157   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10158 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10159 fi
10160
10161 if test "x$ac_cv_func_vfork_works" = xyes; then
10162
10163 cat >>confdefs.h <<\_ACEOF
10164 #define HAVE_WORKING_VFORK 1
10165 _ACEOF
10166
10167 else
10168
10169 cat >>confdefs.h <<\_ACEOF
10170 #define vfork fork
10171 _ACEOF
10172
10173 fi
10174 if test "x$ac_cv_func_fork_works" = xyes; then
10175
10176 cat >>confdefs.h <<\_ACEOF
10177 #define HAVE_WORKING_FORK 1
10178 _ACEOF
10179
10180 fi
10181
10182
10183
10184       if test "X$prefix" = "XNONE"; then
10185     acl_final_prefix="$ac_default_prefix"
10186   else
10187     acl_final_prefix="$prefix"
10188   fi
10189   if test "X$exec_prefix" = "XNONE"; then
10190     acl_final_exec_prefix='${prefix}'
10191   else
10192     acl_final_exec_prefix="$exec_prefix"
10193   fi
10194   acl_save_prefix="$prefix"
10195   prefix="$acl_final_prefix"
10196   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10197   prefix="$acl_save_prefix"
10198
10199
10200 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10201 if test "${with_gnu_ld+set}" = set; then
10202   withval="$with_gnu_ld"
10203   test "$withval" = no || with_gnu_ld=yes
10204 else
10205   with_gnu_ld=no
10206 fi;
10207 # Prepare PATH_SEPARATOR.
10208 # The user is always right.
10209 if test "${PATH_SEPARATOR+set}" != set; then
10210   echo "#! /bin/sh" >conf$$.sh
10211   echo  "exit 0"   >>conf$$.sh
10212   chmod +x conf$$.sh
10213   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10214     PATH_SEPARATOR=';'
10215   else
10216     PATH_SEPARATOR=:
10217   fi
10218   rm -f conf$$.sh
10219 fi
10220 ac_prog=ld
10221 if test "$GCC" = yes; then
10222   # Check if gcc -print-prog-name=ld gives a path.
10223   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10224 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10225   case $host in
10226   *-*-mingw*)
10227     # gcc leaves a trailing carriage return which upsets mingw
10228     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10229   *)
10230     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10231   esac
10232   case $ac_prog in
10233     # Accept absolute paths.
10234     [\\/]* | [A-Za-z]:[\\/]*)
10235       re_direlt='/[^/][^/]*/\.\./'
10236       # Canonicalize the path of ld
10237       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10238       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10239         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10240       done
10241       test -z "$LD" && LD="$ac_prog"
10242       ;;
10243   "")
10244     # If it fails, then pretend we aren't using GCC.
10245     ac_prog=ld
10246     ;;
10247   *)
10248     # If it is relative, then search for the first ld in PATH.
10249     with_gnu_ld=unknown
10250     ;;
10251   esac
10252 elif test "$with_gnu_ld" = yes; then
10253   echo "$as_me:$LINENO: checking for GNU ld" >&5
10254 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10255 else
10256   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10257 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10258 fi
10259 if test "${acl_cv_path_LD+set}" = set; then
10260   echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262   if test -z "$LD"; then
10263   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10264   for ac_dir in $PATH; do
10265     test -z "$ac_dir" && ac_dir=.
10266     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10267       acl_cv_path_LD="$ac_dir/$ac_prog"
10268       # Check to see if the program is GNU ld.  I'd rather use --version,
10269       # but apparently some GNU ld's only accept -v.
10270       # Break only if it was the GNU/non-GNU ld that we prefer.
10271       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10272         test "$with_gnu_ld" != no && break
10273       else
10274         test "$with_gnu_ld" != yes && break
10275       fi
10276     fi
10277   done
10278   IFS="$ac_save_ifs"
10279 else
10280   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10281 fi
10282 fi
10283
10284 LD="$acl_cv_path_LD"
10285 if test -n "$LD"; then
10286   echo "$as_me:$LINENO: result: $LD" >&5
10287 echo "${ECHO_T}$LD" >&6
10288 else
10289   echo "$as_me:$LINENO: result: no" >&5
10290 echo "${ECHO_T}no" >&6
10291 fi
10292 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10293 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10294    { (exit 1); exit 1; }; }
10295 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10296 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10297 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10298   echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10301 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10302   acl_cv_prog_gnu_ld=yes
10303 else
10304   acl_cv_prog_gnu_ld=no
10305 fi
10306 fi
10307 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10308 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10309 with_gnu_ld=$acl_cv_prog_gnu_ld
10310
10311
10312
10313                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10314 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10315 if test "${acl_cv_rpath+set}" = set; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318
10319     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10320     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10321     . ./conftest.sh
10322     rm -f ./conftest.sh
10323     acl_cv_rpath=done
10324
10325 fi
10326 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10327 echo "${ECHO_T}$acl_cv_rpath" >&6
10328   wl="$acl_cv_wl"
10329   libext="$acl_cv_libext"
10330   shlibext="$acl_cv_shlibext"
10331   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10332   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10333   hardcode_direct="$acl_cv_hardcode_direct"
10334   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10335     # Check whether --enable-rpath or --disable-rpath was given.
10336 if test "${enable_rpath+set}" = set; then
10337   enableval="$enable_rpath"
10338   :
10339 else
10340   enable_rpath=yes
10341 fi;
10342
10343
10344
10345
10346
10347
10348
10349     use_additional=yes
10350
10351   acl_save_prefix="$prefix"
10352   prefix="$acl_final_prefix"
10353   acl_save_exec_prefix="$exec_prefix"
10354   exec_prefix="$acl_final_exec_prefix"
10355
10356     eval additional_includedir=\"$includedir\"
10357     eval additional_libdir=\"$libdir\"
10358
10359   exec_prefix="$acl_save_exec_prefix"
10360   prefix="$acl_save_prefix"
10361
10362
10363 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10364 if test "${with_libiconv_prefix+set}" = set; then
10365   withval="$with_libiconv_prefix"
10366
10367     if test "X$withval" = "Xno"; then
10368       use_additional=no
10369     else
10370       if test "X$withval" = "X"; then
10371
10372   acl_save_prefix="$prefix"
10373   prefix="$acl_final_prefix"
10374   acl_save_exec_prefix="$exec_prefix"
10375   exec_prefix="$acl_final_exec_prefix"
10376
10377           eval additional_includedir=\"$includedir\"
10378           eval additional_libdir=\"$libdir\"
10379
10380   exec_prefix="$acl_save_exec_prefix"
10381   prefix="$acl_save_prefix"
10382
10383       else
10384         additional_includedir="$withval/include"
10385         additional_libdir="$withval/lib"
10386       fi
10387     fi
10388
10389 fi;
10390       LIBICONV=
10391   LTLIBICONV=
10392   INCICONV=
10393   rpathdirs=
10394   ltrpathdirs=
10395   names_already_handled=
10396   names_next_round='iconv '
10397   while test -n "$names_next_round"; do
10398     names_this_round="$names_next_round"
10399     names_next_round=
10400     for name in $names_this_round; do
10401       already_handled=
10402       for n in $names_already_handled; do
10403         if test "$n" = "$name"; then
10404           already_handled=yes
10405           break
10406         fi
10407       done
10408       if test -z "$already_handled"; then
10409         names_already_handled="$names_already_handled $name"
10410                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10411         eval value=\"\$HAVE_LIB$uppername\"
10412         if test -n "$value"; then
10413           if test "$value" = yes; then
10414             eval value=\"\$LIB$uppername\"
10415             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10416             eval value=\"\$LTLIB$uppername\"
10417             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10418           else
10419                                     :
10420           fi
10421         else
10422                               found_dir=
10423           found_la=
10424           found_so=
10425           found_a=
10426           if test $use_additional = yes; then
10427             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10428               found_dir="$additional_libdir"
10429               found_so="$additional_libdir/lib$name.$shlibext"
10430               if test -f "$additional_libdir/lib$name.la"; then
10431                 found_la="$additional_libdir/lib$name.la"
10432               fi
10433             else
10434               if test -f "$additional_libdir/lib$name.$libext"; then
10435                 found_dir="$additional_libdir"
10436                 found_a="$additional_libdir/lib$name.$libext"
10437                 if test -f "$additional_libdir/lib$name.la"; then
10438                   found_la="$additional_libdir/lib$name.la"
10439                 fi
10440               fi
10441             fi
10442           fi
10443           if test "X$found_dir" = "X"; then
10444             for x in $LDFLAGS $LTLIBICONV; do
10445
10446   acl_save_prefix="$prefix"
10447   prefix="$acl_final_prefix"
10448   acl_save_exec_prefix="$exec_prefix"
10449   exec_prefix="$acl_final_exec_prefix"
10450   eval x=\"$x\"
10451   exec_prefix="$acl_save_exec_prefix"
10452   prefix="$acl_save_prefix"
10453
10454               case "$x" in
10455                 -L*)
10456                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10457                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10458                     found_dir="$dir"
10459                     found_so="$dir/lib$name.$shlibext"
10460                     if test -f "$dir/lib$name.la"; then
10461                       found_la="$dir/lib$name.la"
10462                     fi
10463                   else
10464                     if test -f "$dir/lib$name.$libext"; then
10465                       found_dir="$dir"
10466                       found_a="$dir/lib$name.$libext"
10467                       if test -f "$dir/lib$name.la"; then
10468                         found_la="$dir/lib$name.la"
10469                       fi
10470                     fi
10471                   fi
10472                   ;;
10473               esac
10474               if test "X$found_dir" != "X"; then
10475                 break
10476               fi
10477             done
10478           fi
10479           if test "X$found_dir" != "X"; then
10480                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10481             if test "X$found_so" != "X"; then
10482                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10483                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10484               else
10485                                                                                 haveit=
10486                 for x in $ltrpathdirs; do
10487                   if test "X$x" = "X$found_dir"; then
10488                     haveit=yes
10489                     break
10490                   fi
10491                 done
10492                 if test -z "$haveit"; then
10493                   ltrpathdirs="$ltrpathdirs $found_dir"
10494                 fi
10495                                 if test "$hardcode_direct" = yes; then
10496                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10497                 else
10498                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10499                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10500                                                             haveit=
10501                     for x in $rpathdirs; do
10502                       if test "X$x" = "X$found_dir"; then
10503                         haveit=yes
10504                         break
10505                       fi
10506                     done
10507                     if test -z "$haveit"; then
10508                       rpathdirs="$rpathdirs $found_dir"
10509                     fi
10510                   else
10511                                                                                 haveit=
10512                     for x in $LDFLAGS $LIBICONV; do
10513
10514   acl_save_prefix="$prefix"
10515   prefix="$acl_final_prefix"
10516   acl_save_exec_prefix="$exec_prefix"
10517   exec_prefix="$acl_final_exec_prefix"
10518   eval x=\"$x\"
10519   exec_prefix="$acl_save_exec_prefix"
10520   prefix="$acl_save_prefix"
10521
10522                       if test "X$x" = "X-L$found_dir"; then
10523                         haveit=yes
10524                         break
10525                       fi
10526                     done
10527                     if test -z "$haveit"; then
10528                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10529                     fi
10530                     if test "$hardcode_minus_L" != no; then
10531                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10532                     else
10533                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10534                     fi
10535                   fi
10536                 fi
10537               fi
10538             else
10539               if test "X$found_a" != "X"; then
10540                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10541               else
10542                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10543               fi
10544             fi
10545                         additional_includedir=
10546             case "$found_dir" in
10547               */lib | */lib/)
10548                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10549                 additional_includedir="$basedir/include"
10550                 ;;
10551             esac
10552             if test "X$additional_includedir" != "X"; then
10553                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10554                 haveit=
10555                 if test "X$additional_includedir" = "X/usr/local/include"; then
10556                   if test -n "$GCC"; then
10557                     case $host_os in
10558                       linux*) haveit=yes;;
10559                     esac
10560                   fi
10561                 fi
10562                 if test -z "$haveit"; then
10563                   for x in $CPPFLAGS $INCICONV; do
10564
10565   acl_save_prefix="$prefix"
10566   prefix="$acl_final_prefix"
10567   acl_save_exec_prefix="$exec_prefix"
10568   exec_prefix="$acl_final_exec_prefix"
10569   eval x=\"$x\"
10570   exec_prefix="$acl_save_exec_prefix"
10571   prefix="$acl_save_prefix"
10572
10573                     if test "X$x" = "X-I$additional_includedir"; then
10574                       haveit=yes
10575                       break
10576                     fi
10577                   done
10578                   if test -z "$haveit"; then
10579                     if test -d "$additional_includedir"; then
10580                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10581                     fi
10582                   fi
10583                 fi
10584               fi
10585             fi
10586                         if test -n "$found_la"; then
10587                                                         save_libdir="$libdir"
10588               case "$found_la" in
10589                 */* | *\\*) . "$found_la" ;;
10590                 *) . "./$found_la" ;;
10591               esac
10592               libdir="$save_libdir"
10593                             for dep in $dependency_libs; do
10594                 case "$dep" in
10595                   -L*)
10596                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10597                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10598                       haveit=
10599                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10600                         if test -n "$GCC"; then
10601                           case $host_os in
10602                             linux*) haveit=yes;;
10603                           esac
10604                         fi
10605                       fi
10606                       if test -z "$haveit"; then
10607                         haveit=
10608                         for x in $LDFLAGS $LIBICONV; do
10609
10610   acl_save_prefix="$prefix"
10611   prefix="$acl_final_prefix"
10612   acl_save_exec_prefix="$exec_prefix"
10613   exec_prefix="$acl_final_exec_prefix"
10614   eval x=\"$x\"
10615   exec_prefix="$acl_save_exec_prefix"
10616   prefix="$acl_save_prefix"
10617
10618                           if test "X$x" = "X-L$additional_libdir"; then
10619                             haveit=yes
10620                             break
10621                           fi
10622                         done
10623                         if test -z "$haveit"; then
10624                           if test -d "$additional_libdir"; then
10625                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10626                           fi
10627                         fi
10628                         haveit=
10629                         for x in $LDFLAGS $LTLIBICONV; do
10630
10631   acl_save_prefix="$prefix"
10632   prefix="$acl_final_prefix"
10633   acl_save_exec_prefix="$exec_prefix"
10634   exec_prefix="$acl_final_exec_prefix"
10635   eval x=\"$x\"
10636   exec_prefix="$acl_save_exec_prefix"
10637   prefix="$acl_save_prefix"
10638
10639                           if test "X$x" = "X-L$additional_libdir"; then
10640                             haveit=yes
10641                             break
10642                           fi
10643                         done
10644                         if test -z "$haveit"; then
10645                           if test -d "$additional_libdir"; then
10646                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10647                           fi
10648                         fi
10649                       fi
10650                     fi
10651                     ;;
10652                   -R*)
10653                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10654                     if test "$enable_rpath" != no; then
10655                                                                   haveit=
10656                       for x in $rpathdirs; do
10657                         if test "X$x" = "X$dir"; then
10658                           haveit=yes
10659                           break
10660                         fi
10661                       done
10662                       if test -z "$haveit"; then
10663                         rpathdirs="$rpathdirs $dir"
10664                       fi
10665                                                                   haveit=
10666                       for x in $ltrpathdirs; do
10667                         if test "X$x" = "X$dir"; then
10668                           haveit=yes
10669                           break
10670                         fi
10671                       done
10672                       if test -z "$haveit"; then
10673                         ltrpathdirs="$ltrpathdirs $dir"
10674                       fi
10675                     fi
10676                     ;;
10677                   -l*)
10678                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10679                     ;;
10680                   *.la)
10681                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10682                     ;;
10683                   *)
10684                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10685                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10686                     ;;
10687                 esac
10688               done
10689             fi
10690           else
10691                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10692             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10693           fi
10694         fi
10695       fi
10696     done
10697   done
10698   if test "X$rpathdirs" != "X"; then
10699     if test -n "$hardcode_libdir_separator"; then
10700                         alldirs=
10701       for found_dir in $rpathdirs; do
10702         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10703       done
10704             acl_save_libdir="$libdir"
10705       libdir="$alldirs"
10706       eval flag=\"$hardcode_libdir_flag_spec\"
10707       libdir="$acl_save_libdir"
10708       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10709     else
10710             for found_dir in $rpathdirs; do
10711         acl_save_libdir="$libdir"
10712         libdir="$found_dir"
10713         eval flag=\"$hardcode_libdir_flag_spec\"
10714         libdir="$acl_save_libdir"
10715         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10716       done
10717     fi
10718   fi
10719   if test "X$ltrpathdirs" != "X"; then
10720             for found_dir in $ltrpathdirs; do
10721       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10722     done
10723   fi
10724
10725
10726
10727
10728
10729
10730
10731           am_save_CPPFLAGS="$CPPFLAGS"
10732
10733   for element in $INCICONV; do
10734     haveit=
10735     for x in $CPPFLAGS; do
10736
10737   acl_save_prefix="$prefix"
10738   prefix="$acl_final_prefix"
10739   acl_save_exec_prefix="$exec_prefix"
10740   exec_prefix="$acl_final_exec_prefix"
10741   eval x=\"$x\"
10742   exec_prefix="$acl_save_exec_prefix"
10743   prefix="$acl_save_prefix"
10744
10745       if test "X$x" = "X$element"; then
10746         haveit=yes
10747         break
10748       fi
10749     done
10750     if test -z "$haveit"; then
10751       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10752     fi
10753   done
10754
10755
10756   echo "$as_me:$LINENO: checking for iconv" >&5
10757 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10758 if test "${am_cv_func_iconv+set}" = set; then
10759   echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761
10762     am_cv_func_iconv="no, consider installing GNU libiconv"
10763     am_cv_lib_iconv=no
10764     cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h.  */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h.  */
10770 #include <stdlib.h>
10771 #include <iconv.h>
10772 int
10773 main ()
10774 {
10775 iconv_t cd = iconv_open("","");
10776        iconv(cd,NULL,NULL,NULL,NULL);
10777        iconv_close(cd);
10778   ;
10779   return 0;
10780 }
10781 _ACEOF
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10784   (eval $ac_link) 2>conftest.er1
10785   ac_status=$?
10786   grep -v '^ *+' conftest.er1 >conftest.err
10787   rm -f conftest.er1
10788   cat conftest.err >&5
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); } &&
10791          { ac_try='test -z "$ac_c_werror_flag"
10792                          || test ! -s conftest.err'
10793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794   (eval $ac_try) 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; } &&
10798          { ac_try='test -s conftest$ac_exeext'
10799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800   (eval $ac_try) 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); }; }; then
10804   am_cv_func_iconv=yes
10805 else
10806   echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10808
10809 fi
10810 rm -f conftest.err conftest.$ac_objext \
10811       conftest$ac_exeext conftest.$ac_ext
10812     if test "$am_cv_func_iconv" != yes; then
10813       am_save_LIBS="$LIBS"
10814       LIBS="$LIBS $LIBICONV"
10815       cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h.  */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h.  */
10821 #include <stdlib.h>
10822 #include <iconv.h>
10823 int
10824 main ()
10825 {
10826 iconv_t cd = iconv_open("","");
10827          iconv(cd,NULL,NULL,NULL,NULL);
10828          iconv_close(cd);
10829   ;
10830   return 0;
10831 }
10832 _ACEOF
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10835   (eval $ac_link) 2>conftest.er1
10836   ac_status=$?
10837   grep -v '^ *+' conftest.er1 >conftest.err
10838   rm -f conftest.er1
10839   cat conftest.err >&5
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); } &&
10842          { ac_try='test -z "$ac_c_werror_flag"
10843                          || test ! -s conftest.err'
10844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845   (eval $ac_try) 2>&5
10846   ac_status=$?
10847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848   (exit $ac_status); }; } &&
10849          { ac_try='test -s conftest$ac_exeext'
10850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10851   (eval $ac_try) 2>&5
10852   ac_status=$?
10853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854   (exit $ac_status); }; }; then
10855   am_cv_lib_iconv=yes
10856         am_cv_func_iconv=yes
10857 else
10858   echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10860
10861 fi
10862 rm -f conftest.err conftest.$ac_objext \
10863       conftest$ac_exeext conftest.$ac_ext
10864       LIBS="$am_save_LIBS"
10865     fi
10866
10867 fi
10868 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10869 echo "${ECHO_T}$am_cv_func_iconv" >&6
10870   if test "$am_cv_func_iconv" = yes; then
10871
10872 cat >>confdefs.h <<\_ACEOF
10873 #define HAVE_ICONV 1
10874 _ACEOF
10875
10876   fi
10877   if test "$am_cv_lib_iconv" = yes; then
10878     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10879 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10880     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10881 echo "${ECHO_T}$LIBICONV" >&6
10882   else
10883             CPPFLAGS="$am_save_CPPFLAGS"
10884     LIBICONV=
10885     LTLIBICONV=
10886   fi
10887
10888
10889
10890   if test "$am_cv_func_iconv" = yes; then
10891     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10892 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10893     if test "${am_cv_proto_iconv+set}" = set; then
10894   echo $ECHO_N "(cached) $ECHO_C" >&6
10895 else
10896
10897       cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h.  */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h.  */
10903
10904 #include <stdlib.h>
10905 #include <iconv.h>
10906 extern
10907 #ifdef __cplusplus
10908 "C"
10909 #endif
10910 #if defined(__STDC__) || defined(__cplusplus)
10911 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10912 #else
10913 size_t iconv();
10914 #endif
10915
10916 int
10917 main ()
10918 {
10919
10920   ;
10921   return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10926   (eval $ac_compile) 2>conftest.er1
10927   ac_status=$?
10928   grep -v '^ *+' conftest.er1 >conftest.err
10929   rm -f conftest.er1
10930   cat conftest.err >&5
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); } &&
10933          { ac_try='test -z "$ac_c_werror_flag"
10934                          || test ! -s conftest.err'
10935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936   (eval $ac_try) 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; } &&
10940          { ac_try='test -s conftest.$ac_objext'
10941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942   (eval $ac_try) 2>&5
10943   ac_status=$?
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); }; }; then
10946   am_cv_proto_iconv_arg1=""
10947 else
10948   echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951 am_cv_proto_iconv_arg1="const"
10952 fi
10953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10954       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);"
10955 fi
10956
10957     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10958     echo "$as_me:$LINENO: result: ${ac_t:-
10959          }$am_cv_proto_iconv" >&5
10960 echo "${ECHO_T}${ac_t:-
10961          }$am_cv_proto_iconv" >&6
10962
10963 cat >>confdefs.h <<_ACEOF
10964 #define ICONV_CONST $am_cv_proto_iconv_arg1
10965 _ACEOF
10966
10967   fi
10968
10969 # Until we have in-tree GNU iconv:
10970 LIBICONV_DEP=
10971
10972
10973
10974   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10975 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10976 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10977   echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979   cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h.  */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h.  */
10985 #include <locale.h>
10986 int
10987 main ()
10988 {
10989 return LC_MESSAGES
10990   ;
10991   return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest.$ac_objext conftest$ac_exeext
10995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10996   (eval $ac_link) 2>conftest.er1
10997   ac_status=$?
10998   grep -v '^ *+' conftest.er1 >conftest.err
10999   rm -f conftest.er1
11000   cat conftest.err >&5
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } &&
11003          { ac_try='test -z "$ac_c_werror_flag"
11004                          || test ! -s conftest.err'
11005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006   (eval $ac_try) 2>&5
11007   ac_status=$?
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); }; } &&
11010          { ac_try='test -s conftest$ac_exeext'
11011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012   (eval $ac_try) 2>&5
11013   ac_status=$?
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); }; }; then
11016   am_cv_val_LC_MESSAGES=yes
11017 else
11018   echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11020
11021 am_cv_val_LC_MESSAGES=no
11022 fi
11023 rm -f conftest.err conftest.$ac_objext \
11024       conftest$ac_exeext conftest.$ac_ext
11025 fi
11026 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11027 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11028   if test $am_cv_val_LC_MESSAGES = yes; then
11029
11030 cat >>confdefs.h <<\_ACEOF
11031 #define HAVE_LC_MESSAGES 1
11032 _ACEOF
11033
11034   fi
11035
11036
11037 # We will need to find libiberty.h and ansidecl.h
11038 saved_CFLAGS="$CFLAGS"
11039 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064 for ac_func in getenv atol sbrk abort atof getcwd getwd \
11065         strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11066         fprintf_unlocked strstr errno snprintf vasprintf \
11067         malloc realloc calloc free basename getopt clock getpagesize
11068 do
11069   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11070 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11071 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11072 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11073   echo $ECHO_N "(cached) $ECHO_C" >&6
11074 else
11075   cat >conftest.$ac_ext <<_ACEOF
11076 /* confdefs.h.  */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h.  */
11081 #undef $ac_tr_decl
11082 #define $ac_tr_decl 1
11083
11084 #include "ansidecl.h"
11085 #include "system.h"
11086
11087 int
11088 main ()
11089 {
11090 #ifndef $ac_func
11091 char *(*pfn) = (char *(*)) $ac_func ;
11092 #endif
11093   ;
11094   return 0;
11095 }
11096 _ACEOF
11097 rm -f conftest.$ac_objext
11098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099   (eval $ac_compile) 2>conftest.er1
11100   ac_status=$?
11101   grep -v '^ *+' conftest.er1 >conftest.err
11102   rm -f conftest.er1
11103   cat conftest.err >&5
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); } &&
11106          { ac_try='test -z "$ac_c_werror_flag"
11107                          || test ! -s conftest.err'
11108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109   (eval $ac_try) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); }; } &&
11113          { ac_try='test -s conftest.$ac_objext'
11114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115   (eval $ac_try) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; }; then
11119   eval "gcc_cv_have_decl_$ac_func=yes"
11120 else
11121   echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11123
11124 eval "gcc_cv_have_decl_$ac_func=no"
11125 fi
11126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11127 fi
11128
11129 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11130   echo "$as_me:$LINENO: result: yes" >&5
11131 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11132 #define $ac_tr_decl 1
11133 _ACEOF
11134
11135 else
11136   echo "$as_me:$LINENO: result: no" >&5
11137 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11138 #define $ac_tr_decl 0
11139 _ACEOF
11140
11141 fi
11142
11143 done
11144
11145
11146
11147
11148
11149 for ac_func in getrlimit setrlimit getrusage
11150 do
11151   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11152 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11153 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11154 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11155   echo $ECHO_N "(cached) $ECHO_C" >&6
11156 else
11157   cat >conftest.$ac_ext <<_ACEOF
11158 /* confdefs.h.  */
11159 _ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h.  */
11163 #undef $ac_tr_decl
11164 #define $ac_tr_decl 1
11165
11166 #include "ansidecl.h"
11167 #include "system.h"
11168 #ifdef HAVE_SYS_RESOURCE_H
11169 #include <sys/resource.h>
11170 #endif
11171
11172
11173 int
11174 main ()
11175 {
11176 #ifndef $ac_func
11177 char *(*pfn) = (char *(*)) $ac_func ;
11178 #endif
11179   ;
11180   return 0;
11181 }
11182 _ACEOF
11183 rm -f conftest.$ac_objext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185   (eval $ac_compile) 2>conftest.er1
11186   ac_status=$?
11187   grep -v '^ *+' conftest.er1 >conftest.err
11188   rm -f conftest.er1
11189   cat conftest.err >&5
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); } &&
11192          { ac_try='test -z "$ac_c_werror_flag"
11193                          || test ! -s conftest.err'
11194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195   (eval $ac_try) 2>&5
11196   ac_status=$?
11197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198   (exit $ac_status); }; } &&
11199          { ac_try='test -s conftest.$ac_objext'
11200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201   (eval $ac_try) 2>&5
11202   ac_status=$?
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); }; }; then
11205   eval "gcc_cv_have_decl_$ac_func=yes"
11206 else
11207   echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11209
11210 eval "gcc_cv_have_decl_$ac_func=no"
11211 fi
11212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11213 fi
11214
11215 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11216   echo "$as_me:$LINENO: result: yes" >&5
11217 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11218 #define $ac_tr_decl 1
11219 _ACEOF
11220
11221 else
11222   echo "$as_me:$LINENO: result: no" >&5
11223 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11224 #define $ac_tr_decl 0
11225 _ACEOF
11226
11227 fi
11228
11229 done
11230
11231
11232 cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h.  */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h.  */
11238
11239 #include "ansidecl.h"
11240 #include "system.h"
11241 #ifdef HAVE_SYS_RESOURCE_H
11242 #include <sys/resource.h>
11243 #endif
11244
11245 int
11246 main ()
11247 {
11248 rlim_t l = 0;
11249   ;
11250   return 0;
11251 }
11252 _ACEOF
11253 rm -f conftest.$ac_objext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11255   (eval $ac_compile) 2>conftest.er1
11256   ac_status=$?
11257   grep -v '^ *+' conftest.er1 >conftest.err
11258   rm -f conftest.er1
11259   cat conftest.err >&5
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); } &&
11262          { ac_try='test -z "$ac_c_werror_flag"
11263                          || test ! -s conftest.err'
11264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265   (eval $ac_try) 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); }; } &&
11269          { ac_try='test -s conftest.$ac_objext'
11270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271   (eval $ac_try) 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; }; then
11275   :
11276 else
11277   echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280
11281 cat >>confdefs.h <<\_ACEOF
11282 #define rlim_t long
11283 _ACEOF
11284
11285 fi
11286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11287
11288
11289 for ac_func in ldgetname
11290 do
11291   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11292 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11293 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11294 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11295   echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297   cat >conftest.$ac_ext <<_ACEOF
11298 /* confdefs.h.  */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h.  */
11303 #undef $ac_tr_decl
11304 #define $ac_tr_decl 1
11305
11306 #include "ansidecl.h"
11307 #include "system.h"
11308 #ifdef HAVE_LDFCN_H
11309 #include <ldfcn.h>
11310 #endif
11311
11312
11313 int
11314 main ()
11315 {
11316 #ifndef $ac_func
11317 char *(*pfn) = (char *(*)) $ac_func ;
11318 #endif
11319   ;
11320   return 0;
11321 }
11322 _ACEOF
11323 rm -f conftest.$ac_objext
11324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11325   (eval $ac_compile) 2>conftest.er1
11326   ac_status=$?
11327   grep -v '^ *+' conftest.er1 >conftest.err
11328   rm -f conftest.er1
11329   cat conftest.err >&5
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); } &&
11332          { ac_try='test -z "$ac_c_werror_flag"
11333                          || test ! -s conftest.err'
11334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335   (eval $ac_try) 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; } &&
11339          { ac_try='test -s conftest.$ac_objext'
11340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341   (eval $ac_try) 2>&5
11342   ac_status=$?
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); }; }; then
11345   eval "gcc_cv_have_decl_$ac_func=yes"
11346 else
11347   echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350 eval "gcc_cv_have_decl_$ac_func=no"
11351 fi
11352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11353 fi
11354
11355 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11356   echo "$as_me:$LINENO: result: yes" >&5
11357 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11358 #define $ac_tr_decl 1
11359 _ACEOF
11360
11361 else
11362   echo "$as_me:$LINENO: result: no" >&5
11363 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11364 #define $ac_tr_decl 0
11365 _ACEOF
11366
11367 fi
11368
11369 done
11370
11371
11372
11373 for ac_func in times
11374 do
11375   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11376 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11377 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11378 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11379   echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381   cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h.  */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h.  */
11387 #undef $ac_tr_decl
11388 #define $ac_tr_decl 1
11389
11390 #include "ansidecl.h"
11391 #include "system.h"
11392 #ifdef HAVE_SYS_TIMES_H
11393 #include <sys/times.h>
11394 #endif
11395
11396
11397 int
11398 main ()
11399 {
11400 #ifndef $ac_func
11401 char *(*pfn) = (char *(*)) $ac_func ;
11402 #endif
11403   ;
11404   return 0;
11405 }
11406 _ACEOF
11407 rm -f conftest.$ac_objext
11408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11409   (eval $ac_compile) 2>conftest.er1
11410   ac_status=$?
11411   grep -v '^ *+' conftest.er1 >conftest.err
11412   rm -f conftest.er1
11413   cat conftest.err >&5
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); } &&
11416          { ac_try='test -z "$ac_c_werror_flag"
11417                          || test ! -s conftest.err'
11418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419   (eval $ac_try) 2>&5
11420   ac_status=$?
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); }; } &&
11423          { ac_try='test -s conftest.$ac_objext'
11424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425   (eval $ac_try) 2>&5
11426   ac_status=$?
11427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428   (exit $ac_status); }; }; then
11429   eval "gcc_cv_have_decl_$ac_func=yes"
11430 else
11431   echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11433
11434 eval "gcc_cv_have_decl_$ac_func=no"
11435 fi
11436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11437 fi
11438
11439 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11440   echo "$as_me:$LINENO: result: yes" >&5
11441 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11442 #define $ac_tr_decl 1
11443 _ACEOF
11444
11445 else
11446   echo "$as_me:$LINENO: result: no" >&5
11447 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11448 #define $ac_tr_decl 0
11449 _ACEOF
11450
11451 fi
11452
11453 done
11454
11455
11456 # More time-related stuff.
11457 echo "$as_me:$LINENO: checking for struct tms" >&5
11458 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11459 if test "${ac_cv_struct_tms+set}" = set; then
11460   echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462
11463 cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h.  */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h.  */
11469
11470 #include "ansidecl.h"
11471 #include "system.h"
11472 #ifdef HAVE_SYS_TIMES_H
11473 #include <sys/times.h>
11474 #endif
11475
11476 int
11477 main ()
11478 {
11479 struct tms tms;
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 rm -f conftest.$ac_objext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486   (eval $ac_compile) 2>conftest.er1
11487   ac_status=$?
11488   grep -v '^ *+' conftest.er1 >conftest.err
11489   rm -f conftest.er1
11490   cat conftest.err >&5
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); } &&
11493          { ac_try='test -z "$ac_c_werror_flag"
11494                          || test ! -s conftest.err'
11495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496   (eval $ac_try) 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); }; } &&
11500          { ac_try='test -s conftest.$ac_objext'
11501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502   (eval $ac_try) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); }; }; then
11506   ac_cv_struct_tms=yes
11507 else
11508   echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11510
11511 ac_cv_struct_tms=no
11512 fi
11513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11514 fi
11515 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11516 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11517 if test $ac_cv_struct_tms = yes; then
11518
11519 cat >>confdefs.h <<\_ACEOF
11520 #define HAVE_STRUCT_TMS 1
11521 _ACEOF
11522
11523 fi
11524
11525 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11526 # revisit after autoconf 2.50.
11527 echo "$as_me:$LINENO: checking for clock_t" >&5
11528 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11529 if test "${gcc_cv_type_clock_t+set}" = set; then
11530   echo $ECHO_N "(cached) $ECHO_C" >&6
11531 else
11532
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h.  */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h.  */
11539
11540 #include "ansidecl.h"
11541 #include "system.h"
11542
11543 int
11544 main ()
11545 {
11546 clock_t x;
11547   ;
11548   return 0;
11549 }
11550 _ACEOF
11551 rm -f conftest.$ac_objext
11552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11553   (eval $ac_compile) 2>conftest.er1
11554   ac_status=$?
11555   grep -v '^ *+' conftest.er1 >conftest.err
11556   rm -f conftest.er1
11557   cat conftest.err >&5
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); } &&
11560          { ac_try='test -z "$ac_c_werror_flag"
11561                          || test ! -s conftest.err'
11562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563   (eval $ac_try) 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); }; } &&
11567          { ac_try='test -s conftest.$ac_objext'
11568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569   (eval $ac_try) 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; }; then
11573   gcc_cv_type_clock_t=yes
11574 else
11575   echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 gcc_cv_type_clock_t=no
11579 fi
11580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11581 fi
11582 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11583 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11584 if test $gcc_cv_type_clock_t = yes; then
11585
11586 cat >>confdefs.h <<\_ACEOF
11587 #define HAVE_CLOCK_T 1
11588 _ACEOF
11589
11590 fi
11591
11592 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11593 CFLAGS="$saved_CFLAGS"
11594
11595 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11596 if test "${enable_initfini_array+set}" = set; then
11597   enableval="$enable_initfini_array"
11598
11599 else
11600
11601 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11602 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11603 if test "${gcc_cv_initfini_array+set}" = set; then
11604   echo $ECHO_N "(cached) $ECHO_C" >&6
11605 else
11606     if test "$cross_compiling" = yes; then
11607   gcc_cv_initfini_array=no
11608 else
11609   cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h.  */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h.  */
11615
11616 static int x = -1;
11617 int main (void) { return x; }
11618 int foo (void) { x = 0; }
11619 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11620 _ACEOF
11621 rm -f conftest$ac_exeext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623   (eval $ac_link) 2>&5
11624   ac_status=$?
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628   (eval $ac_try) 2>&5
11629   ac_status=$?
11630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631   (exit $ac_status); }; }; then
11632   gcc_cv_initfini_array=yes
11633 else
11634   echo "$as_me: program exited with status $ac_status" >&5
11635 echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11637
11638 ( exit $ac_status )
11639 gcc_cv_initfini_array=no
11640 fi
11641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11642 fi
11643 fi
11644 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11645 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11646   enable_initfini_array=$gcc_cv_initfini_array
11647
11648 fi;
11649 if test $enable_initfini_array = yes; then
11650
11651 cat >>confdefs.h <<\_ACEOF
11652 #define HAVE_INITFINI_ARRAY 1
11653 _ACEOF
11654
11655 fi
11656
11657 # mkdir takes a single argument on some systems.
11658 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11659 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11660 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11661   echo $ECHO_N "(cached) $ECHO_C" >&6
11662 else
11663   cat >conftest.$ac_ext <<_ACEOF
11664 /* confdefs.h.  */
11665 _ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h.  */
11669
11670 #include <sys/types.h>
11671 #ifdef HAVE_SYS_STAT_H
11672 # include <sys/stat.h>
11673 #endif
11674 #ifdef HAVE_UNISTD_H
11675 # include <unistd.h>
11676 #endif
11677 #ifdef HAVE_DIRECT_H
11678 # include <direct.h>
11679 #endif
11680 int
11681 main ()
11682 {
11683 mkdir ("foo", 0);
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 rm -f conftest.$ac_objext
11689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690   (eval $ac_compile) 2>conftest.er1
11691   ac_status=$?
11692   grep -v '^ *+' conftest.er1 >conftest.err
11693   rm -f conftest.er1
11694   cat conftest.err >&5
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); } &&
11697          { ac_try='test -z "$ac_c_werror_flag"
11698                          || test ! -s conftest.err'
11699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700   (eval $ac_try) 2>&5
11701   ac_status=$?
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); }; } &&
11704          { ac_try='test -s conftest.$ac_objext'
11705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706   (eval $ac_try) 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; }; then
11710   gcc_cv_mkdir_takes_one_arg=no
11711 else
11712   echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11714
11715 gcc_cv_mkdir_takes_one_arg=yes
11716 fi
11717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11718 fi
11719 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11720 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11721 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11722
11723 cat >>confdefs.h <<\_ACEOF
11724 #define MKDIR_TAKES_ONE_ARG 1
11725 _ACEOF
11726
11727 fi
11728
11729
11730 # File extensions
11731 manext='.1'
11732 objext='.o'
11733
11734
11735
11736 # With Setjmp/Longjmp based exception handling.
11737 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11738 if test "${enable_sjlj_exceptions+set}" = set; then
11739   enableval="$enable_sjlj_exceptions"
11740   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11741
11742 cat >>confdefs.h <<_ACEOF
11743 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11744 _ACEOF
11745
11746 fi;
11747
11748 # For platforms with the unwind ABI which includes an unwind library,
11749 # libunwind, we can choose to use the system libunwind.
11750
11751 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11752 if test "${with_system_libunwind+set}" = set; then
11753   withval="$with_system_libunwind"
11754
11755 fi;
11756
11757 # --------------------------------------------------------
11758 # Build, host, and target specific configuration fragments
11759 # --------------------------------------------------------
11760
11761 # Collect build-machine-specific information.
11762 . ${srcdir}/config.build
11763
11764 # Collect host-machine-specific information.
11765 . ${srcdir}/config.host
11766
11767 target_gtfiles=
11768
11769 # Collect target-machine-specific information.
11770 . ${srcdir}/config.gcc
11771
11772 extra_objs="${host_extra_objs} ${extra_objs}"
11773 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11774
11775 # Default the target-machine variables that were not explicitly set.
11776 if test x"$tm_file" = x
11777 then tm_file=$cpu_type/$cpu_type.h; fi
11778
11779 if test x"$extra_headers" = x
11780 then extra_headers=; fi
11781
11782 if test x$md_file = x
11783 then md_file=$cpu_type/$cpu_type.md; fi
11784
11785 if test x$out_file = x
11786 then out_file=$cpu_type/$cpu_type.c; fi
11787
11788 if test x"$tmake_file" = x
11789 then tmake_file=$cpu_type/t-$cpu_type
11790 fi
11791
11792 if test x"$dwarf2" = xyes
11793 then tm_file="$tm_file tm-dwarf2.h"
11794 fi
11795
11796 # Say what files are being used for the output code and MD file.
11797 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11798 echo "Using \`$srcdir/config/$md_file' as machine description file."
11799
11800 # If any of the xm_file variables contain nonexistent files, warn
11801 # about them and drop them.
11802
11803 bx=
11804 for x in $build_xm_file; do
11805   if    test -f $srcdir/config/$x
11806   then      bx="$bx $x"
11807   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11808 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11809   fi
11810 done
11811 build_xm_file="$bx"
11812
11813 hx=
11814 for x in $host_xm_file; do
11815   if    test -f $srcdir/config/$x
11816   then      hx="$hx $x"
11817   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11818 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11819   fi
11820 done
11821 host_xm_file="$hx"
11822
11823 tx=
11824 for x in $xm_file; do
11825   if    test -f $srcdir/config/$x
11826   then      tx="$tx $x"
11827   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11828 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11829   fi
11830 done
11831 xm_file="$tx"
11832
11833 count=a
11834 for f in $tm_file; do
11835         count=${count}x
11836 done
11837 if test $count = ax; then
11838         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11839 else
11840         echo "Using the following target machine macro files:"
11841         for f in $tm_file; do
11842                 echo "  $srcdir/config/$f"
11843         done
11844 fi
11845
11846 if test x$need_64bit_hwint = xyes; then
11847
11848 cat >>confdefs.h <<\_ACEOF
11849 #define NEED_64BIT_HOST_WIDE_INT 1
11850 _ACEOF
11851
11852 fi
11853
11854 if test x$use_long_long_for_widest_fast_int = xyes; then
11855
11856 cat >>confdefs.h <<\_ACEOF
11857 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11858 _ACEOF
11859
11860 fi
11861
11862 count=a
11863 for f in $host_xm_file; do
11864         count=${count}x
11865 done
11866 if test $count = a; then
11867         :
11868 elif test $count = ax; then
11869         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11870 else
11871         echo "Using the following host machine macro files:"
11872         for f in $host_xm_file; do
11873                 echo "  $srcdir/config/$f"
11874         done
11875 fi
11876 echo "Using ${out_host_hook_obj} for host machine hooks."
11877
11878 if test "$host_xm_file" != "$build_xm_file"; then
11879         count=a
11880         for f in $build_xm_file; do
11881                 count=${count}x
11882         done
11883         if test $count = a; then
11884                 :
11885         elif test $count = ax; then
11886                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11887         else
11888                 echo "Using the following build machine macro files:"
11889                 for f in $build_xm_file; do
11890                         echo "  $srcdir/config/$f"
11891                 done
11892         fi
11893 fi
11894
11895 # ---------
11896 # Threading
11897 # ---------
11898
11899 # Check if a valid thread package
11900 case ${enable_threads} in
11901   "" | no)
11902     # No threads
11903     target_thread_file='single'
11904     ;;
11905   yes)
11906     # default
11907     target_thread_file='single'
11908     ;;
11909   aix | dce | gnat | irix | posix | rtems | \
11910   single | solaris | vxworks | win32 )
11911     target_thread_file=${enable_threads}
11912     ;;
11913   *)
11914     echo "${enable_threads} is an unknown thread package" 1>&2
11915     exit 1
11916     ;;
11917 esac
11918
11919 if test x${thread_file} = x; then
11920   # No thread file set by target-specific clauses in config.gcc,
11921   # so use file chosen by default logic above
11922   thread_file=${target_thread_file}
11923 fi
11924
11925 # Make gthr-default.h if we have a thread file.
11926 gthread_flags=
11927 if test $thread_file != single; then
11928   rm -f gthr-default.h
11929   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11930   gthread_flags=-DHAVE_GTHR_DEFAULT
11931 fi
11932
11933
11934 # --------
11935 # UNSORTED
11936 # --------
11937
11938 if test x$enable___cxa_atexit = xyes || \
11939    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11940    echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
11941 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
11942 if test "${ac_cv_func___cxa_atexit+set}" = set; then
11943   echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945   cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
11952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11953 #define __cxa_atexit innocuous___cxa_atexit
11954
11955 /* System header to define __stub macros and hopefully few prototypes,
11956     which can conflict with char __cxa_atexit (); below.
11957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958     <limits.h> exists even on freestanding compilers.  */
11959
11960 #ifdef __STDC__
11961 # include <limits.h>
11962 #else
11963 # include <assert.h>
11964 #endif
11965
11966 #undef __cxa_atexit
11967
11968 /* Override any gcc2 internal prototype to avoid an error.  */
11969 #ifdef __cplusplus
11970 extern "C"
11971 {
11972 #endif
11973 /* We use char because int might match the return type of a gcc2
11974    builtin and then its argument prototype would still apply.  */
11975 char __cxa_atexit ();
11976 /* The GNU C library defines this for functions which it implements
11977     to always fail with ENOSYS.  Some functions are actually named
11978     something starting with __ and the normal name is an alias.  */
11979 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
11980 choke me
11981 #else
11982 char (*f) () = __cxa_atexit;
11983 #endif
11984 #ifdef __cplusplus
11985 }
11986 #endif
11987
11988 int
11989 main ()
11990 {
11991 return f != __cxa_atexit;
11992   ;
11993   return 0;
11994 }
11995 _ACEOF
11996 rm -f conftest.$ac_objext conftest$ac_exeext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11998   (eval $ac_link) 2>conftest.er1
11999   ac_status=$?
12000   grep -v '^ *+' conftest.er1 >conftest.err
12001   rm -f conftest.er1
12002   cat conftest.err >&5
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); } &&
12005          { ac_try='test -z "$ac_c_werror_flag"
12006                          || test ! -s conftest.err'
12007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008   (eval $ac_try) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); }; } &&
12012          { ac_try='test -s conftest$ac_exeext'
12013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014   (eval $ac_try) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }; }; then
12018   ac_cv_func___cxa_atexit=yes
12019 else
12020   echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 ac_cv_func___cxa_atexit=no
12024 fi
12025 rm -f conftest.err conftest.$ac_objext \
12026       conftest$ac_exeext conftest.$ac_ext
12027 fi
12028 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12029 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12030 if test $ac_cv_func___cxa_atexit = yes; then
12031
12032 cat >>confdefs.h <<\_ACEOF
12033 #define DEFAULT_USE_CXA_ATEXIT 1
12034 _ACEOF
12035
12036 else
12037   echo "__cxa_atexit can't be enabled on this target"
12038 fi
12039
12040 fi
12041
12042 # Look for a file containing extra machine modes.
12043 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12044   extra_modes_file='$(srcdir)'/config/${extra_modes}
12045
12046
12047 cat >>confdefs.h <<_ACEOF
12048 #define EXTRA_MODES_FILE "config/$extra_modes"
12049 _ACEOF
12050
12051 fi
12052
12053 # auto-host.h is the file containing items generated by autoconf and is
12054 # the first file included by config.h.
12055 # If host=build, it is correct to have bconfig include auto-host.h
12056 # as well.  If host!=build, we are in error and need to do more
12057 # work to find out the build config parameters.
12058 if test x$host = x$build
12059 then
12060         build_auto=auto-host.h
12061 else
12062         # We create a subdir, then run autoconf in the subdir.
12063         # To prevent recursion we set host and build for the new
12064         # invocation of configure to the build for this invocation
12065         # of configure.
12066         tempdir=build.$$
12067         rm -rf $tempdir
12068         mkdir $tempdir
12069         cd $tempdir
12070         case ${srcdir} in
12071         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12072         *) realsrcdir=../${srcdir};;
12073         esac
12074         saved_CFLAGS="${CFLAGS}"
12075         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12076         ${realsrcdir}/configure \
12077                 --enable-languages=${enable_languages-all} \
12078                 --target=$target_alias --host=$build_alias --build=$build_alias
12079         CFLAGS="${saved_CFLAGS}"
12080
12081         # We just finished tests for the build machine, so rename
12082         # the file auto-build.h in the gcc directory.
12083         mv auto-host.h ../auto-build.h
12084         cd ..
12085         rm -rf $tempdir
12086         build_auto=auto-build.h
12087 fi
12088
12089
12090 tm_file="${tm_file} defaults.h"
12091 tm_p_file="${tm_p_file} tm-preds.h"
12092 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12093 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12094 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12095 # put this back in temporarily.
12096 xm_file="ansidecl.h ${xm_file}"
12097
12098 # --------
12099 # UNSORTED
12100 # --------
12101
12102 # Get the version trigger filename from the toplevel
12103 if test "${with_gcc_version_trigger+set}" = set; then
12104         gcc_version_trigger=$with_gcc_version_trigger
12105 else
12106         gcc_version_trigger=${srcdir}/version.c
12107 fi
12108 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
12109 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
12110
12111 # Compile in configure arguments.
12112 if test -f configargs.h ; then
12113         # Being re-configured.
12114         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12115         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12116 else
12117         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12118 fi
12119
12120 # Double all backslashes and backslash all quotes to turn
12121 # gcc_config_arguments into a C string.
12122 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12123 $gcc_config_arguments
12124 EOF
12125 gcc_config_arguments_str=`cat conftest.out`
12126 rm -f conftest.out
12127
12128 cat > configargs.h <<EOF
12129 /* Generated automatically. */
12130 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12131 static const char thread_model[] = "$thread_file";
12132
12133 static const struct {
12134   const char *name, *value;
12135 } configure_default_options[] = $configure_default_options;
12136 EOF
12137
12138 # Internationalization
12139 PACKAGE=gcc
12140 VERSION="$gcc_version"
12141
12142 cat >>confdefs.h <<_ACEOF
12143 #define PACKAGE "$PACKAGE"
12144 _ACEOF
12145
12146
12147
12148
12149 # If we haven't got the data from the intl directory,
12150 # assume NLS is disabled.
12151 USE_NLS=no
12152 LIBINTL=
12153 LIBINTL_DEP=
12154 INCINTL=
12155 XGETTEXT=
12156 GMSGFMT=
12157 POSUB=
12158 if test -f ../intl/config.intl; then
12159   . ../intl/config.intl
12160 fi
12161 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12162 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12163 if test x"$USE_NLS" != xyes; then
12164   echo "$as_me:$LINENO: result: no" >&5
12165 echo "${ECHO_T}no" >&6
12166 else
12167   echo "$as_me:$LINENO: result: yes" >&5
12168 echo "${ECHO_T}yes" >&6
12169
12170 cat >>confdefs.h <<\_ACEOF
12171 #define ENABLE_NLS 1
12172 _ACEOF
12173
12174
12175   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12176 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12177   # Look for .po and .gmo files in the source directory.
12178   CATALOGS=
12179   XLINGUAS=
12180   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12181     # If there aren't any .gmo files the shell will give us the
12182     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12183     # weeded out.
12184     case "$cat" in *\**)
12185       continue;;
12186     esac
12187     # The quadruple backslash is collapsed to a double backslash
12188     # by the backticks, then collapsed again by the double quotes,
12189     # leaving us with one backslash in the sed expression (right
12190     # before the dot that mustn't act as a wildcard).
12191     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12192     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12193     # The user is allowed to set LINGUAS to a list of languages to
12194     # install catalogs for.  If it's empty that means "all of them."
12195     if test "x$LINGUAS" = x; then
12196       CATALOGS="$CATALOGS $cat"
12197       XLINGUAS="$XLINGUAS $lang"
12198     else
12199       case "$LINGUAS" in *$lang*)
12200         CATALOGS="$CATALOGS $cat"
12201         XLINGUAS="$XLINGUAS $lang"
12202         ;;
12203       esac
12204     fi
12205   done
12206   LINGUAS="$XLINGUAS"
12207   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12208 echo "${ECHO_T}$LINGUAS" >&6
12209 fi
12210
12211 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12212 # -liconv on the link line twice.
12213 case "$LIBINTL" in *$LIBICONV*)
12214         LIBICONV= ;;
12215 esac
12216
12217 # Windows32 Registry support for specifying GCC installation paths.
12218 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12219 if test "${enable_win32_registry+set}" = set; then
12220   enableval="$enable_win32_registry"
12221
12222 fi;
12223 case $host_os in
12224         win32 | pe | cygwin* | mingw32* | uwin*)
12225 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12226 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12227 if test "x$enable_win32_registry" != xno; then
12228
12229 cat >>confdefs.h <<\_ACEOF
12230 #define ENABLE_WIN32_REGISTRY 1
12231 _ACEOF
12232
12233   echo "$as_me:$LINENO: result: yes" >&5
12234 echo "${ECHO_T}yes" >&6
12235   echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12236 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12237 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12238   echo $ECHO_N "(cached) $ECHO_C" >&6
12239 else
12240   ac_func_search_save_LIBS=$LIBS
12241 ac_cv_search_RegOpenKeyExA=no
12242 cat >conftest.$ac_ext <<_ACEOF
12243 /* confdefs.h.  */
12244 _ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h.  */
12248
12249 /* Override any gcc2 internal prototype to avoid an error.  */
12250 #ifdef __cplusplus
12251 extern "C"
12252 #endif
12253 /* We use char because int might match the return type of a gcc2
12254    builtin and then its argument prototype would still apply.  */
12255 char RegOpenKeyExA ();
12256 int
12257 main ()
12258 {
12259 RegOpenKeyExA ();
12260   ;
12261   return 0;
12262 }
12263 _ACEOF
12264 rm -f conftest.$ac_objext conftest$ac_exeext
12265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12266   (eval $ac_link) 2>conftest.er1
12267   ac_status=$?
12268   grep -v '^ *+' conftest.er1 >conftest.err
12269   rm -f conftest.er1
12270   cat conftest.err >&5
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); } &&
12273          { ac_try='test -z "$ac_c_werror_flag"
12274                          || test ! -s conftest.err'
12275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276   (eval $ac_try) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; } &&
12280          { ac_try='test -s conftest$ac_exeext'
12281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282   (eval $ac_try) 2>&5
12283   ac_status=$?
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); }; }; then
12286   ac_cv_search_RegOpenKeyExA="none required"
12287 else
12288   echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12290
12291 fi
12292 rm -f conftest.err conftest.$ac_objext \
12293       conftest$ac_exeext conftest.$ac_ext
12294 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12295   for ac_lib in advapi32; do
12296     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12297     cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h.  */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h.  */
12303
12304 /* Override any gcc2 internal prototype to avoid an error.  */
12305 #ifdef __cplusplus
12306 extern "C"
12307 #endif
12308 /* We use char because int might match the return type of a gcc2
12309    builtin and then its argument prototype would still apply.  */
12310 char RegOpenKeyExA ();
12311 int
12312 main ()
12313 {
12314 RegOpenKeyExA ();
12315   ;
12316   return 0;
12317 }
12318 _ACEOF
12319 rm -f conftest.$ac_objext conftest$ac_exeext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321   (eval $ac_link) 2>conftest.er1
12322   ac_status=$?
12323   grep -v '^ *+' conftest.er1 >conftest.err
12324   rm -f conftest.er1
12325   cat conftest.err >&5
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); } &&
12328          { ac_try='test -z "$ac_c_werror_flag"
12329                          || test ! -s conftest.err'
12330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331   (eval $ac_try) 2>&5
12332   ac_status=$?
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); }; } &&
12335          { ac_try='test -s conftest$ac_exeext'
12336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337   (eval $ac_try) 2>&5
12338   ac_status=$?
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); }; }; then
12341   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12342 break
12343 else
12344   echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12346
12347 fi
12348 rm -f conftest.err conftest.$ac_objext \
12349       conftest$ac_exeext conftest.$ac_ext
12350   done
12351 fi
12352 LIBS=$ac_func_search_save_LIBS
12353 fi
12354 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12355 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12356 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12357   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12358
12359 fi
12360
12361 else
12362   echo "$as_me:$LINENO: result: no" >&5
12363 echo "${ECHO_T}no" >&6
12364 fi
12365
12366 # Check if user specified a different registry key.
12367 case "x${enable_win32_registry}" in
12368 x | xyes)
12369   # default.
12370   gcc_cv_win32_registry_key="$VERSION"
12371   ;;
12372 xno)
12373   # no registry lookup.
12374   gcc_cv_win32_registry_key=''
12375   ;;
12376 *)
12377   # user-specified key.
12378   gcc_cv_win32_registry_key="$enable_win32_registry"
12379   ;;
12380 esac
12381
12382 if test "x$enable_win32_registry" != xno; then
12383   echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12384 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12385
12386 cat >>confdefs.h <<_ACEOF
12387 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12388 _ACEOF
12389
12390   echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12391 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12392 fi
12393 ;;
12394 esac
12395
12396 # Get an absolute path to the GCC top-level source directory
12397 holddir=`${PWDCMD-pwd}`
12398 cd $srcdir
12399 topdir=`${PWDCMD-pwd}`
12400 cd $holddir
12401
12402 # Conditionalize the makefile for this host machine.
12403 xmake_file=
12404 for f in ${host_xmake_file}
12405 do
12406         if test -f ${srcdir}/config/$f
12407         then
12408                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12409         fi
12410 done
12411
12412 # Conditionalize the makefile for this target machine.
12413 tmake_file_=
12414 for f in ${tmake_file}
12415 do
12416         if test -f ${srcdir}/config/$f
12417         then
12418                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12419         fi
12420 done
12421 tmake_file="${tmake_file_}"
12422
12423 symbolic_link='ln -s'
12424
12425 # If the host doesn't support symlinks, modify CC in
12426 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12427 # Otherwise, we can use "CC=$(CC)".
12428 rm -f symtest.tem
12429 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
12430 then
12431         cc_set_by_configure="\$(CC)"
12432         quoted_cc_set_by_configure="\$(CC)"
12433         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12434         quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12435 else
12436         rm -f symtest.tem
12437         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
12438         then
12439                 symbolic_link="cp -p"
12440         else
12441                 symbolic_link="cp"
12442         fi
12443         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12444         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12445         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12446         quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12447 fi
12448 rm -f symtest.tem
12449
12450 out_object_file=`basename $out_file .c`.o
12451
12452 tm_file_list=
12453 tm_include_list=
12454 for f in $tm_file; do
12455   case $f in
12456     defaults.h )
12457        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12458        tm_include_list="${tm_include_list} $f"
12459        ;;
12460     * )
12461        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12462        tm_include_list="${tm_include_list} config/$f"
12463        ;;
12464   esac
12465 done
12466
12467 tm_p_file_list=
12468 tm_p_include_list=
12469 for f in $tm_p_file; do
12470   case $f in
12471     tm-preds.h )
12472        tm_p_file_list="${tm_p_file_list} $f"
12473        tm_p_include_list="${tm_p_include_list} $f"
12474        ;;
12475     * )
12476        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12477        tm_p_include_list="${tm_p_include_list} config/$f"
12478   esac
12479 done
12480
12481 xm_file_list=
12482 xm_include_list=
12483 for f in $xm_file; do
12484   case $f in
12485     ansidecl.h )
12486        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12487        xm_include_list="${xm_include_list} $f"
12488        ;;
12489     auto-host.h )
12490        xm_file_list="${xm_file_list} $f"
12491        xm_include_list="${xm_include_list} $f"
12492        ;;
12493     * )
12494        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12495        xm_include_list="${xm_include_list} config/$f"
12496        ;;
12497   esac
12498 done
12499
12500 host_xm_file_list=
12501 host_xm_include_list=
12502 for f in $host_xm_file; do
12503   case $f in
12504     ansidecl.h )
12505        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12506        host_xm_include_list="${host_xm_include_list} $f"
12507        ;;
12508     auto-host.h )
12509        host_xm_file_list="${host_xm_file_list} $f"
12510        host_xm_include_list="${host_xm_include_list} $f"
12511        ;;
12512     * )
12513        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12514        host_xm_include_list="${host_xm_include_list} config/$f"
12515        ;;
12516   esac
12517 done
12518
12519 build_xm_file_list=
12520 for f in $build_xm_file; do
12521   case $f in
12522     ansidecl.h )
12523        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12524        build_xm_include_list="${build_xm_include_list} $f"
12525        ;;
12526     auto-build.h | auto-host.h )
12527        build_xm_file_list="${build_xm_file_list} $f"
12528        build_xm_include_list="${build_xm_include_list} $f"
12529        ;;
12530     * )
12531        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12532        build_xm_include_list="${build_xm_include_list} config/$f"
12533        ;;
12534   esac
12535 done
12536
12537 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12538 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12539 CROSS=
12540 ALL=all.internal
12541 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12542 if test x$host != x$target
12543 then
12544         CROSS="-DCROSS_COMPILE"
12545         ALL=all.cross
12546         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12547         case "$host","$target" in
12548         # Darwin crosses can use the host system's libraries and headers,
12549         # because of the fat library support.  Of course, it must be the
12550         # same version of Darwin on both sides.  Allow the user to
12551         # just say --target=foo-darwin without a version number to mean
12552         # "the version on this system".
12553             *-*-darwin*,*-*-darwin*)
12554                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12555                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12556                 if test $hostos = $targetos -o $targetos = darwin ; then
12557                     CROSS=
12558                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12559                     with_headers=yes
12560                 fi
12561                 ;;
12562
12563             i?86-*-*,x86_64-*-* \
12564             | powerpc*-*-*,powerpc64*-*-*)
12565                 CROSS="$CROSS -DNATIVE_CROSS" ;;
12566         esac
12567 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12568         # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12569         SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12570 fi
12571
12572 # If this is a cross-compiler that does not
12573 # have its own set of headers then define
12574 # inhibit_libc
12575
12576 # If this is using newlib, without having the headers available now,
12577 # then define inhibit_libc in LIBGCC2_CFLAGS.
12578 # This prevents libgcc2 from containing any code which requires libc
12579 # support.
12580 inhibit_libc=
12581 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12582        test x$with_newlib = xyes ; } &&
12583      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12584        inhibit_libc=-Dinhibit_libc
12585 fi
12586
12587
12588 # When building gcc with a cross-compiler, we need to adjust things so
12589 # that the generator programs are still built with the native compiler.
12590 # Also, we cannot run fixincludes or fix-header.
12591
12592 # These are the normal (build=host) settings:
12593 CC_FOR_BUILD='$(CC)'
12594 BUILD_CFLAGS='$(ALL_CFLAGS)'
12595 STMP_FIXINC=stmp-fixinc
12596
12597 # Possibly disable fixproto, on a per-target basis.
12598 case ${use_fixproto} in
12599   no)
12600     STMP_FIXPROTO=
12601     ;;
12602   yes)
12603     STMP_FIXPROTO=stmp-fixproto
12604     ;;
12605 esac
12606
12607
12608 # And these apply if build != host, or we are generating coverage data
12609 if test x$build != x$host || test "x$coverage_flags" != x
12610 then
12611     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12612
12613     if test "x$TARGET_SYSTEM_ROOT" = x; then
12614         STMP_FIXINC=
12615         STMP_FIXPROTO=
12616     fi
12617 fi
12618
12619 # When bootstrapping from the toplevel, only run fixincludes during stage1
12620 if test -d ../prev-gcc
12621 then
12622     STMP_FIXINC=
12623     cp -R ../prev-gcc/include include
12624 fi
12625
12626 # Expand extra_headers to include complete path.
12627 # This substitutes for lots of t-* files.
12628 extra_headers_list=
12629 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12630 for file in ${extra_headers} ; do
12631   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12632 done
12633
12634 # Define collect2 in Makefile.
12635 case $host_can_use_collect2 in
12636   no) collect2= ;;
12637   *) collect2='collect2$(exeext)' ;;
12638 esac
12639
12640
12641 # Add a definition of USE_COLLECT2 if system wants one.
12642 case $use_collect2 in
12643   no) use_collect2= ;;
12644   "") ;;
12645   *)
12646     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12647     xm_defines="${xm_defines} USE_COLLECT2"
12648     case $host_can_use_collect2 in
12649       no)
12650         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12651 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12652    { (exit 1); exit 1; }; }
12653         ;;
12654     esac
12655     ;;
12656 esac
12657
12658 # ---------------------------
12659 # Assembler & linker features
12660 # ---------------------------
12661
12662 # Identify the assembler which will work hand-in-glove with the newly
12663 # built GCC, so that we can examine its features.  This is the assembler
12664 # which will be driven by the driver program.
12665 #
12666 # If build != host, and we aren't building gas in-tree, we identify a
12667 # build->target assembler and hope that it will have the same features
12668 # as the host->target assembler we'll be using.
12669 echo "$as_me:$LINENO: checking what assembler to use" >&5
12670 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12671 in_tree_gas=no
12672 gcc_cv_as=
12673 gcc_cv_gas_major_version=
12674 gcc_cv_gas_minor_version=
12675 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12676 if test -x "$DEFAULT_ASSEMBLER"; then
12677         gcc_cv_as="$DEFAULT_ASSEMBLER"
12678 elif test -x as$host_exeext; then
12679         # Build using assembler in the current directory.
12680         gcc_cv_as=./as$host_exeext
12681 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12682      && test -f ../gas/Makefile \
12683      && test x$build = x$host; then
12684   # Single tree build which includes gas.  We want to prefer it
12685   # over whatever linker top-level may have detected, since
12686   # we'll use what we're building after installation anyway.
12687   in_tree_gas=yes
12688   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12689 for f in $gcc_cv_as_bfd_srcdir/configure \
12690          $gcc_cv_as_gas_srcdir/configure \
12691          $gcc_cv_as_gas_srcdir/configure.in \
12692          $gcc_cv_as_gas_srcdir/Makefile.in ; do
12693   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12694   if test x$gcc_cv_gas_version != x; then
12695     break
12696   fi
12697 done
12698 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12699 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12700 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12701 case $gcc_cv_gas_patch_version in
12702   "") gcc_cv_gas_patch_version="0" ;;
12703 esac
12704 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12705                             + $gcc_cv_gas_minor_version \) \* 1000 \
12706                             + $gcc_cv_gas_patch_version`
12707
12708   rm -f as$host_exeext
12709   $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
12710   in_tree_gas_is_elf=no
12711   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12712      || (grep 'obj_format = multi' ../gas/Makefile \
12713          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12714   then
12715     in_tree_gas_is_elf=yes
12716   fi
12717 elif test -x "$AS_FOR_TARGET"; then
12718         gcc_cv_as="$AS_FOR_TARGET"
12719 elif test -x "$AS" && test x$host = x$target; then
12720         gcc_cv_as="$AS"
12721 fi
12722
12723 if test "x$gcc_cv_as" = x; then
12724         # Search the same directories that the installed compiler will
12725         # search.  Else we may find the wrong assembler and lose.  If we
12726         # do not find a suitable assembler binary, then try the user's
12727         # path.
12728         #
12729         # Also note we have to check MD_EXEC_PREFIX before checking the
12730         # user's path.  Unfortunately, there is no good way to get at the
12731         # value of MD_EXEC_PREFIX here.  So we do a brute force search
12732         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
12733         # to be fixed as part of the make/configure rewrite too.
12734
12735         if test "x$exec_prefix" = xNONE; then
12736                 if test "x$prefix" = xNONE; then
12737                         test_prefix=/usr/local
12738                 else
12739                         test_prefix=$prefix
12740                 fi
12741         else
12742                 test_prefix=$exec_prefix
12743         fi
12744
12745         # If the loop below does not find an assembler, then use whatever
12746         # one we can find in the users's path.
12747         # user's path.
12748         if test "x$program_prefix" != xNONE; then
12749                 gcc_cv_as=${program_prefix}as$host_exeext
12750         else
12751                 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
12752         fi
12753
12754         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12755                    $test_prefix/libexec/gcc/$target_noncanonical \
12756                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
12757                    /usr/lib/gcc/$target_noncanonical \
12758                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12759                    $test_prefix/$target_noncanonical/bin"
12760
12761         if test x$host = x$target; then
12762             test_dirs="$test_dirs \
12763                    /usr/libexec \
12764                    /usr/ccs/gcc \
12765                    /usr/ccs/bin \
12766                    /udk/usr/ccs/bin \
12767                    /bsd43/usr/lib/cmplrs/cc \
12768                    /usr/cross64/usr/bin \
12769                    /usr/lib/cmplrs/cc \
12770                    /sysv/usr/lib/cmplrs/cc \
12771                    /svr4/usr/lib/cmplrs/cc \
12772                    /usr/bin"
12773         fi
12774
12775         for dir in $test_dirs; do
12776                 if test -x $dir/as$host_exeext; then
12777                         gcc_cv_as=$dir/as$host_exeext
12778                         break;
12779                 fi
12780         done
12781 fi
12782 case $in_tree_gas in
12783   yes)
12784     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12785 echo "${ECHO_T}\"newly built gas\"" >&6
12786     ;;
12787   no)
12788     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12789 echo "${ECHO_T}$gcc_cv_as" >&6
12790     ;;
12791 esac
12792
12793 # Identify the linker which will work hand-in-glove with the newly
12794 # built GCC, so that we can examine its features.  This is the linker
12795 # which will be driven by the driver program.
12796 #
12797 # If build != host, and we aren't building gas in-tree, we identify a
12798 # build->target linker and hope that it will have the same features
12799 # as the host->target linker we'll be using.
12800 echo "$as_me:$LINENO: checking what linker to use" >&5
12801 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12802 in_tree_ld=no
12803 gcc_cv_ld=
12804 gcc_cv_gld_major_version=
12805 gcc_cv_gld_minor_version=
12806 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12807 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12808 if test -x "$DEFAULT_LINKER"; then
12809         gcc_cv_ld="$DEFAULT_LINKER"
12810 elif test -x collect-ld$host_exeext; then
12811         # Build using linker in the current directory.
12812         gcc_cv_ld=./collect-ld$host_exeext
12813 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12814      && test -f ../ld/Makefile \
12815      && test x$build = x$host; then
12816         # Single tree build which includes ld.  We want to prefer it
12817         # over whatever linker top-level may have detected, since
12818         # we'll use what we're building after installation anyway.
12819         in_tree_ld=yes
12820         in_tree_ld_is_elf=no
12821         if (grep 'EMUL = .*elf' ../ld/Makefile \
12822             || grep 'EMUL = .*linux' ../ld/Makefile \
12823             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12824           in_tree_ld_is_elf=yes
12825         fi
12826         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
12827         do
12828                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12829                 if test x$gcc_cv_gld_version != x; then
12830                         break
12831                 fi
12832         done
12833         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12834         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12835         rm -f collect-ld$host_exeext
12836         $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
12837                 2>/dev/null
12838 elif test -x "$LD_FOR_TARGET"; then
12839         gcc_cv_ld="$LD_FOR_TARGET"
12840 elif test -x "$LD" && test x$host = x$target; then
12841         gcc_cv_ld="$LD"
12842 fi
12843
12844 if test "x$gcc_cv_ld" = x; then
12845         # Search the same directories that the installed compiler will
12846         # search.  Else we may find the wrong linker and lose.  If we
12847         # do not find a suitable linker binary, then try the user's
12848         # path.
12849         #
12850         # Also note we have to check MD_EXEC_PREFIX before checking the
12851         # user's path.  Unfortunately, there is no good way to get at the
12852         # value of MD_EXEC_PREFIX here.  So we do a brute force search
12853         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
12854         # to be fixed as part of the make/configure rewrite too.
12855
12856         if test "x$exec_prefix" = xNONE; then
12857                 if test "x$prefix" = xNONE; then
12858                         test_prefix=/usr/local
12859                 else
12860                         test_prefix=$prefix
12861                 fi
12862         else
12863                 test_prefix=$exec_prefix
12864         fi
12865
12866         # If the loop below does not find an linker, then use whatever
12867         # one we can find in the users's path.
12868         # user's path.
12869         if test "x$program_prefix" != xNONE; then
12870                 gcc_cv_ld=${program_prefix}ld$host_exeext
12871         else
12872                 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
12873         fi
12874
12875         test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12876                    $test_prefix/libexec/gcc/$target_noncanonical \
12877                    /usr/lib/gcc/$target_noncanonical/$gcc_version \
12878                    /usr/lib/gcc/$target_noncanonical \
12879                    $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12880                    $test_prefix/$target_noncanonical/bin"
12881
12882         if test x$host = x$target; then
12883             test_dirs="$test_dirs \
12884                    /usr/libexec \
12885                    /usr/ccs/gcc \
12886                    /usr/ccs/bin \
12887                    /udk/usr/ccs/bin \
12888                    /bsd43/usr/lib/cmplrs/cc \
12889                    /usr/cross64/usr/bin \
12890                    /usr/lib/cmplrs/cc \
12891                    /sysv/usr/lib/cmplrs/cc \
12892                    /svr4/usr/lib/cmplrs/cc \
12893                    /usr/bin"
12894         fi
12895
12896         for dir in $test_dirs; do
12897                 if test -x $dir/ld$host_exeext; then
12898                         gcc_cv_ld=$dir/ld$host_exeext
12899                         break;
12900                 fi
12901         done
12902 fi
12903 case $in_tree_ld in
12904   yes)
12905     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12906 echo "${ECHO_T}\"newly built ld\"" >&6
12907     ;;
12908   no)
12909     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12910 echo "${ECHO_T}$gcc_cv_ld" >&6
12911     ;;
12912 esac
12913
12914 # Figure out what nm we will be using.
12915 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12916 echo "$as_me:$LINENO: checking what nm to use" >&5
12917 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12918 in_tree_nm=no
12919 if test -x nm$host_exeext; then
12920         gcc_cv_nm=./nm$host_exeext
12921 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12922      && test -f ../binutils/Makefile; then
12923         # Single tree build which includes binutils.
12924         in_tree_nm=yes
12925         gcc_cv_nm=./nm$host_exeext
12926         rm -f nm$host_exeext
12927         $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
12928 elif test "x$program_prefix" != xNONE; then
12929         gcc_cv_nm=${program_prefix}nm$host_exeext
12930 else
12931         gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
12932 fi
12933 case $in_tree_nm in
12934   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12935 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12936   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12937 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12938 esac
12939
12940 # Figure out what objdump we will be using.
12941 echo "$as_me:$LINENO: checking what objdump to use" >&5
12942 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12943 in_tree_objdump=no
12944 if test -x objdump$host_exeext; then
12945         gcc_cv_objdump=./objdump$host_exeext
12946 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12947      && test -f ../binutils/Makefile; then
12948         # Single tree build which includes binutils.
12949         in_tree_objdump=yes
12950         gcc_cv_objdump=./objdump$host_exeext
12951         rm -f objdump$host_exeext
12952         $symbolic_link ../binutils/objdump$host_exeext \
12953                 objdump$host_exeext 2>/dev/null
12954 elif test "x$program_prefix" != xNONE; then
12955         gcc_cv_objdump=${program_prefix}objdump$host_exeext
12956 else
12957         gcc_cv_objdump=`echo objdump | \
12958                 sed "${program_transform_name}"`$host_exeext
12959 fi
12960 case $in_tree_objdump in
12961   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12962 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12963   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12964 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12965 esac
12966
12967 # Figure out what assembler alignment features are present.
12968 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
12969 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
12970 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
12971   echo $ECHO_N "(cached) $ECHO_C" >&6
12972 else
12973   gcc_cv_as_balign_and_p2align=no
12974     if test $in_tree_gas = yes; then
12975     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
12976   then gcc_cv_as_balign_and_p2align=yes
12977 fi
12978   elif test x$gcc_cv_as != x; then
12979     echo '.balign 4
12980 .p2align 2' > conftest.s
12981     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
12982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983   (eval $ac_try) 2>&5
12984   ac_status=$?
12985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986   (exit $ac_status); }; }
12987     then
12988         gcc_cv_as_balign_and_p2align=yes
12989     else
12990       echo "configure: failed program was" >&5
12991       cat conftest.s >&5
12992     fi
12993     rm -f conftest.o conftest.s
12994   fi
12995 fi
12996 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
12997 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
12998 if test $gcc_cv_as_balign_and_p2align = yes; then
12999
13000 cat >>confdefs.h <<\_ACEOF
13001 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13002 _ACEOF
13003
13004 fi
13005
13006 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13007 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13008 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13009   echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011   gcc_cv_as_max_skip_p2align=no
13012     if test $in_tree_gas = yes; then
13013     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13014   then gcc_cv_as_max_skip_p2align=yes
13015 fi
13016   elif test x$gcc_cv_as != x; then
13017     echo '.p2align 4,,7' > conftest.s
13018     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020   (eval $ac_try) 2>&5
13021   ac_status=$?
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); }; }
13024     then
13025         gcc_cv_as_max_skip_p2align=yes
13026     else
13027       echo "configure: failed program was" >&5
13028       cat conftest.s >&5
13029     fi
13030     rm -f conftest.o conftest.s
13031   fi
13032 fi
13033 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13034 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13035 if test $gcc_cv_as_max_skip_p2align = yes; then
13036
13037 cat >>confdefs.h <<\_ACEOF
13038 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13039 _ACEOF
13040
13041 fi
13042
13043 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13044 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13045 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13046   echo $ECHO_N "(cached) $ECHO_C" >&6
13047 else
13048   gcc_cv_as_subsection_m1=no
13049     if test $in_tree_gas = yes; then
13050     if test $in_tree_gas_is_elf = yes \
13051   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13052   then gcc_cv_as_subsection_m1=yes
13053 fi
13054   elif test x$gcc_cv_as != x; then
13055     echo 'conftest_label1: .word 0
13056 .subsection -1
13057 conftest_label2: .word 0
13058 .previous' > conftest.s
13059     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061   (eval $ac_try) 2>&5
13062   ac_status=$?
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); }; }
13065     then
13066         if test x$gcc_cv_nm != x; then
13067     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13068     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13069     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13070     then :
13071     else gcc_cv_as_subsection_m1=yes
13072     fi
13073     rm -f conftest.nm1 conftest.nm2
13074   fi
13075     else
13076       echo "configure: failed program was" >&5
13077       cat conftest.s >&5
13078     fi
13079     rm -f conftest.o conftest.s
13080   fi
13081 fi
13082 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13083 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13084 if test $gcc_cv_as_subsection_m1 = yes; then
13085
13086 cat >>confdefs.h <<\_ACEOF
13087 #define HAVE_GAS_SUBSECTION_ORDERING 1
13088 _ACEOF
13089
13090 fi
13091
13092 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13093 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13094 if test "${gcc_cv_as_weak+set}" = set; then
13095   echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097   gcc_cv_as_weak=no
13098     if test $in_tree_gas = yes; then
13099     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13100   then gcc_cv_as_weak=yes
13101 fi
13102   elif test x$gcc_cv_as != x; then
13103     echo '      .weak foobar' > conftest.s
13104     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106   (eval $ac_try) 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; }
13110     then
13111         gcc_cv_as_weak=yes
13112     else
13113       echo "configure: failed program was" >&5
13114       cat conftest.s >&5
13115     fi
13116     rm -f conftest.o conftest.s
13117   fi
13118 fi
13119 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13120 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13121 if test $gcc_cv_as_weak = yes; then
13122
13123 cat >>confdefs.h <<\_ACEOF
13124 #define HAVE_GAS_WEAK 1
13125 _ACEOF
13126
13127 fi
13128
13129 # .hidden needs to be supported in both the assembler and the linker,
13130 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13131 # This is irritatingly difficult to feature test for; we have to check the
13132 # date string after the version number.  If we've got an in-tree
13133 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13134 # to be safe.
13135 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13136 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13137 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13138 if test "${gcc_cv_as_hidden+set}" = set; then
13139   echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141   gcc_cv_as_hidden=no
13142     if test $in_tree_gas = yes; then
13143     if test $in_tree_gas_is_elf = yes \
13144   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13145   then gcc_cv_as_hidden=yes
13146 fi
13147   elif test x$gcc_cv_as != x; then
13148     echo '      .hidden foobar
13149 foobar:' > conftest.s
13150     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152   (eval $ac_try) 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }; }
13156     then
13157         gcc_cv_as_hidden=yes
13158     else
13159       echo "configure: failed program was" >&5
13160       cat conftest.s >&5
13161     fi
13162     rm -f conftest.o conftest.s
13163   fi
13164 fi
13165 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13166 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13167
13168
13169 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13170 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13171 if test "${gcc_cv_ld_hidden+set}" = set; then
13172   echo $ECHO_N "(cached) $ECHO_C" >&6
13173 else
13174   if test $in_tree_ld = yes ; then
13175   gcc_cv_ld_hidden=no
13176   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 \
13177      && test $in_tree_ld_is_elf = yes; then
13178      gcc_cv_ld_hidden=yes
13179   fi
13180 else
13181   gcc_cv_ld_hidden=yes
13182   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13183   if echo "$ld_ver" | grep GNU > /dev/null; then
13184     ld_vers=`echo $ld_ver | sed -n \
13185         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13186         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13187         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13188         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
13189         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
13190         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[        ].*$,\1,p'`
13191     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'`
13192     if test 0"$ld_date" -lt 20020404; then
13193       if test -n "$ld_date"; then
13194         # If there was date string, but was earlier than 2002-04-04, fail
13195         gcc_cv_ld_hidden=no
13196       elif test -z "$ld_vers"; then
13197         # If there was no date string nor ld version number, something is wrong
13198         gcc_cv_ld_hidden=no
13199       else
13200         ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13201         ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13202         ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13203         test -z "$ld_vers_patch" && ld_vers_patch=0
13204         if test "$ld_vers_major" -lt 2; then
13205           gcc_cv_ld_hidden=no
13206         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13207           gcc_cv_ld_hidden="no"
13208         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13209           gcc_cv_ld_hidden=no
13210         fi
13211       fi
13212     fi
13213   else
13214     case "${target}" in
13215       hppa64*-*-hpux* | ia64*-*-hpux*)
13216         gcc_cv_ld_hidden=yes
13217         ;;
13218       *)
13219         gcc_cv_ld_hidden=no
13220         ;;
13221     esac
13222   fi
13223 fi
13224 fi
13225 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13226 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13227 libgcc_visibility=no
13228
13229 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13230   libgcc_visibility=yes
13231
13232 cat >>confdefs.h <<\_ACEOF
13233 #define HAVE_GAS_HIDDEN 1
13234 _ACEOF
13235
13236 fi
13237
13238 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13239 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13240 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13241 if test "${gcc_cv_as_leb128+set}" = set; then
13242   echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244   gcc_cv_as_leb128=no
13245     if test $in_tree_gas = yes; then
13246     if test $in_tree_gas_is_elf = yes \
13247   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13248   then gcc_cv_as_leb128=yes
13249 fi
13250   elif test x$gcc_cv_as != x; then
13251     echo '      .data
13252         .uleb128 L2 - L1
13253 L1:
13254         .uleb128 1280
13255         .sleb128 -1010
13256 L2:' > conftest.s
13257     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259   (eval $ac_try) 2>&5
13260   ac_status=$?
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); }; }
13263     then
13264         # GAS versions before 2.11 do not support uleb128,
13265   # despite appearing to.
13266   # ??? There exists an elf-specific test that will crash
13267   # the assembler.  Perhaps it's better to figure out whether
13268   # arbitrary sections are supported and try the test.
13269   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13270   if echo "$as_ver" | grep GNU > /dev/null; then
13271     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13272     as_major=`echo $as_ver | sed 's/\..*//'`
13273     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13274     if test $as_major -eq 2 && test $as_minor -lt 11
13275     then :
13276     else gcc_cv_as_leb128=yes
13277     fi
13278   fi
13279     else
13280       echo "configure: failed program was" >&5
13281       cat conftest.s >&5
13282     fi
13283     rm -f conftest.o conftest.s
13284   fi
13285 fi
13286 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13287 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13288 if test $gcc_cv_as_leb128 = yes; then
13289
13290 cat >>confdefs.h <<\_ACEOF
13291 #define HAVE_AS_LEB128 1
13292 _ACEOF
13293
13294 fi
13295
13296 # GAS versions up to and including 2.11.0 may mis-optimize
13297 # .eh_frame data.
13298 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13299 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13300 if test "${gcc_cv_as_eh_frame+set}" = set; then
13301   echo $ECHO_N "(cached) $ECHO_C" >&6
13302 else
13303   gcc_cv_as_eh_frame=no
13304     if test $in_tree_gas = yes; then
13305     if test $in_tree_gas_is_elf = yes \
13306   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13307   then gcc_cv_as_eh_frame=yes
13308 fi
13309   elif test x$gcc_cv_as != x; then
13310     echo '      .text
13311 .LFB1:
13312         .4byte  0
13313 .L1:
13314         .4byte  0
13315 .LFE1:
13316         .section        .eh_frame,"aw",@progbits
13317 __FRAME_BEGIN__:
13318         .4byte  .LECIE1-.LSCIE1
13319 .LSCIE1:
13320         .4byte  0x0
13321         .byte   0x1
13322         .ascii "z\0"
13323         .byte   0x1
13324         .byte   0x78
13325         .byte   0x1a
13326         .byte   0x0
13327         .byte   0x4
13328         .4byte  1
13329         .p2align 1
13330 .LECIE1:
13331 .LSFDE1:
13332         .4byte  .LEFDE1-.LASFDE1
13333 .LASFDE1:
13334         .4byte  .LASFDE1-__FRAME_BEGIN__
13335         .4byte  .LFB1
13336         .4byte  .LFE1-.LFB1
13337         .byte   0x4
13338         .4byte  .LFE1-.LFB1
13339         .byte   0x4
13340         .4byte  .L1-.LFB1
13341 .LEFDE1:' > conftest.s
13342     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344   (eval $ac_try) 2>&5
13345   ac_status=$?
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); }; }
13348     then
13349           cat > conftest.lit <<EOF
13350  0000 10000000 00000000 017a0001 781a0004  .........z..x...
13351  0010 01000000 12000000 18000000 00000000  ................
13352  0020 08000000 04080000 0044               .........D      
13353 EOF
13354 cat > conftest.big <<EOF
13355  0000 00000010 00000000 017a0001 781a0004  .........z..x...
13356  0010 00000001 00000012 00000018 00000000  ................
13357  0020 00000008 04000000 0844               .........D      
13358 EOF
13359   # If the assembler didn't choke, and we can objdump,
13360   # and we got the correct data, then succeed.
13361   if test x$gcc_cv_objdump != x \
13362   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13363      | tail -3 > conftest.got \
13364   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13365     || cmp conftest.big conftest.got > /dev/null 2>&1; }
13366   then
13367     gcc_cv_as_eh_frame=yes
13368   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370   (eval $ac_try) 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; }; then
13374     gcc_cv_as_eh_frame=buggy
13375   else
13376     # Uh oh, what do we do now?
13377     gcc_cv_as_eh_frame=no
13378   fi
13379     else
13380       echo "configure: failed program was" >&5
13381       cat conftest.s >&5
13382     fi
13383     rm -f conftest.o conftest.s
13384   fi
13385 fi
13386 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13387 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13388
13389
13390 if test $gcc_cv_as_eh_frame = buggy; then
13391
13392 cat >>confdefs.h <<\_ACEOF
13393 #define USE_AS_TRADITIONAL_FORMAT 1
13394 _ACEOF
13395
13396 fi
13397
13398 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13399 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13400 if test "${gcc_cv_as_shf_merge+set}" = set; then
13401   echo $ECHO_N "(cached) $ECHO_C" >&6
13402 else
13403   gcc_cv_as_shf_merge=no
13404     if test $in_tree_gas = yes; then
13405     if test $in_tree_gas_is_elf = yes \
13406   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13407   then gcc_cv_as_shf_merge=yes
13408 fi
13409   elif test x$gcc_cv_as != x; then
13410     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13411     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413   (eval $ac_try) 2>&5
13414   ac_status=$?
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); }; }
13417     then
13418         gcc_cv_as_shf_merge=yes
13419     else
13420       echo "configure: failed program was" >&5
13421       cat conftest.s >&5
13422     fi
13423     rm -f conftest.o conftest.s
13424   fi
13425 fi
13426 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13427 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13428
13429 if test $gcc_cv_as_shf_merge = no; then
13430   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13431 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13432 if test "${gcc_cv_as_shf_merge+set}" = set; then
13433   echo $ECHO_N "(cached) $ECHO_C" >&6
13434 else
13435   gcc_cv_as_shf_merge=no
13436     if test $in_tree_gas = yes; then
13437     if test $in_tree_gas_is_elf = yes \
13438   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13439   then gcc_cv_as_shf_merge=yes
13440 fi
13441   elif test x$gcc_cv_as != x; then
13442     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13443     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445   (eval $ac_try) 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); }; }
13449     then
13450         gcc_cv_as_shf_merge=yes
13451     else
13452       echo "configure: failed program was" >&5
13453       cat conftest.s >&5
13454     fi
13455     rm -f conftest.o conftest.s
13456   fi
13457 fi
13458 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13459 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13460
13461 fi
13462
13463 cat >>confdefs.h <<_ACEOF
13464 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13465 _ACEOF
13466
13467
13468 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13469 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13470 if test "${gcc_cv_as_comdat_group+set}" = set; then
13471   echo $ECHO_N "(cached) $ECHO_C" >&6
13472 else
13473   gcc_cv_as_comdat_group=no
13474     if test $in_tree_gas = yes; then
13475     if test $in_tree_gas_is_elf = yes \
13476   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13477   then gcc_cv_as_comdat_group=yes
13478 fi
13479   elif test x$gcc_cv_as != x; then
13480     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13481     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483   (eval $ac_try) 2>&5
13484   ac_status=$?
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); }; }
13487     then
13488         gcc_cv_as_comdat_group=yes
13489     else
13490       echo "configure: failed program was" >&5
13491       cat conftest.s >&5
13492     fi
13493     rm -f conftest.o conftest.s
13494   fi
13495 fi
13496 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13497 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13498
13499 if test $gcc_cv_as_comdat_group = yes; then
13500   gcc_cv_as_comdat_group_percent=no
13501 else
13502  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13503 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13504 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13505   echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507   gcc_cv_as_comdat_group_percent=no
13508     if test $in_tree_gas = yes; then
13509     if test $in_tree_gas_is_elf = yes \
13510   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13511   then gcc_cv_as_comdat_group_percent=yes
13512 fi
13513   elif test x$gcc_cv_as != x; then
13514     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13515     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517   (eval $ac_try) 2>&5
13518   ac_status=$?
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); }; }
13521     then
13522         gcc_cv_as_comdat_group_percent=yes
13523     else
13524       echo "configure: failed program was" >&5
13525       cat conftest.s >&5
13526     fi
13527     rm -f conftest.o conftest.s
13528   fi
13529 fi
13530 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13531 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13532
13533 fi
13534
13535 cat >>confdefs.h <<_ACEOF
13536 #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`
13537 _ACEOF
13538
13539
13540 # Thread-local storage - the check is heavily parametrized.
13541 conftest_s=
13542 tls_first_major=
13543 tls_first_minor=
13544 tls_as_opt=
13545 case "$target" in
13546   alpha*-*-*)
13547     conftest_s='
13548         .section ".tdata","awT",@progbits
13549 foo:    .long   25
13550         .text
13551         ldq     $27,__tls_get_addr($29)         !literal!1
13552         lda     $16,foo($29)                    !tlsgd!1
13553         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
13554         ldq     $27,__tls_get_addr($29)         !literal!2
13555         lda     $16,foo($29)                    !tlsldm!2
13556         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
13557         ldq     $1,foo($29)                     !gotdtprel
13558         ldah    $2,foo($29)                     !dtprelhi
13559         lda     $3,foo($2)                      !dtprello
13560         lda     $4,foo($29)                     !dtprel
13561         ldq     $1,foo($29)                     !gottprel
13562         ldah    $2,foo($29)                     !tprelhi
13563         lda     $3,foo($2)                      !tprello
13564         lda     $4,foo($29)                     !tprel'
13565         tls_first_major=2
13566         tls_first_minor=13
13567         tls_as_opt=--fatal-warnings
13568         ;;
13569   i[34567]86-*-*)
13570     conftest_s='
13571         .section ".tdata","awT",@progbits
13572 foo:    .long   25
13573         .text
13574         movl    %gs:0, %eax
13575         leal    foo@TLSGD(,%ebx,1), %eax
13576         leal    foo@TLSLDM(%ebx), %eax
13577         leal    foo@DTPOFF(%eax), %edx
13578         movl    foo@GOTTPOFF(%ebx), %eax
13579         subl    foo@GOTTPOFF(%ebx), %eax
13580         addl    foo@GOTNTPOFF(%ebx), %eax
13581         movl    foo@INDNTPOFF, %eax
13582         movl    $foo@TPOFF, %eax
13583         subl    $foo@TPOFF, %eax
13584         leal    foo@NTPOFF(%ecx), %eax'
13585         tls_first_major=2
13586         tls_first_minor=14
13587         tls_as_opt=--fatal-warnings
13588         ;;
13589   x86_64-*-*)
13590     conftest_s='
13591         .section ".tdata","awT",@progbits
13592 foo:    .long   25
13593         .text
13594         movq    %fs:0, %rax
13595         leaq    foo@TLSGD(%rip), %rdi
13596         leaq    foo@TLSLD(%rip), %rdi
13597         leaq    foo@DTPOFF(%rax), %rdx
13598         movq    foo@GOTTPOFF(%rip), %rax
13599         movq    $foo@TPOFF, %rax'
13600         tls_first_major=2
13601         tls_first_minor=14
13602         tls_as_opt=--fatal-warnings
13603         ;;
13604   ia64-*-*)
13605     conftest_s='
13606         .section ".tdata","awT",@progbits
13607 foo:    data8   25
13608         .text
13609         addl    r16 = @ltoff(@dtpmod(foo#)), gp
13610         addl    r17 = @ltoff(@dtprel(foo#)), gp
13611         addl    r18 = @ltoff(@tprel(foo#)), gp
13612         addl    r19 = @dtprel(foo#), gp
13613         adds    r21 = @dtprel(foo#), r13
13614         movl    r23 = @dtprel(foo#)
13615         addl    r20 = @tprel(foo#), gp
13616         adds    r22 = @tprel(foo#), r13
13617         movl    r24 = @tprel(foo#)'
13618         tls_first_major=2
13619         tls_first_minor=13
13620         tls_as_opt=--fatal-warnings
13621         ;;
13622   powerpc-*-*)
13623     conftest_s='
13624         .section ".tdata","awT",@progbits
13625         .align 2
13626 ld0:    .space 4
13627 ld1:    .space 4
13628 x1:     .space 4
13629 x2:     .space 4
13630 x3:     .space 4
13631         .text
13632         addi 3,31,ld0@got@tlsgd
13633         bl __tls_get_addr
13634         addi 3,31,x1@got@tlsld
13635         bl __tls_get_addr
13636         addi 9,3,x1@dtprel
13637         addis 9,3,x2@dtprel@ha
13638         addi 9,9,x2@dtprel@l
13639         lwz 9,x3@got@tprel(31)
13640         add 9,9,x@tls
13641         addi 9,2,x1@tprel
13642         addis 9,2,x2@tprel@ha
13643         addi 9,9,x2@tprel@l'
13644         tls_first_major=2
13645         tls_first_minor=14
13646         tls_as_opt="-a32 --fatal-warnings"
13647         ;;
13648   powerpc64-*-*)
13649     conftest_s='
13650         .section ".tdata","awT",@progbits
13651         .align 3
13652 ld0:    .space 8
13653 ld1:    .space 8
13654 x1:     .space 8
13655 x2:     .space 8
13656 x3:     .space 8
13657         .text
13658         addi 3,2,ld0@got@tlsgd
13659         bl .__tls_get_addr
13660         nop
13661         addi 3,2,ld1@toc
13662         bl .__tls_get_addr
13663         nop
13664         addi 3,2,x1@got@tlsld
13665         bl .__tls_get_addr
13666         nop
13667         addi 9,3,x1@dtprel
13668         bl .__tls_get_addr
13669         nop
13670         addis 9,3,x2@dtprel@ha
13671         addi 9,9,x2@dtprel@l
13672         bl .__tls_get_addr
13673         nop
13674         ld 9,x3@got@dtprel(2)
13675         add 9,9,3
13676         bl .__tls_get_addr
13677         nop'
13678         tls_first_major=2
13679         tls_first_minor=14
13680         tls_as_opt="-a64 --fatal-warnings"
13681         ;;
13682   s390-*-*)
13683     conftest_s='
13684         .section ".tdata","awT",@progbits
13685 foo:    .long   25
13686         .text
13687         .long   foo@TLSGD
13688         .long   foo@TLSLDM
13689         .long   foo@DTPOFF
13690         .long   foo@NTPOFF
13691         .long   foo@GOTNTPOFF
13692         .long   foo@INDNTPOFF
13693         l       %r1,foo@GOTNTPOFF(%r12)
13694         l       %r1,0(%r1):tls_load:foo
13695         bas     %r14,0(%r1,%r13):tls_gdcall:foo
13696         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
13697         tls_first_major=2
13698         tls_first_minor=14
13699         tls_as_opt="-m31 --fatal-warnings"
13700         ;;
13701   s390x-*-*)
13702     conftest_s='
13703         .section ".tdata","awT",@progbits
13704 foo:    .long   25
13705         .text
13706         .quad   foo@TLSGD
13707         .quad   foo@TLSLDM
13708         .quad   foo@DTPOFF
13709         .quad   foo@NTPOFF
13710         .quad   foo@GOTNTPOFF
13711         lg      %r1,foo@GOTNTPOFF(%r12)
13712         larl    %r1,foo@INDNTPOFF
13713         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
13714         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13715         tls_first_major=2
13716         tls_first_minor=14
13717         tls_as_opt="-m64 -Aesame --fatal-warnings"
13718         ;;
13719   sh-*-* | sh[34]-*-*)
13720     conftest_s='
13721         .section ".tdata","awT",@progbits
13722 foo:    .long   25
13723         .text
13724         .long   foo@TLSGD
13725         .long   foo@TLSLDM
13726         .long   foo@DTPOFF
13727         .long   foo@GOTTPOFF
13728         .long   foo@TPOFF'
13729         tls_first_major=2
13730         tls_first_minor=13
13731         tls_as_opt=--fatal-warnings
13732         ;;
13733   sparc*-*-*)
13734     case "$target" in
13735       sparc*-sun-solaris2.*)
13736         on_solaris=yes
13737         ;;
13738       *)
13739         on_solaris=no
13740         ;;
13741     esac
13742     if test x$on_solaris = xyes && test x$gas_flag = xno; then
13743       conftest_s='
13744         .section ".tdata",#alloc,#write,#tls
13745 foo:    .long   25
13746         .text
13747         sethi   %tgd_hi22(foo), %o0
13748         add     %o0, %tgd_lo10(foo), %o1
13749         add     %l7, %o1, %o0, %tgd_add(foo)
13750         call    __tls_get_addr, %tgd_call(foo)
13751         sethi   %tldm_hi22(foo), %l1
13752         add     %l1, %tldm_lo10(foo), %l2
13753         add     %l7, %l2, %o0, %tldm_add(foo)
13754         call    __tls_get_addr, %tldm_call(foo)
13755         sethi   %tldo_hix22(foo), %l3
13756         xor     %l3, %tldo_lox10(foo), %l4
13757         add     %o0, %l4, %l5, %tldo_add(foo)
13758         sethi   %tie_hi22(foo), %o3
13759         add     %o3, %tie_lo10(foo), %o3
13760         ld      [%l7 + %o3], %o2, %tie_ld(foo)
13761         add     %g7, %o2, %o4, %tie_add(foo)
13762         sethi   %tle_hix22(foo), %l1
13763         xor     %l1, %tle_lox10(foo), %o5
13764         ld      [%g7 + %o5], %o1'
13765         tls_first_major=0
13766         tls_first_minor=0
13767     else
13768       conftest_s='
13769         .section ".tdata","awT",@progbits
13770 foo:    .long   25
13771         .text
13772         sethi   %tgd_hi22(foo), %o0
13773         add     %o0, %tgd_lo10(foo), %o1
13774         add     %l7, %o1, %o0, %tgd_add(foo)
13775         call    __tls_get_addr, %tgd_call(foo)
13776         sethi   %tldm_hi22(foo), %l1
13777         add     %l1, %tldm_lo10(foo), %l2
13778         add     %l7, %l2, %o0, %tldm_add(foo)
13779         call    __tls_get_addr, %tldm_call(foo)
13780         sethi   %tldo_hix22(foo), %l3
13781         xor     %l3, %tldo_lox10(foo), %l4
13782         add     %o0, %l4, %l5, %tldo_add(foo)
13783         sethi   %tie_hi22(foo), %o3
13784         add     %o3, %tie_lo10(foo), %o3
13785         ld      [%l7 + %o3], %o2, %tie_ld(foo)
13786         add     %g7, %o2, %o4, %tie_add(foo)
13787         sethi   %tle_hix22(foo), %l1
13788         xor     %l1, %tle_lox10(foo), %o5
13789         ld      [%g7 + %o5], %o1'
13790         tls_first_major=2
13791         tls_first_minor=14
13792         tls_as_opt="-32 --fatal-warnings"
13793       fi
13794         ;;
13795 esac
13796 if test -z "$tls_first_major"; then
13797   : # If we don't have a check, assume no support.
13798 else
13799   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13800 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13801 if test "${gcc_cv_as_tls+set}" = set; then
13802   echo $ECHO_N "(cached) $ECHO_C" >&6
13803 else
13804   gcc_cv_as_tls=no
13805     if test $in_tree_gas = yes; then
13806     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13807   then gcc_cv_as_tls=yes
13808 fi
13809   elif test x$gcc_cv_as != x; then
13810     echo "$conftest_s" > conftest.s
13811     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813   (eval $ac_try) 2>&5
13814   ac_status=$?
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); }; }
13817     then
13818         gcc_cv_as_tls=yes
13819     else
13820       echo "configure: failed program was" >&5
13821       cat conftest.s >&5
13822     fi
13823     rm -f conftest.o conftest.s
13824   fi
13825 fi
13826 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13827 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13828 if test $gcc_cv_as_tls = yes; then
13829
13830 cat >>confdefs.h <<\_ACEOF
13831 #define HAVE_AS_TLS 1
13832 _ACEOF
13833
13834 fi
13835 fi
13836
13837 # Target-specific assembler checks.
13838
13839 if test x"$demangler_in_ld" = xyes; then
13840   echo "$as_me:$LINENO: checking linker --demangle support" >&5
13841 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13842   gcc_cv_ld_demangle=no
13843   if test $in_tree_ld = yes; then
13844     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 \
13845       gcc_cv_ld_demangle=yes
13846     fi
13847   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
13848     # Check if the GNU linker supports --demangle option
13849     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
13850       gcc_cv_ld_demangle=yes
13851     fi
13852   fi
13853   if test x"$gcc_cv_ld_demangle" = xyes; then
13854
13855 cat >>confdefs.h <<\_ACEOF
13856 #define HAVE_LD_DEMANGLE 1
13857 _ACEOF
13858
13859   fi
13860   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13861 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
13862 fi
13863
13864 case "$target" in
13865   # All TARGET_ABI_OSF targets.
13866   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
13867     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13868 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13869 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
13870   echo $ECHO_N "(cached) $ECHO_C" >&6
13871 else
13872   gcc_cv_as_alpha_explicit_relocs=no
13873     if test $in_tree_gas = yes; then
13874     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13875   then gcc_cv_as_alpha_explicit_relocs=yes
13876 fi
13877   elif test x$gcc_cv_as != x; then
13878     echo '      .set nomacro
13879         .text
13880         extbl   $3, $2, $3      !lituse_bytoff!1
13881         ldq     $2, a($29)      !literal!1
13882         ldq     $4, b($29)      !literal!2
13883         ldq_u   $3, 0($2)       !lituse_base!1
13884         ldq     $27, f($29)     !literal!5
13885         jsr     $26, ($27), f   !lituse_jsr!5
13886         ldah    $29, 0($26)     !gpdisp!3
13887         lda     $0, c($29)      !gprel
13888         ldah    $1, d($29)      !gprelhigh
13889         lda     $1, d($1)       !gprellow
13890         lda     $29, 0($29)     !gpdisp!3' > conftest.s
13891     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893   (eval $ac_try) 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; }
13897     then
13898         gcc_cv_as_alpha_explicit_relocs=yes
13899     else
13900       echo "configure: failed program was" >&5
13901       cat conftest.s >&5
13902     fi
13903     rm -f conftest.o conftest.s
13904   fi
13905 fi
13906 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
13907 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
13908 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
13909
13910 cat >>confdefs.h <<\_ACEOF
13911 #define HAVE_AS_EXPLICIT_RELOCS 1
13912 _ACEOF
13913
13914 fi
13915     ;;
13916
13917   cris-*-*)
13918     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
13919 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
13920 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
13921   echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923   gcc_cv_as_cris_no_mul_bug=no
13924     if test $in_tree_gas = yes; then
13925     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13926   then gcc_cv_as_cris_no_mul_bug=yes
13927 fi
13928   elif test x$gcc_cv_as != x; then
13929     echo '.text' > conftest.s
13930     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
13931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932   (eval $ac_try) 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); }; }
13936     then
13937         gcc_cv_as_cris_no_mul_bug=yes
13938     else
13939       echo "configure: failed program was" >&5
13940       cat conftest.s >&5
13941     fi
13942     rm -f conftest.o conftest.s
13943   fi
13944 fi
13945 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
13946 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
13947 if test $gcc_cv_as_cris_no_mul_bug = yes; then
13948
13949 cat >>confdefs.h <<\_ACEOF
13950 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
13951 _ACEOF
13952
13953 fi
13954     ;;
13955
13956   sparc*-*-*)
13957     echo "$as_me:$LINENO: checking assembler for .register" >&5
13958 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
13959 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
13960   echo $ECHO_N "(cached) $ECHO_C" >&6
13961 else
13962   gcc_cv_as_sparc_register_op=no
13963   if test x$gcc_cv_as != x; then
13964     echo '.register %g2, #scratch' > conftest.s
13965     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967   (eval $ac_try) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); }; }
13971     then
13972         gcc_cv_as_sparc_register_op=yes
13973     else
13974       echo "configure: failed program was" >&5
13975       cat conftest.s >&5
13976     fi
13977     rm -f conftest.o conftest.s
13978   fi
13979 fi
13980 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
13981 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
13982 if test $gcc_cv_as_sparc_register_op = yes; then
13983
13984 cat >>confdefs.h <<\_ACEOF
13985 #define HAVE_AS_REGISTER_PSEUDO_OP 1
13986 _ACEOF
13987
13988 fi
13989
13990     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
13991 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
13992 if test "${gcc_cv_as_sparc_relax+set}" = set; then
13993   echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995   gcc_cv_as_sparc_relax=no
13996   if test x$gcc_cv_as != x; then
13997     echo '.text' > conftest.s
13998     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
13999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000   (eval $ac_try) 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); }; }
14004     then
14005         gcc_cv_as_sparc_relax=yes
14006     else
14007       echo "configure: failed program was" >&5
14008       cat conftest.s >&5
14009     fi
14010     rm -f conftest.o conftest.s
14011   fi
14012 fi
14013 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14014 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14015 if test $gcc_cv_as_sparc_relax = yes; then
14016
14017 cat >>confdefs.h <<\_ACEOF
14018 #define HAVE_AS_RELAX_OPTION 1
14019 _ACEOF
14020
14021 fi
14022
14023     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14024 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14025 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14026   echo $ECHO_N "(cached) $ECHO_C" >&6
14027 else
14028   gcc_cv_as_sparc_ua_pcrel=no
14029   if test x$gcc_cv_as != x; then
14030     echo '.text
14031 foo:
14032         nop
14033 .data
14034 .align 4
14035 .byte 0
14036 .uaword %r_disp32(foo)' > conftest.s
14037     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039   (eval $ac_try) 2>&5
14040   ac_status=$?
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); }; }
14043     then
14044         if test x$gcc_cv_ld != x \
14045        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14046          gcc_cv_as_sparc_ua_pcrel=yes
14047        fi
14048        rm -f conftest
14049     else
14050       echo "configure: failed program was" >&5
14051       cat conftest.s >&5
14052     fi
14053     rm -f conftest.o conftest.s
14054   fi
14055 fi
14056 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14057 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14058 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14059
14060 cat >>confdefs.h <<\_ACEOF
14061 #define HAVE_AS_SPARC_UA_PCREL 1
14062 _ACEOF
14063
14064
14065       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14066 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14067 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14068   echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070   gcc_cv_as_sparc_ua_pcrel_hidden=no
14071   if test x$gcc_cv_as != x; then
14072     echo '.data
14073 .align 4
14074 .byte 0x31
14075 .uaword %r_disp32(foo)
14076 .byte 0x32, 0x33, 0x34
14077 .global foo
14078 .hidden foo
14079 foo:
14080 .skip 4' > conftest.s
14081     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083   (eval $ac_try) 2>&5
14084   ac_status=$?
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); }; }
14087     then
14088         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14089          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14090          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14091             | grep ' 31000000 07323334' > /dev/null 2>&1; then
14092             if $gcc_cv_objdump -R conftest 2> /dev/null \
14093                | grep 'DISP32' > /dev/null 2>&1; then
14094                 :
14095             else
14096                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14097             fi
14098          fi
14099          rm -f conftest
14100     else
14101       echo "configure: failed program was" >&5
14102       cat conftest.s >&5
14103     fi
14104     rm -f conftest.o conftest.s
14105   fi
14106 fi
14107 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14108 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14109 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14110
14111 cat >>confdefs.h <<\_ACEOF
14112 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14113 _ACEOF
14114
14115 fi
14116
14117 fi # unaligned pcrel relocs
14118
14119     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14120 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14121 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14122   echo $ECHO_N "(cached) $ECHO_C" >&6
14123 else
14124   gcc_cv_as_sparc_offsetable_lo10=no
14125   if test x$gcc_cv_as != x; then
14126     echo '.text
14127         or %g1, %lo(ab) + 12, %g1
14128         or %g1, %lo(ab + 12), %g1' > conftest.s
14129     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131   (eval $ac_try) 2>&5
14132   ac_status=$?
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); }; }
14135     then
14136         if test x$gcc_cv_objdump != x \
14137        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14138           | grep ' 82106000 82106000' > /dev/null 2>&1; then
14139          gcc_cv_as_offsetable_lo10=yes
14140        fi
14141     else
14142       echo "configure: failed program was" >&5
14143       cat conftest.s >&5
14144     fi
14145     rm -f conftest.o conftest.s
14146   fi
14147 fi
14148 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14149 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14150 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14151
14152 cat >>confdefs.h <<\_ACEOF
14153 #define HAVE_AS_OFFSETABLE_LO10 1
14154 _ACEOF
14155
14156 fi
14157     ;;
14158
14159   i[34567]86-*-* | x86_64-*-*)
14160     case $target_os in
14161       cygwin* | pe | mingw32*)
14162         # Used for DWARF 2 in PE
14163         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14164 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14165 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14166   echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168   gcc_cv_as_ix86_pe_secrel32=no
14169     if test $in_tree_gas = yes; then
14170     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14171   then gcc_cv_as_ix86_pe_secrel32=yes
14172 fi
14173   elif test x$gcc_cv_as != x; then
14174     echo '.text
14175 foo:    nop
14176 .data
14177         .secrel32 foo' > conftest.s
14178     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180   (eval $ac_try) 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); }; }
14184     then
14185         if test x$gcc_cv_ld != x \
14186            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14187              gcc_cv_as_ix86_pe_secrel32=yes
14188            fi
14189            rm -f conftest
14190     else
14191       echo "configure: failed program was" >&5
14192       cat conftest.s >&5
14193     fi
14194     rm -f conftest.o conftest.s
14195   fi
14196 fi
14197 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14198 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14199 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14200
14201 cat >>confdefs.h <<\_ACEOF
14202 #define HAVE_GAS_PE_SECREL32_RELOC 1
14203 _ACEOF
14204
14205 fi
14206         ;;
14207     esac
14208
14209     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14210 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14211 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14212   echo $ECHO_N "(cached) $ECHO_C" >&6
14213 else
14214   gcc_cv_as_ix86_filds_fists=no
14215     if test $in_tree_gas = yes; then
14216     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14217   then gcc_cv_as_ix86_filds_fists=yes
14218 fi
14219   elif test x$gcc_cv_as != x; then
14220     echo 'filds mem; fists mem' > conftest.s
14221     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223   (eval $ac_try) 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; }
14227     then
14228         gcc_cv_as_ix86_filds_fists=yes
14229     else
14230       echo "configure: failed program was" >&5
14231       cat conftest.s >&5
14232     fi
14233     rm -f conftest.o conftest.s
14234   fi
14235 fi
14236 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14237 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14238 if test $gcc_cv_as_ix86_filds_fists = yes; then
14239
14240 cat >>confdefs.h <<\_ACEOF
14241 #define HAVE_GAS_FILDS_FISTS 1
14242 _ACEOF
14243
14244 fi
14245
14246     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14247 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14248 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14249   echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251   gcc_cv_as_ix86_cmov_sun_syntax=no
14252   if test x$gcc_cv_as != x; then
14253     echo 'cmovl.l %edx, %eax' > conftest.s
14254     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256   (eval $ac_try) 2>&5
14257   ac_status=$?
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); }; }
14260     then
14261         gcc_cv_as_ix86_cmov_sun_syntax=yes
14262     else
14263       echo "configure: failed program was" >&5
14264       cat conftest.s >&5
14265     fi
14266     rm -f conftest.o conftest.s
14267   fi
14268 fi
14269 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14270 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14271 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14272
14273 cat >>confdefs.h <<\_ACEOF
14274 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14275 _ACEOF
14276
14277 fi
14278
14279     # This one is used unconditionally by i386.[ch]; it is to be defined
14280     # to 1 if the feature is present, 0 otherwise.
14281     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14282 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14283 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14284   echo $ECHO_N "(cached) $ECHO_C" >&6
14285 else
14286   gcc_cv_as_ix86_gotoff_in_data=no
14287     if test $in_tree_gas = yes; then
14288     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14289   then gcc_cv_as_ix86_gotoff_in_data=yes
14290 fi
14291   elif test x$gcc_cv_as != x; then
14292     echo '      .text
14293 .L0:
14294         nop
14295         .data
14296         .long .L0@GOTOFF' > conftest.s
14297     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299   (eval $ac_try) 2>&5
14300   ac_status=$?
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); }; }
14303     then
14304         gcc_cv_as_ix86_gotoff_in_data=yes
14305     else
14306       echo "configure: failed program was" >&5
14307       cat conftest.s >&5
14308     fi
14309     rm -f conftest.o conftest.s
14310   fi
14311 fi
14312 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14313 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14314
14315
14316 cat >>confdefs.h <<_ACEOF
14317 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14318 _ACEOF
14319
14320     ;;
14321
14322   ia64*-*-*)
14323     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14324 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14325 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14326   echo $ECHO_N "(cached) $ECHO_C" >&6
14327 else
14328   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14329     if test $in_tree_gas = yes; then
14330     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14331   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14332 fi
14333   elif test x$gcc_cv_as != x; then
14334     echo '      .text
14335         addl r15 = @ltoffx(x#), gp
14336         ;;
14337         ld8.mov r16 = [r15], x#' > conftest.s
14338     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340   (eval $ac_try) 2>&5
14341   ac_status=$?
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); }; }
14344     then
14345         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14346     else
14347       echo "configure: failed program was" >&5
14348       cat conftest.s >&5
14349     fi
14350     rm -f conftest.o conftest.s
14351   fi
14352 fi
14353 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14354 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14355 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14356
14357 cat >>confdefs.h <<\_ACEOF
14358 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14359 _ACEOF
14360
14361 fi
14362
14363     ;;
14364
14365   powerpc*-*-*)
14366     case $target in
14367       *-*-aix*) conftest_s='    .csect .text[PR]
14368         mfcr 3,128';;
14369       *-*-darwin*) conftest_s=' .text
14370         mfcr r3,128';;
14371       *)       conftest_s='     .text
14372         mfcr 3,128';;
14373     esac
14374
14375     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14376 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14377 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14378   echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380   gcc_cv_as_powerpc_mfcrf=no
14381     if test $in_tree_gas = yes; then
14382     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14383   then gcc_cv_as_powerpc_mfcrf=yes
14384 fi
14385   elif test x$gcc_cv_as != x; then
14386     echo "$conftest_s" > conftest.s
14387     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389   (eval $ac_try) 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); }; }
14393     then
14394         gcc_cv_as_powerpc_mfcrf=yes
14395     else
14396       echo "configure: failed program was" >&5
14397       cat conftest.s >&5
14398     fi
14399     rm -f conftest.o conftest.s
14400   fi
14401 fi
14402 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14403 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14404 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14405
14406 cat >>confdefs.h <<\_ACEOF
14407 #define HAVE_AS_MFCRF 1
14408 _ACEOF
14409
14410 fi
14411     ;;
14412
14413   mips*-*-*)
14414     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14415 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14416 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14417   echo $ECHO_N "(cached) $ECHO_C" >&6
14418 else
14419   gcc_cv_as_mips_explicit_relocs=no
14420     if test $in_tree_gas = yes; then
14421     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14422   then gcc_cv_as_mips_explicit_relocs=yes
14423 fi
14424   elif test x$gcc_cv_as != x; then
14425     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
14426     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428   (eval $ac_try) 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); }; }
14432     then
14433         gcc_cv_as_mips_explicit_relocs=yes
14434     else
14435       echo "configure: failed program was" >&5
14436       cat conftest.s >&5
14437     fi
14438     rm -f conftest.o conftest.s
14439   fi
14440 fi
14441 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14442 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14443 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14444   if test x$target_cpu_default = x
14445        then target_cpu_default=MASK_EXPLICIT_RELOCS
14446        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14447        fi
14448 fi
14449
14450     if test x$gas_flag = xyes \
14451        || test x"$host" != x"$build" \
14452        || test ! -x "$gcc_cv_as" \
14453        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14454       :
14455     else
14456       echo "*** This configuration requires the GNU assembler" >&2
14457       exit 1
14458     fi
14459     ;;
14460 esac
14461 # ??? Not all targets support dwarf2 debug_line, even within a version
14462 # of gas.  Moreover, we need to emit a valid instruction to trigger any
14463 # info to the output file.  So, as supported targets are added to gas 2.11,
14464 # add some instruction here to (also) show we expect this might work.
14465 # ??? Once 2.11 is released, probably need to add first known working
14466 # version to the per-target configury.
14467 case "$target" in
14468   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14469   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14470   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14471     insn="nop"
14472     ;;
14473   ia64*-*-* | s390*-*-*)
14474     insn="nop 0"
14475     ;;
14476   mmix-*-*)
14477     insn="swym 0"
14478     ;;
14479 esac
14480 if test x"$insn" != x; then
14481  conftest_s="\
14482         .file 1 \"conftest.s\"
14483         .loc 1 3 0
14484         $insn"
14485  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14486 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14487 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14488   echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490   gcc_cv_as_dwarf2_debug_line=no
14491     if test $in_tree_gas = yes; then
14492     if test $in_tree_gas_is_elf = yes \
14493   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14494   then gcc_cv_as_dwarf2_debug_line=yes
14495 fi
14496   elif test x$gcc_cv_as != x; then
14497     echo "$conftest_s" > conftest.s
14498     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500   (eval $ac_try) 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); }; }
14504     then
14505         # ??? This fails with non-gnu grep.  Maybe use objdump?
14506    if grep debug_line conftest.o > /dev/null 2>&1; then
14507      gcc_cv_as_dwarf2_debug_line=yes
14508    fi
14509     else
14510       echo "configure: failed program was" >&5
14511       cat conftest.s >&5
14512     fi
14513     rm -f conftest.o conftest.s
14514   fi
14515 fi
14516 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14517 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14518
14519
14520 # The .debug_line file table must be in the exact order that
14521 # we specified the files, since these indices are also used
14522 # by DW_AT_decl_file.  Approximate this test by testing if
14523 # the assembler bitches if the same index is assigned twice.
14524  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14525 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14526 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14527   echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529   gcc_cv_as_dwarf2_file_buggy=no
14530   if test x$gcc_cv_as != x; then
14531     echo '      .file 1 "foo.s"
14532         .file 1 "bar.s"' > conftest.s
14533     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535   (eval $ac_try) 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); }; }
14539     then
14540         gcc_cv_as_dwarf2_file_buggy=yes
14541     else
14542       echo "configure: failed program was" >&5
14543       cat conftest.s >&5
14544     fi
14545     rm -f conftest.o conftest.s
14546   fi
14547 fi
14548 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14549 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14550
14551
14552  if test $gcc_cv_as_dwarf2_debug_line = yes \
14553  && test $gcc_cv_as_dwarf2_file_buggy = no; then
14554
14555 cat >>confdefs.h <<\_ACEOF
14556 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14557 _ACEOF
14558
14559  fi
14560
14561  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14562 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14563 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14564   echo $ECHO_N "(cached) $ECHO_C" >&6
14565 else
14566   gcc_cv_as_gdwarf2_flag=no
14567     if test $in_tree_gas = yes; then
14568     if test $in_tree_gas_is_elf = yes \
14569   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14570   then gcc_cv_as_gdwarf2_flag=yes
14571 fi
14572   elif test x$gcc_cv_as != x; then
14573     echo "$insn" > conftest.s
14574     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576   (eval $ac_try) 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; }
14580     then
14581         gcc_cv_as_gdwarf2_flag=yes
14582     else
14583       echo "configure: failed program was" >&5
14584       cat conftest.s >&5
14585     fi
14586     rm -f conftest.o conftest.s
14587   fi
14588 fi
14589 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14590 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14591 if test $gcc_cv_as_gdwarf2_flag = yes; then
14592
14593 cat >>confdefs.h <<\_ACEOF
14594 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14595 _ACEOF
14596
14597 fi
14598
14599  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14600 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14601 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14602   echo $ECHO_N "(cached) $ECHO_C" >&6
14603 else
14604   gcc_cv_as_gstabs_flag=no
14605     if test $in_tree_gas = yes; then
14606     if test $in_tree_gas_is_elf = yes \
14607   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14608   then gcc_cv_as_gstabs_flag=yes
14609 fi
14610   elif test x$gcc_cv_as != x; then
14611     echo "$insn" > conftest.s
14612     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614   (eval $ac_try) 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }; }
14618     then
14619         # The native Solaris 9/Intel assembler doesn't understand --gstabs
14620    # and warns about it, but still exits successfully.  So check for
14621    # this.
14622    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624   (eval $ac_try) 2>&5
14625   ac_status=$?
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); }; }
14628    then :
14629    else gcc_cv_as_gstabs_flag=yes
14630    fi
14631     else
14632       echo "configure: failed program was" >&5
14633       cat conftest.s >&5
14634     fi
14635     rm -f conftest.o conftest.s
14636   fi
14637 fi
14638 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14639 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14640 if test $gcc_cv_as_gstabs_flag = yes; then
14641
14642 cat >>confdefs.h <<\_ACEOF
14643 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14644 _ACEOF
14645
14646 fi
14647 fi
14648
14649 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14650 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14651 gcc_cv_ld_ro_rw_mix=unknown
14652 if test $in_tree_ld = yes ; then
14653   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 \
14654      && test $in_tree_ld_is_elf = yes; then
14655     gcc_cv_ld_ro_rw_mix=read-write
14656   fi
14657 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14658   echo '.section myfoosect, "a"' > conftest1.s
14659   echo '.section myfoosect, "aw"' > conftest2.s
14660   echo '.byte 1' >> conftest2.s
14661   echo '.section myfoosect, "a"' > conftest3.s
14662   echo '.byte 0' >> conftest3.s
14663   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14664      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14665      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14666      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14667         conftest2.o conftest3.o > /dev/null 2>&1; then
14668     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14669                          | sed -e '/myfoosect/!d' -e N`
14670     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14671       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14672         gcc_cv_ld_ro_rw_mix=read-only
14673       else
14674         gcc_cv_ld_ro_rw_mix=read-write
14675       fi
14676     fi
14677   fi
14678   rm -f conftest.* conftest[123].*
14679 fi
14680 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14681
14682 cat >>confdefs.h <<\_ACEOF
14683 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14684 _ACEOF
14685
14686 fi
14687 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14688 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14689
14690 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14691 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14692 gcc_cv_ld_eh_frame_hdr=no
14693 if test $in_tree_ld = yes ; then
14694   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 \
14695      && test $in_tree_ld_is_elf = yes; then
14696     gcc_cv_ld_eh_frame_hdr=yes
14697   fi
14698 elif test x$gcc_cv_ld != x; then
14699         # Check if linker supports --eh-frame-hdr option
14700         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14701                 gcc_cv_ld_eh_frame_hdr=yes
14702         fi
14703 fi
14704 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14705
14706 cat >>confdefs.h <<\_ACEOF
14707 #define HAVE_LD_EH_FRAME_HDR 1
14708 _ACEOF
14709
14710 fi
14711 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14712 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14713
14714 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14715 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14716 gcc_cv_ld_pie=no
14717 if test $in_tree_ld = yes ; then
14718   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 \
14719      && test $in_tree_ld_is_elf = yes; then
14720     gcc_cv_ld_pie=yes
14721   fi
14722 elif test x$gcc_cv_ld != x; then
14723         # Check if linker supports -pie option
14724         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14725                 gcc_cv_ld_pie=yes
14726         fi
14727 fi
14728 if test x"$gcc_cv_ld_pie" = xyes; then
14729
14730 cat >>confdefs.h <<\_ACEOF
14731 #define HAVE_LD_PIE 1
14732 _ACEOF
14733
14734 fi
14735 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14736 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14737
14738 # --------
14739 # UNSORTED
14740 # --------
14741
14742 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14743 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14744 if test "${gcc_cv_ld_as_needed+set}" = set; then
14745   echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747   gcc_cv_ld_as_needed=no
14748 if test $in_tree_ld = yes ; then
14749   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 \
14750      && test $in_tree_ld_is_elf = yes; then
14751     gcc_cv_ld_as_needed=yes
14752   fi
14753 elif test x$gcc_cv_ld != x; then
14754         # Check if linker supports --as-needed and --no-as-needed options
14755         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14756                 gcc_cv_ld_as_needed=yes
14757         fi
14758 fi
14759
14760 fi
14761 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14762 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14763 if test x"$gcc_cv_ld_as_needed" = xyes; then
14764
14765 cat >>confdefs.h <<\_ACEOF
14766 #define HAVE_LD_AS_NEEDED 1
14767 _ACEOF
14768
14769 fi
14770
14771 case "$target" in
14772   powerpc64*-*-linux*)
14773     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14774 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14775 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14776   echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778   gcc_cv_ld_no_dot_syms=no
14779     if test $in_tree_ld = yes ; then
14780       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
14781         gcc_cv_ld_no_dot_syms=yes
14782       fi
14783     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14784       cat > conftest1.s <<EOF
14785         .text
14786         bl .foo
14787 EOF
14788       cat > conftest2.s <<EOF
14789         .section ".opd","aw"
14790         .align 3
14791         .globl foo
14792         .type foo,@function
14793 foo:
14794         .quad .LEfoo,.TOC.@tocbase,0
14795         .text
14796 .LEfoo:
14797         blr
14798         .size foo,.-.LEfoo
14799 EOF
14800       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
14801          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
14802          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
14803         gcc_cv_ld_no_dot_syms=yes
14804       fi
14805       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14806     fi
14807
14808 fi
14809 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14810 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14811     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
14812
14813 cat >>confdefs.h <<\_ACEOF
14814 #define HAVE_LD_NO_DOT_SYMS 1
14815 _ACEOF
14816
14817     fi
14818     ;;
14819 esac
14820
14821 if test x$with_sysroot = x && test x$host = x$target \
14822    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
14823
14824 cat >>confdefs.h <<_ACEOF
14825 #define PREFIX_INCLUDE_DIR "$prefix/include"
14826 _ACEOF
14827
14828 fi
14829
14830 # Find out what GC implementation we want, or may, use.
14831
14832 # Check whether --with-gc or --without-gc was given.
14833 if test "${with_gc+set}" = set; then
14834   withval="$with_gc"
14835   case "$withval" in
14836   page | zone)
14837     GGC=ggc-$withval
14838     ;;
14839   *)
14840     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
14841 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
14842    { (exit 1); exit 1; }; }
14843     ;;
14844 esac
14845 else
14846   GGC=ggc-page
14847 fi;
14848
14849 echo "Using $GGC for garbage collection."
14850
14851 # Use the system's zlib library.
14852 zlibdir=-L../zlib
14853 zlibinc="-I\$(srcdir)/../zlib"
14854
14855 # Check whether --with-system-zlib or --without-system-zlib was given.
14856 if test "${with_system_zlib+set}" = set; then
14857   withval="$with_system_zlib"
14858   zlibdir=
14859 zlibinc=
14860
14861 fi;
14862
14863
14864
14865
14866 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14867 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14868     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14869 if test "${enable_maintainer_mode+set}" = set; then
14870   enableval="$enable_maintainer_mode"
14871   maintainer_mode=$enableval
14872 else
14873   maintainer_mode=no
14874 fi;
14875
14876 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
14877 echo "${ECHO_T}$maintainer_mode" >&6
14878
14879 if test "$maintainer_mode" = "yes"; then
14880   MAINT=''
14881 else
14882   MAINT='#'
14883 fi
14884
14885 # --------------
14886 # Language hooks
14887 # --------------
14888
14889 # Make empty files to contain the specs and options for each language.
14890 # Then add #include lines to for a compiler that has specs and/or options.
14891
14892 lang_opt_files=
14893 lang_specs_files=
14894 lang_tree_files=
14895 for subdir in . $subdirs
14896 do
14897         if test -f $srcdir/$subdir/lang.opt; then
14898             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
14899         fi
14900         if test -f $srcdir/$subdir/lang-specs.h; then
14901             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
14902         fi
14903         if test -f $srcdir/$subdir/$subdir-tree.def; then
14904             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
14905         fi
14906 done
14907
14908 # These (without "all_") are set in each config-lang.in.
14909 # `language' must be a single word so is spelled singularly.
14910 all_languages=
14911 all_boot_languages=
14912 all_compilers=
14913 all_stagestuff=
14914 all_outputs='Makefile gccbug mklibgcc mkheaders libada-mk'
14915 # List of language makefile fragments.
14916 all_lang_makefrags=
14917 # List of language subdirectory makefiles.  Deprecated.
14918 all_lang_makefiles=
14919 # Files for gengtype
14920 all_gtfiles="$target_gtfiles"
14921 # Files for gengtype with language
14922 all_gtfiles_files_langs=
14923 all_gtfiles_files_files=
14924
14925 # Add the language fragments.
14926 # Languages are added via two mechanisms.  Some information must be
14927 # recorded in makefile variables, these are defined in config-lang.in.
14928 # We accumulate them and plug them into the main Makefile.
14929 # The other mechanism is a set of hooks for each of the main targets
14930 # like `clean', `install', etc.
14931
14932 language_hooks="Make-hooks"
14933
14934 for s in $subdirs
14935 do
14936                 language=
14937                 boot_language=
14938                 compilers=
14939                 stagestuff=
14940                 outputs=
14941                 gtfiles=
14942                 . ${srcdir}/$s/config-lang.in
14943                 if test "x$language" = x
14944                 then
14945                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
14946                         exit 1
14947                 fi
14948                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
14949                 if test -f ${srcdir}/$s/Makefile.in
14950                 then all_lang_makefiles="$s/Makefile"
14951                 fi
14952                 all_languages="$all_languages $language"
14953                 if test "x$boot_language" = xyes
14954                 then
14955                         all_boot_languages="$all_boot_languages $language"
14956                 fi
14957                 all_compilers="$all_compilers $compilers"
14958                 all_stagestuff="$all_stagestuff $stagestuff"
14959                 all_outputs="$all_outputs $outputs"
14960                 all_gtfiles="$all_gtfiles $gtfiles"
14961                 for f in $gtfiles
14962                 do
14963                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
14964                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
14965                 done
14966 done
14967
14968 # Pick up gtfiles for c
14969 gtfiles=
14970 s="c"
14971 . ${srcdir}/c-config-lang.in
14972 all_gtfiles="$all_gtfiles $gtfiles"
14973 for f in $gtfiles
14974 do
14975         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
14976         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
14977 done
14978
14979 check_languages=
14980 for language in $all_languages
14981 do
14982                 check_languages="$check_languages check-$language"
14983 done
14984
14985 # We link each language in with a set of hooks, reached indirectly via
14986 # lang.${target}.
14987
14988 rm -f Make-hooks
14989 touch Make-hooks
14990 target_list="all.build all.cross start.encap rest.encap tags \
14991         install-normal install-common install-man \
14992         uninstall info man srcextra srcman srcinfo \
14993         mostlyclean clean distclean maintainer-clean \
14994         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
14995 for t in $target_list
14996 do
14997         x=
14998         for lang in $all_languages
14999         do
15000                         x="$x $lang.$t"
15001         done
15002         echo "lang.$t: $x" >> Make-hooks
15003 done
15004
15005 # --------
15006 # UNSORTED
15007 # --------
15008
15009 # Create .gdbinit.
15010
15011 echo "dir ." > .gdbinit
15012 echo "dir ${srcdir}" >> .gdbinit
15013 if test x$gdb_needs_out_file_path = xyes
15014 then
15015         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15016 fi
15017 if test "x$subdirs" != x; then
15018         for s in $subdirs
15019         do
15020                 echo "dir ${srcdir}/$s" >> .gdbinit
15021         done
15022 fi
15023 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15024
15025 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15026 # absolute path for gcc_tooldir based on inserting the number of up-directory
15027 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15028 # $(libsubdir)/@(unlibsubdir) based path.
15029 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15030 # make and thus we'd get different behavior depending on where we built the
15031 # sources.
15032 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15033     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15034 else
15035 # An explanation of the sed strings:
15036 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
15037 #  -e 's|/$||'            match a trailing forward slash and eliminates it
15038 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
15039 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
15040 #
15041 # (*) Note this pattern overwrites the first character of the string
15042 # with a forward slash if one is not already present.  This is not a
15043 # problem because the exact names of the sub-directories concerned is
15044 # unimportant, just the number of them matters.
15045 #
15046 # The practical upshot of these patterns is like this:
15047 #
15048 #  prefix     exec_prefix        result
15049 #  ------     -----------        ------
15050 #   /foo        /foo/bar          ../
15051 #   /foo/       /foo/bar          ../
15052 #   /foo        /foo/bar/         ../
15053 #   /foo/       /foo/bar/         ../
15054 #   /foo        /foo/bar/ugg      ../../
15055 #
15056     dollar='$$'
15057     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15058 fi
15059
15060
15061
15062 # Find a directory in which to install a shared libgcc.
15063
15064 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15065 if test "${enable_version_specific_runtime_libs+set}" = set; then
15066   enableval="$enable_version_specific_runtime_libs"
15067
15068 fi;
15069
15070
15071 # Check whether --with-slibdir or --without-slibdir was given.
15072 if test "${with_slibdir+set}" = set; then
15073   withval="$with_slibdir"
15074   slibdir="$with_slibdir"
15075 else
15076   if test "${enable_version_specific_runtime_libs+set}" = set; then
15077   slibdir='$(libsubdir)'
15078 elif test "$host" != "$target"; then
15079   slibdir='$(build_tooldir)/lib'
15080 else
15081   slibdir='$(libdir)'
15082 fi
15083 fi;
15084
15085
15086 objdir=`${PWDCMD-pwd}`
15087
15088
15089 # Substitute configuration variables
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158 if test x"$SET_GCC_LIB_PATH_CMD" != x; then
15159   # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15160   #
15161   #     eval "set_gcc_lib_path=XXX=path; export XXX;"
15162   #
15163   eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15164   # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15165   set_gcc_lib_path="export $set_gcc_lib_path"
15166 else
15167   set_gcc_lib_path=
15168 fi
15169
15170
15171
15172 # Echo link setup.
15173 if test x${build} = x${host} ; then
15174   if test x${host} = x${target} ; then
15175     echo "Links are now set up to build a native compiler for ${target}." 1>&2
15176   else
15177     echo "Links are now set up to build a cross-compiler" 1>&2
15178     echo " from ${host} to ${target}." 1>&2
15179   fi
15180 else
15181   if test x${host} = x${target} ; then
15182     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15183     echo " for ${target}." 1>&2
15184   else
15185     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15186     echo " from ${host} to ${target}." 1>&2
15187   fi
15188 fi
15189
15190
15191
15192
15193 # Configure the subdirectories
15194 # AC_CONFIG_SUBDIRS($subdirs)
15195
15196 # Create the Makefile
15197 # and configure language subdirectories
15198           ac_config_files="$ac_config_files $all_outputs"
15199
15200
15201           ac_config_commands="$ac_config_commands default"
15202
15203 cat >confcache <<\_ACEOF
15204 # This file is a shell script that caches the results of configure
15205 # tests run on this system so they can be shared between configure
15206 # scripts and configure runs, see configure's option --config-cache.
15207 # It is not useful on other systems.  If it contains results you don't
15208 # want to keep, you may remove or edit it.
15209 #
15210 # config.status only pays attention to the cache file if you give it
15211 # the --recheck option to rerun configure.
15212 #
15213 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15214 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15215 # following values.
15216
15217 _ACEOF
15218
15219 # The following way of writing the cache mishandles newlines in values,
15220 # but we know of no workaround that is simple, portable, and efficient.
15221 # So, don't put newlines in cache variables' values.
15222 # Ultrix sh set writes to stderr and can't be redirected directly,
15223 # and sets the high bit in the cache file unless we assign to the vars.
15224 {
15225   (set) 2>&1 |
15226     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15227     *ac_space=\ *)
15228       # `set' does not quote correctly, so add quotes (double-quote
15229       # substitution turns \\\\ into \\, and sed turns \\ into \).
15230       sed -n \
15231         "s/'/'\\\\''/g;
15232           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15233       ;;
15234     *)
15235       # `set' quotes correctly as required by POSIX, so do not add quotes.
15236       sed -n \
15237         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15238       ;;
15239     esac;
15240 } |
15241   sed '
15242      t clear
15243      : clear
15244      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15245      t end
15246      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15247      : end' >>confcache
15248 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15249   if test -w $cache_file; then
15250     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15251     cat confcache >$cache_file
15252   else
15253     echo "not updating unwritable cache $cache_file"
15254   fi
15255 fi
15256 rm -f confcache
15257
15258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15259 # Let make expand exec_prefix.
15260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15261
15262 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15263 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15264 # trailing colons and then remove the whole line if VPATH becomes empty
15265 # (actually we leave an empty line to preserve line numbers).
15266 if test "x$srcdir" = x.; then
15267   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15268 s/:*\$(srcdir):*/:/;
15269 s/:*\${srcdir}:*/:/;
15270 s/:*@srcdir@:*/:/;
15271 s/^\([^=]*=[     ]*\):*/\1/;
15272 s/:*$//;
15273 s/^[^=]*=[       ]*$//;
15274 }'
15275 fi
15276
15277 DEFS=-DHAVE_CONFIG_H
15278
15279 ac_libobjs=
15280 ac_ltlibobjs=
15281 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15282   # 1. Remove the extension, and $U if already installed.
15283   ac_i=`echo "$ac_i" |
15284          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15285   # 2. Add them.
15286   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15287   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15288 done
15289 LIBOBJS=$ac_libobjs
15290
15291 LTLIBOBJS=$ac_ltlibobjs
15292
15293
15294
15295 : ${CONFIG_STATUS=./config.status}
15296 ac_clean_files_save=$ac_clean_files
15297 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15298 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15299 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15300 cat >$CONFIG_STATUS <<_ACEOF
15301 #! $SHELL
15302 # Generated by $as_me.
15303 # Run this file to recreate the current configuration.
15304 # Compiler output produced by configure, useful for debugging
15305 # configure, is in config.log if it exists.
15306
15307 debug=false
15308 ac_cs_recheck=false
15309 ac_cs_silent=false
15310 SHELL=\${CONFIG_SHELL-$SHELL}
15311 _ACEOF
15312
15313 cat >>$CONFIG_STATUS <<\_ACEOF
15314 ## --------------------- ##
15315 ## M4sh Initialization.  ##
15316 ## --------------------- ##
15317
15318 # Be Bourne compatible
15319 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15320   emulate sh
15321   NULLCMD=:
15322   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15323   # is contrary to our usage.  Disable this feature.
15324   alias -g '${1+"$@"}'='"$@"'
15325 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15326   set -o posix
15327 fi
15328 DUALCASE=1; export DUALCASE # for MKS sh
15329
15330 # Support unset when possible.
15331 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15332   as_unset=unset
15333 else
15334   as_unset=false
15335 fi
15336
15337
15338 # Work around bugs in pre-3.0 UWIN ksh.
15339 $as_unset ENV MAIL MAILPATH
15340 PS1='$ '
15341 PS2='> '
15342 PS4='+ '
15343
15344 # NLS nuisances.
15345 for as_var in \
15346   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15347   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15348   LC_TELEPHONE LC_TIME
15349 do
15350   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15351     eval $as_var=C; export $as_var
15352   else
15353     $as_unset $as_var
15354   fi
15355 done
15356
15357 # Required to use basename.
15358 if expr a : '\(a\)' >/dev/null 2>&1; then
15359   as_expr=expr
15360 else
15361   as_expr=false
15362 fi
15363
15364 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15365   as_basename=basename
15366 else
15367   as_basename=false
15368 fi
15369
15370
15371 # Name of the executable.
15372 as_me=`$as_basename "$0" ||
15373 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15374          X"$0" : 'X\(//\)$' \| \
15375          X"$0" : 'X\(/\)$' \| \
15376          .     : '\(.\)' 2>/dev/null ||
15377 echo X/"$0" |
15378     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15379           /^X\/\(\/\/\)$/{ s//\1/; q; }
15380           /^X\/\(\/\).*/{ s//\1/; q; }
15381           s/.*/./; q'`
15382
15383
15384 # PATH needs CR, and LINENO needs CR and PATH.
15385 # Avoid depending upon Character Ranges.
15386 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15387 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15388 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15389 as_cr_digits='0123456789'
15390 as_cr_alnum=$as_cr_Letters$as_cr_digits
15391
15392 # The user is always right.
15393 if test "${PATH_SEPARATOR+set}" != set; then
15394   echo "#! /bin/sh" >conf$$.sh
15395   echo  "exit 0"   >>conf$$.sh
15396   chmod +x conf$$.sh
15397   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15398     PATH_SEPARATOR=';'
15399   else
15400     PATH_SEPARATOR=:
15401   fi
15402   rm -f conf$$.sh
15403 fi
15404
15405
15406   as_lineno_1=$LINENO
15407   as_lineno_2=$LINENO
15408   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15409   test "x$as_lineno_1" != "x$as_lineno_2" &&
15410   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15411   # Find who we are.  Look in the path if we contain no path at all
15412   # relative or not.
15413   case $0 in
15414     *[\\/]* ) as_myself=$0 ;;
15415     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15416 for as_dir in $PATH
15417 do
15418   IFS=$as_save_IFS
15419   test -z "$as_dir" && as_dir=.
15420   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15421 done
15422
15423        ;;
15424   esac
15425   # We did not find ourselves, most probably we were run as `sh COMMAND'
15426   # in which case we are not to be found in the path.
15427   if test "x$as_myself" = x; then
15428     as_myself=$0
15429   fi
15430   if test ! -f "$as_myself"; then
15431     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15432 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15433    { (exit 1); exit 1; }; }
15434   fi
15435   case $CONFIG_SHELL in
15436   '')
15437     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15438 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15439 do
15440   IFS=$as_save_IFS
15441   test -z "$as_dir" && as_dir=.
15442   for as_base in sh bash ksh sh5; do
15443          case $as_dir in
15444          /*)
15445            if ("$as_dir/$as_base" -c '
15446   as_lineno_1=$LINENO
15447   as_lineno_2=$LINENO
15448   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15449   test "x$as_lineno_1" != "x$as_lineno_2" &&
15450   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15451              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15452              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15453              CONFIG_SHELL=$as_dir/$as_base
15454              export CONFIG_SHELL
15455              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15456            fi;;
15457          esac
15458        done
15459 done
15460 ;;
15461   esac
15462
15463   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15464   # uniformly replaced by the line number.  The first 'sed' inserts a
15465   # line-number line before each line; the second 'sed' does the real
15466   # work.  The second script uses 'N' to pair each line-number line
15467   # with the numbered line, and appends trailing '-' during
15468   # substitution so that $LINENO is not a special case at line end.
15469   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15470   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15471   sed '=' <$as_myself |
15472     sed '
15473       N
15474       s,$,-,
15475       : loop
15476       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15477       t loop
15478       s,-$,,
15479       s,^['$as_cr_digits']*\n,,
15480     ' >$as_me.lineno &&
15481   chmod +x $as_me.lineno ||
15482     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15483 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15484    { (exit 1); exit 1; }; }
15485
15486   # Don't try to exec as it changes $[0], causing all sort of problems
15487   # (the dirname of $[0] is not the place where we might find the
15488   # original and so on.  Autoconf is especially sensible to this).
15489   . ./$as_me.lineno
15490   # Exit status is that of the last command.
15491   exit
15492 }
15493
15494
15495 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15496   *c*,-n*) ECHO_N= ECHO_C='
15497 ' ECHO_T='      ' ;;
15498   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15499   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15500 esac
15501
15502 if expr a : '\(a\)' >/dev/null 2>&1; then
15503   as_expr=expr
15504 else
15505   as_expr=false
15506 fi
15507
15508 rm -f conf$$ conf$$.exe conf$$.file
15509 echo >conf$$.file
15510 if ln -s conf$$.file conf$$ 2>/dev/null; then
15511   # We could just check for DJGPP; but this test a) works b) is more generic
15512   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15513   if test -f conf$$.exe; then
15514     # Don't use ln at all; we don't have any links
15515     as_ln_s='cp -p'
15516   else
15517     as_ln_s='ln -s'
15518   fi
15519 elif ln conf$$.file conf$$ 2>/dev/null; then
15520   as_ln_s=ln
15521 else
15522   as_ln_s='cp -p'
15523 fi
15524 rm -f conf$$ conf$$.exe conf$$.file
15525
15526 if mkdir -p . 2>/dev/null; then
15527   as_mkdir_p=:
15528 else
15529   test -d ./-p && rmdir ./-p
15530   as_mkdir_p=false
15531 fi
15532
15533 as_executable_p="test -f"
15534
15535 # Sed expression to map a string onto a valid CPP name.
15536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15537
15538 # Sed expression to map a string onto a valid variable name.
15539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15540
15541
15542 # IFS
15543 # We need space, tab and new line, in precisely that order.
15544 as_nl='
15545 '
15546 IFS="   $as_nl"
15547
15548 # CDPATH.
15549 $as_unset CDPATH
15550
15551 exec 6>&1
15552
15553 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15554 # report actual input values of CONFIG_FILES etc. instead of their
15555 # values after options handling.  Logging --version etc. is OK.
15556 exec 5>>config.log
15557 {
15558   echo
15559   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15560 ## Running $as_me. ##
15561 _ASBOX
15562 } >&5
15563 cat >&5 <<_CSEOF
15564
15565 This file was extended by $as_me, which was
15566 generated by GNU Autoconf 2.59.  Invocation command line was
15567
15568   CONFIG_FILES    = $CONFIG_FILES
15569   CONFIG_HEADERS  = $CONFIG_HEADERS
15570   CONFIG_LINKS    = $CONFIG_LINKS
15571   CONFIG_COMMANDS = $CONFIG_COMMANDS
15572   $ $0 $@
15573
15574 _CSEOF
15575 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15576 echo >&5
15577 _ACEOF
15578
15579 # Files that config.status was made for.
15580 if test -n "$ac_config_files"; then
15581   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15582 fi
15583
15584 if test -n "$ac_config_headers"; then
15585   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15586 fi
15587
15588 if test -n "$ac_config_links"; then
15589   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15590 fi
15591
15592 if test -n "$ac_config_commands"; then
15593   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15594 fi
15595
15596 cat >>$CONFIG_STATUS <<\_ACEOF
15597
15598 ac_cs_usage="\
15599 \`$as_me' instantiates files from templates according to the
15600 current configuration.
15601
15602 Usage: $0 [OPTIONS] [FILE]...
15603
15604   -h, --help       print this help, then exit
15605   -V, --version    print version number, then exit
15606   -q, --quiet      do not print progress messages
15607   -d, --debug      don't remove temporary files
15608       --recheck    update $as_me by reconfiguring in the same conditions
15609   --file=FILE[:TEMPLATE]
15610                    instantiate the configuration file FILE
15611   --header=FILE[:TEMPLATE]
15612                    instantiate the configuration header FILE
15613
15614 Configuration files:
15615 $config_files
15616
15617 Configuration headers:
15618 $config_headers
15619
15620 Configuration commands:
15621 $config_commands
15622
15623 Report bugs to <bug-autoconf@gnu.org>."
15624 _ACEOF
15625
15626 cat >>$CONFIG_STATUS <<_ACEOF
15627 ac_cs_version="\\
15628 config.status
15629 configured by $0, generated by GNU Autoconf 2.59,
15630   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15631
15632 Copyright (C) 2003 Free Software Foundation, Inc.
15633 This config.status script is free software; the Free Software Foundation
15634 gives unlimited permission to copy, distribute and modify it."
15635 srcdir=$srcdir
15636 _ACEOF
15637
15638 cat >>$CONFIG_STATUS <<\_ACEOF
15639 # If no file are specified by the user, then we need to provide default
15640 # value.  By we need to know if files were specified by the user.
15641 ac_need_defaults=:
15642 while test $# != 0
15643 do
15644   case $1 in
15645   --*=*)
15646     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15647     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15648     ac_shift=:
15649     ;;
15650   -*)
15651     ac_option=$1
15652     ac_optarg=$2
15653     ac_shift=shift
15654     ;;
15655   *) # This is not an option, so the user has probably given explicit
15656      # arguments.
15657      ac_option=$1
15658      ac_need_defaults=false;;
15659   esac
15660
15661   case $ac_option in
15662   # Handling of the options.
15663 _ACEOF
15664 cat >>$CONFIG_STATUS <<\_ACEOF
15665   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15666     ac_cs_recheck=: ;;
15667   --version | --vers* | -V )
15668     echo "$ac_cs_version"; exit 0 ;;
15669   --he | --h)
15670     # Conflict between --help and --header
15671     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15672 Try \`$0 --help' for more information." >&5
15673 echo "$as_me: error: ambiguous option: $1
15674 Try \`$0 --help' for more information." >&2;}
15675    { (exit 1); exit 1; }; };;
15676   --help | --hel | -h )
15677     echo "$ac_cs_usage"; exit 0 ;;
15678   --debug | --d* | -d )
15679     debug=: ;;
15680   --file | --fil | --fi | --f )
15681     $ac_shift
15682     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15683     ac_need_defaults=false;;
15684   --header | --heade | --head | --hea )
15685     $ac_shift
15686     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15687     ac_need_defaults=false;;
15688   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15689   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15690     ac_cs_silent=: ;;
15691
15692   # This is an error.
15693   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15694 Try \`$0 --help' for more information." >&5
15695 echo "$as_me: error: unrecognized option: $1
15696 Try \`$0 --help' for more information." >&2;}
15697    { (exit 1); exit 1; }; } ;;
15698
15699   *) ac_config_targets="$ac_config_targets $1" ;;
15700
15701   esac
15702   shift
15703 done
15704
15705 ac_configure_extra_args=
15706
15707 if $ac_cs_silent; then
15708   exec 6>/dev/null
15709   ac_configure_extra_args="$ac_configure_extra_args --silent"
15710 fi
15711
15712 _ACEOF
15713 cat >>$CONFIG_STATUS <<_ACEOF
15714 if \$ac_cs_recheck; then
15715   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15716   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15717 fi
15718
15719 _ACEOF
15720
15721 cat >>$CONFIG_STATUS <<_ACEOF
15722 #
15723 # INIT-COMMANDS section.
15724 #
15725
15726 subdirs='$subdirs'
15727 symbolic_link='$symbolic_link'
15728
15729
15730 _ACEOF
15731
15732
15733
15734 cat >>$CONFIG_STATUS <<\_ACEOF
15735 for ac_config_target in $ac_config_targets
15736 do
15737   case "$ac_config_target" in
15738   # Handling of arguments.
15739   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15740   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15741   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15742   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15743 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15744    { (exit 1); exit 1; }; };;
15745   esac
15746 done
15747
15748 # If the user did not use the arguments to specify the items to instantiate,
15749 # then the envvar interface is used.  Set only those that are not.
15750 # We use the long form for the default assignment because of an extremely
15751 # bizarre bug on SunOS 4.1.3.
15752 if $ac_need_defaults; then
15753   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15754   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15755   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15756 fi
15757
15758 # Have a temporary directory for convenience.  Make it in the build tree
15759 # simply because there is no reason to put it here, and in addition,
15760 # creating and moving files from /tmp can sometimes cause problems.
15761 # Create a temporary directory, and hook for its removal unless debugging.
15762 $debug ||
15763 {
15764   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15765   trap '{ (exit 1); exit 1; }' 1 2 13 15
15766 }
15767
15768 # Create a (secure) tmp directory for tmp files.
15769
15770 {
15771   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15772   test -n "$tmp" && test -d "$tmp"
15773 }  ||
15774 {
15775   tmp=./confstat$$-$RANDOM
15776   (umask 077 && mkdir $tmp)
15777 } ||
15778 {
15779    echo "$me: cannot create a temporary directory in ." >&2
15780    { (exit 1); exit 1; }
15781 }
15782
15783 _ACEOF
15784
15785 cat >>$CONFIG_STATUS <<_ACEOF
15786
15787 #
15788 # CONFIG_FILES section.
15789 #
15790
15791 # No need to generate the scripts if there are no CONFIG_FILES.
15792 # This happens for instance when ./config.status config.h
15793 if test -n "\$CONFIG_FILES"; then
15794   # Protect against being on the right side of a sed subst in config.status.
15795   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15796    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15797 s,@SHELL@,$SHELL,;t t
15798 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15799 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15800 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15801 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15802 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15803 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15804 s,@exec_prefix@,$exec_prefix,;t t
15805 s,@prefix@,$prefix,;t t
15806 s,@program_transform_name@,$program_transform_name,;t t
15807 s,@bindir@,$bindir,;t t
15808 s,@sbindir@,$sbindir,;t t
15809 s,@libexecdir@,$libexecdir,;t t
15810 s,@datadir@,$datadir,;t t
15811 s,@sysconfdir@,$sysconfdir,;t t
15812 s,@sharedstatedir@,$sharedstatedir,;t t
15813 s,@localstatedir@,$localstatedir,;t t
15814 s,@libdir@,$libdir,;t t
15815 s,@includedir@,$includedir,;t t
15816 s,@oldincludedir@,$oldincludedir,;t t
15817 s,@infodir@,$infodir,;t t
15818 s,@mandir@,$mandir,;t t
15819 s,@build_alias@,$build_alias,;t t
15820 s,@host_alias@,$host_alias,;t t
15821 s,@target_alias@,$target_alias,;t t
15822 s,@DEFS@,$DEFS,;t t
15823 s,@ECHO_C@,$ECHO_C,;t t
15824 s,@ECHO_N@,$ECHO_N,;t t
15825 s,@ECHO_T@,$ECHO_T,;t t
15826 s,@LIBS@,$LIBS,;t t
15827 s,@build@,$build,;t t
15828 s,@build_cpu@,$build_cpu,;t t
15829 s,@build_vendor@,$build_vendor,;t t
15830 s,@build_os@,$build_os,;t t
15831 s,@host@,$host,;t t
15832 s,@host_cpu@,$host_cpu,;t t
15833 s,@host_vendor@,$host_vendor,;t t
15834 s,@host_os@,$host_os,;t t
15835 s,@target@,$target,;t t
15836 s,@target_cpu@,$target_cpu,;t t
15837 s,@target_vendor@,$target_vendor,;t t
15838 s,@target_os@,$target_os,;t t
15839 s,@target_noncanonical@,$target_noncanonical,;t t
15840 s,@build_subdir@,$build_subdir,;t t
15841 s,@host_subdir@,$host_subdir,;t t
15842 s,@target_subdir@,$target_subdir,;t t
15843 s,@GENINSRC@,$GENINSRC,;t t
15844 s,@CC@,$CC,;t t
15845 s,@CFLAGS@,$CFLAGS,;t t
15846 s,@LDFLAGS@,$LDFLAGS,;t t
15847 s,@CPPFLAGS@,$CPPFLAGS,;t t
15848 s,@ac_ct_CC@,$ac_ct_CC,;t t
15849 s,@EXEEXT@,$EXEEXT,;t t
15850 s,@OBJEXT@,$OBJEXT,;t t
15851 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
15852 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
15853 s,@CPP@,$CPP,;t t
15854 s,@EGREP@,$EGREP,;t t
15855 s,@strict1_warn@,$strict1_warn,;t t
15856 s,@warn_cflags@,$warn_cflags,;t t
15857 s,@WERROR@,$WERROR,;t t
15858 s,@nocommon_flag@,$nocommon_flag,;t t
15859 s,@TREEBROWSER@,$TREEBROWSER,;t t
15860 s,@valgrind_path@,$valgrind_path,;t t
15861 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
15862 s,@valgrind_command@,$valgrind_command,;t t
15863 s,@coverage_flags@,$coverage_flags,;t t
15864 s,@enable_multilib@,$enable_multilib,;t t
15865 s,@enable_shared@,$enable_shared,;t t
15866 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
15867 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
15868 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
15869 s,@onestep@,$onestep,;t t
15870 s,@SET_MAKE@,$SET_MAKE,;t t
15871 s,@AWK@,$AWK,;t t
15872 s,@LN_S@,$LN_S,;t t
15873 s,@LN@,$LN,;t t
15874 s,@RANLIB@,$RANLIB,;t t
15875 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15876 s,@ranlib_flags@,$ranlib_flags,;t t
15877 s,@INSTALL@,$INSTALL,;t t
15878 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15879 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15880 s,@make_compare_target@,$make_compare_target,;t t
15881 s,@have_mktemp_command@,$have_mktemp_command,;t t
15882 s,@MAKEINFO@,$MAKEINFO,;t t
15883 s,@BUILD_INFO@,$BUILD_INFO,;t t
15884 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
15885 s,@FLEX@,$FLEX,;t t
15886 s,@BISON@,$BISON,;t t
15887 s,@NM@,$NM,;t t
15888 s,@AR@,$AR,;t t
15889 s,@stage1_cflags@,$stage1_cflags,;t t
15890 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
15891 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
15892 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
15893 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
15894 s,@LIBICONV@,$LIBICONV,;t t
15895 s,@LTLIBICONV@,$LTLIBICONV,;t t
15896 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
15897 s,@manext@,$manext,;t t
15898 s,@objext@,$objext,;t t
15899 s,@gthread_flags@,$gthread_flags,;t t
15900 s,@extra_modes_file@,$extra_modes_file,;t t
15901 s,@PACKAGE@,$PACKAGE,;t t
15902 s,@VERSION@,$VERSION,;t t
15903 s,@USE_NLS@,$USE_NLS,;t t
15904 s,@LIBINTL@,$LIBINTL,;t t
15905 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15906 s,@INCINTL@,$INCINTL,;t t
15907 s,@XGETTEXT@,$XGETTEXT,;t t
15908 s,@GMSGFMT@,$GMSGFMT,;t t
15909 s,@POSUB@,$POSUB,;t t
15910 s,@CATALOGS@,$CATALOGS,;t t
15911 s,@CROSS@,$CROSS,;t t
15912 s,@ALL@,$ALL,;t t
15913 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
15914 s,@inhibit_libc@,$inhibit_libc,;t t
15915 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15916 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
15917 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
15918 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
15919 s,@collect2@,$collect2,;t t
15920 s,@libgcc_visibility@,$libgcc_visibility,;t t
15921 s,@GGC@,$GGC,;t t
15922 s,@zlibdir@,$zlibdir,;t t
15923 s,@zlibinc@,$zlibinc,;t t
15924 s,@MAINT@,$MAINT,;t t
15925 s,@gcc_tooldir@,$gcc_tooldir,;t t
15926 s,@dollar@,$dollar,;t t
15927 s,@slibdir@,$slibdir,;t t
15928 s,@objdir@,$objdir,;t t
15929 s,@subdirs@,$subdirs,;t t
15930 s,@srcdir@,$srcdir,;t t
15931 s,@all_boot_languages@,$all_boot_languages,;t t
15932 s,@all_compilers@,$all_compilers,;t t
15933 s,@all_gtfiles@,$all_gtfiles,;t t
15934 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
15935 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
15936 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
15937 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
15938 s,@all_languages@,$all_languages,;t t
15939 s,@all_stagestuff@,$all_stagestuff,;t t
15940 s,@build_exeext@,$build_exeext,;t t
15941 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
15942 s,@build_xm_file_list@,$build_xm_file_list,;t t
15943 s,@build_xm_include_list@,$build_xm_include_list,;t t
15944 s,@build_xm_defines@,$build_xm_defines,;t t
15945 s,@check_languages@,$check_languages,;t t
15946 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
15947 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
15948 s,@cpp_install_dir@,$cpp_install_dir,;t t
15949 s,@xmake_file@,$xmake_file,;t t
15950 s,@tmake_file@,$tmake_file,;t t
15951 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
15952 s,@extra_headers_list@,$extra_headers_list,;t t
15953 s,@extra_objs@,$extra_objs,;t t
15954 s,@extra_parts@,$extra_parts,;t t
15955 s,@extra_passes@,$extra_passes,;t t
15956 s,@extra_programs@,$extra_programs,;t t
15957 s,@float_h_file@,$float_h_file,;t t
15958 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
15959 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
15960 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
15961 s,@gcc_version@,$gcc_version,;t t
15962 s,@gcc_version_full@,$gcc_version_full,;t t
15963 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
15964 s,@host_exeext@,$host_exeext,;t t
15965 s,@host_xm_file_list@,$host_xm_file_list,;t t
15966 s,@host_xm_include_list@,$host_xm_include_list,;t t
15967 s,@host_xm_defines@,$host_xm_defines,;t t
15968 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
15969 s,@install@,$install,;t t
15970 s,@lang_opt_files@,$lang_opt_files,;t t
15971 s,@lang_specs_files@,$lang_specs_files,;t t
15972 s,@lang_tree_files@,$lang_tree_files,;t t
15973 s,@local_prefix@,$local_prefix,;t t
15974 s,@md_file@,$md_file,;t t
15975 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
15976 s,@out_file@,$out_file,;t t
15977 s,@out_object_file@,$out_object_file,;t t
15978 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
15979 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
15980 s,@symbolic_link@,$symbolic_link,;t t
15981 s,@thread_file@,$thread_file,;t t
15982 s,@tm_file_list@,$tm_file_list,;t t
15983 s,@tm_include_list@,$tm_include_list,;t t
15984 s,@tm_defines@,$tm_defines,;t t
15985 s,@tm_p_file_list@,$tm_p_file_list,;t t
15986 s,@tm_p_include_list@,$tm_p_include_list,;t t
15987 s,@xm_file_list@,$xm_file_list,;t t
15988 s,@xm_include_list@,$xm_include_list,;t t
15989 s,@xm_defines@,$xm_defines,;t t
15990 s,@c_target_objs@,$c_target_objs,;t t
15991 s,@cxx_target_objs@,$cxx_target_objs,;t t
15992 s,@target_cpu_default@,$target_cpu_default,;t t
15993 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
15994 s,@GMPLIBS@,$GMPLIBS,;t t
15995 s,@GMPINC@,$GMPINC,;t t
15996 s,@LIBOBJS@,$LIBOBJS,;t t
15997 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15998 /@language_hooks@/r $language_hooks
15999 s,@language_hooks@,,;t t
16000 CEOF
16001
16002 _ACEOF
16003
16004   cat >>$CONFIG_STATUS <<\_ACEOF
16005   # Split the substitutions into bite-sized pieces for seds with
16006   # small command number limits, like on Digital OSF/1 and HP-UX.
16007   ac_max_sed_lines=48
16008   ac_sed_frag=1 # Number of current file.
16009   ac_beg=1 # First line for current file.
16010   ac_end=$ac_max_sed_lines # Line after last line for current file.
16011   ac_more_lines=:
16012   ac_sed_cmds=
16013   while $ac_more_lines; do
16014     if test $ac_beg -gt 1; then
16015       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16016     else
16017       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16018     fi
16019     if test ! -s $tmp/subs.frag; then
16020       ac_more_lines=false
16021     else
16022       # The purpose of the label and of the branching condition is to
16023       # speed up the sed processing (if there are no `@' at all, there
16024       # is no need to browse any of the substitutions).
16025       # These are the two extra sed commands mentioned above.
16026       (echo ':t
16027   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16028       if test -z "$ac_sed_cmds"; then
16029         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16030       else
16031         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16032       fi
16033       ac_sed_frag=`expr $ac_sed_frag + 1`
16034       ac_beg=$ac_end
16035       ac_end=`expr $ac_end + $ac_max_sed_lines`
16036     fi
16037   done
16038   if test -z "$ac_sed_cmds"; then
16039     ac_sed_cmds=cat
16040   fi
16041 fi # test -n "$CONFIG_FILES"
16042
16043 _ACEOF
16044 cat >>$CONFIG_STATUS <<\_ACEOF
16045 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16046   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16047   case $ac_file in
16048   - | *:- | *:-:* ) # input from stdin
16049         cat >$tmp/stdin
16050         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16051         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16052   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16053         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16054   * )   ac_file_in=$ac_file.in ;;
16055   esac
16056
16057   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16058   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16059 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16060          X"$ac_file" : 'X\(//\)[^/]' \| \
16061          X"$ac_file" : 'X\(//\)$' \| \
16062          X"$ac_file" : 'X\(/\)' \| \
16063          .     : '\(.\)' 2>/dev/null ||
16064 echo X"$ac_file" |
16065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16066           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16067           /^X\(\/\/\)$/{ s//\1/; q; }
16068           /^X\(\/\).*/{ s//\1/; q; }
16069           s/.*/./; q'`
16070   { if $as_mkdir_p; then
16071     mkdir -p "$ac_dir"
16072   else
16073     as_dir="$ac_dir"
16074     as_dirs=
16075     while test ! -d "$as_dir"; do
16076       as_dirs="$as_dir $as_dirs"
16077       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16079          X"$as_dir" : 'X\(//\)[^/]' \| \
16080          X"$as_dir" : 'X\(//\)$' \| \
16081          X"$as_dir" : 'X\(/\)' \| \
16082          .     : '\(.\)' 2>/dev/null ||
16083 echo X"$as_dir" |
16084     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16085           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16086           /^X\(\/\/\)$/{ s//\1/; q; }
16087           /^X\(\/\).*/{ s//\1/; q; }
16088           s/.*/./; q'`
16089     done
16090     test ! -n "$as_dirs" || mkdir $as_dirs
16091   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16092 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16093    { (exit 1); exit 1; }; }; }
16094
16095   ac_builddir=.
16096
16097 if test "$ac_dir" != .; then
16098   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16099   # A "../" for each directory in $ac_dir_suffix.
16100   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16101 else
16102   ac_dir_suffix= ac_top_builddir=
16103 fi
16104
16105 case $srcdir in
16106   .)  # No --srcdir option.  We are building in place.
16107     ac_srcdir=.
16108     if test -z "$ac_top_builddir"; then
16109        ac_top_srcdir=.
16110     else
16111        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16112     fi ;;
16113   [\\/]* | ?:[\\/]* )  # Absolute path.
16114     ac_srcdir=$srcdir$ac_dir_suffix;
16115     ac_top_srcdir=$srcdir ;;
16116   *) # Relative path.
16117     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16118     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16119 esac
16120
16121 # Do not use `cd foo && pwd` to compute absolute paths, because
16122 # the directories may not exist.
16123 case `pwd` in
16124 .) ac_abs_builddir="$ac_dir";;
16125 *)
16126   case "$ac_dir" in
16127   .) ac_abs_builddir=`pwd`;;
16128   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16129   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16130   esac;;
16131 esac
16132 case $ac_abs_builddir in
16133 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16134 *)
16135   case ${ac_top_builddir}. in
16136   .) ac_abs_top_builddir=$ac_abs_builddir;;
16137   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16138   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16139   esac;;
16140 esac
16141 case $ac_abs_builddir in
16142 .) ac_abs_srcdir=$ac_srcdir;;
16143 *)
16144   case $ac_srcdir in
16145   .) ac_abs_srcdir=$ac_abs_builddir;;
16146   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16147   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16148   esac;;
16149 esac
16150 case $ac_abs_builddir in
16151 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16152 *)
16153   case $ac_top_srcdir in
16154   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16155   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16156   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16157   esac;;
16158 esac
16159
16160
16161
16162   if test x"$ac_file" != x-; then
16163     { echo "$as_me:$LINENO: creating $ac_file" >&5
16164 echo "$as_me: creating $ac_file" >&6;}
16165     rm -f "$ac_file"
16166   fi
16167   # Let's still pretend it is `configure' which instantiates (i.e., don't
16168   # use $as_me), people would be surprised to read:
16169   #    /* config.h.  Generated by config.status.  */
16170   if test x"$ac_file" = x-; then
16171     configure_input=
16172   else
16173     configure_input="$ac_file.  "
16174   fi
16175   configure_input=$configure_input"Generated from `echo $ac_file_in |
16176                                      sed 's,.*/,,'` by configure."
16177
16178   # First look for the input files in the build tree, otherwise in the
16179   # src tree.
16180   ac_file_inputs=`IFS=:
16181     for f in $ac_file_in; do
16182       case $f in
16183       -) echo $tmp/stdin ;;
16184       [\\/$]*)
16185          # Absolute (can't be DOS-style, as IFS=:)
16186          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16187 echo "$as_me: error: cannot find input file: $f" >&2;}
16188    { (exit 1); exit 1; }; }
16189          echo "$f";;
16190       *) # Relative
16191          if test -f "$f"; then
16192            # Build tree
16193            echo "$f"
16194          elif test -f "$srcdir/$f"; then
16195            # Source tree
16196            echo "$srcdir/$f"
16197          else
16198            # /dev/null tree
16199            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16200 echo "$as_me: error: cannot find input file: $f" >&2;}
16201    { (exit 1); exit 1; }; }
16202          fi;;
16203       esac
16204     done` || { (exit 1); exit 1; }
16205 _ACEOF
16206 cat >>$CONFIG_STATUS <<_ACEOF
16207   sed "$ac_vpsub
16208 $extrasub
16209 _ACEOF
16210 cat >>$CONFIG_STATUS <<\_ACEOF
16211 :t
16212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16213 s,@configure_input@,$configure_input,;t t
16214 s,@srcdir@,$ac_srcdir,;t t
16215 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16216 s,@top_srcdir@,$ac_top_srcdir,;t t
16217 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16218 s,@builddir@,$ac_builddir,;t t
16219 s,@abs_builddir@,$ac_abs_builddir,;t t
16220 s,@top_builddir@,$ac_top_builddir,;t t
16221 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16222 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16223   rm -f $tmp/stdin
16224   if test x"$ac_file" != x-; then
16225     mv $tmp/out $ac_file
16226   else
16227     cat $tmp/out
16228     rm -f $tmp/out
16229   fi
16230
16231 done
16232 _ACEOF
16233 cat >>$CONFIG_STATUS <<\_ACEOF
16234
16235 #
16236 # CONFIG_HEADER section.
16237 #
16238
16239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16241 #
16242 # ac_d sets the value in "#define NAME VALUE" lines.
16243 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
16244 ac_dB='[         ].*$,\1#\2'
16245 ac_dC=' '
16246 ac_dD=',;t'
16247 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16248 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16249 ac_uB='$,\1#\2define\3'
16250 ac_uC=' '
16251 ac_uD=',;t'
16252
16253 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16254   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16255   case $ac_file in
16256   - | *:- | *:-:* ) # input from stdin
16257         cat >$tmp/stdin
16258         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16259         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16260   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16261         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16262   * )   ac_file_in=$ac_file.in ;;
16263   esac
16264
16265   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16266 echo "$as_me: creating $ac_file" >&6;}
16267
16268   # First look for the input files in the build tree, otherwise in the
16269   # src tree.
16270   ac_file_inputs=`IFS=:
16271     for f in $ac_file_in; do
16272       case $f in
16273       -) echo $tmp/stdin ;;
16274       [\\/$]*)
16275          # Absolute (can't be DOS-style, as IFS=:)
16276          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16277 echo "$as_me: error: cannot find input file: $f" >&2;}
16278    { (exit 1); exit 1; }; }
16279          # Do quote $f, to prevent DOS paths from being IFS'd.
16280          echo "$f";;
16281       *) # Relative
16282          if test -f "$f"; then
16283            # Build tree
16284            echo "$f"
16285          elif test -f "$srcdir/$f"; then
16286            # Source tree
16287            echo "$srcdir/$f"
16288          else
16289            # /dev/null tree
16290            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16291 echo "$as_me: error: cannot find input file: $f" >&2;}
16292    { (exit 1); exit 1; }; }
16293          fi;;
16294       esac
16295     done` || { (exit 1); exit 1; }
16296   # Remove the trailing spaces.
16297   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
16298
16299 _ACEOF
16300
16301 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16302 # `conftest.undefs', that substitutes the proper values into
16303 # config.h.in to produce config.h.  The first handles `#define'
16304 # templates, and the second `#undef' templates.
16305 # And first: Protect against being on the right side of a sed subst in
16306 # config.status.  Protect against being in an unquoted here document
16307 # in config.status.
16308 rm -f conftest.defines conftest.undefs
16309 # Using a here document instead of a string reduces the quoting nightmare.
16310 # Putting comments in sed scripts is not portable.
16311 #
16312 # `end' is used to avoid that the second main sed command (meant for
16313 # 0-ary CPP macros) applies to n-ary macro definitions.
16314 # See the Autoconf documentation for `clear'.
16315 cat >confdef2sed.sed <<\_ACEOF
16316 s/[\\&,]/\\&/g
16317 s,[\\$`],\\&,g
16318 t clear
16319 : clear
16320 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16321 t end
16322 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16323 : end
16324 _ACEOF
16325 # If some macros were called several times there might be several times
16326 # the same #defines, which is useless.  Nevertheless, we may not want to
16327 # sort them, since we want the *last* AC-DEFINE to be honored.
16328 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16329 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16330 rm -f confdef2sed.sed
16331
16332 # This sed command replaces #undef with comments.  This is necessary, for
16333 # example, in the case of _POSIX_SOURCE, which is predefined and required
16334 # on some systems where configure will not decide to define it.
16335 cat >>conftest.undefs <<\_ACEOF
16336 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16337 _ACEOF
16338
16339 # Break up conftest.defines because some shells have a limit on the size
16340 # of here documents, and old seds have small limits too (100 cmds).
16341 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16342 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16343 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16344 echo '  :' >>$CONFIG_STATUS
16345 rm -f conftest.tail
16346 while grep . conftest.defines >/dev/null
16347 do
16348   # Write a limited-size here document to $tmp/defines.sed.
16349   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16350   # Speed up: don't consider the non `#define' lines.
16351   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
16352   # Work around the forget-to-reset-the-flag bug.
16353   echo 't clr' >>$CONFIG_STATUS
16354   echo ': clr' >>$CONFIG_STATUS
16355   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16356   echo 'CEOF
16357   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16358   rm -f $tmp/in
16359   mv $tmp/out $tmp/in
16360 ' >>$CONFIG_STATUS
16361   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16362   rm -f conftest.defines
16363   mv conftest.tail conftest.defines
16364 done
16365 rm -f conftest.defines
16366 echo '  fi # grep' >>$CONFIG_STATUS
16367 echo >>$CONFIG_STATUS
16368
16369 # Break up conftest.undefs because some shells have a limit on the size
16370 # of here documents, and old seds have small limits too (100 cmds).
16371 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16372 rm -f conftest.tail
16373 while grep . conftest.undefs >/dev/null
16374 do
16375   # Write a limited-size here document to $tmp/undefs.sed.
16376   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16377   # Speed up: don't consider the non `#undef'
16378   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16379   # Work around the forget-to-reset-the-flag bug.
16380   echo 't clr' >>$CONFIG_STATUS
16381   echo ': clr' >>$CONFIG_STATUS
16382   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16383   echo 'CEOF
16384   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16385   rm -f $tmp/in
16386   mv $tmp/out $tmp/in
16387 ' >>$CONFIG_STATUS
16388   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16389   rm -f conftest.undefs
16390   mv conftest.tail conftest.undefs
16391 done
16392 rm -f conftest.undefs
16393
16394 cat >>$CONFIG_STATUS <<\_ACEOF
16395   # Let's still pretend it is `configure' which instantiates (i.e., don't
16396   # use $as_me), people would be surprised to read:
16397   #    /* config.h.  Generated by config.status.  */
16398   if test x"$ac_file" = x-; then
16399     echo "/* Generated by configure.  */" >$tmp/config.h
16400   else
16401     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16402   fi
16403   cat $tmp/in >>$tmp/config.h
16404   rm -f $tmp/in
16405   if test x"$ac_file" != x-; then
16406     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16407       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16408 echo "$as_me: $ac_file is unchanged" >&6;}
16409     else
16410       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16412          X"$ac_file" : 'X\(//\)[^/]' \| \
16413          X"$ac_file" : 'X\(//\)$' \| \
16414          X"$ac_file" : 'X\(/\)' \| \
16415          .     : '\(.\)' 2>/dev/null ||
16416 echo X"$ac_file" |
16417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16418           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16419           /^X\(\/\/\)$/{ s//\1/; q; }
16420           /^X\(\/\).*/{ s//\1/; q; }
16421           s/.*/./; q'`
16422       { if $as_mkdir_p; then
16423     mkdir -p "$ac_dir"
16424   else
16425     as_dir="$ac_dir"
16426     as_dirs=
16427     while test ! -d "$as_dir"; do
16428       as_dirs="$as_dir $as_dirs"
16429       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16431          X"$as_dir" : 'X\(//\)[^/]' \| \
16432          X"$as_dir" : 'X\(//\)$' \| \
16433          X"$as_dir" : 'X\(/\)' \| \
16434          .     : '\(.\)' 2>/dev/null ||
16435 echo X"$as_dir" |
16436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16437           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16438           /^X\(\/\/\)$/{ s//\1/; q; }
16439           /^X\(\/\).*/{ s//\1/; q; }
16440           s/.*/./; q'`
16441     done
16442     test ! -n "$as_dirs" || mkdir $as_dirs
16443   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16445    { (exit 1); exit 1; }; }; }
16446
16447       rm -f $ac_file
16448       mv $tmp/config.h $ac_file
16449     fi
16450   else
16451     cat $tmp/config.h
16452     rm -f $tmp/config.h
16453   fi
16454 done
16455 _ACEOF
16456 cat >>$CONFIG_STATUS <<\_ACEOF
16457
16458 #
16459 # CONFIG_COMMANDS section.
16460 #
16461 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16462   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16463   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16464   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16465 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16466          X"$ac_dest" : 'X\(//\)[^/]' \| \
16467          X"$ac_dest" : 'X\(//\)$' \| \
16468          X"$ac_dest" : 'X\(/\)' \| \
16469          .     : '\(.\)' 2>/dev/null ||
16470 echo X"$ac_dest" |
16471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16472           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16473           /^X\(\/\/\)$/{ s//\1/; q; }
16474           /^X\(\/\).*/{ s//\1/; q; }
16475           s/.*/./; q'`
16476   { if $as_mkdir_p; then
16477     mkdir -p "$ac_dir"
16478   else
16479     as_dir="$ac_dir"
16480     as_dirs=
16481     while test ! -d "$as_dir"; do
16482       as_dirs="$as_dir $as_dirs"
16483       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16485          X"$as_dir" : 'X\(//\)[^/]' \| \
16486          X"$as_dir" : 'X\(//\)$' \| \
16487          X"$as_dir" : 'X\(/\)' \| \
16488          .     : '\(.\)' 2>/dev/null ||
16489 echo X"$as_dir" |
16490     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16491           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16492           /^X\(\/\/\)$/{ s//\1/; q; }
16493           /^X\(\/\).*/{ s//\1/; q; }
16494           s/.*/./; q'`
16495     done
16496     test ! -n "$as_dirs" || mkdir $as_dirs
16497   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16498 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16499    { (exit 1); exit 1; }; }; }
16500
16501   ac_builddir=.
16502
16503 if test "$ac_dir" != .; then
16504   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16505   # A "../" for each directory in $ac_dir_suffix.
16506   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16507 else
16508   ac_dir_suffix= ac_top_builddir=
16509 fi
16510
16511 case $srcdir in
16512   .)  # No --srcdir option.  We are building in place.
16513     ac_srcdir=.
16514     if test -z "$ac_top_builddir"; then
16515        ac_top_srcdir=.
16516     else
16517        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16518     fi ;;
16519   [\\/]* | ?:[\\/]* )  # Absolute path.
16520     ac_srcdir=$srcdir$ac_dir_suffix;
16521     ac_top_srcdir=$srcdir ;;
16522   *) # Relative path.
16523     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16524     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16525 esac
16526
16527 # Do not use `cd foo && pwd` to compute absolute paths, because
16528 # the directories may not exist.
16529 case `pwd` in
16530 .) ac_abs_builddir="$ac_dir";;
16531 *)
16532   case "$ac_dir" in
16533   .) ac_abs_builddir=`pwd`;;
16534   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16535   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16536   esac;;
16537 esac
16538 case $ac_abs_builddir in
16539 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16540 *)
16541   case ${ac_top_builddir}. in
16542   .) ac_abs_top_builddir=$ac_abs_builddir;;
16543   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16544   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16545   esac;;
16546 esac
16547 case $ac_abs_builddir in
16548 .) ac_abs_srcdir=$ac_srcdir;;
16549 *)
16550   case $ac_srcdir in
16551   .) ac_abs_srcdir=$ac_abs_builddir;;
16552   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16553   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16554   esac;;
16555 esac
16556 case $ac_abs_builddir in
16557 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16558 *)
16559   case $ac_top_srcdir in
16560   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16561   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16562   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16563   esac;;
16564 esac
16565
16566
16567   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16568 echo "$as_me: executing $ac_dest commands" >&6;}
16569   case $ac_dest in
16570     default )
16571 case ${CONFIG_HEADERS} in
16572   *auto-host.h:config.in*)
16573   echo > cstamp-h ;;
16574 esac
16575 # Make sure all the subdirs exist.
16576 for d in $subdirs doc build
16577 do
16578     test -d $d || mkdir $d
16579 done
16580 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16581 # bootstrapping and the installation procedure can still use
16582 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
16583 # FLAGS_TO_PASS has been modified to solve the problem there.
16584 # This is virtually a duplicate of what happens in configure.lang; we do
16585 # an extra check to make sure this only happens if ln -s can be used.
16586 if test "$symbolic_link" = "ln -s"; then
16587  for d in ${subdirs} ; do
16588         STARTDIR=`${PWDCMD-pwd}`
16589         cd $d
16590         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16591         do
16592                 rm -f $t
16593                 $symbolic_link ../$t $t 2>/dev/null
16594         done
16595         cd $STARTDIR
16596  done
16597 else true ; fi
16598  ;;
16599   esac
16600 done
16601 _ACEOF
16602
16603 cat >>$CONFIG_STATUS <<\_ACEOF
16604
16605 { (exit 0); exit 0; }
16606 _ACEOF
16607 chmod +x $CONFIG_STATUS
16608 ac_clean_files=$ac_clean_files_save
16609
16610
16611 # configure is writing to config.log, and then calls config.status.
16612 # config.status does its own redirection, appending to config.log.
16613 # Unfortunately, on DOS this fails, as config.log is still kept open
16614 # by configure, so config.status won't be able to write to it; its
16615 # output is simply discarded.  So we exec the FD to /dev/null,
16616 # effectively closing config.log, so it can be properly (re)opened and
16617 # appended to by config.status.  When coming back to configure, we
16618 # need to make the FD available again.
16619 if test "$no_create" != yes; then
16620   ac_cs_success=:
16621   ac_config_status_args=
16622   test "$silent" = yes &&
16623     ac_config_status_args="$ac_config_status_args --quiet"
16624   exec 5>/dev/null
16625   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16626   exec 5>>config.log
16627   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16628   # would make configure fail if this is the last instruction.
16629   $ac_cs_success || { (exit 1); exit 1; }
16630 fi
16631